1!function(){"use strict";const e=!localStorage.getItem("_cf/__analyticsDebug"),t="__cf_clid",n="__cf_ssid",r="__cf_gdpr_accepted",i="country",o="_cf/__cfAnalyticsTestMode",a=()=>{const e=window.sessionStorage.getItem(n);if(e)return e;const t=((e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t})();return sessionStorage.setItem(n,t),t},s=["conversationId"],l={},u=()=>{const e=l[window.location.href];if(e)return e;let{search:t}=window.location;if(t){const e=new URLSearchParams(t);s.forEach(t=>{e.has(t)&&e.set(t,"__removed__")}),t=`?${e.toString()}`}return l[window.location.href]=`${window.location.origin}${window.location.pathname}${t}`,l[window.location.href]},c=navigator.userAgent||"",d=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(c.substr(0,4)),f=(()=>{try{return`${window.screen.availWidth}x${window.screen.availHeight}/${window.screen.width}x${window.screen.height}`}catch(e){return"Unknown"}})();var h=function(e,t){return h=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])},h(e,t)};function p(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}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return m=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},m.apply(this,arguments)};function y(e,t,n){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))}function g(e){return null!==e&&"object"==typeof e}function v(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}const b=e=>typeof window<"u"&&window.localStorage.getItem(`_cf/${e}`)||null;let k=class{constructor(e){this.eventsHandlers={},this.queue=[],this.syncTimeout=null,this.processQueue=e.processQueue,this.threshold=e.threshold??2,this.queueSize=e.queueSize??10,this.retryTimeout=e.retryTimeout??1e3,this.processTimeout=e.processTimeout??5e3,this.retryThreshold=e.retryThreshold??2,this.retries=this.threshold}process(e,t=this.retryThreshold){var n,r;if(e.length){if(this.retries<=0&&this.clear(),t<=0)return this.queue.push(...e),this.retries-=1,void(null==(r=(n=this.eventsHandlers).onReturnToQueue)||r.call(n));this.processQueue(e).then(()=>{var e,t;return null==(t=(e=this.eventsHandlers).onProcessed)?void 0:t.call(e,!1)}).catch(()=>{var n,r;null==(r=(n=this.eventsHandlers).onProcessed)||r.call(n,!0),setTimeout(()=>{var n,r;this.process(e,t-1),null==(r=(n=this.eventsHandlers).onRetry)||r.call(n)},this.retryTimeout)})}}clear(e=!0){var t,n;this.syncTimeout&&clearTimeout(this.syncTimeout),this.queue=[],e&&(this.retries=this.threshold),null==(n=(t=this.eventsHandlers).onClear)||n.call(t)}push(e,t){var n,r;if(!t)return this.syncTimeout&&clearTimeout(this.syncTimeout),this.queue.push(e),this.queue.length>=this.queueSize?(this.process(this.queue),this.clear(!1),void(null==(r=(n=this.eventsHandlers).onFilled)||r.call(n))):void(this.syncTimeout=window.setTimeout(()=>{var e,t;this.process(this.queue),this.clear(!1),null==(t=(e=this.eventsHandlers).onPassedToProcessor)||t.call(e)},this.processTimeout));this.process([e])}processRest(){this.process(this.queue),this.clear()}initEventHandlers(e){this.eventsHandlers=e??{}}};const w=(e,t)=>"function"==typeof navigator.sendBeacon&&(e.startsWith("https:")||e.startsWith("/")&&"https:"===window.document.location.protocol)?((e,t)=>
1new Promise((n,r)=>{navigator.sendBeacon(e,t)?n():r()}))(e,t):((e,t)=>new Promise((n,r)=>{fetch(e,{method:"POST",body:t}).then(e=>{200!==e.status?r():n()})}))(e,t),S=e=>"string"==typeof e,N=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},x=e=>null==e?"":""+e,E=/###/g,O=e=>e&&e.indexOf("###")>-1?e.replace(E,"."):e,T=e=>!e||S(e),_=(e,t,n)=>{const r=S(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(T(e))return{};const t=O(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return T(e)?{}:{obj:e,k:O(r[i])}},I=(e,t,n)=>{const{obj:r,k:i}=_(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=_(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=_(e,a,Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},D=(e,t)=>{const{obj:n,k:r}=_(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},A=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?S(e[r])||e[r]instanceof String||S(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):A(e[r],t[r],n):e[r]=t[r]);return e},C=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var F={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const $=e=>S(e)?e.replace(/[&<>"'\/]/g,e=>F[e]):e;const j=[" ",",","?","!",";"],L=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),M=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},R=e=>e?.replace(/_/g,"-"),P={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class V{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||P,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(S(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new V(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new V(this.logger,e)}}var B=new V;class U{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}}}class q extends U{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):S(n)&&i?a.push(...n.split(i)):a.push(n)));const s=D(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&S(n)?M(this.data?.[e]?.[t],n,i):s}addResource(e,t,n,r,i={silent:!1}){const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];
1n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),I(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(S(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i,o={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=D(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?A(s,n,i):s={...s,...n},I(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}};const W=Symbol("i18next/PATH_KEY");function H(e,t){const{[W]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>(n?.revoke?.(),i===W?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",i=t?.nsSeparator??":";if(n.length>1&&i){const e=t?.ns,o=Array.isArray(e)?e:null;if(o&&o.length>1&&o.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const Z={},J=e=>!S(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Y extends U{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=B.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const i=J(r.res);return!1!==n.returnObjects||!i}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=j.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const i=L.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:S(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:S(i)?[i]:i}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=H(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?H(e,{...this.options,...r}):String(e));const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===c?.toLowerCase())return d?i?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${u}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const f=this.resolve(e,r);let h=f?.res;const p=f?.usedKey||a,m=f?.exactUsedKey||a,y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!S(r.count),b=Y.hasDefaultValue(r),k=v?this.pluralResolver.getSuffix(c,r.count,r):"",w=r.ordinal&&v?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",N=v&&!r.ordinal&&0===r.count,x=N&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${k}`]||r[`defaultValue${w}`]||r.defaultValue;let E=h;g&&!h&&b&&(E=x);const O=J(E),T=Object.prototype.toString.apply(E);if(!(g&&E&&O&&["[object Number]","[object Function]","[object RegExp]"].indexOf(T)<0)||S(y)&&Array.isArray(E))if(g&&S(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,e,r,n));else{let t=!1,i=!1;!this.isValidLookup(h)&&b&&(t=!0,h=x),this.isValidLookup(h)||(i=!0,h=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:h,d=b&&x!==h&&this.options.updateMissing;if(i||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,l,a,d?x:h),o){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const i=b&&n!==h?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,i,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,i,d,r),this.emit
vendor: 4,843 bytes, line 1
1("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);N&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||x)})}):n(e,a,x))}h=this.extendTranslation(h,e,r,f,n),i&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}${u}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?h:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,E,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(o){const e=Array.isArray(E),t=e?[]:{},n=e?m:p;for(const e in E)if(Object.prototype.hasOwnProperty.call(E,e)){const i=`${n}${o}${e}`;t[e]=b&&!h?this.translate(i,{...r,defaultValue:J(x)?x[e]:void 0,joinArrays:!1,ns:s}):this.translate(i,{...r,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=E[e])}h=t}}return i?(f.res=h,f.usedParams=this.getUsedParamsDetails(r),f):h}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const o=S(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&!S(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),o){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,a=S(o)?[o]:o;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=z.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,o,a;return S(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?H(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!S(t.count),d=c&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(S(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(a=e,Z[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(Z[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(r=>{if(this.isValidLookup(n))return;o=r;const a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(i)&&a.push(l+e.replace(i,this.options.pluralSeparator)),a.push(l+e),d&&a.push(l+n)),f){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),c&&(t.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),a.push(r+e),d&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}
vendor: 8,436 bytes, line 1
1getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!S(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class G{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=B.create("languageUtils")}getScriptPartFromCode(e){if(!(e=R(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=R(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(S(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),S(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return S(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):S(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}const K={zero:0,one:1,two:2,few:3,many:4,other:5},Q={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class X{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=B.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=R("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Q;if(!e.match(/-|_/))return Q;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>K[e]-K[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const ee=(e,t,n,r=".",i=!0)=>{let o=((e,t,n)=>{const r=D(e,n);return void 0!==r?r:D(t,n)})(e,t,n);return!o&&i&&S(n)&&(o=M(e,n,r),void 0===o&&(o=M(t,n,r))),o},te=e=>e.replace(/\$/g,"$$$$");class ne{constructor(e={}){this.logger=B.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:g}=e.interpolation;this.escape=void 0!==t?t:$,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?C(i):o||"{{",this.suffix=a?C(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?C(d):f||C("$t("),this.nestingSuffix=h?C(h):p||C(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==g&&g,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=ee(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(ee(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const u=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>te(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?te(this.escape(e)):te(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof u){const t=u(e,i,r);o=S(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(c){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else S(o)||this.useRawValueToEscape||(o=x(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),c?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,o;const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${C(n)}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);((a?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...n},o=o.replace&&!S(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>
1e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),i=t(a.call(this,r[1].trim(),o),o),i&&r[0]===e&&!S(i))return i;S(i)||(i=x(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const re=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(R(r),i),t[a]=s),s(n)}},ie=e=>(t,n,r)=>e(R(n),r)(t);class oe{constructor(e={}){this.logger=B.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?re:ie;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=re(t)}format(e,t,n,r={}){const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(e=>e.indexOf(")")>-1)){const e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}const o=i.reduce((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r?.formatParams?.[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e);return o}}class ae extends U{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=B.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:i}=_(e,t,Object);r[i]=r[i]||[],r[i].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}
vendor: 4,324 bytes, line 1
1),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*i,o)},i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();S(e)&&(e=this.languageUtils.toResolveHierarchy(e)),S(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i,o={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const se=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),S(e[1])&&(t.defaultValue=e[1]),S(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),le=e=>(S(e.ns)&&(e.ns=[e.ns]),S(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),S(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),ue=()=>{},ce="__i18next_supportNoticeShown";class de extends U{constructor(e={},t){var n;if(super(),this.options=le(e),this.services={},this.logger=B,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(S(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=se();var r;this.options={...n,...this.options,...le(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation}
1,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(r=this,r?.modules?.backend?.name?.indexOf("Locize")>0||r?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||r?.options?.backend?.backends&&r.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||r?.options?.backend?.projectId||r?.options?.backend?.backendOptions&&r.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[ce]||"undefined"!=typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"undefined"!=typeof process&&process.env||("undefined"!=typeof console&&void 0!==console.info&&console.info("ð i18next is made possible by our own product, Locize â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com ð"),"undefined"!=typeof globalThis&&(globalThis[ce]=!0));const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?B.init(i(this.modules.logger),this.options):B.init(null,this.options),e=this.modules.formatter?this.modules.formatter:oe;const t=new G(this.options);this.store=new q(this.options.resources,this.options);const r=this.services;r.logger=B,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new X(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=i(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new ne(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new ae(i(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=i(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=i(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new Y(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=ue),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=N(),a=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),o}loadResources(e,t=ue){let n=t;const r=S(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
vendor: 11,116 bytes, line 1
1=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=N();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ue),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&z.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=N();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,o)=>{o?this.isLanguageChangingTo===e&&(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);const n=S(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(S(t)?[t]:t);o&&(this.language||r(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...i)=>{let o;o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t},o.lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||r.keyPrefix);const a={...this.options,...o};"function"==typeof o.keyPrefix&&(o.keyPrefix=H(o.keyPrefix,a));const s=this.options.keySeparator||".";let l;return o.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=H(e,a)),`${o.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=H(e,a)),l=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(l,o)};return S(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=N();return this.options.ns?(S(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=N();S(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new G(se());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new de(e,t);return n.createInstance=de.createInstance,n}cloneInstance(e={},t=ue){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new de(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));if(["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});i.store=new q(e,r),i.services.resourceStore=i.store}if(e.interpolation){const t={...se().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};i.services.interpolator=new ne(n)}return i.translator=new Y(i.services,r),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const fe=de.createInstance();fe.createInstance,fe.dir,fe.init,fe.loadResources,fe.reloadResources,fe.use,fe.changeLanguage,fe.getFixedT,fe.t,fe.exists,fe.setDefaultNamespace,fe.hasLoadedNamespace,fe.loadNamespaces,fe.loadLanguages;var he,pe,me={exports:{}},ye={};function ge(){if(he)return ye;he=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var b=v.prototype=new g;b.constructor=v,p(b,y.prototype),b.isPureReactComponent=!0;var k=Array.isArray;function w(){}var S={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function x(t,n,r){var i=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==i?i:null,props:r}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var O=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function _(n,r,i,o,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,u,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case c:return _((d=n._init)(n._payload),r,i,o,a)}}if(d)return a=a(n),d=""===o?"."+T(n,0):o,k(a)?(i="",null!=d&&(i=d.replace(O,"$&/")+"/"),_(a,r,i,"",function(e){return e})):null!=a&&(E(a)&&(l=a,u=i+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d,a=x(l.type,u,l.props)),r.push(a)),1;d=0;var h,p=""===o?".":o+":";if(k(n))for(var m=0;m<n.length;m++)d+=_(o=n[m],r,i,s=p+T(o,m),a);else if("function"==typeof(m=null===(h=n)||"object"!=typeof h?null:"function"==typeof(h=f&&h[f]||h["@@iterator"])?h:null))for(n=m.call(n),m=0;!(o=n.next()).done;)d+=_(o=o.value,r,i,s=p+T(o,m++),a);else if("object"===s){if("function"==typeof n.then)return _(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(w,w):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,i,o,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function I(e,t,n){if(null==e)return e;var r=[],i=0;return _(e,r,"","",function(e){return t.call(n,e,i++)}),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)}
1,C={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return ye.Activity=d,ye.Children=C,ye.Component=y,ye.Fragment=n,ye.Profiler=i,ye.PureComponent=v,ye.StrictMode=r,ye.Suspense=l,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,ye.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},ye.cache=function(e){return function(){return e.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=p({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)!N.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return x(e.type,i,r)},ye.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},ye.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)N.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return x(e,o,i)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(e){return{$$typeof:s,render:e}},ye.isValidElement=E,ye.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:D}},ye.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},ye.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),i=S.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(w,A)}catch(e){A(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},ye.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},ye.use=function(e){return S.H.use(e)},ye.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},ye.useCallback=function(e,t){return S.H.useCallback(e,t)},ye.useContext=function(e){return S.H.useContext(e)},ye.useDebugValue=function(){},ye.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},ye.useEffect=function(e,t){return S.H.useEffect(e,t)},ye.useEffectEvent=function(e){return S.H.useEffectEvent(e)},ye.useId=function(){return S.H.useId()},ye.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},ye.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},ye.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},ye.useMemo=function(e,t){return S.H.useMemo(e,t)},ye.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},ye.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},ye.useRef=function(e){return S.H.useRef(e)},ye.useState=function(e){return S.H.useState(e)},ye.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},ye.useTransition=function(){return S.H.useTransition()},ye.version="19.2.8",ye}var ve=(pe||(pe=1,me.exports=ge()),me.exports);function be(e){return be="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},be(e)}function ke(){return"function"==typeof XMLHttpRequest||"object"===(typeof XMLHttpRequest>"u"?"undefined":be(XMLHttpRequest))}var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne,xe,Ee={exports:{}},Oe={exports:{}};function Te(){return Ne||(Ne=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof we<"u"&&we,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){!function(t){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof n<"u"&&n,r="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,o="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],u=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(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 i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?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 p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function y(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=g(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):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(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?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=m(t);return t.readAsText(e),n}(this._bodyBlob);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)},a&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=c(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[c(e)]},h.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},h.prototype.set=function(e,t){this.map[c(e)]=d(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),f(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),f(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof k){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&null!=e._bodyInit&&(n=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 h(t.headers)),this.method=function(e){var t=e.toUpperCase();return b.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(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 S(e){var t=new h;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function N(e,t){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},v.call(k.prototype),v.call(N.prototype),N.prototype.clone=function(){return new N(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},N.error=function(){var e=new N(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];N.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new N(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{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 E(e,r){return new Promise(function(i,a){var l=new k(e,r);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var e={status:u.status,statusText:u.statusText,headers:S(u.getAllResponseHeaders()||"")};e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;setTimeout(function(){i(new N(t,e))},0)},u.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},u.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},u.open(l.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch{return e}}(l.url),!0),"include"===l.credentials?u.withCredentials=!0:"omit"===l.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?u.responseType="blob":s&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof h?l.headers.forEach(function(e,t){u.setRequestHeader(t,e)}):Object.getOwnPropertyNames(r.headers).forEach(function(e){u.setRequestHeader(e,d(r.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&l.signal.removeEventListener("abort",c)}),u.send(typeof l._bodyInit>"u"?null:l._bodyInit)})}E.polyfill=!0,n.fetch||(n.fetch=E,n.Headers=h,n.Request=k,n.Response=N),t.Headers=h,t.Request=k,t.Response=N,t.fetch=E}({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Oe,Oe.exports)),Oe.exports}var _e=(xe||(xe=1,function(e,t){var n="function"==typeof fetch?fetch:void 0;if(typeof we<"u"&&we.fetch?n=we.fetch:typeof window<"u"&&window.fetch&&(n=window.fetch),typeof window>"u"){var r=n||Te();r.default&&(r=r.default),t.default=r,e.exports=t.default}}
1(Ee,Ee.exports)),Ee.exports);const Ie=Se(_e);var De=Object.freeze({__proto__:null,default:Ie});function Ae(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 Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){Fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=$e(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){return $e="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},$e(e)}var je,Le,Me="function"==typeof fetch?fetch:void 0;typeof global<"u"&&global.fetch?Me=global.fetch:typeof window<"u"&&window.fetch&&(Me=window.fetch),ke()&&(typeof global<"u"&&global.XMLHttpRequest?je=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(je=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(typeof global<"u"&&global.ActiveXObject?Le=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Le=window.ActiveXObject)),!Me&&De&&!je&&!Le&&(Me=Ie||De),"function"!=typeof Me&&(Me=void 0);var Re=function(e,t){if(t&&"object"===$e(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},Pe=function(e,t,n,r){var i=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(r){var o=r(e,t);if(o instanceof Promise)return void o.then(i).catch(n)}"function"==typeof fetch?fetch(e,t).then(i).catch(n):Me(e,t).then(i).catch(n)},Ve=!1,Be=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Me&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=Re(t,e.queryStringParams));var i=Ce({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(i["Content-Type"]="application/json");var o="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=Ce({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:i},Ve?{}:o),s="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Pe(t,a,r,s)}catch(e){if(!o||0===Object.keys(o).length||!e.message||e.message.indexOf("not implemented")<0)return r(e);try{Object.keys(o).forEach(function(e){delete a[e]}),Pe(t,a,r,s),Ve=!0}catch(e){r(e)}}}(e,t,n,r):ke()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===$e(n)&&(n=Re("",n).slice(1)),e.queryStringParams&&(t=Re(t,e.queryStringParams));try{var i;(i=je?new je:new Le("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=e.customHeaders;if(o="function"==typeof o?o():o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(e){console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function Ue(e){return Ue="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},Ue(e)}function qe(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 ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?qe(Object(n),!0).forEach(function(t){He(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function We(e,t,n){return t&&function(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,Ze(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function He(e,t,n){return(t=Ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}var Je=We(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)},[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=ze(ze(ze({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return He({},t,n||"")},parseLoadPayload:function(e,t){},request:Be,reloadInterval:!(typeof window<"u")&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var i=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===Ue(i)&&"function"==typeof i.unref&&i.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,i){var o=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,n)),a=function(e){return function(e){return!!e&&"function"==typeof e.then}(e)?e:Promise.resolve(e)}(a),a.then(function(a){if(!a)return i(null,{});var s=o.services.interpolator.interpolate(a,{lng:e.join("+"),ns:n.join("+")});o.loadUrl(s,i,t,r)})}},{key:"loadUrl",value:function(e,t,n,r){var i=this,o="string"==typeof n?[n]:n,a="string"==typeof r?[r]:r,s=this.options.parseLoadPayload(o,a);this.options.request(this.options,e,s,function(o,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&o&&o.message){var s=o.message.toLowerCase(),l=["failed","fetch","network","load"].find(function(e){return s.indexOf(e)>-1});if(l)return t("failed loading "+e+": "+o.message,!0)}if(o)return t(o,!1);var u,c;try{u="string"==typeof a.data?i.options.parse(a.data,n,r):a.data}catch{c="failed parsing "+e+" to json"}if(c)return t(c,!1);t(null,u)})}},{key:"create",value:function(e,t,n,r,i){var o=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),s=0,l=[],u=[];e.forEach(function(n){var r=o.options.addPath;"function"==typeof o.options.addPath&&(r=o.options.addPath(n,t));var c=o.services.interpolator.interpolate(r,{lng:n,ns:t});o.options.request(o.options,c,a,function(t,n){s+=1,l.push(t),u.push(n),s===e.length&&"function"==typeof i&&i(l,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){a.indexOf(e)<0&&a.push(e)})};
1s(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),a.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(r,o){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)})})})}}}]);Je.type="backend";var 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 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}Ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ke=function(){return Ke=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},Ke.apply(this,arguments)};function Qe(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function Xe(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function et(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))}"function"==typeof SuppressedError&&SuppressedError;var tt="Invariant Violation",nt=Object.setPrototypeOf,rt=void 0===nt?function(e,t){return e.__proto__=t,e}:nt,it=function(e){function t(n){void 0===n&&(n=tt);var r=e.call(this,"number"==typeof n?tt+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=tt,rt(r,t.prototype),r}return Ge(t,e),t}(Error);function ot(e,t){if(!e)throw new it(t)}var at=["debug","log","warn","error","silent"],st=at.indexOf("log");function lt(e){return function(){if(at.indexOf(e)>=st)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=lt("debug"),e.log=lt("log"),e.warn=lt("warn"),e.error=lt("error")}(ot||(ot={}));var ut="3.14.0";function ct(e){try{return e()}catch(e){}}var dt=ct(function(){return globalThis})||ct(function(){return window})||ct(function(){return self})||ct(function(){return global})||ct(function(){return ct.constructor("return this")()}),ft=new Map;function ht(e,t){var n,r,i=(n="stringifyForDisplay",r=ft.get(n)||1,ft.set(n,r+1),"".concat(n,":").concat(r,":").concat(Math.random().toString(36).slice(2)));return JSON.stringify(e,function(e,t){return void 0===t?i:t},t).split(JSON.stringify(i)).join("<undefined>")}function pt(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=bt(i))||(t=kt(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var mt=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||ot(e,bt(t,n)||kt(t,n))},{debug:pt(ot.debug),log:pt(ot.log),warn:pt(ot.warn),error:pt(ot.error)});function yt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new it(bt(e,t)||kt(e,t))}var gt=Symbol.for("ApolloErrorMessageHandler_"+ut);function vt(e){if("string"==typeof e)return e;try{return ht(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function bt(e,t){if(void 0===t&&(t=[]),e)return dt[gt]&&dt[gt](e,t.map(vt))}function kt(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:ut,message:e,args:t.map(vt)})))}function wt(e,t){if(!Boolean(e))throw new Error(t)}const St={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},Nt=new Set(Object.keys(St));function xt(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Nt.has(t)}var Et,Ot;function Tt(e){return 9===e||32===e}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Et||(Et={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(Ot||(Ot={}));function _t(e){return It(e,[])}function It(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:It(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(It(e[r],t));1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`);return"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map(([e,n])=>e+": "+It(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Dt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function At(e){return Ct[e.charCodeAt(0)]}const Ct=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Ft=Object.freeze({});function $t(e,t,n=St){const r=new Map;for(const e of Object.values(Ot))r.set(e,jt(t,e));let i,o,a,s=Array.isArray(e),l=[e],u=-1,c=[],d=e;const f=[],h=[];do{u++;const e=u===l.length,g=e&&0!==c.length;if(e){if(o=0===h.length?void 0:f[f.length-1],d=a,a=h.pop(),g)if(s){d=d.slice();let e=0;for(const[t,n]of c){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of c)d[e]=t}u=i.index,l=i.keys,c=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:l[u],d=a[o],null==d)continue;f.push(o)}let v;if(!Array.isArray(d)){var p,m;xt(d)||wt(!1,`Invalid AST Node: ${_t(d)}.`);const n=e?null===(p=r.get(d.kind))||void 0===p?void 0:p.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(v=null==n?void 0:n.call(t,d,o,a,f,h),v===Ft)break;
1if(!1===v){if(!e){f.pop();continue}}else if(void 0!==v&&(c.push([o,v]),!e)){if(!xt(v)){f.pop();continue}d=v}}var y;if(void 0===v&&g&&c.push([o,d]),e)f.pop();else i={inArray:s,index:u,keys:l,edits:c,prev:i},s=Array.isArray(d),l=s?d:null!==(y=n[d.kind])&&void 0!==y?y:[],u=-1,c=[],a&&h.push(a),a=d}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function jt(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Lt(e){return $t(e,Mt)}const Mt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Rt(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Ut(e.variableDefinitions)?Vt("(\n",Rt(e.variableDefinitions,"\n"),"\n)"):Vt("(",Rt(e.variableDefinitions,", "),")"),n=Vt("",e.description,"\n")+Rt([e.operation,Rt([e.name,t]),Rt(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>Vt("",i,"\n")+e+": "+t+Vt(" = ",n)+Vt(" ",Rt(r," "))},SelectionSet:{leave:({selections:e})=>Pt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Vt("",e,": ")+t;let a=o+Vt("(",Rt(n,", "),")");return a.length>80&&(a=o+Vt("(\n",Bt(Rt(n,"\n")),"\n)")),Rt([a,Rt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Vt(" ",Rt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Rt(["...",Vt("on ",e),Rt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Vt("",o,"\n")+`fragment ${e}${Vt("(",Rt(n,", "),")")} `+`on ${t} ${Vt("",Rt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every(e=>0===e.length||Tt(e.charCodeAt(0))),o=t.endsWith('\\"""'),a=e.endsWith('"')&&!o,s=e.endsWith("\\"),l=a||s,u=!r||e.length>70||l||i||o;let c="";const d=r&&Tt(e.charCodeAt(0));return(u&&!d||i)&&(c+="\n"),c+=t,(u||l)&&(c+="\n"),'"""'+c+'"""'}(e):`"${e.replace(Dt,At)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Rt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Rt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Vt("(",Rt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Vt("",e,"\n")+Rt(["schema",Rt(t," "),Pt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Vt("",e,"\n")+Rt(["scalar",t,Rt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Vt("",e,"\n")+Rt(["type",t,Vt("implements ",Rt(n," & ")),Rt(r," "),Pt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Vt("",e,"\n")+t+(Ut(n)?Vt("(\n",Bt(Rt(n,"\n")),"\n)"):Vt("(",Rt(n,", "),")"))+": "+r+Vt(" ",Rt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Vt("",e,"\n")+Rt([t+": "+n,Vt("= ",r),Rt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Vt("",e,"\n")+Rt(["interface",t,Vt("implements ",Rt(n," & ")),Rt(r," "),Pt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Vt("",e,"\n")+Rt(["union",t,Rt(n," "),Vt("= ",Rt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Vt("",e,"\n")+Rt(["enum",t,Rt(n," "),Pt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Vt("",e,"\n")+Rt([t,Rt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Vt("",e,"\n")+Rt(["input",t,Rt(n," "),Pt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:o})=>Vt("",e,"\n")+"directive @"+t+(Ut(n)?Vt("(\n",Bt(Rt(n,"\n")),"\n)"):Vt("(",Rt(n,", "),")"))+Vt(" ",Rt(r," "))+(i?" repeatable":"")+" on "+Rt(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Rt(["extend schema",Rt(e," "),Pt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Rt(["extend scalar",e,Rt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Rt(["extend type",e,Vt("implements ",Rt(t," & ")),Rt(n," "),Pt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Rt(["extend interface",e,Vt("implements ",Rt(t," & ")),Rt(n," "),Pt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Rt(["extend union",e,Rt(t," "),Vt("= ",Rt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Rt(["extend enum",e,Rt(t," "),Pt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Rt(["extend input",e,Rt(t," "),Pt(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>Rt(["extend directive @"+e,Rt(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Rt([e,Vt(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>Rt([e,Vt(".",t),Vt("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>Rt(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Rt(["@",e,Vt("(",t,":)")])}};function Rt(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Pt(e){return Vt("{\n",Bt(Rt(e,"\n")),"\n}")}function Vt(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Bt(e){return Vt(" ",e.replace(/\n/g,"\n "))}function Ut(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}function qt(e,t,n){var r=new Set(e),i=r.size;return $t(t,{Directive:function(e){if(r.delete(e.name.value))return Ft}}),r.size<i}ct(function(){return navigator.product});var zt="function"==typeof Symbol&&"function"==typeof Symbol.for,Wt=zt&&Symbol.asyncIterator;function Ht(e){return null!==e&&"object"==typeof e}function Zt(){}ct(function(){return window.document.createElement}),ct(function(){return navigator.userAgent.indexOf("jsdom")>=0});class Jt{constructor(e=1/0,t=Zt){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);
1return 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)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const 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)}}function Yt(){}const Gt=Yt,Kt="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},Qt="undefined"!=typeof WeakMap?WeakMap:Map,Xt="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:Yt,unregister:Yt}};class en{constructor(e=1/0,t=Gt){this.max=e,this.dispose=t,this.map=new Qt,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new Kt(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Xt(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let 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.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var tn=new WeakSet;function nn(e){e.size<=(e.max||-1)||tn.has(e)||(tn.add(e),setTimeout(function(){e.clean(),tn.delete(e)},100))}var rn=function(e,t){var n=new en(e,t);return n.set=function(e,t){var n=en.prototype.set.call(this,e,t);return nn(this),n},n},on=function(e,t){var n=new Jt(e,t);return n.set=function(e,t){var n=Jt.prototype.set.call(this,e,t);return nn(this),n},n},an=Symbol.for("apollo.cacheSize"),sn=Ke({},dt[an]),ln={};function un(e,t){ln[e]=t}var cn,dn=Object.assign(function(e){return JSON.stringify(e,fn)},{reset:function(){cn=new on(sn.canonicalStringify||1e3)}});function fn(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(hn))return t;var i=JSON.stringify(r),o=cn.get(i);if(!o){r.sort();var a=JSON.stringify(r);o=cn.get(a)||r,cn.set(i,o),cn.set(a,o)}var s=Object.create(n);return o.forEach(function(e){s[e]=t[e]}),s}}return t}function hn(e,t,n){return 0===t||n[t-1]<=e}!1!==globalThis.__DEV__&&un("canonicalStringify",function(){return cn.size}),dn.reset();var pn=["connection","include","skip","client","rest","export","nonreactive"],mn=dn;function yn(e){return"Field"===e.kind}function gn(e){mt(e&&"Document"===e.kind,116);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw yt(117,e.kind);return e});return mt(t.length<=1,118,t.length),e}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]}),"".concat(n.connection.key,"(").concat(mn(i),")")}return n.connection.key}var o=e;if(t){var a=mn(t);o+="(".concat(a,")")}
1return n&&Object.keys(n).forEach(function(e){-1===pn.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(mn(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=mn;return mn=e,t}});let vn=null;const bn={};let kn=1;function wn(e){try{return e()}catch(e){}}const Sn="@wry/context:Slot",Nn=wn(()=>globalThis)||wn(()=>global)||Object.create(null),xn=Nn[Sn]||Array[Sn]||function(e){try{Object.defineProperty(Nn,Sn,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",kn++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=vn;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===bn)break;return e!==vn&&(vn.slots[this.id]=t),!0}return vn&&(vn.slots[this.id]=bn),!1}getValue(){if(this.hasValue())return vn.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=vn;vn={parent:o,slots:i};try{return t.apply(r,n)}finally{vn=o}}static bind(e){const t=vn;return function(){const n=vn;try{return vn=t,e.apply(this,arguments)}finally{vn=n}}}static noContext(e,t,n){if(!vn)return e.apply(n,t);{const r=vn;try{return vn=null,e.apply(n,t)}finally{vn=r}}}}),{bind:En,noContext:On}=xn;var Tn;new xn;var _n=Object.assign(function(e){var t=Tn.get(e);return t||(t=Lt(e),Tn.set(e,t)),t},{reset:function(){Tn=new rn(sn.print||2e3)}});_n.reset(),!1!==globalThis.__DEV__&&un("print",function(){return Tn?Tn.size:0});var In=Array.isArray;var Dn={kind:Ot.FIELD,name:{kind:Ot.NAME,value:"__typename"}};function An(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===Ot.FRAGMENT_SPREAD&&An(t[e.name.value],t)})}function Cn(e){return An(function(e){return gn(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}(e)||function(e){mt("Document"===e.kind,120),mt(e.definitions.length<=1,121);var t=e.definitions[0];return mt("FragmentDefinition"===t.kind,122),t}(e),function(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}(function(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}(e)))?null:e}function Fn(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function $n(e,t){gn(t);for(var n=Fn(""),r=Fn(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!In(i)){if(i.kind===Ot.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===Ot.FRAGMENT_DEFINITION)return r(i.name.value)}return!1!==globalThis.__DEV__&&mt.error(125),null},o=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===Ot.OPERATION_DEFINITION&&++o;
1var s,l,u,c=(s=e,l=new Map,u=new Map,s.forEach(function(e){e&&(e.name?l.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=l.get(e.name.value);return!t&&u.size&&u.forEach(function(n,r){r(e)&&(t=n)}),t}),d=function(e){return t=e,Array.isArray(t)&&t.length>0&&e.map(c).some(function(e){return e&&e.remove});var t},f=new Map,h=!1,p={enter:function(e){if(d(e.directives))return h=!0,null}},m=$t(t,{Field:p,InlineFragment:p,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(d(e.directives))return h=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){f.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===f.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every(function(e){return e.kind===Ot.FIELD&&"__typename"===e.name.value})?(r(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(c(e))return h=!0,null}}});if(!h)return t;var y=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){y(r(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},g=new Set;m.definitions.forEach(function(e){e.kind===Ot.OPERATION_DEFINITION?y(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){g.add(e)}):e.kind!==Ot.FRAGMENT_DEFINITION||0!==o||r(e.name.value).removed||g.add(e.name.value)}),g.forEach(function(e){y(r(e)).fragmentSpreads.forEach(function(e){g.add(e)})});var v={enter:function(e){if(t=e.name.value,!g.has(t)||r(t).removed)return null;var t}};return Cn($t(m,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=y(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return Ke(Ke({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}function jn(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)return;if("string"==typeof e)return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ln(e,t)}(e))||t){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.")}function Ln(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 Mn(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 Rn(e,t,n){return t&&Mn(e.prototype,t),n&&Mn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.assign(function(e){return $t(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==Ot.OPERATION_DEFINITION){var r=e.selections;if(r)if(!r.some(function(e){return yn(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=n;if(!(yn(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return Ke(Ke({},e),{selections:et(et([],r,!0),[Dn],!1)})}}}}})},{added:function(e){return e===Dn}});var Pn=function(){return"function"==typeof Symbol},Vn=function(e){return Pn()&&Boolean(Symbol[e])},Bn=function(e){return Vn(e)?Symbol[e]:"@@"+e};Pn()&&!Vn("observable")&&(Symbol.observable=Symbol("observable"));var Un=Bn("iterator"),qn=Bn("observable"),zn=Bn("species");function Wn(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Hn(e){var t=e.constructor;return void 0!==t&&null===(t=t[zn])&&(t=void 0),void 0!==t?t:nr}function Zn(e){return e instanceof nr}function Jn(e){Jn.log?Jn.log(e):setTimeout(function(){throw e})}function Yn(e){Promise.resolve().then(function(){try{e()}catch(e){Jn(e)}})}function Gn(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Wn(t,"unsubscribe");n&&n.call(t)}}catch(e){Jn(e)}}function Kn(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Qn(e,t,n){e._state="running";var r=e._observer;try{var i=Wn(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Kn(e),!i)throw n;i.call(r,n);break;case"complete":Kn(e),i&&i.call(r)}}catch(e){Jn(e)}"closed"===e._state?Gn(e):"running"===e._state&&(e._state="ready")}function Xn(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 Yn(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Qn(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void Qn(e,t,n);e._queue.push({type:t,value:n})}}var er=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new tr(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&&(Kn(this),Gn(this))},Rn(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),tr=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Xn(this._subscription,"next",e)},t.error=function(e){Xn(this._subscription,"error",e)},t.complete=function(){Xn(this._subscription,"complete")},Rn(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),nr=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 er(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(Hn(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(Hn(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=Hn(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),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=Hn(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=Hn(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()}
1return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[qn]=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=Wn(t,qn);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Zn(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Vn("iterator")&&(r=Wn(t,Un)))return new n(function(e){Yn(function(){if(!e.closed){for(var n,i=jn(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){Yn(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];return new("function"==typeof this?this:e)(function(e){Yn(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},Rn(e,null,[{key:zn,get:function(){return this}}]),e}();Pn()&&Object.defineProperty(nr,Symbol("extensions"),{value:{symbol:qn,hostReportError:Jn},configurable:!0}),function(e){var t,n=e.Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t="function"==typeof n.for?n.for("https://github.com/benlesh/symbol-observable"):n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch(e){}}else t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var rr=nr.prototype,ir="@@observable";function or(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function ar(e){return e&&"function"==typeof e.then}rr[ir]||(rr[ir]=function(){return this});var sr=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.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),or(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),n.notify("error",e),or(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?ar(i)?i.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),or(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new nr(t)]),ar(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))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(nr);function lr(e){return Ht(e)&&"payload"in e}function ur(e){return new nr(function(t){t.error(e)})}!function(e){function t(t){Object.defineProperty(e,t,{value:nr})}zt&&Symbol.species&&t(Symbol.species),t("@@species")}(sr);var cr=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};var dr=Symbol.for("apollo.deprecations"),fr=dt,hr=new xn;function pr(e,t){(function(e){return fr[dr]||(hr.getValue()||[]).includes(e)})(e)||t()}function mr(e,t){return t?t(e):nr.of()}function yr(e){return"function"==typeof e?new vr(e):e}function gr(e){return e.request.length<=1}var vr=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return nr.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(yr).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i,o=yr(n),a=yr(r||new e(mr));return i=gr(o)&&gr(a)?new e(function(e){return t(e)?o.request(e)||nr.of():a.request(e)||nr.of()}):new e(function(e,n){return t(e)?o.request(e,n)||nr.of():a.request(e,n)||nr.of()}),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var n=Ke({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=Ke(Ke({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Ke({},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?t.query.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||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 yt(58,i)}return e}(t))))||nr.of()},e.concat=function(t,n){var r=yr(t);if(gr(r))return!1!==globalThis.__DEV__&&mt.warn(47,r),r;var i,o=yr(n);return i=gr(o)?new e(function(e){return r.request(e,function(e){return o.request(e)||nr.of()})||nr.of()}):new e(function(e,t){return r.request(e,function(e){return o.request(e,t)||nr.of()})||nr.of()}),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(mr)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw yt(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&pr("onError",function(){!1!==globalThis.__DEV__&&mt.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&mt.warn(50),this.onError=e,this},e}();vr.empty,vr.from;var br=vr.split;function kr(e){var t=null,n=null,r=!1,i=[],o=[];
1function a(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,o.slice().forEach(function(t){t[1](e)}),!t||t()}function l(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return Wt&&(u[Symbol.asyncIterator]=function(){return this}),u}function wr(e){var t={next:function(){return e.read()}};return Wt&&(t[Symbol.asyncIterator]=function(){return this}),t}function Sr(e){var t,n,r,i=e;if(e.body&&(i=e.body),function(e){return!(!Wt||!e[Symbol.asyncIterator])}(i))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(i);if(function(e){return!!e.getReader}(i))return wr(i.getReader());if(function(e){return!!e.stream}(i))return wr(i.stream().getReader());if(function(e){return!!e.arrayBuffer}(i))return t=i.arrayBuffer(),n=!1,r={next:function(){return n?Promise.resolve({value:void 0,done:!0}):(n=!0,new Promise(function(e,n){t.then(function(t){e({value:t,done:!1})}).catch(n)}))}},Wt&&(r[Symbol.asyncIterator]=function(){return this}),r;if(function(e){return!!e.pipe}(i))return kr(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}vr.concat,vr.execute;var Nr=Symbol();!function(e){function t(n){var r,i,o=n.graphQLErrors,a=n.protocolErrors,s=n.clientErrors,l=n.networkError,u=n.errorMessage,c=n.extraInfo,d=e.call(this,u)||this;return d.name="ApolloError",d.graphQLErrors=o||[],d.protocolErrors=a||[],d.clientErrors=s||[],d.networkError=l||null,d.message=u||(i=et(et(et([],(r=d).graphQLErrors,!0),r.clientErrors,!0),r.protocolErrors,!0),r.networkError&&i.push(r.networkError),i.map(function(e){return Ht(e)&&e.message||"Error message not found."}).join("\n")),d.extraInfo=c,d.cause=et(et(et([l],o||[],!0),a||[],!0),s||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}Ge(t,e)}(Error);var xr=Object.prototype.hasOwnProperty;function Er(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}function Or(e,t){if(e.status>=300){cr(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var Tr=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=yt(54,t,e.message);throw r.parseError=e,r}return n},_r={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Ir=function(e,t){return t(e)};function Dr(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach(function(e){i=Ke(Ke(Ke({},i),e.options),{headers:Ke(Ke({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=Ke(Ke({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var n={};
1return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,l=e.variables,u=e.query,c={operationName:a,variables:l};return o.includeExtensions&&(c.extensions=s),o.includeQuery&&(c.query=t(u,_n)),{options:i,body:c}}var Ar=ct(function(){return fetch}),Cr=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?Ir:i,a=e.includeExtensions,s=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,c=void 0!==u&&u,d=function(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}(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw yt(51)}(r||Ar);var f={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new vr(function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),a={};if(i.clientAwareness){var s=i.clientAwareness,u=s.name,d=s.version;u&&(a["apollographql-client-name"]=u),d&&(a["apollographql-client-version"]=d)}var h=Ke(Ke({},a),i.headers),p={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h};if(qt(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&mt.warn(52);var m=function(e){return gn(e),$n([{test:function(e){return"client"===e.name.value},remove:!0}],e)}(e.query);if(!m)return ur(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var y,g,v,b,k,w=Dr(e,o,_r,f,p),S=w.options,N=w.body;N.variables&&!c&&(N.variables=(y=N.variables,g=e.query,v=Ke({},y),b=new Set(Object.keys(y)),$t(g,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.forEach(function(e){delete v[e]}),v)),S.signal||"undefined"==typeof AbortController||(k=new AbortController,S.signal=k.signal);var x=function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}(function(e){var t;gn(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 yt(123)}(e.query)),E=qt(["defer"],e.query);if(l&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(S.method="GET"),E||x){S.headers=S.headers||{};var O="multipart/mixed;";x&&E&&!1!==globalThis.__DEV__&&mt.warn(53),x?O+="boundary=graphql;subscriptionSpec=1.0,application/json":E&&(O+="deferSpec=20220824,application/json"),S.headers.accept=O}if("GET"===S.method){var T=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Tr(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Tr(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+a}}(t,N),_=T.newURI,I=T.parseError;if(I)return ur(I);t=_}else try{S.body=Tr(N,"Payload")}catch(I){return ur(I)}return new nr(function(n){var i=r||ct(function(){return fetch})||Ar,o=n.next.bind(n);return i(t,S).then(function(t){var n;e.setContext({response:t});var r,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return Qe(this,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,f,h,p,m,y,g,v,b,k,w,S,N,x,E;return Xe(this,function(O){switch(O.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(E=e.headers)||void 0===E?void 0:E.get("content-type"),i="boundary=",o=(null==r?void 0:r.includes(i))?null==r?void 0:r.substring((null==r?void 0:r.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",l=Sr(e),u=!0,O.label=1;case 1:return u?[4,l.next()]:[3,3];case 2:for(c=O.sent(),d=c.value,f=c.done,h="string"==typeof d?d:n.decode(d),p=s.length-a.length+1,u=!f,m=(s+=h).indexOf(a,p);m>-1;){if(y=void 0,N=[s.slice(0,m),s.slice(m+a.length)],s=N[1],g=(y=N[0]).indexOf("\r\n\r\n"),v=Er(y.slice(0,g)),(b=v["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");
1if(k=y.slice(g))if(w=Or(e,k),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if(lr(w)){if(S={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];S=Ke({},w.payload)}"errors"in w&&(S=Ke(Ke({},S),{extensions:Ke(Ke({},"extensions"in S?S.extensions:null),(x={},x[Nr]=w.errors,x))})),t(S)}else t(w);else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2];m=s.indexOf(a)}return[3,1];case 3:return[2]}})})}(t,o):(r=e,function(e){return e.text().then(function(t){return Or(e,t)}).then(function(t){return Array.isArray(t)||xr.call(t,"data")||xr.call(t,"errors")||cr(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map(function(e){return e.operationName}):r.operationName,"'.")),t})})(t).then(o)}).then(function(){k=void 0,n.complete()}).catch(function(e){k=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)}),function(){k&&k.abort()}})})},Fr=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Cr(t).request)||this;return n.options=t,n}return Ge(t,e),t}(vr);const $r={"\n mutation BotAbExperimentMutation(\n $experimentId: ABExperimentID!\n $botId: BotID!\n ) {\n abExperimentBucketGetByBot(experimentID: $experimentId, botID: $botId) {\n __typename\n ... on ABExperimentAssignedBucketFound {\n id\n }\n ... on ABExperimentAssignedBucketNull {\n fakeField\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BotAbExperimentMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"experimentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBucketGetByBot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"experimentID"},value:{kind:"Variable",name:{kind:"Name",value:"experimentId"}}},{kind:"Argument",name:{kind:"Name",value:"botID"},value:{kind:"Variable",name:{kind:"Name",value:"botId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketNull"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}}]}}]}}]},"\n mutation UserAbExperimentMutation($experimentId: ABExperimentID!) {\n abExperimentBucketGetByUser(experimentID: $experimentId) {\n __typename\n ... on ABExperimentAssignedBucketFound {\n id\n }\n ... on ABExperimentAssignedBucketNull {\n fakeField\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UserAbExperimentMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"experimentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBucketGetByUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"experimentID"},value:{kind:"Variable",name:{kind:"Name",value:"experimentId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketNull"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}}]}}]}}]},"\n mutation BookingAssignTestBucketMutation {\n abExperimentBookingAssignTestBucket {\n __typename\n ... on ABExperimentAssignedBucketFound {\n id\n }\n ... on ABExperimentAssignedBucketNull {\n fakeField\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BookingAssignTestBucketMutation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBookingAssignTestBucket"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketNull"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}}]}}]}}]},"\n mutation AbExperimentBookingAssignControlBucket {\n abExperimentBookingAssignControlBucket {\n ... on ABExperimentAssignedBucketFound {\n id\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AbExperimentBookingAssignControlBucket"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"abExperimentBookingAssignControlBucket"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ABExperimentAssignedBucketFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},"\n fragment BotAttributeNameAliasFragment on BotAttribute {\n name\n al
1iases {\n locale\n alias\n }\n dataType\n type\n }\n":{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BotAttributeNameAliasFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BotAttribute"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"aliases"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locale"}},{kind:"Field",name:{kind:"Name",value:"alias"}}]}},{kind:"Field",name:{kind:"Name",value:"dataType"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]},"\n query BotAttributes(\n $botID: BotID!\n $inputSubstring: String\n $first: Int\n $after: BotAttributeCursor\n $locale: DashboardLocale!\n $platforms: [Platform!]!\n $attributeTypes: [AttributeType!]!\n $filters: [BotAttributeFilter!]!\n $orderBy: BotAttributeOrderByInput!\n ) {\n bot(id: $botID) {\n id\n botAttributes(\n first: $first\n after: $after\n inputSubstring: $inputSubstring\n locale: $locale\n platforms: $platforms\n attributeTypes: $attributeTypes\n filters: $filters\n orderBy: $orderBy\n ) {\n edges {\n node {\n botAttribute {\n ...BotAttributeNameAliasFragment\n dataType\n }\n usersCount\n defaultValue\n flowsCount\n }\n # cursor\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BotAttributes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputSubstring"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"BotAttributeCursor"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DashboardLocale"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"platforms"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Platform"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attributeTypes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AttributeType"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filters"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotAttributeFilter"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotAttributeOrderByInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"botID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"botAttributes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"inputSubstring"},value:{kind:"Variable",name:{kind:"Name",value:"inputSubstring"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}},{kind:"Argument",name:{kind:"Name",value:"platforms"},value:{kind:"Variable",name:{kind:"Name",value:"platforms"}}},{kind:"Argument",name:{kind:"Name",value:"attributeTypes"},value:{kind:"Variable",name:{kind:"Name",value:"attributeTypes"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"filters"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"botAttribute"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BotAttributeNameAliasFragment"}},{kind:"Field",name:{kind:"Name",value:"dataType"}}]}},{kind:"Field",name:{kind:"Name",value:"usersCount"}},{kind:"Field",name:{kind:"Name",value:"defaultValue"}},{kind:"Field",name:{kind:"Name",value:"flowsCount"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"hasPreviousPage"}},{kind:"Field",name:{kind:"Name",value:"startCursor"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"BotAttributeNameAliasFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BotAttribute"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"aliases"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locale"}},{kind:"Field",name:{kind:"Name",value:"alias"}}]}},{kind:"Field",name:{kind:"Name",value:"dataType"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]},"\n fragment WhatsAppPhoneContactScopeForWabaStatus on WhatsAppPhoneContactScope {\n id\n phone {\n id\n isConnectedToBot\n verifiedName\n messagingStatus {\n ... on WhatsAppPhoneMessagingStatusAvailable {\n fakeField\n }\n ... on WhatsAppPhoneMessagingStatusLimited {\n reasons\n }\n ... on WhatsAppPhoneMessagingStatusBlocked {\n reasons\n }\n }\n whatsAppBusinessAccount {\n id\n messagingStatus {\n ... on WhatsAppBusinessAccountMessagingStatusAvailable {\n fakeField\n }\n ... on WhatsAppBusinessAccountMessagingStatusLimited {\n reasons\n }\n ... on WhatsAppBusinessAccountMessagingStatusBlocked {\n reasons\n }\n }\n facebookBusiness {\n id\n verificationStatus\n verificationSubmission {\n id\n status\n attemptsLeft\n successNotificationRead\n }\n messagingStatus {\n ... on FacebookBusinessMessagingStatusAvailable {\n fakeField\n }\n ... on FacebookBusinessMessagingStatusLimited {\n reasons\n }\n ... on FacebookBusinessMessagingStatusBlocked {\n reasons\n }\n }\n }\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"WhatsAppPhoneContactScopeForWabaStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneContactScope"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"phone"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isConnectedToBot"}},{kind:"Field",name:{kind:"Name",value:"verifiedName"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"whatsAppBusinessAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"facebookBusiness"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"verificationStatus"}},{kind:"Field",name:{kind:"Name",value:"verificationSubmission"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"attemptsLeft"}},{kind:"Field",name:{kind:"Name",value:"successNotificationRead"}}]}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}}]}}]}}]}}]}}]},"\n query ConnectedWabaStatusQuery($botId: BotID!) {\n bot(id: $botId) {\n id\n contactScopes {\n id\n ...WhatsAppPhoneContactScopeForWabaStatus\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ConnectedWabaStatusQuery"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"botId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"contactScopes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"WhatsAppPhoneContactScopeForWabaStatus"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"WhatsAppPhoneContactScopeForWabaStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneContactScope"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"phone"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isConnectedToBot"}},{kind:"Field",name:{kind:"Name",value:"verifiedName"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppPhoneMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"whatsAppBusinessAccount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WhatsAppBusinessAccountMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"facebookBusiness"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"verificationStatus"}},{kind:"Field",name:{kind:"Name",value:"verificationSubmission"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"attemptsLeft"}},{kind:"Field",name:{kind:"Name",value:"successNotificationRead"}}]}},{kind:"Field",name:{kind:"Name",value:"messagingStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusAvailable"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fakeField"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusLimited"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FacebookBusinessMessagingStatusBlocked"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reasons"}}]}}]}}]}}]}}]}}]}}]},"\n query BotFeatureQuery($featureID: ToggleName!, $botID: BotID!) {\n bot(id: $botID) {\n id\n feature(id: $featureID) {\n name\n enabled\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BotFeatureQuery"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"featureID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ToggleName"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bot"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"botID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"feature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"featureID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]}}]},"\n query UserFeatureQuery($featureID: ToggleName!) {\n currentUser {\n id\n feature(id: $featureID) {\n name\n enabled\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserFeatureQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"featureID"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ToggleName"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"feature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"featureID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]}}]},"\n query CurrentUserLocale {\n currentUser {\n id\n dashboardLocale\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentUserLocale"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"dashboardLocale"}}]}}]}}]},"\n query BackendTranslation($key: String!, $locale: DashboardLocale!) {\n translation(key: $key, locale: $locale)\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BackendTranslation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DashboardLocale"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"translation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}},{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}]}]}}]},"\n query UserStorageItemQuery($userStorageItemId: ID!) {\n currentUser {\n id\n userStorageItem(id: $userStorageItemId) {\n id\n value\n }\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserStorageItemQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userStorageItemId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"userStorageItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"userStorageItemId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]},"\n mutation SetUserStorageItemMutation(\n $setUserStorageItemId: ID!\n $value: String!\n ) {\n setUserStorageItem(id: $setUserStorageItemId, value: $value) {\n id\n value\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetUserStorageItemMutation"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"setUserStorageItemId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setUserStorageItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"setUserStorageItemId"}}},{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]},"\n mutation DeleteUserStorageItemMutation($deleteUserStorageItemId: ID!) {\n deleteUserStorageItem(id: $deleteUserStorageItemId) {\n id\n value\n }\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteUserStorageItemMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"deleteUserStorageItemId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteUserStorageItem"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"deleteUserStorageItemId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]},"\n mutation WhatsAppBusinessPaymentMethodCheck(\n $botId: BotID!\n $wabaId: WhatsappBusinessAccountID!\n ) {\n whatsAppBusinessPaymentMethodCheck(botID: $botId, wabaID: $wabaId)\n }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"WhatsAppBusinessPaymentMethodCheck"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"botId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BotID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wabaId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"WhatsappBusinessAccountID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"whatsAppBusinessPaymentMethodCheck"},arguments:[{kind:"Argument",name:{kind:"Name",value:"botID"},value:{kind:"Variable",name:{kind:"Name",value:"botId"}}},{kind:"Argument",name:{kind:"Name",value:"wabaID"},value:{kind:"Variable",name:{kind:"Name",value:"wabaId"}}}]}]}}]}};function jr(e){return $r[e]??{}}jr("\n query UserStorageItemQuery($userStorageItemId: ID!) {\n currentUser {\n id\n userStorageItem(id: $userStorageItemId) {\n id\n value\n }\n }\n }\n"),jr("\n mutation SetUserStorageItemMutation(\n $setUserStorageItemId: ID!\n $value: String!\n ) {\n setUserStorageItem(id: $setUserStorageItemId, value: $value) {\n id\n value\n }\n }\n"),jr("\n mutation DeleteUserStorageItemMutation($deleteUserStorageItemId: ID!) {\n deleteUserStorageItem(id: $deleteUserStorageItemId) {\n id\n value\n }\n }\n");const Lr="chatfuel.com",Mr=[Lr,"chatfuel.space","chatfuel.test"],Rr=["wl.chatfuel.com","wl.chatfuel.space"],Pr=e=>{if(Rr.includes(e))return!0;const t=e.split(".").slice(-2).join(".");return"localhost"!==t&&!Mr.includes(t)},Vr=(e=2)=>{const{hostname:t}=typeof window<"u"?window.location:{hostname:"",port:"",protocol:""};return Pr(t)?t:t.split(".").slice(-1*e).join(".")},Br="_cf_auth_token",Ur=["panel","onboarding"],qr=["dashboard","panel","onboarding"],zr=()=>typeof window<"u"&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname);let Wr=null;const Hr=()=>{if(typeof window>"u")return Br;if(null!==Wr)return Wr;const{hostname:e}=window.location,t=e.endsWith(".chatfuel.space")?e.split(".")[0].split("-").pop():null;return Wr=t?`${Br}__${t}`:Br,Wr},Zr={set(e,t){if(!(()=>
1{if(typeof window>"u")return!1;const{hostname:e}=window.location;if(zr()||e.endsWith(".chatfuel.space"))return!0;const t=e.split(".").length>2?e.split(".")[0]:null;return!!t&&(e.endsWith(".chatfuel.test")?qr:Ur).includes(t)})())return;const n=new Date(Date.now()+t),r=Vr(),i=typeof window<"u"&&"https:"===window.location.protocol;document.cookie=[`${Hr()}=${encodeURIComponent(e)}`,"path=/",zr()?"":`domain=.${r}`,`expires=${n.toUTCString()}`,"SameSite=Lax",i?"Secure":""].filter(Boolean).join("; ")},get(){const e=document.cookie.match(new RegExp(`(?:^|; )${Hr().replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")}=([^;]*)`));return e?decodeURIComponent(e[1]):null},delete(){const e=Vr(),t=zr()?"":`; domain=.${e}`;document.cookie=`${Hr()}=""; path=/${t}; max-age=-1`}},Jr=()=>Zr.get();var Yr=(e=>(e.error="error",e.warn="warn",e.info="info",e.log="log",e.dir="dir",e))(Yr||{});const Gr=Object.keys(Yr),Kr=e=>{switch(e){case"error":return"error";case"warn":return"warn";case"info":return"info";default:return"debug"}},Qr=e=>"object"==typeof e&&null!==e&&"name"in e&&"message"in e&&("string"==typeof e.name&&"string"==typeof e.message);let Xr=!1;const ei=new k({processQueue:e=>{var t,n,r,i,o,a;const s={clid:null==(n=null==(t=window.__cf_awesome_analytics)?void 0:t.getClid)?void 0:n.call(t),ssid:null==(i=null==(r=window.__cf_awesome_analytics)?void 0:r.getSsid)?void 0:i.call(r),userId:null==(a=null==(o=window.__cf_awesome_analytics)?void 0:o.getUserId)?void 0:a.call(o),url:window.location.href,ua:window.navigator.userAgent},l={type:"fe-log",payload:e.map(e=>({msg:e.msg,timestamp:e.timestamp,level:e.level,data:Qr(e.data)?{stack:e.data.stack,name:e.data.name,message:e.data.message,ctx:s}:{content:e.data,ctx:s}}))};return Xr?Promise.resolve():w("/api/in-house-service/logs",JSON.stringify(l))}});typeof window<"u"&&(window.addEventListener("offline",()=>{Xr=!0}),window.addEventListener("online",()=>{Xr=!1,ei.processRest()}
1));const ti=Gr.reduce((e,t)=>("dir"===t?e.dir=(...e)=>{console.log(...e)}:e[t]=(...e)=>((e,t,n,r)=>{(0,window.console[e])(...[t,Qr(n)?n:JSON.stringify(n)].filter(Boolean)),e!==Yr.dir&&!r&&ei.push({timestamp:Date.now(),data:n,msg:t,level:Kr(e)})})(t,...e),e),{});let ni=null;const ri=()=>{var e,t;return ni||(ni={"X-Device-ID":(null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e.getClid)?void 0:t.call(e))||"","X-Device-Platform":"web","X-Device-Name":navigator.userAgent},ni)};var ii,oi;!function(){if(oi)return ii;oi=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,i=parseInt,o="object"==typeof we&&we&&we.Object===Object&&we,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=Object.prototype.toString,u=Math.max,c=Math.min,d=function(){return s.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(o){if("number"==typeof o)return o;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(o))return NaN;if(f(o)){var a="function"==typeof o.valueOf?o.valueOf():o;o=f(a)?a+"":a}if("string"!=typeof o)return 0===o?o:+o;o=o.replace(e,"");var s=n.test(o);return s||r.test(o)?i(o.slice(2),s?2:8):t.test(o)?NaN:+o}ii=function(e,t,n){var r,i,o,a,s,l,p=0,m=!1,y=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,o=i;return r=i=void 0,p=t,a=e.apply(o,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||y&&e-p>=o}function k(){var e=d();if(b(e))return w(e);s=setTimeout(k,function(e){var n=t-(e-l);return y?c(n,o-(e-p)):n}(e))}function w(e){return s=void 0,g&&r?v(e):(r=i=void 0,a)}function S(){var e=d(),n=b(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return p=e,s=setTimeout(k,t),m?v(e):a}(l);if(y)return s=setTimeout(k,t),v(l)}return void 0===s&&(s=setTimeout(k,t)),a}return t=h(t)||0,f(n)&&(m=!!n.leading,o=(y="maxWait"in n)?u(h(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==s&&clearTimeout(s),p=0,r=l=i=s=void 0},S.flush=function(){return void 0===s?a:w(d())},S}}(),jr("\n fragment BotAttributeNameAliasFragment on BotAttribute {\n name\n aliases {\n locale\n alias\n }\n dataType\n type\n }\n"),jr("\n query BotAttributes(\n $botID: BotID!\n $inputSubstring: String\n $first: Int\n $after: BotAttributeCursor\n $locale: DashboardLocale!\n $platforms: [Platform!]!\n $attributeTypes: [AttributeType!]!\n $filters: [BotAttributeFilter!]!\n $orderBy: BotAttributeOrderByInput!\n ) {\n bot(id: $botID) {\n id\n botAttributes(\n first: $first\n after: $after\n inputSubstring: $inputSubstring\n locale: $locale\n platforms: $platforms\n attributeTypes: $attributeTypes\n filters: $filters\n orderBy: $orderBy\n ) {\n edges {\n node {\n botAttribute {\n ...BotAttributeNameAliasFragment\n dataType\n }\n usersCount\n defaultValue\n flowsCount\n }\n # cursor\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n");var ai,si,li={exports:{}},ui={};var ci=(si||(si=1,li.exports=function(){if(ai)return ui;ai=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:i,ref:void 0!==n?n:null,props:r}}return ui.Fragment=t,ui.jsx=n,ui.jsxs=n,ui}()),li.exports),di=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,fi=/^[\\/]{2}/;function hi(e,t){if(!1===e||null==e)throw new Error(t)}function pi(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function mi({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"
1===n.charAt(0)?n:"#"+n),e}function yi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function gi(e,t,n="/"){return function(e,t,n,r){let i="string"==typeof t?yi(t):t,o=Ci(i.pathname||"/",n);if(null==o)return null;let a=function(e){let t=vi(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}(e),s=null,l=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return pi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}(o);for(let e=0;null==s&&e<a.length;++e)s=_i(a[e],l,r);return s}(e,t,n,!1)}function vi(e,t=[],n=[],r="",i=!1){let o=(e,o,a=i,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;hi(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let u=Ri([r,l.relativePath]),c=n.concat(l);e.children&&e.children.length>0&&(hi(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),vi(e.children,t,c,u,a)),(null!=e.path||e.index)&&t.push({path:u,score:Ti(u,e.index),routesMeta:c.map((e,t)=>{let[n,r]=Ai(e.relativePath,e.caseSensitive,t===c.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of bi(e.path))o(e,t,!0,n);else o(e,t)}),t}function bi(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=bi(r.join("/")),s=[];return s.push(...a.map(e=>""===e?o:[o,e].join("/"))),i&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var ki=/^:[\w-]+$/,wi=3,Si=2,Ni=1,xi=10,Ei=-2,Oi=e=>"*"===e;function Ti(e,t){let n=e.split("/"),r=n.length;return n.some(Oi)&&(r+=Ei),t&&(r+=Si),n.filter(e=>!Oi(e)).reduce((e,t)=>e+(ki.test(t)?wi:""===t?Ni:xi),r)}function _i(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c={path:s.relativePath,caseSensitive:s.caseSensitive,end:l},d=s.matcher&&s.compiledParams?Di(c,u,s.matcher,s.compiledParams):Ii(c,u),f=s.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=Ii({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!d)return null;
1Object.assign(i,d.params),a.push({params:i,pathname:Ri([o,d.pathname]),pathnameBase:Vi(Ri([o,d.pathnameBase])),route:f}),"/"!==d.pathnameBase&&(o=Ri([o,d.pathnameBase]))}return a}function Ii(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ai(e.path,e.caseSensitive,e.end);return Di(e,t,n,r)}function Di(e,t,n,r){let i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}function Ai(e,t=!1,n=!0){pi("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Ci(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Fi(e,t){let n=Pi(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function $i(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ji(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Li(e,t,n,r=!1){let i;"string"==typeof e?i=yi(e):(i={...e},hi(!i.pathname||!i.pathname.includes("?"),$i("?","pathname","search",i)),hi(!i.pathname||!i.pathname.includes("#"),$i("#","pathname","hash",i)),hi(!i.search||!i.search.includes("#"),$i("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?yi(e):e;return r?(r=Mi(r),n=r.startsWith("/")?Fi(r.substring(1),"/"):Fi(r,t)):n=t,{pathname:n,search:Bi(i),hash:Ui(o)}}(i,o),u=s&&"/"!==s&&s.endsWith("/"),c=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}var Mi=e=>e.replace(/[\\/]{2,}/g,"/"),Ri=e=>Mi(e.join("/")),Pi=e=>e.replace(/\/+$/,""),Vi=e=>Pi(e).replace(/^\/*/,"/"),Bi=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Ui=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",qi=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function zi(e){let t=e.map(e=>e.route.path).filter(Boolean);return Ri(t)||"/"}var Wi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Hi(e,t){let n=e;if("string"!=typeof n||!di.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Wi)try{let e=new URL(window.location.href),r=fi.test(n)?new URL((o=n,e.protocol+o.replace(/\\/g,"/"))):new URL(n),a=Ci(r.pathname,t);r.origin===e.origin&&null!=a?n=a+r.search+r.hash:i=!0}catch(e){pi(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}var o;return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Zi=["POST","PUT","PATCH","DELETE"];new Set(Zi);var Ji=["GET",...Zi];new Set(Ji);var Yi=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];var Gi=ve.createContext(null);Gi.displayName="DataRouter";var Ki=ve.createContext(null);Ki.displayName="DataRouterState";var Qi=ve.createContext(!1);var Xi=ve.createContext({isTransitioning:!1});Xi.displayName="ViewTransition",ve.createContext(new Map).displayName="Fetchers",ve.createContext(null).displayName="Await";var eo=ve.createContext(null);eo.displayName="Navigation";var to=ve.createContext(null);to.displayName="Location";var no=ve.createContext({outlet:null,matches:[],isDataRoute:!1});no.displayName="Route";var ro=ve.createContext(null);ro.displayName="RouteError";var io="REACT_ROUTER_ERROR";function oo(){return null!=ve.useContext(to)}function ao(){return hi(oo(),"useLocation() may be used only in the context of a <Router> component."),ve.useContext(to).location}var so="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lo(e){ve.useContext(eo).static||ve.useLayoutEffect(e)}function uo(){let{isDataRoute:e}=ve.useContext(no);return e?function(){let{router:e}=function(e){let t=ve.useContext(Gi);return hi(t,bo(e)),t}("useNavigate"),t=ko("useNavigate"),n=ve.useRef(!1);return lo(()=>{n.current=!0}),ve.useCallback(async(r,i={})=>{pi(n.current,so),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}():function(){hi(oo(),"useNavigate() may be used only in the context of a <Router> component.");let e=ve.useContext(Gi),{basename:t,navigator:n}=ve.useContext(eo),{matches:r}=ve.useContext(no),{pathname:i}=ao(),o=JSON.stringify(ji(r)),a=ve.useRef(!1);return lo(()=>{a.current=!0}),ve.useCallback((r,s={})=>
1{if(pi(a.current,so),!a.current)return;if("number"==typeof r)return void n.go(r);let l=Li(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Ri([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)},[t,n,o,i,e])}()}function co(e,{relative:t}={}){let{matches:n}=ve.useContext(no),{pathname:r}=ao(),i=JSON.stringify(ji(n));return ve.useMemo(()=>Li(e,JSON.parse(i),r,"path"===t),[e,i,r,t])}function fo(e,t,n){hi(oo(),"useRoutes() may be used only in the context of a <Router> component.");let r,{navigator:i}=ve.useContext(eo),{matches:o}=ve.useContext(no),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let e=c&&c.path||"";So(l,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}r=ao();let d=r.pathname||"/",f=d;if("/"!==u){let e=u.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):gi(e,{pathname:f});pi(c||null!=h,`No routes matched location "${r.pathname}${r.search}${r.hash}" `),pi(null==h||void 0!==h[h.length-1].route.element||void 0!==h[h.length-1].route.Component||void 0!==h[h.length-1].route.lazy,`Matched leaf route at location "${r.pathname}${r.search}${r.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let p=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,o=r?.errors;if(null!=o){let e=i.findIndex(e=>e.route.id&&void 0!==o?.[e.route.id]);hi(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,s=-1;if(n&&r){a=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:o}=r,l=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||l){n.isStatic&&(a=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:zi(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,l)=>{let c,d=!1,f=null,h=null;r&&(c=o&&n.route.id?o[n.route.id]:void 0,f=n.route.errorElement||po,a&&(s<0&&0===l?(So("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):s===l&&(d=!0,h=n.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,l+1)),m=()=>{let t;return t=c?f:d?h:n.route.Component?ve.createElement(n.route.Component,null):n.route.element?n.route.element:e,ve.createElement(vo,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?ve.createElement(mo,{location:r.location,revalidation:r.revalidation,component:f,error:c,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0},onError:u}):m()},null)}(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Ri([u,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Ri([u,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return p}function ho(){let e=function(){let e=ve.useContext(ro),t=function(e){let t=ve.useContext(Ki);return hi(t,bo(e)),t}("useRouteError"),n=ko("useRouteError");if(void 0!==e)return e;return t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=ve.createElement(ve.Fragment,null,ve.createElement("p",null,"ð¿ Hey developer ð"),ve.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",ve.createElement("code",{style:o},"ErrorBoundary")," or"," ",ve.createElement("code",{style:o},"errorElement")," prop on your route.")),ve.createElement(ve.Fragment,null,ve.createElement("h2",null,"Unexpected Application
1Error!"),ve.createElement("h3",{style:{fontStyle:"italic"}},t),n?ve.createElement("pre",{style:i},n):null,a)}ve.createContext(null);var po=ve.createElement(ho,null),mo=class extends ve.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${io}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new qi(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?ve.createElement(no.Provider,{value:this.props.routeContext},ve.createElement(ro.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?ve.createElement(go,{error:e},t):t}};mo.contextType=Qi;var yo=new WeakMap;function go({children:e,error:t}){let{basename:n}=ve.useContext(eo);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${io}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=yo.get(t);if(r)throw r;let i=Hi(e.location,n),o=i.absoluteURL||i.to;if(function(e){try{return Yi.includes(new URL(e).protocol)}catch{return!1}}(o))throw new Error("Invalid redirect location");if(Wi&&!yo.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw yo.set(t,n),n}window.location.href=o}return ve.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o}`})}}return e}function vo({routeContext:e,match:t,children:n}){let r=ve.useContext(Gi);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),ve.createElement(no.Provider,{value:e},n)}function bo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ko(e){let t=function(e){let t=ve.useContext(no);return hi(t,bo(e)),t}(e),n=t.matches[t.matches.length-1];return hi(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var wo={};function So(e,t,n){t||wo[e]||(wo[e]=!0,pi(!1,n))}ve.memo(function({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:o}){return fo(e,0,{manifest:t,state:r,isStatic:i,onError:o})});var No="get",xo="application/x-www-form-urlencoded";function Eo(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function Oo(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var To=null;var _o=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Io(e){return null==e||_o.has(e)?e:(pi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xo}"`),null)}function Do(e,t){let n,r,i,o,a;if(Eo(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?Ci(a,t):null,n=e.getAttribute("method")||No,i=Io(e.getAttribute("enctype"))||xo,o=new FormData(e)}else if(function(e){return Eo(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Eo(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?Ci(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||No,i=Io(e.getAttribute("formenctype"))||Io(a.getAttribute("enctype"))||xo,o=new FormData(a,e),!function(){if(null===To)try{new FormData(document.createElement("form"),0),To=!1}catch(e){To=!0}return To}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}
1else t&&o.append(t,r)}}else{if(Eo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=No,r=null,i=xo,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function Ao(e,t){if(!1===e||null==e)throw new Error(t)}function Co(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===Ci(i.pathname,t)?i.pathname=`${Pi(t)}/_root.${r}`:i.pathname=`${Pi(i.pathname)}.${r}`,i}function Fo(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function $o(e,t,n){return function(e,t){let n=new Set;return new Set(t),e.reduce((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Fo).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}function jo(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Lo(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1),[...new Set(r)];var r}function Mo(){let e=ve.useContext(Gi);return Ao(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ro=ve.createContext(void 0);function Po(){let e=ve.useContext(Ro);return Ao(e,"You must render this element inside a <HydratedRouter> element"),e}function Vo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bo({page:e,...t}){let n=ve.useContext(Qi),{nonce:r}=Po(),{router:i}=Mo(),o=ve.useMemo(()=>gi(i.routes,e,i.basename),[i.routes,e,i.basename]);return o?(null==t.nonce&&r&&(t={...t,nonce:r}),n?ve.createElement(Uo,{page:e,matches:o,...t}):ve.createElement(qo,{page:e,matches:o,...t})):null}function Uo({page:e,matches:t,...n}){let r=ao(),{future:i}=Po(),{basename:o}=Mo(),a=ve.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Co(e,o,i.v8_trailingSlashAwareDataRequests,"rsc"),a=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?a=!0:s.push(e.route.id);return a&&s.length>0&&n.searchParams.set("_routes",s.join(",")),[n.pathname+n.search]},[o,i.v8_trailingSlashAwareDataRequests,e,r,t]);return ve.createElement(ve.Fragment,null,a.map(e=>ve.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function qo({page:e,matches:t,...n}){let r=ao(),{future:i,manifest:o,routeModules:a}=Po(),{basename:s}=Mo(),{loaderData:l,matches:u}=function(){let e=ve.useContext(Ki);return Ao(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),c=ve.useMemo(()=>jo(e,t,u,o,r,"data"),[e,t,u,o,r]),d=ve.useMemo(()=>jo(e,t,u,o,r,"assets"),[e,t,u,o,r]),f=ve.useMemo(()=>
1{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,u=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?u=!0:n.add(e.route.id))}),0===n.size)return[];let d=Co(e,s,i.v8_trailingSlashAwareDataRequests,"data");return u&&n.size>0&&d.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,l,r,o,c,t,e,a]),h=ve.useMemo(()=>Lo(d,o),[d,o]),p=function(e){let{manifest:t,routeModules:n}=Po(),[r,i]=ve.useState([]);return ve.useEffect(()=>{let r=!1;return $o(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}(d);return ve.createElement(ve.Fragment,null,f.map(e=>ve.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),h.map(e=>ve.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),p.map(({key:e,link:t})=>ve.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function zo(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}Ro.displayName="FrameworkContext";var Wo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Wo&&(window.__reactRouterVersion="7.18.2")}catch(Zc){}var Ho=ve.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,mask:a,state:s,target:l,to:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:f,...h},p){let{basename:m,navigator:y,useTransitions:g}=ve.useContext(eo),v="string"==typeof u&&di.test(u),b=Hi(u,m),k=function(e,{relative:t}={}){hi(oo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=ve.useContext(eo),{hash:i,pathname:o,search:a}=co(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:Ri([n,o])),r.createHref({pathname:s,search:a,hash:i})}(u=b.to,{relative:r}),w=ao(),S=null;if(a){let e=Li(a,[],w.mask?w.mask.pathname:"/",!0);"/"!==m&&(e.pathname="/"===e.pathname?m:Ri([m,e.pathname])),S=y.createHref(e)}let[N,x,E]=function(e,t){let n=ve.useContext(Ro),[r,i]=ve.useState(!1),[o,a]=ve.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,f=ve.useRef(null);ve.useEffect(()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{a(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),ve.useEffect(()=>{if(r){let e=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(e)}}},[r]);let h=()=>{i(!0)},p=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:Vo(s,h),onBlur:Vo(l,p),onMouseEnter:Vo(u,h),onMouseLeave:Vo(c,p),onTouchStart:Vo(d,h)}]:[!1,f,{}]}(n,h),O=function(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:o,relative:a,viewTransition:s,defaultShouldRevalidate:l,useTransitions:u}={}){let c=uo(),d=ao(),f=co(e,{relative:a});return ve.useCallback(h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==n?n:mi(d)===mi(f),p=()=>c(e,{replace:t,mask:r,state:i,preventScrollReset:o,relative:a,viewTransition:s,defaultShouldRevalidate:l});u?ve.startTransition(()=>p()):p()}},[d,c,f,n,r,i,t,e,o,a,s,l,u])}(u,{replace:o,mask:a,state:s,target:l,preventScrollReset:c,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:g});let T=!(b.isExternal||i),_=ve.createElement("a",{...h,...E,href:(T?S:void 0)||b.absoluteURL||k,onClick:T?function(t){e&&e(t),t.defaultPrevented||O(t)}:e,ref:zo(p,x),target:l,"data-discover":v||"render"!==t?void 0:"true"});return N&&!v?ve.createElement(ve.Fragment,null,_,ve.createElement(Bo,{page:k})):_});Ho.displayName="Link",ve.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},u){let c=co(o,{relative:l.relative}),d=ao(),f=ve.useContext(Ki),{navigator:h,basename:p}=ve.useContext(eo),m=null!=f&&function(e,{relative:t}={}){let n=ve.useContext(Xi);hi(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Jo("useViewTransitionState"),i=co(e,{relative:t});if(!n.isTransitioning)return!1;let o=Ci(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Ci(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Ii(i.pathname,a)||null!=Ii(i.pathname,o)}(c)&&!0===a,y=h.encodeLocation?h.encodeLocation(c).pathname:c.pathname,g=d.pathname,v=f&&f.n
1avigation&&f.navigation.location?f.navigation.location.pathname:null;t||(g=g.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&p&&(v=Ci(v,p)||v);const b="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,w=g===y||!r&&g.startsWith(y)&&"/"===g.charAt(b),S=null!=v&&(v===y||!r&&v.startsWith(y)&&"/"===v.charAt(y.length)),N={isActive:w,isPending:S,isTransitioning:m},x=w?e:void 0;k="function"==typeof n?n(N):[n,w?"active":null,S?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(N):i;return ve.createElement(Ho,{...l,"aria-current":x,className:k,ref:u,style:E,to:o,viewTransition:a},"function"==typeof s?s(N):s)}).displayName="NavLink";var Zo=ve.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=No,action:s,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:f,...h},p)=>{let{useTransitions:m}=ve.useContext(eo),y=function(){let{router:e}=Jo("useSubmit"),{basename:t}=ve.useContext(eo),n=ko("useRouteId"),r=e.fetch,i=e.navigate;return ve.useCallback(async(e,o={})=>{let{action:a,method:s,encType:l,formData:u,body:c}=Do(e,t);if(!1===o.navigate){let e=o.fetcherKey||Ko();await r(e,n,o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await i(o.action||a,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}(),g=function(e,{relative:t}={}){let{basename:n}=ve.useContext(eo),r=ve.useContext(no);hi(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...co(e||".",{relative:t})},a=ao();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index"),n=t.some(e=>""===e);if(n){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:Ri([n,o.pathname]));return mi(o)}(s,{relative:u}),v="get"===a.toLowerCase()?"get":"post",b="string"==typeof s&&di.test(s);return ve.createElement("form",{ref:p,method:v,action:g,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute("formmethod")||a,h=()=>y(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:f});m&&!1!==n?ve.startTransition(()=>h()):h()},...h,"data-discover":b||"render"!==e?void 0:"true"})});function Jo(e){let t=ve.useContext(Gi);return hi(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}function Yo(e){pi("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=ve.useRef(Oo(e)),n=ve.useRef(!1),r=ao(),i=ve.useMemo(()=>function(e,t){let n=Oo(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),o=uo(),a=ve.useCallback((e,t)=>{const r=Oo("function"==typeof e?e(new URLSearchParams(i)):e);n.current=!0,o("?"+r,t)},[o,i]);return[i,a]}Zo.displayName="Form";var Go=0,Ko=()=>`__${String(++Go)}__`;const Qo=b("__enableTestIds")||typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes("playwright")||!1,Xo=ve.createContext(null),ea=()=>{const e=ve.useContext(Xo),t=function(){let{matches:e}=ve.useContext(no),t=e[e.length-1];return t?.params??{}}(),[n]=Yo(),r=ve.useMemo(()=>Object.fromEntries(n.entries()),[n]);return{category:e,href:typeof window<"u"&&window.location.href,query:r,params:t}},ta=ve.forwardRef(({as:e,_dataId:t,_dataContext:n,...r},i)=>{const o=ve.useContext(Xo),a=e||"div";if(!Qo)return ci.jsx(a,{ref:i,...r});const s={...r,"data-test-id":[o,t,n&&"object"==typeof n?JSON.stringify(n):n].filter(
1Boolean).join("_")};return ci.jsx(a,{ref:i,...s})});ta.displayName="CfAnchorNonInteractive";const na=ve.forwardRef(({as:e,onClick:t,disabled:n,_dataId:r,_dataContext:i,...o},a)=>{const s=(()=>{const e=ea(),{category:t,...n}=e;return(r,i)=>r?{props:Qo?{"data-test-id":[e.category,r,i&&"object"==typeof i?JSON.stringify(i):i].filter(Boolean).join("_")}:{},onClick:()=>{var e,o;const a={propertyBag:{...n,context:i||null},label:r,action:"click",category:`${t}`};null==(o=null==(e=window.__cf_awesome_analytics)?void 0:e.sendEvent)||o.call(e,a)}}:{props:{},onClick:()=>{}}})()(r,i),l={...o,disabled:n,...s.props,onClick:n?void 0:e=>{null==t||t(e),s.onClick()}};return ci.jsx(e||"div",{ref:a,...l})});na.displayName="CfAnchorElement",jr("\n query BotFeatureQuery($featureID: ToggleName!, $botID: BotID!) {\n bot(id: $botID) {\n id\n feature(id: $featureID) {\n name\n enabled\n }\n }\n }\n"),jr("\n query UserFeatureQuery($featureID: ToggleName!) {\n currentUser {\n id\n feature(id: $featureID) {\n name\n enabled\n }\n }\n }\n");const ra=()=>typeof window<"u"&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname);const ia=Vr(),oa=new class{constructor(e){this.domain=e}set(e,t,n=160272e5){const r=new Date(Date.now()+n),i=ra()?"":`; domain=.${this.domain}`,o=typeof window<"u"&&"https:"===window.location.protocol;document.cookie=[`${e}=${encodeURIComponent(t)}`,"path=/",i?`domain=.${this.domain}`:"",`expires=${r.toUTCString()}`,"SameSite=Lax",o?"Secure":""].filter(Boolean).join("; ")}delete(e){const t=ra()?"":`; domain=.${this.domain}`;document.cookie=`${e}=""; path=/${t}; max-age=-1`}get(e){const t=document.cookie.match(new RegExp(`(?:^|; )${e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")}=([^;]*)`));return t?decodeURIComponent(t[1]):null}}(ia),aa=Vr();Pr(aa),jr("\n mutation WhatsAppBusinessPaymentMethodCheck(\n $botId: BotID!\n $wabaId: WhatsappBusinessAccountID!\n ) {\n whatsAppBusinessPaymentMethodCheck(botID: $botId, wabaID: $wabaId)\n }\n"),jr("\n query CurrentUserLocale {\n currentUser {\n id\n dashboardLocale\n }\n }\n"),jr("\n query BackendTranslation($key: String!, $locale: DashboardLocale!) {\n translation(key: $key, locale: $locale)\n }\n"),jr("\n fragment WhatsAppPhoneContactScopeForWabaStatus on WhatsAppPhoneContactScope {\n id\n phone {\n id\n isConnectedToBot\n verifiedName\n messagingStatus {\n ... on WhatsAppPhoneMessagingStatusAvailable {\n fakeField\n }\n ... on WhatsAppPhoneMessagingStatusLimited {\n reasons\n }\n ... on WhatsAppPhoneMessagingStatusBlocked {\n reasons\n }\n }\n whatsAppBusinessAccount {\n id\n messagingStatus {\n ... on WhatsAppBusinessAccountMessagingStatusAvailable {\n fakeField\n }\n ... on WhatsAppBusinessAccountMessagingStatusLimited {\n reasons\n }\n ... on WhatsAppBusinessAccountMessagingStatusBlocked {\n reasons\n }\n }\n facebookBusiness {\n id\n verificationStatus\n verificationSubmission {\n id\n status\n attemptsLeft\n successNotificationRead\n }\n messagingStatus {\n ... on FacebookBusinessMessagingStatusAvailable {\n fakeField\n }\n ... on FacebookBusinessMessagingStatusLimited {\n reasons\n }\n ... on FacebookBusinessMessagingStatusBlocked {\n reasons\n }\n }\n }\n }\n }\n }\n"),jr("\n query ConnectedWabaStatusQuery($botId: BotID!) {\n bot(id: $botId) {\n id\n contactScopes {\n id\n ...WhatsAppPhoneContactScopeForWabaStatus\n }\n }\n }\n");const sa=navigator.userAgent.toLowerCase();sa.includes("android"),sa.includes("iphone")||sa.includes("ipad"),jr("\n mutation BotAbExperimentMutation(\n $experimentId: ABExperimentID!\n $botId: BotID!\n ) {\n abExperimentBucketGetByBot(experimentID: $experimentId, botID: $botId) {\n __typename\n ... on ABExperimentAssignedBucketFound {\n id\n }\n ... on ABExperimentAssignedBucketNull {\n fakeField\n }\n }\n }\n"),jr("\n mutation UserAbExperimentMutation($experimentId: ABExperimentID!) {\n abExperimentBucketGetByUser(experimentID: $experimentId) {\n __typename\n ... on ABExperimentAssignedBucketFound {\n id\n }\n ... on ABExperimentAssignedBucketNull {\n fakeField\n }\n }\n }\n"),jr("\n mutation BookingAssignTestBucketMutation {\n abExperimentBookingAssignTestBucket {\n __typename\n ... on ABExperimentAssignedBucketFound {\n id\n }\n ... on ABExperimentAssignedBucketNull {\n fakeField\n }\n }\n }\n"),jr("\n mutation AbExperimentBookingAssignControlBucket {\n abExperimentBookingAssignControlBucket {\n ... on ABExperimentAssignedBucketFound {\n id\n }\n }\n }\n");const la=()=>{var e,t;return(null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e.getClid)?void 0:t.call(e))||"unknown"},ua={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ca;const da=new Uint8Array(16);function fa(){if(!ca&&(ca=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ca))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ca(da)}const ha=[];for(let e=0;e<256;++e)ha.push((e+256).toString(16).slice(1));
1function pa(e,t,n){if(ua.randomUUID&&!t&&!e)return ua.randomUUID();const r=(e=e||{}).random||(e.rng||fa)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return ha[e[t+0]]+ha[e[t+1]]+ha[e[t+2]]+ha[e[t+3]]+"-"+ha[e[t+4]]+ha[e[t+5]]+"-"+ha[e[t+6]]+ha[e[t+7]]+"-"+ha[e[t+8]]+ha[e[t+9]]+"-"+ha[e[t+10]]+ha[e[t+11]]+ha[e[t+12]]+ha[e[t+13]]+ha[e[t+14]]+ha[e[t+15]]}(r)}new k({processQueue:e=>{var t;if(!e.length)return Promise.resolve();const n={user_id:la(),events:e.map(e=>({...e.event,id:pa()})),event_source_url:document.location.href,...null==(t=e.find(e=>e.userData))?void 0:t.userData};return w("/api/in-house-service/data-f",JSON.stringify(n))}});new k({processQueue:e=>{if(!e.length)return Promise.resolve();const t={user_id:la(),events:e};return w("/api/in-house-service/data-g",JSON.stringify(t))}});let ma=class extends Error{},ya=class extends ma{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},ga=class extends ma{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},va=class extends ma{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ba=class extends ma{},ka=class extends ma{constructor(e){super(`Invalid unit ${e}`)}},wa=class extends ma{},Sa=class extends ma{constructor(){super("Zone is an abstract class")}},Na=class{get type(){throw new Sa}get name(){throw new Sa}get ianaName(){return this.name}get isUniversal(){throw new Sa}offsetName(e,t){throw new Sa}formatOffset(e,t){throw new Sa}offset(e){throw new Sa}equals(e){throw new Sa}get isValid(){throw new Sa}},xa=null,Ea=class e extends Na{static get instance(){return null===xa&&(xa=new e),xa}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ws(e,t,n)}formatOffset(e,t){return Ys(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}};const Oa=new Map;const Ta={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};const _a=new Map;let Ia=class e extends Na{static create(t){let n=_a.get(t);return void 0===n&&_a.set(t,n=new e(t)),n}static resetCache(){_a.clear(),Oa.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ws(e,t,n,this.name)}formatOffset(e,t){return Ys(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=Oa.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Oa.set(e,t)),t}(this.name);let[r,i,o,a,s,l,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:i}=n[e],o=Ta[t];"era"===t?r[o]=i:xs(o)||(r[o]=parseInt(i,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,a,s,l,u,c]=r;return[a,i,o,s,l,u,c]}(n,t);"BC"===a&&(r=1-Math.abs(r));let c=+t;const d=c%1e3;return c-=d>=0?d:1e3+d,(Bs({year:r,month:i,day:o,hour:24===s?0:s,minute:l,second:u,millisecond:0})-c)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}},Da={};const Aa=new Map;function Ca(e,t={}){const n=JSON.stringify([e,t]);let r=Aa.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),Aa.set(n,r)),r}const Fa=new Map;const $a=new Map;let ja=null;const La=new Map;function Ma(e){let t=La.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),La.set(e,t)),t}const Ra=new Map;function Pa(e,t,n,r){const i=e.listingMode();return"error"===i?null:"en"===i?n(t):r(t)}let Va=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:i,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=Fa.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),Fa.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Fs(this.floor?Math.floor(e):Ms(e,3),this.padTo)}},Ba=class{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Ia.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Ca(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Ua=class{constructor(e,t,n){this.opts={style:"long",...n},!t&&Ts()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=$a.get(i);return void 0===o&&(o=new Intl.RelativeTimeFormat(e,t),$a.set(i,o)),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="al
1ways",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return a?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}};const qa={firstDay:1,minimalDays:4,weekend:[6,7]};let za=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const a=t||ls.defaultLocale,s=a||(o?"en-US":ja||(ja=(new Intl.DateTimeFormat).resolvedOptions().locale,ja)),l=n||ls.defaultNumberingSystem,u=r||ls.defaultOutputCalendar,c=As(i)||ls.defaultWeekSettings;return new e(s,l,u,c,a)}static resetCache(){ja=null,Aa.clear(),Fa.clear(),$a.clear(),La.clear(),Ra.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return e.create(t,n,r,i)}constructor(e,t,n,r,i){const[o,a,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=Ca(e).resolvedOptions(),r=e}catch{const i=e.substring(0,n);t=Ca(i).resolvedOptions(),r=i}const{numberingSystem:i,calendar:o}=t;return[r,i,o]}}(e);this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.weekSettings=r,this.intl=function(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===Ma(e.locale).numberingSystem)}(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,As(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Pa(this,e,Bl,()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";if(!this.monthsCache[i][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=Ac.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Pa(this,e,Wl,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=Ac.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Pa(this,void 0,()=>Hl,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ac.utc(2016,11,13,9),Ac.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Pa(this,e,Gl,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ac.utc(-40,1,1),Ac.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new Va(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ba(e,this.intl,t)}relFormatter(e={}){return new Ua(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=Da[n];return r||(r=new Intl.ListFormat(e,t),Da[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Ma(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:_s()?function(e){let t=Ra.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...qa,...t}),Ra.set(e,t)}return t}(this.locale):qa}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Wa=null,Ha=class e extends Na{static get utcInstance(){return null===Wa&&(Wa=new e(0)),Wa}static instance(t){return 0===t?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new e(Hs(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ys(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ys(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Ys(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}},Za=class extends Na{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Ja(e,t){if(xs(e)||null===e)return t;if(e instanceof Na)return e;if(function(e){return"string"==typeof e}(e)){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?Ea.instance:"utc"===n||"gmt"===n?Ha.utcInstance:Ha.parseSpecifier(n)||Ia.create(e)}return Es(e)?Ha.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Za(e)}const Ya={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",t
1ibt:"[༠-༩]",latn:"\\d"},Ga={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ka=Ya.hanidec.replace(/[\[|\]]/g,"").split("");const Qa=new Map;function Xa({numberingSystem:e},t=""){const n=e||"latn";let r=Qa.get(n);void 0===r&&(r=new Map,Qa.set(n,r));let i=r.get(t);return void 0===i&&(i=new RegExp(`${Ya[n]}${t}`),r.set(t,i)),i}let es,ts=()=>Date.now(),ns="system",rs=null,is=null,os=null,as=60,ss=null,ls=class{static get now(){return ts}static set now(e){ts=e}static set defaultZone(e){ns=e}static get defaultZone(){return Ja(ns,Ea.instance)}static get defaultLocale(){return rs}static set defaultLocale(e){rs=e}static get defaultNumberingSystem(){return is}static set defaultNumberingSystem(e){is=e}static get defaultOutputCalendar(){return os}static set defaultOutputCalendar(e){os=e}static get defaultWeekSettings(){return ss}static set defaultWeekSettings(e){ss=As(e)}static get twoDigitCutoffYear(){return as}static set twoDigitCutoffYear(e){as=e%100}static get throwOnInvalid(){return es}static set throwOnInvalid(e){es=e}static resetCaches(){za.resetCache(),Ia.resetCache(),Ac.resetCache(),Qa.clear()}},us=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};const cs=[0,31,59,90,120,151,181,212,243,273,304,334],ds=[0,31,60,91,121,152,182,213,244,274,305,335];function fs(e,t){return new us("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function hs(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return 0===i?7:i}function ps(e,t,n){return n+(Rs(e)?ds:cs)[t-1]}function ms(e,t){const n=Rs(e)?ds:cs,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function ys(e,t){return(e-t+7)%7+1}function gs(e,t=4,n=1){const{year:r,month:i,day:o}=e,a=ps(r,i,o),s=ys(hs(r,i,o),n);let l,u=Math.floor((a-s+14-t)/7);return u<1?(l=r-1,u=qs(l,t,n)):u>qs(r,t,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:s,...Gs(e)}}function vs(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,a=ys(hs(r,1,t),n),s=Ps(r);let l,u=7*i+o-a-7+t;u<1?(l=r-1,u+=Ps(l)):u>s?(l=r+1,u-=Ps(r)):l=r;const{month:c,day:d}=ms(l,u);return{year:l,month:c,day:d,...Gs(e)}}function bs(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:ps(t,n,r),...Gs(e)}}function ks(e){const{year:t,ordinal:n}=e,{month:r,day:i}=ms(t,n);return{year:t,month:r,day:i,...Gs(e)}}function ws(e,t){if(xs(e.localWeekday)&&xs(e.localWeekNumber)&&xs(e.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!xs(e.weekday)||!xs(e.weekNumber)||!xs(e.weekYear))throw new ba("Cannot mix locale-based week fields with ISO-based week fields");return xs(e.localWeekday)||(e.weekday=e.localWeekday),xs(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),xs(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function Ss(e){const t=Os(e.year),n=Cs(e.month,1,12),r=Cs(e.day,1,Vs(e.year,e.month));return t?n?!r&&fs("day",e.day):fs("month",e.month):fs("year",e.year)}function Ns(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=Cs(t,0,23)||24===t&&0===n&&0===r&&0===i,a=Cs(n,0,59),s=Cs(r,0,59),l=Cs(i,0,999);return o?a?s?!l&&fs("millisecond",i):fs("second",r):fs("minute",n):fs("hour",t)}function xs(e){return typeof e>"u"}function Es(e){return"number"==typeof e}function Os(e){return"number"==typeof e&&e%1==0}function Ts(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function _s(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Is(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function Ds(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function As(e){if(null==e)return null;if("object"!=typeof e)throw new wa("Week settings must be an object");
1if(!Cs(e.firstDay,1,7)||!Cs(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!Cs(e,1,7)))throw new wa("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Cs(e,t,n){return Os(e)&&e>=t&&e<=n}function Fs(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function $s(e){if(!xs(e)&&null!==e&&""!==e)return parseInt(e,10)}function js(e){if(!xs(e)&&null!==e&&""!==e)return parseFloat(e)}function Ls(e){if(!xs(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Ms(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Rs(e){return e%4==0&&(e%100!=0||e%400==0)}function Ps(e){return Rs(e)?366:365}function Vs(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?Rs(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Bs(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Us(e,t,n){return-ys(hs(e,1,t),n)+t-1}function qs(e,t=4,n=1){const r=Us(e,t,n),i=Us(e+1,t,n);return(Ps(e)-r+i)/7}function zs(e){return e>99?e:e>ls.twoDigitCutoffYear?1900+e:2e3+e}function Ws(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return s?s.value:null}function Hs(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Zs(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new wa(`Invalid unit value ${e}`);return t}function Js(e,t){const n={};for(const r in e)if(Ds(e,r)){const i=e[r];if(null==i)continue;n[t(r)]=Zs(i)}return n}function Ys(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Fs(n,2)}:${Fs(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${Fs(n,2)}${Fs(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Gs(e){return function(e,t){return t.reduce((t,n)=>(t[n]=e[n],t),{})}(e,["hour","minute","second","millisecond"])}const Ks=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Qs(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function Xs(...e){return t=>e.reduce(([e,n,r],i)=>{const[o,a,s]=i(t,r);return[{...e,...o},a||n,s]},[{},null,1]).slice(0,2)}function el(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function tl(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=$s(t[n+i]);return[r,null,n+i]}}const nl=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,rl=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,il=RegExp(`${rl.source}${`(?:${nl.source}?(?:\\[(${Ks.source})\\])?)?`}`),ol=RegExp(`(?:[Tt]${il.source})?`),al=tl("weekYear","weekNumber","weekDay"),sl=tl("year","ordinal"),ll=RegExp(`${rl.source} ?(?:${nl.source}|(${Ks.source}))?`),ul=RegExp(`(?: ${ll.source})?`);function cl(e,t,n){const r=e[t];return xs(r)?n:$s(r)}function dl(e,t){return[{hours:cl(e,t,0),minutes:cl(e,t+1,0),seconds:cl(e,t+2,0),milliseconds:Ls(e[t+3])},null,t+4]}function fl(e,t){const n=!e[t]&&!e[t+1],r=Hs(e[t+1],e[t+2]);return[{},n?null:Ha.instance(r),t+3]}function hl(e,t){return[{},e[t]?Ia.create(e[t]):null,t+1]}const pl=RegExp(`^T?${rl.source}$`),ml=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function yl(e){const[t,n,r,i,o,a,s,l,u]=e,c="-"===t[0],d=l&&"-"===l[0],f=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:f(js(n)),months:f(js(r)),weeks:f(js(i)),days:f(js(o)),hours:f(js(a)),minutes:f(js(s)),seconds:f(js(l),"-0"===l),milliseconds:f(Ls(u),d)}]}const gl={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vl(e,t,n,r,i,o,a){const s={year:2===t.length?zs($s(t)):$s(t),month:Pl.indexOf(n)+1,day:$s(r),hour:$s(i),minute:$s(o)};return a&&(s.second=$s(a)),e&&(s.weekday=e.length>3?Ul.indexOf(e)+1:ql.indexOf(e)+1),s}const bl=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function kl(e){const[,t,n,r,i,o,a,s,l,u,c,d]=e,f=vl(t,i,r,n,o,a,s);let h;return h=l?gl[l]:u?0:Hs(c,d),[f,new Ha(h)]}const wl=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Sl=/^(Monday|Tuesday|Wednesday|Thursday|Frid
1ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Nl=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function xl(e){const[,t,n,r,i,o,a,s]=e;return[vl(t,i,r,n,o,a,s),Ha.utcInstance]}function El(e){const[,t,n,r,i,o,a,s]=e;return[vl(t,s,n,r,i,o,a),Ha.utcInstance]}const Ol=Qs(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ol),Tl=Qs(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ol),_l=Qs(/(\d{4})-?(\d{3})/,ol),Il=Qs(il),Dl=Xs(function(e,t){return[{year:cl(e,t),month:cl(e,t+1,1),day:cl(e,t+2,1)},null,t+3]},dl,fl,hl),Al=Xs(al,dl,fl,hl),Cl=Xs(sl,dl,fl,hl),Fl=Xs(dl,fl,hl);const $l=Xs(dl);const jl=Qs(/(\d{4})-(\d\d)-(\d\d)/,ul),Ll=Qs(ll),Ml=Xs(dl,fl,hl);const Rl=["January","February","March","April","May","June","July","August","September","October","November","December"],Pl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Vl=["J","F","M","A","M","J","J","A","S","O","N","D"];function Bl(e){switch(e){case"narrow":return[...Vl];case"short":return[...Pl];case"long":return[...Rl];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ul=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ql=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],zl=["M","T","W","T","F","S","S"];function Wl(e){switch(e){case"narrow":return[...zl];case"short":return[...ql];case"long":return[...Ul];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hl=["AM","PM"],Zl=["Before Christ","Anno Domini"],Jl=["BC","AD"],Yl=["B","A"];function Gl(e){switch(e){case"narrow":return[...Yl];case"short":return[...Jl];case"long":return[...Zl];default:return null}}const Kl="numeric",Ql="short",Xl="long",eu={year:Kl,month:Kl,day:Kl},tu={year:Kl,month:Ql,day:Kl},nu={year:Kl,month:Ql,day:Kl,weekday:Ql},ru={year:Kl,month:Xl,day:Kl},iu={year:Kl,month:Xl,day:Kl,weekday:Xl},ou={hour:Kl,minute:Kl},au={hour:Kl,minute:Kl,second:Kl},su={hour:Kl,minute:Kl,second:Kl,timeZoneName:Ql},lu={hour:Kl,minute:Kl,second:Kl,timeZoneName:Xl},uu={hour:Kl,minute:Kl,hourCycle:"h23"},cu={hour:Kl,minute:Kl,second:Kl,hourCycle:"h23"},du={hour:Kl,minute:Kl,second:Kl,hourCycle:"h23",timeZoneName:Ql},fu={hour:Kl,minute:Kl,second:Kl,hourCycle:"h23",timeZoneName:Xl},hu={year:Kl,month:Kl,day:Kl,hour:Kl,minute:Kl},pu={year:Kl,month:Kl,day:Kl,hour:Kl,minute:Kl,second:Kl},mu={year:Kl,month:Ql,day:Kl,hour:Kl,minute:Kl},yu={year:Kl,month:Ql,day:Kl,hour:Kl,minute:Kl,second:Kl},gu={year:Kl,month:Ql,day:Kl,weekday:Ql,hour:Kl,minute:Kl},vu={year:Kl,month:Xl,day:Kl,hour:Kl,minute:Kl,timeZoneName:Ql},bu={year:Kl,month:Xl,day:Kl,hour:Kl,minute:Kl,second:Kl,timeZoneName:Ql},ku={year:Kl,month:Xl,day:Kl,weekday:Xl,hour:Kl,minute:Kl,timeZoneName:Xl},wu={year:Kl,month:Xl,day:Kl,weekday:Xl,hour:Kl,minute:Kl,second:Kl,timeZoneName:Xl};function Su(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Nu={D:eu,DD:tu,DDD:ru,DDDD:iu,t:ou,tt:au,ttt:su,tttt:lu,T:uu,TT:cu,TTT:du,TTTT:fu,f:hu,ff:mu,fff:vu,ffff:ku,F:pu,FF:yu,FFF:bu,FFFF:wu};let xu=class e{static create(t,n={}){return new e(t,n)}static parseFormat(e){let t=null,n="",r=!1;const i=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);"'"===a?((n.length>0||r)&&i.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Nu[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return Fs(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(t,n){const r="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(e,n)=>this.loc.extract(t,e,n),a=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=()=>r?function(e){return Hl[e.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"}
1,"dayperiod"),l=(e,n)=>r?function(e,t){return Bl(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),u=(e,n)=>r?function(e,t){return Wl(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=n=>{const r=e.macroTokenToFormatOpts(n);return r?this.formatWithSystemDefault(t,r):n},d=e=>r?function(e,t){return Gl(t)[e.year<0?0:1]}(t,e):o({era:e},"era");return Su(e.parseFormat(n),e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}})}formatDurationFromString(t,n){const r="negativeLargestOnly"===this.opts.signMode?-1:1,i=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=e.parseFormat(n),a=o.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),s=t.shiftTo(...a.map(i).filter(e=>e));return Su(o,((e,t)=>n=>{const o=i(n);if(o){const i=t.isNegativeDuration&&o!==t.largestUnit?r:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&o!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(o)*i,n.length,a)}return n})(s,{isNegativeDuration:s<0,largestUnit:Object.keys(s.values)[0]}))}};const Eu="Invalid Duration",Ou={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Tu={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Ou},_u=365.2425,Iu=30.436875,Du={years:{quarters:4,months:12,weeks:_u/7,days:_u,hours:24*_u,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:_u/28,days:_u/4,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Iu/7,days:Iu,hours:24*Iu,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ou},Au=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Cu=Au.slice(0).reverse();function Fu(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Mu(r)}function $u(e,t){let n=t.milliseconds??0;for(const r of Cu.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function ju(e,t){const n=$u(e,t)<0?-1:1;Au.reduceRight((r,i)=>{if(xs(t[i]))return r;if(r){const o=t[r]*n,a=e[i][r],s=Math.floor(o/a);t[i]+=s*n,t[r]-=s*a*n}return i},null),Au.reduce((n,r)=>{if(xs(t[r]))return n;if(n){const i=t[n]%1;t[n]-=i,t[r]+=i*e[n][r]}return r},null)}function Lu(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}let Mu=class e{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?Du:Tu;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||za.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,n){return e.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(null==t||"object"!=typeof t)throw new wa("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:Js(t,e.normalizeUnit),loc:za.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Es(t))return e.fromMillis(t);if(e.isDuration(t))return t;if("object"==typeof t)return e.fromObject(t);throw new wa(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=function(e){return el(e,[ml,yl])}(t);return r?e.fromObject(r,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=function(e){return el(e,[pl,$l])}(t);return r?e.fromObject(r,n):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}
1static invalid(t,n=null){if(!t)throw new wa("need to specify a reason the Duration is invalid");const r=t instanceof us?t:new us(t,n);if(ls.throwOnInvalid)throw new va(r);return new e({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new ka(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?xu.create(this.loc,n).formatDurationFromString(this,e):Eu}toHuman(e={}){if(!this.isValid)return Eu;const t=!1!==e.showZeros,n=Au.map(n=>{const r=this.values[n];return xs(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=Ms(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ac.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?$u(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=e.fromDurationLike(t),r={};for(const e of Au)(Ds(n.values,e)||Ds(this.values,e))&&(r[e]=n.get(e)+this.get(e));return Fu(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=e.fromDurationLike(t);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Zs(e(this.values[n],n));return Fu(this,{values:t},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return Fu(this,{values:{...this.values,...Js(t,e.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Fu(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return ju(this.matrix,e),Fu(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return Fu(this,{values:Lu(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map(t=>e.normalizeUnit(t));const n={},r={},i=this.toObject();let o;for(const e of Au)if(t.indexOf(e)>=0){o=e;let t=0;for(const n in r)t+=this.matrix[n][e]*r[n],r[n]=0;Es(i[e])&&(t+=i[e]);const a=Math.trunc(t);n[e]=a,r[e]=(1e3*t-1e3*a)/1e3}else Es(i[e])&&(r[e]=i[e]);for(const e in r)0!==r[e]&&(n[o]+=e===o?r[e]:r[e]/this.matrix[o][e]);return ju(this.matrix,n),Fu(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Fu(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;return Fu(this,{values:Lu(this.values)},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of Au)if(!t(this.values[n],e.values[n]))return!1;return!0}};const Ru="Invalid Interval";let Pu=class e{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}
1static invalid(t,n=null){if(!t)throw new wa("need to specify a reason the Interval is invalid");const r=t instanceof us?t:new us(t,n);if(ls.throwOnInvalid)throw new ga(r);return new e({invalid:r})}static fromDateTimes(t,n){const r=Cc(t),i=Cc(n),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Pu.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Pu.invalid("missing or invalid end"):Pu.invalid("missing or invalid start")}(r,i);return o??new e({start:r,end:i})}static after(t,n){const r=Mu.fromDurationLike(n),i=Cc(t);return e.fromDateTimes(i,i.plus(r))}static before(t,n){const r=Mu.fromDurationLike(n),i=Cc(t);return e.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let t,o,a,s;try{t=Ac.fromISO(r,n),o=t.isValid}catch{o=!1}try{a=Ac.fromISO(i,n),s=a.isValid}catch{s=!1}if(o&&s)return e.fromDateTimes(t,a);if(o){const r=Mu.fromISO(i,n);if(r.isValid)return e.after(t,r)}else if(s){const t=Mu.fromISO(r,n);if(t.isValid)return e.before(a,t)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=null!=t&&t.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:t,end:n}={}){return this.isValid?e.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Cc).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const t=n[o]||this.e,a=+t>+this.e?this.e:t;r.push(e.fromDateTimes(i,a)),i=a,o+=1}return r}splitBy(t){const n=Mu.fromDurationLike(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];let r,{s:i}=this,o=1;const a=[];for(;i<this.e;){const t=this.start.plus(n.mapUnits(e=>e*o));r=+t>+this.e?this.e:t,a.push(e.fromDateTimes(i,r)),i=r,o+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:e.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return e.fromDateTimes(n,r)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(t){let n=null,r=0;const i=[],o=t.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),a=Array.prototype.concat(...o).sort((e,t)=>e.time-t.time);for(const t of a)r+="s"===t.type?1:-1,1===r?n=t.time:(n&&+n!=+t.time&&i.push(e.fromDateTimes(n,t.time)),n=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:Ru}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
vendor: 3,468 bytes, line 1
1toLocaleString(e=eu,t={}){return this.isValid?xu.create(this.s.loc.clone(t),e).formatInterval(this):Ru}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ru}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ru}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ru}toFormat(e,{separator:t=" â "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Ru}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Mu.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}},Vu=class{static hasDST(e=ls.defaultZone){const t=Ac.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Ia.isValidZone(e)}static normalizeZone(e){return Ja(e,ls.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||za.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||za.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||za.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||za.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||za.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||za.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||za.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return za.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return za.create(t,null,"gregory").eras(e)}static features(){return{relative:Ts(),localeWeek:_s()}}};function Bu(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Mu.fromMillis(r).as("days"))}function Uu(e,t,n,r){let[i,o,a,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Bu(e,t);return(n-n%7)/7}],["days",Bu]],i={},o=e;let a,s;for(const[l,u]of r)n.indexOf(l)>=0&&(a=l,i[l]=u(e,t),s=o.plus(i),s>t?(i[l]--,(e=o.plus(i))>t&&(s=e,i[l]--,e=o.plus(i))):e=s);return[e,i,s,a]}(e,t,n);const l=t-i,u=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(a<t&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+l/(a-i)));const c=Mu.fromObject(o,r);return u.length>0?Mu.fromMillis(l,r).shiftTo(...u).plus(c):c}function qu(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(Ya.hanidec))t+=Ka.indexOf(e[n]);else for(const e in Ga){const[n,i]=Ga[e];r>=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const zu="[ Â ]",Wu=new RegExp(zu,"g");function Hu(e){return e.replace(/\./g,"\\.?").replace(Wu,zu)}function Zu(e){return e.replace(/\./g,"").replace(Wu," ").toLowerCase()}function Ju(e,t){return null===e?null:{regex:RegExp(e.map(Hu).join("|")),deser:([n])=>e.findIndex(e=>Zu(n)===Zu(e))+t}}function Yu(e,t){return{regex:e,deser:([,e,t])=>Hs(e,t),groups:t}}function Gu(e){return{regex:e,deser:([e])=>e}}
1function Ku(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const Qu={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Xu=null;function ec(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=rc(xu.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}class tc{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=ec(xu.parseFormat(t),e),this.units=this.tokens.map(t=>function(e,t){const n=Xa(t),r=Xa(t,"{2}"),i=Xa(t,"{3}"),o=Xa(t,"{4}"),a=Xa(t,"{6}"),s=Xa(t,"{1,2}"),l=Xa(t,"{1,3}"),u=Xa(t,"{1,6}"),c=Xa(t,"{1,9}"),d=Xa(t,"{2,4}"),f=Xa(t,"{4,6}"),h=e=>({regex:RegExp(Ku(e.val)),deser:([e])=>e,literal:!0}),p=(p=>{if(e.literal)return h(p);switch(p.val){case"G":return Ju(t.eras("short"),0);case"GG":return Ju(t.eras("long"),0);case"y":return qu(u);case"yy":case"kk":return qu(d,zs);case"yyyy":case"kkkk":return qu(o);case"yyyyy":return qu(f);case"yyyyyy":return qu(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return qu(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return qu(r);case"MMM":return Ju(t.months("short",!0),1);case"MMMM":return Ju(t.months("long",!0),1);case"LLL":return Ju(t.months("short",!1),1);case"LLLL":return Ju(t.months("long",!1),1);case"o":case"S":return qu(l);case"ooo":case"SSS":return qu(i);case"u":return Gu(c);case"uu":return Gu(s);case"uuu":case"E":case"c":return qu(n);case"a":return Ju(t.meridiems(),0);case"EEE":return Ju(t.weekdays("short",!1),1);case"EEEE":return Ju(t.weekdays("long",!1),1);case"ccc":return Ju(t.weekdays("short",!0),1);case"cccc":return Ju(t.weekdays("long",!0),1);case"Z":case"ZZ":return Yu(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return Yu(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return Gu(/[a-z_+-/]{1,256}?/i);case" ":return Gu(/[^\S\n\r]/);default:return h(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){const[e,t]=function(e){return[`^${e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"")}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const i in n)if(Ds(n,i)){const o=n[i],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,i,o]=n?function(e){let t,n=null;return xs(e.z)||(n=Ia.create(e.z)),xs(e.Z)||(n||(n=new Ha(e.Z)),t=e.Z),xs(e.q)||(e.M=3*(e.q-1)+1),xs(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),xs(e.u)||(e.S=Ls(e.u)),[Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{}),n,t]}(n):[null,null,void 0];if(Ds(n,"a")&&Ds(n,"H"))throw new ba("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:i,specificOffset:o}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
vendor: 9,273 bytes, line 1
1dReason:null}}function nc(e,t,n){return new tc(e,n).explainFromTokens(t)}function rc(e,t){if(!e)return null;const n=xu.create(t,e).dtFormatter((Xu||(Xu=Ac.fromMillis(1555555555555)),Xu)),r=n.formatToParts(),i=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:i}=e;if("literal"===r){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const o=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=Qu[a];if("object"==typeof s&&(s=s[o]),s)return{literal:!1,val:s}}(t,e,i))}const ic="Invalid DateTime",oc=864e13;function ac(e){return new us("unsupported zone",`the zone "${e.name}" is not supported`)}function sc(e){return null===e.weekData&&(e.weekData=gs(e.c)),e.weekData}function lc(e){return null===e.localWeekData&&(e.localWeekData=gs(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function uc(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ac({...n,...t,old:n})}function cc(e,t,n){let r=e-60*t*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;const o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function dc(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function fc(e,t,n){return cc(Bs(e),t,n)}function hc(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:i,day:Math.min(e.c.day,Vs(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=Mu.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Bs(o);let[l,u]=cc(s,n,e.zone);return 0!==a&&(l+=a,u=e.zone.offset(l)),{ts:l,o:u}}function pc(e,t,n,r,i,o){const{setZone:a,zone:s}=n;if(e&&0!==Object.keys(e).length||t){const r=t||s,i=Ac.fromObject(e,{...n,zone:r,specificOffset:o});return a?i:i.setZone(s)}return Ac.invalid(new us("unparsable",`the input "${i}" can't be parsed as ${r}`))}function mc(e,t,n=!0){return e.isValid?xu.create(za.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function yc(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=Fs(e.c.year,r?6:4),"year"===n)return i;if(t){if(i+="-",i+=Fs(e.c.month),"month"===n)return i;i+="-"}else if(i+=Fs(e.c.month),"month"===n)return i;return i+=Fs(e.c.day),i}function gc(e,t,n,r,i,o,a){let s=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=Fs(e.c.hour),"hour"===a)break;if(t){if(l+=":",l+=Fs(e.c.minute),"minute"===a)break;s&&(l+=":",l+=Fs(e.c.second))}else{if(l+=Fs(e.c.minute),"minute"===a)break;s&&(l+=Fs(e.c.second))}if("second"===a)break;s&&(!r||0!==e.c.millisecond)&&(l+=".",l+=Fs(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&0===e.offset&&!o?l+="Z":e.o<0?(l+="-",l+=Fs(Math.trunc(-e.o/60)),l+=":",l+=Fs(Math.trunc(-e.o%60))):(l+="+",l+=Fs(Math.trunc(e.o/60)),l+=":",l+=Fs(Math.trunc(e.o%60)))),o&&(l+="["+e.zone.ianaName+"]"),l}const vc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},bc={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},wc=["year","month","day","hour","minute","second","millisecond"],Sc=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Nc=["year","ordinal","hour","minute","second","millisecond"];function xc(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ka(e);return t}function Ec(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return xc(e)}}function Oc(e,t){const n=Ja(t.zone,ls.defaultZone);if(!n.isValid)return Ac.invalid(ac(n));const r=za.fromObject(t);let i,o;if(xs(e.year))i=ls.now();else{for(const t of wc)xs(e[t])&&(e[t]=vc[t]);const t=Ss(e)||Ns(e);if(t)return Ac.invalid(t);const r=function(e){if(void 0===Ic&&(Ic=ls.now()),"iana"!==e.type)return e.offset(Ic);const t=e.name;let n=Dc.get(t);return void 0===n&&(n=e.offset(Ic),Dc.set(t,n)),n}(n);[i,o]=fc(e,r,n)}return new Ac({ts:i,zone:n,loc:r,o:o})}function Tc(e,t,n){const r=!!xs(n.round)||n.round,i=xs(n.rounding)?"trunc":n.rounding,o=(e,o)=>(e=Ms(e,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(e,o)),a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return o(a(n.unit),n.unit);for(const e of n.units){const t=a(e);if(Math.abs(t)>=1)return o(t,e)}return o(e>t?-0:0,n.units[n.units.length-1])}function _c(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let Ic;const Dc=new Map;let Ac=class e{constructor(e){const t=e.zone||ls.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new us("invalid input"):null)||(t.isValid?null:ac(t));this.ts=xs(e.ts)?ls.now():e.ts;let r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{const o=Es(e.o)&&!e.old?e.o:t.offset(this.ts);r=dc(this.ts,o),n=Number.isNaN(r.year)?new us("invalid input"):null,r=n?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||za.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){const[e,t]=_c(arguments),[n,r,i,o,a,s,l]=t;return Oc({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:l},e)}static utc(){const[e,t]=_c(arguments),[n,r,i,o,a,s,l]=t;return e.zone=Ha.utcInstance,Oc({year:n,month:r,day:i,hour:o,minute:a,second:s,millisecond:l},e)}static fromJSDate(t,n={}){const r=function(e){return"[object Date]"===Object.prototype.toString.call(e)}(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid("invalid input");const i=Ja(n.zone,ls.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:za.fromObject(n)}):e.invalid(ac(i))}static fromMillis(t,n={}){if(Es(t))return t<-oc||t>oc?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ja(n.zone,ls.defaultZone),loc:za.fromObject(n)});throw new wa(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Es(t))return new e({ts:1e3*t,zone:Ja(n.zone,ls.defaultZone),loc:za.fromObject(n)});throw new wa("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Ja(n.zone,ls.defaultZone);if(!r.isValid)return e.invalid(ac(r));const i=za.fromObject(n),o=Js(t,Ec),{minDaysInFirstWeek:a,startOfWeek:s}=ws(o,i),l=ls.now(),u=xs(n.specificOffset)?r.offset(l):n.specificOffset,c=!xs(o.ordinal),d=!xs(o.year),f=!xs(o.month)||!xs(o.day),h=d||f,p=o.weekYear||o.weekNumber;if((h||c)&&p)throw new ba("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new ba("Can't mix ordinal dates with month/day");const m=p||o.weekday&&!h;let y,g,v=dc(l,u);m?(y=Sc,g=bc,v=gs(v,a,s)):c?(y=Nc,g=kc,v=bs(v)):(y=wc,g=vc);let b=!1;for(const e of y){xs(o[e])?o[e]=b?g[e]:v[e]:b=!0}const k=m?function(e,t=4,n=1){const r=Os(e.weekYear),i=Cs(e.weekNumber,1,qs(e.weekYear,t,n)),o=Cs(e.weekday,1,7);return r?i?!o&&fs("weekday",e.weekday):fs("week",e.weekNumber):fs("weekYear",e.weekYear)}(o,a,s):c?function(e){const t=Os(e.year),n=Cs(e.ordinal,1,Ps(e.year));return t?!n&&fs("ordinal",e.ordinal):fs("year",e.year)}(o):Ss(o),w=k||Ns(o);if(w)return e.invalid(w);const S=m?vs(o,a,s):c?ks(o):o,[N,x]=fc(S,u,r),E=new e({ts:N,zone:r,o:x,loc:i});return o.weekday&&h&&t.weekday!==E.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${E.toISO()}`):E.isValid?E:e.invalid(E.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return el(e,[Ol,Dl],[Tl,Al],[_l,Cl],[Il,Fl])}(e);return pc(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return el(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[bl,kl])}(e);return pc(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return el(e,[wl,xl],[Sl,xl],[Nl,El])}(e);return pc(n,r,t,"HTTP",t)}static fromFormat(t,n,r={}){if(xs(t)||xs(n))throw new wa("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,a=za.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[s,l,u,c]=function(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:a}=nc(e,t,n);return[r,i,o,a]}(a,t,n);
1return c?e.invalid(c):pc(s,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return e.fromFormat(t,n,r)}static fromSQL(e,t={}){const[n,r]=function(e){return el(e,[jl,Dl],[Ll,Ml])}(e);return pc(n,r,t,"SQL",e)}static invalid(t,n=null){if(!t)throw new wa("need to specify a reason the DateTime is invalid");const r=t instanceof us?t:new us(t,n);if(ls.throwOnInvalid)throw new ya(r);return new e({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=rc(e,za.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return ec(xu.parseFormat(e),za.fromObject(t)).map(e=>e.val).join("")}static resetCache(){Ic=void 0,Dc.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
vendor: 9,284 bytes, line 1
1get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?sc(this).weekYear:NaN}get weekNumber(){return this.isValid?sc(this).weekNumber:NaN}get weekday(){return this.isValid?sc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?lc(this).weekday:NaN}get localWeekNumber(){return this.isValid?lc(this).weekNumber:NaN}get localWeekYear(){return this.isValid?lc(this).weekYear:NaN}get ordinal(){return this.isValid?bs(this.c).ordinal:NaN}get monthShort(){return this.isValid?Vu.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Vu.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Vu.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Vu.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Bs(this.c),r=this.zone.offset(n-e),i=this.zone.offset(n+e),o=this.zone.offset(n-r*t),a=this.zone.offset(n-i*t);if(o===a)return[this];const s=n-o*t,l=n-a*t,u=dc(s,o),c=dc(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[uc(this,{ts:s}),uc(this,{ts:l})]:[this]}get isInLeapYear(){return Rs(this.year)}get daysInMonth(){return Vs(this.year,this.month)}get daysInYear(){return this.isValid?Ps(this.year):NaN}get weeksInWeekYear(){return this.isValid?qs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?qs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=xu.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Ha.instance(e),t)}toLocal(){return this.setZone(ls.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if((t=Ja(t,ls.defaultZone)).equals(this.zone))return this;if(t.isValid){let e=this.ts;if(n||r){const n=t.offset(this.ts),r=this.toObject();[e]=fc(r,n,t)}return uc(this,{ts:e,zone:t})}return e.invalid(ac(t))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return uc(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Js(e,Ec),{minDaysInFirstWeek:n,startOfWeek:r}=ws(t,this.loc),i=!xs(t.weekYear)||!xs(t.weekNumber)||!xs(t.weekday),o=!xs(t.ordinal),a=!xs(t.year),s=!xs(t.month)||!xs(t.day),l=a||s,u=t.weekYear||t.weekNumber;if((l||o)&&u)throw new ba("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new ba("Can't mix ordinal dates with month/day");let c;i?c=vs({...gs(this.c,n,r),...t},n,r):xs(t.ordinal)?(c={...this.toObject(),...t},xs(t.day)&&(c.day=Math.min(Vs(c.year,c.month),c.day))):c=ks({...bs(this.c),...t});const[d,f]=fc(c,this.o,this.zone);return uc(this,{ts:d,o:f})}plus(e){if(!this.isValid)return this;return uc(this,hc(this,Mu.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return uc(this,hc(this,Mu.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=Mu.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?xu.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ic}toLocaleString(e=eu,t={}){return this.isValid?xu.create(this.loc.clone(t),e).formatDateTime(this):ic}toLocaleParts(e={}){return this.isValid?xu.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===e;let s=yc(this,a,o=xc(o));return wc.indexOf(o)>=3&&(s+="T"),s+=gc(this,a,t,n,r,i,o),s}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?yc(this,"extended"===e,xc(t)):null}toISOWeekDate(){return mc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended",precision:a="milliseconds"}={}){return this.isValid?(a=xc(a),(r&&wc.indexOf(a)>=3?"T":"")+gc(this,"extended"===o,t,e,n,i,a)):null}toRFC2822(){return mc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return mc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?yc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),mc(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ic}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Mu.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=function(e){return Array.isArray(e)?e:[e]}(t).map(Mu.normalizeUnit),o=e.valueOf()>this.valueOf(),a=Uu(o?this:e,o?e:this,i,r);return o?a.negate():a}diffNow(t="milliseconds",n={}){return this.diff(e.now(),t,n)}until(e){return this.isValid?Pu.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=r&&r<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),Tc(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?Tc(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new wa("min requires all arguments be DateTimes");return Is(t,e=>e.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new wa("max requires all arguments be DateTimes");return Is(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:i=null}=n;return nc(za.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(t,n,r={}){return e.fromFormatExplain(t,n,r)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,i=za.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new tc(i,e)}static fromFormatParser(t,n,r={}){if(xs(t)||xs(n))throw new wa("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,a=za.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!a.equals(n.locale))throw new wa(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:u,invalidReason:c}=n.explainFromTokens(t);
1return c?e.invalid(c):pc(s,l,r,`format ${n.format}`,t,u)}static get DATE_SHORT(){return eu}static get DATE_MED(){return tu}static get DATE_MED_WITH_WEEKDAY(){return nu}static get DATE_FULL(){return ru}static get DATE_HUGE(){return iu}static get TIME_SIMPLE(){return ou}static get TIME_WITH_SECONDS(){return au}static get TIME_WITH_SHORT_OFFSET(){return su}static get TIME_WITH_LONG_OFFSET(){return lu}static get TIME_24_SIMPLE(){return uu}static get TIME_24_WITH_SECONDS(){return cu}static get TIME_24_WITH_SHORT_OFFSET(){return du}static get TIME_24_WITH_LONG_OFFSET(){return fu}static get DATETIME_SHORT(){return hu}static get DATETIME_SHORT_WITH_SECONDS(){return pu}static get DATETIME_MED(){return mu}static get DATETIME_MED_WITH_SECONDS(){return yu}static get DATETIME_MED_WITH_WEEKDAY(){return gu}static get DATETIME_FULL(){return vu}static get DATETIME_FULL_WITH_SECONDS(){return bu}static get DATETIME_HUGE(){return ku}static get DATETIME_HUGE_WITH_SECONDS(){return wu}};function Cc(e){if(Ac.isDateTime(e))return e;if(e&&e.valueOf&&Es(e.valueOf()))return Ac.fromJSDate(e);if(e&&"object"==typeof e)return Ac.fromObject(e);throw new wa(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Fc=e=>{const t=Math.floor(Math.abs(e)/60),n=Math.abs(e)%60;return`UTC${e>=0?"+":"-"}${t}${n?`:${n.toString().padStart(2,"0")}`:""}`};Object.fromEntries(["America/Los_Angeles","America/Tijuana","America/Vancouver","America/Denver","America/Chihuahua","America/Hermosillo","America/Mazatlan","America/Chicago","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Mexico_City","America/Bogota","America/Cancun","America/Guayaquil","America/Havana","America/Jamaica","America/Lima","America/New_York","America/Panama","America/Port-au-Prince","America/Rio_Branco","America/Toronto","America/Caracas","America/La_Paz","America/Manaus","America/Puerto_Rico","America/Santo_Domingo","America/Argentina/Buenos_Aires","America/Argentina/Cordoba","America/Argentina/Mendoza","America/Asuncion","America/Fortaleza","America/Montevideo","America/Santiago","America/Sao_Paulo","America/Noronha","Europe/Lisbon","Europe/London","Europe/Amsterdam","Europe/Berlin","Africa/Lagos","Europe/Madrid","Europe/Paris","Europe/Rome","Africa/Cairo","Africa/Johannesburg","Europe/Istanbul","Africa/Nairobi","Asia/Dubai","Asia/Kolkata","Asia/Jakarta","Asia/Hong_Kong","Asia/Manila","Australia/Perth","Asia/Shanghai","Asia/Singapore","Asia/Seoul","Asia/Tokyo","Australia/Melbourne","Australia/Sydney","Pacific/Auckland"].map(e=>{const t=Ac.now().setZone(e).offset;return{timezone:e,offsetText:Fc(t),offsetMinutes:t}}).sort((e,t)=>e.offsetMinutes-t.offsetMinutes).map(({timezone:e,offsetText:t})=>[e,t]));var $c="Invariant Violation",jc=Object.setPrototypeOf,Lc=void 0===jc?function(e,t){return e.__proto__=t,e}:jc,Mc=function(e){function t(n){void 0===n&&(n=$c);var r=e.call(this,"number"==typeof n?$c+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=$c,Lc(r,t.prototype),r}return p(t,e),t}(Error);function Rc(e,t){if(!e)throw new Mc(t)}var Pc=["debug","log","warn","error","silent"],Vc=Pc.indexOf("log");function Bc(e){return function(){if(Pc.indexOf(e)>=Vc)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=Bc("debug"),e.log=Bc("log"),e.warn=Bc("warn"),e.error=Bc("error")}(Rc||(Rc={}));var Uc="3.14.0";function qc(e){try{return e()}catch{}}const zc=qc(function(){return globalThis})||qc(function(){return window})||qc(function(){return self})||qc(function(){return global})||qc(function(){return qc.constructor("return this")()});var Wc=new Map;function Hc(e,t){var n=function(e){var t=Wc.get(e)||1;return Wc.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}function Zc(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=Qc(i))||(t=Xc(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var Jc=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||Rc(e,Qc(t,n)||Xc(t,n))},{debug:Zc(Rc.debug),log:Zc(Rc.log),warn:Zc(Rc.warn),error:Zc(Rc.error)});function Yc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];
1return new Mc(Qc(e,t)||Xc(e,t))}var Gc=Symbol.for("ApolloErrorMessageHandler_"+Uc);function Kc(e){if("string"==typeof e)return e;try{return Hc(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Qc(e,t){if(void 0===t&&(t=[]),e)return zc[Gc]&&zc[Gc](e,t.map(Kc))}function Xc(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Uc,message:e,args:t.map(Kc)})))}var ed=Symbol();var td=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,a=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.name="ApolloError",u.graphQLErrors=r||[],u.protocolErrors=i||[],u.clientErrors=o||[],u.networkError=a||null,u.message=s||function(e){var t=y(y(y([],e.graphQLErrors),e.clientErrors),e.protocolErrors);return e.networkError&&t.push(e.networkError),t.map(function(e){return g(e)&&e.message||"Error message not found."}).join("\n")}(u),u.extraInfo=l,u.cause=y(y(y([a],r||[]),i||[]),o||[]).find(function(e){return!!e})||null,u.__proto__=t.prototype,u}return p(t,e),t}(Error);function nd(e,t){var n=typeof Symbol<"u"&&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 rd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rd(e,t)}}(e))||t){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.")}function rd(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 id(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 od(e,t,n){return t&&id(e.prototype,t),n&&id(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ad=function(){return"function"==typeof Symbol},sd=function(e){return ad()&&!!Symbol[e]},ld=function(e){return sd(e)?Symbol[e]:"@@"+e};ad()&&!sd("observable")&&(Symbol.observable=Symbol("observable"));var ud=ld("iterator"),cd=ld("observable"),dd=ld("species");function fd(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function hd(e){var t=e.constructor;return void 0!==t&&(null===(t=t[dd])&&(t=void 0)),void 0!==t?t:Sd}function pd(e){pd.log?pd.log(e):setTimeout(function(){throw e})}function md(e){Promise.resolve().then(function(){try{e()}catch(e){pd(e)}})}function yd(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=fd(t,"unsubscribe");n&&n.call(t)}}catch(e){pd(e)}}function gd(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function vd(e,t,n){e._state="running";var r=e._observer;try{var i=fd(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(gd(e),!i)throw n;i.call(r,n);break;case"complete":gd(e),i&&i.call(r)}}catch(e){pd(e)}"closed"===e._state?yd(e):"running"===e._state&&(e._state="ready")}function bd(e,t,n){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:n});if("ready"!==e._state)return e._state="buffering",e._queue=[{type:t,value:n}],void md(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(vd(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});vd(e,t,n)}}var kd=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new wd(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&&(gd(this),yd(this))},od(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),wd=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){bd(this._subscription,"next",e)},t.error=function(e){bd(this._subscription,"error",e)},t.complete=function(){bd(this._subscription,"complete")},od(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Sd=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 kd(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(hd(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(hd(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=hd(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),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=hd(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=hd(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()}
1return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[cd]=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=fd(t,cd);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof Sd}(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(sd("iterator")&&(r=fd(t,ud)))return new n(function(e){md(function(){if(!e.closed){for(var n,i=nd(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){md(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];return new("function"==typeof this?this:e)(function(e){md(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},od(e,null,[{key:dd,get:function(){return this}}]),e}();ad()&&Object.defineProperty(Sd,Symbol("extensions"),{value:{symbol:cd,hostReportError:pd},configurable:!0});var Nd=((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports))((e,t)=>{!function(e){var t,n=e.Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t="function"==typeof n.for?n.for("https://github.com/benlesh/symbol-observable"):n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable"}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:typeof t<"u"?t:Function("return this")())});Nd();var xd=Sd.prototype,Ed="@@observable";function Od(){}xd[Ed]||(xd[Ed]=function(){return this});const Td=Od,_d=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},Id=typeof WeakMap<"u"?WeakMap:Map,Dd=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Od,unregister:Od}};let Ad=class{constructor(e=1/0,t=Td){this.max=e,this.dispose=t,this.map=new Id,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new _d(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Dd(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let 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.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var Cd=new WeakSet;var Fd,$d=function(e,t){var n=new Ad(e,t);return n.set=function(e,t){var n=Ad.prototype.set.call(this,e,t);return function(e){e.size<=(e.max||-1)||Cd.has(e)||(Cd.add(e),setTimeout(function(){e.clean(),Cd.delete(e)},100))}(this),n},n},jd=Symbol.for("apollo.cacheSize"),Ld=m({},zc[jd]),Md=Object.assign(function(e){var t=Fd.get(e);return t||(t=Lt(e),Fd.set(e,t)),t},{reset:function(){Fd=new $d(Ld.print||2e3)}});Md.reset();let Rd=null;const Pd={};let Vd=1;function Bd(e){try{return e()}catch{}}const Ud="@wry/context:Slot",qd=Bd(()=>globalThis)||Bd(()=>global)||Object.create(null),zd=qd[Ud]||Array[Ud]||function(e){try{Object.defineProperty(qd,Ud,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Vd++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Rd;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Pd)break;return e!==Rd&&(Rd.slots[this.id]=t),!0}return Rd&&(Rd.slots[this.id]=Pd),!1}getValue(){if(this.hasValue())return Rd.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Rd;Rd={parent:o,slots:i};try{return t.apply(r,n)}finally{Rd=o}}static bind(e){const t=Rd;return function(){const n=Rd;try{return Rd=t,e.apply(this,arguments)}finally{Rd=n}}}static noContext(e,t,n){if(!Rd)return e.apply(n,t);{const r=Rd;try{return Rd=null,e.apply(n,t)}finally{Rd=r}}}}),{bind:Wd,noContext:Hd}=zd,Zd=new zd,Jd=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function Yd(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Gd=[];function Kd(e,t){if(!e)throw new Error(t||"assertion failure")}function Qd(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Xd(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function ef(e){return e.slice(0)}let tf=class e{constructor(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}peek(){if(1===this.value.length&&!of(this))return nf(this),this.value[0]}recompute(e){return Kd(!this.recomputing,"already recomputing"),nf(this),of(this)?function(e,t){return ff(e),Zd.withValue(e,rf,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Yd(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,!of(e)&&sf(e)}(e),Xd(e.value)}(this,e):Xd(this.value)}setDirty(){this.dirty||(this.dirty=!0,af(this),Yd(this))}dispose(){this.setDirty(),ff(this),lf(this,(e,t)=>{e.setDirty(),hf(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Gd.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Jd(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Gd.push(this.deps),this.deps=null)}};function nf(e){const t=Zd.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),of(e)?uf(t,e):cf(t,e),t}function rf(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=ef(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Qd(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(t){e.value[1]=t}e.recomputing=!1}function of(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function af(e){lf(e,uf)}function sf(e){lf(e,cf)}function lf(e,t){const n=e.parents.size;if(n){const r=Jd(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function uf(e,t){Kd(e.childValues.has(t)),Kd(of(t));const n=!of(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Gd.pop()||new Set;e.dirtyChildren.add(t),n&&af(e)}function cf(e,t){Kd(e.childValues.has(t)),Kd(!of(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,ef(t.value)):Qd(n,t.value)||e.setDirty(),df(e,t),!of(e)&&sf(e)}function df(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Gd.length<100&&Gd.push(n),e.dirtyChildren=null))}function ff(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{hf(e,n)}),e.forgetDeps(),Kd(null===e.dirtyChildren)}function hf(e,t){t.parents.delete(e),e.childValues.delete(t),df(e,t)}tf.count=0;var pf=Symbol.for("apollo.deprecations"),mf=zc,yf=new zd;function gf(e,t){(function(e){return mf[pf]||(yf.getValue()||[]).includes(e)})(e)||t()}function vf(e){!function(e){Jc(e&&"Document"===e.kind,116);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw Yc(117,e.kind);return e});Jc(t.length<=1,118,t.length)}(e);for(var t,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 Yc(123)}function bf(e,t){return t?t(e):Sd.of()}
1function kf(e){return"function"==typeof e?new Sf(e):e}function wf(e){return e.request.length<=1}var Sf=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return Sd.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(kf).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i,o=kf(n),a=kf(r||new e(bf));return i=wf(o)&&wf(a)?new e(function(e){return t(e)?o.request(e)||Sd.of():a.request(e)||Sd.of()}):new e(function(e,n){return t(e)?o.request(e,n)||Sd.of():a.request(e,n)||Sd.of()}),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var n=m({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=m(m({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return m({},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?function(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}(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 Yc(58,i)}return e}(t))))||Sd.of()},e.concat=function(t,n){var r=kf(t);if(wf(r))return!1!==globalThis.__DEV__&&Jc.warn(47,r),r;var i,o=kf(n);return i=wf(o)?new e(function(e){return r.request(e,function(e){return o.request(e)||Sd.of()})||Sd.of()}):new e(function(e,t){return r.request(e,function(e){return o.request(e,t)||Sd.of()})||Sd.of()}),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(bf)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw Yc(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&gf("onError",function(){!1!==globalThis.__DEV__&&Jc.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&Jc.warn(50),this.onError=e,this},e}();var Nf=function(e){function t(t){var n=e.call(this)||this;return n.client=t,n}return p(t,e),t.prototype.request=function(e){var t=this;return new Sd(function(n){return t.client.subscribe(m(m({},e),{query:Md(e.query)}),{next:n.next.bind(n),complete:n.complete.bind(n),error:function(e){if(e instanceof Error)return n.error(e);var t=function(e){return g(e)&&"code"in e&&"reason"in e}(e);return t||function(e){var t;return g(e)&&(null===(t=e.target)||void 0===t?void 0:t.readyState)===WebSocket.CLOSED}(e)?n.error(new Error("Socket closed".concat(t?" with event ".concat(e.code):"").concat(t?" ".concat(e.reason):""))):n.error(new td({graphQLErrors:Array.isArray(e)?e:[e]}))}})})},t}(Sf);const xf=()=>Object.create(null),{forEach:Ef,slice:Of}=Array.prototype,{hasOwnProperty:Tf}=Object.prototype;let _f,If=class e{constructor(e=!0,t=xf){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Ef.call(e,e=>t=t.getChildTrie(e)),Tf.call(t,"data")?t.data:t.data=this.makeData(Of.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(Of.call(e,1)),!i.data&&!i.weak&&(!i.strong||!i.strong.size)&&r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}};function Df(){}class Af{constructor(e=1/0,t=Df){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);
1return 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)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const 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)}}function Cf(...e){return(_f||(_f=new If("function"==typeof WeakMap))).lookupArray(e)}const Ff=new Set;function $f(e,t){return jf(e,t)}function jf(e,t,n){if(void 0===n&&(n=new Map),n.has(e))return n.get(e);var r=!1;if(Array.isArray(e)){var i=[];if(n.set(e,i),e.forEach(function(e,o){var a=jf(e,t,n);r||(r=a!==e),i[o]=a}),r)return i}else if(v(e)){var o=Object.create(Object.getPrototypeOf(e));if(n.set(e,o),Object.keys(e).forEach(function(i){if(i!==t){var a=jf(e[i],t,n);r||(r=a!==e[i]),o[i]=a}else r=!0}),r)return o}return e}function Lf(e){return $f(e,"__typename")}function Mf(e,t){if("__KEEP"===t)return e;if(Array.isArray(e))return e.map(function(e){return Mf(e,t)});if(v(e)){var n={};return Object.keys(e).forEach(function(r){var i=e[r];if("__typename"!==r){var o=t[r];n[r]=o?Mf(i,o):Lf(i)}}),n}return e}var Rf=function(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=Cf,normalizeResult:i,subscribe:o,cache:a=Af}=Object.create(null)){const s="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new tf(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const l=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),Ff.add(s),Zd.hasValue()||(Ff.forEach(e=>e.clean()),Ff.clear()),l};function u(e){const t=e&&s.get(e);t&&t.setDirty()}function c(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),l.dirtyKey=u,l.dirty=function(){u(r.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(r.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}(function(e){var t={};return $t(e,{VariableDefinition:function(e){t[e.variable.name.value]=Pf(e.type)}}),t},{max:Ld["removeTypenameFromVariables.getVariableDefinitions"]||2e3,cache:Ad});function Pf(e){switch(e.kind){case Ot.NON_NULL_TYPE:case Ot.LIST_TYPE:return Pf(e.type);case Ot.NAMED_TYPE:return e.name.value}}function Vf(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function Bf(e){return"object"===Vf(e)}function Uf(e,t){return e.length<124?e:t}var qf=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(qf||{}),zf=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(zf||{});function Wf(e){if(!Bf(e))throw new Error(`Message is expected to be an object, but got ${Vf(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${Vf(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!Bf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Vf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);
1if(!Bf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Vf(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Vf(e.payload.query)}`);if(null!=e.payload.variables&&!Bf(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Vf(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==Vf(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Vf(e.payload.operationName)}`);if(null!=e.payload.extensions&&!Bf(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Vf(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Vf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Bf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Vf(e.payload)}`);break;case"error":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Vf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!function(e){return Array.isArray(e)&&e.length>0&&e.every(e=>"message"in e)}(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Vf(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function Hf(e,t){return Wf("string"==typeof e?JSON.parse(e,t):e)}function Zf(e,t){return Wf(e),JSON.stringify(e,t)}var Jf=Object.defineProperty,Yf=(e,t,n)=>((e,t,n)=>t in e?Jf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);function Gf(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:l=0,retryAttempts:u=5,retryWait:c=async function(e){const t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:d=Qf,on:f,webSocketImpl:h,generateID:p=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:m,jsonMessageReviver:y}=e;let g;if(h){if(!function(e){return"function"==typeof e&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}(h))throw new Error("Invalid WebSocket implementation provided");g=h}else typeof WebSocket<"u"?g=WebSocket:typeof global<"u"?g=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(g=window.WebSocket||window.MozWebSocket);if(!g)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const v=g,b=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null==(n=e[t.id])||n.call(e,t))}}})(),t={connecting:null!=f&&f.connecting?[f.connecting]:[],opened:null!=f&&f.opened?[f.opened]:[],connected:null!=f&&f.connected?[f.connected]:[],ping:null!=f&&f.ping?[f.ping]:[],pong:null!=f&&f.pong?[f.pong]:[],message:null!=f&&f.message?[e.emit,f.message]:[e.emit],closed:null!=f&&f.closed?[f.closed]:[],error:null!=f&&f.error?[f.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{const e=r.indexOf(n);e>-1&&r.splice(e,1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function k(e){const t=[b.on("error",n=>
1{t.forEach(e=>e()),e(n)}),b.on("closed",n=>{t.forEach(e=>e()),e(n)})]}let w,S,N=0,x=!1,E=0,O=!1;async function T(){clearTimeout(S);const[e,r]=await(w??(w=new Promise((e,r)=>(async()=>{if(x){if(await c(E),!N)return w=void 0,r({code:1e3,reason:"All Subscriptions Gone"});E++}b.emit("connecting",x);const i=new v("function"==typeof t?await t():t,"graphql-transport-ws");let o,u;function d(){isFinite(a)&&a>0&&(clearTimeout(u),u=setTimeout(()=>{i.readyState===v.OPEN&&(i.send(Zf({type:zf.Ping})),b.emit("ping",!1,void 0))},a))}k(e=>{w=void 0,clearTimeout(o),clearTimeout(u),r(e),e instanceof Kf&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=e=>b.emit("error",e),i.onclose=e=>b.emit("closed",e),i.onopen=async()=>{try{b.emit("opened",i);const e="function"==typeof n?await n():n;if(i.readyState!==v.OPEN)return;i.send(Zf(e?{type:zf.ConnectionInit,payload:e}:{type:zf.ConnectionInit},m)),isFinite(l)&&l>0&&(o=setTimeout(()=>{i.close(qf.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),d()}catch(e){b.emit("error",e),i.close(qf.InternalClientError,Uf(e instanceof Error?e.message:String(e),"Internal client error"))}};let f=!1;i.onmessage=({data:t})=>{try{const n=Hf(t,y);if(b.emit("message",n),"ping"===n.type||"pong"===n.type)return b.emit(n.type,!0,n.payload),void("pong"===n.type?d():s||(i.send(Zf(n.payload?{type:zf.Pong,payload:n.payload}:{type:zf.Pong})),b.emit("pong",!1,n.payload)));if(f)return;if(n.type!==zf.ConnectionAck)throw new Error(`First message cannot be of type ${n.type}`);clearTimeout(o),f=!0,b.emit("connected",i,n.payload,x),x=!1,E=0,e([i,new Promise((e,t)=>k(t))])}catch(e){i.onmessage=null,b.emit("error",e),i.close(qf.BadResponse,Uf(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===v.CLOSING&&await r;let i=()=>{};const u=new Promise(e=>i=e);return[e,i,Promise.race([u.then(()=>{if(!N){const t=()=>e.close(1e3,"Normal Closure");isFinite(o)&&o>0?S=setTimeout(()=>{e.readyState===v.OPEN&&t()},o):t()}}),r])]}function _(e){if(Qf(e)&&(function(e){return![1e3,1001,1006,1005,1012,1013,1014].includes(e)&&(e>=1e3&&e<=1999)}(e.code)||[qf.InternalServerError,qf.InternalClientError,qf.BadRequest,qf.BadResponse,qf.Unauthorized,qf.SubprotocolNotAcceptable,qf.SubscriberAlreadyExists,qf.TooManyInitialisationRequests].includes(e.code)))throw e;if(O)return!1;if(Qf(e)&&1e3===e.code)return N>0;if(!u||E>=u||!d(e))throw e;return x=!0}function I(e,t){const n=p(e);let r=!1,i=!1,o=()=>{N--,r=!0};return(async()=>{for(N++;;)try{const[a,s,l]=await T();if(r)return s();const u=b.onMessage(n,e=>{switch(e.type){case zf.Next:return void t.next(e.payload);case zf.Error:return i=!0,r=!0,t.error(e.payload),void o();case zf.Complete:return r=!0,void o()}});return a.send(Zf({id:n,type:zf.Subscribe,payload:e},m)),o=()=>{!r&&a.readyState===v.OPEN&&a.send(Zf({id:n,type:zf.Complete},m)),N--,r=!0,s()},void await l.finally(u)}catch(e){if(!_(e))return}})().then(()=>{i||t.complete()}).catch(e=>{t.error(e)}),()=>{r||o()}}return r||(async()=>{for(N++;;)try{const[,,e]=await T();await e}catch(e){try{if(!_(e))return}catch(e){return null==i?void 0:i(e)}}})(),{on:b.on,subscribe:I,iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=I(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),i=async function*(){for(;;){for(t.length||await new Promise(e=>n.resolve=e);t.length;)yield t.shift();if(n.error)throw n.error;if(n.done)return}}();return i.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),i.return=async()=>(r(),{done:!0,value:void 0}),i},async dispose(){if(O=!0,w){const[e]=await w;e.close(1e3,"Normal Closure")}},terminate(){w&&b.emit("closed",new Kf)}}}class Kf extends Error{constructor(){super(...arguments),Yf(this,"name","TerminatedCloseEvent"),Yf(this,"message","4499: Terminated"),Yf(this,"code",4499),Yf(this,"reason","Terminated"),Yf(this,"wasClean",!1)}}function Qf(e){return Bf(e)&&"code"in e&&"reason"in e}const Xf=new Fr({uri:e=>`/graphql?op=${e.operationName}`,credentials:"include"}),eh=function(e){return void 0===e&&(e=Object.create(null)),Object.assign(new Sf(function(t,n){var r=e.except,i=t.query,o=t.variables;return o&&(t.variables=r?function(e,t,n){var r=Rf(e);return Object.fromEntries(Object.entries(t).map(function(e){var t=e[0],i=e[1],o=r[t],a=n[o];return e[1]=a?Mf(i,a):Lf(i),e}))}
1(i,o,r):Lf(o)),n(t)}),!1!==globalThis.__DEV__?{getMemoryInternals:function(){var e;return{removeTypenameFromVariables:{getVariableDefinitions:null!==(e=null==Rf?void 0:Rf.size)&&void 0!==e?e:0}}}}:{})}(),th=function(e){return new Sf(function(t,n){var r=function(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}(t,[]);return new Sd(function(i){var o,a=!1;return Promise.resolve(r).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){a||(o=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})}((e,{headers:t})=>{const n=Jr(),r=n?{authorization:`Bearer ${n}`}:{};return{headers:{...ri(),...t,...r}}}),nh=new Set([qf.InternalClientError,qf.BadRequest,qf.BadResponse,qf.Unauthorized,qf.Forbidden,qf.SubprotocolNotAcceptable,qf.SubscriberAlreadyExists,qf.TooManyInitialisationRequests]),rh=new vr((e,t)=>t(e).map(t=>(console.log({"GraphQL Response":e.operationName,Result:t,"Cache Snapshot":JSON.parse(JSON.stringify(e.getContext().cache.extract()))}),t)));function ih(e){return new Sf(function(t,n){return new Sd(function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){i.errors?a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}):function(e){return!!e.extensions&&Array.isArray(e.extensions[ed])}(i)&&(a=e({protocolErrors:i.extensions[ed],response:i,operation:t,forward:n})),a?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}(({reconnectEventName:e}={})=>{const t=new URL(document.location.origin);let n,r;t.protocol="https:"===t.protocol?"wss:":"ws:",t.pathname="/graphql";const i=new Nf(Gf({url:t.toString(),connectionParams:async()=>{const e=Jr();return e?{authToken:`Bearer ${e}`}:{}},lazy:!0,keepAlive:1e4,retryAttempts:16,connectionAckWaitTimeout:2e4,retryWait:async e=>{const t=Math.min(5e3*2**e,6e4)*(.5+Math.random());return ti.warn("socket-retry",{attempt:e,delay:t}),(e=>new Promise(t=>{let n=null,r=!1;const i=()=>{r||(r=!0,n&&clearTimeout(n),window.removeEventListener("online",i),t())};n=setTimeout(i,e),window.addEventListener("online",i,{once:!0})}))(t)},shouldRetry:e=>!((e=>"object"==typeof e&&null!==e&&"code"in e&&"number"==typeof e.code)(e)&&nh.has(e.code)),on:{connected:(t,r,i)=>{n=t,i&&e&&window.dispatchEvent(new CustomEvent(e))},closed:e=>{ti.warn("socket-closed",e),r&&(clearTimeout(r),r=void 0),n=void 0},error:e=>ti.warn("socket-error",e),ping:e=>{e||(r=setTimeout(()=>{ti.error("socket-pong-timeout",{message:"No pong received within 15 seconds after ping"}),n&&n.readyState===WebSocket.OPEN&&n.close(4408,"Request Timeout")},15e3))},pong:e=>{e&&r&&(clearTimeout(r),r=void 0)}}}));window.addEventListener("offline",()=>{var e;ti.warn("network-connection",!1),null==(e=i.client)||e.terminate()}),window.addEventListener("online",()=>{var e;ti.warn("network-connection",!0),null==(e=i.client)||e.terminate()});const o=br(({query:e})=>{const t=vf(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},i,th.concat(Xf));"true"===b("__cacheLogger")?rh.concat(eh).concat(o):eh.concat(o)})(),function(e){function t(t){var n=e.call(this)||this;return n.link=ih(t),n}p(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(Sf);const oh=()=>{var e;return(null==(e=oa.get("_ga"))?void 0:e.substring(6))||null},ah=new k({processQueue:e=>w("/api/in-house-service/data",JSON.stringify(e))}),sh=()=>{const e=!!localStorage.getItem("_cf/__alreadyVisited");e||localStorage.setItem("_cf/__alreadyVisited","1");const t=new URL(window.location.href),n=t.searchParams.get("ref")||t.searchParams.get("interruptedHref")||t.searchParams.get("video_ref")||t.searchParams.get("utm_referrer")||document.referrer||(()=>{var e,t;const n=null==(t=null==(e=window.parent)?void 0:e.location)?void 0:t.hostname;return n&&n!==window.location.hostname?n:null})()||null;return{ref:n,alreadyVisited:e}},lh=(e,t,n,r=1/0)=>{r<=0||(t()?e():setTimeout(()=>{lh(e,t,n,r-1)},n))},uh={},ch=(e,t)=>(e in uh||(uh[e]=new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=()=>t(),r.onerror=()=>n(),document.head.append(r)})),uh[e]);const dh=()=>function(e,t,n,r,i){e[r]=e[r]||[],e[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});const o=t.getElementsByTagName(n)[0],a=t.createElement(n);a.async=!0,a.src=`https://www.googletagmanager.com/gtm.js?id=${i}`,o.parentNode.insertBefore(a,o)}(window,document,"script","dataLayer","GTM-KW2J56B"),fh=()=>
1{if(!e)return!0;const t=JSON.parse(oa.get(r)||JSON.stringify(null));return!t&&Jr()||window.__cf_skipaccept_gdpr?(oa.set(r,JSON.stringify(!0)),!0):null===t?!window.__cf_ignore_gdpr&&!window.__cf_awesome_ignore_gdpr&&t:t},hh=[],ph=e=>{oa.set(r,JSON.stringify(e)),hh.forEach(t=>t(e))},mh=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","GB","CH","BR"],yh=fh();yh&&e&&dh();const gh=()=>{if(!fh())return a();const e=oa.get(t);if(e)return e;const n=a();return oa.set(t,n),n},vh=()=>{var e,t,n,r,i,o;const[,a]=((null==(o=null==(i=null==(r=null==(n=null==(t=null==(e=window.__APOLLO_CLIENT__)?void 0:e.cache)?void 0:t.data)?void 0:n.data)?void 0:r.ROOT_QUERY)?void 0:i.currentUser)?void 0:o.__ref)||"").split(":");return a||localStorage.getItem("_cf/userId")||null},bh=()=>{const e=window.location.pathname.match(/\/automation\/([a-zA-Z0-9]+)\//);return e&&e[1]||null};var kh,wh,Sh=Object.defineProperty,Nh=Object.defineProperties,xh=Object.getOwnPropertyDescriptors,Eh=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,Th=Object.prototype.propertyIsEnumerable,_h=(e,t,n)=>t in e?Sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ih=(e,t)=>{for(var n in t||(t={}))Oh.call(t,n)&&_h(e,n,t[n]);if(Eh)for(var n of Eh(t))Th.call(t,n)&&_h(e,n,t[n]);return e},Dh=(e,t)=>Nh(e,xh(t));const Ah=(null==(kh=document.currentScript)?void 0:kh.src)||null,Ch=Ah&&(()=>{const{hostname:e}=window.location;return e===Lr||e.endsWith(`.${Lr}`)})()?new URL("posthog.js",Ah).href:null;function Fh(e,t){return t instanceof Error?{name:t.name,message:t.message,stack:t.stack}:t}if(window.__cf_awesome_analytics||(window.__cf_awesome_analytics={additionalProperties:{},isTestMode:"true"===localStorage.getItem(o)}),window.__cf_awesome_analytics.sendEvent=(t,n=!1)=>{var r,o,s,l,h,p,m=t,{propertyBag:y}=m,g=((e,t)=>{var n={};for(var r in e)Oh.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Eh)for(var r of Eh(e))t.indexOf(r)<0&&Th.call(e,r)&&(n[r]=e[r]);return n})(m,["propertyBag"]);const v={ssid:a(),clid:gh(),href:u(),userId:vh(),mobile:d,screen:f,country:oa.get(i),useragent:c,i18nLocale:(null==(r=window.i18n)?void 0:r.language)||null},b={gaClientId:oh()},k=Dh(Ih(Ih({},null==(o=window.__cf_awesome_analytics)?void 0:o.additionalProperties),y),{technical:v,external:b});if(null==(s=window.__cf_awesome_analytics)?void 0:s.isTestMode)console.log("Synthetic event:",Dh(Ih({},g),{propertyBag:k,immediate:n}));else try{const t={timestamp:Date.now(),type:"fe-analytics",version:1,payload:JSON.stringify(Dh(Ih({},g),{propertyBag:k}),Fh)};e||console.log(""+(n?"Immediate sent event:":"Event added to the queue:"),{timestamp:Date.now(),type:"fe-analytics",version:1,payload:Dh(Ih({},g),{propertyBag:k})}),null==(h=null==(l=window.__cf_awesome_analytics)?void 0:l._visualization)||h.onSendEvent(t,n),ah.push(t,n),e&&(null==(p=window.dataLayer)||p.push(Dh(Ih({},g),{event:"automatic_user_event"})))}catch(e){}},window.setTimeout(()=>{var e,t;const n={url:u(),botId:bh()},{ref:r,alreadyVisited:i}=sh();r&&(n.ref=r),n.alreadyVisited=i;const o=(()=>{const e=window.location.hostname.split(".");return`${e.slice(0,e.length-2).join("_")||"landing"} page`})();null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e.sendEvent)||t.call(e,{action:"visit",category:o,propertyBag:n},!0)}),window.__cf_awesome_analytics.getClid=gh,window.__cf_awesome_analytics.getSsid=a,window.__cf_awesome_analytics.getUserId=vh,null!=(wh=window.__cf_awesome_analytics).posthog||(wh.posthog=(e=>{let t,n=null,r=!1,i=!1;const o=[],s=(e=n)=>{if(!e)return;const r=fh();if(r!==t){if(t=r,!0===r)return e.opt_in_capturing({captureEventName:null}),void e.register({clid:gh(),ssid:a()});!1!==r?e.clear_opt_in_out_capturing():e.opt_out_capturing()}},l=e=>{s(),n?e(n):r&&!i&&o.push(e)};return{init:()=>{if(r||!e)return;r=!0;const t={applyConsent:s,onReady:e=>{n=e,s(),o.splice(0).forEach(t=>t(e))}};var a;window.__cf_ph_bootstrap=t,a=()=>s(),hh.push(a),ch(e).catch(()=>{i=!0,o.length=0})},capture:(e,t,n)=>l(r=>r.capture(e,t,(e=>{var t;if(e)return{transport:e.transport,send_instantly:null!=(t=e.sendInstantly)?t:"sendBeacon"===e.transport,timestamp:e.timestamp}})(n))),identify:(e,t,n)=>l(r=>{const i=r.get_property("$user_id");
1i&&i!==e&&r.reset(),r.identify(e,t,n)}),register:e=>l(t=>t.register(e)),reset:()=>l(e=>e.reset()),stopSessionRecording:()=>l(e=>e.stopSessionRecording())}})(Ch)),window.__cf_awesome_analytics.setTestMode=e=>{e?localStorage.setItem(o,"true"):localStorage.removeItem(o),window.__cf_awesome_analytics.isTestMode=e},window.addEventListener("beforeunload",()=>{ah.processRest()}),window.__cf_disable_unload_analytics||window.addEventListener("unload",()=>ah.processRest()),localStorage.getItem("_cf/__analyticsVisualization")){const e=500,t=20;ch("/product-discovery/scripts/visualization.js").then(()=>lh(()=>{var e,t,n,r,i,o,a,s,l,u,c,d;return ah.initEventHandlers({onPassedToProcessor:null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e._visualization)?void 0:t.onQueueSynchronized,onFilled:null==(r=null==(n=window.__cf_awesome_analytics)?void 0:n._visualization)?void 0:r.onQueueFilled,onProcessed:null==(o=null==(i=window.__cf_awesome_analytics)?void 0:i._visualization)?void 0:o.onNetworkInteraction,onRetry:null==(s=null==(a=window.__cf_awesome_analytics)?void 0:a._visualization)?void 0:s.onRetry,onClear:null==(u=null==(l=window.__cf_awesome_analytics)?void 0:l._visualization)?void 0:u.onQueueClear,onReturnToQueue:null==(d=null==(c=window.__cf_awesome_analytics)?void 0:c._visualization)?void 0:d.onReturnToQueue})},()=>{var e;return Boolean(null==(e=window.__cf_awesome_analytics)?void 0:e._visualization)},e,t))}var $h;$h=()=>{var e,t;if(window.__cf_awesome_analytics&&(window.__cf_awesome_analytics.gdpr={acceptGdpr:ph,isGdprAccepted:fh}),null!==yh)return;const n=oa.get(i);if(n&&!mh.includes(n.toUpperCase()))return dh(),void ph(!0);const{text:r,header:o,width:a,decline:s,accept:l}={text:'To keep on botting, you need to accept our cookies. We use them to analyze data and make your experience even better. To learn more about it, see our <a data-testid="gdpr-policy" href="https://chatfuel.com/files/PrivacyPolicy.pdf" target="_blank" rel="noopener noreferrer">Privacy Policy</a>',header:"We use cookies",width:"970px",decline:"Decline non-essential",accept:"Accept all"},u=document.createElement("div");u.className="gdpr-cover",u.innerHTML='<div class="gdpr-modal">\n<h2 class="gdpr-header">\n{{header}}\n</h2>\n<p class="gdpr-content">\n{{text}}\n</p>\n<div class="gdpr-actions">\n<button data-testid="gdpr-decline" class="gdpr-action gdpr-action-decline" id="gdpr-decline">{{decline}}</button>\n<button autofocus data-testid="gdpr-accept" class="gdpr-action" id="gdpr-accept">{{accept}}</button>\n</div>\n</div>\n'.replace("{{header}}",o).replace("{{decline}}",s).replace("{{accept}}",l).replace("{{text}}",r),document.body.appendChild(u);const c=document.createElement("style");c.innerHTML=".gdpr-cover{position:fixed;z-index:999999999;left:0;bottom:0;width:100%;display:flex;justify-content:center;align-items:flex-end;padding:0 24px 24px;pointer-events:none;}.gdpr-modal{pointer-events:auto;color:#fff;font-family:Manrope,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;background:linear-gradient(100deg,#0b1220 0%,#151d2e 100%);box-shadow:0 0 64px rgba(5,12,23,30%);border-radius:16px;padding:24px;display:flex;align-items:center;gap:40px;text-size-adjust:100%;width:100%;max-width:'{{maxWidth}}';}.gdpr-content{margin:0;font-weight:500;font-size:15px;line-height:22px;letter-spacing:-0.1px;color:rgba(255,255,255,90%);}.gdpr-content a,.gdpr-content a:visited,.gdpr-content a:hover{color:#fff;font-weight:500;font-size:15px;line-height:22px;text-decoration:underline;}.gdpr-header{display:none;}.gdpr-actions{display:flex;flex-shrink:0;justify-content:flex-end;align-items:center;gap:12px;}.gdpr-action{display:block;outline:hidden;text-align:center;white-space:nowrap;background:#f2f3f6;border:1px solid #f2f3f6;border-radius:51px;padding:9px 17px;font-family:inherit;font-weight:500;font-size:14px;line-height:20px;letter-spacing:-0.2px;color:#040b16;cursor:pointer;transition:background 0.2s ease,color 0.2s ease,border-color 0.2s ease;}.gdpr-action:focus:not(:focus-visible){outline:none;}.gdpr-action:focus-visible{outline:2px solid rgba(255,255,255,50%);outline-offset:2px;}.gdpr-action:hover{background:#fff;border-color:#fff;}.gdpr-action:active{background:#dde0e6;border-color:#dde0e6;}.gdpr-action-decline{color:#f2f3f6;border:1px solid #f2f3f6;background:transparent;}.gdpr-action-decline:hover{background:rgba(242,243,246,10%);border-color:#fff;color:#fff;}.gdpr-action-decline:active{background:rgba(242,243,246,18%);}.gdpr-space{display:inline-block;width:4px;}@media (width <=1024px){.gdpr-cover{padding:0;}.gdpr-modal{max-width:100% !important;border-radius:16px 16px 0 0;}}@media (width <=640px){.gdpr-modal{flex-direction:column;align-items:stretch;gap:24px;}.gdpr-actions{justify-content:stretch;}.gdpr-action{flex:1;}}".replace("'{{maxWidth}}
1'",a),document.head.appendChild(c),null==(e=document.getElementById("gdpr-accept"))||e.addEventListener("click",()=>{var e,t;dh(),ph(!0),null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e.sendEvent)||t.call(e,{action:"accept",category:"gdpr"}),u.remove()}),null==(t=document.getElementById("gdpr-decline"))||t.addEventListener("click",()=>{var e,t;ph(!1),null==(t=null==(e=window.__cf_awesome_analytics)?void 0:e.sendEvent)||t.call(e,{action:"decline",category:"gdpr"}),u.remove()})},"loading"!==document.readyState?$h():document.addEventListener("DOMContentLoaded",$h)}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.