@its/core 1.1.35 → 1.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.es.js CHANGED
@@ -64635,8 +64635,8 @@ function oze(e) {
64635
64635
  });
64636
64636
  }
64637
64637
  function rQe({ children: e }) {
64638
- const t = bC();
64639
- return /* @__PURE__ */ P.jsx(_U.RelayEnvironmentProvider, { environment: oze(t), children: e });
64638
+ const t = bC(), r = oze(t);
64639
+ return console.log("RelayEnvironment config:", t), console.log("RelayEnvironment environment:", r), /* @__PURE__ */ P.jsx(_U.RelayEnvironmentProvider, { environment: r, children: e });
64640
64640
  }
64641
64641
  const nQe = (e, t, r) => {
64642
64642
  const n = [];
package/dist/core.umd.js CHANGED
@@ -258,7 +258,7 @@ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var ee=ie(Y,re,q,W,z+"."
258
258
  C268.103,7.763,253.549,0,236.836,0c-3.938,0-7.872,0.101-11.817,0.292c-11.649,0.583-23.073,2.016-34.225,4.215v191.531\r
259
259
  L66.808,72.055c-7.618,7.861-14.704,16.237-21.189,25.089l79.313,79.313l20.291,20.284H3.448C1.227,209.784,0,223.164,0,236.844\r
260
260
  c0,17.034,1.84,33.626,5.25,49.643h184.834L70.847,405.724c7.808,7.67,16.121,14.813,24.921,21.349l95.023-95.023v137.116\r
261
- c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function K4e({size:e=24,color:t="currentColor"}){return C.jsx(Se.SvgIcon,{children:C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:C.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:Y4e,forEach:Q4e}=[];function X4e(e){return Q4e.call(Y4e.call(arguments,1),t=>{if(t)for(const r in t)e[r]===void 0&&(e[r]=t[r])}),e}function Z4e(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(e))}const UQ=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,J4e=function(e,t){const n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(n.maxAge>0){const o=n.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(n.domain){if(!UQ.test(n.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${n.domain}`}if(n.path){if(!UQ.test(n.path))throw new TypeError("option path is invalid");a+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(a+="; Partitioned"),a},zQ={create(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),n&&(i.domain=n),document.cookie=J4e(e,t,i)},read(e){const t=`${e}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let i=r[n];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var e6e={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return zQ.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:a}=t;r&&typeof document<"u"&&zQ.create(r,e,n,i,a)}},t6e={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,r;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const a=n.substring(1).split("&");for(let o=0;o<a.length;o++){const s=a[o].indexOf("=");s>0&&a[o].substring(0,s)===t&&(r=a[o].substring(s+1))}}return r}},r6e={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:r}=e,n;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const a=i.substring(1);if(t){const o=a.split("&");for(let s=0;s<o.length;s++){const u=o[s].indexOf("=");u>0&&o[s].substring(0,u)===t&&(n=o[s].substring(u+1))}}if(n)return n;if(!n&&r>-1){const o=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof r=="number"?r:0]?.replace("/",""):void 0}}}return n}};let hd=null;const WQ=()=>{if(hd!==null)return hd;try{if(hd=typeof window<"u"&&window.localStorage!==null,!hd)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{hd=!1}return hd};var n6e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&WQ())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&WQ()&&window.localStorage.setItem(r,e)}};let pd=null;const HQ=()=>{if(pd!==null)return pd;try{if(pd=typeof window<"u"&&window.sessionStorage!==null,!pd)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{pd=!1}return pd};var i6e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&HQ())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&HQ()&&window.sessionStorage.setItem(r,e)}},a6e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:i}=navigator;if(r)for(let a=0;a<r.length;a++)t.push(r[a]);n&&t.push(n),i&&t.push(i)}return t.length>0?t:void 0}},o6e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,r;const n=t||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},s6e={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof t=="number"?t:0]?.replace("/",""):void 0}},u6e={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const r=typeof t=="number"?t+1:1,n=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}};let GQ=!1;try{document.cookie,GQ=!0}catch{}const KQ=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];GQ||KQ.splice(1,1);const l6e=()=>({order:KQ,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class YQ{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,r)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=X4e(r,this.options||{},l6e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(e6e),this.addDetector(t6e),this.addDetector(n6e),this.addDetector(i6e),this.addDetector(a6e),this.addDetector(o6e),this.addDetector(s6e),this.addDetector(u6e),this.addDetector(r6e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return t.forEach(n=>{if(this.detectors[n]){let i=this.detectors[n].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(r=r.concat(i))}}),r=r.filter(n=>n!=null&&!Z4e(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(t,this.options)}))}}YQ.type="languageDetector";const c6e=e=>{let t={};for(const n of Object.keys(e)){const i=n.match(/\w+\.json/);if(i){const a=i[0]?.split(".")[0];t={...t,[a]:{translation:e[n]}}}}const r=Object.keys(t);return hn.use(YQ).use(Ete).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:r,missingKeyHandler:function(n,i,a){console.warn(`MISSING TRANSLATION: [${n}] ${i}:${a}`)}}),hn};function QQ({children:e}){return C.jsx(Kr,{paddingBottom:"16px",gap:"8px",children:e})}function XQ({children:e}){return C.jsx(Gd,{mt:"auto",mb:"auto",width:"100%",children:C.jsx(Se.Paper,{sx:{width:"100%"},children:C.jsx(Kr,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function ZQ({tabValue:e,columnValues:t,columnWidths:r}){const{t:n}=Qt();return C.jsx(Se.Paper,{sx:{display:"grid",gridTemplateColumns:r?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,a)=>C.jsx(Se.Typography,{children:C.jsx("b",{children:n(i)})},a))})}function f6e({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:r,SecondTabContent:n,ThirdTabContent:i,tabValue:a,columnValues:o,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:l,ThirdTabNearbyContent:c}){return C.jsxs(Ju,{gap:"16px",children:[C.jsx(XQ,{children:e}),C.jsxs(OS,{gap:"16px",children:[C.jsxs(Se.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&a===0||l&&a===1||c&&a===2?"70%":"unset",maxWidth:u&&a===0||l&&a===1||c&&a===2?"70%":"unset"},children:[C.jsx(QQ,{children:t}),C.jsxs(Ju,{children:[C.jsx(ZQ,{columnValues:o,columnWidths:s,tabValue:a}),C.jsx(Se.Divider,{sx:{marginBottom:"16px"}}),C.jsxs(Ju,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[a===0?C.jsx(r,{}):null,a===1?C.jsx(n,{}):null,a===2&&i?C.jsx(i,{}):null]})]})]}),a===0&&u?C.jsx(Se.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,a===1&&l?C.jsx(Se.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null,a===2&&c?C.jsx(Se.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null]})]})}function d6e({children:e,position:t}){return C.jsx(J5e,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:cv,info:cv,success:cv,error:cv,warning:cv},children:e})}const no={};function h6e(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(r,n){if(r.endsWith(".graphql")){const i=no.resolve(r),a=no.basename(i);if(!n.includes(t))return no.resolve(e,"graphQL","__generated__",`${a}.ts`);const o=no.resolve(__dirname,".."),s=n.slice(o.length).split("/")[1];return no.resolve(o,s,"__generated__",`${a}.ts`)}return null}}}function p6e(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(r,n){if(r.endsWith(".graphql")){const i=no.resolve(r),a=no.basename(i),o=no.resolve(e,".."),s=no.resolve(o,t,"__generated__",`${a}.ts`);return console.log("corepath",t),console.log("reporoot",o),console.log("fileproject",s),console.log("importer",n),n.includes(t)?no.resolve(o,t,"__generated__",`${a}.ts`):no.resolve(e,"graphQL","__generated__",`${a}.ts`)}return null}}}var vd=Wt(),v6e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},oc="1.9.0",JQ=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function g6e(e){var t=new Set([e]),r=new Set,n=e.match(JQ);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(u){return u===e};function a(s){return r.add(s),!1}function o(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(r.has(u))return!1;var l=u.match(JQ);if(!l)return a(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?a(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?o(u):a(u):i.minor<=c.minor?o(u):a(u)}}var m6e=g6e(oc),y6e=oc.split(".")[0],fv=Symbol.for("opentelemetry.js.api."+y6e),dv=v6e;function hv(e,t,r,n){var i;n===void 0&&(n=!1);var a=dv[fv]=(i=dv[fv])!==null&&i!==void 0?i:{version:oc};if(!n&&a[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(o.stack||o.message),!1}if(a.version!==oc){var o=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+oc);return r.error(o.stack||o.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+oc+"."),!0}function sc(e){var t,r,n=(t=dv[fv])===null||t===void 0?void 0:t.version;if(!(!n||!m6e(n)))return(r=dv[fv])===null||r===void 0?void 0:r[e]}function pv(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+oc+".");var r=dv[fv];r&&delete r[e]}var _6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},b6e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},E6e=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("verbose",this._namespace,t)},e}();function vv(e,t,r){var n=sc("diag");if(n)return r.unshift(t),n[e].apply(n,b6e([],_6e(r),!1))}var sa;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(sa||(sa={}));function w6e(e,t){e<sa.NONE?e=sa.NONE:e>sa.ALL&&(e=sa.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",sa.ERROR),warn:r("warn",sa.WARN),info:r("info",sa.INFO),debug:r("debug",sa.DEBUG),verbose:r("verbose",sa.VERBOSE)}}var x6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},S6e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},R6e="diag",zo=function(){function e(){function t(i){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=sc("diag");if(s)return s[i].apply(s,S6e([],x6e(a),!1))}}var r=this,n=function(i,a){var o,s,u;if(a===void 0&&(a={logLevel:sa.INFO}),i===r){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((o=l.stack)!==null&&o!==void 0?o:l.message),!1}typeof a=="number"&&(a={logLevel:a});var c=sc("diag"),f=w6e((s=a.logLevel)!==null&&s!==void 0?s:sa.INFO,i);if(c&&!a.suppressOverrideMessage){var d=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return hv("diag",f,r,!0)};r.setLogger=n,r.disable=function(){pv(R6e,r)},r.createComponentLogger=function(i){return new E6e(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),O6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},A6e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},T6e=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=O6e(t,2),n=r[0],i=r[1];return[n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new e(this._entries);try{for(var o=A6e(n),s=o.next();!s.done;s=o.next()){var u=s.value;a._entries.delete(u)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),C6e=Symbol("BaggageEntryMetadata"),P6e=zo.instance();function N6e(e){return e===void 0&&(e={}),new T6e(new Map(Object.entries(e)))}function D6e(e){return typeof e!="string"&&(P6e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:C6e,toString:function(){return e}}}function pD(e){return Symbol.for(e)}var I6e=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var a=new e(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i}}return e}(),Ms=new I6e,uc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),k6e=function(){function e(){}return e.prototype.createGauge=function(t,r){return z6e},e.prototype.createHistogram=function(t,r){return W6e},e.prototype.createCounter=function(t,r){return U6e},e.prototype.createUpDownCounter=function(t,r){return H6e},e.prototype.createObservableGauge=function(t,r){return K6e},e.prototype.createObservableCounter=function(t,r){return G6e},e.prototype.createObservableUpDownCounter=function(t,r){return Y6e},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),lb=function(){function e(){}return e}(),M6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(lb),L6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(lb),j6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(lb),F6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(lb),vD=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),$6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vD),V6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vD),q6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vD),B6e=new k6e,U6e=new M6e,z6e=new j6e,W6e=new F6e,H6e=new L6e,G6e=new $6e,K6e=new V6e,Y6e=new q6e,Q6e={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},X6e={set:function(e,t,r){e!=null&&(e[t]=r)}},Z6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},J6e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},eFe=function(){function e(){}return e.prototype.active=function(){return Ms},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return r.call.apply(r,J6e([n],Z6e(i),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),tFe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},rFe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},gD="context",nFe=new eFe,cb=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return hv(gD,t,zo.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return(i=this._getContextManager()).with.apply(i,rFe([t,r,n],tFe(a),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return sc(gD)||nFe},e.prototype.disable=function(){this._getContextManager().disable(),pv(gD,zo.instance())},e}(),Ls;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ls||(Ls={}));var eX="0000000000000000",tX="00000000000000000000000000000000",rX={traceId:tX,spanId:eX,traceFlags:Ls.NONE},gv=function(){function e(t){t===void 0&&(t=rX),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,r){},e}(),mD=pD("OpenTelemetry Context Key SPAN");function yD(e){return e.getValue(mD)||void 0}function iFe(){return yD(cb.getInstance().active())}function _D(e,t){return e.setValue(mD,t)}function aFe(e){return e.deleteValue(mD)}function oFe(e,t){return _D(e,new gv(t))}function nX(e){var t;return(t=yD(e))===null||t===void 0?void 0:t.spanContext()}var sFe=/^([0-9a-f]{32})$/i,uFe=/^[0-9a-f]{16}$/i;function iX(e){return sFe.test(e)&&e!==tX}function lFe(e){return uFe.test(e)&&e!==eX}function fb(e){return iX(e.traceId)&&lFe(e.spanId)}function cFe(e){return new gv(e)}var bD=cb.getInstance(),aX=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=bD.active());var i=!!r?.root;if(i)return new gv;var a=n&&nX(n);return fFe(a)&&fb(a)?new gv(a):new gv},e.prototype.startActiveSpan=function(t,r,n,i){var a,o,s;if(!(arguments.length<2)){arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,o=n,s=i);var u=o??bD.active(),l=this.startSpan(t,a,u),c=_D(u,l);return bD.with(c,s,void 0,l)}},e}();function fFe(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var dFe=new aX,hFe=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):dFe},e}(),pFe=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new aX},e}(),vFe=new pFe,oX=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return(i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new hFe(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:vFe},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}(),db;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(db||(db={}));var hb;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(hb||(hb={}));var lc;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(lc||(lc={}));var zn=cb.getInstance(),vr=zo.instance(),gFe=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return B6e},e}(),mFe=new gFe,ED="metrics",yFe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return hv(ED,t,zo.instance())},e.prototype.getMeterProvider=function(){return sc(ED)||mFe},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){pv(ED,zo.instance())},e}(),sX=yFe.getInstance(),_Fe=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),wD=pD("OpenTelemetry Baggage Key");function uX(e){return e.getValue(wD)||void 0}function bFe(){return uX(cb.getInstance().active())}function EFe(e,t){return e.setValue(wD,t)}function wFe(e){return e.deleteValue(wD)}var xD="propagation",xFe=new _Fe,SFe=function(){function e(){this.createBaggage=N6e,this.getBaggage=uX,this.getActiveBaggage=bFe,this.setBaggage=EFe,this.deleteBaggage=wFe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return hv(xD,t,zo.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=X6e),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=Q6e),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){pv(xD,zo.instance())},e.prototype._getGlobalPropagator=function(){return sc(xD)||xFe},e}(),Wo=SFe.getInstance(),SD="trace",RFe=function(){function e(){this._proxyTracerProvider=new oX,this.wrapSpanContext=cFe,this.isSpanContextValid=fb,this.deleteSpan=aFe,this.getSpan=yD,this.getActiveSpan=iFe,this.getSpanContext=nX,this.setSpan=_D,this.setSpanContext=oFe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=hv(SD,this._proxyTracerProvider,zo.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return sc(SD)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){pv(SD,zo.instance()),this._proxyTracerProvider=new oX},e}(),Si=RFe.getInstance();function Bi(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function cc(e){return Bi(e)==="object"}function OFe(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function lX(e,t){return e.length<124?e:t}const AFe="graphql-transport-ws";var Da=(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))(Da||{}),Ia=(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))(Ia||{});function cX(e){if(!cc(e))throw new Error(`Message is expected to be an object, but got ${Bi(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Bi(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!cc(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(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!cc(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Bi(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Bi(e.payload.query)}`);if(e.payload.variables!=null&&!cc(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 ${Bi(e.payload.variables)}`);if(e.payload.operationName!=null&&Bi(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Bi(e.payload.operationName)}`);if(e.payload.extensions!=null&&!cc(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 ${Bi(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!cc(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Bi(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!OFe(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(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(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 TFe(e,t){return cX(typeof e=="string"?JSON.parse(e,t):e)}function mv(e,t){return cX(e),JSON.stringify(e,t)}function CFe(e){const{url:t,connectionParams:r,lazy:n=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:l=5,retryWait:c=async function(I){const L=Math.pow(2,I);await new Promise(B=>setTimeout(B,L*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:f=RD,on:d,webSocketImpl:h,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,I=>{const L=Math.random()*16|0;return(I=="x"?L:L&3|8).toString(16)})},jsonMessageReplacer:p,jsonMessageReviver:g}=e;let y;if(h){if(!NFe(h))throw new Error("Invalid WebSocket implementation provided");y=h}else typeof WebSocket<"u"?y=WebSocket:typeof global<"u"?y=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(y=window.WebSocket||window.MozWebSocket);if(!y)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const b=y,E=(()=>{const A=(()=>{const L={};return{on(B,H){return L[B]=H,()=>{delete L[B]}},emit(B){"id"in B&&L[B.id]?.(B)}}})(),I={connecting:d?.connecting?[d.connecting]:[],opened:d?.opened?[d.opened]:[],connected:d?.connected?[d.connected]:[],ping:d?.ping?[d.ping]:[],pong:d?.pong?[d.pong]:[],message:d?.message?[A.emit,d.message]:[A.emit],closed:d?.closed?[d.closed]:[],error:d?.error?[d.error]:[]};return{onMessage:A.on,on(L,B){const H=I[L];return H.push(B),()=>{H.splice(H.indexOf(B),1)}},emit(L,...B){for(const H of[...I[L]])H(...B)}}})();function w(A){const I=[E.on("error",L=>{I.forEach(B=>B()),A(L)}),E.on("closed",L=>{I.forEach(B=>B()),A(L)})]}let x,R=0,S,j=!1,M=0,k=!1;async function F(){clearTimeout(S);const[A,I]=await(x??(x=new Promise((H,U)=>(async()=>{if(j){if(await c(M),!R)return x=void 0,U({code:1e3,reason:"All Subscriptions Gone"});M++}E.emit("connecting",j);const T=new b(typeof t=="function"?await t():t,AFe);let D,O;function $(){isFinite(o)&&o>0&&(clearTimeout(O),O=setTimeout(()=>{T.readyState===b.OPEN&&(T.send(mv({type:Ia.Ping})),E.emit("ping",!1,void 0))},o))}w(W=>{x=void 0,clearTimeout(D),clearTimeout(O),U(W),W instanceof fX&&(T.close(4499,"Terminated"),T.onerror=null,T.onclose=null)}),T.onerror=W=>E.emit("error",W),T.onclose=W=>E.emit("closed",W),T.onopen=async()=>{try{E.emit("opened",T);const W=typeof r=="function"?await r():r;if(T.readyState!==b.OPEN)return;T.send(mv(W?{type:Ia.ConnectionInit,payload:W}:{type:Ia.ConnectionInit},p)),isFinite(u)&&u>0&&(D=setTimeout(()=>{T.close(Da.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),$()}catch(W){E.emit("error",W),T.close(Da.InternalClientError,lX(W instanceof Error?W.message:String(W),"Internal client error"))}};let q=!1;T.onmessage=({data:W})=>{try{const z=TFe(W,g);if(E.emit("message",z),z.type==="ping"||z.type==="pong"){E.emit(z.type,!0,z.payload),z.type==="pong"?$():s||(T.send(mv(z.payload?{type:Ia.Pong,payload:z.payload}:{type:Ia.Pong})),E.emit("pong",!1,z.payload));return}if(q)return;if(z.type!==Ia.ConnectionAck)throw new Error(`First message cannot be of type ${z.type}`);clearTimeout(D),q=!0,E.emit("connected",T,z.payload,j),j=!1,M=0,H([T,new Promise((Y,Q)=>w(Q))])}catch(z){T.onmessage=null,E.emit("error",z),T.close(Da.BadResponse,lX(z instanceof Error?z.message:String(z),"Bad response"))}}})())));A.readyState===b.CLOSING&&await I;let L=()=>{};const B=new Promise(H=>L=H);return[A,L,Promise.race([B.then(()=>{if(!R){const H=()=>A.close(1e3,"Normal Closure");isFinite(a)&&a>0?S=setTimeout(()=>{A.readyState===b.OPEN&&H()},a):H()}}),I])]}function V(A){if(RD(A)&&(PFe(A.code)||[Da.InternalServerError,Da.InternalClientError,Da.BadRequest,Da.BadResponse,Da.Unauthorized,Da.SubprotocolNotAcceptable,Da.SubscriberAlreadyExists,Da.TooManyInitialisationRequests].includes(A.code)))throw A;if(k)return!1;if(RD(A)&&A.code===1e3)return R>0;if(!l||M>=l||!f(A))throw A;return j=!0}n||(async()=>{for(R++;;)try{const[,,A]=await F();await A}catch(A){try{if(!V(A))return}catch(I){return i?.(I)}}})();function P(A,I){const L=m(A);let B=!1,H=!1,U=()=>{R--,B=!0};return(async()=>{for(R++;;)try{const[T,D,O]=await F();if(B)return D();const $=E.onMessage(L,q=>{switch(q.type){case Ia.Next:{I.next(q.payload);return}case Ia.Error:{H=!0,B=!0,I.error(q.payload),U();return}case Ia.Complete:{B=!0,U();return}}});T.send(mv({id:L,type:Ia.Subscribe,payload:A},p)),U=()=>{!B&&T.readyState===b.OPEN&&T.send(mv({id:L,type:Ia.Complete},p)),R--,B=!0,D()},await O.finally($);return}catch(T){if(!V(T))return}})().then(()=>{H||I.complete()}).catch(T=>{I.error(T)}),()=>{B||U()}}return{on:E.on,subscribe:P,iterate(A){const I=[],L={done:!1,error:null,resolve:()=>{}},B=P(A,{next(U){I.push(U),L.resolve()},error(U){L.done=!0,L.error=U,L.resolve()},complete(){L.done=!0,L.resolve()}}),H=async function*(){for(;;){for(I.length||await new Promise(T=>L.resolve=T);I.length;)yield I.shift();if(L.error)throw L.error;if(L.done)return}}();return H.throw=async U=>(L.done||(L.done=!0,L.error=U,L.resolve()),{done:!0,value:void 0}),H.return=async()=>(B(),{done:!0,value:void 0}),H},async dispose(){if(k=!0,x){const[A]=await x;A.close(1e3,"Normal Closure")}},terminate(){x&&E.emit("closed",new fX)}}}class fX extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function RD(e){return cc(e)&&"code"in e&&"reason"in e}function PFe(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function NFe(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const DFe=e=>CFe({url:e.API_URL}),IFe=(e,t,r)=>vd.Observable.create(n=>DFe(r).subscribe({operationName:e.name,query:e.text,variables:t},n)),kFe=(e,t,r)=>vd.Observable.from(zn.with(zn.active(),()=>{const n=Si.getTracer("RelayNetwork").startSpan("GraphQL fetch");n.setAttribute("variables",JSON.stringify(t)),n.setAttribute("path",e.name);const i=n.spanContext();return fetch(r.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":r.AUTH_SCHEMA,...r.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...r.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(a=>a.json().then(o=>(o.errors?(n.setStatus({code:lc.ERROR}),n.recordException(JSON.stringify(o.errors))):n.setStatus({code:lc.OK}),o))).catch(a=>{n.setStatus({code:lc.ERROR}),n.recordException(JSON.stringify(a))}).finally(()=>n.end())})),MFe=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function dX(e){return new vd.Environment({network:vd.Network.create((t,r)=>kFe(t,r,e),(t,r)=>IFe(t,r,e)),store:new vd.Store(new vd.RecordSource),getDataID:MFe})}function LFe({children:e}){const t=Og();return C.jsx(X9.RelayEnvironmentProvider,{environment:dX(t),children:e})}const jFe=(e,t,r)=>{const n=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i],o=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!o)continue;const s=o[1],u=Object.keys(t).find(y=>y.includes(`${s}/loader.ts`)),l=Object.keys(r).find(y=>y.includes(`${s}/action.ts`)),c=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),f=s==="index"?"/":`${c.toLowerCase()}`,d=K.lazy(a),h=K.lazy(async()=>({default:(await a()).icon||ite})),m=u?t[u].default:void 0,p=l?r[l].default:void 0,g={id:f,Icon:h,name:c,path:f,element:C.jsx(K.Suspense,{fallback:C.jsx(Sg,{}),children:C.jsx(d,{})}),...u?{loader:m}:{},...l?{action:p}:{}};n.push(g)}return n};var hX=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(hX||{});const yv={},pX=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,vX=e=>"init"in e,OD=e=>!!e.write,gX=e=>"v"in e||"e"in e,pb=e=>{if("e"in e)throw e.e;if((yv?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},vb=new WeakMap,mX=e=>{var t;return gb(e)&&!!((t=vb.get(e))!=null&&t[0])},FFe=e=>{const t=vb.get(e);t?.[0]&&(t[0]=!1,t[1].forEach(r=>r()))},$Fe=(e,t)=>{let r=vb.get(e);if(!r){r=[!0,new Set],vb.set(e,r);const n=()=>{r[0]=!1};e.then(n,n)}r[1].add(t)},gb=e=>typeof e?.then=="function",yX=(e,t,r)=>{r.p.has(e)||(r.p.add(e),t.then(()=>{r.p.delete(e)},()=>{r.p.delete(e)}))},AD=(e,t,r)=>{const n=r(e),i="v"in n,a=n.v;if(gb(t))for(const o of n.d.keys())yX(e,t,r(o));n.v=t,delete n.e,(!i||!Object.is(a,n.v))&&(++n.n,gb(a)&&FFe(a))},_X=(e,t,r)=>{var n;const i=new Set;for(const a of((n=r.get(e))==null?void 0:n.t)||[])r.has(a)&&i.add(a);for(const a of t.p)i.add(a);return i},VFe=()=>{const e=new Set,t=()=>{e.forEach(r=>r())};return t.add=r=>(e.add(r),()=>{e.delete(r)}),t},TD=()=>{const e={},t=new WeakMap,r=n=>{var i,a;(i=t.get(e))==null||i.forEach(o=>o(n)),(a=t.get(n))==null||a.forEach(o=>o())};return r.add=(n,i)=>{const a=n||e,o=(t.has(a)?t:t.set(a,new Set)).get(a);return o.add(i),()=>{o?.delete(i),o.size||t.delete(a)}},r},qFe=e=>(e.c||(e.c=TD()),e.m||(e.m=TD()),e.u||(e.u=TD()),e.f||(e.f=VFe()),e),BFe=Symbol(),bX=(e=new WeakMap,t=new WeakMap,r=new WeakMap,n=new Set,i=new Set,a=new Set,o={},s=(d,...h)=>d.read(...h),u=(d,...h)=>d.write(...h),l=(d,h)=>{var m;return(m=d.unstable_onInit)==null?void 0:m.call(d,h)},c=(d,h)=>{var m;return(m=d.onMount)==null?void 0:m.call(d,h)},...f)=>{const d=f[0]||(S=>{if((yv?"production":void 0)!=="production"&&!S)throw new Error("Atom is undefined or null");let j=e.get(S);return j||(j={d:new Map,p:new Set,n:0},e.set(S,j),l?.(S,R)),j}),h=f[1]||(()=>{const S=[],j=M=>{try{M()}catch(k){S.push(k)}};do{o.f&&j(o.f);const M=new Set,k=M.add.bind(M);n.forEach(F=>{var V;return(V=t.get(F))==null?void 0:V.l.forEach(k)}),n.clear(),a.forEach(k),a.clear(),i.forEach(k),i.clear(),M.forEach(j),n.size&&m()}while(n.size||a.size||i.size);if(S.length)throw new AggregateError(S)}),m=f[2]||(()=>{const S=[],j=new WeakSet,M=new WeakSet,k=Array.from(n);for(;k.length;){const F=k[k.length-1],V=d(F);if(M.has(F)){k.pop();continue}if(j.has(F)){if(r.get(F)===V.n)S.push([F,V]);else if((yv?"production":void 0)!=="production"&&r.has(F))throw new Error("[Bug] invalidated atom exists");M.add(F),k.pop();continue}j.add(F);for(const P of _X(F,V,t))j.has(P)||k.push(P)}for(let F=S.length-1;F>=0;--F){const[V,P]=S[F];let A=!1;for(const I of P.d.keys())if(I!==V&&n.has(I)){A=!0;break}A&&(p(V),b(V)),r.delete(V)}}),p=f[3]||(S=>{var j;const M=d(S);if(gX(M)&&(t.has(S)&&r.get(S)!==M.n||Array.from(M.d).every(([B,H])=>p(B).n===H)))return M;M.d.clear();let k=!0;const F=()=>{t.has(S)&&(b(S),m(),h())},V=B=>{var H;if(pX(S,B)){const T=d(B);if(!gX(T))if(vX(B))AD(B,B.init,d);else throw new Error("no atom init");return pb(T)}const U=p(B);try{return pb(U)}finally{M.d.set(B,U.n),mX(M.v)&&yX(S,M.v,U),(H=t.get(B))==null||H.t.add(S),k||F()}};let P,A;const I={get signal(){return P||(P=new AbortController),P.signal},get setSelf(){return(yv?"production":void 0)!=="production"&&!OD(S)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&OD(S)&&(A=(...B)=>{if((yv?"production":void 0)!=="production"&&k&&console.warn("setSelf function cannot be called in sync"),!k)try{return y(S,...B)}finally{m(),h()}}),A}},L=M.n;try{const B=s(S,V,I);return AD(S,B,d),gb(B)&&($Fe(B,()=>P?.abort()),B.then(F,F)),M}catch(B){return delete M.v,M.e=B,++M.n,M}finally{k=!1,L!==M.n&&r.get(S)===L&&(r.set(S,M.n),n.add(S),(j=o.c)==null||j.call(o,S))}}),g=f[4]||(S=>{const j=[S];for(;j.length;){const M=j.pop(),k=d(M);for(const F of _X(M,k,t)){const V=d(F);r.set(F,V.n),j.push(F)}}}),y=f[5]||((S,...j)=>{let M=!0;const k=V=>pb(p(V)),F=(V,...P)=>{var A;const I=d(V);try{if(pX(S,V)){if(!vX(V))throw new Error("atom not writable");const L=I.n,B=P[0];AD(V,B,d),b(V),L!==I.n&&(n.add(V),(A=o.c)==null||A.call(o,V),g(V));return}else return y(V,...P)}finally{M||(m(),h())}};try{return u(S,k,F,...j)}finally{M=!1}}),b=f[6]||(S=>{var j;const M=d(S),k=t.get(S);if(k&&!mX(M.v)){for(const[F,V]of M.d)if(!k.d.has(F)){const P=d(F);E(F).t.add(S),k.d.add(F),V!==P.n&&(n.add(F),(j=o.c)==null||j.call(o,F),g(F))}for(const F of k.d||[])if(!M.d.has(F)){k.d.delete(F);const V=w(F);V?.t.delete(S)}}}),E=f[7]||(S=>{var j;const M=d(S);let k=t.get(S);if(!k){p(S);for(const F of M.d.keys())E(F).t.add(S);if(k={l:new Set,d:new Set(M.d.keys()),t:new Set},t.set(S,k),(j=o.m)==null||j.call(o,S),OD(S)){const F=()=>{let V=!0;const P=(...A)=>{try{return y(S,...A)}finally{V||(m(),h())}};try{const A=c(S,P);A&&(k.u=()=>{V=!0;try{A()}finally{V=!1}})}finally{V=!1}};i.add(F)}}return k}),w=f[8]||(S=>{var j;const M=d(S);let k=t.get(S);if(k&&!k.l.size&&!Array.from(k.t).some(F=>{var V;return(V=t.get(F))==null?void 0:V.d.has(S)})){k.u&&a.add(k.u),k=void 0,t.delete(S),(j=o.u)==null||j.call(o,S);for(const F of M.d.keys()){const V=w(F);V?.t.delete(S)}return}return k}),x=[e,t,r,n,i,a,o,s,u,l,c,d,h,m,p,g,y,b,E,w],R={get:S=>pb(p(S)),set:(S,...j)=>{try{return y(S,...j)}finally{m(),h()}},sub:(S,j)=>{const k=E(S).l;return k.add(j),h(),()=>{k.delete(j),w(S),h()}}};return Object.defineProperty(R,BFe,{value:x}),R},UFe=qFe,CD={};let zFe=0;function WFe(e,t){const r=`atom${++zFe}`,n={toString(){return(CD?"production":void 0)!=="production"&&this.debugLabel?r+":"+this.debugLabel:r}};return typeof e=="function"?n.read=e:(n.init=e,n.read=HFe,n.write=GFe),n}function HFe(e){return e(this)}function GFe(e,t,r){return t(this,typeof r=="function"?r(e(this)):r)}const KFe=()=>{let e=0;const t=UFe({}),r=new WeakMap,n=new WeakMap,i=bX(r,n,void 0,void 0,void 0,void 0,t,void 0,(s,u,l,...c)=>e?l(s,...c):s.write(u,l,...c)),a=new Set;return t.m.add(void 0,s=>{a.add(s);const u=r.get(s);u.m=n.get(s)}),t.u.add(void 0,s=>{a.delete(s);const u=r.get(s);delete u.m}),Object.assign(i,{dev4_get_internal_weak_map:()=>(console.log("Deprecated: Use devstore from the devtools library"),r),dev4_get_mounted_atoms:()=>a,dev4_restore_atoms:s=>{const u={read:()=>null,write:(l,c)=>{++e;try{for(const[f,d]of s)"init"in f&&c(f,d)}finally{--e}}};i.set(u)}})};function YFe(){return(CD?"production":void 0)!=="production"?KFe():bX()}let _v;function QFe(){return _v||(_v=YFe(),(CD?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=_v),globalThis.__JOTAI_DEFAULT_STORE__!==_v&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),_v}const XFe={createState:e=>{const t=WFe(e),r=QFe();return{get:()=>r.get(t),set:n=>r.set(t,n),subscribe:n=>{const i=()=>{const a=r.get(t);n(a)};return r.sub(t,i)}}},type:"jotaiAdapter"};function ZFe(){return{createState:e=>{const t=Qce({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Xce(t)),set:a=>{console.log("Setting value to Recoil atom"),Zce(t)(a)},subscribe:a=>(console.log("Subscribing to Recoil atom"),Jce(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;a(u)}))}},type:"recoilAdapter"}}function EX(){return K.createContext([!1,{}])}function JFe({timer:e,children:t}){const r=Q5(e),n=EX();return C.jsx(n.Provider,{value:r,children:t})}const wX={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:{MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:ate}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},typography:{fontFamily:"Manrope"}},e8e={light:e=>ck.deepmerge({...wX,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>ck.deepmerge({...wX,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function t8e({children:e,theme:t}){const[r]=qc();return C.jsx(Se.ThemeProvider,{theme:Se.createTheme(e8e[r](t)),children:e})}const r8e=(e,t,r)=>{if(!od(e))return;const n=new Date(e);switch(r){case"milliseconds":n.setMilliseconds(n.getMilliseconds()+t);break;case"seconds":n.setSeconds(n.getSeconds()+t);break;case"minutes":n.setMinutes(n.getMinutes()+t);break;case"hours":n.setHours(n.getHours()+t);break;case"days":n.setDate(n.getDate()+t);break;case"weeks":n.setDate(n.getDate()+t*7);break;case"months":n.setMonth(n.getMonth()+t);break;case"years":n.setFullYear(n.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${r}`)}return n};var xX=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(xX||{});const n8e=(e,t,r="milliseconds")=>{if(!od(e)||!od(t))return;const n=new Date(e).getTime();return(new Date(t).getTime()-n)/xX[r]},i8e=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),r=Math.floor(e%(3600*24)/3600),n=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",r?`${r}h`:"",n?`${n}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},a8e=(e,t,r)=>{if(!od(e))throw new Error("Invalid Date");const n=new Date(e);switch(r){case"milliseconds":n.setMilliseconds(n.getMilliseconds()-t);break;case"seconds":n.setSeconds(n.getSeconds()-t);break;case"minutes":n.setMinutes(n.getMinutes()-t);break;case"hours":n.setHours(n.getHours()-t);break;case"days":n.setDate(n.getDate()-t);break;case"weeks":n.setDate(n.getDate()-t*7);break;case"months":n.setMonth(n.getMonth()-t);break;case"years":n.setFullYear(n.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${r}`)}return n},o8e=(e,t)=>e<=1?12:Math.floor(12/t),s8e=(e,t)=>(e&t)===t;function u8e(e){const t={};function r(n){Object.prototype.hasOwnProperty.call(n,"edges")&&(t.edges=n.edges);for(const i in n)typeof n[i]=="object"&&n[i]!==null&&r(n[i])}return r(e),t}const l8e=(e,t)=>{if(e==null)return 0;if(isNaN(e))return e;const r=[...Array(t)].reduce(n=>n+"0",".");return e.toFixed(t).toString().replace(r,"")},SX=pD("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function c8e(e){return e.setValue(SX,!0)}function PD(e){return e.getValue(SX)===!0}const f8e="=",ND=";",DD=",",ID="baggage",d8e=180,h8e=4096,p8e=8192;function v8e(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?DD:""}${r}`;return n.length>p8e?t:n},"")}function g8e(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=ND+r.metadata.toString()),n})}function m8e(e){const t=e.split(ND);if(t.length<=0)return;const r=t.shift();if(!r)return;const n=r.indexOf(f8e);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim());let o;return t.length>0&&(o=D6e(t.join(ND))),{key:i,value:a,metadata:o}}class y8e{inject(t,r,n){const i=Wo.getBaggage(t);if(!i||PD(t))return;const a=g8e(i).filter(s=>s.length<=h8e).slice(0,d8e),o=v8e(a);o.length>0&&n.set(r,ID,o)}extract(t,r,n){const i=n.get(r,ID),a=Array.isArray(i)?i.join(DD):i;if(!a)return t;const o={};return a.length===0||(a.split(DD).forEach(u=>{const l=m8e(u);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Wo.setBaggage(t,Wo.createBaggage(o))}fields(){return[ID]}}function mb(e){const t={};if(typeof e!="object"||e==null)return t;for(const[r,n]of Object.entries(e)){if(!_8e(r)){vr.warn(`Invalid attribute key: ${r}`);continue}if(!RX(n)){vr.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function _8e(e){return typeof e=="string"&&e.length>0}function RX(e){return e==null?!0:Array.isArray(e)?b8e(e):OX(e)}function b8e(e){let t;for(const r of e)if(r!=null){if(!t){if(OX(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}function OX(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function E8e(){return e=>{vr.error(w8e(e))}}function w8e(e){return typeof e=="string"?e:JSON.stringify(x8e(e))}function x8e(e){const t={};let r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;const i=r[n];i&&(t[n]=String(i))}),r=Object.getPrototypeOf(r);return t}let S8e=E8e();function kD(e){try{S8e(e)}catch{}}function GGe(e){}const MD=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},gd=performance,R8e="2.0.1",O8e="error.type",LD="exception.message",A8e="exception.stacktrace",jD="exception.type",T8e="http.request.method",C8e="http.request.method_original",P8e="http.response.status_code",N8e="server.address",D8e="server.port",AX="service.name",FD="telemetry.sdk.language",I8e="webjs",$D="telemetry.sdk.name",VD="telemetry.sdk.version",k8e="url.full",M8e="process.runtime.name",qD={[$D]:"opentelemetry",[M8e]:"browser",[FD]:I8e,[VD]:R8e},L8e=9,j8e=Math.pow(10,6),yb=Math.pow(10,L8e);function js(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*j8e);return[r,n]}function BD(){let e=gd.timeOrigin;if(typeof e!="number"){const t=gd;e=t.timing&&t.timing.fetchStart}return e}function _b(e){const t=js(BD()),r=js(typeof e=="number"?e:gd.now());return PX(t,r)}function bv(e){if(UD(e))return e;if(typeof e=="number")return e<BD()?_b(e):js(e);if(e instanceof Date)return js(e.getTime());throw TypeError("Invalid input type")}function F8e(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=yb),[r,n]}function Fs(e){return e[0]*yb+e[1]}function TX(e){return e[0]*1e6+e[1]/1e3}function UD(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function CX(e){return UD(e)||typeof e=="number"||e instanceof Date}function PX(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=yb&&(r[1]-=yb,r[0]+=1),r}var io;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(io||(io={}));class $8e{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(t,r,n){for(const i of this._propagators)try{i.inject(t,r,n)}catch(a){vr.warn(`Failed to inject with ${i.constructor.name}. Err: ${a.message}`)}}extract(t,r,n){return this._propagators.reduce((i,a)=>{try{return a.extract(i,r,n)}catch(o){vr.warn(`Failed to extract with ${a.constructor.name}. Err: ${o.message}`)}return i},t)}fields(){return this._fields.slice()}}const zD="[_0-9a-z-*/]",V8e=`[a-z]${zD}{0,255}`,q8e=`[a-z0-9]${zD}{0,240}@[a-z]${zD}{0,13}`,B8e=new RegExp(`^(?:${V8e}|${q8e})$`),U8e=/^[ -~]{0,255}[!-~]$/,z8e=/,|=/;function W8e(e){return B8e.test(e)}function H8e(e){return U8e.test(e)&&!z8e.test(e)}const NX=32,G8e=512,DX=",",IX="=";class WD{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,r){const n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){const r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,r)=>(t.push(r+IX+this.get(r)),t),[]).join(DX)}_parse(t){t.length>G8e||(this._internalState=t.split(DX).reverse().reduce((r,n)=>{const i=n.trim(),a=i.indexOf(IX);if(a!==-1){const o=i.slice(0,a),s=i.slice(a+1,n.length);W8e(o)&&H8e(s)&&r.set(o,s)}return r},new Map),this._internalState.size>NX&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,NX))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new WD;return t._internalState=new Map(this._internalState),t}}const HD="traceparent",GD="tracestate",K8e="00",Y8e="(?!ff)[\\da-f]{2}",Q8e="(?![0]{32})[\\da-f]{32}",X8e="(?![0]{16})[\\da-f]{16}",Z8e="[\\da-f]{2}",J8e=new RegExp(`^\\s?(${Y8e})-(${Q8e})-(${X8e})-(${Z8e})(-.*)?\\s?$`);function e7e(e){const t=J8e.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class t7e{inject(t,r,n){const i=Si.getSpanContext(t);if(!i||PD(t)||!fb(i))return;const a=`${K8e}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ls.NONE).toString(16)}`;n.set(r,HD,a),i.traceState&&n.set(r,GD,i.traceState.serialize())}extract(t,r,n){const i=n.get(r,HD);if(!i)return t;const a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;const o=e7e(a);if(!o)return t;o.isRemote=!0;const s=n.get(r,GD);if(s){const u=Array.isArray(s)?s.join(","):s;o.traceState=new WD(typeof u=="string"?u:void 0)}return Si.setSpanContext(t,o)}fields(){return[HD,GD]}}const r7e="[object Object]",n7e="[object Null]",i7e="[object Undefined]",kX=Function.prototype.toString,a7e=kX.call(Object),o7e=Object.getPrototypeOf,MX=Object.prototype,LX=MX.hasOwnProperty,fc=Symbol?Symbol.toStringTag:void 0,jX=MX.toString;function FX(e){if(!s7e(e)||u7e(e)!==r7e)return!1;const t=o7e(e);if(t===null)return!0;const r=LX.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&kX.call(r)===a7e}function s7e(e){return e!=null&&typeof e=="object"}function u7e(e){return e==null?e===void 0?i7e:n7e:fc&&fc in Object(e)?l7e(e):c7e(e)}function l7e(e){const t=LX.call(e,fc),r=e[fc];let n=!1;try{e[fc]=void 0,n=!0}catch{}const i=jX.call(e);return n&&(t?e[fc]=r:delete e[fc]),i}function c7e(e){return jX.call(e)}const f7e=20;function d7e(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=$X(t,e.shift(),0,r);return t}function KD(e){return bb(e)?e.slice():e}function $X(e,t,r=0,n){let i;if(!(r>f7e)){if(r++,Eb(e)||Eb(t)||qX(t))i=KD(t);else if(bb(e)){if(i=e.slice(),bb(t))for(let a=0,o=t.length;a<o;a++)i.push(KD(t[a]));else if(Ev(t)){const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o];i[u]=KD(t[u])}}}else if(Ev(e))if(Ev(t)){if(!h7e(e,t))return t;i=Object.assign({},e);const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o],l=t[u];if(Eb(l))typeof l>"u"?delete i[u]:i[u]=l;else{const c=i[u],f=l;if(VX(e,u,n)||VX(t,u,n))delete i[u];else{if(Ev(c)&&Ev(f)){const d=n.get(c)||[],h=n.get(f)||[];d.push({obj:e,key:u}),h.push({obj:t,key:u}),n.set(c,d),n.set(f,h)}i[u]=$X(i[u],l,r,n)}}}}else i=t;return i}}function VX(e,t,r){const n=r.get(e[t])||[];for(let i=0,a=n.length;i<a;i++){const o=n[i];if(o.key===t&&o.obj===e)return!0}return!1}function bb(e){return Array.isArray(e)}function qX(e){return typeof e=="function"}function Ev(e){return!Eb(e)&&!bb(e)&&!qX(e)&&typeof e=="object"}function Eb(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function h7e(e,t){return!(!FX(e)||!FX(t))}function BX(e,t){return typeof t=="string"?e===t:!!e.match(t)}function p7e(e,t){if(!t)return!1;for(const r of t)if(BX(e,r))return!0;return!1}class v7e{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class g7e{_callback;_that;_isCalled=!1;_deferred=new v7e;constructor(t,r){this._callback=t,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function m7e(e,t){return new Promise(r=>{zn.with(c8e(zn.active()),()=>{e.export(t,n=>{r(n)})})})}const y7e={_export:m7e};function _7e(){return"unknown_service"}const wv=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class wb{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const r=new wb({});return r._rawAttributes=zX(t),r._asyncAttributesPending=t.filter(([n,i])=>wv(i)).length>0,r}constructor(t){const r=t.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(wv(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=zX(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[r,n]=this._rawAttributes[t];this._rawAttributes[t]=[r,wv(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&vr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(wv(n)){vr.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:wb.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function UX(e){return wb.FromAttributeList(Object.entries(e))}function b7e(){return UX({[AX]:_7e(),[FD]:qD[FD],[$D]:qD[$D],[VD]:qD[VD]})}function zX(e){return e.map(([t,r])=>wv(r)?[t,r.catch(n=>{vr.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}const E7e="exception";class w7e{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:lc.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=gd.now(),this._performanceOffset=r-(this._performanceStartTime+BD()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??r),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,r){if(r==null||this._isSpanEnded())return this;if(t.length===0)return vr.warn(`Invalid attribute key: ${t}`),this;if(!RX(r))return vr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this)}setAttributes(t){for(const[r,n]of Object.entries(t))this.setAttribute(r,n);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return vr.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&vr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),CX(r)&&(CX(n)||(n=r),r=void 0);const a=mb(r);return this.events.push({name:t,attributes:a,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(vr.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){vr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=F8e(this.startTime,this.endTime),this._duration[0]<0&&(vr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&vr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=gd.now())return _b(t+this._performanceOffset);if(typeof t=="number")return js(t);if(t instanceof Date)return js(t.getTime());if(UD(t))return t;if(this._startTimeProvided)return js(Date.now());const r=gd.now()-this._performanceStartTime;return PX(this.startTime,js(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[LD]=t:t&&(t.code?n[jD]=t.code.toString():t.name&&(n[jD]=t.name),t.message&&(n[LD]=t.message),t.stack&&(n[A8e]=t.stack)),n[jD]||n[LD]?this.addEvent(E7e,n,r):vr.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);vr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,r){return t.length<=r?t:t.substring(0,r)}_truncateToSize(t){const r=this._attributeValueLengthLimit;return r<=0?(vr.warn(`Attribute value limit must be positive, got ${r}`),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):t}}var md;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(md||(md={}));class xb{shouldSample(){return{decision:md.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class yd{shouldSample(){return{decision:md.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Sb{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(kD(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new yd),this._remoteParentSampled=t.remoteParentSampled??new yd,this._remoteParentNotSampled=t.remoteParentNotSampled??new xb,this._localParentSampled=t.localParentSampled??new yd,this._localParentNotSampled=t.localParentNotSampled??new xb}shouldSample(t,r,n,i,a,o){const s=Si.getSpanContext(t);return!s||!fb(s)?this._root.shouldSample(t,r,n,i,a,o):s.isRemote?s.traceFlags&Ls.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,a,o):this._remoteParentNotSampled.shouldSample(t,r,n,i,a,o):s.traceFlags&Ls.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,a,o):this._localParentNotSampled.shouldSample(t,r,n,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class WX{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:iX(r)&&this._accumulate(r)<this._upperBound?md.RECORD_AND_SAMPLED:md.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let r=0;for(let n=0;n<t.length/8;n++){const i=n*8,a=parseInt(t.slice(i,i+8),16);r=(r^a)>>>0}return r}}const HX=1;function GX(){return{sampler:KX(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function KX(){const e="parentbased_always_on";switch(e){case"always_on":return new yd;case"always_off":return new xb;case"parentbased_always_on":return new Sb({root:new yd});case"parentbased_always_off":return new Sb({root:new xb});case"traceidratio":return new WX(YX());case"parentbased_traceidratio":return new Sb({root:new WX(YX())});default:return vr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new Sb({root:new yd})}}function YX(){return vr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${HX}.`),HX}const x7e=128,S7e=1/0;function R7e(e){const t={sampler:KX()},r=GX(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function O7e(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??x7e,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??S7e,Object.assign({},e,{spanLimits:t})}const A7e=8,T7e=16;class C7e{generateTraceId=QX(T7e);generateSpanId=QX(A7e)}const Rb=Array(32);function QX(e){return function(){for(let r=0;r<e*2;r++)Rb[r]=Math.floor(Math.random()*16)+48,Rb[r]>=58&&(Rb[r]+=39);return String.fromCharCode.apply(null,Rb.slice(0,e*2))}}class P7e{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,r,n,i){const a=R7e(r);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=r.idGenerator||new C7e,this._resource=n,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,r={},n=zn.active()){r.root&&(n=Si.deleteSpan(n));const i=Si.getSpan(n);if(PD(n))return vr.debug("Instrumentation suppressed, returning Noop Span"),Si.wrapSpanContext(rX);const a=i?.spanContext(),o=this._idGenerator.generateSpanId();let s,u,l;!a||!Si.isSpanContextValid(a)?u=this._idGenerator.generateTraceId():(u=a.traceId,l=a.traceState,s=a);const c=r.kind??hb.INTERNAL,f=(r.links??[]).map(b=>({context:b.context,attributes:mb(b.attributes)})),d=mb(r.attributes),h=this._sampler.shouldSample(n,u,t,c,d,f);l=h.traceState??l;const m=h.decision===db.RECORD_AND_SAMPLED?Ls.SAMPLED:Ls.NONE,p={traceId:u,spanId:o,traceFlags:m,traceState:l};if(h.decision===db.NOT_RECORD)return vr.debug("Recording is off, propagating context in a non-recording span"),Si.wrapSpanContext(p);const g=mb(Object.assign(d,h.attributes));return new w7e({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:p,name:t,kind:c,links:f,parentSpanContext:s,attributes:g,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,r,n,i){let a,o,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,o=n,s=i);const u=o??zn.active(),l=this.startSpan(t,a,u),c=Si.setSpan(u,l);return zn.with(c,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class N7e{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const r of this._spanProcessors)t.push(r.forceFlush());return new Promise(r=>{Promise.all(t).then(()=>{r()}).catch(n=>{kD(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnd(t){for(const r of this._spanProcessors)r.onEnd(t)}shutdown(){const t=[];for(const r of this._spanProcessors)t.push(r.shutdown());return new Promise((r,n)=>{Promise.all(t).then(()=>{r()},n)})}}var dc;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(dc||(dc={}));class D7e{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=d7e({},GX(),O7e(t));this._resource=r.resource??b7e(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new N7e(n)}getTracer(t,r,n){const i=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new P7e({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let a;const o=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=dc.timeout},t);n.forceFlush().then(()=>{clearTimeout(o),a!==dc.timeout&&(a=dc.resolved,i(a))}).catch(s=>{clearTimeout(o),a=dc.error,i(s)})}));return new Promise((n,i)=>{Promise.all(r).then(a=>{const o=a.filter(s=>s!==dc.resolved);o.length>0?i(o):n()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class I7e{export(t,r){return this._sendSpans(t,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:TX(t.startTime),duration:TX(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,r){for(const n of t)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:io.SUCCESS})}}class XX{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new g7e(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,r){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Ls.SAMPLED)===0)return;const r=this._doExport(t).catch(n=>kD(n));this._pendingExports.add(r),r.finally(()=>this._pendingExports.delete(r))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const r=await y7e._export(this._exporter,[t]);if(r.code!==io.SUCCESS)throw r.error??new Error(`SimpleSpanProcessor: span export failed (status ${r})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class k7e{_enabled=!1;_currentContext=Ms;_bindFunction(t=Ms,r){const n=this,i=function(...a){return n.with(t,()=>r.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r}disable(){return this._currentContext=Ms,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ms,this)}with(t,r,n,...i){const a=this._currentContext;this._currentContext=t||Ms;try{return r.call(n,...i)}finally{this._currentContext=a}}}function M7e(e){if(e!==null){if(e===void 0){const t=new k7e;t.enable(),zn.setGlobalContextManager(t);return}e.enable(),zn.setGlobalContextManager(e)}}function L7e(e){if(e!==null){if(e===void 0){Wo.setGlobalPropagator(new $8e({propagators:[new t7e,new y8e]}));return}Wo.setGlobalPropagator(e)}}class j7e extends D7e{constructor(t={}){super(t)}register(t={}){Si.setGlobalTracerProvider(this),L7e(t.propagator),M7e(t.contextManager)}}var Vr;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(Vr||(Vr={}));const F7e="http.response_content_length",$7e="http.response_content_length_uncompressed";let YD;function V7e(){return YD||(YD=document.createElement("a")),YD}function q7e(e,t){return t in e}function $s(e,t,r,n=!0){if(q7e(r,t)&&typeof r[t]=="number"&&!(n&&r[t]===0))return e.addEvent(t,r[t])}function ZX(e,t,r=!1,n,i){if(n===void 0&&(n=t[Vr.START_TIME]!==0),r||($s(e,Vr.FETCH_START,t,n),$s(e,Vr.DOMAIN_LOOKUP_START,t,n),$s(e,Vr.DOMAIN_LOOKUP_END,t,n),$s(e,Vr.CONNECT_START,t,n),$s(e,Vr.SECURE_CONNECTION_START,t,n),$s(e,Vr.CONNECT_END,t,n),$s(e,Vr.REQUEST_START,t,n),$s(e,Vr.RESPONSE_START,t,n),$s(e,Vr.RESPONSE_END,t,n)),!i){const a=t[Vr.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(F7e,a);const o=t[Vr.DECODED_BODY_SIZE];o!==void 0&&a!==o&&e.setAttribute($7e,o)}}function B7e(e){return e.slice().sort((t,r)=>{const n=t[Vr.FETCH_START],i=r[Vr.FETCH_START];return n>i?1:n<i?-1:0})}function JX(){return typeof location<"u"?location.origin:void 0}function U7e(e,t,r,n,i=new WeakSet,a){const o=Ob(e);e=o.toString();const s=W7e(e,t,r,n,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=B7e(s);if(o.origin!==JX()&&u.length>1){let l=u[0],c=z7e(u,l[Vr.RESPONSE_END],r);const f=l[Vr.RESPONSE_END];return c[Vr.FETCH_START]<f&&(c=l,l=void 0),{corsPreFlightRequest:l,mainRequest:c}}else return{mainRequest:s[0]}}function z7e(e,t,r){const n=Fs(r),i=Fs(bv(t));let a=e[1],o;const s=e.length;for(let u=1;u<s;u++){const l=e[u],c=Fs(bv(l[Vr.FETCH_START])),f=Fs(bv(l[Vr.RESPONSE_END])),d=n-f;c>=i&&(!o||d<o)&&(o=d,a=l)}return a}function W7e(e,t,r,n,i,a){const o=Fs(t),s=Fs(r);let u=n.filter(l=>{const c=Fs(bv(l[Vr.FETCH_START])),f=Fs(bv(l[Vr.RESPONSE_END]));return l.initiatorType.toLowerCase()===a&&l.name===e&&c>=o&&f<=s});return u.length>0&&(u=u.filter(l=>!i.has(l))),u}function Ob(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=V7e();return t.href=e,t}function H7e(e,t){let r=t||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),Ob(e).origin===JX()?!0:r.some(i=>BX(e,i))}class G7e{_delegate;constructor(t){this._delegate=t}export(t,r){this._delegate.export(t,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class eZ extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function K7e(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Y7e(e){if(e!=null)return()=>e}function Q7e(e,t,r){return{timeoutMillis:K7e(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function X7e(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Z7e{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const r=()=>{const n=this._sendingPromises.indexOf(t);this._sendingPromises.splice(n,1)};t.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function J7e(e){return new Z7e(e.concurrencyLimit)}function e$e(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function t$e(){return{handleResponse(e){e==null||!e$e(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||vr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class r$e{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,r,n,i,a){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=a,this._diagLogger=vr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:io.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:io.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,i.data)}r({code:io.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:io.FAILED,error:i.error});return}else i.status==="retryable"?r({code:io.FAILED,error:new eZ("Export failed with retryable status")}):r({code:io.FAILED,error:new eZ("Export failed with unknown error")})},i=>r({code:io.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function n$e(e,t){return new r$e(e.transport,e.serializer,t$e(),e.promiseHandler,t.timeout)}function tZ(e,t,r){return n$e({transport:r,serializer:t,promiseHandler:J7e(e)},{timeout:e.timeoutMillis})}function rZ(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function nZ(e){const t=new Uint8Array(e.length/2);let r=0;for(let n=0;n<e.length;n+=2){const i=rZ(e.charCodeAt(n)),a=rZ(e.charCodeAt(n+1));t[r++]=i<<4|a}return t}function iZ(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i$e(e){const t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function a$e(e){const t=iZ(e);return i$e(t)}function o$e(e){return iZ(e).toString()}const s$e=typeof BigInt<"u"?o$e:Fs;function aZ(e){return e}function u$e(e){if(e!==void 0)return nZ(e)}const l$e={encodeHrTime:a$e,encodeSpanContext:nZ,encodeOptionalSpanContext:u$e};function c$e(e){return e===void 0?l$e:{encodeHrTime:s$e,encodeSpanContext:aZ,encodeOptionalSpanContext:aZ}}function f$e(e){return{attributes:Ab(e.attributes),droppedAttributesCount:0}}function d$e(e){return{name:e.name,version:e.version}}function Ab(e){return Object.keys(e).map(t=>oZ(t,e[t]))}function oZ(e,t){return{key:e,value:sZ(t)}}function sZ(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(sZ)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([r,n])=>oZ(r,n))}}:{}}function h$e(e,t){const r=e.spanContext(),n=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Ab(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>v$e(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(a=>p$e(a,t)),droppedLinksCount:e.droppedLinksCount}}function p$e(e,t){return{attributes:e.attributes?Ab(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function v$e(e,t){return{attributes:e.attributes?Ab(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function g$e(e,t){const r=c$e(t);return{resourceSpans:y$e(e,r)}}function m$e(e){const t=new Map;for(const r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(r)}return t}function y$e(e,t){const r=m$e(e),n=[],i=r.entries();let a=i.next();for(;!a.done;){const[o,s]=a.value,u=[],l=s.values();let c=l.next();for(;!c.done;){const d=c.value;if(d.length>0){const h=d.map(m=>h$e(m,t));u.push({scope:d$e(d[0].instrumentationScope),spans:h,schemaUrl:d[0].instrumentationScope.schemaUrl})}c=l.next()}const f={resource:f$e(o),scopeSpans:u,schemaUrl:void 0};n.push(f),a=i.next()}return n}const _$e={serializeRequest:e=>{const t=g$e(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},b$e=5,E$e=1e3,w$e=5e3,x$e=1.5,uZ=.2;function S$e(){return Math.random()*(2*uZ)-uZ}class R$e{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((i,a)=>{setTimeout(()=>{this._transport.send(t,r).then(i,a)},n)})}async send(t,r){const n=Date.now()+r;let i=await this._transport.send(t,r),a=b$e,o=E$e;for(;i.status==="retryable"&&a>0;){a--;const s=Math.max(Math.min(o,w$e)+S$e(),0);o=o*x$e;const u=i.retryInMillis??s,l=n-Date.now();if(u>l)return i;i=await this.retry(t,l,u)}return i}shutdown(){return this._transport.shutdown()}}function lZ(e){return new R$e(e.transport)}function O$e(e){return[429,502,503,504].includes(e)}function A$e(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const r=new Date(e).getTime()-Date.now();return r>=0?r:0}class T$e{_parameters;constructor(t){this._parameters=t}send(t,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const a=this._parameters.headers();Object.entries(a).forEach(([o,s])=>{i.setRequestHeader(o,s)}),i.ontimeout=o=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(vr.debug("XHR success"),n({status:"success"})):i.status&&O$e(i.status)?n({status:"retryable",retryInMillis:A$e(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function C$e(e){return new T$e(e)}class P$e{_params;constructor(t){this._params=t}send(t){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(vr.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function N$e(e){return new P$e(e)}function D$e(e,t){return tZ(e,t,lZ({transport:C$e(e)}))}function I$e(e,t){return tZ(e,t,lZ({transport:N$e({url:e.url,blobType:e.headers()["Content-Type"]})}))}function k$e(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):vr.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}}function M$e(e,t,r){const n={...r()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,n))}function L$e(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function j$e(e,t,r){return{...Q7e(e,t,r),headers:M$e(k$e(e.headers),t.headers,r.headers),url:L$e(e.url)??t.url??r.url,agentOptions:e.agentOptions??t.agentOptions??r.agentOptions}}function F$e(e,t){return{...X7e(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function $$e(e,t,r){return j$e({url:e.url,timeoutMillis:e.timeoutMillis,headers:Y7e(e.headers),concurrencyLimit:e.concurrencyLimit},{},F$e(r,t))}function V$e(e,t,r,n){const i=!!e.headers||typeof navigator.sendBeacon!="function",a=$$e(e,r,n);return i?D$e(a,t):I$e(a,t)}class q$e extends G7e{constructor(t={}){super(V$e(t,_$e,"v1/traces",{"Content-Type":"application/json"}))}}class cZ{emit(t){}}const B$e=new cZ;class U$e{getLogger(t,r,n){return new cZ}}const fZ=new U$e;class z$e{constructor(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):B$e}}class dZ{getLogger(t,r,n){var i;return(i=this.getDelegateLogger(t,r,n))!==null&&i!==void 0?i:new z$e(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:fZ}setDelegate(t){this._delegate=t}getDelegateLogger(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,r,n)}}const W$e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Tb=Symbol.for("io.opentelemetry.js.api.logs"),xv=W$e;function H$e(e,t,r){return n=>n===e?t:r}const hZ=1;class QD{constructor(){this._proxyLoggerProvider=new dZ}static getInstance(){return this._instance||(this._instance=new QD),this._instance}setGlobalLoggerProvider(t){return xv[Tb]?this.getLoggerProvider():(xv[Tb]=H$e(hZ,t,fZ),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=xv[Tb])===null||t===void 0?void 0:t.call(xv,hZ))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete xv[Tb],this._proxyLoggerProvider=new dZ}}const pZ=QD.getInstance();function G$e(e,t,r,n){for(let i=0,a=e.length;i<a;i++){const o=e[i];t&&o.setTracerProvider(t),r&&o.setMeterProvider(r),n&&o.setLoggerProvider&&o.setLoggerProvider(n),o.getConfig().enabled||o.enable()}}function K$e(e){e.forEach(t=>t.disable())}function Y$e(e){const t=e.tracerProvider||Si.getTracerProvider(),r=e.meterProvider||sX.getMeterProvider(),n=e.loggerProvider||pZ.getLoggerProvider(),i=e.instrumentations?.flat()??[];return G$e(i,t,r,n),()=>{K$e(i)}}let ua=console.error.bind(console);function Sv(e,t,r){const n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}const vZ=(e,t,r)=>{if(!e||!e[t]){ua("no original function "+String(t)+" to wrap");return}if(!r){ua("no wrapper function"),ua(new Error().stack);return}const n=e[t];if(typeof n!="function"||typeof r!="function"){ua("original object and wrapper must be functions");return}const i=r(n,t);return Sv(i,"__original",n),Sv(i,"__unwrap",()=>{e[t]===i&&Sv(e,t,n)}),Sv(i,"__wrapped",!0),Sv(e,t,i),i},Q$e=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{ua("must provide one or more modules to patch"),ua(new Error().stack);return}if(!(t&&Array.isArray(t))){ua("must provide one or more functions to wrap on modules");return}e.forEach(n=>{t.forEach(i=>{vZ(n,i,r)})})},gZ=(e,t)=>{if(!e||!e[t]){ua("no function to unwrap."),ua(new Error().stack);return}const r=e[t];if(!r.__unwrap)ua("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{r.__unwrap();return}},X$e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{ua("must provide one or more modules to patch"),ua(new Error().stack);return}if(!(t&&Array.isArray(t))){ua("must provide one or more functions to unwrap on modules");return}e.forEach(r=>{t.forEach(n=>{gZ(r,n)})})};class Z$e{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this.setConfig(n),this._diag=vr.createComponentLogger({namespace:t}),this._tracer=Si.getTracer(t,r),this._meter=sX.getMeter(t,r),this._logger=pZ.getLogger(t,r),this._updateMetricInstruments()}_wrap=vZ;_unwrap=gZ;_massWrap=Q$e;_massUnwrap=X$e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,r,n,i){if(t)try{t(n,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}}}class J$e extends Z$e{constructor(t,r,n){super(t,r,n),this._config.enabled&&this.enable()}}function mZ(e,t,r){let n,i;try{i=e()}catch(a){n=a}finally{return t(n,i),i}}function eVe(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Ui;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(Ui||(Ui={}));function tVe(e,t){let r=Ui.OLD;const n=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of n??[])if(i.toLowerCase()===e+"/dup"){r=Ui.DUPLICATE;break}else i.toLowerCase()===e&&(r=Ui.STABLE);return r}var Cb;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(Cb||(Cb={}));var ln={},yZ;function rVe(){return yZ||(yZ=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.ATTR_HTTP_USER_AGENT=ln.ATTR_HTTP_URL=ln.ATTR_HTTP_STATUS_CODE=ln.ATTR_HTTP_SCHEME=ln.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=ln.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=ln.ATTR_HTTP_REQUEST_BODY_SIZE=ln.ATTR_HTTP_METHOD=ln.ATTR_HTTP_HOST=void 0,ln.ATTR_HTTP_HOST="http.host",ln.ATTR_HTTP_METHOD="http.method",ln.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",ln.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",ln.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",ln.ATTR_HTTP_SCHEME="http.scheme",ln.ATTR_HTTP_STATUS_CODE="http.status_code",ln.ATTR_HTTP_URL="http.url",ln.ATTR_HTTP_USER_AGENT="http.user_agent"),ln}var ju=rVe();const _Z=vr.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function nVe(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:r,length:n}=iVe(t.body);return t.body=r,n}else return Promise.resolve(oVe(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(r=>XD(r)):Promise.resolve()}}function iVe(e){if(!e.pipeThrough)return _Z.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,r;const n=new Promise(a=>{r=a}),i=new TransformStream({start(){},async transform(a,o){const s=await a;t+=s.byteLength,o.enqueue(a)},flush(){r(t)}});return{body:e.pipeThrough(i),length:n}}function aVe(e){return typeof Document<"u"&&e instanceof Document}function oVe(e){if(aVe(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return XD(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return uVe(e);if(e instanceof URLSearchParams)return XD(e.toString());if(e.byteLength!==void 0)return e.byteLength;_Z.warn("unknown body type")}const sVe=new TextEncoder;function XD(e){return sVe.encode(e).byteLength}function uVe(e){let t=0;for(const[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}function lVe(e){const t=fVe(),r=e.toUpperCase();return r in t?r:"_OTHER"}const cVe={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let ZD;function fVe(){return ZD===void 0&&(ZD=cVe),ZD}const dVe={"https:":"443","http:":"80"};function hVe(e){const t=Number(e.port||dVe[e.protocol]);if(t&&!isNaN(t))return t}const bZ="0.203.0",pVe=300,EZ=typeof process=="object"&&process.release?.name==="node";class vVe extends J$e{component="fetch";version=bZ;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",bZ,t),this._semconvStability=tVe("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,r){const n=this.tracer.startSpan("CORS Preflight",{startTime:r[Vr.FETCH_START]},Si.setSpan(zn.active(),t)),i=!(this._semconvStability&Ui.OLD);ZX(n,r,this.getConfig().ignoreNetworkEvents,void 0,i),n.end(r[Vr.RESPONSE_END])}_addFinalSpanAttributes(t,r){const n=Ob(r.url);if(this._semconvStability&Ui.OLD&&(t.setAttribute(ju.ATTR_HTTP_STATUS_CODE,r.status),r.statusText!=null&&t.setAttribute(Cb.HTTP_STATUS_TEXT,r.statusText),t.setAttribute(ju.ATTR_HTTP_HOST,n.host),t.setAttribute(ju.ATTR_HTTP_SCHEME,n.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(ju.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&Ui.STABLE){t.setAttribute(P8e,r.status),t.setAttribute(N8e,n.hostname);const i=hVe(n);i&&t.setAttribute(D8e,i)}}_addHeaders(t,r){if(!H7e(r,this.getConfig().propagateTraceHeaderCorsUrls)){const n={};Wo.inject(zn.active(),n),Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Wo.inject(zn.active(),t.headers,{set:(n,i,a)=>n.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Headers)Wo.inject(zn.active(),t.headers,{set:(n,i,a)=>n.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Map)Wo.inject(zn.active(),t.headers,{set:(n,i,a)=>n.set(i,typeof a=="string"?a:String(a))});else{const n={};Wo.inject(zn.active(),n),t.headers=Object.assign({},n,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,r={}){if(p7e(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let n="";const i={};if(this._semconvStability&Ui.OLD){const a=(r.method||"GET").toUpperCase();n=`HTTP ${a}`,i[Cb.COMPONENT]=this.moduleName,i[ju.ATTR_HTTP_METHOD]=a,i[ju.ATTR_HTTP_URL]=t}if(this._semconvStability&Ui.STABLE){const a=r.method,o=lVe(r.method||"GET");n||(n=o),i[T8e]=o,o!==a&&(i[C8e]=a),i[k8e]=t}return this.tracer.startSpan(n,{kind:hb.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,r,n){let i=r.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const a=U7e(r.spanUrl,r.startTime,n,i,this._usedResources,"fetch");if(a.mainRequest){const o=a.mainRequest;this._markResourceAsUsed(o);const s=a.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&Ui.OLD);ZX(t,o,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,r,n){const i=js(Date.now()),a=_b();this._addFinalSpanAttributes(t,n),this._semconvStability&Ui.STABLE&&n.status>=400&&(t.setStatus({code:lc.ERROR}),t.setAttribute(O8e,String(n.status))),setTimeout(()=>{r.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,r,a),this._tasksCount--,this._clearResources(),t.end(i)},pVe)}_patchConstructor(){return t=>{const r=this;return function(...i){const a=this,o=Ob(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=r._createSpan(o,s);if(!u)return t.apply(this,i);const l=r._prepareSpanData(o);r.getConfig().measureRequestSize&&nVe(...i).then(m=>{m&&(r._semconvStability&Ui.OLD&&u.setAttribute(ju.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,m),r._semconvStability&Ui.STABLE&&u.setAttribute(ju.ATTR_HTTP_REQUEST_BODY_SIZE,m))}).catch(m=>{r._diag.warn("getFetchBodyLength",m)});function c(m,p){r._applyAttributesAfterFetch(m,s,p),r._endSpan(m,l,{status:p.status||0,statusText:p.message,url:o})}function f(m,p){r._applyAttributesAfterFetch(m,s,p),p.status>=200&&p.status<400?r._endSpan(m,l,p):r._endSpan(m,l,{status:p.status,statusText:p.statusText,url:o})}function d(m,p,g){try{const b=g.clone().body;if(b){const E=b.getReader(),w=()=>{E.read().then(({done:x})=>{x?f(m,g):w()},x=>{c(m,x)})};w()}else f(m,g)}finally{p(g)}}function h(m,p,g){try{c(m,g)}finally{p(g)}}return new Promise((m,p)=>zn.with(Si.setSpan(zn.active(),u),()=>(r._addHeaders(s,o),r._callRequestHook(u,s),r._tasksCount++,t.apply(a,s instanceof Request?[s]:[o,s]).then(d.bind(a,u,m),h.bind(a,u,p)))))}}}_applyAttributesAfterFetch(t,r,n){const i=this.getConfig().applyCustomAttributesOnSpan;i&&mZ(()=>i(t,r,n),a=>{a&&this._diag.error("applyCustomAttributesOnSpan",a)})}_callRequestHook(t,r){const n=this.getConfig().requestHook;n&&mZ(()=>n(t,r),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const r=_b(),n=[];if(typeof PerformanceObserver!="function")return{entries:n,startTime:r,spanUrl:t};const i=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&n.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:n,observer:i,startTime:r,spanUrl:t}}enable(){if(EZ){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}eVe(fetch)&&(this._unwrap(MD,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(MD,"fetch",this._patchConstructor())}disable(){EZ||(this._unwrap(MD,"fetch"),this._usedResources=new WeakSet)}}function gVe(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const wZ="OT_ZONE_CONTEXT";class mVe{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(wZ)||Ms}_bindFunction(t,r){const n=this,i=function(...a){return n.with(t,()=>r.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}_bindListener(t,r){const n=r;return n.__ot_listeners!==void 0||(n.__ot_listeners={},typeof n.addEventListener=="function"&&(n.addEventListener=this._patchAddEventListener(n,n.addEventListener,t)),typeof n.removeEventListener=="function"&&(n.removeEventListener=this._patchRemoveEventListener(n,n.removeEventListener))),r}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,r){return Zone.current.fork({name:t,properties:{[wZ]:r}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,r,n){const i=this;return function(a,o,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[a];u===void 0&&(u=new WeakMap,t.__ot_listeners[a]=u);const l=i.bind(n,o);return u.set(o,l),r.call(this,a,l,s)}}_patchRemoveEventListener(t,r){return function(n,i){if(t.__ot_listeners===void 0||t.__ot_listeners[n]===void 0)return r.call(this,n,i);const a=t.__ot_listeners[n],o=a.get(i);return a.delete(i),r.call(this,n,o||i)}}active(){if(!this._enabled)return Ms;const t=this._getActiveZone(),r=this._activeContextFromZone(t);return r||Ms}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):(gVe(r)&&this._bindListener(t,r),r)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,r,n,...i){const a=this._createZoneName();return this._createZone(a,t).run(r,n,i)}}var xZ={},SZ;function yVe(){if(SZ)return xZ;SZ=1;/**
261
+ c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function K4e({size:e=24,color:t="currentColor"}){return C.jsx(Se.SvgIcon,{children:C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:C.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:Y4e,forEach:Q4e}=[];function X4e(e){return Q4e.call(Y4e.call(arguments,1),t=>{if(t)for(const r in t)e[r]===void 0&&(e[r]=t[r])}),e}function Z4e(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(e))}const UQ=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,J4e=function(e,t){const n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(n.maxAge>0){const o=n.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(n.domain){if(!UQ.test(n.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${n.domain}`}if(n.path){if(!UQ.test(n.path))throw new TypeError("option path is invalid");a+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(a+="; Partitioned"),a},zQ={create(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+r*60*1e3)),n&&(i.domain=n),document.cookie=J4e(e,t,i)},read(e){const t=`${e}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let i=r[n];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var e6e={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return zQ.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:a}=t;r&&typeof document<"u"&&zQ.create(r,e,n,i,a)}},t6e={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,r;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const a=n.substring(1).split("&");for(let o=0;o<a.length;o++){const s=a[o].indexOf("=");s>0&&a[o].substring(0,s)===t&&(r=a[o].substring(s+1))}}return r}},r6e={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:r}=e,n;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const a=i.substring(1);if(t){const o=a.split("&");for(let s=0;s<o.length;s++){const u=o[s].indexOf("=");u>0&&o[s].substring(0,u)===t&&(n=o[s].substring(u+1))}}if(n)return n;if(!n&&r>-1){const o=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof r=="number"?r:0]?.replace("/",""):void 0}}}return n}};let hd=null;const WQ=()=>{if(hd!==null)return hd;try{if(hd=typeof window<"u"&&window.localStorage!==null,!hd)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{hd=!1}return hd};var n6e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&WQ())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&WQ()&&window.localStorage.setItem(r,e)}};let pd=null;const HQ=()=>{if(pd!==null)return pd;try{if(pd=typeof window<"u"&&window.sessionStorage!==null,!pd)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{pd=!1}return pd};var i6e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&HQ())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&HQ()&&window.sessionStorage.setItem(r,e)}},a6e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:i}=navigator;if(r)for(let a=0;a<r.length;a++)t.push(r[a]);n&&t.push(n),i&&t.push(i)}return t.length>0?t:void 0}},o6e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,r;const n=t||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},s6e={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof t=="number"?t:0]?.replace("/",""):void 0}},u6e={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const r=typeof t=="number"?t+1:1,n=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}};let GQ=!1;try{document.cookie,GQ=!0}catch{}const KQ=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];GQ||KQ.splice(1,1);const l6e=()=>({order:KQ,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class YQ{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,r)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=X4e(r,this.options||{},l6e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(e6e),this.addDetector(t6e),this.addDetector(n6e),this.addDetector(i6e),this.addDetector(a6e),this.addDetector(o6e),this.addDetector(s6e),this.addDetector(u6e),this.addDetector(r6e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return t.forEach(n=>{if(this.detectors[n]){let i=this.detectors[n].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(r=r.concat(i))}}),r=r.filter(n=>n!=null&&!Z4e(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(t,this.options)}))}}YQ.type="languageDetector";const c6e=e=>{let t={};for(const n of Object.keys(e)){const i=n.match(/\w+\.json/);if(i){const a=i[0]?.split(".")[0];t={...t,[a]:{translation:e[n]}}}}const r=Object.keys(t);return hn.use(YQ).use(Ete).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:r,missingKeyHandler:function(n,i,a){console.warn(`MISSING TRANSLATION: [${n}] ${i}:${a}`)}}),hn};function QQ({children:e}){return C.jsx(Kr,{paddingBottom:"16px",gap:"8px",children:e})}function XQ({children:e}){return C.jsx(Gd,{mt:"auto",mb:"auto",width:"100%",children:C.jsx(Se.Paper,{sx:{width:"100%"},children:C.jsx(Kr,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function ZQ({tabValue:e,columnValues:t,columnWidths:r}){const{t:n}=Qt();return C.jsx(Se.Paper,{sx:{display:"grid",gridTemplateColumns:r?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,a)=>C.jsx(Se.Typography,{children:C.jsx("b",{children:n(i)})},a))})}function f6e({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:r,SecondTabContent:n,ThirdTabContent:i,tabValue:a,columnValues:o,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:l,ThirdTabNearbyContent:c}){return C.jsxs(Ju,{gap:"16px",children:[C.jsx(XQ,{children:e}),C.jsxs(OS,{gap:"16px",children:[C.jsxs(Se.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&a===0||l&&a===1||c&&a===2?"70%":"unset",maxWidth:u&&a===0||l&&a===1||c&&a===2?"70%":"unset"},children:[C.jsx(QQ,{children:t}),C.jsxs(Ju,{children:[C.jsx(ZQ,{columnValues:o,columnWidths:s,tabValue:a}),C.jsx(Se.Divider,{sx:{marginBottom:"16px"}}),C.jsxs(Ju,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[a===0?C.jsx(r,{}):null,a===1?C.jsx(n,{}):null,a===2&&i?C.jsx(i,{}):null]})]})]}),a===0&&u?C.jsx(Se.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,a===1&&l?C.jsx(Se.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null,a===2&&c?C.jsx(Se.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null]})]})}function d6e({children:e,position:t}){return C.jsx(J5e,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:cv,info:cv,success:cv,error:cv,warning:cv},children:e})}const no={};function h6e(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(r,n){if(r.endsWith(".graphql")){const i=no.resolve(r),a=no.basename(i);if(!n.includes(t))return no.resolve(e,"graphQL","__generated__",`${a}.ts`);const o=no.resolve(__dirname,".."),s=n.slice(o.length).split("/")[1];return no.resolve(o,s,"__generated__",`${a}.ts`)}return null}}}function p6e(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(r,n){if(r.endsWith(".graphql")){const i=no.resolve(r),a=no.basename(i),o=no.resolve(e,".."),s=no.resolve(o,t,"__generated__",`${a}.ts`);return console.log("corepath",t),console.log("reporoot",o),console.log("fileproject",s),console.log("importer",n),n.includes(t)?no.resolve(o,t,"__generated__",`${a}.ts`):no.resolve(e,"graphQL","__generated__",`${a}.ts`)}return null}}}var vd=Wt(),v6e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},oc="1.9.0",JQ=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function g6e(e){var t=new Set([e]),r=new Set,n=e.match(JQ);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(u){return u===e};function a(s){return r.add(s),!1}function o(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(r.has(u))return!1;var l=u.match(JQ);if(!l)return a(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?a(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?o(u):a(u):i.minor<=c.minor?o(u):a(u)}}var m6e=g6e(oc),y6e=oc.split(".")[0],fv=Symbol.for("opentelemetry.js.api."+y6e),dv=v6e;function hv(e,t,r,n){var i;n===void 0&&(n=!1);var a=dv[fv]=(i=dv[fv])!==null&&i!==void 0?i:{version:oc};if(!n&&a[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(o.stack||o.message),!1}if(a.version!==oc){var o=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+oc);return r.error(o.stack||o.message),!1}return a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+oc+"."),!0}function sc(e){var t,r,n=(t=dv[fv])===null||t===void 0?void 0:t.version;if(!(!n||!m6e(n)))return(r=dv[fv])===null||r===void 0?void 0:r[e]}function pv(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+oc+".");var r=dv[fv];r&&delete r[e]}var _6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},b6e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},E6e=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vv("verbose",this._namespace,t)},e}();function vv(e,t,r){var n=sc("diag");if(n)return r.unshift(t),n[e].apply(n,b6e([],_6e(r),!1))}var sa;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(sa||(sa={}));function w6e(e,t){e<sa.NONE?e=sa.NONE:e>sa.ALL&&(e=sa.ALL),t=t||{};function r(n,i){var a=t[n];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:r("error",sa.ERROR),warn:r("warn",sa.WARN),info:r("info",sa.INFO),debug:r("debug",sa.DEBUG),verbose:r("verbose",sa.VERBOSE)}}var x6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},S6e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},R6e="diag",zo=function(){function e(){function t(i){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=sc("diag");if(s)return s[i].apply(s,S6e([],x6e(a),!1))}}var r=this,n=function(i,a){var o,s,u;if(a===void 0&&(a={logLevel:sa.INFO}),i===r){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((o=l.stack)!==null&&o!==void 0?o:l.message),!1}typeof a=="number"&&(a={logLevel:a});var c=sc("diag"),f=w6e((s=a.logLevel)!==null&&s!==void 0?s:sa.INFO,i);if(c&&!a.suppressOverrideMessage){var d=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return hv("diag",f,r,!0)};r.setLogger=n,r.disable=function(){pv(R6e,r)},r.createComponentLogger=function(i){return new E6e(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),O6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},A6e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},T6e=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=O6e(t,2),n=r[0],i=r[1];return[n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=new e(this._entries);try{for(var o=A6e(n),s=o.next();!s.done;s=o.next()){var u=s.value;a._entries.delete(u)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),C6e=Symbol("BaggageEntryMetadata"),P6e=zo.instance();function N6e(e){return e===void 0&&(e={}),new T6e(new Map(Object.entries(e)))}function D6e(e){return typeof e!="string"&&(P6e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:C6e,toString:function(){return e}}}function pD(e){return Symbol.for(e)}var I6e=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var a=new e(r._currentContext);return a._currentContext.set(n,i),a},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i}}return e}(),Ms=new I6e,uc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),k6e=function(){function e(){}return e.prototype.createGauge=function(t,r){return z6e},e.prototype.createHistogram=function(t,r){return W6e},e.prototype.createCounter=function(t,r){return U6e},e.prototype.createUpDownCounter=function(t,r){return H6e},e.prototype.createObservableGauge=function(t,r){return K6e},e.prototype.createObservableCounter=function(t,r){return G6e},e.prototype.createObservableUpDownCounter=function(t,r){return Y6e},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),lb=function(){function e(){}return e}(),M6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(lb),L6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(lb),j6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(lb),F6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(lb),vD=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),$6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vD),V6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vD),q6e=function(e){uc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vD),B6e=new k6e,U6e=new M6e,z6e=new j6e,W6e=new F6e,H6e=new L6e,G6e=new $6e,K6e=new V6e,Y6e=new q6e,Q6e={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},X6e={set:function(e,t,r){e!=null&&(e[t]=r)}},Z6e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},J6e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},eFe=function(){function e(){}return e.prototype.active=function(){return Ms},e.prototype.with=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return r.call.apply(r,J6e([n],Z6e(i),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),tFe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a},rFe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},gD="context",nFe=new eFe,cb=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return hv(gD,t,zo.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return(i=this._getContextManager()).with.apply(i,rFe([t,r,n],tFe(a),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return sc(gD)||nFe},e.prototype.disable=function(){this._getContextManager().disable(),pv(gD,zo.instance())},e}(),Ls;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ls||(Ls={}));var eX="0000000000000000",tX="00000000000000000000000000000000",rX={traceId:tX,spanId:eX,traceFlags:Ls.NONE},gv=function(){function e(t){t===void 0&&(t=rX),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,r){},e}(),mD=pD("OpenTelemetry Context Key SPAN");function yD(e){return e.getValue(mD)||void 0}function iFe(){return yD(cb.getInstance().active())}function _D(e,t){return e.setValue(mD,t)}function aFe(e){return e.deleteValue(mD)}function oFe(e,t){return _D(e,new gv(t))}function nX(e){var t;return(t=yD(e))===null||t===void 0?void 0:t.spanContext()}var sFe=/^([0-9a-f]{32})$/i,uFe=/^[0-9a-f]{16}$/i;function iX(e){return sFe.test(e)&&e!==tX}function lFe(e){return uFe.test(e)&&e!==eX}function fb(e){return iX(e.traceId)&&lFe(e.spanId)}function cFe(e){return new gv(e)}var bD=cb.getInstance(),aX=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=bD.active());var i=!!r?.root;if(i)return new gv;var a=n&&nX(n);return fFe(a)&&fb(a)?new gv(a):new gv},e.prototype.startActiveSpan=function(t,r,n,i){var a,o,s;if(!(arguments.length<2)){arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,o=n,s=i);var u=o??bD.active(),l=this.startSpan(t,a,u),c=_D(u,l);return bD.with(c,s,void 0,l)}},e}();function fFe(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var dFe=new aX,hFe=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):dFe},e}(),pFe=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new aX},e}(),vFe=new pFe,oX=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return(i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new hFe(this,t,r,n)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:vFe},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}(),db;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(db||(db={}));var hb;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(hb||(hb={}));var lc;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(lc||(lc={}));var zn=cb.getInstance(),vr=zo.instance(),gFe=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return B6e},e}(),mFe=new gFe,ED="metrics",yFe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return hv(ED,t,zo.instance())},e.prototype.getMeterProvider=function(){return sc(ED)||mFe},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){pv(ED,zo.instance())},e}(),sX=yFe.getInstance(),_Fe=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return[]},e}(),wD=pD("OpenTelemetry Baggage Key");function uX(e){return e.getValue(wD)||void 0}function bFe(){return uX(cb.getInstance().active())}function EFe(e,t){return e.setValue(wD,t)}function wFe(e){return e.deleteValue(wD)}var xD="propagation",xFe=new _Fe,SFe=function(){function e(){this.createBaggage=N6e,this.getBaggage=uX,this.getActiveBaggage=bFe,this.setBaggage=EFe,this.deleteBaggage=wFe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return hv(xD,t,zo.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=X6e),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=Q6e),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){pv(xD,zo.instance())},e.prototype._getGlobalPropagator=function(){return sc(xD)||xFe},e}(),Wo=SFe.getInstance(),SD="trace",RFe=function(){function e(){this._proxyTracerProvider=new oX,this.wrapSpanContext=cFe,this.isSpanContextValid=fb,this.deleteSpan=aFe,this.getSpan=yD,this.getActiveSpan=iFe,this.getSpanContext=nX,this.setSpan=_D,this.setSpanContext=oFe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=hv(SD,this._proxyTracerProvider,zo.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return sc(SD)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){pv(SD,zo.instance()),this._proxyTracerProvider=new oX},e}(),Si=RFe.getInstance();function Bi(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function cc(e){return Bi(e)==="object"}function OFe(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function lX(e,t){return e.length<124?e:t}const AFe="graphql-transport-ws";var Da=(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))(Da||{}),Ia=(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))(Ia||{});function cX(e){if(!cc(e))throw new Error(`Message is expected to be an object, but got ${Bi(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Bi(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!cc(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(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!cc(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Bi(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Bi(e.payload.query)}`);if(e.payload.variables!=null&&!cc(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 ${Bi(e.payload.variables)}`);if(e.payload.operationName!=null&&Bi(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Bi(e.payload.operationName)}`);if(e.payload.extensions!=null&&!cc(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 ${Bi(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!cc(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Bi(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!OFe(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(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Bi(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 TFe(e,t){return cX(typeof e=="string"?JSON.parse(e,t):e)}function mv(e,t){return cX(e),JSON.stringify(e,t)}function CFe(e){const{url:t,connectionParams:r,lazy:n=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:l=5,retryWait:c=async function(I){const L=Math.pow(2,I);await new Promise(B=>setTimeout(B,L*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:f=RD,on:d,webSocketImpl:h,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,I=>{const L=Math.random()*16|0;return(I=="x"?L:L&3|8).toString(16)})},jsonMessageReplacer:p,jsonMessageReviver:g}=e;let y;if(h){if(!NFe(h))throw new Error("Invalid WebSocket implementation provided");y=h}else typeof WebSocket<"u"?y=WebSocket:typeof global<"u"?y=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(y=window.WebSocket||window.MozWebSocket);if(!y)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const b=y,E=(()=>{const A=(()=>{const L={};return{on(B,H){return L[B]=H,()=>{delete L[B]}},emit(B){"id"in B&&L[B.id]?.(B)}}})(),I={connecting:d?.connecting?[d.connecting]:[],opened:d?.opened?[d.opened]:[],connected:d?.connected?[d.connected]:[],ping:d?.ping?[d.ping]:[],pong:d?.pong?[d.pong]:[],message:d?.message?[A.emit,d.message]:[A.emit],closed:d?.closed?[d.closed]:[],error:d?.error?[d.error]:[]};return{onMessage:A.on,on(L,B){const H=I[L];return H.push(B),()=>{H.splice(H.indexOf(B),1)}},emit(L,...B){for(const H of[...I[L]])H(...B)}}})();function w(A){const I=[E.on("error",L=>{I.forEach(B=>B()),A(L)}),E.on("closed",L=>{I.forEach(B=>B()),A(L)})]}let x,R=0,S,j=!1,M=0,k=!1;async function F(){clearTimeout(S);const[A,I]=await(x??(x=new Promise((H,U)=>(async()=>{if(j){if(await c(M),!R)return x=void 0,U({code:1e3,reason:"All Subscriptions Gone"});M++}E.emit("connecting",j);const T=new b(typeof t=="function"?await t():t,AFe);let D,O;function $(){isFinite(o)&&o>0&&(clearTimeout(O),O=setTimeout(()=>{T.readyState===b.OPEN&&(T.send(mv({type:Ia.Ping})),E.emit("ping",!1,void 0))},o))}w(W=>{x=void 0,clearTimeout(D),clearTimeout(O),U(W),W instanceof fX&&(T.close(4499,"Terminated"),T.onerror=null,T.onclose=null)}),T.onerror=W=>E.emit("error",W),T.onclose=W=>E.emit("closed",W),T.onopen=async()=>{try{E.emit("opened",T);const W=typeof r=="function"?await r():r;if(T.readyState!==b.OPEN)return;T.send(mv(W?{type:Ia.ConnectionInit,payload:W}:{type:Ia.ConnectionInit},p)),isFinite(u)&&u>0&&(D=setTimeout(()=>{T.close(Da.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),$()}catch(W){E.emit("error",W),T.close(Da.InternalClientError,lX(W instanceof Error?W.message:String(W),"Internal client error"))}};let q=!1;T.onmessage=({data:W})=>{try{const z=TFe(W,g);if(E.emit("message",z),z.type==="ping"||z.type==="pong"){E.emit(z.type,!0,z.payload),z.type==="pong"?$():s||(T.send(mv(z.payload?{type:Ia.Pong,payload:z.payload}:{type:Ia.Pong})),E.emit("pong",!1,z.payload));return}if(q)return;if(z.type!==Ia.ConnectionAck)throw new Error(`First message cannot be of type ${z.type}`);clearTimeout(D),q=!0,E.emit("connected",T,z.payload,j),j=!1,M=0,H([T,new Promise((Y,Q)=>w(Q))])}catch(z){T.onmessage=null,E.emit("error",z),T.close(Da.BadResponse,lX(z instanceof Error?z.message:String(z),"Bad response"))}}})())));A.readyState===b.CLOSING&&await I;let L=()=>{};const B=new Promise(H=>L=H);return[A,L,Promise.race([B.then(()=>{if(!R){const H=()=>A.close(1e3,"Normal Closure");isFinite(a)&&a>0?S=setTimeout(()=>{A.readyState===b.OPEN&&H()},a):H()}}),I])]}function V(A){if(RD(A)&&(PFe(A.code)||[Da.InternalServerError,Da.InternalClientError,Da.BadRequest,Da.BadResponse,Da.Unauthorized,Da.SubprotocolNotAcceptable,Da.SubscriberAlreadyExists,Da.TooManyInitialisationRequests].includes(A.code)))throw A;if(k)return!1;if(RD(A)&&A.code===1e3)return R>0;if(!l||M>=l||!f(A))throw A;return j=!0}n||(async()=>{for(R++;;)try{const[,,A]=await F();await A}catch(A){try{if(!V(A))return}catch(I){return i?.(I)}}})();function P(A,I){const L=m(A);let B=!1,H=!1,U=()=>{R--,B=!0};return(async()=>{for(R++;;)try{const[T,D,O]=await F();if(B)return D();const $=E.onMessage(L,q=>{switch(q.type){case Ia.Next:{I.next(q.payload);return}case Ia.Error:{H=!0,B=!0,I.error(q.payload),U();return}case Ia.Complete:{B=!0,U();return}}});T.send(mv({id:L,type:Ia.Subscribe,payload:A},p)),U=()=>{!B&&T.readyState===b.OPEN&&T.send(mv({id:L,type:Ia.Complete},p)),R--,B=!0,D()},await O.finally($);return}catch(T){if(!V(T))return}})().then(()=>{H||I.complete()}).catch(T=>{I.error(T)}),()=>{B||U()}}return{on:E.on,subscribe:P,iterate(A){const I=[],L={done:!1,error:null,resolve:()=>{}},B=P(A,{next(U){I.push(U),L.resolve()},error(U){L.done=!0,L.error=U,L.resolve()},complete(){L.done=!0,L.resolve()}}),H=async function*(){for(;;){for(I.length||await new Promise(T=>L.resolve=T);I.length;)yield I.shift();if(L.error)throw L.error;if(L.done)return}}();return H.throw=async U=>(L.done||(L.done=!0,L.error=U,L.resolve()),{done:!0,value:void 0}),H.return=async()=>(B(),{done:!0,value:void 0}),H},async dispose(){if(k=!0,x){const[A]=await x;A.close(1e3,"Normal Closure")}},terminate(){x&&E.emit("closed",new fX)}}}class fX extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function RD(e){return cc(e)&&"code"in e&&"reason"in e}function PFe(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function NFe(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const DFe=e=>CFe({url:e.API_URL}),IFe=(e,t,r)=>vd.Observable.create(n=>DFe(r).subscribe({operationName:e.name,query:e.text,variables:t},n)),kFe=(e,t,r)=>vd.Observable.from(zn.with(zn.active(),()=>{const n=Si.getTracer("RelayNetwork").startSpan("GraphQL fetch");n.setAttribute("variables",JSON.stringify(t)),n.setAttribute("path",e.name);const i=n.spanContext();return fetch(r.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":r.AUTH_SCHEMA,...r.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...r.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(a=>a.json().then(o=>(o.errors?(n.setStatus({code:lc.ERROR}),n.recordException(JSON.stringify(o.errors))):n.setStatus({code:lc.OK}),o))).catch(a=>{n.setStatus({code:lc.ERROR}),n.recordException(JSON.stringify(a))}).finally(()=>n.end())})),MFe=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function dX(e){return new vd.Environment({network:vd.Network.create((t,r)=>kFe(t,r,e),(t,r)=>IFe(t,r,e)),store:new vd.Store(new vd.RecordSource),getDataID:MFe})}function LFe({children:e}){const t=Og(),r=dX(t);return console.log("RelayEnvironment config:",t),console.log("RelayEnvironment environment:",r),C.jsx(X9.RelayEnvironmentProvider,{environment:r,children:e})}const jFe=(e,t,r)=>{const n=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i],o=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!o)continue;const s=o[1],u=Object.keys(t).find(y=>y.includes(`${s}/loader.ts`)),l=Object.keys(r).find(y=>y.includes(`${s}/action.ts`)),c=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),f=s==="index"?"/":`${c.toLowerCase()}`,d=K.lazy(a),h=K.lazy(async()=>({default:(await a()).icon||ite})),m=u?t[u].default:void 0,p=l?r[l].default:void 0,g={id:f,Icon:h,name:c,path:f,element:C.jsx(K.Suspense,{fallback:C.jsx(Sg,{}),children:C.jsx(d,{})}),...u?{loader:m}:{},...l?{action:p}:{}};n.push(g)}return n};var hX=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(hX||{});const yv={},pX=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,vX=e=>"init"in e,OD=e=>!!e.write,gX=e=>"v"in e||"e"in e,pb=e=>{if("e"in e)throw e.e;if((yv?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},vb=new WeakMap,mX=e=>{var t;return gb(e)&&!!((t=vb.get(e))!=null&&t[0])},FFe=e=>{const t=vb.get(e);t?.[0]&&(t[0]=!1,t[1].forEach(r=>r()))},$Fe=(e,t)=>{let r=vb.get(e);if(!r){r=[!0,new Set],vb.set(e,r);const n=()=>{r[0]=!1};e.then(n,n)}r[1].add(t)},gb=e=>typeof e?.then=="function",yX=(e,t,r)=>{r.p.has(e)||(r.p.add(e),t.then(()=>{r.p.delete(e)},()=>{r.p.delete(e)}))},AD=(e,t,r)=>{const n=r(e),i="v"in n,a=n.v;if(gb(t))for(const o of n.d.keys())yX(e,t,r(o));n.v=t,delete n.e,(!i||!Object.is(a,n.v))&&(++n.n,gb(a)&&FFe(a))},_X=(e,t,r)=>{var n;const i=new Set;for(const a of((n=r.get(e))==null?void 0:n.t)||[])r.has(a)&&i.add(a);for(const a of t.p)i.add(a);return i},VFe=()=>{const e=new Set,t=()=>{e.forEach(r=>r())};return t.add=r=>(e.add(r),()=>{e.delete(r)}),t},TD=()=>{const e={},t=new WeakMap,r=n=>{var i,a;(i=t.get(e))==null||i.forEach(o=>o(n)),(a=t.get(n))==null||a.forEach(o=>o())};return r.add=(n,i)=>{const a=n||e,o=(t.has(a)?t:t.set(a,new Set)).get(a);return o.add(i),()=>{o?.delete(i),o.size||t.delete(a)}},r},qFe=e=>(e.c||(e.c=TD()),e.m||(e.m=TD()),e.u||(e.u=TD()),e.f||(e.f=VFe()),e),BFe=Symbol(),bX=(e=new WeakMap,t=new WeakMap,r=new WeakMap,n=new Set,i=new Set,a=new Set,o={},s=(d,...h)=>d.read(...h),u=(d,...h)=>d.write(...h),l=(d,h)=>{var m;return(m=d.unstable_onInit)==null?void 0:m.call(d,h)},c=(d,h)=>{var m;return(m=d.onMount)==null?void 0:m.call(d,h)},...f)=>{const d=f[0]||(S=>{if((yv?"production":void 0)!=="production"&&!S)throw new Error("Atom is undefined or null");let j=e.get(S);return j||(j={d:new Map,p:new Set,n:0},e.set(S,j),l?.(S,R)),j}),h=f[1]||(()=>{const S=[],j=M=>{try{M()}catch(k){S.push(k)}};do{o.f&&j(o.f);const M=new Set,k=M.add.bind(M);n.forEach(F=>{var V;return(V=t.get(F))==null?void 0:V.l.forEach(k)}),n.clear(),a.forEach(k),a.clear(),i.forEach(k),i.clear(),M.forEach(j),n.size&&m()}while(n.size||a.size||i.size);if(S.length)throw new AggregateError(S)}),m=f[2]||(()=>{const S=[],j=new WeakSet,M=new WeakSet,k=Array.from(n);for(;k.length;){const F=k[k.length-1],V=d(F);if(M.has(F)){k.pop();continue}if(j.has(F)){if(r.get(F)===V.n)S.push([F,V]);else if((yv?"production":void 0)!=="production"&&r.has(F))throw new Error("[Bug] invalidated atom exists");M.add(F),k.pop();continue}j.add(F);for(const P of _X(F,V,t))j.has(P)||k.push(P)}for(let F=S.length-1;F>=0;--F){const[V,P]=S[F];let A=!1;for(const I of P.d.keys())if(I!==V&&n.has(I)){A=!0;break}A&&(p(V),b(V)),r.delete(V)}}),p=f[3]||(S=>{var j;const M=d(S);if(gX(M)&&(t.has(S)&&r.get(S)!==M.n||Array.from(M.d).every(([B,H])=>p(B).n===H)))return M;M.d.clear();let k=!0;const F=()=>{t.has(S)&&(b(S),m(),h())},V=B=>{var H;if(pX(S,B)){const T=d(B);if(!gX(T))if(vX(B))AD(B,B.init,d);else throw new Error("no atom init");return pb(T)}const U=p(B);try{return pb(U)}finally{M.d.set(B,U.n),mX(M.v)&&yX(S,M.v,U),(H=t.get(B))==null||H.t.add(S),k||F()}};let P,A;const I={get signal(){return P||(P=new AbortController),P.signal},get setSelf(){return(yv?"production":void 0)!=="production"&&!OD(S)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&OD(S)&&(A=(...B)=>{if((yv?"production":void 0)!=="production"&&k&&console.warn("setSelf function cannot be called in sync"),!k)try{return y(S,...B)}finally{m(),h()}}),A}},L=M.n;try{const B=s(S,V,I);return AD(S,B,d),gb(B)&&($Fe(B,()=>P?.abort()),B.then(F,F)),M}catch(B){return delete M.v,M.e=B,++M.n,M}finally{k=!1,L!==M.n&&r.get(S)===L&&(r.set(S,M.n),n.add(S),(j=o.c)==null||j.call(o,S))}}),g=f[4]||(S=>{const j=[S];for(;j.length;){const M=j.pop(),k=d(M);for(const F of _X(M,k,t)){const V=d(F);r.set(F,V.n),j.push(F)}}}),y=f[5]||((S,...j)=>{let M=!0;const k=V=>pb(p(V)),F=(V,...P)=>{var A;const I=d(V);try{if(pX(S,V)){if(!vX(V))throw new Error("atom not writable");const L=I.n,B=P[0];AD(V,B,d),b(V),L!==I.n&&(n.add(V),(A=o.c)==null||A.call(o,V),g(V));return}else return y(V,...P)}finally{M||(m(),h())}};try{return u(S,k,F,...j)}finally{M=!1}}),b=f[6]||(S=>{var j;const M=d(S),k=t.get(S);if(k&&!mX(M.v)){for(const[F,V]of M.d)if(!k.d.has(F)){const P=d(F);E(F).t.add(S),k.d.add(F),V!==P.n&&(n.add(F),(j=o.c)==null||j.call(o,F),g(F))}for(const F of k.d||[])if(!M.d.has(F)){k.d.delete(F);const V=w(F);V?.t.delete(S)}}}),E=f[7]||(S=>{var j;const M=d(S);let k=t.get(S);if(!k){p(S);for(const F of M.d.keys())E(F).t.add(S);if(k={l:new Set,d:new Set(M.d.keys()),t:new Set},t.set(S,k),(j=o.m)==null||j.call(o,S),OD(S)){const F=()=>{let V=!0;const P=(...A)=>{try{return y(S,...A)}finally{V||(m(),h())}};try{const A=c(S,P);A&&(k.u=()=>{V=!0;try{A()}finally{V=!1}})}finally{V=!1}};i.add(F)}}return k}),w=f[8]||(S=>{var j;const M=d(S);let k=t.get(S);if(k&&!k.l.size&&!Array.from(k.t).some(F=>{var V;return(V=t.get(F))==null?void 0:V.d.has(S)})){k.u&&a.add(k.u),k=void 0,t.delete(S),(j=o.u)==null||j.call(o,S);for(const F of M.d.keys()){const V=w(F);V?.t.delete(S)}return}return k}),x=[e,t,r,n,i,a,o,s,u,l,c,d,h,m,p,g,y,b,E,w],R={get:S=>pb(p(S)),set:(S,...j)=>{try{return y(S,...j)}finally{m(),h()}},sub:(S,j)=>{const k=E(S).l;return k.add(j),h(),()=>{k.delete(j),w(S),h()}}};return Object.defineProperty(R,BFe,{value:x}),R},UFe=qFe,CD={};let zFe=0;function WFe(e,t){const r=`atom${++zFe}`,n={toString(){return(CD?"production":void 0)!=="production"&&this.debugLabel?r+":"+this.debugLabel:r}};return typeof e=="function"?n.read=e:(n.init=e,n.read=HFe,n.write=GFe),n}function HFe(e){return e(this)}function GFe(e,t,r){return t(this,typeof r=="function"?r(e(this)):r)}const KFe=()=>{let e=0;const t=UFe({}),r=new WeakMap,n=new WeakMap,i=bX(r,n,void 0,void 0,void 0,void 0,t,void 0,(s,u,l,...c)=>e?l(s,...c):s.write(u,l,...c)),a=new Set;return t.m.add(void 0,s=>{a.add(s);const u=r.get(s);u.m=n.get(s)}),t.u.add(void 0,s=>{a.delete(s);const u=r.get(s);delete u.m}),Object.assign(i,{dev4_get_internal_weak_map:()=>(console.log("Deprecated: Use devstore from the devtools library"),r),dev4_get_mounted_atoms:()=>a,dev4_restore_atoms:s=>{const u={read:()=>null,write:(l,c)=>{++e;try{for(const[f,d]of s)"init"in f&&c(f,d)}finally{--e}}};i.set(u)}})};function YFe(){return(CD?"production":void 0)!=="production"?KFe():bX()}let _v;function QFe(){return _v||(_v=YFe(),(CD?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=_v),globalThis.__JOTAI_DEFAULT_STORE__!==_v&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),_v}const XFe={createState:e=>{const t=WFe(e),r=QFe();return{get:()=>r.get(t),set:n=>r.set(t,n),subscribe:n=>{const i=()=>{const a=r.get(t);n(a)};return r.sub(t,i)}}},type:"jotaiAdapter"};function ZFe(){return{createState:e=>{const t=Qce({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Xce(t)),set:a=>{console.log("Setting value to Recoil atom"),Zce(t)(a)},subscribe:a=>(console.log("Subscribing to Recoil atom"),Jce(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;a(u)}))}},type:"recoilAdapter"}}function EX(){return K.createContext([!1,{}])}function JFe({timer:e,children:t}){const r=Q5(e),n=EX();return C.jsx(n.Provider,{value:r,children:t})}const wX={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:{MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:ate}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},typography:{fontFamily:"Manrope"}},e8e={light:e=>ck.deepmerge({...wX,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>ck.deepmerge({...wX,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function t8e({children:e,theme:t}){const[r]=qc();return C.jsx(Se.ThemeProvider,{theme:Se.createTheme(e8e[r](t)),children:e})}const r8e=(e,t,r)=>{if(!od(e))return;const n=new Date(e);switch(r){case"milliseconds":n.setMilliseconds(n.getMilliseconds()+t);break;case"seconds":n.setSeconds(n.getSeconds()+t);break;case"minutes":n.setMinutes(n.getMinutes()+t);break;case"hours":n.setHours(n.getHours()+t);break;case"days":n.setDate(n.getDate()+t);break;case"weeks":n.setDate(n.getDate()+t*7);break;case"months":n.setMonth(n.getMonth()+t);break;case"years":n.setFullYear(n.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${r}`)}return n};var xX=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(xX||{});const n8e=(e,t,r="milliseconds")=>{if(!od(e)||!od(t))return;const n=new Date(e).getTime();return(new Date(t).getTime()-n)/xX[r]},i8e=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),r=Math.floor(e%(3600*24)/3600),n=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",r?`${r}h`:"",n?`${n}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},a8e=(e,t,r)=>{if(!od(e))throw new Error("Invalid Date");const n=new Date(e);switch(r){case"milliseconds":n.setMilliseconds(n.getMilliseconds()-t);break;case"seconds":n.setSeconds(n.getSeconds()-t);break;case"minutes":n.setMinutes(n.getMinutes()-t);break;case"hours":n.setHours(n.getHours()-t);break;case"days":n.setDate(n.getDate()-t);break;case"weeks":n.setDate(n.getDate()-t*7);break;case"months":n.setMonth(n.getMonth()-t);break;case"years":n.setFullYear(n.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${r}`)}return n},o8e=(e,t)=>e<=1?12:Math.floor(12/t),s8e=(e,t)=>(e&t)===t;function u8e(e){const t={};function r(n){Object.prototype.hasOwnProperty.call(n,"edges")&&(t.edges=n.edges);for(const i in n)typeof n[i]=="object"&&n[i]!==null&&r(n[i])}return r(e),t}const l8e=(e,t)=>{if(e==null)return 0;if(isNaN(e))return e;const r=[...Array(t)].reduce(n=>n+"0",".");return e.toFixed(t).toString().replace(r,"")},SX=pD("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function c8e(e){return e.setValue(SX,!0)}function PD(e){return e.getValue(SX)===!0}const f8e="=",ND=";",DD=",",ID="baggage",d8e=180,h8e=4096,p8e=8192;function v8e(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?DD:""}${r}`;return n.length>p8e?t:n},"")}function g8e(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=ND+r.metadata.toString()),n})}function m8e(e){const t=e.split(ND);if(t.length<=0)return;const r=t.shift();if(!r)return;const n=r.indexOf(f8e);if(n<=0)return;const i=decodeURIComponent(r.substring(0,n).trim()),a=decodeURIComponent(r.substring(n+1).trim());let o;return t.length>0&&(o=D6e(t.join(ND))),{key:i,value:a,metadata:o}}class y8e{inject(t,r,n){const i=Wo.getBaggage(t);if(!i||PD(t))return;const a=g8e(i).filter(s=>s.length<=h8e).slice(0,d8e),o=v8e(a);o.length>0&&n.set(r,ID,o)}extract(t,r,n){const i=n.get(r,ID),a=Array.isArray(i)?i.join(DD):i;if(!a)return t;const o={};return a.length===0||(a.split(DD).forEach(u=>{const l=m8e(u);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Wo.setBaggage(t,Wo.createBaggage(o))}fields(){return[ID]}}function mb(e){const t={};if(typeof e!="object"||e==null)return t;for(const[r,n]of Object.entries(e)){if(!_8e(r)){vr.warn(`Invalid attribute key: ${r}`);continue}if(!RX(n)){vr.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function _8e(e){return typeof e=="string"&&e.length>0}function RX(e){return e==null?!0:Array.isArray(e)?b8e(e):OX(e)}function b8e(e){let t;for(const r of e)if(r!=null){if(!t){if(OX(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}function OX(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function E8e(){return e=>{vr.error(w8e(e))}}function w8e(e){return typeof e=="string"?e:JSON.stringify(x8e(e))}function x8e(e){const t={};let r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;const i=r[n];i&&(t[n]=String(i))}),r=Object.getPrototypeOf(r);return t}let S8e=E8e();function kD(e){try{S8e(e)}catch{}}function GGe(e){}const MD=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},gd=performance,R8e="2.0.1",O8e="error.type",LD="exception.message",A8e="exception.stacktrace",jD="exception.type",T8e="http.request.method",C8e="http.request.method_original",P8e="http.response.status_code",N8e="server.address",D8e="server.port",AX="service.name",FD="telemetry.sdk.language",I8e="webjs",$D="telemetry.sdk.name",VD="telemetry.sdk.version",k8e="url.full",M8e="process.runtime.name",qD={[$D]:"opentelemetry",[M8e]:"browser",[FD]:I8e,[VD]:R8e},L8e=9,j8e=Math.pow(10,6),yb=Math.pow(10,L8e);function js(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*j8e);return[r,n]}function BD(){let e=gd.timeOrigin;if(typeof e!="number"){const t=gd;e=t.timing&&t.timing.fetchStart}return e}function _b(e){const t=js(BD()),r=js(typeof e=="number"?e:gd.now());return PX(t,r)}function bv(e){if(UD(e))return e;if(typeof e=="number")return e<BD()?_b(e):js(e);if(e instanceof Date)return js(e.getTime());throw TypeError("Invalid input type")}function F8e(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=yb),[r,n]}function Fs(e){return e[0]*yb+e[1]}function TX(e){return e[0]*1e6+e[1]/1e3}function UD(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function CX(e){return UD(e)||typeof e=="number"||e instanceof Date}function PX(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=yb&&(r[1]-=yb,r[0]+=1),r}var io;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(io||(io={}));class $8e{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,n)=>r.concat(n),[])))}inject(t,r,n){for(const i of this._propagators)try{i.inject(t,r,n)}catch(a){vr.warn(`Failed to inject with ${i.constructor.name}. Err: ${a.message}`)}}extract(t,r,n){return this._propagators.reduce((i,a)=>{try{return a.extract(i,r,n)}catch(o){vr.warn(`Failed to extract with ${a.constructor.name}. Err: ${o.message}`)}return i},t)}fields(){return this._fields.slice()}}const zD="[_0-9a-z-*/]",V8e=`[a-z]${zD}{0,255}`,q8e=`[a-z0-9]${zD}{0,240}@[a-z]${zD}{0,13}`,B8e=new RegExp(`^(?:${V8e}|${q8e})$`),U8e=/^[ -~]{0,255}[!-~]$/,z8e=/,|=/;function W8e(e){return B8e.test(e)}function H8e(e){return U8e.test(e)&&!z8e.test(e)}const NX=32,G8e=512,DX=",",IX="=";class WD{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,r){const n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){const r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,r)=>(t.push(r+IX+this.get(r)),t),[]).join(DX)}_parse(t){t.length>G8e||(this._internalState=t.split(DX).reverse().reduce((r,n)=>{const i=n.trim(),a=i.indexOf(IX);if(a!==-1){const o=i.slice(0,a),s=i.slice(a+1,n.length);W8e(o)&&H8e(s)&&r.set(o,s)}return r},new Map),this._internalState.size>NX&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,NX))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new WD;return t._internalState=new Map(this._internalState),t}}const HD="traceparent",GD="tracestate",K8e="00",Y8e="(?!ff)[\\da-f]{2}",Q8e="(?![0]{32})[\\da-f]{32}",X8e="(?![0]{16})[\\da-f]{16}",Z8e="[\\da-f]{2}",J8e=new RegExp(`^\\s?(${Y8e})-(${Q8e})-(${X8e})-(${Z8e})(-.*)?\\s?$`);function e7e(e){const t=J8e.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class t7e{inject(t,r,n){const i=Si.getSpanContext(t);if(!i||PD(t)||!fb(i))return;const a=`${K8e}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ls.NONE).toString(16)}`;n.set(r,HD,a),i.traceState&&n.set(r,GD,i.traceState.serialize())}extract(t,r,n){const i=n.get(r,HD);if(!i)return t;const a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;const o=e7e(a);if(!o)return t;o.isRemote=!0;const s=n.get(r,GD);if(s){const u=Array.isArray(s)?s.join(","):s;o.traceState=new WD(typeof u=="string"?u:void 0)}return Si.setSpanContext(t,o)}fields(){return[HD,GD]}}const r7e="[object Object]",n7e="[object Null]",i7e="[object Undefined]",kX=Function.prototype.toString,a7e=kX.call(Object),o7e=Object.getPrototypeOf,MX=Object.prototype,LX=MX.hasOwnProperty,fc=Symbol?Symbol.toStringTag:void 0,jX=MX.toString;function FX(e){if(!s7e(e)||u7e(e)!==r7e)return!1;const t=o7e(e);if(t===null)return!0;const r=LX.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&kX.call(r)===a7e}function s7e(e){return e!=null&&typeof e=="object"}function u7e(e){return e==null?e===void 0?i7e:n7e:fc&&fc in Object(e)?l7e(e):c7e(e)}function l7e(e){const t=LX.call(e,fc),r=e[fc];let n=!1;try{e[fc]=void 0,n=!0}catch{}const i=jX.call(e);return n&&(t?e[fc]=r:delete e[fc]),i}function c7e(e){return jX.call(e)}const f7e=20;function d7e(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=$X(t,e.shift(),0,r);return t}function KD(e){return bb(e)?e.slice():e}function $X(e,t,r=0,n){let i;if(!(r>f7e)){if(r++,Eb(e)||Eb(t)||qX(t))i=KD(t);else if(bb(e)){if(i=e.slice(),bb(t))for(let a=0,o=t.length;a<o;a++)i.push(KD(t[a]));else if(Ev(t)){const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o];i[u]=KD(t[u])}}}else if(Ev(e))if(Ev(t)){if(!h7e(e,t))return t;i=Object.assign({},e);const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o],l=t[u];if(Eb(l))typeof l>"u"?delete i[u]:i[u]=l;else{const c=i[u],f=l;if(VX(e,u,n)||VX(t,u,n))delete i[u];else{if(Ev(c)&&Ev(f)){const d=n.get(c)||[],h=n.get(f)||[];d.push({obj:e,key:u}),h.push({obj:t,key:u}),n.set(c,d),n.set(f,h)}i[u]=$X(i[u],l,r,n)}}}}else i=t;return i}}function VX(e,t,r){const n=r.get(e[t])||[];for(let i=0,a=n.length;i<a;i++){const o=n[i];if(o.key===t&&o.obj===e)return!0}return!1}function bb(e){return Array.isArray(e)}function qX(e){return typeof e=="function"}function Ev(e){return!Eb(e)&&!bb(e)&&!qX(e)&&typeof e=="object"}function Eb(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function h7e(e,t){return!(!FX(e)||!FX(t))}function BX(e,t){return typeof t=="string"?e===t:!!e.match(t)}function p7e(e,t){if(!t)return!1;for(const r of t)if(BX(e,r))return!0;return!1}class v7e{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class g7e{_callback;_that;_isCalled=!1;_deferred=new v7e;constructor(t,r){this._callback=t,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function m7e(e,t){return new Promise(r=>{zn.with(c8e(zn.active()),()=>{e.export(t,n=>{r(n)})})})}const y7e={_export:m7e};function _7e(){return"unknown_service"}const wv=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class wb{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const r=new wb({});return r._rawAttributes=zX(t),r._asyncAttributesPending=t.filter(([n,i])=>wv(i)).length>0,r}constructor(t){const r=t.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(wv(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=zX(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[r,n]=this._rawAttributes[t];this._rawAttributes[t]=[r,wv(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&vr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(wv(n)){vr.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:wb.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function UX(e){return wb.FromAttributeList(Object.entries(e))}function b7e(){return UX({[AX]:_7e(),[FD]:qD[FD],[$D]:qD[$D],[VD]:qD[VD]})}function zX(e){return e.map(([t,r])=>wv(r)?[t,r.catch(n=>{vr.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}const E7e="exception";class w7e{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:lc.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=gd.now(),this._performanceOffset=r-(this._performanceStartTime+BD()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??r),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,r){if(r==null||this._isSpanEnded())return this;if(t.length===0)return vr.warn(`Invalid attribute key: ${t}`),this;if(!RX(r))return vr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this)}setAttributes(t){for(const[r,n]of Object.entries(t))this.setAttribute(r,n);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return vr.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&vr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),CX(r)&&(CX(n)||(n=r),r=void 0);const a=mb(r);return this.events.push({name:t,attributes:a,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(vr.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){vr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=F8e(this.startTime,this.endTime),this._duration[0]<0&&(vr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&vr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=gd.now())return _b(t+this._performanceOffset);if(typeof t=="number")return js(t);if(t instanceof Date)return js(t.getTime());if(UD(t))return t;if(this._startTimeProvided)return js(Date.now());const r=gd.now()-this._performanceStartTime;return PX(this.startTime,js(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[LD]=t:t&&(t.code?n[jD]=t.code.toString():t.name&&(n[jD]=t.name),t.message&&(n[LD]=t.message),t.stack&&(n[A8e]=t.stack)),n[jD]||n[LD]?this.addEvent(E7e,n,r):vr.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);vr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,r){return t.length<=r?t:t.substring(0,r)}_truncateToSize(t){const r=this._attributeValueLengthLimit;return r<=0?(vr.warn(`Attribute value limit must be positive, got ${r}`),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):t}}var md;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(md||(md={}));class xb{shouldSample(){return{decision:md.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class yd{shouldSample(){return{decision:md.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Sb{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(kD(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new yd),this._remoteParentSampled=t.remoteParentSampled??new yd,this._remoteParentNotSampled=t.remoteParentNotSampled??new xb,this._localParentSampled=t.localParentSampled??new yd,this._localParentNotSampled=t.localParentNotSampled??new xb}shouldSample(t,r,n,i,a,o){const s=Si.getSpanContext(t);return!s||!fb(s)?this._root.shouldSample(t,r,n,i,a,o):s.isRemote?s.traceFlags&Ls.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,a,o):this._remoteParentNotSampled.shouldSample(t,r,n,i,a,o):s.traceFlags&Ls.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,a,o):this._localParentNotSampled.shouldSample(t,r,n,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class WX{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:iX(r)&&this._accumulate(r)<this._upperBound?md.RECORD_AND_SAMPLED:md.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let r=0;for(let n=0;n<t.length/8;n++){const i=n*8,a=parseInt(t.slice(i,i+8),16);r=(r^a)>>>0}return r}}const HX=1;function GX(){return{sampler:KX(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function KX(){const e="parentbased_always_on";switch(e){case"always_on":return new yd;case"always_off":return new xb;case"parentbased_always_on":return new Sb({root:new yd});case"parentbased_always_off":return new Sb({root:new xb});case"traceidratio":return new WX(YX());case"parentbased_traceidratio":return new Sb({root:new WX(YX())});default:return vr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new Sb({root:new yd})}}function YX(){return vr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${HX}.`),HX}const x7e=128,S7e=1/0;function R7e(e){const t={sampler:KX()},r=GX(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function O7e(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??x7e,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??S7e,Object.assign({},e,{spanLimits:t})}const A7e=8,T7e=16;class C7e{generateTraceId=QX(T7e);generateSpanId=QX(A7e)}const Rb=Array(32);function QX(e){return function(){for(let r=0;r<e*2;r++)Rb[r]=Math.floor(Math.random()*16)+48,Rb[r]>=58&&(Rb[r]+=39);return String.fromCharCode.apply(null,Rb.slice(0,e*2))}}class P7e{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,r,n,i){const a=R7e(r);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=r.idGenerator||new C7e,this._resource=n,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,r={},n=zn.active()){r.root&&(n=Si.deleteSpan(n));const i=Si.getSpan(n);if(PD(n))return vr.debug("Instrumentation suppressed, returning Noop Span"),Si.wrapSpanContext(rX);const a=i?.spanContext(),o=this._idGenerator.generateSpanId();let s,u,l;!a||!Si.isSpanContextValid(a)?u=this._idGenerator.generateTraceId():(u=a.traceId,l=a.traceState,s=a);const c=r.kind??hb.INTERNAL,f=(r.links??[]).map(b=>({context:b.context,attributes:mb(b.attributes)})),d=mb(r.attributes),h=this._sampler.shouldSample(n,u,t,c,d,f);l=h.traceState??l;const m=h.decision===db.RECORD_AND_SAMPLED?Ls.SAMPLED:Ls.NONE,p={traceId:u,spanId:o,traceFlags:m,traceState:l};if(h.decision===db.NOT_RECORD)return vr.debug("Recording is off, propagating context in a non-recording span"),Si.wrapSpanContext(p);const g=mb(Object.assign(d,h.attributes));return new w7e({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:p,name:t,kind:c,links:f,parentSpanContext:s,attributes:g,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,r,n,i){let a,o,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,o=n,s=i);const u=o??zn.active(),l=this.startSpan(t,a,u),c=Si.setSpan(u,l);return zn.with(c,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class N7e{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const r of this._spanProcessors)t.push(r.forceFlush());return new Promise(r=>{Promise.all(t).then(()=>{r()}).catch(n=>{kD(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnd(t){for(const r of this._spanProcessors)r.onEnd(t)}shutdown(){const t=[];for(const r of this._spanProcessors)t.push(r.shutdown());return new Promise((r,n)=>{Promise.all(t).then(()=>{r()},n)})}}var dc;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(dc||(dc={}));class D7e{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=d7e({},GX(),O7e(t));this._resource=r.resource??b7e(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new N7e(n)}getTracer(t,r,n){const i=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new P7e({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(i=>{let a;const o=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=dc.timeout},t);n.forceFlush().then(()=>{clearTimeout(o),a!==dc.timeout&&(a=dc.resolved,i(a))}).catch(s=>{clearTimeout(o),a=dc.error,i(s)})}));return new Promise((n,i)=>{Promise.all(r).then(a=>{const o=a.filter(s=>s!==dc.resolved);o.length>0?i(o):n()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class I7e{export(t,r){return this._sendSpans(t,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:TX(t.startTime),duration:TX(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,r){for(const n of t)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:io.SUCCESS})}}class XX{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new g7e(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,r){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Ls.SAMPLED)===0)return;const r=this._doExport(t).catch(n=>kD(n));this._pendingExports.add(r),r.finally(()=>this._pendingExports.delete(r))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const r=await y7e._export(this._exporter,[t]);if(r.code!==io.SUCCESS)throw r.error??new Error(`SimpleSpanProcessor: span export failed (status ${r})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class k7e{_enabled=!1;_currentContext=Ms;_bindFunction(t=Ms,r){const n=this,i=function(...a){return n.with(t,()=>r.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}active(){return this._currentContext}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r}disable(){return this._currentContext=Ms,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ms,this)}with(t,r,n,...i){const a=this._currentContext;this._currentContext=t||Ms;try{return r.call(n,...i)}finally{this._currentContext=a}}}function M7e(e){if(e!==null){if(e===void 0){const t=new k7e;t.enable(),zn.setGlobalContextManager(t);return}e.enable(),zn.setGlobalContextManager(e)}}function L7e(e){if(e!==null){if(e===void 0){Wo.setGlobalPropagator(new $8e({propagators:[new t7e,new y8e]}));return}Wo.setGlobalPropagator(e)}}class j7e extends D7e{constructor(t={}){super(t)}register(t={}){Si.setGlobalTracerProvider(this),L7e(t.propagator),M7e(t.contextManager)}}var Vr;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(Vr||(Vr={}));const F7e="http.response_content_length",$7e="http.response_content_length_uncompressed";let YD;function V7e(){return YD||(YD=document.createElement("a")),YD}function q7e(e,t){return t in e}function $s(e,t,r,n=!0){if(q7e(r,t)&&typeof r[t]=="number"&&!(n&&r[t]===0))return e.addEvent(t,r[t])}function ZX(e,t,r=!1,n,i){if(n===void 0&&(n=t[Vr.START_TIME]!==0),r||($s(e,Vr.FETCH_START,t,n),$s(e,Vr.DOMAIN_LOOKUP_START,t,n),$s(e,Vr.DOMAIN_LOOKUP_END,t,n),$s(e,Vr.CONNECT_START,t,n),$s(e,Vr.SECURE_CONNECTION_START,t,n),$s(e,Vr.CONNECT_END,t,n),$s(e,Vr.REQUEST_START,t,n),$s(e,Vr.RESPONSE_START,t,n),$s(e,Vr.RESPONSE_END,t,n)),!i){const a=t[Vr.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(F7e,a);const o=t[Vr.DECODED_BODY_SIZE];o!==void 0&&a!==o&&e.setAttribute($7e,o)}}function B7e(e){return e.slice().sort((t,r)=>{const n=t[Vr.FETCH_START],i=r[Vr.FETCH_START];return n>i?1:n<i?-1:0})}function JX(){return typeof location<"u"?location.origin:void 0}function U7e(e,t,r,n,i=new WeakSet,a){const o=Ob(e);e=o.toString();const s=W7e(e,t,r,n,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=B7e(s);if(o.origin!==JX()&&u.length>1){let l=u[0],c=z7e(u,l[Vr.RESPONSE_END],r);const f=l[Vr.RESPONSE_END];return c[Vr.FETCH_START]<f&&(c=l,l=void 0),{corsPreFlightRequest:l,mainRequest:c}}else return{mainRequest:s[0]}}function z7e(e,t,r){const n=Fs(r),i=Fs(bv(t));let a=e[1],o;const s=e.length;for(let u=1;u<s;u++){const l=e[u],c=Fs(bv(l[Vr.FETCH_START])),f=Fs(bv(l[Vr.RESPONSE_END])),d=n-f;c>=i&&(!o||d<o)&&(o=d,a=l)}return a}function W7e(e,t,r,n,i,a){const o=Fs(t),s=Fs(r);let u=n.filter(l=>{const c=Fs(bv(l[Vr.FETCH_START])),f=Fs(bv(l[Vr.RESPONSE_END]));return l.initiatorType.toLowerCase()===a&&l.name===e&&c>=o&&f<=s});return u.length>0&&(u=u.filter(l=>!i.has(l))),u}function Ob(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=V7e();return t.href=e,t}function H7e(e,t){let r=t||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),Ob(e).origin===JX()?!0:r.some(i=>BX(e,i))}class G7e{_delegate;constructor(t){this._delegate=t}export(t,r){this._delegate.export(t,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class eZ extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function K7e(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Y7e(e){if(e!=null)return()=>e}function Q7e(e,t,r){return{timeoutMillis:K7e(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function X7e(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Z7e{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const r=()=>{const n=this._sendingPromises.indexOf(t);this._sendingPromises.splice(n,1)};t.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function J7e(e){return new Z7e(e.concurrencyLimit)}function e$e(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function t$e(){return{handleResponse(e){e==null||!e$e(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||vr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class r$e{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,r,n,i,a){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=i,this._timeout=a,this._diagLogger=vr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:io.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:io.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,i.data)}r({code:io.SUCCESS});return}else if(i.status==="failure"&&i.error){r({code:io.FAILED,error:i.error});return}else i.status==="retryable"?r({code:io.FAILED,error:new eZ("Export failed with retryable status")}):r({code:io.FAILED,error:new eZ("Export failed with unknown error")})},i=>r({code:io.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function n$e(e,t){return new r$e(e.transport,e.serializer,t$e(),e.promiseHandler,t.timeout)}function tZ(e,t,r){return n$e({transport:r,serializer:t,promiseHandler:J7e(e)},{timeout:e.timeoutMillis})}function rZ(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function nZ(e){const t=new Uint8Array(e.length/2);let r=0;for(let n=0;n<e.length;n+=2){const i=rZ(e.charCodeAt(n)),a=rZ(e.charCodeAt(n+1));t[r++]=i<<4|a}return t}function iZ(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function i$e(e){const t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function a$e(e){const t=iZ(e);return i$e(t)}function o$e(e){return iZ(e).toString()}const s$e=typeof BigInt<"u"?o$e:Fs;function aZ(e){return e}function u$e(e){if(e!==void 0)return nZ(e)}const l$e={encodeHrTime:a$e,encodeSpanContext:nZ,encodeOptionalSpanContext:u$e};function c$e(e){return e===void 0?l$e:{encodeHrTime:s$e,encodeSpanContext:aZ,encodeOptionalSpanContext:aZ}}function f$e(e){return{attributes:Ab(e.attributes),droppedAttributesCount:0}}function d$e(e){return{name:e.name,version:e.version}}function Ab(e){return Object.keys(e).map(t=>oZ(t,e[t]))}function oZ(e,t){return{key:e,value:sZ(t)}}function sZ(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(sZ)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([r,n])=>oZ(r,n))}}:{}}function h$e(e,t){const r=e.spanContext(),n=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:i,traceState:r.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Ab(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>v$e(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(a=>p$e(a,t)),droppedLinksCount:e.droppedLinksCount}}function p$e(e,t){return{attributes:e.attributes?Ab(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function v$e(e,t){return{attributes:e.attributes?Ab(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function g$e(e,t){const r=c$e(t);return{resourceSpans:y$e(e,r)}}function m$e(e){const t=new Map;for(const r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));const i=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let a=n.get(i);a||(a=[],n.set(i,a)),a.push(r)}return t}function y$e(e,t){const r=m$e(e),n=[],i=r.entries();let a=i.next();for(;!a.done;){const[o,s]=a.value,u=[],l=s.values();let c=l.next();for(;!c.done;){const d=c.value;if(d.length>0){const h=d.map(m=>h$e(m,t));u.push({scope:d$e(d[0].instrumentationScope),spans:h,schemaUrl:d[0].instrumentationScope.schemaUrl})}c=l.next()}const f={resource:f$e(o),scopeSpans:u,schemaUrl:void 0};n.push(f),a=i.next()}return n}const _$e={serializeRequest:e=>{const t=g$e(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},b$e=5,E$e=1e3,w$e=5e3,x$e=1.5,uZ=.2;function S$e(){return Math.random()*(2*uZ)-uZ}class R$e{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((i,a)=>{setTimeout(()=>{this._transport.send(t,r).then(i,a)},n)})}async send(t,r){const n=Date.now()+r;let i=await this._transport.send(t,r),a=b$e,o=E$e;for(;i.status==="retryable"&&a>0;){a--;const s=Math.max(Math.min(o,w$e)+S$e(),0);o=o*x$e;const u=i.retryInMillis??s,l=n-Date.now();if(u>l)return i;i=await this.retry(t,l,u)}return i}shutdown(){return this._transport.shutdown()}}function lZ(e){return new R$e(e.transport)}function O$e(e){return[429,502,503,504].includes(e)}function A$e(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const r=new Date(e).getTime()-Date.now();return r>=0?r:0}class T$e{_parameters;constructor(t){this._parameters=t}send(t,r){return new Promise(n=>{const i=new XMLHttpRequest;i.timeout=r,i.open("POST",this._parameters.url);const a=this._parameters.headers();Object.entries(a).forEach(([o,s])=>{i.setRequestHeader(o,s)}),i.ontimeout=o=>{n({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(vr.debug("XHR success"),n({status:"success"})):i.status&&O$e(i.status)?n({status:"retryable",retryInMillis:A$e(i.getResponseHeader("Retry-After"))}):i.status!==0&&n({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{n({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{n({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function C$e(e){return new T$e(e)}class P$e{_params;constructor(t){this._params=t}send(t){return new Promise(r=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(vr.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function N$e(e){return new P$e(e)}function D$e(e,t){return tZ(e,t,lZ({transport:C$e(e)}))}function I$e(e,t){return tZ(e,t,lZ({transport:N$e({url:e.url,blobType:e.headers()["Content-Type"]})}))}function k$e(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):vr.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}}function M$e(e,t,r){const n={...r()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,n))}function L$e(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function j$e(e,t,r){return{...Q7e(e,t,r),headers:M$e(k$e(e.headers),t.headers,r.headers),url:L$e(e.url)??t.url??r.url,agentOptions:e.agentOptions??t.agentOptions??r.agentOptions}}function F$e(e,t){return{...X7e(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function $$e(e,t,r){return j$e({url:e.url,timeoutMillis:e.timeoutMillis,headers:Y7e(e.headers),concurrencyLimit:e.concurrencyLimit},{},F$e(r,t))}function V$e(e,t,r,n){const i=!!e.headers||typeof navigator.sendBeacon!="function",a=$$e(e,r,n);return i?D$e(a,t):I$e(a,t)}class q$e extends G7e{constructor(t={}){super(V$e(t,_$e,"v1/traces",{"Content-Type":"application/json"}))}}class cZ{emit(t){}}const B$e=new cZ;class U$e{getLogger(t,r,n){return new cZ}}const fZ=new U$e;class z$e{constructor(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):B$e}}class dZ{getLogger(t,r,n){var i;return(i=this.getDelegateLogger(t,r,n))!==null&&i!==void 0?i:new z$e(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:fZ}setDelegate(t){this._delegate=t}getDelegateLogger(t,r,n){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,r,n)}}const W$e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Tb=Symbol.for("io.opentelemetry.js.api.logs"),xv=W$e;function H$e(e,t,r){return n=>n===e?t:r}const hZ=1;class QD{constructor(){this._proxyLoggerProvider=new dZ}static getInstance(){return this._instance||(this._instance=new QD),this._instance}setGlobalLoggerProvider(t){return xv[Tb]?this.getLoggerProvider():(xv[Tb]=H$e(hZ,t,fZ),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=xv[Tb])===null||t===void 0?void 0:t.call(xv,hZ))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete xv[Tb],this._proxyLoggerProvider=new dZ}}const pZ=QD.getInstance();function G$e(e,t,r,n){for(let i=0,a=e.length;i<a;i++){const o=e[i];t&&o.setTracerProvider(t),r&&o.setMeterProvider(r),n&&o.setLoggerProvider&&o.setLoggerProvider(n),o.getConfig().enabled||o.enable()}}function K$e(e){e.forEach(t=>t.disable())}function Y$e(e){const t=e.tracerProvider||Si.getTracerProvider(),r=e.meterProvider||sX.getMeterProvider(),n=e.loggerProvider||pZ.getLoggerProvider(),i=e.instrumentations?.flat()??[];return G$e(i,t,r,n),()=>{K$e(i)}}let ua=console.error.bind(console);function Sv(e,t,r){const n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}const vZ=(e,t,r)=>{if(!e||!e[t]){ua("no original function "+String(t)+" to wrap");return}if(!r){ua("no wrapper function"),ua(new Error().stack);return}const n=e[t];if(typeof n!="function"||typeof r!="function"){ua("original object and wrapper must be functions");return}const i=r(n,t);return Sv(i,"__original",n),Sv(i,"__unwrap",()=>{e[t]===i&&Sv(e,t,n)}),Sv(i,"__wrapped",!0),Sv(e,t,i),i},Q$e=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{ua("must provide one or more modules to patch"),ua(new Error().stack);return}if(!(t&&Array.isArray(t))){ua("must provide one or more functions to wrap on modules");return}e.forEach(n=>{t.forEach(i=>{vZ(n,i,r)})})},gZ=(e,t)=>{if(!e||!e[t]){ua("no function to unwrap."),ua(new Error().stack);return}const r=e[t];if(!r.__unwrap)ua("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{r.__unwrap();return}},X$e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{ua("must provide one or more modules to patch"),ua(new Error().stack);return}if(!(t&&Array.isArray(t))){ua("must provide one or more functions to unwrap on modules");return}e.forEach(r=>{t.forEach(n=>{gZ(r,n)})})};class Z$e{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this.setConfig(n),this._diag=vr.createComponentLogger({namespace:t}),this._tracer=Si.getTracer(t,r),this._meter=sX.getMeter(t,r),this._logger=pZ.getLogger(t,r),this._updateMetricInstruments()}_wrap=vZ;_unwrap=gZ;_massWrap=Q$e;_massUnwrap=X$e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,r,n,i){if(t)try{t(n,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}}}class J$e extends Z$e{constructor(t,r,n){super(t,r,n),this._config.enabled&&this.enable()}}function mZ(e,t,r){let n,i;try{i=e()}catch(a){n=a}finally{return t(n,i),i}}function eVe(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Ui;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(Ui||(Ui={}));function tVe(e,t){let r=Ui.OLD;const n=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of n??[])if(i.toLowerCase()===e+"/dup"){r=Ui.DUPLICATE;break}else i.toLowerCase()===e&&(r=Ui.STABLE);return r}var Cb;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(Cb||(Cb={}));var ln={},yZ;function rVe(){return yZ||(yZ=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.ATTR_HTTP_USER_AGENT=ln.ATTR_HTTP_URL=ln.ATTR_HTTP_STATUS_CODE=ln.ATTR_HTTP_SCHEME=ln.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=ln.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=ln.ATTR_HTTP_REQUEST_BODY_SIZE=ln.ATTR_HTTP_METHOD=ln.ATTR_HTTP_HOST=void 0,ln.ATTR_HTTP_HOST="http.host",ln.ATTR_HTTP_METHOD="http.method",ln.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",ln.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",ln.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",ln.ATTR_HTTP_SCHEME="http.scheme",ln.ATTR_HTTP_STATUS_CODE="http.status_code",ln.ATTR_HTTP_URL="http.url",ln.ATTR_HTTP_USER_AGENT="http.user_agent"),ln}var ju=rVe();const _Z=vr.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function nVe(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:r,length:n}=iVe(t.body);return t.body=r,n}else return Promise.resolve(oVe(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(r=>XD(r)):Promise.resolve()}}function iVe(e){if(!e.pipeThrough)return _Z.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,r;const n=new Promise(a=>{r=a}),i=new TransformStream({start(){},async transform(a,o){const s=await a;t+=s.byteLength,o.enqueue(a)},flush(){r(t)}});return{body:e.pipeThrough(i),length:n}}function aVe(e){return typeof Document<"u"&&e instanceof Document}function oVe(e){if(aVe(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return XD(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return uVe(e);if(e instanceof URLSearchParams)return XD(e.toString());if(e.byteLength!==void 0)return e.byteLength;_Z.warn("unknown body type")}const sVe=new TextEncoder;function XD(e){return sVe.encode(e).byteLength}function uVe(e){let t=0;for(const[r,n]of e.entries())t+=r.length,n instanceof Blob?t+=n.size:t+=n.length;return t}function lVe(e){const t=fVe(),r=e.toUpperCase();return r in t?r:"_OTHER"}const cVe={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let ZD;function fVe(){return ZD===void 0&&(ZD=cVe),ZD}const dVe={"https:":"443","http:":"80"};function hVe(e){const t=Number(e.port||dVe[e.protocol]);if(t&&!isNaN(t))return t}const bZ="0.203.0",pVe=300,EZ=typeof process=="object"&&process.release?.name==="node";class vVe extends J$e{component="fetch";version=bZ;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",bZ,t),this._semconvStability=tVe("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,r){const n=this.tracer.startSpan("CORS Preflight",{startTime:r[Vr.FETCH_START]},Si.setSpan(zn.active(),t)),i=!(this._semconvStability&Ui.OLD);ZX(n,r,this.getConfig().ignoreNetworkEvents,void 0,i),n.end(r[Vr.RESPONSE_END])}_addFinalSpanAttributes(t,r){const n=Ob(r.url);if(this._semconvStability&Ui.OLD&&(t.setAttribute(ju.ATTR_HTTP_STATUS_CODE,r.status),r.statusText!=null&&t.setAttribute(Cb.HTTP_STATUS_TEXT,r.statusText),t.setAttribute(ju.ATTR_HTTP_HOST,n.host),t.setAttribute(ju.ATTR_HTTP_SCHEME,n.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(ju.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&Ui.STABLE){t.setAttribute(P8e,r.status),t.setAttribute(N8e,n.hostname);const i=hVe(n);i&&t.setAttribute(D8e,i)}}_addHeaders(t,r){if(!H7e(r,this.getConfig().propagateTraceHeaderCorsUrls)){const n={};Wo.inject(zn.active(),n),Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Wo.inject(zn.active(),t.headers,{set:(n,i,a)=>n.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Headers)Wo.inject(zn.active(),t.headers,{set:(n,i,a)=>n.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Map)Wo.inject(zn.active(),t.headers,{set:(n,i,a)=>n.set(i,typeof a=="string"?a:String(a))});else{const n={};Wo.inject(zn.active(),n),t.headers=Object.assign({},n,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,r={}){if(p7e(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let n="";const i={};if(this._semconvStability&Ui.OLD){const a=(r.method||"GET").toUpperCase();n=`HTTP ${a}`,i[Cb.COMPONENT]=this.moduleName,i[ju.ATTR_HTTP_METHOD]=a,i[ju.ATTR_HTTP_URL]=t}if(this._semconvStability&Ui.STABLE){const a=r.method,o=lVe(r.method||"GET");n||(n=o),i[T8e]=o,o!==a&&(i[C8e]=a),i[k8e]=t}return this.tracer.startSpan(n,{kind:hb.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,r,n){let i=r.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const a=U7e(r.spanUrl,r.startTime,n,i,this._usedResources,"fetch");if(a.mainRequest){const o=a.mainRequest;this._markResourceAsUsed(o);const s=a.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&Ui.OLD);ZX(t,o,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,r,n){const i=js(Date.now()),a=_b();this._addFinalSpanAttributes(t,n),this._semconvStability&Ui.STABLE&&n.status>=400&&(t.setStatus({code:lc.ERROR}),t.setAttribute(O8e,String(n.status))),setTimeout(()=>{r.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,r,a),this._tasksCount--,this._clearResources(),t.end(i)},pVe)}_patchConstructor(){return t=>{const r=this;return function(...i){const a=this,o=Ob(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=r._createSpan(o,s);if(!u)return t.apply(this,i);const l=r._prepareSpanData(o);r.getConfig().measureRequestSize&&nVe(...i).then(m=>{m&&(r._semconvStability&Ui.OLD&&u.setAttribute(ju.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,m),r._semconvStability&Ui.STABLE&&u.setAttribute(ju.ATTR_HTTP_REQUEST_BODY_SIZE,m))}).catch(m=>{r._diag.warn("getFetchBodyLength",m)});function c(m,p){r._applyAttributesAfterFetch(m,s,p),r._endSpan(m,l,{status:p.status||0,statusText:p.message,url:o})}function f(m,p){r._applyAttributesAfterFetch(m,s,p),p.status>=200&&p.status<400?r._endSpan(m,l,p):r._endSpan(m,l,{status:p.status,statusText:p.statusText,url:o})}function d(m,p,g){try{const b=g.clone().body;if(b){const E=b.getReader(),w=()=>{E.read().then(({done:x})=>{x?f(m,g):w()},x=>{c(m,x)})};w()}else f(m,g)}finally{p(g)}}function h(m,p,g){try{c(m,g)}finally{p(g)}}return new Promise((m,p)=>zn.with(Si.setSpan(zn.active(),u),()=>(r._addHeaders(s,o),r._callRequestHook(u,s),r._tasksCount++,t.apply(a,s instanceof Request?[s]:[o,s]).then(d.bind(a,u,m),h.bind(a,u,p)))))}}}_applyAttributesAfterFetch(t,r,n){const i=this.getConfig().applyCustomAttributesOnSpan;i&&mZ(()=>i(t,r,n),a=>{a&&this._diag.error("applyCustomAttributesOnSpan",a)})}_callRequestHook(t,r){const n=this.getConfig().requestHook;n&&mZ(()=>n(t,r),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const r=_b(),n=[];if(typeof PerformanceObserver!="function")return{entries:n,startTime:r,spanUrl:t};const i=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&n.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:n,observer:i,startTime:r,spanUrl:t}}enable(){if(EZ){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}eVe(fetch)&&(this._unwrap(MD,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(MD,"fetch",this._patchConstructor())}disable(){EZ||(this._unwrap(MD,"fetch"),this._usedResources=new WeakSet)}}function gVe(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const wZ="OT_ZONE_CONTEXT";class mVe{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(wZ)||Ms}_bindFunction(t,r){const n=this,i=function(...a){return n.with(t,()=>r.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}_bindListener(t,r){const n=r;return n.__ot_listeners!==void 0||(n.__ot_listeners={},typeof n.addEventListener=="function"&&(n.addEventListener=this._patchAddEventListener(n,n.addEventListener,t)),typeof n.removeEventListener=="function"&&(n.removeEventListener=this._patchRemoveEventListener(n,n.removeEventListener))),r}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,r){return Zone.current.fork({name:t,properties:{[wZ]:r}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,r,n){const i=this;return function(a,o,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[a];u===void 0&&(u=new WeakMap,t.__ot_listeners[a]=u);const l=i.bind(n,o);return u.set(o,l),r.call(this,a,l,s)}}_patchRemoveEventListener(t,r){return function(n,i){if(t.__ot_listeners===void 0||t.__ot_listeners[n]===void 0)return r.call(this,n,i);const a=t.__ot_listeners[n],o=a.get(i);return a.delete(i),r.call(this,n,o||i)}}active(){if(!this._enabled)return Ms;const t=this._getActiveZone(),r=this._activeContextFromZone(t);return r||Ms}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):(gVe(r)&&this._bindListener(t,r),r)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,r,n,...i){const a=this._createZoneName();return this._createZone(a,t).run(r,n,i)}}var xZ={},SZ;function yVe(){if(SZ)return xZ;SZ=1;/**
262
262
  * @license Angular v<unknown>
263
263
  * (c) 2010-2025 Google LLC. https://angular.io/
264
264
  * License: MIT
@@ -1,4 +1,4 @@
1
1
  import { RelayProviderProps } from './types';
2
- declare function CoreRelayProvider({ children }: RelayProviderProps): import("react/jsx-runtime").JSX.Element;
3
- export default CoreRelayProvider;
2
+ declare function RelayEnvironment({ children }: RelayProviderProps): import("react/jsx-runtime").JSX.Element;
3
+ export default RelayEnvironment;
4
4
  //# sourceMappingURL=RelayEnvironmentProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAO1D;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAMzD;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { RelayProviderProps } from './types';
2
- declare function CoreRelayProvider({ children }: RelayProviderProps): import("react/jsx-runtime").JSX.Element;
3
- export default CoreRelayProvider;
2
+ declare function RelayEnvironment({ children }: RelayProviderProps): import("react/jsx-runtime").JSX.Element;
3
+ export default RelayEnvironment;
4
4
  //# sourceMappingURL=RelayEnvironmentProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAO1D;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RelayEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../../src/relay/RelayEnvironmentProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI7C,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAMzD;AAED,eAAe,gBAAgB,CAAC"}