@stigg/js-client-sdk 2.24.6 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,113 +1,5 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Stigg",[],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(this,(function(){return(()=>{var e={2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,Y:()=>a});var r=n(2176),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},2176:(e,t,n)=>{"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}n.d(t,{l$:()=>i,KV:()=>r}),e=n.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>u,ph:()=>c});var r=n(2991),i=n(2176);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);let l;(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return a||u<t?o<=u?(l="timeOrigin",e.timeOrigin):(l="navigationStart",s):(l="dateNow",i)}l="none"})()},1905:function(){!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=l(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];E.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new E(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=b,e.Response=E),t.Headers=p,t.Request=b,t.Response=E,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},7187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4139:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,r){if(r=r||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof r)throw new t("defaults must be an object");if(void 0!==r.retries&&!e(r.retries))throw new t("retries must be a positive integer");if(void 0!==r.retryDelay&&!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==r.retryOn&&!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");return r=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},r),function(i,o){var a=r.retries,s=r.retryDelay,u=r.retryOn;if(o&&void 0!==o.retries){if(!e(o.retries))throw new t("retries must be a positive integer");a=o.retries}if(o&&void 0!==o.retryDelay){if(!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=o.retryDelay}if(o&&o.retryOn){if(!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");u=o.retryOn}return new Promise((function(e,t){var r=function(r){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;n(s,o).then((function(n){if(Array.isArray(u)&&-1===u.indexOf(n.status))e(n);else if("function"==typeof u)try{return Promise.resolve(u(r,null,n)).then((function(t){t?c(r,null,n):e(n)})).catch(t)}catch(e){t(e)}else r<a?c(r,null,n):e(n)})).catch((function(e){if("function"==typeof u)try{Promise.resolve(u(r,e,null)).then((function(n){n?c(r,e,null):t(e)})).catch((function(e){t(e)}))}catch(e){t(e)}else r<a?c(r,e,null):t(e)}))};function c(e,t,n){var i="function"==typeof s?s(e,t,n):s;setTimeout((function(){r(++e)}),i)}r(0)}))}}}()},5185:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ue,disableExperimentalFragmentVariables:()=>te,disableFragmentWarnings:()=>Z,enableExperimentalFragmentVariables:()=>ee,gql:()=>J,resetCaches:()=>X});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.create,Object.create;var o=n(9763);function a(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function s(e){return u(e.source,a(e.source,e.start))}function u(e,t){var n=e.locationOffset.column-1,r=l(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,f="".concat(e.name,":").concat(a,":").concat(u,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){for(var h=Math.floor(u/80),v=u%80,y=[],m=0;m<d.length;m+=80)y.push(d.slice(m,m+80));return f+c([["".concat(a),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",l(v-1)+"^"],["",y[h+1]]]))}return f+c([["".concat(a-1),p[i-1]],["".concat(a),d],["",l(u-1)+"^"],["".concat(a+1),p[i+1]]])}function c(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return l(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function l(e){return Array(e+1).join(" ")}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(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 d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t="function"==typeof Map?new Map:void 0;return m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return g(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)},m(e)}function g(e,t,n){return g=b()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_(i,n.prototype),i},g.apply(null,arguments)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(f,e);var t,n,r,c,l=(t=f,n=b(),function(){var e,r=E(t);if(n){var i=E(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return v(this,e)});function f(e,t,n,r,o,s,u){var c,h,m,g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(g=l.call(this,e)).name="GraphQLError",g.originalError=null!=s?s:void 0,g.nodes=S(Array.isArray(t)?t:t?[t]:void 0);for(var b=[],_=0,E=null!==(w=g.nodes)&&void 0!==w?w:[];_<E.length;_++){var w,I=E[_].loc;null!=I&&b.push(I)}b=S(b),g.source=null!=n?n:null===(c=b)||void 0===c?void 0:c[0].source,g.positions=null!=r?r:null===(h=b)||void 0===h?void 0:h.map((function(e){return e.start})),g.locations=r&&n?r.map((function(e){return a(n,e)})):null===(m=b)||void 0===m?void 0:m.map((function(e){return a(e.source,e.start)})),g.path=null!=o?o:void 0;var T,x=null==s?void 0:s.extensions;return null==u&&"object"==i(T=x)&&null!==T?g.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},x):g.extensions=null!=u?u:{},Object.defineProperties(y(g),{message:{enumerable:!0},locations:{enumerable:null!=g.locations},path:{enumerable:null!=g.path},extensions:{enumerable:null!=g.extensions&&Object.keys(g.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(y(g),"stack",{value:s.stack,writable:!0,configurable:!0}),v(g)):(Error.captureStackTrace?Error.captureStackTrace(y(g),f):Object.defineProperty(y(g),"stack",{value:Error().stack,writable:!0,configurable:!0}),g)}return r=f,(c=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+s(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var c=a[o];t+="\n\n"+u(e.source,c)}return t}(this)}},{key:o.YF,get:function(){return"Object"}}])&&h(r.prototype,c),f}(m(Error));function S(e){return void 0===e||0===e.length?void 0:e}function I(e,t,n){return new w("Syntax Error: ".concat(n),void 0,e,[t])}var T=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),x=n(5217),D=Object.freeze({SOF:"<SOF>",EOF:"<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"}),O=n(143),P=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"}),C=n(7392),A=function(){function e(e){var t=new x.WU(D.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==D.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=R(this,e)}while(e.kind===D.COMMENT);return e},e}();function k(e){return isNaN(e)?D.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function R(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new x.WU(D.BANG,o,o+1,s,u,t);case 35:return F(n,o,s,u,t);case 36:return new x.WU(D.DOLLAR,o,o+1,s,u,t);case 38:return new x.WU(D.AMP,o,o+1,s,u,t);case 40:return new x.WU(D.PAREN_L,o,o+1,s,u,t);case 41:return new x.WU(D.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new x.WU(D.SPREAD,o,o+3,s,u,t);break;case 58:return new x.WU(D.COLON,o,o+1,s,u,t);case 61:return new x.WU(D.EQUALS,o,o+1,s,u,t);case 64:return new x.WU(D.AT,o,o+1,s,u,t);case 91:return new x.WU(D.BRACKET_L,o,o+1,s,u,t);case 93:return new x.WU(D.BRACKET_R,o,o+1,s,u,t);case 123:return new x.WU(D.BRACE_L,o,o+1,s,u,t);case 124:return new x.WU(D.PIPE,o,o+1,s,u,t);case 125:return new x.WU(D.BRACE_R,o,o+1,s,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?L(n,o,s,u,t,e):j(n,o,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return U(n,o,a,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return q(n,o,s,u,t)}throw I(n,o,N(a))}var c=e.line,l=1+o-e.lineStart;return new x.WU(D.EOF,i,i,c,l,t)}function N(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(k(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(k(e),".")}function F(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new x.WU(D.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function U(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw I(e,u,"Invalid number, unexpected digit after 0: ".concat(k(s),"."))}else u=M(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=M(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=M(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw I(e,u,"Invalid number, expected digit but got: ".concat(k(s),"."));return new x.WU(c?D.FLOAT:D.INT,t,u,r,i,o,a.slice(t,u))}function M(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw I(e,i,"Invalid number, expected digit but got: ".concat(k(o),"."))}function j(e,t,n,r,i){for(var o,a,s,u,c=e.body,l=t+1,f=l,p=0,d="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return d+=c.slice(f,l),new x.WU(D.STRING,t,l+1,n,r,i,d);if(p<32&&9!==p)throw I(e,l,"Invalid character within String: ".concat(k(p),"."));if(++l,92===p){switch(d+=c.slice(f,l-1),p=c.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),B(o)<<12|B(a)<<8|B(s)<<4|B(u));if(h<0){var v=c.slice(l+1,l+5);throw I(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw I(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw I(e,l,"Unterminated string.")}function L(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new x.WU(D.BLOCK_STRING,t,s+3,n,r,i,(0,C.W7)(l));if(c<32&&9!==c&&10!==c&&13!==c)throw I(e,s,"Invalid character within String: ".concat(k(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw I(e,s,"Unterminated string.")}function B(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function q(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new x.WU(D.NAME,t,s,n,r,i,o.slice(t,s))}var $=function(){function e(e,t){var n=(0,O.T)(e)?e:new O.H(e);this._lexer=new A(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(D.NAME);return{kind:T.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:T.DOCUMENT,definitions:this.many(D.SOF,this.parseDefinition,D.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(D.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(D.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(D.BRACE_L))return{kind:T.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(D.NAME)&&(t=this.parseName()),{kind:T.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(D.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(D.PAREN_L,this.parseVariableDefinition,D.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:T.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(D.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(D.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(D.DOLLAR),{kind:T.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:T.SELECTION_SET,selections:this.many(D.BRACE_L,this.parseSelection,D.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(D.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(D.COLON)?(e=r,t=this.parseName()):t=r,{kind:T.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(D.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(D.PAREN_L,t,D.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(D.COLON),{kind:T.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:T.ARGUMENT,name:this.parseName(),value:(this.expectToken(D.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(D.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(D.NAME)?{kind:T.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:T.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:T.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:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case D.BRACKET_L:return this.parseList(e);case D.BRACE_L:return this.parseObject(e);case D.INT:return this._lexer.advance(),{kind:T.INT,value:t.value,loc:this.loc(t)};case D.FLOAT:return this._lexer.advance(),{kind:T.FLOAT,value:t.value,loc:this.loc(t)};case D.STRING:case D.BLOCK_STRING:return this.parseStringLiteral();case D.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:T.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:T.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:T.NULL,loc:this.loc(t)};default:return{kind:T.ENUM,value:t.value,loc:this.loc(t)}}case D.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:T.STRING,value:e.value,block:e.kind===D.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:T.LIST,values:this.any(D.BRACKET_L,(function(){return t.parseValueLiteral(e)}),D.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:T.OBJECT,fields:this.any(D.BRACE_L,(function(){return t.parseObjectField(e)}),D.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(D.COLON),{kind:T.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(D.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(D.AT),{kind:T.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(D.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(D.BRACKET_R),e={kind:T.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(D.BANG)?{kind:T.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:T.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===D.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)},t.peekDescription=function(){return this.peek(D.STRING)||this.peek(D.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);return{kind:T.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(D.COLON);var n=this.parseNamedType();return{kind:T.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:T.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:T.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(D.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(D.AMP)||this.peek(D.NAME));return t}return this.delimitedMany(D.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(D.BRACE_L)&&this._lexer.lookahead().kind===D.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(D.BRACE_L,this.parseFieldDefinition,D.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(D.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:T.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(D.PAREN_L,this.parseInputValueDef,D.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(D.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(D.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:T.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:T.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:T.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(D.EQUALS)?this.delimitedMany(D.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:T.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseEnumValueDefinition,D.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:T.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:T.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(D.BRACE_L,this.parseInputValueDef,D.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===D.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:T.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){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:T.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){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:T.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){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:T.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){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:T.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){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:T.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){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:T.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(D.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:T.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(D.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==P[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new x.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw I(this._lexer.source,t.start,"Expected ".concat(G(e),", found ").concat(V(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==D.NAME||t.value!==e)throw I(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(V(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===D.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return I(this._lexer.source,t.start,"Unexpected ".concat(V(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function V(e){var t=e.value;return G(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function G(e){return function(e){return e===D.BANG||e===D.DOLLAR||e===D.AMP||e===D.PAREN_L||e===D.PAREN_R||e===D.SPREAD||e===D.COLON||e===D.EQUALS||e===D.AT||e===D.BRACKET_L||e===D.BRACKET_R||e===D.BRACE_L||e===D.PIPE||e===D.BRACE_R}(e)?'"'.concat(e,'"'):e}var Q=new Map,z=new Map,W=!0,Y=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function H(e){var t=K(e);if(!Q.has(t)){var n=function(e,t){return new $(e,t).parseDocument()}(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Q.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=K((a=e.loc).source.body.substring(a.start,a.end)),o=z.get(r);o&&!o.has(i)?W&&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"):o||z.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),r(r({},e),{definitions:n})}(n)))}return Q.get(t)}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),H(r)}function X(){Q.clear(),z.clear()}function Z(){W=!1}function ee(){Y=!0}function te(){Y=!1}var ne,re=J,ie=X,oe=Z,ae=ee,se=te;(ne=J||(J={})).gql=re,ne.resetCaches=ie,ne.disableFragmentWarnings=oe,ne.enableExperimentalFragmentVariables=ae,ne.disableExperimentalFragmentVariables=se,J.default=J;const ue=J},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},8407:(e,t,n)=>{var r=n(7040),i=n(4125),o=n(2117),a=n(7529),s=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),o=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},6384:(e,t,n)=>{var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),u=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},4636:(e,t,n)=>{var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var y in e)!t&&!c.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||h.push(y);return h}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:(e,t,n)=>{var r=n(8363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},3886:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e,t){return e&&r(t,i(t),e)}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:(e,t,n)=>{var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),u=n(4626),c=n(278),l=n(8805),f=n(1911),p=n(8234),d=n(6904),h=n(4160),v=n(3824),y=n(9148),m=n(8517),g=n(1469),b=n(4144),_=n(6688),E=n(3218),w=n(2928),S=n(3674),I=n(1704),T="[object Arguments]",x="[object Function]",D="[object Object]",O={};O[T]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[D]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[x]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,P,C,A,k){var R,N=1&n,F=2&n,U=4&n;if(P&&(R=A?P(t,C,A,k):P(t)),void 0!==R)return R;if(!E(t))return t;var M=g(t);if(M){if(R=v(t),!N)return c(t,R)}else{var j=h(t),L=j==x||"[object GeneratorFunction]"==j;if(b(t))return u(t,N);if(j==D||j==T||L&&!A){if(R=F||L?{}:m(t),!N)return F?f(t,s(R,t)):l(t,a(R,t))}else{if(!O[j])return A?t:{};R=y(t,j,N)}}k||(k=new r);var B=k.get(t);if(B)return B;k.set(t,R),w(t)?t.forEach((function(r){R.add(e(r,n,P,r,t,k))})):_(t)&&t.forEach((function(r,i){R.set(i,e(r,n,P,i,t,k))}));var q=M?void 0:(U?F?d:p:F?I:S)(t);return i(q||t,(function(r,i){q&&(r=t[i=r]),o(R,i,e(r,n,P,i,t,k))})),R}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},4140:(e,t,n)=>{var r=n(7816),i=n(9291)(r);e.exports=i},1848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},1078:(e,t,n)=>{var r=n(2488),i=n(7285);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},8866:(e,t,n)=>{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var r=n(1848),i=n(2722),o=n(2351);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(1299),i=n(7005);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},1299:(e,t,n)=>{var r=n(6384),i=n(7114),o=n(8351),a=n(6096),s=n(4160),u=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,m){var g=u(e),b=u(t),_=g?p:s(e),E=b?p:s(t),w=(_=_==f?d:_)==d,S=(E=E==f?d:E)==d,I=_==E;if(I&&c(e)){if(!c(t))return!1;g=!0,w=!1}if(I&&!w)return m||(m=new r),g||l(e)?i(e,t,n,v,y,m):o(e,t,_,n,v,y,m);if(!(1&n)){var T=w&&h.call(e,"__wrapped__"),x=S&&h.call(t,"__wrapped__");if(T||x){var D=T?e.value():e,O=x?t.value():t;return m||(m=new r),y(D,O,n,v,m)}}return!!I&&(m||(m=new r),a(e,t,n,v,y,m))}},5588:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(6384),i=n(939);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var l=(c=n[a])[0],f=e[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(o)var h=o(f,p,l,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},9221:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},7206:(e,t,n)=>{var r=n(1573),i=n(6432),o=n(6557),a=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},9199:(e,t,n)=>{var r=n(4140),i=n(8612);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},1573:(e,t,n)=>{var r=n(2958),i=n(1499),o=n(2634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),i=n(7361),o=n(9095),a=n(5403),s=n(9162),u=n(2634),c=n(327);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),u=n(1704),c=n(6390);e.exports=function e(t,n,l,f,p){t!==n&&o(n,(function(o,u){if(p||(p=new r),s(o))a(t,n,u,l,e,f,p);else{var d=f?f(c(t,u),o,u+"",t,n,p):void 0;void 0===d&&(d=o),i(t,u,d)}}),u)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),u=n(5694),c=n(1469),l=n(9246),f=n(4144),p=n(3560),d=n(3218),h=n(8630),v=n(6719),y=n(6390),m=n(9881);e.exports=function(e,t,n,g,b,_,E){var w=y(e,n),S=y(t,n),I=E.get(S);if(I)r(e,n,I);else{var T=_?_(w,S,n+"",e,t,E):void 0,x=void 0===T;if(x){var D=c(S),O=!D&&f(S),P=!D&&!O&&v(S);T=S,D||O||P?c(w)?T=w:l(w)?T=a(w):O?(x=!1,T=i(S,!0)):P?(x=!1,T=o(S,!0)):T=[]:h(S)||u(S)?(T=w,u(w)?T=m(w):d(w)&&!p(w)||(T=s(S))):x=!1}x&&(E.set(S,T),b(T,S,g,_,E),E.delete(S)),r(e,n,T)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),o=n(61);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),i=n(8777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},4259:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},5076:(e,t,n)=>{var r=n(4140);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),i=n(9932),o=n(1469),a=n(3448),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,n)=>{var r=n(1811),i=n(928),o=n(292),a=n(327);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},7415:(e,t,n)=>{var r=n(9932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),o=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7157:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:(e,t,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),i=n(9465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},8805:(e,t,n)=>{var r=n(8363),i=n(9551);e.exports=function(e,t){return r(e,i(e),t)}},1911:(e,t,n)=>{var r=n(8363),i=n(1442);e.exports=function(e,t){return r(e,i(e),t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}},9291:(e,t,n)=>{var r=n(8612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},696:(e,t,n)=>{var r=n(8630);e.exports=function(e){return r(e)?void 0:e}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},7114:(e,t,n)=>{var r=n(8668),i=n(2908),o=n(4757);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var b=c?a(g,m,h,t,e,u):a(m,g,h,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(m===e||s(m,e,n,a,u)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!s(m,g,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},8351:(e,t,n)=>{var r=n(2705),i=n(1149),o=n(7813),a=n(7114),s=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var y=a(d(e),d(t),r,c,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var v=!0;s.set(e,t),s.set(t,e);for(var y=u;++f<l;){var m=e[p=c[f]],g=t[p];if(o)var b=u?o(g,m,p,t,e,s):o(m,g,p,e,t,s);if(!(void 0===b?m===g||a(m,g,n,o,s):b)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var _=e.constructor,E=t.constructor;_==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E||(v=!1)}return s.delete(e),s.delete(t),v}},9021:(e,t,n)=>{var r=n(5564),i=n(5357),o=n(61);e.exports=function(e){return o(i(e,void 0,r),e+"")}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),o=n(3674);e.exports=function(e){return r(e,o,i)}},6904:(e,t,n)=>{var r=n(8866),i=n(1442),o=n(1704);e.exports=function(e){return r(e,o,i)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},1442:(e,t,n)=>{var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},4160:(e,t,n)=>{var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),u=n(4239),c=n(346),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",v=c(r),y=c(i),m=c(o),g=c(a),b=c(s),_=u;(r&&_(new r(new ArrayBuffer(1)))!=h||i&&_(new i)!=l||o&&_(o.resolve())!=f||a&&_(new a)!=p||s&&_(new s)!=d)&&(_=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case y:return l;case m:return f;case g:return p;case b:return d}return t}),e.exports=_},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),i=n(5694),o=n(1469),a=n(5776),s=n(1780),u=n(327);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(o(e)||i(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:(e,t,n)=>{var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),o=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},7285:(e,t,n)=>{var r=n(2705),i=n(5694),o=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),i=n(8612),o=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},292:(e,t,n)=>{var r=n(7786),i=n(4259);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},5514:(e,t,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5564:(e,t,n)=>{var r=n(1078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},9095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},4721:(e,t,n)=>{var r=n(2118),i=n(8612),o=n(7037),a=n(554),s=n(2628),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},5694:(e,t,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},1609:(e,t,n)=>{var r=n(280),i=n(4160),o=n(5694),a=n(1469),s=n(8612),u=n(4144),c=n(5726),l=n(6719),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,n)=>{var r=n(5588),i=n(7518),o=n(1167),a=o&&o.isMap,s=a?i(a):r;e.exports=s},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},2928:(e,t,n)=>{var r=n(9221),i=n(7518),o=n(1167),a=o&&o.isSet,s=a?i(a):r;e.exports=s},7037:(e,t,n)=>{var r=n(4239),i=n(1469),o=n(7005);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(7518),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},1704:(e,t,n)=>{var r=n(4636),i=n(313),o=n(8612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",m="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",E="[object GeneratorFunction]",w="[object Map]",S="[object Number]",I="[object Object]",T="[object Promise]",x="[object RegExp]",D="[object Set]",O="[object String]",P="[object Symbol]",C="[object WeakMap]",A="[object ArrayBuffer]",k="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",j="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",$=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,W=RegExp(Q.source),Y=RegExp(z.source),K=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="["+Ie+"]",xe="["+Ee+"]",De="\\d+",Oe="["+we+"]",Pe="[^\\ud800-\\udfff"+Ie+De+"\\u2700-\\u27bf"+we+Se+"]",Ce="\\ud83c[\\udffb-\\udfff]",Ae="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Se+"]",Fe="(?:"+Oe+"|"+Pe+")",Ue="(?:"+Ne+"|"+Pe+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",je="(?:['’](?:D|LL|M|RE|S|T|VE))?",Le="(?:"+xe+"|"+Ce+")?",Be="[\\ufe0e\\ufe0f]?",qe=Be+Le+"(?:\\u200d(?:"+[Ae,ke,Re].join("|")+")"+Be+Le+")*",$e="(?:"+["[\\u2700-\\u27bf]",ke,Re].join("|")+")"+qe,Ve="(?:"+[Ae+xe+"?",xe,ke,Re,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['’]","g"),Qe=RegExp(xe,"g"),ze=RegExp(Ce+"(?="+Ce+")|"+Ve+qe,"g"),We=RegExp([Ne+"?"+Oe+"+"+Me+"(?="+[Te,Ne,"$"].join("|")+")",Ue+"+"+je+"(?="+[Te,Ne+Fe,"$"].join("|")+")",Ne+"?"+Fe+"+"+Me,Ne+"+"+je,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,$e].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,He=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Xe={};Xe[R]=Xe[N]=Xe[F]=Xe[U]=Xe[M]=Xe[j]=Xe[L]=Xe[B]=Xe[q]=!0,Xe[v]=Xe[y]=Xe[A]=Xe[m]=Xe[k]=Xe[g]=Xe[b]=Xe[_]=Xe[w]=Xe[S]=Xe[I]=Xe[x]=Xe[D]=Xe[O]=Xe[C]=!1;var Ze={};Ze[v]=Ze[y]=Ze[A]=Ze[k]=Ze[m]=Ze[g]=Ze[R]=Ze[N]=Ze[F]=Ze[U]=Ze[M]=Ze[w]=Ze[S]=Ze[I]=Ze[x]=Ze[D]=Ze[O]=Ze[P]=Ze[j]=Ze[L]=Ze[B]=Ze[q]=!0,Ze[b]=Ze[_]=Ze[C]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,ct=ut&&rt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ft=lt&&lt.isArrayBuffer,pt=lt&&lt.isDate,dt=lt&&lt.isMap,ht=lt&&lt.isRegExp,vt=lt&&lt.isSet,yt=lt&&lt.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function gt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function wt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function St(e,t){return!(null==e||!e.length)&&Rt(e,t,0)>-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function xt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Dt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Ot(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ct=Mt("length");function At(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function kt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Rt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):kt(e,Ft,n)}function Nt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ft(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Mt(e){return function(t){return null==t?i:t[e]}}function jt(e){return function(t){return null==e?i:e[t]}}function Lt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Bt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Gt(e,t){return Tt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function zt(e,t){for(var n=-1,r=e.length;++n<r&&Rt(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&Rt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=jt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ht=jt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Xt(e){return Ye.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=ze.lastIndex=0;ze.test(e);)++t;return t}(e):Ct(e)}function an(e){return Xt(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var un=jt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?ot:cn.defaults(ot.Object(),t,cn.pick(ot,He))).Array,ie=t.Date,Ee=t.Error,we=t.Function,Se=t.Math,Ie=t.Object,Te=t.RegExp,xe=t.String,De=t.TypeError,Oe=r.prototype,Pe=we.prototype,Ce=Ie.prototype,Ae=t["__core-js_shared__"],ke=Pe.toString,Re=Ce.hasOwnProperty,Ne=0,Fe=(n=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Ce.toString,Me=ke.call(Ie),je=ot._,Le=Te("^"+ke.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ut?t.Buffer:i,qe=t.Symbol,$e=t.Uint8Array,Ve=Be?Be.allocUnsafe:i,ze=en(Ie.getPrototypeOf,Ie),Ye=Ie.create,et=Ce.propertyIsEnumerable,rt=Oe.splice,it=qe?qe.isConcatSpreadable:i,at=qe?qe.iterator:i,st=qe?qe.toStringTag:i,ct=function(){try{var e=co(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Ct=ie&&ie.now!==ot.Date.now&&ie.now,jt=t.setTimeout!==ot.setTimeout&&t.setTimeout,ln=Se.ceil,fn=Se.floor,pn=Ie.getOwnPropertySymbols,dn=Be?Be.isBuffer:i,hn=t.isFinite,vn=Oe.join,yn=en(Ie.keys,Ie),mn=Se.max,gn=Se.min,bn=ie.now,_n=t.parseInt,En=Se.random,wn=Oe.reverse,Sn=co(t,"DataView"),In=co(t,"Map"),Tn=co(t,"Promise"),xn=co(t,"Set"),Dn=co(t,"WeakMap"),On=co(Ie,"create"),Pn=Dn&&new Dn,Cn={},An=Lo(Sn),kn=Lo(In),Rn=Lo(Tn),Nn=Lo(xn),Fn=Lo(Dn),Un=qe?qe.prototype:i,Mn=Un?Un.valueOf:i,jn=Un?Un.toString:i;function Ln(e){if(ns(e)&&!Qa(e)&&!(e instanceof Vn)){if(e instanceof $n)return e;if(Re.call(e,"__wrapped__"))return Bo(e)}return new $n(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Qn(e);this.size=t.size}function Kn(e,t){var n=Qa(e),r=!n&&Ga(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?qt(e.length,xe):[],u=s.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,u))||s.push(c);return s}function Hn(e){var t=e.length;return t?e[zr(0,t-1)]:i}function Jn(e,t){return No(Di(e),ar(t,0,e.length))}function Xn(e){return No(Di(e))}function Zn(e,t,n){(n!==i&&!qa(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Re.call(e,t)&&qa(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(qa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Oi(t,ks(t),e)}function ir(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Ds(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var f=Qa(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Di(e,s)}else{var p=po(e),d=p==_||p==E;if(Ka(e))return Ei(e,u);if(p==I||p==v||d&&!o){if(s=c||d?{}:vo(e),!u)return c?function(e,t){return Oi(e,fo(e),t)}(e,function(e,t){return e&&Oi(t,Rs(t),e)}(s,e)):function(e,t){return Oi(e,lo(e),t)}(e,rr(s,e))}else{if(!Ze[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case A:return wi(e);case m:case g:return new i(+e);case k:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case N:case F:case U:case M:case j:case L:case B:case q:return Si(e,n);case w:return new i;case S:case O:return new i(e);case x:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new i;case P:return r=e,Mn?Ie(Mn.call(r)):{}}}(e,p,u)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var y=f?i:(l?c?no:to:c?Rs:ks)(e);return bt(y||e,(function(r,i){y&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ie(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new De(o);return Co((function(){e.apply(i,n)}),t)}function lr(e,t,n,r){var i=-1,o=St,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Tt(t,Vt(n))),r?(o=It,a=!1):t.length>=200&&(o=Qt,a=!1,t=new Wn(t));e:for(;++i<s;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}Ln.templateSettings={escape:K,evaluate:H,interpolate:J,variable:"",imports:{_:Ln}},Ln.prototype=qn.prototype,Ln.prototype.constructor=Ln,$n.prototype=Bn(qn.prototype),$n.prototype.constructor=$n,Vn.prototype=Bn(qn.prototype),Vn.prototype.constructor=Vn,Gn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?i:n}return Re.call(t,e)?t[e]:i},Gn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Re.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?a:t,this},Qn.prototype.clear=function(){this.__data__=[],this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},Qn.prototype.has=function(e){return tr(this.__data__,e)>-1},Qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(In||Qn),string:new Gn}},zn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return so(this,e).get(e)},zn.prototype.has=function(e){return so(this,e).has(e)},zn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ai(br),pr=Ai(_r,!0);function dr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!cs(s):n(s,u)))var u=s,c=a}return c}function vr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=yo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):xt(i,s):r||(i[i.length]=s)}return i}var mr=ki(),gr=ki(!0);function br(e,t){return e&&mr(e,t,ks)}function _r(e,t){return e&&gr(e,t,ks)}function Er(e,t){return wt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[jo(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return Qa(e)?r:xt(r,n(e))}function Ir(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Ie(e)?function(e){var t=Re.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=Ue.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return Ue.call(e)}(e)}function Tr(e,t){return e>t}function xr(e,t){return null!=e&&Re.call(e,t)}function Dr(e,t){return null!=e&&t in Ie(e)}function Or(e,t,n){for(var o=n?It:St,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Tt(p,Vt(t))),l=gn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Wn(u&&p):i}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var v=p[d],y=t?t(v):v;if(v=n||0!==v?v:0,!(h?Qt(h,y):o(f,y,n))){for(u=s;--u;){var m=c[u];if(!(m?Qt(m,y):o(e[u],y,n)))continue e}h&&h.push(y),f.push(v)}}return f}function Pr(e,t,n){var r=null==(e=xo(e,t=mi(t,e)))?e:e[jo(Jo(t))];return null==r?i:mt(r,e,n)}function Cr(e){return ns(e)&&Ir(e)==v}function Ar(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Qa(e),u=Qa(t),c=s?y:po(e),l=u?y:po(t),f=(c=c==v?I:c)==I,p=(l=l==v?I:l)==I,d=c==l;if(d&&Ka(e)){if(!Ka(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Yn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!o(new $e(e),new $e(t)));case m:case g:case S:return qa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case x:case O:return e==t+"";case w:var s=Zt;case D:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Zi(s(e),s(t),r,i,o,a);return a.delete(e),l;case P:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=f&&Re.call(e,"__wrapped__"),_=p&&Re.call(t,"__wrapped__");if(h||_){var E=h?e.value():e,T=_?t.value():t;return a||(a=new Yn),o(E,T,n,r,a)}}return!!d&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,u=to(e),c=u.length;if(c!=to(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:Re.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=s;++l<c;){var y=e[f=u[l]],m=t[f];if(r)var g=s?r(m,y,f,t,e,a):r(y,m,f,e,t,a);if(!(g===i?y===m||o(y,m,n,r,a):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Ar,o))}function kr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ie(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var p=new Yn;if(r)var d=r(l,f,c,e,t,p);if(!(d===i?Ar(f,l,3,r,p):d))return!1}}return!0}function Rr(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Xa(e)?Le:ve).test(Lo(e));var t}function Nr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Qa(e)?Lr(e[0],e[1]):jr(e):du(e)}function Fr(e){if(!wo(e))return yn(e);var t=[];for(var n in Ie(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ur(e,t){return e<t}function Mr(e,t){var n=-1,i=Wa(e)?r(e.length):[];return fr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function jr(e){var t=uo(e);return 1==t.length&&t[0][2]?Io(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Lr(e,t){return bo(e)&&So(t)?Io(jo(e),t):function(n){var r=Ds(n,e);return r===i&&r===t?Os(n,e):Ar(t,r,3)}}function Br(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var u=Oo(e,n),c=Oo(t,n),l=s.get(c);if(l)Zn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):i,p=f===i;if(p){var d=Qa(c),h=!d&&Ka(c),v=!d&&!h&&ls(c);f=c,d||h||v?Qa(u)?f=u:Ya(u)?f=Di(u):h?(p=!1,f=Ei(c,!0)):v?(p=!1,f=Si(c,!0)):f=[]:os(c)||Ga(c)?(f=u,Ga(u)?f=gs(u):ts(u)&&!Xa(u)||(f=vo(c))):p=!1}p&&(s.set(c,f),o(f,c,r,a,s),s.delete(c)),Zn(e,n,f)}}(e,t,s,n,Br,r,o);else{var u=r?r(Oo(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Zn(e,s,u)}}),Rs)}function qr(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function $r(e,t,n){t=t.length?Tt(t,(function(e){return Qa(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Tt(t,Vt(ao()));var i=Mr(e,(function(e,n,i){var o=Tt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Ii(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wr(e,a);n(s,a)&&Jr(o,mi(a,e),s)}return o}function Gr(e,t,n,r){var i=r?Nt:Rt,o=-1,a=t.length,s=e;for(e===t&&(t=Di(t)),n&&(s=Tt(e,Vt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?rt.call(e,i,1):ci(e,i)}}return e}function zr(e,t){return e+fn(En()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Ao(To(e,t,iu),e+"")}function Kr(e){return Hn(qs(e))}function Hr(e,t){var n=qs(e);return No(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=jo(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];(l=r?r(f,c,u):i)===i&&(l=ts(f)?f:mo(t[o+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Xr=Pn?function(e,t){return Pn.set(e,t),e}:iu,Zr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ei(e){return No(qs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,iu,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=cs(t),l=t===i;o<a;){var f=fn((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,v=p==p,y=cs(p);if(s)var m=r||v;else m=l?v&&(r||d):u?v&&d&&(r||!h):c?v&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);m?o=f+1:a=f}return gn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!qa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:cs(e)?p:+e}function si(e){if("string"==typeof e)return e;if(Qa(e))return Tt(e,si)+"";if(cs(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=St,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=It;else if(o>=200){var c=t?null:Wi(e);if(c)return nn(c);a=!1,i=Qt,u=new Wn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function ci(e,t){return null==(e=xo(e,t=mi(t,e)))||delete e[jo(Jo(t))]}function li(e,t,n,r){return Jr(e,t,n(wr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,xt([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=lr(a[o]||s,e[u],t,n));return ui(yr(a,1),t,n)}function hi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function vi(e){return Ya(e)?e:[]}function yi(e){return"function"==typeof e?e:iu}function mi(e,t){return Qa(e)?e:bo(e,t)?[e]:Mo(bs(e))}var gi=Yr;function bi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var _i=lt||function(e){return ot.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Si(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ii(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=cs(e),s=t!==i,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Ti(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=mn(a-s,0),f=r(c+l),p=!i;++u<c;)f[u]=t[u];for(;++o<s;)(p||o<a)&&(f[n[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function xi(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=mn(a-u,0),p=r(f+l),d=!i;++o<f;)p[o]=e[o];for(var h=o;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||o<a)&&(p[h+n[s]]=e[o++]);return p}function Di(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Oi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?ir(n,u,c):er(n,u,c)}return n}function Pi(e,t){return function(n,r){var i=Qa(n)?gt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Ci(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&go(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ie(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ai(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ie(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=Ie(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ri(e){return function(t){var n=Xt(t=bs(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?bi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return Dt(Xs(Gs(t).replace(Ge,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ui(e){return function(t,n,r){var o=Ie(t);if(!Wa(t)){var a=ao(n,3);t=ks(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Mi(e){return eo((function(t){var n=t.length,r=n,a=$n.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new De(o);if(a&&!u&&"wrapper"==io(s))var u=new $n([],!0)}for(r=u?r:n;++r<n;){var c=io(s=t[r]),l="wrapper"==c?ro(s):i;u=l&&_o(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[io(l[0])].apply(u,l[3]):1==s.length&&_o(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Qa(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function ji(e,t,n,o,a,s,u,l,f,p){var d=t&c,h=1&t,v=2&t,y=24&t,m=512&t,g=v?i:Fi(e);return function i(){for(var c=arguments.length,b=r(c),_=c;_--;)b[_]=arguments[_];if(y)var E=oo(i),w=Yt(b,E);if(o&&(b=Ti(b,o,a,y)),s&&(b=xi(b,s,u,y)),c-=w,y&&c<p){var S=tn(b,E);return Qi(e,t,ji,i.placeholder,n,b,S,l,f,p-c)}var I=h?n:this,T=v?I[e]:e;return c=b.length,l?b=Do(b,l):m&&c>1&&b.reverse(),d&&f<c&&(b.length=f),this&&this!==ot&&this instanceof i&&(T=g||Fi(T)),T.apply(I,b)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function qi(e){return eo((function(t){return t=Tt(t,Vt(ao())),Yr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function $i(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,ln(e/on(t)));return Xt(t)?bi(an(r),0,e).join(""):r.slice(0,e)}function Vi(e){return function(t,n,o){return o&&"number"!=typeof o&&go(t,n,o)&&(n=o=i),t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n,i){for(var o=-1,a=mn(ln((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:hs(o),e)}}function Gi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Qi(e,t,n,r,o,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,l,f],h=n.apply(i,d);return _o(e)&&Po(h,d),h.placeholder=r,ko(h,e,t)}function zi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:gn(vs(n),292))&&hn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Wi=xn&&1/nn(new xn([,-0]))[1]==l?function(e){return new xn(e)}:cu;function Yi(e){return function(t){var n=po(t);return n==w?Zt(t):n==D?rn(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new De(o);var v=a?a.length:0;if(v||(t&=-97,a=l=i),p=p===i?p:mn(vs(p),0),d=d===i?d:vs(d),v-=l?l.length:0,64&t){var y=a,m=l;a=l=i}var g=h?i:ro(e),b=[e,t,n,a,l,y,m,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ti(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?xi(l,u,t[6]):u,e[6]=l?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,g),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===i?h?0:e.length:mn(b[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var o=Fi(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=oo(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:tn(u,l);return(s-=f.length)<n?Qi(e,t,ji,a.placeholder,i,u,f,i,i,n-s):mt(this&&this!==ot&&this instanceof a?o:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?ji.apply(i,b):function(e,t,n,i){var o=1&t,a=Fi(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),p=this&&this!==ot&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return mt(p,o?n:this,f)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return ko((g?Xr:Po)(_,b),e,t)}function Hi(e,t,n,r){return e===i||qa(e,Ce[n])&&!Re.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,i,Ji,a),a.delete(t)),e}function Xi(e){return os(e)?i:e}function Zi(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Wn:i;for(a.set(e,t),a.set(t,e);++p<u;){var v=e[p],y=t[p];if(r)var m=s?r(y,v,p,t,e,a):r(v,y,p,e,t,a);if(m!==i){if(m)continue;d=!1;break}if(h){if(!Pt(t,(function(e,t){if(!Qt(h,t)&&(v===e||o(v,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(v!==y&&!o(v,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function eo(e){return Ao(To(e,i,zo),e+"")}function to(e){return Sr(e,ks,lo)}function no(e){return Sr(e,Rs,fo)}var ro=Pn?function(e){return Pn.get(e)}:cu;function io(e){for(var t=e.name+"",n=Cn[t],r=Re.call(Cn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Re.call(Ln,"placeholder")?Ln:e).placeholder}function ao(){var e=Ln.iteratee||ou;return e=e===ou?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function uo(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function co(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var lo=pn?function(e){return null==e?[]:(e=Ie(e),wt(pn(e),(function(t){return et.call(e,t)})))}:yu,fo=pn?function(e){for(var t=[];e;)xt(t,lo(e)),e=ze(e);return t}:yu,po=Ir;function ho(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=jo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&mo(a,i)&&(Qa(e)||Ga(e))}function vo(e){return"function"!=typeof e.constructor||wo(e)?{}:Bn(ze(e))}function yo(e){return Qa(e)||Ga(e)||!!(it&&e&&e[it])}function mo(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function go(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&mo(t,n.length):"string"==r&&t in n)&&qa(n[t],e)}function bo(e,t){if(Qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||Z.test(e)||!X.test(e)||null!=t&&e in Ie(t)}function _o(e){var t=io(e),n=Ln[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Sn&&po(new Sn(new ArrayBuffer(1)))!=k||In&&po(new In)!=w||Tn&&po(Tn.resolve())!=T||xn&&po(new xn)!=D||Dn&&po(new Dn)!=C)&&(po=function(e){var t=Ir(e),n=t==I?e.constructor:i,r=n?Lo(n):"";if(r)switch(r){case An:return k;case kn:return w;case Rn:return T;case Nn:return D;case Fn:return C}return t});var Eo=Ae?Xa:mu;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function So(e){return e==e&&!ts(e)}function Io(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ie(n))}}function To(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),mt(e,this,u)}}function xo(e,t){return t.length<2?e:wr(e,ti(t,0,-1))}function Do(e,t){for(var n=e.length,r=gn(t.length,n),o=Di(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}function Oo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Po=Ro(Xr),Co=jt||function(e,t){return ot.setTimeout(e,t)},Ao=Ro(Zr);function ko(e,t,n){var r=t+"";return Ao(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ro(e){var t=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=zr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo,Uo,Mo=(Fo=Fa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Uo.size&&Uo.clear(),e})),Uo=Fo.cache,Fo);function jo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Vn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Di(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Yr((function(e,t){return Ya(e)?lr(e,yr(t,1,Ya,!0)):[]})),$o=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),ao(n,2)):[]})),Vo=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),i,n):[]}));function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),kt(e,ao(t,3),i)}function Qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vs(n),o=n<0?mn(r+o,0):gn(o,r-1)),kt(e,ao(t,3),o,!0)}function zo(e){return null!=e&&e.length?yr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=Tt(e,vi);return t.length&&t[0]===e[0]?Or(t):[]})),Ko=Yr((function(e){var t=Jo(e),n=Tt(e,vi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Or(n,ao(t,2)):[]})),Ho=Yr((function(e){var t=Jo(e),n=Tt(e,vi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Or(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Yr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Qr(e,Tt(t,(function(e){return mo(e,n)?+e:e})).sort(Ii)),r}));function ta(e){return null==e?e:wn.call(e)}var na=Yr((function(e){return ui(yr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),ui(yr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ui(yr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=wt(e,(function(e){if(Ya(e))return t=mn(e.length,t),!0})),qt(t,(function(t){return Tt(e,Mt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Tt(n,(function(e){return mt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?lr(e,t):[]})),ua=Yr((function(e){return di(wt(e,Ya))})),ca=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),di(wt(e,Ya),ao(t,2))})),la=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,di(wt(e,Ya),i,t)})),fa=Yr(oa),pa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function da(e){var t=Ln(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new $n(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ya=Pi((function(e,t,n){Re.call(e,n)?++e[n]:ir(e,n,1)})),ma=Ui(Go),ga=Ui(Qo);function ba(e,t){return(Qa(e)?bt:fr)(e,ao(t,3))}function _a(e,t){return(Qa(e)?_t:pr)(e,ao(t,3))}var Ea=Pi((function(e,t,n){Re.call(e,n)?e[n].push(t):ir(e,n,[t])})),wa=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=Wa(e)?r(e.length):[];return fr(e,(function(e){a[++i]=o?mt(t,e,n):Pr(e,t,n)})),a})),Sa=Pi((function(e,t,n){ir(e,n,t)}));function Ia(e,t){return(Qa(e)?Tt:Mr)(e,ao(t,3))}var Ta=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),xa=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&go(e,t[0],t[1])?t=[]:n>2&&go(t[0],t[1],t[2])&&(t=[t[0]]),$r(e,yr(t,1),[])})),Da=Ct||function(){return ot.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new De(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ca=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Ca));r|=u}return Ki(e,r,t,n,i)})),Aa=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Aa));r|=u}return Ki(t,r,e,n,i)}));function ka(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new De(o);function v(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function y(e){return f=e,c=Co(g,t),p?v(e):u}function m(e){var n=e-l;return l===i||n>=t||n<0||d&&e-f>=s}function g(){var e=Da();if(m(e))return b(e);c=Co(g,function(e){var n=t-(e-l);return d?gn(n,s-(e-f)):n}(e))}function b(e){return c=i,h&&r?v(e):(r=a=i,u)}function _(){var e=Da(),n=m(e);if(r=arguments,a=this,l=e,n){if(c===i)return y(l);if(d)return _i(c),c=Co(g,t),v(l)}return c===i&&(c=Co(g,t)),u}return t=ms(t)||0,ts(n)&&(p=!!n.leading,s=(d="maxWait"in n)?mn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),_.cancel=function(){c!==i&&_i(c),f=0,r=l=a=c=i},_.flush=function(){return c===i?u:b(Da())},_}var Ra=Yr((function(e,t){return cr(e,1,t)})),Na=Yr((function(e,t,n){return cr(e,ms(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||zn),n}function Ua(e){if("function"!=typeof e)throw new De(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=zn;var Ma=gi((function(e,t){var n=(t=1==t.length&&Qa(t[0])?Tt(t[0],Vt(ao())):Tt(yr(t,1),Vt(ao()))).length;return Yr((function(r){for(var i=-1,o=gn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return mt(e,this,r)}))})),ja=Yr((function(e,t){var n=tn(t,oo(ja));return Ki(e,u,i,t,n)})),La=Yr((function(e,t){var n=tn(t,oo(La));return Ki(e,64,i,t,n)})),Ba=eo((function(e,t){return Ki(e,256,i,i,i,t)}));function qa(e,t){return e===t||e!=e&&t!=t}var $a=Gi(Tr),Va=Gi((function(e,t){return e>=t})),Ga=Cr(function(){return arguments}())?Cr:function(e){return ns(e)&&Re.call(e,"callee")&&!et.call(e,"callee")},Qa=r.isArray,za=ft?Vt(ft):function(e){return ns(e)&&Ir(e)==A};function Wa(e){return null!=e&&es(e.length)&&!Xa(e)}function Ya(e){return ns(e)&&Wa(e)}var Ka=dn||mu,Ha=pt?Vt(pt):function(e){return ns(e)&&Ir(e)==g};function Ja(e){if(!ns(e))return!1;var t=Ir(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Xa(e){if(!ts(e))return!1;var t=Ir(e);return t==_||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==vs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=dt?Vt(dt):function(e){return ns(e)&&po(e)==w};function is(e){return"number"==typeof e||ns(e)&&Ir(e)==S}function os(e){if(!ns(e)||Ir(e)!=I)return!1;var t=ze(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Me}var as=ht?Vt(ht):function(e){return ns(e)&&Ir(e)==x},ss=vt?Vt(vt):function(e){return ns(e)&&po(e)==D};function us(e){return"string"==typeof e||!Qa(e)&&ns(e)&&Ir(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Ir(e)==P}var ls=yt?Vt(yt):function(e){return ns(e)&&es(e.length)&&!!Xe[Ir(e)]},fs=Gi(Ur),ps=Gi((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return us(e)?an(e):Di(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=po(e);return(t==w?Zt:t==D?nn:qs)(e)}function hs(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?ar(vs(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=he.test(e);return n||ye.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function gs(e){return Oi(e,Rs(e))}function bs(e){return null==e?"":si(e)}var _s=Ci((function(e,t){if(wo(t)||Wa(t))Oi(t,ks(t),e);else for(var n in t)Re.call(t,n)&&er(e,n,t[n])})),Es=Ci((function(e,t){Oi(t,Rs(t),e)})),ws=Ci((function(e,t,n,r){Oi(t,Rs(t),e,r)})),Ss=Ci((function(e,t,n,r){Oi(t,ks(t),e,r)})),Is=eo(or),Ts=Yr((function(e,t){e=Ie(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&go(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Rs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===i||qa(f,Ce[l])&&!Re.call(e,l))&&(e[l]=a[l])}return e})),xs=Yr((function(e){return e.push(i,Ji),mt(Fs,i,e)}));function Ds(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Os(e,t){return null!=e&&ho(e,t,Dr)}var Ps=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n}),tu(iu)),Cs=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),ao),As=Yr(Pr);function ks(e){return Wa(e)?Kn(e):Fr(e)}function Rs(e){return Wa(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Ns=Ci((function(e,t,n){Br(e,t,n)})),Fs=Ci((function(e,t,n,r){Br(e,t,n,r)})),Us=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),Oi(e,no(e),n),r&&(n=sr(n,7,Xi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Ms=eo((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function js(e,t){if(null==e)return{};var n=Tt(no(e),(function(e){return[e]}));return t=ao(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Ls=Yi(ks),Bs=Yi(Rs);function qs(e){return null==e?[]:Gt(e,ks(e))}var $s=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Js(bs(e).toLowerCase())}function Gs(e){return(e=bs(e))&&e.replace(ge,Kt).replace(Qe,"")}var Qs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),zs=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=Ri("toLowerCase"),Ys=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Ni((function(e,t,n){return e+(n?" ":"")+Js(t)})),Hs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Ri("toUpperCase");function Xs(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(We)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zs=Yr((function(e,t){try{return mt(e,i,t)}catch(e){return Ja(e)?e:new Ee(e)}})),eu=eo((function(e,t){return bt(t,(function(t){t=jo(t),ir(e,t,Ca(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Mi(),ru=Mi(!0);function iu(e){return e}function ou(e){return Nr("function"==typeof e?e:sr(e,1))}var au=Yr((function(e,t){return function(n){return Pr(n,e,t)}})),su=Yr((function(e,t){return function(n){return Pr(e,n,t)}}));function uu(e,t,n){var r=ks(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,ks(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return bt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Di(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,xt([this.value()],arguments))})})),e}function cu(){}var lu=qi(Tt),fu=qi(Et),pu=qi(Pt);function du(e){return bo(e)?Mt(jo(e)):function(e){return function(t){return wr(t,e)}}(e)}var hu=Vi(),vu=Vi(!0);function yu(){return[]}function mu(){return!1}var gu,bu=Bi((function(e,t){return e+t}),0),_u=zi("ceil"),Eu=Bi((function(e,t){return e/t}),1),wu=zi("floor"),Su=Bi((function(e,t){return e*t}),1),Iu=zi("round"),Tu=Bi((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new De(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=Oa,Ln.assign=_s,Ln.assignIn=Es,Ln.assignInWith=ws,Ln.assignWith=Ss,Ln.at=Is,Ln.before=Pa,Ln.bind=Ca,Ln.bindAll=eu,Ln.bindKey=Aa,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qa(e)?e:[e]},Ln.chain=da,Ln.chunk=function(e,t,n){t=(n?go(e,t,n):t===i)?1:mn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(ln(o/t));a<o;)u[s++]=ti(e,a,a+=t);return u},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return xt(Qa(n)?Di(n):[n],yr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new De(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(mt(i[0],this,n))return mt(i[1],this,n)}}))},Ln.conforms=function(e){return function(e){var t=ks(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Ln.constant=tu,Ln.countBy=ya,Ln.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Ln.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=ka,Ln.defaults=Ts,Ln.defaultsDeep=xs,Ln.defer=Ra,Ln.delay=Na,Ln.difference=qo,Ln.differenceBy=$o,Ln.differenceWith=Vo,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:vs(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:vs(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0):[]},Ln.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&go(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(Qa(e)?wt:vr)(e,ao(t,3))},Ln.flatMap=function(e,t){return yr(Ia(e,t),1)},Ln.flatMapDeep=function(e,t){return yr(Ia(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),yr(Ia(e,t),n)},Ln.flatten=zo,Ln.flattenDeep=function(e){return null!=e&&e.length?yr(e,l):[]},Ln.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===i?1:vs(t)):[]},Ln.flip=function(e){return Ki(e,512)},Ln.flow=nu,Ln.flowRight=ru,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Ln.functions=function(e){return null==e?[]:Er(e,ks(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Rs(e))},Ln.groupBy=Ea,Ln.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Ln.intersection=Yo,Ln.intersectionBy=Ko,Ln.intersectionWith=Ho,Ln.invert=Ps,Ln.invertBy=Cs,Ln.invokeMap=wa,Ln.iteratee=ou,Ln.keyBy=Sa,Ln.keys=ks,Ln.keysIn=Rs,Ln.map=Ia,Ln.mapKeys=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Ln.mapValues=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Ln.matches=function(e){return jr(sr(e,1))},Ln.matchesProperty=function(e,t){return Lr(e,sr(t,1))},Ln.memoize=Fa,Ln.merge=Ns,Ln.mergeWith=Fs,Ln.method=au,Ln.methodOf=su,Ln.mixin=uu,Ln.negate=Ua,Ln.nthArg=function(e){return e=vs(e),Yr((function(t){return qr(t,e)}))},Ln.omit=Us,Ln.omitBy=function(e,t){return js(e,Ua(ao(t)))},Ln.once=function(e){return Pa(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(Qa(t)||(t=null==t?[]:[t]),Qa(n=r?i:n)||(n=null==n?[]:[n]),$r(e,t,n))},Ln.over=lu,Ln.overArgs=Ma,Ln.overEvery=fu,Ln.overSome=pu,Ln.partial=ja,Ln.partialRight=La,Ln.partition=Ta,Ln.pick=Ms,Ln.pickBy=js,Ln.property=du,Ln.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},Ln.pull=Xo,Ln.pullAll=Zo,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ao(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,i,n):e},Ln.pullAt=ea,Ln.range=hu,Ln.rangeRight=vu,Ln.rearg=Ba,Ln.reject=function(e,t){return(Qa(e)?wt:vr)(e,Ua(ao(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Qr(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new De(o);return Yr(e,t=t===i?t:vs(t))},Ln.reverse=ta,Ln.sampleSize=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),(Qa(e)?Jn:Hr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Ln.shuffle=function(e){return(Qa(e)?Xn:ei)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&go(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===i?r:vs(n)),ti(e,t,n)):[]},Ln.sortBy=xa,Ln.sortedUniq=function(e){return e&&e.length?oi(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&go(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Xt(e)?bi(an(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new De(o);return t=null==t?0:mn(vs(t),0),Yr((function(n){var r=n[t],i=bi(n,0,t);return r&&xt(i,r),mt(e,this,i)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:vs(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?fi(e,ao(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new De(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ka(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=ha,Ln.toArray=ds,Ln.toPairs=Ls,Ln.toPairsIn=Bs,Ln.toPath=function(e){return Qa(e)?Tt(e,jo):cs(e)?[e]:Di(Mo(bs(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=Qa(e),i=r||Ka(e)||ls(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Xa(o)?Bn(ze(e)):{}}return(i?bt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Ln.unary=function(e){return Oa(e,1)},Ln.union=na,Ln.unionBy=ra,Ln.unionWith=ia,Ln.uniq=function(e){return e&&e.length?ui(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?ui(e,ao(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Ln.unset=function(e,t){return null==e||ci(e,t)},Ln.unzip=oa,Ln.unzipWith=aa,Ln.update=function(e,t,n){return null==e?e:li(e,t,yi(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,yi(n),r)},Ln.values=qs,Ln.valuesIn=function(e){return null==e?[]:Gt(e,Rs(e))},Ln.without=sa,Ln.words=Xs,Ln.wrap=function(e,t){return ja(yi(t),e)},Ln.xor=ua,Ln.xorBy=ca,Ln.xorWith=la,Ln.zip=fa,Ln.zipObject=function(e,t){return hi(e||[],t||[],er)},Ln.zipObjectDeep=function(e,t){return hi(e||[],t||[],Jr)},Ln.zipWith=pa,Ln.entries=Ls,Ln.entriesIn=Bs,Ln.extend=Es,Ln.extendWith=ws,uu(Ln,Ln),Ln.add=bu,Ln.attempt=Zs,Ln.camelCase=$s,Ln.capitalize=Vs,Ln.ceil=_u,Ln.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),ar(ms(e),t,n)},Ln.clone=function(e){return sr(e,4)},Ln.cloneDeep=function(e){return sr(e,5)},Ln.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Ln.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Ln.conformsTo=function(e,t){return null==t||ur(e,t,ks(t))},Ln.deburr=Gs,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=Eu,Ln.endsWith=function(e,t,n){e=bs(e),t=si(t);var r=e.length,o=n=n===i?r:ar(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=qa,Ln.escape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(z,Ht):e},Ln.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=Qa(e)?Et:dr;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.find=ma,Ln.findIndex=Go,Ln.findKey=function(e,t){return At(e,ao(t,3),br)},Ln.findLast=ga,Ln.findLastIndex=Qo,Ln.findLastKey=function(e,t){return At(e,ao(t,3),_r)},Ln.floor=wu,Ln.forEach=ba,Ln.forEachRight=_a,Ln.forIn=function(e,t){return null==e?e:mr(e,ao(t,3),Rs)},Ln.forInRight=function(e,t){return null==e?e:gr(e,ao(t,3),Rs)},Ln.forOwn=function(e,t){return e&&br(e,ao(t,3))},Ln.forOwnRight=function(e,t){return e&&_r(e,ao(t,3))},Ln.get=Ds,Ln.gt=$a,Ln.gte=Va,Ln.has=function(e,t){return null!=e&&ho(e,t,xr)},Ln.hasIn=Os,Ln.head=Wo,Ln.identity=iu,Ln.includes=function(e,t,n,r){e=Wa(e)?e:qs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Rt(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),Rt(e,t,i)},Ln.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=gn(t,n)&&e<mn(t,n)}(e=ms(e),t,n)},Ln.invoke=As,Ln.isArguments=Ga,Ln.isArray=Qa,Ln.isArrayBuffer=za,Ln.isArrayLike=Wa,Ln.isArrayLikeObject=Ya,Ln.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ir(e)==m},Ln.isBuffer=Ka,Ln.isDate=Ha,Ln.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Qa(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ls(e)||Ga(e)))return!e.length;var t=po(e);if(t==w||t==D)return!e.size;if(wo(e))return!Fr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Ar(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ar(e,t,i,n):!!r},Ln.isError=Ja,Ln.isFinite=function(e){return"number"==typeof e&&hn(e)},Ln.isFunction=Xa,Ln.isInteger=Za,Ln.isLength=es,Ln.isMap=rs,Ln.isMatch=function(e,t){return e===t||kr(e,t,uo(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,kr(e,t,uo(t),n)},Ln.isNaN=function(e){return is(e)&&e!=+e},Ln.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=is,Ln.isObject=ts,Ln.isObjectLike=ns,Ln.isPlainObject=os,Ln.isRegExp=as,Ln.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=f},Ln.isSet=ss,Ln.isString=us,Ln.isSymbol=cs,Ln.isTypedArray=ls,Ln.isUndefined=function(e){return e===i},Ln.isWeakMap=function(e){return ns(e)&&po(e)==C},Ln.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ir(e)},Ln.join=function(e,t){return null==e?"":vn.call(e,t)},Ln.kebabCase=Qs,Ln.last=Jo,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?mn(r+o,0):gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):kt(e,Ft,o,!0)},Ln.lowerCase=zs,Ln.lowerFirst=Ws,Ln.lt=fs,Ln.lte=ps,Ln.max=function(e){return e&&e.length?hr(e,iu,Tr):i},Ln.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Tr):i},Ln.mean=function(e){return Ut(e,iu)},Ln.meanBy=function(e,t){return Ut(e,ao(t,2))},Ln.min=function(e){return e&&e.length?hr(e,iu,Ur):i},Ln.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Ur):i},Ln.stubArray=yu,Ln.stubFalse=mu,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=Su,Ln.nth=function(e,t){return e&&e.length?qr(e,vs(t)):i},Ln.noConflict=function(){return ot._===this&&(ot._=je),this},Ln.noop=cu,Ln.now=Da,Ln.pad=function(e,t,n){e=bs(e);var r=(t=vs(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return $i(fn(i),n)+e+$i(ln(i),n)},Ln.padEnd=function(e,t,n){e=bs(e);var r=(t=vs(t))?on(e):0;return t&&r<t?e+$i(t-r,n):e},Ln.padStart=function(e,t,n){e=bs(e);var r=(t=vs(t))?on(e):0;return t&&r<t?$i(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(bs(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&go(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return gn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return zr(e,t)},Ln.reduce=function(e,t,n){var r=Qa(e)?Dt:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},Ln.reduceRight=function(e,t,n){var r=Qa(e)?Ot:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},Ln.repeat=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),Wr(bs(e),t)},Ln.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[jo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},Ln.round=Iu,Ln.runInContext=e,Ln.sample=function(e){return(Qa(e)?Hn:Kr)(e)},Ln.size=function(e){if(null==e)return 0;if(Wa(e))return us(e)?on(e):e.length;var t=po(e);return t==w||t==D?e.size:Fr(e).length},Ln.snakeCase=Ys,Ln.some=function(e,t,n){var r=Qa(e)?Pt:ni;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.sortedIndex=function(e,t){return ri(e,t)},Ln.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&qa(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return ri(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(qa(e[n],t))return n}return-1},Ln.startCase=Ks,Ln.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(vs(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Ln.subtract=Tu,Ln.sum=function(e){return e&&e.length?Bt(e,iu):0},Ln.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&go(e,t,n)&&(t=i),e=bs(e),t=ws({},t,r,Hi);var o,a,s=ws({},t.imports,r.imports,Hi),u=ks(s),c=Gt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Te((t.escape||be).source+"|"+f.source+"|"+(f===J?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(d,(function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(l,u).replace(_e,Jt),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var v=Re.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace($,""):p).replace(V,"$1").replace(G,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Zs((function(){return we(u,h+"return "+p).apply(i,c)}));if(y.source=p,Ja(y))throw y;return y},Ln.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ao(t),e-=d;for(var i=qt(r,t);++n<e;)t(n);return i},Ln.toFinite=hs,Ln.toInteger=vs,Ln.toLength=ys,Ln.toLower=function(e){return bs(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?ar(vs(e),-9007199254740991,f):0===e?e:0},Ln.toString=bs,Ln.toUpper=function(e){return bs(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=bs(e))&&(n||t===i))return $t(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return bi(r,zt(r,o),Wt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,0,Wt(r,an(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,zt(r,an(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?vs(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=bs(e)).length;if(Xt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var c=s?bi(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),as(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=Te(o.source,bs(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(si(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Ln.unescape=function(e){return(e=bs(e))&&W.test(e)?e.replace(Q,un):e},Ln.uniqueId=function(e){var t=++Ne;return bs(e)+t},Ln.upperCase=Hs,Ln.upperFirst=Js,Ln.each=ba,Ln.eachRight=_a,Ln.first=Wo,uu(Ln,(gu={},br(Ln,(function(e,t){Re.call(Ln.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Ln.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),bt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:mn(vs(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(iu)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Pr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ua(ao(e)))},Vn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(d)},br(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Ln[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Ln.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Vn,c=s[0],l=u||Qa(t),f=function(e){var t=o.apply(Ln,xt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&l){t=v?t:new Vn(this);var y=e.apply(t,s);return y.__actions__.push({func:ha,args:[f],thisArg:i}),new $n(y,p)}return h&&v?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Qa(i)?i:[],e)}return this[n]((function(n){return t.apply(Qa(n)?n:[],e)}))}})),br(Vn.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";Re.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:t,func:n})}})),Cn[ji(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Di(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Di(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Di(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var v=-1,y=e[c+=t];++v<f;){var m=l[v],g=m.iteratee,b=m.type,_=g(y);if(2==b)y=_;else if(!_){if(1==b)continue e;break e}}h[p++]=y}return h},Ln.prototype.at=va,Ln.prototype.chain=function(){return da(this)},Ln.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new $n(t,this.__chain__)}return this.thru(ta)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,at&&(Ln.prototype[at]=function(){return this}),Ln}();ot._=cn,(r=function(){return cn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},5161:(e,t,n)=>{var r=n(9932),i=n(7206),o=n(9199),a=n(1469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},2492:(e,t,n)=>{var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},7557:(e,t,n)=>{var r=n(9932),i=n(5990),o=n(7406),a=n(1811),s=n(8363),u=n(696),c=n(9021),l=n(6904),f=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,l(e),n),c&&(n=i(n,7,u));for(var f=t.length;f--;)o(n,t[f]);return n}));e.exports=f},9601:(e,t,n)=>{var r=n(371),i=n(9152),o=n(5403),a=n(327);e.exports=function(e){return o(e)?r(a(e)):i(e)}},9704:(e,t,n)=>{var r=n(2908),i=n(7206),o=n(5076),a=n(1469),s=n(6612);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var r=n(4841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var r=n(8601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),o=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9881:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},2628:(e,t,n)=>{var r=n(7415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},2527:(e,t,n)=>{"use strict";t.TypedEmitter=n(7187).EventEmitter},7583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessDeniedReason:()=>c.fEx,Alignment:()=>c.v2N,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>l,BillingModel:()=>c.FzK,BillingPeriod:()=>c.tvV,BillingVendorIdentifier:()=>c.ugv,Currency:()=>c.Fa6,CustomerModel:()=>d,DiscountDurationType:()=>c.C2e,DiscountType:()=>c.Lbh,EntitlementResetPeriod:()=>c.XHu,ExperimentGroupType:()=>c.zOd,FeatureType:()=>c.Tex,FontWeight:()=>c.U9t,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>p,MeterType:()=>c.puT,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>f,PaymentCollection:()=>c.QdX,PricingType:()=>c._HY,PromotionalEntitlementStatus:()=>c.$Vq,SubscriptionScheduleType:()=>c.YVG,SubscriptionStatus:()=>c.yhH,TiersMode:()=>c.PNd,TrialPeriodUnits:()=>c.p13,WidgetType:()=>c.l9N,default:()=>Ru});var r={};n.r(r),n.d(r,{FunctionToString:()=>Jo,InboundFilters:()=>la});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>Is,Dedupe:()=>Rs,GlobalHandlers:()=>cs,HttpContext:()=>ks,LinkedErrors:()=>Ps,TryCatch:()=>ys});var o,a=n(4721),s=n.n(a);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(o||(o={}));var u=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==o.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){s()([o.ERROR,o.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){s()([o.LOG,o.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}(),c=n(890),l={isFallback:!0,hasAccess:!1,accessDeniedReason:c.fEx.Unknown},f={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:c.fEx.Unknown},p={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:c.fEx.Unknown},d=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===c.yhH.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===c.yhH.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===c.$Vq.Active}))},e}(),h=n(6486);const v=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getSdkConfiguration=function(){return this.edgeApiClient?this.edgeApiClient.getSdkConfiguration():this.client.query({query:c.N9K})},e}();var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)},m=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getPaywall=function(e){var t=e.productId,n=e.customerId,r=e.resourceId,i=e.context,o=e.billingCountryCode;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,o):this.client.query({query:c.RVX,fetchPolicy:"no-cache",variables:{input:y(y(y(y(y({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),o?{billingCountryCode:o}:{})}})},e}();const g=m;var b=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},_=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},E=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:c.ZeH,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return b(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this.client.query({query:c.OpC,variables:{input:(0,h.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]}))}))},e.prototype.getCustomerPortal=function(e,t,n){return this.client.query({query:c.$Av,variables:{input:{customerId:e,resourceId:t,productId:n}},fetchPolicy:"no-cache"})},e.prototype.fetchUsageHistory=function(e){var t=e.customerId,n=e.resourceId,r=e.endDate,i=e.startDate,o=e.featureId;return b(this,void 0,void 0,(function(){return _(this,(function(e){return[2,this.client.query({query:c.K0T,variables:{usageHistoryInput:{customerRefId:t,featureRefId:o,resourceRefId:n,startDate:i,endDate:r||new Date}},fetchPolicy:"no-cache"})]}))}))},e}();const w=E,S=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:c.Q$1,fetchPolicy:"no-cache"})},e}();var I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},I.apply(this,arguments)},T=function(){function e(e){this.client=e}return e.prototype.applySubscription=function(e){var t=e.customerId,n=e.planId,r=e.paymentMethodId,i=e.addons,o=e.billableFeatures,a=e.billingInformation,s=e.billingCountryCode,u=e.billingId,l=e.billingPeriod,f=e.metadata,p=e.promotionCode,d=e.resourceId,h=e.skipTrial,v=e.startDate,y=e.unitQuantity;return this.client.mutate({mutation:c.Bkk,variables:{input:{customerId:t,planId:n,paymentMethodId:r,startDate:v,addons:i,billingId:u,billingPeriod:l,unitQuantity:y,billableFeatures:o,additionalMetaData:f,resourceId:d,skipTrial:h,promotionCode:p,billingInformation:this.mapBillingInformation(a),billingCountryCode:s}}})},e.prototype.checkoutState=function(e){var t=e.customerId,n=e.resourceId,r=e.planId,i=e.billingCountryCode;return this.client.query({query:c.jPD,fetchPolicy:"no-cache",variables:{input:I(I({planId:r,customerId:t},n?{resourceId:n}:{}),i?{billingCountryCode:i}:{})}})},e.prototype.mapBillingInformation=function(e){if(e)return{taxRateIds:null==e?void 0:e.taxRateIds,billingAddress:null==e?void 0:e.billingAddress}},e}();const x=T;var D=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},O=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},P=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){var t,n;return D(this,void 0,void 0,(function(){return O(this,(function(r){return[2,this.client.mutate({mutation:c.m5b,variables:{input:{resourceId:e.resourceId,planId:e.planId,customerId:e.customerId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,priceUnitAmount:e.unitQuantity,billableFeatures:e.billableFeatures,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds,taxPercentage:null===(n=null==e?void 0:e.billingInformation)||void 0===n?void 0:n.taxPercentage},promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,skipTrial:e.skipTrial}}})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return D(this,void 0,void 0,(function(){return O(this,(function(t){return[2,this.client.mutate({mutation:c.wO5,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,billableFeatures:e.billableFeatures,addons:e.addons,promotionCode:e.promotionCode}}})]}))}))},e.prototype.previewSubscription=function(e){var t,n,r;return D(this,void 0,void 0,(function(){return O(this,(function(i){return[2,this.client.mutate({mutation:c.ZD9,fetchPolicy:"no-cache",variables:{input:{planId:e.planId,customerId:e.customerId,resourceId:e.resourceId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,billableFeatures:e.billableFeatures,promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds,taxPercentage:null===(n=null==e?void 0:e.billingInformation)||void 0===n?void 0:n.taxPercentage,billingAddress:null===(r=null==e?void 0:e.billingInformation)||void 0===r?void 0:r.billingAddress}}}})]}))}))},e}();const C=P;var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},k=function(){function e(e){this.client=e}return e.prototype.getMockPaywall=function(e){var t=e.productId,n=e.customerId,r=e.context;return this.client.query({query:c._xu,fetchPolicy:"no-cache",variables:{input:A(A(A({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const R=k,N=function(e,t){this.sdkConfiguration=new v(e,t),this.paywall=new g(e,t),this.subscriptions=new x(e),this.mockPaywall=new R(e),this.customers=new w(e),this.coupons=new S(e),this.subscriptionEstimations=new C(e)};var F=n(1609),U=n.n(F),M=n(2492),j=n.n(M),L=c.PO0.JsClientSdk,B=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:q(e),entitlementPollingInterval:3e4,useEntitlementPolling:!0,logConfiguration:{logger:console,logLevel:o.ERROR},enableEdge:!0}};function q(e){var t=new URL(e);return"localhost"===t.hostname?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function $(e){var t=e.customerId;if(!t||U()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),e}var z=function(){return"function"==typeof Symbol},W=function(e){return z()&&Boolean(Symbol[e])},Y=function(e){return W(e)?Symbol[e]:"@@"+e};z()&&!W("observable")&&(Symbol.observable=Symbol("observable"));var K=Y("iterator"),H=Y("observable"),J=Y("species");function X(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Z(e){var t=e.constructor;return void 0!==t&&null===(t=t[J])&&(t=void 0),void 0!==t?t:ce}function ee(e){return e instanceof ce}function te(e){te.log?te.log(e):setTimeout((function(){throw e}))}function ne(e){Promise.resolve().then((function(){try{e()}catch(e){te(e)}}))}function re(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=X(t,"unsubscribe");n&&n.call(t)}}catch(e){te(e)}}function ie(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function oe(e,t,n){e._state="running";var r=e._observer;try{var i=X(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(ie(e),!i)throw n;i.call(r,n);break;case"complete":ie(e),i&&i.call(r)}}catch(e){te(e)}"closed"===e._state?re(e):"running"===e._state&&(e._state="ready")}function ae(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void ne((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(oe(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void oe(e,t,n);e._queue.push({type:t,value:n})}}var se=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new ue(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(ie(this),re(this))},Q(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ue=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ae(this._subscription,"next",e)},t.error=function(e){ae(this._subscription,"error",e)},t.complete=function(){ae(this._subscription,"complete")},Q(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ce=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new se(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Z(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Z(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Z(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Z(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Z(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[H]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=X(t,H);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return ee(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(W("iterator")&&(r=X(t,K)))return new n((function(e){ne((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){ne((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){ne((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Q(e,null,[{key:J,get:function(){return this}}]),e}();z()&&Object.defineProperty(ce,Symbol("extensions"),{value:{symbol:H,hostReportError:te},configurable:!0});var le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fe=function(e){function t(t,n){var r=e.call(this,(function(e){var i=function(){return o=r,a=void 0,u=function(){var r,o;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(a){switch(a.label){case 0:if(this.stopped)return e.complete(),[2];a.label=1;case 1:return a.trys.push([1,3,,4]),o=(r=e).next,[4,t()];case 2:return o.apply(r,[a.sent()]),[3,4];case 3:return a.sent(),[3,4];case 4:return setTimeout((function(){return i()}),n),[2]}}))},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(n,r)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u};i()}))||this;return r.stopped=!1,r}return le(t,e),t.prototype.stopPolling=function(){this.stopped=!0},t}(ce),pe=(n(1905),n(4139)),de=fetch,he=n.n(pe)()(fetch,{retryOn:function(e,t,n){return!(e>5)&&(null!==t||!(null==n?void 0:n.status)||n.status>=500)},retryDelay:function(e){return 1e3*Math.pow(2,e)}}),ve=function(){function e(e,t){this.config=e,this.dynamicData=t}return e.create=function(t,n){return t.enableEdge?new e(t,n):null},e.prototype.getPaywall=function(e,t){var n=e?"/p/".concat(e):"",r=t?"billingCountryCode=".concat(t):"";return this.get("/v1".concat(n,"/paywall.json?").concat(r))},e.prototype.getEntitlements=function(e,t){var n=t?"?resourceId=".concat(t):"";return this.get("/v1/c/".concat(e,"/entitlements.json").concat(n))},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.watchEntitlements=function(e,t,n){var r=this;return new fe((function(){return r.getEntitlements(e,n)}),t)},e.prototype.get=function(e){return t=this,n=void 0,i=function(){var t,n,r,i;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:return(t=new Headers).append("X-API-KEY",this.config.apiKey),t.append("source",L),(n=this.dynamicData.customerToken)&&t.append("X-CUSTOMER-KEY",n),[4,he("".concat(this.config.baseEdgeUri).concat(e),{headers:t,method:"GET"})];case 1:if(!(r=o.sent()).ok)throw(i=new Error("Failed to fetch data from Edge. Reason: ".concat(r.statusText))).response=r,i;return[4,r.json()];case 2:return[2,o.sent()]}}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}u((i=i.apply(t,n||[])).next())}));var t,n,r,i},e}(),ye=function(e,t){return ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ye(e,t)};function me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ge=function(){return ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ge.apply(this,arguments)};function be(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function _e(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Ee(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function we(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var Se=function(e,t){return Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Se(e,t)};Object.create,Object.create;var Ie="Invariant Violation",Te=Object.setPrototypeOf,xe=void 0===Te?function(e,t){return e.__proto__=t,e}:Te,De=function(e){function t(n){void 0===n&&(n=Ie);var r=e.call(this,"number"==typeof n?Ie+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Ie,xe(r,t.prototype),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function Oe(e,t){if(!e)throw new De(t)}var Pe=["debug","log","warn","error","silent"],Ce=Pe.indexOf("log");function Ae(e){return function(){if(Pe.indexOf(e)>=Ce){var t=console[e]||console.log;return t.apply(console,arguments)}}}function ke(e){try{return e()}catch(e){}}!function(e){e.debug=Ae("debug"),e.log=Ae("log"),e.warn=Ae("warn"),e.error=Ae("error")}(Oe||(Oe={}));const Re=ke((function(){return globalThis}))||ke((function(){return window}))||ke((function(){return self}))||ke((function(){return n.g}))||ke((function(){return Function("return this")()}));var Ne="__",Fe=[Ne,Ne].join("DEV");const Ue=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Re,Fe,{value:"production"!==ke((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Re[Fe]}}();function Me(e){try{return e()}catch(e){}}var je=Me((function(){return globalThis}))||Me((function(){return window}))||Me((function(){return self}))||Me((function(){return n.g}))||Me((function(){return Function("return this")()})),Le=!1;function Be(e){return null!==e&&"object"==typeof e}function qe(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new De("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new De(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?Oe(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):Oe(1===r.length,44),n=r[0].name.value),ge(ge({},e),{definitions:we([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function $e(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function Ve(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Oe(n,"No fragment named "+e.name.value+"."):Oe(n,45),n;default:return null}}function Ge(e){return{__ref:String(e)}}function Qe(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ze(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return ze(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return ze(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new De('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new De(54);e[t.value]=null}}!je||Me((function(){return"production"}))||Me((function(){return process}))||(Object.defineProperty(je,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Le=!0),n(143).H,Le&&(delete je.process,Le=!1),__DEV__?Oe("boolean"==typeof Ue,Ue):Oe("boolean"==typeof Ue,38);var We=["connection","include","skip","client","rest","export"],Ye=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+Ke(i)+")"}return n.connection.key}var o=e;if(t){var a=Ke(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===We.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+Ke(n[e])+")":o+="@"+e)})),o}),{setStringify:function(e){var t=Ke;return Ke=e,t}}),Ke=function(e){return JSON.stringify(e,He)};function He(e,t){return Be(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function Je(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return ze(n,r,i,t)})),n}return null}function Xe(e){return e.alias?e.alias.value:e.name.value}function Ze(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(et(o)){if("__typename"===o.name.value)return e[Xe(o)]}else{var a=Ze(e,Ve(o,n).selectionSet,n);if("string"==typeof a)return a}}}function et(e){return"Field"===e.kind}function tt(e){return"InlineFragment"===e.kind}function nt(e){__DEV__?Oe(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Oe(e&&"Document"===e.kind,46);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new De('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new De(47);return e}));return __DEV__?Oe(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):Oe(t.length<=1,48),e}function rt(e){return nt(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function it(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function ot(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function at(e){var t=rt(e);return __DEV__?Oe(t&&"query"===t.operation,"Must contain a query definition."):Oe(t&&"query"===t.operation,49),t}function st(e){var t;nt(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new De("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new De(53)}function ut(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&ze(t,e.variable.name,e.defaultValue)})),t}function ct(e,t){return t?t(e):ce.of()}function lt(e){return"function"==typeof e?new dt(e):e}function ft(e){return e.request.length<=1}var pt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return me(t,e),t}(Error),dt=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return ce.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(lt).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=lt(n),o=lt(r||new e(ct));return ft(i)&&ft(o)?new e((function(e){return t(e)?i.request(e)||ce.of():o.request(e)||ce.of()})):new e((function(e,n){return t(e)?i.request(e,n)||ce.of():o.request(e,n)||ce.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=ge({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=ge(ge({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return ge({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?it(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new De("illegal argument: "+i):new De(26)}return e}(t))))||ce.of()},e.concat=function(t,n){var r=lt(t);if(ft(r))return __DEV__&&Oe.warn(new pt("You are calling concat on a terminating link, which will have no effect",r)),r;var i=lt(n);return ft(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||ce.of()}))||ce.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||ce.of()}))||ce.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(ct)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new De("request is not implemented"):new De(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),ht=n(5821),vt=n(5217),yt={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"]},mt=Object.freeze({});function gt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yt,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,v=h&&0!==s.length;if(h){if(c=0===p.length?void 0:f[f.length-1],u=l,l=p.pop(),v){if(i)u=u.slice();else{for(var y={},m=0,g=Object.keys(u);m<g.length;m++){var b=g[m];y[b]=u[b]}u=y}for(var _=0,E=0;E<s.length;E++){var w=s[E][0],S=s[E][1];i&&(w-=_),i&&null===S?(u.splice(w,1),_++):u[w]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,null==(u=l?l[c]:d))continue;l&&f.push(c)}var I,T=void 0;if(!Array.isArray(u)){if(!(0,vt.UG)(u))throw new Error("Invalid AST Node: ".concat((0,ht.Z)(u),"."));var x=bt(t,u.kind,h);if(x){if((T=x.call(t,u,c,l,f,p))===mt)break;if(!1===T){if(!h){f.pop();continue}}else if(void 0!==T&&(s.push([c,T]),!h)){if(!(0,vt.UG)(T)){f.pop();continue}u=T}}}void 0===T&&v&&s.push([c,u]),h?f.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(u))?u:null!==(I=n[u.kind])&&void 0!==I?I:[],a=-1,s=[],l&&p.push(l),l=u)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function bt(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}var _t=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new De("Network request failed. "+t+" is not serializable: "+e.message):new De(23);throw r.parseError=e,r}return n},Et=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},wt=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},St=Object.prototype.hasOwnProperty;function It(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&wt(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||St.call(n,"data")||St.call(n,"errors")||wt(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var Tt=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new De("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new De(22)},xt=n(7392);function Dt(e){return gt(e,{leave:Ot})}var Ot={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return Ct(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=kt("(",Ct(e.variableDefinitions,", "),")"),i=Ct(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?Ct([t,Ct([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+kt(" = ",r)+kt(" ",Ct(i," "))},SelectionSet:function(e){return At(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=kt("",t,": ")+n,s=a+kt("(",Ct(r,", "),")");return s.length>80&&(s=a+kt("(\n",Rt(Ct(r,"\n")),"\n)")),Ct([s,Ct(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+kt(" ",Ct(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return Ct(["...",kt("on ",t),Ct(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(kt("(",Ct(r,", "),")")," ")+"on ".concat(n," ").concat(kt("",Ct(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,xt.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+Ct(e.values,", ")+"]"},ObjectValue:function(e){return"{"+Ct(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+kt("(",Ct(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:Pt((function(e){var t=e.directives,n=e.operationTypes;return Ct(["schema",Ct(t," "),At(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:Pt((function(e){return Ct(["scalar",e.name,Ct(e.directives," ")]," ")})),ObjectTypeDefinition:Pt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Ct(["type",t,kt("implements ",Ct(n," & ")),Ct(r," "),At(i)]," ")})),FieldDefinition:Pt((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(Ft(n)?kt("(\n",Rt(Ct(n,"\n")),"\n)"):kt("(",Ct(n,", "),")"))+": "+r+kt(" ",Ct(i," "))})),InputValueDefinition:Pt((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return Ct([t+": "+n,kt("= ",r),Ct(i," ")]," ")})),InterfaceTypeDefinition:Pt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Ct(["interface",t,kt("implements ",Ct(n," & ")),Ct(r," "),At(i)]," ")})),UnionTypeDefinition:Pt((function(e){var t=e.name,n=e.directives,r=e.types;return Ct(["union",t,Ct(n," "),r&&0!==r.length?"= "+Ct(r," | "):""]," ")})),EnumTypeDefinition:Pt((function(e){var t=e.name,n=e.directives,r=e.values;return Ct(["enum",t,Ct(n," "),At(r)]," ")})),EnumValueDefinition:Pt((function(e){return Ct([e.name,Ct(e.directives," ")]," ")})),InputObjectTypeDefinition:Pt((function(e){var t=e.name,n=e.directives,r=e.fields;return Ct(["input",t,Ct(n," "),At(r)]," ")})),DirectiveDefinition:Pt((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(Ft(n)?kt("(\n",Rt(Ct(n,"\n")),"\n)"):kt("(",Ct(n,", "),")"))+(r?" repeatable":"")+" on "+Ct(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return Ct(["extend schema",Ct(t," "),At(n)]," ")},ScalarTypeExtension:function(e){return Ct(["extend scalar",e.name,Ct(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Ct(["extend type",t,kt("implements ",Ct(n," & ")),Ct(r," "),At(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Ct(["extend interface",t,kt("implements ",Ct(n," & ")),Ct(r," "),At(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return Ct(["extend union",t,Ct(n," "),r&&0!==r.length?"= "+Ct(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return Ct(["extend enum",t,Ct(n," "),At(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return Ct(["extend input",t,Ct(n," "),At(r)]," ")}};function Pt(e){return function(t){return Ct([t.description,e(t)],"\n")}}function Ct(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function At(e){return kt("{\n",Rt(Ct(e,"\n")),"\n}")}function kt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Rt(e){return kt(" ",e.replace(/\n/g,"\n "))}function Nt(e){return-1!==e.indexOf("\n")}function Ft(e){return null!=e&&e.some(Nt)}var Ut={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Mt=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ge(ge({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=ge(ge(ge({},i),e.options),{headers:ge(ge({},i.headers),jt(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=ge(ge({},o),e.http)}));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=Dt(c)),{options:i,body:l}};function jt(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}var Lt=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function Bt(e){return new ce((function(t){t.error(e)}))}var qt=ke((function(){return fetch})),$t=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=e.includeUnusedVariables,s=void 0!==a&&a,u=be(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Tt(r||qt);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new dt((function(e){var t=Et(e,n),i=e.getContext(),a={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,f=u.version;l&&(a["apollographql-client-name"]=l),f&&(a["apollographql-client-version"]=f)}var p,d=ge(ge({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},v=Mt(e,Ut,c,h),y=v.options,m=v.body;if(m.variables&&!s){var g=new Set(Object.keys(m.variables));gt(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&g.delete(e.name.value)}}),g.size&&(m.variables=ge({},m.variables),g.forEach((function(e){delete m.variables[e]})))}if(!y.signal){var b=Lt(),_=b.controller,E=b.signal;(p=_)&&(y.signal=E)}if(o&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),"GET"===y.method){var w=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=_t(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=_t(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,m),S=w.newURI,I=w.parseError;if(I)return Bt(I);t=S}else try{y.body=_t(m,"Payload")}catch(I){return Bt(I)}return new ce((function(n){return(r||ke((function(){return fetch}))||qt)(t,y).then((function(t){return e.setContext({response:t}),t})).then(It(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(){p&&p.abort()}}))}))}(t).request)||this;return n.options=t,n}return me(t,e),t}(dt),Vt=dt.execute;function Gt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}var Qt=Object.prototype,zt=Qt.toString,Wt=Qt.hasOwnProperty,Yt=Function.prototype.toString,Kt=new Map;function Ht(e,t){try{return Jt(e,t)}finally{Kt.clear()}}function Jt(e,t){if(e===t)return!0;var n,r,i,o=zt.call(e);if(o!==zt.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(tn(e,t))return!0;var a=Xt(e),s=Xt(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c<u;++c)if(!Wt.call(t,a[c]))return!1;for(c=0;c<u;++c){var l=a[c];if(!Jt(e[l],t[l]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(tn(e,t))return!0;for(var f=e.entries(),p="[object Map]"===o;;){var d=f.next();if(d.done)break;var h=d.value,v=h[0],y=h[1];if(!t.has(v))return!1;if(p&&!Jt(y,t.get(v)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var m=e.byteLength;if(m===t.byteLength)for(;m--&&e[m]===t[m];);return-1===m;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=Yt.call(e);return g===Yt.call(t)&&(r=en,!((i=(n=g).length-r.length)>=0&&n.indexOf(r,i)===i))}return!1}function Xt(e){return Object.keys(e).filter(Zt,e)}function Zt(e){return void 0!==this[e]}var en="{ [native code] }";function tn(e,t){var n=Kt.get(e);if(n){if(n.has(t))return!0}else Kt.set(e,n=new Set);return n.add(t),!1}var nn,rn,on=function(){return Object.create(null)},an=Array.prototype,sn=an.forEach,un=an.slice,cn=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=on),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return sn.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(un.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),ln="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),fn="function"==typeof WeakSet,pn="function"==typeof Symbol&&"function"==typeof Symbol.for,dn=function(){function e(){this.known=new(fn?WeakSet:Set),this.pool=new cn(ln),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Be(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Be(e)){var t=function(e){return Be(e)?Array.isArray(e)?e.slice(0):ge({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Be(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,u=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[u+t]})),__DEV__&&Object.freeze(c)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),hn=Object.assign((function(e){if(Be(e)){void 0===nn&&vn();var t=nn.admit(e),n=rn.get(t);return void 0===n&&rn.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:vn});function vn(){nn=new dn,rn=new(ln?WeakMap:Map)}function yn(e,t,n){return new ce((function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&f.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){u=!0,s||a&&a.call(r)}},p=e.subscribe(f);return function(){return p.unsubscribe()}}))}function mn(e){return e.errors&&e.errors.length>0||!1}function gn(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var bn={kind:"Field",name:{kind:"Name",value:"__typename"}};function _n(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&_n(t[e.name.value],t)}))}function En(e){return _n(rt(e)||function(e){__DEV__?Oe("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Oe("Document"===e.kind,50),__DEV__?Oe(e.definitions.length<=1,"Fragment must have exactly one definition."):Oe(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?Oe("FragmentDefinition"===t.kind,"Must be a fragment definition."):Oe("FragmentDefinition"===t.kind,52),t}(e),$e(ot(e)))?null:e}function wn(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Sn(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=En(gt(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(wn(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&xn(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(wn(e)(t))return null}}}));return a&&gn(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return En(gt(t,{OperationDefinition:{enter:function(t){return ge(ge({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&gn(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return En(gt(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var In=Object.assign((function(e){return gt(nt(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return et(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(et(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return ge(ge({},e),{selections:we(we([],r,!0),[bn],!1)})}}}}})}),{added:function(e){return e===bn}}),Tn={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&Oe.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function xn(e){var t=[];return e.selections.forEach((function(e){(et(e)||tt(e))&&e.selectionSet?xn(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function Dn(e){if("query"===st(e).operation)return e;var t=gt(e,{OperationDefinition:{enter:function(e){return ge(ge({},e),{operation:"query"})}}});return t}function On(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?Oe(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):Oe(n&&1===n.length,40);var i=n[0];__DEV__?Oe(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):Oe(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?Oe(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):Oe(o&&("Variable"===o.kind||"BooleanValue"===o.kind),42),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?Oe(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):Oe(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function Pn(e,t){return function(e){var t=[];return gt(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function Cn(e){return e&&Pn(["client"],e)&&Pn(["export"],e)}var An=new Map;function kn(e){var t=An.get(e)||1;return An.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Rn(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Nn(e){function t(t){Object.defineProperty(e,t,{value:ce})}return pn&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Fn(e){return e&&"function"==typeof e.then}var Un=function(e){function t(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(e){null!==n.sub&&(n.latest=["next",e],Rn(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),Rn(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Fn(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(),Rn(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 ce(t)]),Fn(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return me(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.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()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(ce);function Mn(e){return Array.isArray(e)&&e.length>0}Nn(Un);var jn,Ln=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,u=n.errorMessage,c=n.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=o||[],l.clientErrors=a||[],l.networkError=s||null,l.message=u||(i="",(Mn((r=l).graphQLErrors)||Mn(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),r.networkError&&(i+=r.networkError.message+"\n"),i=i.replace(/\n$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return me(t,e),t}(Error);function Bn(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"}(jn||(jn={}));var qn=Object.prototype.toString;function $n(e){return Vn(e)}function Vn(e,t){switch(qn.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]=Vn(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]=Vn(e[n],t)})),r;default:return e}}var Gn=Object.assign,Qn=Object.hasOwnProperty,zn=!1,Wn=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Yn)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=rt(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return me(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||jn.ready,r=ge(ge({},t),{loading:Bn(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if((t||"network-only"!==o&&"no-cache"!==o&&"standby"!==o)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Ht(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==jn.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=jn.ready,r.loading=!1),delete r.partial):"no-cache"!==o&&(r.partial=!0),!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||Kn(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Ht(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Ht(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&Qn.call(e,"variables")){var i=at(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&Oe.warn("Called refetch("+JSON.stringify(e)+") for query "+((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")}return e&&!Ht(this.options.variables,e)&&(n.variables=this.options.variables=ge(ge({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,jn.refetch)},t.prototype.fetchMore=function(e){var t=this,n=ge(ge({},e.query?e:ge(ge(ge({},this.options),e),{variables:ge(ge({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=jn.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,jn.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!zn&&(__DEV__&&Oe.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),zn=!0),t.updateQuery((function(e){return o(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()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&Oe.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Ht(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},jn.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?Oe(n,"Attempted to start a polling query without a polling interval."):Oe(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(Bn(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},jn.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=ge(ge({},this.last),{result:this.queryManager.assumeImmutableResults?e:$n(e),variables:t}),Mn(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===jn.refetch||t===jn.fetchMore||t===jn.poll,i=this.options.variables,o=r?Gt(this.options,e):Gn(this.options,Gt(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Ht(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=jn.setVariables)));var a=o.variables&&ge({},o.variables),s=this.fetch(o,t),u={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=u),s.addObserver(u),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),Rn(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=ge(ge({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:jn.error,loading:!1});this.updateLastResult(n,t),Rn(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(ce);function Yn(e){__DEV__&&Oe.error("Unhandled error",e.message,e.stack)}function Kn(e){__DEV__&&Mn(e)&&__DEV__&&Oe.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}Nn(Wn);var Hn=Object.prototype.hasOwnProperty;function Jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xn(e)}function Xn(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new er,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Zn=function(e,t,n){return this.merge(e[n],t[n])},er=function(){function e(e){void 0===e&&(e=Zn),this.reconciler=e,this.isObject=Be,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Be(t)&&Be(e)?(Object.keys(t).forEach((function(i){if(Hn.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,we([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Be(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):ge({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),tr=null,nr={},rr=1,ir="@wry/context:Slot",or=Array,ar=or[ir]||function(){var e=function(){function e(){this.id=["slot",rr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=tr;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===nr)break;return e!==tr&&(tr.slots[this.id]=t),!0}return tr&&(tr.slots[this.id]=nr),!1},e.prototype.getValue=function(){if(this.hasValue())return tr.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=tr;tr={parent:a,slots:o};try{return t.apply(r,n)}finally{tr=a}},e.bind=function(e){var t=tr;return function(){var n=tr;try{return tr=t,e.apply(this,arguments)}finally{tr=n}}},e.noContext=function(e,t,n){if(!tr)return e.apply(n,t);var r=tr;try{return tr=null,e.apply(n,t)}finally{tr=r}},e}();try{Object.defineProperty(or,ir,{value:or[ir]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function sr(){}ar.bind,ar.noContext;var ur,cr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=sr),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.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)},e}(),lr=new ar,fr=Object.prototype.hasOwnProperty,pr=void 0===(ur=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:ur;function dr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var hr=[];function vr(e,t){if(!e)throw new Error(t||"assertion failure")}function yr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var mr=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!_r(this))return gr(this),this.value[0]},e.prototype.recompute=function(e){return vr(!this.recomputing,"already recomputing"),gr(this),_r(this)?function(e,t){return Dr(e),lr.withValue(e,br,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{dr(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,_r(e)||wr(e)}(e),yr(e.value)}(this,e):yr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Er(this),dr(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Dr(this),Sr(this,(function(t,n){t.setDirty(),Or(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=hr.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(pr(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),hr.push(this.deps),this.deps=null)},e.count=0,e}();function gr(e){var t=lr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),_r(e)?Ir(t,e):Tr(t,e),t}function br(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function _r(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Er(e){Sr(e,Ir)}function wr(e){Sr(e,Tr)}function Sr(e,t){var n=e.parents.size;if(n)for(var r=pr(e.parents),i=0;i<n;++i)t(r[i],e)}function Ir(e,t){vr(e.childValues.has(t)),vr(_r(t));var n=!_r(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=hr.pop()||new Set;e.dirtyChildren.add(t),n&&Er(e)}function Tr(e,t){vr(e.childValues.has(t)),vr(!_r(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),xr(e,t),_r(e)||wr(e)}function xr(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(hr.length<100&&hr.push(n),e.dirtyChildren=null))}function Dr(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Or(e,n)})),e.forgetDeps(),vr(null===e.dirtyChildren)}function Or(e,t){t.parents.delete(e),e.childValues.delete(t),xr(e,t)}var Pr={setDirty:!0,dispose:!0,forget:!0};function Cr(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=lr.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(dr(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&fr.call(Pr,n)?n:"setDirty";pr(r).forEach((function(e){return e[i]()})),t.delete(e),dr(r)}},r}function Ar(){var e=new cn("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}Ar();var kr=new Set;function Rr(e,t){void 0===t&&(t=Object.create(null));var n=new cr(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Ar(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new mr(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),kr.add(n),lr.hasValue()||(kr.forEach((function(e){return e.clean()})),kr.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var Nr=new ar,Fr=new WeakMap;function Ur(e){var t=Fr.get(e);return t||Fr.set(e,t={vars:new Set,dep:Cr()}),t}function Mr(e){Ur(e).vars.forEach((function(t){return t.forgetCache(e)}))}function jr(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){Ur(e).dep.dirty(r),Lr(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=Nr.getValue();s&&(i(s),Ur(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Ur(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Lr(e){e.broadcastWatches&&e.broadcastWatches()}var Br=function(){function e(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 e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Jn(t.resolvers,e)})):this.resolvers=Jn(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return _e(this,void 0,void 0,(function(){return Ee(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return ge(ge({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Pn(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){nt(e);var t=Sn([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=gt(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return et(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return ge(ge({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),_e(this,void 0,void 0,(function(){return Ee(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return ge(ge({},t),e.exportedVariables)}))]:[2,ge({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return gt(e,{Directive:{enter:function(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 mt}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Dn(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),_e(this,void 0,void 0,(function(){var a,s,u,c,l,f,p,d,h;return Ee(this,(function(v){return a=st(e),s=ot(e),u=$e(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",p=(f=this).cache,d=f.client,h={fragmentMap:u,context:ge(ge({},n),{cache:p,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return _e(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return Ee(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return _e(u,void 0,void 0,(function(){var s,u;return Ee(this,(function(c){return On(e,o)?et(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[Xe(e)]=t,n))}))]:(tt(e)?s=e:(s=r[e.name.value],__DEV__?Oe(s,"No fragment named "+e.name.value):Oe(s,11)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Xn(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return _e(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,p=this;return Ee(this,(function(d){return r=n.variables,i=e.name.value,o=Xe(e),a=i!==o,s=t[o]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(f=l[a?i:o])&&(u=Promise.resolve(Nr.withValue(this.cache,f,[t,Je(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=s),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)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.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})))},e}(),qr=new(ln?WeakMap:Map);function $r(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return qr.set(e,(qr.get(e)+1)%1e15),n.apply(this,arguments)})}function Vr(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Gr=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;qr.has(n)||(qr.set(n,0),$r(n,"evict"),$r(n,"modify"),$r(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||jn.loading;return this.variables&&this.networkStatus!==jn.loading&&!Ht(this.variables,e.variables)&&(t=jn.setVariables),Ht(e.variables,this.variables)||(this.lastDiff=void 0),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},e.prototype.reset=function(){Vr(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Ht(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Ht(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.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)},e.prototype.notify=function(){var e=this;Vr(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Bn(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=ge(ge({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Ht(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===qr.get(this.cache)&&Ht(t,n.variables)&&Ht(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Mn(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Qr(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:qr.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=jn.ready},e.prototype.markError=function(e){return this.networkStatus=jn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Qr(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!mn(e);return!r&&n&&e.data&&(r=!0),r}var zr=Object.prototype.hasOwnProperty,Wr=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(ln?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=c,this.localState=l||new Br({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new De("QueryManager stopped while query was in flight"):new De(13))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,l=e.onQueryUpdated,f=e.errorPolicy,p=void 0===f?"none":f,d=e.fetchPolicy,h=void 0===d?"network-only":d,v=e.keepRootFields,y=e.context;return _e(this,void 0,void 0,(function(){var e,o,s;return Ee(this,(function(f){switch(f.label){case 0:return __DEV__?Oe(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Oe(t,14),__DEV__?Oe("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Oe("network-only"===h||"no-cache"===h,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,updateQueries:i,update:c,keepRootFields:v}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return yn(s.getObservableFromLink(t,ge(ge({},y),{optimisticResponse:r}),n,!1),(function(f){if(mn(f)&&"none"===p)throw new Ln({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=ge({},f);return"function"==typeof a&&(a=a(d)),"ignore"===p&&mn(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,update:c,updateQueries:i,awaitRefetchQueries:u,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:v})})).subscribe({next:function(e){s.broadcastQueries(),f(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof Ln?t:new Ln({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Qr(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,u=s&&s.queryName;if(u&&zr.call(a,u)){var c=a[u],l=n.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var v=c(h,{mutationResult:r,queryName:f&&it(f)||void 0,queryVariables:p});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=ge(ge({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.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(ge(ge({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Oe.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.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},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),Sn([Tn],nt(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Cn(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:ut(rt(r)),asQuery:ge(ge({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?ge(ge({},e),{operation:"query"}):e}))})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(o),u(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return ge(ge({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=ge(ge({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Gr(this),n=new Wn({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?Oe(e.query,"query option is required. You must specify your GraphQL document in the query option."):Oe(e.query,16),__DEV__?Oe("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Oe("Document"===e.query.kind,17),__DEV__?Oe(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Oe(!e.returnPartialData,18),__DEV__?Oe(!e.pollInterval,"pollInterval option only supported on watchQuery."):Oe(!e.pollInterval,19),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new De("Store reset while query was in flight (not completed in link chain)"):new De(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=jn.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):Be(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):Be(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=kn("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new Wn({queryManager:t,queryInfo:i,options:ge(ge({},e),{fetchPolicy:"network-only"})});Oe(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&Oe.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(Qr(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),mn(o))throw new Ln({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new ce((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,c=this.link,l={query:s,variables:n,operationName:it(s)||void 0,context:this.prepareContext(ge(ge({},t),{forceFetch:!r}))};if(t=l.context,r){var f=u.get(s)||new Map;u.set(s,f);var p=hn(n);if(!(o=f.get(p))){var d=new Un([Vt(c,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&u.delete(s)}))}}else o=new Un([Vt(c,l)])}else o=new Un([ce.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=yn(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return yn(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=Mn(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new Ln({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||jn.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Ln({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=jn.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,c=t.errorPolicy,l=void 0===c?"none":c,f=t.returnPartialData,p=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,v=t.context,y=void 0===v?{}:v,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:y}),g=function(e){return m.variables=e,r.fetchQueryByPolicy(a,m,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return b.cancel(e)}))}));var b=new Un(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return b.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?kn("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Gr&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||jn.loading);var a=t.result;!__DEV__||c||Ht(a,{})||Kn(t.missing);var s=function(e){return ce.of(ge({data:e,loading:Bn(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},v="no-cache"===a?0:n===jn.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,v,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},m=f&&"number"==typeof p&&p!==n&&Bn(n);switch(a){default:case"cache-first":return(g=d()).complete?[h(g,e.markReady())]:c||m?[h(g),y()]:[y()];case"cache-and-network":var g;return(g=d()).complete||c||m?[h(g),y()]:[y()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return m?[h(d()),y()]:[y()];case"no-cache":return m?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Gr(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return ge(ge({},t),{clientAwareness:this.clientAwareness})},e}(),Yr=!1;function Kr(e,t){return Gt(e,t,t.variables&&{variables:ge(ge({},e.variables),t.variables)})}var Hr=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,f=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,v=e.assumeImmutableResults,y=void 0!==v&&v,m=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,_=e.name,E=e.version,w=e.link;if(w||(w=n?new $t({uri:n,credentials:r,headers:i}):dt.empty()),!o)throw __DEV__?new De("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new De(9);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),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),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Yr&&__DEV__&&(Yr=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,I=S&&S.userAgent,T=void 0;"string"==typeof I&&(I.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":I.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&Oe.log("Download the Apollo DevTools for a better development experience: "+T)}this.version="3.4.17",this.localState=new Br({cache:o,client:this,resolvers:m,fragmentMatcher:b}),this.queryManager=new Wr({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:_,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Kr(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=ge(ge({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Kr(this.defaultOptions.query,e)),__DEV__?Oe("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Oe("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=ge(ge({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Kr(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Vt(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&Oe.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),Jr=function(){function e(){this.getFragmentDoc=Rr(qe)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ge(ge({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ge(ge({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=be(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=be(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),Xr=function(e){function t(n,r,i,o){var a=e.call(this,n)||this;return a.message=n,a.path=r,a.query=i,a.variables=o,a.__proto__=t.prototype,a}return me(t,e),t}(Error);function Zr(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){Be(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){Be(e[t])&&n.add(e[t])}))}))),e;var t,n}var ei=Object.prototype.hasOwnProperty;function ti(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))}var ni={dataIdFromObject:ti,addTypename:!0,resultCaching:!0,canonizeResults:!1};function ri(e){var t=e.canonizeResults;return void 0===t?ni.canonizeResults:t}var ii=/^[_a-z][_0-9a-z]*/i;function oi(e){var t=e.match(ii);return t?t[0]:e}function ai(e,t,n){return!!Be(t)&&(Array.isArray(t)?t.every((function(t){return ai(e,t,n)})):e.selections.every((function(e){if(et(e)&&On(e,n)){var r=Xe(e);return ei.call(t,r)&&(!e.selectionSet||ai(e.selectionSet,t[r],n))}return!0})))}function si(e){return Be(e)&&!Qe(e)&&!Array.isArray(e)}var ui=Object.create(null),ci=function(){return ui},li=Object.create(null),fi=function(){function e(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 Zr(Qe(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Qe(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Ge(e);if(Qe(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Ge(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return ge({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),ei.call(this.data,e)){var n=this.data[e];if(n&&ei.call(n,t))return n[t]}return"__typename"===t&&ei.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof vi?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),ei.call(this.data,e)?this.data[e]:this instanceof vi?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Qe(e)&&(e=e.__ref),Qe(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?Oe("string"==typeof n,"store.merge expects a string ID"):Oe("string"==typeof n,1);var a=new er(mi).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=oi(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof vi||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:ui,INVALIDATE:li,isReference:Qe,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Ge(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=oi(u),l=r[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===ci?ui:f(Zr(l),ge(ge({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===li?n.group.dirty(e,u):(p===ui&&(p=void 0),p!==l&&(i[u]=p,o=!0,l=p))}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof vi?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=ci,r):ci)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(ei.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof vi&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){ei.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&ei.call(e,n)||t.delete(n)})),e){var n=e.__META,r=be(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof vi?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){ei.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 vi;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!ei.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){Qe(e)&&(t[e.__ref]=!0),Be(e)&&Object.keys(e).forEach((function(t){var n=e[t];Be(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),pi=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Cr():null,this.keyMaker=new cn(ln)},e.prototype.depend=function(e,t){if(this.d){this.d(di(e,t));var n=oi(t);n!==t&&this.d(di(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(di(e,t),"__exists"===t?"forget":"setDirty")},e}();function di(e,t){return t+"#"+e}function hi(e,t){gi(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new pi(i))||this;return a.stump=new yi(a),a.storageTrie=new cn(ln),o&&a.replace(o),a}return me(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(fi||(fi={}));var vi=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return me(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Ht(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return ge(ge({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return ei.call(this.data,t)?ge(ge({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(fi),yi=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new pi(t.group.caching,t.group))||this}return me(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(vi);function mi(e,t,n){var r=e[n],i=t[n];return Ht(r,i)?r:i}function gi(e){return!!(e instanceof fi&&e.group.caching)}function bi(e,t){return new Xr(e.message,t.path.slice(),t.query,t.variables)}function _i(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Ei=function(){function e(e){var t=this;this.knownResults=new(ln?WeakMap:Map),this.config=Gt(e,{addTypename:!1!==e.addTypename,canonizeResults:ri(e)}),this.canon=e.canon||new dn,this.executeSelectionSet=Rr((function(e){var n,r=e.context.canonizeResults,i=_i(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?ge(ge({},o),{result:t.canon.admit(o.result)}):o:(hi(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:_i,makeCacheKey:function(e,t,n,r){if(gi(n.store))return n.store.makeCacheKey(e,Qe(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Rr((function(e){return hi(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(gi(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new dn},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=ge(ge({},ut(at(n))),o);var f=Ge(i),p=this.executeSelectionSet({selectionSet:st(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:hn(o),canonizeResults:c,fragmentMap:$e(ot(n)),path:[]}}),d=p.missing&&p.missing.length>0;if(d&&!s)throw p.missing[0];return{result:p.result,missing:p.missing,complete:!d}},e.prototype.isFresh=function(e,t,n,r){if(gi(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Qe(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[bi(__DEV__?new De("Dangling reference to missing "+r.__ref+" object"):new De(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},f=u.getFieldValue(r,"__typename");function p(){return l.missing||(l.missing=[])}function d(e){var t;return e.missing&&(t=p()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof f&&!s.rootIdsByTypename[f]&&c.push({__typename:f});var h=new Set(n.selections);h.forEach((function(e){var n;if(On(e,a))if(et(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=Xe(e);o.path.push(l),void 0===u?In.added(e)||p().push(bi(__DEV__?new De("Can't find field '"+e.name.value+"' on "+(Qe(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new De(6),o)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:Qe(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),Oe(o.path.pop()===l)}else{var v=Ve(e,o.fragmentMap);v&&s.fragmentMatches(v,f)&&v.selectionSet.selections.forEach(h.add,h)}}));var v=Xn(c);return l.result=o.canonizeResults?this.canon.admit(v):Zr(v),this.knownResults.set(l.result,n),l},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),Oe(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Qe(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Be(n)&&(__DEV__?Oe(!Qe(n),"Missing selection set for object of type "+function(e,t){return Qe(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):Oe(!Qe(n),7),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),Oe(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),wi=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=rt(r),c=new er;a=ge(ge({},ut(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:hn(a),fragmentMap:$e(ot(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!Qe(f))throw __DEV__?new De("Could not identify object "+JSON.stringify(i)):new De(8);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=Ge(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(Qe(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach((function(e){et(e)&&e.selectionSet&&c.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return c.has(oi(e))})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!Qe(o)&&!Ht(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=oi(n),c=s+"."+u;if(!Oi.has(c)){Oi.add(c);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)})),__DEV__&&Oe.warn("Cache data may be lost when replacing the "+u+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+c+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}}}}(s,i,e,l.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,o.fragmentMap),c=u[0],l=u[1];if("string"==typeof(n=n||c)){var f=o.written[n]||(o.written[n]=[]),p=Ge(n);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(r,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||Ze(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(d.__typename=h);var v=new Set(i.selections);if(v.forEach((function(e){var n;if(On(e,o.variables))if(et(e)){var i=Xe(e),u=r[i],c=o.clientOnly;if(o.clientOnly=c||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==u){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),f=Ii(a,l),p=t.processFieldValue(u,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&Qe(p)){var m=o.incomingById.get(p.__ref);y=m&&m.fields.__typename}var g=s.getMergeFunction(h,e.name.value,y);g?f.info={field:e,typename:h,merge:g}:Di(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||In.added(e)||__DEV__&&Oe.error(("Missing field '"+Xe(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=Ve(e,o.fragmentMap);b&&s.fragmentMatches(b,h,r,o.variables)&&b.selectionSet.selections.forEach(v.add,v)}})),"string"==typeof n){var y=o.incomingById.get(n);return y?(y.fields=o.merge(y.fields,d),y.mergeTree=Ti(y.mergeTree,a),y.selections.forEach(v.add,v),y.selections=v):o.incomingById.set(n,{fields:d,mergeTree:xi(a)?void 0:a,selections:v}),Ge(n)}return d},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,Ii(r,o));return Di(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?$n(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!Qe(n)){var s,u=Array.isArray(n)||!Qe(t)&&!si(t)?void 0:t,c=n;u&&!i&&(i=[Qe(u)?u.__ref:u]);var l=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(u,t),o=l(c,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,n,o,r,i);f!==o&&(s=s||new Map).set(t,f),i&&Oe(i.pop()===t)}})),s&&(n=Array.isArray(c)?c.slice(0):ge({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),Si=[];function Ii(e,t){var n=e.map;return n.has(t)||n.set(t,Si.pop()||{map:new Map}),n.get(t)}function Ti(e,t){if(e===t||!t||xi(t))return e;if(!e||xi(e))return t;var n=e.info&&t.info?ge(ge({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,Ti(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,Ti(t.map.get(n),e.map.get(n)))}))}return i}function xi(e){return!e||!(e.info||e.map.size)}function Di(e,t){var n=e.map,r=n.get(t);r&&xi(r)&&(Si.push(r),n.delete(t))}var Oi=new Set;function Pi(e){var t=kn("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Ci(e){return void 0!==e.args?e.args:e.field?Je(e.field,e.variables):null}Ye.setStringify(hn);var Ai=function(){},ki=function(e,t){return t.fieldName},Ri=function(e,t,n){return(0,n.mergeObjects)(e,t)},Ni=function(e,t){return t},Fi=function(){function e(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=ge({dataIdFromObject:ti},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 e.prototype.identify=function(e,t,n){var r=t&&n?Ze(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,o);if(!Array.isArray(u)){i=u;break}s=Li(u)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=be(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),ei.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Ri:!1===t?Ni:e.merge}a(r,t.merge),r.keyFn=!1===i?Ai:Array.isArray(i)?Li(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?ki:Array.isArray(s)?ji(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||ki)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Oe(!r||r===e,"Cannot change root "+e+" __typename more than once"):Oe(!r||r===e,2),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.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(ii);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!ei.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,o=be(r,["fields"]);Object.assign(n,o),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]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||(l&&__DEV__&&Oe.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;p.forEach(u),c&&f===s.length-1&&ai(e.selectionSet,n,r)&&(c=!1,l=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Ci(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=ji(u)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return ze(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return ze(r,n,i,t)}))),Ye(e.name.value,r,n)}(e.field,e.variables):Ye(r,Ci(e))),!1===t?r:r===oi(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=oi(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=Ui(this,n,e,t,t.store.getStorage(Qe(n)?n.__ref:n,i));return Nr.withValue(this.cache,u,[a,c])}return a}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===Ri?Mi(r.store)(e,t):s===Ni?t:(r.overwrite&&(e=void 0),s(e,t,Ui(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function Ui(e,t,n,r,i){var o=e.getStoreFieldName(n),a=oi(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Ci(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Qe,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(n,i){var o;if("string"==typeof n)o={fieldName:n,from:arguments.length>1?i:t};else{if(!Be(n))return void(__DEV__&&Oe.warn("Unexpected readField arguments: "+Pi(Array.from(arguments))));o=ge({},n),ei.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&Oe.warn("Undefined 'from' passed to readField with arguments "+Pi(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:Mi(r.store)}}function Mi(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new De("Cannot automatically merge arrays"):new De(3);if(Be(t)&&Be(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Qe(t)&&si(n))return e.merge(t.__ref,n),t;if(si(t)&&Qe(n))return e.merge(t,n.__ref),n;if(si(t)&&si(n))return ge(ge({},t),n)}return n}}function ji(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(qi(t,e,!1)):n.fieldName}}function Li(e){var t=new cn(ln);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=Bi(r.selectionSet,r.fragmentMap))}var a=r.keyObject=qi(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function Bi(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(et(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((n.aliases||(n.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((n.subsets||(n.subsets=Object.create(null)))[e.name.value]=Bi(e.selectionSet,t))}else{var a=Ve(e,t);a&&r.add(a.selectionSet)}}))})),n}function qi(e,t,n,r){var i,o,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof o&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[o];a[o]=qi(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;ei.call(e,l)?a[o=t]=e[i=l]:(__DEV__?Oe(!n,"Missing field '"+l+"' while computing key fields"):Oe(!n,4),i=o=void 0)}})),a}var $i=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=jr,n.txCount=0,n.config=function(e){return Gt(ni,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Fi({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return me(t,e),t.prototype.init=function(){var e=this.data=new fi.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new wi(this,this.storeReader=new Ei({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ri(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Rr((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(gi(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,hn({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(ge(ge({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Xr)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(ei.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(ge(ge({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||Ur(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&Mr(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){hn.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Qe(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(ei.call(e,"id"))return!1;e=ge(ge({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),hn.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Mr(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,o=e.removeOptimistic,a=e.onWatchUpdated,s=function(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},u=new Set;a&&!this.txCount&&this.broadcastWatches(ge(ge({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&u.size?(this.broadcastWatches(ge(ge({},e),{onWatchUpdated:function(e,t){var n=a.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=In(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Ht(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Jr);const Vi=JSON.parse('{"g":{"Credentials":["AwsMarketplaceCredentials","HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig"],"ScheduleVariables":["AddonChangeVariables","BillingPeriodChangeVariables","DowngradeChangeVariables","UnitAmountChangeVariables"]}}');var Gi=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,i=e.batchHandler,o=e.batchKey;this.queuedRequests=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=i,this.batchKey=o||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=ge({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new ce((function(e){t.queuedRequests.has(i)||t.queuedRequests.set(i,[]),r||(t.queuedRequests.get(i).push(n),r=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(i).length?t.scheduleQueueConsumption(i):t.batchDebounce&&(clearTimeout(t.scheduledBatchTimer),t.scheduleQueueConsumption(i)),t.queuedRequests.get(i).length===t.batchMax&&t.consumeQueue(i)}))),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var r=n.map((function(e){return e.operation})),i=n.map((function(e){return e.forward})),o=[],a=[],s=[],u=[];n.forEach((function(e,t){o.push(e.observable),a.push(e.next),s.push(e.error),u.push(e.complete)}));var c=this.batchHandler(r,i)||ce.of(),l=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+a.length);return t.result=e,l(t)}e.forEach((function(e,t){a[t]&&a[t].forEach((function(t){return t(e)}))}))},error:l,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),o}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";this.scheduledBatchTimer=setTimeout((function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)}),this.batchInterval)},e}(),Qi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.batchDebounce,o=r.batchInterval,a=void 0===o?10:o,s=r.batchMax,u=void 0===s?0:s,c=r.batchHandler,l=void 0===c?function(){return null}:c,f=r.batchKey,p=void 0===f?function(){return""}:f;return n.batcher=new Gi({batchDebounce:i,batchInterval:a,batchMax:u,batchHandler:l,batchKey:p}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return me(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(dt),zi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.uri,o=void 0===i?"/graphql":i,a=r.fetch,s=r.includeExtensions,u=r.batchInterval,c=r.batchDebounce,l=r.batchMax,f=r.batchKey,p=be(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);Tt(a),a||(a=fetch);var d={http:{includeExtensions:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return n.batchDebounce=c,n.batchInterval=u||10,n.batchMax=l||10,f=f||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return Et(e,o)+JSON.stringify(n)},n.batcher=new Qi({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:f,batchHandler:function(e){var t=Et(e[0],o),n=e[0].getContext(),r={};if(n.clientAwareness){var i=n.clientAwareness,s=i.name,u=i.version;s&&(r["apollographql-client-name"]=s),u&&(r["apollographql-client-version"]=u)}var c,l={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:ge(ge({},r),n.headers)},f=e.map((function(e){return Mt(e,Ut,d,l)})),p=f.map((function(e){return e.body})),h=f[0].options;if("GET"===h.method)return Bt(new Error("apollo-link-batch-http does not support GET requests"));try{h.body=_t(p,"Payload")}catch(e){return Bt(e)}if(!h.signal){var v=Lt(),y=v.controller,m=v.signal;(c=y)&&(h.signal=m)}return new ce((function(n){return a(t,h).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(It(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(){c&&c.abort()}}))}}),n}return me(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(dt),Wi=function(){function e(e,t,n,r){var i=this;this.operation=e,this.nextLink=t,this.delayFor=n,this.retryIf=r,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,n=i.observers;t<n.length;t++){var r=n[t];r&&r.next(e)}},this.onComplete=function(){i.complete=!0;for(var e=0,t=i.observers;e<t.length;e++){var n=t[e];n&&n.complete()}},this.onError=function(e){return _e(i,void 0,void 0,(function(){var t,n,r;return Ee(this,(function(i){switch(i.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(i.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];for(this.error=e,t=0,n=this.observers;t<n.length;t++)(r=n[t])&&r.error(e);return[2]}}))}))}}return e.prototype.subscribe=function(e){if(this.canceled)throw new Error("Subscribing to a retryable link that was canceled is not supported");this.observers.push(e);for(var t=0,n=this.values;t<n.length;t++){var r=n[t];e.next(r)}this.complete?e.complete():this.error&&e.error(this.error)},e.prototype.unsubscribe=function(e){var t=this.observers.indexOf(e);if(t<0)throw new Error("RetryLink BUG! Attempting to unsubscribe unknown observer!");this.observers[t]=null,this.observers.every((function(e){return null===e}))&&this.cancel()},e.prototype.start=function(){this.currentSubscription||this.try()},e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null,this.canceled=!0},e.prototype.try=function(){this.currentSubscription=this.nextLink(this.operation).subscribe({next:this.onNext,error:this.onError,complete:this.onComplete})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout((function(){t.timerId=void 0,t.try()}),e)},e}(),Yi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,o=r.delay;return n.delayFor="function"==typeof o?o:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,o=void 0===i||i,a=t.max,s=void 0===a?1/0:a,u=o?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return o&&(t=Math.random()*t),t}}(o),n.retryIf="function"==typeof i?i:function(e){var t=e||{},n=t.retryIf,r=t.max,i=void 0===r?5:r;return function(e,t,r){return!(e>=i)&&(n?n(r,t):!!r)}}(i),n}return me(t,e),t.prototype.request=function(e,t){var n=new Wi(e,t,this.delayFor,this.retryIf);return n.start(),new ce((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(dt),Ki=n(4147);function Hi(e,t){return new dt((function(n,r){var i={"X-API-KEY":e,source:L},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)}))}var Ji=function(e){return!!e&&![500,400].includes(e.statusCode)};var Xi=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Zi=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},eo=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlements=function(e,t,n){return void 0===t&&(t=!1),Xi(this,void 0,void 0,(function(){return Zi(this,(function(r){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlements(e,n)]:[2,this.client.query({query:c.roX,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache"})]}))}))},e.prototype.pollEntitlements=function(e,t,n){return this.edgeApiClient?this.edgeApiClient.watchEntitlements(e,t,n):this.client.watchQuery({query:c.roX,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r,i){return Xi(this,void 0,void 0,(function(){return Zi(this,(function(o){switch(o.label){case 0:return[4,this.client.mutate({mutation:c.JDz,variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,resourceId:r,requestedUsage:i}},fetchPolicy:"no-cache"})];case 1:return o.sent(),[2]}}))}))},e}();const to=eo;var no,ro=n(5161),io=n.n(ro),oo=n(7557),ao=n.n(oo),so=n(9704),uo=n.n(so),co=function(){return co=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},co.apply(this,arguments)},lo=function(){function e(){var e=this;this.mapApplySubscriptionResults=function(t){var n=t.applySubscription.subscription;return{subscription:n?e.mapSubscription(n):void 0}},this.getResetPeriodData=function(e,t){switch(e){case c.XHu.Month:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||c.pSI.SubscriptionStart}};case c.XHu.Week:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||c.rCU.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?co(co({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:null!=i?i:void 0,feature:e.calculatedEntitlement.feature?co(co({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,o=r.usageLimit,a=r.feature,s=e.featureUsage,u=s.currentUsage,l=s.nextResetDate,f=s.resetPeriod,p=null;return a&&a.featureType===c.Tex.Number&&a.meterType===c.puT.Incremental&&f&&(p={nextResetDate:l,resetPeriod:f}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:null!=o?o:void 0,currentUsage:u,requestedUsage:n||0,resetSettings:p||void 0,feature:e.calculatedEntitlement.feature?co(co({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,o=i.featureType,a=i.meterType,s=o===c.Tex.Number&&(a===c.puT.Incremental||a===c.puT.Fluctuating);switch(o){case c.Tex.Boolean:return this.mapBooleanEntitlement(e,t);case c.Tex.Number:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapCachedEntitlement=function(e,t,n){var r;return e.feature&&(r={id:e.feature.refId,featureType:e.feature.featureType,meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,feature:r},featureUsage:{resetPeriod:e.resetPeriod,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:t||e.currentUsage||0,nextResetDate:n||e.nextResetDate}}},e.prototype.mapCachedEntitlements=function(e){var t=this;return new Map(e.map((function(e){var n;return[(null===(n=e.feature)||void 0===n?void 0:n.refId)||"",t.mapCachedEntitlement(e)]})))},e.prototype.mapPlans=function(e){var t=this;return((null==e?void 0:e.paywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)}))},e.prototype.mapPaywall=function(e){var t=this.mapPlans(e),n=null==e?void 0:e.paywall.configuration,r=!(null==e?void 0:e.paywall.resource)&&(null==e?void 0:e.paywall.activeSubscriptions)||[];return{plans:t,configuration:n,customer:(null==e?void 0:e.paywall.customer)?this.mapCustomer(null==e?void 0:e.paywall.customer,r):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,activeSubscriptions:(null==e?void 0:e.paywall.activeSubscriptions)?this.mapSubscriptions(null==e?void 0:e.paywall.activeSubscriptions):null,currency:e.paywall.currency,paywallCalculatedPricePoints:e.paywall.paywallCalculatedPricePoints}},e.prototype.mapMockPlans=function(e){var t=this;return{plans:((null==e?void 0:e.mockPaywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)})),configuration:e.mockPaywall.configuration,customer:null,resource:null,activeSubscriptions:null,currency:{code:c.Fa6.Usd,symbol:"$"}}},e.prototype.mapCoupons=function(e){var t=this;return e.coupons.edges.map((function(e){return e.node})).map((function(e){return t.mapCoupon(e)}))},e.prototype.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapCustomerPortal=function(e){var t=e.resource?this.mapResource(e.resource):null;return co(co({},e),{resource:t})},e.prototype.mapCheckoutState=function(e){var t=e.configuration,n=e.customer,r=e.plan,i=e.billingIntegration,o=e.resource,a=e.activeSubscription;return{setupSecret:e.setupSecret,configuration:t,customer:this.mapCustomer(n,a?[a]:[]),plan:this.mapPlan(r),resource:o?this.mapResource(o):null,billingIntegration:i,activeSubscription:a?this.mapSubscription(a):null}},e.prototype.mapCustomer=function(e,t){var n,r,i=this;return new d({id:e.refId,name:e.name||void 0,email:e.email||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),hasPaymentMethod:e.hasPaymentMethod,subscriptions:io()(t,(function(e){return i.mapSubscription(e)})),promotionalEntitlements:io()(e.promotionalEntitlements,(function(e){return i.mapPromotionalEntitlement(e)})),metadata:e.additionalMetaData,paymentMethodDetails:this.mapPaymentDetails(e),trialedPlans:(null===(n=e.trialedPlans)||void 0===n?void 0:n.map((function(e){return{productId:e.productRefId,planId:e.planRefId}})))||void 0,eligibleForTrial:null===(r=e.eligibleForTrial)||void 0===r?void 0:r.map((function(e){return{productId:e.productRefId,eligible:e.eligible}})),experimentInfo:ao()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(uo()([r,n,t],(function(e){return e})))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapPriceWithTotalPrice=function(e,t,n){var r=e.feature,i=e.price,o=e.tiersMode,a=e.tiers,s={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:i?i.currency:a[0].unitPrice.currency,tiersMode:o,tiers:a,isTieredPrice:!!o};return r&&(s.feature={featureId:r.refId,displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),s},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.tiers,o=e.tiersMode,a=e.billingId,s=e.billingModel,u=e.billingPeriod,c=e.minUnitQuantity,l=e.maxUnitQuantity,f=e.billingCountryCode,p={pricingModel:s,billingPeriod:u,billingId:a,amount:r?r.amount:null,currency:r?r.currency:i[0].unitPrice.currency,tiersMode:o,tiers:i,isTieredPrice:!!o,minUnitQuantity:c,maxUnitQuantity:l,billingCountryCode:f};return n&&(p.feature={featureId:n.refId,displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),p},e.prototype.mapPlan=function(e,t){var n=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,billingId:e.billingId,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:io()(e.entitlements,(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:io()(e.inheritedEntitlements,(function(e){return n.mapPackageEntitlement(e)})),pricePoints:io()(e.prices,(function(e){return n.mapPrice(e)})),pricingType:e.pricingType,defaultTrialConfig:e.defaultTrialConfig,compatibleAddons:this.mapCompatibleAddons(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData},metadata:e.additionalMetaData}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===c._HY.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===c._HY.Paid?n.filter((function(e){return e.pricingType===c._HY.Paid})):n).map((function(e){return t.mapAddon(e)}))},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return t?{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType:t.featureType,description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:t.meterType===c.puT.Fluctuating||t.meterType===c.puT.Incremental,metadata:t.additionalMetaData},isCustom:e.isCustom||void 0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride}:{usageLimit:e.usageLimit||0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod}},e.prototype.mapPromotionalEntitlement=function(e){var t=e.feature;return{status:e.status,usageLimit:e.usageLimit||0,feature:{id:t.refId,displayName:t.displayName,description:t.description||"",featureType:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===c.puT.Fluctuating||t.meterType===c.puT.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n,r=this,i=e.totalPrice,o=(e.prices||[])[0];return{id:e.refId,resourceId:null===(t=e.resource)||void 0===t?void 0:t.resourceId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),prices:e.prices?e.prices.filter((function(e){return null!==e.price})).map((function(e){return r.mapPrice(e.price,e.usageLimit)})):[],totalPrice:i,price:o&&i&&o.price?this.mapPriceWithTotalPrice(o.price,i,o.usageLimit):null,pricingType:e.pricingType,addons:(null===(n=e.addons)||void 0===n?void 0:n.map((function(e){var t=e.quantity,n=e.addon;return{quantity:t,addon:r.mapAddon(n)}})))||[],startDate:e.startDate,endDate:this.mapDate(e.endDate),trialEndDate:this.mapDate(e.trialEndDate),cancellationDate:this.mapDate(e.cancellationDate),effectiveEndDate:this.mapDate(e.effectiveEndDate),metadata:e.additionalMetaData,experimentInfo:ao()(e.experimentInfo,"__typename"),scheduledUpdates:e.scheduledUpdates||[],futureUpdates:e.futureUpdates||[],latestInvoice:this.mapLatestInvoice(e.latestInvoice),paymentCollection:e.paymentCollection}},e.prototype.mapLatestInvoice=function(e){return e?co(co({},e),{createdAt:this.mapDate(e.createdAt),updatedAt:this.mapDate(e.updatedAt)}):void 0},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t=this;return{id:e.refId,displayName:e.displayName,description:e.description||"",billingId:e.billingId,entitlements:io()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:io()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.mapFallbackBooleanEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason}},e.prototype.mapFallbackNumericEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason,usageLimit:e.value,hasUnlimitedUsage:e.isUnlimited}},e.prototype.mapEntitlementResult=function(e,t,n){return co({hasAccess:e.hasAccess,accessDeniedReason:e.accessDeniedReason,hasUnlimitedUsage:null==t?void 0:t.calculatedEntitlement.hasUnlimitedUsage,usageLimit:null==t?void 0:t.calculatedEntitlement.usageLimit,currentUsage:null==t?void 0:t.featureUsage.currentUsage,requestedUsage:n,nextResetDate:null==t?void 0:t.featureUsage.nextResetDate,resetPeriod:null==t?void 0:t.featureUsage.resetPeriod},this.getResetPeriodData(null==t?void 0:t.featureUsage.resetPeriod,null==t?void 0:t.featureUsage.resetPeriodConfiguration))},e.prototype.mapFallbackMeteredEntitlementResult=function(e,t,n){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason,hasUnlimitedUsage:e.isUnlimited,usageLimit:e.usageLimit,requestedUsage:n}},e.prototype.mapTaxFields=function(e){return(null==e?void 0:e.tax)&&(null==e?void 0:e.taxDetails)?{tax:this.mapMoney(e.tax),taxDetails:{displayName:e.taxDetails.displayName,percentage:e.taxDetails.percentage,inclusive:e.taxDetails.inclusive}}:{}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange,i=e.credits;return co(co(co({total:this.mapMoney(e.total),totalExcludingTax:this.mapMoney(e.totalExcludingTax),subTotal:this.mapMoney(e.subTotal),discountAmount:e.discountAmount?this.mapMoney(e.discountAmount):void 0},this.mapTaxFields(e)),e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?co(co({total:this.mapMoney(t.total),totalExcludingTax:this.mapMoney(t.totalExcludingTax),subTotal:this.mapMoney(t.subTotal),discountAmount:t.discountAmount?this.mapMoney(t.discountAmount):void 0},t.discount?{discount:this.mapDiscount(t.discount)}:{}),this.mapTaxFields(t)):void 0,isPlanDowngrade:!!e.isPlanDowngrade,hasScheduledUpdates:!!e.hasScheduledUpdates,credits:i?{initial:this.mapMoney(i.initial),used:this.mapMoney(i.used),remaining:this.mapMoney(i.remaining)}:void 0})},e.prototype.mapSubscriptionPreviewV2=function(e){var t=e.immediateInvoice,n=e.recurringInvoice,r=e.billingPeriodRange,i=e.hasScheduledUpdates,o=e.isPlanDowngrade;return{immediateInvoice:co(co({},this.mapSubscriptionPreviewInvoice(t)),{proration:t.proration?{credit:this.mapMoney(t.proration.credit),debit:this.mapMoney(t.proration.debit),netAmount:this.mapMoney(t.proration.netAmount),prorationDate:new Date(t.proration.prorationDate),hasProrations:t.proration.hasProrations||void 0}:void 0,credits:t.credits?{initial:this.mapMoney(t.credits.initial),used:this.mapMoney(t.credits.used),remaining:this.mapMoney(t.credits.remaining)}:void 0}),recurringInvoice:n?co({},this.mapSubscriptionPreviewInvoice(n)):void 0,billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},isPlanDowngrade:!!o,hasScheduledUpdates:!!i}},e.prototype.mapSubscriptionPreviewInvoice=function(e){return co(co({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal),totalExcludingTax:this.mapMoney(e.totalExcludingTax),discount:e.discount?this.mapMoney(e.discount):void 0},e.discountDetails?{discountDetails:this.mapDiscount(e.discountDetails)}:{}),this.mapTaxFields(e))},e.prototype.mapDiscount=function(e){var t=e.type,n=e.value,r=e.durationType,i=e.durationInMonths;return co({type:t,value:n,durationType:r},i?{durationInMonths:i}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue}},e.prototype.mapSubscriptions=function(e){var t=this;return e.map((function(e){return t.mapSubscription(e)}))},e.prototype.mapUsageHistory=function(e){return e.usageMeasurements.map((function(e){var t=e.date,n=e.value,r=e.isResetPoint;return{date:new Date(t),value:n,isResetPoint:!!r}}))},e}(),fo=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:c.fEx.NoFeatureEntitlementInSubscription};var i=e.calculatedEntitlement.feature,o=i.featureType,a=i.meterType;switch(o){case c.Tex.Boolean:return{hasAccess:!0};case c.Tex.Number:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===c.puT.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage,u=e.featureUsage.nextResetDate;return a===c.puT.Incremental&&!(0,h.isNil)(u)&&u<(new Date).getTime()&&(s=0),s+(t||0)<=((null===(r=e.calculatedEntitlement)||void 0===r?void 0:r.usageLimit)||0)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:c.fEx.RequestedUsageExceedingLimit}}},e}(),po=function(){function e(e,t,n,r){this.entitlementsApi=e,this.customerId=t,this.loggerService=n,this.resourceId=r}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){var r=this;this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,this.resourceId,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(){}))},e}(),ho=function(){return ho=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ho.apply(this,arguments)},vo=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},yo=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},mo=function(){function e(e,t,n,r,i,o,a,s){this.customerId=e,this.resourceId=t,this.cacheService=n,this.loggerService=a,this.onEntitlementsUpdated=s,this.modelMapper=new lo,this.loadingEntitlements=null,this.entitlementsApi=new to(r,o),this.entitlementCheckReportingService=new po(new to(i,o),e,a,t),this.entitlementsPollingDeferTimeout=null,this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingDeferTimeout=setTimeout((function(){t.entitlementsPollingObserver=t.entitlementsApi.pollEntitlements(t.customerId,e,t.resourceId),t.entitlementsPollingObserver.subscribe((function(n){var r;if(n.errors||!n.data||!n.data.entitlements)return t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.errors),{errors:(null===(r=n.errors)||void 0===r?void 0:r.map((function(e){return e.message})).join(", "))||""}),void t.restartPolling(e);t.storeFetchedEntitlementsInCache(n.data.entitlements)}),(function(n){t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.message),n),t.restartPolling(e)}))}),e)},e.prototype.stopPolling=function(){var e;this.entitlementsPollingDeferTimeout&&clearTimeout(this.entitlementsPollingDeferTimeout),null===(e=this.entitlementsPollingObserver)||void 0===e||e.stopPolling()},e.prototype.restartPolling=function(e){this.stopPolling(),this.startPolling(e)},e.prototype.refresh=function(){return vo(this,void 0,void 0,(function(){return yo(this,(function(e){switch(e.label){case 0:return[4,this.loadEntitlements(!0)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.cacheService.isLoaded()},enumerable:!1,configurable:!0}),e.prototype.getBooleanEntitlement=function(e,t,n){var r=(null==n?void 0:n.shouldTrack)||!1,i=this.cacheService.getEntitlement(e),o=fo.decideEntitlementPolicy(i);if((null==i?void 0:i.calculatedEntitlement.feature)&&i.calculatedEntitlement.feature.featureType!==c.Tex.Boolean)return this.tryTrackEntitlementCheck(r,e,this.modelMapper.mapFallbackBooleanEntitlementResult(t,o)),t;if(!i){var a=this.modelMapper.mapEntitlementResult(o);return this.tryTrackEntitlementCheck(r,e,a),ho(ho({},o),{isFallback:!1})}var s=this.modelMapper.mapEntitlementResult(o,i);return this.tryTrackEntitlementCheck(r,e,s),this.modelMapper.mapBooleanEntitlement(i,o)},e.prototype.getNumericEntitlement=function(e,t,n){var r,i=(null==n?void 0:n.shouldTrack)||!1,o=this.cacheService.getEntitlement(e),a=fo.decideEntitlementPolicy(o);if((null==o?void 0:o.calculatedEntitlement.feature)&&(null===(r=o.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==c.Tex.Number){var s=this.modelMapper.mapFallbackNumericEntitlementResult(t,a);return this.tryTrackEntitlementCheck(i,e,s),t}if(!o){var u=this.modelMapper.mapEntitlementResult(a);return this.tryTrackEntitlementCheck(i,e,u),ho(ho({},a),{isFallback:!1,isUnlimited:!1})}var l=this.modelMapper.mapEntitlementResult(a,o);return this.tryTrackEntitlementCheck(i,e,l),this.modelMapper.mapNumericEntitlement(o,a)},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,o=(null==n?void 0:n.shouldTrack)||!1,a=this.cacheService.getEntitlement(e),s=null==n?void 0:n.requestedUsage,u=fo.decideEntitlementPolicy(a,s);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==c.puT.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==c.puT.Incremental){var l=this.modelMapper.mapFallbackMeteredEntitlementResult(t,u,s);return this.tryTrackEntitlementCheck(o,e,l,s),t}if(!a){var f=this.modelMapper.mapEntitlementResult(u,void 0,s);return this.tryTrackEntitlementCheck(o,e,f,s),ho(ho({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:s||0})}var p=this.modelMapper.mapEntitlementResult(u,a,s);return this.tryTrackEntitlementCheck(o,e,p,s),this.modelMapper.mapMeteredEntitlement(a,u,s)},e.prototype.tryTrackEntitlementCheck=function(e,t,n,r){e&&this.entitlementCheckReportingService.reportEntitlementCheckRequested(t,n,r)},e.prototype.loadEntitlements=function(e){return vo(this,void 0,void 0,(function(){return yo(this,(function(t){switch(t.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote(e)),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,t.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}}))}))},e.prototype.loadEntitlementsFromRemote=function(e){return vo(this,void 0,void 0,(function(){var t;return yo(this,(function(n){switch(n.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId,e,this.resourceId)];case 1:return t=n.sent(),this.storeFetchedEntitlementsInCache(t.data.entitlements),[2]}}))}))},e.prototype.storeFetchedEntitlementsInCache=function(e){var t=this.cacheService.getLastUpdate(),n=this.getLastEntitlementsUpdate(e);if(!(t&&n.getTime()<t.getTime())){var r=this.modelMapper.mapCachedEntitlements(e);this.cacheService.setEntitlements(r,n),this.onEntitlementsUpdated(r)}},e.prototype.getLastEntitlementsUpdate=function(e){return(0,h.max)(e.flatMap((function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]})))||new Date},e.prototype.getEntitlements=function(){return vo(this,void 0,void 0,(function(){var e=this;return yo(this,(function(t){switch(t.label){case 0:return this.cacheService.isLoaded()?[3,2]:[4,this.loadEntitlements()];case 1:t.sent(),t.label=2;case 2:return[2,Array.from(this.cacheService.getEntitlements().values()).map((function(t){var n=fo.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),go=n(2527),bo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_o=function(e){function t(){return e.call(this)||this}return bo(t,e),t}(go.TypedEmitter),Eo=function(){function e(){var e=this;this.setFeatures=function(t){return e.features=new Set(t)},this.entitlements=new Map,this.features=new Set,this.lastUpdate=null}return e.prototype.getEntitlement=function(e){return this.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.setEntitlements=function(e,t){this.entitlements=e,this.lastUpdate=t},e.prototype.getEntitlements=function(){return this.entitlements},e.prototype.getLastUpdate=function(){return this.lastUpdate},e.prototype.isLoaded=function(){return!!this.lastUpdate},e}();!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(no||(no={}));var wo=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=no.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===no.SUCCESS?Promise.resolve():this.initializationStatus===no.FAILED?Promise.reject(this.initFailureError):(this.initializationPromise=new Promise((function(t,n){e.eventEmitter.once("initializeSuccessfully",(function(){t()})),e.eventEmitter.once("initializeFailed",(function(e){n(e)}))})),this.initializationPromise)},e.prototype.signalSuccessInit=function(){this.initializationStatus=no.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=no.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}(),So=n(2991),Io=Object.prototype.toString;function To(e){switch(Io.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return No(e,Error)}}function xo(e,t){return Io.call(e)===`[object ${t}]`}function Do(e){return xo(e,"ErrorEvent")}function Oo(e){return xo(e,"DOMError")}function Po(e){return xo(e,"String")}function Co(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Ao(e){return xo(e,"Object")}function ko(e){return"undefined"!=typeof Event&&No(e,Event)}function Ro(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function No(e,t){try{return e instanceof t}catch(e){return!1}}function Fo(e,t){try{let i=e;var n=[];let o=0,a=0;var r=" > ".length;let s;for(;i&&o++<5&&(s=Uo(i,t),!("html"===s||o>1&&a+n.length*r+s.length>=80));)n.push(s),a+=s.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Uo(e,t){var n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Po(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);var l=["type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function Mo(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function jo(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Lo(e,t){return!!Po(e)&&(xo(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function Bo(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{$o(i,r)}catch(e){}e[t]=i}}function qo(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function $o(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,qo(e,"__sentry_original__",t)}function Vo(e){return e.__sentry_original__}function Go(e){if(To(e))return{message:e.message,name:e.name,stack:e.stack,...zo(e)};if(ko(e)){var t={type:e.type,target:Qo(e.target),currentTarget:Qo(e.currentTarget),...zo(e)};return"undefined"!=typeof CustomEvent&&No(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Qo(e){try{return"undefined"!=typeof Element&&No(e,Element)?Fo(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function zo(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Wo(e,t=40){var n=Object.keys(Go(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Mo(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Mo(r,t)}return""}function Yo(e){return Ko(e,new Map)}function Ko(e,t){if(Ao(e)){if(void 0!==(i=t.get(e)))return i;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=Ko(e[r],t));return n}var i;return Array.isArray(e)?void 0!==(i=t.get(e))?i:(n=[],t.set(e,n),e.forEach((e=>{n.push(Ko(e,t))})),n):e}let Ho;class Jo{constructor(){Jo.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Jo.id}setupOnce(){Ho=Function.prototype.toString,Function.prototype.toString=function(...e){var t=Vo(this)||this;return Ho.apply(t,e)}}}Jo.__initStatic();var Xo=(0,So.R)(),Zo=["debug","info","warn","error","log","assert","trace"];function ea(e){var t=(0,So.R)();if(!("console"in t))return e();var n=t.console,r={};Zo.forEach((e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((e=>{n[e]=r[e]}))}}function ta(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Zo.forEach((n=>{t[n]=(...t)=>{e&&ea((()=>{Xo.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Zo.forEach((e=>{t[e]=()=>{}})),t}let na;function ra(){var e=(0,So.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function ia(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function oa(e){const{message:t,event_id:n}=e;if(t)return t;var r=ia(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function aa(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function sa(e,t){var n=ia(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function ua(e){if(e&&e.__sentry_captured__)return!0;try{qo(e,"__sentry_captured__",!0)}catch(e){}return!1}na="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,So.Y)("logger",ta):ta();var ca=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class la{static __initStatic(){this.id="InboundFilters"}__init(){this.name=la.id}constructor(e={}){this._options=e,la.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(la);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...ca],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${oa(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error(`Cannot extract message for event ${oa(e)}`),[]}return[]}(e).some((e=>t.some((t=>Lo(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${oa(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=fa(e);return!!n&&t.some((e=>Lo(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${oa(e)}.\nUrl: ${fa(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=fa(e);return!n||t.some((e=>Lo(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${oa(e)}.\nUrl: ${fa(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function fa(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error(`Cannot extract url for event ${oa(e)}`),null}}la.__initStatic();var pa,da=n(1170),ha=n(2176);function va(e){return new ma((t=>{t(e)}))}function ya(e){return new ma(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(pa||(pa={}));class ma{__init(){this._state=pa.PENDING}__init2(){this._handlers=[]}constructor(e){ma.prototype.__init.call(this),ma.prototype.__init2.call(this),ma.prototype.__init3.call(this),ma.prototype.__init4.call(this),ma.prototype.__init5.call(this),ma.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ma(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ma(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(pa.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(pa.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===pa.PENDING&&(Ro(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==pa.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===pa.RESOLVED&&e[1](this._value),this._state===pa.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}function ga(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,da.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ra()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class ba{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new ba;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&ga(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof ba?t:this}return e instanceof ba?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Ao(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,da.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([..._a(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new ma(((i,o)=>{var a=e[r];if(null===t||"function"!=typeof a)i(t);else{var s=a({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&na.log(`Event processor "${a.id}" dropped event`),Ro(s)?s.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(e,s,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function _a(){return(0,So.Y)("globalEventProcessors",(()=>[]))}function Ea(e){_a().push(e)}var wa=100;class Sa{__init(){this._stack=[{}]}constructor(e,t=new ba,n=4){this._version=n,Sa.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=ba.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:ra(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)})),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:ra(),i=new Error(e);return this._withClient(((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},a)})),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:ra();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=wa}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,da.yW)(),...e},s=i?ea((()=>i(a,t))):a;null!==s&&n.addBreadcrumb(s,o)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=Ta(this);try{e(this)}finally{Ta(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),ga(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var o=(0,So.R)();const{userAgent:a}=o.navigator||{};var s=function(e){var t=(0,da.ph)(),n={sid:ra(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Yo({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ga(n,e),n}({release:r,environment:i,...t&&{user:t.getUser()},...a&&{userAgent:a},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&ga(u,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=Ia().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ia(){var e=(0,So.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Ta(e){var t=Ia(),n=Oa(t);return Pa(t,e),n}function xa(){var e=Ia();return Da(e)&&!Oa(e).isOlderThan(4)||Pa(e,new Sa),(0,ha.KV)()?function(e){try{var t=Ia().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Oa(e);if(!Da(n)||Oa(n).isOlderThan(4)){var r=Oa(e).getStackTop();Pa(n,new Sa(r.client,ba.clone(r.scope)))}return Oa(n)}catch(t){return Oa(e)}}(e):Oa(e)}function Da(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Oa(e){return(0,So.Y)("hub",(()=>new Sa),e)}function Pa(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var Ca="<anonymous>";function Aa(e){try{return e&&"function"==typeof e&&e.name||Ca}catch(e){return Ca}}function ka(){if(!("fetch"in(0,So.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Ra(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var Na=(0,So.R)(),Fa={},Ua={};function Ma(e,t){Fa[e]=Fa[e]||[],Fa[e].push(t),function(e){if(!Ua[e])switch(Ua[e]=!0,e){case"console":"console"in Na&&Zo.forEach((function(e){e in Na.console&&Bo(Na.console,e,(function(t){return function(...n){ja("console",{args:n,level:e}),t&&t.apply(Na.console,n)}}))}));break;case"dom":!function(){if("document"in Na){var e=ja.bind(null,"dom"),t=Ga(e,!0);Na.document.addEventListener("click",t,!1),Na.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=Na[t]&&Na[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Bo(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=Ga(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),Bo(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in Na){var e=XMLHttpRequest.prototype;Bo(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:Po(t[0])?t[0].toUpperCase():t[0],url:t[1]};Po(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}ja("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?Bo(n,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(n,t)}})):n.addEventListener("readystatechange",o),e.apply(n,t)}})),Bo(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),ja("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!ka())return!1;var e=(0,So.R)();if(Ra(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Ra(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Bo(Na,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:La(t),url:Ba(t)},startTimestamp:Date.now()};return ja("fetch",{...n}),e.apply(Na,t).then((e=>(ja("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw ja("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=(0,So.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=Na.onpopstate;Na.onpopstate=function(...t){var n=Na.location.href,r=qa;if(qa=n,ja("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Bo(Na.history,"pushState",t),Bo(Na.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=qa,i=String(n);qa=i,ja("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":Qa=Na.onerror,Na.onerror=function(e,t,n,r,i){return ja("error",{column:r,error:i,line:n,msg:e,url:t}),!!Qa&&Qa.apply(this,arguments)};break;case"unhandledrejection":za=Na.onunhandledrejection,Na.onunhandledrejection=function(e){return ja("unhandledrejection",e),!za||za.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn("unknown instrumentation type:",e)}}(e)}function ja(e,t){if(e&&Fa[e])for(var n of Fa[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Aa(n)}\nError:`,t)}}function La(e=[]){return"Request"in Na&&No(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ba(e=[]){return"string"==typeof e[0]?e[0]:"Request"in Na&&No(e[0],Request)?e[0].url:String(e[0])}let qa,$a,Va;function Ga(e,t=!1){return n=>{if(n&&Va!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===$a||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Va,n))&&(e({event:n,name:r,global:t}),Va=n),clearTimeout($a),$a=Na.setTimeout((()=>{$a=void 0}),1e3)}}}let Qa=null,za=null;function Wa(e,t=1/0,n=1/0){try{return Ka("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ya(e,t=3,n=102400){var r,i=Wa(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Ya(e,t-1,n):i}function Ka(e,t,r=1/0,i=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u,c=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return Ao(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${Aa(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;if(0===r)return c.replace("object ","");if(a(t))return"[Circular ~]";var l=t;if(l&&"function"==typeof l.toJSON)try{return Ka("",l.toJSON(),r-1,i,o)}catch(e){}var f=Array.isArray(t)?[]:{};let p=0;var d=Go(t);for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h)){if(p>=i){f[h]="[MaxProperties ~]";break}var v=d[h];f[h]=Ka(h,v,r-1,i,o),p+=1}return s(t),f}function Ha(e,t){var n=Xa(e,t),r={type:t&&t.name,value:es(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ja(e,t){return{exception:{values:[Ha(e,t)]}}}function Xa(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Za.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var Za=/Minified React error #\d+;/i;function es(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ts(e,t,n,r,i){let o;if(Do(t)&&t.error)return Ja(e,t.error);if(Oo(t)||xo(t,"DOMException")){var a=t;if("stack"in t)o=Ja(e,t);else{var s=a.name||(Oo(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=ns(e,u,n,r),aa(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return To(t)?Ja(e,t):Ao(t)||ko(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:ko(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Wo(t)}`}]},extra:{__serialized__:Ya(t)}};if(n){var o=Xa(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),sa(o,{synthetic:!0}),o):(o=ns(e,t,n,r),aa(o,`${t}`,void 0),sa(o,{synthetic:!0}),o)}function ns(e,t,n,r){var i={message:t};if(r&&n){var o=Xa(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}function rs(e,t){return xa().captureException(e,{captureContext:t})}function is(e){xa().withScope(e)}let os=0;function as(){return os>0}function ss(){os+=1,setTimeout((()=>{os-=1}))}function us(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Vo(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((e=>us(e,t)));return e.apply(this,i)}catch(e){throw ss(),is((n=>{n.addEventProcessor((e=>(t.mechanism&&(aa(e,void 0,void 0),sa(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),rs(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}$o(i,e),qo(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class cs{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=cs.id}__init2(){this._installFunc={onerror:ls,onunhandledrejection:fs}}constructor(e){cs.prototype.__init.call(this),cs.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function ls(){Ma("error",(e=>{const[t,n,r]=hs();if(!t.getIntegration(cs))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!(as()||u&&u.__sentry_own_request__)){var c=void 0===u&&Po(i)?function(e,t,n,r){let i=Do(e)?e.message:e,o="Error";var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),ps({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):ps(ts(n,u||i,void 0,r,!1),o,a,s);c.level="error",ds(t,u,c,"onerror")}}))}function fs(){Ma("unhandledrejection",(e=>{const[t,n,r]=hs();if(!t.getIntegration(cs))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(as()||i&&i.__sentry_own_request__)return!0;var o=Co(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ts(n,i,void 0,r,!0);o.level="error",ds(t,i,o,"onunhandledrejection")}))}function ps(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=Po(t)&&t.length>0?t:function(){var e=(0,So.R)();try{return e.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function ds(e,t,n,r){sa(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function hs(){var e=xa(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}cs.__initStatic();var vs=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ys{static __initStatic(){this.id="TryCatch"}__init(){this.name=ys.id}constructor(e){ys.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,So.R)();this._options.setTimeout&&Bo(e,"setTimeout",ms),this._options.setInterval&&Bo(e,"setInterval",ms),this._options.requestAnimationFrame&&Bo(e,"requestAnimationFrame",gs),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Bo(XMLHttpRequest.prototype,"send",bs);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:vs).forEach(_s)}}function ms(e){return function(...t){var n=t[0];return t[0]=us(n,{mechanism:{data:{function:Aa(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function gs(e){return function(t){return e.apply(this,[us(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Aa(e)},handled:!0,type:"instrument"}})])}}function bs(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Bo(n,e,(function(t){var n={mechanism:{data:{function:e,handler:Aa(t)},handled:!0,type:"instrument"}},r=Vo(t);return r&&(n.mechanism.data.handler=Aa(r)),us(t,n)}))})),e.apply(this,t)}}function _s(e){var t=(0,So.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Bo(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=us(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Aa(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,us(r,{mechanism:{data:{function:"addEventListener",handler:Aa(r),target:e},handled:!0,type:"instrument"}}),i])}})),Bo(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}ys.__initStatic();var Es=["fatal","error","warning","log","info","debug"];function ws(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}var Ss="Breadcrumbs";class Is{static __initStatic(){this.id=Ss}__init(){this.name=Is.id}constructor(e){Is.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&Ma("console",Ts),this.options.dom&&Ma("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Fo(t.event.target,r):Fo(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&xa().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&Ma("xhr",xs),this.options.fetch&&Ma("fetch",Ds),this.options.history&&Ma("history",Os)}}function Ts(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":Es.includes(t)?t:"log"),message:jo(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${jo(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}xa().addBreadcrumb(n,{input:e.args,level:e.level})}function xs(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};xa().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function Ds(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?xa().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):xa().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Os(e){var t=(0,So.R)();let n=e.from,r=e.to;var i=ws(t.location.href);let o=ws(n);var a=ws(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),xa().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Is.__initStatic();class Ps{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Ps.id}constructor(e={}){Ps.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=xa().getClient();e&&Ea(((t,n)=>{var r=xa().getIntegration(Ps);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&No(i.originalException,Error)))return r;var o=Cs(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function Cs(e,t,n,r,i=[]){if(!No(n[r],Error)||i.length+1>=t)return i;var o=Ha(e,n[r]);return Cs(e,t,n[r],r,[o,...i])}Ps.__initStatic();var As=(0,So.R)();class ks{constructor(){ks.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=ks.id}setupOnce(){Ea((e=>{if(xa().getIntegration(ks)){if(!As.navigator&&!As.location&&!As.document)return e;var t=e.request&&e.request.url||As.location&&As.location.href;const{referrer:r}=As.document||{},{userAgent:i}=As.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e}))}}ks.__initStatic();class Rs{constructor(){Rs.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Rs.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Rs);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Fs(e,t)&&!!Ns(e,t))))}(e,t)||!!function(e,t){var n=Us(t),r=Us(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Fs(e,t)&&!!Ns(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Ns(e,t){let n=Ms(e),r=Ms(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],o=n[e];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function Fs(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Us(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ms(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Rs.__initStatic();let js={};var Ls=(0,So.R)();Ls.Sentry&&Ls.Sentry.Integrations&&(js=Ls.Sentry.Integrations);var Bs={...js,...r,...i},qs="?";function $s(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Vs=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gs=/\((\S*)(?::(\d+))(?::(\d+))\)/,Qs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ws=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ys=function(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var o=i.replace(/\(error: (.*)\)/,"$1");for(var a of t){var s=a(o);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}([30,e=>{var t=Vs.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Gs.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Ks(t[1]||qs,t[2]);return $s(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Qs.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=zs.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||qs;return[r,e]=Ks(r,e),$s(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Ws.exec(e);return t?$s(t[2],t[1]||qs,+t[3],t[4]?+t[4]:void 0):void 0}]),Ks=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:qs,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Hs extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Js(e,t=[]){return[e,t]}function Xs(e,t){const[n,r]=e;return[n,[...r,t]]}function Zs(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function eu(e,t){return(t||new TextEncoder).encode(e)}function tu(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[eu(i,t),e]:i.push("string"==typeof e?eu(e,t):e)}for(var a of r){const[e,t]=a;o(`\n${JSON.stringify(e)}\n`),o("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function nu(e,t){var n="string"==typeof e.data?eu(e.data,t):e.data;return[Yo({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var ru={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function iu(e){return ru[e]}function ou(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ya(new Hs("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new ma(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{va(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(Zs(i,((t,n)=>{var i=iu(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)})),0===o.length)return va();var a=Js(i[0],o),s=t=>{Zs(a,((n,r)=>{e.recordDroppedEvent(t,iu(r))}))};return n.add((()=>t({body:tu(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(var s of o.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),c=1e3*(isNaN(u)?60:u);if(t)for(var l of t.split(";"))i[l]=r+c;else i.all=r+c}else a?i.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof Hs)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error("Skipped sending event due to full buffer"),s("queue_overflow"),va();throw e}))},flush:e=>n.drain(e)}}var au=(0,So.R)();let su;function uu(){if(su)return su;if(Ra(au.fetch))return su=au.fetch.bind(au);var e=au.document;let t=au.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return su=t.bind(au)}function cu(e,t=uu()){return ou(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function lu(e){return ou(e,(function(t){return new ma(((n,r)=>{var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}var fu=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pu(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function du(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function hu(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}function vu(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var yu=[],mu="Not capturing exception because it's already been captured.";class gu{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(gu.prototype.__init.call(this),gu.prototype.__init2.call(this),gu.prototype.__init3.call(this),gu.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=fu.exec(e);if(!t)throw new Hs(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;var l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){var f=c.match(/^\d+/);f&&(c=f[0])}return du({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(n):du(n),function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Hs(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Hs(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Hs(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Hs(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=hu(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(ua(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log(mu));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var o=Co(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&ua(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log(mu));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ga(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):va(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach((e=>{t[e.name]=e,-1===yu.indexOf(e.name)&&(e.setupOnce(Ea,xa),yu.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log(`Integration installed: ${e.name}`))})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var i=vu(n),o=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:s,rate:u}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var c=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,o=i&&function(e){return e[0]}(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:pu(r)},..."transaction"===e.type&&o&&{trace:Yo({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Js(c,[[{type:o,sample_rates:[{id:s,rate:u}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Xs(r,nu(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=vu(n);return Js({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:pu(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var o of(r=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&(ga(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ma((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var o={...e,event_id:e.event_id||t.event_id||ra(),timestamp:e.timestamp||(0,da.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=ba.clone(a).update(t.captureContext));let s=va(o);if(a){var u=[...t.attachments||[],...a.getAttachments()];u.length&&(t.attachments=u),s=a.applyToEvent(o,t)}return s.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Wa(e.data,t,n)}})))},...e.user&&{user:Wa(e.user,t,n)},...e.contexts&&{contexts:Wa(e.contexts,t,n)},...e.extra&&{extra:Wa(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Wa(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Wa(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Mo(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Mo(a.value,o));var s=e.request;s&&s.url&&(s.url=Mo(s.url,o))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?na.log(t.message):na.warn(t)}}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return ya(new Hs("SDK not enabled, will not capture event.","log"));var o="transaction"===e.type;return!o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),ya(new Hs(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Hs("An event processor returned null, will not send event.","log");return t.data&&!0===t.data.__sentry__||o||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Ro(e))return e.then((e=>{if(!Ao(e)&&null!==e)throw new Hs(t);return e}),(e=>{throw new Hs(`beforeSend rejected with ${e}`)}));if(!Ao(e)&&null!==e)throw new Hs(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Hs("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();return!o&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Hs)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Hs(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}var bu="7.11.1",_u=(0,So.R)();class Eu extends gu{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:bu}],version:bu},super(e),e.sendClientReports&&_u.document&&_u.document.addEventListener("visibilitychange",(()=>{"hidden"===_u.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=ts(e,t,n&&n.syntheticException||void 0,r);return sa(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),va(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=ns(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),va(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(Ss);n&&n.options&&n.options.sentry&&xa().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:oa(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log("Sending outcomes:",e);var t,n,r=hu(this._dsn,this._options),i=(t=e,Js((n=this._options.tunnel&&pu(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,da.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(au&&au.navigator)&&"function"==typeof au.navigator.sendBeacon?au.navigator.sendBeacon.bind(au.navigator)(e,t):ka()&&uu()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error(e)}))}(r,tu(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&na.log("No outcomes to send")}}var wu=n(4147),Su=[new Bs.InboundFilters,new Bs.FunctionToString,new Bs.TryCatch,new Bs.Breadcrumbs,new Bs.LinkedErrors,new Bs.Dedupe,new Bs.HttpContext],Iu=new Sa,Tu=function(){return Tu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Tu.apply(this,arguments)},xu=function(){return xu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xu.apply(this,arguments)};function Du(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return[2,Pu(n.sent(),t)];case 3:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}function Ou(e,t){try{return e()}catch(e){return Pu(e,t)}}function Pu(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,o=t.rethrowError,a=t.errorReportMetadata,s=i?i(e):"Operation failed. Error: ".concat(e.message);if(n.error(s,e),function(e,t){var n=t.sdkConfiguration,r=t.errorMessage,i=t.errorReportMetadata;Iu.withScope((function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=xu(xu({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=xu(xu({},o),i)),t.setExtras(o),Iu.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var Cu=function(){return Cu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cu.apply(this,arguments)},Au=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},ku=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Ru=function(){function e(e,t){var n,r,i,o,a,s;this.modelMapper=new lo,this.eventEmitter=new _o,this.showWidgetsWatermark=!1,this.configuration=e,this.edgeApiClient=ve.create(e,e),this.graphClient=(n=this.configuration,r=n.apiKey,i=n.baseUri,o=Hi(r,n),a=function(e){return new $t({uri:"".concat(e,"/graphql"),fetch:de})}(i),s=new Yi({attempts:{max:5,retryIf:Ji},delay:{initial:500,max:2e3,jitter:!0}}),new Hr({link:o.concat(s.concat(a)),cache:new $i({possibleTypes:Vi.g}),name:"js-client-sdk",version:Ki.version})),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=Hi(t,e),i=function(e){return new zi({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:de})}(n);return new Hr({link:r.concat(i),cache:new $i({possibleTypes:Vi.g}),name:"js-client-sdk",version:Ki.version})}(this.configuration),this.loggerService=t,this.apiGateway=new N(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new wo(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t=B(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?q(e.baseUri):t.baseEdgeUri;return j()(t,e,{baseEdgeUri:n})}(t),r=new u(n.logConfiguration.logger,n.logConfiguration.logLevel);!function(e,t){if(U()(e.apiKey)){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}var r=B();e.useEntitlementPolling&&e.entitlementPollingInterval&&e.entitlementPollingInterval<5e3&&(t.error("Entitlements polling interval cannot be lower than 5000ms, using default value ".concat(r.entitlementPollingInterval)),e.entitlementPollingInterval=r.entitlementPollingInterval)}(n,r);var i=new e(n,r);return this.initializeSdk(i).then((function(){n.customerId?n.lazyLoad||i.setCustomerId(n.customerId,n.customerToken,n.resourceId):i.initializationStateTracker.signalSuccessInit()})).catch((function(e){return i.initializationStateTracker.signalFailedInit(e)})),i},e.prototype.waitForInitialization=function(){return Au(this,void 0,void 0,(function(){var e=this;return ku(this,(function(t){return[2,this.initializationStateTracker.getInitializationPromise().then((function(){return e}))]}))}))},e.initializeSdk=function(e){var t,n,r,i;return Au(this,void 0,void 0,(function(){var o,a,s,u;return ku(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return o=l.sent(),a=null===(t=o.data)||void 0===t?void 0:t.sdkConfiguration,!Iu.getClient()&&(null==a?void 0:a.sentryDsn)&&(v=a.sentryDsn,f=void 0,p=void 0,h=function(){var e,t;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return e={dsn:v,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(wu.version),integrations:Su,stackParser:Ys,transport:ka()?cu:lu},t=new Eu(e),Iu.bindClient(t),[2]}))},new((d=void 0)||(d=Promise))((function(e,t){function n(e){try{i(h.next(e))}catch(e){t(e)}}function r(e){try{i(h.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof d?i:new d((function(e){e(i)}))).then(n,r)}i((h=h.apply(f,p||[])).next())}))),e.showWidgetsWatermark=!!(null==a?void 0:a.isWidgetWatermarkEnabled),[3,3];case 2:throw s=l.sent(),401===(null===(n=s.response)||void 0===n?void 0:n.status)||s.graphQLErrors&&(null===(i=null===(r=s.graphQLErrors[0])||void 0===r?void 0:r.extensions)||void 0===i?void 0:i.code)===c.jKp.Unauthenticated?(u="Authentication failed. Double check your SDK key.",e.loggerService.error(u),new Error(u)):(e.loggerService.error("Failed to load sdk configuration",s),s);case 3:return[2]}var f,p,d,h,v}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isResourceLoaded",{get:function(){var e;return(null===(e=this.resourceEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWidgetWatermarkEnabled",{get:function(){return this.showWidgetsWatermark},enumerable:!1,configurable:!0}),e.prototype.addListener=function(e,t){this.eventEmitter.on(e,t)},e.prototype.removeListener=function(e,t){this.eventEmitter.off(e,t)},e.prototype.setCustomerId=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),Au(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return ku(this,(function(c){switch(c.label){case 0:if(r=this.configuration,i=r.customerToken,o=r.customerId,a=r.resourceId,e===o&&t===i&&n===a)return[2];if(this.clearCustomer(),!e)return this.loggerService.log("`setCustomerId` was called without a customerId, did you mean to call `clearCustomer`?"),[2];if(!(0,h.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,h.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,h.isString)(n))throw new Error("resourceId parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.configuration.resourceId=n,this.globalEntitlementsService=new mo(e,void 0,new Eo,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return u.eventEmitter.emit("entitlementsUpdated",e)})),n&&(this.resourceEntitlementsService=new mo(e,n,new Eo,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return u.eventEmitter.emit("entitlementsUpdated",e)}))),this.configuration.useEntitlementPolling&&(this.globalEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),this.resourceEntitlementsService&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval)),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Du((function(){return Au(u,void 0,void 0,(function(){var e,t;return ku(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.loadEntitlements(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.loadEntitlements()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer. Error: ".concat(e.message)},rethrowError:!0})];case 2:return c.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return s=c.sent(),this.initializationStateTracker.signalFailedInit(s),[3,4];case 4:return[2]}}))}))},e.prototype.clearCustomer=function(){var e,t;null===(e=this.globalEntitlementsService)||void 0===e||e.stopPolling(),this.globalEntitlementsService=null,null===(t=this.resourceEntitlementsService)||void 0===t||t.stopPolling(),this.resourceEntitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null,this.configuration.resourceId=null},e.prototype.setResource=function(e){return Au(this,void 0,void 0,(function(){var t,n,r=this;return ku(this,(function(i){switch(i.label){case 0:if(!this.configuration.customerId)throw new Error("`setResource` must be called when customer was set, did you forget to call `setCustomerId`?");if(t=this.configuration.resourceId,e===t)return[2];if(this.clearResource(),!(0,h.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new mo(this.configuration.customerId,e,new Eo,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return r.eventEmitter.emit("entitlementsUpdated",e)})),this.configuration.useEntitlementPolling&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Du((function(){return Au(r,void 0,void 0,(function(){var e;return ku(this,(function(t){return null===(e=this.resourceEntitlementsService)||void 0===e||e.loadEntitlements(),[2]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer resource. Error: ".concat(e.message)},rethrowError:!0})];case 2:return i.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return n=i.sent(),this.initializationStateTracker.signalFailedInit(n),[3,4];case 4:return[2]}}))}))},e.prototype.clearResource=function(){var e;if(!this.configuration.customerId)throw new Error("`clearResource` must be called when customer was set, did you forget to call `setCustomerId`?");null===(e=this.resourceEntitlementsService)||void 0===e||e.stopPolling(),this.resourceEntitlementsService=null,this.configuration.resourceId=null},e.prototype.refresh=function(){return Au(this,void 0,void 0,(function(){var e=this;return ku(this,(function(t){return[2,Du((function(){return Au(e,void 0,void 0,(function(){var e,t;return ku(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.refresh(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.refresh()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to refresh entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getBooleanEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=Cu(Cu({},l),a);return Ou((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getBooleanEntitlement(r,s,i):s:n.globalEntitlementsService.getBooleanEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=Cu(Cu({},f),a);return Ou((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getNumericEntitlement(r,s,i):s:n.globalEntitlementsService.getNumericEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=Cu(Cu({},p),a);return Ou((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getMeteredEntitlement(r,s,i):s:n.globalEntitlementsService.getMeteredEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getPaywall=function(e){var t=void 0===e?{}:e,n=t.productId,r=t.resourceId,i=t.context,o=t.billingCountryCode;return Au(this,void 0,void 0,(function(){var e,t=this;return ku(this,(function(a){return e={productId:n,customerId:this.configuration.customerId,resourceId:r,context:i,billingCountryCode:o},[2,Du((function(){return Au(t,void 0,void 0,(function(){var t;return ku(this,(function(r){switch(r.label){case 0:return(null==n?void 0:n.startsWith("stiggTestData"))?[4,this.apiGateway.mockPaywall.getMockPaywall(e)]:[3,2];case 1:return t=r.sent(),[2,this.modelMapper.mapMockPlans(t.data)];case 2:return[4,this.apiGateway.paywall.getPaywall(e)];case 3:return t=r.sent(),[2,this.modelMapper.mapPaywall(t.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:n}})]}))}))},e.prototype.getCoupons=function(){return Au(this,void 0,void 0,(function(){var e=this;return ku(this,(function(t){return[2,Du((function(){return Au(e,void 0,void 0,(function(){var e;return ku(this,(function(t){switch(t.label){case 0:return[4,this.apiGateway.coupons.getCoupons()];case 1:return e=t.sent(),[2,this.modelMapper.mapCoupons(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get coupons. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomer=function(){return Au(this,void 0,void 0,(function(){var e=this;return ku(this,(function(t){return[2,Du((function(){return Au(e,void 0,void 0,(function(){var e,t,n,r;return ku(this,(function(i){switch(i.label){case 0:return e=$(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=i.sent(),!(n=t.data.getCustomerByRefId))throw new Error("Customer not found");return r=n.subscriptions||[],[2,this.modelMapper.mapCustomer(n,r)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomerPortal=function(e){var t=void 0===e?{}:e,n=t.resourceId,r=t.productId;return Au(this,void 0,void 0,(function(){var e=this;return ku(this,(function(t){return[2,Du((function(){return Au(e,void 0,void 0,(function(){var e,t;return ku(this,(function(i){switch(i.label){case 0:return e=$(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e,n,r)];case 1:return t=i.sent(),[2,this.modelMapper.mapCustomerPortal(t.data.customerPortal)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer portal details. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCheckoutState=function(e){var t=e.planId,n=e.resourceId,r=void 0===n?this.configuration.resourceId:n,i=e.billingCountryCode;return Au(this,void 0,void 0,(function(){var e=this;return ku(this,(function(n){return[2,Du((function(){return Au(e,void 0,void 0,(function(){var e,n;return ku(this,(function(o){switch(o.label){case 0:return e=$(this.configuration),[4,this.apiGateway.subscriptions.checkoutState({customerId:e,resourceId:r,planId:t,billingCountryCode:i})];case 1:return n=o.sent(),[2,this.modelMapper.mapCheckoutState(n.data.checkoutState)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get checkout details. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.applySubscription=function(e){return Au(this,void 0,void 0,(function(){var t=this;return ku(this,(function(n){return[2,Du((function(){return Au(t,void 0,void 0,(function(){var t,n;return ku(this,(function(r){switch(r.label){case 0:return t=$(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(Cu({customerId:t},e))];case 1:if(!(n=r.sent().data)||!n.applySubscription)throw new Error("Invalid response");return[2,this.modelMapper.mapApplySubscriptionResults(n)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to apply subscription to customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.fetchUsageHistory=function(e){return Au(this,void 0,void 0,(function(){var t=this;return ku(this,(function(n){return[2,Du((function(){return Au(t,void 0,void 0,(function(){var t;return ku(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.customers.fetchUsageHistory(e)];case 1:if(!(t=n.sent().data)||!t.usageHistory)throw new Error("Invalid response");return[2,this.modelMapper.mapUsageHistory(t.usageHistory)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to fetch usage history. Error: ".concat(e.message)},rethrowError:!1})]}))}))},e.prototype.getEntitlements=function(e){return Au(this,void 0,void 0,(function(){var t,n,r=this;return ku(this,(function(i){switch(i.label){case 0:return t=function(e){return e?Object.keys(e).map((function(t){return Tu({isFallback:!0,accessDeniedReason:c.fEx.Unknown,feature:{id:t}},e[t])})):[]}(this.configuration.entitlementsFallback),[4,Du((function(){return Au(r,void 0,void 0,(function(){var n;return ku(this,(function(r){return $(this.configuration),e?e!==this.configuration.resourceId?(this.loggerService.log("Resource ID ".concat(e," does not match the current resource ID ").concat(this.configuration.resourceId,".")),this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId," with resourceId ").concat(e,"}")),[2,t]):this.isResourceLoaded&&this.resourceEntitlementsService?(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId)),[2,this.resourceEntitlementsService.getEntitlements()]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getEntitlements()]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})];case 1:return(n=i.sent())?[2,n]:(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlements.")),[2,t])}}))}))},e.prototype.estimateSubscription=function(e){return Au(this,void 0,void 0,(function(){var t=this;return ku(this,(function(n){return[2,Du((function(){return Au(t,void 0,void 0,(function(){var t;return ku(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscription)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return Au(this,void 0,void 0,(function(){var t=this;return ku(this,(function(n){return[2,Du((function(){return Au(t,void 0,void 0,(function(){var t;return ku(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscriptionUpdate(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscriptionUpdate)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription update. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.previewSubscription=function(e){return Au(this,void 0,void 0,(function(){var t=this;return ku(this,(function(n){return[2,Du((function(){return Au(t,void 0,void 0,(function(){var t;return ku(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.previewSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreviewV2(t.previewSubscription)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate checkout. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.waitForCheckoutCompleted=function(e){var t=void 0===e?{}:e,n=t.timeoutMs,r=void 0===n?15e3:n,i=t.refreshOnComplete,o=void 0===i||i;return Au(this,void 0,void 0,(function(){var e,t,n,i,a,s,u,c;return ku(this,(function(l){switch(l.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(e=new URLSearchParams(window.location.search),t=e.get("subscriptionId"),n=e.get("resourceId")||void 0,i=e.get("checkoutCompleted"),!t)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!i||"false"===i.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];a=Date.now(),s=!1,u=null,l.label=1;case 1:return s?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:l.sent(),l.label=3;case 3:return[4,this.getActiveSubscriptions({resourceId:n})];case 4:c=l.sent(),u=c.find((function(e){return e.id===t}))||null,s=!0,l.label=5;case 5:if(!u&&Date.now()-a<r)return[3,1];l.label=6;case 6:if(!u)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(t," is not active"));return o?[4,this.refresh()]:[3,8];case 7:l.sent(),l.label=8;case 8:return[2,u]}}))}))},e.prototype.getActiveSubscriptions=function(e){var t=this,n=(void 0===e?{}:e).resourceId;return Du((function(){return Au(t,void 0,void 0,(function(){var e,t,r;return ku(this,(function(i){switch(i.label){case 0:return e=$(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptions(e,n)];case 1:if(t=i.sent(),!(r=t.data.getActiveSubscriptions))throw new Error("Customer ".concat(n?"or resource ":"","not found"));return[2,this.modelMapper.mapSubscriptions(r)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})},e}()},890:(e,t,n)=>{"use strict";t.YGW=t.qXR=t.LtK=t.QdX=t.TVs=t.iI3=t.zv6=t.pSI=t.puT=t.XY6=t.Kyg=t.Us3=t.B8X=t.qBr=t.uMn=t.U9t=t.Tex=t.iKc=t.GAT=t.bWm=t.o_I=t.i3Z=t.jKp=t.$BG=t.IZr=t.FT8=t.XHu=t.Lbh=t.C2e=t.yEZ=t.Pg9=t.rpU=t.pDu=t.Fa6=t.$i2=t.K79=t.i2A=t.uS8=t.u4I=t.ugv=t.tvV=t.FzK=t.PLi=t.E34=t.Mbo=t.v2N=t.Ijf=t.nwm=t.dpb=t.fEx=void 0,t.d4U=t.RzF=t.cMT=t.hk_=t.Ehw=t.zdd=t.bj8=t.bGH=t.N9N=t.wEB=t.Chb=t.OoB=t.FL0=t.zOd=t.l9N=t.rCU=t.FoD=t._yy=t.Buv=t.p13=t.PNd=t.UAI=t.hYU=t.wRo=t.yhH=t.nOi=t.YVG=t.cUf=t.yBL=t.DWP=t.eSW=t.G6j=t.e1Q=t._oj=t.ird=t.lS0=t.c06=t.w1y=t.ueJ=t.PO0=t.Xm9=t.SrV=t.Zam=t.u0j=t.QZw=t.$Vq=t.ku9=t.JkE=t.p_C=t._HY=void 0,t.EQD=t.N5j=t.Bkk=t.rDA=t.GHz=t.Mal=t.eKV=t.$jJ=t.m76=t.q6C=t.QNm=t.qw4=t.fvX=t.r4r=t.nN6=t.FcI=t.lgL=t.hVT=t.VeJ=t.k8_=t.weZ=t.bEP=t.g31=t.NSU=t.mGS=t.XsQ=t._d$=t.u9g=t.Eph=t.LBz=t.X$1=t.aqW=t.qYx=t.ab2=t.cG4=t.l3m=t.bII=t.cUI=t.o5f=t.JyR=t.URA=t.Eam=t.DFP=t.zjf=t.fYe=t.GBW=t.Ugm=t.hvo=t.J5K=t.bOA=void 0,t.zBW=t.LpH=t.Bve=t.K0T=t._xu=t.jPD=t.$Av=t.N9K=t.Fd7=t.pWb=t.roX=t.RVX=t.Q$1=t.OpC=t.TpL=t.ZeH=t.$02=t._gQ=t.m06=t.bGN=t.WJn=t.JDz=t.ZSL=t.K5h=t.jAf=t.ZD9=t.wO5=t.m5b=t.x3v=void 0;const r=n(5185);var i,o,a,s,u,c,l,f,p,d,h,v,y,m,g,b,_,E,w,S,I,T,x,D,O,P,C,A,k,R,N,F,U,M,j,L,B,q,$,V,G,Q,z,W,Y,K,H,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,fe,pe,de,he,ve,ye,me,ge,be,_e,Ee,we,Se,Ie,Te,xe,De,Oe,Pe,Ce,Ae,ke,Re,Ne;(Ne=t.fEx||(t.fEx={})).CustomerIsArchived="CustomerIsArchived",Ne.CustomerNotFound="CustomerNotFound",Ne.CustomerResourceNotFound="CustomerResourceNotFound",Ne.FeatureNotFound="FeatureNotFound",Ne.NoActiveSubscription="NoActiveSubscription",Ne.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",Ne.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",Ne.Unknown="Unknown",(Re=t.dpb||(t.dpb={})).Active="ACTIVE",Re.Blocked="BLOCKED",(ke=t.nwm||(t.nwm={})).BillingId="billingId",ke.CreatedAt="createdAt",ke.Description="description",ke.DisplayName="displayName",ke.EnvironmentId="environmentId",ke.Id="id",ke.IsLatest="isLatest",ke.PricingType="pricingType",ke.ProductId="productId",ke.RefId="refId",ke.Status="status",ke.UpdatedAt="updatedAt",ke.VersionNumber="versionNumber",(Ae=t.Ijf||(t.Ijf={})).Avg="AVG",Ae.Count="COUNT",Ae.Max="MAX",Ae.Min="MIN",Ae.Sum="SUM",Ae.Unique="UNIQUE",(Ce=t.v2N||(t.v2N={})).Center="CENTER",Ce.Left="LEFT",Ce.Right="RIGHT",(t.Mbo||(t.Mbo={})).Id="id",(Pe=t.E34||(t.E34={})).Client="CLIENT",Pe.Server="SERVER",(Oe=t.PLi||(t.PLi={})).StartOfTheMonth="START_OF_THE_MONTH",Oe.SubscriptionStart="SUBSCRIPTION_START",(De=t.FzK||(t.FzK={})).FlatFee="FLAT_FEE",De.PerUnit="PER_UNIT",De.UsageBased="USAGE_BASED",(xe=t.tvV||(t.tvV={})).Annually="ANNUALLY",xe.Monthly="MONTHLY",(t.ugv||(t.ugv={})).Stripe="STRIPE",(Te=t.u4I||(t.u4I={})).Added="ADDED",Te.Deleted="DELETED",Te.Modified="MODIFIED",Te.Reordered="REORDERED",(Ie=t.uS8||(t.uS8={})).Equals="EQUALS",Ie.GreaterThan="GREATER_THAN",Ie.GreaterThanOrEqual="GREATER_THAN_OR_EQUAL",Ie.IsNotNull="IS_NOT_NULL",Ie.IsNull="IS_NULL",Ie.LessThan="LESS_THAN",Ie.LessThanOrEqual="LESS_THAN_OR_EQUAL",Ie.NotEquals="NOT_EQUALS",(Se=t.i2A||(t.i2A={})).BillingId="billingId",Se.CreatedAt="createdAt",Se.Description="description",Se.EnvironmentId="environmentId",Se.Id="id",Se.Name="name",Se.RefId="refId",Se.Status="status",Se.Type="type",Se.UpdatedAt="updatedAt",(we=t.K79||(t.K79={})).Active="ACTIVE",we.Archived="ARCHIVED",(Ee=t.$i2||(t.$i2={})).Fixed="FIXED",Ee.Percentage="PERCENTAGE",(_e=t.Fa6||(t.Fa6={})).Aed="AED",_e.All="ALL",_e.Amd="AMD",_e.Ang="ANG",_e.Aud="AUD",_e.Awg="AWG",_e.Azn="AZN",_e.Bam="BAM",_e.Bbd="BBD",_e.Bdt="BDT",_e.Bgn="BGN",_e.Bif="BIF",_e.Bmd="BMD",_e.Bnd="BND",_e.Bsd="BSD",_e.Bwp="BWP",_e.Byn="BYN",_e.Bzd="BZD",_e.Cad="CAD",_e.Cdf="CDF",_e.Chf="CHF",_e.Clp="CLP",_e.Cny="CNY",_e.Czk="CZK",_e.Djf="DJF",_e.Dkk="DKK",_e.Dop="DOP",_e.Dzd="DZD",_e.Egp="EGP",_e.Etb="ETB",_e.Eur="EUR",_e.Fjd="FJD",_e.Gbp="GBP",_e.Gel="GEL",_e.Gip="GIP",_e.Gmd="GMD",_e.Gnf="GNF",_e.Gyd="GYD",_e.Hkd="HKD",_e.Hrk="HRK",_e.Htg="HTG",_e.Idr="IDR",_e.Ils="ILS",_e.Inr="INR",_e.Isk="ISK",_e.Jmd="JMD",_e.Jpy="JPY",_e.Kes="KES",_e.Kgs="KGS",_e.Khr="KHR",_e.Kmf="KMF",_e.Krw="KRW",_e.Kyd="KYD",_e.Kzt="KZT",_e.Lbp="LBP",_e.Lkr="LKR",_e.Lrd="LRD",_e.Lsl="LSL",_e.Mad="MAD",_e.Mdl="MDL",_e.Mga="MGA",_e.Mkd="MKD",_e.Mmk="MMK",_e.Mnt="MNT",_e.Mop="MOP",_e.Mro="MRO",_e.Mvr="MVR",_e.Mwk="MWK",_e.Mxn="MXN",_e.Myr="MYR",_e.Mzn="MZN",_e.Nad="NAD",_e.Ngn="NGN",_e.Nok="NOK",_e.Npr="NPR",_e.Nzd="NZD",_e.Pgk="PGK",_e.Php="PHP",_e.Pkr="PKR",_e.Pln="PLN",_e.Pyg="PYG",_e.Qar="QAR",_e.Ron="RON",_e.Rsd="RSD",_e.Rub="RUB",_e.Rwf="RWF",_e.Sar="SAR",_e.Sbd="SBD",_e.Scr="SCR",_e.Sek="SEK",_e.Sgd="SGD",_e.Sle="SLE",_e.Sll="SLL",_e.Sos="SOS",_e.Szl="SZL",_e.Thb="THB",_e.Tjs="TJS",_e.Top="TOP",_e.Try="TRY",_e.Ttd="TTD",_e.Tzs="TZS",_e.Uah="UAH",_e.Ugx="UGX",_e.Usd="USD",_e.Uzs="UZS",_e.Vnd="VND",_e.Vuv="VUV",_e.Wst="WST",_e.Xaf="XAF",_e.Xcd="XCD",_e.Xof="XOF",_e.Xpf="XPF",_e.Yer="YER",_e.Zar="ZAR",_e.Zmw="ZMW",(be=t.pDu||(t.pDu={})).CreatedAt="createdAt",be.EnvironmentId="environmentId",be.ResourceId="resourceId",(ge=t.rpU||(t.rpU={})).BillingId="billingId",ge.CreatedAt="createdAt",ge.CrmHubspotCompanyId="crmHubspotCompanyId",ge.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",ge.CrmId="crmId",ge.CustomerId="customerId",ge.DeletedAt="deletedAt",ge.Email="email",ge.EnvironmentId="environmentId",ge.Id="id",ge.Name="name",ge.RefId="refId",ge.SearchQuery="searchQuery",ge.UpdatedAt="updatedAt",(me=t.Pg9||(t.Pg9={})).BillingId="billingId",me.CancelReason="cancelReason",me.CancellationDate="cancellationDate",me.CreatedAt="createdAt",me.CrmId="crmId",me.CrmLinkUrl="crmLinkUrl",me.CurrentBillingPeriodEnd="currentBillingPeriodEnd",me.CurrentBillingPeriodStart="currentBillingPeriodStart",me.EffectiveEndDate="effectiveEndDate",me.EndDate="endDate",me.EnvironmentId="environmentId",me.Id="id",me.OldBillingId="oldBillingId",me.PaymentCollection="paymentCollection",me.PricingType="pricingType",me.RefId="refId",me.ResourceId="resourceId",me.StartDate="startDate",me.Status="status",me.SubscriptionId="subscriptionId",me.TrialEndDate="trialEndDate",(ye=t.yEZ||(t.yEZ={})).CeoOrFounder="CEO_OR_FOUNDER",ye.Engineering="ENGINEERING",ye.Growth="GROWTH",ye.Marketing="MARKETING",ye.Monetization="MONETIZATION",ye.Other="OTHER",ye.Product="PRODUCT",(ve=t.C2e||(t.C2e={})).Forever="FOREVER",ve.Once="ONCE",ve.Repeating="REPEATING",(he=t.Lbh||(t.Lbh={})).Fixed="FIXED",he.Percentage="PERCENTAGE",(de=t.XHu||(t.XHu={})).Day="DAY",de.Hour="HOUR",de.Month="MONTH",de.Week="WEEK",(pe=t.FT8||(t.FT8={})).BlackList="BLACK_LIST",pe.WhiteList="WHITE_LIST",(fe=t.IZr||(t.IZr={})).Done="DONE",fe.Failed="FAILED",fe.InProgress="IN_PROGRESS",fe.NotProvisioned="NOT_PROVISIONED",(le=t.$BG||(t.$BG={})).CreatedAt="createdAt",le.DisplayName="displayName",le.Id="id",le.PermanentDeletionDate="permanentDeletionDate",le.Slug="slug",(ce=t.jKp||(t.jKp={})).AccountNotFoundError="AccountNotFoundError",ce.AddonHasToHavePriceError="AddonHasToHavePriceError",ce.AddonNotFound="AddonNotFound",ce.AddonWithDraftCannotBeDeletedError="AddonWithDraftCannotBeDeletedError",ce.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",ce.AuthCustomerMismatch="AuthCustomerMismatch",ce.AwsMarketplaceIntegrationError="AwsMarketplaceIntegrationError",ce.AwsMarketplaceIntegrationValidationError="AwsMarketplaceIntegrationValidationError",ce.BadUserInput="BadUserInput",ce.BillingPeriodMissingError="BillingPeriodMissingError",ce.CannotArchiveFeatureError="CannotArchiveFeatureError",ce.CannotDeleteCustomerError="CannotDeleteCustomerError",ce.CannotDeleteFeatureError="CannotDeleteFeatureError",ce.CannotDeleteProductError="CannotDeleteProductError",ce.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",ce.CannotReportUsageForEntitlementWithMeterError="CannotReportUsageForEntitlementWithMeterError",ce.CannotUpsertToPackageThatHasDraft="CannotUpsertToPackageThatHasDraft",ce.CheckoutIsNotSupported="CheckoutIsNotSupported",ce.CheckoutOptionsMissing="CheckoutOptionsMissing",ce.CouponNotFound="CouponNotFound",ce.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",ce.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",ce.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",ce.CustomerNoBillingId="CustomerNoBillingId",ce.CustomerNotFound="CustomerNotFound",ce.CustomerResourceNotFound="CustomerResourceNotFound",ce.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",ce.DraftPlanCantBeArchived="DraftPlanCantBeArchived",ce.DuplicateProductValidationError="DuplicateProductValidationError",ce.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",ce.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",ce.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",ce.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",ce.EntityIsArchivedError="EntityIsArchivedError",ce.EnvironmentMissing="EnvironmentMissing",ce.ExperimentAlreadyRunning="ExperimentAlreadyRunning",ce.ExperimentNotFoundError="ExperimentNotFoundError",ce.ExperimentStatusError="ExperimentStatusError",ce.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",ce.FailedToImportCustomer="FailedToImportCustomer",ce.FeatureNotFound="FeatureNotFound",ce.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",ce.IdentityForbidden="IdentityForbidden",ce.ImportAlreadyInProgress="ImportAlreadyInProgress",ce.ImportSubscriptionsBulkError="ImportSubscriptionsBulkError",ce.InitStripePaymentMethodError="InitStripePaymentMethodError",ce.IntegrationNotFound="IntegrationNotFound",ce.IntegrationValidationError="IntegrationValidationError",ce.IntegrityViolation="IntegrityViolation",ce.InvalidAddressError="InvalidAddressError",ce.InvalidArgumentError="InvalidArgumentError",ce.InvalidCancellationDate="InvalidCancellationDate",ce.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",ce.InvalidMemberDelete="InvalidMemberDelete",ce.InvalidMetadataError="InvalidMetadataError",ce.InvalidQuantity="InvalidQuantity",ce.InvalidSubscriptionStatus="InvalidSubscriptionStatus",ce.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",ce.MemberInvitationError="MemberInvitationError",ce.MemberNotFound="MemberNotFound",ce.MeterMustBeAssociatedToMeteredFeature="MeterMustBeAssociatedToMeteredFeature",ce.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",ce.MissingEntityIdError="MissingEntityIdError",ce.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",ce.NoProductsAvailable="NoProductsAvailable",ce.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",ce.PackageAlreadyPublished="PackageAlreadyPublished",ce.PackagePricingTypeNotSet="PackagePricingTypeNotSet",ce.PaymentMethodNotFoundError="PaymentMethodNotFoundError",ce.PlanAlreadyExtended="PlanAlreadyExtended",ce.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",ce.PlanCannotBePublishWhenCompatibleAddonIsDraft="PlanCannotBePublishWhenCompatibleAddonIsDraft",ce.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",ce.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",ce.PlanNotFound="PlanNotFound",ce.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",ce.PlansCircularDependencyError="PlansCircularDependencyError",ce.PriceNotFound="PriceNotFound",ce.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",ce.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",ce.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",ce.PromotionCodeNotActive="PromotionCodeNotActive",ce.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",ce.PromotionCodeNotFound="PromotionCodeNotFound",ce.PromotionalEntitlementNotFoundError="PromotionalEntitlementNotFoundError",ce.RateLimitExceeded="RateLimitExceeded",ce.RecalculateEntitlementsError="RecalculateEntitlementsError",ce.ResyncAlreadyInProgress="ResyncAlreadyInProgress",ce.ScheduledMigrationAlreadyExistsError="ScheduledMigrationAlreadyExistsError",ce.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",ce.StripeCustomerIsDeleted="StripeCustomerIsDeleted",ce.StripeError="StripeError",ce.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",ce.SubscriptionAlreadyOnLatestPlanError="SubscriptionAlreadyOnLatestPlanError",ce.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",ce.SubscriptionNotFound="SubscriptionNotFound",ce.TooManySubscriptionsPerCustomer="TooManySubscriptionsPerCustomer",ce.TrialMinDateError="TrialMinDateError",ce.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",ce.UnPublishedPackage="UnPublishedPackage",ce.Unauthenticated="Unauthenticated",ce.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",ce.UnexpectedError="UnexpectedError",ce.UnsupportedFeatureType="UnsupportedFeatureType",ce.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",ce.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",(ue=t.i3Z||(t.i3Z={})).AddonCreated="ADDON_CREATED",ue.AddonDeleted="ADDON_DELETED",ue.AddonUpdated="ADDON_UPDATED",ue.CouponArchived="COUPON_ARCHIVED",ue.CouponCreated="COUPON_CREATED",ue.CouponUpdated="COUPON_UPDATED",ue.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",ue.CustomerCreated="CUSTOMER_CREATED",ue.CustomerDeleted="CUSTOMER_DELETED",ue.CustomerEntitlementCalculationTriggered="CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED",ue.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",ue.CustomerResourceEntitlementCalculationTriggered="CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED",ue.CustomerUpdated="CUSTOMER_UPDATED",ue.EdgeApiCustomerDataResync="EDGE_API_CUSTOMER_DATA_RESYNC",ue.EdgeApiDataResync="EDGE_API_DATA_RESYNC",ue.EdgeApiPackageEntitlementsDataResync="EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC",ue.EdgeApiSubscriptionsDataResync="EDGE_API_SUBSCRIPTIONS_DATA_RESYNC",ue.EntitlementsUpdated="ENTITLEMENTS_UPDATED",ue.EntitlementDenied="ENTITLEMENT_DENIED",ue.EntitlementGranted="ENTITLEMENT_GRANTED",ue.EntitlementRequested="ENTITLEMENT_REQUESTED",ue.EnvironmentDeleted="ENVIRONMENT_DELETED",ue.FeatureArchived="FEATURE_ARCHIVED",ue.FeatureCreated="FEATURE_CREATED",ue.FeatureDeleted="FEATURE_DELETED",ue.FeatureUpdated="FEATURE_UPDATED",ue.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",ue.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",ue.ImportSubscriptionsBulkTriggered="IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED",ue.MeasurementReported="MEASUREMENT_REPORTED",ue.PackagePublished="PACKAGE_PUBLISHED",ue.PlanCreated="PLAN_CREATED",ue.PlanDeleted="PLAN_DELETED",ue.PlanUpdated="PLAN_UPDATED",ue.ProductCreated="PRODUCT_CREATED",ue.ProductDeleted="PRODUCT_DELETED",ue.ProductUpdated="PRODUCT_UPDATED",ue.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",ue.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",ue.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",ue.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",ue.RecalculateEntitlementsTriggered="RECALCULATE_ENTITLEMENTS_TRIGGERED",ue.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",ue.SubscriptionsMigrated="SUBSCRIPTIONS_MIGRATED",ue.SubscriptionsMigrationTriggered="SUBSCRIPTIONS_MIGRATION_TRIGGERED",ue.SubscriptionCanceled="SUBSCRIPTION_CANCELED",ue.SubscriptionCreated="SUBSCRIPTION_CREATED",ue.SubscriptionExpired="SUBSCRIPTION_EXPIRED",ue.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",ue.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",ue.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",ue.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",ue.SubscriptionUpdated="SUBSCRIPTION_UPDATED",ue.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",ue.SyncFailed="SYNC_FAILED",ue.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED",(se=t.o_I||(t.o_I={})).CreatedAt="createdAt",se.EnvironmentId="environmentId",se.Id="id",se.Name="name",se.ProductId="productId",se.RefId="refId",se.Status="status",(ae=t.bWm||(t.bWm={})).Completed="COMPLETED",ae.Draft="DRAFT",ae.InProgress="IN_PROGRESS",(oe=t.GAT||(t.GAT={})).CreatedAt="createdAt",oe.Description="description",oe.DisplayName="displayName",oe.EnvironmentId="environmentId",oe.FeatureStatus="featureStatus",oe.FeatureType="featureType",oe.Id="id",oe.MeterType="meterType",oe.RefId="refId",oe.UpdatedAt="updatedAt",(ie=t.iKc||(t.iKc={})).Active="ACTIVE",ie.New="NEW",ie.Suspended="SUSPENDED",(re=t.Tex||(t.Tex={})).Boolean="BOOLEAN",re.Number="NUMBER",(ne=t.U9t||(t.U9t={})).Bold="BOLD",ne.Normal="NORMAL",(te=t.uMn||(t.uMn={})).CreatedAt="createdAt",te.Endpoint="endpoint",te.EnvironmentId="environmentId",te.Id="id",te.Status="status",(ee=t.qBr||(t.qBr={})).Active="ACTIVE",ee.Inactive="INACTIVE",(Z=t.B8X||(t.B8X={})).CreatedAt="createdAt",Z.EnvironmentId="environmentId",Z.Id="id",Z.Status="status",Z.TaskType="taskType",(X=t.Us3||(t.Us3={})).CreatedAt="createdAt",X.EnvironmentId="environmentId",X.Id="id",X.VendorIdentifier="vendorIdentifier",(J=t.Kyg||(t.Kyg={})).CreatedAt="createdAt",J.Id="id",(H=t.XY6||(t.XY6={})).Invited="INVITED",H.Registered="REGISTERED",(K=t.puT||(t.puT={})).Fluctuating="Fluctuating",K.Incremental="Incremental",K.None="None",(Y=t.pSI||(t.pSI={})).StartOfTheMonth="StartOfTheMonth",Y.SubscriptionStart="SubscriptionStart",(W=t.zv6||(t.zv6={})).BillingId="billingId",W.CreatedAt="createdAt",W.Description="description",W.DisplayName="displayName",W.EnvironmentId="environmentId",W.Id="id",W.IsLatest="isLatest",W.PricingType="pricingType",W.ProductId="productId",W.RefId="refId",W.Status="status",W.UpdatedAt="updatedAt",W.VersionNumber="versionNumber",(z=t.iI3||(t.iI3={})).CreatedAt="createdAt",z.EnvironmentId="environmentId",z.Id="id",z.PackageId="packageId",z.UpdatedAt="updatedAt",(Q=t.TVs||(t.TVs={})).Archived="ARCHIVED",Q.Draft="DRAFT",Q.Published="PUBLISHED",(G=t.QdX||(t.QdX={})).ActionRequired="ACTION_REQUIRED",G.Failed="FAILED",G.NotRequired="NOT_REQUIRED",G.Processing="PROCESSING",(V=t.LtK||(t.LtK={})).Bank="BANK",V.Card="CARD",($=t.qXR||(t.qXR={})).BillingId="billingId",$.CreatedAt="createdAt",$.Description="description",$.DisplayName="displayName",$.EnvironmentId="environmentId",$.Id="id",$.IsLatest="isLatest",$.PricingType="pricingType",$.ProductId="productId",$.RefId="refId",$.Status="status",$.UpdatedAt="updatedAt",$.VersionNumber="versionNumber",(q=t.YGW||(t.YGW={})).BillingId="billingId",q.BillingModel="billingModel",q.BillingPeriod="billingPeriod",q.CreatedAt="createdAt",q.Id="id",q.TiersMode="tiersMode",(B=t._HY||(t._HY={})).Custom="CUSTOM",B.Free="FREE",B.Paid="PAID",(L=t.p_C||(t.p_C={})).AwsMarketplaceProductCode="awsMarketplaceProductCode",L.AwsMarketplaceProductId="awsMarketplaceProductId",L.CreatedAt="createdAt",L.Description="description",L.DisplayName="displayName",L.EnvironmentId="environmentId",L.Id="id",L.IsDefaultProduct="isDefaultProduct",L.RefId="refId",L.UpdatedAt="updatedAt",(j=t.JkE||(t.JkE={})).Custom="CUSTOM",j.Lifetime="LIFETIME",j.OneMonth="ONE_MONTH",j.OneWeek="ONE_WEEK",j.OneYear="ONE_YEAR",j.SixMonth="SIX_MONTH",(M=t.ku9||(t.ku9={})).CreatedAt="createdAt",M.EnvironmentId="environmentId",M.Id="id",M.Status="status",M.UpdatedAt="updatedAt",(U=t.$Vq||(t.$Vq={})).Active="Active",U.Expired="Expired",U.Paused="Paused",(F=t.QZw||(t.QZw={})).CreateProrations="CREATE_PRORATIONS",F.InvoiceImmediately="INVOICE_IMMEDIATELY",(N=t.u0j||(t.u0j={})).PaymentRequired="PAYMENT_REQUIRED",N.Success="SUCCESS",(R=t.Zam||(t.Zam={})).AllCustomers="ALL_CUSTOMERS",R.NewCustomers="NEW_CUSTOMERS",(k=t.SrV||(t.SrV={})).Asc="ASC",k.Desc="DESC",(A=t.Xm9||(t.Xm9={})).NullsFirst="NULLS_FIRST",A.NullsLast="NULLS_LAST",(C=t.PO0||(t.PO0={})).JsClientSdk="JS_CLIENT_SDK",C.NodeServerSdk="NODE_SERVER_SDK",C.PersistentCacheService="PERSISTENT_CACHE_SERVICE",(P=t.ueJ||(t.ueJ={})).CreatedAt="createdAt",P.Id="id",P.Quantity="quantity",P.UpdatedAt="updatedAt",(O=t.w1y||(t.w1y={})).CancelledByBilling="CancelledByBilling",O.CustomerArchived="CustomerArchived",O.DetachBilling="DetachBilling",O.Expired="Expired",O.Immediate="Immediate",O.PendingPaymentExpired="PendingPaymentExpired",O.ScheduledCancellation="ScheduledCancellation",O.TrialConverted="TrialConverted",O.TrialEnded="TrialEnded",O.UpgradeOrDowngrade="UpgradeOrDowngrade",(D=t.c06||(t.c06={})).Default="DEFAULT",D.RevokeEntitlements="REVOKE_ENTITLEMENTS",(x=t.lS0||(t.lS0={})).EndOfBillingPeriod="END_OF_BILLING_PERIOD",x.Immediate="IMMEDIATE",x.SpecificDate="SPECIFIC_DATE",(T=t.ird||(t.ird={})).PredefinedFreePlan="PREDEFINED_FREE_PLAN",T.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",T.RequestedPlan="REQUESTED_PLAN",T.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION",(I=t._oj||(t._oj={})).CancelSubscription="CANCEL_SUBSCRIPTION",I.DowngradeToFree="DOWNGRADE_TO_FREE",(S=t.e1Q||(t.e1Q={})).CreatedAt="createdAt",S.EnvironmentId="environmentId",S.Id="id",S.SubscriptionId="subscriptionId",S.UpdatedAt="updatedAt",(w=t.G6j||(t.G6j={})).Canceled="CANCELED",w.Open="OPEN",w.Paid="PAID",(E=t.eSW||(t.eSW={})).CreatedAt="createdAt",E.EnvironmentId="environmentId",E.Id="id",E.Status="status",E.TaskType="taskType",(_=t.DWP||(t.DWP={})).EndOfBillingPeriod="END_OF_BILLING_PERIOD",_.Immediate="IMMEDIATE",(b=t.yBL||(t.yBL={})).BillingModel="billingModel",b.CreatedAt="createdAt",b.FeatureId="featureId",b.Id="id",b.UpdatedAt="updatedAt",b.UsageLimit="usageLimit",(g=t.cUf||(t.cUf={})).Canceled="Canceled",g.Done="Done",g.Failed="Failed",g.PendingPayment="PendingPayment",g.Scheduled="Scheduled",(m=t.YVG||(t.YVG={})).Addon="Addon",m.BillingPeriod="BillingPeriod",m.Downgrade="Downgrade",m.MigrateToLatest="MigrateToLatest",m.UnitAmount="UnitAmount",(y=t.nOi||(t.nOi={})).FreePlan="FREE_PLAN",y.PlanSelection="PLAN_SELECTION",y.TrialPeriod="TRIAL_PERIOD",(v=t.yhH||(t.yhH={})).Active="ACTIVE",v.Canceled="CANCELED",v.Expired="EXPIRED",v.InTrial="IN_TRIAL",v.NotStarted="NOT_STARTED",v.PaymentPending="PAYMENT_PENDING",(h=t.wRo||(t.wRo={})).Error="ERROR",h.NoSyncRequired="NO_SYNC_REQUIRED",h.Pending="PENDING",h.Success="SUCCESS",(d=t.hYU||(t.hYU={})).Canceled="CANCELED",d.Completed="COMPLETED",d.Failed="FAILED",d.InProgress="IN_PROGRESS",d.PartiallyFailed="PARTIALLY_FAILED",d.Pending="PENDING",(p=t.UAI||(t.UAI={})).ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",p.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",p.ImportSubscriptionsBulk="IMPORT_SUBSCRIPTIONS_BULK",p.RecalculateEntitlements="RECALCULATE_ENTITLEMENTS",p.ResyncIntegration="RESYNC_INTEGRATION",p.SubscriptionMigration="SUBSCRIPTION_MIGRATION",p.SubscriptionMigrationV2="SUBSCRIPTION_MIGRATION_V2",(f=t.PNd||(t.PNd={})).Graduated="GRADUATED",f.Volume="VOLUME",f.VolumePerUnit="VOLUME_PER_UNIT",(l=t.p13||(t.p13={})).Day="DAY",l.Month="MONTH",(c=t.Buv||(t.Buv={})).CreatedAt="createdAt",c.EnvironmentId="environmentId",c.Id="id",(u=t._yy||(t._yy={})).Delta="DELTA",u.Set="SET",(s=t.FoD||(t.FoD={})).AwsMarketplace="AWS_MARKETPLACE",s.Hubspot="HUBSPOT",s.Stripe="STRIPE",s.Zuora="ZUORA",(a=t.rCU||(t.rCU={})).EveryFriday="EveryFriday",a.EveryMonday="EveryMonday",a.EverySaturday="EverySaturday",a.EverySunday="EverySunday",a.EveryThursday="EveryThursday",a.EveryTuesday="EveryTuesday",a.EveryWednesday="EveryWednesday",a.SubscriptionStart="SubscriptionStart",(o=t.l9N||(t.l9N={})).Checkout="CHECKOUT",o.CustomerPortal="CUSTOMER_PORTAL",o.Paywall="PAYWALL",(i=t.zOd||(t.zOd={})).Control="CONTROL",i.Variant="VARIANT",t.FL0=r.default`
3
- fragment SubscriptionInvoiceFragment on SubscriptionInvoice {
4
- billingId
5
- status
6
- createdAt
7
- updatedAt
8
- requiresAction
9
- paymentUrl
10
- paymentSecret
11
- errorMessage
12
- }
13
- `,t.OoB=r.default`
14
- fragment CustomerResourceFragment on CustomerResource {
15
- resourceId
16
- }
17
- `,t.Chb=r.default`
18
- fragment PriceTierFragment on PriceTier {
19
- upTo
20
- unitPrice {
21
- amount
22
- currency
23
- }
24
- }
25
- `,t.wEB=r.default`
26
- fragment PriceFragment on Price {
27
- billingModel
28
- billingPeriod
29
- billingId
30
- minUnitQuantity
31
- maxUnitQuantity
32
- billingCountryCode
33
- price {
34
- amount
35
- currency
36
- }
37
- tiersMode
38
- tiers {
39
- ...PriceTierFragment
40
- }
41
- feature {
42
- refId
43
- featureUnits
44
- featureUnitsPlural
45
- displayName
46
- description
47
- }
48
- }
49
- `,t.N9N=r.default`
50
- fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
51
- subTotal {
52
- amount
53
- currency
54
- }
55
- total {
56
- amount
57
- currency
58
- }
59
- }
60
- `,t.bGH=r.default`
61
- fragment SlimSubscriptionFragment on CustomerSubscription {
62
- id
63
- refId
64
- status
65
- additionalMetaData
66
- billingId
67
- billingLinkUrl
68
- effectiveEndDate
69
- currentBillingPeriodEnd
70
- pricingType
71
- latestInvoice {
72
- ...SubscriptionInvoiceFragment
73
- }
74
- paymentCollection
75
- billingSyncError
76
- resource {
77
- ...CustomerResourceFragment
78
- }
79
- experimentInfo {
80
- name
81
- id
82
- groupName
83
- groupType
84
- }
85
- prices {
86
- usageLimit
87
- price {
88
- ...PriceFragment
89
- }
90
- }
91
- totalPrice {
92
- ...TotalPriceFragment
93
- }
94
- plan {
95
- id
96
- refId
97
- }
98
- addons {
99
- quantity
100
- addon {
101
- id
102
- refId
103
- }
104
- }
105
- customer {
106
- id
107
- refId
108
- }
109
- }
110
- `,t.bj8=r.default`
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Stigg",[],t):"object"==typeof exports?exports.Stigg=t():e.Stigg=t()}(this,(function(){return(()=>{var e={2991:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,Y:()=>a});var r=n(2176),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},2176:(e,t,n)=>{"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}n.d(t,{l$:()=>i,KV:()=>r}),e=n.hmd(e)},1170:(e,t,n)=>{"use strict";n.d(t,{yW:()=>u,ph:()=>c});var r=n(2991),i=n(2176);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);let l;(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,u="number"==typeof s?Math.abs(s+n-i):t;return a||u<t?o<=u?(l="timeOrigin",e.timeOrigin):(l="navigationStart",s):(l="dateNow",i)}l="none"})()},1905:function(){!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=l(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];E.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new E(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=b,e.Response=E),t.Headers=p,t.Request=b,t.Response=E,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},7187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,l=h(u,c);for(n=0;n<c;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4139:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,r){if(r=r||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof r)throw new t("defaults must be an object");if(void 0!==r.retries&&!e(r.retries))throw new t("retries must be a positive integer");if(void 0!==r.retryDelay&&!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==r.retryOn&&!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");return r=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},r),function(i,o){var a=r.retries,s=r.retryDelay,u=r.retryOn;if(o&&void 0!==o.retries){if(!e(o.retries))throw new t("retries must be a positive integer");a=o.retries}if(o&&void 0!==o.retryDelay){if(!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=o.retryDelay}if(o&&o.retryOn){if(!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");u=o.retryOn}return new Promise((function(e,t){var r=function(r){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;n(s,o).then((function(n){if(Array.isArray(u)&&-1===u.indexOf(n.status))e(n);else if("function"==typeof u)try{return Promise.resolve(u(r,null,n)).then((function(t){t?c(r,null,n):e(n)})).catch(t)}catch(e){t(e)}else r<a?c(r,null,n):e(n)})).catch((function(e){if("function"==typeof u)try{Promise.resolve(u(r,e,null)).then((function(n){n?c(r,e,null):t(e)})).catch((function(e){t(e)}))}catch(e){t(e)}else r<a?c(r,e,null):t(e)}))};function c(e,t,n){var i="function"==typeof s?s(e,t,n):s;setTimeout((function(){r(++e)}),i)}r(0)}))}}}()},5185:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ue,disableExperimentalFragmentVariables:()=>te,disableFragmentWarnings:()=>Z,enableExperimentalFragmentVariables:()=>ee,gql:()=>J,resetCaches:()=>X});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.create,Object.create;var o=n(9763);function a(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function s(e){return u(e.source,a(e.source,e.start))}function u(e,t){var n=e.locationOffset.column-1,r=l(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,f="".concat(e.name,":").concat(a,":").concat(u,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){for(var h=Math.floor(u/80),v=u%80,y=[],m=0;m<d.length;m+=80)y.push(d.slice(m,m+80));return f+c([["".concat(a),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",l(v-1)+"^"],["",y[h+1]]]))}return f+c([["".concat(a-1),p[i-1]],["".concat(a),d],["",l(u-1)+"^"],["".concat(a+1),p[i+1]]])}function c(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return l(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function l(e){return Array(e+1).join(" ")}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(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 d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t="function"==typeof Map?new Map:void 0;return m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return g(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)},m(e)}function g(e,t,n){return g=b()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_(i,n.prototype),i},g.apply(null,arguments)}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(f,e);var t,n,r,c,l=(t=f,n=b(),function(){var e,r=E(t);if(n){var i=E(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return v(this,e)});function f(e,t,n,r,o,s,u){var c,h,m,g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(g=l.call(this,e)).name="GraphQLError",g.originalError=null!=s?s:void 0,g.nodes=S(Array.isArray(t)?t:t?[t]:void 0);for(var b=[],_=0,E=null!==(w=g.nodes)&&void 0!==w?w:[];_<E.length;_++){var w,I=E[_].loc;null!=I&&b.push(I)}b=S(b),g.source=null!=n?n:null===(c=b)||void 0===c?void 0:c[0].source,g.positions=null!=r?r:null===(h=b)||void 0===h?void 0:h.map((function(e){return e.start})),g.locations=r&&n?r.map((function(e){return a(n,e)})):null===(m=b)||void 0===m?void 0:m.map((function(e){return a(e.source,e.start)})),g.path=null!=o?o:void 0;var T,x=null==s?void 0:s.extensions;return null==u&&"object"==i(T=x)&&null!==T?g.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},x):g.extensions=null!=u?u:{},Object.defineProperties(y(g),{message:{enumerable:!0},locations:{enumerable:null!=g.locations},path:{enumerable:null!=g.path},extensions:{enumerable:null!=g.extensions&&Object.keys(g.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(y(g),"stack",{value:s.stack,writable:!0,configurable:!0}),v(g)):(Error.captureStackTrace?Error.captureStackTrace(y(g),f):Object.defineProperty(y(g),"stack",{value:Error().stack,writable:!0,configurable:!0}),g)}return r=f,(c=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+s(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var c=a[o];t+="\n\n"+u(e.source,c)}return t}(this)}},{key:o.YF,get:function(){return"Object"}}])&&h(r.prototype,c),f}(m(Error));function S(e){return void 0===e||0===e.length?void 0:e}function I(e,t,n){return new w("Syntax Error: ".concat(n),void 0,e,[t])}var T=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),x=n(5217),O=Object.freeze({SOF:"<SOF>",EOF:"<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"}),D=n(143),C=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"}),P=n(7392),A=function(){function e(e){var t=new x.WU(O.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==O.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=R(this,e)}while(e.kind===O.COMMENT);return e},e}();function k(e){return isNaN(e)?O.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function R(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new x.WU(O.BANG,o,o+1,s,u,t);case 35:return F(n,o,s,u,t);case 36:return new x.WU(O.DOLLAR,o,o+1,s,u,t);case 38:return new x.WU(O.AMP,o,o+1,s,u,t);case 40:return new x.WU(O.PAREN_L,o,o+1,s,u,t);case 41:return new x.WU(O.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new x.WU(O.SPREAD,o,o+3,s,u,t);break;case 58:return new x.WU(O.COLON,o,o+1,s,u,t);case 61:return new x.WU(O.EQUALS,o,o+1,s,u,t);case 64:return new x.WU(O.AT,o,o+1,s,u,t);case 91:return new x.WU(O.BRACKET_L,o,o+1,s,u,t);case 93:return new x.WU(O.BRACKET_R,o,o+1,s,u,t);case 123:return new x.WU(O.BRACE_L,o,o+1,s,u,t);case 124:return new x.WU(O.PIPE,o,o+1,s,u,t);case 125:return new x.WU(O.BRACE_R,o,o+1,s,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?L(n,o,s,u,t,e):j(n,o,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return U(n,o,a,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return q(n,o,s,u,t)}throw I(n,o,N(a))}var c=e.line,l=1+o-e.lineStart;return new x.WU(O.EOF,i,i,c,l,t)}function N(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(k(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(k(e),".")}function F(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new x.WU(O.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function U(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw I(e,u,"Invalid number, unexpected digit after 0: ".concat(k(s),"."))}else u=M(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=M(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=M(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw I(e,u,"Invalid number, expected digit but got: ".concat(k(s),"."));return new x.WU(c?O.FLOAT:O.INT,t,u,r,i,o,a.slice(t,u))}function M(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw I(e,i,"Invalid number, expected digit but got: ".concat(k(o),"."))}function j(e,t,n,r,i){for(var o,a,s,u,c=e.body,l=t+1,f=l,p=0,d="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return d+=c.slice(f,l),new x.WU(O.STRING,t,l+1,n,r,i,d);if(p<32&&9!==p)throw I(e,l,"Invalid character within String: ".concat(k(p),"."));if(++l,92===p){switch(d+=c.slice(f,l-1),p=c.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),B(o)<<12|B(a)<<8|B(s)<<4|B(u));if(h<0){var v=c.slice(l+1,l+5);throw I(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw I(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw I(e,l,"Unterminated string.")}function L(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new x.WU(O.BLOCK_STRING,t,s+3,n,r,i,(0,P.W7)(l));if(c<32&&9!==c&&10!==c&&13!==c)throw I(e,s,"Invalid character within String: ".concat(k(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw I(e,s,"Unterminated string.")}function B(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function q(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new x.WU(O.NAME,t,s,n,r,i,o.slice(t,s))}var $=function(){function e(e,t){var n=(0,D.T)(e)?e:new D.H(e);this._lexer=new A(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(O.NAME);return{kind:T.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:T.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(O.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(O.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(O.BRACE_L))return{kind:T.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(O.NAME)&&(t=this.parseName()),{kind:T.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(O.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:T.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(O.DOLLAR),{kind:T.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:T.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(O.COLON)?(e=r,t=this.parseName()):t=r,{kind:T.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,t,O.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(O.COLON),{kind:T.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:T.ARGUMENT,name:this.parseName(),value:(this.expectToken(O.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(O.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(O.NAME)?{kind:T.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:T.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:T.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:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case O.BRACKET_L:return this.parseList(e);case O.BRACE_L:return this.parseObject(e);case O.INT:return this._lexer.advance(),{kind:T.INT,value:t.value,loc:this.loc(t)};case O.FLOAT:return this._lexer.advance(),{kind:T.FLOAT,value:t.value,loc:this.loc(t)};case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:T.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:T.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:T.NULL,loc:this.loc(t)};default:return{kind:T.ENUM,value:t.value,loc:this.loc(t)}}case O.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:T.STRING,value:e.value,block:e.kind===O.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:T.LIST,values:this.any(O.BRACKET_L,(function(){return t.parseValueLiteral(e)}),O.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:T.OBJECT,fields:this.any(O.BRACE_L,(function(){return t.parseObjectField(e)}),O.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),{kind:T.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(O.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(O.AT),{kind:T.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(O.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(O.BRACKET_R),e={kind:T.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(O.BANG)?{kind:T.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:T.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===O.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)},t.peekDescription=function(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return{kind:T.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(O.COLON);var n=this.parseNamedType();return{kind:T.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:T.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:T.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(O.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(O.AMP)||this.peek(O.NAME));return t}return this.delimitedMany(O.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(O.BRACE_L)&&this._lexer.lookahead().kind===O.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:T.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(O.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:T.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:T.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:T.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:T.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:T.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:T.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===O.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:T.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){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:T.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){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:T.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){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:T.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){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:T.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){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:T.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){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:T.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:T.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==C[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new x.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw I(this._lexer.source,t.start,"Expected ".concat(G(e),", found ").concat(V(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==O.NAME||t.value!==e)throw I(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(V(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===O.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return I(this._lexer.source,t.start,"Unexpected ".concat(V(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function V(e){var t=e.value;return G(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function G(e){return function(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}(e)?'"'.concat(e,'"'):e}var Q=new Map,z=new Map,W=!0,Y=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function H(e){var t=K(e);if(!Q.has(t)){var n=function(e,t){return new $(e,t).parseDocument()}(e,{experimentalFragmentVariables:Y,allowLegacyFragmentVariables:Y});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Q.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=K((a=e.loc).source.body.substring(a.start,a.end)),o=z.get(r);o&&!o.has(i)?W&&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"):o||z.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),r(r({},e),{definitions:n})}(n)))}return Q.get(t)}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),H(r)}function X(){Q.clear(),z.clear()}function Z(){W=!1}function ee(){Y=!0}function te(){Y=!1}var ne,re=J,ie=X,oe=Z,ae=ee,se=te;(ne=J||(J={})).gql=re,ne.resetCaches=ie,ne.disableFragmentWarnings=oe,ne.enableExperimentalFragmentVariables=ae,ne.disableExperimentalFragmentVariables=se,J.default=J;const ue=J},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},8407:(e,t,n)=>{var r=n(7040),i=n(4125),o=n(2117),a=n(7529),s=n(4705);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),o=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},6384:(e,t,n)=>{var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),u=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},4636:(e,t,n)=>{var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),u=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),d=n||l||f||p,h=d?r(e.length,String):[],v=h.length;for(var y in e)!t&&!c.call(e,y)||d&&("length"==y||f&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||h.push(y);return h}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:(e,t,n)=>{var r=n(8363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},3886:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e,t){return e&&r(t,i(t),e)}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:(e,t,n)=>{var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),u=n(4626),c=n(278),l=n(8805),f=n(1911),p=n(8234),d=n(6904),h=n(4160),v=n(3824),y=n(9148),m=n(8517),g=n(1469),b=n(4144),_=n(6688),E=n(3218),w=n(2928),S=n(3674),I=n(1704),T="[object Arguments]",x="[object Function]",O="[object Object]",D={};D[T]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[O]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[x]=D["[object WeakMap]"]=!1,e.exports=function e(t,n,C,P,A,k){var R,N=1&n,F=2&n,U=4&n;if(C&&(R=A?C(t,P,A,k):C(t)),void 0!==R)return R;if(!E(t))return t;var M=g(t);if(M){if(R=v(t),!N)return c(t,R)}else{var j=h(t),L=j==x||"[object GeneratorFunction]"==j;if(b(t))return u(t,N);if(j==O||j==T||L&&!A){if(R=F||L?{}:m(t),!N)return F?f(t,s(R,t)):l(t,a(R,t))}else{if(!D[j])return A?t:{};R=y(t,j,N)}}k||(k=new r);var B=k.get(t);if(B)return B;k.set(t,R),w(t)?t.forEach((function(r){R.add(e(r,n,C,r,t,k))})):_(t)&&t.forEach((function(r,i){R.set(i,e(r,n,C,i,t,k))}));var q=M?void 0:(U?F?d:p:F?I:S)(t);return i(q||t,(function(r,i){q&&(r=t[i=r]),o(R,i,e(r,n,C,i,t,k))})),R}},3118:(e,t,n)=>{var r=n(3218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},4140:(e,t,n)=>{var r=n(7816),i=n(9291)(r);e.exports=i},1848:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},1078:(e,t,n)=>{var r=n(2488),i=n(7285);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},7786:(e,t,n)=>{var r=n(1811),i=n(327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},8866:(e,t,n)=>{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2118:(e,t,n)=>{var r=n(1848),i=n(2722),o=n(2351);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(1299),i=n(7005);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},1299:(e,t,n)=>{var r=n(6384),i=n(7114),o=n(8351),a=n(6096),s=n(4160),u=n(1469),c=n(4144),l=n(6719),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,m){var g=u(e),b=u(t),_=g?p:s(e),E=b?p:s(t),w=(_=_==f?d:_)==d,S=(E=E==f?d:E)==d,I=_==E;if(I&&c(e)){if(!c(t))return!1;g=!0,w=!1}if(I&&!w)return m||(m=new r),g||l(e)?i(e,t,n,v,y,m):o(e,t,_,n,v,y,m);if(!(1&n)){var T=w&&h.call(e,"__wrapped__"),x=S&&h.call(t,"__wrapped__");if(T||x){var O=T?e.value():e,D=x?t.value():t;return m||(m=new r),y(O,D,n,v,m)}}return!!I&&(m||(m=new r),a(e,t,n,v,y,m))}},5588:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(6384),i=n(939);e.exports=function(e,t,n,o){var a=n.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var l=(c=n[a])[0],f=e[l],p=c[1];if(u&&c[2]){if(void 0===f&&!(l in e))return!1}else{var d=new r;if(o)var h=o(f,p,l,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},2722:e=>{e.exports=function(e){return e!=e}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},9221:(e,t,n)=>{var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},7206:(e,t,n)=>{var r=n(1573),i=n(6432),o=n(6557),a=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},9199:(e,t,n)=>{var r=n(4140),i=n(8612);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},1573:(e,t,n)=>{var r=n(2958),i=n(1499),o=n(2634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),i=n(7361),o=n(9095),a=n(5403),s=n(9162),u=n(2634),c=n(327);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},2980:(e,t,n)=>{var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),u=n(1704),c=n(6390);e.exports=function e(t,n,l,f,p){t!==n&&o(n,(function(o,u){if(p||(p=new r),s(o))a(t,n,u,l,e,f,p);else{var d=f?f(c(t,u),o,u+"",t,n,p):void 0;void 0===d&&(d=o),i(t,u,d)}}),u)}},9783:(e,t,n)=>{var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),u=n(5694),c=n(1469),l=n(9246),f=n(4144),p=n(3560),d=n(3218),h=n(8630),v=n(6719),y=n(6390),m=n(9881);e.exports=function(e,t,n,g,b,_,E){var w=y(e,n),S=y(t,n),I=E.get(S);if(I)r(e,n,I);else{var T=_?_(w,S,n+"",e,t,E):void 0,x=void 0===T;if(x){var O=c(S),D=!O&&f(S),C=!O&&!D&&v(S);T=S,O||D||C?c(w)?T=w:l(w)?T=a(w):D?(x=!1,T=i(S,!0)):C?(x=!1,T=o(S,!0)):T=[]:h(S)||u(S)?(T=w,u(w)?T=m(w):d(w)&&!p(w)||(T=s(S))):x=!1}x&&(E.set(S,T),b(T,S,g,_,E),E.delete(S)),r(e,n,T)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),i=n(5357),o=n(61);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),i=n(8777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},4259:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},5076:(e,t,n)=>{var r=n(4140);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),i=n(9932),o=n(1469),a=n(3448),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},7406:(e,t,n)=>{var r=n(1811),i=n(928),o=n(292),a=n(327);e.exports=function(e,t){return t=r(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},7415:(e,t,n)=>{var r=n(9932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var r=n(1469),i=n(5403),o=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7157:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:(e,t,n)=>{var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),i=n(9465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},8805:(e,t,n)=>{var r=n(8363),i=n(9551);e.exports=function(e,t){return r(e,i(e),t)}},1911:(e,t,n)=>{var r=n(8363),i=n(1442);e.exports=function(e,t){return r(e,i(e),t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}},9291:(e,t,n)=>{var r=n(8612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},696:(e,t,n)=>{var r=n(8630);e.exports=function(e){return r(e)?void 0:e}},8777:(e,t,n)=>{var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},7114:(e,t,n)=>{var r=n(8668),i=n(2908),o=n(4757);e.exports=function(e,t,n,a,s,u){var c=1&n,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<l;){var m=e[h],g=t[h];if(a)var b=c?a(g,m,h,t,e,u):a(m,g,h,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(m===e||s(m,e,n,a,u)))return y.push(t)}))){v=!1;break}}else if(m!==g&&!s(m,g,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},8351:(e,t,n)=>{var r=n(2705),i=n(1149),o=n(7813),a=n(7114),s=n(8776),u=n(1814),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&r;if(d||(d=u),e.size!=t.size&&!h)return!1;var v=p.get(e);if(v)return v==t;r|=2,p.set(e,t);var y=a(d(e),d(t),r,c,f,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var u=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var v=!0;s.set(e,t),s.set(t,e);for(var y=u;++f<l;){var m=e[p=c[f]],g=t[p];if(o)var b=u?o(g,m,p,t,e,s):o(m,g,p,e,t,s);if(!(void 0===b?m===g||a(m,g,n,o,s):b)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var _=e.constructor,E=t.constructor;_==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E||(v=!1)}return s.delete(e),s.delete(t),v}},9021:(e,t,n)=>{var r=n(5564),i=n(5357),o=n(61);e.exports=function(e){return o(i(e,void 0,r),e+"")}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),o=n(3674);e.exports=function(e){return r(e,o,i)}},6904:(e,t,n)=>{var r=n(8866),i=n(1442),o=n(1704);e.exports=function(e){return r(e,o,i)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},1442:(e,t,n)=>{var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},4160:(e,t,n)=>{var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),u=n(4239),c=n(346),l="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",v=c(r),y=c(i),m=c(o),g=c(a),b=c(s),_=u;(r&&_(new r(new ArrayBuffer(1)))!=h||i&&_(new i)!=l||o&&_(o.resolve())!=f||a&&_(new a)!=p||s&&_(new s)!=d)&&(_=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return h;case y:return l;case m:return f;case g:return p;case b:return d}return t}),e.exports=_},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),i=n(5694),o=n(1469),a=n(5776),s=n(1780),u=n(327);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(p,l)&&(o(e)||i(e))}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:(e,t,n)=>{var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},8517:(e,t,n)=>{var r=n(3118),i=n(5924),o=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},7285:(e,t,n)=>{var r=n(2705),i=n(5694),o=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),i=n(8612),o=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),i=n(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},292:(e,t,n)=>{var r=n(7786),i=n(4259);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var r=n(6560),i=n(1275)(r);e.exports=i},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},2351:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},5514:(e,t,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5564:(e,t,n)=>{var r=n(1078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},9095:(e,t,n)=>{var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:e=>{e.exports=function(e){return e}},4721:(e,t,n)=>{var r=n(2118),i=n(8612),o=n(7037),a=n(554),s=n(2628),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},5694:(e,t,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},1609:(e,t,n)=>{var r=n(280),i=n(4160),o=n(5694),a=n(1469),s=n(8612),u=n(4144),c=n(5726),l=n(6719),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,n)=>{var r=n(5588),i=n(7518),o=n(1167),a=o&&o.isMap,s=a?i(a):r;e.exports=s},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},2928:(e,t,n)=>{var r=n(9221),i=n(7518),o=n(1167),a=o&&o.isSet,s=a?i(a):r;e.exports=s},7037:(e,t,n)=>{var r=n(4239),i=n(1469),o=n(7005);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),i=n(7518),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},1704:(e,t,n)=>{var r=n(4636),i=n(313),o=n(8612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",m="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",E="[object GeneratorFunction]",w="[object Map]",S="[object Number]",I="[object Object]",T="[object Promise]",x="[object RegExp]",O="[object Set]",D="[object String]",C="[object Symbol]",P="[object WeakMap]",A="[object ArrayBuffer]",k="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",M="[object Int32Array]",j="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",$=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,W=RegExp(Q.source),Y=RegExp(z.source),K=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="["+Ie+"]",xe="["+Ee+"]",Oe="\\d+",De="["+we+"]",Ce="[^\\ud800-\\udfff"+Ie+Oe+"\\u2700-\\u27bf"+we+Se+"]",Pe="\\ud83c[\\udffb-\\udfff]",Ae="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",Ne="["+Se+"]",Fe="(?:"+De+"|"+Ce+")",Ue="(?:"+Ne+"|"+Ce+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",je="(?:['’](?:D|LL|M|RE|S|T|VE))?",Le="(?:"+xe+"|"+Pe+")?",Be="[\\ufe0e\\ufe0f]?",qe=Be+Le+"(?:\\u200d(?:"+[Ae,ke,Re].join("|")+")"+Be+Le+")*",$e="(?:"+["[\\u2700-\\u27bf]",ke,Re].join("|")+")"+qe,Ve="(?:"+[Ae+xe+"?",xe,ke,Re,"[\\ud800-\\udfff]"].join("|")+")",Ge=RegExp("['’]","g"),Qe=RegExp(xe,"g"),ze=RegExp(Pe+"(?="+Pe+")|"+Ve+qe,"g"),We=RegExp([Ne+"?"+De+"+"+Me+"(?="+[Te,Ne,"$"].join("|")+")",Ue+"+"+je+"(?="+[Te,Ne+Fe,"$"].join("|")+")",Ne+"?"+Fe+"+"+Me,Ne+"+"+je,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,$e].join("|"),"g"),Ye=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,He=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Xe={};Xe[R]=Xe[N]=Xe[F]=Xe[U]=Xe[M]=Xe[j]=Xe[L]=Xe[B]=Xe[q]=!0,Xe[v]=Xe[y]=Xe[A]=Xe[m]=Xe[k]=Xe[g]=Xe[b]=Xe[_]=Xe[w]=Xe[S]=Xe[I]=Xe[x]=Xe[O]=Xe[D]=Xe[P]=!1;var Ze={};Ze[v]=Ze[y]=Ze[A]=Ze[k]=Ze[m]=Ze[g]=Ze[R]=Ze[N]=Ze[F]=Ze[U]=Ze[M]=Ze[w]=Ze[S]=Ze[I]=Ze[x]=Ze[O]=Ze[D]=Ze[C]=Ze[j]=Ze[L]=Ze[B]=Ze[q]=!0,Ze[b]=Ze[_]=Ze[P]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,ct=ut&&rt.process,lt=function(){try{return st&&st.require&&st.require("util").types||ct&&ct.binding&&ct.binding("util")}catch(e){}}(),ft=lt&&lt.isArrayBuffer,pt=lt&&lt.isDate,dt=lt&&lt.isMap,ht=lt&&lt.isRegExp,vt=lt&&lt.isSet,yt=lt&&lt.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function gt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function wt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function St(e,t){return!(null==e||!e.length)&&Rt(e,t,0)>-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function xt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ot(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Pt=Mt("length");function At(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function kt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Rt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):kt(e,Ft,n)}function Nt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ft(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:p}function Mt(e){return function(t){return null==t?i:t[e]}}function jt(e){return function(t){return null==e?i:e[t]}}function Lt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Bt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Gt(e,t){return Tt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function zt(e,t){for(var n=-1,r=e.length;++n<r&&Rt(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&Rt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=jt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ht=jt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Xt(e){return Ye.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=ze.lastIndex=0;ze.test(e);)++t;return t}(e):Pt(e)}function an(e){return Xt(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var un=jt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),cn=function e(t){var n,r=(t=null==t?ot:cn.defaults(ot.Object(),t,cn.pick(ot,He))).Array,ie=t.Date,Ee=t.Error,we=t.Function,Se=t.Math,Ie=t.Object,Te=t.RegExp,xe=t.String,Oe=t.TypeError,De=r.prototype,Ce=we.prototype,Pe=Ie.prototype,Ae=t["__core-js_shared__"],ke=Ce.toString,Re=Pe.hasOwnProperty,Ne=0,Fe=(n=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ue=Pe.toString,Me=ke.call(Ie),je=ot._,Le=Te("^"+ke.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ut?t.Buffer:i,qe=t.Symbol,$e=t.Uint8Array,Ve=Be?Be.allocUnsafe:i,ze=en(Ie.getPrototypeOf,Ie),Ye=Ie.create,et=Pe.propertyIsEnumerable,rt=De.splice,it=qe?qe.isConcatSpreadable:i,at=qe?qe.iterator:i,st=qe?qe.toStringTag:i,ct=function(){try{var e=co(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Pt=ie&&ie.now!==ot.Date.now&&ie.now,jt=t.setTimeout!==ot.setTimeout&&t.setTimeout,ln=Se.ceil,fn=Se.floor,pn=Ie.getOwnPropertySymbols,dn=Be?Be.isBuffer:i,hn=t.isFinite,vn=De.join,yn=en(Ie.keys,Ie),mn=Se.max,gn=Se.min,bn=ie.now,_n=t.parseInt,En=Se.random,wn=De.reverse,Sn=co(t,"DataView"),In=co(t,"Map"),Tn=co(t,"Promise"),xn=co(t,"Set"),On=co(t,"WeakMap"),Dn=co(Ie,"create"),Cn=On&&new On,Pn={},An=Lo(Sn),kn=Lo(In),Rn=Lo(Tn),Nn=Lo(xn),Fn=Lo(On),Un=qe?qe.prototype:i,Mn=Un?Un.valueOf:i,jn=Un?Un.toString:i;function Ln(e){if(ns(e)&&!Qa(e)&&!(e instanceof Vn)){if(e instanceof $n)return e;if(Re.call(e,"__wrapped__"))return Bo(e)}return new $n(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Qn(e);this.size=t.size}function Kn(e,t){var n=Qa(e),r=!n&&Ga(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?qt(e.length,xe):[],u=s.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,u))||s.push(c);return s}function Hn(e){var t=e.length;return t?e[zr(0,t-1)]:i}function Jn(e,t){return No(Oi(e),ar(t,0,e.length))}function Xn(e){return No(Oi(e))}function Zn(e,t,n){(n!==i&&!qa(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Re.call(e,t)&&qa(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(qa(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&Di(t,ks(t),e)}function ir(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Os(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function sr(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var f=Qa(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Oi(e,s)}else{var p=po(e),d=p==_||p==E;if(Ka(e))return Ei(e,u);if(p==I||p==v||d&&!o){if(s=c||d?{}:vo(e),!u)return c?function(e,t){return Di(e,fo(e),t)}(e,function(e,t){return e&&Di(t,Rs(t),e)}(s,e)):function(e,t){return Di(e,lo(e),t)}(e,rr(s,e))}else{if(!Ze[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case A:return wi(e);case m:case g:return new i(+e);case k:return function(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case N:case F:case U:case M:case j:case L:case B:case q:return Si(e,n);case w:return new i;case S:case D:return new i(e);case x:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new i;case C:return r=e,Mn?Ie(Mn.call(r)):{}}}(e,p,u)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var y=f?i:(l?c?no:to:c?Rs:ks)(e);return bt(y||e,(function(r,i){y&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ie(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Oe(o);return Po((function(){e.apply(i,n)}),t)}function lr(e,t,n,r){var i=-1,o=St,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Tt(t,Vt(n))),r?(o=It,a=!1):t.length>=200&&(o=Qt,a=!1,t=new Wn(t));e:for(;++i<s;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}Ln.templateSettings={escape:K,evaluate:H,interpolate:J,variable:"",imports:{_:Ln}},Ln.prototype=qn.prototype,Ln.prototype.constructor=Ln,$n.prototype=Bn(qn.prototype),$n.prototype.constructor=$n,Vn.prototype=Bn(qn.prototype),Vn.prototype.constructor=Vn,Gn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?i:n}return Re.call(t,e)?t[e]:i},Gn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==i:Re.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===i?a:t,this},Qn.prototype.clear=function(){this.__data__=[],this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Qn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},Qn.prototype.has=function(e){return tr(this.__data__,e)>-1},Qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(In||Qn),string:new Gn}},zn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return so(this,e).get(e)},zn.prototype.has=function(e){return so(this,e).has(e)},zn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ai(br),pr=Ai(_r,!0);function dr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!cs(s):n(s,u)))var u=s,c=a}return c}function vr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=yo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):xt(i,s):r||(i[i.length]=s)}return i}var mr=ki(),gr=ki(!0);function br(e,t){return e&&mr(e,t,ks)}function _r(e,t){return e&&gr(e,t,ks)}function Er(e,t){return wt(t,(function(t){return Xa(e[t])}))}function wr(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[jo(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return Qa(e)?r:xt(r,n(e))}function Ir(e){return null==e?e===i?"[object Undefined]":"[object Null]":st&&st in Ie(e)?function(e){var t=Re.call(e,st),n=e[st];try{e[st]=i;var r=!0}catch(e){}var o=Ue.call(e);return r&&(t?e[st]=n:delete e[st]),o}(e):function(e){return Ue.call(e)}(e)}function Tr(e,t){return e>t}function xr(e,t){return null!=e&&Re.call(e,t)}function Or(e,t){return null!=e&&t in Ie(e)}function Dr(e,t,n){for(var o=n?It:St,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Tt(p,Vt(t))),l=gn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Wn(u&&p):i}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var v=p[d],y=t?t(v):v;if(v=n||0!==v?v:0,!(h?Qt(h,y):o(f,y,n))){for(u=s;--u;){var m=c[u];if(!(m?Qt(m,y):o(e[u],y,n)))continue e}h&&h.push(y),f.push(v)}}return f}function Cr(e,t,n){var r=null==(e=xo(e,t=mi(t,e)))?e:e[jo(Jo(t))];return null==r?i:mt(r,e,n)}function Pr(e){return ns(e)&&Ir(e)==v}function Ar(e,t,n,r,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Qa(e),u=Qa(t),c=s?y:po(e),l=u?y:po(t),f=(c=c==v?I:c)==I,p=(l=l==v?I:l)==I,d=c==l;if(d&&Ka(e)){if(!Ka(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Yn),s||ls(e)?Zi(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!o(new $e(e),new $e(t)));case m:case g:case S:return qa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case x:case D:return e==t+"";case w:var s=Zt;case O:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Zi(s(e),s(t),r,i,o,a);return a.delete(e),l;case C:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=f&&Re.call(e,"__wrapped__"),_=p&&Re.call(t,"__wrapped__");if(h||_){var E=h?e.value():e,T=_?t.value():t;return a||(a=new Yn),o(E,T,n,r,a)}}return!!d&&(a||(a=new Yn),function(e,t,n,r,o,a){var s=1&n,u=to(e),c=u.length;if(c!=to(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:Re.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=s;++l<c;){var y=e[f=u[l]],m=t[f];if(r)var g=s?r(m,y,f,t,e,a):r(y,m,f,e,t,a);if(!(g===i?y===m||o(y,m,n,r,a):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,Ar,o))}function kr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ie(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var p=new Yn;if(r)var d=r(l,f,c,e,t,p);if(!(d===i?Ar(f,l,3,r,p):d))return!1}}return!0}function Rr(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Xa(e)?Le:ve).test(Lo(e));var t}function Nr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Qa(e)?Lr(e[0],e[1]):jr(e):du(e)}function Fr(e){if(!wo(e))return yn(e);var t=[];for(var n in Ie(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ur(e,t){return e<t}function Mr(e,t){var n=-1,i=Wa(e)?r(e.length):[];return fr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function jr(e){var t=uo(e);return 1==t.length&&t[0][2]?Io(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Lr(e,t){return bo(e)&&So(t)?Io(jo(e),t):function(n){var r=Os(n,e);return r===i&&r===t?Ds(n,e):Ar(t,r,3)}}function Br(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,r,o,a,s){var u=Do(e,n),c=Do(t,n),l=s.get(c);if(l)Zn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):i,p=f===i;if(p){var d=Qa(c),h=!d&&Ka(c),v=!d&&!h&&ls(c);f=c,d||h||v?Qa(u)?f=u:Ya(u)?f=Oi(u):h?(p=!1,f=Ei(c,!0)):v?(p=!1,f=Si(c,!0)):f=[]:os(c)||Ga(c)?(f=u,Ga(u)?f=gs(u):ts(u)&&!Xa(u)||(f=vo(c))):p=!1}p&&(s.set(c,f),o(f,c,r,a,s),s.delete(c)),Zn(e,n,f)}}(e,t,s,n,Br,r,o);else{var u=r?r(Do(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Zn(e,s,u)}}),Rs)}function qr(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function $r(e,t,n){t=t.length?Tt(t,(function(e){return Qa(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Tt(t,Vt(ao()));var i=Mr(e,(function(e,n,i){var o=Tt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Ii(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=wr(e,a);n(s,a)&&Jr(o,mi(a,e),s)}return o}function Gr(e,t,n,r){var i=r?Nt:Rt,o=-1,a=t.length,s=e;for(e===t&&(t=Oi(t)),n&&(s=Tt(e,Vt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?rt.call(e,i,1):ci(e,i)}}return e}function zr(e,t){return e+fn(En()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Ao(To(e,t,iu),e+"")}function Kr(e){return Hn(qs(e))}function Hr(e,t){var n=qs(e);return No(n,ar(t,0,n.length))}function Jr(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=jo(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];(l=r?r(f,c,u):i)===i&&(l=ts(f)?f:mo(t[o+1])?[]:{})}er(u,c,l),u=u[c]}return e}var Xr=Cn?function(e,t){return Cn.set(e,t),e}:iu,Zr=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ei(e){return No(qs(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ni(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ii(e,t,iu,n)}function ii(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=cs(t),l=t===i;o<a;){var f=fn((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,v=p==p,y=cs(p);if(s)var m=r||v;else m=l?v&&(r||d):u?v&&d&&(r||!h):c?v&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);m?o=f+1:a=f}return gn(a,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!qa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ai(e){return"number"==typeof e?e:cs(e)?p:+e}function si(e){if("string"==typeof e)return e;if(Qa(e))return Tt(e,si)+"";if(cs(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=St,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=It;else if(o>=200){var c=t?null:Wi(e);if(c)return nn(c);a=!1,i=Qt,u=new Wn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function ci(e,t){return null==(e=xo(e,t=mi(t,e)))||delete e[jo(Jo(t))]}function li(e,t,n,r){return Jr(e,t,n(wr(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Ot(t,(function(e,t){return t.func.apply(t.thisArg,xt([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=lr(a[o]||s,e[u],t,n));return ui(yr(a,1),t,n)}function hi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function vi(e){return Ya(e)?e:[]}function yi(e){return"function"==typeof e?e:iu}function mi(e,t){return Qa(e)?e:bo(e,t)?[e]:Mo(bs(e))}var gi=Yr;function bi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var _i=lt||function(e){return ot.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function wi(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Si(e,t){var n=t?wi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ii(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=cs(e),s=t!==i,u=null===t,c=t==t,l=cs(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Ti(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=mn(a-s,0),f=r(c+l),p=!i;++u<c;)f[u]=t[u];for(;++o<s;)(p||o<a)&&(f[n[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function xi(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=mn(a-u,0),p=r(f+l),d=!i;++o<f;)p[o]=e[o];for(var h=o;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||o<a)&&(p[h+n[s]]=e[o++]);return p}function Oi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Di(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?ir(n,u,c):er(n,u,c)}return n}function Ci(e,t){return function(n,r){var i=Qa(n)?gt:nr,o=t?t():{};return i(n,e,ao(r,2),o)}}function Pi(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&go(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ie(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ai(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ie(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=Ie(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ri(e){return function(t){var n=Xt(t=bs(t))?an(t):i,r=n?n[0]:t.charAt(0),o=n?bi(n,1).join(""):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return Ot(Xs(Gs(t).replace(Ge,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Ui(e){return function(t,n,r){var o=Ie(t);if(!Wa(t)){var a=ao(n,3);t=ks(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function Mi(e){return eo((function(t){var n=t.length,r=n,a=$n.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Oe(o);if(a&&!u&&"wrapper"==io(s))var u=new $n([],!0)}for(r=u?r:n;++r<n;){var c=io(s=t[r]),l="wrapper"==c?ro(s):i;u=l&&_o(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[io(l[0])].apply(u,l[3]):1==s.length&&_o(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Qa(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function ji(e,t,n,o,a,s,u,l,f,p){var d=t&c,h=1&t,v=2&t,y=24&t,m=512&t,g=v?i:Fi(e);return function i(){for(var c=arguments.length,b=r(c),_=c;_--;)b[_]=arguments[_];if(y)var E=oo(i),w=Yt(b,E);if(o&&(b=Ti(b,o,a,y)),s&&(b=xi(b,s,u,y)),c-=w,y&&c<p){var S=tn(b,E);return Qi(e,t,ji,i.placeholder,n,b,S,l,f,p-c)}var I=h?n:this,T=v?I[e]:e;return c=b.length,l?b=Oo(b,l):m&&c>1&&b.reverse(),d&&f<c&&(b.length=f),this&&this!==ot&&this instanceof i&&(T=g||Fi(T)),T.apply(I,b)}}function Li(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=si(n),r=si(r)):(n=ai(n),r=ai(r)),o=e(n,r)}return o}}function qi(e){return eo((function(t){return t=Tt(t,Vt(ao())),Yr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function $i(e,t){var n=(t=t===i?" ":si(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,ln(e/on(t)));return Xt(t)?bi(an(r),0,e).join(""):r.slice(0,e)}function Vi(e){return function(t,n,o){return o&&"number"!=typeof o&&go(t,n,o)&&(n=o=i),t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n,i){for(var o=-1,a=mn(ln((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:hs(o),e)}}function Gi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Qi(e,t,n,r,o,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,l,f],h=n.apply(i,d);return _o(e)&&Co(h,d),h.placeholder=r,ko(h,e,t)}function zi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:gn(vs(n),292))&&hn(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Wi=xn&&1/nn(new xn([,-0]))[1]==l?function(e){return new xn(e)}:cu;function Yi(e){return function(t){var n=po(t);return n==w?Zt(t):n==O?rn(t):function(e,t){return Tt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ki(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Oe(o);var v=a?a.length:0;if(v||(t&=-97,a=l=i),p=p===i?p:mn(vs(p),0),d=d===i?d:vs(d),v-=l?l.length:0,64&t){var y=a,m=l;a=l=i}var g=h?i:ro(e),b=[e,t,n,a,l,y,m,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ti(l,u,t[4]):u,e[4]=l?tn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?xi(l,u,t[6]):u,e[6]=l?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,g),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===i?h?0:e.length:mn(b[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var o=Fi(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=oo(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:tn(u,l);return(s-=f.length)<n?Qi(e,t,ji,a.placeholder,i,u,f,i,i,n-s):mt(this&&this!==ot&&this instanceof a?o:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?ji.apply(i,b):function(e,t,n,i){var o=1&t,a=Fi(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),p=this&&this!==ot&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return mt(p,o?n:this,f)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return ko((g?Xr:Co)(_,b),e,t)}function Hi(e,t,n,r){return e===i||qa(e,Pe[n])&&!Re.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,i,Ji,a),a.delete(t)),e}function Xi(e){return os(e)?i:e}function Zi(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Wn:i;for(a.set(e,t),a.set(t,e);++p<u;){var v=e[p],y=t[p];if(r)var m=s?r(y,v,p,t,e,a):r(v,y,p,e,t,a);if(m!==i){if(m)continue;d=!1;break}if(h){if(!Ct(t,(function(e,t){if(!Qt(h,t)&&(v===e||o(v,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(v!==y&&!o(v,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function eo(e){return Ao(To(e,i,zo),e+"")}function to(e){return Sr(e,ks,lo)}function no(e){return Sr(e,Rs,fo)}var ro=Cn?function(e){return Cn.get(e)}:cu;function io(e){for(var t=e.name+"",n=Pn[t],r=Re.call(Pn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(Re.call(Ln,"placeholder")?Ln:e).placeholder}function ao(){var e=Ln.iteratee||ou;return e=e===ou?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function uo(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,So(i)]}return t}function co(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var lo=pn?function(e){return null==e?[]:(e=Ie(e),wt(pn(e),(function(t){return et.call(e,t)})))}:yu,fo=pn?function(e){for(var t=[];e;)xt(t,lo(e)),e=ze(e);return t}:yu,po=Ir;function ho(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=jo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&es(i)&&mo(a,i)&&(Qa(e)||Ga(e))}function vo(e){return"function"!=typeof e.constructor||wo(e)?{}:Bn(ze(e))}function yo(e){return Qa(e)||Ga(e)||!!(it&&e&&e[it])}function mo(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function go(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&mo(t,n.length):"string"==r&&t in n)&&qa(n[t],e)}function bo(e,t){if(Qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||Z.test(e)||!X.test(e)||null!=t&&e in Ie(t)}function _o(e){var t=io(e),n=Ln[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Sn&&po(new Sn(new ArrayBuffer(1)))!=k||In&&po(new In)!=w||Tn&&po(Tn.resolve())!=T||xn&&po(new xn)!=O||On&&po(new On)!=P)&&(po=function(e){var t=Ir(e),n=t==I?e.constructor:i,r=n?Lo(n):"";if(r)switch(r){case An:return k;case kn:return w;case Rn:return T;case Nn:return O;case Fn:return P}return t});var Eo=Ae?Xa:mu;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function So(e){return e==e&&!ts(e)}function Io(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Ie(n))}}function To(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),mt(e,this,u)}}function xo(e,t){return t.length<2?e:wr(e,ti(t,0,-1))}function Oo(e,t){for(var n=e.length,r=gn(t.length,n),o=Oi(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}function Do(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Co=Ro(Xr),Po=jt||function(e,t){return ot.setTimeout(e,t)},Ao=Ro(Zr);function ko(e,t,n){var r=t+"";return Ao(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ro(e){var t=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=zr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo,Uo,Mo=(Fo=Fa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Uo.size&&Uo.clear(),e})),Uo=Fo.cache,Fo);function jo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lo(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Vn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var qo=Yr((function(e,t){return Ya(e)?lr(e,yr(t,1,Ya,!0)):[]})),$o=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),ao(n,2)):[]})),Vo=Yr((function(e,t){var n=Jo(t);return Ya(n)&&(n=i),Ya(e)?lr(e,yr(t,1,Ya,!0),i,n):[]}));function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),kt(e,ao(t,3),i)}function Qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vs(n),o=n<0?mn(r+o,0):gn(o,r-1)),kt(e,ao(t,3),o,!0)}function zo(e){return null!=e&&e.length?yr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var Yo=Yr((function(e){var t=Tt(e,vi);return t.length&&t[0]===e[0]?Dr(t):[]})),Ko=Yr((function(e){var t=Jo(e),n=Tt(e,vi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Dr(n,ao(t,2)):[]})),Ho=Yr((function(e){var t=Jo(e),n=Tt(e,vi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Dr(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Xo=Yr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Qr(e,Tt(t,(function(e){return mo(e,n)?+e:e})).sort(Ii)),r}));function ta(e){return null==e?e:wn.call(e)}var na=Yr((function(e){return ui(yr(e,1,Ya,!0))})),ra=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),ui(yr(e,1,Ya,!0),ao(t,2))})),ia=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ui(yr(e,1,Ya,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=wt(e,(function(e){if(Ya(e))return t=mn(e.length,t),!0})),qt(t,(function(t){return Tt(e,Mt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Tt(n,(function(e){return mt(t,i,e)}))}var sa=Yr((function(e,t){return Ya(e)?lr(e,t):[]})),ua=Yr((function(e){return di(wt(e,Ya))})),ca=Yr((function(e){var t=Jo(e);return Ya(t)&&(t=i),di(wt(e,Ya),ao(t,2))})),la=Yr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,di(wt(e,Ya),i,t)})),fa=Yr(oa),pa=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,aa(e,n)}));function da(e){var t=Ln(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new $n(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ya=Ci((function(e,t,n){Re.call(e,n)?++e[n]:ir(e,n,1)})),ma=Ui(Go),ga=Ui(Qo);function ba(e,t){return(Qa(e)?bt:fr)(e,ao(t,3))}function _a(e,t){return(Qa(e)?_t:pr)(e,ao(t,3))}var Ea=Ci((function(e,t,n){Re.call(e,n)?e[n].push(t):ir(e,n,[t])})),wa=Yr((function(e,t,n){var i=-1,o="function"==typeof t,a=Wa(e)?r(e.length):[];return fr(e,(function(e){a[++i]=o?mt(t,e,n):Cr(e,t,n)})),a})),Sa=Ci((function(e,t,n){ir(e,n,t)}));function Ia(e,t){return(Qa(e)?Tt:Mr)(e,ao(t,3))}var Ta=Ci((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),xa=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&go(e,t[0],t[1])?t=[]:n>2&&go(t[0],t[1],t[2])&&(t=[t[0]]),$r(e,yr(t,1),[])})),Oa=Pt||function(){return ot.Date.now()};function Da(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,c,i,i,i,i,t)}function Ca(e,t){var n;if("function"!=typeof t)throw new Oe(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Pa=Yr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Pa));r|=u}return Ki(e,r,t,n,i)})),Aa=Yr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Aa));r|=u}return Ki(t,r,e,n,i)}));function ka(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Oe(o);function v(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function y(e){return f=e,c=Po(g,t),p?v(e):u}function m(e){var n=e-l;return l===i||n>=t||n<0||d&&e-f>=s}function g(){var e=Oa();if(m(e))return b(e);c=Po(g,function(e){var n=t-(e-l);return d?gn(n,s-(e-f)):n}(e))}function b(e){return c=i,h&&r?v(e):(r=a=i,u)}function _(){var e=Oa(),n=m(e);if(r=arguments,a=this,l=e,n){if(c===i)return y(l);if(d)return _i(c),c=Po(g,t),v(l)}return c===i&&(c=Po(g,t)),u}return t=ms(t)||0,ts(n)&&(p=!!n.leading,s=(d="maxWait"in n)?mn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),_.cancel=function(){c!==i&&_i(c),f=0,r=l=a=c=i},_.flush=function(){return c===i?u:b(Oa())},_}var Ra=Yr((function(e,t){return cr(e,1,t)})),Na=Yr((function(e,t,n){return cr(e,ms(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||zn),n}function Ua(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=zn;var Ma=gi((function(e,t){var n=(t=1==t.length&&Qa(t[0])?Tt(t[0],Vt(ao())):Tt(yr(t,1),Vt(ao()))).length;return Yr((function(r){for(var i=-1,o=gn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return mt(e,this,r)}))})),ja=Yr((function(e,t){var n=tn(t,oo(ja));return Ki(e,u,i,t,n)})),La=Yr((function(e,t){var n=tn(t,oo(La));return Ki(e,64,i,t,n)})),Ba=eo((function(e,t){return Ki(e,256,i,i,i,t)}));function qa(e,t){return e===t||e!=e&&t!=t}var $a=Gi(Tr),Va=Gi((function(e,t){return e>=t})),Ga=Pr(function(){return arguments}())?Pr:function(e){return ns(e)&&Re.call(e,"callee")&&!et.call(e,"callee")},Qa=r.isArray,za=ft?Vt(ft):function(e){return ns(e)&&Ir(e)==A};function Wa(e){return null!=e&&es(e.length)&&!Xa(e)}function Ya(e){return ns(e)&&Wa(e)}var Ka=dn||mu,Ha=pt?Vt(pt):function(e){return ns(e)&&Ir(e)==g};function Ja(e){if(!ns(e))return!1;var t=Ir(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Xa(e){if(!ts(e))return!1;var t=Ir(e);return t==_||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==vs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=dt?Vt(dt):function(e){return ns(e)&&po(e)==w};function is(e){return"number"==typeof e||ns(e)&&Ir(e)==S}function os(e){if(!ns(e)||Ir(e)!=I)return!1;var t=ze(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Me}var as=ht?Vt(ht):function(e){return ns(e)&&Ir(e)==x},ss=vt?Vt(vt):function(e){return ns(e)&&po(e)==O};function us(e){return"string"==typeof e||!Qa(e)&&ns(e)&&Ir(e)==D}function cs(e){return"symbol"==typeof e||ns(e)&&Ir(e)==C}var ls=yt?Vt(yt):function(e){return ns(e)&&es(e.length)&&!!Xe[Ir(e)]},fs=Gi(Ur),ps=Gi((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return us(e)?an(e):Oi(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=po(e);return(t==w?Zt:t==O?nn:qs)(e)}function hs(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?ar(vs(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(cs(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=he.test(e);return n||ye.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function gs(e){return Di(e,Rs(e))}function bs(e){return null==e?"":si(e)}var _s=Pi((function(e,t){if(wo(t)||Wa(t))Di(t,ks(t),e);else for(var n in t)Re.call(t,n)&&er(e,n,t[n])})),Es=Pi((function(e,t){Di(t,Rs(t),e)})),ws=Pi((function(e,t,n,r){Di(t,Rs(t),e,r)})),Ss=Pi((function(e,t,n,r){Di(t,ks(t),e,r)})),Is=eo(or),Ts=Yr((function(e,t){e=Ie(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&go(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Rs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===i||qa(f,Pe[l])&&!Re.call(e,l))&&(e[l]=a[l])}return e})),xs=Yr((function(e){return e.push(i,Ji),mt(Fs,i,e)}));function Os(e,t,n){var r=null==e?i:wr(e,t);return r===i?n:r}function Ds(e,t){return null!=e&&ho(e,t,Or)}var Cs=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),e[t]=n}),tu(iu)),Ps=Li((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ue.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),ao),As=Yr(Cr);function ks(e){return Wa(e)?Kn(e):Fr(e)}function Rs(e){return Wa(e)?Kn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=wo(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Ns=Pi((function(e,t,n){Br(e,t,n)})),Fs=Pi((function(e,t,n,r){Br(e,t,n,r)})),Us=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tt(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),Di(e,no(e),n),r&&(n=sr(n,7,Xi));for(var i=t.length;i--;)ci(n,t[i]);return n})),Ms=eo((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ds(e,n)}))}(e,t)}));function js(e,t){if(null==e)return{};var n=Tt(no(e),(function(e){return[e]}));return t=ao(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Ls=Yi(ks),Bs=Yi(Rs);function qs(e){return null==e?[]:Gt(e,ks(e))}var $s=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Js(bs(e).toLowerCase())}function Gs(e){return(e=bs(e))&&e.replace(ge,Kt).replace(Qe,"")}var Qs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),zs=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=Ri("toLowerCase"),Ys=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Ni((function(e,t,n){return e+(n?" ":"")+Js(t)})),Hs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Ri("toUpperCase");function Xs(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(We)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Zs=Yr((function(e,t){try{return mt(e,i,t)}catch(e){return Ja(e)?e:new Ee(e)}})),eu=eo((function(e,t){return bt(t,(function(t){t=jo(t),ir(e,t,Pa(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Mi(),ru=Mi(!0);function iu(e){return e}function ou(e){return Nr("function"==typeof e?e:sr(e,1))}var au=Yr((function(e,t){return function(n){return Cr(n,e,t)}})),su=Yr((function(e,t){return function(n){return Cr(e,n,t)}}));function uu(e,t,n){var r=ks(t),i=Er(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,ks(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return bt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Oi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,xt([this.value()],arguments))})})),e}function cu(){}var lu=qi(Tt),fu=qi(Et),pu=qi(Ct);function du(e){return bo(e)?Mt(jo(e)):function(e){return function(t){return wr(t,e)}}(e)}var hu=Vi(),vu=Vi(!0);function yu(){return[]}function mu(){return!1}var gu,bu=Bi((function(e,t){return e+t}),0),_u=zi("ceil"),Eu=Bi((function(e,t){return e/t}),1),wu=zi("floor"),Su=Bi((function(e,t){return e*t}),1),Iu=zi("round"),Tu=Bi((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=Da,Ln.assign=_s,Ln.assignIn=Es,Ln.assignInWith=ws,Ln.assignWith=Ss,Ln.at=Is,Ln.before=Ca,Ln.bind=Pa,Ln.bindAll=eu,Ln.bindKey=Aa,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qa(e)?e:[e]},Ln.chain=da,Ln.chunk=function(e,t,n){t=(n?go(e,t,n):t===i)?1:mn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(ln(o/t));a<o;)u[s++]=ti(e,a,a+=t);return u},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return xt(Qa(n)?Oi(n):[n],yr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=ao();return e=t?Tt(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(mt(i[0],this,n))return mt(i[1],this,n)}}))},Ln.conforms=function(e){return function(e){var t=ks(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Ln.constant=tu,Ln.countBy=ya,Ln.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Ln.curry=function e(t,n,r){var o=Ki(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.curryRight=function e(t,n,r){var o=Ki(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Ln.debounce=ka,Ln.defaults=Ts,Ln.defaultsDeep=xs,Ln.defer=Ra,Ln.delay=Na,Ln.difference=qo,Ln.differenceBy=$o,Ln.differenceWith=Vo,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:vs(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:vs(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!0):[]},Ln.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&go(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(Qa(e)?wt:vr)(e,ao(t,3))},Ln.flatMap=function(e,t){return yr(Ia(e,t),1)},Ln.flatMapDeep=function(e,t){return yr(Ia(e,t),l)},Ln.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),yr(Ia(e,t),n)},Ln.flatten=zo,Ln.flattenDeep=function(e){return null!=e&&e.length?yr(e,l):[]},Ln.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===i?1:vs(t)):[]},Ln.flip=function(e){return Ki(e,512)},Ln.flow=nu,Ln.flowRight=ru,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Ln.functions=function(e){return null==e?[]:Er(e,ks(e))},Ln.functionsIn=function(e){return null==e?[]:Er(e,Rs(e))},Ln.groupBy=Ea,Ln.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Ln.intersection=Yo,Ln.intersectionBy=Ko,Ln.intersectionWith=Ho,Ln.invert=Cs,Ln.invertBy=Ps,Ln.invokeMap=wa,Ln.iteratee=ou,Ln.keyBy=Sa,Ln.keys=ks,Ln.keysIn=Rs,Ln.map=Ia,Ln.mapKeys=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Ln.mapValues=function(e,t){var n={};return t=ao(t,3),br(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Ln.matches=function(e){return jr(sr(e,1))},Ln.matchesProperty=function(e,t){return Lr(e,sr(t,1))},Ln.memoize=Fa,Ln.merge=Ns,Ln.mergeWith=Fs,Ln.method=au,Ln.methodOf=su,Ln.mixin=uu,Ln.negate=Ua,Ln.nthArg=function(e){return e=vs(e),Yr((function(t){return qr(t,e)}))},Ln.omit=Us,Ln.omitBy=function(e,t){return js(e,Ua(ao(t)))},Ln.once=function(e){return Ca(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(Qa(t)||(t=null==t?[]:[t]),Qa(n=r?i:n)||(n=null==n?[]:[n]),$r(e,t,n))},Ln.over=lu,Ln.overArgs=Ma,Ln.overEvery=fu,Ln.overSome=pu,Ln.partial=ja,Ln.partialRight=La,Ln.partition=Ta,Ln.pick=Ms,Ln.pickBy=js,Ln.property=du,Ln.propertyOf=function(e){return function(t){return null==e?i:wr(e,t)}},Ln.pull=Xo,Ln.pullAll=Zo,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ao(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,i,n):e},Ln.pullAt=ea,Ln.range=hu,Ln.rangeRight=vu,Ln.rearg=Ba,Ln.reject=function(e,t){return(Qa(e)?wt:vr)(e,Ua(ao(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ao(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Qr(e,i),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Yr(e,t=t===i?t:vs(t))},Ln.reverse=ta,Ln.sampleSize=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),(Qa(e)?Jn:Hr)(e,t)},Ln.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Ln.shuffle=function(e){return(Qa(e)?Xn:ei)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&go(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===i?r:vs(n)),ti(e,t,n)):[]},Ln.sortBy=xa,Ln.sortedUniq=function(e){return e&&e.length?oi(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?oi(e,ao(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&go(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Xt(e)?bi(an(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:mn(vs(t),0),Yr((function(n){var r=n[t],i=bi(n,0,t);return r&&xt(i,r),mt(e,this,i)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:vs(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?fi(e,ao(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ka(e,t,{leading:r,maxWait:t,trailing:i})},Ln.thru=ha,Ln.toArray=ds,Ln.toPairs=Ls,Ln.toPairsIn=Bs,Ln.toPath=function(e){return Qa(e)?Tt(e,jo):cs(e)?[e]:Oi(Mo(bs(e)))},Ln.toPlainObject=gs,Ln.transform=function(e,t,n){var r=Qa(e),i=r||Ka(e)||ls(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Xa(o)?Bn(ze(e)):{}}return(i?bt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Ln.unary=function(e){return Da(e,1)},Ln.union=na,Ln.unionBy=ra,Ln.unionWith=ia,Ln.uniq=function(e){return e&&e.length?ui(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?ui(e,ao(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Ln.unset=function(e,t){return null==e||ci(e,t)},Ln.unzip=oa,Ln.unzipWith=aa,Ln.update=function(e,t,n){return null==e?e:li(e,t,yi(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:li(e,t,yi(n),r)},Ln.values=qs,Ln.valuesIn=function(e){return null==e?[]:Gt(e,Rs(e))},Ln.without=sa,Ln.words=Xs,Ln.wrap=function(e,t){return ja(yi(t),e)},Ln.xor=ua,Ln.xorBy=ca,Ln.xorWith=la,Ln.zip=fa,Ln.zipObject=function(e,t){return hi(e||[],t||[],er)},Ln.zipObjectDeep=function(e,t){return hi(e||[],t||[],Jr)},Ln.zipWith=pa,Ln.entries=Ls,Ln.entriesIn=Bs,Ln.extend=Es,Ln.extendWith=ws,uu(Ln,Ln),Ln.add=bu,Ln.attempt=Zs,Ln.camelCase=$s,Ln.capitalize=Vs,Ln.ceil=_u,Ln.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),ar(ms(e),t,n)},Ln.clone=function(e){return sr(e,4)},Ln.cloneDeep=function(e){return sr(e,5)},Ln.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Ln.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Ln.conformsTo=function(e,t){return null==t||ur(e,t,ks(t))},Ln.deburr=Gs,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=Eu,Ln.endsWith=function(e,t,n){e=bs(e),t=si(t);var r=e.length,o=n=n===i?r:ar(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Ln.eq=qa,Ln.escape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(z,Ht):e},Ln.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=Qa(e)?Et:dr;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.find=ma,Ln.findIndex=Go,Ln.findKey=function(e,t){return At(e,ao(t,3),br)},Ln.findLast=ga,Ln.findLastIndex=Qo,Ln.findLastKey=function(e,t){return At(e,ao(t,3),_r)},Ln.floor=wu,Ln.forEach=ba,Ln.forEachRight=_a,Ln.forIn=function(e,t){return null==e?e:mr(e,ao(t,3),Rs)},Ln.forInRight=function(e,t){return null==e?e:gr(e,ao(t,3),Rs)},Ln.forOwn=function(e,t){return e&&br(e,ao(t,3))},Ln.forOwnRight=function(e,t){return e&&_r(e,ao(t,3))},Ln.get=Os,Ln.gt=$a,Ln.gte=Va,Ln.has=function(e,t){return null!=e&&ho(e,t,xr)},Ln.hasIn=Ds,Ln.head=Wo,Ln.identity=iu,Ln.includes=function(e,t,n,r){e=Wa(e)?e:qs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Rt(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=mn(r+i,0)),Rt(e,t,i)},Ln.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=gn(t,n)&&e<mn(t,n)}(e=ms(e),t,n)},Ln.invoke=As,Ln.isArguments=Ga,Ln.isArray=Qa,Ln.isArrayBuffer=za,Ln.isArrayLike=Wa,Ln.isArrayLikeObject=Ya,Ln.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ir(e)==m},Ln.isBuffer=Ka,Ln.isDate=Ha,Ln.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Qa(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ls(e)||Ga(e)))return!e.length;var t=po(e);if(t==w||t==O)return!e.size;if(wo(e))return!Fr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Ar(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ar(e,t,i,n):!!r},Ln.isError=Ja,Ln.isFinite=function(e){return"number"==typeof e&&hn(e)},Ln.isFunction=Xa,Ln.isInteger=Za,Ln.isLength=es,Ln.isMap=rs,Ln.isMatch=function(e,t){return e===t||kr(e,t,uo(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,kr(e,t,uo(t),n)},Ln.isNaN=function(e){return is(e)&&e!=+e},Ln.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=is,Ln.isObject=ts,Ln.isObjectLike=ns,Ln.isPlainObject=os,Ln.isRegExp=as,Ln.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=f},Ln.isSet=ss,Ln.isString=us,Ln.isSymbol=cs,Ln.isTypedArray=ls,Ln.isUndefined=function(e){return e===i},Ln.isWeakMap=function(e){return ns(e)&&po(e)==P},Ln.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ir(e)},Ln.join=function(e,t){return null==e?"":vn.call(e,t)},Ln.kebabCase=Qs,Ln.last=Jo,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?mn(r+o,0):gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):kt(e,Ft,o,!0)},Ln.lowerCase=zs,Ln.lowerFirst=Ws,Ln.lt=fs,Ln.lte=ps,Ln.max=function(e){return e&&e.length?hr(e,iu,Tr):i},Ln.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Tr):i},Ln.mean=function(e){return Ut(e,iu)},Ln.meanBy=function(e,t){return Ut(e,ao(t,2))},Ln.min=function(e){return e&&e.length?hr(e,iu,Ur):i},Ln.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Ur):i},Ln.stubArray=yu,Ln.stubFalse=mu,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=Su,Ln.nth=function(e,t){return e&&e.length?qr(e,vs(t)):i},Ln.noConflict=function(){return ot._===this&&(ot._=je),this},Ln.noop=cu,Ln.now=Oa,Ln.pad=function(e,t,n){e=bs(e);var r=(t=vs(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return $i(fn(i),n)+e+$i(ln(i),n)},Ln.padEnd=function(e,t,n){e=bs(e);var r=(t=vs(t))?on(e):0;return t&&r<t?e+$i(t-r,n):e},Ln.padStart=function(e,t,n){e=bs(e);var r=(t=vs(t))?on(e):0;return t&&r<t?$i(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(bs(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&go(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return gn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return zr(e,t)},Ln.reduce=function(e,t,n){var r=Qa(e)?Ot:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},Ln.reduceRight=function(e,t,n){var r=Qa(e)?Dt:Lt,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},Ln.repeat=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:vs(t),Wr(bs(e),t)},Ln.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[jo(t[r])];a===i&&(r=o,a=n),e=Xa(a)?a.call(e):a}return e},Ln.round=Iu,Ln.runInContext=e,Ln.sample=function(e){return(Qa(e)?Hn:Kr)(e)},Ln.size=function(e){if(null==e)return 0;if(Wa(e))return us(e)?on(e):e.length;var t=po(e);return t==w||t==O?e.size:Fr(e).length},Ln.snakeCase=Ys,Ln.some=function(e,t,n){var r=Qa(e)?Ct:ni;return n&&go(e,t,n)&&(t=i),r(e,ao(t,3))},Ln.sortedIndex=function(e,t){return ri(e,t)},Ln.sortedIndexBy=function(e,t,n){return ii(e,t,ao(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&qa(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return ri(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ii(e,t,ao(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(qa(e[n],t))return n}return-1},Ln.startCase=Ks,Ln.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:ar(vs(n),0,e.length),t=si(t),e.slice(n,n+t.length)==t},Ln.subtract=Tu,Ln.sum=function(e){return e&&e.length?Bt(e,iu):0},Ln.sumBy=function(e,t){return e&&e.length?Bt(e,ao(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&go(e,t,n)&&(t=i),e=bs(e),t=ws({},t,r,Hi);var o,a,s=ws({},t.imports,r.imports,Hi),u=ks(s),c=Gt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Te((t.escape||be).source+"|"+f.source+"|"+(f===J?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(d,(function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(l,u).replace(_e,Jt),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var v=Re.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace($,""):p).replace(V,"$1").replace(G,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Zs((function(){return we(u,h+"return "+p).apply(i,c)}));if(y.source=p,Ja(y))throw y;return y},Ln.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ao(t),e-=d;for(var i=qt(r,t);++n<e;)t(n);return i},Ln.toFinite=hs,Ln.toInteger=vs,Ln.toLength=ys,Ln.toLower=function(e){return bs(e).toLowerCase()},Ln.toNumber=ms,Ln.toSafeInteger=function(e){return e?ar(vs(e),-9007199254740991,f):0===e?e:0},Ln.toString=bs,Ln.toUpper=function(e){return bs(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=bs(e))&&(n||t===i))return $t(e);if(!e||!(t=si(t)))return e;var r=an(e),o=an(t);return bi(r,zt(r,o),Wt(r,o)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.slice(0,sn(e)+1);if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,0,Wt(r,an(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=si(t)))return e;var r=an(e);return bi(r,zt(r,an(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?vs(t.length):n,r="omission"in t?si(t.omission):r}var a=(e=bs(e)).length;if(Xt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var c=s?bi(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),as(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=Te(o.source,bs(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(si(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Ln.unescape=function(e){return(e=bs(e))&&W.test(e)?e.replace(Q,un):e},Ln.uniqueId=function(e){var t=++Ne;return bs(e)+t},Ln.upperCase=Hs,Ln.upperFirst=Js,Ln.each=ba,Ln.eachRight=_a,Ln.first=Wo,uu(Ln,(gu={},br(Ln,(function(e,t){Re.call(Ln.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Ln.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),bt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:mn(vs(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(iu)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Cr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ua(ao(e)))},Vn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(d)},br(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Ln[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Ln.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Vn,c=s[0],l=u||Qa(t),f=function(e){var t=o.apply(Ln,xt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&l){t=v?t:new Vn(this);var y=e.apply(t,s);return y.__actions__.push({func:ha,args:[f],thisArg:i}),new $n(y,p)}return h&&v?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Qa(i)?i:[],e)}return this[n]((function(n){return t.apply(Qa(n)?n:[],e)}))}})),br(Vn.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";Re.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[ji(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return pi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var v=-1,y=e[c+=t];++v<f;){var m=l[v],g=m.iteratee,b=m.type,_=g(y);if(2==b)y=_;else if(!_){if(1==b)continue e;break e}}h[p++]=y}return h},Ln.prototype.at=va,Ln.prototype.chain=function(){return da(this)},Ln.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new $n(t,this.__chain__)}return this.thru(ta)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,at&&(Ln.prototype[at]=function(){return this}),Ln}();ot._=cn,(r=function(){return cn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},5161:(e,t,n)=>{var r=n(9932),i=n(7206),o=n(9199),a=n(1469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},8306:(e,t,n)=>{var r=n(3369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},2492:(e,t,n)=>{var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},7557:(e,t,n)=>{var r=n(9932),i=n(5990),o=n(7406),a=n(1811),s=n(8363),u=n(696),c=n(9021),l=n(6904),f=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,l(e),n),c&&(n=i(n,7,u));for(var f=t.length;f--;)o(n,t[f]);return n}));e.exports=f},9601:(e,t,n)=>{var r=n(371),i=n(9152),o=n(5403),a=n(327);e.exports=function(e){return o(e)?r(a(e)):i(e)}},9704:(e,t,n)=>{var r=n(2908),i=n(7206),o=n(5076),a=n(1469),s=n(6612);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var r=n(4841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var r=n(8601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var r=n(7561),i=n(3218),o=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9881:(e,t,n)=>{var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},2628:(e,t,n)=>{var r=n(7415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},2527:(e,t,n)=>{"use strict";t.TypedEmitter=n(7187).EventEmitter},7583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccessDeniedReason:()=>c.fEx,Alignment:()=>c.v2N,BOOLEAN_DEFAULT_FALLBACK_ENTITLEMENT:()=>l,BillingModel:()=>c.FzK,BillingPeriod:()=>c.tvV,BillingVendorIdentifier:()=>c.ugv,Currency:()=>c.Fa6,CustomerModel:()=>d,DiscountDurationType:()=>c.C2e,DiscountType:()=>c.Lbh,EntitlementResetPeriod:()=>c.XHu,ExperimentGroupType:()=>c.zOd,FeatureType:()=>c.Tex,FontWeight:()=>c.U9t,LogLevel:()=>o,METERED_DEFAULT_FALLBACK_ENTITLEMENT:()=>p,MeterType:()=>c.puT,NUMERIC_DEFAULT_FALLBACK_ENTITLEMENT:()=>f,PaymentCollection:()=>c.QdX,PricingType:()=>c._HY,PromotionalEntitlementStatus:()=>c.$Vq,SubscriptionScheduleType:()=>c.YVG,SubscriptionStatus:()=>c.yhH,TiersMode:()=>c.PNd,TrialPeriodUnits:()=>c.p13,WidgetType:()=>c.l9N,default:()=>Nu});var r={};n.r(r),n.d(r,{FunctionToString:()=>Xo,InboundFilters:()=>fa});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>Ts,Dedupe:()=>Ns,GlobalHandlers:()=>ls,HttpContext:()=>Rs,LinkedErrors:()=>Ps,TryCatch:()=>ms});var o,a=n(4721),s=n.n(a);!function(e){e.ALL="ALL",e.NONE="NONE",e.LOG="LOG",e.ERROR="ERROR"}(o||(o={}));var u=function(){function e(e,t){this.logger=e,this.logLevel=t}return e.prototype.error=function(e,t){this.logLevel!==o.NONE&&this.logger.error("[Stigg] ".concat(e),t||{})},e.prototype.log=function(e,t){s()([o.ERROR,o.NONE],this.logLevel)||this.logger.log("[Stigg] ".concat(e),t||{})},e.prototype.debug=function(e,t){s()([o.LOG,o.ALL],this.logLevel)&&this.logger.debug("[Stigg] ".concat(e),t||{})},e}(),c=n(890),l={isFallback:!0,hasAccess:!1,accessDeniedReason:c.fEx.Unknown},f={isFallback:!0,hasAccess:!1,isUnlimited:!1,accessDeniedReason:c.fEx.Unknown},p={isFallback:!0,hasAccess:!1,isUnlimited:!1,currentUsage:0,requestedUsage:1,accessDeniedReason:c.fEx.Unknown},d=function(){function e(e){Object.assign(this,e)}return e.prototype.getActiveSubscriptions=function(){return this.subscriptions.filter((function(e){return e.status===c.yhH.Active}))},e.prototype.getActiveTrials=function(){return this.subscriptions.filter((function(e){return e.status===c.yhH.InTrial}))},e.prototype.getActivePromotionalEntitlements=function(){return this.promotionalEntitlements.filter((function(e){return e.status===c.$Vq.Active}))},e}(),h=n(6486);const v=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getSdkConfiguration=function(){return this.edgeApiClient?this.edgeApiClient.getSdkConfiguration():this.client.query({query:c.N9K})},e}();var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)},m=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getPaywall=function(e){var t=e.productId,n=e.customerId,r=e.resourceId,i=e.context,o=e.billingCountryCode;return!n&&this.edgeApiClient?this.edgeApiClient.getPaywall(t,o):this.client.query({query:c.RVX,fetchPolicy:"no-cache",variables:{input:y(y(y(y(y({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{resourceId:r}:{}),i?{context:i}:{}),o?{billingCountryCode:o}:{})}})},e}();const g=m;var b=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},_=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},E=function(){function e(e){this.client=e}return e.prototype.getCustomer=function(e){return this.client.query({query:c.ZeH,variables:{input:{customerId:e}},fetchPolicy:"no-cache"})},e.prototype.getActiveSubscriptions=function(e,t){return b(this,void 0,void 0,(function(){return _(this,(function(n){return[2,this.client.query({query:c.OpC,variables:{input:(0,h.isArray)(t)?{customerId:e,resourceIds:t}:{customerId:e,resourceId:t}},fetchPolicy:"no-cache"})]}))}))},e.prototype.getCustomerPortal=function(e,t,n){return this.client.query({query:c.$Av,variables:{input:{customerId:e,resourceId:t,productId:n}},fetchPolicy:"no-cache"})},e.prototype.fetchUsageHistory=function(e){var t=e.customerId,n=e.resourceId,r=e.endDate,i=e.startDate,o=e.featureId;return b(this,void 0,void 0,(function(){return _(this,(function(e){return[2,this.client.query({query:c.K0T,variables:{usageHistoryInput:{customerRefId:t,featureRefId:o,resourceRefId:n,startDate:i,endDate:r||new Date}},fetchPolicy:"no-cache"})]}))}))},e}();const w=E,S=function(){function e(e){this.client=e}return e.prototype.getCoupons=function(){return this.client.query({query:c.Q$1,fetchPolicy:"no-cache"})},e}();var I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},I.apply(this,arguments)},T=function(){function e(e){this.client=e}return e.prototype.applySubscription=function(e){var t=e.customerId,n=e.planId,r=e.paymentMethodId,i=e.addons,o=e.billableFeatures,a=e.billingInformation,s=e.billingCountryCode,u=e.billingId,l=e.billingPeriod,f=e.metadata,p=e.promotionCode,d=e.resourceId,h=e.skipTrial,v=e.startDate,y=e.unitQuantity;return this.client.mutate({mutation:c.Bkk,variables:{input:{customerId:t,planId:n,paymentMethodId:r,startDate:v,addons:i,billingId:u,billingPeriod:l,unitQuantity:y,billableFeatures:o,additionalMetaData:f,resourceId:d,skipTrial:h,promotionCode:p,billingInformation:this.mapBillingInformation(a),billingCountryCode:s}}})},e.prototype.checkoutState=function(e){var t=e.customerId,n=e.resourceId,r=e.planId,i=e.billingCountryCode;return this.client.query({query:c.jPD,fetchPolicy:"no-cache",variables:{input:I(I({planId:r,customerId:t},n?{resourceId:n}:{}),i?{billingCountryCode:i}:{})}})},e.prototype.mapBillingInformation=function(e){if(e)return{taxRateIds:null==e?void 0:e.taxRateIds,billingAddress:null==e?void 0:e.billingAddress}},e}();const x=T;var O=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},D=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},C=function(){function e(e){this.client=e}return e.prototype.estimateSubscription=function(e){var t,n;return O(this,void 0,void 0,(function(){return D(this,(function(r){return[2,this.client.mutate({mutation:c.m5b,variables:{input:{resourceId:e.resourceId,planId:e.planId,customerId:e.customerId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,priceUnitAmount:e.unitQuantity,billableFeatures:e.billableFeatures,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds,taxPercentage:null===(n=null==e?void 0:e.billingInformation)||void 0===n?void 0:n.taxPercentage},promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,skipTrial:e.skipTrial}}})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return O(this,void 0,void 0,(function(){return D(this,(function(t){return[2,this.client.mutate({mutation:c.wO5,variables:{input:{subscriptionId:e.subscriptionId,unitQuantity:e.unitQuantity,billableFeatures:e.billableFeatures,addons:e.addons,promotionCode:e.promotionCode}}})]}))}))},e.prototype.previewSubscription=function(e){var t,n,r;return O(this,void 0,void 0,(function(){return D(this,(function(i){return[2,this.client.mutate({mutation:c.ZD9,fetchPolicy:"no-cache",variables:{input:{planId:e.planId,customerId:e.customerId,resourceId:e.resourceId,startDate:e.startDate,addons:e.addons,billingPeriod:e.billingPeriod,billableFeatures:e.billableFeatures,promotionCode:e.promotionCode,billingCountryCode:e.billingCountryCode,billingInformation:{taxRateIds:null===(t=null==e?void 0:e.billingInformation)||void 0===t?void 0:t.taxRateIds,taxPercentage:null===(n=null==e?void 0:e.billingInformation)||void 0===n?void 0:n.taxPercentage,billingAddress:null===(r=null==e?void 0:e.billingInformation)||void 0===r?void 0:r.billingAddress}}}})]}))}))},e}();const P=C;var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},k=function(){function e(e){this.client=e}return e.prototype.getMockPaywall=function(e){var t=e.productId,n=e.customerId,r=e.context;return this.client.query({query:c._xu,fetchPolicy:"no-cache",variables:{input:A(A(A({},t?{productId:t}:{}),n?{customerId:n}:{}),r?{context:r}:{})}})},e}();const R=k,N=function(e,t){this.sdkConfiguration=new v(e,t),this.paywall=new g(e,t),this.subscriptions=new x(e),this.mockPaywall=new R(e),this.customers=new w(e),this.coupons=new S(e),this.subscriptionEstimations=new P(e)};var F=n(1609),U=n.n(F),M=n(2492),j=n.n(M),L=c.PO0.JsClientSdk,B=["localhost","127.0.0.1","::1"],q=function(){var e="https://api.stigg.io";return{baseUri:e,baseEdgeUri:$(e),entitlementPollingInterval:3e4,useEntitlementPolling:!0,logConfiguration:{logger:console,logLevel:o.ERROR},enableEdge:!0}};function $(e){var t=new URL(e);return B.includes(t.hostname)?t.port="3060":t.hostname="edge.".concat(t.hostname),t.toString().slice(0,-1)}function V(e){var t=e.customerId;if(!t||U()(t))throw new Error("You must set customer ID first, use setCustomerId function or pass it via the constructor");return t}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function z(e,t,n){return t&&Q(e.prototype,t),n&&Q(e,n),e}var W=function(){return"function"==typeof Symbol},Y=function(e){return W()&&Boolean(Symbol[e])},K=function(e){return Y(e)?Symbol[e]:"@@"+e};W()&&!Y("observable")&&(Symbol.observable=Symbol("observable"));var H=K("iterator"),J=K("observable"),X=K("species");function Z(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function ee(e){var t=e.constructor;return void 0!==t&&null===(t=t[X])&&(t=void 0),void 0!==t?t:le}function te(e){return e instanceof le}function ne(e){ne.log?ne.log(e):setTimeout((function(){throw e}))}function re(e){Promise.resolve().then((function(){try{e()}catch(e){ne(e)}}))}function ie(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Z(t,"unsubscribe");n&&n.call(t)}}catch(e){ne(e)}}function oe(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function ae(e,t,n){e._state="running";var r=e._observer;try{var i=Z(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(oe(e),!i)throw n;i.call(r,n);break;case"complete":oe(e),i&&i.call(r)}}catch(e){ne(e)}"closed"===e._state?ie(e):"running"===e._state&&(e._state="ready")}function se(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void re((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(ae(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void ae(e,t,n);e._queue.push({type:t,value:n})}}var ue=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new ce(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(oe(this),ie(this))},z(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ce=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){se(this._subscription,"next",e)},t.error=function(e){se(this._subscription,"error",e)},t.complete=function(){se(this._subscription,"complete")},z(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),le=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new ue(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(ee(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(ee(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=ee(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=ee(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=ee(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[J]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Z(t,J);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return te(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Y("iterator")&&(r=Z(t,H)))return new n((function(e){re((function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){re((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){re((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},z(e,null,[{key:X,get:function(){return this}}]),e}();W()&&Object.defineProperty(le,Symbol("extensions"),{value:{symbol:J,hostReportError:ne},configurable:!0});var fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pe=function(e){function t(t,n){var r=e.call(this,(function(e){var i=function(){return o=r,a=void 0,u=function(){var r,o;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(a){switch(a.label){case 0:if(this.stopped)return e.complete(),[2];a.label=1;case 1:return a.trys.push([1,3,,4]),o=(r=e).next,[4,t()];case 2:return o.apply(r,[a.sent()]),[3,4];case 3:return a.sent(),[3,4];case 4:return setTimeout((function(){return i()}),n),[2]}}))},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(n,r)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u};i()}))||this;return r.stopped=!1,r}return fe(t,e),t.prototype.stopPolling=function(){this.stopped=!0},t}(le),de=(n(1905),n(4139)),he=fetch,ve=n.n(de)()(fetch,{retryOn:function(e,t,n){return!(e>5)&&(null!==t||!(null==n?void 0:n.status)||n.status>=500)},retryDelay:function(e){return 1e3*Math.pow(2,e)}}),ye=function(){function e(e,t){this.config=e,this.dynamicData=t}return e.create=function(t,n){return t.enableEdge?new e(t,n):null},e.prototype.getPaywall=function(e,t){var n=e?"/p/".concat(e):"",r=t?"billingCountryCode=".concat(t):"";return this.get("/v1".concat(n,"/paywall.json?").concat(r))},e.prototype.getEntitlements=function(e,t){var n=t?"?resourceId=".concat(t):"";return this.get("/v1/c/".concat(e,"/entitlements.json").concat(n))},e.prototype.getSdkConfiguration=function(){return this.get("/v1/config/client-sdk-configuration.json")},e.prototype.watchEntitlements=function(e,t,n){var r=this;return new pe((function(){return r.getEntitlements(e,n)}),t)},e.prototype.get=function(e){return t=this,n=void 0,i=function(){var t,n,r,i;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:return(t=new Headers).append("X-API-KEY",this.config.apiKey),t.append("X-API-VERSION","1"),t.append("source",L),(n=this.dynamicData.customerToken)&&t.append("X-CUSTOMER-KEY",n),[4,ve("".concat(this.config.baseEdgeUri).concat(e),{headers:t,method:"GET"})];case 1:if(!(r=o.sent()).ok)throw(i=new Error("Failed to fetch data from Edge. Reason: ".concat(r.statusText))).response=r,i;return[4,r.json()];case 2:return[2,o.sent()]}}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}u((i=i.apply(t,n||[])).next())}));var t,n,r,i},e}(),me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},me(e,t)};function ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var be=function(){return be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},be.apply(this,arguments)};function _e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ee(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function we(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function Se(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var Ie=function(e,t){return Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ie(e,t)};Object.create,Object.create;var Te="Invariant Violation",xe=Object.setPrototypeOf,Oe=void 0===xe?function(e,t){return e.__proto__=t,e}:xe,De=function(e){function t(n){void 0===n&&(n=Te);var r=e.call(this,"number"==typeof n?Te+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Te,Oe(r,t.prototype),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function Ce(e,t){if(!e)throw new De(t)}var Pe=["debug","log","warn","error","silent"],Ae=Pe.indexOf("log");function ke(e){return function(){if(Pe.indexOf(e)>=Ae){var t=console[e]||console.log;return t.apply(console,arguments)}}}function Re(e){try{return e()}catch(e){}}!function(e){e.debug=ke("debug"),e.log=ke("log"),e.warn=ke("warn"),e.error=ke("error")}(Ce||(Ce={}));const Ne=Re((function(){return globalThis}))||Re((function(){return window}))||Re((function(){return self}))||Re((function(){return n.g}))||Re((function(){return Function("return this")()}));var Fe="__",Ue=[Fe,Fe].join("DEV");const Me=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Ne,Ue,{value:"production"!==Re((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Ne[Ue]}}();function je(e){try{return e()}catch(e){}}var Le=je((function(){return globalThis}))||je((function(){return window}))||je((function(){return self}))||je((function(){return n.g}))||je((function(){return Function("return this")()})),Be=!1;function qe(e){return null!==e&&"object"==typeof e}function $e(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new De("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new De(43);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?Ce(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):Ce(1===r.length,44),n=r[0].name.value),be(be({},e),{definitions:Se([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Ve(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function Ge(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Ce(n,"No fragment named "+e.name.value+"."):Ce(n,45),n;default:return null}}function Qe(e){return{__ref:String(e)}}function ze(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function We(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return We(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return We(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw __DEV__?new De('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new De(54);e[t.value]=null}}!Le||je((function(){return"production"}))||je((function(){return process}))||(Object.defineProperty(Le,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Be=!0),n(143).H,Be&&(delete Le.process,Be=!1),__DEV__?Ce("boolean"==typeof Me,Me):Ce("boolean"==typeof Me,38);var Ye=["connection","include","skip","client","rest","export"],Ke=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+He(i)+")"}return n.connection.key}var o=e;if(t){var a=He(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===Ye.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+He(n[e])+")":o+="@"+e)})),o}),{setStringify:function(e){var t=He;return He=e,t}}),He=function(e){return JSON.stringify(e,Je)};function Je(e,t){return qe(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function Xe(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return We(n,r,i,t)})),n}return null}function Ze(e){return e.alias?e.alias.value:e.name.value}function et(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(tt(o)){if("__typename"===o.name.value)return e[Ze(o)]}else{var a=et(e,Ge(o,n).selectionSet,n);if("string"==typeof a)return a}}}function tt(e){return"Field"===e.kind}function nt(e){return"InlineFragment"===e.kind}function rt(e){__DEV__?Ce(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Ce(e&&"Document"===e.kind,46);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new De('Schema type definitions not allowed in queries. Found: "'+e.kind+'"'):new De(47);return e}));return __DEV__?Ce(t.length<=1,"Ambiguous GraphQL document: contains "+t.length+" operations"):Ce(t.length<=1,48),e}function it(e){return rt(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function ot(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function at(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function st(e){var t=it(e);return __DEV__?Ce(t&&"query"===t.operation,"Must contain a query definition."):Ce(t&&"query"===t.operation,49),t}function ut(e){var t;rt(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new De("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new De(53)}function ct(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&We(t,e.variable.name,e.defaultValue)})),t}function lt(e,t){return t?t(e):le.of()}function ft(e){return"function"==typeof e?new ht(e):e}function pt(e){return e.request.length<=1}var dt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return ge(t,e),t}(Error),ht=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return le.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(ft).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=ft(n),o=ft(r||new e(lt));return pt(i)&&pt(o)?new e((function(e){return t(e)?i.request(e)||le.of():o.request(e)||le.of()})):new e((function(e,n){return t(e)?i.request(e,n)||le.of():o.request(e,n)||le.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=be({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=be(be({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return be({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?ot(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new De("illegal argument: "+i):new De(26)}return e}(t))))||le.of()},e.concat=function(t,n){var r=ft(t);if(pt(r))return __DEV__&&Ce.warn(new dt("You are calling concat on a terminating link, which will have no effect",r)),r;var i=ft(n);return pt(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||le.of()}))||le.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||le.of()}))||le.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(lt)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new De("request is not implemented"):new De(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),vt=n(5821),yt=n(5217),mt={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"]},gt=Object.freeze({});function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:mt,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,v=h&&0!==s.length;if(h){if(c=0===p.length?void 0:f[f.length-1],u=l,l=p.pop(),v){if(i)u=u.slice();else{for(var y={},m=0,g=Object.keys(u);m<g.length;m++){var b=g[m];y[b]=u[b]}u=y}for(var _=0,E=0;E<s.length;E++){var w=s[E][0],S=s[E][1];i&&(w-=_),i&&null===S?(u.splice(w,1),_++):u[w]=S}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,null==(u=l?l[c]:d))continue;l&&f.push(c)}var I,T=void 0;if(!Array.isArray(u)){if(!(0,yt.UG)(u))throw new Error("Invalid AST Node: ".concat((0,vt.Z)(u),"."));var x=_t(t,u.kind,h);if(x){if((T=x.call(t,u,c,l,f,p))===gt)break;if(!1===T){if(!h){f.pop();continue}}else if(void 0!==T&&(s.push([c,T]),!h)){if(!(0,yt.UG)(T)){f.pop();continue}u=T}}}void 0===T&&v&&s.push([c,u]),h?f.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(u))?u:null!==(I=n[u.kind])&&void 0!==I?I:[],a=-1,s=[],l&&p.push(l),l=u)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function _t(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}var Et=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new De("Network request failed. "+t+" is not serializable: "+e.message):new De(23);throw r.parseError=e,r}return n},wt=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},St=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},It=Object.prototype.hasOwnProperty;function Tt(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&St(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||It.call(n,"data")||It.call(n,"errors")||St(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}var xt=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new De("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new De(22)},Ot=n(7392);function Dt(e){return bt(e,{leave:Ct})}var Ct={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return At(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=Rt("(",At(e.variableDefinitions,", "),")"),i=At(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?At([t,At([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Rt(" = ",r)+Rt(" ",At(i," "))},SelectionSet:function(e){return kt(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=Rt("",t,": ")+n,s=a+Rt("(",At(r,", "),")");return s.length>80&&(s=a+Rt("(\n",Nt(At(r,"\n")),"\n)")),At([s,At(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+Rt(" ",At(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return At(["...",Rt("on ",t),At(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(Rt("(",At(r,", "),")")," ")+"on ".concat(n," ").concat(Rt("",At(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,Ot.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+At(e.values,", ")+"]"},ObjectValue:function(e){return"{"+At(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+Rt("(",At(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:Pt((function(e){var t=e.directives,n=e.operationTypes;return At(["schema",At(t," "),kt(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:Pt((function(e){return At(["scalar",e.name,At(e.directives," ")]," ")})),ObjectTypeDefinition:Pt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return At(["type",t,Rt("implements ",At(n," & ")),At(r," "),kt(i)]," ")})),FieldDefinition:Pt((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(Ut(n)?Rt("(\n",Nt(At(n,"\n")),"\n)"):Rt("(",At(n,", "),")"))+": "+r+Rt(" ",At(i," "))})),InputValueDefinition:Pt((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return At([t+": "+n,Rt("= ",r),At(i," ")]," ")})),InterfaceTypeDefinition:Pt((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return At(["interface",t,Rt("implements ",At(n," & ")),At(r," "),kt(i)]," ")})),UnionTypeDefinition:Pt((function(e){var t=e.name,n=e.directives,r=e.types;return At(["union",t,At(n," "),r&&0!==r.length?"= "+At(r," | "):""]," ")})),EnumTypeDefinition:Pt((function(e){var t=e.name,n=e.directives,r=e.values;return At(["enum",t,At(n," "),kt(r)]," ")})),EnumValueDefinition:Pt((function(e){return At([e.name,At(e.directives," ")]," ")})),InputObjectTypeDefinition:Pt((function(e){var t=e.name,n=e.directives,r=e.fields;return At(["input",t,At(n," "),kt(r)]," ")})),DirectiveDefinition:Pt((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(Ut(n)?Rt("(\n",Nt(At(n,"\n")),"\n)"):Rt("(",At(n,", "),")"))+(r?" repeatable":"")+" on "+At(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return At(["extend schema",At(t," "),kt(n)]," ")},ScalarTypeExtension:function(e){return At(["extend scalar",e.name,At(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return At(["extend type",t,Rt("implements ",At(n," & ")),At(r," "),kt(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return At(["extend interface",t,Rt("implements ",At(n," & ")),At(r," "),kt(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return At(["extend union",t,At(n," "),r&&0!==r.length?"= "+At(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return At(["extend enum",t,At(n," "),kt(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return At(["extend input",t,At(n," "),kt(r)]," ")}};function Pt(e){return function(t){return At([t.description,e(t)],"\n")}}function At(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function kt(e){return Rt("{\n",Nt(At(e,"\n")),"\n}")}function Rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Nt(e){return Rt(" ",e.replace(/\n/g,"\n "))}function Ft(e){return-1!==e.indexOf("\n")}function Ut(e){return null!=e&&e.some(Ft)}var Mt={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},jt=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=be(be({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=be(be(be({},i),e.options),{headers:be(be({},i.headers),Lt(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=be(be({},o),e.http)}));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=Dt(c)),{options:i,body:l}};function Lt(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}var Bt=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function qt(e){return new le((function(t){t.error(e)}))}var $t=Re((function(){return fetch})),Vt=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,o=e.useGETForQueries,a=e.includeUnusedVariables,s=void 0!==a&&a,u=_e(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&xt(r||$t);var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new ht((function(e){var t=wt(e,n),i=e.getContext(),a={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,f=u.version;l&&(a["apollographql-client-name"]=l),f&&(a["apollographql-client-version"]=f)}var p,d=be(be({},a),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},v=jt(e,Mt,c,h),y=v.options,m=v.body;if(m.variables&&!s){var g=new Set(Object.keys(m.variables));bt(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&g.delete(e.name.value)}}),g.size&&(m.variables=be({},m.variables),g.forEach((function(e){delete m.variables[e]})))}if(!y.signal){var b=Bt(),_=b.controller,E=b.signal;(p=_)&&(y.signal=E)}if(o&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),"GET"===y.method){var w=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Et(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Et(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(t,m),S=w.newURI,I=w.parseError;if(I)return qt(I);t=S}else try{y.body=Et(m,"Payload")}catch(I){return qt(I)}return new le((function(n){return(r||Re((function(){return fetch}))||$t)(t,y).then((function(t){return e.setContext({response:t}),t})).then(Tt(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(){p&&p.abort()}}))}))}(t).request)||this;return n.options=t,n}return ge(t,e),t}(ht),Gt=ht.execute;function Qt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}var zt=Object.prototype,Wt=zt.toString,Yt=zt.hasOwnProperty,Kt=Function.prototype.toString,Ht=new Map;function Jt(e,t){try{return Xt(e,t)}finally{Ht.clear()}}function Xt(e,t){if(e===t)return!0;var n,r,i,o=Wt.call(e);if(o!==Wt.call(t))return!1;switch(o){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(nn(e,t))return!0;var a=Zt(e),s=Zt(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c<u;++c)if(!Yt.call(t,a[c]))return!1;for(c=0;c<u;++c){var l=a[c];if(!Xt(e[l],t[l]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(nn(e,t))return!0;for(var f=e.entries(),p="[object Map]"===o;;){var d=f.next();if(d.done)break;var h=d.value,v=h[0],y=h[1];if(!t.has(v))return!1;if(p&&!Xt(y,t.get(v)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var m=e.byteLength;if(m===t.byteLength)for(;m--&&e[m]===t[m];);return-1===m;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=Kt.call(e);return g===Kt.call(t)&&(r=tn,!((i=(n=g).length-r.length)>=0&&n.indexOf(r,i)===i))}return!1}function Zt(e){return Object.keys(e).filter(en,e)}function en(e){return void 0!==this[e]}var tn="{ [native code] }";function nn(e,t){var n=Ht.get(e);if(n){if(n.has(t))return!0}else Ht.set(e,n=new Set);return n.add(t),!1}var rn,on,an=function(){return Object.create(null)},sn=Array.prototype,un=sn.forEach,cn=sn.slice,ln=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=an),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return un.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(cn.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}(),fn="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),pn="function"==typeof WeakSet,dn="function"==typeof Symbol&&"function"==typeof Symbol.for,hn=function(){function e(){this.known=new(pn?WeakSet:Set),this.pool=new ln(fn),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return qe(e)&&this.known.has(e)},e.prototype.pass=function(e){if(qe(e)){var t=function(e){return qe(e)?Array.isArray(e)?e.slice(0):be({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(qe(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,u=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[u+t]})),__DEV__&&Object.freeze(c)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),vn=Object.assign((function(e){if(qe(e)){void 0===rn&&yn();var t=rn.admit(e),n=on.get(t);return void 0===n&&on.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:yn});function yn(){rn=new hn,on=new(fn?WeakMap:Map)}function mn(e,t,n){return new le((function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&f.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){u=!0,s||a&&a.call(r)}},p=e.subscribe(f);return function(){return p.unsubscribe()}}))}function gn(e){return e.errors&&e.errors.length>0||!1}function bn(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var _n={kind:"Field",name:{kind:"Name",value:"__typename"}};function En(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&En(t[e.name.value],t)}))}function wn(e){return En(it(e)||function(e){__DEV__?Ce("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Ce("Document"===e.kind,50),__DEV__?Ce(e.definitions.length<=1,"Fragment must have exactly one definition."):Ce(e.definitions.length<=1,51);var t=e.definitions[0];return __DEV__?Ce("FragmentDefinition"===t.kind,"Must be a fragment definition."):Ce("FragmentDefinition"===t.kind,52),t}(e),Ve(at(e)))?null:e}function Sn(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function In(e,t){var n=Object.create(null),r=[],i=Object.create(null),o=[],a=wn(bt(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Sn(e)))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&On(t.selectionSet).forEach((function(e){o.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Sn(e)(t))return null}}}));return a&&bn(r,(function(e){return!!e.name&&!n[e.name]})).length&&(a=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return wn(bt(t,{OperationDefinition:{enter:function(t){return be(be({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,a)),a&&bn(o,(function(e){return!!e.name&&!i[e.name]})).length&&(a=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return wn(bt(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(o,a)),a}var Tn=Object.assign((function(e){return bt(rt(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return tt(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(tt(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return be(be({},e),{selections:Se(Se([],r,!0),[_n],!1)})}}}}})}),{added:function(e){return e===_n}}),xn={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&Ce.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function On(e){var t=[];return e.selections.forEach((function(e){(tt(e)||nt(e))&&e.selectionSet?On(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function Dn(e){if("query"===ut(e).operation)return e;var t=bt(e,{OperationDefinition:{enter:function(e){return be(be({},e),{operation:"query"})}}});return t}function Cn(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;__DEV__?Ce(n&&1===n.length,"Incorrect number of arguments for the @"+r+" directive."):Ce(n&&1===n.length,40);var i=n[0];__DEV__?Ce(i.name&&"if"===i.name.value,"Invalid argument for the @"+r+" directive."):Ce(i.name&&"if"===i.name.value,41);var o=i.value;__DEV__?Ce(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @"+r+" directive must be a variable or a boolean value."):Ce(o&&("Variable"===o.kind||"BooleanValue"===o.kind),42),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?Ce(void 0!==i,"Invalid variable referenced in @"+n.name.value+" directive."):Ce(void 0!==i,39)):i=r.value.value,"skip"===n.name.value?!i:i}))}function Pn(e,t){return function(e){var t=[];return bt(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function An(e){return e&&Pn(["client"],e)&&Pn(["export"],e)}var kn=new Map;function Rn(e){var t=kn.get(e)||1;return kn.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function Nn(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Fn(e){function t(t){Object.defineProperty(e,t,{value:le})}return dn&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Un(e){return e&&"function"==typeof e.then}var Mn=function(e){function t(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(e){null!==n.sub&&(n.latest=["next",e],Nn(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),Nn(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Un(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(),Nn(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 le(t)]),Un(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return ge(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.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()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(le);function jn(e){return Array.isArray(e)&&e.length>0}Fn(Mn);var Ln,Bn=function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.clientErrors,s=n.networkError,u=n.errorMessage,c=n.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=o||[],l.clientErrors=a||[],l.networkError=s||null,l.message=u||(i="",(jn((r=l).graphQLErrors)||jn(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+=t+"\n"})),r.networkError&&(i+=r.networkError.message+"\n"),i=i.replace(/\n$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return ge(t,e),t}(Error);function qn(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"}(Ln||(Ln={}));var $n=Object.prototype.toString;function Vn(e){return Gn(e)}function Gn(e,t){switch($n.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]=Gn(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]=Gn(e[n],t)})),r;default:return e}}var Qn=Object.assign,zn=Object.hasOwnProperty,Wn=!1,Yn=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Kn)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=it(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return ge(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||Ln.ready,r=be(be({},t),{loading:qn(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if((t||"network-only"!==o&&"no-cache"!==o&&"standby"!==o)&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),Jt(r.data,{})&&(r.data=void 0),a.complete?(r.networkStatus!==Ln.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=Ln.ready,r.loading=!1),delete r.partial):"no-cache"!==o&&(r.partial=!0),!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||Hn(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Jt(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Jt(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("no-cache"===r?n.fetchPolicy="no-cache":"cache-and-network"!==r&&(n.fetchPolicy="network-only"),__DEV__&&e&&zn.call(e,"variables")){var i=st(this.options.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&Ce.warn("Called refetch("+JSON.stringify(e)+") for query "+((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i))+", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?")}return e&&!Jt(this.options.variables,e)&&(n.variables=this.options.variables=be(be({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,Ln.refetch)},t.prototype.fetchMore=function(e){var t=this,n=be(be({},e.query?e:be(be(be({},this.options),e),{variables:be(be({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=Ln.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Ln.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!Wn&&(__DEV__&&Ce.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),Wn=!0),t.updateQuery((function(e){return o(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()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&Ce.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Jt(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},Ln.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?Ce(n,"Attempted to start a polling query without a polling interval."):Ce(n,12),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(qn(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},Ln.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=be(be({},this.last),{result:this.queryManager.assumeImmutableResults?e:Vn(e),variables:t}),jn(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===Ln.refetch||t===Ln.fetchMore||t===Ln.poll,i=this.options.variables,o=r?Qt(this.options,e):Qn(this.options,Qt(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Jt(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=Ln.setVariables)));var a=o.variables&&be({},o.variables),s=this.fetch(o,t),u={next:function(e){n.reportResult(e,a)},error:function(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=u),s.addObserver(u),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),Nn(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=be(be({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Ln.error,loading:!1});this.updateLastResult(n,t),Nn(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(le);function Kn(e){__DEV__&&Ce.error("Unhandled error",e.message,e.stack)}function Hn(e){__DEV__&&jn(e)&&__DEV__&&Ce.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}Fn(Yn);var Jn=Object.prototype.hasOwnProperty;function Xn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zn(e)}function Zn(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new tr,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var er=function(e,t,n){return this.merge(e[n],t[n])},tr=function(){function e(e){void 0===e&&(e=er),this.reconciler=e,this.isObject=qe,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return qe(t)&&qe(e)?(Object.keys(t).forEach((function(i){if(Jn.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,Se([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return qe(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):be({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),nr=null,rr={},ir=1,or="@wry/context:Slot",ar=Array,sr=ar[or]||function(){var e=function(){function e(){this.id=["slot",ir++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=nr;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===rr)break;return e!==nr&&(nr.slots[this.id]=t),!0}return nr&&(nr.slots[this.id]=rr),!1},e.prototype.getValue=function(){if(this.hasValue())return nr.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=nr;nr={parent:a,slots:o};try{return t.apply(r,n)}finally{nr=a}},e.bind=function(e){var t=nr;return function(){var n=nr;try{return nr=t,e.apply(this,arguments)}finally{nr=n}}},e.noContext=function(e,t,n){if(!nr)return e.apply(n,t);var r=nr;try{return nr=null,e.apply(n,t)}finally{nr=r}},e}();try{Object.defineProperty(ar,or,{value:ar[or]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function ur(){}sr.bind,sr.noContext;var cr,lr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=ur),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.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)},e}(),fr=new sr,pr=Object.prototype.hasOwnProperty,dr=void 0===(cr=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:cr;function hr(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var vr=[];function yr(e,t){if(!e)throw new Error(t||"assertion failure")}function mr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var gr=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Er(this))return br(this),this.value[0]},e.prototype.recompute=function(e){return yr(!this.recomputing,"already recomputing"),br(this),Er(this)?function(e,t){return Dr(e),fr.withValue(e,_r,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{hr(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,Er(e)||Sr(e)}(e),mr(e.value)}(this,e):mr(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,wr(this),hr(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Dr(this),Ir(this,(function(t,n){t.setDirty(),Cr(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=vr.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(dr(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),vr.push(this.deps),this.deps=null)},e.count=0,e}();function br(e){var t=fr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Er(e)?Tr(t,e):xr(t,e),t}function _r(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function Er(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function wr(e){Ir(e,Tr)}function Sr(e){Ir(e,xr)}function Ir(e,t){var n=e.parents.size;if(n)for(var r=dr(e.parents),i=0;i<n;++i)t(r[i],e)}function Tr(e,t){yr(e.childValues.has(t)),yr(Er(t));var n=!Er(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=vr.pop()||new Set;e.dirtyChildren.add(t),n&&wr(e)}function xr(e,t){yr(e.childValues.has(t)),yr(!Er(t));var n,r,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=o,r=t.value,(i=n.length)>0&&i===r.length&&n[i-1]===r[i-1]||e.setDirty()),Or(e,t),Er(e)||Sr(e)}function Or(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(vr.length<100&&vr.push(n),e.dirtyChildren=null))}function Dr(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Cr(e,n)})),e.forgetDeps(),yr(null===e.dirtyChildren)}function Cr(e,t){t.parents.delete(e),e.childValues.delete(t),Or(e,t)}var Pr={setDirty:!0,dispose:!0,forget:!0};function Ar(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=fr.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(hr(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&pr.call(Pr,n)?n:"setDirty";dr(r).forEach((function(e){return e[i]()})),t.delete(e),hr(r)}},r}function kr(){var e=new ln("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}kr();var Rr=new Set;function Nr(e,t){void 0===t&&(t=Object.create(null));var n=new lr(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||kr(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new gr(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),Rr.add(n),fr.hasValue()||(Rr.forEach((function(e){return e.clean()})),Rr.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var Fr=new sr,Ur=new WeakMap;function Mr(e){var t=Ur.get(e);return t||Ur.set(e,t={vars:new Set,dep:Ar()}),t}function jr(e){Mr(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Lr(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){Mr(e).dep.dirty(r),Br(e)}));var a=Array.from(n);n.clear(),a.forEach((function(t){return t(e)}))}}else{var s=Fr.getValue();s&&(i(s),Mr(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Mr(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Br(e){e.broadcastWatches&&e.broadcastWatches()}var qr=function(){function e(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 e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Xn(t.resolvers,e)})):this.resolvers=Xn(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Ee(this,void 0,void 0,(function(){return we(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return be(be({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Pn(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){rt(e);var t=In([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=bt(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return tt(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return be(be({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Ee(this,void 0,void 0,(function(){return we(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return be(be({},t),e.exportedVariables)}))]:[2,be({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return bt(e,{Directive:{enter:function(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 gt}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Dn(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Ee(this,void 0,void 0,(function(){var a,s,u,c,l,f,p,d,h;return we(this,(function(v){return a=ut(e),s=at(e),u=Ve(s),c=a.operation,l=c?c.charAt(0).toUpperCase()+c.slice(1):"Query",p=(f=this).cache,d=f.client,h={fragmentMap:u,context:be(be({},n),{cache:p,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Ee(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return we(this,(function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return Ee(u,void 0,void 0,(function(){var s,u;return we(this,(function(c){return Cn(e,o)?tt(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&a.push(((n={})[Ze(e)]=t,n))}))]:(nt(e)?s=e:(s=r[e.name.value],__DEV__?Ce(s,"No fragment named "+e.name.value):Ce(s,11)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return Zn(a)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Ee(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,p=this;return we(this,(function(d){return r=n.variables,i=e.name.value,o=Ze(e),a=i!==o,s=t[o]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(f=l[a?i:o])&&(u=Promise.resolve(Fr.withValue(this.cache,f,[t,Xe(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=s),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)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.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})))},e}(),$r=new(fn?WeakMap:Map);function Vr(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return $r.set(e,($r.get(e)+1)%1e15),n.apply(this,arguments)})}function Gr(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Qr=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;$r.has(n)||($r.set(n,0),Vr(n,"evict"),Vr(n,"modify"),Vr(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Ln.loading;return this.variables&&this.networkStatus!==Ln.loading&&!Jt(this.variables,e.variables)&&(t=Ln.setVariables),Jt(e.variables,this.variables)||(this.lastDiff=void 0),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},e.prototype.reset=function(){Gr(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Jt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Jt(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.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)},e.prototype.notify=function(){var e=this;Gr(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(qn(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=be(be({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Jt(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===$r.get(this.cache)&&Jt(t,n.variables)&&Jt(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=jn(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(zr(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:$r.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ln.ready},e.prototype.markError=function(e){return this.networkStatus=Ln.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function zr(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!gn(e);return!r&&n&&e.data&&(r=!0),r}var Wr=Object.prototype.hasOwnProperty,Yr=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,u=e.clientAwareness,c=void 0===u?{}:u,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(fn?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=c,this.localState=l||new qr({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new De("QueryManager stopped while query was in flight"):new De(13))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,l=e.onQueryUpdated,f=e.errorPolicy,p=void 0===f?"none":f,d=e.fetchPolicy,h=void 0===d?"network-only":d,v=e.keepRootFields,y=e.context;return Ee(this,void 0,void 0,(function(){var e,o,s;return we(this,(function(f){switch(f.label){case 0:return __DEV__?Ce(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Ce(t,14),__DEV__?Ce("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Ce("network-only"===h||"no-cache"===h,15),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,updateQueries:i,update:c,keepRootFields:v}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return mn(s.getObservableFromLink(t,be(be({},y),{optimisticResponse:r}),n,!1),(function(f){if(gn(f)&&"none"===p)throw new Bn({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=be({},f);return"function"==typeof a&&(a=a(d)),"ignore"===p&&gn(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,update:c,updateQueries:i,awaitRefetchQueries:u,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:v})})).subscribe({next:function(e){s.broadcastQueries(),f(e)},error:function(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof Bn?t:new Bn({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&zr(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,u=s&&s.queryName;if(u&&Wr.call(a,u)){var c=a[u],l=n.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var v=c(h,{mutationResult:r,queryName:f&&ot(f)||void 0,queryVariables:p});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=be(be({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.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(be(be({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Ce.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.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},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),In([xn],rt(t))),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:An(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:ct(it(r)),asQuery:be(be({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?be(be({},e),{operation:"query"}):e}))})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(o),u(a)}return n.get(e)},e.prototype.getVariables=function(e,t){return be(be({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=be(be({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Qr(this),n=new Yn({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?Ce(e.query,"query option is required. You must specify your GraphQL document in the query option."):Ce(e.query,16),__DEV__?Ce("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Ce("Document"===e.query.kind,17),__DEV__?Ce(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Ce(!e.returnPartialData,18),__DEV__?Ce(!e.pollInterval,"pollInterval option only supported on watchQuery."):Ce(!e.pollInterval,19),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new De("Store reset while query was in flight (not completed in link chain)"):new De(20)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Ln.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):qe(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):qe(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=Rn("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new Yn({queryManager:t,queryInfo:i,options:be(be({},e),{fetchPolicy:"network-only"})});Ce(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&Ce.warn("Unknown query "+("string"==typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(zr(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),gn(o))throw new Bn({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new le((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,c=this.link,l={query:s,variables:n,operationName:ot(s)||void 0,context:this.prepareContext(be(be({},t),{forceFetch:!r}))};if(t=l.context,r){var f=u.get(s)||new Map;u.set(s,f);var p=vn(n);if(!(o=f.get(p))){var d=new Mn([Gt(c,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&u.delete(s)}))}}else o=new Mn([Gt(c,l)])}else o=new Mn([le.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=mn(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return mn(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=jn(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new Bn({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||Ln.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Bn({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Ln.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,c=t.errorPolicy,l=void 0===c?"none":c,f=t.returnPartialData,p=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,v=t.context,y=void 0===v?{}:v,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:y}),g=function(e){return m.variables=e,r.fetchQueryByPolicy(a,m,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return b.cancel(e)}))}));var b=new Mn(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return b.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}(t)})),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?Rn("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Qr&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},h=function(t,n){void 0===n&&(n=e.networkStatus||Ln.loading);var a=t.result;!__DEV__||c||Jt(a,{})||Hn(t.missing);var s=function(e){return le.of(be({data:e,loading:qn(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},v="no-cache"===a?0:n===Ln.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,v,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},m=f&&"number"==typeof p&&p!==n&&qn(n);switch(a){default:case"cache-first":return(g=d()).complete?[h(g,e.markReady())]:c||m?[h(g),y()]:[y()];case"cache-and-network":var g;return(g=d()).complete||c||m?[h(g),y()]:[y()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return m?[h(d()),y()]:[y()];case"no-cache":return m?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Qr(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return be(be({},t),{clientAwareness:this.clientAwareness})},e}(),Kr=!1;function Hr(e,t){return Qt(e,t,t.variables&&{variables:be(be({},e.variables),t.variables)})}var Jr=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,f=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,v=e.assumeImmutableResults,y=void 0!==v&&v,m=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,_=e.name,E=e.version,w=e.link;if(w||(w=n?new Vt({uri:n,credentials:r,headers:i}):ht.empty()),!o)throw __DEV__?new De("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new De(9);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),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),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Kr&&__DEV__&&(Kr=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,I=S&&S.userAgent,T=void 0;"string"==typeof I&&(I.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":I.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&Ce.log("Download the Apollo DevTools for a better development experience: "+T)}this.version="3.4.17",this.localState=new qr({cache:o,client:this,resolvers:m,fragmentMatcher:b}),this.queryManager=new Yr({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:_,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Hr(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=be(be({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Hr(this.defaultOptions.query,e)),__DEV__?Ce("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Ce("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=be(be({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Hr(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Gt(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&Ce.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),Xr=function(){function e(){this.getFragmentDoc=Nr($e)}return e.prototype.batch=function(e){var t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(be(be({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(be(be({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=_e(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=_e(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e}(),Zr=function(e){function t(n,r,i,o){var a=e.call(this,n)||this;return a.message=n,a.path=r,a.query=i,a.variables=o,a.__proto__=t.prototype,a}return ge(t,e),t}(Error);function ei(e){return __DEV__&&(t=e,(n=new Set([t])).forEach((function(e){qe(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){qe(e[t])&&n.add(e[t])}))}))),e;var t,n}var ti=Object.prototype.hasOwnProperty;function ni(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))}var ri={dataIdFromObject:ni,addTypename:!0,resultCaching:!0,canonizeResults:!1};function ii(e){var t=e.canonizeResults;return void 0===t?ri.canonizeResults:t}var oi=/^[_a-z][_0-9a-z]*/i;function ai(e){var t=e.match(oi);return t?t[0]:e}function si(e,t,n){return!!qe(t)&&(Array.isArray(t)?t.every((function(t){return si(e,t,n)})):e.selections.every((function(e){if(tt(e)&&Cn(e,n)){var r=Ze(e);return ti.call(t,r)&&(!e.selectionSet||si(e.selectionSet,t[r],n))}return!0})))}function ui(e){return qe(e)&&!ze(e)&&!Array.isArray(e)}var ci=Object.create(null),li=function(){return ci},fi=Object.create(null),pi=function(){function e(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 ei(ze(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ze(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Qe(e);if(ze(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Qe(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return be({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),ti.call(this.data,e)){var n=this.data[e];if(n&&ti.call(n,t))return n[t]}return"__typename"===t&&ti.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof yi?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),ti.call(this.data,e)?this.data[e]:this instanceof yi?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;ze(e)&&(e=e.__ref),ze(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?Ce("string"==typeof n,"store.merge expects a string ID"):Ce("string"==typeof n,1);var a=new tr(gi).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=ai(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof yi||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:ci,INVALIDATE:fi,isReference:ze,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Qe(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=ai(u),l=r[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===li?ci:f(ei(l),be(be({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===fi?n.group.dirty(e,u):(p===ci&&(p=void 0),p!==l&&(i[u]=p,o=!0,l=p))}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof yi?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=li,r):li)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(ti.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof yi&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){ti.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&ti.call(e,n)||t.delete(n)})),e){var n=e.__META,r=_e(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof yi?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){ti.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 yi;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!ti.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){ze(e)&&(t[e.__ref]=!0),qe(e)&&Object.keys(e).forEach((function(t){var n=e[t];qe(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),di=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Ar():null,this.keyMaker=new ln(fn)},e.prototype.depend=function(e,t){if(this.d){this.d(hi(e,t));var n=ai(t);n!==t&&this.d(hi(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(hi(e,t),"__exists"===t?"forget":"setDirty")},e}();function hi(e,t){return t+"#"+e}function vi(e,t){bi(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new di(i))||this;return a.stump=new mi(a),a.storageTrie=new ln(fn),o&&a.replace(o),a}return ge(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(pi||(pi={}));var yi=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return ge(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Jt(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return be(be({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return ti.call(this.data,t)?be(be({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(pi),mi=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new di(t.group.caching,t.group))||this}return ge(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(yi);function gi(e,t,n){var r=e[n],i=t[n];return Jt(r,i)?r:i}function bi(e){return!!(e instanceof pi&&e.group.caching)}function _i(e,t){return new Zr(e.message,t.path.slice(),t.query,t.variables)}function Ei(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var wi=function(){function e(e){var t=this;this.knownResults=new(fn?WeakMap:Map),this.config=Qt(e,{addTypename:!1!==e.addTypename,canonizeResults:ii(e)}),this.canon=e.canon||new hn,this.executeSelectionSet=Nr((function(e){var n,r=e.context.canonizeResults,i=Ei(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?be(be({},o),{result:t.canon.admit(o.result)}):o:(vi(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:Ei,makeCacheKey:function(e,t,n,r){if(bi(n.store))return n.store.makeCacheKey(e,ze(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Nr((function(e){return vi(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(bi(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new hn},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=be(be({},ct(st(n))),o);var f=Qe(i),p=this.executeSelectionSet({selectionSet:ut(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:vn(o),canonizeResults:c,fragmentMap:Ve(at(n)),path:[]}}),d=p.missing&&p.missing.length>0;if(d&&!s)throw p.missing[0];return{result:p.result,missing:p.missing,complete:!d}},e.prototype.isFresh=function(e,t,n,r){if(bi(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(ze(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[_i(__DEV__?new De("Dangling reference to missing "+r.__ref+" object"):new De(5),o)]};var a=o.variables,s=o.policies,u=o.store,c=[],l={result:null},f=u.getFieldValue(r,"__typename");function p(){return l.missing||(l.missing=[])}function d(e){var t;return e.missing&&(t=p()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof f&&!s.rootIdsByTypename[f]&&c.push({__typename:f});var h=new Set(n.selections);h.forEach((function(e){var n;if(Cn(e,a))if(tt(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=Ze(e);o.path.push(l),void 0===u?Tn.added(e)||p().push(_i(__DEV__?new De("Can't find field '"+e.name.value+"' on "+(ze(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new De(6),o)):Array.isArray(u)?u=d(t.executeSubSelectedArray({field:e,array:u,enclosingRef:i,context:o})):e.selectionSet?null!=u&&(u=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,enclosingRef:ze(u)?u:i,context:o}))):o.canonizeResults&&(u=t.canon.pass(u)),void 0!==u&&c.push(((n={})[l]=u,n)),Ce(o.path.pop()===l)}else{var v=Ge(e,o.fragmentMap);v&&s.fragmentMatches(v,f)&&v.selectionSet.selections.forEach(h.add,h)}}));var v=Zn(c);return l.result=o.canonizeResults?this.canon.admit(v):ei(v),this.knownResults.set(l.result,n),l},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function s(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),Ce(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:ze(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){qe(n)&&(__DEV__?Ce(!ze(n),"Missing selection set for object of type "+function(e,t){return ze(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):Ce(!ze(n),7),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),Ce(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),Si=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=it(r),c=new tr;a=be(be({},ct(u)),a);var l={store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:vn(a),fragmentMap:Ve(at(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!ze(f))throw __DEV__?new De("Could not identify object "+JSON.stringify(i)):new De(8);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=Qe(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(ze(u))return;i=u}if(__DEV__&&!l.overwrite){var c=new Set;a.forEach((function(e){tt(e)&&e.selectionSet&&c.add(e.name.value)})),Object.keys(i).forEach((function(e){(function(e){return c.has(ai(e))})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(a&&!ze(o)&&!Jt(o,a)&&!Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=ai(n),c=s+"."+u;if(!Ci.has(c)){Ci.add(c);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)})),__DEV__&&Ce.warn("Cache data may be lost when replacing the "+u+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+c+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}}}}(s,i,e,l.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=s.identify(r,i,o.fragmentMap),c=u[0],l=u[1];if("string"==typeof(n=n||c)){var f=o.written[n]||(o.written[n]=[]),p=Qe(n);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(r,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||et(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof h&&(d.__typename=h);var v=new Set(i.selections);if(v.forEach((function(e){var n;if(Cn(e,o.variables))if(tt(e)){var i=Ze(e),u=r[i],c=o.clientOnly;if(o.clientOnly=c||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==u){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),f=Ti(a,l),p=t.processFieldValue(u,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&ze(p)){var m=o.incomingById.get(p.__ref);y=m&&m.fields.__typename}var g=s.getMergeFunction(h,e.name.value,y);g?f.info={field:e,typename:h,merge:g}:Di(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||Tn.added(e)||__DEV__&&Ce.error(("Missing field '"+Ze(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=c}else{var b=Ge(e,o.fragmentMap);b&&s.fragmentMatches(b,h,r,o.variables)&&b.selectionSet.selections.forEach(v.add,v)}})),"string"==typeof n){var y=o.incomingById.get(n);return y?(y.fields=o.merge(y.fields,d),y.mergeTree=xi(y.mergeTree,a),y.selections.forEach(v.add,v),y.selections=v):o.incomingById.set(n,{fields:d,mergeTree:Oi(a)?void 0:a,selections:v}),Qe(n)}return d},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,Ti(r,o));return Di(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?Vn(e):e},e.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!ze(n)){var s,u=Array.isArray(n)||!ze(t)&&!ui(t)?void 0:t,c=n;u&&!i&&(i=[ze(u)?u.__ref:u]);var l=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(u,t),o=l(c,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,n,o,r,i);f!==o&&(s=s||new Map).set(t,f),i&&Ce(i.pop()===t)}})),s&&(n=Array.isArray(c)?c.slice(0):be({},c),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),Ii=[];function Ti(e,t){var n=e.map;return n.has(t)||n.set(t,Ii.pop()||{map:new Map}),n.get(t)}function xi(e,t){if(e===t||!t||Oi(t))return e;if(!e||Oi(e))return t;var n=e.info&&t.info?be(be({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,xi(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,xi(t.map.get(n),e.map.get(n)))}))}return i}function Oi(e){return!e||!(e.info||e.map.size)}function Di(e,t){var n=e.map,r=n.get(t);r&&Oi(r)&&(Ii.push(r),n.delete(t))}var Ci=new Set;function Pi(e){var t=Rn("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}function Ai(e){return void 0!==e.args?e.args:e.field?Xe(e.field,e.variables):null}Ke.setStringify(vn);var ki=function(){},Ri=function(e,t){return t.fieldName},Ni=function(e,t,n){return(0,n.mergeObjects)(e,t)},Fi=function(e,t){return t},Ui=function(){function e(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=be({dataIdFromObject:ni},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 e.prototype.identify=function(e,t,n){var r=t&&n?et(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var u=s(e,o);if(!Array.isArray(u)){i=u;break}s=Bi(u)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=_e(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),ti.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Ni:!1===t?Fi:e.merge}a(r,t.merge),r.keyFn=!1===i?ki:Array.isArray(i)?Bi(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?Ri:Array.isArray(s)?Li(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||Ri)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Ce(!r||r===e,"Cannot change root "+e+" __typename more than once"):Ce(!r||r===e,2),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.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(oi);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!ti.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,o=_e(r,["fields"]);Object.assign(n,o),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]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||(l&&__DEV__&&Ce.warn("Inferring subtype "+t+" of supertype "+o),a.add(o)),!0;p.forEach(u),c&&f===s.length-1&&si(e.selectionSet,n,r)&&(c=!1,l=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Ai(e);o;){var u=o(s,a);if(!Array.isArray(u)){t=u||r;break}o=Li(u)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return We(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return We(r,n,i,t)}))),Ke(e.name.value,r,n)}(e.field,e.variables):Ke(r,Ai(e))),!1===t?r:r===ai(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=ai(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=Mi(this,n,e,t,t.store.getStorage(ze(n)?n.__ref:n,i));return Fr.withValue(this.cache,u,[a,c])}return a}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===Ni?ji(r.store)(e,t):s===Fi?t:(r.overwrite&&(e=void 0),s(e,t,Mi(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function Mi(e,t,n,r,i){var o=e.getStoreFieldName(n),a=ai(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:Ai(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ze,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(n,i){var o;if("string"==typeof n)o={fieldName:n,from:arguments.length>1?i:t};else{if(!qe(n))return void(__DEV__&&Ce.warn("Unexpected readField arguments: "+Pi(Array.from(arguments))));o=be({},n),ti.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&Ce.warn("Undefined 'from' passed to readField with arguments "+Pi(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:ji(r.store)}}function ji(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new De("Cannot automatically merge arrays"):new De(3);if(qe(t)&&qe(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(ze(t)&&ui(n))return e.merge(t.__ref,n),t;if(ui(t)&&ze(n))return e.merge(t,n.__ref),n;if(ui(t)&&ui(n))return be(be({},t),n)}return n}}function Li(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify($i(t,e,!1)):n.fieldName}}function Bi(e){var t=new ln(fn);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=qi(r.selectionSet,r.fragmentMap))}var a=r.keyObject=$i(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function qi(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(tt(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((n.aliases||(n.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((n.subsets||(n.subsets=Object.create(null)))[e.name.value]=qi(e.selectionSet,t))}else{var a=Ge(e,t);a&&r.add(a.selectionSet)}}))})),n}function $i(e,t,n,r){var i,o,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof o&&"string"==typeof i){var s=r&&r.subsets,u=s&&s[o];a[o]=$i(e[i],t,n,u)}}else{var c=r&&r.aliases,l=c&&c[t]||t;ti.call(e,l)?a[o=t]=e[i=l]:(__DEV__?Ce(!n,"Missing field '"+l+"' while computing key fields"):Ce(!n,4),i=o=void 0)}})),a}var Vi=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=Lr,n.txCount=0,n.config=function(e){return Qt(ri,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Ui({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return ge(t,e),t.prototype.init=function(){var e=this.data=new pi.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new Si(this,this.storeReader=new wi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ii(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Nr((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(bi(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,vn({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(be(be({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Zr)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(ti.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(be(be({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,n=this;return this.watches.size||Mr(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){n.watches.delete(e)&&!n.watches.size&&jr(n),n.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){vn.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return ze(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(ti.call(e,"id"))return!1;e=be(be({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),vn.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),jr(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,o=e.removeOptimistic,a=e.onWatchUpdated,s=function(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},u=new Set;a&&!this.txCount&&this.broadcastWatches(be(be({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&u.size?(this.broadcastWatches(be(be({},e),{onWatchUpdated:function(e,t){var n=a.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Tn(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&Jt(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Xr);const Gi=JSON.parse('{"g":{"Credentials":["AwsMarketplaceCredentials","HubspotCredentials","StripeCredentials","ZuoraCredentials"],"ResetPeriodConfiguration":["MonthlyResetPeriodConfig","WeeklyResetPeriodConfig","YearlyResetPeriodConfig"],"ScheduleVariables":["AddonChangeVariables","BillingPeriodChangeVariables","DowngradeChangeVariables","UnitAmountChangeVariables"]}}');var Qi=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,i=e.batchHandler,o=e.batchKey;this.queuedRequests=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=i,this.batchKey=o||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=be({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new le((function(e){t.queuedRequests.has(i)||t.queuedRequests.set(i,[]),r||(t.queuedRequests.get(i).push(n),r=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(i).length?t.scheduleQueueConsumption(i):t.batchDebounce&&(clearTimeout(t.scheduledBatchTimer),t.scheduleQueueConsumption(i)),t.queuedRequests.get(i).length===t.batchMax&&t.consumeQueue(i)}))),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var r=n.map((function(e){return e.operation})),i=n.map((function(e){return e.forward})),o=[],a=[],s=[],u=[];n.forEach((function(e,t){o.push(e.observable),a.push(e.next),s.push(e.error),u.push(e.complete)}));var c=this.batchHandler(r,i)||le.of(),l=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length "+e.length+", expected length of "+a.length);return t.result=e,l(t)}e.forEach((function(e,t){a[t]&&a[t].forEach((function(t){return t(e)}))}))},error:l,complete:function(){u.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),o}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";this.scheduledBatchTimer=setTimeout((function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)}),this.batchInterval)},e}(),zi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.batchDebounce,o=r.batchInterval,a=void 0===o?10:o,s=r.batchMax,u=void 0===s?0:s,c=r.batchHandler,l=void 0===c?function(){return null}:c,f=r.batchKey,p=void 0===f?function(){return""}:f;return n.batcher=new Qi({batchDebounce:i,batchInterval:a,batchMax:u,batchHandler:l,batchKey:p}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return ge(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(ht),Wi=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.uri,o=void 0===i?"/graphql":i,a=r.fetch,s=r.includeExtensions,u=r.batchInterval,c=r.batchDebounce,l=r.batchMax,f=r.batchKey,p=_e(r,["uri","fetch","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);xt(a),a||(a=fetch);var d={http:{includeExtensions:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return n.batchDebounce=c,n.batchInterval=u||10,n.batchMax=l||10,f=f||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return wt(e,o)+JSON.stringify(n)},n.batcher=new zi({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:f,batchHandler:function(e){var t=wt(e[0],o),n=e[0].getContext(),r={};if(n.clientAwareness){var i=n.clientAwareness,s=i.name,u=i.version;s&&(r["apollographql-client-name"]=s),u&&(r["apollographql-client-version"]=u)}var c,l={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:be(be({},r),n.headers)},f=e.map((function(e){return jt(e,Mt,d,l)})),p=f.map((function(e){return e.body})),h=f[0].options;if("GET"===h.method)return qt(new Error("apollo-link-batch-http does not support GET requests"));try{h.body=Et(p,"Payload")}catch(e){return qt(e)}if(!h.signal){var v=Bt(),y=v.controller,m=v.signal;(c=y)&&(h.signal=m)}return new le((function(n){return a(t,h).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(Tt(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(){c&&c.abort()}}))}}),n}return ge(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(ht),Yi=function(){function e(e,t,n,r){var i=this;this.operation=e,this.nextLink=t,this.delayFor=n,this.retryIf=r,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){i.values.push(e);for(var t=0,n=i.observers;t<n.length;t++){var r=n[t];r&&r.next(e)}},this.onComplete=function(){i.complete=!0;for(var e=0,t=i.observers;e<t.length;e++){var n=t[e];n&&n.complete()}},this.onError=function(e){return Ee(i,void 0,void 0,(function(){var t,n,r;return we(this,(function(i){switch(i.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(i.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];for(this.error=e,t=0,n=this.observers;t<n.length;t++)(r=n[t])&&r.error(e);return[2]}}))}))}}return e.prototype.subscribe=function(e){if(this.canceled)throw new Error("Subscribing to a retryable link that was canceled is not supported");this.observers.push(e);for(var t=0,n=this.values;t<n.length;t++){var r=n[t];e.next(r)}this.complete?e.complete():this.error&&e.error(this.error)},e.prototype.unsubscribe=function(e){var t=this.observers.indexOf(e);if(t<0)throw new Error("RetryLink BUG! Attempting to unsubscribe unknown observer!");this.observers[t]=null,this.observers.every((function(e){return null===e}))&&this.cancel()},e.prototype.start=function(){this.currentSubscription||this.try()},e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null,this.canceled=!0},e.prototype.try=function(){this.currentSubscription=this.nextLink(this.operation).subscribe({next:this.onNext,error:this.onError,complete:this.onComplete})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout((function(){t.timerId=void 0,t.try()}),e)},e}(),Ki=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,o=r.delay;return n.delayFor="function"==typeof o?o:function(e){var t=e||{},n=t.initial,r=void 0===n?300:n,i=t.jitter,o=void 0===i||i,a=t.max,s=void 0===a?1/0:a,u=o?r:r/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return o&&(t=Math.random()*t),t}}(o),n.retryIf="function"==typeof i?i:function(e){var t=e||{},n=t.retryIf,r=t.max,i=void 0===r?5:r;return function(e,t,r){return!(e>=i)&&(n?n(r,t):!!r)}}(i),n}return ge(t,e),t.prototype.request=function(e,t){var n=new Yi(e,t,this.delayFor,this.retryIf);return n.start(),new le((function(e){return n.subscribe(e),function(){n.unsubscribe(e)}}))},t}(ht),Hi=n(4147);function Ji(e,t){return new ht((function(n,r){var i={"X-API-KEY":e,source:L},o=t.customerToken;return o&&(i["X-CUSTOMER-KEY"]=o),n.setContext({headers:i}),r(n)}))}var Xi=function(e){return!!e&&![500,400].includes(e.statusCode)};var Zi=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},eo=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},to=function(){function e(e,t){this.client=e,this.edgeApiClient=t}return e.prototype.getEntitlements=function(e,t,n){return void 0===t&&(t=!1),Zi(this,void 0,void 0,(function(){return eo(this,(function(r){return this.edgeApiClient&&!t?[2,this.edgeApiClient.getEntitlements(e,n)]:[2,this.client.query({query:c.roX,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache"})]}))}))},e.prototype.pollEntitlements=function(e,t,n){return this.edgeApiClient?this.edgeApiClient.watchEntitlements(e,t,n):this.client.watchQuery({query:c.roX,variables:{query:{customerId:e,resourceId:n}},fetchPolicy:"no-cache",pollInterval:t,errorPolicy:"none"})},e.prototype.reportEntitlementRequested=function(e,t,n,r,i){return Zi(this,void 0,void 0,(function(){return eo(this,(function(o){switch(o.label){case 0:return[4,this.client.mutate({mutation:c.JDz,variables:{entitlementCheckRequested:{entitlementCheckResult:n,customerId:t,featureId:e,resourceId:r,requestedUsage:i}},fetchPolicy:"no-cache"})];case 1:return o.sent(),[2]}}))}))},e}();const no=to;var ro,io=n(5161),oo=n.n(io),ao=n(7557),so=n.n(ao),uo=n(9704),co=n.n(uo),lo=function(){return lo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lo.apply(this,arguments)},fo=function(){function e(){var e=this;this.mapApplySubscriptionResults=function(t){var n=t.applySubscription.subscription;return{subscription:n?e.mapSubscription(n):void 0}},this.getResetPeriodData=function(e,t){switch(e){case c.XHu.Month:return{monthlyResetPeriodConfiguration:{accordingTo:t.monthlyAccordingTo||c.pSI.SubscriptionStart}};case c.XHu.Week:return{weeklyResetPeriodConfiguration:{accordingTo:t.weeklyAccordingTo||c.rCU.EveryFriday}};default:return{}}}}return e.prototype.mapBooleanEntitlement=function(e,t){return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,feature:e.calculatedEntitlement.feature?lo(lo({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapNumericEntitlement=function(e,t){var n=e.calculatedEntitlement,r=n.hasUnlimitedUsage,i=n.usageLimit;return{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:r,value:null!=i?i:void 0,feature:e.calculatedEntitlement.feature?lo(lo({},e.calculatedEntitlement.feature),{isMetered:!1}):void 0}},e.prototype.mapMeteredEntitlement=function(e,t,n){var r=e.calculatedEntitlement,i=r.hasUnlimitedUsage,o=r.usageLimit,a=r.feature,s=e.featureUsage,u=s.currentUsage,l=s.nextResetDate,f=s.resetPeriod,p=null;return a&&a.featureType===c.Tex.Number&&a.meterType===c.puT.Incremental&&f&&(p={nextResetDate:l,resetPeriod:f}),{isFallback:!1,hasAccess:t.hasAccess,accessDeniedReason:t.accessDeniedReason,isUnlimited:i,usageLimit:null!=o?o:void 0,currentUsage:u,requestedUsage:n||0,resetSettings:p||void 0,feature:e.calculatedEntitlement.feature?lo(lo({},e.calculatedEntitlement.feature),{meterType:e.calculatedEntitlement.feature.meterType||void 0,isMetered:!0}):void 0}},e.prototype.mapEntitlement=function(e,t,n){var r=e.calculatedEntitlement;if(!r.feature)return this.mapBooleanEntitlement(e,t);var i=r.feature,o=i.featureType,a=i.meterType,s=o===c.Tex.Number&&(a===c.puT.Incremental||a===c.puT.Fluctuating);switch(o){case c.Tex.Boolean:return this.mapBooleanEntitlement(e,t);case c.Tex.Number:return s?this.mapMeteredEntitlement(e,t,n):this.mapNumericEntitlement(e,t)}},e.prototype.mapCachedEntitlement=function(e,t,n){var r;return e.feature&&(r={id:e.feature.refId,featureType:e.feature.featureType,meterType:e.feature.meterType||void 0,units:e.feature.featureUnits||void 0,unitsPlural:e.feature.featureUnitsPlural||void 0,displayName:e.feature.displayName,description:e.feature.description||""}),{calculatedEntitlement:{usageLimit:e.usageLimit,hasUnlimitedUsage:e.hasUnlimitedUsage,feature:r},featureUsage:{resetPeriod:e.resetPeriod,resetPeriodConfiguration:e.resetPeriodConfiguration,currentUsage:t||e.currentUsage||0,nextResetDate:n||e.nextResetDate}}},e.prototype.mapCachedEntitlements=function(e){var t=this;return new Map(e.map((function(e){var n;return[(null===(n=e.feature)||void 0===n?void 0:n.refId)||"",t.mapCachedEntitlement(e)]})))},e.prototype.mapPlans=function(e){var t=this;return((null==e?void 0:e.paywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)}))},e.prototype.mapPaywall=function(e){var t=this.mapPlans(e),n=null==e?void 0:e.paywall.configuration,r=!(null==e?void 0:e.paywall.resource)&&(null==e?void 0:e.paywall.activeSubscriptions)||[];return{plans:t,configuration:n,customer:(null==e?void 0:e.paywall.customer)?this.mapCustomer(null==e?void 0:e.paywall.customer,r):null,resource:(null==e?void 0:e.paywall.resource)?this.mapResource(null==e?void 0:e.paywall.resource):null,activeSubscriptions:(null==e?void 0:e.paywall.activeSubscriptions)?this.mapSubscriptions(null==e?void 0:e.paywall.activeSubscriptions):null,currency:e.paywall.currency,paywallCalculatedPricePoints:e.paywall.paywallCalculatedPricePoints}},e.prototype.mapMockPlans=function(e){var t=this;return{plans:((null==e?void 0:e.mockPaywall.plans)||[]).map((function(e,n){return t.mapPlan(e,n)})),configuration:e.mockPaywall.configuration,customer:null,resource:null,activeSubscriptions:null,currency:{code:c.Fa6.Usd,symbol:"$"}}},e.prototype.mapCoupons=function(e){var t=this;return e.coupons.edges.map((function(e){return e.node})).map((function(e){return t.mapCoupon(e)}))},e.prototype.mapResource=function(e){return{id:e.resourceId}},e.prototype.mapCustomerPortal=function(e){var t=e.resource?this.mapResource(e.resource):null;return lo(lo({},e),{resource:t})},e.prototype.mapCheckoutState=function(e){var t=e.configuration,n=e.customer,r=e.plan,i=e.billingIntegration,o=e.resource,a=e.activeSubscription;return{setupSecret:e.setupSecret,configuration:t,customer:this.mapCustomer(n,a?[a]:[]),plan:this.mapPlan(r),resource:o?this.mapResource(o):null,billingIntegration:i,activeSubscription:a?this.mapSubscription(a):null}},e.prototype.mapCustomer=function(e,t){var n,r,i=this;return new d({id:e.refId,name:e.name||void 0,email:e.email||void 0,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),hasPaymentMethod:e.hasPaymentMethod,subscriptions:oo()(t,(function(e){return i.mapSubscription(e)})),promotionalEntitlements:oo()(e.promotionalEntitlements,(function(e){return i.mapPromotionalEntitlement(e)})),metadata:e.additionalMetaData,paymentMethodDetails:this.mapPaymentDetails(e),trialedPlans:(null===(n=e.trialedPlans)||void 0===n?void 0:n.map((function(e){return{productId:e.productRefId,planId:e.planRefId}})))||void 0,eligibleForTrial:null===(r=e.eligibleForTrial)||void 0===r?void 0:r.map((function(e){return{productId:e.productRefId,eligible:e.eligible}})),experimentInfo:so()(e.experimentInfo,"__typename")})},e.prototype.mapPaymentDetails=function(e){var t=e.defaultPaymentExpirationYear,n=e.defaultPaymentExpirationMonth,r=e.defaultPaymentMethodLast4Digits;if(co()([r,n,t],(function(e){return e})))return{expirationMonth:n,expirationYear:t,last4Digits:r}},e.prototype.mapPriceWithTotalPrice=function(e,t,n){var r=e.feature,i=e.tiersMode,o=e.tiers,a={pricingModel:e.billingModel,billingPeriod:e.billingPeriod,amount:t.total.amount,grossAmount:t.subTotal.amount,currency:this.getPriceCurrency(e),tiersMode:i,tiers:o,isTieredPrice:!!i};return r&&(a.feature={featureId:r.refId,displayName:r.displayName,units:r.featureUnits,unitsPlural:r.featureUnitsPlural,unitQuantity:n}),a},e.prototype.mapPrice=function(e,t){var n=e.feature,r=e.price,i=e.tiers,o=e.tiersMode,a=e.billingId,s=e.billingModel,u=e.billingPeriod,c=e.minUnitQuantity,l=e.maxUnitQuantity,f=e.billingCountryCode,p={pricingModel:s,billingPeriod:u,billingId:a,amount:r?r.amount:null,currency:this.getPriceCurrency(e),tiersMode:o,tiers:i,isTieredPrice:!!o,minUnitQuantity:c,maxUnitQuantity:l,billingCountryCode:f};return n&&(p.feature={featureId:n.refId,displayName:n.displayName,units:n.featureUnits,unitsPlural:n.featureUnitsPlural,unitQuantity:t}),p},e.prototype.mapPlan=function(e,t){var n=this;return void 0===t&&(t=0),{id:e.refId,order:t,displayName:e.displayName,description:e.description,billingId:e.billingId,basePlan:e.basePlan?{id:e.basePlan.refId,displayName:e.basePlan.displayName}:void 0,entitlements:oo()(e.entitlements,(function(e){return n.mapPackageEntitlement(e)})),inheritedEntitlements:oo()(e.inheritedEntitlements,(function(e){return n.mapPackageEntitlement(e)})),pricePoints:oo()(e.prices,(function(e){return n.mapPrice(e)})),pricingType:e.pricingType,defaultTrialConfig:e.defaultTrialConfig,compatibleAddons:this.mapCompatibleAddons(e),product:{id:e.product.refId,displayName:e.product.displayName,description:e.product.description,metadata:e.product.additionalMetaData},metadata:e.additionalMetaData}},e.prototype.mapCompatibleAddons=function(e){var t=this;if(e.pricingType===c._HY.Free||!e.compatibleAddons)return[];var n=e.compatibleAddons;return(e.pricingType===c._HY.Paid?n.filter((function(e){return e.pricingType===c._HY.Paid})):n).map((function(e){return t.mapAddon(e)}))},e.prototype.mapPackageEntitlement=function(e){var t=e.feature;return t?{usageLimit:e.usageLimit||0,feature:{id:t.refId,featureType:t.featureType,description:t.description||"",meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,displayName:t.displayName,isMetered:t.meterType===c.puT.Fluctuating||t.meterType===c.puT.Incremental,metadata:t.additionalMetaData},isCustom:e.isCustom||void 0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod,hiddenFromWidgets:e.hiddenFromWidgets,displayNameOverride:e.displayNameOverride}:{usageLimit:e.usageLimit||0,hasUnlimitedUsage:e.hasUnlimitedUsage,resetPeriod:e.resetPeriod}},e.prototype.mapPromotionalEntitlement=function(e){var t=e.feature;return{status:e.status,usageLimit:e.usageLimit||0,feature:{id:t.refId,displayName:t.displayName,description:t.description||"",featureType:t.featureType,meterType:t.meterType||void 0,units:t.featureUnits||void 0,unitsPlural:t.featureUnitsPlural||void 0,isMetered:t.meterType===c.puT.Fluctuating||t.meterType===c.puT.Incremental},hasUnlimitedUsage:e.hasUnlimitedUsage,expiresAt:e.endDate,hasExpirationDate:!!e.endDate,isVisible:e.isVisible}},e.prototype.mapSubscription=function(e){var t,n,r=this,i=e.totalPrice,o=(e.prices||[])[0];return{id:e.refId,resourceId:null===(t=e.resource)||void 0===t?void 0:t.resourceId,status:e.status,currentBillingPeriodEnd:this.mapDate(e.currentBillingPeriodEnd),plan:this.mapPlan(e.plan),prices:e.prices?e.prices.filter((function(e){return null!==e.price})).map((function(e){return r.mapPrice(e.price,e.usageLimit)})):[],totalPrice:i,price:o&&i&&o.price?this.mapPriceWithTotalPrice(o.price,i,o.usageLimit):null,pricingType:e.pricingType,addons:(null===(n=e.addons)||void 0===n?void 0:n.map((function(e){var t=e.quantity,n=e.addon;return{quantity:t,addon:r.mapAddon(n)}})))||[],startDate:e.startDate,endDate:this.mapDate(e.endDate),trialEndDate:this.mapDate(e.trialEndDate),cancellationDate:this.mapDate(e.cancellationDate),effectiveEndDate:this.mapDate(e.effectiveEndDate),metadata:e.additionalMetaData,experimentInfo:so()(e.experimentInfo,"__typename"),scheduledUpdates:e.scheduledUpdates||[],futureUpdates:e.futureUpdates||[],latestInvoice:this.mapLatestInvoice(e.latestInvoice),paymentCollection:e.paymentCollection}},e.prototype.mapLatestInvoice=function(e){return e?lo(lo({},e),{createdAt:this.mapDate(e.createdAt),updatedAt:this.mapDate(e.updatedAt)}):void 0},e.prototype.mapDate=function(e){return e?new Date(e):void 0},e.prototype.mapAddon=function(e){var t=this;return{id:e.refId,displayName:e.displayName,description:e.description||"",billingId:e.billingId,entitlements:oo()(e.entitlements,(function(e){return t.mapPackageEntitlement(e)})),pricePoints:oo()(e.prices,(function(e){return t.mapPrice(e)})),pricingType:e.pricingType,metadata:e.additionalMetaData}},e.prototype.mapFallbackBooleanEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason}},e.prototype.mapFallbackNumericEntitlementResult=function(e,t){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason,usageLimit:e.value,hasUnlimitedUsage:e.isUnlimited}},e.prototype.mapEntitlementResult=function(e,t,n){return lo({hasAccess:e.hasAccess,accessDeniedReason:e.accessDeniedReason,hasUnlimitedUsage:null==t?void 0:t.calculatedEntitlement.hasUnlimitedUsage,usageLimit:null==t?void 0:t.calculatedEntitlement.usageLimit,currentUsage:null==t?void 0:t.featureUsage.currentUsage,requestedUsage:n,nextResetDate:null==t?void 0:t.featureUsage.nextResetDate,resetPeriod:null==t?void 0:t.featureUsage.resetPeriod},this.getResetPeriodData(null==t?void 0:t.featureUsage.resetPeriod,null==t?void 0:t.featureUsage.resetPeriodConfiguration))},e.prototype.mapFallbackMeteredEntitlementResult=function(e,t,n){return{hasAccess:e.hasAccess,accessDeniedReason:t.accessDeniedReason,hasUnlimitedUsage:e.isUnlimited,usageLimit:e.usageLimit,requestedUsage:n}},e.prototype.mapTaxFields=function(e){return(null==e?void 0:e.tax)&&(null==e?void 0:e.taxDetails)?{tax:this.mapMoney(e.tax),taxDetails:{displayName:e.taxDetails.displayName,percentage:e.taxDetails.percentage,inclusive:e.taxDetails.inclusive}}:{}},e.prototype.mapSubscriptionPreview=function(e){var t=e.subscription,n=e.proration,r=e.billingPeriodRange,i=e.credits;return lo(lo(lo({total:this.mapMoney(e.total),totalExcludingTax:this.mapMoney(e.totalExcludingTax),subTotal:this.mapMoney(e.subTotal),discountAmount:e.discountAmount?this.mapMoney(e.discountAmount):void 0},this.mapTaxFields(e)),e.discount?{discount:this.mapDiscount(e.discount)}:{}),{billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},proration:n?{credit:this.mapMoney(n.credit),debit:this.mapMoney(n.debit),netAmount:this.mapMoney(n.netAmount),prorationDate:new Date(n.prorationDate)}:void 0,subscription:t?lo(lo({total:this.mapMoney(t.total),totalExcludingTax:this.mapMoney(t.totalExcludingTax),subTotal:this.mapMoney(t.subTotal),discountAmount:t.discountAmount?this.mapMoney(t.discountAmount):void 0},t.discount?{discount:this.mapDiscount(t.discount)}:{}),this.mapTaxFields(t)):void 0,isPlanDowngrade:!!e.isPlanDowngrade,hasScheduledUpdates:!!e.hasScheduledUpdates,credits:i?{initial:this.mapMoney(i.initial),used:this.mapMoney(i.used),remaining:this.mapMoney(i.remaining)}:void 0})},e.prototype.mapSubscriptionPreviewV2=function(e){var t=e.immediateInvoice,n=e.recurringInvoice,r=e.billingPeriodRange,i=e.hasScheduledUpdates,o=e.isPlanDowngrade;return{immediateInvoice:lo(lo({},this.mapSubscriptionPreviewInvoice(t)),{proration:t.proration?{credit:this.mapMoney(t.proration.credit),debit:this.mapMoney(t.proration.debit),netAmount:this.mapMoney(t.proration.netAmount),prorationDate:new Date(t.proration.prorationDate),hasProrations:t.proration.hasProrations||void 0}:void 0,credits:t.credits?{initial:this.mapMoney(t.credits.initial),used:this.mapMoney(t.credits.used),remaining:this.mapMoney(t.credits.remaining)}:void 0}),recurringInvoice:n?lo({},this.mapSubscriptionPreviewInvoice(n)):void 0,billingPeriodRange:{start:r.start&&new Date(r.start),end:r.end&&new Date(r.end)},isPlanDowngrade:!!o,hasScheduledUpdates:!!i}},e.prototype.mapSubscriptionPreviewInvoice=function(e){return lo(lo({total:this.mapMoney(e.total),subTotal:this.mapMoney(e.subTotal),totalExcludingTax:this.mapMoney(e.totalExcludingTax),discount:e.discount?this.mapMoney(e.discount):void 0},e.discountDetails?{discountDetails:this.mapDiscount(e.discountDetails)}:{}),this.mapTaxFields(e))},e.prototype.mapDiscount=function(e){var t=e.type,n=e.value,r=e.durationType,i=e.durationInMonths;return lo({type:t,value:n,durationType:r},i?{durationInMonths:i}:{})},e.prototype.mapMoney=function(e){return{amount:e.amount,currency:e.currency}},e.prototype.mapCoupon=function(e){return{id:e.refId,name:e.name,description:e.description,metadata:e.additionalMetaData,discountValue:e.discountValue}},e.prototype.mapSubscriptions=function(e){var t=this;return e.map((function(e){return t.mapSubscription(e)}))},e.prototype.mapUsageHistory=function(e){return e.usageMeasurements.map((function(e){var t=e.date,n=e.value,r=e.isResetPoint;return{date:new Date(t),value:n,isResetPoint:!!r}}))},e.prototype.getPriceCurrency=function(e){var t,n,r=e.price,i=e.tiers;return(null==r?void 0:r.currency)||(null===(t=null==i?void 0:i[0].unitPrice)||void 0===t?void 0:t.currency)||(null===(n=null==i?void 0:i[0].flatPrice)||void 0===n?void 0:n.currency)||c.Fa6.Usd},e}(),po=function(){function e(){}return e.decideEntitlementPolicy=function(e,t){var n,r;if(!e||!e.calculatedEntitlement.feature)return{hasAccess:!1,accessDeniedReason:c.fEx.NoFeatureEntitlementInSubscription};var i=e.calculatedEntitlement.feature,o=i.featureType,a=i.meterType;switch(o){case c.Tex.Boolean:return{hasAccess:!0};case c.Tex.Number:if((null===(n=e.calculatedEntitlement.feature)||void 0===n?void 0:n.meterType)===c.puT.None)return{hasAccess:!0};if(e.calculatedEntitlement.hasUnlimitedUsage)return{hasAccess:!0};var s=e.featureUsage.currentUsage,u=e.featureUsage.nextResetDate;return a===c.puT.Incremental&&!(0,h.isNil)(u)&&u<(new Date).getTime()&&(s=0),s+(t||0)<=((null===(r=e.calculatedEntitlement)||void 0===r?void 0:r.usageLimit)||0)?{hasAccess:!0}:{hasAccess:!1,accessDeniedReason:c.fEx.RequestedUsageExceedingLimit}}},e}(),ho=function(){function e(e,t,n,r){this.entitlementsApi=e,this.customerId=t,this.loggerService=n,this.resourceId=r}return e.prototype.reportEntitlementCheckRequested=function(e,t,n){var r=this;this.entitlementsApi.reportEntitlementRequested(e,this.customerId,t,this.resourceId,n).then((function(){r.loggerService.debug("Successfully reported entitlement check requested")}),(function(){}))},e}(),vo=function(){return vo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vo.apply(this,arguments)},yo=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},mo=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},go=function(){function e(e,t,n,r,i,o,a,s){this.customerId=e,this.resourceId=t,this.cacheService=n,this.loggerService=a,this.onEntitlementsUpdated=s,this.modelMapper=new fo,this.loadingEntitlements=null,this.entitlementsApi=new no(r,o),this.entitlementCheckReportingService=new ho(new no(i,o),e,a,t),this.entitlementsPollingDeferTimeout=null,this.entitlementsPollingObserver=null}return e.prototype.startPolling=function(e){var t=this;this.stopPolling(),this.entitlementsPollingDeferTimeout=setTimeout((function(){t.entitlementsPollingObserver=t.entitlementsApi.pollEntitlements(t.customerId,e,t.resourceId),t.entitlementsPollingObserver.subscribe((function(n){var r;if(n.errors||!n.data||!n.data.entitlements)return t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.errors),{errors:(null===(r=n.errors)||void 0===r?void 0:r.map((function(e){return e.message})).join(", "))||""}),void t.restartPolling(e);t.storeFetchedEntitlementsInCache(n.data.entitlements)}),(function(n){t.loggerService.error("Failed to poll entitlements. Error: ".concat(n.message),n),t.restartPolling(e)}))}),e)},e.prototype.stopPolling=function(){var e;this.entitlementsPollingDeferTimeout&&clearTimeout(this.entitlementsPollingDeferTimeout),null===(e=this.entitlementsPollingObserver)||void 0===e||e.stopPolling()},e.prototype.restartPolling=function(e){this.stopPolling(),this.startPolling(e)},e.prototype.refresh=function(){return yo(this,void 0,void 0,(function(){return mo(this,(function(e){switch(e.label){case 0:return[4,this.loadEntitlements(!0)];case 1:return e.sent(),[2]}}))}))},Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this.cacheService.isLoaded()},enumerable:!1,configurable:!0}),e.prototype.getBooleanEntitlement=function(e,t,n){var r=(null==n?void 0:n.shouldTrack)||!1,i=this.cacheService.getEntitlement(e),o=po.decideEntitlementPolicy(i);if((null==i?void 0:i.calculatedEntitlement.feature)&&i.calculatedEntitlement.feature.featureType!==c.Tex.Boolean)return this.tryTrackEntitlementCheck(r,e,this.modelMapper.mapFallbackBooleanEntitlementResult(t,o)),t;if(!i){var a=this.modelMapper.mapEntitlementResult(o);return this.tryTrackEntitlementCheck(r,e,a),vo(vo({},o),{isFallback:!1})}var s=this.modelMapper.mapEntitlementResult(o,i);return this.tryTrackEntitlementCheck(r,e,s),this.modelMapper.mapBooleanEntitlement(i,o)},e.prototype.getNumericEntitlement=function(e,t,n){var r,i=(null==n?void 0:n.shouldTrack)||!1,o=this.cacheService.getEntitlement(e),a=po.decideEntitlementPolicy(o);if((null==o?void 0:o.calculatedEntitlement.feature)&&(null===(r=o.calculatedEntitlement.feature)||void 0===r?void 0:r.featureType)!==c.Tex.Number){var s=this.modelMapper.mapFallbackNumericEntitlementResult(t,a);return this.tryTrackEntitlementCheck(i,e,s),t}if(!o){var u=this.modelMapper.mapEntitlementResult(a);return this.tryTrackEntitlementCheck(i,e,u),vo(vo({},a),{isFallback:!1,isUnlimited:!1})}var l=this.modelMapper.mapEntitlementResult(a,o);return this.tryTrackEntitlementCheck(i,e,l),this.modelMapper.mapNumericEntitlement(o,a)},e.prototype.getMeteredEntitlement=function(e,t,n){var r,i,o=(null==n?void 0:n.shouldTrack)||!1,a=this.cacheService.getEntitlement(e),s=null==n?void 0:n.requestedUsage,u=po.decideEntitlementPolicy(a,s);if((null==a?void 0:a.calculatedEntitlement.feature)&&(null===(r=a.calculatedEntitlement.feature)||void 0===r?void 0:r.meterType)!==c.puT.Fluctuating&&(null===(i=a.calculatedEntitlement.feature)||void 0===i?void 0:i.meterType)!==c.puT.Incremental){var l=this.modelMapper.mapFallbackMeteredEntitlementResult(t,u,s);return this.tryTrackEntitlementCheck(o,e,l,s),t}if(!a){var f=this.modelMapper.mapEntitlementResult(u,void 0,s);return this.tryTrackEntitlementCheck(o,e,f,s),vo(vo({},u),{currentUsage:0,isFallback:!1,isUnlimited:!1,requestedUsage:s||0})}var p=this.modelMapper.mapEntitlementResult(u,a,s);return this.tryTrackEntitlementCheck(o,e,p,s),this.modelMapper.mapMeteredEntitlement(a,u,s)},e.prototype.tryTrackEntitlementCheck=function(e,t,n,r){e&&this.entitlementCheckReportingService.reportEntitlementCheckRequested(t,n,r)},e.prototype.loadEntitlements=function(e){return yo(this,void 0,void 0,(function(){return mo(this,(function(t){switch(t.label){case 0:this.loadingEntitlements||(this.loadingEntitlements=this.loadEntitlementsFromRemote(e)),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,this.loadingEntitlements];case 2:return[2,t.sent()];case 3:return this.loadingEntitlements=null,[7];case 4:return[2]}}))}))},e.prototype.loadEntitlementsFromRemote=function(e){return yo(this,void 0,void 0,(function(){var t;return mo(this,(function(n){switch(n.label){case 0:return[4,this.entitlementsApi.getEntitlements(this.customerId,e,this.resourceId)];case 1:return t=n.sent(),this.storeFetchedEntitlementsInCache(t.data.entitlements),[2]}}))}))},e.prototype.storeFetchedEntitlementsInCache=function(e){var t=this.cacheService.getLastUpdate(),n=this.getLastEntitlementsUpdate(e);if(!(t&&n.getTime()<t.getTime())){var r=this.modelMapper.mapCachedEntitlements(e);this.cacheService.setEntitlements(r,n),this.onEntitlementsUpdated(r)}},e.prototype.getLastEntitlementsUpdate=function(e){return(0,h.max)(e.flatMap((function(e){return[new Date(e.entitlementUpdatedAt),new Date(e.usageUpdatedAt)]})))||new Date},e.prototype.getEntitlements=function(){return yo(this,void 0,void 0,(function(){var e=this;return mo(this,(function(t){switch(t.label){case 0:return this.cacheService.isLoaded()?[3,2]:[4,this.loadEntitlements()];case 1:t.sent(),t.label=2;case 2:return[2,Array.from(this.cacheService.getEntitlements().values()).map((function(t){var n=po.decideEntitlementPolicy(t);return e.modelMapper.mapEntitlement(t,n)}))]}}))}))},e}(),bo=n(2527),_o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eo=function(e){function t(){return e.call(this)||this}return _o(t,e),t}(bo.TypedEmitter),wo=function(){function e(){var e=this;this.setFeatures=function(t){return e.features=new Set(t)},this.entitlements=new Map,this.features=new Set,this.lastUpdate=null}return e.prototype.getEntitlement=function(e){return this.entitlements.get(e)||null},e.prototype.validateFeature=function(e){return this.features.has(e)},e.prototype.setEntitlements=function(e,t){this.entitlements=e,this.lastUpdate=t},e.prototype.getEntitlements=function(){return this.entitlements},e.prototype.getLastUpdate=function(){return this.lastUpdate},e.prototype.isLoaded=function(){return!!this.lastUpdate},e}();!function(e){e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="READY",e.FAILED="FAILED"}(ro||(ro={}));var So=function(){function e(e){this.eventEmitter=e,this.initializationPromise=null,this.initializationStatus=ro.IN_PROGRESS,this.initFailureError=null}return e.prototype.getInitializationPromise=function(){var e=this;return this.initializationPromise?this.initializationPromise:this.initializationStatus===ro.SUCCESS?Promise.resolve():this.initializationStatus===ro.FAILED?Promise.reject(this.initFailureError):(this.initializationPromise=new Promise((function(t,n){e.eventEmitter.once("initializeSuccessfully",(function(){t()})),e.eventEmitter.once("initializeFailed",(function(e){n(e)}))})),this.initializationPromise)},e.prototype.signalSuccessInit=function(){this.initializationStatus=ro.SUCCESS,this.eventEmitter.emit("initializeSuccessfully")},e.prototype.signalFailedInit=function(e){this.initializationStatus=ro.FAILED,this.initFailureError=e,this.eventEmitter.emit("initializeFailed",e)},e}(),Io=n(2991),To=Object.prototype.toString;function xo(e){switch(To.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Fo(e,Error)}}function Oo(e,t){return To.call(e)===`[object ${t}]`}function Do(e){return Oo(e,"ErrorEvent")}function Co(e){return Oo(e,"DOMError")}function Po(e){return Oo(e,"String")}function Ao(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function ko(e){return Oo(e,"Object")}function Ro(e){return"undefined"!=typeof Event&&Fo(e,Event)}function No(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Fo(e,t){try{return e instanceof t}catch(e){return!1}}function Uo(e,t){try{let i=e;var n=[];let o=0,a=0;var r=" > ".length;let s;for(;i&&o++<5&&(s=Mo(i,t),!("html"===s||o>1&&a+n.length*r+s.length>=80));)n.push(s),a+=s.length,i=i.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Mo(e,t){var n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Po(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);var l=["type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function jo(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function Lo(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Bo(e,t){return!!Po(e)&&(Oo(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function qo(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{Vo(i,r)}catch(e){}e[t]=i}}function $o(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Vo(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,$o(e,"__sentry_original__",t)}function Go(e){return e.__sentry_original__}function Qo(e){if(xo(e))return{message:e.message,name:e.name,stack:e.stack,...Wo(e)};if(Ro(e)){var t={type:e.type,target:zo(e.target),currentTarget:zo(e.currentTarget),...Wo(e)};return"undefined"!=typeof CustomEvent&&Fo(e,CustomEvent)&&(t.detail=e.detail),t}return e}function zo(e){try{return"undefined"!=typeof Element&&Fo(e,Element)?Uo(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Wo(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Yo(e,t=40){var n=Object.keys(Qo(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return jo(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:jo(r,t)}return""}function Ko(e){return Ho(e,new Map)}function Ho(e,t){if(ko(e)){if(void 0!==(i=t.get(e)))return i;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=Ho(e[r],t));return n}var i;return Array.isArray(e)?void 0!==(i=t.get(e))?i:(n=[],t.set(e,n),e.forEach((e=>{n.push(Ho(e,t))})),n):e}let Jo;class Xo{constructor(){Xo.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Xo.id}setupOnce(){Jo=Function.prototype.toString,Function.prototype.toString=function(...e){var t=Go(this)||this;return Jo.apply(t,e)}}}Xo.__initStatic();var Zo=(0,Io.R)(),ea=["debug","info","warn","error","log","assert","trace"];function ta(e){var t=(0,Io.R)();if(!("console"in t))return e();var n=t.console,r={};ea.forEach((e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((e=>{n[e]=r[e]}))}}function na(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ea.forEach((n=>{t[n]=(...t)=>{e&&ta((()=>{Zo.console[n](`Sentry Logger [${n}]:`,...t)}))}})):ea.forEach((e=>{t[e]=()=>{}})),t}let ra;function ia(){var e=(0,Io.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function oa(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function aa(e){const{message:t,event_id:n}=e;if(t)return t;var r=oa(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function sa(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function ua(e,t){var n=oa(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var i={...r&&r.data,...t.data};n.mechanism.data=i}}}function ca(e){if(e&&e.__sentry_captured__)return!0;try{$o(e,"__sentry_captured__",!0)}catch(e){}return!1}ra="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Io.Y)("logger",na):na();var la=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class fa{static __initStatic(){this.id="InboundFilters"}__init(){this.name=fa.id}constructor(e={}){this._options=e,fa.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(fa);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...la],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${aa(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error(`Cannot extract message for event ${aa(e)}`),[]}return[]}(e).some((e=>t.some((t=>Bo(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${aa(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=pa(e);return!!n&&t.some((e=>Bo(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${aa(e)}.\nUrl: ${pa(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=pa(e);return!n||t.some((e=>Bo(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${aa(e)}.\nUrl: ${pa(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function pa(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error(`Cannot extract url for event ${aa(e)}`),null}}fa.__initStatic();var da,ha=n(1170),va=n(2176);function ya(e){return new ga((t=>{t(e)}))}function ma(e){return new ga(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(da||(da={}));class ga{__init(){this._state=da.PENDING}__init2(){this._handlers=[]}constructor(e){ga.prototype.__init.call(this),ga.prototype.__init2.call(this),ga.prototype.__init3.call(this),ga.prototype.__init4.call(this),ga.prototype.__init5.call(this),ga.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ga(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ga(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(da.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(da.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===da.PENDING&&(No(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==da.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===da.RESOLVED&&e[1](this._value),this._state===da.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}function ba(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,ha.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ia()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class _a{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new _a;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&ba(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof _a?t:this}return e instanceof _a?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):ko(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,ha.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Ea(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new ga(((i,o)=>{var a=e[r];if(null===t||"function"!=typeof a)i(t);else{var s=a({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&ra.log(`Event processor "${a.id}" dropped event`),No(s)?s.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(e,s,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function Ea(){return(0,Io.Y)("globalEventProcessors",(()=>[]))}function wa(e){Ea().push(e)}var Sa=100;class Ia{__init(){this._stack=[{}]}constructor(e,t=new _a,n=4){this._version=n,Ia.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=_a.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:ia(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)})),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:ia(),i=new Error(e);return this._withClient(((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},a)})),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:ia();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Sa}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,ha.yW)(),...e},s=i?ta((()=>i(a,t))):a;null!==s&&n.addBreadcrumb(s,o)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=xa(this);try{e(this)}finally{xa(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),ba(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var o=(0,Io.R)();const{userAgent:a}=o.navigator||{};var s=function(e){var t=(0,ha.ph)(),n={sid:ia(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Ko({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ba(n,e),n}({release:r,environment:i,...t&&{user:t.getUser()},...a&&{userAgent:a},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&ba(u,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=Ta().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ta(){var e=(0,Io.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function xa(e){var t=Ta(),n=Ca(t);return Pa(t,e),n}function Oa(){var e=Ta();return Da(e)&&!Ca(e).isOlderThan(4)||Pa(e,new Ia),(0,va.KV)()?function(e){try{var t=Ta().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Ca(e);if(!Da(n)||Ca(n).isOlderThan(4)){var r=Ca(e).getStackTop();Pa(n,new Ia(r.client,_a.clone(r.scope)))}return Ca(n)}catch(t){return Ca(e)}}(e):Ca(e)}function Da(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Ca(e){return(0,Io.Y)("hub",(()=>new Ia),e)}function Pa(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var Aa="<anonymous>";function ka(e){try{return e&&"function"==typeof e&&e.name||Aa}catch(e){return Aa}}function Ra(){if(!("fetch"in(0,Io.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Na(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var Fa=(0,Io.R)(),Ua={},Ma={};function ja(e,t){Ua[e]=Ua[e]||[],Ua[e].push(t),function(e){if(!Ma[e])switch(Ma[e]=!0,e){case"console":"console"in Fa&&ea.forEach((function(e){e in Fa.console&&qo(Fa.console,e,(function(t){return function(...n){La("console",{args:n,level:e}),t&&t.apply(Fa.console,n)}}))}));break;case"dom":!function(){if("document"in Fa){var e=La.bind(null,"dom"),t=Qa(e,!0);Fa.document.addEventListener("click",t,!1),Fa.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=Fa[t]&&Fa[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(qo(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=Qa(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),qo(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in Fa){var e=XMLHttpRequest.prototype;qo(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:Po(t[0])?t[0].toUpperCase():t[0],url:t[1]};Po(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var o=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}La("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?qo(n,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(n,t)}})):n.addEventListener("readystatechange",o),e.apply(n,t)}})),qo(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),La("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!Ra())return!1;var e=(0,Io.R)();if(Na(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Na(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&qo(Fa,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:Ba(t),url:qa(t)},startTimestamp:Date.now()};return La("fetch",{...n}),e.apply(Fa,t).then((e=>(La("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw La("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=(0,Io.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=Fa.onpopstate;Fa.onpopstate=function(...t){var n=Fa.location.href,r=$a;if($a=n,La("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},qo(Fa.history,"pushState",t),qo(Fa.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=$a,i=String(n);$a=i,La("history",{from:r,to:i})}return e.apply(this,t)}}}();break;case"error":za=Fa.onerror,Fa.onerror=function(e,t,n,r,i){return La("error",{column:r,error:i,line:n,msg:e,url:t}),!!za&&za.apply(this,arguments)};break;case"unhandledrejection":Wa=Fa.onunhandledrejection,Fa.onunhandledrejection=function(e){return La("unhandledrejection",e),!Wa||Wa.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn("unknown instrumentation type:",e)}}(e)}function La(e,t){if(e&&Ua[e])for(var n of Ua[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ka(n)}\nError:`,t)}}function Ba(e=[]){return"Request"in Fa&&Fo(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function qa(e=[]){return"string"==typeof e[0]?e[0]:"Request"in Fa&&Fo(e[0],Request)?e[0].url:String(e[0])}let $a,Va,Ga;function Qa(e,t=!1){return n=>{if(n&&Ga!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===Va||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Ga,n))&&(e({event:n,name:r,global:t}),Ga=n),clearTimeout(Va),Va=Fa.setTimeout((()=>{Va=void 0}),1e3)}}}let za=null,Wa=null;function Ya(e,t=1/0,n=1/0){try{return Ha("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Ka(e,t=3,n=102400){var r,i=Ya(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Ka(e,t-1,n):i}function Ha(e,t,r=1/0,i=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(u=t)||u==u))return t;var u,c=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return ko(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${ka(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;if(0===r)return c.replace("object ","");if(a(t))return"[Circular ~]";var l=t;if(l&&"function"==typeof l.toJSON)try{return Ha("",l.toJSON(),r-1,i,o)}catch(e){}var f=Array.isArray(t)?[]:{};let p=0;var d=Qo(t);for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h)){if(p>=i){f[h]="[MaxProperties ~]";break}var v=d[h];f[h]=Ha(h,v,r-1,i,o),p+=1}return s(t),f}function Ja(e,t){var n=Za(e,t),r={type:t&&t.name,value:ts(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Xa(e,t){return{exception:{values:[Ja(e,t)]}}}function Za(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(es.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var es=/Minified React error #\d+;/i;function ts(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ns(e,t,n,r,i){let o;if(Do(t)&&t.error)return Xa(e,t.error);if(Co(t)||Oo(t,"DOMException")){var a=t;if("stack"in t)o=Xa(e,t);else{var s=a.name||(Co(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=rs(e,u,n,r),sa(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return xo(t)?Xa(e,t):ko(t)||Ro(t)?(o=function(e,t,n,r){var i={exception:{values:[{type:Ro(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Yo(t)}`}]},extra:{__serialized__:Ka(t)}};if(n){var o=Za(e,n);o.length&&(i.exception.values[0].stacktrace={frames:o})}return i}(e,t,n,i),ua(o,{synthetic:!0}),o):(o=rs(e,t,n,r),sa(o,`${t}`,void 0),ua(o,{synthetic:!0}),o)}function rs(e,t,n,r){var i={message:t};if(r&&n){var o=Za(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}function is(e,t){return Oa().captureException(e,{captureContext:t})}function os(e){Oa().withScope(e)}let as=0;function ss(){return as>0}function us(){as+=1,setTimeout((()=>{as-=1}))}function cs(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Go(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((e=>cs(e,t)));return e.apply(this,i)}catch(e){throw us(),os((n=>{n.addEventProcessor((e=>(t.mechanism&&(sa(e,void 0,void 0),ua(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),is(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Vo(i,e),$o(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}class ls{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ls.id}__init2(){this._installFunc={onerror:fs,onunhandledrejection:ps}}constructor(e){ls.prototype.__init.call(this),ls.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function fs(){ja("error",(e=>{const[t,n,r]=vs();if(!t.getIntegration(ls))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if(!(ss()||u&&u.__sentry_own_request__)){var c=void 0===u&&Po(i)?function(e,t,n,r){let i=Do(e)?e.message:e,o="Error";var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),ds({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):ds(ns(n,u||i,void 0,r,!1),o,a,s);c.level="error",hs(t,u,c,"onerror")}}))}function ps(){ja("unhandledrejection",(e=>{const[t,n,r]=vs();if(!t.getIntegration(ls))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(ss()||i&&i.__sentry_own_request__)return!0;var o=Ao(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ns(n,i,void 0,r,!0);o.level="error",hs(t,i,o,"onunhandledrejection")}))}function ds(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=Po(t)&&t.length>0?t:function(){var e=(0,Io.R)();try{return e.document.location.href}catch(e){return""}}();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function hs(e,t,n,r){ua(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function vs(){var e=Oa(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}ls.__initStatic();var ys=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ms{static __initStatic(){this.id="TryCatch"}__init(){this.name=ms.id}constructor(e){ms.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,Io.R)();this._options.setTimeout&&qo(e,"setTimeout",gs),this._options.setInterval&&qo(e,"setInterval",gs),this._options.requestAnimationFrame&&qo(e,"requestAnimationFrame",bs),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&qo(XMLHttpRequest.prototype,"send",_s);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:ys).forEach(Es)}}function gs(e){return function(...t){var n=t[0];return t[0]=cs(n,{mechanism:{data:{function:ka(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function bs(e){return function(t){return e.apply(this,[cs(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ka(e)},handled:!0,type:"instrument"}})])}}function _s(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&qo(n,e,(function(t){var n={mechanism:{data:{function:e,handler:ka(t)},handled:!0,type:"instrument"}},r=Go(t);return r&&(n.mechanism.data.handler=ka(r)),cs(t,n)}))})),e.apply(this,t)}}function Es(e){var t=(0,Io.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(qo(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=cs(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ka(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,cs(r,{mechanism:{data:{function:"addEventListener",handler:ka(r),target:e},handled:!0,type:"instrument"}}),i])}})),qo(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}ms.__initStatic();var ws=["fatal","error","warning","log","info","debug"];function Ss(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}var Is="Breadcrumbs";class Ts{static __initStatic(){this.id=Is}__init(){this.name=Ts.id}constructor(e){Ts.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&ja("console",xs),this.options.dom&&ja("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Uo(t.event.target,r):Uo(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&Oa().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&ja("xhr",Os),this.options.fetch&&ja("fetch",Ds),this.options.history&&ja("history",Cs)}}function xs(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":ws.includes(t)?t:"log"),message:Lo(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Lo(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Oa().addBreadcrumb(n,{input:e.args,level:e.level})}function Os(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};Oa().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i})}}function Ds(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Oa().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Oa().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Cs(e){var t=(0,Io.R)();let n=e.from,r=e.to;var i=Ss(t.location.href);let o=Ss(n);var a=Ss(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Oa().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Ts.__initStatic();class Ps{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Ps.id}constructor(e={}){Ps.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=Oa().getClient();e&&wa(((t,n)=>{var r=Oa().getIntegration(Ps);return r?function(e,t,n,r,i){if(!(r.exception&&r.exception.values&&i&&Fo(i.originalException,Error)))return r;var o=As(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function As(e,t,n,r,i=[]){if(!Fo(n[r],Error)||i.length+1>=t)return i;var o=Ja(e,n[r]);return As(e,t,n[r],r,[o,...i])}Ps.__initStatic();var ks=(0,Io.R)();class Rs{constructor(){Rs.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Rs.id}setupOnce(){wa((e=>{if(Oa().getIntegration(Rs)){if(!ks.navigator&&!ks.location&&!ks.document)return e;var t=e.request&&e.request.url||ks.location&&ks.location.href;const{referrer:r}=ks.document||{},{userAgent:i}=ks.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}}};return{...e,request:n}}return e}))}}Rs.__initStatic();class Ns{constructor(){Ns.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Ns.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(Ns);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Us(e,t)&&!!Fs(e,t))))}(e,t)||!!function(e,t){var n=Ms(t),r=Ms(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Us(e,t)&&!!Fs(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function Fs(e,t){let n=js(e),r=js(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var i=r[e],o=n[e];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function Us(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Ms(e){return e.exception&&e.exception.values&&e.exception.values[0]}function js(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}Ns.__initStatic();let Ls={};var Bs=(0,Io.R)();Bs.Sentry&&Bs.Sentry.Integrations&&(Ls=Bs.Sentry.Integrations);var qs={...Ls,...r,...i},$s="?";function Vs(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Gs=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Qs=/\((\S*)(?::(\d+))(?::(\d+))\)/,zs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ws=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ys=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ks=function(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var i of e.split("\n").slice(n)){var o=i.replace(/\(error: (.*)\)/,"$1");for(var a of t){var s=a(o);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}([30,e=>{var t=Gs.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Qs.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Hs(t[1]||$s,t[2]);return Vs(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=zs.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=Ws.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||$s;return[r,e]=Hs(r,e),Vs(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Ys.exec(e);return t?Vs(t[2],t[1]||$s,+t[3],t[4]?+t[4]:void 0):void 0}]),Hs=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:$s,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Js extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Xs(e,t=[]){return[e,t]}function Zs(e,t){const[n,r]=e;return[n,[...r,t]]}function eu(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function tu(e,t){return(t||new TextEncoder).encode(e)}function nu(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[tu(i,t),e]:i.push("string"==typeof e?tu(e,t):e)}for(var a of r){const[e,t]=a;o(`\n${JSON.stringify(e)}\n`),o("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof i?i:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var i of e)n.set(i,r),r+=i.length;return n}(i)}function ru(e,t){var n="string"==typeof e.data?tu(e.data,t):e.data;return[Ko({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var iu={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function ou(e){return iu[e]}function au(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ma(new Js("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new ga(((n,r)=>{let i=t.length;if(!i)return n(!0);var o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{ya(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(i){var o=[];if(eu(i,((t,n)=>{var i=ou(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)})),0===o.length)return ya();var a=Xs(i[0],o),s=t=>{eu(a,((n,r)=>{e.recordDroppedEvent(t,ou(r))}))};return n.add((()=>t({body:nu(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(var s of o.trim().split(",")){const[e,t]=s.split(":",2);var u=parseInt(e,10),c=1e3*(isNaN(u)?60:u);if(t)for(var l of t.split(";"))i[l]=r+c;else i.all=r+c}else a?i.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof Js)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error("Skipped sending event due to full buffer"),s("queue_overflow"),ya();throw e}))},flush:e=>n.drain(e)}}var su=(0,Io.R)();let uu;function cu(){if(uu)return uu;if(Na(su.fetch))return uu=su.fetch.bind(su);var e=su.document;let t=su.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return uu=t.bind(su)}function lu(e,t=cu()){return au(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function fu(e){return au(e,(function(t){return new ga(((n,r)=>{var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}var pu=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function du(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function hu(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function vu(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}function yu(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var mu=[],gu="Not capturing exception because it's already been captured.";class bu{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(bu.prototype.__init.call(this),bu.prototype.__init2.call(this),bu.prototype.__init3.call(this),bu.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=pu.exec(e);if(!t)throw new Js(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,a="",s]=t.slice(1);let u="",c=s;var l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){var f=c.match(/^\d+/);f&&(c=f[0])}return hu({host:o,pass:i,path:u,projectId:c,port:a,protocol:n,publicKey:r})}(n):hu(n),function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Js(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Js(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Js(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Js(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=vu(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(ca(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log(gu));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;var o=Ao(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&ca(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log(gu));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ba(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):ya(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach((e=>{t[e.name]=e,-1===mu.indexOf(e.name)&&(e.setupOnce(wa,Oa),mu.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log(`Integration installed: ${e.name}`))})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var i=yu(n),o=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:s,rate:u}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var c=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,o=i&&function(e){return e[0]}(i);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:du(r)},..."transaction"===e.type&&o&&{trace:Ko({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Xs(c,[[{type:o,sample_rates:[{id:s,rate:u}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Zs(r,ru(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var i=yu(n);return Xs({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:du(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var i=t.exception&&t.exception.values;if(i)for(var o of(r=!0,i)){var a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&(ba(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ga((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions();var o={...e,event_id:e.event_id||t.event_id||ia(),timestamp:e.timestamp||(0,ha.yW)()};this._applyClientOptions(o),this._applyIntegrationsMetadata(o);let a=n;t.captureContext&&(a=_a.clone(a).update(t.captureContext));let s=ya(o);if(a){var u=[...t.attachments||[],...a.getAttachments()];u.length&&(t.attachments=u),s=a.applyToEvent(o,t)}return s.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,i):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Ya(e.data,t,n)}})))},...e.user&&{user:Ya(e.user,t,n)},...e.contexts&&{contexts:Ya(e.contexts,t,n)},...e.extra&&{extra:Ya(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ya(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Ya(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=jo(e.message,o));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=jo(a.value,o));var s=e.request;s&&s.url&&(s.url=jo(s.url,o))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?ra.log(t.message):ra.warn(t)}}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:i}=this.getOptions();if(!this._isEnabled())return ma(new Js("SDK not enabled, will not capture event.","log"));var o="transaction"===e.type;return!o&&"number"==typeof i&&Math.random()>i?(this.recordDroppedEvent("sample_rate","error"),ma(new Js(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Js("An event processor returned null, will not send event.","log");return t.data&&!0===t.data.__sentry__||o||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(No(e))return e.then((e=>{if(!ko(e)&&null!==e)throw new Js(t);return e}),(e=>{throw new Js(`beforeSend rejected with ${e}`)}));if(!ko(e)&&null!==e)throw new Js(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Js("`beforeSend` returned `null`, will not send event.","log");var i=n&&n.getSession();return!o&&i&&this._updateSessionFromEvent(i,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Js)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Js(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}var _u="7.11.1",Eu=(0,Io.R)();class wu extends bu{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:_u}],version:_u},super(e),e.sendClientReports&&Eu.document&&Eu.document.addEventListener("visibilitychange",(()=>{"hidden"===Eu.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var i=ns(e,t,n&&n.syntheticException||void 0,r);return ua(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),ya(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){var o=rs(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),ya(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(Is);n&&n.options&&n.options.sentry&&Oa().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:aa(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log("Sending outcomes:",e);var t,n,r=vu(this._dsn,this._options),i=(t=e,Xs((n=this._options.tunnel&&du(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,ha.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(su&&su.navigator)&&"function"==typeof su.navigator.sendBeacon?su.navigator.sendBeacon.bind(su.navigator)(e,t):Ra()&&cu()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error(e)}))}(r,nu(i))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ra.log("No outcomes to send")}}var Su=n(4147),Iu=[new qs.InboundFilters,new qs.FunctionToString,new qs.TryCatch,new qs.Breadcrumbs,new qs.LinkedErrors,new qs.Dedupe,new qs.HttpContext],Tu=new Ia,xu=function(){return xu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xu.apply(this,arguments)},Ou=function(){return Ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ou.apply(this,arguments)};function Du(e,t){return n=this,r=void 0,o=function(){return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return[2,Pu(n.sent(),t)];case 3:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,s)}u((o=o.apply(n,r||[])).next())}));var n,r,i,o}function Cu(e,t){try{return e()}catch(e){return Pu(e,t)}}function Pu(e,t){var n=t.loggerService,r=t.sdkConfiguration,i=t.errorMessage,o=t.rethrowError,a=t.errorReportMetadata,s=i?i(e):"Operation failed. Error: ".concat(e.message);if(n.error(s,e),function(e,t){var n=t.sdkConfiguration,r=t.errorMessage,i=t.errorReportMetadata;Tu.withScope((function(t){var o={errorMessage:r};if(n){var a=n.customerId,s=Ou(Ou({},n),{apiKey:void 0});a&&t.setTags({customerId:a}),o.sdkConfiguration=s}i&&(o=Ou(Ou({},o),i)),t.setExtras(o),Tu.captureException(e)}))}(e,{sdkConfiguration:r,errorMessage:s,errorReportMetadata:a}),o)throw new Error(s)}var Au=function(){return Au=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Au.apply(this,arguments)},ku=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Ru=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Nu=function(){function e(e,t){var n,r,i,o,a,s;this.modelMapper=new fo,this.eventEmitter=new Eo,this.showWidgetsWatermark=!1,this.configuration=e,this.edgeApiClient=ye.create(e,e),this.graphClient=(n=this.configuration,r=n.apiKey,i=n.baseUri,o=Ji(r,n),a=function(e){return new Vt({uri:"".concat(e,"/graphql"),fetch:he})}(i),s=new Ki({attempts:{max:5,retryIf:Xi},delay:{initial:500,max:2e3,jitter:!0}}),new Jr({link:o.concat(s.concat(a)),cache:new Vi({possibleTypes:Gi.g}),name:"js-client-sdk",version:Hi.version})),this.batchedGraphClient=function(e){var t=e.apiKey,n=e.baseUri,r=Ji(t,e),i=function(e){return new Wi({uri:"".concat(e,"/graphql"),batchMax:25,batchInterval:500,fetch:he})}(n);return new Jr({link:r.concat(i),cache:new Vi({possibleTypes:Gi.g}),name:"js-client-sdk",version:Hi.version})}(this.configuration),this.loggerService=t,this.apiGateway=new N(this.graphClient,this.edgeApiClient),this.globalEntitlementsService=null,this.resourceEntitlementsService=null,this.initializationStateTracker=new So(this.eventEmitter)}return e.initialize=function(t){var n=function(e){var t=q(),n=e.baseEdgeUri?e.baseEdgeUri:e.baseUri?$(e.baseUri):t.baseEdgeUri;return j()(t,e,{baseEdgeUri:n})}(t),r=new u(n.logConfiguration.logger,n.logConfiguration.logLevel);!function(e,t){if(U()(e.apiKey)){var n="You must configure the client with an SDK key";throw t.error(n),new Error(n)}var r=q();e.useEntitlementPolling&&e.entitlementPollingInterval&&e.entitlementPollingInterval<5e3&&(t.error("Entitlements polling interval cannot be lower than 5000ms, using default value ".concat(r.entitlementPollingInterval)),e.entitlementPollingInterval=r.entitlementPollingInterval)}(n,r);var i=new e(n,r);return this.initializeSdk(i).then((function(){n.customerId?n.lazyLoad||i.setCustomerId(n.customerId,n.customerToken,n.resourceId):i.initializationStateTracker.signalSuccessInit()})).catch((function(e){return i.initializationStateTracker.signalFailedInit(e)})),i},e.prototype.waitForInitialization=function(){return ku(this,void 0,void 0,(function(){var e=this;return Ru(this,(function(t){return[2,this.initializationStateTracker.getInitializationPromise().then((function(){return e}))]}))}))},e.initializeSdk=function(e){var t,n,r,i;return ku(this,void 0,void 0,(function(){var o,a,s,u;return Ru(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,e.apiGateway.sdkConfiguration.getSdkConfiguration()];case 1:return o=l.sent(),a=null===(t=o.data)||void 0===t?void 0:t.sdkConfiguration,!Tu.getClient()&&(null==a?void 0:a.sentryDsn)&&(v=a.sentryDsn,f=void 0,p=void 0,h=function(){var e,t;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(n){return e={dsn:v,normalizeDepth:6,release:"".concat("js-client-sdk","@").concat(Su.version),integrations:Iu,stackParser:Ks,transport:Ra()?lu:fu},t=new wu(e),Tu.bindClient(t),[2]}))},new((d=void 0)||(d=Promise))((function(e,t){function n(e){try{i(h.next(e))}catch(e){t(e)}}function r(e){try{i(h.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof d?i:new d((function(e){e(i)}))).then(n,r)}i((h=h.apply(f,p||[])).next())}))),e.showWidgetsWatermark=!!(null==a?void 0:a.isWidgetWatermarkEnabled),[3,3];case 2:throw s=l.sent(),401===(null===(n=s.response)||void 0===n?void 0:n.status)||s.graphQLErrors&&(null===(i=null===(r=s.graphQLErrors[0])||void 0===r?void 0:r.extensions)||void 0===i?void 0:i.code)===c.jKp.Unauthenticated?(u="Authentication failed. Double check your SDK key.",e.loggerService.error(u),new Error(u)):(e.loggerService.error("Failed to load sdk configuration",s),s);case 3:return[2]}var f,p,d,h,v}))}))},Object.defineProperty(e.prototype,"isCustomerLoaded",{get:function(){var e;return(null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isResourceLoaded",{get:function(){var e;return(null===(e=this.resourceEntitlementsService)||void 0===e?void 0:e.isInitialized)||!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWidgetWatermarkEnabled",{get:function(){return this.showWidgetsWatermark},enumerable:!1,configurable:!0}),e.prototype.addListener=function(e,t){this.eventEmitter.on(e,t)},e.prototype.removeListener=function(e,t){this.eventEmitter.off(e,t)},e.prototype.setCustomerId=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),ku(this,void 0,void 0,(function(){var r,i,o,a,s,u=this;return Ru(this,(function(c){switch(c.label){case 0:if(r=this.configuration,i=r.customerToken,o=r.customerId,a=r.resourceId,e===o&&t===i&&n===a)return[2];if(this.clearCustomer(),!e)return this.loggerService.log("`setCustomerId` was called without a customerId, did you mean to call `clearCustomer`?"),[2];if(!(0,h.isString)(e))throw new Error("customerId parameter must be a string");if(t&&!(0,h.isString)(t))throw new Error("customerToken parameter must be a string");if(n&&!(0,h.isString)(n))throw new Error("resourceId parameter must be a string");this.configuration.customerId=e,this.configuration.customerToken=t,this.configuration.resourceId=n,this.globalEntitlementsService=new go(e,void 0,new wo,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return u.eventEmitter.emit("entitlementsUpdated",e)})),n&&(this.resourceEntitlementsService=new go(e,n,new wo,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return u.eventEmitter.emit("entitlementsUpdated",e)}))),this.configuration.useEntitlementPolling&&(this.globalEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),this.resourceEntitlementsService&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval)),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Du((function(){return ku(u,void 0,void 0,(function(){var e,t;return Ru(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.loadEntitlements(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.loadEntitlements()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer. Error: ".concat(e.message)},rethrowError:!0})];case 2:return c.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return s=c.sent(),this.initializationStateTracker.signalFailedInit(s),[3,4];case 4:return[2]}}))}))},e.prototype.clearCustomer=function(){var e,t;null===(e=this.globalEntitlementsService)||void 0===e||e.stopPolling(),this.globalEntitlementsService=null,null===(t=this.resourceEntitlementsService)||void 0===t||t.stopPolling(),this.resourceEntitlementsService=null,this.configuration.customerId=null,this.configuration.customerToken=null,this.configuration.resourceId=null},e.prototype.setResource=function(e){return ku(this,void 0,void 0,(function(){var t,n,r=this;return Ru(this,(function(i){switch(i.label){case 0:if(!this.configuration.customerId)throw new Error("`setResource` must be called when customer was set, did you forget to call `setCustomerId`?");if(t=this.configuration.resourceId,e===t)return[2];if(this.clearResource(),!(0,h.isString)(e))throw new Error("resourceId parameter must be a string");this.configuration.resourceId=e,this.resourceEntitlementsService=new go(this.configuration.customerId,e,new wo,this.graphClient,this.batchedGraphClient,this.edgeApiClient,this.loggerService,(function(e){return r.eventEmitter.emit("entitlementsUpdated",e)})),this.configuration.useEntitlementPolling&&this.resourceEntitlementsService.startPolling(this.configuration.entitlementPollingInterval),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,Du((function(){return ku(r,void 0,void 0,(function(){var e;return Ru(this,(function(t){return null===(e=this.resourceEntitlementsService)||void 0===e||e.loadEntitlements(),[2]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to load initial entitlements for customer resource. Error: ".concat(e.message)},rethrowError:!0})];case 2:return i.sent(),this.initializationStateTracker.signalSuccessInit(),[3,4];case 3:return n=i.sent(),this.initializationStateTracker.signalFailedInit(n),[3,4];case 4:return[2]}}))}))},e.prototype.clearResource=function(){var e;if(!this.configuration.customerId)throw new Error("`clearResource` must be called when customer was set, did you forget to call `setCustomerId`?");null===(e=this.resourceEntitlementsService)||void 0===e||e.stopPolling(),this.resourceEntitlementsService=null,this.configuration.resourceId=null},e.prototype.refresh=function(){return ku(this,void 0,void 0,(function(){var e=this;return Ru(this,(function(t){return[2,Du((function(){return ku(e,void 0,void 0,(function(){var e,t;return Ru(this,(function(n){switch(n.label){case 0:return[4,Promise.all([null===(e=this.globalEntitlementsService)||void 0===e?void 0:e.refresh(),null===(t=this.resourceEntitlementsService)||void 0===t?void 0:t.refresh()])];case 1:return n.sent(),[2]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to refresh entitlements. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getBooleanEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=Au(Au({},l),a);return Cu((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getBooleanEntitlement(r,s,i):s:n.globalEntitlementsService.getBooleanEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get boolean entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getNumericEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=Au(Au({},f),a);return Cu((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getNumericEntitlement(r,s,i):s:n.globalEntitlementsService.getNumericEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get numeric entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getMeteredEntitlement=function(e){var t,n=this,r=e.featureId,i=e.options,o=e.resourceId,a=(null==i?void 0:i.fallback)||(null===(t=this.configuration.entitlementsFallback)||void 0===t?void 0:t[r])||{},s=Au(Au({},p),a);return Cu((function(){return n.globalEntitlementsService&&n.isCustomerLoaded?o?o!==n.configuration.resourceId?(n.loggerService.log("Resource ID ".concat(o," does not match the current resource ID ").concat(n.configuration.resourceId,".")),n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId," with resourceId ").concat(o,"}")),s):n.isResourceLoaded&&n.resourceEntitlementsService?n.resourceEntitlementsService.getMeteredEntitlement(r,s,i):s:n.globalEntitlementsService.getMeteredEntitlement(r,s,i):(n.loggerService.log("Using fallback entitlements for customer: ".concat(n.configuration.customerId,". Reason: ").concat(n.globalEntitlementsService?"Customer not loaded":"Entitlements service not initialized "),{initializationStatus:n.initializationStateTracker.initializationStatus,customerId:n.configuration.customerId||""}),s)}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get metered entitlement. Error: ".concat(e.message)},rethrowError:!1,errorReportMetadata:{featureId:r,options:i}})||(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlement")),s)},e.prototype.getPaywall=function(e){var t=void 0===e?{}:e,n=t.productId,r=t.resourceId,i=t.context,o=t.billingCountryCode;return ku(this,void 0,void 0,(function(){var e,t=this;return Ru(this,(function(a){return e={productId:n,customerId:this.configuration.customerId,resourceId:r,context:i,billingCountryCode:o},[2,Du((function(){return ku(t,void 0,void 0,(function(){var t;return Ru(this,(function(r){switch(r.label){case 0:return(null==n?void 0:n.startsWith("stiggTestData"))?[4,this.apiGateway.mockPaywall.getMockPaywall(e)]:[3,2];case 1:return t=r.sent(),[2,this.modelMapper.mapMockPlans(t.data)];case 2:return[4,this.apiGateway.paywall.getPaywall(e)];case 3:return t=r.sent(),[2,this.modelMapper.mapPaywall(t.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get paywall. Error: ".concat(e.message)},rethrowError:!0,errorReportMetadata:{productId:n}})]}))}))},e.prototype.getCoupons=function(){return ku(this,void 0,void 0,(function(){var e=this;return Ru(this,(function(t){return[2,Du((function(){return ku(e,void 0,void 0,(function(){var e;return Ru(this,(function(t){switch(t.label){case 0:return[4,this.apiGateway.coupons.getCoupons()];case 1:return e=t.sent(),[2,this.modelMapper.mapCoupons(e.data)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get coupons. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomer=function(){return ku(this,void 0,void 0,(function(){var e=this;return Ru(this,(function(t){return[2,Du((function(){return ku(e,void 0,void 0,(function(){var e,t,n,r;return Ru(this,(function(i){switch(i.label){case 0:return e=V(this.configuration),[4,this.apiGateway.customers.getCustomer(e)];case 1:if(t=i.sent(),!(n=t.data.getCustomerByRefId))throw new Error("Customer not found");return r=n.subscriptions||[],[2,this.modelMapper.mapCustomer(n,r)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCustomerPortal=function(e){var t=void 0===e?{}:e,n=t.resourceId,r=t.productId;return ku(this,void 0,void 0,(function(){var e=this;return Ru(this,(function(t){return[2,Du((function(){return ku(e,void 0,void 0,(function(){var e,t;return Ru(this,(function(i){switch(i.label){case 0:return e=V(this.configuration),[4,this.apiGateway.customers.getCustomerPortal(e,n,r)];case 1:return t=i.sent(),[2,this.modelMapper.mapCustomerPortal(t.data.customerPortal)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get customer portal details. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.getCheckoutState=function(e){var t=e.planId,n=e.resourceId,r=void 0===n?this.configuration.resourceId:n,i=e.billingCountryCode;return ku(this,void 0,void 0,(function(){var e=this;return Ru(this,(function(n){return[2,Du((function(){return ku(e,void 0,void 0,(function(){var e,n;return Ru(this,(function(o){switch(o.label){case 0:return e=V(this.configuration),[4,this.apiGateway.subscriptions.checkoutState({customerId:e,resourceId:r,planId:t,billingCountryCode:i})];case 1:return n=o.sent(),[2,this.modelMapper.mapCheckoutState(n.data.checkoutState)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get checkout details. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.applySubscription=function(e){return ku(this,void 0,void 0,(function(){var t=this;return Ru(this,(function(n){return[2,Du((function(){return ku(t,void 0,void 0,(function(){var t,n;return Ru(this,(function(r){switch(r.label){case 0:return t=V(this.configuration),[4,this.apiGateway.subscriptions.applySubscription(Au({customerId:t},e))];case 1:if(!(n=r.sent().data)||!n.applySubscription)throw new Error("Invalid response");return[2,this.modelMapper.mapApplySubscriptionResults(n)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to apply subscription to customer. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.fetchUsageHistory=function(e){return ku(this,void 0,void 0,(function(){var t=this;return Ru(this,(function(n){return[2,Du((function(){return ku(t,void 0,void 0,(function(){var t;return Ru(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.customers.fetchUsageHistory(e)];case 1:if(!(t=n.sent().data)||!t.usageHistory)throw new Error("Invalid response");return[2,this.modelMapper.mapUsageHistory(t.usageHistory)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to fetch usage history. Error: ".concat(e.message)},rethrowError:!1})]}))}))},e.prototype.getEntitlements=function(e){return ku(this,void 0,void 0,(function(){var t,n,r=this;return Ru(this,(function(i){switch(i.label){case 0:return t=function(e){return e?Object.keys(e).map((function(t){return xu({isFallback:!0,accessDeniedReason:c.fEx.Unknown,feature:{id:t}},e[t])})):[]}(this.configuration.entitlementsFallback),[4,Du((function(){return ku(r,void 0,void 0,(function(){var n;return Ru(this,(function(r){return V(this.configuration),e?e!==this.configuration.resourceId?(this.loggerService.log("Resource ID ".concat(e," does not match the current resource ID ").concat(this.configuration.resourceId,".")),this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId," with resourceId ").concat(e,"}")),[2,t]):this.isResourceLoaded&&this.resourceEntitlementsService?(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId)),[2,this.resourceEntitlementsService.getEntitlements()]):[2,t]:[2,null===(n=this.globalEntitlementsService)||void 0===n?void 0:n.getEntitlements()]}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get entitlements. Error: ".concat(e.message)},rethrowError:!0})];case 1:return(n=i.sent())?[2,n]:(this.loggerService.log("Using fallback entitlements for customer: ".concat(this.configuration.customerId,". Reason: Failed to get entitlements.")),[2,t])}}))}))},e.prototype.estimateSubscription=function(e){return ku(this,void 0,void 0,(function(){var t=this;return Ru(this,(function(n){return[2,Du((function(){return ku(t,void 0,void 0,(function(){var t;return Ru(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscription)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.estimateSubscriptionUpdate=function(e){return ku(this,void 0,void 0,(function(){var t=this;return Ru(this,(function(n){return[2,Du((function(){return ku(t,void 0,void 0,(function(){var t;return Ru(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.estimateSubscriptionUpdate(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreview(t.estimateSubscriptionUpdate)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate subscription update. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.previewSubscription=function(e){return ku(this,void 0,void 0,(function(){var t=this;return Ru(this,(function(n){return[2,Du((function(){return ku(t,void 0,void 0,(function(){var t;return Ru(this,(function(n){switch(n.label){case 0:return[4,this.apiGateway.subscriptionEstimations.previewSubscription(e)];case 1:if(!(t=n.sent().data))throw new Error("Invalid response");return[2,this.modelMapper.mapSubscriptionPreviewV2(t.previewSubscription)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to estimate checkout. Error: ".concat(e.message)},rethrowError:!0})]}))}))},e.prototype.waitForCheckoutCompleted=function(e){var t=void 0===e?{}:e,n=t.timeoutMs,r=void 0===n?15e3:n,i=t.refreshOnComplete,o=void 0===i||i;return ku(this,void 0,void 0,(function(){var e,t,n,i,a,s,u,c;return Ru(this,(function(l){switch(l.label){case 0:if("undefined"==typeof window)throw new Error("`waitForCheckoutCompleted` was called, but `window` is not defined");if(e=new URLSearchParams(window.location.search),t=e.get("subscriptionId"),n=e.get("resourceId")||void 0,i=e.get("checkoutCompleted"),!t)return this.loggerService.log("`waitCheckoutCompleted` was called, but no `subscriptionId` found in query params"),[2,null];if(!i||"false"===i.toLowerCase())return this.loggerService.log("The checkout session was cancelled by the user"),[2,null];a=Date.now(),s=!1,u=null,l.label=1;case 1:return s?[4,new Promise((function(e){return setTimeout(e,1e3)}))]:[3,3];case 2:l.sent(),l.label=3;case 3:return[4,this.getActiveSubscriptions({resourceId:n})];case 4:c=l.sent(),u=c.find((function(e){return e.id===t}))||null,s=!0,l.label=5;case 5:if(!u&&Date.now()-a<r)return[3,1];l.label=6;case 6:if(!u)throw new Error("Timeout while waiting for checkout to complete, subscription ".concat(t," is not active"));return o?[4,this.refresh()]:[3,8];case 7:l.sent(),l.label=8;case 8:return[2,u]}}))}))},e.prototype.getActiveSubscriptions=function(e){var t=this,n=(void 0===e?{}:e).resourceId;return Du((function(){return ku(t,void 0,void 0,(function(){var e,t,r;return Ru(this,(function(i){switch(i.label){case 0:return e=V(this.configuration),[4,this.apiGateway.customers.getActiveSubscriptions(e,n)];case 1:if(t=i.sent(),!(r=t.data.getActiveSubscriptions))throw new Error("Customer ".concat(n?"or resource ":"","not found"));return[2,this.modelMapper.mapSubscriptions(r)]}}))}))}),{loggerService:this.loggerService,sdkConfiguration:this.configuration,errorMessage:function(e){return"Failed to get active subscriptions. Error: ".concat(e.message)},rethrowError:!0})},e}()},890:(e,t,n)=>{"use strict";t.YGW=t.qXR=t.LtK=t.QdX=t.TVs=t.iI3=t.zv6=t.pSI=t.puT=t.XY6=t.Kyg=t.Us3=t.B8X=t.qBr=t.uMn=t.U9t=t.Tex=t.iKc=t.GAT=t.bWm=t.o_I=t.i3Z=t.jKp=t.$BG=t.IZr=t.FT8=t.XHu=t.Lbh=t.C2e=t.yEZ=t.Pg9=t.rpU=t.pDu=t.Fa6=t.$i2=t.K79=t.i2A=t.uS8=t.u4I=t.ugv=t.tvV=t.FzK=t.PLi=t.E34=t.Mbo=t.v2N=t.Ijf=t.nwm=t.dpb=t.fEx=void 0,t.d4U=t.RzF=t.cMT=t.N9N=t.wEB=t.Chb=t.OoB=t.FL0=t.hk_=t.Ehw=t.zdd=t.bj8=t.zOd=t.EOH=t.l9N=t.rCU=t.FoD=t._yy=t.Buv=t.p13=t.PNd=t.UAI=t.hYU=t.wRo=t.yhH=t.nOi=t.YVG=t.cUf=t.yBL=t.DWP=t.eSW=t.G6j=t.e1Q=t._oj=t.ird=t.lS0=t.c06=t.w1y=t.ueJ=t.PO0=t.Xm9=t.SrV=t.Zam=t.u0j=t.QZw=t.$Vq=t.ku9=t.JkE=t.p_C=t._HY=void 0,t.Mal=t.eKV=t.$jJ=t.m76=t.q6C=t.UK7=t.CjA=t.Y92=t.YlF=t.bGH=t.QNm=t.qw4=t.fvX=t.r4r=t.nN6=t.FcI=t.lgL=t.hVT=t.VeJ=t.k8_=t.weZ=t.bEP=t.g31=t.NSU=t.mGS=t.XsQ=t._d$=t.u9g=t.Eph=t.LBz=t.X$1=t.aqW=t.qYx=t.ab2=t.cG4=t.l3m=t.bII=t.cUI=t.o5f=t.JyR=t.URA=t.Eam=t.DFP=t.zjf=t.fYe=t.GBW=t.Ugm=t.hvo=t.J5K=t.bOA=void 0,t.zBW=t.LpH=t.Bve=t.K0T=t._xu=t.jPD=t.$Av=t.N9K=t.Fd7=t.pWb=t.roX=t.RVX=t.Q$1=t.OpC=t.TpL=t.ZeH=t.$02=t._gQ=t.m06=t.bGN=t.WJn=t.JDz=t.ZSL=t.dO5=t.K5h=t.jAf=t.ZD9=t.wO5=t.m5b=t.x3v=t.EQD=t.N5j=t.Bkk=t.rDA=t.GHz=void 0;const r=n(5185);var i,o,a,s,u,c,l,f,p,d,h,v,y,m,g,b,_,E,w,S,I,T,x,O,D,C,P,A,k,R,N,F,U,M,j,L,B,q,$,V,G,Q,z,W,Y,K,H,J,X,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,fe,pe,de,he,ve,ye,me,ge,be,_e,Ee,we,Se,Ie,Te,xe,Oe,De,Ce,Pe,Ae,ke,Re,Ne;(Ne=t.fEx||(t.fEx={})).CustomerIsArchived="CustomerIsArchived",Ne.CustomerNotFound="CustomerNotFound",Ne.CustomerResourceNotFound="CustomerResourceNotFound",Ne.FeatureNotFound="FeatureNotFound",Ne.NoActiveSubscription="NoActiveSubscription",Ne.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",Ne.RequestedUsageExceedingLimit="RequestedUsageExceedingLimit",Ne.Unknown="Unknown",(Re=t.dpb||(t.dpb={})).Active="ACTIVE",Re.Blocked="BLOCKED",(ke=t.nwm||(t.nwm={})).BillingId="billingId",ke.CreatedAt="createdAt",ke.Description="description",ke.DisplayName="displayName",ke.EnvironmentId="environmentId",ke.Id="id",ke.IsLatest="isLatest",ke.PricingType="pricingType",ke.ProductId="productId",ke.RefId="refId",ke.Status="status",ke.UpdatedAt="updatedAt",ke.VersionNumber="versionNumber",(Ae=t.Ijf||(t.Ijf={})).Avg="AVG",Ae.Count="COUNT",Ae.Max="MAX",Ae.Min="MIN",Ae.Sum="SUM",Ae.Unique="UNIQUE",(Pe=t.v2N||(t.v2N={})).Center="CENTER",Pe.Left="LEFT",Pe.Right="RIGHT",(t.Mbo||(t.Mbo={})).Id="id",(Ce=t.E34||(t.E34={})).Client="CLIENT",Ce.Server="SERVER",(De=t.PLi||(t.PLi={})).StartOfTheMonth="START_OF_THE_MONTH",De.SubscriptionStart="SUBSCRIPTION_START",(Oe=t.FzK||(t.FzK={})).FlatFee="FLAT_FEE",Oe.PerUnit="PER_UNIT",Oe.UsageBased="USAGE_BASED",(xe=t.tvV||(t.tvV={})).Annually="ANNUALLY",xe.Monthly="MONTHLY",(t.ugv||(t.ugv={})).Stripe="STRIPE",(Te=t.u4I||(t.u4I={})).Added="ADDED",Te.Deleted="DELETED",Te.Modified="MODIFIED",Te.Reordered="REORDERED",(Ie=t.uS8||(t.uS8={})).Equals="EQUALS",Ie.GreaterThan="GREATER_THAN",Ie.GreaterThanOrEqual="GREATER_THAN_OR_EQUAL",Ie.IsNotNull="IS_NOT_NULL",Ie.IsNull="IS_NULL",Ie.LessThan="LESS_THAN",Ie.LessThanOrEqual="LESS_THAN_OR_EQUAL",Ie.NotEquals="NOT_EQUALS",(Se=t.i2A||(t.i2A={})).BillingId="billingId",Se.CreatedAt="createdAt",Se.Description="description",Se.EnvironmentId="environmentId",Se.Id="id",Se.Name="name",Se.RefId="refId",Se.Status="status",Se.Type="type",Se.UpdatedAt="updatedAt",(we=t.K79||(t.K79={})).Active="ACTIVE",we.Archived="ARCHIVED",(Ee=t.$i2||(t.$i2={})).Fixed="FIXED",Ee.Percentage="PERCENTAGE",(_e=t.Fa6||(t.Fa6={})).Aed="AED",_e.All="ALL",_e.Amd="AMD",_e.Ang="ANG",_e.Aud="AUD",_e.Awg="AWG",_e.Azn="AZN",_e.Bam="BAM",_e.Bbd="BBD",_e.Bdt="BDT",_e.Bgn="BGN",_e.Bif="BIF",_e.Bmd="BMD",_e.Bnd="BND",_e.Bsd="BSD",_e.Bwp="BWP",_e.Byn="BYN",_e.Bzd="BZD",_e.Cad="CAD",_e.Cdf="CDF",_e.Chf="CHF",_e.Clp="CLP",_e.Cny="CNY",_e.Czk="CZK",_e.Djf="DJF",_e.Dkk="DKK",_e.Dop="DOP",_e.Dzd="DZD",_e.Egp="EGP",_e.Etb="ETB",_e.Eur="EUR",_e.Fjd="FJD",_e.Gbp="GBP",_e.Gel="GEL",_e.Gip="GIP",_e.Gmd="GMD",_e.Gnf="GNF",_e.Gyd="GYD",_e.Hkd="HKD",_e.Hrk="HRK",_e.Htg="HTG",_e.Idr="IDR",_e.Ils="ILS",_e.Inr="INR",_e.Isk="ISK",_e.Jmd="JMD",_e.Jpy="JPY",_e.Kes="KES",_e.Kgs="KGS",_e.Khr="KHR",_e.Kmf="KMF",_e.Krw="KRW",_e.Kyd="KYD",_e.Kzt="KZT",_e.Lbp="LBP",_e.Lkr="LKR",_e.Lrd="LRD",_e.Lsl="LSL",_e.Mad="MAD",_e.Mdl="MDL",_e.Mga="MGA",_e.Mkd="MKD",_e.Mmk="MMK",_e.Mnt="MNT",_e.Mop="MOP",_e.Mro="MRO",_e.Mvr="MVR",_e.Mwk="MWK",_e.Mxn="MXN",_e.Myr="MYR",_e.Mzn="MZN",_e.Nad="NAD",_e.Ngn="NGN",_e.Nok="NOK",_e.Npr="NPR",_e.Nzd="NZD",_e.Pgk="PGK",_e.Php="PHP",_e.Pkr="PKR",_e.Pln="PLN",_e.Pyg="PYG",_e.Qar="QAR",_e.Ron="RON",_e.Rsd="RSD",_e.Rub="RUB",_e.Rwf="RWF",_e.Sar="SAR",_e.Sbd="SBD",_e.Scr="SCR",_e.Sek="SEK",_e.Sgd="SGD",_e.Sle="SLE",_e.Sll="SLL",_e.Sos="SOS",_e.Szl="SZL",_e.Thb="THB",_e.Tjs="TJS",_e.Top="TOP",_e.Try="TRY",_e.Ttd="TTD",_e.Tzs="TZS",_e.Uah="UAH",_e.Ugx="UGX",_e.Usd="USD",_e.Uzs="UZS",_e.Vnd="VND",_e.Vuv="VUV",_e.Wst="WST",_e.Xaf="XAF",_e.Xcd="XCD",_e.Xof="XOF",_e.Xpf="XPF",_e.Yer="YER",_e.Zar="ZAR",_e.Zmw="ZMW",(be=t.pDu||(t.pDu={})).CreatedAt="createdAt",be.EnvironmentId="environmentId",be.ResourceId="resourceId",(ge=t.rpU||(t.rpU={})).BillingId="billingId",ge.CreatedAt="createdAt",ge.CrmHubspotCompanyId="crmHubspotCompanyId",ge.CrmHubspotCompanyUrl="crmHubspotCompanyUrl",ge.CrmId="crmId",ge.CustomerId="customerId",ge.DeletedAt="deletedAt",ge.Email="email",ge.EnvironmentId="environmentId",ge.Id="id",ge.Name="name",ge.RefId="refId",ge.SearchQuery="searchQuery",ge.UpdatedAt="updatedAt",(me=t.Pg9||(t.Pg9={})).BillingId="billingId",me.CancelReason="cancelReason",me.CancellationDate="cancellationDate",me.CreatedAt="createdAt",me.CrmId="crmId",me.CrmLinkUrl="crmLinkUrl",me.CurrentBillingPeriodEnd="currentBillingPeriodEnd",me.CurrentBillingPeriodStart="currentBillingPeriodStart",me.EffectiveEndDate="effectiveEndDate",me.EndDate="endDate",me.EnvironmentId="environmentId",me.Id="id",me.OldBillingId="oldBillingId",me.PaymentCollection="paymentCollection",me.PricingType="pricingType",me.RefId="refId",me.ResourceId="resourceId",me.StartDate="startDate",me.Status="status",me.SubscriptionId="subscriptionId",me.TrialEndDate="trialEndDate",(ye=t.yEZ||(t.yEZ={})).CeoOrFounder="CEO_OR_FOUNDER",ye.Engineering="ENGINEERING",ye.Growth="GROWTH",ye.Marketing="MARKETING",ye.Monetization="MONETIZATION",ye.Other="OTHER",ye.Product="PRODUCT",(ve=t.C2e||(t.C2e={})).Forever="FOREVER",ve.Once="ONCE",ve.Repeating="REPEATING",(he=t.Lbh||(t.Lbh={})).Fixed="FIXED",he.Percentage="PERCENTAGE",(de=t.XHu||(t.XHu={})).Day="DAY",de.Hour="HOUR",de.Month="MONTH",de.Week="WEEK",de.Year="YEAR",(pe=t.FT8||(t.FT8={})).BlackList="BLACK_LIST",pe.WhiteList="WHITE_LIST",(fe=t.IZr||(t.IZr={})).Done="DONE",fe.Failed="FAILED",fe.InProgress="IN_PROGRESS",fe.NotProvisioned="NOT_PROVISIONED",(le=t.$BG||(t.$BG={})).CreatedAt="createdAt",le.DisplayName="displayName",le.Id="id",le.PermanentDeletionDate="permanentDeletionDate",le.Slug="slug",(ce=t.jKp||(t.jKp={})).AccountNotFoundError="AccountNotFoundError",ce.AddonHasToHavePriceError="AddonHasToHavePriceError",ce.AddonNotFound="AddonNotFound",ce.AddonWithDraftCannotBeDeletedError="AddonWithDraftCannotBeDeletedError",ce.AmountTooLarge="AmountTooLarge",ce.ArchivedCouponCantBeApplied="ArchivedCouponCantBeApplied",ce.AuthCustomerMismatch="AuthCustomerMismatch",ce.AwsMarketplaceIntegrationError="AwsMarketplaceIntegrationError",ce.AwsMarketplaceIntegrationValidationError="AwsMarketplaceIntegrationValidationError",ce.BadUserInput="BadUserInput",ce.BillingPeriodMissingError="BillingPeriodMissingError",ce.CannotArchiveFeatureError="CannotArchiveFeatureError",ce.CannotDeleteCustomerError="CannotDeleteCustomerError",ce.CannotDeleteFeatureError="CannotDeleteFeatureError",ce.CannotDeleteProductError="CannotDeleteProductError",ce.CannotEditPackageInNonDraftMode="CannotEditPackageInNonDraftMode",ce.CannotReportUsageForEntitlementWithMeterError="CannotReportUsageForEntitlementWithMeterError",ce.CannotUpsertToPackageThatHasDraft="CannotUpsertToPackageThatHasDraft",ce.CheckoutIsNotSupported="CheckoutIsNotSupported",ce.CheckoutOptionsMissing="CheckoutOptionsMissing",ce.CouponNotFound="CouponNotFound",ce.CustomerAlreadyHaveCustomerCoupon="CustomerAlreadyHaveCustomerCoupon",ce.CustomerAlreadyUsesCoupon="CustomerAlreadyUsesCoupon",ce.CustomerHasNoEmailAddress="CustomerHasNoEmailAddress",ce.CustomerHasNoPaymentMethod="CustomerHasNoPaymentMethod",ce.CustomerNoBillingId="CustomerNoBillingId",ce.CustomerNotFound="CustomerNotFound",ce.CustomerResourceNotFound="CustomerResourceNotFound",ce.DowngradeBillingPeriodNotSupportedError="DowngradeBillingPeriodNotSupportedError",ce.DraftPlanCantBeArchived="DraftPlanCantBeArchived",ce.DryRunError="DryRunError",ce.DuplicateProductValidationError="DuplicateProductValidationError",ce.DuplicatedEntityNotAllowed="DuplicatedEntityNotAllowed",ce.EditAllowedOnDraftPackageOnlyError="EditAllowedOnDraftPackageOnlyError",ce.EntitlementsMustBelongToSamePackage="EntitlementsMustBelongToSamePackage",ce.EntityIdDifferentFromRefIdError="EntityIdDifferentFromRefIdError",ce.EntityIsArchivedError="EntityIsArchivedError",ce.EnvironmentMissing="EnvironmentMissing",ce.ExperimentAlreadyRunning="ExperimentAlreadyRunning",ce.ExperimentNotFoundError="ExperimentNotFoundError",ce.ExperimentStatusError="ExperimentStatusError",ce.FailedToCreateCheckoutSessionError="FailedToCreateCheckoutSessionError",ce.FailedToImportCustomer="FailedToImportCustomer",ce.FeatureNotFound="FeatureNotFound",ce.FetchAllCountriesPricesNotAllowed="FetchAllCountriesPricesNotAllowed",ce.IdentityForbidden="IdentityForbidden",ce.ImportAlreadyInProgress="ImportAlreadyInProgress",ce.ImportSubscriptionsBulkError="ImportSubscriptionsBulkError",ce.InitStripePaymentMethodError="InitStripePaymentMethodError",ce.IntegrationNotFound="IntegrationNotFound",ce.IntegrationValidationError="IntegrationValidationError",ce.IntegrityViolation="IntegrityViolation",ce.InvalidAddressError="InvalidAddressError",ce.InvalidArgumentError="InvalidArgumentError",ce.InvalidCancellationDate="InvalidCancellationDate",ce.InvalidEntitlementResetPeriod="InvalidEntitlementResetPeriod",ce.InvalidMemberDelete="InvalidMemberDelete",ce.InvalidMetadataError="InvalidMetadataError",ce.InvalidQuantity="InvalidQuantity",ce.InvalidSubscriptionStatus="InvalidSubscriptionStatus",ce.InvalidUpdatePriceUnitAmountError="InvalidUpdatePriceUnitAmountError",ce.MemberInvitationError="MemberInvitationError",ce.MemberNotFound="MemberNotFound",ce.MergeEnvironmentValidationError="MergeEnvironmentValidationError",ce.MeterMustBeAssociatedToMeteredFeature="MeterMustBeAssociatedToMeteredFeature",ce.MeteringNotAvailableForFeatureType="MeteringNotAvailableForFeatureType",ce.MissingEntityIdError="MissingEntityIdError",ce.NoFeatureEntitlementInSubscription="NoFeatureEntitlementInSubscription",ce.NoProductsAvailable="NoProductsAvailable",ce.OperationNotAllowedDuringInProgressExperiment="OperationNotAllowedDuringInProgressExperiment",ce.PackageAlreadyPublished="PackageAlreadyPublished",ce.PackagePricingTypeNotSet="PackagePricingTypeNotSet",ce.PaymentMethodNotFoundError="PaymentMethodNotFoundError",ce.PlanCannotBePublishWhenBasePlanIsDraft="PlanCannotBePublishWhenBasePlanIsDraft",ce.PlanCannotBePublishWhenCompatibleAddonIsDraft="PlanCannotBePublishWhenCompatibleAddonIsDraft",ce.PlanIsUsedAsDefaultStartPlan="PlanIsUsedAsDefaultStartPlan",ce.PlanIsUsedAsDowngradePlan="PlanIsUsedAsDowngradePlan",ce.PlanNotFound="PlanNotFound",ce.PlanWithChildCantBeDeleted="PlanWithChildCantBeDeleted",ce.PlansCircularDependencyError="PlansCircularDependencyError",ce.PriceNotFound="PriceNotFound",ce.PromotionCodeCustomerNotFirstPurchase="PromotionCodeCustomerNotFirstPurchase",ce.PromotionCodeMaxRedemptionsReached="PromotionCodeMaxRedemptionsReached",ce.PromotionCodeMinimumAmountNotReached="PromotionCodeMinimumAmountNotReached",ce.PromotionCodeNotActive="PromotionCodeNotActive",ce.PromotionCodeNotForCustomer="PromotionCodeNotForCustomer",ce.PromotionCodeNotFound="PromotionCodeNotFound",ce.PromotionalEntitlementNotFoundError="PromotionalEntitlementNotFoundError",ce.RateLimitExceeded="RateLimitExceeded",ce.RecalculateEntitlementsError="RecalculateEntitlementsError",ce.ResyncAlreadyInProgress="ResyncAlreadyInProgress",ce.ScheduledMigrationAlreadyExistsError="ScheduledMigrationAlreadyExistsError",ce.SelectedBillingModelDoesntMatchImportedItemError="SelectedBillingModelDoesntMatchImportedItemError",ce.StripeCustomerIsDeleted="StripeCustomerIsDeleted",ce.StripeError="StripeError",ce.SubscriptionAlreadyCanceledOrExpired="SubscriptionAlreadyCanceledOrExpired",ce.SubscriptionAlreadyOnLatestPlanError="SubscriptionAlreadyOnLatestPlanError",ce.SubscriptionMustHaveSinglePlanError="SubscriptionMustHaveSinglePlanError",ce.SubscriptionNotFound="SubscriptionNotFound",ce.TooManySubscriptionsPerCustomer="TooManySubscriptionsPerCustomer",ce.TrialMinDateError="TrialMinDateError",ce.TrialMustBeCancelledImmediately="TrialMustBeCancelledImmediately",ce.UnPublishedPackage="UnPublishedPackage",ce.Unauthenticated="Unauthenticated",ce.UncompatibleSubscriptionAddon="UncompatibleSubscriptionAddon",ce.UnexpectedError="UnexpectedError",ce.UnsupportedFeatureType="UnsupportedFeatureType",ce.UnsupportedSubscriptionScheduleType="UnsupportedSubscriptionScheduleType",ce.UnsupportedVendorIdentifier="UnsupportedVendorIdentifier",(ue=t.i3Z||(t.i3Z={})).AddonCreated="ADDON_CREATED",ue.AddonDeleted="ADDON_DELETED",ue.AddonUpdated="ADDON_UPDATED",ue.CouponArchived="COUPON_ARCHIVED",ue.CouponCreated="COUPON_CREATED",ue.CouponUpdated="COUPON_UPDATED",ue.CreateSubscriptionFailed="CREATE_SUBSCRIPTION_FAILED",ue.CustomerCreated="CUSTOMER_CREATED",ue.CustomerDeleted="CUSTOMER_DELETED",ue.CustomerEntitlementCalculationTriggered="CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED",ue.CustomerPaymentFailed="CUSTOMER_PAYMENT_FAILED",ue.CustomerResourceEntitlementCalculationTriggered="CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED",ue.CustomerUpdated="CUSTOMER_UPDATED",ue.EdgeApiCustomerDataResync="EDGE_API_CUSTOMER_DATA_RESYNC",ue.EdgeApiDataResync="EDGE_API_DATA_RESYNC",ue.EdgeApiPackageEntitlementsDataResync="EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC",ue.EdgeApiSubscriptionsDataResync="EDGE_API_SUBSCRIPTIONS_DATA_RESYNC",ue.EntitlementsUpdated="ENTITLEMENTS_UPDATED",ue.EntitlementDenied="ENTITLEMENT_DENIED",ue.EntitlementGranted="ENTITLEMENT_GRANTED",ue.EntitlementRequested="ENTITLEMENT_REQUESTED",ue.EnvironmentDeleted="ENVIRONMENT_DELETED",ue.FeatureArchived="FEATURE_ARCHIVED",ue.FeatureCreated="FEATURE_CREATED",ue.FeatureDeleted="FEATURE_DELETED",ue.FeatureUpdated="FEATURE_UPDATED",ue.ImportIntegrationCatalogTriggered="IMPORT_INTEGRATION_CATALOG_TRIGGERED",ue.ImportIntegrationCustomersTriggered="IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED",ue.ImportSubscriptionsBulkTriggered="IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED",ue.MeasurementReported="MEASUREMENT_REPORTED",ue.PackagePublished="PACKAGE_PUBLISHED",ue.PlanCreated="PLAN_CREATED",ue.PlanDeleted="PLAN_DELETED",ue.PlanUpdated="PLAN_UPDATED",ue.ProductCreated="PRODUCT_CREATED",ue.ProductDeleted="PRODUCT_DELETED",ue.ProductUpdated="PRODUCT_UPDATED",ue.PromotionalEntitlementExpired="PROMOTIONAL_ENTITLEMENT_EXPIRED",ue.PromotionalEntitlementGranted="PROMOTIONAL_ENTITLEMENT_GRANTED",ue.PromotionalEntitlementRevoked="PROMOTIONAL_ENTITLEMENT_REVOKED",ue.PromotionalEntitlementUpdated="PROMOTIONAL_ENTITLEMENT_UPDATED",ue.RecalculateEntitlementsTriggered="RECALCULATE_ENTITLEMENTS_TRIGGERED",ue.ResyncIntegrationTriggered="RESYNC_INTEGRATION_TRIGGERED",ue.SubscriptionsMigrated="SUBSCRIPTIONS_MIGRATED",ue.SubscriptionsMigrationTriggered="SUBSCRIPTIONS_MIGRATION_TRIGGERED",ue.SubscriptionCanceled="SUBSCRIPTION_CANCELED",ue.SubscriptionCreated="SUBSCRIPTION_CREATED",ue.SubscriptionExpired="SUBSCRIPTION_EXPIRED",ue.SubscriptionTrialConverted="SUBSCRIPTION_TRIAL_CONVERTED",ue.SubscriptionTrialEndsSoon="SUBSCRIPTION_TRIAL_ENDS_SOON",ue.SubscriptionTrialExpired="SUBSCRIPTION_TRIAL_EXPIRED",ue.SubscriptionTrialStarted="SUBSCRIPTION_TRIAL_STARTED",ue.SubscriptionUpdated="SUBSCRIPTION_UPDATED",ue.SubscriptionUsageUpdated="SUBSCRIPTION_USAGE_UPDATED",ue.SyncFailed="SYNC_FAILED",ue.WidgetConfigurationUpdated="WIDGET_CONFIGURATION_UPDATED",(se=t.o_I||(t.o_I={})).CreatedAt="createdAt",se.EnvironmentId="environmentId",se.Id="id",se.Name="name",se.ProductId="productId",se.RefId="refId",se.Status="status",(ae=t.bWm||(t.bWm={})).Completed="COMPLETED",ae.Draft="DRAFT",ae.InProgress="IN_PROGRESS",(oe=t.GAT||(t.GAT={})).CreatedAt="createdAt",oe.Description="description",oe.DisplayName="displayName",oe.EnvironmentId="environmentId",oe.FeatureStatus="featureStatus",oe.FeatureType="featureType",oe.Id="id",oe.MeterType="meterType",oe.RefId="refId",oe.UpdatedAt="updatedAt",(ie=t.iKc||(t.iKc={})).Active="ACTIVE",ie.New="NEW",ie.Suspended="SUSPENDED",(re=t.Tex||(t.Tex={})).Boolean="BOOLEAN",re.Number="NUMBER",(ne=t.U9t||(t.U9t={})).Bold="BOLD",ne.Normal="NORMAL",(te=t.uMn||(t.uMn={})).CreatedAt="createdAt",te.Endpoint="endpoint",te.EnvironmentId="environmentId",te.Id="id",te.Status="status",(ee=t.qBr||(t.qBr={})).Active="ACTIVE",ee.Inactive="INACTIVE",(Z=t.B8X||(t.B8X={})).CreatedAt="createdAt",Z.EnvironmentId="environmentId",Z.Id="id",Z.Status="status",Z.TaskType="taskType",(X=t.Us3||(t.Us3={})).CreatedAt="createdAt",X.EnvironmentId="environmentId",X.Id="id",X.VendorIdentifier="vendorIdentifier",(J=t.Kyg||(t.Kyg={})).CreatedAt="createdAt",J.Id="id",(H=t.XY6||(t.XY6={})).Invited="INVITED",H.Registered="REGISTERED",(K=t.puT||(t.puT={})).Fluctuating="Fluctuating",K.Incremental="Incremental",K.None="None",(Y=t.pSI||(t.pSI={})).StartOfTheMonth="StartOfTheMonth",Y.SubscriptionStart="SubscriptionStart",(W=t.zv6||(t.zv6={})).BillingId="billingId",W.CreatedAt="createdAt",W.Description="description",W.DisplayName="displayName",W.EnvironmentId="environmentId",W.Id="id",W.IsLatest="isLatest",W.PricingType="pricingType",W.ProductId="productId",W.RefId="refId",W.Status="status",W.UpdatedAt="updatedAt",W.VersionNumber="versionNumber",(z=t.iI3||(t.iI3={})).CreatedAt="createdAt",z.EnvironmentId="environmentId",z.Id="id",z.PackageId="packageId",z.UpdatedAt="updatedAt",(Q=t.TVs||(t.TVs={})).Archived="ARCHIVED",Q.Draft="DRAFT",Q.Published="PUBLISHED",(G=t.QdX||(t.QdX={})).ActionRequired="ACTION_REQUIRED",G.Failed="FAILED",G.NotRequired="NOT_REQUIRED",G.Processing="PROCESSING",(V=t.LtK||(t.LtK={})).Bank="BANK",V.Card="CARD",($=t.qXR||(t.qXR={})).BillingId="billingId",$.CreatedAt="createdAt",$.Description="description",$.DisplayName="displayName",$.EnvironmentId="environmentId",$.Id="id",$.IsLatest="isLatest",$.PricingType="pricingType",$.ProductId="productId",$.RefId="refId",$.Status="status",$.UpdatedAt="updatedAt",$.VersionNumber="versionNumber",(q=t.YGW||(t.YGW={})).BillingId="billingId",q.BillingModel="billingModel",q.BillingPeriod="billingPeriod",q.CreatedAt="createdAt",q.Id="id",q.TiersMode="tiersMode",(B=t._HY||(t._HY={})).Custom="CUSTOM",B.Free="FREE",B.Paid="PAID",(L=t.p_C||(t.p_C={})).AwsMarketplaceProductCode="awsMarketplaceProductCode",L.AwsMarketplaceProductId="awsMarketplaceProductId",L.CreatedAt="createdAt",L.Description="description",L.DisplayName="displayName",L.EnvironmentId="environmentId",L.Id="id",L.IsDefaultProduct="isDefaultProduct",L.RefId="refId",L.UpdatedAt="updatedAt",(j=t.JkE||(t.JkE={})).Custom="CUSTOM",j.Lifetime="LIFETIME",j.OneMonth="ONE_MONTH",j.OneWeek="ONE_WEEK",j.OneYear="ONE_YEAR",j.SixMonth="SIX_MONTH",(M=t.ku9||(t.ku9={})).CreatedAt="createdAt",M.EnvironmentId="environmentId",M.Id="id",M.Status="status",M.UpdatedAt="updatedAt",(U=t.$Vq||(t.$Vq={})).Active="Active",U.Expired="Expired",U.Paused="Paused",(F=t.QZw||(t.QZw={})).CreateProrations="CREATE_PRORATIONS",F.InvoiceImmediately="INVOICE_IMMEDIATELY",(N=t.u0j||(t.u0j={})).PaymentRequired="PAYMENT_REQUIRED",N.Success="SUCCESS",(R=t.Zam||(t.Zam={})).AllCustomers="ALL_CUSTOMERS",R.NewCustomers="NEW_CUSTOMERS",(k=t.SrV||(t.SrV={})).Asc="ASC",k.Desc="DESC",(A=t.Xm9||(t.Xm9={})).NullsFirst="NULLS_FIRST",A.NullsLast="NULLS_LAST",(P=t.PO0||(t.PO0={})).JsClientSdk="JS_CLIENT_SDK",P.NodeServerSdk="NODE_SERVER_SDK",P.PersistentCacheService="PERSISTENT_CACHE_SERVICE",(C=t.ueJ||(t.ueJ={})).CreatedAt="createdAt",C.Id="id",C.Quantity="quantity",C.UpdatedAt="updatedAt",(D=t.w1y||(t.w1y={})).CancelledByBilling="CancelledByBilling",D.CustomerArchived="CustomerArchived",D.DetachBilling="DetachBilling",D.Expired="Expired",D.Immediate="Immediate",D.PendingPaymentExpired="PendingPaymentExpired",D.ScheduledCancellation="ScheduledCancellation",D.TrialConverted="TrialConverted",D.TrialEnded="TrialEnded",D.UpgradeOrDowngrade="UpgradeOrDowngrade",(O=t.c06||(t.c06={})).Default="DEFAULT",O.RevokeEntitlements="REVOKE_ENTITLEMENTS",(x=t.lS0||(t.lS0={})).EndOfBillingPeriod="END_OF_BILLING_PERIOD",x.Immediate="IMMEDIATE",x.SpecificDate="SPECIFIC_DATE",(T=t.ird||(t.ird={})).PredefinedFreePlan="PREDEFINED_FREE_PLAN",T.PredefinedTrialPlan="PREDEFINED_TRIAL_PLAN",T.RequestedPlan="REQUESTED_PLAN",T.SkippedSubscriptionCreation="SKIPPED_SUBSCRIPTION_CREATION",(I=t._oj||(t._oj={})).CancelSubscription="CANCEL_SUBSCRIPTION",I.DowngradeToFree="DOWNGRADE_TO_FREE",(S=t.e1Q||(t.e1Q={})).CreatedAt="createdAt",S.EnvironmentId="environmentId",S.Id="id",S.SubscriptionId="subscriptionId",S.UpdatedAt="updatedAt",(w=t.G6j||(t.G6j={})).Canceled="CANCELED",w.Open="OPEN",w.Paid="PAID",(E=t.eSW||(t.eSW={})).CreatedAt="createdAt",E.EnvironmentId="environmentId",E.Id="id",E.Status="status",E.TaskType="taskType",(_=t.DWP||(t.DWP={})).EndOfBillingPeriod="END_OF_BILLING_PERIOD",_.Immediate="IMMEDIATE",(b=t.yBL||(t.yBL={})).BillingModel="billingModel",b.CreatedAt="createdAt",b.FeatureId="featureId",b.Id="id",b.UpdatedAt="updatedAt",b.UsageLimit="usageLimit",(g=t.cUf||(t.cUf={})).Canceled="Canceled",g.Done="Done",g.Failed="Failed",g.PendingPayment="PendingPayment",g.Scheduled="Scheduled",(m=t.YVG||(t.YVG={})).Addon="Addon",m.BillingPeriod="BillingPeriod",m.Downgrade="Downgrade",m.MigrateToLatest="MigrateToLatest",m.UnitAmount="UnitAmount",(y=t.nOi||(t.nOi={})).FreePlan="FREE_PLAN",y.PlanSelection="PLAN_SELECTION",y.TrialPeriod="TRIAL_PERIOD",(v=t.yhH||(t.yhH={})).Active="ACTIVE",v.Canceled="CANCELED",v.Expired="EXPIRED",v.InTrial="IN_TRIAL",v.NotStarted="NOT_STARTED",v.PaymentPending="PAYMENT_PENDING",(h=t.wRo||(t.wRo={})).Error="ERROR",h.NoSyncRequired="NO_SYNC_REQUIRED",h.Pending="PENDING",h.Success="SUCCESS",(d=t.hYU||(t.hYU={})).Canceled="CANCELED",d.Completed="COMPLETED",d.Failed="FAILED",d.InProgress="IN_PROGRESS",d.PartiallyFailed="PARTIALLY_FAILED",d.Pending="PENDING",(p=t.UAI||(t.UAI={})).ImportIntegrationCatalog="IMPORT_INTEGRATION_CATALOG",p.ImportIntegrationCustomers="IMPORT_INTEGRATION_CUSTOMERS",p.ImportSubscriptionsBulk="IMPORT_SUBSCRIPTIONS_BULK",p.RecalculateBatchEntitlements="RECALCULATE_BATCH_ENTITLEMENTS",p.RecalculateEntitlements="RECALCULATE_ENTITLEMENTS",p.ResyncIntegration="RESYNC_INTEGRATION",p.SubscriptionMigration="SUBSCRIPTION_MIGRATION",p.SubscriptionMigrationV2="SUBSCRIPTION_MIGRATION_V2",(f=t.PNd||(t.PNd={})).Graduated="GRADUATED",f.Volume="VOLUME",(l=t.p13||(t.p13={})).Day="DAY",l.Month="MONTH",(c=t.Buv||(t.Buv={})).CreatedAt="createdAt",c.EnvironmentId="environmentId",c.Id="id",(u=t._yy||(t._yy={})).Delta="DELTA",u.Set="SET",(s=t.FoD||(t.FoD={})).AwsMarketplace="AWS_MARKETPLACE",s.Hubspot="HUBSPOT",s.Stripe="STRIPE",s.Zuora="ZUORA",(a=t.rCU||(t.rCU={})).EveryFriday="EveryFriday",a.EveryMonday="EveryMonday",a.EverySaturday="EverySaturday",a.EverySunday="EverySunday",a.EveryThursday="EveryThursday",a.EveryTuesday="EveryTuesday",a.EveryWednesday="EveryWednesday",a.SubscriptionStart="SubscriptionStart",(o=t.l9N||(t.l9N={})).Checkout="CHECKOUT",o.CustomerPortal="CUSTOMER_PORTAL",o.Paywall="PAYWALL",(t.EOH||(t.EOH={})).SubscriptionStart="SubscriptionStart",(i=t.zOd||(t.zOd={})).Control="CONTROL",i.Variant="VARIANT",t.bj8=r.default`
111
3
  fragment SlimCustomerFragment on Customer {
112
4
  id
113
5
  name
@@ -192,6 +84,68 @@
192
84
  promotionalEntitlements {
193
85
  ...PromotionalEntitlementFragment
194
86
  }
87
+ }
88
+ `,t.FL0=r.default`
89
+ fragment SubscriptionInvoiceFragment on SubscriptionInvoice {
90
+ billingId
91
+ status
92
+ createdAt
93
+ updatedAt
94
+ requiresAction
95
+ paymentUrl
96
+ paymentSecret
97
+ errorMessage
98
+ }
99
+ `,t.OoB=r.default`
100
+ fragment CustomerResourceFragment on CustomerResource {
101
+ resourceId
102
+ }
103
+ `,t.Chb=r.default`
104
+ fragment PriceTierFragment on PriceTier {
105
+ upTo
106
+ unitPrice {
107
+ amount
108
+ currency
109
+ }
110
+ flatPrice {
111
+ amount
112
+ currency
113
+ }
114
+ }
115
+ `,t.wEB=r.default`
116
+ fragment PriceFragment on Price {
117
+ billingModel
118
+ billingPeriod
119
+ billingId
120
+ minUnitQuantity
121
+ maxUnitQuantity
122
+ billingCountryCode
123
+ price {
124
+ amount
125
+ currency
126
+ }
127
+ tiersMode
128
+ tiers {
129
+ ...PriceTierFragment
130
+ }
131
+ feature {
132
+ refId
133
+ featureUnits
134
+ featureUnitsPlural
135
+ displayName
136
+ description
137
+ }
138
+ }
139
+ `,t.N9N=r.default`
140
+ fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
141
+ subTotal {
142
+ amount
143
+ currency
144
+ }
145
+ total {
146
+ amount
147
+ currency
148
+ }
195
149
  }
196
150
  `,t.cMT=r.default`
197
151
  fragment ProductFragment on Product {
@@ -1110,26 +1064,118 @@
1110
1064
  value
1111
1065
  isResetPoint
1112
1066
  }
1067
+ }
1068
+ `,t.bGH=r.default`
1069
+ fragment SlimSubscriptionFragment on CustomerSubscription {
1070
+ id
1071
+ refId
1072
+ status
1073
+ additionalMetaData
1074
+ billingId
1075
+ billingLinkUrl
1076
+ effectiveEndDate
1077
+ currentBillingPeriodEnd
1078
+ pricingType
1079
+ latestInvoice {
1080
+ ...SubscriptionInvoiceFragment
1081
+ }
1082
+ paymentCollection
1083
+ billingSyncError
1084
+ resource {
1085
+ ...CustomerResourceFragment
1086
+ }
1087
+ experimentInfo {
1088
+ name
1089
+ id
1090
+ groupName
1091
+ groupType
1092
+ }
1093
+ prices {
1094
+ usageLimit
1095
+ price {
1096
+ ...PriceFragment
1097
+ }
1098
+ }
1099
+ totalPrice {
1100
+ ...TotalPriceFragment
1101
+ }
1102
+ plan {
1103
+ id
1104
+ refId
1105
+ }
1106
+ addons {
1107
+ quantity
1108
+ addon {
1109
+ id
1110
+ refId
1111
+ }
1112
+ }
1113
+ customer {
1114
+ id
1115
+ refId
1116
+ }
1117
+ }
1118
+ `,t.YlF=r.default`
1119
+ fragment ProvisionCustomerFragment on ProvisionedCustomer {
1120
+ customer {
1121
+ ...SlimCustomerFragment
1122
+ }
1123
+ subscriptionDecisionStrategy
1124
+ subscription {
1125
+ ...SlimSubscriptionFragment
1126
+ }
1127
+ entitlements {
1128
+ ...EntitlementFragment
1129
+ }
1130
+ }
1131
+ `,t.Y92=r.default`
1132
+ fragment ApplySubscriptionFragment on ApplySubscription {
1133
+ subscription {
1134
+ ...SubscriptionFragment
1135
+ }
1136
+ entitlements {
1137
+ ...EntitlementFragment
1138
+ }
1139
+ }
1140
+ `,t.CjA=r.default`
1141
+ fragment ProvisionSubscriptionFragment on ProvisionSubscriptionResult {
1142
+ status
1143
+ checkoutUrl
1144
+ checkoutBillingId
1145
+ subscription {
1146
+ ...SlimSubscriptionFragment
1147
+ }
1148
+ entitlements {
1149
+ ...EntitlementFragment
1150
+ }
1151
+ }
1152
+ `,t.UK7=r.default`
1153
+ fragment ReportUsageFragment on UsageMeasurementWithCurrentUsage {
1154
+ id
1155
+ featureId
1156
+ customerId
1157
+ resourceId
1158
+ currentUsage
1159
+ nextResetDate
1160
+ timestamp
1113
1161
  }
1114
1162
  `,t.q6C=r.default`
1115
1163
  mutation ProvisionCustomer($input: ProvisionCustomerInput!) {
1116
1164
  provisionCustomer(input: $input) {
1117
- customer {
1118
- ...SlimCustomerFragment
1119
- }
1120
- subscriptionDecisionStrategy
1121
- subscription {
1122
- ...SlimSubscriptionFragment
1123
- }
1165
+ ...ProvisionCustomerFragment
1124
1166
  }
1125
1167
  }
1126
- ${t.bj8}
1168
+ ${t.YlF}
1169
+ ${t.bj8}
1127
1170
  ${t.bGH}
1128
1171
  ${t.FL0}
1129
1172
  ${t.OoB}
1130
1173
  ${t.wEB}
1131
1174
  ${t.Chb}
1132
- ${t.N9N}`,t.m76=r.default`
1175
+ ${t.N9N}
1176
+ ${t.cUI}
1177
+ ${t.JyR}
1178
+ ${t.o5f}`,t.m76=r.default`
1133
1179
  mutation ImportCustomerBulk($input: ImportCustomerBulk!) {
1134
1180
  importCustomersBulk(input: $input)
1135
1181
  }
@@ -1160,27 +1206,26 @@ ${t.N9N}`,t.m76=r.default`
1160
1206
  `,t.rDA=r.default`
1161
1207
  mutation ProvisionSubscription($input: ProvisionSubscriptionInput!) {
1162
1208
  provisionSubscription: provisionSubscriptionV2(input: $input) {
1163
- checkoutUrl
1164
- status
1165
- subscription {
1166
- ...SlimSubscriptionFragment
1167
- }
1209
+ ...ProvisionSubscriptionFragment
1168
1210
  }
1169
1211
  }
1170
- ${t.bGH}
1212
+ ${t.CjA}
1213
+ ${t.bGH}
1171
1214
  ${t.FL0}
1172
1215
  ${t.OoB}
1173
1216
  ${t.wEB}
1174
1217
  ${t.Chb}
1175
- ${t.N9N}`,t.Bkk=r.default`
1218
+ ${t.N9N}
1219
+ ${t.cUI}
1220
+ ${t.JyR}
1221
+ ${t.o5f}`,t.Bkk=r.default`
1176
1222
  mutation ApplySubscription($input: ApplySubscriptionInput!) {
1177
1223
  applySubscription(input: $input) {
1178
- subscription {
1179
- ...SubscriptionFragment
1180
- }
1224
+ ...ApplySubscriptionFragment
1181
1225
  }
1182
1226
  }
1183
- ${t.Ugm}
1227
+ ${t.Y92}
1228
+ ${t.Ugm}
1184
1229
  ${t.FL0}
1185
1230
  ${t.OoB}
1186
1231
  ${t.wEB}
@@ -1191,7 +1236,10 @@ ${t.cMT}
1191
1236
  ${t.RzF}
1192
1237
  ${t.d4U}
1193
1238
  ${t.J5K}
1194
- ${t.hvo}`,t.N5j=r.default`
1239
+ ${t.hvo}
1240
+ ${t.cUI}
1241
+ ${t.JyR}
1242
+ ${t.o5f}`,t.N5j=r.default`
1195
1243
  mutation ImportSubscriptionsBulk($input: ImportSubscriptionsBulk!) {
1196
1244
  importSubscriptionsBulk(input: $input)
1197
1245
  }
@@ -1242,15 +1290,18 @@ ${t.Eam}`,t.jAf=r.default`
1242
1290
  cancelSchedule(input: $input)
1243
1291
  }
1244
1292
  `,t.K5h=r.default`
1245
- mutation ReportUsage($input: UsageMeasurementCreateInput!) {
1246
- createUsageMeasurement(usageMeasurement: $input) {
1247
- id
1248
- currentUsage
1249
- nextResetDate
1250
- timestamp
1293
+ mutation ReportUsage($input: ReportUsageInput!) {
1294
+ reportUsage(input: $input) {
1295
+ ...ReportUsageFragment
1296
+ }
1297
+ }
1298
+ ${t.UK7}`,t.dO5=r.default`
1299
+ mutation ReportUsageBulk($input: ReportUsageBulkInput!) {
1300
+ reportUsageBulk(input: $input) {
1301
+ ...ReportUsageFragment
1251
1302
  }
1252
1303
  }
1253
- `,t.ZSL=r.default`
1304
+ ${t.UK7}`,t.ZSL=r.default`
1254
1305
  mutation ReportEvent($input: UsageEventsReportInput!) {
1255
1306
  reportEvent(events: $input)
1256
1307
  }
@@ -1510,5 +1561,5 @@ ${t.o5f}`,t.zBW=r.default`
1510
1561
  ...PackagePublishedPayload
1511
1562
  }
1512
1563
  }
1513
- ${t.ab2}`},5821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5695);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(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=[],o=0;o<n;++o)i.push(a(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(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)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5695:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},5217:(e,t,n)=>{"use strict";n.d(t,{Ye:()=>o,WU:()=>a,UG:()=>s});var r=n(5695);function i(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}i(a)},7392:(e,t,n)=>{"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var o=0;o<t.length&&i(t[o]);)++o;for(var a=t.length;a>o&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(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],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,LZ:()=>o})},143:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,T:()=>u});var r=n(9763),i=n(5821);function o(e,t){if(!Boolean(e))throw new Error(t)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e){var t=arguments.length>1&&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||o(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&a(t.prototype,n),e}();function u(e){return e instanceof s}},9763:(e,t,n)=>{"use strict";n.d(t,{YF:()=>r}),"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var r="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"2.24.6","description":"Stigg client-side SDK for Browser","main":"dist/index.js","typings":"dist/index.d.ts","repository":"https://github.com/stiggio/js-client-sdk.git","license":"MIT","scripts":{"start":"webpack serve","build:types":"tsc --emitDeclarationOnly","build":"yarn build:types && webpack","build:watch":"webpack --watch","build:prod":"yarn build:types && webpack --env production","fix":"run-s fix:*","fix:prettier":"prettier \\"src/**/*.ts\\" --write","fix:lint":"eslint src --ext .ts --fix","pretty-quick":"pretty-quick --staged --pattern \'**/*.*(js|jsx|ts|tsx)\'","test":"jest --silent","test:watch":"jest --watch","test:cov":"jest --coverage","prepare":"husky install","docs":"typedoc"},"files":["dist/**/*"],"dependencies":{"@apollo/client":"^3.4.17","@sentry/browser":"^7.11.1","@stigg/api-client-js":"0.703.0","cross-fetch":"^3.1.6","fetch-retry":"^5.0.6","husky":"^7.0.4","lint-staged":"^12.0.2","lodash":"^4.17.21","tiny-typed-emitter":"^2.1.0"},"devDependencies":{"@commitlint/cli":"^14.1.0","@commitlint/config-conventional":"^14.1.0","@mswjs/interceptors":"^0.19.2","@types/jest":"^27.0.2","@types/lodash":"^4.14.177","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^8.2.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","jest-fetch-mock":"^3.0.3","msw":"^0.35.0","npm-run-all":"^4.1.5","prettier":"^2.4.1","pretty-quick":"^3.1.3","ts-jest":"^27.0.7","ts-loader":"^9.2.6","typedoc":"^0.22.13","typedoc-plugin-rename-defaults":"^0.4.0","typescript":"^4.5.3","webpack":"^5.64.1","webpack-cli":"^4.9.1","webpack-dev-server":"^4.5.0"},"publishConfig":{"access":"public"},"lint-staged":{"*.{js,jsx,ts,tsx}":["prettier --check","eslint --cache"]}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(7583)})()}));
1564
+ ${t.ab2}`},5821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5695);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(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=[],o=0;o<n;++o)i.push(a(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(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)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5695:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},5217:(e,t,n)=>{"use strict";n.d(t,{Ye:()=>o,WU:()=>a,UG:()=>s});var r=n(5695);function i(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}i(a)},7392:(e,t,n)=>{"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var o=0;o<t.length&&i(t[o]);)++o;for(var a=t.length;a>o&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(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],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:()=>r,LZ:()=>o})},143:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,T:()=>u});var r=n(9763),i=n(5821);function o(e,t){if(!Boolean(e))throw new Error(t)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e){var t=arguments.length>1&&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||o(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||o(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||o(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&a(t.prototype,n),e}();function u(e){return e instanceof s}},9763:(e,t,n)=>{"use strict";n.d(t,{YF:()=>r}),"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var r="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@stigg/js-client-sdk","version":"3.0.0","description":"Stigg client-side SDK for Browser","main":"dist/index.js","typings":"dist/index.d.ts","repository":"https://github.com/stiggio/js-client-sdk.git","license":"MIT","scripts":{"start":"webpack serve","build:types":"tsc --emitDeclarationOnly","build":"yarn build:types && webpack","build:watch":"webpack --watch","build:prod":"yarn build:types && webpack --env production","fix":"run-s fix:*","fix:prettier":"prettier \\"src/**/*.ts\\" --write","fix:lint":"eslint src --ext .ts --fix","pretty-quick":"pretty-quick --staged --pattern \'**/*.*(js|jsx|ts|tsx)\'","test":"jest --silent","test:watch":"jest --watch","test:cov":"jest --coverage","prepare":"husky install","docs":"typedoc"},"files":["dist/**/*"],"dependencies":{"@apollo/client":"^3.4.17","@sentry/browser":"^7.11.1","@stigg/api-client-js":"1.2.0","cross-fetch":"^3.1.6","fetch-retry":"^5.0.6","husky":"^7.0.4","lint-staged":"^12.0.2","lodash":"^4.17.21","tiny-typed-emitter":"^2.1.0"},"devDependencies":{"@commitlint/cli":"^14.1.0","@commitlint/config-conventional":"^14.1.0","@mswjs/interceptors":"^0.19.2","@types/jest":"^27.0.2","@types/lodash":"^4.14.177","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","eslint":"^8.2.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","jest-fetch-mock":"^3.0.3","msw":"^0.35.0","npm-run-all":"^4.1.5","prettier":"^2.4.1","pretty-quick":"^3.1.3","ts-jest":"^27.0.7","ts-loader":"^9.2.6","typedoc":"^0.22.13","typedoc-plugin-rename-defaults":"^0.4.0","typescript":"^4.5.3","webpack":"^5.64.1","webpack-cli":"^4.9.1","webpack-dev-server":"^4.5.0"},"publishConfig":{"access":"public"},"lint-staged":{"*.{js,jsx,ts,tsx}":["prettier --check","eslint --cache"]}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(7583)})()}));
1514
1565
  //# sourceMappingURL=index.js.map