@iflow-ai/iflow-cli 0.3.16-beta.0 → 0.3.16

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.
Files changed (2) hide show
  1. package/bundle/iflow.js +6 -6
  2. package/package.json +1 -1
package/bundle/iflow.js CHANGED
@@ -393,7 +393,7 @@ ${o.authUrl}
393
393
 
394
394
  `);try{(await K1(o.authUrl)).on("error",a=>{throw new Error(`BROWSER_LAUNCH_FAILED: ${R.t("oauth2.errors.browserLaunchFailed")}`)})}catch(s){throw new Error(`BROWSER_LAUNCH_FAILED: ${R.t("oauth2.errors.browserLaunchUnexpectedError",{error:s})}`)}return console.log(R.t("oauth2.messages.waitingForAuthentication")),await o.loginCompletePromise,r}async function HH(t,e){return b0e.has(t)||b0e.set(t,E2o(t,e)),b0e.get(t)}async function S2o(t){let e=await Bxt(),r=process.env.OAUTH_CALLBACK_HOST||"localhost",o=`http://localhost:${e}/oauth2callback`,s=A2o.randomBytes(32).toString("hex"),a="https://iflow.cn/oauth",i=`${encodeURIComponent(o)}&state=${s}`,n=`${a}?loginMethod=phone&type=phone&redirect=${i}&client_id=${See}`,c=new Promise((u,f)=>{let d=NOr.createServer(async(p,h)=>{try{p.url.indexOf("/oauth2callback")===-1&&(h.writeHead(kxt,{Location:OOr}),h.end(),f(new Error(R.t("oauth2.errors.unexpectedRequest",{url:p.url}))));let m=new y2o.URL(p.url,"http://localhost:3000").searchParams;if(m.get("error"))h.writeHead(kxt,{Location:OOr}),h.end(),f(new Error(R.t("oauth2.errors.authenticationError",{error:m.get("error")})));else if(m.get("state")!==s)h.end("State mismatch. Possible CSRF attack"),f(new Error(R.t("oauth2.errors.stateMismatch")));else if(m.get("code")){let y=await fetch("https://iflow.cn/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:`Basic ${Buffer.from(`${See}:${E0e}`).toString("base64")}`},body:new URLSearchParams({grant_type:"authorization_code",code:m.get("code"),redirect_uri:o,client_id:See,client_secret:E0e}).toString()});if(!y.ok)throw new Error(R.t("oauth2.errors.tokenRequestFailed",{status:y.status,statusText:y.statusText}));let g=await y.json(),A={access_token:g.access_token,refresh_token:g.refresh_token,expiry_date:Date.now()+g.expires_in*1e3,token_type:g.token_type,scope:g.scope};t.setCredentials(A);let{apiKey:v}=await LOr(g.access_token);v&&(A.apiKey=v,await Bk.cacheIFlowApiKey(v)),await kOr(A),h.writeHead(kxt,{Location:b2o}),h.end(),u()}else f(new Error(R.t("oauth2.errors.noCodeFound")))}catch(m){f(m)}finally{d.close()}});d.listen(e,r)});return{authUrl:n,loginCompletePromise:c}}function Bxt(){return new Promise((t,e)=>{let r=0;try{let o=process.env.OAUTH_CALLBACK_PORT;if(o)return r=parseInt(o,10),isNaN(r)||r<=0||r>65535?e(new Error(`Invalid value for OAUTH_CALLBACK_PORT: "${o}"`)):t(r);let s=POr.createServer();s.listen(0,()=>{r=s.address().port}),s.on("listening",()=>{s.close(),s.unref()}),s.on("error",a=>e(a)),s.on("close",()=>t(r))}catch(o){e(o)}})}async function _2o(t,e){let r=[a3.getOAuthCredsPath()].filter(o=>!!o);for(let o of r)try{let s=await L4.readFile(o,"utf-8");t.setCredentials(JSON.parse(s));let{token:a}=await t.getAccessToken();if(!a)continue;if(e!==Er.LOGIN_WITH_IFLOW)await t.getTokenInfo(a);else{let i=JSON.parse(s);if(i.expiry_date&&Date.now()>i.expiry_date){console.warn(R.t("oauth2.errors.tokenExpired"));continue}}return!0}catch{}return!1}async function kOr(t){let e=a3.getOAuthCredsPath();await L4.mkdir(v2o.dirname(e),{recursive:!0});let r=JSON.stringify(t,null,2);await L4.writeFile(e,r,{mode:384})}function Mxt(){b0e.clear()}async function W7(){try{await L4.rm(a3.getOAuthCredsPath(),{force:!0}),await Bk.clearCachedIFlowAccount(),await Bk.clearCachedIFlowApiKey(),Mxt()}catch(t){console.error(R.t("oauth2.messages.failedToClearCredentials"),t)}}async function x2o(t){try{let{token:e}=await t.getAccessToken();if(!e)return;let r=await fetch("https://www.googleapis.com/oauth2/v2/userinfo",{headers:{Authorization:`Bearer ${e}`}});if(!r.ok){console.error(R.t("oauth2.messages.failedToFetchUserInfo",{status:r.status,statusText:r.statusText}));return}let o=await r.json();await Bk.cacheIFlowAccount(o.email)}catch(e){console.error(R.t("oauth2.messages.errorRetrievingUserInfo"),e)}}async function C2o(t){try{let{token:e}=await t.getAccessToken();if(!e)return;let{apiKey:r}=await LOr(e);if(r){await Bk.cacheIFlowApiKey(r);let o=a3.getOAuthCredsPath(),s=await L4.readFile(o,"utf-8"),a=JSON.parse(s);a.apiKey=r,await L4.writeFile(o,JSON.stringify(a,null,2),{mode:384})}}catch(e){console.error(R.t("oauth2.messages.errorRetrievingIflowUserInfo"),e)}}function BOr(){b0e.clear()}async function MOr(){try{let t=a3.getOAuthCredsPath(),e=await L4.readFile(t,"utf-8");return JSON.parse(e).access_token}catch{return}}async function U4(){let t=Bk.getCachedIFlowApiKey();if(t)return t;try{let e=a3.getOAuthCredsPath(),r=await L4.readFile(e,"utf-8");return JSON.parse(r).apiKey}catch{return}}async function LOr(t){let r=[1e3,2e3,3e3];for(let o=0;o<3;o++)try{let s=await fetch(`https://iflow.cn/api/oauth/getUserInfo?accessToken=${t}`,{method:"GET"});if(!s.ok){let i=`Failed to fetch iFlow user info: ${s.status} ${s.statusText}`;if((s.status>=500||s.status===408||s.status===429)&&o<2){console.warn(R.t("oauth2.messages.retryingRequest",{errorMessage:i,delay:r[o],attempt:o+1,maxRetries:3})),await new Promise(n=>setTimeout(n,r[o]));continue}return console.error(i),{}}let a=await s.json();if(a.success&&a.data?.apiKey)return{apiKey:a.data.apiKey};continue}catch(s){if(o===2)return console.error(R.t("oauth2.messages.errorAfterAllRetries"),s),{};console.warn(R.t("oauth2.messages.errorWithRetryInfo",{attempt:o+1,maxRetries:3,error:s,delay:r[o]})),await new Promise(i=>setTimeout(i,r[o]))}return{}}async function Lxt(t){let e=await fetch("https://iflow.cn/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:`Basic ${Buffer.from(`${See}:${E0e}`).toString("base64")}`},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:t,client_id:See,client_secret:E0e}).toString()});if(!e.ok)throw new Error(R.t("oauth2.errors.tokenRefreshFailed",{status:e.status,statusText:e.statusText}));return await e.json()}async function _ee(){try{let t=a3.getOAuthCredsPath(),e=await L4.readFile(t,"utf-8"),r=JSON.parse(e);return!!(r.access_token&&r.refresh_token&&r.expiry_date)}catch{return!1}}async function UOr(t={}){let{throwOnExpired:e=!1,silentMode:r=!1}=t;try{let o=a3.getOAuthCredsPath(),s=await L4.readFile(o,"utf-8"),a=JSON.parse(s),i=1440*60*1e3,n=a.expiry_date-Date.now();if(n<0){let c=R.t("oauth2.errors.iflowLoginExpired");if(e)throw new Error(c);return r||console.log(R.t("oauth2.messages.tokenExpiredClearing")),await W7(),{isValid:!1,isExpired:!0,wasRefreshed:!1,error:c}}if(n>0&&n<i){if(!a.refresh_token){let c=R.t("oauth2.errors.tokenExpiresWarningSoon");if(e)throw new Error(c);return r||console.log(R.t("oauth2.messages.tokenExpiresSoonClearing")),await W7(),{isValid:!1,isExpired:!1,wasRefreshed:!1,error:c}}try{let c=await Lxt(a.refresh_token),u={...a,access_token:c.access_token,refresh_token:c.refresh_token,expiry_date:Date.now()+c.expires_in*1e3,token_type:c.token_type,scope:c.scope};return await L4.writeFile(o,JSON.stringify(u,null,2),{mode:384}),r||console.log(R.t("oauth2.messages.tokenRefreshedSuccessfully")),{isValid:!0,isExpired:!1,wasRefreshed:!0}}catch(c){let u="Token refresh failed";if(e)throw c instanceof Error&&(c.message.includes("expired")||c.message.includes("refresh"))?new Error(R.t("oauth2.errors.iflowLoginExpired")):c;return r||console.log(R.t("oauth2.messages.tokenRefreshFailedClearing")),await W7(),{isValid:!1,isExpired:!1,wasRefreshed:!1,error:u}}}return{isValid:!0,isExpired:!1,wasRefreshed:!1}}catch(o){if(e)throw o;return{isValid:!0,isExpired:!1,wasRefreshed:!1}}}async function w9e(){await UOr({throwOnExpired:!0,silentMode:!1})}async function I9e(){return(await UOr({throwOnExpired:!1,silentMode:!0})).isValid}var ROr,Bk,See,E0e,kxt,b2o,OOr,b0e,Mk=G(()=>{"use strict";ROr=we(g0e(),1);$7();sOr();ME();v9e();Ji();Bk=new b9e,See="10009311001",E0e="4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",kxt=301,b2o="https://iflow.cn/oauth/success",OOr="https://iflow.cn/oauth/error",b0e=new Map});var Fxt,LE,Qxt,qxt=G(()=>{"use strict";(function(t){t.DASHER_USER="DASHER_USER",t.INELIGIBLE_ACCOUNT="INELIGIBLE_ACCOUNT",t.NON_USER_ACCOUNT="NON_USER_ACCOUNT",t.RESTRICTED_AGE="RESTRICTED_AGE",t.RESTRICTED_NETWORK="RESTRICTED_NETWORK",t.UNKNOWN="UNKNOWN",t.UNKNOWN_LOCATION="UNKNOWN_LOCATION",t.UNSUPPORTED_LOCATION="UNSUPPORTED_LOCATION"})(Fxt||(Fxt={}));(function(t){t.FREE="free-tier",t.LEGACY="legacy-tier",t.STANDARD="standard-tier"})(LE||(LE={}));(function(t){t.Default="DEFAULT",t.Notice="NOTICE",t.Warning="WARNING",t.Error="ERROR"})(Qxt||(Qxt={}))});function DRr(t){return{text:t}}function ORr(t){return typeof t=="object"&&t!==null?"fileData"in t||"text"in t||"functionCall"in t||"functionResponse"in t||"inlineData"in t||"videoMetadata"in t||"codeExecutionResult"in t||"executableCode"in t:!1}function w2o(t){let e=[];if(typeof t=="string")e.push(DRr(t));else if(ORr(t))e.push(t);else if(Array.isArray(t)){if(t.length===0)throw new Error("partOrString cannot be an empty array");for(let r of t)if(typeof r=="string")e.push(DRr(r));else if(ORr(r))e.push(r);else throw new Error("element in PartUnion must be a Part object or string")}else throw new Error("partOrString must be a Part object, string, or array");return e}function Hxt(t){return{role:"user",parts:w2o(t)}}function I2o(t,e={}){let r=t,o={name:r.name,description:r.description,parametersJsonSchema:r.inputSchema};return r.outputSchema&&(o.responseJsonSchema=r.outputSchema),e.behavior&&(o.behavior=e.behavior),{functionDeclarations:[o]}}function D2o(t,e={}){let r=[],o=new Set;for(let s of t){let a=s.name;if(o.has(a))throw new Error(`Duplicate function name ${a} found in MCP tools. Please ensure function names are unique.`);o.add(a);let i=I2o(s,e);i.functionDeclarations&&r.push(...i.functionDeclarations)}return{functionDeclarations:r}}function NRr(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function S0e(t){return this instanceof S0e?(this.v=t,this):new S0e(t)}function O2o(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(t,e||[]),s,a=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),n("next"),n("throw"),n("return",i),s[Symbol.asyncIterator]=function(){return this},s;function i(h){return function(m){return Promise.resolve(m).then(h,d)}}function n(h,m){o[h]&&(s[h]=function(y){return new Promise(function(g,A){a.push([h,y,g,A])>1||c(h,y)})},m&&(s[h]=m(s[h])))}function c(h,m){try{u(o[h](m))}catch(y){p(a[0][3],y)}}function u(h){h.value instanceof S0e?Promise.resolve(h.value.v).then(f,d):p(a[0][2],h)}function f(h){c("next",h)}function d(h){c("throw",h)}function p(h,m){h(m),a.shift(),a.length&&c(a[0][0],a[0][1])}}function R2o(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof NRr=="function"?NRr(t):t[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(a){r[a]=t[a]&&function(i){return new Promise(function(n,c){i=t[a](i),s(n,c,i.done,i.value)})}}function s(a,i,n,c){Promise.resolve(c).then(function(u){a({value:u,done:n})},i)}}function k2o(t,e=100){return O2o(this,arguments,function*(){let o,s=0;for(;s<e;){let a=yield S0e(t.listTools({cursor:o}));for(let i of a.tools)yield yield S0e(i),s++;if(!a.nextCursor)break;o=a.nextCursor}})}function B2o(t){return t!==null&&typeof t=="object"&&"listTools"in t&&typeof t.listTools=="function"}function PRr(...t){if(P2o=!0,t.length===0)throw new Error("No MCP clients provided");let e=t[t.length-1];return B2o(e)?D9e.create(t,{}):D9e.create(t.slice(0,t.length-1),e)}var T2o,FOr,QOr,Or,qOr,HOr,VOr,GOr,jOr,$Or,WOr,Lk,zOr,KOr,YOr,JOr,XOr,ZOr,eRr,tRr,rRr,nRr,iRr,oRr,sRr,aRr,cRr,lRr,uRr,fRr,dRr,pRr,hRr,mRr,gRr,yRr,ARr,vRr,bRr,ERr,SRr,_Rr,xRr,CRr,TRr,wRr,IRr,xee,RRr,N2o,GMc,P2o,D9e,jMc,Eu=G(()=>{T2o=we(g0e(),1);SZ();(function(t){t.OUTCOME_UNSPECIFIED="OUTCOME_UNSPECIFIED",t.OUTCOME_OK="OUTCOME_OK",t.OUTCOME_FAILED="OUTCOME_FAILED",t.OUTCOME_DEADLINE_EXCEEDED="OUTCOME_DEADLINE_EXCEEDED"})(FOr||(FOr={}));(function(t){t.LANGUAGE_UNSPECIFIED="LANGUAGE_UNSPECIFIED",t.PYTHON="PYTHON"})(QOr||(QOr={}));(function(t){t.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",t.STRING="STRING",t.NUMBER="NUMBER",t.INTEGER="INTEGER",t.BOOLEAN="BOOLEAN",t.ARRAY="ARRAY",t.OBJECT="OBJECT",t.NULL="NULL"})(Or||(Or={}));(function(t){t.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",t.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",t.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",t.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",t.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",t.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY",t.HARM_CATEGORY_IMAGE_HATE="HARM_CATEGORY_IMAGE_HATE",t.HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT="HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",t.HARM_CATEGORY_IMAGE_HARASSMENT="HARM_CATEGORY_IMAGE_HARASSMENT",t.HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT="HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"})(qOr||(qOr={}));(function(t){t.HARM_BLOCK_METHOD_UNSPECIFIED="HARM_BLOCK_METHOD_UNSPECIFIED",t.SEVERITY="SEVERITY",t.PROBABILITY="PROBABILITY"})(HOr||(HOr={}));(function(t){t.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",t.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",t.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",t.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",t.BLOCK_NONE="BLOCK_NONE",t.OFF="OFF"})(VOr||(VOr={}));(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.MODE_DYNAMIC="MODE_DYNAMIC"})(GOr||(GOr={}));(function(t){t.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",t.NO_AUTH="NO_AUTH",t.API_KEY_AUTH="API_KEY_AUTH",t.HTTP_BASIC_AUTH="HTTP_BASIC_AUTH",t.GOOGLE_SERVICE_ACCOUNT_AUTH="GOOGLE_SERVICE_ACCOUNT_AUTH",t.OAUTH="OAUTH",t.OIDC_AUTH="OIDC_AUTH"})(jOr||(jOr={}));(function(t){t.API_SPEC_UNSPECIFIED="API_SPEC_UNSPECIFIED",t.SIMPLE_SEARCH="SIMPLE_SEARCH",t.ELASTIC_SEARCH="ELASTIC_SEARCH"})($Or||($Or={}));(function(t){t.URL_RETRIEVAL_STATUS_UNSPECIFIED="URL_RETRIEVAL_STATUS_UNSPECIFIED",t.URL_RETRIEVAL_STATUS_SUCCESS="URL_RETRIEVAL_STATUS_SUCCESS",t.URL_RETRIEVAL_STATUS_ERROR="URL_RETRIEVAL_STATUS_ERROR",t.URL_RETRIEVAL_STATUS_PAYWALL="URL_RETRIEVAL_STATUS_PAYWALL",t.URL_RETRIEVAL_STATUS_UNSAFE="URL_RETRIEVAL_STATUS_UNSAFE"})(WOr||(WOr={}));(function(t){t.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",t.STOP="STOP",t.MAX_TOKENS="MAX_TOKENS",t.SAFETY="SAFETY",t.RECITATION="RECITATION",t.LANGUAGE="LANGUAGE",t.OTHER="OTHER",t.BLOCKLIST="BLOCKLIST",t.PROHIBITED_CONTENT="PROHIBITED_CONTENT",t.SPII="SPII",t.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",t.IMAGE_SAFETY="IMAGE_SAFETY",t.UNEXPECTED_TOOL_CALL="UNEXPECTED_TOOL_CALL"})(Lk||(Lk={}));(function(t){t.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",t.NEGLIGIBLE="NEGLIGIBLE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH"})(zOr||(zOr={}));(function(t){t.HARM_SEVERITY_UNSPECIFIED="HARM_SEVERITY_UNSPECIFIED",t.HARM_SEVERITY_NEGLIGIBLE="HARM_SEVERITY_NEGLIGIBLE",t.HARM_SEVERITY_LOW="HARM_SEVERITY_LOW",t.HARM_SEVERITY_MEDIUM="HARM_SEVERITY_MEDIUM",t.HARM_SEVERITY_HIGH="HARM_SEVERITY_HIGH"})(KOr||(KOr={}));(function(t){t.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",t.SAFETY="SAFETY",t.OTHER="OTHER",t.BLOCKLIST="BLOCKLIST",t.PROHIBITED_CONTENT="PROHIBITED_CONTENT",t.IMAGE_SAFETY="IMAGE_SAFETY"})(YOr||(YOr={}));(function(t){t.TRAFFIC_TYPE_UNSPECIFIED="TRAFFIC_TYPE_UNSPECIFIED",t.ON_DEMAND="ON_DEMAND",t.PROVISIONED_THROUGHPUT="PROVISIONED_THROUGHPUT"})(JOr||(JOr={}));(function(t){t.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",t.TEXT="TEXT",t.IMAGE="IMAGE",t.AUDIO="AUDIO"})(XOr||(XOr={}));(function(t){t.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",t.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",t.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",t.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(ZOr||(ZOr={}));(function(t){t.JOB_STATE_UNSPECIFIED="JOB_STATE_UNSPECIFIED",t.JOB_STATE_QUEUED="JOB_STATE_QUEUED",t.JOB_STATE_PENDING="JOB_STATE_PENDING",t.JOB_STATE_RUNNING="JOB_STATE_RUNNING",t.JOB_STATE_SUCCEEDED="JOB_STATE_SUCCEEDED",t.JOB_STATE_FAILED="JOB_STATE_FAILED",t.JOB_STATE_CANCELLING="JOB_STATE_CANCELLING",t.JOB_STATE_CANCELLED="JOB_STATE_CANCELLED",t.JOB_STATE_PAUSED="JOB_STATE_PAUSED",t.JOB_STATE_EXPIRED="JOB_STATE_EXPIRED",t.JOB_STATE_UPDATING="JOB_STATE_UPDATING",t.JOB_STATE_PARTIALLY_SUCCEEDED="JOB_STATE_PARTIALLY_SUCCEEDED"})(eRr||(eRr={}));(function(t){t.TUNING_MODE_UNSPECIFIED="TUNING_MODE_UNSPECIFIED",t.TUNING_MODE_FULL="TUNING_MODE_FULL",t.TUNING_MODE_PEFT_ADAPTER="TUNING_MODE_PEFT_ADAPTER"})(tRr||(tRr={}));(function(t){t.ADAPTER_SIZE_UNSPECIFIED="ADAPTER_SIZE_UNSPECIFIED",t.ADAPTER_SIZE_ONE="ADAPTER_SIZE_ONE",t.ADAPTER_SIZE_TWO="ADAPTER_SIZE_TWO",t.ADAPTER_SIZE_FOUR="ADAPTER_SIZE_FOUR",t.ADAPTER_SIZE_EIGHT="ADAPTER_SIZE_EIGHT",t.ADAPTER_SIZE_SIXTEEN="ADAPTER_SIZE_SIXTEEN",t.ADAPTER_SIZE_THIRTY_TWO="ADAPTER_SIZE_THIRTY_TWO"})(rRr||(rRr={}));(function(t){t.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",t.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",t.BALANCED="BALANCED",t.PRIORITIZE_COST="PRIORITIZE_COST"})(nRr||(nRr={}));(function(t){t.UNSPECIFIED="UNSPECIFIED",t.BLOCKING="BLOCKING",t.NON_BLOCKING="NON_BLOCKING"})(iRr||(iRr={}));(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.MODE_DYNAMIC="MODE_DYNAMIC"})(oRr||(oRr={}));(function(t){t.ENVIRONMENT_UNSPECIFIED="ENVIRONMENT_UNSPECIFIED",t.ENVIRONMENT_BROWSER="ENVIRONMENT_BROWSER"})(sRr||(sRr={}));(function(t){t.MODE_UNSPECIFIED="MODE_UNSPECIFIED",t.AUTO="AUTO",t.ANY="ANY",t.NONE="NONE",t.VALIDATED="VALIDATED"})(aRr||(aRr={}));(function(t){t.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",t.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",t.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",t.BLOCK_NONE="BLOCK_NONE"})(cRr||(cRr={}));(function(t){t.DONT_ALLOW="DONT_ALLOW",t.ALLOW_ADULT="ALLOW_ADULT",t.ALLOW_ALL="ALLOW_ALL"})(lRr||(lRr={}));(function(t){t.auto="auto",t.en="en",t.ja="ja",t.ko="ko",t.hi="hi",t.zh="zh",t.pt="pt",t.es="es"})(uRr||(uRr={}));(function(t){t.MASK_MODE_DEFAULT="MASK_MODE_DEFAULT",t.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",t.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",t.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",t.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"})(fRr||(fRr={}));(function(t){t.CONTROL_TYPE_DEFAULT="CONTROL_TYPE_DEFAULT",t.CONTROL_TYPE_CANNY="CONTROL_TYPE_CANNY",t.CONTROL_TYPE_SCRIBBLE="CONTROL_TYPE_SCRIBBLE",t.CONTROL_TYPE_FACE_MESH="CONTROL_TYPE_FACE_MESH"})(dRr||(dRr={}));(function(t){t.SUBJECT_TYPE_DEFAULT="SUBJECT_TYPE_DEFAULT",t.SUBJECT_TYPE_PERSON="SUBJECT_TYPE_PERSON",t.SUBJECT_TYPE_ANIMAL="SUBJECT_TYPE_ANIMAL",t.SUBJECT_TYPE_PRODUCT="SUBJECT_TYPE_PRODUCT"})(pRr||(pRr={}));(function(t){t.EDIT_MODE_DEFAULT="EDIT_MODE_DEFAULT",t.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",t.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",t.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",t.EDIT_MODE_CONTROLLED_EDITING="EDIT_MODE_CONTROLLED_EDITING",t.EDIT_MODE_STYLE="EDIT_MODE_STYLE",t.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",t.EDIT_MODE_PRODUCT_IMAGE="EDIT_MODE_PRODUCT_IMAGE"})(hRr||(hRr={}));(function(t){t.FOREGROUND="FOREGROUND",t.BACKGROUND="BACKGROUND",t.PROMPT="PROMPT",t.SEMANTIC="SEMANTIC",t.INTERACTIVE="INTERACTIVE"})(mRr||(mRr={}));(function(t){t.ASSET="ASSET",t.STYLE="STYLE"})(gRr||(gRr={}));(function(t){t.OPTIMIZED="OPTIMIZED",t.LOSSLESS="LOSSLESS"})(yRr||(yRr={}));(function(t){t.STATE_UNSPECIFIED="STATE_UNSPECIFIED",t.PROCESSING="PROCESSING",t.ACTIVE="ACTIVE",t.FAILED="FAILED"})(ARr||(ARr={}));(function(t){t.SOURCE_UNSPECIFIED="SOURCE_UNSPECIFIED",t.UPLOADED="UPLOADED",t.GENERATED="GENERATED"})(vRr||(vRr={}));(function(t){t.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",t.TEXT="TEXT",t.IMAGE="IMAGE",t.VIDEO="VIDEO",t.AUDIO="AUDIO",t.DOCUMENT="DOCUMENT"})(bRr||(bRr={}));(function(t){t.START_SENSITIVITY_UNSPECIFIED="START_SENSITIVITY_UNSPECIFIED",t.START_SENSITIVITY_HIGH="START_SENSITIVITY_HIGH",t.START_SENSITIVITY_LOW="START_SENSITIVITY_LOW"})(ERr||(ERr={}));(function(t){t.END_SENSITIVITY_UNSPECIFIED="END_SENSITIVITY_UNSPECIFIED",t.END_SENSITIVITY_HIGH="END_SENSITIVITY_HIGH",t.END_SENSITIVITY_LOW="END_SENSITIVITY_LOW"})(SRr||(SRr={}));(function(t){t.ACTIVITY_HANDLING_UNSPECIFIED="ACTIVITY_HANDLING_UNSPECIFIED",t.START_OF_ACTIVITY_INTERRUPTS="START_OF_ACTIVITY_INTERRUPTS",t.NO_INTERRUPTION="NO_INTERRUPTION"})(_Rr||(_Rr={}));(function(t){t.TURN_COVERAGE_UNSPECIFIED="TURN_COVERAGE_UNSPECIFIED",t.TURN_INCLUDES_ONLY_ACTIVITY="TURN_INCLUDES_ONLY_ACTIVITY",t.TURN_INCLUDES_ALL_INPUT="TURN_INCLUDES_ALL_INPUT"})(xRr||(xRr={}));(function(t){t.SCHEDULING_UNSPECIFIED="SCHEDULING_UNSPECIFIED",t.SILENT="SILENT",t.WHEN_IDLE="WHEN_IDLE",t.INTERRUPT="INTERRUPT"})(CRr||(CRr={}));(function(t){t.SCALE_UNSPECIFIED="SCALE_UNSPECIFIED",t.C_MAJOR_A_MINOR="C_MAJOR_A_MINOR",t.D_FLAT_MAJOR_B_FLAT_MINOR="D_FLAT_MAJOR_B_FLAT_MINOR",t.D_MAJOR_B_MINOR="D_MAJOR_B_MINOR",t.E_FLAT_MAJOR_C_MINOR="E_FLAT_MAJOR_C_MINOR",t.E_MAJOR_D_FLAT_MINOR="E_MAJOR_D_FLAT_MINOR",t.F_MAJOR_D_MINOR="F_MAJOR_D_MINOR",t.G_FLAT_MAJOR_E_FLAT_MINOR="G_FLAT_MAJOR_E_FLAT_MINOR",t.G_MAJOR_E_MINOR="G_MAJOR_E_MINOR",t.A_FLAT_MAJOR_F_MINOR="A_FLAT_MAJOR_F_MINOR",t.A_MAJOR_G_FLAT_MINOR="A_MAJOR_G_FLAT_MINOR",t.B_FLAT_MAJOR_G_MINOR="B_FLAT_MAJOR_G_MINOR",t.B_MAJOR_A_FLAT_MINOR="B_MAJOR_A_FLAT_MINOR"})(TRr||(TRr={}));(function(t){t.MUSIC_GENERATION_MODE_UNSPECIFIED="MUSIC_GENERATION_MODE_UNSPECIFIED",t.QUALITY="QUALITY",t.DIVERSITY="DIVERSITY",t.VOCALIZATION="VOCALIZATION"})(wRr||(wRr={}));(function(t){t.PLAYBACK_CONTROL_UNSPECIFIED="PLAYBACK_CONTROL_UNSPECIFIED",t.PLAY="PLAY",t.PAUSE="PAUSE",t.STOP="STOP",t.RESET_CONTEXT="RESET_CONTEXT"})(IRr||(IRr={}));xee=class{get text(){var e,r,o,s,a,i,n,c;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning text from the first one.");let u="",f=!1,d=[];for(let p of(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)!==null&&c!==void 0?c:[]){for(let[h,m]of Object.entries(p))h!=="text"&&h!=="thought"&&(m!==null||m!==void 0)&&d.push(h);if(typeof p.text=="string"){if(typeof p.thought=="boolean"&&p.thought)continue;f=!0,u+=p.text}}return d.length>0&&console.warn(`there are non-text parts ${d} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),f?u:void 0}get data(){var e,r,o,s,a,i,n,c;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");let u="",f=[];for(let d of(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)!==null&&c!==void 0?c:[]){for(let[p,h]of Object.entries(d))p!=="inlineData"&&(h!==null||h!==void 0)&&f.push(p);d.inlineData&&typeof d.inlineData.data=="string"&&(u+=atob(d.inlineData.data))}return f.length>0&&console.warn(`there are non-data parts ${f} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),u.length>0?btoa(u):void 0}get functionCalls(){var e,r,o,s,a,i,n,c;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");let u=(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)===null||c===void 0?void 0:c.filter(f=>f.functionCall).map(f=>f.functionCall).filter(f=>f!==void 0);if(u?.length!==0)return u}get executableCode(){var e,r,o,s,a,i,n,c,u;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");let f=(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)===null||c===void 0?void 0:c.filter(d=>d.executableCode).map(d=>d.executableCode).filter(d=>d!==void 0);if(f?.length!==0)return(u=f?.[0])===null||u===void 0?void 0:u.code}get codeExecutionResult(){var e,r,o,s,a,i,n,c,u;if(((s=(o=(r=(e=this.candidates)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.content)===null||o===void 0?void 0:o.parts)===null||s===void 0?void 0:s.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one.");let f=(c=(n=(i=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||i===void 0?void 0:i.content)===null||n===void 0?void 0:n.parts)===null||c===void 0?void 0:c.filter(d=>d.codeExecutionResult).map(d=>d.codeExecutionResult).filter(d=>d!==void 0);if(f?.length!==0)return(u=f?.[0])===null||u===void 0?void 0:u.output}};(function(t){t.PAGED_ITEM_BATCH_JOBS="batchJobs",t.PAGED_ITEM_MODELS="models",t.PAGED_ITEM_TUNING_JOBS="tuningJobs",t.PAGED_ITEM_FILES="files",t.PAGED_ITEM_CACHED_CONTENTS="cachedContents"})(RRr||(RRr={}));N2o="1.16.0",GMc=`google-genai-sdk/${N2o}`;P2o=!1;D9e=class t{constructor(e=[],r){this.mcpTools=[],this.functionNameToMcpClient={},this.mcpClients=e,this.config=r}static create(e,r){return new t(e,r)}async initialize(){var e,r,o,s;if(this.mcpTools.length>0)return;let a={},i=[];for(let f of this.mcpClients)try{for(var n=!0,c=(r=void 0,R2o(k2o(f))),u;u=await c.next(),e=u.done,!e;n=!0){s=u.value,n=!1;let d=s;i.push(d);let p=d.name;if(a[p])throw new Error(`Duplicate function name ${p} found in MCP tools. Please ensure function names are unique.`);a[p]=f}}catch(d){r={error:d}}finally{try{!n&&!e&&(o=c.return)&&await o.call(c)}finally{if(r)throw r.error}}this.mcpTools=i,this.functionNameToMcpClient=a}async tool(){return await this.initialize(),D2o(this.mcpTools,this.config)}async callTool(e){await this.initialize();let r=[];for(let o of e)if(o.name in this.functionNameToMcpClient){let s=this.functionNameToMcpClient[o.name],a;this.config.timeout&&(a={timeout:this.config.timeout});let i=await s.callTool({name:o.name,arguments:o.args},void 0,a);r.push({functionResponse:{name:o.name,response:i.isError?{error:i}:i}})}return r}};jMc=1024*1024*8;});function kRr(t){return{request:{model:"models/"+t.model,contents:MRr(t.contents)}}}function BRr(t){return{totalTokens:t.totalTokens}}function Gxt(t,e,r,o){return{model:t.model,project:r,user_prompt_id:e,request:M2o(t,o)}}function jxt(t){let e=t.response,r=new xee;return r.candidates=e.candidates,r.automaticFunctionCallingHistory=e.automaticFunctionCallingHistory,r.promptFeedback=e.promptFeedback,r.usageMetadata=e.usageMetadata,r}function M2o(t,e){return{contents:MRr(t.contents),systemInstruction:L2o(t.config?.systemInstruction),cachedContent:t.config?.cachedContent,tools:t.config?.tools,toolConfig:t.config?.toolConfig,labels:t.config?.labels,safetySettings:t.config?.safetySettings,generationConfig:Q2o(t.config),session_id:e}}function MRr(t){return Array.isArray(t)?t.map(Vxt):[Vxt(t)]}function L2o(t){if(t)return Vxt(t)}function Vxt(t){return Array.isArray(t)?{role:"user",parts:U2o(t)}:typeof t=="string"?{role:"user",parts:[{text:t}]}:"parts"in t?t:{role:"user",parts:[t]}}function U2o(t){return t.map(F2o)}function F2o(t){return typeof t=="string"?{text:t}:t}function Q2o(t){if(t)return{temperature:t.temperature,topP:t.topP,topK:t.topK,candidateCount:t.candidateCount,maxOutputTokens:t.maxOutputTokens,stopSequences:t.stopSequences,responseLogprobs:t.responseLogprobs,logprobs:t.logprobs,presencePenalty:t.presencePenalty,frequencyPenalty:t.frequencyPenalty,seed:t.seed,responseMimeType:t.responseMimeType,responseSchema:t.responseSchema,routingConfig:t.routingConfig,modelSelectionConfig:t.modelSelectionConfig,responseModalities:t.responseModalities,mediaResolution:t.mediaResolution,speechConfig:t.speechConfig,audioTimestamp:t.audioTimestamp,thinkingConfig:t.thinkingConfig}}var LRr=G(()=>{"use strict";Eu();});import*as URr from"readline";var FRr,QRr,z7,O9e=G(()=>{"use strict";LRr();FRr="https://cloudcode-pa.googleapis.com",QRr="v1internal",z7=class{client;projectId;httpOptions;sessionId;userTier;constructor(e,r,o={},s,a){this.client=e,this.projectId=r,this.httpOptions=o,this.sessionId=s,this.userTier=a}async generateContentStream(e,r){let o=await this.requestStreamingPost("streamGenerateContent",Gxt(e,r,this.projectId,this.sessionId),e.config?.abortSignal);return(async function*(){for await(let s of o)yield jxt(s)})()}async generateContent(e,r){let o=await this.requestPost("generateContent",Gxt(e,r,this.projectId,this.sessionId),e.config?.abortSignal);return jxt(o)}async onboardUser(e){return await this.requestPost("onboardUser",e)}async loadCodeAssist(e){return await this.requestPost("loadCodeAssist",e)}async getCodeAssistGlobalUserSetting(){return await this.requestGet("getCodeAssistGlobalUserSetting")}async setCodeAssistGlobalUserSetting(e){return await this.requestPost("setCodeAssistGlobalUserSetting",e)}async countTokens(e,r){let o=await this.requestPost("countTokens",kRr(e));return BRr(o)}async embedContent(e){throw Error()}async requestPost(e,r,o){return(await this.client.request({url:this.getMethodUrl(e),method:"POST",headers:{"Content-Type":"application/json",...this.httpOptions.headers},responseType:"json",body:JSON.stringify(r),signal:o})).data}async requestGet(e,r){return(await this.client.request({url:this.getMethodUrl(e),method:"GET",headers:{"Content-Type":"application/json",...this.httpOptions.headers},responseType:"json",signal:r})).data}async requestStreamingPost(e,r,o){let s=await this.client.request({url:this.getMethodUrl(e),method:"POST",params:{alt:"sse"},headers:{"Content-Type":"application/json",...this.httpOptions.headers},responseType:"stream",body:JSON.stringify(r),signal:o});return(async function*(){let a=URr.createInterface({input:s.data,crlfDelay:1/0}),i=[];for await(let n of a)if(n===""){if(i.length===0)continue;yield JSON.parse(i.join(`
395
395
  `)),i=[]}else if(n.startsWith("data: "))i.push(n.slice(6).trim());else throw new Error(`Unexpected line format in response: ${n}`)})()}getMethodUrl(e){return`${process.env.CODE_ASSIST_ENDPOINT??FRr}/${QRr}:${e}`}}});async function qRr(t){let e=process.env.GOOGLE_CLOUD_PROJECT||void 0,r=new z7(t,e,{},"",void 0),o={ideType:"IDE_UNSPECIFIED",platform:"PLATFORM_UNSPECIFIED",pluginType:"IFLOW",duetProject:e},s=await r.loadCodeAssist({cloudaicompanionProject:e,metadata:o});!e&&s.cloudaicompanionProject&&(e=s.cloudaicompanionProject);let a=q2o(s);if(a.userDefinedCloudaicompanionProject&&!e)throw new $xt;let i={tierId:a.id,cloudaicompanionProject:e,metadata:o},n=await r.onboardUser(i);for(;!n.done;)await new Promise(c=>setTimeout(c,5e3)),n=await r.onboardUser(i);return{projectId:n.response?.cloudaicompanionProject?.id||"",userTier:a.id}}function q2o(t){if(t.currentTier)return t.currentTier;for(let e of t.allowedTiers||[])if(e.isDefault)return e;return{name:"",description:"",id:LE.LEGACY,userDefinedCloudaicompanionProject:!0}}var $xt,HRr=G(()=>{"use strict";qxt();O9e();$xt=class extends Error{constructor(){super("This account requires setting the GOOGLE_CLOUD_PROJECT env var. See https://goo.gle/iflow-cli-auth-docs#workspace-gca")}}});function H2o(t){Cee={...Cee,...t}}function V2o(){return Cee}async function VRr(t){try{let{event_name:e,payload:r}=t,o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},s=await fetch(`${Cee.endpoint}/${e}`,o);return s.ok?{success:!0}:{success:!1,error:`upload failed: ${s.status} ${s.statusText}`}}catch(e){return{success:!1,error:`Failed to upload data to ${Cee.endpoint}: ${e instanceof Error?e.message:String(e)}`}}}async function _0e(t,e){return G2o.record(t,e)}var Cee,R9e,G2o,Wxt=G(()=>{"use strict";Cee={endpoint:"https://gm.mmstat.com"};R9e=class{async record(e,r){return await VRr({event_name:e,payload:r})}},G2o=new R9e});import{randomUUID as j2o}from"crypto";function $2o(){function t(n,c){return Math.floor(Math.random()*(c-n+1))+n}var e,r,o,s=[{first:[1,9],second:[0,255],third:[0,255],fourth:[1,254]},{first:[11,126],second:[0,255],third:[0,255],fourth:[1,254]},{first:[128,169],second:[0,253],third:[0,255],fourth:[1,254]},{first:[169,169],second:[255,255],third:[0,255],fourth:[1,254]},{first:[170,172],second:[0,15],third:[0,255],fourth:[1,254]},{first:[172,172],second:[32,255],third:[0,255],fourth:[1,254]},{first:[173,192],second:[0,167],third:[0,255],fourth:[1,254]},{first:[192,192],second:[169,255],third:[0,255],fourth:[1,254]},{first:[193,223],second:[0,255],third:[0,255],fourth:[1,254]}],a=s[Math.floor(Math.random()*s.length)],i=t(a.first[0],a.first[1]);return e=i===169?a.second[0]===255?255:t(a.second[0],a.second[1]):i===172?a.second[0]===32?t(32,255):t(a.second[0],a.second[1]):i===192&&a.second[0]===169?t(169,255):t(a.second[0],a.second[1]),r=t(a.third[0],a.third[1]),o=t(a.fourth[0],a.fourth[1]),[i,e,r,o].join(".")}function W2o(t){for(var e=t.split("."),r="",o=0;o<e.length;o++){var s=e[o],a=parseInt(s).toString(16);r+=a.length===1?"0"+a:a}return r}function z2o(){return new Date().getTime()}function K2o(){var t=9e3,e=1e3,r=e,o=$2o(),s=z2o(),a=W2o(o),i="d",n="51fc",c=a+s+r+i+n;return r++,r>t&&(r=e),c}function Y2o(t){for(var e=new Array(t),r="0123456789abcdef",o=0;o<t;o++)e[o]===void 0&&(e[o]=r[Math.floor(Math.random()*r.length)]);return e.join("")}function N9e(){return K2o()+"00"}function Tee(){return Y2o(16)}function P9e(){return j2o()}function GRr(t,e){return`00-${t}-${e}-00`}var zxt=G(()=>{"use strict"});var k9e,VH,B9e=G(()=>{"use strict";Wxt();zxt();k9e=class{currentSession=null;async startSession(e,r,o,s){let{model:a,tool:i}=s||{},n="iflow",c="cli",u=N9e(),f=Tee(),d=`${n}.${c}.${o}.${u}`,p=GRr(u,f),h=Date.now();this.currentSession={traceId:u,parent_observation_id:f,conversationId:o,sessionId:e,userId:r,pid:n,sceneId:c,sam:d,traceparent:p,startTime:h,model:a,tool:i};let m={gmkey:"AI",gokey:this.stringifyGokey({pid:n,sam:d,trace_id:u,observation_id:f,model:a,tool:i,sessionId:e,user_id:r})};return await _0e("/aitrack.lifecycle.run_started",m),this.currentSession}async endSession(){if(!this.currentSession)return;let{pid:e,sam:r,traceId:o,startTime:s,parent_observation_id:a,model:i,tool:n,sessionId:c,userId:u}=this.currentSession,f=Date.now()-s,d=Tee(),p={gmkey:"AI",gokey:this.stringifyGokey({pid:e,sam:r,trace_id:o,observation_id:d,parent_observation_id:a,duration:f,model:i,tool:n,sessionId:c,user_id:u})};await _0e("/aitrack.lifecycle.run_finished",p),this.currentSession=null}async recordError(e){if(!this.currentSession)throw new Error("No active session to record error");let{pid:r,sam:o,traceId:s,startTime:a,parent_observation_id:i,model:n,tool:c,sessionId:u,userId:f}=this.currentSession,d=Tee(),p="",h="";e instanceof Error?(p=e.cause?`${e.message}:${e.cause.message}`:e.message,h=e.cause?e.cause.stack:e.stack):p=String(e);let m={gmkey:"AI",gokey:this.stringifyGokey({pid:r,sam:o,trace_id:s,observation_id:d,parent_observation_id:i,error_msg:`${p}
396
- ${h.slice(0,500)}`,model:n,tool:c,sessionId:u,cliVer:"0.3.16-beta.0",user_id:f})};await _0e("/aitrack.lifecycle.run_error",m)}getCurrentSession(){return this.currentSession}stringifyGokey(e){return Object.entries(e).map(([r,o])=>`${encodeURIComponent(r)}=${encodeURIComponent(String(o))}`).join("&")}},VH=new k9e});import U5,{dirname as J2o,join as Kxt}from"node:path";import M9e from"os";import*as jRr from"crypto";import{fileURLToPath as X2o}from"node:url";import Z2o from"node:fs";function F5(t){let e=M9e.homedir();return t.startsWith(e)?t.replace(e,"~"):t}function jl(t,e=35){if(t.length<=e)return t;let o=U5.parse(t).root,s=U5.sep,i=t.substring(o.length).split(s).filter(h=>h!=="");if(i.length<=1){let h=Math.floor((e-3)/2);if(h<=0)return t.substring(0,e-3)+"...";let m=t.substring(0,h),y=t.substring(t.length-h);return`${m}...${y}`}let n=i[0],c=i[i.length-1],u=o+n,f=[],d=s.length+c.length;for(let h=i.length-2;h>=0;h--){let m=i[h],y=d+s.length+m.length;if(y<=e)f.unshift(m),d=y;else break}let p=f.join(s)+s+c;return d>e?p:(p=u+s+p,p.length>e?"..."+p.substring(p.length-e-3):p)}function ep(t,e){let r=U5.resolve(t),o=U5.resolve(e);return U5.relative(o,r)||"."}function x0e(t){let e="";for(let r=0;r<t.length;r++)t[r]===" "&&(r===0||t[r-1]!=="\\")?e+="\\ ":e+=t[r];return e}function GH(t){return t.replace(/\\ /g," ")}function L9e(t){return jRr.createHash("sha256").update(t).digest("hex")}function c3(t){let e=L9e(t);return U5.join(M9e.homedir(),t0,e1o,e)}function U9e(){return U5.join(M9e.homedir(),t0,$Rr)}function F9e(t){return U5.join(t,t0,$Rr)}function Q9e(){if(process.env.USE_BUILTIN_RIPGREP==="0")return"rg";let t=J2o(X2o(import.meta.url)),e=[Kxt(t,"..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`),Kxt(t,"..","..","..","..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`),Kxt(t,"..","..","..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`)];for(let r of e)try{if(Z2o.existsSync(r))return r}catch{}return e[0]}function C0e(t,e){let o=M9e.platform()==="win32"?U5.win32:U5,s=o.relative(t,e);return!s.startsWith(`..${o.sep}`)&&s!==".."&&!o.isAbsolute(s)}var t0,Yxt,e1o,$Rr,xp=G(()=>{"use strict";t0=".iflow",Yxt="google_accounts.json",e1o="tmp",$Rr="commands"});import*as WRr from"os";import*as K7 from"fs";import*as Zxt from"path";import{randomUUID as t1o}from"crypto";function n1o(){K7.existsSync(Jxt)||K7.mkdirSync(Jxt,{recursive:!0})}function i1o(){return K7.existsSync(Xxt)&&K7.readFileSync(Xxt,"utf-8").trim()||null}function o1o(t){K7.writeFileSync(Xxt,t,"utf-8")}function q9e(){try{n1o();let t=i1o();return t||(t=t1o(),o1o(t)),t}catch(t){return console.error("Error accessing installation ID file, generating ephemeral ID:",t),"123456789"}}var r1o,Jxt,Xxt,eCt=G(()=>{"use strict";xp();r1o=WRr.homedir()??"",Jxt=Zxt.join(r1o,t0),Xxt=Zxt.join(Jxt,"installation_id")});var zRr=E((hLc,s1o)=>{s1o.exports={name:"systeminformation",version:"5.27.10",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",type:"commonjs",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js",testDeno:"deno run -A ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var vm=E(vo=>{"use strict";var Iee=me("os"),q4=me("fs"),a1o=me("path"),aCt=me("child_process").spawn,c1o=me("child_process").exec,Dee=me("child_process").execSync,l1o=me("util"),$H=process.platform,cCt=$H==="linux"||$H==="android",JRr=$H==="darwin",j9e=$H==="win32",XRr=$H==="freebsd",ZRr=$H==="openbsd",eNr=$H==="netbsd",tCt=0,jH="",F4="",Uk=null,Q4=null,lCt=process.env.WINDIR||"C:\\Windows",sg,wee="",T0e=[],uCt=!1,V9e="",u1o="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",nCt="--###START###--",KRr="--ERROR--",G9e="--###ENDCMD###--",iCt="--##ID##--",w0e={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},$9e={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function f1o(t){let e=parseInt(t,10);return isNaN(e)&&(e=0),e}function d1o(t){let e=!1,r="",o="";for(let s of t)s>="0"&&s<="9"||e?(e=!0,r+=s):o+=s;return[o,r]}var H9e=new String,oCt=new String().replace,sCt=new String().toLowerCase,tNr=new String().toString,rNr=new String().substr,nNr=new String().substring,iNr=new String().trim,oNr=new String().startsWith,sNr=Math.min;function p1o(t){return t&&{}.toString.call(t)==="[object Function]"}function h1o(t){let e=[],r={};for(let o=0;o<t.length;o++){let s=Object.keys(t[o]);s.sort(function(i,n){return i-n});let a="";for(let i=0;i<s.length;i++)a+=JSON.stringify(s[i]),a+=JSON.stringify(t[o][s[i]]);({}).hasOwnProperty.call(r,a)||(e.push(t[o]),r[a]=!0)}return e}function m1o(t,e){return t.sort(function(r,o){let s="",a="";return e.forEach(function(i){s=s+r[i],a=a+o[i]}),s<a?-1:s>a?1:0})}function g1o(){return tCt===0&&(tCt=Iee.cpus().length),tCt}function Fk(t,e,r,o,s){r=r||":",e=e.toLowerCase(),o=o||!1,s=s||!1;let a="";return t.some(i=>{let n=i.toLowerCase().replace(/\t/g,"");if(o&&(n=n.trim()),n.startsWith(e)&&(!s||n.match(e+r)||n.match(e+" "+r))){let c=o?i.trim().split(r):i.split(r);if(c.length>=2)return c.shift(),a=c.join(r).trim(),!0}}),a}function y1o(t,e){return e=e||16,t.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],e))})}function A1o(t){let e="",r=0;return t.split("").forEach(o=>{o>="0"&&o<="9"?r===1&&r++:(r===0&&r++,r===1&&(e+=o))}),e}function v1o(t,e){e=e||"",t=t.toUpperCase();let r=0,o=0,s=A1o(t),a=t.split(s);if(a.length>=2){a[2]&&(a[1]+=a[2]);let i=a[1]&&a[1].toLowerCase().indexOf("pm")>-1||a[1].toLowerCase().indexOf("p.m.")>-1||a[1].toLowerCase().indexOf("p. m.")>-1||a[1].toLowerCase().indexOf("n")>-1||a[1].toLowerCase().indexOf("ch")>-1||a[1].toLowerCase().indexOf("\xF6s")>-1||e&&a[1].toLowerCase().indexOf(e)>-1;return r=parseInt(a[0],10),o=parseInt(a[1],10),r=i&&r<12?r+12:r,("0"+r).substr(-2)+":"+("0"+o).substr(-2)}}function b1o(t,e){let r={date:"",time:""};e=e||{};let o=(e.dateFormat||"").toLowerCase(),s=e.pmDesignator||"",a=t.split(" ");if(a[0]){if(a[0].indexOf("/")>=0){let i=a[0].split("/");i.length===3&&(i[0].length===4?r.date=i[0]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[2]).substr(-2):i[2].length===2?(o.indexOf("/d/")>-1||o.indexOf("/dd/")>-1,r.date="20"+i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2)):(t.toLowerCase().indexOf("pm")>-1||t.toLowerCase().indexOf("p.m.")>-1||t.toLowerCase().indexOf("p. m.")>-1||t.toLowerCase().indexOf("am")>-1||t.toLowerCase().indexOf("a.m.")>-1||t.toLowerCase().indexOf("a. m.")>-1||o.indexOf("/d/")>-1||o.indexOf("/dd/")>-1)&&o.indexOf("dd/")!==0?r.date=i[2]+"-"+("0"+i[0]).substr(-2)+"-"+("0"+i[1]).substr(-2):r.date=i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2))}if(a[0].indexOf(".")>=0){let i=a[0].split(".");i.length===3&&(o.indexOf(".d.")>-1||o.indexOf(".dd.")>-1?r.date=i[2]+"-"+("0"+i[0]).substr(-2)+"-"+("0"+i[1]).substr(-2):r.date=i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2))}if(a[0].indexOf("-")>=0){let i=a[0].split("-");i.length===3&&(r.date=i[0]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[2]).substr(-2))}}if(a[1]){a.shift();let i=a.join(" ");r.time=v1o(i,s)}return r}function E1o(t,e){let r=e>0,o=1,s=0,a=0,i=[];for(let c=0;c<t.length;c++)o<=e?(/\s/.test(t[c])&&!r&&(a=c-1,i.push({from:s,to:a+1,cap:t.substring(s,a+1)}),s=a+2,o++),r=t[c]===" "):(!/\s/.test(t[c])&&r&&(a=c-1,s<a&&i.push({from:s,to:a,cap:t.substring(s,a)}),s=a+1,o++),r=t[c]===" ");a=5e3,i.push({from:s,to:a,cap:t.substring(s,a)});let n=i.length;for(let c=0;c<n;c++)i[c].cap.replace(/\s/g,"").length===0&&c+1<n&&(i[c].to=i[c+1].to,i[c].cap=i[c].cap+i[c+1].cap,i.splice(c+1,1),n=n-1);return i}function S1o(t,e,r){for(let o=0;o<t.length;o++)if(t[o][e]===r)return o;return-1}function _1o(){if(V9e="powershell.exe",j9e){let t=`${lCt}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;q4.existsSync(t)&&(V9e=t)}}function aNr(){if(Iee.type()==="Windows_NT"&&!jH&&(jH=lCt+"\\system32\\wbem\\wmic.exe",!q4.existsSync(jH)))try{let t=Dee("WHERE WMIC",w0e).toString().split(`\r
396
+ ${h.slice(0,500)}`,model:n,tool:c,sessionId:u,cliVer:"0.3.16",user_id:f})};await _0e("/aitrack.lifecycle.run_error",m)}getCurrentSession(){return this.currentSession}stringifyGokey(e){return Object.entries(e).map(([r,o])=>`${encodeURIComponent(r)}=${encodeURIComponent(String(o))}`).join("&")}},VH=new k9e});import U5,{dirname as J2o,join as Kxt}from"node:path";import M9e from"os";import*as jRr from"crypto";import{fileURLToPath as X2o}from"node:url";import Z2o from"node:fs";function F5(t){let e=M9e.homedir();return t.startsWith(e)?t.replace(e,"~"):t}function jl(t,e=35){if(t.length<=e)return t;let o=U5.parse(t).root,s=U5.sep,i=t.substring(o.length).split(s).filter(h=>h!=="");if(i.length<=1){let h=Math.floor((e-3)/2);if(h<=0)return t.substring(0,e-3)+"...";let m=t.substring(0,h),y=t.substring(t.length-h);return`${m}...${y}`}let n=i[0],c=i[i.length-1],u=o+n,f=[],d=s.length+c.length;for(let h=i.length-2;h>=0;h--){let m=i[h],y=d+s.length+m.length;if(y<=e)f.unshift(m),d=y;else break}let p=f.join(s)+s+c;return d>e?p:(p=u+s+p,p.length>e?"..."+p.substring(p.length-e-3):p)}function ep(t,e){let r=U5.resolve(t),o=U5.resolve(e);return U5.relative(o,r)||"."}function x0e(t){let e="";for(let r=0;r<t.length;r++)t[r]===" "&&(r===0||t[r-1]!=="\\")?e+="\\ ":e+=t[r];return e}function GH(t){return t.replace(/\\ /g," ")}function L9e(t){return jRr.createHash("sha256").update(t).digest("hex")}function c3(t){let e=L9e(t);return U5.join(M9e.homedir(),t0,e1o,e)}function U9e(){return U5.join(M9e.homedir(),t0,$Rr)}function F9e(t){return U5.join(t,t0,$Rr)}function Q9e(){if(process.env.USE_BUILTIN_RIPGREP==="0")return"rg";let t=J2o(X2o(import.meta.url)),e=[Kxt(t,"..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`),Kxt(t,"..","..","..","..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`),Kxt(t,"..","..","..","vendors","ripgrep",`${process.arch}-${process.platform}`,`rg${process.platform==="win32"?".exe":""}`)];for(let r of e)try{if(Z2o.existsSync(r))return r}catch{}return e[0]}function C0e(t,e){let o=M9e.platform()==="win32"?U5.win32:U5,s=o.relative(t,e);return!s.startsWith(`..${o.sep}`)&&s!==".."&&!o.isAbsolute(s)}var t0,Yxt,e1o,$Rr,xp=G(()=>{"use strict";t0=".iflow",Yxt="google_accounts.json",e1o="tmp",$Rr="commands"});import*as WRr from"os";import*as K7 from"fs";import*as Zxt from"path";import{randomUUID as t1o}from"crypto";function n1o(){K7.existsSync(Jxt)||K7.mkdirSync(Jxt,{recursive:!0})}function i1o(){return K7.existsSync(Xxt)&&K7.readFileSync(Xxt,"utf-8").trim()||null}function o1o(t){K7.writeFileSync(Xxt,t,"utf-8")}function q9e(){try{n1o();let t=i1o();return t||(t=t1o(),o1o(t)),t}catch(t){return console.error("Error accessing installation ID file, generating ephemeral ID:",t),"123456789"}}var r1o,Jxt,Xxt,eCt=G(()=>{"use strict";xp();r1o=WRr.homedir()??"",Jxt=Zxt.join(r1o,t0),Xxt=Zxt.join(Jxt,"installation_id")});var zRr=E((hLc,s1o)=>{s1o.exports={name:"systeminformation",version:"5.27.10",description:"Advanced, lightweight system and OS information library",license:"MIT",author:"Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",homepage:"https://systeminformation.io",main:"./lib/index.js",type:"commonjs",bin:{systeminformation:"lib/cli.js"},types:"./lib/index.d.ts",scripts:{test:"node ./test/test.js",testDeno:"deno run -A ./test/test.js"},files:["lib/"],keywords:["system information","sysinfo","monitor","monitoring","os","linux","osx","windows","freebsd","openbsd","netbsd","cpu","cpuload","physical cores","logical cores","processor","cores","threads","socket type","memory","file system","fsstats","diskio","block devices","netstats","network","network interfaces","network connections","network stats","iface","printer","processes","users","internet","battery","docker","docker stats","docker processes","graphics","graphic card","graphic controller","gpu","display","smart","disk layout","usb","audio","bluetooth","wifi","wifinetworks","virtual box","virtualbox","vm","backend","hardware","BIOS","chassis"],repository:{type:"git",url:"https://github.com/sebhildebrandt/systeminformation.git"},funding:{type:"Buy me a coffee",url:"https://www.buymeacoffee.com/systeminfo"},os:["darwin","linux","win32","freebsd","openbsd","netbsd","sunos","android"],engines:{node:">=8.0.0"}}});var vm=E(vo=>{"use strict";var Iee=me("os"),q4=me("fs"),a1o=me("path"),aCt=me("child_process").spawn,c1o=me("child_process").exec,Dee=me("child_process").execSync,l1o=me("util"),$H=process.platform,cCt=$H==="linux"||$H==="android",JRr=$H==="darwin",j9e=$H==="win32",XRr=$H==="freebsd",ZRr=$H==="openbsd",eNr=$H==="netbsd",tCt=0,jH="",F4="",Uk=null,Q4=null,lCt=process.env.WINDIR||"C:\\Windows",sg,wee="",T0e=[],uCt=!1,V9e="",u1o="$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; ",nCt="--###START###--",KRr="--ERROR--",G9e="--###ENDCMD###--",iCt="--##ID##--",w0e={windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})},$9e={maxBuffer:1024*2e4,encoding:"UTF-8",stdio:["pipe","pipe","ignore"]};function f1o(t){let e=parseInt(t,10);return isNaN(e)&&(e=0),e}function d1o(t){let e=!1,r="",o="";for(let s of t)s>="0"&&s<="9"||e?(e=!0,r+=s):o+=s;return[o,r]}var H9e=new String,oCt=new String().replace,sCt=new String().toLowerCase,tNr=new String().toString,rNr=new String().substr,nNr=new String().substring,iNr=new String().trim,oNr=new String().startsWith,sNr=Math.min;function p1o(t){return t&&{}.toString.call(t)==="[object Function]"}function h1o(t){let e=[],r={};for(let o=0;o<t.length;o++){let s=Object.keys(t[o]);s.sort(function(i,n){return i-n});let a="";for(let i=0;i<s.length;i++)a+=JSON.stringify(s[i]),a+=JSON.stringify(t[o][s[i]]);({}).hasOwnProperty.call(r,a)||(e.push(t[o]),r[a]=!0)}return e}function m1o(t,e){return t.sort(function(r,o){let s="",a="";return e.forEach(function(i){s=s+r[i],a=a+o[i]}),s<a?-1:s>a?1:0})}function g1o(){return tCt===0&&(tCt=Iee.cpus().length),tCt}function Fk(t,e,r,o,s){r=r||":",e=e.toLowerCase(),o=o||!1,s=s||!1;let a="";return t.some(i=>{let n=i.toLowerCase().replace(/\t/g,"");if(o&&(n=n.trim()),n.startsWith(e)&&(!s||n.match(e+r)||n.match(e+" "+r))){let c=o?i.trim().split(r):i.split(r);if(c.length>=2)return c.shift(),a=c.join(r).trim(),!0}}),a}function y1o(t,e){return e=e||16,t.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],e))})}function A1o(t){let e="",r=0;return t.split("").forEach(o=>{o>="0"&&o<="9"?r===1&&r++:(r===0&&r++,r===1&&(e+=o))}),e}function v1o(t,e){e=e||"",t=t.toUpperCase();let r=0,o=0,s=A1o(t),a=t.split(s);if(a.length>=2){a[2]&&(a[1]+=a[2]);let i=a[1]&&a[1].toLowerCase().indexOf("pm")>-1||a[1].toLowerCase().indexOf("p.m.")>-1||a[1].toLowerCase().indexOf("p. m.")>-1||a[1].toLowerCase().indexOf("n")>-1||a[1].toLowerCase().indexOf("ch")>-1||a[1].toLowerCase().indexOf("\xF6s")>-1||e&&a[1].toLowerCase().indexOf(e)>-1;return r=parseInt(a[0],10),o=parseInt(a[1],10),r=i&&r<12?r+12:r,("0"+r).substr(-2)+":"+("0"+o).substr(-2)}}function b1o(t,e){let r={date:"",time:""};e=e||{};let o=(e.dateFormat||"").toLowerCase(),s=e.pmDesignator||"",a=t.split(" ");if(a[0]){if(a[0].indexOf("/")>=0){let i=a[0].split("/");i.length===3&&(i[0].length===4?r.date=i[0]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[2]).substr(-2):i[2].length===2?(o.indexOf("/d/")>-1||o.indexOf("/dd/")>-1,r.date="20"+i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2)):(t.toLowerCase().indexOf("pm")>-1||t.toLowerCase().indexOf("p.m.")>-1||t.toLowerCase().indexOf("p. m.")>-1||t.toLowerCase().indexOf("am")>-1||t.toLowerCase().indexOf("a.m.")>-1||t.toLowerCase().indexOf("a. m.")>-1||o.indexOf("/d/")>-1||o.indexOf("/dd/")>-1)&&o.indexOf("dd/")!==0?r.date=i[2]+"-"+("0"+i[0]).substr(-2)+"-"+("0"+i[1]).substr(-2):r.date=i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2))}if(a[0].indexOf(".")>=0){let i=a[0].split(".");i.length===3&&(o.indexOf(".d.")>-1||o.indexOf(".dd.")>-1?r.date=i[2]+"-"+("0"+i[0]).substr(-2)+"-"+("0"+i[1]).substr(-2):r.date=i[2]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[0]).substr(-2))}if(a[0].indexOf("-")>=0){let i=a[0].split("-");i.length===3&&(r.date=i[0]+"-"+("0"+i[1]).substr(-2)+"-"+("0"+i[2]).substr(-2))}}if(a[1]){a.shift();let i=a.join(" ");r.time=v1o(i,s)}return r}function E1o(t,e){let r=e>0,o=1,s=0,a=0,i=[];for(let c=0;c<t.length;c++)o<=e?(/\s/.test(t[c])&&!r&&(a=c-1,i.push({from:s,to:a+1,cap:t.substring(s,a+1)}),s=a+2,o++),r=t[c]===" "):(!/\s/.test(t[c])&&r&&(a=c-1,s<a&&i.push({from:s,to:a,cap:t.substring(s,a)}),s=a+1,o++),r=t[c]===" ");a=5e3,i.push({from:s,to:a,cap:t.substring(s,a)});let n=i.length;for(let c=0;c<n;c++)i[c].cap.replace(/\s/g,"").length===0&&c+1<n&&(i[c].to=i[c+1].to,i[c].cap=i[c].cap+i[c+1].cap,i.splice(c+1,1),n=n-1);return i}function S1o(t,e,r){for(let o=0;o<t.length;o++)if(t[o][e]===r)return o;return-1}function _1o(){if(V9e="powershell.exe",j9e){let t=`${lCt}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;q4.existsSync(t)&&(V9e=t)}}function aNr(){if(Iee.type()==="Windows_NT"&&!jH&&(jH=lCt+"\\system32\\wbem\\wmic.exe",!q4.existsSync(jH)))try{let t=Dee("WHERE WMIC",w0e).toString().split(`\r
397
397
  `);t&&t.length?jH=t[0]:jH="wmic"}catch{jH="wmic"}return jH}function x1o(t){return new Promise(e=>{process.nextTick(()=>{try{cNr(aNr()+" "+t).then(r=>{e(r,"")})}catch(r){e("",r)}})})}function C1o(){return j9e?`"${process.env.VBOX_INSTALL_PATH||process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"`:"vboxmanage"}function rCt(t){let e="",r,o="";if(t.indexOf(nCt)>=0){r=t.split(nCt);let a=r[1].split(iCt);e=a[0],a.length>1&&(t=a.slice(1).join(iCt))}t.indexOf(G9e)>=0&&(r=t.split(G9e),o=r[0]);let s=-1;for(let a=0;a<T0e.length;a++)T0e[a].id===e&&(s=a,T0e[a].callback(o));s>=0&&T0e.splice(s,1)}function T1o(){sg||(sg=aCt(V9e,["-NoProfile","-NoLogo","-InputFormat","Text","-NoExit","-Command","-"],{stdio:"pipe",windowsHide:!0,maxBuffer:1024*2e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})}),sg&&sg.pid&&(uCt=!0,sg.stdout.on("data",function(t){wee=wee+t.toString("utf8"),t.indexOf(G9e)>=0&&(rCt(wee),wee="")}),sg.stderr.on("data",function(){rCt(wee+KRr)}),sg.on("error",function(){rCt(wee+KRr)}),sg.on("close",function(){sg&&sg.kill()})))}function w1o(){try{sg&&(sg.stdin.write("exit"+Iee.EOL),sg.stdin.end(),uCt=!1)}catch{sg&&sg.kill()}sg=null}function cNr(t){if(uCt){let e=Math.random().toString(36).substring(2,12);return new Promise(r=>{process.nextTick(()=>{function o(s){r(s)}T0e.push({id:e,cmd:t,callback:o,start:new Date});try{sg&&sg.pid&&sg.stdin.write(u1o+"echo "+nCt+e+iCt+"; "+Iee.EOL+t+Iee.EOL+"echo "+G9e+Iee.EOL)}catch{r("")}})})}else{let e="";return new Promise(r=>{process.nextTick(()=>{try{let o=aCt(V9e,["-NoProfile","-NoLogo","-InputFormat","Text","-ExecutionPolicy","Unrestricted","-Command",t],{stdio:"pipe",windowsHide:!0,maxBuffer:2048e4,encoding:"UTF-8",env:Object.assign({},process.env,{LANG:"en_US.UTF-8"})});o&&!o.pid&&o.on("error",function(){r(e)}),o&&o.pid?(o.stdout.on("data",function(s){e=e+s.toString("utf8")}),o.stderr.on("data",function(){o.kill(),r(e)}),o.on("close",function(){o.kill(),r(e)}),o.on("error",function(){o.kill(),r(e)})):r(e)}catch{r(e)}})})}}function I1o(t,e,r){let o="";return r=r||{},new Promise(s=>{process.nextTick(()=>{try{let a=aCt(t,e,r);a&&!a.pid&&a.on("error",function(){s(o)}),a&&a.pid?(a.stdout.on("data",function(i){o+=i.toString()}),a.on("close",function(){a.kill(),s(o)}),a.on("error",function(){a.kill(),s(o)})):s(o)}catch{s(o)}})})}function D1o(){if(j9e){if(!F4)try{let r=Dee("chcp",w0e).toString().split(`\r
398
398
  `)[0].split(":");F4=r.length>1?r[1].replace(".","").trim():""}catch{F4="437"}return F4}if(cCt||JRr||XRr||ZRr||eNr){if(!F4)try{let r=Dee("echo $LANG",$9e).toString().split(`\r
399
399
  `)[0].split(".");F4=r.length>1?r[1].trim():"",F4||(F4="UTF-8")}catch{F4="UTF-8"}return F4}}function O1o(){if(Uk!==null)return Uk;if(Uk=!1,j9e)try{let t=Dee("WHERE smartctl 2>nul",w0e).toString().split(`\r
@@ -778,7 +778,7 @@ Bus `);for(let n=1;n<i.length;n++){let c=Q3o(i[n]);r.push(c)}}t&&t(r),e(r)}),P3o
778
778
  `);u3.getValue(n,"name",":")&&r.push(ivo(n))}),t&&t(r),e(r)}),Z3o&&e(null)})})}TPr.audio=ovo});var DPr=E((BLc,IPr)=>{"use strict";IPr.exports={0:"Ericsson Technology Licensing",1:"Nokia Mobile Phones",2:"Intel Corp.",3:"IBM Corp.",4:"Toshiba Corp.",5:"3Com",6:"Microsoft",7:"Lucent",8:"Motorola",9:"Infineon Technologies AG",10:"Cambridge Silicon Radio",11:"Silicon Wave",12:"Digianswer A/S",13:"Texas Instruments Inc.",14:"Ceva, Inc. (formerly Parthus Technologies, Inc.)",15:"Broadcom Corporation",16:"Mitel Semiconductor",17:"Widcomm, Inc",18:"Zeevo, Inc.",19:"Atmel Corporation",20:"Mitsubishi Electric Corporation",21:"RTX Telecom A/S",22:"KC Technology Inc.",23:"NewLogic",24:"Transilica, Inc.",25:"Rohde & Schwarz GmbH & Co. KG",26:"TTPCom Limited",27:"Signia Technologies, Inc.",28:"Conexant Systems Inc.",29:"Qualcomm",30:"Inventel",31:"AVM Berlin",32:"BandSpeed, Inc.",33:"Mansella Ltd",34:"NEC Corporation",35:"WavePlus Technology Co., Ltd.",36:"Alcatel",37:"NXP Semiconductors (formerly Philips Semiconductors)",38:"C Technologies",39:"Open Interface",40:"R F Micro Devices",41:"Hitachi Ltd",42:"Symbol Technologies, Inc.",43:"Tenovis",44:"Macronix International Co. Ltd.",45:"GCT Semiconductor",46:"Norwood Systems",47:"MewTel Technology Inc.",48:"ST Microelectronics",49:"Synopsis",50:"Red-M (Communications) Ltd",51:"Commil Ltd",52:"Computer Access Technology Corporation (CATC)",53:"Eclipse (HQ Espana) S.L.",54:"Renesas Electronics Corporation",55:"Mobilian Corporation",56:"Terax",57:"Integrated System Solution Corp.",58:"Matsushita Electric Industrial Co., Ltd.",59:"Gennum Corporation",60:"BlackBerry Limited (formerly Research In Motion)",61:"IPextreme, Inc.",62:"Systems and Chips, Inc.",63:"Bluetooth SIG, Inc.",64:"Seiko Epson Corporation",65:"Integrated Silicon Solution Taiwan, Inc.",66:"CONWISE Technology Corporation Ltd",67:"PARROT SA",68:"Socket Mobile",69:"Atheros Communications, Inc.",70:"MediaTek, Inc.",71:"Bluegiga",72:"Marvell Technology Group Ltd.",73:"3DSP Corporation",74:"Accel Semiconductor Ltd.",75:"Continental Automotive Systems",76:"Apple, Inc.",77:"Staccato Communications, Inc.",78:"Avago Technologies",79:"APT Licensing Ltd.",80:"SiRF Technology",81:"Tzero Technologies, Inc.",82:"J&M Corporation",83:"Free2move AB",84:"3DiJoy Corporation",85:"Plantronics, Inc.",86:"Sony Ericsson Mobile Communications",87:"Harman International Industries, Inc.",88:"Vizio, Inc.",89:"Nordic Semiconductor ASA",90:"EM Microelectronic-Marin SA",91:"Ralink Technology Corporation",92:"Belkin International, Inc.",93:"Realtek Semiconductor Corporation",94:"Stonestreet One, LLC",95:"Wicentric, Inc.",96:"RivieraWaves S.A.S",97:"RDA Microelectronics",98:"Gibson Guitars",99:"MiCommand Inc.",100:"Band XI International, LLC",101:"Hewlett-Packard Company",102:"9Solutions Oy",103:"GN Netcom A/S",104:"General Motors",105:"A&D Engineering, Inc.",106:"MindTree Ltd.",107:"Polar Electro OY",108:"Beautiful Enterprise Co., Ltd.",109:"BriarTek, Inc.",110:"Summit Data Communications, Inc.",111:"Sound ID",112:"Monster, LLC",113:"connectBlue AB",114:"ShangHai Super Smart Electronics Co. Ltd.",115:"Group Sense Ltd.",116:"Zomm, LLC",117:"Samsung Electronics Co. Ltd.",118:"Creative Technology Ltd.",119:"Laird Technologies",120:"Nike, Inc.",121:"lesswire AG",122:"MStar Semiconductor, Inc.",123:"Hanlynn Technologies",124:"A & R Cambridge",125:"Seers Technology Co. Ltd",126:"Sports Tracking Technologies Ltd.",127:"Autonet Mobile",128:"DeLorme Publishing Company, Inc.",129:"WuXi Vimicro",130:"Sennheiser Communications A/S",131:"TimeKeeping Systems, Inc.",132:"Ludus Helsinki Ltd.",133:"BlueRadios, Inc.",134:"equinox AG",135:"Garmin International, Inc.",136:"Ecotest",137:"GN ReSound A/S",138:"Jawbone",139:"Topcorn Positioning Systems, LLC",140:"Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)",141:"Zscan Software",142:"Quintic Corp.",143:"Stollman E+V GmbH",144:"Funai Electric Co., Ltd.",145:"Advanced PANMOBIL Systems GmbH & Co. KG",146:"ThinkOptics, Inc.",147:"Universal Electronics, Inc.",148:"Airoha Technology Corp.",149:"NEC Lighting, Ltd.",150:"ODM Technology, Inc.",151:"ConnecteDevice Ltd.",152:"zer01.tv GmbH",153:"i.Tech Dynamic Global Distribution Ltd.",154:"Alpwise",155:"Jiangsu Toppower Automotive Electronics Co., Ltd.",156:"Colorfy, Inc.",157:"Geoforce Inc.",158:"Bose Corporation",159:"Suunto Oy",160:"Kensington Computer Products Group",161:"SR-Medizinelektronik",162:"Vertu Corporation Limited",163:"Meta Watch Ltd.",164:"LINAK A/S",165:"OTL Dynamics LLC",166:"Panda Ocean Inc.",167:"Visteon Corporation",168:"ARP Devices Limited",169:"Magneti Marelli S.p.A",170:"CAEN RFID srl",171:"Ingenieur-Systemgruppe Zahn GmbH",172:"Green Throttle Games",173:"Peter Systemtechnik GmbH",174:"Omegawave Oy",175:"Cinetix",176:"Passif Semiconductor Corp",177:"Saris Cycling Group, Inc",178:"Bekey A/S",179:"Clarinox Technologies Pty. Ltd.",180:"BDE Technology Co., Ltd.",181:"Swirl Networks",182:"Meso international",183:"TreLab Ltd",184:"Qualcomm Innovation Center, Inc. (QuIC)",185:"Johnson Controls, Inc.",186:"Starkey Laboratories Inc.",187:"S-Power Electronics Limited",188:"Ace Sensor Inc",189:"Aplix Corporation",190:"AAMP of America",191:"Stalmart Technology Limited",192:"AMICCOM Electronics Corporation",193:"Shenzhen Excelsecu Data Technology Co.,Ltd",194:"Geneq Inc.",195:"adidas AG",196:"LG Electronics",197:"Onset Computer Corporation",198:"Selfly BV",199:"Quuppa Oy.",200:"GeLo Inc",201:"Evluma",202:"MC10",203:"Binauric SE",204:"Beats Electronics",205:"Microchip Technology Inc.",206:"Elgato Systems GmbH",207:"ARCHOS SA",208:"Dexcom, Inc.",209:"Polar Electro Europe B.V.",210:"Dialog Semiconductor B.V.",211:"Taixingbang\xA0Technology (HK) Co,. LTD.",212:"Kawantech",213:"Austco Communication Systems",214:"Timex Group USA, Inc.",215:"Qualcomm Technologies, Inc.",216:"Qualcomm Connected Experiences, Inc.",217:"Voyetra Turtle Beach",218:"txtr GmbH",219:"Biosentronics",220:"Procter & Gamble",221:"Hosiden Corporation",222:"Muzik LLC",223:"Misfit Wearables Corp",224:"Google",225:"Danlers Ltd",226:"Semilink Inc",227:"inMusic Brands, Inc",228:"L.S. Research Inc.",229:"Eden Software Consultants Ltd.",230:"Freshtemp",231:"KS Technologies",232:"ACTS Technologies",233:"Vtrack Systems",234:"Nielsen-Kellerman Company",235:"Server Technology, Inc.",236:"BioResearch Associates",237:"Jolly Logic, LLC",238:"Above Average Outcomes, Inc.",239:"Bitsplitters GmbH",240:"PayPal, Inc.",241:"Witron Technology Limited",242:"Aether Things\xA0Inc. (formerly Morse Project Inc.)",243:"Kent Displays Inc.",244:"Nautilus Inc.",245:"Smartifier Oy",246:"Elcometer Limited",247:"VSN Technologies Inc.",248:"AceUni Corp., Ltd.",249:"StickNFind",250:"Crystal Code AB",251:"KOUKAAM a.s.",252:"Delphi Corporation",253:"ValenceTech Limited",254:"Reserved",255:"Typo Products, LLC",256:"TomTom International BV",257:"Fugoo, Inc",258:"Keiser Corporation",259:"Bang & Olufsen A/S",260:"PLUS Locations Systems Pty Ltd",261:"Ubiquitous Computing Technology Corporation",262:"Innovative Yachtter Solutions",263:"William Demant Holding A/S",264:"Chicony Electronics Co., Ltd.",265:"Atus BV",266:"Codegate Ltd.",267:"ERi, Inc.",268:"Transducers Direct, LLC",269:"Fujitsu Ten Limited",270:"Audi AG",271:"HiSilicon Technologies Co., Ltd.",272:"Nippon Seiki Co., Ltd.",273:"Steelseries ApS",274:"vyzybl Inc.",275:"Openbrain Technologies, Co., Ltd.",276:"Xensr",277:"e.solutions",278:"1OAK Technologies",279:"Wimoto Technologies Inc",280:"Radius Networks, Inc.",281:"Wize Technology Co., Ltd.",282:"Qualcomm Labs, Inc.",283:"Aruba Networks",284:"Baidu",285:"Arendi AG",286:"Skoda Auto a.s.",287:"Volkswagon AG",288:"Porsche AG",289:"Sino Wealth Electronic Ltd.",290:"AirTurn, Inc.",291:"Kinsa, Inc.",292:"HID Global",293:"SEAT es",294:"Promethean Ltd.",295:"Salutica Allied Solutions",296:"GPSI Group Pty Ltd",297:"Nimble Devices Oy",298:"Changzhou Yongse Infotech Co., Ltd",299:"SportIQ",300:"TEMEC Instruments B.V.",301:"Sony Corporation",302:"ASSA ABLOY",303:"Clarion Co., Ltd.",304:"Warehouse Innovations",305:"Cypress Semiconductor Corporation",306:"MADS Inc",307:"Blue Maestro Limited",308:"Resolution Products, Inc.",309:"Airewear LLC",310:"Seed Labs, Inc. (formerly ETC sp. z.o.o.)",311:"Prestigio Plaza Ltd.",312:"NTEO Inc.",313:"Focus Systems Corporation",314:"Tencent Holdings Limited",315:"Allegion",316:"Murata Manufacuring Co., Ltd.",318:"Nod, Inc.",319:"B&B Manufacturing Company",320:"Alpine\xA0Electronics\xA0(China)\xA0Co.,\xA0Ltd",321:"FedEx Services",322:"Grape Systems Inc.",323:"Bkon Connect",324:"Lintech GmbH",325:"Novatel Wireless",326:"Ciright",327:"Mighty Cast, Inc.",328:"Ambimat Electronics",329:"Perytons Ltd.",330:"Tivoli Audio, LLC",331:"Master Lock",332:"Mesh-Net Ltd",333:"Huizhou Desay SV Automotive CO., LTD.",334:"Tangerine, Inc.",335:"B&W Group Ltd.",336:"Pioneer Corporation",337:"OnBeep",338:"Vernier Software & Technology",339:"ROL Ergo",340:"Pebble Technology",341:"NETATMO",342:"Accumulate AB",343:"Anhui Huami Information Technology Co., Ltd.",344:"Inmite s.r.o.",345:"ChefSteps, Inc.",346:"micas AG",347:"Biomedical Research Ltd.",348:"Pitius Tec S.L.",349:"Estimote, Inc.",350:"Unikey Technologies, Inc.",351:"Timer Cap Co.",352:"AwoX",353:"yikes",354:"MADSGlobal NZ Ltd.",355:"PCH International",356:"Qingdao Yeelink Information Technology Co., Ltd.",357:"Milwaukee Tool (formerly Milwaukee Electric Tools)",358:"MISHIK Pte Ltd",359:"Bayer HealthCare",360:"Spicebox LLC",361:"emberlight",362:"Cooper-Atkins Corporation",363:"Qblinks",364:"MYSPHERA",365:"LifeScan Inc",366:"Volantic AB",367:"Podo Labs, Inc",368:"Roche Diabetes Care AG",369:"Amazon Fulfillment Service",370:"Connovate Technology Private Limited",371:"Kocomojo, LLC",372:"Everykey LLC",373:"Dynamic Controls",374:"SentriLock",375:"I-SYST inc.",376:"CASIO COMPUTER CO., LTD.",377:"LAPIS Semiconductor Co., Ltd.",378:"Telemonitor, Inc.",379:"taskit GmbH",380:"Daimler AG",381:"BatAndCat",382:"BluDotz Ltd",383:"XTel ApS",384:"Gigaset Communications GmbH",385:"Gecko Health Innovations, Inc.",386:"HOP Ubiquitous",387:"To Be Assigned",388:"Nectar",389:"bel\u2019apps LLC",390:"CORE Lighting Ltd",391:"Seraphim Sense Ltd",392:"Unico RBC",393:"Physical Enterprises Inc.",394:"Able Trend Technology Limited",395:"Konica Minolta, Inc.",396:"Wilo SE",397:"Extron Design Services",398:"Fitbit, Inc.",399:"Fireflies Systems",400:"Intelletto Technologies Inc.",401:"FDK CORPORATION",402:"Cloudleaf, Inc",403:"Maveric Automation LLC",404:"Acoustic Stream Corporation",405:"Zuli",406:"Paxton Access Ltd",407:"WiSilica Inc",408:"Vengit Limited",409:"SALTO SYSTEMS S.L.",410:"TRON Forum (formerly T-Engine Forum)",411:"CUBETECH s.r.o.",412:"Cokiya Incorporated",413:"CVS Health",414:"Ceruus",415:"Strainstall Ltd",416:"Channel Enterprises (HK) Ltd.",417:"FIAMM",418:"GIGALANE.CO.,LTD",419:"EROAD",420:"Mine Safety Appliances",421:"Icon Health and Fitness",422:"Asandoo GmbH",423:"ENERGOUS CORPORATION",424:"Taobao",425:"Canon Inc.",426:"Geophysical Technology Inc.",427:"Facebook, Inc.",428:"Nipro Diagnostics, Inc.",429:"FlightSafety International",430:"Earlens Corporation",431:"Sunrise Micro Devices, Inc.",432:"Star Micronics Co., Ltd.",433:"Netizens Sp. z o.o.",434:"Nymi Inc.",435:"Nytec, Inc.",436:"Trineo Sp. z o.o.",437:"Nest Labs Inc.",438:"LM Technologies Ltd",439:"General Electric Company",440:"i+D3 S.L.",441:"HANA Micron",442:"Stages Cycling LLC",443:"Cochlear Bone Anchored Solutions AB",444:"SenionLab AB",445:"Syszone Co., Ltd",446:"Pulsate Mobile Ltd.",447:"Hong Kong HunterSun Electronic Limited",448:"pironex GmbH",449:"BRADATECH Corp.",450:"Transenergooil AG",451:"Bunch",452:"DME Microelectronics",453:"Bitcraze AB",454:"HASWARE Inc.",455:"Abiogenix Inc.",456:"Poly-Control ApS",457:"Avi-on",458:"Laerdal Medical AS",459:"Fetch My Pet",460:"Sam Labs Ltd.",461:"Chengdu Synwing Technology Ltd",462:"HOUWA SYSTEM DESIGN, k.k.",463:"BSH",464:"Primus Inter Pares Ltd",465:"August",466:"Gill Electronics",467:"Sky Wave Design",468:"Newlab S.r.l.",469:"ELAD srl",470:"G-wearables inc.",471:"Squadrone Systems Inc.",472:"Code Corporation",473:"Savant Systems LLC",474:"Logitech International SA",475:"Innblue Consulting",476:"iParking Ltd.",477:"Koninklijke Philips Electronics N.V.",478:"Minelab Electronics Pty Limited",479:"Bison Group Ltd.",480:"Widex A/S",481:"Jolla Ltd",482:"Lectronix, Inc.",483:"Caterpillar Inc",484:"Freedom Innovations",485:"Dynamic Devices Ltd",486:"Technology Solutions (UK) Ltd",487:"IPS Group Inc.",488:"STIR",489:"Sano, Inc",490:"Advanced Application Design, Inc.",491:"AutoMap LLC",492:"Spreadtrum Communications Shanghai Ltd",493:"CuteCircuit LTD",494:"Valeo Service",495:"Fullpower Technologies, Inc.",496:"KloudNation",497:"Zebra Technologies Corporation",498:"Itron, Inc.",499:"The University of Tokyo",500:"UTC Fire and Security",501:"Cool Webthings Limited",502:"DJO Global",503:"Gelliner Limited",504:"Anyka (Guangzhou) Microelectronics Technology Co, LTD",505:"Medtronic, Inc.",506:"Gozio, Inc.",507:"Form Lifting, LLC",508:"Wahoo Fitness, LLC",509:"Kontakt Micro-Location Sp. z o.o.",510:"Radio System Corporation",511:"Freescale Semiconductor, Inc.",512:"Verifone Systems PTe Ltd. Taiwan Branch",513:"AR Timing",514:"Rigado LLC",515:"Kemppi Oy",516:"Tapcentive Inc.",517:"Smartbotics Inc.",518:"Otter Products, LLC",519:"STEMP Inc.",520:"LumiGeek LLC",521:"InvisionHeart Inc.",522:"Macnica Inc. ",523:"Jaguar Land Rover Limited",524:"CoroWare Technologies, Inc",525:"Simplo Technology Co., LTD",526:"Omron Healthcare Co., LTD",527:"Comodule GMBH",528:"ikeGPS",529:"Telink Semiconductor Co. Ltd",530:"Interplan Co., Ltd",531:"Wyler AG",532:"IK Multimedia Production srl",533:"Lukoton Experience Oy",534:"MTI Ltd",535:"Tech4home, Lda",536:"Hiotech AB",537:"DOTT Limited",538:"Blue Speck Labs, LLC",539:"Cisco Systems, Inc",540:"Mobicomm Inc",541:"Edamic",542:"Goodnet, Ltd",543:"Luster Leaf Products Inc",544:"Manus Machina BV",545:"Mobiquity Networks Inc",546:"Praxis Dynamics",547:"Philip Morris Products S.A.",548:"Comarch SA",549:"Nestl Nespresso S.A.",550:"Merlinia A/S",551:"LifeBEAM Technologies",552:"Twocanoes Labs, LLC",553:"Muoverti Limited",554:"Stamer Musikanlagen GMBH",555:"Tesla Motors",556:"Pharynks Corporation",557:"Lupine",558:"Siemens AG",559:"Huami (Shanghai) Culture Communication CO., LTD",560:"Foster Electric Company, Ltd",561:"ETA SA",562:"x-Senso Solutions Kft",563:"Shenzhen SuLong Communication Ltd",564:"FengFan (BeiJing) Technology Co, Ltd",565:"Qrio Inc",566:"Pitpatpet Ltd",567:"MSHeli s.r.l.",568:"Trakm8 Ltd",569:"JIN CO, Ltd",570:"Alatech Tehnology",571:"Beijing CarePulse Electronic Technology Co, Ltd",572:"Awarepoint",573:"ViCentra B.V.",574:"Raven Industries",575:"WaveWare Technologies Inc.",576:"Argenox Technologies",577:"Bragi GmbH",578:"16Lab Inc",579:"Masimo Corp",580:"Iotera Inc",581:"Endress+Hauser",582:"ACKme Networks, Inc.",583:"FiftyThree Inc.",584:"Parker Hannifin Corp",585:"Transcranial Ltd",586:"Uwatec AG",587:"Orlan LLC",588:"Blue Clover Devices",589:"M-Way Solutions GmbH",590:"Microtronics Engineering GmbH",591:"Schneider Schreibgerte GmbH",592:"Sapphire Circuits LLC",593:"Lumo Bodytech Inc.",594:"UKC Technosolution",595:"Xicato Inc.",596:"Playbrush",597:"Dai Nippon Printing Co., Ltd.",598:"G24 Power Limited",599:"AdBabble Local Commerce Inc.",600:"Devialet SA",601:"ALTYOR",602:"University of Applied Sciences Valais/Haute Ecole Valaisanne",603:"Five Interactive, LLC dba Zendo",604:"NetEaseHangzhouNetwork co.Ltd.",605:"Lexmark International Inc.",606:"Fluke Corporation",607:"Yardarm Technologies",608:"SensaRx",609:"SECVRE GmbH",610:"Glacial Ridge Technologies",611:"Identiv, Inc.",612:"DDS, Inc.",613:"SMK Corporation",614:"Schawbel Technologies LLC",615:"XMI Systems SA",616:"Cerevo",617:"Torrox GmbH & Co KG",618:"Gemalto",619:"DEKA Research & Development Corp.",620:"Domster Tadeusz Szydlowski",621:"Technogym SPA",622:"FLEURBAEY BVBA",623:"Aptcode Solutions",624:"LSI ADL Technology",625:"Animas Corp",626:"Alps Electric Co., Ltd.",627:"OCEASOFT",628:"Motsai Research",629:"Geotab",630:"E.G.O. Elektro-Gertebau GmbH",631:"bewhere inc",632:"Johnson Outdoors Inc",633:"steute Schaltgerate GmbH & Co. KG",634:"Ekomini inc.",635:"DEFA AS",636:"Aseptika Ltd",637:"HUAWEI Technologies Co., Ltd. ( )",638:"HabitAware, LLC",639:"ruwido austria gmbh",640:"ITEC corporation",641:"StoneL",642:"Sonova AG",643:"Maven Machines, Inc.",644:"Synapse Electronics",645:"Standard Innovation Inc.",646:"RF Code, Inc.",647:"Wally Ventures S.L.",648:"Willowbank Electronics Ltd",649:"SK Telecom",650:"Jetro AS",651:"Code Gears LTD",652:"NANOLINK APS",653:"IF, LLC",654:"RF Digital Corp",655:"Church & Dwight Co., Inc",656:"Multibit Oy",657:"CliniCloud Inc",658:"SwiftSensors",659:"Blue Bite",660:"ELIAS GmbH",661:"Sivantos GmbH",662:"Petzl",663:"storm power ltd",664:"EISST Ltd",665:"Inexess Technology Simma KG",666:"Currant, Inc.",667:"C2 Development, Inc.",668:"Blue Sky Scientific, LLC",669:"ALOTTAZS LABS, LLC",670:"Kupson spol. s r.o.",671:"Areus Engineering GmbH",672:"Impossible Camera GmbH",673:"InventureTrack Systems",674:"LockedUp",675:"Itude",676:"Pacific Lock Company",677:"Tendyron Corporation ( )",678:"Robert Bosch GmbH",679:"Illuxtron international B.V.",680:"miSport Ltd.",681:"Chargelib",682:"Doppler Lab",683:"BBPOS Limited",684:"RTB Elektronik GmbH & Co. KG",685:"Rx Networks, Inc.",686:"WeatherFlow, Inc.",687:"Technicolor USA Inc.",688:"Bestechnic(Shanghai),Ltd",689:"Raden Inc",690:"JouZen Oy",691:"CLABER S.P.A.",692:"Hyginex, Inc.",693:"HANSHIN ELECTRIC RAILWAY CO.,LTD.",694:"Schneider Electric",695:"Oort Technologies LLC",696:"Chrono Therapeutics",697:"Rinnai Corporation",698:"Swissprime Technologies AG",699:"Koha.,Co.Ltd",700:"Genevac Ltd",701:"Chemtronics",702:"Seguro Technology Sp. z o.o.",703:"Redbird Flight Simulations",704:"Dash Robotics",705:"LINE Corporation",706:"Guillemot Corporation",707:"Techtronic Power Tools Technology Limited",708:"Wilson Sporting Goods",709:"Lenovo (Singapore) Pte Ltd. ( )",710:"Ayatan Sensors",711:"Electronics Tomorrow Limited",712:"VASCO Data Security International, Inc.",713:"PayRange Inc.",714:"ABOV Semiconductor",715:"AINA-Wireless Inc.",716:"Eijkelkamp Soil & Water",717:"BMA ergonomics b.v.",718:"Teva Branded Pharmaceutical Products R&D, Inc.",719:"Anima",720:"3M",721:"Empatica Srl",722:"Afero, Inc.",723:"Powercast Corporation",724:"Secuyou ApS",725:"OMRON Corporation",726:"Send Solutions",727:"NIPPON SYSTEMWARE CO.,LTD.",728:"Neosfar",729:"Fliegl Agrartechnik GmbH",730:"Gilvader",731:"Digi International Inc (R)",732:"DeWalch Technologies, Inc.",733:"Flint Rehabilitation Devices, LLC",734:"Samsung SDS Co., Ltd.",735:"Blur Product Development",736:"University of Michigan",737:"Victron Energy BV",738:"NTT docomo",739:"Carmanah Technologies Corp.",740:"Bytestorm Ltd.",741:"Espressif Incorporated ( () )",742:"Unwire",743:"Connected Yard, Inc.",744:"American Music Environments",745:"Sensogram Technologies, Inc.",746:"Fujitsu Limited",747:"Ardic Technology",748:"Delta Systems, Inc",749:"HTC Corporation",750:"Citizen Holdings Co., Ltd.",751:"SMART-INNOVATION.inc",752:"Blackrat Software",753:"The Idea Cave, LLC",754:"GoPro, Inc.",755:"AuthAir, Inc",756:"Vensi, Inc.",757:"Indagem Tech LLC",758:"Intemo Technologies",759:"DreamVisions co., Ltd.",760:"Runteq Oy Ltd",761:"IMAGINATION TECHNOLOGIES LTD",762:"CoSTAR TEchnologies",763:"Clarius Mobile Health Corp.",764:"Shanghai Frequen Microelectronics Co., Ltd.",765:"Uwanna, Inc.",766:"Lierda Science & Technology Group Co., Ltd.",767:"Silicon Laboratories",768:"World Moto Inc.",769:"Giatec Scientific Inc.",770:"Loop Devices, Inc",771:"IACA electronique",772:"Martians Inc",773:"Swipp ApS",774:"Life Laboratory Inc.",775:"FUJI INDUSTRIAL CO.,LTD.",776:"Surefire, LLC",777:"Dolby Labs",778:"Ellisys",779:"Magnitude Lighting Converters",780:"Hilti AG",781:"Devdata S.r.l.",782:"Deviceworx",783:"Shortcut Labs",784:"SGL Italia S.r.l.",785:"PEEQ DATA",786:"Ducere Technologies Pvt Ltd",787:"DiveNav, Inc.",788:"RIIG AI Sp. z o.o.",789:"Thermo Fisher Scientific",790:"AG Measurematics Pvt. Ltd.",791:"CHUO Electronics CO., LTD.",792:"Aspenta International",793:"Eugster Frismag AG",794:"Amber wireless GmbH",795:"HQ Inc",796:"Lab Sensor Solutions",797:"Enterlab ApS",798:"Eyefi, Inc.",799:"MetaSystem S.p.A.",800:"SONO ELECTRONICS. CO., LTD",801:"Jewelbots",802:"Compumedics Limited",803:"Rotor Bike Components",804:"Astro, Inc.",805:"Amotus Solutions",806:"Healthwear Technologies (Changzhou)Ltd",807:"Essex Electronics",808:"Grundfos A/S",809:"Eargo, Inc.",810:"Electronic Design Lab",811:"ESYLUX",812:"NIPPON SMT.CO.,Ltd",813:"BM innovations GmbH",814:"indoormap",815:"OttoQ Inc",816:"North Pole Engineering",817:"3flares Technologies Inc.",818:"Electrocompaniet A.S.",819:"Mul-T-Lock",820:"Corentium AS",821:"Enlighted Inc",822:"GISTIC",823:"AJP2 Holdings, LLC",824:"COBI GmbH",825:"Blue Sky Scientific, LLC",826:"Appception, Inc.",827:"Courtney Thorne Limited",828:"Virtuosys",829:"TPV Technology Limited",830:"Monitra SA",831:"Automation Components, Inc.",832:"Letsense s.r.l.",833:"Etesian Technologies LLC",834:"GERTEC BRASIL LTDA.",835:"Drekker Development Pty. Ltd.",836:"Whirl Inc",837:"Locus Positioning",838:"Acuity Brands Lighting, Inc",839:"Prevent Biometrics",840:"Arioneo",841:"VersaMe",842:"Vaddio",843:"Libratone A/S",844:"HM Electronics, Inc.",845:"TASER International, Inc.",846:"SafeTrust Inc.",847:"Heartland Payment Systems",848:"Bitstrata Systems Inc.",849:"Pieps GmbH",850:"iRiding(Xiamen)Technology Co.,Ltd.",851:"Alpha Audiotronics, Inc.",852:"TOPPAN FORMS CO.,LTD.",853:"Sigma Designs, Inc.",854:"Spectrum Brands, Inc.",855:"Polymap Wireless",856:"MagniWare Ltd.",857:"Novotec Medical GmbH",858:"Medicom Innovation Partner a/s",859:"Matrix Inc.",860:"Eaton Corporation",861:"KYS",862:"Naya Health, Inc.",863:"Acromag",864:"Insulet Corporation",865:"Wellinks Inc.",866:"ON Semiconductor",867:"FREELAP SA",868:"Favero Electronics Srl",869:"BioMech Sensor LLC",870:"BOLTT Sports technologies Private limited",871:"Saphe International",872:"Metormote AB",873:"littleBits",874:"SetPoint Medical",875:"BRControls Products BV",876:"Zipcar",877:"AirBolt Pty Ltd",878:"KeepTruckin Inc",879:"Motiv, Inc.",880:"Wazombi Labs O",881:"ORBCOMM",882:"Nixie Labs, Inc.",883:"AppNearMe Ltd",884:"Holman Industries",885:"Expain AS",886:"Electronic Temperature Instruments Ltd",887:"Plejd AB",888:"Propeller Health",889:"Shenzhen iMCO Electronic Technology Co.,Ltd",890:"Algoria",891:"Apption Labs Inc.",892:"Cronologics Corporation",893:"MICRODIA Ltd.",894:"lulabytes S.L.",895:"Nestec S.A.",896:"LLC MEGA - F service",897:"Sharp Corporation",898:"Precision Outcomes Ltd",899:"Kronos Incorporated",900:"OCOSMOS Co., Ltd.",901:"Embedded Electronic Solutions Ltd. dba e2Solutions",902:"Aterica Inc.",903:"BluStor PMC, Inc.",904:"Kapsch TrafficCom AB",905:"ActiveBlu Corporation",906:"Kohler Mira Limited",907:"Noke",908:"Appion Inc.",909:"Resmed Ltd",910:"Crownstone B.V.",911:"Xiaomi Inc.",912:"INFOTECH s.r.o.",913:"Thingsquare AB",914:"T&D",915:"LAVAZZA S.p.A.",916:"Netclearance Systems, Inc.",917:"SDATAWAY",918:"BLOKS GmbH",919:"LEGO System A/S",920:"Thetatronics Ltd",921:"Nikon Corporation",922:"NeST",923:"South Silicon Valley Microelectronics",924:"ALE International",925:"CareView Communications, Inc.",926:"SchoolBoard Limited",927:"Molex Corporation",928:"IVT Wireless Limited",929:"Alpine Labs LLC",930:"Candura Instruments",931:"SmartMovt Technology Co., Ltd",932:"Token Zero Ltd",933:"ACE CAD Enterprise Co., Ltd. (ACECAD)",934:"Medela, Inc",935:"AeroScout",936:"Esrille Inc.",937:"THINKERLY SRL",938:"Exon Sp. z o.o.",939:"Meizu Technology Co., Ltd.",940:"Smablo LTD",941:"XiQ",942:"Allswell Inc.",943:"Comm-N-Sense Corp DBA Verigo",944:"VIBRADORM GmbH",945:"Otodata Wireless Network Inc.",946:"Propagation Systems Limited",947:"Midwest Instruments & Controls",948:"Alpha Nodus, inc.",949:"petPOMM, Inc",950:"Mattel",951:"Airbly Inc.",952:"A-Safe Limited",953:"FREDERIQUE CONSTANT SA",954:"Maxscend Microelectronics Company Limited",955:"Abbott Diabetes Care",956:"ASB Bank Ltd",957:"amadas",958:"Applied Science, Inc.",959:"iLumi Solutions Inc.",960:"Arch Systems Inc.",961:"Ember Technologies, Inc.",962:"Snapchat Inc",963:"Casambi Technologies Oy",964:"Pico Technology Inc.",965:"St. Jude Medical, Inc.",966:"Intricon",967:"Structural Health Systems, Inc.",968:"Avvel International",969:"Gallagher Group",970:"In2things Automation Pvt. Ltd.",971:"SYSDEV Srl",972:"Vonkil Technologies Ltd",973:"Wynd Technologies, Inc.",974:"CONTRINEX S.A.",975:"MIRA, Inc.",976:"Watteam Ltd",977:"Density Inc.",978:"IOT Pot India Private Limited",979:"Sigma Connectivity AB",980:"PEG PEREGO SPA",981:"Wyzelink Systems Inc.",982:"Yota Devices LTD",983:"FINSECUR",984:"Zen-Me Labs Ltd",985:"3IWare Co., Ltd.",986:"EnOcean GmbH",987:"Instabeat, Inc",988:"Nima Labs",989:"Andreas Stihl AG & Co. KG",990:"Nathan Rhoades LLC",991:"Grob Technologies, LLC",992:"Actions (Zhuhai) Technology Co., Limited",993:"SPD Development Company Ltd",994:"Sensoan Oy",995:"Qualcomm Life Inc",996:"Chip-ing AG",997:"ffly4u",998:"IoT Instruments Oy",999:"TRUE Fitness Technology",1e3:"Reiner Kartengeraete GmbH & Co. KG.",1001:"SHENZHEN LEMONJOY TECHNOLOGY CO., LTD.",1002:"Hello Inc.",1003:"Evollve Inc.",1004:"Jigowatts Inc.",1005:"BASIC MICRO.COM,INC.",1006:"CUBE TECHNOLOGIES",1007:"foolography GmbH",1008:"CLINK",1009:"Hestan Smart Cooking Inc.",1010:"WindowMaster A/S",1011:"Flowscape AB",1012:"PAL Technologies Ltd",1013:"WHERE, Inc.",1014:"Iton Technology Corp.",1015:"Owl Labs Inc.",1016:"Rockford Corp.",1017:"Becon Technologies Co.,Ltd.",1018:"Vyassoft Technologies Inc",1019:"Nox Medical",1020:"Kimberly-Clark",1021:"Trimble Navigation Ltd.",1022:"Littelfuse",1023:"Withings",1024:"i-developer IT Beratung UG",1026:"Sears Holdings Corporation",1027:"Gantner Electronic GmbH",1028:"Authomate Inc",1029:"Vertex International, Inc.",1030:"Airtago",1031:"Swiss Audio SA",1032:"ToGetHome Inc.",1033:"AXIS",1034:"Openmatics",1035:"Jana Care Inc.",1036:"Senix Corporation",1037:"NorthStar Battery Company, LLC",1038:"SKF (U.K.) Limited",1039:"CO-AX Technology, Inc.",1040:"Fender Musical Instruments",1041:"Luidia Inc",1042:"SEFAM",1043:"Wireless Cables Inc",1044:"Lightning Protection International Pty Ltd",1045:"Uber Technologies Inc",1046:"SODA GmbH",1047:"Fatigue Science",1048:"Alpine Electronics Inc.",1049:"Novalogy LTD",1050:"Friday Labs Limited",1051:"OrthoAccel Technologies",1052:"WaterGuru, Inc.",1053:"Benning Elektrotechnik und Elektronik GmbH & Co. KG",1054:"Dell Computer Corporation",1055:"Kopin Corporation",1056:"TecBakery GmbH",1057:"Backbone Labs, Inc.",1058:"DELSEY SA",1059:"Chargifi Limited",1060:"Trainesense Ltd.",1061:"Unify Software and Solutions GmbH & Co. KG",1062:"Husqvarna AB",1063:"Focus fleet and fuel management inc",1064:"SmallLoop, LLC",1065:"Prolon Inc.",1066:"BD Medical",1067:"iMicroMed Incorporated",1068:"Ticto N.V.",1069:"Meshtech AS",1070:"MemCachier Inc.",1071:"Danfoss A/S",1072:"SnapStyk Inc.",1073:"Amyway Corporation",1074:"Silk Labs, Inc.",1075:"Pillsy Inc.",1076:"Hatch Baby, Inc.",1077:"Blocks Wearables Ltd.",1078:"Drayson Technologies (Europe) Limited",1079:"eBest IOT Inc.",1080:"Helvar Ltd",1081:"Radiance Technologies",1082:"Nuheara Limited",1083:"Appside co., ltd.",1084:"DeLaval",1085:"Coiler Corporation",1086:"Thermomedics, Inc.",1087:"Tentacle Sync GmbH",1088:"Valencell, Inc.",1089:"iProtoXi Oy",1090:"SECOM CO., LTD.",1091:"Tucker International LLC",1092:"Metanate Limited",1093:"Kobian Canada Inc.",1094:"NETGEAR, Inc.",1095:"Fabtronics Australia Pty Ltd",1096:"Grand Centrix GmbH",1097:"1UP USA.com llc",1098:"SHIMANO INC.",1099:"Nain Inc.",1100:"LifeStyle Lock, LLC",1101:"VEGA Grieshaber KG",1102:"Xtrava Inc.",1103:"TTS Tooltechnic Systems AG & Co. KG",1104:"Teenage Engineering AB",1105:"Tunstall Nordic AB",1106:"Svep Design Center AB",1107:"GreenPeak Technologies BV",1108:"Sphinx Electronics GmbH & Co KG",1109:"Atomation",1110:"Nemik Consulting Inc",1111:"RF INNOVATION",1112:"Mini Solution Co., Ltd.",1113:"Lumenetix, Inc",1114:"2048450 Ontario Inc",1115:"SPACEEK LTD",1116:"Delta T Corporation",1117:"Boston Scientific Corporation",1118:"Nuviz, Inc.",1119:"Real Time Automation, Inc.",1120:"Kolibree",1121:"vhf elektronik GmbH",1122:"Bonsai Systems GmbH",1123:"Fathom Systems Inc.",1124:"Bellman & Symfon",1125:"International Forte Group LLC",1126:"CycleLabs Solutions inc.",1127:"Codenex Oy",1128:"Kynesim Ltd",1129:"Palago AB",1130:"INSIGMA INC.",1131:"PMD Solutions",1132:"Qingdao Realtime Technology Co., Ltd.",1133:"BEGA Gantenbrink-Leuchten KG",1134:"Pambor Ltd.",65535:"SPECIAL USE/DEFAULT"}});var RPr=E(OPr=>{"use strict";var svo=me("child_process").exec,avo=me("child_process").execSync,cvo=me("path"),Z7=vm(),lvo=DPr(),uvo=me("fs"),uB=process.platform,fvo=uB==="linux"||uB==="android",dvo=uB==="darwin",pvo=uB==="win32",hvo=uB==="freebsd",mvo=uB==="openbsd",gvo=uB==="netbsd",yvo=uB==="sunos";function jCt(t){let e="";return t.indexOf("keyboard")>=0&&(e="Keyboard"),t.indexOf("mouse")>=0&&(e="Mouse"),t.indexOf("trackpad")>=0&&(e="Trackpad"),t.indexOf("speaker")>=0&&(e="Speaker"),t.indexOf("headset")>=0&&(e="Headset"),t.indexOf("phone")>=0&&(e="Phone"),t.indexOf("macbook")>=0&&(e="Computer"),t.indexOf("imac")>=0&&(e="Computer"),t.indexOf("ipad")>=0&&(e="Tablet"),t.indexOf("watch")>=0&&(e="Watch"),t.indexOf("headphone")>=0&&(e="Headset"),e}function Avo(t){let e=t.split(" ")[0];return t=t.toLowerCase(),t.indexOf("apple")>=0&&(e="Apple"),t.indexOf("ipad")>=0&&(e="Apple"),t.indexOf("imac")>=0&&(e="Apple"),t.indexOf("iphone")>=0&&(e="Apple"),t.indexOf("magic mouse")>=0&&(e="Apple"),t.indexOf("magic track")>=0&&(e="Apple"),t.indexOf("macbook")>=0&&(e="Apple"),e}function vvo(t){let e=parseInt(t);if(!isNaN(e))return lvo[e]}function bvo(t,e,r){let o={};return o.device=null,o.name=Z7.getValue(t,"name","="),o.manufacturer=null,o.macDevice=e,o.macHost=r,o.batteryPercent=null,o.type=jCt(o.name.toLowerCase()),o.connected=!1,o}function GCt(t,e){let r={},o=((t.device_minorClassOfDevice_string||t.device_majorClassOfDevice_string||t.device_minorType||"")+(t.device_name||"")).toLowerCase();return r.device=t.device_services||"",r.name=t.device_name||"",r.manufacturer=t.device_manufacturer||vvo(t.device_vendorID)||Avo(t.device_name||"")||"",r.macDevice=(t.device_addr||t.device_address||"").toLowerCase().replace(/-/g,":"),r.macHost=e,r.batteryPercent=t.device_batteryPercent||null,r.type=jCt(o),r.connected=t.device_isconnected==="attrib_Yes"||!1,r}function Evo(t){let e={};return e.device=null,e.name=Z7.getValue(t,"name",":"),e.manufacturer=Z7.getValue(t,"manufacturer",":"),e.macDevice=null,e.macHost=null,e.batteryPercent=null,e.type=jCt(e.name.toLowerCase()),e.connected=null,e}function Svo(t){return new Promise(e=>{process.nextTick(()=>{let r=[];if(fvo){Z7.getFilesInPath("/var/lib/bluetooth/").forEach(s=>{let a=cvo.basename(s),i=s.split("/"),n=i.length>=6?i[i.length-2]:null,c=i.length>=7?i[i.length-3]:null;if(a==="info"){let u=uvo.readFileSync(s,{encoding:"utf8"}).split(`
779
779
  `);r.push(bvo(u,n,c))}});try{let s=avo("hcitool con",Z7.execOptsLinux).toString().toLowerCase();for(let a=0;a<r.length;a++)r[a].macDevice&&r[a].macDevice.length>10&&s.indexOf(r[a].macDevice.toLowerCase())>=0&&(r[a].connected=!0)}catch{Z7.noop()}t&&t(r),e(r)}dvo&&svo("system_profiler SPBluetoothDataType -json",function(s,a){if(!s)try{let i=JSON.parse(a.toString());if(i.SPBluetoothDataType&&i.SPBluetoothDataType.length&&i.SPBluetoothDataType[0]&&i.SPBluetoothDataType[0].device_title&&i.SPBluetoothDataType[0].device_title.length){let n=null;i.SPBluetoothDataType[0].local_device_title&&i.SPBluetoothDataType[0].local_device_title.general_address&&(n=i.SPBluetoothDataType[0].local_device_title.general_address.toLowerCase().replace(/-/g,":")),i.SPBluetoothDataType[0].device_title.forEach(c=>{let u=c,f=Object.keys(u);if(f&&f.length===1){let d=u[f[0]];d.device_name=f[0];let p=GCt(d,n);r.push(p)}})}if(i.SPBluetoothDataType&&i.SPBluetoothDataType.length&&i.SPBluetoothDataType[0]&&i.SPBluetoothDataType[0].device_connected&&i.SPBluetoothDataType[0].device_connected.length){let n=i.SPBluetoothDataType[0].controller_properties&&i.SPBluetoothDataType[0].controller_properties.controller_address?i.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;i.SPBluetoothDataType[0].device_connected.forEach(c=>{let u=c,f=Object.keys(u);if(f&&f.length===1){let d=u[f[0]];d.device_name=f[0],d.device_isconnected="attrib_Yes";let p=GCt(d,n);r.push(p)}})}if(i.SPBluetoothDataType&&i.SPBluetoothDataType.length&&i.SPBluetoothDataType[0]&&i.SPBluetoothDataType[0].device_not_connected&&i.SPBluetoothDataType[0].device_not_connected.length){let n=i.SPBluetoothDataType[0].controller_properties&&i.SPBluetoothDataType[0].controller_properties.controller_address?i.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,":"):null;i.SPBluetoothDataType[0].device_not_connected.forEach(c=>{let u=c,f=Object.keys(u);if(f&&f.length===1){let d=u[f[0]];d.device_name=f[0],d.device_isconnected="attrib_No";let p=GCt(d,n);r.push(p)}})}}catch{Z7.noop()}t&&t(r),e(r)}),pvo&&Z7.powerShell("Get-CimInstance Win32_PNPEntity | select PNPClass, Name, Manufacturer | fl").then((o,s)=>{s||o.toString().split(/\n\s*\n/).forEach(i=>{Z7.getValue(i.split(`
780
780
  `),"PNPClass",":")==="Bluetooth"&&r.push(Evo(i.split(`
781
- `)))}),t&&t(r),e(r)}),(hvo||gvo||mvo||yvo)&&e(null)})})}OPr.bluetoothDevices=Svo});var VPr=E(Qi=>{"use strict";var _vo=zRr().version,dB=vm(),fB=dNr(),eO=hCt(),z_=ANr(),S7e=wNr(),NPr=ONr(),PPr=BNr(),V5=QNr(),tO=zNr(),_7e=ZNr(),W0e=rPr(),kPr=oPr(),$Ct=fPr(),eV=mPr(),xvo=yPr(),BPr=EPr(),MPr=xPr(),LPr=wPr(),UPr=RPr(),z0e=process.platform,E7e=z0e==="win32",G0e=z0e==="freebsd",j0e=z0e==="openbsd",$0e=z0e==="netbsd",H5=z0e==="sunos";E7e&&(dB.getCodepage(),dB.getPowershell());function FPr(){return _vo}function QPr(t){return new Promise(e=>{process.nextTick(()=>{let r={};r.version=FPr(),Promise.all([fB.system(),fB.bios(),fB.baseboard(),fB.chassis(),eO.osInfo(),eO.uuid(),eO.versions(),z_.cpu(),z_.cpuFlags(),PPr.graphics(),tO.networkInterfaces(),S7e.memLayout(),V5.diskLayout(),LPr.audio(),UPr.bluetoothDevices(),MPr.usb(),BPr.printer()]).then(o=>{r.system=o[0],r.bios=o[1],r.baseboard=o[2],r.chassis=o[3],r.os=o[4],r.uuid=o[5],r.versions=o[6],r.cpu=o[7],r.cpu.flags=o[8],r.graphics=o[9],r.net=o[10],r.memLayout=o[11],r.diskLayout=o[12],r.audio=o[13],r.bluetooth=o[14],r.usb=o[15],r.printer=o[16],t&&t(r),e(r)})})})}function qPr(t,e,r){return dB.isFunction(e)&&(r=e,e=""),dB.isFunction(t)&&(r=t,t=""),new Promise(o=>{process.nextTick(()=>{e=e||tO.getDefaultNetworkInterface(),t=t||"";let s=(function(){let i=15;return E7e&&(i=13),(G0e||j0e||$0e)&&(i=11),H5&&(i=6),function(){--i===0&&(r&&r(a),o(a))}})(),a={};a.time=eO.time(),a.node=process.versions.node,a.v8=process.versions.v8,z_.cpuCurrentSpeed().then(i=>{a.cpuCurrentSpeed=i,s()}),kPr.users().then(i=>{a.users=i,s()}),W0e.processes().then(i=>{a.processes=i,s()}),z_.currentLoad().then(i=>{a.currentLoad=i,s()}),H5||z_.cpuTemperature().then(i=>{a.temp=i,s()}),!j0e&&!G0e&&!$0e&&!H5&&tO.networkStats(e).then(i=>{a.networkStats=i,s()}),H5||tO.networkConnections().then(i=>{a.networkConnections=i,s()}),S7e.mem().then(i=>{a.mem=i,s()}),H5||NPr().then(i=>{a.battery=i,s()}),H5||W0e.services(t).then(i=>{a.services=i,s()}),H5||V5.fsSize().then(i=>{a.fsSize=i,s()}),!E7e&&!j0e&&!G0e&&!$0e&&!H5&&V5.fsStats().then(i=>{a.fsStats=i,s()}),!E7e&&!j0e&&!G0e&&!$0e&&!H5&&V5.disksIO().then(i=>{a.disksIO=i,s()}),!j0e&&!G0e&&!$0e&&!H5&&_7e.wifiNetworks().then(i=>{a.wifiNetworks=i,s()}),$Ct.inetLatency().then(i=>{a.inetLatency=i,s()})})})}function Cvo(t,e,r){return new Promise(o=>{process.nextTick(()=>{let s={};e&&dB.isFunction(e)&&!r&&(r=e,e=""),t&&dB.isFunction(t)&&!e&&!r&&(r=t,t="",e=""),QPr().then(a=>{s=a,qPr(t,e).then(i=>{for(let n in i)({}).hasOwnProperty.call(i,n)&&(s[n]=i[n]);r&&r(s),o(s)})})})})}function HPr(t,e){return new Promise(r=>{process.nextTick(()=>{let o=Object.keys(t).filter(s=>({}).hasOwnProperty.call(Qi,s)).map(s=>{let a=t[s].substring(t[s].lastIndexOf("(")+1,t[s].lastIndexOf(")")),i=s.indexOf(")")>=0?s.split(")")[1].trim():s;return i=s.indexOf("|")>=0?s.split("|")[0].trim():i,a?Qi[i](a):Qi[i]("")});Promise.all(o).then(s=>{let a={},i=0;for(let n in t)if({}.hasOwnProperty.call(t,n)&&{}.hasOwnProperty.call(Qi,n)&&s.length>i){if(t[n]==="*"||t[n]==="all")a[n]=s[i];else{let c=t[n],u="",f=[];if(c.indexOf(")")>=0&&(c=c.split(")")[1].trim()),c.indexOf("|")>=0&&(u=c.split("|")[1].trim(),f=u.split(":"),c=c.split("|")[0].trim()),c=c.replace(/,/g," ").replace(/ +/g," ").split(" "),s[i])if(Array.isArray(s[i])){let d=[];s[i].forEach(p=>{let h={};if(c.length===1&&(c[0]==="*"||c[0]==="all")?h=p:c.forEach(m=>{({}).hasOwnProperty.call(p,m)&&(h[m]=p[m])}),u&&f.length===2){if({}.hasOwnProperty.call(h,f[0].trim())){let m=h[f[0].trim()];typeof m=="number"?m===parseFloat(f[1].trim())&&d.push(h):typeof m=="string"&&m.toLowerCase()===f[1].trim().toLowerCase()&&d.push(h)}}else d.push(h)}),a[n]=d}else{let d={};c.forEach(p=>{({}).hasOwnProperty.call(s[i],p)&&(d[p]=s[i][p])}),a[n]=d}else a[n]={}}i++}e&&e(a),r(a)})})})}function Tvo(t,e,r){let o=null;return setInterval(()=>{HPr(t).then(a=>{JSON.stringify(o)!==JSON.stringify(a)&&(o=Object.assign({},a),r(a))})},e)}Qi.version=FPr;Qi.system=fB.system;Qi.bios=fB.bios;Qi.baseboard=fB.baseboard;Qi.chassis=fB.chassis;Qi.time=eO.time;Qi.osInfo=eO.osInfo;Qi.versions=eO.versions;Qi.shell=eO.shell;Qi.uuid=eO.uuid;Qi.cpu=z_.cpu;Qi.cpuFlags=z_.cpuFlags;Qi.cpuCache=z_.cpuCache;Qi.cpuCurrentSpeed=z_.cpuCurrentSpeed;Qi.cpuTemperature=z_.cpuTemperature;Qi.currentLoad=z_.currentLoad;Qi.fullLoad=z_.fullLoad;Qi.mem=S7e.mem;Qi.memLayout=S7e.memLayout;Qi.battery=NPr;Qi.graphics=PPr.graphics;Qi.fsSize=V5.fsSize;Qi.fsOpenFiles=V5.fsOpenFiles;Qi.blockDevices=V5.blockDevices;Qi.fsStats=V5.fsStats;Qi.disksIO=V5.disksIO;Qi.diskLayout=V5.diskLayout;Qi.networkInterfaceDefault=tO.networkInterfaceDefault;Qi.networkGatewayDefault=tO.networkGatewayDefault;Qi.networkInterfaces=tO.networkInterfaces;Qi.networkStats=tO.networkStats;Qi.networkConnections=tO.networkConnections;Qi.wifiNetworks=_7e.wifiNetworks;Qi.wifiInterfaces=_7e.wifiInterfaces;Qi.wifiConnections=_7e.wifiConnections;Qi.services=W0e.services;Qi.processes=W0e.processes;Qi.processLoad=W0e.processLoad;Qi.users=kPr.users;Qi.inetChecksite=$Ct.inetChecksite;Qi.inetLatency=$Ct.inetLatency;Qi.dockerInfo=eV.dockerInfo;Qi.dockerImages=eV.dockerImages;Qi.dockerContainers=eV.dockerContainers;Qi.dockerContainerStats=eV.dockerContainerStats;Qi.dockerContainerProcesses=eV.dockerContainerProcesses;Qi.dockerVolumes=eV.dockerVolumes;Qi.dockerAll=eV.dockerAll;Qi.vboxInfo=xvo.vboxInfo;Qi.printer=BPr.printer;Qi.usb=MPr.usb;Qi.audio=LPr.audio;Qi.bluetoothDevices=UPr.bluetoothDevices;Qi.getStaticData=QPr;Qi.getDynamicData=qPr;Qi.getAllData=Cvo;Qi.get=HPr;Qi.observe=Tvo;Qi.powerShellStart=dB.powerShellStart;Qi.powerShellRelease=dB.powerShellRelease});async function WCt(){try{let{displays:t}=await GPr.default.graphics();if(!t?.length)return"-";let e=t.find(s=>s.main)||t[0],r=e.currentResX||e.resolutionX,o=e.currentResY||e.resolutionY;return r&&o?`${r}x${o}`:"-"}catch{return"-"}}var GPr,zCt=G(()=>{"use strict";GPr=we(VPr(),1)});async function x7e(){let t=new AbortController,e=setTimeout(()=>t.abort(),3e3);try{let s=(await(await fetch("https://log.mmstat.com/v.gif",{signal:t.signal})).headers.getSetCookie()).find(a=>a.startsWith("cna="));return s?s.split(";")?.[0]?.split("=")?.[1]:void 0}catch{return}finally{clearTimeout(e)}}async function jPr({cna:t,userId:e,iFlowEnv:r}){if(!(!t||process.env.DISABLE_SEND_PV))try{let o=process.env.IFLOW_NON_INTERACTIVE==="true",a=["logtype=1","title=iFlow-CLI","pre=-",`scr=${await WCt()}`,`cna=${t}`,`spm-cnt=${o?"a2110qe.33796382.46182003.0.0":"a2110qe.32214347.46097794.0.0"}`,"aplus","pid=iflow",`_user_id=${e}`,`cache=${Math.floor(268435456*Math.random()).toString(16)}`,"sidx=aplusSidex","ckx=aplusCkx",`platformType=${process.env.IFLOW_RUN_IN||"pc"}`,`device_model=${Dvo[process.platform]||process.platform}`,`os=${wvo[process.platform]||process.platform}`,`o=${Ivo[process.platform]||process.platform}`,`node_version=${process.version}`,`language=${process.env.LANG}`,`interactive=${o?0:1}`,`iFlowEnv=${r}`,"_g_encode=utf-8"].join("&");await fetch("https://log.mmstat.com/v.gif",{method:"POST",headers:{"content-type":"text/plain;charset=UTF-8","cache-control":"no-cache"},body:a})}catch{}}var wvo,Ivo,Dvo,KCt=G(()=>{"use strict";zCt();wvo={darwin:encodeURIComponent("Mac OS X"),win32:"Windows",linux:"Linux"},Ivo={darwin:"mac",win32:"win"},Dvo={darwin:"Macintosh",win32:"Windows",linux:"Linux"}});var $Pr,WPr=G(()=>{$Pr=typeof globalThis=="object"?globalThis:global});var zPr=G(()=>{WPr()});var KPr=G(()=>{zPr()});var rO,YCt=G(()=>{rO="1.9.0"});function Ovo(t){var e=new Set([t]),r=new Set,o=t.match(YPr);if(!o)return function(){return!1};var s={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};if(s.prerelease!=null)return function(c){return c===t};function a(n){return r.add(n),!1}function i(n){return e.add(n),!0}return function(c){if(e.has(c))return!0;if(r.has(c))return!1;var u=c.match(YPr);if(!u)return a(c);var f={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return f.prerelease!=null||s.major!==f.major?a(c):s.major===0?s.minor===f.minor&&s.patch<=f.patch?i(c):a(c):s.minor<=f.minor?i(c):a(c)}}var YPr,JPr,XPr=G(()=>{YCt();YPr=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;JPr=Ovo(rO)});function G5(t,e,r,o){var s;o===void 0&&(o=!1);var a=Y0e[K0e]=(s=Y0e[K0e])!==null&&s!==void 0?s:{version:rO};if(!o&&a[t]){var i=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(i.stack||i.message),!1}if(a.version!==rO){var i=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+rO);return r.error(i.stack||i.message),!1}return a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+rO+"."),!0}function FE(t){var e,r,o=(e=Y0e[K0e])===null||e===void 0?void 0:e.version;if(!(!o||!JPr(o)))return(r=Y0e[K0e])===null||r===void 0?void 0:r[t]}function j5(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+rO+".");var r=Y0e[K0e];r&&delete r[t]}var Rvo,K0e,Y0e,tV=G(()=>{KPr();YCt();XPr();Rvo=rO.split(".")[0],K0e=Symbol.for("opentelemetry.js.api."+Rvo),Y0e=$Pr});function J0e(t,e,r){var o=FE("diag");if(o)return r.unshift(e),o[t].apply(o,Pvo([],Nvo(r),!1))}var Nvo,Pvo,ZPr,ekr=G(()=>{tV();Nvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Pvo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},ZPr=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("verbose",this._namespace,e)},t})()});var Sm,C7e=G(()=>{(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(Sm||(Sm={}))});function tkr(t,e){t<Sm.NONE?t=Sm.NONE:t>Sm.ALL&&(t=Sm.ALL),e=e||{};function r(o,s){var a=e[o];return typeof a=="function"&&t>=s?a.bind(e):function(){}}return{error:r("error",Sm.ERROR),warn:r("warn",Sm.WARN),info:r("info",Sm.INFO),debug:r("debug",Sm.DEBUG),verbose:r("verbose",Sm.VERBOSE)}}var rkr=G(()=>{C7e()});var kvo,Bvo,Mvo,J1,rV=G(()=>{ekr();rkr();C7e();tV();kvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Bvo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},Mvo="diag",J1=(function(){function t(){function e(s){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var n=FE("diag");if(n)return n[s].apply(n,Bvo([],kvo(a),!1))}}var r=this,o=function(s,a){var i,n,c;if(a===void 0&&(a={logLevel:Sm.INFO}),s===r){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=u.stack)!==null&&i!==void 0?i:u.message),!1}typeof a=="number"&&(a={logLevel:a});var f=FE("diag"),d=tkr((n=a.logLevel)!==null&&n!==void 0?n:Sm.INFO,s);if(f&&!a.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";f.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return G5("diag",d,r,!0)};r.setLogger=o,r.disable=function(){j5(Mvo,r)},r.createComponentLogger=function(s){return new ZPr(s)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})()});var Lvo,Uvo,nkr,ikr=G(()=>{Lvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Uvo=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nkr=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=Lvo(e,2),o=r[0],s=r[1];return[o,s]})},t.prototype.setEntry=function(e,r){var o=new t(this._entries);return o._entries.set(e,r),o},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new t(this._entries);try{for(var i=Uvo(o),n=i.next();!n.done;n=i.next()){var c=n.value;a._entries.delete(c)}}catch(u){e={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return a},t.prototype.clear=function(){return new t},t})()});var okr,skr=G(()=>{okr=Symbol("BaggageEntryMetadata")});function akr(t){return t===void 0&&(t={}),new nkr(new Map(Object.entries(t)))}function ckr(t){return typeof t!="string"&&(Fvo.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:okr,toString:function(){return t}}}var Fvo,JCt=G(()=>{rV();ikr();skr();Fvo=J1.instance()});function Wee(t){return Symbol.for(t)}var Qvo,T7e,X0e=G(()=>{Qvo=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(o){return r._currentContext.get(o)},r.setValue=function(o,s){var a=new t(r._currentContext);return a._currentContext.set(o,s),a},r.deleteValue=function(o){var s=new t(r._currentContext);return s._currentContext.delete(o),s}}return t})(),T7e=new Qvo});var XCt,Z0e,lkr=G(()=>{XCt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Z0e=(function(){function t(){function e(o){return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];if(console){var i=console[o];if(typeof i!="function"&&(i=console.log),typeof i=="function")return i.apply(console,s)}}}for(var r=0;r<XCt.length;r++)this[XCt[r].n]=e(XCt[r].c)}return t})()});function ukr(){return eTt}var nV,qvo,w7e,Hvo,Vvo,Gvo,jvo,ZCt,$vo,Wvo,zvo,eTt,Kvo,Yvo,Jvo,Xvo,Zvo,ebo,tbo,tTt=G(()=>{nV=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),qvo=(function(){function t(){}return t.prototype.createGauge=function(e,r){return Yvo},t.prototype.createHistogram=function(e,r){return Jvo},t.prototype.createCounter=function(e,r){return Kvo},t.prototype.createUpDownCounter=function(e,r){return Xvo},t.prototype.createObservableGauge=function(e,r){return ebo},t.prototype.createObservableCounter=function(e,r){return Zvo},t.prototype.createObservableUpDownCounter=function(e,r){return tbo},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),w7e=(function(){function t(){}return t})(),Hvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(w7e),Vvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(w7e),Gvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(w7e),jvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(w7e),ZCt=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),$vo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ZCt),Wvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ZCt),zvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ZCt),eTt=new qvo,Kvo=new Hvo,Yvo=new Gvo,Jvo=new jvo,Xvo=new Vvo,Zvo=new $vo,ebo=new Wvo,tbo=new zvo});var Cp,fkr=G(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(Cp||(Cp={}))});var I7e,D7e,rTt=G(()=>{I7e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},D7e={set:function(t,e,r){t!=null&&(t[e]=r)}}});var rbo,nbo,dkr,pkr=G(()=>{X0e();rbo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},nbo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},dkr=(function(){function t(){}return t.prototype.active=function(){return T7e},t.prototype.with=function(e,r,o){for(var s=[],a=3;a<arguments.length;a++)s[a-3]=arguments[a];return r.call.apply(r,nbo([o],rbo(s),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})()});var ibo,obo,nTt,sbo,pB,e2e=G(()=>{pkr();tV();rV();ibo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},obo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},nTt="context",sbo=new dkr,pB=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return G5(nTt,e,J1.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,o){for(var s,a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];return(s=this._getContextManager()).with.apply(s,obo([e,r,o],ibo(a),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return FE(nTt)||sbo},t.prototype.disable=function(){this._getContextManager().disable(),j5(nTt,J1.instance())},t})()});var zee,iTt=G(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(zee||(zee={}))});var t2e,r2e,O7e,R7e=G(()=>{iTt();t2e="0000000000000000",r2e="00000000000000000000000000000000",O7e={traceId:r2e,spanId:t2e,traceFlags:zee.NONE}});var hB,N7e=G(()=>{R7e();hB=(function(){function t(e){e===void 0&&(e=O7e),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})()});function P7e(t){return t.getValue(oTt)||void 0}function hkr(){return P7e(pB.getInstance().active())}function n2e(t,e){return t.setValue(oTt,e)}function mkr(t){return t.deleteValue(oTt)}function gkr(t,e){return n2e(t,new hB(e))}function k7e(t){var e;return(e=P7e(t))===null||e===void 0?void 0:e.spanContext()}var oTt,sTt=G(()=>{X0e();N7e();e2e();oTt=Wee("OpenTelemetry Context Key SPAN")});function aTt(t){return abo.test(t)&&t!==r2e}function cTt(t){return cbo.test(t)&&t!==t2e}function Kee(t){return aTt(t.traceId)&&cTt(t.spanId)}function ykr(t){return new hB(t)}var abo,cbo,B7e=G(()=>{R7e();N7e();abo=/^([0-9a-f]{32})$/i,cbo=/^[0-9a-f]{16}$/i});function lbo(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var lTt,M7e,uTt=G(()=>{e2e();sTt();N7e();B7e();lTt=pB.getInstance(),M7e=(function(){function t(){}return t.prototype.startSpan=function(e,r,o){o===void 0&&(o=lTt.active());var s=!!r?.root;if(s)return new hB;var a=o&&k7e(o);return lbo(a)&&Kee(a)?new hB(a):new hB},t.prototype.startActiveSpan=function(e,r,o,s){var a,i,n;if(!(arguments.length<2)){arguments.length===2?n=r:arguments.length===3?(a=r,n=o):(a=r,i=o,n=s);var c=i??lTt.active(),u=this.startSpan(e,a,c),f=n2e(c,u);return lTt.with(f,n,void 0,u)}},t})()});var ubo,L7e,fTt=G(()=>{uTt();ubo=new M7e,L7e=(function(){function t(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}return t.prototype.startSpan=function(e,r,o){return this._getTracer().startSpan(e,r,o)},t.prototype.startActiveSpan=function(e,r,o,s){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ubo},t})()});var Akr,vkr=G(()=>{uTt();Akr=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){return new M7e},t})()});var fbo,i2e,dTt=G(()=>{fTt();vkr();fbo=new Akr,i2e=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){var s;return(s=this.getDelegateTracer(e,r,o))!==null&&s!==void 0?s:new L7e(this,e,r,o)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:fbo},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getTracer(e,r,o)},t})()});var U7e,bkr=G(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(U7e||(U7e={}))});var F7e,Ekr=G(()=>{(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(F7e||(F7e={}))});var K_,Skr=G(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(K_||(K_={}))});function _kr(t){return hbo.test(t)}function xkr(t){return mbo.test(t)&&!gbo.test(t)}var pTt,dbo,pbo,hbo,mbo,gbo,Ckr=G(()=>{pTt="[_0-9a-z-*/]",dbo="[a-z]"+pTt+"{0,255}",pbo="[a-z0-9]"+pTt+"{0,240}@[a-z]"+pTt+"{0,13}",hbo=new RegExp("^(?:"+dbo+"|"+pbo+")$"),mbo=/^[ -~]{0,255}[!-~]$/,gbo=/,|=/});var Tkr,ybo,wkr,Ikr,Dkr,Okr=G(()=>{Ckr();Tkr=32,ybo=512,wkr=",",Ikr="=",Dkr=(function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,r){var o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o},t.prototype.unset=function(e){var r=this._clone();return r._internalState.delete(e),r},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(r,o){return r.push(o+Ikr+e.get(o)),r},[]).join(wkr)},t.prototype._parse=function(e){e.length>ybo||(this._internalState=e.split(wkr).reverse().reduce(function(r,o){var s=o.trim(),a=s.indexOf(Ikr);if(a!==-1){var i=s.slice(0,a),n=s.slice(a+1,o.length);_kr(i)&&xkr(n)&&r.set(i,n)}return r},new Map),this._internalState.size>Tkr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Tkr))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t})()});function Rkr(t){return new Dkr(t)}var Nkr=G(()=>{Okr()});var X1,Pkr=G(()=>{e2e();X1=pB.getInstance()});var Sr,kkr=G(()=>{rV();Sr=J1.instance()});var Abo,Bkr,Mkr=G(()=>{tTt();Abo=(function(){function t(){}return t.prototype.getMeter=function(e,r,o){return eTt},t})(),Bkr=new Abo});var hTt,Lkr,Ukr=G(()=>{Mkr();tV();rV();hTt="metrics",Lkr=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return G5(hTt,e,J1.instance())},t.prototype.getMeterProvider=function(){return FE(hTt)||Bkr},t.prototype.getMeter=function(e,r,o){return this.getMeterProvider().getMeter(e,r,o)},t.prototype.disable=function(){j5(hTt,J1.instance())},t})()});var o2e,Fkr=G(()=>{Ukr();o2e=Lkr.getInstance()});var Qkr,qkr=G(()=>{Qkr=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})()});function gTt(t){return t.getValue(mTt)||void 0}function Hkr(){return gTt(pB.getInstance().active())}function Vkr(t,e){return t.setValue(mTt,e)}function Gkr(t){return t.deleteValue(mTt)}var mTt,jkr=G(()=>{e2e();X0e();mTt=Wee("OpenTelemetry Baggage Key")});var yTt,vbo,$kr,Wkr=G(()=>{tV();qkr();rTt();jkr();JCt();rV();yTt="propagation",vbo=new Qkr,$kr=(function(){function t(){this.createBaggage=akr,this.getBaggage=gTt,this.getActiveBaggage=Hkr,this.setBaggage=Vkr,this.deleteBaggage=Gkr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return G5(yTt,e,J1.instance())},t.prototype.inject=function(e,r,o){return o===void 0&&(o=D7e),this._getGlobalPropagator().inject(e,r,o)},t.prototype.extract=function(e,r,o){return o===void 0&&(o=I7e),this._getGlobalPropagator().extract(e,r,o)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){j5(yTt,J1.instance())},t.prototype._getGlobalPropagator=function(){return FE(yTt)||vbo},t})()});var ATt,zkr=G(()=>{Wkr();ATt=$kr.getInstance()});var vTt,Kkr,Ykr=G(()=>{tV();dTt();B7e();sTt();rV();vTt="trace",Kkr=(function(){function t(){this._proxyTracerProvider=new i2e,this.wrapSpanContext=ykr,this.isSpanContextValid=Kee,this.deleteSpan=mkr,this.getSpan=P7e,this.getActiveSpan=hkr,this.getSpanContext=k7e,this.setSpan=n2e,this.setSpanContext=gkr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=G5(vTt,this._proxyTracerProvider,J1.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return FE(vTt)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){j5(vTt,J1.instance()),this._proxyTracerProvider=new i2e},t})()});var f3,Jkr=G(()=>{Ykr();f3=Kkr.getInstance()});var _t={};os(_t,{DiagConsoleLogger:()=>Z0e,DiagLogLevel:()=>Sm,INVALID_SPANID:()=>t2e,INVALID_SPAN_CONTEXT:()=>O7e,INVALID_TRACEID:()=>r2e,ProxyTracer:()=>L7e,ProxyTracerProvider:()=>i2e,ROOT_CONTEXT:()=>T7e,SamplingDecision:()=>U7e,SpanKind:()=>F7e,SpanStatusCode:()=>K_,TraceFlags:()=>zee,ValueType:()=>Cp,baggageEntryMetadataFromString:()=>ckr,context:()=>X1,createContextKey:()=>Wee,createNoopMeter:()=>ukr,createTraceState:()=>Rkr,default:()=>bbo,defaultTextMapGetter:()=>I7e,defaultTextMapSetter:()=>D7e,diag:()=>Sr,isSpanContextValid:()=>Kee,isValidSpanId:()=>cTt,isValidTraceId:()=>aTt,metrics:()=>o2e,propagation:()=>ATt,trace:()=>f3});var bbo,ut=G(()=>{JCt();X0e();lkr();C7e();tTt();fkr();rTt();fTt();dTt();bkr();Ekr();Skr();iTt();Nkr();B7e();R7e();Pkr();kkr();Fkr();zkr();Jkr();bbo={context:X1,diag:Sr,metrics:o2e,propagation:ATt,trace:f3}});var z2,Xkr,s2e,Zkr,a2e,c2e,eBr,tBr,rBr,nBr,iBr,oBr,sBr,aBr,cBr,lBr,uBr,fBr,dBr,pBr,hBr,mBr,gBr,yBr,ABr,vBr,l2e=G(()=>{"use strict";z2="iflow-cli",Xkr="iflow_cli.user_prompt",s2e="iflow_cli.tool_call",Zkr="iflow_cli.api_request",a2e="iflow_cli.api_error",c2e="iflow_cli.api_response",eBr="iflow_cli.config",tBr="iflow_cli.flash_fallback",rBr="iflow_cli.next_speaker_check",nBr="iflow_cli.slash_command",iBr="iflow_cli.tool.call.count",oBr="iflow_cli.tool.call.latency",sBr="iflow_cli.mcp.tool.call.count",aBr="iflow_cli.mcp.tool.call.latency",cBr="iflow_cli.builtin.tool.call.count",lBr="iflow_cli.builtin.tool.call.latency",uBr="gen_ai.client.operation",fBr="gen_ai.client.operation.duration",dBr="gen_ai.client.token.usage",pBr="iflow_cli.session.count",hBr="iflow_cli.file.operation.count",mBr="iflow_cli.user_request.count",gBr="iflow_cli.user_request.latency",yBr="iflow_cli.user_experience.success",ABr="iflow_cli.user.identity",vBr="iflow_cli.scheduler.lock.error"});var Yee,Jee,Xee,Zee,ete,tte,rte,nte,ite,ote,G4,j4,bBr=G(()=>{"use strict";Yee="iflow_cli.cpu.usage_percentage",Jee="iflow_cli.cpu.user_percentage",Xee="iflow_cli.cpu.system_percentage",Zee="iflow_cli.cpu.cores",ete="iflow_cli.memory.heap_used",tte="iflow_cli.memory.heap_total",rte="iflow_cli.memory.rss",nte="iflow_cli.memory.external",ite="iflow_cli.memory.system_usage_percentage",ote="iflow_cli.memory.process_usage_percentage",G4={[Yee]:"CPU usage percentage",[Jee]:"CPU user time percentage",[Xee]:"CPU system time percentage",[Zee]:"Number of CPU cores",[ete]:"Heap memory used in bytes",[tte]:"Heap memory total in bytes",[rte]:"Resident Set Size in bytes",[nte]:"External memory in bytes",[ite]:"System memory usage percentage",[ote]:"Process memory usage percentage relative to Node.js limits"},j4={[Yee]:"percent",[Jee]:"percent",[Xee]:"percent",[Zee]:"cores",[ete]:"bytes",[tte]:"bytes",[rte]:"bytes",[nte]:"bytes",[ite]:"percent",[ote]:"percent"}});import*as $4 from"os";var Q7e,EBr=G(()=>{"use strict";bBr();Q7e=class{meter;options;lastCpuMeasurement;lastMeasureTime;cpuCores;totalSystemMemory;nodeJSMemoryLimit;cpuUsageGauge;cpuUserGauge;cpuSystemGauge;cpuCoresGauge;memoryHeapUsedGauge;memoryHeapTotalGauge;memoryRssGauge;memoryExternalGauge;memorySystemUsageGauge;memoryProcessUsageGauge;constructor(e,r={}){this.meter=e,this.options={enableCpuMetrics:!0,enableMemoryMetrics:!0,enableSystemInfo:!0,...r},this.lastCpuMeasurement=process.cpuUsage(),this.lastMeasureTime=Date.now(),this.cpuCores=$4.cpus().length,this.totalSystemMemory=$4.totalmem(),this.nodeJSMemoryLimit=this.getNodeJSMemoryLimit(),this.initializeMetrics()}getCurrentCpuMetrics(){try{let e=process.cpuUsage(this.lastCpuMeasurement),r=Date.now(),o=r-this.lastMeasureTime;if(this.lastCpuMeasurement=process.cpuUsage(),this.lastMeasureTime=r,o<=0)return{usage:0,user:0,system:0,cores:this.cpuCores};let s=Math.max(0,e.user+e.system),a=Math.max(0,e.user),i=Math.max(0,e.system),n=s/(o*1e3)*100,c=a/(o*1e3)*100,u=i/(o*1e3)*100,f=Number.isFinite(n)?Math.min(100,Math.max(0,n)):0,d=Number.isFinite(c)?Math.min(100,Math.max(0,c)):0,p=Number.isFinite(u)?Math.min(100,Math.max(0,u)):0;return{usage:f,user:d,system:p,cores:this.cpuCores}}catch{return{usage:0,user:0,system:0,cores:this.cpuCores}}}getCurrentMemoryMetrics(){try{let e=process.memoryUsage(),r=$4.freemem(),s=(this.totalSystemMemory-r)/this.totalSystemMemory*100,a=e.rss/this.nodeJSMemoryLimit*100;return{heapUsed:e.heapUsed,heapTotal:e.heapTotal,rss:e.rss,external:e.external,systemUsage:Math.min(100,Math.max(0,s)),processUsage:Math.min(100,Math.max(0,a))}}catch{return{heapUsed:0,heapTotal:0,rss:0,external:0,systemUsage:0,processUsage:0}}}initializeMetrics(){let e=$4.platform(),r=$4.arch(),o=process.version;this.options.enableCpuMetrics&&(this.cpuUsageGauge=this.meter.createObservableGauge(Yee,{description:G4[Yee],unit:j4[Yee]}),this.cpuUserGauge=this.meter.createObservableGauge(Jee,{description:G4[Jee],unit:j4[Jee]}),this.cpuSystemGauge=this.meter.createObservableGauge(Xee,{description:G4[Xee],unit:j4[Xee]}),this.cpuCoresGauge=this.meter.createObservableGauge(Zee,{description:G4[Zee],unit:j4[Zee]}),this.cpuUsageGauge.addCallback(s=>{let a=this.getCurrentCpuMetrics();s.observe(a.usage,{platform:e,arch:r,node_version:o})}),this.cpuUserGauge.addCallback(s=>{let a=this.getCurrentCpuMetrics();s.observe(a.user,{platform:e,arch:r,node_version:o})}),this.cpuSystemGauge.addCallback(s=>{let a=this.getCurrentCpuMetrics();s.observe(a.system,{platform:e,arch:r,node_version:o})}),this.cpuCoresGauge?.addCallback(s=>{s.observe(this.cpuCores,{platform:e,arch:r})})),this.options.enableMemoryMetrics&&(this.memoryHeapUsedGauge=this.meter.createObservableGauge(ete,{description:G4[ete],unit:j4[ete]}),this.memoryHeapTotalGauge=this.meter.createObservableGauge(tte,{description:G4[tte],unit:j4[tte]}),this.memoryRssGauge=this.meter.createObservableGauge(rte,{description:G4[rte],unit:j4[rte]}),this.memoryExternalGauge=this.meter.createObservableGauge(nte,{description:G4[nte],unit:j4[nte]}),this.memorySystemUsageGauge=this.meter.createObservableGauge(ite,{description:G4[ite],unit:j4[ite]}),this.memoryProcessUsageGauge=this.meter.createObservableGauge(ote,{description:G4[ote],unit:j4[ote]}),this.memoryHeapUsedGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.heapUsed,{platform:e,arch:r,node_version:o})}),this.memoryHeapTotalGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.heapTotal,{platform:e,arch:r,node_version:o})}),this.memoryRssGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.rss,{platform:e,arch:r,node_version:o})}),this.memoryExternalGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.external,{platform:e,arch:r,node_version:o})}),this.memorySystemUsageGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.systemUsage,{platform:e,arch:r,node_version:o})}),this.memoryProcessUsageGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.processUsage,{platform:e,arch:r,node_version:o,memory_limit_mb:Math.round(this.nodeJSMemoryLimit/(1024*1024))})}))}getNodeJSMemoryLimit(){let e=process.execArgv.find(s=>s.startsWith("--max-old-space-size="))?.split("=")[1];if(e){let s=parseInt(e,10);if(!isNaN(s)&&s>0)return s*1024*1024}let r=process.execArgv.find(s=>s.startsWith("--max_old_space_size="))?.split("=")[1];if(r){let s=parseInt(r,10);if(!isNaN(s)&&s>0)return s*1024*1024}let o=$4.arch();return o==="x64"||o==="arm64"?1400*1024*1024:700*1024*1024}}});function SBr(t,e={}){if(q7e)return q7e;let r={enableCpuMetrics:!0,enableMemoryMetrics:!0,enableSystemInfo:!0,...e};return q7e=new Q7e(t,r),q7e}var q7e,_Br=G(()=>{"use strict";EBr();q7e=null});import*as ste from"os";import*as H7e from"fs";function K2(t){let e="0.3.16-beta.0",r={darwin:"macOS",win32:"Windows",linux:"Linux",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",aix:"AIX"},o=ste.platform(),s=r[o]||o,a="unknown";try{if(o==="darwin")a=ste.release();else if(o==="linux")try{if(H7e.existsSync("/etc/os-release")){let d=H7e.readFileSync("/etc/os-release","utf8").match(/^PRETTY_NAME="(.+)"/m);d&&(a=d[1])}}catch{a=ste.release()}else o==="win32"&&(a=ste.release())}catch{a="unknown"}let i={name:"Node.js",version:process.version,architecture:process.arch},n=t.getModel()||"unknown",c=!1,u=t.getContentGeneratorConfig?.();if(u){let f=u.authType,d=u.baseUrl||"";(f===Er.LOGIN_WITH_IFLOW||f===Er.IFLOW||f===Er.OPENAI_COMPATIBLE&&d.includes("apis.iflow.cn"))&&(c=!0)}return{app_name:z2,tenant__:"gen_ai",version:e,platform:s,os_model:a,runtime_name:i.name,runtime_version:i.version,runtime_architecture:i.architecture,model_name:n,is_iflow_open_user:String(c)}}function xBr(){return bTt||(bTt=o2e.getMeter(z2)),bTt}function CBr(){if(Pv)return;let t=xBr();if(t){try{SBr(t,{enableCpuMetrics:!0,enableMemoryMetrics:!0,enableSystemInfo:!0})}catch{}ETt=t.createCounter(iBr,{description:"Counts tool calls, tagged by function name and success.",valueType:Cp.INT}),STt=t.createHistogram(oBr,{description:"Latency of tool calls in milliseconds.",unit:"ms",valueType:Cp.INT}),_Tt=t.createCounter(sBr,{description:"Counts MCP tool calls, tagged by function name and success.",valueType:Cp.INT}),xTt=t.createHistogram(aBr,{description:"Latency of MCP tool calls in milliseconds.",unit:"ms",valueType:Cp.INT}),CTt=t.createCounter(cBr,{description:"Counts built-in tool calls, tagged by function name and success.",valueType:Cp.INT}),TTt=t.createHistogram(lBr,{description:"Latency of built-in tool calls in milliseconds.",unit:"ms",valueType:Cp.INT}),u2e=t.createCounter(uBr,{description:"Counts API requests, tagged by model and status.",valueType:Cp.INT}),f2e=t.createHistogram(fBr,{description:"Latency of API requests in milliseconds.",unit:"ms",valueType:Cp.INT}),wTt=t.createCounter(dBr,{description:"Counts the total number of tokens used.",valueType:Cp.INT}),ITt=t.createCounter(hBr,{description:"Counts file operations (create, read, update).",valueType:Cp.INT}),DTt=t.createCounter(mBr,{description:"Counts user requests from prompt to completion.",valueType:Cp.INT}),OTt=t.createHistogram(gBr,{description:"End-to-end latency of user requests in milliseconds.",unit:"ms",valueType:Cp.INT}),RTt=t.createCounter(yBr,{description:"User experience success rate - counts successful user experiences including retries and fixes.",valueType:Cp.INT}),NTt=t.createCounter(ABr,{description:"User identity for tracking unique installations.",valueType:Cp.INT}),PTt=t.createCounter(vBr,{description:"Counts tool scheduler lock errors when new calls are blocked by running calls.",valueType:Cp.INT}),Pv=!0}}function V7e(t){let e=xBr();if(!e||!Pv)return;e.createCounter(pBr,{description:"Count of CLI sessions started.",valueType:Cp.INT}).add(1,K2(t))}function TBr(t,e,r,o,s,a){if(!ETt||!STt||!Pv)return;let i={...K2(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};ETt.add(1,i),STt.record(r,{...K2(t),function_name:e??"unknown",tool_type:a??"unknown"})}function wBr(t,e,r,o,s,a){if(!_Tt||!xTt||!Pv)return;let i={...K2(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};a&&(i.execution_context=a),_Tt.add(1,i),xTt.record(r,{...K2(t),function_name:e??"unknown",execution_context:a??"unknown"})}function IBr(t,e,r,o,s,a){if(!CTt||!TTt||!Pv)return;let i={...K2(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};a&&(i.execution_context=a),CTt.add(1,i),TTt.record(r,{...K2(t),function_name:e??"unknown",execution_context:a??"unknown"})}function ate(t,e,r,o){!wTt||!Pv||wTt.add(r,{...K2(t),model:e??"unknown",type:o??"unknown"})}function DBr(t,e,r,o,s,a,i,n){if(!u2e||!f2e||!Pv)return;let c={...K2(t),model:e??"unknown",status_code:String(o??(s?"error":"ok"))};i!==void 0&&(c.http_status_code=String(i)),n!==void 0&&(c.business_code=String(n)),a&&(c.finish_reason=a),u2e.add(1,c);let u={...K2(t),model:e??"unknown",http_status_code:String(i??200),finish_reason:a??"unknown"};n!=null&&(u.business_code=String(n)),f2e.record(r,u)}function OBr(t,e,r,o,s,a,i){if(!u2e||!f2e||!Pv)return;let n={...K2(t),model:e??"unknown",status_code:String(o??"error"),error:s??"unknown"};a!==void 0&&(n.http_status_code=String(a)),i!==void 0&&(n.business_code=String(i)),u2e.add(1,n);let c={...K2(t),model:e??"unknown",http_status_code:String(a??0),error:s??"unknown"};i!=null&&(c.business_code=String(i)),f2e.record(r,c)}function iV(t,e,r,o,s){if(!ITt||!Pv)return;let a={...K2(t),operation:e};r!==void 0&&(a.lines=String(r)),o!==void 0&&(a.mimetype=o),s!==void 0&&(a.extension=s),ITt.add(1,a)}function RBr(t,e,r,o,s){if(!DTt||!OTt||!Pv)return;let a={...K2(t),prompt_id:e,success:String(o)};s&&(a.error=s),DTt.add(1,a),OTt.record(r,a)}function kTt(t,e,r=!1,o=!1,s){if(!RTt||!Pv)return;let a={...K2(t),success:String(e),had_retries:String(r),had_fixes:String(o)};s&&(a.final_error=s),RTt.add(1,a)}function NBr(t,e){if(!NTt||!Pv)return;let r={...K2(t),user_id:e};NTt.add(1,r)}function PBr(t,e,r){if(!PTt||!Pv)return;let o={...K2(t),running_calls_count:String(e)};r.forEach((s,a)=>{o[`call_${a}_name`]=s.name,o[`call_${a}_status`]=s.status}),PTt.add(1,o)}var nO,bTt,ETt,STt,_Tt,xTt,CTt,TTt,u2e,f2e,wTt,ITt,DTt,OTt,RTt,NTt,PTt,Pv,W4=G(()=>{"use strict";ut();l2e();ME();_Br();(function(t){t.CREATE="create",t.READ="read",t.UPDATE="update"})(nO||(nO={}));Pv=!1});async function BTt(t,e,r){let o=q9e();try{let s=process.env.IFLOW_ENV||"",a=t.getCna();jPr({cna:a,userId:o,iFlowEnv:s})}catch(s){t.getDebugMode()&&console.error("Failed to send pv",s)}try{if(t.getDisableTelemetry())return;let s=t.getSessionId();NBr(t,o),await VH.startSession(s,o,e,r)}catch(s){t.getDebugMode()&&console.error("Failed to initialize CLI telemetry:",s)}}async function d2e(t){try{if(t.getDisableTelemetry())return;await VH.endSession()}catch(e){t.getDebugMode()&&console.error("Failed to cleanup CLI telemetry:",e)}}async function G7e(t,e){if(!t.getDisableTelemetry())try{await VH.recordError(e)}catch(r){t.getDebugMode()&&console.error("Failed to record CLI error in telemetry:",r.message)}}var MTt=G(()=>{"use strict";B9e();eCt();KCt();W4();});var kBr=E(p2e=>{"use strict";Object.defineProperty(p2e,"__esModule",{value:!0});p2e.SeverityNumber=void 0;var Ebo;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Ebo=p2e.SeverityNumber||(p2e.SeverityNumber={}))});var $7e=E(cte=>{"use strict";Object.defineProperty(cte,"__esModule",{value:!0});cte.NOOP_LOGGER=cte.NoopLogger=void 0;var j7e=class{emit(e){}};cte.NoopLogger=j7e;cte.NOOP_LOGGER=new j7e});var z7e=E(lte=>{"use strict";Object.defineProperty(lte,"__esModule",{value:!0});lte.NOOP_LOGGER_PROVIDER=lte.NoopLoggerProvider=void 0;var Sbo=$7e(),W7e=class{getLogger(e,r,o){return new Sbo.NoopLogger}};lte.NoopLoggerProvider=W7e;lte.NOOP_LOGGER_PROVIDER=new W7e});var UTt=E(K7e=>{"use strict";Object.defineProperty(K7e,"__esModule",{value:!0});K7e.ProxyLogger=void 0;var _bo=$7e(),LTt=class{constructor(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):_bo.NOOP_LOGGER}};K7e.ProxyLogger=LTt});var QTt=E(Y7e=>{"use strict";Object.defineProperty(Y7e,"__esModule",{value:!0});Y7e.ProxyLoggerProvider=void 0;var xbo=z7e(),Cbo=UTt(),FTt=class{getLogger(e,r,o){var s;return(s=this._getDelegateLogger(e,r,o))!==null&&s!==void 0?s:new Cbo.ProxyLogger(this,e,r,o)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:xbo.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getLogger(e,r,o)}};Y7e.ProxyLoggerProvider=FTt});var BBr=E(J7e=>{"use strict";Object.defineProperty(J7e,"__esModule",{value:!0});J7e._globalThis=void 0;J7e._globalThis=typeof globalThis=="object"?globalThis:global});var MBr=E(X7e=>{"use strict";Object.defineProperty(X7e,"__esModule",{value:!0});X7e._globalThis=void 0;var Tbo=BBr();Object.defineProperty(X7e,"_globalThis",{enumerable:!0,get:function(){return Tbo._globalThis}})});var LBr=E(Z7e=>{"use strict";Object.defineProperty(Z7e,"__esModule",{value:!0});Z7e._globalThis=void 0;var wbo=MBr();Object.defineProperty(Z7e,"_globalThis",{enumerable:!0,get:function(){return wbo._globalThis}})});var UBr=E($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});$5.API_BACKWARDS_COMPATIBILITY_VERSION=$5.makeGetter=$5._global=$5.GLOBAL_LOGS_API_KEY=void 0;var Ibo=LBr();$5.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");$5._global=Ibo._globalThis;function Dbo(t,e,r){return o=>o===t?e:r}$5.makeGetter=Dbo;$5.API_BACKWARDS_COMPATIBILITY_VERSION=1});var QBr=E(eOe=>{"use strict";Object.defineProperty(eOe,"__esModule",{value:!0});eOe.LogsAPI=void 0;var Y_=UBr(),Obo=z7e(),FBr=QTt(),qTt=class t{constructor(){this._proxyLoggerProvider=new FBr.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Y_._global[Y_.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Y_._global[Y_.GLOBAL_LOGS_API_KEY]=(0,Y_.makeGetter)(Y_.API_BACKWARDS_COMPATIBILITY_VERSION,e,Obo.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Y_._global[Y_.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Y_._global,Y_.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,o){return this.getLoggerProvider().getLogger(e,r,o)}disable(){delete Y_._global[Y_.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new FBr.ProxyLoggerProvider}};eOe.LogsAPI=qTt});var ute=E(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.logs=n0.ProxyLoggerProvider=n0.ProxyLogger=n0.NoopLoggerProvider=n0.NOOP_LOGGER_PROVIDER=n0.NoopLogger=n0.NOOP_LOGGER=n0.SeverityNumber=void 0;var Rbo=kBr();Object.defineProperty(n0,"SeverityNumber",{enumerable:!0,get:function(){return Rbo.SeverityNumber}});var qBr=$7e();Object.defineProperty(n0,"NOOP_LOGGER",{enumerable:!0,get:function(){return qBr.NOOP_LOGGER}});Object.defineProperty(n0,"NoopLogger",{enumerable:!0,get:function(){return qBr.NoopLogger}});var HBr=z7e();Object.defineProperty(n0,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return HBr.NOOP_LOGGER_PROVIDER}});Object.defineProperty(n0,"NoopLoggerProvider",{enumerable:!0,get:function(){return HBr.NoopLoggerProvider}});var Nbo=UTt();Object.defineProperty(n0,"ProxyLogger",{enumerable:!0,get:function(){return Nbo.ProxyLogger}});var Pbo=QTt();Object.defineProperty(n0,"ProxyLoggerProvider",{enumerable:!0,get:function(){return Pbo.ProxyLoggerProvider}});var kbo=QBr();n0.logs=kbo.LogsAPI.getInstance()});function Bh(t){let e={},r=t.length;for(let o=0;o<r;o++){let s=t[o];s&&(e[String(s).toUpperCase().replace(/[-.]/g,"_")]=s)}return e}var HTt=G(()=>{});var VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,_Mr,xMr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,kMr,BMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,_Lr,xLr,CLr,TLr,wLr,ILr,DLr,OLr,RLr,NLr,PLr,kLr,BLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr,Bbo,Mbo,Lbo,Ubo,Fbo,Qbo,qbo,Hbo,Vbo,Gbo,jbo,$bo,Wbo,zbo,Kbo,Ybo,Jbo,Xbo,Zbo,eEo,tEo,rEo,nEo,iEo,oEo,sEo,aEo,cEo,lEo,uEo,fEo,dEo,pEo,hEo,mEo,gEo,yEo,AEo,vEo,bEo,EEo,SEo,_Eo,xEo,CEo,TEo,wEo,IEo,DEo,OEo,REo,NEo,PEo,kEo,BEo,MEo,LEo,UEo,FEo,QEo,qEo,HEo,VEo,GEo,jEo,$Eo,WEo,zEo,KEo,YEo,JEo,XEo,ZEo,eSo,tSo,rSo,nSo,iSo,oSo,sSo,aSo,cSo,lSo,uSo,fSo,dSo,pSo,hSo,mSo,gSo,ySo,ASo,vSo,bSo,ESo,SSo,_So,xSo,CSo,TSo,wSo,ISo,DSo,OSo,RSo,NSo,PSo,kSo,BSo,MSo,LSo,USo,FSo,QSo,qSo,HSo,VSo,GSo,jSo,$So,WSo,zSo,KSo,YSo,JSo,XSo,ZSo,e_o,fte,lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr,_Ur,xUr,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,kUr,BUr,MUr,LUr,UUr,FUr,QUr,qUr,HUr,VUr,GUr,jUr,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,ZUr,eFr,tFr,t_o,r_o,n_o,i_o,o_o,s_o,a_o,c_o,l_o,u_o,f_o,d_o,p_o,h_o,m_o,g_o,y_o,A_o,v_o,b_o,E_o,S_o,__o,x_o,C_o,T_o,w_o,I_o,D_o,O_o,R_o,N_o,P_o,k_o,B_o,M_o,L_o,U_o,F_o,Q_o,q_o,H_o,V_o,G_o,j_o,$_o,W_o,z_o,rFr,nFr,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,K_o,Y_o,J_o,X_o,Z_o,exo,txo,rxo,nxo,ixo,oxo,sxo,pFr,hFr,mFr,gFr,yFr,axo,cxo,lxo,uxo,fxo,dxo,AFr,vFr,bFr,pxo,hxo,mxo,gxo,EFr,SFr,_Fr,xFr,yxo,Axo,vxo,bxo,Exo,CFr,TFr,wFr,IFr,DFr,OFr,RFr,Sxo,_xo,xxo,Cxo,Txo,wxo,Ixo,Dxo,NFr,PFr,kFr,BFr,MFr,Oxo,Rxo,Nxo,Pxo,kxo,Bxo,LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,JFr,XFr,ZFr,eQr,tQr,rQr,nQr,Mxo,Lxo,Uxo,Fxo,Qxo,qxo,Hxo,Vxo,Gxo,jxo,$xo,Wxo,zxo,Kxo,Yxo,Jxo,Xxo,Zxo,eCo,tCo,rCo,nCo,iQr,oQr,sQr,aQr,cQr,iCo,oCo,sCo,aCo,cCo,lCo,lQr,uQr,uCo,fCo,dCo,fQr,dQr,pCo,hCo,mCo,pQr,hQr,mQr,gQr,yQr,AQr,vQr,bQr,EQr,SQr,_Qr,xQr,CQr,TQr,wQr,IQr,DQr,gCo,yCo,ACo,vCo,bCo,ECo,SCo,_Co,xCo,CCo,TCo,wCo,ICo,DCo,OCo,RCo,NCo,PCo,OQr,RQr,kCo,BCo,MCo,NQr=G(()=>{HTt();VBr="aws.lambda.invoked_arn",GBr="db.system",jBr="db.connection_string",$Br="db.user",WBr="db.jdbc.driver_classname",zBr="db.name",KBr="db.statement",YBr="db.operation",JBr="db.mssql.instance_name",XBr="db.cassandra.keyspace",ZBr="db.cassandra.page_size",eMr="db.cassandra.consistency_level",tMr="db.cassandra.table",rMr="db.cassandra.idempotence",nMr="db.cassandra.speculative_execution_count",iMr="db.cassandra.coordinator.id",oMr="db.cassandra.coordinator.dc",sMr="db.hbase.namespace",aMr="db.redis.database_index",cMr="db.mongodb.collection",lMr="db.sql.table",uMr="exception.type",fMr="exception.message",dMr="exception.stacktrace",pMr="exception.escaped",hMr="faas.trigger",mMr="faas.execution",gMr="faas.document.collection",yMr="faas.document.operation",AMr="faas.document.time",vMr="faas.document.name",bMr="faas.time",EMr="faas.cron",SMr="faas.coldstart",_Mr="faas.invoked_name",xMr="faas.invoked_provider",CMr="faas.invoked_region",TMr="net.transport",wMr="net.peer.ip",IMr="net.peer.port",DMr="net.peer.name",OMr="net.host.ip",RMr="net.host.port",NMr="net.host.name",PMr="net.host.connection.type",kMr="net.host.connection.subtype",BMr="net.host.carrier.name",MMr="net.host.carrier.mcc",LMr="net.host.carrier.mnc",UMr="net.host.carrier.icc",FMr="peer.service",QMr="enduser.id",qMr="enduser.role",HMr="enduser.scope",VMr="thread.id",GMr="thread.name",jMr="code.function",$Mr="code.namespace",WMr="code.filepath",zMr="code.lineno",KMr="http.method",YMr="http.url",JMr="http.target",XMr="http.host",ZMr="http.scheme",eLr="http.status_code",tLr="http.flavor",rLr="http.user_agent",nLr="http.request_content_length",iLr="http.request_content_length_uncompressed",oLr="http.response_content_length",sLr="http.response_content_length_uncompressed",aLr="http.server_name",cLr="http.route",lLr="http.client_ip",uLr="aws.dynamodb.table_names",fLr="aws.dynamodb.consumed_capacity",dLr="aws.dynamodb.item_collection_metrics",pLr="aws.dynamodb.provisioned_read_capacity",hLr="aws.dynamodb.provisioned_write_capacity",mLr="aws.dynamodb.consistent_read",gLr="aws.dynamodb.projection",yLr="aws.dynamodb.limit",ALr="aws.dynamodb.attributes_to_get",vLr="aws.dynamodb.index_name",bLr="aws.dynamodb.select",ELr="aws.dynamodb.global_secondary_indexes",SLr="aws.dynamodb.local_secondary_indexes",_Lr="aws.dynamodb.exclusive_start_table",xLr="aws.dynamodb.table_count",CLr="aws.dynamodb.scan_forward",TLr="aws.dynamodb.segment",wLr="aws.dynamodb.total_segments",ILr="aws.dynamodb.count",DLr="aws.dynamodb.scanned_count",OLr="aws.dynamodb.attribute_definitions",RLr="aws.dynamodb.global_secondary_index_updates",NLr="messaging.system",PLr="messaging.destination",kLr="messaging.destination_kind",BLr="messaging.temp_destination",MLr="messaging.protocol",LLr="messaging.protocol_version",ULr="messaging.url",FLr="messaging.message_id",QLr="messaging.conversation_id",qLr="messaging.message_payload_size_bytes",HLr="messaging.message_payload_compressed_size_bytes",VLr="messaging.operation",GLr="messaging.consumer_id",jLr="messaging.rabbitmq.routing_key",$Lr="messaging.kafka.message_key",WLr="messaging.kafka.consumer_group",zLr="messaging.kafka.client_id",KLr="messaging.kafka.partition",YLr="messaging.kafka.tombstone",JLr="rpc.system",XLr="rpc.service",ZLr="rpc.method",eUr="rpc.grpc.status_code",tUr="rpc.jsonrpc.version",rUr="rpc.jsonrpc.request_id",nUr="rpc.jsonrpc.error_code",iUr="rpc.jsonrpc.error_message",oUr="message.type",sUr="message.id",aUr="message.compressed_size",cUr="message.uncompressed_size",Bbo=VBr,Mbo=GBr,Lbo=jBr,Ubo=$Br,Fbo=WBr,Qbo=zBr,qbo=KBr,Hbo=YBr,Vbo=JBr,Gbo=XBr,jbo=ZBr,$bo=eMr,Wbo=tMr,zbo=rMr,Kbo=nMr,Ybo=iMr,Jbo=oMr,Xbo=sMr,Zbo=aMr,eEo=cMr,tEo=lMr,rEo=uMr,nEo=fMr,iEo=dMr,oEo=pMr,sEo=hMr,aEo=mMr,cEo=gMr,lEo=yMr,uEo=AMr,fEo=vMr,dEo=bMr,pEo=EMr,hEo=SMr,mEo=_Mr,gEo=xMr,yEo=CMr,AEo=TMr,vEo=wMr,bEo=IMr,EEo=DMr,SEo=OMr,_Eo=RMr,xEo=NMr,CEo=PMr,TEo=kMr,wEo=BMr,IEo=MMr,DEo=LMr,OEo=UMr,REo=FMr,NEo=QMr,PEo=qMr,kEo=HMr,BEo=VMr,MEo=GMr,LEo=jMr,UEo=$Mr,FEo=WMr,QEo=zMr,qEo=KMr,HEo=YMr,VEo=JMr,GEo=XMr,jEo=ZMr,$Eo=eLr,WEo=tLr,zEo=rLr,KEo=nLr,YEo=iLr,JEo=oLr,XEo=sLr,ZEo=aLr,eSo=cLr,tSo=lLr,rSo=uLr,nSo=fLr,iSo=dLr,oSo=pLr,sSo=hLr,aSo=mLr,cSo=gLr,lSo=yLr,uSo=ALr,fSo=vLr,dSo=bLr,pSo=ELr,hSo=SLr,mSo=_Lr,gSo=xLr,ySo=CLr,ASo=TLr,vSo=wLr,bSo=ILr,ESo=DLr,SSo=OLr,_So=RLr,xSo=NLr,CSo=PLr,TSo=kLr,wSo=BLr,ISo=MLr,DSo=LLr,OSo=ULr,RSo=FLr,NSo=QLr,PSo=qLr,kSo=HLr,BSo=VLr,MSo=GLr,LSo=jLr,USo=$Lr,FSo=WLr,QSo=zLr,qSo=KLr,HSo=YLr,VSo=JLr,GSo=XLr,jSo=ZLr,$So=eUr,WSo=tUr,zSo=rUr,KSo=nUr,YSo=iUr,JSo=oUr,XSo=sUr,ZSo=aUr,e_o=cUr,fte=Bh([VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,_Mr,xMr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,kMr,BMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,_Lr,xLr,CLr,TLr,wLr,ILr,DLr,OLr,RLr,NLr,PLr,kLr,BLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr]),lUr="other_sql",uUr="mssql",fUr="mysql",dUr="oracle",pUr="db2",hUr="postgresql",mUr="redshift",gUr="hive",yUr="cloudscape",AUr="hsqldb",vUr="progress",bUr="maxdb",EUr="hanadb",SUr="ingres",_Ur="firstsql",xUr="edb",CUr="cache",TUr="adabas",wUr="firebird",IUr="derby",DUr="filemaker",OUr="informix",RUr="instantdb",NUr="interbase",PUr="mariadb",kUr="netezza",BUr="pervasive",MUr="pointbase",LUr="sqlite",UUr="sybase",FUr="teradata",QUr="vertica",qUr="h2",HUr="coldfusion",VUr="cassandra",GUr="hbase",jUr="mongodb",$Ur="redis",WUr="couchbase",zUr="couchdb",KUr="cosmosdb",YUr="dynamodb",JUr="neo4j",XUr="geode",ZUr="elasticsearch",eFr="memcached",tFr="cockroachdb",t_o=lUr,r_o=uUr,n_o=fUr,i_o=dUr,o_o=pUr,s_o=hUr,a_o=mUr,c_o=gUr,l_o=yUr,u_o=AUr,f_o=vUr,d_o=bUr,p_o=EUr,h_o=SUr,m_o=_Ur,g_o=xUr,y_o=CUr,A_o=TUr,v_o=wUr,b_o=IUr,E_o=DUr,S_o=OUr,__o=RUr,x_o=NUr,C_o=PUr,T_o=kUr,w_o=BUr,I_o=MUr,D_o=LUr,O_o=UUr,R_o=FUr,N_o=QUr,P_o=qUr,k_o=HUr,B_o=VUr,M_o=GUr,L_o=jUr,U_o=$Ur,F_o=WUr,Q_o=zUr,q_o=KUr,H_o=YUr,V_o=JUr,G_o=XUr,j_o=ZUr,$_o=eFr,W_o=tFr,z_o=Bh([lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr,_Ur,xUr,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,kUr,BUr,MUr,LUr,UUr,FUr,QUr,qUr,HUr,VUr,GUr,jUr,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,ZUr,eFr,tFr]),rFr="all",nFr="each_quorum",iFr="quorum",oFr="local_quorum",sFr="one",aFr="two",cFr="three",lFr="local_one",uFr="any",fFr="serial",dFr="local_serial",K_o=rFr,Y_o=nFr,J_o=iFr,X_o=oFr,Z_o=sFr,exo=aFr,txo=cFr,rxo=lFr,nxo=uFr,ixo=fFr,oxo=dFr,sxo=Bh([rFr,nFr,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr]),pFr="datasource",hFr="http",mFr="pubsub",gFr="timer",yFr="other",axo=pFr,cxo=hFr,lxo=mFr,uxo=gFr,fxo=yFr,dxo=Bh([pFr,hFr,mFr,gFr,yFr]),AFr="insert",vFr="edit",bFr="delete",pxo=AFr,hxo=vFr,mxo=bFr,gxo=Bh([AFr,vFr,bFr]),EFr="alibaba_cloud",SFr="aws",_Fr="azure",xFr="gcp",yxo=EFr,Axo=SFr,vxo=_Fr,bxo=xFr,Exo=Bh([EFr,SFr,_Fr,xFr]),CFr="ip_tcp",TFr="ip_udp",wFr="ip",IFr="unix",DFr="pipe",OFr="inproc",RFr="other",Sxo=CFr,_xo=TFr,xxo=wFr,Cxo=IFr,Txo=DFr,wxo=OFr,Ixo=RFr,Dxo=Bh([CFr,TFr,wFr,IFr,DFr,OFr,RFr]),NFr="wifi",PFr="wired",kFr="cell",BFr="unavailable",MFr="unknown",Oxo=NFr,Rxo=PFr,Nxo=kFr,Pxo=BFr,kxo=MFr,Bxo=Bh([NFr,PFr,kFr,BFr,MFr]),LFr="gprs",UFr="edge",FFr="umts",QFr="cdma",qFr="evdo_0",HFr="evdo_a",VFr="cdma2000_1xrtt",GFr="hsdpa",jFr="hsupa",$Fr="hspa",WFr="iden",zFr="evdo_b",KFr="lte",YFr="ehrpd",JFr="hspap",XFr="gsm",ZFr="td_scdma",eQr="iwlan",tQr="nr",rQr="nrnsa",nQr="lte_ca",Mxo=LFr,Lxo=UFr,Uxo=FFr,Fxo=QFr,Qxo=qFr,qxo=HFr,Hxo=VFr,Vxo=GFr,Gxo=jFr,jxo=$Fr,$xo=WFr,Wxo=zFr,zxo=KFr,Kxo=YFr,Yxo=JFr,Jxo=XFr,Xxo=ZFr,Zxo=eQr,eCo=tQr,tCo=rQr,rCo=nQr,nCo=Bh([LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,JFr,XFr,ZFr,eQr,tQr,rQr,nQr]),iQr="1.0",oQr="1.1",sQr="2.0",aQr="SPDY",cQr="QUIC",iCo=iQr,oCo=oQr,sCo=sQr,aCo=aQr,cCo=cQr,lCo={HTTP_1_0:iQr,HTTP_1_1:oQr,HTTP_2_0:sQr,SPDY:aQr,QUIC:cQr},lQr="queue",uQr="topic",uCo=lQr,fCo=uQr,dCo=Bh([lQr,uQr]),fQr="receive",dQr="process",pCo=fQr,hCo=dQr,mCo=Bh([fQr,dQr]),pQr=0,hQr=1,mQr=2,gQr=3,yQr=4,AQr=5,vQr=6,bQr=7,EQr=8,SQr=9,_Qr=10,xQr=11,CQr=12,TQr=13,wQr=14,IQr=15,DQr=16,gCo=pQr,yCo=hQr,ACo=mQr,vCo=gQr,bCo=yQr,ECo=AQr,SCo=vQr,_Co=bQr,xCo=EQr,CCo=SQr,TCo=_Qr,wCo=xQr,ICo=CQr,DCo=TQr,OCo=wQr,RCo=IQr,NCo=DQr,PCo={OK:pQr,CANCELLED:hQr,UNKNOWN:mQr,INVALID_ARGUMENT:gQr,DEADLINE_EXCEEDED:yQr,NOT_FOUND:AQr,ALREADY_EXISTS:vQr,PERMISSION_DENIED:bQr,RESOURCE_EXHAUSTED:EQr,FAILED_PRECONDITION:SQr,ABORTED:_Qr,OUT_OF_RANGE:xQr,UNIMPLEMENTED:CQr,INTERNAL:TQr,UNAVAILABLE:wQr,DATA_LOSS:IQr,UNAUTHENTICATED:DQr},OQr="SENT",RQr="RECEIVED",kCo=OQr,BCo=RQr,MCo=Bh([OQr,RQr])});var PQr=G(()=>{NQr()});var kQr,BQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,_qr,xqr,Cqr,Tqr,wqr,Iqr,Dqr,Oqr,Rqr,Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,Kqr,Yqr,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,iHr,oHr,sHr,LCo,UCo,FCo,QCo,qCo,HCo,VCo,GCo,jCo,$Co,WCo,zCo,KCo,YCo,JCo,XCo,ZCo,eTo,tTo,rTo,nTo,iTo,oTo,sTo,aTo,cTo,lTo,uTo,fTo,dTo,pTo,hTo,mTo,gTo,yTo,ATo,vTo,bTo,ETo,STo,_To,xTo,CTo,TTo,wTo,ITo,DTo,OTo,RTo,NTo,PTo,kTo,BTo,MTo,LTo,UTo,FTo,QTo,qTo,HTo,VTo,GTo,jTo,$To,WTo,zTo,KTo,YTo,JTo,XTo,ZTo,e4o,t4o,r4o,n4o,i4o,o4o,s4o,a4o,c4o,l4o,u4o,aHr,cHr,lHr,uHr,f4o,d4o,p4o,h4o,m4o,fHr,dHr,pHr,hHr,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,_Hr,xHr,CHr,THr,wHr,g4o,y4o,A4o,v4o,b4o,E4o,S4o,_4o,x4o,C4o,T4o,w4o,I4o,D4o,O4o,R4o,N4o,P4o,IHr,DHr,k4o,B4o,M4o,OHr,RHr,NHr,PHr,kHr,BHr,MHr,L4o,U4o,F4o,Q4o,q4o,H4o,V4o,G4o,LHr,UHr,FHr,QHr,qHr,HHr,VHr,GHr,jHr,$Hr,WHr,j4o,$4o,W4o,z4o,K4o,Y4o,J4o,X4o,Z4o,e6o,t6o,r6o,zHr,KHr,YHr,JHr,XHr,ZHr,eVr,tVr,rVr,nVr,n6o,i6o,o6o,s6o,a6o,c6o,l6o,u6o,f6o,d6o,p6o,iVr=G(()=>{HTt();kQr="cloud.provider",BQr="cloud.account.id",MQr="cloud.region",LQr="cloud.availability_zone",UQr="cloud.platform",FQr="aws.ecs.container.arn",QQr="aws.ecs.cluster.arn",qQr="aws.ecs.launchtype",HQr="aws.ecs.task.arn",VQr="aws.ecs.task.family",GQr="aws.ecs.task.revision",jQr="aws.eks.cluster.arn",$Qr="aws.log.group.names",WQr="aws.log.group.arns",zQr="aws.log.stream.names",KQr="aws.log.stream.arns",YQr="container.name",JQr="container.id",XQr="container.runtime",ZQr="container.image.name",eqr="container.image.tag",tqr="deployment.environment",rqr="device.id",nqr="device.model.identifier",iqr="device.model.name",oqr="faas.name",sqr="faas.id",aqr="faas.version",cqr="faas.instance",lqr="faas.max_memory",uqr="host.id",fqr="host.name",dqr="host.type",pqr="host.arch",hqr="host.image.name",mqr="host.image.id",gqr="host.image.version",yqr="k8s.cluster.name",Aqr="k8s.node.name",vqr="k8s.node.uid",bqr="k8s.namespace.name",Eqr="k8s.pod.uid",Sqr="k8s.pod.name",_qr="k8s.container.name",xqr="k8s.replicaset.uid",Cqr="k8s.replicaset.name",Tqr="k8s.deployment.uid",wqr="k8s.deployment.name",Iqr="k8s.statefulset.uid",Dqr="k8s.statefulset.name",Oqr="k8s.daemonset.uid",Rqr="k8s.daemonset.name",Nqr="k8s.job.uid",Pqr="k8s.job.name",kqr="k8s.cronjob.uid",Bqr="k8s.cronjob.name",Mqr="os.type",Lqr="os.description",Uqr="os.name",Fqr="os.version",Qqr="process.pid",qqr="process.executable.name",Hqr="process.executable.path",Vqr="process.command",Gqr="process.command_line",jqr="process.command_args",$qr="process.owner",Wqr="process.runtime.name",zqr="process.runtime.version",Kqr="process.runtime.description",Yqr="service.name",Jqr="service.namespace",Xqr="service.instance.id",Zqr="service.version",eHr="telemetry.sdk.name",tHr="telemetry.sdk.language",rHr="telemetry.sdk.version",nHr="telemetry.auto.version",iHr="webengine.name",oHr="webengine.version",sHr="webengine.description",LCo=kQr,UCo=BQr,FCo=MQr,QCo=LQr,qCo=UQr,HCo=FQr,VCo=QQr,GCo=qQr,jCo=HQr,$Co=VQr,WCo=GQr,zCo=jQr,KCo=$Qr,YCo=WQr,JCo=zQr,XCo=KQr,ZCo=YQr,eTo=JQr,tTo=XQr,rTo=ZQr,nTo=eqr,iTo=tqr,oTo=rqr,sTo=nqr,aTo=iqr,cTo=oqr,lTo=sqr,uTo=aqr,fTo=cqr,dTo=lqr,pTo=uqr,hTo=fqr,mTo=dqr,gTo=pqr,yTo=hqr,ATo=mqr,vTo=gqr,bTo=yqr,ETo=Aqr,STo=vqr,_To=bqr,xTo=Eqr,CTo=Sqr,TTo=_qr,wTo=xqr,ITo=Cqr,DTo=Tqr,OTo=wqr,RTo=Iqr,NTo=Dqr,PTo=Oqr,kTo=Rqr,BTo=Nqr,MTo=Pqr,LTo=kqr,UTo=Bqr,FTo=Mqr,QTo=Lqr,qTo=Uqr,HTo=Fqr,VTo=Qqr,GTo=qqr,jTo=Hqr,$To=Vqr,WTo=Gqr,zTo=jqr,KTo=$qr,YTo=Wqr,JTo=zqr,XTo=Kqr,ZTo=Yqr,e4o=Jqr,t4o=Xqr,r4o=Zqr,n4o=eHr,i4o=tHr,o4o=rHr,s4o=nHr,a4o=iHr,c4o=oHr,l4o=sHr,u4o=Bh([kQr,BQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,_qr,xqr,Cqr,Tqr,wqr,Iqr,Dqr,Oqr,Rqr,Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,Kqr,Yqr,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,iHr,oHr,sHr]),aHr="alibaba_cloud",cHr="aws",lHr="azure",uHr="gcp",f4o=aHr,d4o=cHr,p4o=lHr,h4o=uHr,m4o=Bh([aHr,cHr,lHr,uHr]),fHr="alibaba_cloud_ecs",dHr="alibaba_cloud_fc",pHr="aws_ec2",hHr="aws_ecs",mHr="aws_eks",gHr="aws_lambda",yHr="aws_elastic_beanstalk",AHr="azure_vm",vHr="azure_container_instances",bHr="azure_aks",EHr="azure_functions",SHr="azure_app_service",_Hr="gcp_compute_engine",xHr="gcp_cloud_run",CHr="gcp_kubernetes_engine",THr="gcp_cloud_functions",wHr="gcp_app_engine",g4o=fHr,y4o=dHr,A4o=pHr,v4o=hHr,b4o=mHr,E4o=gHr,S4o=yHr,_4o=AHr,x4o=vHr,C4o=bHr,T4o=EHr,w4o=SHr,I4o=_Hr,D4o=xHr,O4o=CHr,R4o=THr,N4o=wHr,P4o=Bh([fHr,dHr,pHr,hHr,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,_Hr,xHr,CHr,THr,wHr]),IHr="ec2",DHr="fargate",k4o=IHr,B4o=DHr,M4o=Bh([IHr,DHr]),OHr="amd64",RHr="arm32",NHr="arm64",PHr="ia64",kHr="ppc32",BHr="ppc64",MHr="x86",L4o=OHr,U4o=RHr,F4o=NHr,Q4o=PHr,q4o=kHr,H4o=BHr,V4o=MHr,G4o=Bh([OHr,RHr,NHr,PHr,kHr,BHr,MHr]),LHr="windows",UHr="linux",FHr="darwin",QHr="freebsd",qHr="netbsd",HHr="openbsd",VHr="dragonflybsd",GHr="hpux",jHr="aix",$Hr="solaris",WHr="z_os",j4o=LHr,$4o=UHr,W4o=FHr,z4o=QHr,K4o=qHr,Y4o=HHr,J4o=VHr,X4o=GHr,Z4o=jHr,e6o=$Hr,t6o=WHr,r6o=Bh([LHr,UHr,FHr,QHr,qHr,HHr,VHr,GHr,jHr,$Hr,WHr]),zHr="cpp",KHr="dotnet",YHr="erlang",JHr="go",XHr="java",ZHr="nodejs",eVr="php",tVr="python",rVr="ruby",nVr="webjs",n6o=zHr,i6o=KHr,o6o=YHr,s6o=JHr,a6o=XHr,c6o=ZHr,l6o=eVr,u6o=tVr,f6o=rVr,d6o=nVr,p6o=Bh([zHr,KHr,YHr,JHr,XHr,ZHr,eVr,tVr,rVr,nVr])});var oVr=G(()=>{iVr()});var h6o,m6o,g6o,y6o,A6o,v6o,b6o,E6o,S6o,_6o,x6o,C6o,T6o,w6o,I6o,D6o,O6o,R6o,N6o,P6o,k6o,B6o,M6o,L6o,U6o,F6o,Q6o,q6o,H6o,V6o,G6o,j6o,$6o,W6o,z6o,K6o,Y6o,J6o,X6o,Z6o,ewo,two,QQc,qQc,rwo,nwo,iwo,owo,swo,awo,cwo,lwo,uwo,fwo,dwo,HQc,pwo,hwo,mwo,gwo,VQc,ywo,Awo,vwo,bwo,Ewo,Swo,_wo,xwo,Cwo,Two,wwo,Iwo,Dwo,Owo,Rwo,GQc,Nwo,Pwo,kwo,Bwo,Mwo,Lwo,Uwo,Fwo,Qwo,qwo,Hwo,Vwo,Gwo,jQc,$Qc,jwo,$wo,Wwo,zwo,Kwo,Ywo,Jwo,Xwo,WQc,Zwo,e5o,t5o,VTt,GTt,r5o,n5o,i5o,o5o,s5o,a5o,c5o,l5o,u5o,zQc,f5o,d5o,KQc,p5o,h5o,YQc,m5o,g5o,y5o,A5o,v5o,b5o,E5o,S5o,_5o,x5o,C5o,T5o,w5o,sVr=G(()=>{h6o="aspnetcore.diagnostics.exception.result",m6o="aborted",g6o="handled",y6o="skipped",A6o="unhandled",v6o="aspnetcore.diagnostics.handler.type",b6o="aspnetcore.rate_limiting.policy",E6o="aspnetcore.rate_limiting.result",S6o="acquired",_6o="endpoint_limiter",x6o="global_limiter",C6o="request_canceled",T6o="aspnetcore.request.is_unhandled",w6o="aspnetcore.routing.is_fallback",I6o="aspnetcore.routing.match_status",D6o="failure",O6o="success",R6o="aspnetcore.user.is_authenticated",N6o="client.address",P6o="client.port",k6o="code.column.number",B6o="code.file.path",M6o="code.function.name",L6o="code.line.number",U6o="code.stacktrace",F6o="db.collection.name",Q6o="db.namespace",q6o="db.operation.batch.size",H6o="db.operation.name",V6o="db.query.summary",G6o="db.query.text",j6o="db.response.status_code",$6o="db.stored_procedure.name",W6o="db.system.name",z6o="mariadb",K6o="microsoft.sql_server",Y6o="mysql",J6o="postgresql",X6o="dotnet.gc.heap.generation",Z6o="gen0",ewo="gen1",two="gen2",QQc="loh",qQc="poh",rwo="error.type",nwo="_OTHER",iwo="exception.escaped",owo="exception.message",swo="exception.stacktrace",awo="exception.type",cwo=t=>`http.request.header.${t}`,lwo="http.request.method",uwo="_OTHER",fwo="CONNECT",dwo="DELETE",HQc="GET",pwo="HEAD",hwo="OPTIONS",mwo="PATCH",gwo="POST",VQc="PUT",ywo="TRACE",Awo="http.request.method_original",vwo="http.request.resend_count",bwo=t=>`http.response.header.${t}`,Ewo="http.response.status_code",Swo="http.route",_wo="jvm.gc.action",xwo="jvm.gc.name",Cwo="jvm.memory.pool.name",Two="jvm.memory.type",wwo="heap",Iwo="non_heap",Dwo="jvm.thread.daemon",Owo="jvm.thread.state",Rwo="blocked",GQc="new",Nwo="runnable",Pwo="terminated",kwo="timed_waiting",Bwo="waiting",Mwo="network.local.address",Lwo="network.local.port",Uwo="network.peer.address",Fwo="network.peer.port",Qwo="network.protocol.name",qwo="network.protocol.version",Hwo="network.transport",Vwo="pipe",Gwo="quic",jQc="tcp",$Qc="udp",jwo="unix",$wo="network.type",Wwo="ipv4",zwo="ipv6",Kwo="otel.scope.name",Ywo="otel.scope.version",Jwo="otel.status_code",Xwo="ERROR",WQc="OK",Zwo="otel.status_description",e5o="server.address",t5o="server.port",VTt="service.name",GTt="service.version",r5o="signalr.connection.status",n5o="app_shutdown",i5o="normal_closure",o5o="timeout",s5o="signalr.transport",a5o="long_polling",c5o="server_sent_events",l5o="web_sockets",u5o="telemetry.sdk.language",zQc="cpp",f5o="dotnet",d5o="erlang",KQc="go",p5o="java",h5o="nodejs",YQc="php",m5o="python",g5o="ruby",y5o="rust",A5o="swift",v5o="webjs",b5o="telemetry.sdk.name",E5o="telemetry.sdk.version",S5o="url.fragment",_5o="url.full",x5o="url.path",C5o="url.query",T5o="url.scheme",w5o="user_agent.original"});var I5o,D5o,O5o,R5o,N5o,P5o,k5o,B5o,M5o,L5o,U5o,F5o,Q5o,q5o,H5o,V5o,G5o,j5o,$5o,W5o,z5o,K5o,Y5o,J5o,X5o,Z5o,eIo,tIo,rIo,nIo,iIo,oIo,sIo,aIo,cIo,lIo,uIo,fIo,dIo,pIo,hIo,mIo,gIo,yIo,AIo,vIo,bIo,EIo,SIo,_Io,xIo,aVr=G(()=>{I5o="aspnetcore.diagnostics.exceptions",D5o="aspnetcore.rate_limiting.active_request_leases",O5o="aspnetcore.rate_limiting.queued_requests",R5o="aspnetcore.rate_limiting.request.time_in_queue",N5o="aspnetcore.rate_limiting.request_lease.duration",P5o="aspnetcore.rate_limiting.requests",k5o="aspnetcore.routing.match_attempts",B5o="db.client.operation.duration",M5o="dotnet.assembly.count",L5o="dotnet.exceptions",U5o="dotnet.gc.collections",F5o="dotnet.gc.heap.total_allocated",Q5o="dotnet.gc.last_collection.heap.fragmentation.size",q5o="dotnet.gc.last_collection.heap.size",H5o="dotnet.gc.last_collection.memory.committed_size",V5o="dotnet.gc.pause.time",G5o="dotnet.jit.compilation.time",j5o="dotnet.jit.compiled_il.size",$5o="dotnet.jit.compiled_methods",W5o="dotnet.monitor.lock_contentions",z5o="dotnet.process.cpu.count",K5o="dotnet.process.cpu.time",Y5o="dotnet.process.memory.working_set",J5o="dotnet.thread_pool.queue.length",X5o="dotnet.thread_pool.thread.count",Z5o="dotnet.thread_pool.work_item.count",eIo="dotnet.timer.count",tIo="http.client.request.duration",rIo="http.server.request.duration",nIo="jvm.class.count",iIo="jvm.class.loaded",oIo="jvm.class.unloaded",sIo="jvm.cpu.count",aIo="jvm.cpu.recent_utilization",cIo="jvm.cpu.time",lIo="jvm.gc.duration",uIo="jvm.memory.committed",fIo="jvm.memory.limit",dIo="jvm.memory.used",pIo="jvm.memory.used_after_last_gc",hIo="jvm.thread.count",mIo="kestrel.active_connections",gIo="kestrel.active_tls_handshakes",yIo="kestrel.connection.duration",AIo="kestrel.queued_connections",vIo="kestrel.queued_requests",bIo="kestrel.rejected_connections",EIo="kestrel.tls_handshake.duration",SIo="kestrel.upgraded_connections",_Io="signalr.server.active_connections",xIo="signalr.server.connection.duration"});var CIo,cVr=G(()=>{CIo="exception"});var Uu={};os(Uu,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>m6o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>g6o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>y6o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>A6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>S6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>_6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>x6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>C6o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>D6o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>O6o,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>h6o,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>v6o,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>b6o,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>E6o,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>T6o,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>w6o,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>I6o,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>R6o,ATTR_CLIENT_ADDRESS:()=>N6o,ATTR_CLIENT_PORT:()=>P6o,ATTR_CODE_COLUMN_NUMBER:()=>k6o,ATTR_CODE_FILE_PATH:()=>B6o,ATTR_CODE_FUNCTION_NAME:()=>M6o,ATTR_CODE_LINE_NUMBER:()=>L6o,ATTR_CODE_STACKTRACE:()=>U6o,ATTR_DB_COLLECTION_NAME:()=>F6o,ATTR_DB_NAMESPACE:()=>Q6o,ATTR_DB_OPERATION_BATCH_SIZE:()=>q6o,ATTR_DB_OPERATION_NAME:()=>H6o,ATTR_DB_QUERY_SUMMARY:()=>V6o,ATTR_DB_QUERY_TEXT:()=>G6o,ATTR_DB_RESPONSE_STATUS_CODE:()=>j6o,ATTR_DB_STORED_PROCEDURE_NAME:()=>$6o,ATTR_DB_SYSTEM_NAME:()=>W6o,ATTR_DOTNET_GC_HEAP_GENERATION:()=>X6o,ATTR_ERROR_TYPE:()=>rwo,ATTR_EXCEPTION_ESCAPED:()=>iwo,ATTR_EXCEPTION_MESSAGE:()=>owo,ATTR_EXCEPTION_STACKTRACE:()=>swo,ATTR_EXCEPTION_TYPE:()=>awo,ATTR_HTTP_REQUEST_HEADER:()=>cwo,ATTR_HTTP_REQUEST_METHOD:()=>lwo,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>Awo,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>vwo,ATTR_HTTP_RESPONSE_HEADER:()=>bwo,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>Ewo,ATTR_HTTP_ROUTE:()=>Swo,ATTR_JVM_GC_ACTION:()=>_wo,ATTR_JVM_GC_NAME:()=>xwo,ATTR_JVM_MEMORY_POOL_NAME:()=>Cwo,ATTR_JVM_MEMORY_TYPE:()=>Two,ATTR_JVM_THREAD_DAEMON:()=>Dwo,ATTR_JVM_THREAD_STATE:()=>Owo,ATTR_NETWORK_LOCAL_ADDRESS:()=>Mwo,ATTR_NETWORK_LOCAL_PORT:()=>Lwo,ATTR_NETWORK_PEER_ADDRESS:()=>Uwo,ATTR_NETWORK_PEER_PORT:()=>Fwo,ATTR_NETWORK_PROTOCOL_NAME:()=>Qwo,ATTR_NETWORK_PROTOCOL_VERSION:()=>qwo,ATTR_NETWORK_TRANSPORT:()=>Hwo,ATTR_NETWORK_TYPE:()=>$wo,ATTR_OTEL_SCOPE_NAME:()=>Kwo,ATTR_OTEL_SCOPE_VERSION:()=>Ywo,ATTR_OTEL_STATUS_CODE:()=>Jwo,ATTR_OTEL_STATUS_DESCRIPTION:()=>Zwo,ATTR_SERVER_ADDRESS:()=>e5o,ATTR_SERVER_PORT:()=>t5o,ATTR_SERVICE_NAME:()=>VTt,ATTR_SERVICE_VERSION:()=>GTt,ATTR_SIGNALR_CONNECTION_STATUS:()=>r5o,ATTR_SIGNALR_TRANSPORT:()=>s5o,ATTR_TELEMETRY_SDK_LANGUAGE:()=>u5o,ATTR_TELEMETRY_SDK_NAME:()=>b5o,ATTR_TELEMETRY_SDK_VERSION:()=>E5o,ATTR_URL_FRAGMENT:()=>S5o,ATTR_URL_FULL:()=>_5o,ATTR_URL_PATH:()=>x5o,ATTR_URL_QUERY:()=>C5o,ATTR_URL_SCHEME:()=>T5o,ATTR_USER_AGENT_ORIGINAL:()=>w5o,AWSECSLAUNCHTYPEVALUES_EC2:()=>k4o,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>B4o,AwsEcsLaunchtypeValues:()=>M4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>g4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>y4o,CLOUDPLATFORMVALUES_AWS_EC2:()=>A4o,CLOUDPLATFORMVALUES_AWS_ECS:()=>v4o,CLOUDPLATFORMVALUES_AWS_EKS:()=>b4o,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>S4o,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>E4o,CLOUDPLATFORMVALUES_AZURE_AKS:()=>C4o,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>w4o,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>x4o,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>T4o,CLOUDPLATFORMVALUES_AZURE_VM:()=>_4o,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>N4o,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>R4o,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>D4o,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>I4o,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>O4o,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>f4o,CLOUDPROVIDERVALUES_AWS:()=>d4o,CLOUDPROVIDERVALUES_AZURE:()=>p4o,CLOUDPROVIDERVALUES_GCP:()=>h4o,CloudPlatformValues:()=>P4o,CloudProviderValues:()=>m4o,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>K_o,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>nxo,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Y_o,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>rxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>X_o,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>oxo,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>Z_o,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>J_o,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>ixo,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>txo,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>exo,DBSYSTEMVALUES_ADABAS:()=>A_o,DBSYSTEMVALUES_CACHE:()=>y_o,DBSYSTEMVALUES_CASSANDRA:()=>B_o,DBSYSTEMVALUES_CLOUDSCAPE:()=>l_o,DBSYSTEMVALUES_COCKROACHDB:()=>W_o,DBSYSTEMVALUES_COLDFUSION:()=>k_o,DBSYSTEMVALUES_COSMOSDB:()=>q_o,DBSYSTEMVALUES_COUCHBASE:()=>F_o,DBSYSTEMVALUES_COUCHDB:()=>Q_o,DBSYSTEMVALUES_DB2:()=>o_o,DBSYSTEMVALUES_DERBY:()=>b_o,DBSYSTEMVALUES_DYNAMODB:()=>H_o,DBSYSTEMVALUES_EDB:()=>g_o,DBSYSTEMVALUES_ELASTICSEARCH:()=>j_o,DBSYSTEMVALUES_FILEMAKER:()=>E_o,DBSYSTEMVALUES_FIREBIRD:()=>v_o,DBSYSTEMVALUES_FIRSTSQL:()=>m_o,DBSYSTEMVALUES_GEODE:()=>G_o,DBSYSTEMVALUES_H2:()=>P_o,DBSYSTEMVALUES_HANADB:()=>p_o,DBSYSTEMVALUES_HBASE:()=>M_o,DBSYSTEMVALUES_HIVE:()=>c_o,DBSYSTEMVALUES_HSQLDB:()=>u_o,DBSYSTEMVALUES_INFORMIX:()=>S_o,DBSYSTEMVALUES_INGRES:()=>h_o,DBSYSTEMVALUES_INSTANTDB:()=>__o,DBSYSTEMVALUES_INTERBASE:()=>x_o,DBSYSTEMVALUES_MARIADB:()=>C_o,DBSYSTEMVALUES_MAXDB:()=>d_o,DBSYSTEMVALUES_MEMCACHED:()=>$_o,DBSYSTEMVALUES_MONGODB:()=>L_o,DBSYSTEMVALUES_MSSQL:()=>r_o,DBSYSTEMVALUES_MYSQL:()=>n_o,DBSYSTEMVALUES_NEO4J:()=>V_o,DBSYSTEMVALUES_NETEZZA:()=>T_o,DBSYSTEMVALUES_ORACLE:()=>i_o,DBSYSTEMVALUES_OTHER_SQL:()=>t_o,DBSYSTEMVALUES_PERVASIVE:()=>w_o,DBSYSTEMVALUES_POINTBASE:()=>I_o,DBSYSTEMVALUES_POSTGRESQL:()=>s_o,DBSYSTEMVALUES_PROGRESS:()=>f_o,DBSYSTEMVALUES_REDIS:()=>U_o,DBSYSTEMVALUES_REDSHIFT:()=>a_o,DBSYSTEMVALUES_SQLITE:()=>D_o,DBSYSTEMVALUES_SYBASE:()=>O_o,DBSYSTEMVALUES_TERADATA:()=>R_o,DBSYSTEMVALUES_VERTICA:()=>N_o,DB_SYSTEM_NAME_VALUE_MARIADB:()=>z6o,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>K6o,DB_SYSTEM_NAME_VALUE_MYSQL:()=>Y6o,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>J6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>Z6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>ewo,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>two,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>QQc,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>qQc,DbCassandraConsistencyLevelValues:()=>sxo,DbSystemValues:()=>z_o,ERROR_TYPE_VALUE_OTHER:()=>nwo,EVENT_EXCEPTION:()=>CIo,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>mxo,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>hxo,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>pxo,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>yxo,FAASINVOKEDPROVIDERVALUES_AWS:()=>Axo,FAASINVOKEDPROVIDERVALUES_AZURE:()=>vxo,FAASINVOKEDPROVIDERVALUES_GCP:()=>bxo,FAASTRIGGERVALUES_DATASOURCE:()=>axo,FAASTRIGGERVALUES_HTTP:()=>cxo,FAASTRIGGERVALUES_OTHER:()=>fxo,FAASTRIGGERVALUES_PUBSUB:()=>lxo,FAASTRIGGERVALUES_TIMER:()=>uxo,FaasDocumentOperationValues:()=>gxo,FaasInvokedProviderValues:()=>Exo,FaasTriggerValues:()=>dxo,HOSTARCHVALUES_AMD64:()=>L4o,HOSTARCHVALUES_ARM32:()=>U4o,HOSTARCHVALUES_ARM64:()=>F4o,HOSTARCHVALUES_IA64:()=>Q4o,HOSTARCHVALUES_PPC32:()=>q4o,HOSTARCHVALUES_PPC64:()=>H4o,HOSTARCHVALUES_X86:()=>V4o,HTTPFLAVORVALUES_HTTP_1_0:()=>iCo,HTTPFLAVORVALUES_HTTP_1_1:()=>oCo,HTTPFLAVORVALUES_HTTP_2_0:()=>sCo,HTTPFLAVORVALUES_QUIC:()=>cCo,HTTPFLAVORVALUES_SPDY:()=>aCo,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>fwo,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>dwo,HTTP_REQUEST_METHOD_VALUE_GET:()=>HQc,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>pwo,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>hwo,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>uwo,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>mwo,HTTP_REQUEST_METHOD_VALUE_POST:()=>gwo,HTTP_REQUEST_METHOD_VALUE_PUT:()=>VQc,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>ywo,HostArchValues:()=>G4o,HttpFlavorValues:()=>lCo,JVM_MEMORY_TYPE_VALUE_HEAP:()=>wwo,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>Iwo,JVM_THREAD_STATE_VALUE_BLOCKED:()=>Rwo,JVM_THREAD_STATE_VALUE_NEW:()=>GQc,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>Nwo,JVM_THREAD_STATE_VALUE_TERMINATED:()=>Pwo,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>kwo,JVM_THREAD_STATE_VALUE_WAITING:()=>Bwo,MESSAGETYPEVALUES_RECEIVED:()=>BCo,MESSAGETYPEVALUES_SENT:()=>kCo,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>uCo,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>fCo,MESSAGINGOPERATIONVALUES_PROCESS:()=>hCo,MESSAGINGOPERATIONVALUES_RECEIVE:()=>pCo,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>I5o,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>D5o,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>O5o,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>P5o,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>N5o,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>R5o,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>k5o,METRIC_DB_CLIENT_OPERATION_DURATION:()=>B5o,METRIC_DOTNET_ASSEMBLY_COUNT:()=>M5o,METRIC_DOTNET_EXCEPTIONS:()=>L5o,METRIC_DOTNET_GC_COLLECTIONS:()=>U5o,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>F5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>Q5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>q5o,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>H5o,METRIC_DOTNET_GC_PAUSE_TIME:()=>V5o,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>G5o,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>j5o,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>$5o,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>W5o,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>z5o,METRIC_DOTNET_PROCESS_CPU_TIME:()=>K5o,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>Y5o,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>J5o,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>X5o,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>Z5o,METRIC_DOTNET_TIMER_COUNT:()=>eIo,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>tIo,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>rIo,METRIC_JVM_CLASS_COUNT:()=>nIo,METRIC_JVM_CLASS_LOADED:()=>iIo,METRIC_JVM_CLASS_UNLOADED:()=>oIo,METRIC_JVM_CPU_COUNT:()=>sIo,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>aIo,METRIC_JVM_CPU_TIME:()=>cIo,METRIC_JVM_GC_DURATION:()=>lIo,METRIC_JVM_MEMORY_COMMITTED:()=>uIo,METRIC_JVM_MEMORY_LIMIT:()=>fIo,METRIC_JVM_MEMORY_USED:()=>dIo,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>pIo,METRIC_JVM_THREAD_COUNT:()=>hIo,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>mIo,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>gIo,METRIC_KESTREL_CONNECTION_DURATION:()=>yIo,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>AIo,METRIC_KESTREL_QUEUED_REQUESTS:()=>vIo,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>bIo,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>EIo,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>SIo,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>_Io,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>xIo,MessageTypeValues:()=>MCo,MessagingDestinationKindValues:()=>dCo,MessagingOperationValues:()=>mCo,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Fxo,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Hxo,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Lxo,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Kxo,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Qxo,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>qxo,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Wxo,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Mxo,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Jxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Vxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>jxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Yxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Gxo,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>$xo,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Zxo,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>zxo,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>rCo,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>eCo,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>tCo,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Xxo,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Uxo,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Nxo,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Pxo,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>kxo,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Oxo,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Rxo,NETTRANSPORTVALUES_INPROC:()=>wxo,NETTRANSPORTVALUES_IP:()=>xxo,NETTRANSPORTVALUES_IP_TCP:()=>Sxo,NETTRANSPORTVALUES_IP_UDP:()=>_xo,NETTRANSPORTVALUES_OTHER:()=>Ixo,NETTRANSPORTVALUES_PIPE:()=>Txo,NETTRANSPORTVALUES_UNIX:()=>Cxo,NETWORK_TRANSPORT_VALUE_PIPE:()=>Vwo,NETWORK_TRANSPORT_VALUE_QUIC:()=>Gwo,NETWORK_TRANSPORT_VALUE_TCP:()=>jQc,NETWORK_TRANSPORT_VALUE_UDP:()=>$Qc,NETWORK_TRANSPORT_VALUE_UNIX:()=>jwo,NETWORK_TYPE_VALUE_IPV4:()=>Wwo,NETWORK_TYPE_VALUE_IPV6:()=>zwo,NetHostConnectionSubtypeValues:()=>nCo,NetHostConnectionTypeValues:()=>Bxo,NetTransportValues:()=>Dxo,OSTYPEVALUES_AIX:()=>Z4o,OSTYPEVALUES_DARWIN:()=>W4o,OSTYPEVALUES_DRAGONFLYBSD:()=>J4o,OSTYPEVALUES_FREEBSD:()=>z4o,OSTYPEVALUES_HPUX:()=>X4o,OSTYPEVALUES_LINUX:()=>$4o,OSTYPEVALUES_NETBSD:()=>K4o,OSTYPEVALUES_OPENBSD:()=>Y4o,OSTYPEVALUES_SOLARIS:()=>e6o,OSTYPEVALUES_WINDOWS:()=>j4o,OSTYPEVALUES_Z_OS:()=>t6o,OTEL_STATUS_CODE_VALUE_ERROR:()=>Xwo,OTEL_STATUS_CODE_VALUE_OK:()=>WQc,OsTypeValues:()=>r6o,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>TCo,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>SCo,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>yCo,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>RCo,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>bCo,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>CCo,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>DCo,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>vCo,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>ECo,RPCGRPCSTATUSCODEVALUES_OK:()=>gCo,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>wCo,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>_Co,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>xCo,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>NCo,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>OCo,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>ICo,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>ACo,RpcGrpcStatusCodeValues:()=>PCo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>uSo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>SSo,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>aSo,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>nSo,SEMATTRS_AWS_DYNAMODB_COUNT:()=>bSo,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>mSo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>pSo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>_So,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>fSo,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>iSo,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>lSo,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>hSo,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>cSo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>oSo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>sSo,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>ESo,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>ySo,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>ASo,SEMATTRS_AWS_DYNAMODB_SELECT:()=>dSo,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>gSo,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>rSo,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>vSo,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Bbo,SEMATTRS_CODE_FILEPATH:()=>FEo,SEMATTRS_CODE_FUNCTION:()=>LEo,SEMATTRS_CODE_LINENO:()=>QEo,SEMATTRS_CODE_NAMESPACE:()=>UEo,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>$bo,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>Jbo,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>Ybo,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>zbo,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Gbo,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>jbo,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>Kbo,SEMATTRS_DB_CASSANDRA_TABLE:()=>Wbo,SEMATTRS_DB_CONNECTION_STRING:()=>Lbo,SEMATTRS_DB_HBASE_NAMESPACE:()=>Xbo,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>Fbo,SEMATTRS_DB_MONGODB_COLLECTION:()=>eEo,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Vbo,SEMATTRS_DB_NAME:()=>Qbo,SEMATTRS_DB_OPERATION:()=>Hbo,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>Zbo,SEMATTRS_DB_SQL_TABLE:()=>tEo,SEMATTRS_DB_STATEMENT:()=>qbo,SEMATTRS_DB_SYSTEM:()=>Mbo,SEMATTRS_DB_USER:()=>Ubo,SEMATTRS_ENDUSER_ID:()=>NEo,SEMATTRS_ENDUSER_ROLE:()=>PEo,SEMATTRS_ENDUSER_SCOPE:()=>kEo,SEMATTRS_EXCEPTION_ESCAPED:()=>oEo,SEMATTRS_EXCEPTION_MESSAGE:()=>nEo,SEMATTRS_EXCEPTION_STACKTRACE:()=>iEo,SEMATTRS_EXCEPTION_TYPE:()=>rEo,SEMATTRS_FAAS_COLDSTART:()=>hEo,SEMATTRS_FAAS_CRON:()=>pEo,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>cEo,SEMATTRS_FAAS_DOCUMENT_NAME:()=>fEo,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>lEo,SEMATTRS_FAAS_DOCUMENT_TIME:()=>uEo,SEMATTRS_FAAS_EXECUTION:()=>aEo,SEMATTRS_FAAS_INVOKED_NAME:()=>mEo,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>gEo,SEMATTRS_FAAS_INVOKED_REGION:()=>yEo,SEMATTRS_FAAS_TIME:()=>dEo,SEMATTRS_FAAS_TRIGGER:()=>sEo,SEMATTRS_HTTP_CLIENT_IP:()=>tSo,SEMATTRS_HTTP_FLAVOR:()=>WEo,SEMATTRS_HTTP_HOST:()=>GEo,SEMATTRS_HTTP_METHOD:()=>qEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>KEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>YEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>JEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>XEo,SEMATTRS_HTTP_ROUTE:()=>eSo,SEMATTRS_HTTP_SCHEME:()=>jEo,SEMATTRS_HTTP_SERVER_NAME:()=>ZEo,SEMATTRS_HTTP_STATUS_CODE:()=>$Eo,SEMATTRS_HTTP_TARGET:()=>VEo,SEMATTRS_HTTP_URL:()=>HEo,SEMATTRS_HTTP_USER_AGENT:()=>zEo,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>ZSo,SEMATTRS_MESSAGE_ID:()=>XSo,SEMATTRS_MESSAGE_TYPE:()=>JSo,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>e_o,SEMATTRS_MESSAGING_CONSUMER_ID:()=>MSo,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>NSo,SEMATTRS_MESSAGING_DESTINATION:()=>CSo,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>TSo,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>QSo,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>FSo,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>USo,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>qSo,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>HSo,SEMATTRS_MESSAGING_MESSAGE_ID:()=>RSo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>kSo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>PSo,SEMATTRS_MESSAGING_OPERATION:()=>BSo,SEMATTRS_MESSAGING_PROTOCOL:()=>ISo,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>DSo,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>LSo,SEMATTRS_MESSAGING_SYSTEM:()=>xSo,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>wSo,SEMATTRS_MESSAGING_URL:()=>OSo,SEMATTRS_NET_HOST_CARRIER_ICC:()=>OEo,SEMATTRS_NET_HOST_CARRIER_MCC:()=>IEo,SEMATTRS_NET_HOST_CARRIER_MNC:()=>DEo,SEMATTRS_NET_HOST_CARRIER_NAME:()=>wEo,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>TEo,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>CEo,SEMATTRS_NET_HOST_IP:()=>SEo,SEMATTRS_NET_HOST_NAME:()=>xEo,SEMATTRS_NET_HOST_PORT:()=>_Eo,SEMATTRS_NET_PEER_IP:()=>vEo,SEMATTRS_NET_PEER_NAME:()=>EEo,SEMATTRS_NET_PEER_PORT:()=>bEo,SEMATTRS_NET_TRANSPORT:()=>AEo,SEMATTRS_PEER_SERVICE:()=>REo,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>$So,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>KSo,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>YSo,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>zSo,SEMATTRS_RPC_JSONRPC_VERSION:()=>WSo,SEMATTRS_RPC_METHOD:()=>jSo,SEMATTRS_RPC_SERVICE:()=>GSo,SEMATTRS_RPC_SYSTEM:()=>VSo,SEMATTRS_THREAD_ID:()=>BEo,SEMATTRS_THREAD_NAME:()=>MEo,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>VCo,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>HCo,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>GCo,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>jCo,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>$Co,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>WCo,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>zCo,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>YCo,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>KCo,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>XCo,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>JCo,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>UCo,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>QCo,SEMRESATTRS_CLOUD_PLATFORM:()=>qCo,SEMRESATTRS_CLOUD_PROVIDER:()=>LCo,SEMRESATTRS_CLOUD_REGION:()=>FCo,SEMRESATTRS_CONTAINER_ID:()=>eTo,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>rTo,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>nTo,SEMRESATTRS_CONTAINER_NAME:()=>ZCo,SEMRESATTRS_CONTAINER_RUNTIME:()=>tTo,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>iTo,SEMRESATTRS_DEVICE_ID:()=>oTo,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>sTo,SEMRESATTRS_DEVICE_MODEL_NAME:()=>aTo,SEMRESATTRS_FAAS_ID:()=>lTo,SEMRESATTRS_FAAS_INSTANCE:()=>fTo,SEMRESATTRS_FAAS_MAX_MEMORY:()=>dTo,SEMRESATTRS_FAAS_NAME:()=>cTo,SEMRESATTRS_FAAS_VERSION:()=>uTo,SEMRESATTRS_HOST_ARCH:()=>gTo,SEMRESATTRS_HOST_ID:()=>pTo,SEMRESATTRS_HOST_IMAGE_ID:()=>ATo,SEMRESATTRS_HOST_IMAGE_NAME:()=>yTo,SEMRESATTRS_HOST_IMAGE_VERSION:()=>vTo,SEMRESATTRS_HOST_NAME:()=>hTo,SEMRESATTRS_HOST_TYPE:()=>mTo,SEMRESATTRS_K8S_CLUSTER_NAME:()=>bTo,SEMRESATTRS_K8S_CONTAINER_NAME:()=>TTo,SEMRESATTRS_K8S_CRONJOB_NAME:()=>UTo,SEMRESATTRS_K8S_CRONJOB_UID:()=>LTo,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>kTo,SEMRESATTRS_K8S_DAEMONSET_UID:()=>PTo,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>OTo,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>DTo,SEMRESATTRS_K8S_JOB_NAME:()=>MTo,SEMRESATTRS_K8S_JOB_UID:()=>BTo,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>_To,SEMRESATTRS_K8S_NODE_NAME:()=>ETo,SEMRESATTRS_K8S_NODE_UID:()=>STo,SEMRESATTRS_K8S_POD_NAME:()=>CTo,SEMRESATTRS_K8S_POD_UID:()=>xTo,SEMRESATTRS_K8S_REPLICASET_NAME:()=>ITo,SEMRESATTRS_K8S_REPLICASET_UID:()=>wTo,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>NTo,SEMRESATTRS_K8S_STATEFULSET_UID:()=>RTo,SEMRESATTRS_OS_DESCRIPTION:()=>QTo,SEMRESATTRS_OS_NAME:()=>qTo,SEMRESATTRS_OS_TYPE:()=>FTo,SEMRESATTRS_OS_VERSION:()=>HTo,SEMRESATTRS_PROCESS_COMMAND:()=>$To,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>zTo,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>WTo,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>GTo,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>jTo,SEMRESATTRS_PROCESS_OWNER:()=>KTo,SEMRESATTRS_PROCESS_PID:()=>VTo,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>XTo,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>YTo,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>JTo,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>t4o,SEMRESATTRS_SERVICE_NAME:()=>ZTo,SEMRESATTRS_SERVICE_NAMESPACE:()=>e4o,SEMRESATTRS_SERVICE_VERSION:()=>r4o,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>s4o,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>i4o,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>n4o,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>o4o,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>l4o,SEMRESATTRS_WEBENGINE_NAME:()=>a4o,SEMRESATTRS_WEBENGINE_VERSION:()=>c4o,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>n5o,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>i5o,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>o5o,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>a5o,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>c5o,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>l5o,SemanticAttributes:()=>fte,SemanticResourceAttributes:()=>u4o,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>n6o,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>i6o,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>o6o,TELEMETRYSDKLANGUAGEVALUES_GO:()=>s6o,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>a6o,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>c6o,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>l6o,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>u6o,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>f6o,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>d6o,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>zQc,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>f5o,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>d5o,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>KQc,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>p5o,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>h5o,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>YQc,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>m5o,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>g5o,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>y5o,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>A5o,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>v5o,TelemetrySdkLanguageValues:()=>p6o});var $l=G(()=>{PQr();oVr();sVr();aVr();cVr()});var tOe,lVr=G(()=>{tOe=class{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}});var iO,rOe=G(()=>{iO=class extends Error{code;name="OTLPExporterError";data;constructor(e,r,o){super(e),this.data=o,this.code=r}}});function TIo(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function nOe(t){if(t!=null)return()=>t}function iOe(t,e,r){return{timeoutMillis:TIo(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function oOe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var h2e=G(()=>{});var sOe,uVr=G(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(sOe||(sOe={}))});function aOe(t){return new jTt(t.concurrencyLimit)}var jTt,$Tt=G(()=>{jTt=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);let r=()=>{let o=this._sendingPromises.indexOf(e);this._sendingPromises.splice(o,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}});var m2e=E(mB=>{"use strict";Object.defineProperty(mB,"__esModule",{value:!0});mB.isTracingSuppressed=mB.unsuppressTracing=mB.suppressTracing=void 0;var wIo=(ut(),nt(_t)),WTt=(0,wIo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function IIo(t){return t.setValue(WTt,!0)}mB.suppressTracing=IIo;function DIo(t){return t.deleteValue(WTt)}mB.unsuppressTracing=DIo;function OIo(t){return t.getValue(WTt)===!0}mB.isTracingSuppressed=OIo});var zTt=E(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});Z1.BAGGAGE_MAX_TOTAL_LENGTH=Z1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=Z1.BAGGAGE_MAX_NAME_VALUE_PAIRS=Z1.BAGGAGE_HEADER=Z1.BAGGAGE_ITEMS_SEPARATOR=Z1.BAGGAGE_PROPERTIES_SEPARATOR=Z1.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;Z1.BAGGAGE_KEY_PAIR_SEPARATOR="=";Z1.BAGGAGE_PROPERTIES_SEPARATOR=";";Z1.BAGGAGE_ITEMS_SEPARATOR=",";Z1.BAGGAGE_HEADER="baggage";Z1.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;Z1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;Z1.BAGGAGE_MAX_TOTAL_LENGTH=8192});var KTt=E(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});W5.parseKeyPairsIntoRecord=W5.parsePairKeyValue=W5.getKeyPairs=W5.serializeKeyPairs=void 0;var RIo=(ut(),nt(_t)),oV=zTt();function NIo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?oV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>oV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}W5.serializeKeyPairs=NIo;function PIo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=oV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}W5.getKeyPairs=PIo;function fVr(t){let e=t.split(oV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(oV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,RIo.baggageEntryMetadataFromString)(e.join(oV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}W5.parsePairKeyValue=fVr;function kIo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(oV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=fVr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}W5.parseKeyPairsIntoRecord=kIo});var dVr=E(cOe=>{"use strict";Object.defineProperty(cOe,"__esModule",{value:!0});cOe.W3CBaggagePropagator=void 0;var YTt=(ut(),nt(_t)),BIo=m2e(),sV=zTt(),JTt=KTt(),XTt=class{inject(e,r,o){let s=YTt.propagation.getBaggage(e);if(!s||(0,BIo.isTracingSuppressed)(e))return;let a=(0,JTt.getKeyPairs)(s).filter(n=>n.length<=sV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,sV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,JTt.serializeKeyPairs)(a);i.length>0&&o.set(r,sV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,sV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(sV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(sV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,JTt.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:YTt.propagation.setBaggage(e,YTt.propagation.createBaggage(i))}fields(){return[sV.BAGGAGE_HEADER]}};cOe.W3CBaggagePropagator=XTt});var pVr=E(lOe=>{"use strict";Object.defineProperty(lOe,"__esModule",{value:!0});lOe.AnchoredClock=void 0;var ZTt=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};lOe.AnchoredClock=ZTt});var AVr=E(gB=>{"use strict";Object.defineProperty(gB,"__esModule",{value:!0});gB.isAttributeValue=gB.isAttributeKey=gB.sanitizeAttributes=void 0;var hVr=(ut(),nt(_t));function MIo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!mVr(r)){hVr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!gVr(o)){hVr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}gB.sanitizeAttributes=MIo;function mVr(t){return typeof t=="string"&&t.length>0}gB.isAttributeKey=mVr;function gVr(t){return t==null?!0:Array.isArray(t)?LIo(t):yVr(t)}gB.isAttributeValue=gVr;function LIo(t){let e;for(let r of t)if(r!=null){if(!e){if(yVr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function yVr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var e4t=E(uOe=>{"use strict";Object.defineProperty(uOe,"__esModule",{value:!0});uOe.loggingErrorHandler=void 0;var UIo=(ut(),nt(_t));function FIo(){return t=>{UIo.diag.error(QIo(t))}}uOe.loggingErrorHandler=FIo;function QIo(t){return typeof t=="string"?t:JSON.stringify(qIo(t))}function qIo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var bVr=E(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0});dte.globalErrorHandler=dte.setGlobalErrorHandler=void 0;var HIo=e4t(),vVr=(0,HIo.loggingErrorHandler)();function VIo(t){vVr=t}dte.setGlobalErrorHandler=VIo;function GIo(t){try{vVr(t)}catch{}}dte.globalErrorHandler=GIo});var xVr=E(z5=>{"use strict";Object.defineProperty(z5,"__esModule",{value:!0});z5.getStringListFromEnv=z5.getBooleanFromEnv=z5.getStringFromEnv=z5.getNumberFromEnv=void 0;var EVr=(ut(),nt(_t)),SVr=me("util");function jIo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){EVr.diag.warn(`Unknown value ${(0,SVr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}z5.getNumberFromEnv=jIo;function _Vr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}z5.getStringFromEnv=_Vr;function $Io(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||EVr.diag.warn(`Unknown value ${(0,SVr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}z5.getBooleanFromEnv=$Io;function WIo(t){return _Vr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}z5.getStringListFromEnv=WIo});var CVr=E(fOe=>{"use strict";Object.defineProperty(fOe,"__esModule",{value:!0});fOe._globalThis=void 0;fOe._globalThis=typeof globalThis=="object"?globalThis:global});var TVr=E(dOe=>{"use strict";Object.defineProperty(dOe,"__esModule",{value:!0});dOe.otperformance=void 0;var zIo=me("perf_hooks");dOe.otperformance=zIo.performance});var wVr=E(pOe=>{"use strict";Object.defineProperty(pOe,"__esModule",{value:!0});pOe.VERSION=void 0;pOe.VERSION="2.1.0"});var IVr=E(hOe=>{"use strict";Object.defineProperty(hOe,"__esModule",{value:!0});hOe.ATTR_PROCESS_RUNTIME_NAME=void 0;hOe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var DVr=E(gOe=>{"use strict";Object.defineProperty(gOe,"__esModule",{value:!0});gOe.SDK_INFO=void 0;var KIo=wVr(),mOe=($l(),nt(Uu)),YIo=IVr();gOe.SDK_INFO={[mOe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[YIo.ATTR_PROCESS_RUNTIME_NAME]:"node",[mOe.ATTR_TELEMETRY_SDK_LANGUAGE]:mOe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[mOe.ATTR_TELEMETRY_SDK_VERSION]:KIo.VERSION}});var OVr=E(yOe=>{"use strict";Object.defineProperty(yOe,"__esModule",{value:!0});yOe.unrefTimer=void 0;function JIo(t){t.unref()}yOe.unrefTimer=JIo});var RVr=E(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.unrefTimer=i0.SDK_INFO=i0.otperformance=i0._globalThis=i0.getStringListFromEnv=i0.getNumberFromEnv=i0.getBooleanFromEnv=i0.getStringFromEnv=void 0;var AOe=xVr();Object.defineProperty(i0,"getStringFromEnv",{enumerable:!0,get:function(){return AOe.getStringFromEnv}});Object.defineProperty(i0,"getBooleanFromEnv",{enumerable:!0,get:function(){return AOe.getBooleanFromEnv}});Object.defineProperty(i0,"getNumberFromEnv",{enumerable:!0,get:function(){return AOe.getNumberFromEnv}});Object.defineProperty(i0,"getStringListFromEnv",{enumerable:!0,get:function(){return AOe.getStringListFromEnv}});var XIo=CVr();Object.defineProperty(i0,"_globalThis",{enumerable:!0,get:function(){return XIo._globalThis}});var ZIo=TVr();Object.defineProperty(i0,"otperformance",{enumerable:!0,get:function(){return ZIo.otperformance}});var e8o=DVr();Object.defineProperty(i0,"SDK_INFO",{enumerable:!0,get:function(){return e8o.SDK_INFO}});var t8o=OVr();Object.defineProperty(i0,"unrefTimer",{enumerable:!0,get:function(){return t8o.unrefTimer}})});var t4t=E(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.getStringListFromEnv=o0.getNumberFromEnv=o0.getStringFromEnv=o0.getBooleanFromEnv=o0.unrefTimer=o0.otperformance=o0._globalThis=o0.SDK_INFO=void 0;var yB=RVr();Object.defineProperty(o0,"SDK_INFO",{enumerable:!0,get:function(){return yB.SDK_INFO}});Object.defineProperty(o0,"_globalThis",{enumerable:!0,get:function(){return yB._globalThis}});Object.defineProperty(o0,"otperformance",{enumerable:!0,get:function(){return yB.otperformance}});Object.defineProperty(o0,"unrefTimer",{enumerable:!0,get:function(){return yB.unrefTimer}});Object.defineProperty(o0,"getBooleanFromEnv",{enumerable:!0,get:function(){return yB.getBooleanFromEnv}});Object.defineProperty(o0,"getStringFromEnv",{enumerable:!0,get:function(){return yB.getStringFromEnv}});Object.defineProperty(o0,"getNumberFromEnv",{enumerable:!0,get:function(){return yB.getNumberFromEnv}});Object.defineProperty(o0,"getStringListFromEnv",{enumerable:!0,get:function(){return yB.getStringListFromEnv}})});var BVr=E(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.addHrTimes=If.isTimeInput=If.isTimeInputHrTime=If.hrTimeToMicroseconds=If.hrTimeToMilliseconds=If.hrTimeToNanoseconds=If.hrTimeToTimeStamp=If.hrTimeDuration=If.timeInputToHrTime=If.hrTime=If.getTimeOrigin=If.millisToHrTime=void 0;var r4t=t4t(),NVr=9,r8o=6,n8o=Math.pow(10,r8o),vOe=Math.pow(10,NVr);function g2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*n8o);return[r,o]}If.millisToHrTime=g2e;function n4t(){let t=r4t.otperformance.timeOrigin;if(typeof t!="number"){let e=r4t.otperformance;t=e.timing&&e.timing.fetchStart}return t}If.getTimeOrigin=n4t;function PVr(t){let e=g2e(n4t()),r=g2e(typeof t=="number"?t:r4t.otperformance.now());return kVr(e,r)}If.hrTime=PVr;function i8o(t){if(i4t(t))return t;if(typeof t=="number")return t<n4t()?PVr(t):g2e(t);if(t instanceof Date)return g2e(t.getTime());throw TypeError("Invalid input type")}If.timeInputToHrTime=i8o;function o8o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=vOe),[r,o]}If.hrTimeDuration=o8o;function s8o(t){let e=NVr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}If.hrTimeToTimeStamp=s8o;function a8o(t){return t[0]*vOe+t[1]}If.hrTimeToNanoseconds=a8o;function c8o(t){return t[0]*1e3+t[1]/1e6}If.hrTimeToMilliseconds=c8o;function l8o(t){return t[0]*1e6+t[1]/1e3}If.hrTimeToMicroseconds=l8o;function i4t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}If.isTimeInputHrTime=i4t;function u8o(t){return i4t(t)||typeof t=="number"||t instanceof Date}If.isTimeInput=u8o;function kVr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=vOe&&(r[1]-=vOe,r[0]+=1),r}If.addHrTimes=kVr});var MVr=E(y2e=>{"use strict";Object.defineProperty(y2e,"__esModule",{value:!0});y2e.ExportResultCode=void 0;var f8o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(f8o=y2e.ExportResultCode||(y2e.ExportResultCode={}))});var UVr=E(bOe=>{"use strict";Object.defineProperty(bOe,"__esModule",{value:!0});bOe.CompositePropagator=void 0;var LVr=(ut(),nt(_t)),o4t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){LVr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){LVr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};bOe.CompositePropagator=o4t});var FVr=E(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0});pte.validateValue=pte.validateKey=void 0;var s4t="[_0-9a-z-*/]",d8o=`[a-z]${s4t}{0,255}`,p8o=`[a-z0-9]${s4t}{0,240}@[a-z]${s4t}{0,13}`,h8o=new RegExp(`^(?:${d8o}|${p8o})$`),m8o=/^[ -~]{0,255}[!-~]$/,g8o=/,|=/;function y8o(t){return h8o.test(t)}pte.validateKey=y8o;function A8o(t){return m8o.test(t)&&!g8o.test(t)}pte.validateValue=A8o});var c4t=E(EOe=>{"use strict";Object.defineProperty(EOe,"__esModule",{value:!0});EOe.TraceState=void 0;var QVr=FVr(),qVr=32,v8o=512,HVr=",",VVr="=",a4t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+VVr+this.get(r)),e),[]).join(HVr)}_parse(e){e.length>v8o||(this._internalState=e.split(HVr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(VVr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,QVr.validateKey)(i)&&(0,QVr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>qVr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,qVr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};EOe.TraceState=a4t});var jVr=E(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.W3CTraceContextPropagator=ey.parseTraceParent=ey.TRACE_STATE_HEADER=ey.TRACE_PARENT_HEADER=void 0;var SOe=(ut(),nt(_t)),b8o=m2e(),E8o=c4t();ey.TRACE_PARENT_HEADER="traceparent";ey.TRACE_STATE_HEADER="tracestate";var S8o="00",_8o="(?!ff)[\\da-f]{2}",x8o="(?![0]{32})[\\da-f]{32}",C8o="(?![0]{16})[\\da-f]{16}",T8o="[\\da-f]{2}",w8o=new RegExp(`^\\s?(${_8o})-(${x8o})-(${C8o})-(${T8o})(-.*)?\\s?$`);function GVr(t){let e=w8o.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ey.parseTraceParent=GVr;var l4t=class{inject(e,r,o){let s=SOe.trace.getSpanContext(e);if(!s||(0,b8o.isTracingSuppressed)(e)||!(0,SOe.isSpanContextValid)(s))return;let a=`${S8o}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||SOe.TraceFlags.NONE).toString(16)}`;o.set(r,ey.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ey.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ey.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=GVr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ey.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new E8o.TraceState(typeof c=="string"?c:void 0)}return SOe.trace.setSpanContext(e,i)}fields(){return[ey.TRACE_PARENT_HEADER,ey.TRACE_STATE_HEADER]}};ey.W3CTraceContextPropagator=l4t});var $Vr=E(z4=>{"use strict";Object.defineProperty(z4,"__esModule",{value:!0});z4.getRPCMetadata=z4.deleteRPCMetadata=z4.setRPCMetadata=z4.RPCType=void 0;var I8o=(ut(),nt(_t)),u4t=(0,I8o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),D8o;(function(t){t.HTTP="http"})(D8o=z4.RPCType||(z4.RPCType={}));function O8o(t,e){return t.setValue(u4t,e)}z4.setRPCMetadata=O8o;function R8o(t){return t.deleteValue(u4t)}z4.deleteRPCMetadata=R8o;function N8o(t){return t.getValue(u4t)}z4.getRPCMetadata=N8o});var JVr=E(_Oe=>{"use strict";Object.defineProperty(_Oe,"__esModule",{value:!0});_Oe.isPlainObject=void 0;var P8o="[object Object]",k8o="[object Null]",B8o="[object Undefined]",M8o=Function.prototype,WVr=M8o.toString,L8o=WVr.call(Object),U8o=Object.getPrototypeOf,zVr=Object.prototype,KVr=zVr.hasOwnProperty,aV=Symbol?Symbol.toStringTag:void 0,YVr=zVr.toString;function F8o(t){if(!Q8o(t)||q8o(t)!==P8o)return!1;let e=U8o(t);if(e===null)return!0;let r=KVr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&WVr.call(r)===L8o}_Oe.isPlainObject=F8o;function Q8o(t){return t!=null&&typeof t=="object"}function q8o(t){return t==null?t===void 0?B8o:k8o:aV&&aV in Object(t)?H8o(t):V8o(t)}function H8o(t){let e=KVr.call(t,aV),r=t[aV],o=!1;try{t[aV]=void 0,o=!0}catch{}let s=YVr.call(t);return o&&(e?t[aV]=r:delete t[aV]),s}function V8o(t){return YVr.call(t)}});var rGr=E(TOe=>{"use strict";Object.defineProperty(TOe,"__esModule",{value:!0});TOe.merge=void 0;var XVr=JVr(),G8o=20;function j8o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=eGr(e,t.shift(),0,r);return e}TOe.merge=j8o;function f4t(t){return COe(t)?t.slice():t}function eGr(t,e,r=0,o){let s;if(!(r>G8o)){if(r++,xOe(t)||xOe(e)||tGr(e))s=f4t(e);else if(COe(t)){if(s=t.slice(),COe(e))for(let a=0,i=e.length;a<i;a++)s.push(f4t(e[a]));else if(A2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=f4t(e[c])}}}else if(A2e(t))if(A2e(e)){if(!$8o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(xOe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(ZVr(t,c,o)||ZVr(e,c,o))delete s[c];else{if(A2e(f)&&A2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=eGr(s[c],u,r,o)}}}}else s=e;return s}}function ZVr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function COe(t){return Array.isArray(t)}function tGr(t){return typeof t=="function"}function A2e(t){return!xOe(t)&&!COe(t)&&!tGr(t)&&typeof t=="object"}function xOe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function $8o(t,e){return!(!(0,XVr.isPlainObject)(t)||!(0,XVr.isPlainObject)(e))}});var nGr=E(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0});hte.callWithTimeout=hte.TimeoutError=void 0;var wOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};hte.TimeoutError=wOe;function W8o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new wOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}hte.callWithTimeout=W8o});var oGr=E(mte=>{"use strict";Object.defineProperty(mte,"__esModule",{value:!0});mte.isUrlIgnored=mte.urlMatches=void 0;function iGr(t,e){return typeof e=="string"?t===e:!!t.match(e)}mte.urlMatches=iGr;function z8o(t,e){if(!e)return!1;for(let r of e)if(iGr(t,r))return!0;return!1}mte.isUrlIgnored=z8o});var sGr=E(IOe=>{"use strict";Object.defineProperty(IOe,"__esModule",{value:!0});IOe.Deferred=void 0;var d4t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};IOe.Deferred=d4t});var aGr=E(DOe=>{"use strict";Object.defineProperty(DOe,"__esModule",{value:!0});DOe.BindOnceFuture=void 0;var K8o=sGr(),p4t=class{_callback;_that;_isCalled=!1;_deferred=new K8o.Deferred;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};DOe.BindOnceFuture=p4t});var lGr=E(OOe=>{"use strict";Object.defineProperty(OOe,"__esModule",{value:!0});OOe.diagLogLevelFromString=void 0;var oO=(ut(),nt(_t)),cGr={ALL:oO.DiagLogLevel.ALL,VERBOSE:oO.DiagLogLevel.VERBOSE,DEBUG:oO.DiagLogLevel.DEBUG,INFO:oO.DiagLogLevel.INFO,WARN:oO.DiagLogLevel.WARN,ERROR:oO.DiagLogLevel.ERROR,NONE:oO.DiagLogLevel.NONE};function Y8o(t){if(t==null)return;let e=cGr[t.toUpperCase()];return e??(oO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(cGr)}, using default`),oO.DiagLogLevel.INFO)}OOe.diagLogLevelFromString=Y8o});var fGr=E(ROe=>{"use strict";Object.defineProperty(ROe,"__esModule",{value:!0});ROe._export=void 0;var uGr=(ut(),nt(_t)),J8o=m2e();function X8o(t,e){return new Promise(r=>{uGr.context.with((0,J8o.suppressTracing)(uGr.context.active()),()=>{t.export(e,o=>{r(o)})})})}ROe._export=X8o});var v2e=E(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.internal=an.diagLogLevelFromString=an.BindOnceFuture=an.urlMatches=an.isUrlIgnored=an.callWithTimeout=an.TimeoutError=an.merge=an.TraceState=an.unsuppressTracing=an.suppressTracing=an.isTracingSuppressed=an.setRPCMetadata=an.getRPCMetadata=an.deleteRPCMetadata=an.RPCType=an.parseTraceParent=an.W3CTraceContextPropagator=an.TRACE_STATE_HEADER=an.TRACE_PARENT_HEADER=an.CompositePropagator=an.unrefTimer=an.otperformance=an.getStringListFromEnv=an.getNumberFromEnv=an.getBooleanFromEnv=an.getStringFromEnv=an._globalThis=an.SDK_INFO=an.parseKeyPairsIntoRecord=an.ExportResultCode=an.timeInputToHrTime=an.millisToHrTime=an.isTimeInputHrTime=an.isTimeInput=an.hrTimeToTimeStamp=an.hrTimeToNanoseconds=an.hrTimeToMilliseconds=an.hrTimeToMicroseconds=an.hrTimeDuration=an.hrTime=an.getTimeOrigin=an.addHrTimes=an.loggingErrorHandler=an.setGlobalErrorHandler=an.globalErrorHandler=an.sanitizeAttributes=an.isAttributeValue=an.AnchoredClock=an.W3CBaggagePropagator=void 0;var Z8o=dVr();Object.defineProperty(an,"W3CBaggagePropagator",{enumerable:!0,get:function(){return Z8o.W3CBaggagePropagator}});var eDo=pVr();Object.defineProperty(an,"AnchoredClock",{enumerable:!0,get:function(){return eDo.AnchoredClock}});var dGr=AVr();Object.defineProperty(an,"isAttributeValue",{enumerable:!0,get:function(){return dGr.isAttributeValue}});Object.defineProperty(an,"sanitizeAttributes",{enumerable:!0,get:function(){return dGr.sanitizeAttributes}});var pGr=bVr();Object.defineProperty(an,"globalErrorHandler",{enumerable:!0,get:function(){return pGr.globalErrorHandler}});Object.defineProperty(an,"setGlobalErrorHandler",{enumerable:!0,get:function(){return pGr.setGlobalErrorHandler}});var tDo=e4t();Object.defineProperty(an,"loggingErrorHandler",{enumerable:!0,get:function(){return tDo.loggingErrorHandler}});var J_=BVr();Object.defineProperty(an,"addHrTimes",{enumerable:!0,get:function(){return J_.addHrTimes}});Object.defineProperty(an,"getTimeOrigin",{enumerable:!0,get:function(){return J_.getTimeOrigin}});Object.defineProperty(an,"hrTime",{enumerable:!0,get:function(){return J_.hrTime}});Object.defineProperty(an,"hrTimeDuration",{enumerable:!0,get:function(){return J_.hrTimeDuration}});Object.defineProperty(an,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return J_.hrTimeToMicroseconds}});Object.defineProperty(an,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return J_.hrTimeToMilliseconds}});Object.defineProperty(an,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return J_.hrTimeToNanoseconds}});Object.defineProperty(an,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return J_.hrTimeToTimeStamp}});Object.defineProperty(an,"isTimeInput",{enumerable:!0,get:function(){return J_.isTimeInput}});Object.defineProperty(an,"isTimeInputHrTime",{enumerable:!0,get:function(){return J_.isTimeInputHrTime}});Object.defineProperty(an,"millisToHrTime",{enumerable:!0,get:function(){return J_.millisToHrTime}});Object.defineProperty(an,"timeInputToHrTime",{enumerable:!0,get:function(){return J_.timeInputToHrTime}});var rDo=MVr();Object.defineProperty(an,"ExportResultCode",{enumerable:!0,get:function(){return rDo.ExportResultCode}});var nDo=KTt();Object.defineProperty(an,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return nDo.parseKeyPairsIntoRecord}});var AB=t4t();Object.defineProperty(an,"SDK_INFO",{enumerable:!0,get:function(){return AB.SDK_INFO}});Object.defineProperty(an,"_globalThis",{enumerable:!0,get:function(){return AB._globalThis}});Object.defineProperty(an,"getStringFromEnv",{enumerable:!0,get:function(){return AB.getStringFromEnv}});Object.defineProperty(an,"getBooleanFromEnv",{enumerable:!0,get:function(){return AB.getBooleanFromEnv}});Object.defineProperty(an,"getNumberFromEnv",{enumerable:!0,get:function(){return AB.getNumberFromEnv}});Object.defineProperty(an,"getStringListFromEnv",{enumerable:!0,get:function(){return AB.getStringListFromEnv}});Object.defineProperty(an,"otperformance",{enumerable:!0,get:function(){return AB.otperformance}});Object.defineProperty(an,"unrefTimer",{enumerable:!0,get:function(){return AB.unrefTimer}});var iDo=UVr();Object.defineProperty(an,"CompositePropagator",{enumerable:!0,get:function(){return iDo.CompositePropagator}});var NOe=jVr();Object.defineProperty(an,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return NOe.TRACE_PARENT_HEADER}});Object.defineProperty(an,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return NOe.TRACE_STATE_HEADER}});Object.defineProperty(an,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return NOe.W3CTraceContextPropagator}});Object.defineProperty(an,"parseTraceParent",{enumerable:!0,get:function(){return NOe.parseTraceParent}});var POe=$Vr();Object.defineProperty(an,"RPCType",{enumerable:!0,get:function(){return POe.RPCType}});Object.defineProperty(an,"deleteRPCMetadata",{enumerable:!0,get:function(){return POe.deleteRPCMetadata}});Object.defineProperty(an,"getRPCMetadata",{enumerable:!0,get:function(){return POe.getRPCMetadata}});Object.defineProperty(an,"setRPCMetadata",{enumerable:!0,get:function(){return POe.setRPCMetadata}});var h4t=m2e();Object.defineProperty(an,"isTracingSuppressed",{enumerable:!0,get:function(){return h4t.isTracingSuppressed}});Object.defineProperty(an,"suppressTracing",{enumerable:!0,get:function(){return h4t.suppressTracing}});Object.defineProperty(an,"unsuppressTracing",{enumerable:!0,get:function(){return h4t.unsuppressTracing}});var oDo=c4t();Object.defineProperty(an,"TraceState",{enumerable:!0,get:function(){return oDo.TraceState}});var sDo=rGr();Object.defineProperty(an,"merge",{enumerable:!0,get:function(){return sDo.merge}});var hGr=nGr();Object.defineProperty(an,"TimeoutError",{enumerable:!0,get:function(){return hGr.TimeoutError}});Object.defineProperty(an,"callWithTimeout",{enumerable:!0,get:function(){return hGr.callWithTimeout}});var mGr=oGr();Object.defineProperty(an,"isUrlIgnored",{enumerable:!0,get:function(){return mGr.isUrlIgnored}});Object.defineProperty(an,"urlMatches",{enumerable:!0,get:function(){return mGr.urlMatches}});var aDo=aGr();Object.defineProperty(an,"BindOnceFuture",{enumerable:!0,get:function(){return aDo.BindOnceFuture}});var cDo=lGr();Object.defineProperty(an,"diagLogLevelFromString",{enumerable:!0,get:function(){return cDo.diagLogLevelFromString}});var lDo=fGr();an.internal={_export:lDo._export}});function uDo(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function gGr(){return{handleResponse(t){t==null||!uDo(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Sr.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var yGr=G(()=>{ut()});function kOe(t,e){return new m4t(t.transport,t.serializer,gGr(),t.promiseHandler,e.timeout)}var vB,m4t,g4t=G(()=>{vB=we(v2e());rOe();yGr();ut();m4t=class{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,o,s,a){this._transport=e,this._serializer=r,this._responseHandler=o,this._promiseQueue=s,this._timeout=a,this._diagLogger=Sr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:vB.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}let o=this._serializer.serializeRequest(e);if(o==null){r({code:vB.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(o,this._timeout).then(s=>{if(s.status==="success"){if(s.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(s.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,s.data)}r({code:vB.ExportResultCode.SUCCESS});return}else if(s.status==="failure"&&s.error){r({code:vB.ExportResultCode.FAILED,error:s.error});return}else s.status==="retryable"?r({code:vB.ExportResultCode.FAILED,error:new iO("Export failed with retryable status")}):r({code:vB.ExportResultCode.FAILED,error:new iO("Export failed with unknown error")})},s=>r({code:vB.ExportResultCode.FAILED,error:s})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}});function AGr(t,e,r){return kOe({transport:r,serializer:e,promiseHandler:aOe(t)},{timeout:t.timeoutMillis})}var vGr=G(()=>{$Tt();g4t()});var bGr={};os(bGr,{CompressionAlgorithm:()=>sOe,OTLPExporterBase:()=>tOe,OTLPExporterError:()=>iO,createOtlpNetworkExportDelegate:()=>AGr,getSharedConfigurationDefaults:()=>oOe,mergeOtlpSharedConfigurationWithDefaults:()=>iOe});var EGr=G(()=>{lVr();rOe();h2e();uVr();vGr()});var y4t=E((nHc,SGr)=>{"use strict";SGr.exports=fDo;function fDo(t,e){for(var r=new Array(arguments.length-1),o=0,s=2,a=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(n,c){r[o]=function(f){if(a)if(a=!1,f)c(f);else{for(var d=new Array(arguments.length-1),p=0;p<d.length;)d[p++]=arguments[p];n.apply(null,d)}};try{t.apply(e||null,r)}catch(u){a&&(a=!1,c(u))}})}});var TGr=E(CGr=>{"use strict";var BOe=CGr;BOe.length=function(e){var r=e.length;if(!r)return 0;for(var o=0;--r%4>1&&e.charAt(r)==="=";)++o;return Math.ceil(e.length*3)/4-o};var gte=new Array(64),xGr=new Array(123);for(K4=0;K4<64;)xGr[gte[K4]=K4<26?K4+65:K4<52?K4+71:K4<62?K4-4:K4-59|43]=K4++;var K4;BOe.encode=function(e,r,o){for(var s=null,a=[],i=0,n=0,c;r<o;){var u=e[r++];switch(n){case 0:a[i++]=gte[u>>2],c=(u&3)<<4,n=1;break;case 1:a[i++]=gte[c|u>>4],c=(u&15)<<2,n=2;break;case 2:a[i++]=gte[c|u>>6],a[i++]=gte[u&63],n=0;break}i>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,a)),i=0)}return n&&(a[i++]=gte[c],a[i++]=61,n===1&&(a[i++]=61)),s?(i&&s.push(String.fromCharCode.apply(String,a.slice(0,i))),s.join("")):String.fromCharCode.apply(String,a.slice(0,i))};var _Gr="invalid encoding";BOe.decode=function(e,r,o){for(var s=o,a=0,i,n=0;n<e.length;){var c=e.charCodeAt(n++);if(c===61&&a>1)break;if((c=xGr[c])===void 0)throw Error(_Gr);switch(a){case 0:i=c,a=1;break;case 1:r[o++]=i<<2|(c&48)>>4,i=c,a=2;break;case 2:r[o++]=(i&15)<<4|(c&60)>>2,i=c,a=3;break;case 3:r[o++]=(i&3)<<6|c,a=0;break}}if(a===1)throw Error(_Gr);return o-s};BOe.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var IGr=E((oHc,wGr)=>{"use strict";wGr.exports=MOe;function MOe(){this._listeners={}}MOe.prototype.on=function(e,r,o){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:r,ctx:o||this}),this};MOe.prototype.off=function(e,r){if(e===void 0)this._listeners={};else if(r===void 0)this._listeners[e]=[];else for(var o=this._listeners[e],s=0;s<o.length;)o[s].fn===r?o.splice(s,1):++s;return this};MOe.prototype.emit=function(e){var r=this._listeners[e];if(r){for(var o=[],s=1;s<arguments.length;)o.push(arguments[s++]);for(s=0;s<r.length;)r[s].fn.apply(r[s++].ctx,o)}return this}});var BGr=E((sHc,kGr)=>{"use strict";kGr.exports=DGr(DGr);function DGr(t){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),o=r[3]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3]}function a(c,u,f){e[0]=c,u[f]=r[3],u[f+1]=r[2],u[f+2]=r[1],u[f+3]=r[0]}t.writeFloatLE=o?s:a,t.writeFloatBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],e[0]}function n(c,u){return r[3]=c[u],r[2]=c[u+1],r[1]=c[u+2],r[0]=c[u+3],e[0]}t.readFloatLE=o?i:n,t.readFloatBE=o?n:i})():(function(){function e(o,s,a,i){var n=s<0?1:0;if(n&&(s=-s),s===0)o(1/s>0?0:2147483648,a,i);else if(isNaN(s))o(2143289344,a,i);else if(s>34028234663852886e22)o((n<<31|2139095040)>>>0,a,i);else if(s<11754943508222875e-54)o((n<<31|Math.round(s/1401298464324817e-60))>>>0,a,i);else{var c=Math.floor(Math.log(s)/Math.LN2),u=Math.round(s*Math.pow(2,-c)*8388608)&8388607;o((n<<31|c+127<<23|u)>>>0,a,i)}}t.writeFloatLE=e.bind(null,OGr),t.writeFloatBE=e.bind(null,RGr);function r(o,s,a){var i=o(s,a),n=(i>>31)*2+1,c=i>>>23&255,u=i&8388607;return c===255?u?NaN:n*(1/0):c===0?n*1401298464324817e-60*u:n*Math.pow(2,c-150)*(u+8388608)}t.readFloatLE=r.bind(null,NGr),t.readFloatBE=r.bind(null,PGr)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),o=r[7]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3],u[f+4]=r[4],u[f+5]=r[5],u[f+6]=r[6],u[f+7]=r[7]}function a(c,u,f){e[0]=c,u[f]=r[7],u[f+1]=r[6],u[f+2]=r[5],u[f+3]=r[4],u[f+4]=r[3],u[f+5]=r[2],u[f+6]=r[1],u[f+7]=r[0]}t.writeDoubleLE=o?s:a,t.writeDoubleBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],r[4]=c[u+4],r[5]=c[u+5],r[6]=c[u+6],r[7]=c[u+7],e[0]}function n(c,u){return r[7]=c[u],r[6]=c[u+1],r[5]=c[u+2],r[4]=c[u+3],r[3]=c[u+4],r[2]=c[u+5],r[1]=c[u+6],r[0]=c[u+7],e[0]}t.readDoubleLE=o?i:n,t.readDoubleBE=o?n:i})():(function(){function e(o,s,a,i,n,c){var u=i<0?1:0;if(u&&(i=-i),i===0)o(0,n,c+s),o(1/i>0?0:2147483648,n,c+a);else if(isNaN(i))o(0,n,c+s),o(2146959360,n,c+a);else if(i>17976931348623157e292)o(0,n,c+s),o((u<<31|2146435072)>>>0,n,c+a);else{var f;if(i<22250738585072014e-324)f=i/5e-324,o(f>>>0,n,c+s),o((u<<31|f/4294967296)>>>0,n,c+a);else{var d=Math.floor(Math.log(i)/Math.LN2);d===1024&&(d=1023),f=i*Math.pow(2,-d),o(f*4503599627370496>>>0,n,c+s),o((u<<31|d+1023<<20|f*1048576&1048575)>>>0,n,c+a)}}}t.writeDoubleLE=e.bind(null,OGr,0,4),t.writeDoubleBE=e.bind(null,RGr,4,0);function r(o,s,a,i,n){var c=o(i,n+s),u=o(i,n+a),f=(u>>31)*2+1,d=u>>>20&2047,p=4294967296*(u&1048575)+c;return d===2047?p?NaN:f*(1/0):d===0?f*5e-324*p:f*Math.pow(2,d-1075)*(p+4503599627370496)}t.readDoubleLE=r.bind(null,NGr,0,4),t.readDoubleBE=r.bind(null,PGr,4,0)})(),t}function OGr(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function RGr(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=t&255}function NGr(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function PGr(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}});var A4t=E((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}});var LGr=E(MGr=>{"use strict";var v4t=MGr;v4t.length=function(e){for(var r=0,o=0,s=0;s<e.length;++s)o=e.charCodeAt(s),o<128?r+=1:o<2048?r+=2:(o&64512)===55296&&(e.charCodeAt(s+1)&64512)===56320?(++s,r+=4):r+=3;return r};v4t.read=function(e,r,o){var s=o-r;if(s<1)return"";for(var a=null,i=[],n=0,c;r<o;)c=e[r++],c<128?i[n++]=c:c>191&&c<224?i[n++]=(c&31)<<6|e[r++]&63:c>239&&c<365?(c=((c&7)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,i[n++]=55296+(c>>10),i[n++]=56320+(c&1023)):i[n++]=(c&15)<<12|(e[r++]&63)<<6|e[r++]&63,n>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),n=0);return a?(n&&a.push(String.fromCharCode.apply(String,i.slice(0,n))),a.join("")):String.fromCharCode.apply(String,i.slice(0,n))};v4t.write=function(e,r,o){for(var s=o,a,i,n=0;n<e.length;++n)a=e.charCodeAt(n),a<128?r[o++]=a:a<2048?(r[o++]=a>>6|192,r[o++]=a&63|128):(a&64512)===55296&&((i=e.charCodeAt(n+1))&64512)===56320?(a=65536+((a&1023)<<10)+(i&1023),++n,r[o++]=a>>18|240,r[o++]=a>>12&63|128,r[o++]=a>>6&63|128,r[o++]=a&63|128):(r[o++]=a>>12|224,r[o++]=a>>6&63|128,r[o++]=a&63|128);return o-s}});var FGr=E((cHc,UGr)=>{"use strict";UGr.exports=dDo;function dDo(t,e,r){var o=r||8192,s=o>>>1,a=null,i=o;return function(c){if(c<1||c>s)return t(c);i+c>o&&(a=t(o),i=0);var u=e.call(a,i,i+=c);return i&7&&(i=(i|7)+1),u}}});var qGr=E((lHc,QGr)=>{"use strict";QGr.exports=s0;var b2e=K5();function s0(t,e){this.lo=t>>>0,this.hi=e>>>0}var cV=s0.zero=new s0(0,0);cV.toNumber=function(){return 0};cV.zzEncode=cV.zzDecode=function(){return this};cV.length=function(){return 1};var pDo=s0.zeroHash="\0\0\0\0\0\0\0\0";s0.fromNumber=function(e){if(e===0)return cV;var r=e<0;r&&(e=-e);var o=e>>>0,s=(e-o)/4294967296>>>0;return r&&(s=~s>>>0,o=~o>>>0,++o>4294967295&&(o=0,++s>4294967295&&(s=0))),new s0(o,s)};s0.from=function(e){if(typeof e=="number")return s0.fromNumber(e);if(b2e.isString(e))if(b2e.Long)e=b2e.Long.fromString(e);else return s0.fromNumber(parseInt(e,10));return e.low||e.high?new s0(e.low>>>0,e.high>>>0):cV};s0.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var r=~this.lo+1>>>0,o=~this.hi>>>0;return r||(o=o+1>>>0),-(r+o*4294967296)}return this.lo+this.hi*4294967296};s0.prototype.toLong=function(e){return b2e.Long?new b2e.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var bB=String.prototype.charCodeAt;s0.fromHash=function(e){return e===pDo?cV:new s0((bB.call(e,0)|bB.call(e,1)<<8|bB.call(e,2)<<16|bB.call(e,3)<<24)>>>0,(bB.call(e,4)|bB.call(e,5)<<8|bB.call(e,6)<<16|bB.call(e,7)<<24)>>>0)};s0.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};s0.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};s0.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};s0.prototype.length=function(){var e=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return o===0?r===0?e<16384?e<128?1:2:e<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:o<128?9:10}});var K5=E(b4t=>{"use strict";var bo=b4t;bo.asPromise=y4t();bo.base64=TGr();bo.EventEmitter=IGr();bo.float=BGr();bo.inquire=A4t();bo.utf8=LGr();bo.pool=FGr();bo.LongBits=qGr();bo.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);bo.global=bo.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||b4t;bo.emptyArray=Object.freeze?Object.freeze([]):[];bo.emptyObject=Object.freeze?Object.freeze({}):{};bo.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};bo.isString=function(e){return typeof e=="string"||e instanceof String};bo.isObject=function(e){return e&&typeof e=="object"};bo.isset=bo.isSet=function(e,r){var o=e[r];return o!=null&&e.hasOwnProperty(r)?typeof o!="object"||(Array.isArray(o)?o.length:Object.keys(o).length)>0:!1};bo.Buffer=(function(){try{var t=bo.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch{return null}})();bo._Buffer_from=null;bo._Buffer_allocUnsafe=null;bo.newBuffer=function(e){return typeof e=="number"?bo.Buffer?bo._Buffer_allocUnsafe(e):new bo.Array(e):bo.Buffer?bo._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};bo.Array=typeof Uint8Array<"u"?Uint8Array:Array;bo.Long=bo.global.dcodeIO&&bo.global.dcodeIO.Long||bo.global.Long||bo.inquire("long");bo.key2Re=/^true|false|0|1$/;bo.key32Re=/^-?(?:0|[1-9][0-9]*)$/;bo.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;bo.longToHash=function(e){return e?bo.LongBits.from(e).toHash():bo.LongBits.zeroHash};bo.longFromHash=function(e,r){var o=bo.LongBits.fromHash(e);return bo.Long?bo.Long.fromBits(o.lo,o.hi,r):o.toNumber(!!r)};function HGr(t,e,r){for(var o=Object.keys(e),s=0;s<o.length;++s)(t[o[s]]===void 0||!r)&&(t[o[s]]=e[o[s]]);return t}bo.merge=HGr;bo.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function VGr(t){function e(r,o){if(!(this instanceof e))return new e(r,o);Object.defineProperty(this,"message",{get:function(){return r}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),o&&HGr(this,o)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}bo.newError=VGr;bo.ProtocolError=VGr("ProtocolError");bo.oneOfGetter=function(e){for(var r={},o=0;o<e.length;++o)r[e[o]]=1;return function(){for(var s=Object.keys(this),a=s.length-1;a>-1;--a)if(r[s[a]]===1&&this[s[a]]!==void 0&&this[s[a]]!==null)return s[a]}};bo.oneOfSetter=function(e){return function(r){for(var o=0;o<e.length;++o)e[o]!==r&&delete this[e[o]]}};bo.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};bo._configure=function(){var t=bo.Buffer;if(!t){bo._Buffer_from=bo._Buffer_allocUnsafe=null;return}bo._Buffer_from=t.from!==Uint8Array.from&&t.from||function(r,o){return new t(r,o)},bo._Buffer_allocUnsafe=t.allocUnsafe||function(r){return new t(r)}}});var UOe=E((fHc,WGr)=>{"use strict";WGr.exports=ll;var X_=K5(),E4t,LOe=X_.LongBits,GGr=X_.base64,jGr=X_.utf8;function E2e(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function _4t(){}function hDo(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function ll(){this.len=0,this.head=new E2e(_4t,0,0),this.tail=this.head,this.states=null}var $Gr=function(){return X_.Buffer?function(){return(ll.create=function(){return new E4t})()}:function(){return new ll}};ll.create=$Gr();ll.alloc=function(e){return new X_.Array(e)};X_.Array!==Array&&(ll.alloc=X_.pool(ll.alloc,X_.Array.prototype.subarray));ll.prototype._push=function(e,r,o){return this.tail=this.tail.next=new E2e(e,r,o),this.len+=r,this};function x4t(t,e,r){e[r]=t&255}function mDo(t,e,r){for(;t>127;)e[r++]=t&127|128,t>>>=7;e[r]=t}function C4t(t,e){this.len=t,this.next=void 0,this.val=e}C4t.prototype=Object.create(E2e.prototype);C4t.prototype.fn=mDo;ll.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new C4t((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};ll.prototype.int32=function(e){return e<0?this._push(T4t,10,LOe.fromNumber(e)):this.uint32(e)};ll.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function T4t(t,e,r){for(;t.hi;)e[r++]=t.lo&127|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=t.lo&127|128,t.lo=t.lo>>>7;e[r++]=t.lo}ll.prototype.uint64=function(e){var r=LOe.from(e);return this._push(T4t,r.length(),r)};ll.prototype.int64=ll.prototype.uint64;ll.prototype.sint64=function(e){var r=LOe.from(e).zzEncode();return this._push(T4t,r.length(),r)};ll.prototype.bool=function(e){return this._push(x4t,1,e?1:0)};function S4t(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}ll.prototype.fixed32=function(e){return this._push(S4t,4,e>>>0)};ll.prototype.sfixed32=ll.prototype.fixed32;ll.prototype.fixed64=function(e){var r=LOe.from(e);return this._push(S4t,4,r.lo)._push(S4t,4,r.hi)};ll.prototype.sfixed64=ll.prototype.fixed64;ll.prototype.float=function(e){return this._push(X_.float.writeFloatLE,4,e)};ll.prototype.double=function(e){return this._push(X_.float.writeDoubleLE,8,e)};var gDo=X_.Array.prototype.set?function(e,r,o){r.set(e,o)}:function(e,r,o){for(var s=0;s<e.length;++s)r[o+s]=e[s]};ll.prototype.bytes=function(e){var r=e.length>>>0;if(!r)return this._push(x4t,1,0);if(X_.isString(e)){var o=ll.alloc(r=GGr.length(e));GGr.decode(e,o,0),e=o}return this.uint32(r)._push(gDo,r,e)};ll.prototype.string=function(e){var r=jGr.length(e);return r?this.uint32(r)._push(jGr.write,r,e):this._push(x4t,1,0)};ll.prototype.fork=function(){return this.states=new hDo(this),this.head=this.tail=new E2e(_4t,0,0),this.len=0,this};ll.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new E2e(_4t,0,0),this.len=0),this};ll.prototype.ldelim=function(){var e=this.head,r=this.tail,o=this.len;return this.reset().uint32(o),o&&(this.tail.next=e.next,this.tail=r,this.len+=o),this};ll.prototype.finish=function(){for(var e=this.head.next,r=this.constructor.alloc(this.len),o=0;e;)e.fn(e.val,r,o),o+=e.len,e=e.next;return r};ll._configure=function(t){E4t=t,ll.create=$Gr(),E4t._configure()}});var YGr=E((dHc,KGr)=>{"use strict";KGr.exports=Y5;var zGr=UOe();(Y5.prototype=Object.create(zGr.prototype)).constructor=Y5;var EB=K5();function Y5(){zGr.call(this)}Y5._configure=function(){Y5.alloc=EB._Buffer_allocUnsafe,Y5.writeBytesBuffer=EB.Buffer&&EB.Buffer.prototype instanceof Uint8Array&&EB.Buffer.prototype.set.name==="set"?function(e,r,o){r.set(e,o)}:function(e,r,o){if(e.copy)e.copy(r,o,0,e.length);else for(var s=0;s<e.length;)r[o++]=e[s++]}};Y5.prototype.bytes=function(e){EB.isString(e)&&(e=EB._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(Y5.writeBytesBuffer,r,e),this};function yDo(t,e,r){t.length<40?EB.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}Y5.prototype.string=function(e){var r=EB.Buffer.byteLength(e);return this.uint32(r),r&&this._push(yDo,r,e),this};Y5._configure()});var QOe=E((pHc,tjr)=>{"use strict";tjr.exports=Mh;var Y4=K5(),I4t,ZGr=Y4.LongBits,ADo=Y4.utf8;function J4(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function Mh(t){this.buf=t,this.pos=0,this.len=t.length}var JGr=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Mh(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Mh(e);throw Error("illegal buffer")},ejr=function(){return Y4.Buffer?function(r){return(Mh.create=function(s){return Y4.Buffer.isBuffer(s)?new I4t(s):JGr(s)})(r)}:JGr};Mh.create=ejr();Mh.prototype._slice=Y4.Array.prototype.subarray||Y4.Array.prototype.slice;Mh.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,J4(this,10);return e}})();Mh.prototype.int32=function(){return this.uint32()|0};Mh.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function w4t(){var t=new ZGr(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0,t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw J4(this);if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw J4(this);if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}Mh.prototype.bool=function(){return this.uint32()!==0};function FOe(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}Mh.prototype.fixed32=function(){if(this.pos+4>this.len)throw J4(this,4);return FOe(this.buf,this.pos+=4)};Mh.prototype.sfixed32=function(){if(this.pos+4>this.len)throw J4(this,4);return FOe(this.buf,this.pos+=4)|0};function XGr(){if(this.pos+8>this.len)throw J4(this,8);return new ZGr(FOe(this.buf,this.pos+=4),FOe(this.buf,this.pos+=4))}Mh.prototype.float=function(){if(this.pos+4>this.len)throw J4(this,4);var e=Y4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Mh.prototype.double=function(){if(this.pos+8>this.len)throw J4(this,4);var e=Y4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Mh.prototype.bytes=function(){var e=this.uint32(),r=this.pos,o=this.pos+e;if(o>this.len)throw J4(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(r,o);if(r===o){var s=Y4.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,o)};Mh.prototype.string=function(){var e=this.bytes();return ADo.read(e,0,e.length)};Mh.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw J4(this,e);this.pos+=e}else do if(this.pos>=this.len)throw J4(this);while(this.buf[this.pos++]&128);return this};Mh.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t=this.uint32()&7)!==4;)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this};Mh._configure=function(t){I4t=t,Mh.create=ejr(),I4t._configure();var e=Y4.Long?"toLong":"toNumber";Y4.merge(Mh.prototype,{int64:function(){return w4t.call(this)[e](!1)},uint64:function(){return w4t.call(this)[e](!0)},sint64:function(){return w4t.call(this).zzDecode()[e](!1)},fixed64:function(){return XGr.call(this)[e](!0)},sfixed64:function(){return XGr.call(this)[e](!1)}})}});var ojr=E((hHc,ijr)=>{"use strict";ijr.exports=lV;var njr=QOe();(lV.prototype=Object.create(njr.prototype)).constructor=lV;var rjr=K5();function lV(t){njr.call(this,t)}lV._configure=function(){rjr.Buffer&&(lV.prototype._slice=rjr.Buffer.prototype.slice)};lV.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};lV._configure()});var ajr=E((mHc,sjr)=>{"use strict";sjr.exports=S2e;var D4t=K5();(S2e.prototype=Object.create(D4t.EventEmitter.prototype)).constructor=S2e;function S2e(t,e,r){if(typeof t!="function")throw TypeError("rpcImpl must be a function");D4t.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!r}S2e.prototype.rpcCall=function t(e,r,o,s,a){if(!s)throw TypeError("request must be specified");var i=this;if(!a)return D4t.asPromise(t,i,e,r,o,s);if(!i.rpcImpl){setTimeout(function(){a(Error("already ended"))},0);return}try{return i.rpcImpl(e,r[i.requestDelimited?"encodeDelimited":"encode"](s).finish(),function(c,u){if(c)return i.emit("error",c,e),a(c);if(u===null){i.end(!0);return}if(!(u instanceof o))try{u=o[i.responseDelimited?"decodeDelimited":"decode"](u)}catch(f){return i.emit("error",f,e),a(f)}return i.emit("data",u,e),a(null,u)})}catch(n){i.emit("error",n,e),setTimeout(function(){a(n)},0);return}};S2e.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var O4t=E(cjr=>{"use strict";var vDo=cjr;vDo.Service=ajr()});var R4t=E((yHc,ljr)=>{"use strict";ljr.exports={}});var N4t=E(fjr=>{"use strict";var kv=fjr;kv.build="minimal";kv.Writer=UOe();kv.BufferWriter=YGr();kv.Reader=QOe();kv.BufferReader=ojr();kv.util=K5();kv.rpc=O4t();kv.roots=R4t();kv.configure=ujr;function ujr(){kv.util._configure(),kv.Writer._configure(kv.BufferWriter),kv.Reader._configure(kv.BufferReader)}ujr()});var J5=E((vHc,djr)=>{"use strict";djr.exports=N4t()});var qOe=E((pjr,hjr)=>{"use strict";Object.defineProperty(pjr,"__esModule",{value:!0});var Lo=J5(),Kt=Lo.Reader,oa=Lo.Writer,$e=Lo.util,Be=Lo.roots.default||(Lo.roots.default={});Be.opentelemetry=(function(){var t={};return t.proto=(function(){var e={};return e.common=(function(){var r={};return r.v1=(function(){var o={};return o.AnyValue=(function(){function s(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.stringValue=null,s.prototype.boolValue=null,s.prototype.intValue=null,s.prototype.doubleValue=null,s.prototype.arrayValue=null,s.prototype.kvlistValue=null,s.prototype.bytesValue=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){return c||(c=oa.create()),n.stringValue!=null&&Object.hasOwnProperty.call(n,"stringValue")&&c.uint32(10).string(n.stringValue),n.boolValue!=null&&Object.hasOwnProperty.call(n,"boolValue")&&c.uint32(16).bool(n.boolValue),n.intValue!=null&&Object.hasOwnProperty.call(n,"intValue")&&c.uint32(24).int64(n.intValue),n.doubleValue!=null&&Object.hasOwnProperty.call(n,"doubleValue")&&c.uint32(33).double(n.doubleValue),n.arrayValue!=null&&Object.hasOwnProperty.call(n,"arrayValue")&&Be.opentelemetry.proto.common.v1.ArrayValue.encode(n.arrayValue,c.uint32(42).fork()).ldelim(),n.kvlistValue!=null&&Object.hasOwnProperty.call(n,"kvlistValue")&&Be.opentelemetry.proto.common.v1.KeyValueList.encode(n.kvlistValue,c.uint32(50).fork()).ldelim(),n.bytesValue!=null&&Object.hasOwnProperty.call(n,"bytesValue")&&c.uint32(58).bytes(n.bytesValue),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.common.v1.AnyValue;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.stringValue=n.string();break}case 2:{d.boolValue=n.bool();break}case 3:{d.intValue=n.int64();break}case 4:{d.doubleValue=n.double();break}case 5:{d.arrayValue=Be.opentelemetry.proto.common.v1.ArrayValue.decode(n,n.uint32());break}case 6:{d.kvlistValue=Be.opentelemetry.proto.common.v1.KeyValueList.decode(n,n.uint32());break}case 7:{d.bytesValue=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(c.value=1,!$e.isString(n.stringValue)))return"stringValue: string expected";if(n.boolValue!=null&&n.hasOwnProperty("boolValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.boolValue!="boolean")return"boolValue: boolean expected"}if(n.intValue!=null&&n.hasOwnProperty("intValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.intValue)&&!(n.intValue&&$e.isInteger(n.intValue.low)&&$e.isInteger(n.intValue.high)))return"intValue: integer|Long expected"}if(n.doubleValue!=null&&n.hasOwnProperty("doubleValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.doubleValue!="number")return"doubleValue: number expected"}if(n.arrayValue!=null&&n.hasOwnProperty("arrayValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=Be.opentelemetry.proto.common.v1.ArrayValue.verify(n.arrayValue);if(u)return"arrayValue."+u}}if(n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=Be.opentelemetry.proto.common.v1.KeyValueList.verify(n.kvlistValue);if(u)return"kvlistValue."+u}}if(n.bytesValue!=null&&n.hasOwnProperty("bytesValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!(n.bytesValue&&typeof n.bytesValue.length=="number"||$e.isString(n.bytesValue)))return"bytesValue: buffer expected"}return null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.common.v1.AnyValue)return n;var c=new Be.opentelemetry.proto.common.v1.AnyValue;if(n.stringValue!=null&&(c.stringValue=String(n.stringValue)),n.boolValue!=null&&(c.boolValue=!!n.boolValue),n.intValue!=null&&($e.Long?(c.intValue=$e.Long.fromValue(n.intValue)).unsigned=!1:typeof n.intValue=="string"?c.intValue=parseInt(n.intValue,10):typeof n.intValue=="number"?c.intValue=n.intValue:typeof n.intValue=="object"&&(c.intValue=new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber())),n.doubleValue!=null&&(c.doubleValue=Number(n.doubleValue)),n.arrayValue!=null){if(typeof n.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");c.arrayValue=Be.opentelemetry.proto.common.v1.ArrayValue.fromObject(n.arrayValue)}if(n.kvlistValue!=null){if(typeof n.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");c.kvlistValue=Be.opentelemetry.proto.common.v1.KeyValueList.fromObject(n.kvlistValue)}return n.bytesValue!=null&&(typeof n.bytesValue=="string"?$e.base64.decode(n.bytesValue,c.bytesValue=$e.newBuffer($e.base64.length(n.bytesValue)),0):n.bytesValue.length>=0&&(c.bytesValue=n.bytesValue)),c},s.toObject=function(n,c){c||(c={});var u={};return n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(u.stringValue=n.stringValue,c.oneofs&&(u.value="stringValue")),n.boolValue!=null&&n.hasOwnProperty("boolValue")&&(u.boolValue=n.boolValue,c.oneofs&&(u.value="boolValue")),n.intValue!=null&&n.hasOwnProperty("intValue")&&(typeof n.intValue=="number"?u.intValue=c.longs===String?String(n.intValue):n.intValue:u.intValue=c.longs===String?$e.Long.prototype.toString.call(n.intValue):c.longs===Number?new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber():n.intValue,c.oneofs&&(u.value="intValue")),n.doubleValue!=null&&n.hasOwnProperty("doubleValue")&&(u.doubleValue=c.json&&!isFinite(n.doubleValue)?String(n.doubleValue):n.doubleValue,c.oneofs&&(u.value="doubleValue")),n.arrayValue!=null&&n.hasOwnProperty("arrayValue")&&(u.arrayValue=Be.opentelemetry.proto.common.v1.ArrayValue.toObject(n.arrayValue,c),c.oneofs&&(u.value="arrayValue")),n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")&&(u.kvlistValue=Be.opentelemetry.proto.common.v1.KeyValueList.toObject(n.kvlistValue,c),c.oneofs&&(u.value="kvlistValue")),n.bytesValue!=null&&n.hasOwnProperty("bytesValue")&&(u.bytesValue=c.bytes===String?$e.base64.encode(n.bytesValue,0,n.bytesValue.length):c.bytes===Array?Array.prototype.slice.call(n.bytesValue):n.bytesValue,c.oneofs&&(u.value="bytesValue")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.common.v1.AnyValue"},s})(),o.ArrayValue=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)Be.opentelemetry.proto.common.v1.AnyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.ArrayValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.ArrayValue)return i;var n=new Be.opentelemetry.proto.common.v1.ArrayValue;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");n.values[c]=Be.opentelemetry.proto.common.v1.AnyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=Be.opentelemetry.proto.common.v1.AnyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.ArrayValue"},s})(),o.KeyValueList=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.KeyValueList;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValueList)return i;var n=new Be.opentelemetry.proto.common.v1.KeyValueList;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");n.values[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValueList"},s})(),o.KeyValue=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.key=null,s.prototype.value=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=oa.create()),i.key!=null&&Object.hasOwnProperty.call(i,"key")&&n.uint32(10).string(i.key),i.value!=null&&Object.hasOwnProperty.call(i,"value")&&Be.opentelemetry.proto.common.v1.AnyValue.encode(i.value,n.uint32(18).fork()).ldelim(),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.KeyValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.key=i.string();break}case 2:{f.value=Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.key!=null&&i.hasOwnProperty("key")&&!$e.isString(i.key))return"key: string expected";if(i.value!=null&&i.hasOwnProperty("value")){var n=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(n)return"value."+n}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValue)return i;var n=new Be.opentelemetry.proto.common.v1.KeyValue;if(i.key!=null&&(n.key=String(i.key)),i.value!=null){if(typeof i.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");n.value=Be.opentelemetry.proto.common.v1.AnyValue.fromObject(i.value)}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.key="",c.value=null),i.key!=null&&i.hasOwnProperty("key")&&(c.key=i.key),i.value!=null&&i.hasOwnProperty("value")&&(c.value=Be.opentelemetry.proto.common.v1.AnyValue.toObject(i.value,n)),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValue"},s})(),o.InstrumentationScope=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.name=null,s.prototype.version=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(10).string(i.name),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&n.uint32(18).string(i.version),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(26).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(32).uint32(i.droppedAttributesCount),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.InstrumentationScope;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.name=i.string();break}case 2:{f.version=i.string();break}case 3:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 4:{f.droppedAttributesCount=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.version!=null&&i.hasOwnProperty("version")&&!$e.isString(i.version))return"version: string expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.InstrumentationScope)return i;var n=new Be.opentelemetry.proto.common.v1.InstrumentationScope;if(i.name!=null&&(n.name=String(i.name)),i.version!=null&&(n.version=String(i.version)),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults&&(c.name="",c.version="",c.droppedAttributesCount=0),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.version!=null&&i.hasOwnProperty("version")&&(c.version=i.version),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.InstrumentationScope"},s})(),o.EntityRef=(function(){function s(a){if(this.idKeys=[],this.descriptionKeys=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.schemaUrl=null,s.prototype.type=null,s.prototype.idKeys=$e.emptyArray,s.prototype.descriptionKeys=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(10).string(i.schemaUrl),i.type!=null&&Object.hasOwnProperty.call(i,"type")&&n.uint32(18).string(i.type),i.idKeys!=null&&i.idKeys.length)for(var c=0;c<i.idKeys.length;++c)n.uint32(26).string(i.idKeys[c]);if(i.descriptionKeys!=null&&i.descriptionKeys.length)for(var c=0;c<i.descriptionKeys.length;++c)n.uint32(34).string(i.descriptionKeys[c]);return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.EntityRef;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.schemaUrl=i.string();break}case 2:{f.type=i.string();break}case 3:{f.idKeys&&f.idKeys.length||(f.idKeys=[]),f.idKeys.push(i.string());break}case 4:{f.descriptionKeys&&f.descriptionKeys.length||(f.descriptionKeys=[]),f.descriptionKeys.push(i.string());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl))return"schemaUrl: string expected";if(i.type!=null&&i.hasOwnProperty("type")&&!$e.isString(i.type))return"type: string expected";if(i.idKeys!=null&&i.hasOwnProperty("idKeys")){if(!Array.isArray(i.idKeys))return"idKeys: array expected";for(var n=0;n<i.idKeys.length;++n)if(!$e.isString(i.idKeys[n]))return"idKeys: string[] expected"}if(i.descriptionKeys!=null&&i.hasOwnProperty("descriptionKeys")){if(!Array.isArray(i.descriptionKeys))return"descriptionKeys: array expected";for(var n=0;n<i.descriptionKeys.length;++n)if(!$e.isString(i.descriptionKeys[n]))return"descriptionKeys: string[] expected"}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.EntityRef)return i;var n=new Be.opentelemetry.proto.common.v1.EntityRef;if(i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),i.type!=null&&(n.type=String(i.type)),i.idKeys){if(!Array.isArray(i.idKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.idKeys: array expected");n.idKeys=[];for(var c=0;c<i.idKeys.length;++c)n.idKeys[c]=String(i.idKeys[c])}if(i.descriptionKeys){if(!Array.isArray(i.descriptionKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected");n.descriptionKeys=[];for(var c=0;c<i.descriptionKeys.length;++c)n.descriptionKeys[c]=String(i.descriptionKeys[c])}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.idKeys=[],c.descriptionKeys=[]),n.defaults&&(c.schemaUrl="",c.type=""),i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),i.type!=null&&i.hasOwnProperty("type")&&(c.type=i.type),i.idKeys&&i.idKeys.length){c.idKeys=[];for(var u=0;u<i.idKeys.length;++u)c.idKeys[u]=i.idKeys[u]}if(i.descriptionKeys&&i.descriptionKeys.length){c.descriptionKeys=[];for(var u=0;u<i.descriptionKeys.length;++u)c.descriptionKeys[u]=i.descriptionKeys[u]}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.EntityRef"},s})(),o})(),r})(),e.resource=(function(){var r={};return r.v1=(function(){var o={};return o.Resource=(function(){function s(a){if(this.attributes=[],this.entityRefs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.entityRefs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(10).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(16).uint32(i.droppedAttributesCount),i.entityRefs!=null&&i.entityRefs.length)for(var c=0;c<i.entityRefs.length;++c)Be.opentelemetry.proto.common.v1.EntityRef.encode(i.entityRefs[c],n.uint32(26).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.resource.v1.Resource;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.droppedAttributesCount=i.uint32();break}case 3:{f.entityRefs&&f.entityRefs.length||(f.entityRefs=[]),f.entityRefs.push(Be.opentelemetry.proto.common.v1.EntityRef.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.entityRefs!=null&&i.hasOwnProperty("entityRefs")){if(!Array.isArray(i.entityRefs))return"entityRefs: array expected";for(var n=0;n<i.entityRefs.length;++n){var c=Be.opentelemetry.proto.common.v1.EntityRef.verify(i.entityRefs[n]);if(c)return"entityRefs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.resource.v1.Resource)return i;var n=new Be.opentelemetry.proto.resource.v1.Resource;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.entityRefs){if(!Array.isArray(i.entityRefs))throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: array expected");n.entityRefs=[];for(var c=0;c<i.entityRefs.length;++c){if(typeof i.entityRefs[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: object expected");n.entityRefs[c]=Be.opentelemetry.proto.common.v1.EntityRef.fromObject(i.entityRefs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.entityRefs=[]),n.defaults&&(c.droppedAttributesCount=0),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.entityRefs&&i.entityRefs.length){c.entityRefs=[];for(var u=0;u<i.entityRefs.length;++u)c.entityRefs[u]=Be.opentelemetry.proto.common.v1.EntityRef.toObject(i.entityRefs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.resource.v1.Resource"},s})(),o})(),r})(),e.trace=(function(){var r={};return r.v1=(function(){var o={};return o.TracesData=(function(){function s(a){if(this.resourceSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceSpans=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resourceSpans!=null&&i.resourceSpans.length)for(var c=0;c<i.resourceSpans.length;++c)Be.opentelemetry.proto.trace.v1.ResourceSpans.encode(i.resourceSpans[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.TracesData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceSpans&&f.resourceSpans.length||(f.resourceSpans=[]),f.resourceSpans.push(Be.opentelemetry.proto.trace.v1.ResourceSpans.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceSpans!=null&&i.hasOwnProperty("resourceSpans")){if(!Array.isArray(i.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<i.resourceSpans.length;++n){var c=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[n]);if(c)return"resourceSpans."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.TracesData)return i;var n=new Be.opentelemetry.proto.trace.v1.TracesData;if(i.resourceSpans){if(!Array.isArray(i.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");n.resourceSpans=[];for(var c=0;c<i.resourceSpans.length;++c){if(typeof i.resourceSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");n.resourceSpans[c]=Be.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(i.resourceSpans[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceSpans=[]),i.resourceSpans&&i.resourceSpans.length){c.resourceSpans=[];for(var u=0;u<i.resourceSpans.length;++u)c.resourceSpans[u]=Be.opentelemetry.proto.trace.v1.ResourceSpans.toObject(i.resourceSpans[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.TracesData"},s})(),o.ResourceSpans=(function(){function s(a){if(this.scopeSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeSpans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&Be.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeSpans!=null&&i.scopeSpans.length)for(var c=0;c<i.scopeSpans.length;++c)Be.opentelemetry.proto.trace.v1.ScopeSpans.encode(i.scopeSpans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeSpans&&f.scopeSpans.length||(f.scopeSpans=[]),f.scopeSpans.push(Be.opentelemetry.proto.trace.v1.ScopeSpans.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=Be.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeSpans!=null&&i.hasOwnProperty("scopeSpans")){if(!Array.isArray(i.scopeSpans))return"scopeSpans: array expected";for(var c=0;c<i.scopeSpans.length;++c){var n=Be.opentelemetry.proto.trace.v1.ScopeSpans.verify(i.scopeSpans[c]);if(n)return"scopeSpans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.ResourceSpans)return i;var n=new Be.opentelemetry.proto.trace.v1.ResourceSpans;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");n.resource=Be.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeSpans){if(!Array.isArray(i.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");n.scopeSpans=[];for(var c=0;c<i.scopeSpans.length;++c){if(typeof i.scopeSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");n.scopeSpans[c]=Be.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(i.scopeSpans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeSpans=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=Be.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeSpans&&i.scopeSpans.length){c.scopeSpans=[];for(var u=0;u<i.scopeSpans.length;++u)c.scopeSpans[u]=Be.opentelemetry.proto.trace.v1.ScopeSpans.toObject(i.scopeSpans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ResourceSpans"},s})(),o.ScopeSpans=(function(){function s(a){if(this.spans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.spans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&Be.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.spans!=null&&i.spans.length)for(var c=0;c<i.spans.length;++c)Be.opentelemetry.proto.trace.v1.Span.encode(i.spans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.spans&&f.spans.length||(f.spans=[]),f.spans.push(Be.opentelemetry.proto.trace.v1.Span.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=Be.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.spans!=null&&i.hasOwnProperty("spans")){if(!Array.isArray(i.spans))return"spans: array expected";for(var c=0;c<i.spans.length;++c){var n=Be.opentelemetry.proto.trace.v1.Span.verify(i.spans[c]);if(n)return"spans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.ScopeSpans)return i;var n=new Be.opentelemetry.proto.trace.v1.ScopeSpans;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");n.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.spans){if(!Array.isArray(i.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");n.spans=[];for(var c=0;c<i.spans.length;++c){if(typeof i.spans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");n.spans[c]=Be.opentelemetry.proto.trace.v1.Span.fromObject(i.spans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.spans=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.spans&&i.spans.length){c.spans=[];for(var u=0;u<i.spans.length;++u)c.spans[u]=Be.opentelemetry.proto.trace.v1.Span.toObject(i.spans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ScopeSpans"},s})(),o.Span=(function(){function s(a){if(this.attributes=[],this.events=[],this.links=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.parentSpanId=null,s.prototype.flags=null,s.prototype.name=null,s.prototype.kind=null,s.prototype.startTimeUnixNano=null,s.prototype.endTimeUnixNano=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.events=$e.emptyArray,s.prototype.droppedEventsCount=null,s.prototype.links=$e.emptyArray,s.prototype.droppedLinksCount=null,s.prototype.status=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(10).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(18).bytes(i.spanId),i.traceState!=null&&Object.hasOwnProperty.call(i,"traceState")&&n.uint32(26).string(i.traceState),i.parentSpanId!=null&&Object.hasOwnProperty.call(i,"parentSpanId")&&n.uint32(34).bytes(i.parentSpanId),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(42).string(i.name),i.kind!=null&&Object.hasOwnProperty.call(i,"kind")&&n.uint32(48).int32(i.kind),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(57).fixed64(i.startTimeUnixNano),i.endTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"endTimeUnixNano")&&n.uint32(65).fixed64(i.endTimeUnixNano),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(74).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(80).uint32(i.droppedAttributesCount),i.events!=null&&i.events.length)for(var c=0;c<i.events.length;++c)Be.opentelemetry.proto.trace.v1.Span.Event.encode(i.events[c],n.uint32(90).fork()).ldelim();if(i.droppedEventsCount!=null&&Object.hasOwnProperty.call(i,"droppedEventsCount")&&n.uint32(96).uint32(i.droppedEventsCount),i.links!=null&&i.links.length)for(var c=0;c<i.links.length;++c)Be.opentelemetry.proto.trace.v1.Span.Link.encode(i.links[c],n.uint32(106).fork()).ldelim();return i.droppedLinksCount!=null&&Object.hasOwnProperty.call(i,"droppedLinksCount")&&n.uint32(112).uint32(i.droppedLinksCount),i.status!=null&&Object.hasOwnProperty.call(i,"status")&&Be.opentelemetry.proto.trace.v1.Status.encode(i.status,n.uint32(122).fork()).ldelim(),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(133).fixed32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.Span;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.traceId=i.bytes();break}case 2:{f.spanId=i.bytes();break}case 3:{f.traceState=i.string();break}case 4:{f.parentSpanId=i.bytes();break}case 16:{f.flags=i.fixed32();break}case 5:{f.name=i.string();break}case 6:{f.kind=i.int32();break}case 7:{f.startTimeUnixNano=i.fixed64();break}case 8:{f.endTimeUnixNano=i.fixed64();break}case 9:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 10:{f.droppedAttributesCount=i.uint32();break}case 11:{f.events&&f.events.length||(f.events=[]),f.events.push(Be.opentelemetry.proto.trace.v1.Span.Event.decode(i,i.uint32()));break}case 12:{f.droppedEventsCount=i.uint32();break}case 13:{f.links&&f.links.length||(f.links=[]),f.links.push(Be.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break}case 14:{f.droppedLinksCount=i.uint32();break}case 15:{f.status=Be.opentelemetry.proto.trace.v1.Status.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId)))return"traceId: buffer expected";if(i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId)))return"spanId: buffer expected";if(i.traceState!=null&&i.hasOwnProperty("traceState")&&!$e.isString(i.traceState))return"traceState: string expected";if(i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&!(i.parentSpanId&&typeof i.parentSpanId.length=="number"||$e.isString(i.parentSpanId)))return"parentSpanId: buffer expected";if(i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags))return"flags: integer expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.kind!=null&&i.hasOwnProperty("kind"))switch(i.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&!$e.isInteger(i.endTimeUnixNano)&&!(i.endTimeUnixNano&&$e.isInteger(i.endTimeUnixNano.low)&&$e.isInteger(i.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.events!=null&&i.hasOwnProperty("events")){if(!Array.isArray(i.events))return"events: array expected";for(var n=0;n<i.events.length;++n){var c=Be.opentelemetry.proto.trace.v1.Span.Event.verify(i.events[n]);if(c)return"events."+c}}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&!$e.isInteger(i.droppedEventsCount))return"droppedEventsCount: integer expected";if(i.links!=null&&i.hasOwnProperty("links")){if(!Array.isArray(i.links))return"links: array expected";for(var n=0;n<i.links.length;++n){var c=Be.opentelemetry.proto.trace.v1.Span.Link.verify(i.links[n]);if(c)return"links."+c}}if(i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&!$e.isInteger(i.droppedLinksCount))return"droppedLinksCount: integer expected";if(i.status!=null&&i.hasOwnProperty("status")){var c=Be.opentelemetry.proto.trace.v1.Status.verify(i.status);if(c)return"status."+c}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.Span)return i;var n=new Be.opentelemetry.proto.trace.v1.Span;switch(i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.traceState!=null&&(n.traceState=String(i.traceState)),i.parentSpanId!=null&&(typeof i.parentSpanId=="string"?$e.base64.decode(i.parentSpanId,n.parentSpanId=$e.newBuffer($e.base64.length(i.parentSpanId)),0):i.parentSpanId.length>=0&&(n.parentSpanId=i.parentSpanId)),i.flags!=null&&(n.flags=i.flags>>>0),i.name!=null&&(n.name=String(i.name)),i.kind){default:if(typeof i.kind=="number"){n.kind=i.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:n.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:n.kind=1;break;case"SPAN_KIND_SERVER":case 2:n.kind=2;break;case"SPAN_KIND_CLIENT":case 3:n.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:n.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:n.kind=5;break}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.endTimeUnixNano!=null&&($e.Long?(n.endTimeUnixNano=$e.Long.fromValue(i.endTimeUnixNano)).unsigned=!1:typeof i.endTimeUnixNano=="string"?n.endTimeUnixNano=parseInt(i.endTimeUnixNano,10):typeof i.endTimeUnixNano=="number"?n.endTimeUnixNano=i.endTimeUnixNano:typeof i.endTimeUnixNano=="object"&&(n.endTimeUnixNano=new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber())),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.events){if(!Array.isArray(i.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");n.events=[];for(var c=0;c<i.events.length;++c){if(typeof i.events[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");n.events[c]=Be.opentelemetry.proto.trace.v1.Span.Event.fromObject(i.events[c])}}if(i.droppedEventsCount!=null&&(n.droppedEventsCount=i.droppedEventsCount>>>0),i.links){if(!Array.isArray(i.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");n.links=[];for(var c=0;c<i.links.length;++c){if(typeof i.links[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");n.links[c]=Be.opentelemetry.proto.trace.v1.Span.Link.fromObject(i.links[c])}}if(i.droppedLinksCount!=null&&(n.droppedLinksCount=i.droppedLinksCount>>>0),i.status!=null){if(typeof i.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");n.status=Be.opentelemetry.proto.trace.v1.Status.fromObject(i.status)}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.events=[],c.links=[]),n.defaults){if(n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),c.traceState="",n.bytes===String?c.parentSpanId="":(c.parentSpanId=[],n.bytes!==Array&&(c.parentSpanId=$e.newBuffer(c.parentSpanId))),c.name="",c.kind=n.enums===String?"SPAN_KIND_UNSPECIFIED":0,$e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.endTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.endTimeUnixNano=n.longs===String?"0":0;c.droppedAttributesCount=0,c.droppedEventsCount=0,c.droppedLinksCount=0,c.status=null,c.flags=0}if(i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.traceState!=null&&i.hasOwnProperty("traceState")&&(c.traceState=i.traceState),i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&(c.parentSpanId=n.bytes===String?$e.base64.encode(i.parentSpanId,0,i.parentSpanId.length):n.bytes===Array?Array.prototype.slice.call(i.parentSpanId):i.parentSpanId),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.kind!=null&&i.hasOwnProperty("kind")&&(c.kind=n.enums===String?Be.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]===void 0?i.kind:Be.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]:i.kind),i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&(typeof i.endTimeUnixNano=="number"?c.endTimeUnixNano=n.longs===String?String(i.endTimeUnixNano):i.endTimeUnixNano:c.endTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.endTimeUnixNano):n.longs===Number?new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber():i.endTimeUnixNano),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.events&&i.events.length){c.events=[];for(var f=0;f<i.events.length;++f)c.events[f]=Be.opentelemetry.proto.trace.v1.Span.Event.toObject(i.events[f],n)}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&(c.droppedEventsCount=i.droppedEventsCount),i.links&&i.links.length){c.links=[];for(var f=0;f<i.links.length;++f)c.links[f]=Be.opentelemetry.proto.trace.v1.Span.Link.toObject(i.links[f],n)}return i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&(c.droppedLinksCount=i.droppedLinksCount),i.status!=null&&i.hasOwnProperty("status")&&(c.status=Be.opentelemetry.proto.trace.v1.Status.toObject(i.status,n)),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Span"},s.SpanKind=(function(){var a={},i=Object.create(a);return i[a[0]="SPAN_KIND_UNSPECIFIED"]=0,i[a[1]="SPAN_KIND_INTERNAL"]=1,i[a[2]="SPAN_KIND_SERVER"]=2,i[a[3]="SPAN_KIND_CLIENT"]=3,i[a[4]="SPAN_KIND_PRODUCER"]=4,i[a[5]="SPAN_KIND_CONSUMER"]=5,i})(),s.Event=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.timeUnixNano=null,a.prototype.name=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(9).fixed64(n.timeUnixNano),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(18).string(n.name),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(26).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(32).uint32(n.droppedAttributesCount),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.trace.v1.Span.Event;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.timeUnixNano=n.fixed64();break}case 2:{d.name=n.string();break}case 3:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 4:{d.droppedAttributesCount=n.uint32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.trace.v1.Span.Event)return n;var c=new Be.opentelemetry.proto.trace.v1.Span.Event;if(n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.name!=null&&(c.name=String(n.name)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.name="",u.droppedAttributesCount=0}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Event"},a})(),s.Link=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(10).bytes(n.traceId),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(18).bytes(n.spanId),n.traceState!=null&&Object.hasOwnProperty.call(n,"traceState")&&c.uint32(26).string(n.traceState),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(34).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(40).uint32(n.droppedAttributesCount),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(53).fixed32(n.flags),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.trace.v1.Span.Link;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.traceId=n.bytes();break}case 2:{d.spanId=n.bytes();break}case 3:{d.traceState=n.string();break}case 4:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 5:{d.droppedAttributesCount=n.uint32();break}case 6:{d.flags=n.fixed32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId)))return"traceId: buffer expected";if(n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId)))return"spanId: buffer expected";if(n.traceState!=null&&n.hasOwnProperty("traceState")&&!$e.isString(n.traceState))return"traceState: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.trace.v1.Span.Link)return n;var c=new Be.opentelemetry.proto.trace.v1.Span.Link;if(n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceState!=null&&(c.traceState=String(n.traceState)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),n.flags!=null&&(c.flags=n.flags>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults&&(c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId))),c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),u.traceState="",u.droppedAttributesCount=0,u.flags=0),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceState!=null&&n.hasOwnProperty("traceState")&&(u.traceState=n.traceState),n.attributes&&n.attributes.length){u.attributes=[];for(var f=0;f<n.attributes.length;++f)u.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[f],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Link"},a})(),s})(),o.Status=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.message=null,s.prototype.code=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=oa.create()),i.message!=null&&Object.hasOwnProperty.call(i,"message")&&n.uint32(18).string(i.message),i.code!=null&&Object.hasOwnProperty.call(i,"code")&&n.uint32(24).int32(i.code),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.Status;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 2:{f.message=i.string();break}case 3:{f.code=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.message!=null&&i.hasOwnProperty("message")&&!$e.isString(i.message))return"message: string expected";if(i.code!=null&&i.hasOwnProperty("code"))switch(i.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.Status)return i;var n=new Be.opentelemetry.proto.trace.v1.Status;switch(i.message!=null&&(n.message=String(i.message)),i.code){default:if(typeof i.code=="number"){n.code=i.code;break}break;case"STATUS_CODE_UNSET":case 0:n.code=0;break;case"STATUS_CODE_OK":case 1:n.code=1;break;case"STATUS_CODE_ERROR":case 2:n.code=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.message="",c.code=n.enums===String?"STATUS_CODE_UNSET":0),i.message!=null&&i.hasOwnProperty("message")&&(c.message=i.message),i.code!=null&&i.hasOwnProperty("code")&&(c.code=n.enums===String?Be.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]===void 0?i.code:Be.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]:i.code),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Status"},s.StatusCode=(function(){var a={},i=Object.create(a);return i[a[0]="STATUS_CODE_UNSET"]=0,i[a[1]="STATUS_CODE_OK"]=1,i[a[2]="STATUS_CODE_ERROR"]=2,i})(),s})(),o.SpanFlags=(function(){var s={},a=Object.create(s);return a[s[0]="SPAN_FLAGS_DO_NOT_USE"]=0,a[s[255]="SPAN_FLAGS_TRACE_FLAGS_MASK"]=255,a[s[256]="SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK"]=256,a[s[512]="SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK"]=512,a})(),o})(),r})(),e.collector=(function(){var r={};return r.trace=(function(){var o={};return o.v1=(function(){var s={};return s.TraceService=(function(){function a(i,n,c){Lo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Lo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportTraceServiceRequest=(function(){function a(i){if(this.resourceSpans=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceSpans=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.resourceSpans!=null&&n.resourceSpans.length)for(var u=0;u<n.resourceSpans.length;++u)Be.opentelemetry.proto.trace.v1.ResourceSpans.encode(n.resourceSpans[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceSpans&&d.resourceSpans.length||(d.resourceSpans=[]),d.resourceSpans.push(Be.opentelemetry.proto.trace.v1.ResourceSpans.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceSpans!=null&&n.hasOwnProperty("resourceSpans")){if(!Array.isArray(n.resourceSpans))return"resourceSpans: array expected";for(var c=0;c<n.resourceSpans.length;++c){var u=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(n.resourceSpans[c]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return n;var c=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(n.resourceSpans){if(!Array.isArray(n.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");c.resourceSpans=[];for(var u=0;u<n.resourceSpans.length;++u){if(typeof n.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");c.resourceSpans[u]=Be.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(n.resourceSpans[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceSpans=[]),n.resourceSpans&&n.resourceSpans.length){u.resourceSpans=[];for(var f=0;f<n.resourceSpans.length;++f)u.resourceSpans[f]=Be.opentelemetry.proto.trace.v1.ResourceSpans.toObject(n.resourceSpans[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},a})(),s.ExportTraceServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return n;var c=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");c.partialSuccess=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},a})(),s.ExportTracePartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedSpans=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.rejectedSpans!=null&&Object.hasOwnProperty.call(n,"rejectedSpans")&&c.uint32(8).int64(n.rejectedSpans),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedSpans=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&!$e.isInteger(n.rejectedSpans)&&!(n.rejectedSpans&&$e.isInteger(n.rejectedSpans.low)&&$e.isInteger(n.rejectedSpans.high))?"rejectedSpans: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return n;var c=new Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return n.rejectedSpans!=null&&($e.Long?(c.rejectedSpans=$e.Long.fromValue(n.rejectedSpans)).unsigned=!1:typeof n.rejectedSpans=="string"?c.rejectedSpans=parseInt(n.rejectedSpans,10):typeof n.rejectedSpans=="number"?c.rejectedSpans=n.rejectedSpans:typeof n.rejectedSpans=="object"&&(c.rejectedSpans=new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedSpans=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedSpans=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&(typeof n.rejectedSpans=="number"?u.rejectedSpans=c.longs===String?String(n.rejectedSpans):n.rejectedSpans:u.rejectedSpans=c.longs===String?$e.Long.prototype.toString.call(n.rejectedSpans):c.longs===Number?new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber():n.rejectedSpans),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},a})(),s})(),o})(),r.metrics=(function(){var o={};return o.v1=(function(){var s={};return s.MetricsService=(function(){function a(i,n,c){Lo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Lo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportMetricsServiceRequest=(function(){function a(i){if(this.resourceMetrics=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceMetrics=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.resourceMetrics!=null&&n.resourceMetrics.length)for(var u=0;u<n.resourceMetrics.length;++u)Be.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(n.resourceMetrics[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceMetrics&&d.resourceMetrics.length||(d.resourceMetrics=[]),d.resourceMetrics.push(Be.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceMetrics!=null&&n.hasOwnProperty("resourceMetrics")){if(!Array.isArray(n.resourceMetrics))return"resourceMetrics: array expected";for(var c=0;c<n.resourceMetrics.length;++c){var u=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(n.resourceMetrics[c]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return n;var c=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(n.resourceMetrics){if(!Array.isArray(n.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");c.resourceMetrics=[];for(var u=0;u<n.resourceMetrics.length;++u){if(typeof n.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");c.resourceMetrics[u]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(n.resourceMetrics[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceMetrics=[]),n.resourceMetrics&&n.resourceMetrics.length){u.resourceMetrics=[];for(var f=0;f<n.resourceMetrics.length;++f)u.resourceMetrics[f]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(n.resourceMetrics[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},a})(),s.ExportMetricsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return n;var c=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");c.partialSuccess=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},a})(),s.ExportMetricsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedDataPoints=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.rejectedDataPoints!=null&&Object.hasOwnProperty.call(n,"rejectedDataPoints")&&c.uint32(8).int64(n.rejectedDataPoints),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedDataPoints=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&!$e.isInteger(n.rejectedDataPoints)&&!(n.rejectedDataPoints&&$e.isInteger(n.rejectedDataPoints.low)&&$e.isInteger(n.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return n;var c=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return n.rejectedDataPoints!=null&&($e.Long?(c.rejectedDataPoints=$e.Long.fromValue(n.rejectedDataPoints)).unsigned=!1:typeof n.rejectedDataPoints=="string"?c.rejectedDataPoints=parseInt(n.rejectedDataPoints,10):typeof n.rejectedDataPoints=="number"?c.rejectedDataPoints=n.rejectedDataPoints:typeof n.rejectedDataPoints=="object"&&(c.rejectedDataPoints=new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedDataPoints=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedDataPoints=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&(typeof n.rejectedDataPoints=="number"?u.rejectedDataPoints=c.longs===String?String(n.rejectedDataPoints):n.rejectedDataPoints:u.rejectedDataPoints=c.longs===String?$e.Long.prototype.toString.call(n.rejectedDataPoints):c.longs===Number?new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber():n.rejectedDataPoints),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},a})(),s})(),o})(),r.logs=(function(){var o={};return o.v1=(function(){var s={};return s.LogsService=(function(){function a(i,n,c){Lo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Lo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportLogsServiceRequest=(function(){function a(i){if(this.resourceLogs=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceLogs=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.resourceLogs!=null&&n.resourceLogs.length)for(var u=0;u<n.resourceLogs.length;++u)Be.opentelemetry.proto.logs.v1.ResourceLogs.encode(n.resourceLogs[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceLogs&&d.resourceLogs.length||(d.resourceLogs=[]),d.resourceLogs.push(Be.opentelemetry.proto.logs.v1.ResourceLogs.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceLogs!=null&&n.hasOwnProperty("resourceLogs")){if(!Array.isArray(n.resourceLogs))return"resourceLogs: array expected";for(var c=0;c<n.resourceLogs.length;++c){var u=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(n.resourceLogs[c]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return n;var c=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(n.resourceLogs){if(!Array.isArray(n.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");c.resourceLogs=[];for(var u=0;u<n.resourceLogs.length;++u){if(typeof n.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");c.resourceLogs[u]=Be.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(n.resourceLogs[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceLogs=[]),n.resourceLogs&&n.resourceLogs.length){u.resourceLogs=[];for(var f=0;f<n.resourceLogs.length;++f)u.resourceLogs[f]=Be.opentelemetry.proto.logs.v1.ResourceLogs.toObject(n.resourceLogs[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},a})(),s.ExportLogsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return n;var c=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");c.partialSuccess=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},a})(),s.ExportLogsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedLogRecords=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.rejectedLogRecords!=null&&Object.hasOwnProperty.call(n,"rejectedLogRecords")&&c.uint32(8).int64(n.rejectedLogRecords),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedLogRecords=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&!$e.isInteger(n.rejectedLogRecords)&&!(n.rejectedLogRecords&&$e.isInteger(n.rejectedLogRecords.low)&&$e.isInteger(n.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return n;var c=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return n.rejectedLogRecords!=null&&($e.Long?(c.rejectedLogRecords=$e.Long.fromValue(n.rejectedLogRecords)).unsigned=!1:typeof n.rejectedLogRecords=="string"?c.rejectedLogRecords=parseInt(n.rejectedLogRecords,10):typeof n.rejectedLogRecords=="number"?c.rejectedLogRecords=n.rejectedLogRecords:typeof n.rejectedLogRecords=="object"&&(c.rejectedLogRecords=new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedLogRecords=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedLogRecords=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&(typeof n.rejectedLogRecords=="number"?u.rejectedLogRecords=c.longs===String?String(n.rejectedLogRecords):n.rejectedLogRecords:u.rejectedLogRecords=c.longs===String?$e.Long.prototype.toString.call(n.rejectedLogRecords):c.longs===Number?new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber():n.rejectedLogRecords),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},a})(),s})(),o})(),r})(),e.metrics=(function(){var r={};return r.v1=(function(){var o={};return o.MetricsData=(function(){function s(a){if(this.resourceMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceMetrics=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resourceMetrics!=null&&i.resourceMetrics.length)for(var c=0;c<i.resourceMetrics.length;++c)Be.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(i.resourceMetrics[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.MetricsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceMetrics&&f.resourceMetrics.length||(f.resourceMetrics=[]),f.resourceMetrics.push(Be.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceMetrics!=null&&i.hasOwnProperty("resourceMetrics")){if(!Array.isArray(i.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<i.resourceMetrics.length;++n){var c=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[n]);if(c)return"resourceMetrics."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.MetricsData)return i;var n=new Be.opentelemetry.proto.metrics.v1.MetricsData;if(i.resourceMetrics){if(!Array.isArray(i.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");n.resourceMetrics=[];for(var c=0;c<i.resourceMetrics.length;++c){if(typeof i.resourceMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");n.resourceMetrics[c]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(i.resourceMetrics[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceMetrics=[]),i.resourceMetrics&&i.resourceMetrics.length){c.resourceMetrics=[];for(var u=0;u<i.resourceMetrics.length;++u)c.resourceMetrics[u]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(i.resourceMetrics[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.MetricsData"},s})(),o.ResourceMetrics=(function(){function s(a){if(this.scopeMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeMetrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&Be.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeMetrics!=null&&i.scopeMetrics.length)for(var c=0;c<i.scopeMetrics.length;++c)Be.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(i.scopeMetrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeMetrics&&f.scopeMetrics.length||(f.scopeMetrics=[]),f.scopeMetrics.push(Be.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=Be.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeMetrics!=null&&i.hasOwnProperty("scopeMetrics")){if(!Array.isArray(i.scopeMetrics))return"scopeMetrics: array expected";for(var c=0;c<i.scopeMetrics.length;++c){var n=Be.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(i.scopeMetrics[c]);if(n)return"scopeMetrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var n=new Be.opentelemetry.proto.metrics.v1.ResourceMetrics;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");n.resource=Be.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeMetrics){if(!Array.isArray(i.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");n.scopeMetrics=[];for(var c=0;c<i.scopeMetrics.length;++c){if(typeof i.scopeMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");n.scopeMetrics[c]=Be.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(i.scopeMetrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeMetrics=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=Be.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeMetrics&&i.scopeMetrics.length){c.scopeMetrics=[];for(var u=0;u<i.scopeMetrics.length;++u)c.scopeMetrics[u]=Be.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(i.scopeMetrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},s})(),o.ScopeMetrics=(function(){function s(a){if(this.metrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.metrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&Be.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.metrics!=null&&i.metrics.length)for(var c=0;c<i.metrics.length;++c)Be.opentelemetry.proto.metrics.v1.Metric.encode(i.metrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.metrics&&f.metrics.length||(f.metrics=[]),f.metrics.push(Be.opentelemetry.proto.metrics.v1.Metric.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=Be.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.metrics!=null&&i.hasOwnProperty("metrics")){if(!Array.isArray(i.metrics))return"metrics: array expected";for(var c=0;c<i.metrics.length;++c){var n=Be.opentelemetry.proto.metrics.v1.Metric.verify(i.metrics[c]);if(n)return"metrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var n=new Be.opentelemetry.proto.metrics.v1.ScopeMetrics;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");n.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.metrics){if(!Array.isArray(i.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");n.metrics=[];for(var c=0;c<i.metrics.length;++c){if(typeof i.metrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");n.metrics[c]=Be.opentelemetry.proto.metrics.v1.Metric.fromObject(i.metrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.metrics=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.metrics&&i.metrics.length){c.metrics=[];for(var u=0;u<i.metrics.length;++u)c.metrics[u]=Be.opentelemetry.proto.metrics.v1.Metric.toObject(i.metrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},s})(),o.Metric=(function(){function s(i){if(this.metadata=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.name=null,s.prototype.description=null,s.prototype.unit=null,s.prototype.gauge=null,s.prototype.sum=null,s.prototype.histogram=null,s.prototype.exponentialHistogram=null,s.prototype.summary=null,s.prototype.metadata=$e.emptyArray;var a;return Object.defineProperty(s.prototype,"data",{get:$e.oneOfGetter(a=["gauge","sum","histogram","exponentialHistogram","summary"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(10).string(n.name),n.description!=null&&Object.hasOwnProperty.call(n,"description")&&c.uint32(18).string(n.description),n.unit!=null&&Object.hasOwnProperty.call(n,"unit")&&c.uint32(26).string(n.unit),n.gauge!=null&&Object.hasOwnProperty.call(n,"gauge")&&Be.opentelemetry.proto.metrics.v1.Gauge.encode(n.gauge,c.uint32(42).fork()).ldelim(),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&Be.opentelemetry.proto.metrics.v1.Sum.encode(n.sum,c.uint32(58).fork()).ldelim(),n.histogram!=null&&Object.hasOwnProperty.call(n,"histogram")&&Be.opentelemetry.proto.metrics.v1.Histogram.encode(n.histogram,c.uint32(74).fork()).ldelim(),n.exponentialHistogram!=null&&Object.hasOwnProperty.call(n,"exponentialHistogram")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(n.exponentialHistogram,c.uint32(82).fork()).ldelim(),n.summary!=null&&Object.hasOwnProperty.call(n,"summary")&&Be.opentelemetry.proto.metrics.v1.Summary.encode(n.summary,c.uint32(90).fork()).ldelim(),n.metadata!=null&&n.metadata.length)for(var u=0;u<n.metadata.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.metadata[u],c.uint32(98).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.Metric;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.name=n.string();break}case 2:{d.description=n.string();break}case 3:{d.unit=n.string();break}case 5:{d.gauge=Be.opentelemetry.proto.metrics.v1.Gauge.decode(n,n.uint32());break}case 7:{d.sum=Be.opentelemetry.proto.metrics.v1.Sum.decode(n,n.uint32());break}case 9:{d.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.decode(n,n.uint32());break}case 10:{d.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(n,n.uint32());break}case 11:{d.summary=Be.opentelemetry.proto.metrics.v1.Summary.decode(n,n.uint32());break}case 12:{d.metadata&&d.metadata.length||(d.metadata=[]),d.metadata.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.description!=null&&n.hasOwnProperty("description")&&!$e.isString(n.description))return"description: string expected";if(n.unit!=null&&n.hasOwnProperty("unit")&&!$e.isString(n.unit))return"unit: string expected";if(n.gauge!=null&&n.hasOwnProperty("gauge")){c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Gauge.verify(n.gauge);if(u)return"gauge."+u}}if(n.sum!=null&&n.hasOwnProperty("sum")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Sum.verify(n.sum);if(u)return"sum."+u}}if(n.histogram!=null&&n.hasOwnProperty("histogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Histogram.verify(n.histogram);if(u)return"histogram."+u}}if(n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(n.exponentialHistogram);if(u)return"exponentialHistogram."+u}}if(n.summary!=null&&n.hasOwnProperty("summary")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Summary.verify(n.summary);if(u)return"summary."+u}}if(n.metadata!=null&&n.hasOwnProperty("metadata")){if(!Array.isArray(n.metadata))return"metadata: array expected";for(var f=0;f<n.metadata.length;++f){var u=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.metadata[f]);if(u)return"metadata."+u}}return null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.Metric)return n;var c=new Be.opentelemetry.proto.metrics.v1.Metric;if(n.name!=null&&(c.name=String(n.name)),n.description!=null&&(c.description=String(n.description)),n.unit!=null&&(c.unit=String(n.unit)),n.gauge!=null){if(typeof n.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");c.gauge=Be.opentelemetry.proto.metrics.v1.Gauge.fromObject(n.gauge)}if(n.sum!=null){if(typeof n.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");c.sum=Be.opentelemetry.proto.metrics.v1.Sum.fromObject(n.sum)}if(n.histogram!=null){if(typeof n.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");c.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.fromObject(n.histogram)}if(n.exponentialHistogram!=null){if(typeof n.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");c.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(n.exponentialHistogram)}if(n.summary!=null){if(typeof n.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");c.summary=Be.opentelemetry.proto.metrics.v1.Summary.fromObject(n.summary)}if(n.metadata){if(!Array.isArray(n.metadata))throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: array expected");c.metadata=[];for(var u=0;u<n.metadata.length;++u){if(typeof n.metadata[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: object expected");c.metadata[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.metadata[u])}}return c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.metadata=[]),c.defaults&&(u.name="",u.description="",u.unit=""),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.description!=null&&n.hasOwnProperty("description")&&(u.description=n.description),n.unit!=null&&n.hasOwnProperty("unit")&&(u.unit=n.unit),n.gauge!=null&&n.hasOwnProperty("gauge")&&(u.gauge=Be.opentelemetry.proto.metrics.v1.Gauge.toObject(n.gauge,c),c.oneofs&&(u.data="gauge")),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=Be.opentelemetry.proto.metrics.v1.Sum.toObject(n.sum,c),c.oneofs&&(u.data="sum")),n.histogram!=null&&n.hasOwnProperty("histogram")&&(u.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.toObject(n.histogram,c),c.oneofs&&(u.data="histogram")),n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")&&(u.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(n.exponentialHistogram,c),c.oneofs&&(u.data="exponentialHistogram")),n.summary!=null&&n.hasOwnProperty("summary")&&(u.summary=Be.opentelemetry.proto.metrics.v1.Summary.toObject(n.summary,c),c.oneofs&&(u.data="summary")),n.metadata&&n.metadata.length){u.metadata=[];for(var f=0;f<n.metadata.length;++f)u.metadata[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.metadata[f],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Metric"},s})(),o.Gauge=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Gauge;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Gauge)return i;var n=new Be.opentelemetry.proto.metrics.v1.Gauge;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Gauge"},s})(),o.Sum=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.prototype.isMonotonic=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),i.isMonotonic!=null&&Object.hasOwnProperty.call(i,"isMonotonic")&&n.uint32(24).bool(i.isMonotonic),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Sum;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}case 3:{f.isMonotonic=i.bool();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&typeof i.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Sum)return i;var n=new Be.opentelemetry.proto.metrics.v1.Sum;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return i.isMonotonic!=null&&(n.isMonotonic=!!i.isMonotonic),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,c.isMonotonic=!1),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&(c.isMonotonic=i.isMonotonic),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Sum"},s})(),o.Histogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Histogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Histogram)return i;var n=new Be.opentelemetry.proto.metrics.v1.Histogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Histogram"},s})(),o.ExponentialHistogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var n=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},s})(),o.Summary=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Summary;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Summary)return i;var n=new Be.opentelemetry.proto.metrics.v1.Summary;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Summary"},s})(),o.AggregationTemporality=(function(){var s={},a=Object.create(s);return a[s[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,a[s[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,a[s[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,a})(),o.DataPointFlags=(function(){var s={},a=Object.create(s);return a[s[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,a[s[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,a})(),o.NumberDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(33).double(n.asDouble),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)Be.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(42).fork()).ldelim();if(n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(58).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(64).uint32(n.flags),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.NumberDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 5:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(Be.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 8:{d.flags=n.uint32();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=Be.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.NumberDataPoint)return n;var c=new Be.opentelemetry.proto.metrics.v1.NumberDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");c.exemplars[u]=Be.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=Be.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},s})(),o.HistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.bucketCounts=$e.emptyArray,s.prototype.explicitBounds=$e.emptyArray,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null,s.prototype.min=null,s.prototype.max=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.bucketCounts!=null&&n.bucketCounts.length){c.uint32(50).fork();for(var u=0;u<n.bucketCounts.length;++u)c.fixed64(n.bucketCounts[u]);c.ldelim()}if(n.explicitBounds!=null&&n.explicitBounds.length){c.uint32(58).fork();for(var u=0;u<n.explicitBounds.length;++u)c.double(n.explicitBounds[u]);c.ldelim()}if(n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)Be.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(66).fork()).ldelim();if(n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(74).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(89).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(97).double(n.max),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.HistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 9:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{if(d.bucketCounts&&d.bucketCounts.length||(d.bucketCounts=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.bucketCounts.push(n.fixed64());else d.bucketCounts.push(n.fixed64());break}case 7:{if(d.explicitBounds&&d.explicitBounds.length||(d.explicitBounds=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.explicitBounds.push(n.double());else d.explicitBounds.push(n.double());break}case 8:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(Be.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 10:{d.flags=n.uint32();break}case 11:{d.min=n.double();break}case 12:{d.max=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<n.bucketCounts.length;++u)if(!$e.isInteger(n.bucketCounts[u])&&!(n.bucketCounts[u]&&$e.isInteger(n.bucketCounts[u].low)&&$e.isInteger(n.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}if(n.explicitBounds!=null&&n.hasOwnProperty("explicitBounds")){if(!Array.isArray(n.explicitBounds))return"explicitBounds: array expected";for(var u=0;u<n.explicitBounds.length;++u)if(typeof n.explicitBounds[u]!="number")return"explicitBounds: number[] expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=Be.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.HistogramDataPoint)return n;var c=new Be.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");c.bucketCounts=[];for(var u=0;u<n.bucketCounts.length;++u)$e.Long?(c.bucketCounts[u]=$e.Long.fromValue(n.bucketCounts[u])).unsigned=!1:typeof n.bucketCounts[u]=="string"?c.bucketCounts[u]=parseInt(n.bucketCounts[u],10):typeof n.bucketCounts[u]=="number"?c.bucketCounts[u]=n.bucketCounts[u]:typeof n.bucketCounts[u]=="object"&&(c.bucketCounts[u]=new $e.LongBits(n.bucketCounts[u].low>>>0,n.bucketCounts[u].high>>>0).toNumber())}if(n.explicitBounds){if(!Array.isArray(n.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");c.explicitBounds=[];for(var u=0;u<n.explicitBounds.length;++u)c.explicitBounds[u]=Number(n.explicitBounds[u])}if(n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");c.exemplars[u]=Be.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.bucketCounts=[],u.explicitBounds=[],u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.bucketCounts&&n.bucketCounts.length){u.bucketCounts=[];for(var d=0;d<n.bucketCounts.length;++d)typeof n.bucketCounts[d]=="number"?u.bucketCounts[d]=c.longs===String?String(n.bucketCounts[d]):n.bucketCounts[d]:u.bucketCounts[d]=c.longs===String?$e.Long.prototype.toString.call(n.bucketCounts[d]):c.longs===Number?new $e.LongBits(n.bucketCounts[d].low>>>0,n.bucketCounts[d].high>>>0).toNumber():n.bucketCounts[d]}if(n.explicitBounds&&n.explicitBounds.length){u.explicitBounds=[];for(var d=0;d<n.explicitBounds.length;++d)u.explicitBounds[d]=c.json&&!isFinite(n.explicitBounds[d])?String(n.explicitBounds[d]):n.explicitBounds[d]}if(n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=Be.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},s})(),o.ExponentialHistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.scale=null,s.prototype.zeroCount=null,s.prototype.positive=null,s.prototype.negative=null,s.prototype.flags=null,s.prototype.exemplars=$e.emptyArray,s.prototype.min=null,s.prototype.max=null,s.prototype.zeroThreshold=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(10).fork()).ldelim();if(n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.scale!=null&&Object.hasOwnProperty.call(n,"scale")&&c.uint32(48).sint32(n.scale),n.zeroCount!=null&&Object.hasOwnProperty.call(n,"zeroCount")&&c.uint32(57).fixed64(n.zeroCount),n.positive!=null&&Object.hasOwnProperty.call(n,"positive")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.positive,c.uint32(66).fork()).ldelim(),n.negative!=null&&Object.hasOwnProperty.call(n,"negative")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.negative,c.uint32(74).fork()).ldelim(),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)Be.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(90).fork()).ldelim();return n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(97).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(105).double(n.max),n.zeroThreshold!=null&&Object.hasOwnProperty.call(n,"zeroThreshold")&&c.uint32(113).double(n.zeroThreshold),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{d.scale=n.sint32();break}case 7:{d.zeroCount=n.fixed64();break}case 8:{d.positive=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 9:{d.negative=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 10:{d.flags=n.uint32();break}case 11:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(Be.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 12:{d.min=n.double();break}case 13:{d.max=n.double();break}case 14:{d.zeroThreshold=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.scale!=null&&n.hasOwnProperty("scale")&&!$e.isInteger(n.scale))return"scale: integer expected";if(n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&!$e.isInteger(n.zeroCount)&&!(n.zeroCount&&$e.isInteger(n.zeroCount.low)&&$e.isInteger(n.zeroCount.high)))return"zeroCount: integer|Long expected";if(n.positive!=null&&n.hasOwnProperty("positive")){var f=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.positive);if(f)return"positive."+f}if(n.negative!=null&&n.hasOwnProperty("negative")){var f=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.negative);if(f)return"negative."+f}if(n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags))return"flags: integer expected";if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=Be.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&typeof n.zeroThreshold!="number"?"zeroThreshold: number expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return n;var c=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.scale!=null&&(c.scale=n.scale|0),n.zeroCount!=null&&($e.Long?(c.zeroCount=$e.Long.fromValue(n.zeroCount)).unsigned=!1:typeof n.zeroCount=="string"?c.zeroCount=parseInt(n.zeroCount,10):typeof n.zeroCount=="number"?c.zeroCount=n.zeroCount:typeof n.zeroCount=="object"&&(c.zeroCount=new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber())),n.positive!=null){if(typeof n.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");c.positive=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.positive)}if(n.negative!=null){if(typeof n.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");c.negative=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.negative)}if(n.flags!=null&&(c.flags=n.flags>>>0),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");c.exemplars[u]=Be.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),n.zeroThreshold!=null&&(c.zeroThreshold=Number(n.zeroThreshold)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[],u.exemplars=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;if(u.scale=0,$e.Long){var f=new $e.Long(0,0,!1);u.zeroCount=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.zeroCount=c.longs===String?"0":0;u.positive=null,u.negative=null,u.flags=0,u.zeroThreshold=0}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.scale!=null&&n.hasOwnProperty("scale")&&(u.scale=n.scale),n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&(typeof n.zeroCount=="number"?u.zeroCount=c.longs===String?String(n.zeroCount):n.zeroCount:u.zeroCount=c.longs===String?$e.Long.prototype.toString.call(n.zeroCount):c.longs===Number?new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber():n.zeroCount),n.positive!=null&&n.hasOwnProperty("positive")&&(u.positive=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.positive,c)),n.negative!=null&&n.hasOwnProperty("negative")&&(u.negative=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.negative,c)),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=Be.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}return n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&(u.zeroThreshold=c.json&&!isFinite(n.zeroThreshold)?String(n.zeroThreshold):n.zeroThreshold),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},s.Buckets=(function(){function i(n){if(this.bucketCounts=[],n)for(var c=Object.keys(n),u=0;u<c.length;++u)n[c[u]]!=null&&(this[c[u]]=n[c[u]])}return i.prototype.offset=null,i.prototype.bucketCounts=$e.emptyArray,i.create=function(c){return new i(c)},i.encode=function(c,u){if(u||(u=oa.create()),c.offset!=null&&Object.hasOwnProperty.call(c,"offset")&&u.uint32(8).sint32(c.offset),c.bucketCounts!=null&&c.bucketCounts.length){u.uint32(18).fork();for(var f=0;f<c.bucketCounts.length;++f)u.uint64(c.bucketCounts[f]);u.ldelim()}return u},i.encodeDelimited=function(c,u){return this.encode(c,u).ldelim()},i.decode=function(c,u,f){c instanceof Kt||(c=Kt.create(c));for(var d=u===void 0?c.len:c.pos+u,p=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;c.pos<d;){var h=c.uint32();if(h===f)break;switch(h>>>3){case 1:{p.offset=c.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(h&7)===2)for(var m=c.uint32()+c.pos;c.pos<m;)p.bucketCounts.push(c.uint64());else p.bucketCounts.push(c.uint64());break}default:c.skipType(h&7);break}}return p},i.decodeDelimited=function(c){return c instanceof Kt||(c=new Kt(c)),this.decode(c,c.uint32())},i.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.offset!=null&&c.hasOwnProperty("offset")&&!$e.isInteger(c.offset))return"offset: integer expected";if(c.bucketCounts!=null&&c.hasOwnProperty("bucketCounts")){if(!Array.isArray(c.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<c.bucketCounts.length;++u)if(!$e.isInteger(c.bucketCounts[u])&&!(c.bucketCounts[u]&&$e.isInteger(c.bucketCounts[u].low)&&$e.isInteger(c.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}return null},i.fromObject=function(c){if(c instanceof Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return c;var u=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(c.offset!=null&&(u.offset=c.offset|0),c.bucketCounts){if(!Array.isArray(c.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");u.bucketCounts=[];for(var f=0;f<c.bucketCounts.length;++f)$e.Long?(u.bucketCounts[f]=$e.Long.fromValue(c.bucketCounts[f])).unsigned=!0:typeof c.bucketCounts[f]=="string"?u.bucketCounts[f]=parseInt(c.bucketCounts[f],10):typeof c.bucketCounts[f]=="number"?u.bucketCounts[f]=c.bucketCounts[f]:typeof c.bucketCounts[f]=="object"&&(u.bucketCounts[f]=new $e.LongBits(c.bucketCounts[f].low>>>0,c.bucketCounts[f].high>>>0).toNumber(!0))}return u},i.toObject=function(c,u){u||(u={});var f={};if((u.arrays||u.defaults)&&(f.bucketCounts=[]),u.defaults&&(f.offset=0),c.offset!=null&&c.hasOwnProperty("offset")&&(f.offset=c.offset),c.bucketCounts&&c.bucketCounts.length){f.bucketCounts=[];for(var d=0;d<c.bucketCounts.length;++d)typeof c.bucketCounts[d]=="number"?f.bucketCounts[d]=u.longs===String?String(c.bucketCounts[d]):c.bucketCounts[d]:f.bucketCounts[d]=u.longs===String?$e.Long.prototype.toString.call(c.bucketCounts[d]):u.longs===Number?new $e.LongBits(c.bucketCounts[d].low>>>0,c.bucketCounts[d].high>>>0).toNumber(!0):c.bucketCounts[d]}return f},i.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},i.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},i})(),s})(),o.SummaryDataPoint=(function(){function s(a){if(this.attributes=[],this.quantileValues=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.quantileValues=$e.emptyArray,s.prototype.flags=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(17).fixed64(i.startTimeUnixNano),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(25).fixed64(i.timeUnixNano),i.count!=null&&Object.hasOwnProperty.call(i,"count")&&n.uint32(33).fixed64(i.count),i.sum!=null&&Object.hasOwnProperty.call(i,"sum")&&n.uint32(41).double(i.sum),i.quantileValues!=null&&i.quantileValues.length)for(var c=0;c<i.quantileValues.length;++c)Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(i.quantileValues[c],n.uint32(50).fork()).ldelim();if(i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(58).fork()).ldelim();return i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(64).uint32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 7:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.startTimeUnixNano=i.fixed64();break}case 3:{f.timeUnixNano=i.fixed64();break}case 4:{f.count=i.fixed64();break}case 5:{f.sum=i.double();break}case 6:{f.quantileValues&&f.quantileValues.length||(f.quantileValues=[]),f.quantileValues.push(Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(i,i.uint32()));break}case 8:{f.flags=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.count!=null&&i.hasOwnProperty("count")&&!$e.isInteger(i.count)&&!(i.count&&$e.isInteger(i.count.low)&&$e.isInteger(i.count.high)))return"count: integer|Long expected";if(i.sum!=null&&i.hasOwnProperty("sum")&&typeof i.sum!="number")return"sum: number expected";if(i.quantileValues!=null&&i.hasOwnProperty("quantileValues")){if(!Array.isArray(i.quantileValues))return"quantileValues: array expected";for(var n=0;n<i.quantileValues.length;++n){var c=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(i.quantileValues[n]);if(c)return"quantileValues."+c}}return i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var n=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.count!=null&&($e.Long?(n.count=$e.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.sum!=null&&(n.sum=Number(i.sum)),i.quantileValues){if(!Array.isArray(i.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");n.quantileValues=[];for(var c=0;c<i.quantileValues.length;++c){if(typeof i.quantileValues[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");n.quantileValues[c]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(i.quantileValues[c])}}return i.flags!=null&&(n.flags=i.flags>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.quantileValues=[],c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.count=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.count=n.longs===String?"0":0;c.sum=0,c.flags=0}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?c.count=n.longs===String?String(i.count):i.count:c.count=n.longs===String?$e.Long.prototype.toString.call(i.count):n.longs===Number?new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.sum!=null&&i.hasOwnProperty("sum")&&(c.sum=n.json&&!isFinite(i.sum)?String(i.sum):i.sum),i.quantileValues&&i.quantileValues.length){c.quantileValues=[];for(var f=0;f<i.quantileValues.length;++f)c.quantileValues[f]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(i.quantileValues[f],n)}if(i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},s.ValueAtQuantile=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.quantile=null,a.prototype.value=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.quantile!=null&&Object.hasOwnProperty.call(n,"quantile")&&c.uint32(9).double(n.quantile),n.value!=null&&Object.hasOwnProperty.call(n,"value")&&c.uint32(17).double(n.value),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.quantile=n.double();break}case 2:{d.value=n.double();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.quantile!=null&&n.hasOwnProperty("quantile")&&typeof n.quantile!="number"?"quantile: number expected":n.value!=null&&n.hasOwnProperty("value")&&typeof n.value!="number"?"value: number expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return n;var c=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return n.quantile!=null&&(c.quantile=Number(n.quantile)),n.value!=null&&(c.value=Number(n.value)),c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.quantile=0,u.value=0),n.quantile!=null&&n.hasOwnProperty("quantile")&&(u.quantile=c.json&&!isFinite(n.quantile)?String(n.quantile):n.quantile),n.value!=null&&n.hasOwnProperty("value")&&(u.value=c.json&&!isFinite(n.value)?String(n.value):n.value),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},a})(),s})(),o.Exemplar=(function(){function s(i){if(this.filteredAttributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.filteredAttributes=$e.emptyArray,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.spanId=null,s.prototype.traceId=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(17).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(25).double(n.asDouble),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(34).bytes(n.spanId),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(42).bytes(n.traceId),n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.filteredAttributes!=null&&n.filteredAttributes.length)for(var u=0;u<n.filteredAttributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.filteredAttributes[u],c.uint32(58).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.Exemplar;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.filteredAttributes&&d.filteredAttributes.length||(d.filteredAttributes=[]),d.filteredAttributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.timeUnixNano=n.fixed64();break}case 3:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 4:{d.spanId=n.bytes();break}case 5:{d.traceId=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.filteredAttributes!=null&&n.hasOwnProperty("filteredAttributes")){if(!Array.isArray(n.filteredAttributes))return"filteredAttributes: array expected";for(var u=0;u<n.filteredAttributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.filteredAttributes[u]);if(f)return"filteredAttributes."+f}}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}return n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId))?"spanId: buffer expected":n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId))?"traceId: buffer expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.Exemplar)return n;var c=new Be.opentelemetry.proto.metrics.v1.Exemplar;if(n.filteredAttributes){if(!Array.isArray(n.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");c.filteredAttributes=[];for(var u=0;u<n.filteredAttributes.length;++u){if(typeof n.filteredAttributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");c.filteredAttributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.filteredAttributes[u])}}return n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.filteredAttributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId)))}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.filteredAttributes&&n.filteredAttributes.length){u.filteredAttributes=[];for(var d=0;d<n.filteredAttributes.length;++d)u.filteredAttributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.filteredAttributes[d],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Exemplar"},s})(),o})(),r})(),e.logs=(function(){var r={};return r.v1=(function(){var o={};return o.LogsData=(function(){function s(a){if(this.resourceLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceLogs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resourceLogs!=null&&i.resourceLogs.length)for(var c=0;c<i.resourceLogs.length;++c)Be.opentelemetry.proto.logs.v1.ResourceLogs.encode(i.resourceLogs[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.LogsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceLogs&&f.resourceLogs.length||(f.resourceLogs=[]),f.resourceLogs.push(Be.opentelemetry.proto.logs.v1.ResourceLogs.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceLogs!=null&&i.hasOwnProperty("resourceLogs")){if(!Array.isArray(i.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<i.resourceLogs.length;++n){var c=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[n]);if(c)return"resourceLogs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.LogsData)return i;var n=new Be.opentelemetry.proto.logs.v1.LogsData;if(i.resourceLogs){if(!Array.isArray(i.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");n.resourceLogs=[];for(var c=0;c<i.resourceLogs.length;++c){if(typeof i.resourceLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");n.resourceLogs[c]=Be.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(i.resourceLogs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceLogs=[]),i.resourceLogs&&i.resourceLogs.length){c.resourceLogs=[];for(var u=0;u<i.resourceLogs.length;++u)c.resourceLogs[u]=Be.opentelemetry.proto.logs.v1.ResourceLogs.toObject(i.resourceLogs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogsData"},s})(),o.ResourceLogs=(function(){function s(a){if(this.scopeLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeLogs=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&Be.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeLogs!=null&&i.scopeLogs.length)for(var c=0;c<i.scopeLogs.length;++c)Be.opentelemetry.proto.logs.v1.ScopeLogs.encode(i.scopeLogs[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeLogs&&f.scopeLogs.length||(f.scopeLogs=[]),f.scopeLogs.push(Be.opentelemetry.proto.logs.v1.ScopeLogs.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=Be.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeLogs!=null&&i.hasOwnProperty("scopeLogs")){if(!Array.isArray(i.scopeLogs))return"scopeLogs: array expected";for(var c=0;c<i.scopeLogs.length;++c){var n=Be.opentelemetry.proto.logs.v1.ScopeLogs.verify(i.scopeLogs[c]);if(n)return"scopeLogs."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.ResourceLogs)return i;var n=new Be.opentelemetry.proto.logs.v1.ResourceLogs;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");n.resource=Be.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeLogs){if(!Array.isArray(i.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");n.scopeLogs=[];for(var c=0;c<i.scopeLogs.length;++c){if(typeof i.scopeLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");n.scopeLogs[c]=Be.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(i.scopeLogs[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeLogs=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=Be.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeLogs&&i.scopeLogs.length){c.scopeLogs=[];for(var u=0;u<i.scopeLogs.length;++u)c.scopeLogs[u]=Be.opentelemetry.proto.logs.v1.ScopeLogs.toObject(i.scopeLogs[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ResourceLogs"},s})(),o.ScopeLogs=(function(){function s(a){if(this.logRecords=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.logRecords=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&Be.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.logRecords!=null&&i.logRecords.length)for(var c=0;c<i.logRecords.length;++c)Be.opentelemetry.proto.logs.v1.LogRecord.encode(i.logRecords[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.logRecords&&f.logRecords.length||(f.logRecords=[]),f.logRecords.push(Be.opentelemetry.proto.logs.v1.LogRecord.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=Be.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.logRecords!=null&&i.hasOwnProperty("logRecords")){if(!Array.isArray(i.logRecords))return"logRecords: array expected";for(var c=0;c<i.logRecords.length;++c){var n=Be.opentelemetry.proto.logs.v1.LogRecord.verify(i.logRecords[c]);if(n)return"logRecords."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.ScopeLogs)return i;var n=new Be.opentelemetry.proto.logs.v1.ScopeLogs;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");n.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.logRecords){if(!Array.isArray(i.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");n.logRecords=[];for(var c=0;c<i.logRecords.length;++c){if(typeof i.logRecords[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");n.logRecords[c]=Be.opentelemetry.proto.logs.v1.LogRecord.fromObject(i.logRecords[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.logRecords=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.logRecords&&i.logRecords.length){c.logRecords=[];for(var u=0;u<i.logRecords.length;++u)c.logRecords[u]=Be.opentelemetry.proto.logs.v1.LogRecord.toObject(i.logRecords[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ScopeLogs"},s})(),o.SeverityNumber=(function(){var s={},a=Object.create(s);return a[s[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,a[s[1]="SEVERITY_NUMBER_TRACE"]=1,a[s[2]="SEVERITY_NUMBER_TRACE2"]=2,a[s[3]="SEVERITY_NUMBER_TRACE3"]=3,a[s[4]="SEVERITY_NUMBER_TRACE4"]=4,a[s[5]="SEVERITY_NUMBER_DEBUG"]=5,a[s[6]="SEVERITY_NUMBER_DEBUG2"]=6,a[s[7]="SEVERITY_NUMBER_DEBUG3"]=7,a[s[8]="SEVERITY_NUMBER_DEBUG4"]=8,a[s[9]="SEVERITY_NUMBER_INFO"]=9,a[s[10]="SEVERITY_NUMBER_INFO2"]=10,a[s[11]="SEVERITY_NUMBER_INFO3"]=11,a[s[12]="SEVERITY_NUMBER_INFO4"]=12,a[s[13]="SEVERITY_NUMBER_WARN"]=13,a[s[14]="SEVERITY_NUMBER_WARN2"]=14,a[s[15]="SEVERITY_NUMBER_WARN3"]=15,a[s[16]="SEVERITY_NUMBER_WARN4"]=16,a[s[17]="SEVERITY_NUMBER_ERROR"]=17,a[s[18]="SEVERITY_NUMBER_ERROR2"]=18,a[s[19]="SEVERITY_NUMBER_ERROR3"]=19,a[s[20]="SEVERITY_NUMBER_ERROR4"]=20,a[s[21]="SEVERITY_NUMBER_FATAL"]=21,a[s[22]="SEVERITY_NUMBER_FATAL2"]=22,a[s[23]="SEVERITY_NUMBER_FATAL3"]=23,a[s[24]="SEVERITY_NUMBER_FATAL4"]=24,a})(),o.LogRecordFlags=(function(){var s={},a=Object.create(s);return a[s[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,a[s[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,a})(),o.LogRecord=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.timeUnixNano=null,s.prototype.observedTimeUnixNano=null,s.prototype.severityNumber=null,s.prototype.severityText=null,s.prototype.body=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.flags=null,s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.eventName=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(9).fixed64(i.timeUnixNano),i.severityNumber!=null&&Object.hasOwnProperty.call(i,"severityNumber")&&n.uint32(16).int32(i.severityNumber),i.severityText!=null&&Object.hasOwnProperty.call(i,"severityText")&&n.uint32(26).string(i.severityText),i.body!=null&&Object.hasOwnProperty.call(i,"body")&&Be.opentelemetry.proto.common.v1.AnyValue.encode(i.body,n.uint32(42).fork()).ldelim(),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(50).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(56).uint32(i.droppedAttributesCount),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(69).fixed32(i.flags),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(74).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(82).bytes(i.spanId),i.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"observedTimeUnixNano")&&n.uint32(89).fixed64(i.observedTimeUnixNano),i.eventName!=null&&Object.hasOwnProperty.call(i,"eventName")&&n.uint32(98).string(i.eventName),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.LogRecord;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.timeUnixNano=i.fixed64();break}case 11:{f.observedTimeUnixNano=i.fixed64();break}case 2:{f.severityNumber=i.int32();break}case 3:{f.severityText=i.string();break}case 5:{f.body=Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}case 6:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 7:{f.droppedAttributesCount=i.uint32();break}case 8:{f.flags=i.fixed32();break}case 9:{f.traceId=i.bytes();break}case 10:{f.spanId=i.bytes();break}case 12:{f.eventName=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&!$e.isInteger(i.observedTimeUnixNano)&&!(i.observedTimeUnixNano&&$e.isInteger(i.observedTimeUnixNano.low)&&$e.isInteger(i.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(i.severityNumber!=null&&i.hasOwnProperty("severityNumber"))switch(i.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(i.severityText!=null&&i.hasOwnProperty("severityText")&&!$e.isString(i.severityText))return"severityText: string expected";if(i.body!=null&&i.hasOwnProperty("body")){var n=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.body);if(n)return"body."+n}if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var c=0;c<i.attributes.length;++c){var n=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[c]);if(n)return"attributes."+n}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId))?"traceId: buffer expected":i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId))?"spanId: buffer expected":i.eventName!=null&&i.hasOwnProperty("eventName")&&!$e.isString(i.eventName)?"eventName: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.LogRecord)return i;var n=new Be.opentelemetry.proto.logs.v1.LogRecord;switch(i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.observedTimeUnixNano!=null&&($e.Long?(n.observedTimeUnixNano=$e.Long.fromValue(i.observedTimeUnixNano)).unsigned=!1:typeof i.observedTimeUnixNano=="string"?n.observedTimeUnixNano=parseInt(i.observedTimeUnixNano,10):typeof i.observedTimeUnixNano=="number"?n.observedTimeUnixNano=i.observedTimeUnixNano:typeof i.observedTimeUnixNano=="object"&&(n.observedTimeUnixNano=new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber())),i.severityNumber){default:if(typeof i.severityNumber=="number"){n.severityNumber=i.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:n.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:n.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:n.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:n.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:n.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:n.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:n.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:n.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:n.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:n.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:n.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:n.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:n.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:n.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:n.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:n.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:n.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:n.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:n.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:n.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:n.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:n.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:n.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:n.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:n.severityNumber=24;break}if(i.severityText!=null&&(n.severityText=String(i.severityText)),i.body!=null){if(typeof i.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");n.body=Be.opentelemetry.proto.common.v1.AnyValue.fromObject(i.body)}if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.flags!=null&&(n.flags=i.flags>>>0),i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.eventName!=null&&(n.eventName=String(i.eventName)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if(c.severityNumber=n.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,c.severityText="",c.body=null,c.droppedAttributesCount=0,c.flags=0,n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),$e.Long){var u=new $e.Long(0,0,!1);c.observedTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.observedTimeUnixNano=n.longs===String?"0":0;c.eventName=""}if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.severityNumber!=null&&i.hasOwnProperty("severityNumber")&&(c.severityNumber=n.enums===String?Be.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]===void 0?i.severityNumber:Be.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]:i.severityNumber),i.severityText!=null&&i.hasOwnProperty("severityText")&&(c.severityText=i.severityText),i.body!=null&&i.hasOwnProperty("body")&&(c.body=Be.opentelemetry.proto.common.v1.AnyValue.toObject(i.body,n)),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&(typeof i.observedTimeUnixNano=="number"?c.observedTimeUnixNano=n.longs===String?String(i.observedTimeUnixNano):i.observedTimeUnixNano:c.observedTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.observedTimeUnixNano):n.longs===Number?new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber():i.observedTimeUnixNano),i.eventName!=null&&i.hasOwnProperty("eventName")&&(c.eventName=i.eventName),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogRecord"},s})(),o})(),r})(),e})(),t})();hjr.exports=Be});var gjr=E(HOe=>{"use strict";Object.defineProperty(HOe,"__esModule",{value:!0});HOe.hexToBinary=void 0;function mjr(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function bDo(t){let e=new Uint8Array(t.length/2),r=0;for(let o=0;o<t.length;o+=2){let s=mjr(t.charCodeAt(o)),a=mjr(t.charCodeAt(o+1));e[r++]=s<<4|a}return e}HOe.hexToBinary=bDo});var VOe=E(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.getOtlpEncoder=Z_.encodeAsString=Z_.encodeAsLongBits=Z_.toLongBits=Z_.hrTimeToNanos=void 0;var EDo=v2e(),P4t=gjr();function k4t(t){let e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}Z_.hrTimeToNanos=k4t;function Ajr(t){let e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}Z_.toLongBits=Ajr;function B4t(t){let e=k4t(t);return Ajr(e)}Z_.encodeAsLongBits=B4t;function vjr(t){return k4t(t).toString()}Z_.encodeAsString=vjr;var SDo=typeof BigInt<"u"?vjr:EDo.hrTimeToNanoseconds;function yjr(t){return t}function bjr(t){if(t!==void 0)return(0,P4t.hexToBinary)(t)}var _Do={encodeHrTime:B4t,encodeSpanContext:P4t.hexToBinary,encodeOptionalSpanContext:bjr};function xDo(t){if(t===void 0)return _Do;let e=t.useLongBits??!0,r=t.useHex??!1;return{encodeHrTime:e?B4t:SDo,encodeSpanContext:r?yjr:P4t.hexToBinary,encodeOptionalSpanContext:r?yjr:bjr}}Z_.getOtlpEncoder=xDo});var GOe=E(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0});ex.toAnyValue=ex.toKeyValue=ex.toAttributes=ex.createInstrumentationScope=ex.createResource=void 0;function CDo(t){let e={attributes:Ejr(t.attributes),droppedAttributesCount:0},r=t.schemaUrl;return r&&r!==""&&(e.schemaUrl=r),e}ex.createResource=CDo;function TDo(t){return{name:t.name,version:t.version}}ex.createInstrumentationScope=TDo;function Ejr(t){return Object.keys(t).map(e=>M4t(e,t[e]))}ex.toAttributes=Ejr;function M4t(t,e){return{key:t,value:L4t(e)}}ex.toKeyValue=M4t;function L4t(t){let e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(L4t)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,o])=>M4t(r,o))}}:{}}ex.toAnyValue=L4t});var U4t=E(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0});yte.toLogAttributes=yte.createExportLogsServiceRequest=void 0;var wDo=VOe(),jOe=GOe();function IDo(t,e){let r=(0,wDo.getOtlpEncoder)(e);return{resourceLogs:ODo(t,r)}}yte.createExportLogsServiceRequest=IDo;function DDo(t){let e=new Map;for(let r of t){let{resource:o,instrumentationScope:{name:s,version:a="",schemaUrl:i=""}}=r,n=e.get(o);n||(n=new Map,e.set(o,n));let c=`${s}@${a}:${i}`,u=n.get(c);u||(u=[],n.set(c,u)),u.push(r)}return e}function ODo(t,e){let r=DDo(t);return Array.from(r,([o,s])=>{let a=(0,jOe.createResource)(o);return{resource:a,scopeLogs:Array.from(s,([,i])=>({scope:(0,jOe.createInstrumentationScope)(i[0].instrumentationScope),logRecords:i.map(n=>RDo(n,e)),schemaUrl:i[0].instrumentationScope.schemaUrl})),schemaUrl:a.schemaUrl}})}function RDo(t,e){return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:(0,jOe.toAnyValue)(t.body),eventName:t.eventName,attributes:Sjr(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:t.spanContext?.traceFlags,traceId:e.encodeOptionalSpanContext(t.spanContext?.traceId),spanId:e.encodeOptionalSpanContext(t.spanContext?.spanId)}}function Sjr(t){return Object.keys(t).map(e=>(0,jOe.toKeyValue)(e,t[e]))}yte.toLogAttributes=Sjr});var xjr=E($Oe=>{"use strict";Object.defineProperty($Oe,"__esModule",{value:!0});$Oe.ProtobufLogsSerializer=void 0;var _jr=qOe(),NDo=U4t(),PDo=_jr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,kDo=_jr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;$Oe.ProtobufLogsSerializer={serializeRequest:t=>{let e=(0,NDo.createExportLogsServiceRequest)(t);return kDo.encode(e).finish()},deserializeResponse:t=>PDo.decode(t)}});var Cjr=E(WOe=>{"use strict";Object.defineProperty(WOe,"__esModule",{value:!0});WOe.ProtobufLogsSerializer=void 0;var BDo=xjr();Object.defineProperty(WOe,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return BDo.ProtobufLogsSerializer}})});var zOe=E(_2e=>{"use strict";Object.defineProperty(_2e,"__esModule",{value:!0});_2e.AggregationTemporality=void 0;var MDo;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(MDo=_2e.AggregationTemporality||(_2e.AggregationTemporality={}))});var _B=E(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.DataPointType=SB.InstrumentType=void 0;var LDo;(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(LDo=SB.InstrumentType||(SB.InstrumentType={}));var UDo;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(UDo=SB.DataPointType||(SB.DataPointType={}))});var X4=E(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.equalsCaseInsensitive=tp.binarySearchUB=tp.setEquals=tp.FlatMap=tp.isPromiseAllSettledRejectionResult=tp.PromiseAllSettled=tp.callWithTimeout=tp.TimeoutError=tp.instrumentationScopeId=tp.hashAttributes=tp.isNotNullish=void 0;function FDo(t){return t!=null}tp.isNotNullish=FDo;function QDo(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(r=>[r,t[r]])))}tp.hashAttributes=QDo;function qDo(t){return`${t.name}:${t.version??""}:${t.schemaUrl??""}`}tp.instrumentationScopeId=qDo;var KOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};tp.TimeoutError=KOe;function HDo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new KOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}tp.callWithTimeout=HDo;async function VDo(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(r){return{status:"rejected",reason:r}}}))}tp.PromiseAllSettled=VDo;function GDo(t){return t.status==="rejected"}tp.isPromiseAllSettledRejectionResult=GDo;function jDo(t,e){let r=[];return t.forEach(o=>{r.push(...e(o))}),r}tp.FlatMap=jDo;function $Do(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}tp.setEquals=$Do;function WDo(t,e){let r=0,o=t.length-1,s=t.length;for(;o>=r;){let a=r+Math.trunc((o-r)/2);t[a]<e?r=a+1:(s=a,o=a-1)}return s}tp.binarySearchUB=WDo;function zDo(t,e){return t.toLowerCase()===e.toLowerCase()}tp.equalsCaseInsensitive=zDo});var Ate=E(x2e=>{"use strict";Object.defineProperty(x2e,"__esModule",{value:!0});x2e.AggregatorKind=void 0;var KDo;(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(KDo=x2e.AggregatorKind||(x2e.AggregatorKind={}))});var Tjr=E(YOe=>{"use strict";Object.defineProperty(YOe,"__esModule",{value:!0});YOe.DropAggregator=void 0;var YDo=Ate(),F4t=class{kind=YDo.AggregatorKind.DROP;createAccumulation(){}merge(e,r){}diff(e,r){}toMetricData(e,r,o,s){}};YOe.DropAggregator=F4t});var wjr=E(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0});bte.HistogramAggregator=bte.HistogramAccumulation=void 0;var JDo=Ate(),C2e=_B(),XDo=X4();function ZDo(t){let e=t.map(()=>0);return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var vte=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,r,o=!0,s=ZDo(r)){this.startTime=e,this._boundaries=r,this._recordMinMax=o,this._current=s}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let r=(0,XDo.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[r]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};bte.HistogramAccumulation=vte;var Q4t=class{_boundaries;_recordMinMax;kind=JDo.AggregatorKind.HISTOGRAM;constructor(e,r){this._boundaries=e,this._recordMinMax=r}createAccumulation(e){return new vte(e,this._boundaries,this._recordMinMax)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let f=0;f<a.length;f++)n[f]=a[f]+i[f];let c=1/0,u=-1/0;return this._recordMinMax&&(o.hasMinMax&&s.hasMinMax?(c=Math.min(o.min,s.min),u=Math.max(o.max,s.max)):o.hasMinMax?(c=o.min,u=o.max):s.hasMinMax&&(c=s.min,u=s.max)),new vte(e.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:o.count+s.count,sum:o.sum+s.sum,hasMinMax:this._recordMinMax&&(o.hasMinMax||s.hasMinMax),min:c,max:u})}diff(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let c=0;c<a.length;c++)n[c]=i[c]-a[c];return new vte(r.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:s.count-o.count,sum:s.sum-o.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:C2e.DataPointType.HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===C2e.InstrumentType.GAUGE||e.type===C2e.InstrumentType.UP_DOWN_COUNTER||e.type===C2e.InstrumentType.OBSERVABLE_GAUGE||e.type===C2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,buckets:n.buckets,count:n.count}}})}}};bte.HistogramAggregator=Q4t});var Ijr=E(JOe=>{"use strict";Object.defineProperty(JOe,"__esModule",{value:!0});JOe.Buckets=void 0;var q4t=class t{backing;indexBase;indexStart;indexEnd;constructor(e=new H4t,r=0,o=0,s=0){this.backing=e,this.indexBase=r,this.indexStart=o,this.indexEnd=s}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,r)=>this.at(r))}at(e){let r=this.indexBase-this.indexStart;return e<r&&(e+=this.backing.length),e-=r,this.backing.countAt(e)}incrementBucket(e,r){this.backing.increment(e,r)}decrementBucket(e,r){this.backing.decrement(e,r)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let r=1+this.indexEnd-this.indexStart,o=1<<e,s=0,a=0;for(let i=this.indexStart;i<=this.indexEnd;){let n=i%o;n<0&&(n+=o);for(let c=n;c<o&&s<r;c++)this._relocateBucket(a,s),s++,i++;a++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,r){e!==r&&this.incrementBucket(e,this.backing.emptyBucket(r))}};JOe.Buckets=q4t;var H4t=class t{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,r,o){let s=new Array(e).fill(0);s.splice(o,this._counts.length-r,...this._counts.slice(r)),s.splice(0,r,...this._counts.slice(0,r)),this._counts=s}reverse(e,r){let o=Math.floor((e+r)/2)-e;for(let s=0;s<o;s++){let a=this._counts[e+s];this._counts[e+s]=this._counts[r-s-1],this._counts[r-s-1]=a}}emptyBucket(e){let r=this._counts[e];return this._counts[e]=0,r}increment(e,r){this._counts[e]+=r}decrement(e,r){this._counts[e]>=r?this._counts[e]-=r:this._counts[e]=0}clone(){return new t([...this._counts])}}});var G4t=E(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.getSignificand=Bv.getNormalBase2=Bv.MIN_VALUE=Bv.MAX_NORMAL_EXPONENT=Bv.MIN_NORMAL_EXPONENT=Bv.SIGNIFICAND_WIDTH=void 0;Bv.SIGNIFICAND_WIDTH=52;var e9o=2146435072,t9o=1048575,V4t=1023;Bv.MIN_NORMAL_EXPONENT=-V4t+1;Bv.MAX_NORMAL_EXPONENT=V4t;Bv.MIN_VALUE=Math.pow(2,-1022);function r9o(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&e9o)>>20)-V4t}Bv.getNormalBase2=r9o;function n9o(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let r=e.getUint32(0),o=e.getUint32(4);return(r&t9o)*Math.pow(2,32)+o}Bv.getSignificand=n9o});var XOe=E(Ete=>{"use strict";Object.defineProperty(Ete,"__esModule",{value:!0});Ete.nextGreaterSquare=Ete.ldexp=void 0;function i9o(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}Ete.ldexp=i9o;function o9o(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}Ete.nextGreaterSquare=o9o});var eRe=E(ZOe=>{"use strict";Object.defineProperty(ZOe,"__esModule",{value:!0});ZOe.MappingError=void 0;var j4t=class extends Error{};ZOe.MappingError=j4t});var Ojr=E(tRe=>{"use strict";Object.defineProperty(tRe,"__esModule",{value:!0});tRe.ExponentMapping=void 0;var Ste=G4t(),s9o=XOe(),Djr=eRe(),$4t=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){if(e<Ste.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let r=Ste.getNormalBase2(e),o=this._rightShift(Ste.getSignificand(e)-1,Ste.SIGNIFICAND_WIDTH);return r+o>>this._shift}lowerBoundary(e){let r=this._minNormalLowerBoundaryIndex();if(e<r)throw new Djr.MappingError(`underflow: ${e} is < minimum lower boundary: ${r}`);let o=this._maxNormalLowerBoundaryIndex();if(e>o)throw new Djr.MappingError(`overflow: ${e} is > maximum lower boundary: ${o}`);return s9o.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=Ste.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return Ste.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(e,r){return Math.floor(e*Math.pow(2,-r))}};tRe.ExponentMapping=$4t});var Pjr=E(rRe=>{"use strict";Object.defineProperty(rRe,"__esModule",{value:!0});rRe.LogarithmMapping=void 0;var _te=G4t(),Rjr=XOe(),Njr=eRe(),W4t=class{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=Rjr.ldexp(Math.LOG2E,e),this._inverseFactor=Rjr.ldexp(Math.LN2,-e)}mapToIndex(e){if(e<=_te.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(_te.getSignificand(e)===0)return(_te.getNormalBase2(e)<<this._scale)-1;let r=Math.floor(Math.log(e)*this._scaleFactor),o=this._maxNormalLowerBoundaryIndex();return r>=o?o:r}lowerBoundary(e){let r=this._maxNormalLowerBoundaryIndex();if(e>=r){if(e===r)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new Njr.MappingError(`overflow: ${e} is > maximum lower boundary: ${r}`)}let o=this._minNormalLowerBoundaryIndex();if(e<=o){if(e===o)return _te.MIN_VALUE;if(e===o-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new Njr.MappingError(`overflow: ${e} is < minimum lower boundary: ${o}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return _te.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(_te.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};rRe.LogarithmMapping=W4t});var Mjr=E(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.getMapping=void 0;var a9o=Ojr(),c9o=Pjr(),l9o=eRe(),kjr=-10,Bjr=20,u9o=Array.from({length:31},(t,e)=>e>10?new c9o.LogarithmMapping(e-10):new a9o.ExponentMapping(e-10));function f9o(t){if(t>Bjr||t<kjr)throw new l9o.MappingError(`expected scale >= ${kjr} && <= ${Bjr}, got: ${t}`);return u9o[t+10]}nRe.getMapping=f9o});var Fjr=E(Cte=>{"use strict";Object.defineProperty(Cte,"__esModule",{value:!0});Cte.ExponentialHistogramAggregator=Cte.ExponentialHistogramAccumulation=void 0;var d9o=Ate(),T2e=_B(),p9o=(ut(),nt(_t)),Ljr=Ijr(),Ujr=Mjr(),h9o=XOe(),xte=class t{low;high;static combine(e,r){return new t(Math.min(e.low,r.low),Math.max(e.high,r.high))}constructor(e,r){this.low=e,this.high=r}},m9o=20,g9o=160,z4t=2,iRe=class t{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,r=g9o,o=!0,s=0,a=0,i=0,n=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=new Ljr.Buckets,f=new Ljr.Buckets,d=(0,Ujr.getMapping)(m9o)){this.startTime=e,this._maxSize=r,this._recordMinMax=o,this._sum=s,this._count=a,this._zeroCount=i,this._min=n,this._max=c,this._positive=u,this._negative=f,this._mapping=d,this._maxSize<z4t&&(p9o.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${z4t}`),this._maxSize=z4t)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,r){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=r,e===0){this._zeroCount+=r;return}this._sum+=e*r,e>0?this._updateBuckets(this._positive,e,r):this._updateBuckets(this._negative,-e,r)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._mergeBuckets(this.positive,e,e.positive,r),this._mergeBuckets(this.negative,e,e.negative,r)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._diffBuckets(this.positive,e,e.positive,r),this._diffBuckets(this.negative,e,e.negative,r)}clone(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,r,o){let s=this._mapping.mapToIndex(r),a=!1,i=0,n=0;if(e.length===0?(e.indexStart=s,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):s<e.indexStart&&e.indexEnd-s>=this._maxSize?(a=!0,n=s,i=e.indexEnd):s>e.indexEnd&&s-e.indexStart>=this._maxSize&&(a=!0,n=e.indexStart,i=s),a){let c=this._changeScale(i,n);this._downscale(c),s=this._mapping.mapToIndex(r)}this._incrementIndexBy(e,s,o)}_incrementIndexBy(e,r,o){if(o===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=r),r<e.indexStart){let a=e.indexEnd-r;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=r}else if(r>e.indexEnd){let a=r-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=r}let s=r-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,o)}_grow(e,r){let o=e.backing.length,s=e.indexBase-e.indexStart,a=o-s,i=(0,h9o.nextGreaterSquare)(r);i>this._maxSize&&(i=this._maxSize);let n=i-s;e.backing.growTo(i,a,n)}_changeScale(e,r){let o=0;for(;e-r>=this._maxSize;)e>>=1,r>>=1,o++;return o}_downscale(e){if(e===0)return;if(e<0)throw new Error(`impossible change of scale: ${this.scale}`);let r=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=(0,Ujr.getMapping)(r)}_minScale(e){let r=Math.min(this.scale,e.scale),o=xte.combine(this._highLowAtScale(this.positive,this.scale,r),this._highLowAtScale(e.positive,e.scale,r)),s=xte.combine(this._highLowAtScale(this.negative,this.scale,r),this._highLowAtScale(e.negative,e.scale,r));return Math.min(r-this._changeScale(o.high,o.low),r-this._changeScale(s.high,s.low))}_highLowAtScale(e,r,o){if(e.length===0)return new xte(0,-1);let s=r-o;return new xte(e.indexStart>>s,e.indexEnd>>s)}_mergeBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++)this._incrementIndexBy(e,a+n>>i,o.at(n))}_diffBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++){let u=(a+n>>i)-e.indexBase;u<0&&(u+=e.backing.length),e.decrementBucket(u,o.at(n))}e.trim()}};Cte.ExponentialHistogramAccumulation=iRe;var K4t=class{_maxSize;_recordMinMax;kind=d9o.AggregatorKind.EXPONENTIAL_HISTOGRAM;constructor(e,r){this._maxSize=e,this._recordMinMax=r}createAccumulation(e){return new iRe(e,this._maxSize,this._recordMinMax)}merge(e,r){let o=r.clone();return o.merge(e),o}diff(e,r){let o=r.clone();return o.diff(e),o}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:T2e.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===T2e.InstrumentType.GAUGE||e.type===T2e.InstrumentType.UP_DOWN_COUNTER||e.type===T2e.InstrumentType.OBSERVABLE_GAUGE||e.type===T2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},count:n.count,scale:n.scale,zeroCount:n.zeroCount}}})}}};Cte.ExponentialHistogramAggregator=K4t});var w2e=E(xB=>{"use strict";Object.defineProperty(xB,"__esModule",{value:!0});xB.isTracingSuppressed=xB.unsuppressTracing=xB.suppressTracing=void 0;var y9o=(ut(),nt(_t)),Y4t=(0,y9o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function A9o(t){return t.setValue(Y4t,!0)}xB.suppressTracing=A9o;function v9o(t){return t.deleteValue(Y4t)}xB.unsuppressTracing=v9o;function b9o(t){return t.getValue(Y4t)===!0}xB.isTracingSuppressed=b9o});var J4t=E(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.BAGGAGE_MAX_TOTAL_LENGTH=ty.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ty.BAGGAGE_MAX_NAME_VALUE_PAIRS=ty.BAGGAGE_HEADER=ty.BAGGAGE_ITEMS_SEPARATOR=ty.BAGGAGE_PROPERTIES_SEPARATOR=ty.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ty.BAGGAGE_KEY_PAIR_SEPARATOR="=";ty.BAGGAGE_PROPERTIES_SEPARATOR=";";ty.BAGGAGE_ITEMS_SEPARATOR=",";ty.BAGGAGE_HEADER="baggage";ty.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ty.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ty.BAGGAGE_MAX_TOTAL_LENGTH=8192});var X4t=E(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});X5.parseKeyPairsIntoRecord=X5.parsePairKeyValue=X5.getKeyPairs=X5.serializeKeyPairs=void 0;var E9o=(ut(),nt(_t)),uV=J4t();function S9o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?uV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>uV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}X5.serializeKeyPairs=S9o;function _9o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=uV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}X5.getKeyPairs=_9o;function Qjr(t){let e=t.split(uV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(uV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,E9o.baggageEntryMetadataFromString)(e.join(uV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}X5.parsePairKeyValue=Qjr;function x9o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(uV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=Qjr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}X5.parseKeyPairsIntoRecord=x9o});var qjr=E(oRe=>{"use strict";Object.defineProperty(oRe,"__esModule",{value:!0});oRe.W3CBaggagePropagator=void 0;var Z4t=(ut(),nt(_t)),C9o=w2e(),fV=J4t(),e6t=X4t(),t6t=class{inject(e,r,o){let s=Z4t.propagation.getBaggage(e);if(!s||(0,C9o.isTracingSuppressed)(e))return;let a=(0,e6t.getKeyPairs)(s).filter(n=>n.length<=fV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,fV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,e6t.serializeKeyPairs)(a);i.length>0&&o.set(r,fV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,fV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(fV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(fV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,e6t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:Z4t.propagation.setBaggage(e,Z4t.propagation.createBaggage(i))}fields(){return[fV.BAGGAGE_HEADER]}};oRe.W3CBaggagePropagator=t6t});var Hjr=E(sRe=>{"use strict";Object.defineProperty(sRe,"__esModule",{value:!0});sRe.AnchoredClock=void 0;var r6t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};sRe.AnchoredClock=r6t});var Wjr=E(CB=>{"use strict";Object.defineProperty(CB,"__esModule",{value:!0});CB.isAttributeValue=CB.isAttributeKey=CB.sanitizeAttributes=void 0;var Vjr=(ut(),nt(_t));function T9o(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!Gjr(r)){Vjr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!jjr(o)){Vjr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}CB.sanitizeAttributes=T9o;function Gjr(t){return typeof t=="string"&&t.length>0}CB.isAttributeKey=Gjr;function jjr(t){return t==null?!0:Array.isArray(t)?w9o(t):$jr(t)}CB.isAttributeValue=jjr;function w9o(t){let e;for(let r of t)if(r!=null){if(!e){if($jr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function $jr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var n6t=E(aRe=>{"use strict";Object.defineProperty(aRe,"__esModule",{value:!0});aRe.loggingErrorHandler=void 0;var I9o=(ut(),nt(_t));function D9o(){return t=>{I9o.diag.error(O9o(t))}}aRe.loggingErrorHandler=D9o;function O9o(t){return typeof t=="string"?t:JSON.stringify(R9o(t))}function R9o(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var Kjr=E(Tte=>{"use strict";Object.defineProperty(Tte,"__esModule",{value:!0});Tte.globalErrorHandler=Tte.setGlobalErrorHandler=void 0;var N9o=n6t(),zjr=(0,N9o.loggingErrorHandler)();function P9o(t){zjr=t}Tte.setGlobalErrorHandler=P9o;function k9o(t){try{zjr(t)}catch{}}Tte.globalErrorHandler=k9o});var Zjr=E(Z5=>{"use strict";Object.defineProperty(Z5,"__esModule",{value:!0});Z5.getStringListFromEnv=Z5.getBooleanFromEnv=Z5.getStringFromEnv=Z5.getNumberFromEnv=void 0;var Yjr=(ut(),nt(_t)),Jjr=me("util");function B9o(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){Yjr.diag.warn(`Unknown value ${(0,Jjr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}Z5.getNumberFromEnv=B9o;function Xjr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}Z5.getStringFromEnv=Xjr;function M9o(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||Yjr.diag.warn(`Unknown value ${(0,Jjr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}Z5.getBooleanFromEnv=M9o;function L9o(t){return Xjr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}Z5.getStringListFromEnv=L9o});var e$r=E(cRe=>{"use strict";Object.defineProperty(cRe,"__esModule",{value:!0});cRe._globalThis=void 0;cRe._globalThis=typeof globalThis=="object"?globalThis:global});var t$r=E(lRe=>{"use strict";Object.defineProperty(lRe,"__esModule",{value:!0});lRe.otperformance=void 0;var U9o=me("perf_hooks");lRe.otperformance=U9o.performance});var r$r=E(uRe=>{"use strict";Object.defineProperty(uRe,"__esModule",{value:!0});uRe.VERSION=void 0;uRe.VERSION="2.1.0"});var n$r=E(fRe=>{"use strict";Object.defineProperty(fRe,"__esModule",{value:!0});fRe.ATTR_PROCESS_RUNTIME_NAME=void 0;fRe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var i$r=E(pRe=>{"use strict";Object.defineProperty(pRe,"__esModule",{value:!0});pRe.SDK_INFO=void 0;var F9o=r$r(),dRe=($l(),nt(Uu)),Q9o=n$r();pRe.SDK_INFO={[dRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[Q9o.ATTR_PROCESS_RUNTIME_NAME]:"node",[dRe.ATTR_TELEMETRY_SDK_LANGUAGE]:dRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[dRe.ATTR_TELEMETRY_SDK_VERSION]:F9o.VERSION}});var o$r=E(hRe=>{"use strict";Object.defineProperty(hRe,"__esModule",{value:!0});hRe.unrefTimer=void 0;function q9o(t){t.unref()}hRe.unrefTimer=q9o});var s$r=E(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.unrefTimer=a0.SDK_INFO=a0.otperformance=a0._globalThis=a0.getStringListFromEnv=a0.getNumberFromEnv=a0.getBooleanFromEnv=a0.getStringFromEnv=void 0;var mRe=Zjr();Object.defineProperty(a0,"getStringFromEnv",{enumerable:!0,get:function(){return mRe.getStringFromEnv}});Object.defineProperty(a0,"getBooleanFromEnv",{enumerable:!0,get:function(){return mRe.getBooleanFromEnv}});Object.defineProperty(a0,"getNumberFromEnv",{enumerable:!0,get:function(){return mRe.getNumberFromEnv}});Object.defineProperty(a0,"getStringListFromEnv",{enumerable:!0,get:function(){return mRe.getStringListFromEnv}});var H9o=e$r();Object.defineProperty(a0,"_globalThis",{enumerable:!0,get:function(){return H9o._globalThis}});var V9o=t$r();Object.defineProperty(a0,"otperformance",{enumerable:!0,get:function(){return V9o.otperformance}});var G9o=i$r();Object.defineProperty(a0,"SDK_INFO",{enumerable:!0,get:function(){return G9o.SDK_INFO}});var j9o=o$r();Object.defineProperty(a0,"unrefTimer",{enumerable:!0,get:function(){return j9o.unrefTimer}})});var i6t=E(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.getStringListFromEnv=c0.getNumberFromEnv=c0.getStringFromEnv=c0.getBooleanFromEnv=c0.unrefTimer=c0.otperformance=c0._globalThis=c0.SDK_INFO=void 0;var TB=s$r();Object.defineProperty(c0,"SDK_INFO",{enumerable:!0,get:function(){return TB.SDK_INFO}});Object.defineProperty(c0,"_globalThis",{enumerable:!0,get:function(){return TB._globalThis}});Object.defineProperty(c0,"otperformance",{enumerable:!0,get:function(){return TB.otperformance}});Object.defineProperty(c0,"unrefTimer",{enumerable:!0,get:function(){return TB.unrefTimer}});Object.defineProperty(c0,"getBooleanFromEnv",{enumerable:!0,get:function(){return TB.getBooleanFromEnv}});Object.defineProperty(c0,"getStringFromEnv",{enumerable:!0,get:function(){return TB.getStringFromEnv}});Object.defineProperty(c0,"getNumberFromEnv",{enumerable:!0,get:function(){return TB.getNumberFromEnv}});Object.defineProperty(c0,"getStringListFromEnv",{enumerable:!0,get:function(){return TB.getStringListFromEnv}})});var u$r=E(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.addHrTimes=Df.isTimeInput=Df.isTimeInputHrTime=Df.hrTimeToMicroseconds=Df.hrTimeToMilliseconds=Df.hrTimeToNanoseconds=Df.hrTimeToTimeStamp=Df.hrTimeDuration=Df.timeInputToHrTime=Df.hrTime=Df.getTimeOrigin=Df.millisToHrTime=void 0;var o6t=i6t(),a$r=9,$9o=6,W9o=Math.pow(10,$9o),gRe=Math.pow(10,a$r);function I2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*W9o);return[r,o]}Df.millisToHrTime=I2e;function s6t(){let t=o6t.otperformance.timeOrigin;if(typeof t!="number"){let e=o6t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Df.getTimeOrigin=s6t;function c$r(t){let e=I2e(s6t()),r=I2e(typeof t=="number"?t:o6t.otperformance.now());return l$r(e,r)}Df.hrTime=c$r;function z9o(t){if(a6t(t))return t;if(typeof t=="number")return t<s6t()?c$r(t):I2e(t);if(t instanceof Date)return I2e(t.getTime());throw TypeError("Invalid input type")}Df.timeInputToHrTime=z9o;function K9o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=gRe),[r,o]}Df.hrTimeDuration=K9o;function Y9o(t){let e=a$r,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Df.hrTimeToTimeStamp=Y9o;function J9o(t){return t[0]*gRe+t[1]}Df.hrTimeToNanoseconds=J9o;function X9o(t){return t[0]*1e3+t[1]/1e6}Df.hrTimeToMilliseconds=X9o;function Z9o(t){return t[0]*1e6+t[1]/1e3}Df.hrTimeToMicroseconds=Z9o;function a6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Df.isTimeInputHrTime=a6t;function e7o(t){return a6t(t)||typeof t=="number"||t instanceof Date}Df.isTimeInput=e7o;function l$r(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=gRe&&(r[1]-=gRe,r[0]+=1),r}Df.addHrTimes=l$r});var f$r=E(D2e=>{"use strict";Object.defineProperty(D2e,"__esModule",{value:!0});D2e.ExportResultCode=void 0;var t7o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(t7o=D2e.ExportResultCode||(D2e.ExportResultCode={}))});var p$r=E(yRe=>{"use strict";Object.defineProperty(yRe,"__esModule",{value:!0});yRe.CompositePropagator=void 0;var d$r=(ut(),nt(_t)),c6t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){d$r.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){d$r.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};yRe.CompositePropagator=c6t});var h$r=E(wte=>{"use strict";Object.defineProperty(wte,"__esModule",{value:!0});wte.validateValue=wte.validateKey=void 0;var l6t="[_0-9a-z-*/]",r7o=`[a-z]${l6t}{0,255}`,n7o=`[a-z0-9]${l6t}{0,240}@[a-z]${l6t}{0,13}`,i7o=new RegExp(`^(?:${r7o}|${n7o})$`),o7o=/^[ -~]{0,255}[!-~]$/,s7o=/,|=/;function a7o(t){return i7o.test(t)}wte.validateKey=a7o;function c7o(t){return o7o.test(t)&&!s7o.test(t)}wte.validateValue=c7o});var f6t=E(ARe=>{"use strict";Object.defineProperty(ARe,"__esModule",{value:!0});ARe.TraceState=void 0;var m$r=h$r(),g$r=32,l7o=512,y$r=",",A$r="=",u6t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+A$r+this.get(r)),e),[]).join(y$r)}_parse(e){e.length>l7o||(this._internalState=e.split(y$r).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(A$r);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,m$r.validateKey)(i)&&(0,m$r.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>g$r&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,g$r))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};ARe.TraceState=u6t});var b$r=E(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.W3CTraceContextPropagator=ry.parseTraceParent=ry.TRACE_STATE_HEADER=ry.TRACE_PARENT_HEADER=void 0;var vRe=(ut(),nt(_t)),u7o=w2e(),f7o=f6t();ry.TRACE_PARENT_HEADER="traceparent";ry.TRACE_STATE_HEADER="tracestate";var d7o="00",p7o="(?!ff)[\\da-f]{2}",h7o="(?![0]{32})[\\da-f]{32}",m7o="(?![0]{16})[\\da-f]{16}",g7o="[\\da-f]{2}",y7o=new RegExp(`^\\s?(${p7o})-(${h7o})-(${m7o})-(${g7o})(-.*)?\\s?$`);function v$r(t){let e=y7o.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ry.parseTraceParent=v$r;var d6t=class{inject(e,r,o){let s=vRe.trace.getSpanContext(e);if(!s||(0,u7o.isTracingSuppressed)(e)||!(0,vRe.isSpanContextValid)(s))return;let a=`${d7o}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||vRe.TraceFlags.NONE).toString(16)}`;o.set(r,ry.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ry.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ry.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=v$r(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ry.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new f7o.TraceState(typeof c=="string"?c:void 0)}return vRe.trace.setSpanContext(e,i)}fields(){return[ry.TRACE_PARENT_HEADER,ry.TRACE_STATE_HEADER]}};ry.W3CTraceContextPropagator=d6t});var E$r=E(Z4=>{"use strict";Object.defineProperty(Z4,"__esModule",{value:!0});Z4.getRPCMetadata=Z4.deleteRPCMetadata=Z4.setRPCMetadata=Z4.RPCType=void 0;var A7o=(ut(),nt(_t)),p6t=(0,A7o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),v7o;(function(t){t.HTTP="http"})(v7o=Z4.RPCType||(Z4.RPCType={}));function b7o(t,e){return t.setValue(p6t,e)}Z4.setRPCMetadata=b7o;function E7o(t){return t.deleteValue(p6t)}Z4.deleteRPCMetadata=E7o;function S7o(t){return t.getValue(p6t)}Z4.getRPCMetadata=S7o});var T$r=E(bRe=>{"use strict";Object.defineProperty(bRe,"__esModule",{value:!0});bRe.isPlainObject=void 0;var _7o="[object Object]",x7o="[object Null]",C7o="[object Undefined]",T7o=Function.prototype,S$r=T7o.toString,w7o=S$r.call(Object),I7o=Object.getPrototypeOf,_$r=Object.prototype,x$r=_$r.hasOwnProperty,dV=Symbol?Symbol.toStringTag:void 0,C$r=_$r.toString;function D7o(t){if(!O7o(t)||R7o(t)!==_7o)return!1;let e=I7o(t);if(e===null)return!0;let r=x$r.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&S$r.call(r)===w7o}bRe.isPlainObject=D7o;function O7o(t){return t!=null&&typeof t=="object"}function R7o(t){return t==null?t===void 0?C7o:x7o:dV&&dV in Object(t)?N7o(t):P7o(t)}function N7o(t){let e=x$r.call(t,dV),r=t[dV],o=!1;try{t[dV]=void 0,o=!0}catch{}let s=C$r.call(t);return o&&(e?t[dV]=r:delete t[dV]),s}function P7o(t){return C$r.call(t)}});var R$r=E(_Re=>{"use strict";Object.defineProperty(_Re,"__esModule",{value:!0});_Re.merge=void 0;var w$r=T$r(),k7o=20;function B7o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=D$r(e,t.shift(),0,r);return e}_Re.merge=B7o;function h6t(t){return SRe(t)?t.slice():t}function D$r(t,e,r=0,o){let s;if(!(r>k7o)){if(r++,ERe(t)||ERe(e)||O$r(e))s=h6t(e);else if(SRe(t)){if(s=t.slice(),SRe(e))for(let a=0,i=e.length;a<i;a++)s.push(h6t(e[a]));else if(O2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=h6t(e[c])}}}else if(O2e(t))if(O2e(e)){if(!M7o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(ERe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(I$r(t,c,o)||I$r(e,c,o))delete s[c];else{if(O2e(f)&&O2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=D$r(s[c],u,r,o)}}}}else s=e;return s}}function I$r(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function SRe(t){return Array.isArray(t)}function O$r(t){return typeof t=="function"}function O2e(t){return!ERe(t)&&!SRe(t)&&!O$r(t)&&typeof t=="object"}function ERe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function M7o(t,e){return!(!(0,w$r.isPlainObject)(t)||!(0,w$r.isPlainObject)(e))}});var N$r=E(Ite=>{"use strict";Object.defineProperty(Ite,"__esModule",{value:!0});Ite.callWithTimeout=Ite.TimeoutError=void 0;var xRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ite.TimeoutError=xRe;function L7o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new xRe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Ite.callWithTimeout=L7o});var k$r=E(Dte=>{"use strict";Object.defineProperty(Dte,"__esModule",{value:!0});Dte.isUrlIgnored=Dte.urlMatches=void 0;function P$r(t,e){return typeof e=="string"?t===e:!!t.match(e)}Dte.urlMatches=P$r;function U7o(t,e){if(!e)return!1;for(let r of e)if(P$r(t,r))return!0;return!1}Dte.isUrlIgnored=U7o});var B$r=E(CRe=>{"use strict";Object.defineProperty(CRe,"__esModule",{value:!0});CRe.Deferred=void 0;var m6t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};CRe.Deferred=m6t});var M$r=E(TRe=>{"use strict";Object.defineProperty(TRe,"__esModule",{value:!0});TRe.BindOnceFuture=void 0;var F7o=B$r(),g6t=class{_callback;_that;_isCalled=!1;_deferred=new F7o.Deferred;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};TRe.BindOnceFuture=g6t});var U$r=E(wRe=>{"use strict";Object.defineProperty(wRe,"__esModule",{value:!0});wRe.diagLogLevelFromString=void 0;var sO=(ut(),nt(_t)),L$r={ALL:sO.DiagLogLevel.ALL,VERBOSE:sO.DiagLogLevel.VERBOSE,DEBUG:sO.DiagLogLevel.DEBUG,INFO:sO.DiagLogLevel.INFO,WARN:sO.DiagLogLevel.WARN,ERROR:sO.DiagLogLevel.ERROR,NONE:sO.DiagLogLevel.NONE};function Q7o(t){if(t==null)return;let e=L$r[t.toUpperCase()];return e??(sO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(L$r)}, using default`),sO.DiagLogLevel.INFO)}wRe.diagLogLevelFromString=Q7o});var Q$r=E(IRe=>{"use strict";Object.defineProperty(IRe,"__esModule",{value:!0});IRe._export=void 0;var F$r=(ut(),nt(_t)),q7o=w2e();function H7o(t,e){return new Promise(r=>{F$r.context.with((0,q7o.suppressTracing)(F$r.context.active()),()=>{t.export(e,o=>{r(o)})})})}IRe._export=H7o});var pV=E(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.internal=cn.diagLogLevelFromString=cn.BindOnceFuture=cn.urlMatches=cn.isUrlIgnored=cn.callWithTimeout=cn.TimeoutError=cn.merge=cn.TraceState=cn.unsuppressTracing=cn.suppressTracing=cn.isTracingSuppressed=cn.setRPCMetadata=cn.getRPCMetadata=cn.deleteRPCMetadata=cn.RPCType=cn.parseTraceParent=cn.W3CTraceContextPropagator=cn.TRACE_STATE_HEADER=cn.TRACE_PARENT_HEADER=cn.CompositePropagator=cn.unrefTimer=cn.otperformance=cn.getStringListFromEnv=cn.getNumberFromEnv=cn.getBooleanFromEnv=cn.getStringFromEnv=cn._globalThis=cn.SDK_INFO=cn.parseKeyPairsIntoRecord=cn.ExportResultCode=cn.timeInputToHrTime=cn.millisToHrTime=cn.isTimeInputHrTime=cn.isTimeInput=cn.hrTimeToTimeStamp=cn.hrTimeToNanoseconds=cn.hrTimeToMilliseconds=cn.hrTimeToMicroseconds=cn.hrTimeDuration=cn.hrTime=cn.getTimeOrigin=cn.addHrTimes=cn.loggingErrorHandler=cn.setGlobalErrorHandler=cn.globalErrorHandler=cn.sanitizeAttributes=cn.isAttributeValue=cn.AnchoredClock=cn.W3CBaggagePropagator=void 0;var V7o=qjr();Object.defineProperty(cn,"W3CBaggagePropagator",{enumerable:!0,get:function(){return V7o.W3CBaggagePropagator}});var G7o=Hjr();Object.defineProperty(cn,"AnchoredClock",{enumerable:!0,get:function(){return G7o.AnchoredClock}});var q$r=Wjr();Object.defineProperty(cn,"isAttributeValue",{enumerable:!0,get:function(){return q$r.isAttributeValue}});Object.defineProperty(cn,"sanitizeAttributes",{enumerable:!0,get:function(){return q$r.sanitizeAttributes}});var H$r=Kjr();Object.defineProperty(cn,"globalErrorHandler",{enumerable:!0,get:function(){return H$r.globalErrorHandler}});Object.defineProperty(cn,"setGlobalErrorHandler",{enumerable:!0,get:function(){return H$r.setGlobalErrorHandler}});var j7o=n6t();Object.defineProperty(cn,"loggingErrorHandler",{enumerable:!0,get:function(){return j7o.loggingErrorHandler}});var tx=u$r();Object.defineProperty(cn,"addHrTimes",{enumerable:!0,get:function(){return tx.addHrTimes}});Object.defineProperty(cn,"getTimeOrigin",{enumerable:!0,get:function(){return tx.getTimeOrigin}});Object.defineProperty(cn,"hrTime",{enumerable:!0,get:function(){return tx.hrTime}});Object.defineProperty(cn,"hrTimeDuration",{enumerable:!0,get:function(){return tx.hrTimeDuration}});Object.defineProperty(cn,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return tx.hrTimeToMicroseconds}});Object.defineProperty(cn,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return tx.hrTimeToMilliseconds}});Object.defineProperty(cn,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return tx.hrTimeToNanoseconds}});Object.defineProperty(cn,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return tx.hrTimeToTimeStamp}});Object.defineProperty(cn,"isTimeInput",{enumerable:!0,get:function(){return tx.isTimeInput}});Object.defineProperty(cn,"isTimeInputHrTime",{enumerable:!0,get:function(){return tx.isTimeInputHrTime}});Object.defineProperty(cn,"millisToHrTime",{enumerable:!0,get:function(){return tx.millisToHrTime}});Object.defineProperty(cn,"timeInputToHrTime",{enumerable:!0,get:function(){return tx.timeInputToHrTime}});var $7o=f$r();Object.defineProperty(cn,"ExportResultCode",{enumerable:!0,get:function(){return $7o.ExportResultCode}});var W7o=X4t();Object.defineProperty(cn,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return W7o.parseKeyPairsIntoRecord}});var wB=i6t();Object.defineProperty(cn,"SDK_INFO",{enumerable:!0,get:function(){return wB.SDK_INFO}});Object.defineProperty(cn,"_globalThis",{enumerable:!0,get:function(){return wB._globalThis}});Object.defineProperty(cn,"getStringFromEnv",{enumerable:!0,get:function(){return wB.getStringFromEnv}});Object.defineProperty(cn,"getBooleanFromEnv",{enumerable:!0,get:function(){return wB.getBooleanFromEnv}});Object.defineProperty(cn,"getNumberFromEnv",{enumerable:!0,get:function(){return wB.getNumberFromEnv}});Object.defineProperty(cn,"getStringListFromEnv",{enumerable:!0,get:function(){return wB.getStringListFromEnv}});Object.defineProperty(cn,"otperformance",{enumerable:!0,get:function(){return wB.otperformance}});Object.defineProperty(cn,"unrefTimer",{enumerable:!0,get:function(){return wB.unrefTimer}});var z7o=p$r();Object.defineProperty(cn,"CompositePropagator",{enumerable:!0,get:function(){return z7o.CompositePropagator}});var DRe=b$r();Object.defineProperty(cn,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return DRe.TRACE_PARENT_HEADER}});Object.defineProperty(cn,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return DRe.TRACE_STATE_HEADER}});Object.defineProperty(cn,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return DRe.W3CTraceContextPropagator}});Object.defineProperty(cn,"parseTraceParent",{enumerable:!0,get:function(){return DRe.parseTraceParent}});var ORe=E$r();Object.defineProperty(cn,"RPCType",{enumerable:!0,get:function(){return ORe.RPCType}});Object.defineProperty(cn,"deleteRPCMetadata",{enumerable:!0,get:function(){return ORe.deleteRPCMetadata}});Object.defineProperty(cn,"getRPCMetadata",{enumerable:!0,get:function(){return ORe.getRPCMetadata}});Object.defineProperty(cn,"setRPCMetadata",{enumerable:!0,get:function(){return ORe.setRPCMetadata}});var y6t=w2e();Object.defineProperty(cn,"isTracingSuppressed",{enumerable:!0,get:function(){return y6t.isTracingSuppressed}});Object.defineProperty(cn,"suppressTracing",{enumerable:!0,get:function(){return y6t.suppressTracing}});Object.defineProperty(cn,"unsuppressTracing",{enumerable:!0,get:function(){return y6t.unsuppressTracing}});var K7o=f6t();Object.defineProperty(cn,"TraceState",{enumerable:!0,get:function(){return K7o.TraceState}});var Y7o=R$r();Object.defineProperty(cn,"merge",{enumerable:!0,get:function(){return Y7o.merge}});var V$r=N$r();Object.defineProperty(cn,"TimeoutError",{enumerable:!0,get:function(){return V$r.TimeoutError}});Object.defineProperty(cn,"callWithTimeout",{enumerable:!0,get:function(){return V$r.callWithTimeout}});var G$r=k$r();Object.defineProperty(cn,"isUrlIgnored",{enumerable:!0,get:function(){return G$r.isUrlIgnored}});Object.defineProperty(cn,"urlMatches",{enumerable:!0,get:function(){return G$r.urlMatches}});var J7o=M$r();Object.defineProperty(cn,"BindOnceFuture",{enumerable:!0,get:function(){return J7o.BindOnceFuture}});var X7o=U$r();Object.defineProperty(cn,"diagLogLevelFromString",{enumerable:!0,get:function(){return X7o.diagLogLevelFromString}});var Z7o=Q$r();cn.internal={_export:Z7o._export}});var j$r=E(Rte=>{"use strict";Object.defineProperty(Rte,"__esModule",{value:!0});Rte.LastValueAggregator=Rte.LastValueAccumulation=void 0;var eOo=Ate(),R2e=pV(),tOo=_B(),Ote=class{startTime;_current;sampleTime;constructor(e,r=0,o=[0,0]){this.startTime=e,this._current=r,this.sampleTime=o}record(e){this._current=e,this.sampleTime=(0,R2e.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};Rte.LastValueAccumulation=Ote;var A6t=class{kind=eOo.AggregatorKind.LAST_VALUE;createAccumulation(e){return new Ote(e)}merge(e,r){let o=(0,R2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,R2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new Ote(e.startTime,o.toPointValue(),o.sampleTime)}diff(e,r){let o=(0,R2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,R2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new Ote(r.startTime,o.toPointValue(),o.sampleTime)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:tOo.DataPointType.GAUGE,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()}))}}};Rte.LastValueAggregator=A6t});var $$r=E(Nte=>{"use strict";Object.defineProperty(Nte,"__esModule",{value:!0});Nte.SumAggregator=Nte.SumAccumulation=void 0;var rOo=Ate(),nOo=_B(),IB=class{startTime;monotonic;_current;reset;constructor(e,r,o=0,s=!1){this.startTime=e,this.monotonic=r,this._current=o,this.reset=s}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};Nte.SumAccumulation=IB;var v6t=class{monotonic;kind=rOo.AggregatorKind.SUM;constructor(e){this.monotonic=e}createAccumulation(e){return new IB(e,this.monotonic)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue();return r.reset?new IB(r.startTime,this.monotonic,s,r.reset):new IB(e.startTime,this.monotonic,o+s)}diff(e,r){let o=e.toPointValue(),s=r.toPointValue();return this.monotonic&&o>s?new IB(r.startTime,this.monotonic,s,!0):new IB(r.startTime,this.monotonic,s-o)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:nOo.DataPointType.SUM,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()})),isMonotonic:this.monotonic}}};Nte.SumAggregator=v6t});var J$r=E(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.SumAggregator=_m.SumAccumulation=_m.LastValueAggregator=_m.LastValueAccumulation=_m.ExponentialHistogramAggregator=_m.ExponentialHistogramAccumulation=_m.HistogramAggregator=_m.HistogramAccumulation=_m.DropAggregator=void 0;var iOo=Tjr();Object.defineProperty(_m,"DropAggregator",{enumerable:!0,get:function(){return iOo.DropAggregator}});var W$r=wjr();Object.defineProperty(_m,"HistogramAccumulation",{enumerable:!0,get:function(){return W$r.HistogramAccumulation}});Object.defineProperty(_m,"HistogramAggregator",{enumerable:!0,get:function(){return W$r.HistogramAggregator}});var z$r=Fjr();Object.defineProperty(_m,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return z$r.ExponentialHistogramAccumulation}});Object.defineProperty(_m,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return z$r.ExponentialHistogramAggregator}});var K$r=j$r();Object.defineProperty(_m,"LastValueAccumulation",{enumerable:!0,get:function(){return K$r.LastValueAccumulation}});Object.defineProperty(_m,"LastValueAggregator",{enumerable:!0,get:function(){return K$r.LastValueAggregator}});var Y$r=$$r();Object.defineProperty(_m,"SumAccumulation",{enumerable:!0,get:function(){return Y$r.SumAccumulation}});Object.defineProperty(_m,"SumAggregator",{enumerable:!0,get:function(){return Y$r.SumAggregator}})});var X$r=E(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.DEFAULT_AGGREGATION=Tl.EXPONENTIAL_HISTOGRAM_AGGREGATION=Tl.HISTOGRAM_AGGREGATION=Tl.LAST_VALUE_AGGREGATION=Tl.SUM_AGGREGATION=Tl.DROP_AGGREGATION=Tl.DefaultAggregation=Tl.ExponentialHistogramAggregation=Tl.ExplicitBucketHistogramAggregation=Tl.HistogramAggregation=Tl.LastValueAggregation=Tl.SumAggregation=Tl.DropAggregation=void 0;var oOo=(ut(),nt(_t)),hV=J$r(),eI=_B(),RRe=class t{static DEFAULT_INSTANCE=new hV.DropAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Tl.DropAggregation=RRe;var NRe=class t{static MONOTONIC_INSTANCE=new hV.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new hV.SumAggregator(!1);createAggregator(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};Tl.SumAggregation=NRe;var PRe=class t{static DEFAULT_INSTANCE=new hV.LastValueAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Tl.LastValueAggregation=PRe;var kRe=class t{static DEFAULT_INSTANCE=new hV.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(e){return t.DEFAULT_INSTANCE}};Tl.HistogramAggregation=kRe;var BRe=class{_recordMinMax;_boundaries;constructor(e,r=!0){if(this._recordMinMax=r,e==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");e=e.concat(),e=e.sort((a,i)=>a-i);let o=e.lastIndexOf(-1/0),s=e.indexOf(1/0);s===-1&&(s=void 0),this._boundaries=e.slice(o+1,s)}createAggregator(e){return new hV.HistogramAggregator(this._boundaries,this._recordMinMax)}};Tl.ExplicitBucketHistogramAggregation=BRe;var MRe=class{_maxSize;_recordMinMax;constructor(e=160,r=!0){this._maxSize=e,this._recordMinMax=r}createAggregator(e){return new hV.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};Tl.ExponentialHistogramAggregation=MRe;var LRe=class{_resolve(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.UP_DOWN_COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Tl.SUM_AGGREGATION;case eI.InstrumentType.GAUGE:case eI.InstrumentType.OBSERVABLE_GAUGE:return Tl.LAST_VALUE_AGGREGATION;case eI.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new BRe(e.advice.explicitBucketBoundaries):Tl.HISTOGRAM_AGGREGATION}return oOo.diag.warn(`Unable to recognize instrument type: ${e.type}`),Tl.DROP_AGGREGATION}createAggregator(e){return this._resolve(e).createAggregator(e)}};Tl.DefaultAggregation=LRe;Tl.DROP_AGGREGATION=new RRe;Tl.SUM_AGGREGATION=new NRe;Tl.LAST_VALUE_AGGREGATION=new PRe;Tl.HISTOGRAM_AGGREGATION=new kRe;Tl.EXPONENTIAL_HISTOGRAM_AGGREGATION=new MRe;Tl.DEFAULT_AGGREGATION=new LRe});var N2e=E(yV=>{"use strict";Object.defineProperty(yV,"__esModule",{value:!0});yV.toAggregation=yV.AggregationType=void 0;var mV=X$r(),gV;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.DROP=1]="DROP",t[t.SUM=2]="SUM",t[t.LAST_VALUE=3]="LAST_VALUE",t[t.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(gV=yV.AggregationType||(yV.AggregationType={}));function sOo(t){switch(t.type){case gV.DEFAULT:return mV.DEFAULT_AGGREGATION;case gV.DROP:return mV.DROP_AGGREGATION;case gV.SUM:return mV.SUM_AGGREGATION;case gV.LAST_VALUE:return mV.LAST_VALUE_AGGREGATION;case gV.EXPONENTIAL_HISTOGRAM:{let e=t;return new mV.ExponentialHistogramAggregation(e.options?.maxSize,e.options?.recordMinMax)}case gV.EXPLICIT_BUCKET_HISTOGRAM:{let e=t;return e.options==null?mV.HISTOGRAM_AGGREGATION:new mV.ExplicitBucketHistogramAggregation(e.options?.boundaries,e.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}yV.toAggregation=sOo});var b6t=E(Pte=>{"use strict";Object.defineProperty(Pte,"__esModule",{value:!0});Pte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Pte.DEFAULT_AGGREGATION_SELECTOR=void 0;var aOo=zOe(),cOo=N2e(),lOo=t=>({type:cOo.AggregationType.DEFAULT});Pte.DEFAULT_AGGREGATION_SELECTOR=lOo;var uOo=t=>aOo.AggregationTemporality.CUMULATIVE;Pte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=uOo});var S6t=E(FRe=>{"use strict";Object.defineProperty(FRe,"__esModule",{value:!0});FRe.MetricReader=void 0;var Z$r=(ut(),nt(_t)),URe=X4(),eWr=b6t(),E6t=class{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(e){this._aggregationSelector=e?.aggregationSelector??eWr.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??eWr.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=e?.metricProducers??[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[r,...o]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(n=>n.collect({timeoutMillis:e?.timeoutMillis}))]),s=r.errors.concat((0,URe.FlatMap)(o,n=>n.errors)),a=r.resourceMetrics.resource,i=r.resourceMetrics.scopeMetrics.concat((0,URe.FlatMap)(o,n=>n.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:a,scopeMetrics:i},errors:s}}async shutdown(e){if(this._shutdown){Z$r.diag.error("Cannot call shutdown twice.");return}e?.timeoutMillis==null?await this.onShutdown():await(0,URe.callWithTimeout)(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){Z$r.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await(0,URe.callWithTimeout)(this.onForceFlush(),e.timeoutMillis)}};FRe.MetricReader=E6t});var rWr=E(QRe=>{"use strict";Object.defineProperty(QRe,"__esModule",{value:!0});QRe.PeriodicExportingMetricReader=void 0;var _6t=(ut(),nt(_t)),P2e=pV(),fOo=S6t(),tWr=X4(),x6t=class extends fOo.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(e){if(super({aggregationSelector:e.exporter.selectAggregation?.bind(e.exporter),aggregationTemporalitySelector:e.exporter.selectAggregationTemporality?.bind(e.exporter),metricProducers:e.metricProducers}),e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<e.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=e.exportIntervalMillis??6e4,this._exportTimeout=e.exportTimeoutMillis??3e4,this._exporter=e.exporter}async _runOnce(){try{await(0,tWr.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof tWr.TimeoutError){_6t.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,P2e.globalErrorHandler)(e)}}async _doRun(){let{resourceMetrics:e,errors:r}=await this.collect({timeoutMillis:this._exportTimeout});if(r.length>0&&_6t.diag.error("PeriodicExportingMetricReader: metrics collection errors",...r),e.resource.asyncAttributesPending)try{await e.resource.waitForAsyncAttributes?.()}catch(s){_6t.diag.debug("Error while resolving async portion of resource: ",s),(0,P2e.globalErrorHandler)(s)}if(e.scopeMetrics.length===0)return;let o=await P2e.internal._export(this._exporter,e);if(o.code!==P2e.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${o.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,P2e.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};QRe.PeriodicExportingMetricReader=x6t});var iWr=E(qRe=>{"use strict";Object.defineProperty(qRe,"__esModule",{value:!0});qRe.InMemoryMetricExporter=void 0;var nWr=pV(),C6t=class{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(e){this._aggregationTemporality=e}export(e,r){if(this._shutdown){setTimeout(()=>r({code:nWr.ExportResultCode.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>r({code:nWr.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};qRe.InMemoryMetricExporter=C6t});var sWr=E(HRe=>{"use strict";Object.defineProperty(HRe,"__esModule",{value:!0});HRe.ConsoleMetricExporter=void 0;var oWr=pV(),dOo=b6t(),T6t=class t{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??dOo.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(e,r){if(this._shutdown){setImmediate(r,{code:oWr.ExportResultCode.FAILED});return}return t._sendMetrics(e,r)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,r){for(let o of e.scopeMetrics)for(let s of o.metrics)console.dir({descriptor:s.descriptor,dataPointType:s.dataPointType,dataPoints:s.dataPoints},{depth:null});r({code:oWr.ExportResultCode.SUCCESS})}};HRe.ConsoleMetricExporter=T6t});var k2e=E(DB=>{"use strict";Object.defineProperty(DB,"__esModule",{value:!0});DB.isTracingSuppressed=DB.unsuppressTracing=DB.suppressTracing=void 0;var pOo=(ut(),nt(_t)),w6t=(0,pOo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function hOo(t){return t.setValue(w6t,!0)}DB.suppressTracing=hOo;function mOo(t){return t.deleteValue(w6t)}DB.unsuppressTracing=mOo;function gOo(t){return t.getValue(w6t)===!0}DB.isTracingSuppressed=gOo});var I6t=E(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.BAGGAGE_MAX_TOTAL_LENGTH=ny.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ny.BAGGAGE_MAX_NAME_VALUE_PAIRS=ny.BAGGAGE_HEADER=ny.BAGGAGE_ITEMS_SEPARATOR=ny.BAGGAGE_PROPERTIES_SEPARATOR=ny.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ny.BAGGAGE_KEY_PAIR_SEPARATOR="=";ny.BAGGAGE_PROPERTIES_SEPARATOR=";";ny.BAGGAGE_ITEMS_SEPARATOR=",";ny.BAGGAGE_HEADER="baggage";ny.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ny.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ny.BAGGAGE_MAX_TOTAL_LENGTH=8192});var D6t=E(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.parseKeyPairsIntoRecord=tI.parsePairKeyValue=tI.getKeyPairs=tI.serializeKeyPairs=void 0;var yOo=(ut(),nt(_t)),AV=I6t();function AOo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?AV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>AV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}tI.serializeKeyPairs=AOo;function vOo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=AV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}tI.getKeyPairs=vOo;function aWr(t){let e=t.split(AV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(AV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,yOo.baggageEntryMetadataFromString)(e.join(AV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}tI.parsePairKeyValue=aWr;function bOo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(AV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=aWr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}tI.parseKeyPairsIntoRecord=bOo});var cWr=E(VRe=>{"use strict";Object.defineProperty(VRe,"__esModule",{value:!0});VRe.W3CBaggagePropagator=void 0;var O6t=(ut(),nt(_t)),EOo=k2e(),vV=I6t(),R6t=D6t(),N6t=class{inject(e,r,o){let s=O6t.propagation.getBaggage(e);if(!s||(0,EOo.isTracingSuppressed)(e))return;let a=(0,R6t.getKeyPairs)(s).filter(n=>n.length<=vV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,vV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,R6t.serializeKeyPairs)(a);i.length>0&&o.set(r,vV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,vV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(vV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(vV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,R6t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:O6t.propagation.setBaggage(e,O6t.propagation.createBaggage(i))}fields(){return[vV.BAGGAGE_HEADER]}};VRe.W3CBaggagePropagator=N6t});var lWr=E(GRe=>{"use strict";Object.defineProperty(GRe,"__esModule",{value:!0});GRe.AnchoredClock=void 0;var P6t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};GRe.AnchoredClock=P6t});var hWr=E(OB=>{"use strict";Object.defineProperty(OB,"__esModule",{value:!0});OB.isAttributeValue=OB.isAttributeKey=OB.sanitizeAttributes=void 0;var uWr=(ut(),nt(_t));function SOo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!fWr(r)){uWr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!dWr(o)){uWr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}OB.sanitizeAttributes=SOo;function fWr(t){return typeof t=="string"&&t.length>0}OB.isAttributeKey=fWr;function dWr(t){return t==null?!0:Array.isArray(t)?_Oo(t):pWr(t)}OB.isAttributeValue=dWr;function _Oo(t){let e;for(let r of t)if(r!=null){if(!e){if(pWr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function pWr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var k6t=E(jRe=>{"use strict";Object.defineProperty(jRe,"__esModule",{value:!0});jRe.loggingErrorHandler=void 0;var xOo=(ut(),nt(_t));function COo(){return t=>{xOo.diag.error(TOo(t))}}jRe.loggingErrorHandler=COo;function TOo(t){return typeof t=="string"?t:JSON.stringify(wOo(t))}function wOo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var gWr=E(kte=>{"use strict";Object.defineProperty(kte,"__esModule",{value:!0});kte.globalErrorHandler=kte.setGlobalErrorHandler=void 0;var IOo=k6t(),mWr=(0,IOo.loggingErrorHandler)();function DOo(t){mWr=t}kte.setGlobalErrorHandler=DOo;function OOo(t){try{mWr(t)}catch{}}kte.globalErrorHandler=OOo});var bWr=E(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.getStringListFromEnv=rI.getBooleanFromEnv=rI.getStringFromEnv=rI.getNumberFromEnv=void 0;var yWr=(ut(),nt(_t)),AWr=me("util");function ROo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){yWr.diag.warn(`Unknown value ${(0,AWr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}rI.getNumberFromEnv=ROo;function vWr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}rI.getStringFromEnv=vWr;function NOo(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||yWr.diag.warn(`Unknown value ${(0,AWr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}rI.getBooleanFromEnv=NOo;function POo(t){return vWr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}rI.getStringListFromEnv=POo});var EWr=E($Re=>{"use strict";Object.defineProperty($Re,"__esModule",{value:!0});$Re._globalThis=void 0;$Re._globalThis=typeof globalThis=="object"?globalThis:global});var SWr=E(WRe=>{"use strict";Object.defineProperty(WRe,"__esModule",{value:!0});WRe.otperformance=void 0;var kOo=me("perf_hooks");WRe.otperformance=kOo.performance});var _Wr=E(zRe=>{"use strict";Object.defineProperty(zRe,"__esModule",{value:!0});zRe.VERSION=void 0;zRe.VERSION="2.1.0"});var xWr=E(KRe=>{"use strict";Object.defineProperty(KRe,"__esModule",{value:!0});KRe.ATTR_PROCESS_RUNTIME_NAME=void 0;KRe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var CWr=E(JRe=>{"use strict";Object.defineProperty(JRe,"__esModule",{value:!0});JRe.SDK_INFO=void 0;var BOo=_Wr(),YRe=($l(),nt(Uu)),MOo=xWr();JRe.SDK_INFO={[YRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[MOo.ATTR_PROCESS_RUNTIME_NAME]:"node",[YRe.ATTR_TELEMETRY_SDK_LANGUAGE]:YRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[YRe.ATTR_TELEMETRY_SDK_VERSION]:BOo.VERSION}});var TWr=E(XRe=>{"use strict";Object.defineProperty(XRe,"__esModule",{value:!0});XRe.unrefTimer=void 0;function LOo(t){t.unref()}XRe.unrefTimer=LOo});var wWr=E(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.unrefTimer=l0.SDK_INFO=l0.otperformance=l0._globalThis=l0.getStringListFromEnv=l0.getNumberFromEnv=l0.getBooleanFromEnv=l0.getStringFromEnv=void 0;var ZRe=bWr();Object.defineProperty(l0,"getStringFromEnv",{enumerable:!0,get:function(){return ZRe.getStringFromEnv}});Object.defineProperty(l0,"getBooleanFromEnv",{enumerable:!0,get:function(){return ZRe.getBooleanFromEnv}});Object.defineProperty(l0,"getNumberFromEnv",{enumerable:!0,get:function(){return ZRe.getNumberFromEnv}});Object.defineProperty(l0,"getStringListFromEnv",{enumerable:!0,get:function(){return ZRe.getStringListFromEnv}});var UOo=EWr();Object.defineProperty(l0,"_globalThis",{enumerable:!0,get:function(){return UOo._globalThis}});var FOo=SWr();Object.defineProperty(l0,"otperformance",{enumerable:!0,get:function(){return FOo.otperformance}});var QOo=CWr();Object.defineProperty(l0,"SDK_INFO",{enumerable:!0,get:function(){return QOo.SDK_INFO}});var qOo=TWr();Object.defineProperty(l0,"unrefTimer",{enumerable:!0,get:function(){return qOo.unrefTimer}})});var B6t=E(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.getStringListFromEnv=u0.getNumberFromEnv=u0.getStringFromEnv=u0.getBooleanFromEnv=u0.unrefTimer=u0.otperformance=u0._globalThis=u0.SDK_INFO=void 0;var RB=wWr();Object.defineProperty(u0,"SDK_INFO",{enumerable:!0,get:function(){return RB.SDK_INFO}});Object.defineProperty(u0,"_globalThis",{enumerable:!0,get:function(){return RB._globalThis}});Object.defineProperty(u0,"otperformance",{enumerable:!0,get:function(){return RB.otperformance}});Object.defineProperty(u0,"unrefTimer",{enumerable:!0,get:function(){return RB.unrefTimer}});Object.defineProperty(u0,"getBooleanFromEnv",{enumerable:!0,get:function(){return RB.getBooleanFromEnv}});Object.defineProperty(u0,"getStringFromEnv",{enumerable:!0,get:function(){return RB.getStringFromEnv}});Object.defineProperty(u0,"getNumberFromEnv",{enumerable:!0,get:function(){return RB.getNumberFromEnv}});Object.defineProperty(u0,"getStringListFromEnv",{enumerable:!0,get:function(){return RB.getStringListFromEnv}})});var RWr=E(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.addHrTimes=Of.isTimeInput=Of.isTimeInputHrTime=Of.hrTimeToMicroseconds=Of.hrTimeToMilliseconds=Of.hrTimeToNanoseconds=Of.hrTimeToTimeStamp=Of.hrTimeDuration=Of.timeInputToHrTime=Of.hrTime=Of.getTimeOrigin=Of.millisToHrTime=void 0;var M6t=B6t(),IWr=9,HOo=6,VOo=Math.pow(10,HOo),eNe=Math.pow(10,IWr);function B2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*VOo);return[r,o]}Of.millisToHrTime=B2e;function L6t(){let t=M6t.otperformance.timeOrigin;if(typeof t!="number"){let e=M6t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Of.getTimeOrigin=L6t;function DWr(t){let e=B2e(L6t()),r=B2e(typeof t=="number"?t:M6t.otperformance.now());return OWr(e,r)}Of.hrTime=DWr;function GOo(t){if(U6t(t))return t;if(typeof t=="number")return t<L6t()?DWr(t):B2e(t);if(t instanceof Date)return B2e(t.getTime());throw TypeError("Invalid input type")}Of.timeInputToHrTime=GOo;function jOo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=eNe),[r,o]}Of.hrTimeDuration=jOo;function $Oo(t){let e=IWr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Of.hrTimeToTimeStamp=$Oo;function WOo(t){return t[0]*eNe+t[1]}Of.hrTimeToNanoseconds=WOo;function zOo(t){return t[0]*1e3+t[1]/1e6}Of.hrTimeToMilliseconds=zOo;function KOo(t){return t[0]*1e6+t[1]/1e3}Of.hrTimeToMicroseconds=KOo;function U6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Of.isTimeInputHrTime=U6t;function YOo(t){return U6t(t)||typeof t=="number"||t instanceof Date}Of.isTimeInput=YOo;function OWr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=eNe&&(r[1]-=eNe,r[0]+=1),r}Of.addHrTimes=OWr});var NWr=E(M2e=>{"use strict";Object.defineProperty(M2e,"__esModule",{value:!0});M2e.ExportResultCode=void 0;var JOo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(JOo=M2e.ExportResultCode||(M2e.ExportResultCode={}))});var kWr=E(tNe=>{"use strict";Object.defineProperty(tNe,"__esModule",{value:!0});tNe.CompositePropagator=void 0;var PWr=(ut(),nt(_t)),F6t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){PWr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){PWr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};tNe.CompositePropagator=F6t});var BWr=E(Bte=>{"use strict";Object.defineProperty(Bte,"__esModule",{value:!0});Bte.validateValue=Bte.validateKey=void 0;var Q6t="[_0-9a-z-*/]",XOo=`[a-z]${Q6t}{0,255}`,ZOo=`[a-z0-9]${Q6t}{0,240}@[a-z]${Q6t}{0,13}`,eRo=new RegExp(`^(?:${XOo}|${ZOo})$`),tRo=/^[ -~]{0,255}[!-~]$/,rRo=/,|=/;function nRo(t){return eRo.test(t)}Bte.validateKey=nRo;function iRo(t){return tRo.test(t)&&!rRo.test(t)}Bte.validateValue=iRo});var H6t=E(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});rNe.TraceState=void 0;var MWr=BWr(),LWr=32,oRo=512,UWr=",",FWr="=",q6t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+FWr+this.get(r)),e),[]).join(UWr)}_parse(e){e.length>oRo||(this._internalState=e.split(UWr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(FWr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,MWr.validateKey)(i)&&(0,MWr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>LWr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,LWr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};rNe.TraceState=q6t});var qWr=E(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.W3CTraceContextPropagator=iy.parseTraceParent=iy.TRACE_STATE_HEADER=iy.TRACE_PARENT_HEADER=void 0;var nNe=(ut(),nt(_t)),sRo=k2e(),aRo=H6t();iy.TRACE_PARENT_HEADER="traceparent";iy.TRACE_STATE_HEADER="tracestate";var cRo="00",lRo="(?!ff)[\\da-f]{2}",uRo="(?![0]{32})[\\da-f]{32}",fRo="(?![0]{16})[\\da-f]{16}",dRo="[\\da-f]{2}",pRo=new RegExp(`^\\s?(${lRo})-(${uRo})-(${fRo})-(${dRo})(-.*)?\\s?$`);function QWr(t){let e=pRo.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}iy.parseTraceParent=QWr;var V6t=class{inject(e,r,o){let s=nNe.trace.getSpanContext(e);if(!s||(0,sRo.isTracingSuppressed)(e)||!(0,nNe.isSpanContextValid)(s))return;let a=`${cRo}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||nNe.TraceFlags.NONE).toString(16)}`;o.set(r,iy.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,iy.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,iy.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=QWr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,iy.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new aRo.TraceState(typeof c=="string"?c:void 0)}return nNe.trace.setSpanContext(e,i)}fields(){return[iy.TRACE_PARENT_HEADER,iy.TRACE_STATE_HEADER]}};iy.W3CTraceContextPropagator=V6t});var HWr=E(e6=>{"use strict";Object.defineProperty(e6,"__esModule",{value:!0});e6.getRPCMetadata=e6.deleteRPCMetadata=e6.setRPCMetadata=e6.RPCType=void 0;var hRo=(ut(),nt(_t)),G6t=(0,hRo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),mRo;(function(t){t.HTTP="http"})(mRo=e6.RPCType||(e6.RPCType={}));function gRo(t,e){return t.setValue(G6t,e)}e6.setRPCMetadata=gRo;function yRo(t){return t.deleteValue(G6t)}e6.deleteRPCMetadata=yRo;function ARo(t){return t.getValue(G6t)}e6.getRPCMetadata=ARo});var WWr=E(iNe=>{"use strict";Object.defineProperty(iNe,"__esModule",{value:!0});iNe.isPlainObject=void 0;var vRo="[object Object]",bRo="[object Null]",ERo="[object Undefined]",SRo=Function.prototype,VWr=SRo.toString,_Ro=VWr.call(Object),xRo=Object.getPrototypeOf,GWr=Object.prototype,jWr=GWr.hasOwnProperty,bV=Symbol?Symbol.toStringTag:void 0,$Wr=GWr.toString;function CRo(t){if(!TRo(t)||wRo(t)!==vRo)return!1;let e=xRo(t);if(e===null)return!0;let r=jWr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&VWr.call(r)===_Ro}iNe.isPlainObject=CRo;function TRo(t){return t!=null&&typeof t=="object"}function wRo(t){return t==null?t===void 0?ERo:bRo:bV&&bV in Object(t)?IRo(t):DRo(t)}function IRo(t){let e=jWr.call(t,bV),r=t[bV],o=!1;try{t[bV]=void 0,o=!0}catch{}let s=$Wr.call(t);return o&&(e?t[bV]=r:delete t[bV]),s}function DRo(t){return $Wr.call(t)}});var XWr=E(aNe=>{"use strict";Object.defineProperty(aNe,"__esModule",{value:!0});aNe.merge=void 0;var zWr=WWr(),ORo=20;function RRo(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=YWr(e,t.shift(),0,r);return e}aNe.merge=RRo;function j6t(t){return sNe(t)?t.slice():t}function YWr(t,e,r=0,o){let s;if(!(r>ORo)){if(r++,oNe(t)||oNe(e)||JWr(e))s=j6t(e);else if(sNe(t)){if(s=t.slice(),sNe(e))for(let a=0,i=e.length;a<i;a++)s.push(j6t(e[a]));else if(L2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=j6t(e[c])}}}else if(L2e(t))if(L2e(e)){if(!NRo(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(oNe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(KWr(t,c,o)||KWr(e,c,o))delete s[c];else{if(L2e(f)&&L2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=YWr(s[c],u,r,o)}}}}else s=e;return s}}function KWr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function sNe(t){return Array.isArray(t)}function JWr(t){return typeof t=="function"}function L2e(t){return!oNe(t)&&!sNe(t)&&!JWr(t)&&typeof t=="object"}function oNe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function NRo(t,e){return!(!(0,zWr.isPlainObject)(t)||!(0,zWr.isPlainObject)(e))}});var ZWr=E(Mte=>{"use strict";Object.defineProperty(Mte,"__esModule",{value:!0});Mte.callWithTimeout=Mte.TimeoutError=void 0;var cNe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Mte.TimeoutError=cNe;function PRo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new cNe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Mte.callWithTimeout=PRo});var tzr=E(Lte=>{"use strict";Object.defineProperty(Lte,"__esModule",{value:!0});Lte.isUrlIgnored=Lte.urlMatches=void 0;function ezr(t,e){return typeof e=="string"?t===e:!!t.match(e)}Lte.urlMatches=ezr;function kRo(t,e){if(!e)return!1;for(let r of e)if(ezr(t,r))return!0;return!1}Lte.isUrlIgnored=kRo});var rzr=E(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});lNe.Deferred=void 0;var $6t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};lNe.Deferred=$6t});var nzr=E(uNe=>{"use strict";Object.defineProperty(uNe,"__esModule",{value:!0});uNe.BindOnceFuture=void 0;var BRo=rzr(),W6t=class{_callback;_that;_isCalled=!1;_deferred=new BRo.Deferred;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};uNe.BindOnceFuture=W6t});var ozr=E(fNe=>{"use strict";Object.defineProperty(fNe,"__esModule",{value:!0});fNe.diagLogLevelFromString=void 0;var aO=(ut(),nt(_t)),izr={ALL:aO.DiagLogLevel.ALL,VERBOSE:aO.DiagLogLevel.VERBOSE,DEBUG:aO.DiagLogLevel.DEBUG,INFO:aO.DiagLogLevel.INFO,WARN:aO.DiagLogLevel.WARN,ERROR:aO.DiagLogLevel.ERROR,NONE:aO.DiagLogLevel.NONE};function MRo(t){if(t==null)return;let e=izr[t.toUpperCase()];return e??(aO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(izr)}, using default`),aO.DiagLogLevel.INFO)}fNe.diagLogLevelFromString=MRo});var azr=E(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});dNe._export=void 0;var szr=(ut(),nt(_t)),LRo=k2e();function URo(t,e){return new Promise(r=>{szr.context.with((0,LRo.suppressTracing)(szr.context.active()),()=>{t.export(e,o=>{r(o)})})})}dNe._export=URo});var K6t=E(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.internal=ln.diagLogLevelFromString=ln.BindOnceFuture=ln.urlMatches=ln.isUrlIgnored=ln.callWithTimeout=ln.TimeoutError=ln.merge=ln.TraceState=ln.unsuppressTracing=ln.suppressTracing=ln.isTracingSuppressed=ln.setRPCMetadata=ln.getRPCMetadata=ln.deleteRPCMetadata=ln.RPCType=ln.parseTraceParent=ln.W3CTraceContextPropagator=ln.TRACE_STATE_HEADER=ln.TRACE_PARENT_HEADER=ln.CompositePropagator=ln.unrefTimer=ln.otperformance=ln.getStringListFromEnv=ln.getNumberFromEnv=ln.getBooleanFromEnv=ln.getStringFromEnv=ln._globalThis=ln.SDK_INFO=ln.parseKeyPairsIntoRecord=ln.ExportResultCode=ln.timeInputToHrTime=ln.millisToHrTime=ln.isTimeInputHrTime=ln.isTimeInput=ln.hrTimeToTimeStamp=ln.hrTimeToNanoseconds=ln.hrTimeToMilliseconds=ln.hrTimeToMicroseconds=ln.hrTimeDuration=ln.hrTime=ln.getTimeOrigin=ln.addHrTimes=ln.loggingErrorHandler=ln.setGlobalErrorHandler=ln.globalErrorHandler=ln.sanitizeAttributes=ln.isAttributeValue=ln.AnchoredClock=ln.W3CBaggagePropagator=void 0;var FRo=cWr();Object.defineProperty(ln,"W3CBaggagePropagator",{enumerable:!0,get:function(){return FRo.W3CBaggagePropagator}});var QRo=lWr();Object.defineProperty(ln,"AnchoredClock",{enumerable:!0,get:function(){return QRo.AnchoredClock}});var czr=hWr();Object.defineProperty(ln,"isAttributeValue",{enumerable:!0,get:function(){return czr.isAttributeValue}});Object.defineProperty(ln,"sanitizeAttributes",{enumerable:!0,get:function(){return czr.sanitizeAttributes}});var lzr=gWr();Object.defineProperty(ln,"globalErrorHandler",{enumerable:!0,get:function(){return lzr.globalErrorHandler}});Object.defineProperty(ln,"setGlobalErrorHandler",{enumerable:!0,get:function(){return lzr.setGlobalErrorHandler}});var qRo=k6t();Object.defineProperty(ln,"loggingErrorHandler",{enumerable:!0,get:function(){return qRo.loggingErrorHandler}});var rx=RWr();Object.defineProperty(ln,"addHrTimes",{enumerable:!0,get:function(){return rx.addHrTimes}});Object.defineProperty(ln,"getTimeOrigin",{enumerable:!0,get:function(){return rx.getTimeOrigin}});Object.defineProperty(ln,"hrTime",{enumerable:!0,get:function(){return rx.hrTime}});Object.defineProperty(ln,"hrTimeDuration",{enumerable:!0,get:function(){return rx.hrTimeDuration}});Object.defineProperty(ln,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return rx.hrTimeToMicroseconds}});Object.defineProperty(ln,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return rx.hrTimeToMilliseconds}});Object.defineProperty(ln,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return rx.hrTimeToNanoseconds}});Object.defineProperty(ln,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return rx.hrTimeToTimeStamp}});Object.defineProperty(ln,"isTimeInput",{enumerable:!0,get:function(){return rx.isTimeInput}});Object.defineProperty(ln,"isTimeInputHrTime",{enumerable:!0,get:function(){return rx.isTimeInputHrTime}});Object.defineProperty(ln,"millisToHrTime",{enumerable:!0,get:function(){return rx.millisToHrTime}});Object.defineProperty(ln,"timeInputToHrTime",{enumerable:!0,get:function(){return rx.timeInputToHrTime}});var HRo=NWr();Object.defineProperty(ln,"ExportResultCode",{enumerable:!0,get:function(){return HRo.ExportResultCode}});var VRo=D6t();Object.defineProperty(ln,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return VRo.parseKeyPairsIntoRecord}});var NB=B6t();Object.defineProperty(ln,"SDK_INFO",{enumerable:!0,get:function(){return NB.SDK_INFO}});Object.defineProperty(ln,"_globalThis",{enumerable:!0,get:function(){return NB._globalThis}});Object.defineProperty(ln,"getStringFromEnv",{enumerable:!0,get:function(){return NB.getStringFromEnv}});Object.defineProperty(ln,"getBooleanFromEnv",{enumerable:!0,get:function(){return NB.getBooleanFromEnv}});Object.defineProperty(ln,"getNumberFromEnv",{enumerable:!0,get:function(){return NB.getNumberFromEnv}});Object.defineProperty(ln,"getStringListFromEnv",{enumerable:!0,get:function(){return NB.getStringListFromEnv}});Object.defineProperty(ln,"otperformance",{enumerable:!0,get:function(){return NB.otperformance}});Object.defineProperty(ln,"unrefTimer",{enumerable:!0,get:function(){return NB.unrefTimer}});var GRo=kWr();Object.defineProperty(ln,"CompositePropagator",{enumerable:!0,get:function(){return GRo.CompositePropagator}});var pNe=qWr();Object.defineProperty(ln,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return pNe.TRACE_PARENT_HEADER}});Object.defineProperty(ln,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return pNe.TRACE_STATE_HEADER}});Object.defineProperty(ln,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return pNe.W3CTraceContextPropagator}});Object.defineProperty(ln,"parseTraceParent",{enumerable:!0,get:function(){return pNe.parseTraceParent}});var hNe=HWr();Object.defineProperty(ln,"RPCType",{enumerable:!0,get:function(){return hNe.RPCType}});Object.defineProperty(ln,"deleteRPCMetadata",{enumerable:!0,get:function(){return hNe.deleteRPCMetadata}});Object.defineProperty(ln,"getRPCMetadata",{enumerable:!0,get:function(){return hNe.getRPCMetadata}});Object.defineProperty(ln,"setRPCMetadata",{enumerable:!0,get:function(){return hNe.setRPCMetadata}});var z6t=k2e();Object.defineProperty(ln,"isTracingSuppressed",{enumerable:!0,get:function(){return z6t.isTracingSuppressed}});Object.defineProperty(ln,"suppressTracing",{enumerable:!0,get:function(){return z6t.suppressTracing}});Object.defineProperty(ln,"unsuppressTracing",{enumerable:!0,get:function(){return z6t.unsuppressTracing}});var jRo=H6t();Object.defineProperty(ln,"TraceState",{enumerable:!0,get:function(){return jRo.TraceState}});var $Ro=XWr();Object.defineProperty(ln,"merge",{enumerable:!0,get:function(){return $Ro.merge}});var uzr=ZWr();Object.defineProperty(ln,"TimeoutError",{enumerable:!0,get:function(){return uzr.TimeoutError}});Object.defineProperty(ln,"callWithTimeout",{enumerable:!0,get:function(){return uzr.callWithTimeout}});var fzr=tzr();Object.defineProperty(ln,"isUrlIgnored",{enumerable:!0,get:function(){return fzr.isUrlIgnored}});Object.defineProperty(ln,"urlMatches",{enumerable:!0,get:function(){return fzr.urlMatches}});var WRo=nzr();Object.defineProperty(ln,"BindOnceFuture",{enumerable:!0,get:function(){return WRo.BindOnceFuture}});var zRo=ozr();Object.defineProperty(ln,"diagLogLevelFromString",{enumerable:!0,get:function(){return zRo.diagLogLevelFromString}});var KRo=azr();ln.internal={_export:KRo._export}});var dzr=E(mNe=>{"use strict";Object.defineProperty(mNe,"__esModule",{value:!0});mNe.defaultServiceName=void 0;function YRo(){return`unknown_service:${process.argv0}`}mNe.defaultServiceName=YRo});var pzr=E(gNe=>{"use strict";Object.defineProperty(gNe,"__esModule",{value:!0});gNe.defaultServiceName=void 0;var JRo=dzr();Object.defineProperty(gNe,"defaultServiceName",{enumerable:!0,get:function(){return JRo.defaultServiceName}})});var Y6t=E(yNe=>{"use strict";Object.defineProperty(yNe,"__esModule",{value:!0});yNe.defaultServiceName=void 0;var XRo=pzr();Object.defineProperty(yNe,"defaultServiceName",{enumerable:!0,get:function(){return XRo.defaultServiceName}})});var hzr=E(Ute=>{"use strict";Object.defineProperty(Ute,"__esModule",{value:!0});Ute.identity=Ute.isPromiseLike=void 0;var ZRo=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";Ute.isPromiseLike=ZRo;function eNo(t){return t}Ute.identity=eNo});var Z6t=E(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});nI.defaultResource=nI.emptyResource=nI.resourceFromDetectedResource=nI.resourceFromAttributes=void 0;var F2e=(ut(),nt(_t)),J6t=K6t(),EV=($l(),nt(Uu)),tNo=Y6t(),U2e=hzr(),ANe=class t{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,r){let o=new t({},r);return o._rawAttributes=mzr(e),o._asyncAttributesPending=e.filter(([s,a])=>(0,U2e.isPromiseLike)(a)).length>0,o}constructor(e,r){let o=e.attributes??{};this._rawAttributes=Object.entries(o).map(([s,a])=>((0,U2e.isPromiseLike)(a)&&(this._asyncAttributesPending=!0),[s,a])),this._rawAttributes=mzr(this._rawAttributes),this._schemaUrl=oNo(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[r,o]=this._rawAttributes[e];this._rawAttributes[e]=[r,(0,U2e.isPromiseLike)(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&F2e.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[r,o]of this._rawAttributes){if((0,U2e.isPromiseLike)(o)){F2e.diag.debug(`Unsettled resource attribute ${r} skipped`);continue}o!=null&&(e[r]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;let r=sNo(this,e),o=r?{schemaUrl:r}:void 0;return t.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],o)}};function X6t(t,e){return ANe.FromAttributeList(Object.entries(t),e)}nI.resourceFromAttributes=X6t;function rNo(t,e){return new ANe(t,e)}nI.resourceFromDetectedResource=rNo;function nNo(){return X6t({})}nI.emptyResource=nNo;function iNo(){return X6t({[EV.ATTR_SERVICE_NAME]:(0,tNo.defaultServiceName)(),[EV.ATTR_TELEMETRY_SDK_LANGUAGE]:J6t.SDK_INFO[EV.ATTR_TELEMETRY_SDK_LANGUAGE],[EV.ATTR_TELEMETRY_SDK_NAME]:J6t.SDK_INFO[EV.ATTR_TELEMETRY_SDK_NAME],[EV.ATTR_TELEMETRY_SDK_VERSION]:J6t.SDK_INFO[EV.ATTR_TELEMETRY_SDK_VERSION]})}nI.defaultResource=iNo;function mzr(t){return t.map(([e,r])=>(0,U2e.isPromiseLike)(r)?[e,r.catch(o=>{F2e.diag.debug("promise rejection for resource attribute: %s - %s",e,o)})]:[e,r])}function oNo(t){if(typeof t=="string"||t===void 0)return t;F2e.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function sNo(t,e){let r=t?.schemaUrl,o=e?.schemaUrl,s=r===void 0||r==="",a=o===void 0||o==="";if(s)return o;if(a||r===o)return r;F2e.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,o)}});var yzr=E(vNe=>{"use strict";Object.defineProperty(vNe,"__esModule",{value:!0});vNe.detectResources=void 0;var gzr=(ut(),nt(_t)),ewt=Z6t(),aNo=(t={})=>(t.detectors||[]).map(r=>{try{let o=(0,ewt.resourceFromDetectedResource)(r.detect(t));return gzr.diag.debug(`${r.constructor.name} found resource.`,o),o}catch(o){return gzr.diag.debug(`${r.constructor.name} failed: ${o.message}`),(0,ewt.emptyResource)()}}).reduce((r,o)=>r.merge(o),(0,ewt.emptyResource)());vNe.detectResources=aNo});var vzr=E(bNe=>{"use strict";Object.defineProperty(bNe,"__esModule",{value:!0});bNe.envDetector=void 0;var cNo=(ut(),nt(_t)),lNo=($l(),nt(Uu)),Azr=K6t(),twt=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(e){let r={},o=(0,Azr.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),s=(0,Azr.getStringFromEnv)("OTEL_SERVICE_NAME");if(o)try{let a=this._parseResourceAttributes(o);Object.assign(r,a)}catch(a){cNo.diag.debug(`EnvDetector failed: ${a.message}`)}return s&&(r[lNo.ATTR_SERVICE_NAME]=s),{attributes:r}}_parseResourceAttributes(e){if(!e)return{};let r={},o=e.split(this._COMMA_SEPARATOR,-1);for(let s of o){let a=s.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(a.length!==2)continue;let[i,n]=a;if(i=i.trim(),n=n.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(n))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);r[i]=decodeURIComponent(n)}return r}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o<33||o===44||o===59||o===92||o>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};bNe.envDetector=new twt});var Q2e=E(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.ATTR_WEBENGINE_VERSION=fi.ATTR_WEBENGINE_NAME=fi.ATTR_WEBENGINE_DESCRIPTION=fi.ATTR_SERVICE_NAMESPACE=fi.ATTR_SERVICE_INSTANCE_ID=fi.ATTR_PROCESS_RUNTIME_VERSION=fi.ATTR_PROCESS_RUNTIME_NAME=fi.ATTR_PROCESS_RUNTIME_DESCRIPTION=fi.ATTR_PROCESS_PID=fi.ATTR_PROCESS_OWNER=fi.ATTR_PROCESS_EXECUTABLE_PATH=fi.ATTR_PROCESS_EXECUTABLE_NAME=fi.ATTR_PROCESS_COMMAND_ARGS=fi.ATTR_PROCESS_COMMAND=fi.ATTR_OS_VERSION=fi.ATTR_OS_TYPE=fi.ATTR_K8S_POD_NAME=fi.ATTR_K8S_NAMESPACE_NAME=fi.ATTR_K8S_DEPLOYMENT_NAME=fi.ATTR_K8S_CLUSTER_NAME=fi.ATTR_HOST_TYPE=fi.ATTR_HOST_NAME=fi.ATTR_HOST_IMAGE_VERSION=fi.ATTR_HOST_IMAGE_NAME=fi.ATTR_HOST_IMAGE_ID=fi.ATTR_HOST_ID=fi.ATTR_HOST_ARCH=fi.ATTR_CONTAINER_NAME=fi.ATTR_CONTAINER_IMAGE_TAGS=fi.ATTR_CONTAINER_IMAGE_NAME=fi.ATTR_CONTAINER_ID=fi.ATTR_CLOUD_REGION=fi.ATTR_CLOUD_PROVIDER=fi.ATTR_CLOUD_AVAILABILITY_ZONE=fi.ATTR_CLOUD_ACCOUNT_ID=void 0;fi.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";fi.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";fi.ATTR_CLOUD_PROVIDER="cloud.provider";fi.ATTR_CLOUD_REGION="cloud.region";fi.ATTR_CONTAINER_ID="container.id";fi.ATTR_CONTAINER_IMAGE_NAME="container.image.name";fi.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";fi.ATTR_CONTAINER_NAME="container.name";fi.ATTR_HOST_ARCH="host.arch";fi.ATTR_HOST_ID="host.id";fi.ATTR_HOST_IMAGE_ID="host.image.id";fi.ATTR_HOST_IMAGE_NAME="host.image.name";fi.ATTR_HOST_IMAGE_VERSION="host.image.version";fi.ATTR_HOST_NAME="host.name";fi.ATTR_HOST_TYPE="host.type";fi.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";fi.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";fi.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";fi.ATTR_K8S_POD_NAME="k8s.pod.name";fi.ATTR_OS_TYPE="os.type";fi.ATTR_OS_VERSION="os.version";fi.ATTR_PROCESS_COMMAND="process.command";fi.ATTR_PROCESS_COMMAND_ARGS="process.command_args";fi.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";fi.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";fi.ATTR_PROCESS_OWNER="process.owner";fi.ATTR_PROCESS_PID="process.pid";fi.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";fi.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";fi.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";fi.ATTR_SERVICE_INSTANCE_ID="service.instance.id";fi.ATTR_SERVICE_NAMESPACE="service.namespace";fi.ATTR_WEBENGINE_DESCRIPTION="webengine.description";fi.ATTR_WEBENGINE_NAME="webengine.name";fi.ATTR_WEBENGINE_VERSION="webengine.version"});var SNe=E(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});ENe.execAsync=void 0;var uNo=me("child_process"),fNo=me("util");ENe.execAsync=fNo.promisify(uNo.exec)});var bzr=E(_Ne=>{"use strict";Object.defineProperty(_Ne,"__esModule",{value:!0});_Ne.getMachineId=void 0;var dNo=SNe(),pNo=(ut(),nt(_t));async function hNo(){try{let e=(await(0,dNo.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
781
+ `)))}),t&&t(r),e(r)}),(hvo||gvo||mvo||yvo)&&e(null)})})}OPr.bluetoothDevices=Svo});var VPr=E(Qi=>{"use strict";var _vo=zRr().version,dB=vm(),fB=dNr(),eO=hCt(),z_=ANr(),S7e=wNr(),NPr=ONr(),PPr=BNr(),V5=QNr(),tO=zNr(),_7e=ZNr(),W0e=rPr(),kPr=oPr(),$Ct=fPr(),eV=mPr(),xvo=yPr(),BPr=EPr(),MPr=xPr(),LPr=wPr(),UPr=RPr(),z0e=process.platform,E7e=z0e==="win32",G0e=z0e==="freebsd",j0e=z0e==="openbsd",$0e=z0e==="netbsd",H5=z0e==="sunos";E7e&&(dB.getCodepage(),dB.getPowershell());function FPr(){return _vo}function QPr(t){return new Promise(e=>{process.nextTick(()=>{let r={};r.version=FPr(),Promise.all([fB.system(),fB.bios(),fB.baseboard(),fB.chassis(),eO.osInfo(),eO.uuid(),eO.versions(),z_.cpu(),z_.cpuFlags(),PPr.graphics(),tO.networkInterfaces(),S7e.memLayout(),V5.diskLayout(),LPr.audio(),UPr.bluetoothDevices(),MPr.usb(),BPr.printer()]).then(o=>{r.system=o[0],r.bios=o[1],r.baseboard=o[2],r.chassis=o[3],r.os=o[4],r.uuid=o[5],r.versions=o[6],r.cpu=o[7],r.cpu.flags=o[8],r.graphics=o[9],r.net=o[10],r.memLayout=o[11],r.diskLayout=o[12],r.audio=o[13],r.bluetooth=o[14],r.usb=o[15],r.printer=o[16],t&&t(r),e(r)})})})}function qPr(t,e,r){return dB.isFunction(e)&&(r=e,e=""),dB.isFunction(t)&&(r=t,t=""),new Promise(o=>{process.nextTick(()=>{e=e||tO.getDefaultNetworkInterface(),t=t||"";let s=(function(){let i=15;return E7e&&(i=13),(G0e||j0e||$0e)&&(i=11),H5&&(i=6),function(){--i===0&&(r&&r(a),o(a))}})(),a={};a.time=eO.time(),a.node=process.versions.node,a.v8=process.versions.v8,z_.cpuCurrentSpeed().then(i=>{a.cpuCurrentSpeed=i,s()}),kPr.users().then(i=>{a.users=i,s()}),W0e.processes().then(i=>{a.processes=i,s()}),z_.currentLoad().then(i=>{a.currentLoad=i,s()}),H5||z_.cpuTemperature().then(i=>{a.temp=i,s()}),!j0e&&!G0e&&!$0e&&!H5&&tO.networkStats(e).then(i=>{a.networkStats=i,s()}),H5||tO.networkConnections().then(i=>{a.networkConnections=i,s()}),S7e.mem().then(i=>{a.mem=i,s()}),H5||NPr().then(i=>{a.battery=i,s()}),H5||W0e.services(t).then(i=>{a.services=i,s()}),H5||V5.fsSize().then(i=>{a.fsSize=i,s()}),!E7e&&!j0e&&!G0e&&!$0e&&!H5&&V5.fsStats().then(i=>{a.fsStats=i,s()}),!E7e&&!j0e&&!G0e&&!$0e&&!H5&&V5.disksIO().then(i=>{a.disksIO=i,s()}),!j0e&&!G0e&&!$0e&&!H5&&_7e.wifiNetworks().then(i=>{a.wifiNetworks=i,s()}),$Ct.inetLatency().then(i=>{a.inetLatency=i,s()})})})}function Cvo(t,e,r){return new Promise(o=>{process.nextTick(()=>{let s={};e&&dB.isFunction(e)&&!r&&(r=e,e=""),t&&dB.isFunction(t)&&!e&&!r&&(r=t,t="",e=""),QPr().then(a=>{s=a,qPr(t,e).then(i=>{for(let n in i)({}).hasOwnProperty.call(i,n)&&(s[n]=i[n]);r&&r(s),o(s)})})})})}function HPr(t,e){return new Promise(r=>{process.nextTick(()=>{let o=Object.keys(t).filter(s=>({}).hasOwnProperty.call(Qi,s)).map(s=>{let a=t[s].substring(t[s].lastIndexOf("(")+1,t[s].lastIndexOf(")")),i=s.indexOf(")")>=0?s.split(")")[1].trim():s;return i=s.indexOf("|")>=0?s.split("|")[0].trim():i,a?Qi[i](a):Qi[i]("")});Promise.all(o).then(s=>{let a={},i=0;for(let n in t)if({}.hasOwnProperty.call(t,n)&&{}.hasOwnProperty.call(Qi,n)&&s.length>i){if(t[n]==="*"||t[n]==="all")a[n]=s[i];else{let c=t[n],u="",f=[];if(c.indexOf(")")>=0&&(c=c.split(")")[1].trim()),c.indexOf("|")>=0&&(u=c.split("|")[1].trim(),f=u.split(":"),c=c.split("|")[0].trim()),c=c.replace(/,/g," ").replace(/ +/g," ").split(" "),s[i])if(Array.isArray(s[i])){let d=[];s[i].forEach(p=>{let h={};if(c.length===1&&(c[0]==="*"||c[0]==="all")?h=p:c.forEach(m=>{({}).hasOwnProperty.call(p,m)&&(h[m]=p[m])}),u&&f.length===2){if({}.hasOwnProperty.call(h,f[0].trim())){let m=h[f[0].trim()];typeof m=="number"?m===parseFloat(f[1].trim())&&d.push(h):typeof m=="string"&&m.toLowerCase()===f[1].trim().toLowerCase()&&d.push(h)}}else d.push(h)}),a[n]=d}else{let d={};c.forEach(p=>{({}).hasOwnProperty.call(s[i],p)&&(d[p]=s[i][p])}),a[n]=d}else a[n]={}}i++}e&&e(a),r(a)})})})}function Tvo(t,e,r){let o=null;return setInterval(()=>{HPr(t).then(a=>{JSON.stringify(o)!==JSON.stringify(a)&&(o=Object.assign({},a),r(a))})},e)}Qi.version=FPr;Qi.system=fB.system;Qi.bios=fB.bios;Qi.baseboard=fB.baseboard;Qi.chassis=fB.chassis;Qi.time=eO.time;Qi.osInfo=eO.osInfo;Qi.versions=eO.versions;Qi.shell=eO.shell;Qi.uuid=eO.uuid;Qi.cpu=z_.cpu;Qi.cpuFlags=z_.cpuFlags;Qi.cpuCache=z_.cpuCache;Qi.cpuCurrentSpeed=z_.cpuCurrentSpeed;Qi.cpuTemperature=z_.cpuTemperature;Qi.currentLoad=z_.currentLoad;Qi.fullLoad=z_.fullLoad;Qi.mem=S7e.mem;Qi.memLayout=S7e.memLayout;Qi.battery=NPr;Qi.graphics=PPr.graphics;Qi.fsSize=V5.fsSize;Qi.fsOpenFiles=V5.fsOpenFiles;Qi.blockDevices=V5.blockDevices;Qi.fsStats=V5.fsStats;Qi.disksIO=V5.disksIO;Qi.diskLayout=V5.diskLayout;Qi.networkInterfaceDefault=tO.networkInterfaceDefault;Qi.networkGatewayDefault=tO.networkGatewayDefault;Qi.networkInterfaces=tO.networkInterfaces;Qi.networkStats=tO.networkStats;Qi.networkConnections=tO.networkConnections;Qi.wifiNetworks=_7e.wifiNetworks;Qi.wifiInterfaces=_7e.wifiInterfaces;Qi.wifiConnections=_7e.wifiConnections;Qi.services=W0e.services;Qi.processes=W0e.processes;Qi.processLoad=W0e.processLoad;Qi.users=kPr.users;Qi.inetChecksite=$Ct.inetChecksite;Qi.inetLatency=$Ct.inetLatency;Qi.dockerInfo=eV.dockerInfo;Qi.dockerImages=eV.dockerImages;Qi.dockerContainers=eV.dockerContainers;Qi.dockerContainerStats=eV.dockerContainerStats;Qi.dockerContainerProcesses=eV.dockerContainerProcesses;Qi.dockerVolumes=eV.dockerVolumes;Qi.dockerAll=eV.dockerAll;Qi.vboxInfo=xvo.vboxInfo;Qi.printer=BPr.printer;Qi.usb=MPr.usb;Qi.audio=LPr.audio;Qi.bluetoothDevices=UPr.bluetoothDevices;Qi.getStaticData=QPr;Qi.getDynamicData=qPr;Qi.getAllData=Cvo;Qi.get=HPr;Qi.observe=Tvo;Qi.powerShellStart=dB.powerShellStart;Qi.powerShellRelease=dB.powerShellRelease});async function WCt(){try{let{displays:t}=await GPr.default.graphics();if(!t?.length)return"-";let e=t.find(s=>s.main)||t[0],r=e.currentResX||e.resolutionX,o=e.currentResY||e.resolutionY;return r&&o?`${r}x${o}`:"-"}catch{return"-"}}var GPr,zCt=G(()=>{"use strict";GPr=we(VPr(),1)});async function x7e(){let t=new AbortController,e=setTimeout(()=>t.abort(),3e3);try{let s=(await(await fetch("https://log.mmstat.com/v.gif",{signal:t.signal})).headers.getSetCookie()).find(a=>a.startsWith("cna="));return s?s.split(";")?.[0]?.split("=")?.[1]:void 0}catch{return}finally{clearTimeout(e)}}async function jPr({cna:t,userId:e,iFlowEnv:r}){if(!(!t||process.env.DISABLE_SEND_PV))try{let o=process.env.IFLOW_NON_INTERACTIVE==="true",a=["logtype=1","title=iFlow-CLI","pre=-",`scr=${await WCt()}`,`cna=${t}`,`spm-cnt=${o?"a2110qe.33796382.46182003.0.0":"a2110qe.32214347.46097794.0.0"}`,"aplus","pid=iflow",`_user_id=${e}`,`cache=${Math.floor(268435456*Math.random()).toString(16)}`,"sidx=aplusSidex","ckx=aplusCkx",`platformType=${process.env.IFLOW_RUN_IN||"pc"}`,`device_model=${Dvo[process.platform]||process.platform}`,`os=${wvo[process.platform]||process.platform}`,`o=${Ivo[process.platform]||process.platform}`,`node_version=${process.version}`,`language=${process.env.LANG}`,`interactive=${o?0:1}`,`iFlowEnv=${r}`,"_g_encode=utf-8"].join("&");await fetch("https://log.mmstat.com/v.gif",{method:"POST",headers:{"content-type":"text/plain;charset=UTF-8","cache-control":"no-cache"},body:a})}catch{}}var wvo,Ivo,Dvo,KCt=G(()=>{"use strict";zCt();wvo={darwin:encodeURIComponent("Mac OS X"),win32:"Windows",linux:"Linux"},Ivo={darwin:"mac",win32:"win"},Dvo={darwin:"Macintosh",win32:"Windows",linux:"Linux"}});var $Pr,WPr=G(()=>{$Pr=typeof globalThis=="object"?globalThis:global});var zPr=G(()=>{WPr()});var KPr=G(()=>{zPr()});var rO,YCt=G(()=>{rO="1.9.0"});function Ovo(t){var e=new Set([t]),r=new Set,o=t.match(YPr);if(!o)return function(){return!1};var s={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};if(s.prerelease!=null)return function(c){return c===t};function a(n){return r.add(n),!1}function i(n){return e.add(n),!0}return function(c){if(e.has(c))return!0;if(r.has(c))return!1;var u=c.match(YPr);if(!u)return a(c);var f={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return f.prerelease!=null||s.major!==f.major?a(c):s.major===0?s.minor===f.minor&&s.patch<=f.patch?i(c):a(c):s.minor<=f.minor?i(c):a(c)}}var YPr,JPr,XPr=G(()=>{YCt();YPr=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;JPr=Ovo(rO)});function G5(t,e,r,o){var s;o===void 0&&(o=!1);var a=Y0e[K0e]=(s=Y0e[K0e])!==null&&s!==void 0?s:{version:rO};if(!o&&a[t]){var i=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(i.stack||i.message),!1}if(a.version!==rO){var i=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+rO);return r.error(i.stack||i.message),!1}return a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+rO+"."),!0}function FE(t){var e,r,o=(e=Y0e[K0e])===null||e===void 0?void 0:e.version;if(!(!o||!JPr(o)))return(r=Y0e[K0e])===null||r===void 0?void 0:r[t]}function j5(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+rO+".");var r=Y0e[K0e];r&&delete r[t]}var Rvo,K0e,Y0e,tV=G(()=>{KPr();YCt();XPr();Rvo=rO.split(".")[0],K0e=Symbol.for("opentelemetry.js.api."+Rvo),Y0e=$Pr});function J0e(t,e,r){var o=FE("diag");if(o)return r.unshift(e),o[t].apply(o,Pvo([],Nvo(r),!1))}var Nvo,Pvo,ZPr,ekr=G(()=>{tV();Nvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Pvo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},ZPr=(function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return J0e("verbose",this._namespace,e)},t})()});var Sm,C7e=G(()=>{(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(Sm||(Sm={}))});function tkr(t,e){t<Sm.NONE?t=Sm.NONE:t>Sm.ALL&&(t=Sm.ALL),e=e||{};function r(o,s){var a=e[o];return typeof a=="function"&&t>=s?a.bind(e):function(){}}return{error:r("error",Sm.ERROR),warn:r("warn",Sm.WARN),info:r("info",Sm.INFO),debug:r("debug",Sm.DEBUG),verbose:r("verbose",Sm.VERBOSE)}}var rkr=G(()=>{C7e()});var kvo,Bvo,Mvo,J1,rV=G(()=>{ekr();rkr();C7e();tV();kvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Bvo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},Mvo="diag",J1=(function(){function t(){function e(s){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var n=FE("diag");if(n)return n[s].apply(n,Bvo([],kvo(a),!1))}}var r=this,o=function(s,a){var i,n,c;if(a===void 0&&(a={logLevel:Sm.INFO}),s===r){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=u.stack)!==null&&i!==void 0?i:u.message),!1}typeof a=="number"&&(a={logLevel:a});var f=FE("diag"),d=tkr((n=a.logLevel)!==null&&n!==void 0?n:Sm.INFO,s);if(f&&!a.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";f.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return G5("diag",d,r,!0)};r.setLogger=o,r.disable=function(){j5(Mvo,r)},r.createComponentLogger=function(s){return new ZPr(s)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t})()});var Lvo,Uvo,nkr,ikr=G(()=>{Lvo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Uvo=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nkr=(function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=Lvo(e,2),o=r[0],s=r[1];return[o,s]})},t.prototype.setEntry=function(e,r){var o=new t(this._entries);return o._entries.set(e,r),o},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new t(this._entries);try{for(var i=Uvo(o),n=i.next();!n.done;n=i.next()){var c=n.value;a._entries.delete(c)}}catch(u){e={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return a},t.prototype.clear=function(){return new t},t})()});var okr,skr=G(()=>{okr=Symbol("BaggageEntryMetadata")});function akr(t){return t===void 0&&(t={}),new nkr(new Map(Object.entries(t)))}function ckr(t){return typeof t!="string"&&(Fvo.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:okr,toString:function(){return t}}}var Fvo,JCt=G(()=>{rV();ikr();skr();Fvo=J1.instance()});function Wee(t){return Symbol.for(t)}var Qvo,T7e,X0e=G(()=>{Qvo=(function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(o){return r._currentContext.get(o)},r.setValue=function(o,s){var a=new t(r._currentContext);return a._currentContext.set(o,s),a},r.deleteValue=function(o){var s=new t(r._currentContext);return s._currentContext.delete(o),s}}return t})(),T7e=new Qvo});var XCt,Z0e,lkr=G(()=>{XCt=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Z0e=(function(){function t(){function e(o){return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];if(console){var i=console[o];if(typeof i!="function"&&(i=console.log),typeof i=="function")return i.apply(console,s)}}}for(var r=0;r<XCt.length;r++)this[XCt[r].n]=e(XCt[r].c)}return t})()});function ukr(){return eTt}var nV,qvo,w7e,Hvo,Vvo,Gvo,jvo,ZCt,$vo,Wvo,zvo,eTt,Kvo,Yvo,Jvo,Xvo,Zvo,ebo,tbo,tTt=G(()=>{nV=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),qvo=(function(){function t(){}return t.prototype.createGauge=function(e,r){return Yvo},t.prototype.createHistogram=function(e,r){return Jvo},t.prototype.createCounter=function(e,r){return Kvo},t.prototype.createUpDownCounter=function(e,r){return Xvo},t.prototype.createObservableGauge=function(e,r){return ebo},t.prototype.createObservableCounter=function(e,r){return Zvo},t.prototype.createObservableUpDownCounter=function(e,r){return tbo},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t})(),w7e=(function(){function t(){}return t})(),Hvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(w7e),Vvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,o){},e})(w7e),Gvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(w7e),jvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,o){},e})(w7e),ZCt=(function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t})(),$vo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ZCt),Wvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ZCt),zvo=(function(t){nV(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ZCt),eTt=new qvo,Kvo=new Hvo,Yvo=new Gvo,Jvo=new jvo,Xvo=new Vvo,Zvo=new $vo,ebo=new Wvo,tbo=new zvo});var Cp,fkr=G(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(Cp||(Cp={}))});var I7e,D7e,rTt=G(()=>{I7e={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},D7e={set:function(t,e,r){t!=null&&(t[e]=r)}}});var rbo,nbo,dkr,pkr=G(()=>{X0e();rbo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},nbo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},dkr=(function(){function t(){}return t.prototype.active=function(){return T7e},t.prototype.with=function(e,r,o){for(var s=[],a=3;a<arguments.length;a++)s[a-3]=arguments[a];return r.call.apply(r,nbo([o],rbo(s),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t})()});var ibo,obo,nTt,sbo,pB,e2e=G(()=>{pkr();tV();rV();ibo=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(n){i={error:n}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},obo=function(t,e,r){if(r||arguments.length===2)for(var o=0,s=e.length,a;o<s;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},nTt="context",sbo=new dkr,pB=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return G5(nTt,e,J1.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,o){for(var s,a=[],i=3;i<arguments.length;i++)a[i-3]=arguments[i];return(s=this._getContextManager()).with.apply(s,obo([e,r,o],ibo(a),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return FE(nTt)||sbo},t.prototype.disable=function(){this._getContextManager().disable(),j5(nTt,J1.instance())},t})()});var zee,iTt=G(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(zee||(zee={}))});var t2e,r2e,O7e,R7e=G(()=>{iTt();t2e="0000000000000000",r2e="00000000000000000000000000000000",O7e={traceId:r2e,spanId:t2e,traceFlags:zee.NONE}});var hB,N7e=G(()=>{R7e();hB=(function(){function t(e){e===void 0&&(e=O7e),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t})()});function P7e(t){return t.getValue(oTt)||void 0}function hkr(){return P7e(pB.getInstance().active())}function n2e(t,e){return t.setValue(oTt,e)}function mkr(t){return t.deleteValue(oTt)}function gkr(t,e){return n2e(t,new hB(e))}function k7e(t){var e;return(e=P7e(t))===null||e===void 0?void 0:e.spanContext()}var oTt,sTt=G(()=>{X0e();N7e();e2e();oTt=Wee("OpenTelemetry Context Key SPAN")});function aTt(t){return abo.test(t)&&t!==r2e}function cTt(t){return cbo.test(t)&&t!==t2e}function Kee(t){return aTt(t.traceId)&&cTt(t.spanId)}function ykr(t){return new hB(t)}var abo,cbo,B7e=G(()=>{R7e();N7e();abo=/^([0-9a-f]{32})$/i,cbo=/^[0-9a-f]{16}$/i});function lbo(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var lTt,M7e,uTt=G(()=>{e2e();sTt();N7e();B7e();lTt=pB.getInstance(),M7e=(function(){function t(){}return t.prototype.startSpan=function(e,r,o){o===void 0&&(o=lTt.active());var s=!!r?.root;if(s)return new hB;var a=o&&k7e(o);return lbo(a)&&Kee(a)?new hB(a):new hB},t.prototype.startActiveSpan=function(e,r,o,s){var a,i,n;if(!(arguments.length<2)){arguments.length===2?n=r:arguments.length===3?(a=r,n=o):(a=r,i=o,n=s);var c=i??lTt.active(),u=this.startSpan(e,a,c),f=n2e(c,u);return lTt.with(f,n,void 0,u)}},t})()});var ubo,L7e,fTt=G(()=>{uTt();ubo=new M7e,L7e=(function(){function t(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}return t.prototype.startSpan=function(e,r,o){return this._getTracer().startSpan(e,r,o)},t.prototype.startActiveSpan=function(e,r,o,s){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ubo},t})()});var Akr,vkr=G(()=>{uTt();Akr=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){return new M7e},t})()});var fbo,i2e,dTt=G(()=>{fTt();vkr();fbo=new Akr,i2e=(function(){function t(){}return t.prototype.getTracer=function(e,r,o){var s;return(s=this.getDelegateTracer(e,r,o))!==null&&s!==void 0?s:new L7e(this,e,r,o)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:fbo},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getTracer(e,r,o)},t})()});var U7e,bkr=G(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(U7e||(U7e={}))});var F7e,Ekr=G(()=>{(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(F7e||(F7e={}))});var K_,Skr=G(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(K_||(K_={}))});function _kr(t){return hbo.test(t)}function xkr(t){return mbo.test(t)&&!gbo.test(t)}var pTt,dbo,pbo,hbo,mbo,gbo,Ckr=G(()=>{pTt="[_0-9a-z-*/]",dbo="[a-z]"+pTt+"{0,255}",pbo="[a-z0-9]"+pTt+"{0,240}@[a-z]"+pTt+"{0,13}",hbo=new RegExp("^(?:"+dbo+"|"+pbo+")$"),mbo=/^[ -~]{0,255}[!-~]$/,gbo=/,|=/});var Tkr,ybo,wkr,Ikr,Dkr,Okr=G(()=>{Ckr();Tkr=32,ybo=512,wkr=",",Ikr="=",Dkr=(function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,r){var o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o},t.prototype.unset=function(e){var r=this._clone();return r._internalState.delete(e),r},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(r,o){return r.push(o+Ikr+e.get(o)),r},[]).join(wkr)},t.prototype._parse=function(e){e.length>ybo||(this._internalState=e.split(wkr).reverse().reduce(function(r,o){var s=o.trim(),a=s.indexOf(Ikr);if(a!==-1){var i=s.slice(0,a),n=s.slice(a+1,o.length);_kr(i)&&xkr(n)&&r.set(i,n)}return r},new Map),this._internalState.size>Tkr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Tkr))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t})()});function Rkr(t){return new Dkr(t)}var Nkr=G(()=>{Okr()});var X1,Pkr=G(()=>{e2e();X1=pB.getInstance()});var Sr,kkr=G(()=>{rV();Sr=J1.instance()});var Abo,Bkr,Mkr=G(()=>{tTt();Abo=(function(){function t(){}return t.prototype.getMeter=function(e,r,o){return eTt},t})(),Bkr=new Abo});var hTt,Lkr,Ukr=G(()=>{Mkr();tV();rV();hTt="metrics",Lkr=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return G5(hTt,e,J1.instance())},t.prototype.getMeterProvider=function(){return FE(hTt)||Bkr},t.prototype.getMeter=function(e,r,o){return this.getMeterProvider().getMeter(e,r,o)},t.prototype.disable=function(){j5(hTt,J1.instance())},t})()});var o2e,Fkr=G(()=>{Ukr();o2e=Lkr.getInstance()});var Qkr,qkr=G(()=>{Qkr=(function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t})()});function gTt(t){return t.getValue(mTt)||void 0}function Hkr(){return gTt(pB.getInstance().active())}function Vkr(t,e){return t.setValue(mTt,e)}function Gkr(t){return t.deleteValue(mTt)}var mTt,jkr=G(()=>{e2e();X0e();mTt=Wee("OpenTelemetry Baggage Key")});var yTt,vbo,$kr,Wkr=G(()=>{tV();qkr();rTt();jkr();JCt();rV();yTt="propagation",vbo=new Qkr,$kr=(function(){function t(){this.createBaggage=akr,this.getBaggage=gTt,this.getActiveBaggage=Hkr,this.setBaggage=Vkr,this.deleteBaggage=Gkr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return G5(yTt,e,J1.instance())},t.prototype.inject=function(e,r,o){return o===void 0&&(o=D7e),this._getGlobalPropagator().inject(e,r,o)},t.prototype.extract=function(e,r,o){return o===void 0&&(o=I7e),this._getGlobalPropagator().extract(e,r,o)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){j5(yTt,J1.instance())},t.prototype._getGlobalPropagator=function(){return FE(yTt)||vbo},t})()});var ATt,zkr=G(()=>{Wkr();ATt=$kr.getInstance()});var vTt,Kkr,Ykr=G(()=>{tV();dTt();B7e();sTt();rV();vTt="trace",Kkr=(function(){function t(){this._proxyTracerProvider=new i2e,this.wrapSpanContext=ykr,this.isSpanContextValid=Kee,this.deleteSpan=mkr,this.getSpan=P7e,this.getActiveSpan=hkr,this.getSpanContext=k7e,this.setSpan=n2e,this.setSpanContext=gkr}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=G5(vTt,this._proxyTracerProvider,J1.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return FE(vTt)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){j5(vTt,J1.instance()),this._proxyTracerProvider=new i2e},t})()});var f3,Jkr=G(()=>{Ykr();f3=Kkr.getInstance()});var _t={};os(_t,{DiagConsoleLogger:()=>Z0e,DiagLogLevel:()=>Sm,INVALID_SPANID:()=>t2e,INVALID_SPAN_CONTEXT:()=>O7e,INVALID_TRACEID:()=>r2e,ProxyTracer:()=>L7e,ProxyTracerProvider:()=>i2e,ROOT_CONTEXT:()=>T7e,SamplingDecision:()=>U7e,SpanKind:()=>F7e,SpanStatusCode:()=>K_,TraceFlags:()=>zee,ValueType:()=>Cp,baggageEntryMetadataFromString:()=>ckr,context:()=>X1,createContextKey:()=>Wee,createNoopMeter:()=>ukr,createTraceState:()=>Rkr,default:()=>bbo,defaultTextMapGetter:()=>I7e,defaultTextMapSetter:()=>D7e,diag:()=>Sr,isSpanContextValid:()=>Kee,isValidSpanId:()=>cTt,isValidTraceId:()=>aTt,metrics:()=>o2e,propagation:()=>ATt,trace:()=>f3});var bbo,ut=G(()=>{JCt();X0e();lkr();C7e();tTt();fkr();rTt();fTt();dTt();bkr();Ekr();Skr();iTt();Nkr();B7e();R7e();Pkr();kkr();Fkr();zkr();Jkr();bbo={context:X1,diag:Sr,metrics:o2e,propagation:ATt,trace:f3}});var z2,Xkr,s2e,Zkr,a2e,c2e,eBr,tBr,rBr,nBr,iBr,oBr,sBr,aBr,cBr,lBr,uBr,fBr,dBr,pBr,hBr,mBr,gBr,yBr,ABr,vBr,l2e=G(()=>{"use strict";z2="iflow-cli",Xkr="iflow_cli.user_prompt",s2e="iflow_cli.tool_call",Zkr="iflow_cli.api_request",a2e="iflow_cli.api_error",c2e="iflow_cli.api_response",eBr="iflow_cli.config",tBr="iflow_cli.flash_fallback",rBr="iflow_cli.next_speaker_check",nBr="iflow_cli.slash_command",iBr="iflow_cli.tool.call.count",oBr="iflow_cli.tool.call.latency",sBr="iflow_cli.mcp.tool.call.count",aBr="iflow_cli.mcp.tool.call.latency",cBr="iflow_cli.builtin.tool.call.count",lBr="iflow_cli.builtin.tool.call.latency",uBr="gen_ai.client.operation",fBr="gen_ai.client.operation.duration",dBr="gen_ai.client.token.usage",pBr="iflow_cli.session.count",hBr="iflow_cli.file.operation.count",mBr="iflow_cli.user_request.count",gBr="iflow_cli.user_request.latency",yBr="iflow_cli.user_experience.success",ABr="iflow_cli.user.identity",vBr="iflow_cli.scheduler.lock.error"});var Yee,Jee,Xee,Zee,ete,tte,rte,nte,ite,ote,G4,j4,bBr=G(()=>{"use strict";Yee="iflow_cli.cpu.usage_percentage",Jee="iflow_cli.cpu.user_percentage",Xee="iflow_cli.cpu.system_percentage",Zee="iflow_cli.cpu.cores",ete="iflow_cli.memory.heap_used",tte="iflow_cli.memory.heap_total",rte="iflow_cli.memory.rss",nte="iflow_cli.memory.external",ite="iflow_cli.memory.system_usage_percentage",ote="iflow_cli.memory.process_usage_percentage",G4={[Yee]:"CPU usage percentage",[Jee]:"CPU user time percentage",[Xee]:"CPU system time percentage",[Zee]:"Number of CPU cores",[ete]:"Heap memory used in bytes",[tte]:"Heap memory total in bytes",[rte]:"Resident Set Size in bytes",[nte]:"External memory in bytes",[ite]:"System memory usage percentage",[ote]:"Process memory usage percentage relative to Node.js limits"},j4={[Yee]:"percent",[Jee]:"percent",[Xee]:"percent",[Zee]:"cores",[ete]:"bytes",[tte]:"bytes",[rte]:"bytes",[nte]:"bytes",[ite]:"percent",[ote]:"percent"}});import*as $4 from"os";var Q7e,EBr=G(()=>{"use strict";bBr();Q7e=class{meter;options;lastCpuMeasurement;lastMeasureTime;cpuCores;totalSystemMemory;nodeJSMemoryLimit;cpuUsageGauge;cpuUserGauge;cpuSystemGauge;cpuCoresGauge;memoryHeapUsedGauge;memoryHeapTotalGauge;memoryRssGauge;memoryExternalGauge;memorySystemUsageGauge;memoryProcessUsageGauge;constructor(e,r={}){this.meter=e,this.options={enableCpuMetrics:!0,enableMemoryMetrics:!0,enableSystemInfo:!0,...r},this.lastCpuMeasurement=process.cpuUsage(),this.lastMeasureTime=Date.now(),this.cpuCores=$4.cpus().length,this.totalSystemMemory=$4.totalmem(),this.nodeJSMemoryLimit=this.getNodeJSMemoryLimit(),this.initializeMetrics()}getCurrentCpuMetrics(){try{let e=process.cpuUsage(this.lastCpuMeasurement),r=Date.now(),o=r-this.lastMeasureTime;if(this.lastCpuMeasurement=process.cpuUsage(),this.lastMeasureTime=r,o<=0)return{usage:0,user:0,system:0,cores:this.cpuCores};let s=Math.max(0,e.user+e.system),a=Math.max(0,e.user),i=Math.max(0,e.system),n=s/(o*1e3)*100,c=a/(o*1e3)*100,u=i/(o*1e3)*100,f=Number.isFinite(n)?Math.min(100,Math.max(0,n)):0,d=Number.isFinite(c)?Math.min(100,Math.max(0,c)):0,p=Number.isFinite(u)?Math.min(100,Math.max(0,u)):0;return{usage:f,user:d,system:p,cores:this.cpuCores}}catch{return{usage:0,user:0,system:0,cores:this.cpuCores}}}getCurrentMemoryMetrics(){try{let e=process.memoryUsage(),r=$4.freemem(),s=(this.totalSystemMemory-r)/this.totalSystemMemory*100,a=e.rss/this.nodeJSMemoryLimit*100;return{heapUsed:e.heapUsed,heapTotal:e.heapTotal,rss:e.rss,external:e.external,systemUsage:Math.min(100,Math.max(0,s)),processUsage:Math.min(100,Math.max(0,a))}}catch{return{heapUsed:0,heapTotal:0,rss:0,external:0,systemUsage:0,processUsage:0}}}initializeMetrics(){let e=$4.platform(),r=$4.arch(),o=process.version;this.options.enableCpuMetrics&&(this.cpuUsageGauge=this.meter.createObservableGauge(Yee,{description:G4[Yee],unit:j4[Yee]}),this.cpuUserGauge=this.meter.createObservableGauge(Jee,{description:G4[Jee],unit:j4[Jee]}),this.cpuSystemGauge=this.meter.createObservableGauge(Xee,{description:G4[Xee],unit:j4[Xee]}),this.cpuCoresGauge=this.meter.createObservableGauge(Zee,{description:G4[Zee],unit:j4[Zee]}),this.cpuUsageGauge.addCallback(s=>{let a=this.getCurrentCpuMetrics();s.observe(a.usage,{platform:e,arch:r,node_version:o})}),this.cpuUserGauge.addCallback(s=>{let a=this.getCurrentCpuMetrics();s.observe(a.user,{platform:e,arch:r,node_version:o})}),this.cpuSystemGauge.addCallback(s=>{let a=this.getCurrentCpuMetrics();s.observe(a.system,{platform:e,arch:r,node_version:o})}),this.cpuCoresGauge?.addCallback(s=>{s.observe(this.cpuCores,{platform:e,arch:r})})),this.options.enableMemoryMetrics&&(this.memoryHeapUsedGauge=this.meter.createObservableGauge(ete,{description:G4[ete],unit:j4[ete]}),this.memoryHeapTotalGauge=this.meter.createObservableGauge(tte,{description:G4[tte],unit:j4[tte]}),this.memoryRssGauge=this.meter.createObservableGauge(rte,{description:G4[rte],unit:j4[rte]}),this.memoryExternalGauge=this.meter.createObservableGauge(nte,{description:G4[nte],unit:j4[nte]}),this.memorySystemUsageGauge=this.meter.createObservableGauge(ite,{description:G4[ite],unit:j4[ite]}),this.memoryProcessUsageGauge=this.meter.createObservableGauge(ote,{description:G4[ote],unit:j4[ote]}),this.memoryHeapUsedGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.heapUsed,{platform:e,arch:r,node_version:o})}),this.memoryHeapTotalGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.heapTotal,{platform:e,arch:r,node_version:o})}),this.memoryRssGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.rss,{platform:e,arch:r,node_version:o})}),this.memoryExternalGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.external,{platform:e,arch:r,node_version:o})}),this.memorySystemUsageGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.systemUsage,{platform:e,arch:r,node_version:o})}),this.memoryProcessUsageGauge.addCallback(s=>{let a=this.getCurrentMemoryMetrics();s.observe(a.processUsage,{platform:e,arch:r,node_version:o,memory_limit_mb:Math.round(this.nodeJSMemoryLimit/(1024*1024))})}))}getNodeJSMemoryLimit(){let e=process.execArgv.find(s=>s.startsWith("--max-old-space-size="))?.split("=")[1];if(e){let s=parseInt(e,10);if(!isNaN(s)&&s>0)return s*1024*1024}let r=process.execArgv.find(s=>s.startsWith("--max_old_space_size="))?.split("=")[1];if(r){let s=parseInt(r,10);if(!isNaN(s)&&s>0)return s*1024*1024}let o=$4.arch();return o==="x64"||o==="arm64"?1400*1024*1024:700*1024*1024}}});function SBr(t,e={}){if(q7e)return q7e;let r={enableCpuMetrics:!0,enableMemoryMetrics:!0,enableSystemInfo:!0,...e};return q7e=new Q7e(t,r),q7e}var q7e,_Br=G(()=>{"use strict";EBr();q7e=null});import*as ste from"os";import*as H7e from"fs";function K2(t){let e="0.3.16",r={darwin:"macOS",win32:"Windows",linux:"Linux",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",aix:"AIX"},o=ste.platform(),s=r[o]||o,a="unknown";try{if(o==="darwin")a=ste.release();else if(o==="linux")try{if(H7e.existsSync("/etc/os-release")){let d=H7e.readFileSync("/etc/os-release","utf8").match(/^PRETTY_NAME="(.+)"/m);d&&(a=d[1])}}catch{a=ste.release()}else o==="win32"&&(a=ste.release())}catch{a="unknown"}let i={name:"Node.js",version:process.version,architecture:process.arch},n=t.getModel()||"unknown",c=!1,u=t.getContentGeneratorConfig?.();if(u){let f=u.authType,d=u.baseUrl||"";(f===Er.LOGIN_WITH_IFLOW||f===Er.IFLOW||f===Er.OPENAI_COMPATIBLE&&d.includes("apis.iflow.cn"))&&(c=!0)}return{app_name:z2,tenant__:"gen_ai",version:e,platform:s,os_model:a,runtime_name:i.name,runtime_version:i.version,runtime_architecture:i.architecture,model_name:n,is_iflow_open_user:String(c)}}function xBr(){return bTt||(bTt=o2e.getMeter(z2)),bTt}function CBr(){if(Pv)return;let t=xBr();if(t){try{SBr(t,{enableCpuMetrics:!0,enableMemoryMetrics:!0,enableSystemInfo:!0})}catch{}ETt=t.createCounter(iBr,{description:"Counts tool calls, tagged by function name and success.",valueType:Cp.INT}),STt=t.createHistogram(oBr,{description:"Latency of tool calls in milliseconds.",unit:"ms",valueType:Cp.INT}),_Tt=t.createCounter(sBr,{description:"Counts MCP tool calls, tagged by function name and success.",valueType:Cp.INT}),xTt=t.createHistogram(aBr,{description:"Latency of MCP tool calls in milliseconds.",unit:"ms",valueType:Cp.INT}),CTt=t.createCounter(cBr,{description:"Counts built-in tool calls, tagged by function name and success.",valueType:Cp.INT}),TTt=t.createHistogram(lBr,{description:"Latency of built-in tool calls in milliseconds.",unit:"ms",valueType:Cp.INT}),u2e=t.createCounter(uBr,{description:"Counts API requests, tagged by model and status.",valueType:Cp.INT}),f2e=t.createHistogram(fBr,{description:"Latency of API requests in milliseconds.",unit:"ms",valueType:Cp.INT}),wTt=t.createCounter(dBr,{description:"Counts the total number of tokens used.",valueType:Cp.INT}),ITt=t.createCounter(hBr,{description:"Counts file operations (create, read, update).",valueType:Cp.INT}),DTt=t.createCounter(mBr,{description:"Counts user requests from prompt to completion.",valueType:Cp.INT}),OTt=t.createHistogram(gBr,{description:"End-to-end latency of user requests in milliseconds.",unit:"ms",valueType:Cp.INT}),RTt=t.createCounter(yBr,{description:"User experience success rate - counts successful user experiences including retries and fixes.",valueType:Cp.INT}),NTt=t.createCounter(ABr,{description:"User identity for tracking unique installations.",valueType:Cp.INT}),PTt=t.createCounter(vBr,{description:"Counts tool scheduler lock errors when new calls are blocked by running calls.",valueType:Cp.INT}),Pv=!0}}function V7e(t){let e=xBr();if(!e||!Pv)return;e.createCounter(pBr,{description:"Count of CLI sessions started.",valueType:Cp.INT}).add(1,K2(t))}function TBr(t,e,r,o,s,a){if(!ETt||!STt||!Pv)return;let i={...K2(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};ETt.add(1,i),STt.record(r,{...K2(t),function_name:e??"unknown",tool_type:a??"unknown"})}function wBr(t,e,r,o,s,a){if(!_Tt||!xTt||!Pv)return;let i={...K2(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};a&&(i.execution_context=a),_Tt.add(1,i),xTt.record(r,{...K2(t),function_name:e??"unknown",execution_context:a??"unknown"})}function IBr(t,e,r,o,s,a){if(!CTt||!TTt||!Pv)return;let i={...K2(t),function_name:e??"unknown",success:String(o),decision:s??"unknown"};a&&(i.execution_context=a),CTt.add(1,i),TTt.record(r,{...K2(t),function_name:e??"unknown",execution_context:a??"unknown"})}function ate(t,e,r,o){!wTt||!Pv||wTt.add(r,{...K2(t),model:e??"unknown",type:o??"unknown"})}function DBr(t,e,r,o,s,a,i,n){if(!u2e||!f2e||!Pv)return;let c={...K2(t),model:e??"unknown",status_code:String(o??(s?"error":"ok"))};i!==void 0&&(c.http_status_code=String(i)),n!==void 0&&(c.business_code=String(n)),a&&(c.finish_reason=a),u2e.add(1,c);let u={...K2(t),model:e??"unknown",http_status_code:String(i??200),finish_reason:a??"unknown"};n!=null&&(u.business_code=String(n)),f2e.record(r,u)}function OBr(t,e,r,o,s,a,i){if(!u2e||!f2e||!Pv)return;let n={...K2(t),model:e??"unknown",status_code:String(o??"error"),error:s??"unknown"};a!==void 0&&(n.http_status_code=String(a)),i!==void 0&&(n.business_code=String(i)),u2e.add(1,n);let c={...K2(t),model:e??"unknown",http_status_code:String(a??0),error:s??"unknown"};i!=null&&(c.business_code=String(i)),f2e.record(r,c)}function iV(t,e,r,o,s){if(!ITt||!Pv)return;let a={...K2(t),operation:e};r!==void 0&&(a.lines=String(r)),o!==void 0&&(a.mimetype=o),s!==void 0&&(a.extension=s),ITt.add(1,a)}function RBr(t,e,r,o,s){if(!DTt||!OTt||!Pv)return;let a={...K2(t),prompt_id:e,success:String(o)};s&&(a.error=s),DTt.add(1,a),OTt.record(r,a)}function kTt(t,e,r=!1,o=!1,s){if(!RTt||!Pv)return;let a={...K2(t),success:String(e),had_retries:String(r),had_fixes:String(o)};s&&(a.final_error=s),RTt.add(1,a)}function NBr(t,e){if(!NTt||!Pv)return;let r={...K2(t),user_id:e};NTt.add(1,r)}function PBr(t,e,r){if(!PTt||!Pv)return;let o={...K2(t),running_calls_count:String(e)};r.forEach((s,a)=>{o[`call_${a}_name`]=s.name,o[`call_${a}_status`]=s.status}),PTt.add(1,o)}var nO,bTt,ETt,STt,_Tt,xTt,CTt,TTt,u2e,f2e,wTt,ITt,DTt,OTt,RTt,NTt,PTt,Pv,W4=G(()=>{"use strict";ut();l2e();ME();_Br();(function(t){t.CREATE="create",t.READ="read",t.UPDATE="update"})(nO||(nO={}));Pv=!1});async function BTt(t,e,r){let o=q9e();try{let s=process.env.IFLOW_ENV||"",a=t.getCna();jPr({cna:a,userId:o,iFlowEnv:s})}catch(s){t.getDebugMode()&&console.error("Failed to send pv",s)}try{if(t.getDisableTelemetry())return;let s=t.getSessionId();NBr(t,o),await VH.startSession(s,o,e,r)}catch(s){t.getDebugMode()&&console.error("Failed to initialize CLI telemetry:",s)}}async function d2e(t){try{if(t.getDisableTelemetry())return;await VH.endSession()}catch(e){t.getDebugMode()&&console.error("Failed to cleanup CLI telemetry:",e)}}async function G7e(t,e){if(!t.getDisableTelemetry())try{await VH.recordError(e)}catch(r){t.getDebugMode()&&console.error("Failed to record CLI error in telemetry:",r.message)}}var MTt=G(()=>{"use strict";B9e();eCt();KCt();W4();});var kBr=E(p2e=>{"use strict";Object.defineProperty(p2e,"__esModule",{value:!0});p2e.SeverityNumber=void 0;var Ebo;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Ebo=p2e.SeverityNumber||(p2e.SeverityNumber={}))});var $7e=E(cte=>{"use strict";Object.defineProperty(cte,"__esModule",{value:!0});cte.NOOP_LOGGER=cte.NoopLogger=void 0;var j7e=class{emit(e){}};cte.NoopLogger=j7e;cte.NOOP_LOGGER=new j7e});var z7e=E(lte=>{"use strict";Object.defineProperty(lte,"__esModule",{value:!0});lte.NOOP_LOGGER_PROVIDER=lte.NoopLoggerProvider=void 0;var Sbo=$7e(),W7e=class{getLogger(e,r,o){return new Sbo.NoopLogger}};lte.NoopLoggerProvider=W7e;lte.NOOP_LOGGER_PROVIDER=new W7e});var UTt=E(K7e=>{"use strict";Object.defineProperty(K7e,"__esModule",{value:!0});K7e.ProxyLogger=void 0;var _bo=$7e(),LTt=class{constructor(e,r,o,s){this._provider=e,this.name=r,this.version=o,this.options=s}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):_bo.NOOP_LOGGER}};K7e.ProxyLogger=LTt});var QTt=E(Y7e=>{"use strict";Object.defineProperty(Y7e,"__esModule",{value:!0});Y7e.ProxyLoggerProvider=void 0;var xbo=z7e(),Cbo=UTt(),FTt=class{getLogger(e,r,o){var s;return(s=this._getDelegateLogger(e,r,o))!==null&&s!==void 0?s:new Cbo.ProxyLogger(this,e,r,o)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:xbo.NOOP_LOGGER_PROVIDER}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,r,o){var s;return(s=this._delegate)===null||s===void 0?void 0:s.getLogger(e,r,o)}};Y7e.ProxyLoggerProvider=FTt});var BBr=E(J7e=>{"use strict";Object.defineProperty(J7e,"__esModule",{value:!0});J7e._globalThis=void 0;J7e._globalThis=typeof globalThis=="object"?globalThis:global});var MBr=E(X7e=>{"use strict";Object.defineProperty(X7e,"__esModule",{value:!0});X7e._globalThis=void 0;var Tbo=BBr();Object.defineProperty(X7e,"_globalThis",{enumerable:!0,get:function(){return Tbo._globalThis}})});var LBr=E(Z7e=>{"use strict";Object.defineProperty(Z7e,"__esModule",{value:!0});Z7e._globalThis=void 0;var wbo=MBr();Object.defineProperty(Z7e,"_globalThis",{enumerable:!0,get:function(){return wbo._globalThis}})});var UBr=E($5=>{"use strict";Object.defineProperty($5,"__esModule",{value:!0});$5.API_BACKWARDS_COMPATIBILITY_VERSION=$5.makeGetter=$5._global=$5.GLOBAL_LOGS_API_KEY=void 0;var Ibo=LBr();$5.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");$5._global=Ibo._globalThis;function Dbo(t,e,r){return o=>o===t?e:r}$5.makeGetter=Dbo;$5.API_BACKWARDS_COMPATIBILITY_VERSION=1});var QBr=E(eOe=>{"use strict";Object.defineProperty(eOe,"__esModule",{value:!0});eOe.LogsAPI=void 0;var Y_=UBr(),Obo=z7e(),FBr=QTt(),qTt=class t{constructor(){this._proxyLoggerProvider=new FBr.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Y_._global[Y_.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Y_._global[Y_.GLOBAL_LOGS_API_KEY]=(0,Y_.makeGetter)(Y_.API_BACKWARDS_COMPATIBILITY_VERSION,e,Obo.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Y_._global[Y_.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Y_._global,Y_.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,o){return this.getLoggerProvider().getLogger(e,r,o)}disable(){delete Y_._global[Y_.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new FBr.ProxyLoggerProvider}};eOe.LogsAPI=qTt});var ute=E(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.logs=n0.ProxyLoggerProvider=n0.ProxyLogger=n0.NoopLoggerProvider=n0.NOOP_LOGGER_PROVIDER=n0.NoopLogger=n0.NOOP_LOGGER=n0.SeverityNumber=void 0;var Rbo=kBr();Object.defineProperty(n0,"SeverityNumber",{enumerable:!0,get:function(){return Rbo.SeverityNumber}});var qBr=$7e();Object.defineProperty(n0,"NOOP_LOGGER",{enumerable:!0,get:function(){return qBr.NOOP_LOGGER}});Object.defineProperty(n0,"NoopLogger",{enumerable:!0,get:function(){return qBr.NoopLogger}});var HBr=z7e();Object.defineProperty(n0,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return HBr.NOOP_LOGGER_PROVIDER}});Object.defineProperty(n0,"NoopLoggerProvider",{enumerable:!0,get:function(){return HBr.NoopLoggerProvider}});var Nbo=UTt();Object.defineProperty(n0,"ProxyLogger",{enumerable:!0,get:function(){return Nbo.ProxyLogger}});var Pbo=QTt();Object.defineProperty(n0,"ProxyLoggerProvider",{enumerable:!0,get:function(){return Pbo.ProxyLoggerProvider}});var kbo=QBr();n0.logs=kbo.LogsAPI.getInstance()});function Bh(t){let e={},r=t.length;for(let o=0;o<r;o++){let s=t[o];s&&(e[String(s).toUpperCase().replace(/[-.]/g,"_")]=s)}return e}var HTt=G(()=>{});var VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,_Mr,xMr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,kMr,BMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,_Lr,xLr,CLr,TLr,wLr,ILr,DLr,OLr,RLr,NLr,PLr,kLr,BLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr,Bbo,Mbo,Lbo,Ubo,Fbo,Qbo,qbo,Hbo,Vbo,Gbo,jbo,$bo,Wbo,zbo,Kbo,Ybo,Jbo,Xbo,Zbo,eEo,tEo,rEo,nEo,iEo,oEo,sEo,aEo,cEo,lEo,uEo,fEo,dEo,pEo,hEo,mEo,gEo,yEo,AEo,vEo,bEo,EEo,SEo,_Eo,xEo,CEo,TEo,wEo,IEo,DEo,OEo,REo,NEo,PEo,kEo,BEo,MEo,LEo,UEo,FEo,QEo,qEo,HEo,VEo,GEo,jEo,$Eo,WEo,zEo,KEo,YEo,JEo,XEo,ZEo,eSo,tSo,rSo,nSo,iSo,oSo,sSo,aSo,cSo,lSo,uSo,fSo,dSo,pSo,hSo,mSo,gSo,ySo,ASo,vSo,bSo,ESo,SSo,_So,xSo,CSo,TSo,wSo,ISo,DSo,OSo,RSo,NSo,PSo,kSo,BSo,MSo,LSo,USo,FSo,QSo,qSo,HSo,VSo,GSo,jSo,$So,WSo,zSo,KSo,YSo,JSo,XSo,ZSo,e_o,fte,lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr,_Ur,xUr,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,kUr,BUr,MUr,LUr,UUr,FUr,QUr,qUr,HUr,VUr,GUr,jUr,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,ZUr,eFr,tFr,t_o,r_o,n_o,i_o,o_o,s_o,a_o,c_o,l_o,u_o,f_o,d_o,p_o,h_o,m_o,g_o,y_o,A_o,v_o,b_o,E_o,S_o,__o,x_o,C_o,T_o,w_o,I_o,D_o,O_o,R_o,N_o,P_o,k_o,B_o,M_o,L_o,U_o,F_o,Q_o,q_o,H_o,V_o,G_o,j_o,$_o,W_o,z_o,rFr,nFr,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr,K_o,Y_o,J_o,X_o,Z_o,exo,txo,rxo,nxo,ixo,oxo,sxo,pFr,hFr,mFr,gFr,yFr,axo,cxo,lxo,uxo,fxo,dxo,AFr,vFr,bFr,pxo,hxo,mxo,gxo,EFr,SFr,_Fr,xFr,yxo,Axo,vxo,bxo,Exo,CFr,TFr,wFr,IFr,DFr,OFr,RFr,Sxo,_xo,xxo,Cxo,Txo,wxo,Ixo,Dxo,NFr,PFr,kFr,BFr,MFr,Oxo,Rxo,Nxo,Pxo,kxo,Bxo,LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,JFr,XFr,ZFr,eQr,tQr,rQr,nQr,Mxo,Lxo,Uxo,Fxo,Qxo,qxo,Hxo,Vxo,Gxo,jxo,$xo,Wxo,zxo,Kxo,Yxo,Jxo,Xxo,Zxo,eCo,tCo,rCo,nCo,iQr,oQr,sQr,aQr,cQr,iCo,oCo,sCo,aCo,cCo,lCo,lQr,uQr,uCo,fCo,dCo,fQr,dQr,pCo,hCo,mCo,pQr,hQr,mQr,gQr,yQr,AQr,vQr,bQr,EQr,SQr,_Qr,xQr,CQr,TQr,wQr,IQr,DQr,gCo,yCo,ACo,vCo,bCo,ECo,SCo,_Co,xCo,CCo,TCo,wCo,ICo,DCo,OCo,RCo,NCo,PCo,OQr,RQr,kCo,BCo,MCo,NQr=G(()=>{HTt();VBr="aws.lambda.invoked_arn",GBr="db.system",jBr="db.connection_string",$Br="db.user",WBr="db.jdbc.driver_classname",zBr="db.name",KBr="db.statement",YBr="db.operation",JBr="db.mssql.instance_name",XBr="db.cassandra.keyspace",ZBr="db.cassandra.page_size",eMr="db.cassandra.consistency_level",tMr="db.cassandra.table",rMr="db.cassandra.idempotence",nMr="db.cassandra.speculative_execution_count",iMr="db.cassandra.coordinator.id",oMr="db.cassandra.coordinator.dc",sMr="db.hbase.namespace",aMr="db.redis.database_index",cMr="db.mongodb.collection",lMr="db.sql.table",uMr="exception.type",fMr="exception.message",dMr="exception.stacktrace",pMr="exception.escaped",hMr="faas.trigger",mMr="faas.execution",gMr="faas.document.collection",yMr="faas.document.operation",AMr="faas.document.time",vMr="faas.document.name",bMr="faas.time",EMr="faas.cron",SMr="faas.coldstart",_Mr="faas.invoked_name",xMr="faas.invoked_provider",CMr="faas.invoked_region",TMr="net.transport",wMr="net.peer.ip",IMr="net.peer.port",DMr="net.peer.name",OMr="net.host.ip",RMr="net.host.port",NMr="net.host.name",PMr="net.host.connection.type",kMr="net.host.connection.subtype",BMr="net.host.carrier.name",MMr="net.host.carrier.mcc",LMr="net.host.carrier.mnc",UMr="net.host.carrier.icc",FMr="peer.service",QMr="enduser.id",qMr="enduser.role",HMr="enduser.scope",VMr="thread.id",GMr="thread.name",jMr="code.function",$Mr="code.namespace",WMr="code.filepath",zMr="code.lineno",KMr="http.method",YMr="http.url",JMr="http.target",XMr="http.host",ZMr="http.scheme",eLr="http.status_code",tLr="http.flavor",rLr="http.user_agent",nLr="http.request_content_length",iLr="http.request_content_length_uncompressed",oLr="http.response_content_length",sLr="http.response_content_length_uncompressed",aLr="http.server_name",cLr="http.route",lLr="http.client_ip",uLr="aws.dynamodb.table_names",fLr="aws.dynamodb.consumed_capacity",dLr="aws.dynamodb.item_collection_metrics",pLr="aws.dynamodb.provisioned_read_capacity",hLr="aws.dynamodb.provisioned_write_capacity",mLr="aws.dynamodb.consistent_read",gLr="aws.dynamodb.projection",yLr="aws.dynamodb.limit",ALr="aws.dynamodb.attributes_to_get",vLr="aws.dynamodb.index_name",bLr="aws.dynamodb.select",ELr="aws.dynamodb.global_secondary_indexes",SLr="aws.dynamodb.local_secondary_indexes",_Lr="aws.dynamodb.exclusive_start_table",xLr="aws.dynamodb.table_count",CLr="aws.dynamodb.scan_forward",TLr="aws.dynamodb.segment",wLr="aws.dynamodb.total_segments",ILr="aws.dynamodb.count",DLr="aws.dynamodb.scanned_count",OLr="aws.dynamodb.attribute_definitions",RLr="aws.dynamodb.global_secondary_index_updates",NLr="messaging.system",PLr="messaging.destination",kLr="messaging.destination_kind",BLr="messaging.temp_destination",MLr="messaging.protocol",LLr="messaging.protocol_version",ULr="messaging.url",FLr="messaging.message_id",QLr="messaging.conversation_id",qLr="messaging.message_payload_size_bytes",HLr="messaging.message_payload_compressed_size_bytes",VLr="messaging.operation",GLr="messaging.consumer_id",jLr="messaging.rabbitmq.routing_key",$Lr="messaging.kafka.message_key",WLr="messaging.kafka.consumer_group",zLr="messaging.kafka.client_id",KLr="messaging.kafka.partition",YLr="messaging.kafka.tombstone",JLr="rpc.system",XLr="rpc.service",ZLr="rpc.method",eUr="rpc.grpc.status_code",tUr="rpc.jsonrpc.version",rUr="rpc.jsonrpc.request_id",nUr="rpc.jsonrpc.error_code",iUr="rpc.jsonrpc.error_message",oUr="message.type",sUr="message.id",aUr="message.compressed_size",cUr="message.uncompressed_size",Bbo=VBr,Mbo=GBr,Lbo=jBr,Ubo=$Br,Fbo=WBr,Qbo=zBr,qbo=KBr,Hbo=YBr,Vbo=JBr,Gbo=XBr,jbo=ZBr,$bo=eMr,Wbo=tMr,zbo=rMr,Kbo=nMr,Ybo=iMr,Jbo=oMr,Xbo=sMr,Zbo=aMr,eEo=cMr,tEo=lMr,rEo=uMr,nEo=fMr,iEo=dMr,oEo=pMr,sEo=hMr,aEo=mMr,cEo=gMr,lEo=yMr,uEo=AMr,fEo=vMr,dEo=bMr,pEo=EMr,hEo=SMr,mEo=_Mr,gEo=xMr,yEo=CMr,AEo=TMr,vEo=wMr,bEo=IMr,EEo=DMr,SEo=OMr,_Eo=RMr,xEo=NMr,CEo=PMr,TEo=kMr,wEo=BMr,IEo=MMr,DEo=LMr,OEo=UMr,REo=FMr,NEo=QMr,PEo=qMr,kEo=HMr,BEo=VMr,MEo=GMr,LEo=jMr,UEo=$Mr,FEo=WMr,QEo=zMr,qEo=KMr,HEo=YMr,VEo=JMr,GEo=XMr,jEo=ZMr,$Eo=eLr,WEo=tLr,zEo=rLr,KEo=nLr,YEo=iLr,JEo=oLr,XEo=sLr,ZEo=aLr,eSo=cLr,tSo=lLr,rSo=uLr,nSo=fLr,iSo=dLr,oSo=pLr,sSo=hLr,aSo=mLr,cSo=gLr,lSo=yLr,uSo=ALr,fSo=vLr,dSo=bLr,pSo=ELr,hSo=SLr,mSo=_Lr,gSo=xLr,ySo=CLr,ASo=TLr,vSo=wLr,bSo=ILr,ESo=DLr,SSo=OLr,_So=RLr,xSo=NLr,CSo=PLr,TSo=kLr,wSo=BLr,ISo=MLr,DSo=LLr,OSo=ULr,RSo=FLr,NSo=QLr,PSo=qLr,kSo=HLr,BSo=VLr,MSo=GLr,LSo=jLr,USo=$Lr,FSo=WLr,QSo=zLr,qSo=KLr,HSo=YLr,VSo=JLr,GSo=XLr,jSo=ZLr,$So=eUr,WSo=tUr,zSo=rUr,KSo=nUr,YSo=iUr,JSo=oUr,XSo=sUr,ZSo=aUr,e_o=cUr,fte=Bh([VBr,GBr,jBr,$Br,WBr,zBr,KBr,YBr,JBr,XBr,ZBr,eMr,tMr,rMr,nMr,iMr,oMr,sMr,aMr,cMr,lMr,uMr,fMr,dMr,pMr,hMr,mMr,gMr,yMr,AMr,vMr,bMr,EMr,SMr,_Mr,xMr,CMr,TMr,wMr,IMr,DMr,OMr,RMr,NMr,PMr,kMr,BMr,MMr,LMr,UMr,FMr,QMr,qMr,HMr,VMr,GMr,jMr,$Mr,WMr,zMr,KMr,YMr,JMr,XMr,ZMr,eLr,tLr,rLr,nLr,iLr,oLr,sLr,aLr,cLr,lLr,uLr,fLr,dLr,pLr,hLr,mLr,gLr,yLr,ALr,vLr,bLr,ELr,SLr,_Lr,xLr,CLr,TLr,wLr,ILr,DLr,OLr,RLr,NLr,PLr,kLr,BLr,MLr,LLr,ULr,FLr,QLr,qLr,HLr,VLr,GLr,jLr,$Lr,WLr,zLr,KLr,YLr,JLr,XLr,ZLr,eUr,tUr,rUr,nUr,iUr,oUr,sUr,aUr,cUr]),lUr="other_sql",uUr="mssql",fUr="mysql",dUr="oracle",pUr="db2",hUr="postgresql",mUr="redshift",gUr="hive",yUr="cloudscape",AUr="hsqldb",vUr="progress",bUr="maxdb",EUr="hanadb",SUr="ingres",_Ur="firstsql",xUr="edb",CUr="cache",TUr="adabas",wUr="firebird",IUr="derby",DUr="filemaker",OUr="informix",RUr="instantdb",NUr="interbase",PUr="mariadb",kUr="netezza",BUr="pervasive",MUr="pointbase",LUr="sqlite",UUr="sybase",FUr="teradata",QUr="vertica",qUr="h2",HUr="coldfusion",VUr="cassandra",GUr="hbase",jUr="mongodb",$Ur="redis",WUr="couchbase",zUr="couchdb",KUr="cosmosdb",YUr="dynamodb",JUr="neo4j",XUr="geode",ZUr="elasticsearch",eFr="memcached",tFr="cockroachdb",t_o=lUr,r_o=uUr,n_o=fUr,i_o=dUr,o_o=pUr,s_o=hUr,a_o=mUr,c_o=gUr,l_o=yUr,u_o=AUr,f_o=vUr,d_o=bUr,p_o=EUr,h_o=SUr,m_o=_Ur,g_o=xUr,y_o=CUr,A_o=TUr,v_o=wUr,b_o=IUr,E_o=DUr,S_o=OUr,__o=RUr,x_o=NUr,C_o=PUr,T_o=kUr,w_o=BUr,I_o=MUr,D_o=LUr,O_o=UUr,R_o=FUr,N_o=QUr,P_o=qUr,k_o=HUr,B_o=VUr,M_o=GUr,L_o=jUr,U_o=$Ur,F_o=WUr,Q_o=zUr,q_o=KUr,H_o=YUr,V_o=JUr,G_o=XUr,j_o=ZUr,$_o=eFr,W_o=tFr,z_o=Bh([lUr,uUr,fUr,dUr,pUr,hUr,mUr,gUr,yUr,AUr,vUr,bUr,EUr,SUr,_Ur,xUr,CUr,TUr,wUr,IUr,DUr,OUr,RUr,NUr,PUr,kUr,BUr,MUr,LUr,UUr,FUr,QUr,qUr,HUr,VUr,GUr,jUr,$Ur,WUr,zUr,KUr,YUr,JUr,XUr,ZUr,eFr,tFr]),rFr="all",nFr="each_quorum",iFr="quorum",oFr="local_quorum",sFr="one",aFr="two",cFr="three",lFr="local_one",uFr="any",fFr="serial",dFr="local_serial",K_o=rFr,Y_o=nFr,J_o=iFr,X_o=oFr,Z_o=sFr,exo=aFr,txo=cFr,rxo=lFr,nxo=uFr,ixo=fFr,oxo=dFr,sxo=Bh([rFr,nFr,iFr,oFr,sFr,aFr,cFr,lFr,uFr,fFr,dFr]),pFr="datasource",hFr="http",mFr="pubsub",gFr="timer",yFr="other",axo=pFr,cxo=hFr,lxo=mFr,uxo=gFr,fxo=yFr,dxo=Bh([pFr,hFr,mFr,gFr,yFr]),AFr="insert",vFr="edit",bFr="delete",pxo=AFr,hxo=vFr,mxo=bFr,gxo=Bh([AFr,vFr,bFr]),EFr="alibaba_cloud",SFr="aws",_Fr="azure",xFr="gcp",yxo=EFr,Axo=SFr,vxo=_Fr,bxo=xFr,Exo=Bh([EFr,SFr,_Fr,xFr]),CFr="ip_tcp",TFr="ip_udp",wFr="ip",IFr="unix",DFr="pipe",OFr="inproc",RFr="other",Sxo=CFr,_xo=TFr,xxo=wFr,Cxo=IFr,Txo=DFr,wxo=OFr,Ixo=RFr,Dxo=Bh([CFr,TFr,wFr,IFr,DFr,OFr,RFr]),NFr="wifi",PFr="wired",kFr="cell",BFr="unavailable",MFr="unknown",Oxo=NFr,Rxo=PFr,Nxo=kFr,Pxo=BFr,kxo=MFr,Bxo=Bh([NFr,PFr,kFr,BFr,MFr]),LFr="gprs",UFr="edge",FFr="umts",QFr="cdma",qFr="evdo_0",HFr="evdo_a",VFr="cdma2000_1xrtt",GFr="hsdpa",jFr="hsupa",$Fr="hspa",WFr="iden",zFr="evdo_b",KFr="lte",YFr="ehrpd",JFr="hspap",XFr="gsm",ZFr="td_scdma",eQr="iwlan",tQr="nr",rQr="nrnsa",nQr="lte_ca",Mxo=LFr,Lxo=UFr,Uxo=FFr,Fxo=QFr,Qxo=qFr,qxo=HFr,Hxo=VFr,Vxo=GFr,Gxo=jFr,jxo=$Fr,$xo=WFr,Wxo=zFr,zxo=KFr,Kxo=YFr,Yxo=JFr,Jxo=XFr,Xxo=ZFr,Zxo=eQr,eCo=tQr,tCo=rQr,rCo=nQr,nCo=Bh([LFr,UFr,FFr,QFr,qFr,HFr,VFr,GFr,jFr,$Fr,WFr,zFr,KFr,YFr,JFr,XFr,ZFr,eQr,tQr,rQr,nQr]),iQr="1.0",oQr="1.1",sQr="2.0",aQr="SPDY",cQr="QUIC",iCo=iQr,oCo=oQr,sCo=sQr,aCo=aQr,cCo=cQr,lCo={HTTP_1_0:iQr,HTTP_1_1:oQr,HTTP_2_0:sQr,SPDY:aQr,QUIC:cQr},lQr="queue",uQr="topic",uCo=lQr,fCo=uQr,dCo=Bh([lQr,uQr]),fQr="receive",dQr="process",pCo=fQr,hCo=dQr,mCo=Bh([fQr,dQr]),pQr=0,hQr=1,mQr=2,gQr=3,yQr=4,AQr=5,vQr=6,bQr=7,EQr=8,SQr=9,_Qr=10,xQr=11,CQr=12,TQr=13,wQr=14,IQr=15,DQr=16,gCo=pQr,yCo=hQr,ACo=mQr,vCo=gQr,bCo=yQr,ECo=AQr,SCo=vQr,_Co=bQr,xCo=EQr,CCo=SQr,TCo=_Qr,wCo=xQr,ICo=CQr,DCo=TQr,OCo=wQr,RCo=IQr,NCo=DQr,PCo={OK:pQr,CANCELLED:hQr,UNKNOWN:mQr,INVALID_ARGUMENT:gQr,DEADLINE_EXCEEDED:yQr,NOT_FOUND:AQr,ALREADY_EXISTS:vQr,PERMISSION_DENIED:bQr,RESOURCE_EXHAUSTED:EQr,FAILED_PRECONDITION:SQr,ABORTED:_Qr,OUT_OF_RANGE:xQr,UNIMPLEMENTED:CQr,INTERNAL:TQr,UNAVAILABLE:wQr,DATA_LOSS:IQr,UNAUTHENTICATED:DQr},OQr="SENT",RQr="RECEIVED",kCo=OQr,BCo=RQr,MCo=Bh([OQr,RQr])});var PQr=G(()=>{NQr()});var kQr,BQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,_qr,xqr,Cqr,Tqr,wqr,Iqr,Dqr,Oqr,Rqr,Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,Kqr,Yqr,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,iHr,oHr,sHr,LCo,UCo,FCo,QCo,qCo,HCo,VCo,GCo,jCo,$Co,WCo,zCo,KCo,YCo,JCo,XCo,ZCo,eTo,tTo,rTo,nTo,iTo,oTo,sTo,aTo,cTo,lTo,uTo,fTo,dTo,pTo,hTo,mTo,gTo,yTo,ATo,vTo,bTo,ETo,STo,_To,xTo,CTo,TTo,wTo,ITo,DTo,OTo,RTo,NTo,PTo,kTo,BTo,MTo,LTo,UTo,FTo,QTo,qTo,HTo,VTo,GTo,jTo,$To,WTo,zTo,KTo,YTo,JTo,XTo,ZTo,e4o,t4o,r4o,n4o,i4o,o4o,s4o,a4o,c4o,l4o,u4o,aHr,cHr,lHr,uHr,f4o,d4o,p4o,h4o,m4o,fHr,dHr,pHr,hHr,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,_Hr,xHr,CHr,THr,wHr,g4o,y4o,A4o,v4o,b4o,E4o,S4o,_4o,x4o,C4o,T4o,w4o,I4o,D4o,O4o,R4o,N4o,P4o,IHr,DHr,k4o,B4o,M4o,OHr,RHr,NHr,PHr,kHr,BHr,MHr,L4o,U4o,F4o,Q4o,q4o,H4o,V4o,G4o,LHr,UHr,FHr,QHr,qHr,HHr,VHr,GHr,jHr,$Hr,WHr,j4o,$4o,W4o,z4o,K4o,Y4o,J4o,X4o,Z4o,e6o,t6o,r6o,zHr,KHr,YHr,JHr,XHr,ZHr,eVr,tVr,rVr,nVr,n6o,i6o,o6o,s6o,a6o,c6o,l6o,u6o,f6o,d6o,p6o,iVr=G(()=>{HTt();kQr="cloud.provider",BQr="cloud.account.id",MQr="cloud.region",LQr="cloud.availability_zone",UQr="cloud.platform",FQr="aws.ecs.container.arn",QQr="aws.ecs.cluster.arn",qQr="aws.ecs.launchtype",HQr="aws.ecs.task.arn",VQr="aws.ecs.task.family",GQr="aws.ecs.task.revision",jQr="aws.eks.cluster.arn",$Qr="aws.log.group.names",WQr="aws.log.group.arns",zQr="aws.log.stream.names",KQr="aws.log.stream.arns",YQr="container.name",JQr="container.id",XQr="container.runtime",ZQr="container.image.name",eqr="container.image.tag",tqr="deployment.environment",rqr="device.id",nqr="device.model.identifier",iqr="device.model.name",oqr="faas.name",sqr="faas.id",aqr="faas.version",cqr="faas.instance",lqr="faas.max_memory",uqr="host.id",fqr="host.name",dqr="host.type",pqr="host.arch",hqr="host.image.name",mqr="host.image.id",gqr="host.image.version",yqr="k8s.cluster.name",Aqr="k8s.node.name",vqr="k8s.node.uid",bqr="k8s.namespace.name",Eqr="k8s.pod.uid",Sqr="k8s.pod.name",_qr="k8s.container.name",xqr="k8s.replicaset.uid",Cqr="k8s.replicaset.name",Tqr="k8s.deployment.uid",wqr="k8s.deployment.name",Iqr="k8s.statefulset.uid",Dqr="k8s.statefulset.name",Oqr="k8s.daemonset.uid",Rqr="k8s.daemonset.name",Nqr="k8s.job.uid",Pqr="k8s.job.name",kqr="k8s.cronjob.uid",Bqr="k8s.cronjob.name",Mqr="os.type",Lqr="os.description",Uqr="os.name",Fqr="os.version",Qqr="process.pid",qqr="process.executable.name",Hqr="process.executable.path",Vqr="process.command",Gqr="process.command_line",jqr="process.command_args",$qr="process.owner",Wqr="process.runtime.name",zqr="process.runtime.version",Kqr="process.runtime.description",Yqr="service.name",Jqr="service.namespace",Xqr="service.instance.id",Zqr="service.version",eHr="telemetry.sdk.name",tHr="telemetry.sdk.language",rHr="telemetry.sdk.version",nHr="telemetry.auto.version",iHr="webengine.name",oHr="webengine.version",sHr="webengine.description",LCo=kQr,UCo=BQr,FCo=MQr,QCo=LQr,qCo=UQr,HCo=FQr,VCo=QQr,GCo=qQr,jCo=HQr,$Co=VQr,WCo=GQr,zCo=jQr,KCo=$Qr,YCo=WQr,JCo=zQr,XCo=KQr,ZCo=YQr,eTo=JQr,tTo=XQr,rTo=ZQr,nTo=eqr,iTo=tqr,oTo=rqr,sTo=nqr,aTo=iqr,cTo=oqr,lTo=sqr,uTo=aqr,fTo=cqr,dTo=lqr,pTo=uqr,hTo=fqr,mTo=dqr,gTo=pqr,yTo=hqr,ATo=mqr,vTo=gqr,bTo=yqr,ETo=Aqr,STo=vqr,_To=bqr,xTo=Eqr,CTo=Sqr,TTo=_qr,wTo=xqr,ITo=Cqr,DTo=Tqr,OTo=wqr,RTo=Iqr,NTo=Dqr,PTo=Oqr,kTo=Rqr,BTo=Nqr,MTo=Pqr,LTo=kqr,UTo=Bqr,FTo=Mqr,QTo=Lqr,qTo=Uqr,HTo=Fqr,VTo=Qqr,GTo=qqr,jTo=Hqr,$To=Vqr,WTo=Gqr,zTo=jqr,KTo=$qr,YTo=Wqr,JTo=zqr,XTo=Kqr,ZTo=Yqr,e4o=Jqr,t4o=Xqr,r4o=Zqr,n4o=eHr,i4o=tHr,o4o=rHr,s4o=nHr,a4o=iHr,c4o=oHr,l4o=sHr,u4o=Bh([kQr,BQr,MQr,LQr,UQr,FQr,QQr,qQr,HQr,VQr,GQr,jQr,$Qr,WQr,zQr,KQr,YQr,JQr,XQr,ZQr,eqr,tqr,rqr,nqr,iqr,oqr,sqr,aqr,cqr,lqr,uqr,fqr,dqr,pqr,hqr,mqr,gqr,yqr,Aqr,vqr,bqr,Eqr,Sqr,_qr,xqr,Cqr,Tqr,wqr,Iqr,Dqr,Oqr,Rqr,Nqr,Pqr,kqr,Bqr,Mqr,Lqr,Uqr,Fqr,Qqr,qqr,Hqr,Vqr,Gqr,jqr,$qr,Wqr,zqr,Kqr,Yqr,Jqr,Xqr,Zqr,eHr,tHr,rHr,nHr,iHr,oHr,sHr]),aHr="alibaba_cloud",cHr="aws",lHr="azure",uHr="gcp",f4o=aHr,d4o=cHr,p4o=lHr,h4o=uHr,m4o=Bh([aHr,cHr,lHr,uHr]),fHr="alibaba_cloud_ecs",dHr="alibaba_cloud_fc",pHr="aws_ec2",hHr="aws_ecs",mHr="aws_eks",gHr="aws_lambda",yHr="aws_elastic_beanstalk",AHr="azure_vm",vHr="azure_container_instances",bHr="azure_aks",EHr="azure_functions",SHr="azure_app_service",_Hr="gcp_compute_engine",xHr="gcp_cloud_run",CHr="gcp_kubernetes_engine",THr="gcp_cloud_functions",wHr="gcp_app_engine",g4o=fHr,y4o=dHr,A4o=pHr,v4o=hHr,b4o=mHr,E4o=gHr,S4o=yHr,_4o=AHr,x4o=vHr,C4o=bHr,T4o=EHr,w4o=SHr,I4o=_Hr,D4o=xHr,O4o=CHr,R4o=THr,N4o=wHr,P4o=Bh([fHr,dHr,pHr,hHr,mHr,gHr,yHr,AHr,vHr,bHr,EHr,SHr,_Hr,xHr,CHr,THr,wHr]),IHr="ec2",DHr="fargate",k4o=IHr,B4o=DHr,M4o=Bh([IHr,DHr]),OHr="amd64",RHr="arm32",NHr="arm64",PHr="ia64",kHr="ppc32",BHr="ppc64",MHr="x86",L4o=OHr,U4o=RHr,F4o=NHr,Q4o=PHr,q4o=kHr,H4o=BHr,V4o=MHr,G4o=Bh([OHr,RHr,NHr,PHr,kHr,BHr,MHr]),LHr="windows",UHr="linux",FHr="darwin",QHr="freebsd",qHr="netbsd",HHr="openbsd",VHr="dragonflybsd",GHr="hpux",jHr="aix",$Hr="solaris",WHr="z_os",j4o=LHr,$4o=UHr,W4o=FHr,z4o=QHr,K4o=qHr,Y4o=HHr,J4o=VHr,X4o=GHr,Z4o=jHr,e6o=$Hr,t6o=WHr,r6o=Bh([LHr,UHr,FHr,QHr,qHr,HHr,VHr,GHr,jHr,$Hr,WHr]),zHr="cpp",KHr="dotnet",YHr="erlang",JHr="go",XHr="java",ZHr="nodejs",eVr="php",tVr="python",rVr="ruby",nVr="webjs",n6o=zHr,i6o=KHr,o6o=YHr,s6o=JHr,a6o=XHr,c6o=ZHr,l6o=eVr,u6o=tVr,f6o=rVr,d6o=nVr,p6o=Bh([zHr,KHr,YHr,JHr,XHr,ZHr,eVr,tVr,rVr,nVr])});var oVr=G(()=>{iVr()});var h6o,m6o,g6o,y6o,A6o,v6o,b6o,E6o,S6o,_6o,x6o,C6o,T6o,w6o,I6o,D6o,O6o,R6o,N6o,P6o,k6o,B6o,M6o,L6o,U6o,F6o,Q6o,q6o,H6o,V6o,G6o,j6o,$6o,W6o,z6o,K6o,Y6o,J6o,X6o,Z6o,ewo,two,QQc,qQc,rwo,nwo,iwo,owo,swo,awo,cwo,lwo,uwo,fwo,dwo,HQc,pwo,hwo,mwo,gwo,VQc,ywo,Awo,vwo,bwo,Ewo,Swo,_wo,xwo,Cwo,Two,wwo,Iwo,Dwo,Owo,Rwo,GQc,Nwo,Pwo,kwo,Bwo,Mwo,Lwo,Uwo,Fwo,Qwo,qwo,Hwo,Vwo,Gwo,jQc,$Qc,jwo,$wo,Wwo,zwo,Kwo,Ywo,Jwo,Xwo,WQc,Zwo,e5o,t5o,VTt,GTt,r5o,n5o,i5o,o5o,s5o,a5o,c5o,l5o,u5o,zQc,f5o,d5o,KQc,p5o,h5o,YQc,m5o,g5o,y5o,A5o,v5o,b5o,E5o,S5o,_5o,x5o,C5o,T5o,w5o,sVr=G(()=>{h6o="aspnetcore.diagnostics.exception.result",m6o="aborted",g6o="handled",y6o="skipped",A6o="unhandled",v6o="aspnetcore.diagnostics.handler.type",b6o="aspnetcore.rate_limiting.policy",E6o="aspnetcore.rate_limiting.result",S6o="acquired",_6o="endpoint_limiter",x6o="global_limiter",C6o="request_canceled",T6o="aspnetcore.request.is_unhandled",w6o="aspnetcore.routing.is_fallback",I6o="aspnetcore.routing.match_status",D6o="failure",O6o="success",R6o="aspnetcore.user.is_authenticated",N6o="client.address",P6o="client.port",k6o="code.column.number",B6o="code.file.path",M6o="code.function.name",L6o="code.line.number",U6o="code.stacktrace",F6o="db.collection.name",Q6o="db.namespace",q6o="db.operation.batch.size",H6o="db.operation.name",V6o="db.query.summary",G6o="db.query.text",j6o="db.response.status_code",$6o="db.stored_procedure.name",W6o="db.system.name",z6o="mariadb",K6o="microsoft.sql_server",Y6o="mysql",J6o="postgresql",X6o="dotnet.gc.heap.generation",Z6o="gen0",ewo="gen1",two="gen2",QQc="loh",qQc="poh",rwo="error.type",nwo="_OTHER",iwo="exception.escaped",owo="exception.message",swo="exception.stacktrace",awo="exception.type",cwo=t=>`http.request.header.${t}`,lwo="http.request.method",uwo="_OTHER",fwo="CONNECT",dwo="DELETE",HQc="GET",pwo="HEAD",hwo="OPTIONS",mwo="PATCH",gwo="POST",VQc="PUT",ywo="TRACE",Awo="http.request.method_original",vwo="http.request.resend_count",bwo=t=>`http.response.header.${t}`,Ewo="http.response.status_code",Swo="http.route",_wo="jvm.gc.action",xwo="jvm.gc.name",Cwo="jvm.memory.pool.name",Two="jvm.memory.type",wwo="heap",Iwo="non_heap",Dwo="jvm.thread.daemon",Owo="jvm.thread.state",Rwo="blocked",GQc="new",Nwo="runnable",Pwo="terminated",kwo="timed_waiting",Bwo="waiting",Mwo="network.local.address",Lwo="network.local.port",Uwo="network.peer.address",Fwo="network.peer.port",Qwo="network.protocol.name",qwo="network.protocol.version",Hwo="network.transport",Vwo="pipe",Gwo="quic",jQc="tcp",$Qc="udp",jwo="unix",$wo="network.type",Wwo="ipv4",zwo="ipv6",Kwo="otel.scope.name",Ywo="otel.scope.version",Jwo="otel.status_code",Xwo="ERROR",WQc="OK",Zwo="otel.status_description",e5o="server.address",t5o="server.port",VTt="service.name",GTt="service.version",r5o="signalr.connection.status",n5o="app_shutdown",i5o="normal_closure",o5o="timeout",s5o="signalr.transport",a5o="long_polling",c5o="server_sent_events",l5o="web_sockets",u5o="telemetry.sdk.language",zQc="cpp",f5o="dotnet",d5o="erlang",KQc="go",p5o="java",h5o="nodejs",YQc="php",m5o="python",g5o="ruby",y5o="rust",A5o="swift",v5o="webjs",b5o="telemetry.sdk.name",E5o="telemetry.sdk.version",S5o="url.fragment",_5o="url.full",x5o="url.path",C5o="url.query",T5o="url.scheme",w5o="user_agent.original"});var I5o,D5o,O5o,R5o,N5o,P5o,k5o,B5o,M5o,L5o,U5o,F5o,Q5o,q5o,H5o,V5o,G5o,j5o,$5o,W5o,z5o,K5o,Y5o,J5o,X5o,Z5o,eIo,tIo,rIo,nIo,iIo,oIo,sIo,aIo,cIo,lIo,uIo,fIo,dIo,pIo,hIo,mIo,gIo,yIo,AIo,vIo,bIo,EIo,SIo,_Io,xIo,aVr=G(()=>{I5o="aspnetcore.diagnostics.exceptions",D5o="aspnetcore.rate_limiting.active_request_leases",O5o="aspnetcore.rate_limiting.queued_requests",R5o="aspnetcore.rate_limiting.request.time_in_queue",N5o="aspnetcore.rate_limiting.request_lease.duration",P5o="aspnetcore.rate_limiting.requests",k5o="aspnetcore.routing.match_attempts",B5o="db.client.operation.duration",M5o="dotnet.assembly.count",L5o="dotnet.exceptions",U5o="dotnet.gc.collections",F5o="dotnet.gc.heap.total_allocated",Q5o="dotnet.gc.last_collection.heap.fragmentation.size",q5o="dotnet.gc.last_collection.heap.size",H5o="dotnet.gc.last_collection.memory.committed_size",V5o="dotnet.gc.pause.time",G5o="dotnet.jit.compilation.time",j5o="dotnet.jit.compiled_il.size",$5o="dotnet.jit.compiled_methods",W5o="dotnet.monitor.lock_contentions",z5o="dotnet.process.cpu.count",K5o="dotnet.process.cpu.time",Y5o="dotnet.process.memory.working_set",J5o="dotnet.thread_pool.queue.length",X5o="dotnet.thread_pool.thread.count",Z5o="dotnet.thread_pool.work_item.count",eIo="dotnet.timer.count",tIo="http.client.request.duration",rIo="http.server.request.duration",nIo="jvm.class.count",iIo="jvm.class.loaded",oIo="jvm.class.unloaded",sIo="jvm.cpu.count",aIo="jvm.cpu.recent_utilization",cIo="jvm.cpu.time",lIo="jvm.gc.duration",uIo="jvm.memory.committed",fIo="jvm.memory.limit",dIo="jvm.memory.used",pIo="jvm.memory.used_after_last_gc",hIo="jvm.thread.count",mIo="kestrel.active_connections",gIo="kestrel.active_tls_handshakes",yIo="kestrel.connection.duration",AIo="kestrel.queued_connections",vIo="kestrel.queued_requests",bIo="kestrel.rejected_connections",EIo="kestrel.tls_handshake.duration",SIo="kestrel.upgraded_connections",_Io="signalr.server.active_connections",xIo="signalr.server.connection.duration"});var CIo,cVr=G(()=>{CIo="exception"});var Uu={};os(Uu,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>m6o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>g6o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>y6o,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>A6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>S6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>_6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>x6o,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>C6o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>D6o,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>O6o,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>h6o,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>v6o,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>b6o,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>E6o,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>T6o,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>w6o,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>I6o,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>R6o,ATTR_CLIENT_ADDRESS:()=>N6o,ATTR_CLIENT_PORT:()=>P6o,ATTR_CODE_COLUMN_NUMBER:()=>k6o,ATTR_CODE_FILE_PATH:()=>B6o,ATTR_CODE_FUNCTION_NAME:()=>M6o,ATTR_CODE_LINE_NUMBER:()=>L6o,ATTR_CODE_STACKTRACE:()=>U6o,ATTR_DB_COLLECTION_NAME:()=>F6o,ATTR_DB_NAMESPACE:()=>Q6o,ATTR_DB_OPERATION_BATCH_SIZE:()=>q6o,ATTR_DB_OPERATION_NAME:()=>H6o,ATTR_DB_QUERY_SUMMARY:()=>V6o,ATTR_DB_QUERY_TEXT:()=>G6o,ATTR_DB_RESPONSE_STATUS_CODE:()=>j6o,ATTR_DB_STORED_PROCEDURE_NAME:()=>$6o,ATTR_DB_SYSTEM_NAME:()=>W6o,ATTR_DOTNET_GC_HEAP_GENERATION:()=>X6o,ATTR_ERROR_TYPE:()=>rwo,ATTR_EXCEPTION_ESCAPED:()=>iwo,ATTR_EXCEPTION_MESSAGE:()=>owo,ATTR_EXCEPTION_STACKTRACE:()=>swo,ATTR_EXCEPTION_TYPE:()=>awo,ATTR_HTTP_REQUEST_HEADER:()=>cwo,ATTR_HTTP_REQUEST_METHOD:()=>lwo,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>Awo,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>vwo,ATTR_HTTP_RESPONSE_HEADER:()=>bwo,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>Ewo,ATTR_HTTP_ROUTE:()=>Swo,ATTR_JVM_GC_ACTION:()=>_wo,ATTR_JVM_GC_NAME:()=>xwo,ATTR_JVM_MEMORY_POOL_NAME:()=>Cwo,ATTR_JVM_MEMORY_TYPE:()=>Two,ATTR_JVM_THREAD_DAEMON:()=>Dwo,ATTR_JVM_THREAD_STATE:()=>Owo,ATTR_NETWORK_LOCAL_ADDRESS:()=>Mwo,ATTR_NETWORK_LOCAL_PORT:()=>Lwo,ATTR_NETWORK_PEER_ADDRESS:()=>Uwo,ATTR_NETWORK_PEER_PORT:()=>Fwo,ATTR_NETWORK_PROTOCOL_NAME:()=>Qwo,ATTR_NETWORK_PROTOCOL_VERSION:()=>qwo,ATTR_NETWORK_TRANSPORT:()=>Hwo,ATTR_NETWORK_TYPE:()=>$wo,ATTR_OTEL_SCOPE_NAME:()=>Kwo,ATTR_OTEL_SCOPE_VERSION:()=>Ywo,ATTR_OTEL_STATUS_CODE:()=>Jwo,ATTR_OTEL_STATUS_DESCRIPTION:()=>Zwo,ATTR_SERVER_ADDRESS:()=>e5o,ATTR_SERVER_PORT:()=>t5o,ATTR_SERVICE_NAME:()=>VTt,ATTR_SERVICE_VERSION:()=>GTt,ATTR_SIGNALR_CONNECTION_STATUS:()=>r5o,ATTR_SIGNALR_TRANSPORT:()=>s5o,ATTR_TELEMETRY_SDK_LANGUAGE:()=>u5o,ATTR_TELEMETRY_SDK_NAME:()=>b5o,ATTR_TELEMETRY_SDK_VERSION:()=>E5o,ATTR_URL_FRAGMENT:()=>S5o,ATTR_URL_FULL:()=>_5o,ATTR_URL_PATH:()=>x5o,ATTR_URL_QUERY:()=>C5o,ATTR_URL_SCHEME:()=>T5o,ATTR_USER_AGENT_ORIGINAL:()=>w5o,AWSECSLAUNCHTYPEVALUES_EC2:()=>k4o,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>B4o,AwsEcsLaunchtypeValues:()=>M4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>g4o,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>y4o,CLOUDPLATFORMVALUES_AWS_EC2:()=>A4o,CLOUDPLATFORMVALUES_AWS_ECS:()=>v4o,CLOUDPLATFORMVALUES_AWS_EKS:()=>b4o,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>S4o,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>E4o,CLOUDPLATFORMVALUES_AZURE_AKS:()=>C4o,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>w4o,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>x4o,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>T4o,CLOUDPLATFORMVALUES_AZURE_VM:()=>_4o,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>N4o,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>R4o,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>D4o,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>I4o,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>O4o,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>f4o,CLOUDPROVIDERVALUES_AWS:()=>d4o,CLOUDPROVIDERVALUES_AZURE:()=>p4o,CLOUDPROVIDERVALUES_GCP:()=>h4o,CloudPlatformValues:()=>P4o,CloudProviderValues:()=>m4o,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>K_o,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>nxo,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Y_o,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>rxo,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>X_o,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>oxo,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>Z_o,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>J_o,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>ixo,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>txo,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>exo,DBSYSTEMVALUES_ADABAS:()=>A_o,DBSYSTEMVALUES_CACHE:()=>y_o,DBSYSTEMVALUES_CASSANDRA:()=>B_o,DBSYSTEMVALUES_CLOUDSCAPE:()=>l_o,DBSYSTEMVALUES_COCKROACHDB:()=>W_o,DBSYSTEMVALUES_COLDFUSION:()=>k_o,DBSYSTEMVALUES_COSMOSDB:()=>q_o,DBSYSTEMVALUES_COUCHBASE:()=>F_o,DBSYSTEMVALUES_COUCHDB:()=>Q_o,DBSYSTEMVALUES_DB2:()=>o_o,DBSYSTEMVALUES_DERBY:()=>b_o,DBSYSTEMVALUES_DYNAMODB:()=>H_o,DBSYSTEMVALUES_EDB:()=>g_o,DBSYSTEMVALUES_ELASTICSEARCH:()=>j_o,DBSYSTEMVALUES_FILEMAKER:()=>E_o,DBSYSTEMVALUES_FIREBIRD:()=>v_o,DBSYSTEMVALUES_FIRSTSQL:()=>m_o,DBSYSTEMVALUES_GEODE:()=>G_o,DBSYSTEMVALUES_H2:()=>P_o,DBSYSTEMVALUES_HANADB:()=>p_o,DBSYSTEMVALUES_HBASE:()=>M_o,DBSYSTEMVALUES_HIVE:()=>c_o,DBSYSTEMVALUES_HSQLDB:()=>u_o,DBSYSTEMVALUES_INFORMIX:()=>S_o,DBSYSTEMVALUES_INGRES:()=>h_o,DBSYSTEMVALUES_INSTANTDB:()=>__o,DBSYSTEMVALUES_INTERBASE:()=>x_o,DBSYSTEMVALUES_MARIADB:()=>C_o,DBSYSTEMVALUES_MAXDB:()=>d_o,DBSYSTEMVALUES_MEMCACHED:()=>$_o,DBSYSTEMVALUES_MONGODB:()=>L_o,DBSYSTEMVALUES_MSSQL:()=>r_o,DBSYSTEMVALUES_MYSQL:()=>n_o,DBSYSTEMVALUES_NEO4J:()=>V_o,DBSYSTEMVALUES_NETEZZA:()=>T_o,DBSYSTEMVALUES_ORACLE:()=>i_o,DBSYSTEMVALUES_OTHER_SQL:()=>t_o,DBSYSTEMVALUES_PERVASIVE:()=>w_o,DBSYSTEMVALUES_POINTBASE:()=>I_o,DBSYSTEMVALUES_POSTGRESQL:()=>s_o,DBSYSTEMVALUES_PROGRESS:()=>f_o,DBSYSTEMVALUES_REDIS:()=>U_o,DBSYSTEMVALUES_REDSHIFT:()=>a_o,DBSYSTEMVALUES_SQLITE:()=>D_o,DBSYSTEMVALUES_SYBASE:()=>O_o,DBSYSTEMVALUES_TERADATA:()=>R_o,DBSYSTEMVALUES_VERTICA:()=>N_o,DB_SYSTEM_NAME_VALUE_MARIADB:()=>z6o,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>K6o,DB_SYSTEM_NAME_VALUE_MYSQL:()=>Y6o,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>J6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>Z6o,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>ewo,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>two,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>QQc,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>qQc,DbCassandraConsistencyLevelValues:()=>sxo,DbSystemValues:()=>z_o,ERROR_TYPE_VALUE_OTHER:()=>nwo,EVENT_EXCEPTION:()=>CIo,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>mxo,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>hxo,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>pxo,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>yxo,FAASINVOKEDPROVIDERVALUES_AWS:()=>Axo,FAASINVOKEDPROVIDERVALUES_AZURE:()=>vxo,FAASINVOKEDPROVIDERVALUES_GCP:()=>bxo,FAASTRIGGERVALUES_DATASOURCE:()=>axo,FAASTRIGGERVALUES_HTTP:()=>cxo,FAASTRIGGERVALUES_OTHER:()=>fxo,FAASTRIGGERVALUES_PUBSUB:()=>lxo,FAASTRIGGERVALUES_TIMER:()=>uxo,FaasDocumentOperationValues:()=>gxo,FaasInvokedProviderValues:()=>Exo,FaasTriggerValues:()=>dxo,HOSTARCHVALUES_AMD64:()=>L4o,HOSTARCHVALUES_ARM32:()=>U4o,HOSTARCHVALUES_ARM64:()=>F4o,HOSTARCHVALUES_IA64:()=>Q4o,HOSTARCHVALUES_PPC32:()=>q4o,HOSTARCHVALUES_PPC64:()=>H4o,HOSTARCHVALUES_X86:()=>V4o,HTTPFLAVORVALUES_HTTP_1_0:()=>iCo,HTTPFLAVORVALUES_HTTP_1_1:()=>oCo,HTTPFLAVORVALUES_HTTP_2_0:()=>sCo,HTTPFLAVORVALUES_QUIC:()=>cCo,HTTPFLAVORVALUES_SPDY:()=>aCo,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>fwo,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>dwo,HTTP_REQUEST_METHOD_VALUE_GET:()=>HQc,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>pwo,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>hwo,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>uwo,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>mwo,HTTP_REQUEST_METHOD_VALUE_POST:()=>gwo,HTTP_REQUEST_METHOD_VALUE_PUT:()=>VQc,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>ywo,HostArchValues:()=>G4o,HttpFlavorValues:()=>lCo,JVM_MEMORY_TYPE_VALUE_HEAP:()=>wwo,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>Iwo,JVM_THREAD_STATE_VALUE_BLOCKED:()=>Rwo,JVM_THREAD_STATE_VALUE_NEW:()=>GQc,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>Nwo,JVM_THREAD_STATE_VALUE_TERMINATED:()=>Pwo,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>kwo,JVM_THREAD_STATE_VALUE_WAITING:()=>Bwo,MESSAGETYPEVALUES_RECEIVED:()=>BCo,MESSAGETYPEVALUES_SENT:()=>kCo,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>uCo,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>fCo,MESSAGINGOPERATIONVALUES_PROCESS:()=>hCo,MESSAGINGOPERATIONVALUES_RECEIVE:()=>pCo,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>I5o,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>D5o,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>O5o,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>P5o,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>N5o,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>R5o,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>k5o,METRIC_DB_CLIENT_OPERATION_DURATION:()=>B5o,METRIC_DOTNET_ASSEMBLY_COUNT:()=>M5o,METRIC_DOTNET_EXCEPTIONS:()=>L5o,METRIC_DOTNET_GC_COLLECTIONS:()=>U5o,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>F5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>Q5o,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>q5o,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>H5o,METRIC_DOTNET_GC_PAUSE_TIME:()=>V5o,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>G5o,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>j5o,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>$5o,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>W5o,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>z5o,METRIC_DOTNET_PROCESS_CPU_TIME:()=>K5o,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>Y5o,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>J5o,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>X5o,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>Z5o,METRIC_DOTNET_TIMER_COUNT:()=>eIo,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>tIo,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>rIo,METRIC_JVM_CLASS_COUNT:()=>nIo,METRIC_JVM_CLASS_LOADED:()=>iIo,METRIC_JVM_CLASS_UNLOADED:()=>oIo,METRIC_JVM_CPU_COUNT:()=>sIo,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>aIo,METRIC_JVM_CPU_TIME:()=>cIo,METRIC_JVM_GC_DURATION:()=>lIo,METRIC_JVM_MEMORY_COMMITTED:()=>uIo,METRIC_JVM_MEMORY_LIMIT:()=>fIo,METRIC_JVM_MEMORY_USED:()=>dIo,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>pIo,METRIC_JVM_THREAD_COUNT:()=>hIo,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>mIo,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>gIo,METRIC_KESTREL_CONNECTION_DURATION:()=>yIo,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>AIo,METRIC_KESTREL_QUEUED_REQUESTS:()=>vIo,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>bIo,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>EIo,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>SIo,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>_Io,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>xIo,MessageTypeValues:()=>MCo,MessagingDestinationKindValues:()=>dCo,MessagingOperationValues:()=>mCo,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Fxo,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Hxo,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Lxo,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Kxo,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Qxo,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>qxo,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Wxo,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Mxo,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Jxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Vxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>jxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Yxo,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Gxo,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>$xo,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Zxo,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>zxo,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>rCo,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>eCo,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>tCo,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Xxo,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Uxo,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Nxo,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Pxo,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>kxo,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Oxo,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Rxo,NETTRANSPORTVALUES_INPROC:()=>wxo,NETTRANSPORTVALUES_IP:()=>xxo,NETTRANSPORTVALUES_IP_TCP:()=>Sxo,NETTRANSPORTVALUES_IP_UDP:()=>_xo,NETTRANSPORTVALUES_OTHER:()=>Ixo,NETTRANSPORTVALUES_PIPE:()=>Txo,NETTRANSPORTVALUES_UNIX:()=>Cxo,NETWORK_TRANSPORT_VALUE_PIPE:()=>Vwo,NETWORK_TRANSPORT_VALUE_QUIC:()=>Gwo,NETWORK_TRANSPORT_VALUE_TCP:()=>jQc,NETWORK_TRANSPORT_VALUE_UDP:()=>$Qc,NETWORK_TRANSPORT_VALUE_UNIX:()=>jwo,NETWORK_TYPE_VALUE_IPV4:()=>Wwo,NETWORK_TYPE_VALUE_IPV6:()=>zwo,NetHostConnectionSubtypeValues:()=>nCo,NetHostConnectionTypeValues:()=>Bxo,NetTransportValues:()=>Dxo,OSTYPEVALUES_AIX:()=>Z4o,OSTYPEVALUES_DARWIN:()=>W4o,OSTYPEVALUES_DRAGONFLYBSD:()=>J4o,OSTYPEVALUES_FREEBSD:()=>z4o,OSTYPEVALUES_HPUX:()=>X4o,OSTYPEVALUES_LINUX:()=>$4o,OSTYPEVALUES_NETBSD:()=>K4o,OSTYPEVALUES_OPENBSD:()=>Y4o,OSTYPEVALUES_SOLARIS:()=>e6o,OSTYPEVALUES_WINDOWS:()=>j4o,OSTYPEVALUES_Z_OS:()=>t6o,OTEL_STATUS_CODE_VALUE_ERROR:()=>Xwo,OTEL_STATUS_CODE_VALUE_OK:()=>WQc,OsTypeValues:()=>r6o,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>TCo,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>SCo,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>yCo,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>RCo,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>bCo,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>CCo,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>DCo,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>vCo,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>ECo,RPCGRPCSTATUSCODEVALUES_OK:()=>gCo,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>wCo,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>_Co,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>xCo,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>NCo,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>OCo,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>ICo,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>ACo,RpcGrpcStatusCodeValues:()=>PCo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>uSo,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>SSo,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>aSo,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>nSo,SEMATTRS_AWS_DYNAMODB_COUNT:()=>bSo,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>mSo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>pSo,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>_So,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>fSo,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>iSo,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>lSo,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>hSo,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>cSo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>oSo,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>sSo,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>ESo,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>ySo,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>ASo,SEMATTRS_AWS_DYNAMODB_SELECT:()=>dSo,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>gSo,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>rSo,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>vSo,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>Bbo,SEMATTRS_CODE_FILEPATH:()=>FEo,SEMATTRS_CODE_FUNCTION:()=>LEo,SEMATTRS_CODE_LINENO:()=>QEo,SEMATTRS_CODE_NAMESPACE:()=>UEo,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>$bo,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>Jbo,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>Ybo,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>zbo,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Gbo,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>jbo,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>Kbo,SEMATTRS_DB_CASSANDRA_TABLE:()=>Wbo,SEMATTRS_DB_CONNECTION_STRING:()=>Lbo,SEMATTRS_DB_HBASE_NAMESPACE:()=>Xbo,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>Fbo,SEMATTRS_DB_MONGODB_COLLECTION:()=>eEo,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Vbo,SEMATTRS_DB_NAME:()=>Qbo,SEMATTRS_DB_OPERATION:()=>Hbo,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>Zbo,SEMATTRS_DB_SQL_TABLE:()=>tEo,SEMATTRS_DB_STATEMENT:()=>qbo,SEMATTRS_DB_SYSTEM:()=>Mbo,SEMATTRS_DB_USER:()=>Ubo,SEMATTRS_ENDUSER_ID:()=>NEo,SEMATTRS_ENDUSER_ROLE:()=>PEo,SEMATTRS_ENDUSER_SCOPE:()=>kEo,SEMATTRS_EXCEPTION_ESCAPED:()=>oEo,SEMATTRS_EXCEPTION_MESSAGE:()=>nEo,SEMATTRS_EXCEPTION_STACKTRACE:()=>iEo,SEMATTRS_EXCEPTION_TYPE:()=>rEo,SEMATTRS_FAAS_COLDSTART:()=>hEo,SEMATTRS_FAAS_CRON:()=>pEo,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>cEo,SEMATTRS_FAAS_DOCUMENT_NAME:()=>fEo,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>lEo,SEMATTRS_FAAS_DOCUMENT_TIME:()=>uEo,SEMATTRS_FAAS_EXECUTION:()=>aEo,SEMATTRS_FAAS_INVOKED_NAME:()=>mEo,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>gEo,SEMATTRS_FAAS_INVOKED_REGION:()=>yEo,SEMATTRS_FAAS_TIME:()=>dEo,SEMATTRS_FAAS_TRIGGER:()=>sEo,SEMATTRS_HTTP_CLIENT_IP:()=>tSo,SEMATTRS_HTTP_FLAVOR:()=>WEo,SEMATTRS_HTTP_HOST:()=>GEo,SEMATTRS_HTTP_METHOD:()=>qEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>KEo,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>YEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>JEo,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>XEo,SEMATTRS_HTTP_ROUTE:()=>eSo,SEMATTRS_HTTP_SCHEME:()=>jEo,SEMATTRS_HTTP_SERVER_NAME:()=>ZEo,SEMATTRS_HTTP_STATUS_CODE:()=>$Eo,SEMATTRS_HTTP_TARGET:()=>VEo,SEMATTRS_HTTP_URL:()=>HEo,SEMATTRS_HTTP_USER_AGENT:()=>zEo,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>ZSo,SEMATTRS_MESSAGE_ID:()=>XSo,SEMATTRS_MESSAGE_TYPE:()=>JSo,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>e_o,SEMATTRS_MESSAGING_CONSUMER_ID:()=>MSo,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>NSo,SEMATTRS_MESSAGING_DESTINATION:()=>CSo,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>TSo,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>QSo,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>FSo,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>USo,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>qSo,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>HSo,SEMATTRS_MESSAGING_MESSAGE_ID:()=>RSo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>kSo,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>PSo,SEMATTRS_MESSAGING_OPERATION:()=>BSo,SEMATTRS_MESSAGING_PROTOCOL:()=>ISo,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>DSo,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>LSo,SEMATTRS_MESSAGING_SYSTEM:()=>xSo,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>wSo,SEMATTRS_MESSAGING_URL:()=>OSo,SEMATTRS_NET_HOST_CARRIER_ICC:()=>OEo,SEMATTRS_NET_HOST_CARRIER_MCC:()=>IEo,SEMATTRS_NET_HOST_CARRIER_MNC:()=>DEo,SEMATTRS_NET_HOST_CARRIER_NAME:()=>wEo,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>TEo,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>CEo,SEMATTRS_NET_HOST_IP:()=>SEo,SEMATTRS_NET_HOST_NAME:()=>xEo,SEMATTRS_NET_HOST_PORT:()=>_Eo,SEMATTRS_NET_PEER_IP:()=>vEo,SEMATTRS_NET_PEER_NAME:()=>EEo,SEMATTRS_NET_PEER_PORT:()=>bEo,SEMATTRS_NET_TRANSPORT:()=>AEo,SEMATTRS_PEER_SERVICE:()=>REo,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>$So,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>KSo,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>YSo,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>zSo,SEMATTRS_RPC_JSONRPC_VERSION:()=>WSo,SEMATTRS_RPC_METHOD:()=>jSo,SEMATTRS_RPC_SERVICE:()=>GSo,SEMATTRS_RPC_SYSTEM:()=>VSo,SEMATTRS_THREAD_ID:()=>BEo,SEMATTRS_THREAD_NAME:()=>MEo,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>VCo,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>HCo,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>GCo,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>jCo,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>$Co,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>WCo,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>zCo,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>YCo,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>KCo,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>XCo,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>JCo,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>UCo,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>QCo,SEMRESATTRS_CLOUD_PLATFORM:()=>qCo,SEMRESATTRS_CLOUD_PROVIDER:()=>LCo,SEMRESATTRS_CLOUD_REGION:()=>FCo,SEMRESATTRS_CONTAINER_ID:()=>eTo,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>rTo,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>nTo,SEMRESATTRS_CONTAINER_NAME:()=>ZCo,SEMRESATTRS_CONTAINER_RUNTIME:()=>tTo,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>iTo,SEMRESATTRS_DEVICE_ID:()=>oTo,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>sTo,SEMRESATTRS_DEVICE_MODEL_NAME:()=>aTo,SEMRESATTRS_FAAS_ID:()=>lTo,SEMRESATTRS_FAAS_INSTANCE:()=>fTo,SEMRESATTRS_FAAS_MAX_MEMORY:()=>dTo,SEMRESATTRS_FAAS_NAME:()=>cTo,SEMRESATTRS_FAAS_VERSION:()=>uTo,SEMRESATTRS_HOST_ARCH:()=>gTo,SEMRESATTRS_HOST_ID:()=>pTo,SEMRESATTRS_HOST_IMAGE_ID:()=>ATo,SEMRESATTRS_HOST_IMAGE_NAME:()=>yTo,SEMRESATTRS_HOST_IMAGE_VERSION:()=>vTo,SEMRESATTRS_HOST_NAME:()=>hTo,SEMRESATTRS_HOST_TYPE:()=>mTo,SEMRESATTRS_K8S_CLUSTER_NAME:()=>bTo,SEMRESATTRS_K8S_CONTAINER_NAME:()=>TTo,SEMRESATTRS_K8S_CRONJOB_NAME:()=>UTo,SEMRESATTRS_K8S_CRONJOB_UID:()=>LTo,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>kTo,SEMRESATTRS_K8S_DAEMONSET_UID:()=>PTo,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>OTo,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>DTo,SEMRESATTRS_K8S_JOB_NAME:()=>MTo,SEMRESATTRS_K8S_JOB_UID:()=>BTo,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>_To,SEMRESATTRS_K8S_NODE_NAME:()=>ETo,SEMRESATTRS_K8S_NODE_UID:()=>STo,SEMRESATTRS_K8S_POD_NAME:()=>CTo,SEMRESATTRS_K8S_POD_UID:()=>xTo,SEMRESATTRS_K8S_REPLICASET_NAME:()=>ITo,SEMRESATTRS_K8S_REPLICASET_UID:()=>wTo,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>NTo,SEMRESATTRS_K8S_STATEFULSET_UID:()=>RTo,SEMRESATTRS_OS_DESCRIPTION:()=>QTo,SEMRESATTRS_OS_NAME:()=>qTo,SEMRESATTRS_OS_TYPE:()=>FTo,SEMRESATTRS_OS_VERSION:()=>HTo,SEMRESATTRS_PROCESS_COMMAND:()=>$To,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>zTo,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>WTo,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>GTo,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>jTo,SEMRESATTRS_PROCESS_OWNER:()=>KTo,SEMRESATTRS_PROCESS_PID:()=>VTo,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>XTo,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>YTo,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>JTo,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>t4o,SEMRESATTRS_SERVICE_NAME:()=>ZTo,SEMRESATTRS_SERVICE_NAMESPACE:()=>e4o,SEMRESATTRS_SERVICE_VERSION:()=>r4o,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>s4o,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>i4o,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>n4o,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>o4o,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>l4o,SEMRESATTRS_WEBENGINE_NAME:()=>a4o,SEMRESATTRS_WEBENGINE_VERSION:()=>c4o,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>n5o,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>i5o,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>o5o,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>a5o,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>c5o,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>l5o,SemanticAttributes:()=>fte,SemanticResourceAttributes:()=>u4o,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>n6o,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>i6o,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>o6o,TELEMETRYSDKLANGUAGEVALUES_GO:()=>s6o,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>a6o,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>c6o,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>l6o,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>u6o,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>f6o,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>d6o,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>zQc,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>f5o,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>d5o,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>KQc,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>p5o,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>h5o,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>YQc,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>m5o,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>g5o,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>y5o,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>A5o,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>v5o,TelemetrySdkLanguageValues:()=>p6o});var $l=G(()=>{PQr();oVr();sVr();aVr();cVr()});var tOe,lVr=G(()=>{tOe=class{_delegate;constructor(e){this._delegate=e}export(e,r){this._delegate.export(e,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}});var iO,rOe=G(()=>{iO=class extends Error{code;name="OTLPExporterError";data;constructor(e,r,o){super(e),this.data=o,this.code=r}}});function TIo(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function nOe(t){if(t!=null)return()=>t}function iOe(t,e,r){return{timeoutMillis:TIo(t.timeoutMillis??e.timeoutMillis??r.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??r.concurrencyLimit,compression:t.compression??e.compression??r.compression}}function oOe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var h2e=G(()=>{});var sOe,uVr=G(()=>{(function(t){t.NONE="none",t.GZIP="gzip"})(sOe||(sOe={}))});function aOe(t){return new jTt(t.concurrencyLimit)}var jTt,$Tt=G(()=>{jTt=class{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);let r=()=>{let o=this._sendingPromises.indexOf(e);this._sendingPromises.splice(o,1)};e.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}});var m2e=E(mB=>{"use strict";Object.defineProperty(mB,"__esModule",{value:!0});mB.isTracingSuppressed=mB.unsuppressTracing=mB.suppressTracing=void 0;var wIo=(ut(),nt(_t)),WTt=(0,wIo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function IIo(t){return t.setValue(WTt,!0)}mB.suppressTracing=IIo;function DIo(t){return t.deleteValue(WTt)}mB.unsuppressTracing=DIo;function OIo(t){return t.getValue(WTt)===!0}mB.isTracingSuppressed=OIo});var zTt=E(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});Z1.BAGGAGE_MAX_TOTAL_LENGTH=Z1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=Z1.BAGGAGE_MAX_NAME_VALUE_PAIRS=Z1.BAGGAGE_HEADER=Z1.BAGGAGE_ITEMS_SEPARATOR=Z1.BAGGAGE_PROPERTIES_SEPARATOR=Z1.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;Z1.BAGGAGE_KEY_PAIR_SEPARATOR="=";Z1.BAGGAGE_PROPERTIES_SEPARATOR=";";Z1.BAGGAGE_ITEMS_SEPARATOR=",";Z1.BAGGAGE_HEADER="baggage";Z1.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;Z1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;Z1.BAGGAGE_MAX_TOTAL_LENGTH=8192});var KTt=E(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0});W5.parseKeyPairsIntoRecord=W5.parsePairKeyValue=W5.getKeyPairs=W5.serializeKeyPairs=void 0;var RIo=(ut(),nt(_t)),oV=zTt();function NIo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?oV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>oV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}W5.serializeKeyPairs=NIo;function PIo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=oV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}W5.getKeyPairs=PIo;function fVr(t){let e=t.split(oV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(oV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,RIo.baggageEntryMetadataFromString)(e.join(oV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}W5.parsePairKeyValue=fVr;function kIo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(oV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=fVr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}W5.parseKeyPairsIntoRecord=kIo});var dVr=E(cOe=>{"use strict";Object.defineProperty(cOe,"__esModule",{value:!0});cOe.W3CBaggagePropagator=void 0;var YTt=(ut(),nt(_t)),BIo=m2e(),sV=zTt(),JTt=KTt(),XTt=class{inject(e,r,o){let s=YTt.propagation.getBaggage(e);if(!s||(0,BIo.isTracingSuppressed)(e))return;let a=(0,JTt.getKeyPairs)(s).filter(n=>n.length<=sV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,sV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,JTt.serializeKeyPairs)(a);i.length>0&&o.set(r,sV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,sV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(sV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(sV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,JTt.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:YTt.propagation.setBaggage(e,YTt.propagation.createBaggage(i))}fields(){return[sV.BAGGAGE_HEADER]}};cOe.W3CBaggagePropagator=XTt});var pVr=E(lOe=>{"use strict";Object.defineProperty(lOe,"__esModule",{value:!0});lOe.AnchoredClock=void 0;var ZTt=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};lOe.AnchoredClock=ZTt});var AVr=E(gB=>{"use strict";Object.defineProperty(gB,"__esModule",{value:!0});gB.isAttributeValue=gB.isAttributeKey=gB.sanitizeAttributes=void 0;var hVr=(ut(),nt(_t));function MIo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!mVr(r)){hVr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!gVr(o)){hVr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}gB.sanitizeAttributes=MIo;function mVr(t){return typeof t=="string"&&t.length>0}gB.isAttributeKey=mVr;function gVr(t){return t==null?!0:Array.isArray(t)?LIo(t):yVr(t)}gB.isAttributeValue=gVr;function LIo(t){let e;for(let r of t)if(r!=null){if(!e){if(yVr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function yVr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var e4t=E(uOe=>{"use strict";Object.defineProperty(uOe,"__esModule",{value:!0});uOe.loggingErrorHandler=void 0;var UIo=(ut(),nt(_t));function FIo(){return t=>{UIo.diag.error(QIo(t))}}uOe.loggingErrorHandler=FIo;function QIo(t){return typeof t=="string"?t:JSON.stringify(qIo(t))}function qIo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var bVr=E(dte=>{"use strict";Object.defineProperty(dte,"__esModule",{value:!0});dte.globalErrorHandler=dte.setGlobalErrorHandler=void 0;var HIo=e4t(),vVr=(0,HIo.loggingErrorHandler)();function VIo(t){vVr=t}dte.setGlobalErrorHandler=VIo;function GIo(t){try{vVr(t)}catch{}}dte.globalErrorHandler=GIo});var xVr=E(z5=>{"use strict";Object.defineProperty(z5,"__esModule",{value:!0});z5.getStringListFromEnv=z5.getBooleanFromEnv=z5.getStringFromEnv=z5.getNumberFromEnv=void 0;var EVr=(ut(),nt(_t)),SVr=me("util");function jIo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){EVr.diag.warn(`Unknown value ${(0,SVr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}z5.getNumberFromEnv=jIo;function _Vr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}z5.getStringFromEnv=_Vr;function $Io(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||EVr.diag.warn(`Unknown value ${(0,SVr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}z5.getBooleanFromEnv=$Io;function WIo(t){return _Vr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}z5.getStringListFromEnv=WIo});var CVr=E(fOe=>{"use strict";Object.defineProperty(fOe,"__esModule",{value:!0});fOe._globalThis=void 0;fOe._globalThis=typeof globalThis=="object"?globalThis:global});var TVr=E(dOe=>{"use strict";Object.defineProperty(dOe,"__esModule",{value:!0});dOe.otperformance=void 0;var zIo=me("perf_hooks");dOe.otperformance=zIo.performance});var wVr=E(pOe=>{"use strict";Object.defineProperty(pOe,"__esModule",{value:!0});pOe.VERSION=void 0;pOe.VERSION="2.1.0"});var IVr=E(hOe=>{"use strict";Object.defineProperty(hOe,"__esModule",{value:!0});hOe.ATTR_PROCESS_RUNTIME_NAME=void 0;hOe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var DVr=E(gOe=>{"use strict";Object.defineProperty(gOe,"__esModule",{value:!0});gOe.SDK_INFO=void 0;var KIo=wVr(),mOe=($l(),nt(Uu)),YIo=IVr();gOe.SDK_INFO={[mOe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[YIo.ATTR_PROCESS_RUNTIME_NAME]:"node",[mOe.ATTR_TELEMETRY_SDK_LANGUAGE]:mOe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[mOe.ATTR_TELEMETRY_SDK_VERSION]:KIo.VERSION}});var OVr=E(yOe=>{"use strict";Object.defineProperty(yOe,"__esModule",{value:!0});yOe.unrefTimer=void 0;function JIo(t){t.unref()}yOe.unrefTimer=JIo});var RVr=E(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.unrefTimer=i0.SDK_INFO=i0.otperformance=i0._globalThis=i0.getStringListFromEnv=i0.getNumberFromEnv=i0.getBooleanFromEnv=i0.getStringFromEnv=void 0;var AOe=xVr();Object.defineProperty(i0,"getStringFromEnv",{enumerable:!0,get:function(){return AOe.getStringFromEnv}});Object.defineProperty(i0,"getBooleanFromEnv",{enumerable:!0,get:function(){return AOe.getBooleanFromEnv}});Object.defineProperty(i0,"getNumberFromEnv",{enumerable:!0,get:function(){return AOe.getNumberFromEnv}});Object.defineProperty(i0,"getStringListFromEnv",{enumerable:!0,get:function(){return AOe.getStringListFromEnv}});var XIo=CVr();Object.defineProperty(i0,"_globalThis",{enumerable:!0,get:function(){return XIo._globalThis}});var ZIo=TVr();Object.defineProperty(i0,"otperformance",{enumerable:!0,get:function(){return ZIo.otperformance}});var e8o=DVr();Object.defineProperty(i0,"SDK_INFO",{enumerable:!0,get:function(){return e8o.SDK_INFO}});var t8o=OVr();Object.defineProperty(i0,"unrefTimer",{enumerable:!0,get:function(){return t8o.unrefTimer}})});var t4t=E(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.getStringListFromEnv=o0.getNumberFromEnv=o0.getStringFromEnv=o0.getBooleanFromEnv=o0.unrefTimer=o0.otperformance=o0._globalThis=o0.SDK_INFO=void 0;var yB=RVr();Object.defineProperty(o0,"SDK_INFO",{enumerable:!0,get:function(){return yB.SDK_INFO}});Object.defineProperty(o0,"_globalThis",{enumerable:!0,get:function(){return yB._globalThis}});Object.defineProperty(o0,"otperformance",{enumerable:!0,get:function(){return yB.otperformance}});Object.defineProperty(o0,"unrefTimer",{enumerable:!0,get:function(){return yB.unrefTimer}});Object.defineProperty(o0,"getBooleanFromEnv",{enumerable:!0,get:function(){return yB.getBooleanFromEnv}});Object.defineProperty(o0,"getStringFromEnv",{enumerable:!0,get:function(){return yB.getStringFromEnv}});Object.defineProperty(o0,"getNumberFromEnv",{enumerable:!0,get:function(){return yB.getNumberFromEnv}});Object.defineProperty(o0,"getStringListFromEnv",{enumerable:!0,get:function(){return yB.getStringListFromEnv}})});var BVr=E(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.addHrTimes=If.isTimeInput=If.isTimeInputHrTime=If.hrTimeToMicroseconds=If.hrTimeToMilliseconds=If.hrTimeToNanoseconds=If.hrTimeToTimeStamp=If.hrTimeDuration=If.timeInputToHrTime=If.hrTime=If.getTimeOrigin=If.millisToHrTime=void 0;var r4t=t4t(),NVr=9,r8o=6,n8o=Math.pow(10,r8o),vOe=Math.pow(10,NVr);function g2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*n8o);return[r,o]}If.millisToHrTime=g2e;function n4t(){let t=r4t.otperformance.timeOrigin;if(typeof t!="number"){let e=r4t.otperformance;t=e.timing&&e.timing.fetchStart}return t}If.getTimeOrigin=n4t;function PVr(t){let e=g2e(n4t()),r=g2e(typeof t=="number"?t:r4t.otperformance.now());return kVr(e,r)}If.hrTime=PVr;function i8o(t){if(i4t(t))return t;if(typeof t=="number")return t<n4t()?PVr(t):g2e(t);if(t instanceof Date)return g2e(t.getTime());throw TypeError("Invalid input type")}If.timeInputToHrTime=i8o;function o8o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=vOe),[r,o]}If.hrTimeDuration=o8o;function s8o(t){let e=NVr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}If.hrTimeToTimeStamp=s8o;function a8o(t){return t[0]*vOe+t[1]}If.hrTimeToNanoseconds=a8o;function c8o(t){return t[0]*1e3+t[1]/1e6}If.hrTimeToMilliseconds=c8o;function l8o(t){return t[0]*1e6+t[1]/1e3}If.hrTimeToMicroseconds=l8o;function i4t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}If.isTimeInputHrTime=i4t;function u8o(t){return i4t(t)||typeof t=="number"||t instanceof Date}If.isTimeInput=u8o;function kVr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=vOe&&(r[1]-=vOe,r[0]+=1),r}If.addHrTimes=kVr});var MVr=E(y2e=>{"use strict";Object.defineProperty(y2e,"__esModule",{value:!0});y2e.ExportResultCode=void 0;var f8o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(f8o=y2e.ExportResultCode||(y2e.ExportResultCode={}))});var UVr=E(bOe=>{"use strict";Object.defineProperty(bOe,"__esModule",{value:!0});bOe.CompositePropagator=void 0;var LVr=(ut(),nt(_t)),o4t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){LVr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){LVr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};bOe.CompositePropagator=o4t});var FVr=E(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0});pte.validateValue=pte.validateKey=void 0;var s4t="[_0-9a-z-*/]",d8o=`[a-z]${s4t}{0,255}`,p8o=`[a-z0-9]${s4t}{0,240}@[a-z]${s4t}{0,13}`,h8o=new RegExp(`^(?:${d8o}|${p8o})$`),m8o=/^[ -~]{0,255}[!-~]$/,g8o=/,|=/;function y8o(t){return h8o.test(t)}pte.validateKey=y8o;function A8o(t){return m8o.test(t)&&!g8o.test(t)}pte.validateValue=A8o});var c4t=E(EOe=>{"use strict";Object.defineProperty(EOe,"__esModule",{value:!0});EOe.TraceState=void 0;var QVr=FVr(),qVr=32,v8o=512,HVr=",",VVr="=",a4t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+VVr+this.get(r)),e),[]).join(HVr)}_parse(e){e.length>v8o||(this._internalState=e.split(HVr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(VVr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,QVr.validateKey)(i)&&(0,QVr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>qVr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,qVr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};EOe.TraceState=a4t});var jVr=E(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.W3CTraceContextPropagator=ey.parseTraceParent=ey.TRACE_STATE_HEADER=ey.TRACE_PARENT_HEADER=void 0;var SOe=(ut(),nt(_t)),b8o=m2e(),E8o=c4t();ey.TRACE_PARENT_HEADER="traceparent";ey.TRACE_STATE_HEADER="tracestate";var S8o="00",_8o="(?!ff)[\\da-f]{2}",x8o="(?![0]{32})[\\da-f]{32}",C8o="(?![0]{16})[\\da-f]{16}",T8o="[\\da-f]{2}",w8o=new RegExp(`^\\s?(${_8o})-(${x8o})-(${C8o})-(${T8o})(-.*)?\\s?$`);function GVr(t){let e=w8o.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ey.parseTraceParent=GVr;var l4t=class{inject(e,r,o){let s=SOe.trace.getSpanContext(e);if(!s||(0,b8o.isTracingSuppressed)(e)||!(0,SOe.isSpanContextValid)(s))return;let a=`${S8o}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||SOe.TraceFlags.NONE).toString(16)}`;o.set(r,ey.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ey.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ey.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=GVr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ey.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new E8o.TraceState(typeof c=="string"?c:void 0)}return SOe.trace.setSpanContext(e,i)}fields(){return[ey.TRACE_PARENT_HEADER,ey.TRACE_STATE_HEADER]}};ey.W3CTraceContextPropagator=l4t});var $Vr=E(z4=>{"use strict";Object.defineProperty(z4,"__esModule",{value:!0});z4.getRPCMetadata=z4.deleteRPCMetadata=z4.setRPCMetadata=z4.RPCType=void 0;var I8o=(ut(),nt(_t)),u4t=(0,I8o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),D8o;(function(t){t.HTTP="http"})(D8o=z4.RPCType||(z4.RPCType={}));function O8o(t,e){return t.setValue(u4t,e)}z4.setRPCMetadata=O8o;function R8o(t){return t.deleteValue(u4t)}z4.deleteRPCMetadata=R8o;function N8o(t){return t.getValue(u4t)}z4.getRPCMetadata=N8o});var JVr=E(_Oe=>{"use strict";Object.defineProperty(_Oe,"__esModule",{value:!0});_Oe.isPlainObject=void 0;var P8o="[object Object]",k8o="[object Null]",B8o="[object Undefined]",M8o=Function.prototype,WVr=M8o.toString,L8o=WVr.call(Object),U8o=Object.getPrototypeOf,zVr=Object.prototype,KVr=zVr.hasOwnProperty,aV=Symbol?Symbol.toStringTag:void 0,YVr=zVr.toString;function F8o(t){if(!Q8o(t)||q8o(t)!==P8o)return!1;let e=U8o(t);if(e===null)return!0;let r=KVr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&WVr.call(r)===L8o}_Oe.isPlainObject=F8o;function Q8o(t){return t!=null&&typeof t=="object"}function q8o(t){return t==null?t===void 0?B8o:k8o:aV&&aV in Object(t)?H8o(t):V8o(t)}function H8o(t){let e=KVr.call(t,aV),r=t[aV],o=!1;try{t[aV]=void 0,o=!0}catch{}let s=YVr.call(t);return o&&(e?t[aV]=r:delete t[aV]),s}function V8o(t){return YVr.call(t)}});var rGr=E(TOe=>{"use strict";Object.defineProperty(TOe,"__esModule",{value:!0});TOe.merge=void 0;var XVr=JVr(),G8o=20;function j8o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=eGr(e,t.shift(),0,r);return e}TOe.merge=j8o;function f4t(t){return COe(t)?t.slice():t}function eGr(t,e,r=0,o){let s;if(!(r>G8o)){if(r++,xOe(t)||xOe(e)||tGr(e))s=f4t(e);else if(COe(t)){if(s=t.slice(),COe(e))for(let a=0,i=e.length;a<i;a++)s.push(f4t(e[a]));else if(A2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=f4t(e[c])}}}else if(A2e(t))if(A2e(e)){if(!$8o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(xOe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(ZVr(t,c,o)||ZVr(e,c,o))delete s[c];else{if(A2e(f)&&A2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=eGr(s[c],u,r,o)}}}}else s=e;return s}}function ZVr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function COe(t){return Array.isArray(t)}function tGr(t){return typeof t=="function"}function A2e(t){return!xOe(t)&&!COe(t)&&!tGr(t)&&typeof t=="object"}function xOe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function $8o(t,e){return!(!(0,XVr.isPlainObject)(t)||!(0,XVr.isPlainObject)(e))}});var nGr=E(hte=>{"use strict";Object.defineProperty(hte,"__esModule",{value:!0});hte.callWithTimeout=hte.TimeoutError=void 0;var wOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};hte.TimeoutError=wOe;function W8o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new wOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}hte.callWithTimeout=W8o});var oGr=E(mte=>{"use strict";Object.defineProperty(mte,"__esModule",{value:!0});mte.isUrlIgnored=mte.urlMatches=void 0;function iGr(t,e){return typeof e=="string"?t===e:!!t.match(e)}mte.urlMatches=iGr;function z8o(t,e){if(!e)return!1;for(let r of e)if(iGr(t,r))return!0;return!1}mte.isUrlIgnored=z8o});var sGr=E(IOe=>{"use strict";Object.defineProperty(IOe,"__esModule",{value:!0});IOe.Deferred=void 0;var d4t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};IOe.Deferred=d4t});var aGr=E(DOe=>{"use strict";Object.defineProperty(DOe,"__esModule",{value:!0});DOe.BindOnceFuture=void 0;var K8o=sGr(),p4t=class{_callback;_that;_isCalled=!1;_deferred=new K8o.Deferred;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};DOe.BindOnceFuture=p4t});var lGr=E(OOe=>{"use strict";Object.defineProperty(OOe,"__esModule",{value:!0});OOe.diagLogLevelFromString=void 0;var oO=(ut(),nt(_t)),cGr={ALL:oO.DiagLogLevel.ALL,VERBOSE:oO.DiagLogLevel.VERBOSE,DEBUG:oO.DiagLogLevel.DEBUG,INFO:oO.DiagLogLevel.INFO,WARN:oO.DiagLogLevel.WARN,ERROR:oO.DiagLogLevel.ERROR,NONE:oO.DiagLogLevel.NONE};function Y8o(t){if(t==null)return;let e=cGr[t.toUpperCase()];return e??(oO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(cGr)}, using default`),oO.DiagLogLevel.INFO)}OOe.diagLogLevelFromString=Y8o});var fGr=E(ROe=>{"use strict";Object.defineProperty(ROe,"__esModule",{value:!0});ROe._export=void 0;var uGr=(ut(),nt(_t)),J8o=m2e();function X8o(t,e){return new Promise(r=>{uGr.context.with((0,J8o.suppressTracing)(uGr.context.active()),()=>{t.export(e,o=>{r(o)})})})}ROe._export=X8o});var v2e=E(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.internal=an.diagLogLevelFromString=an.BindOnceFuture=an.urlMatches=an.isUrlIgnored=an.callWithTimeout=an.TimeoutError=an.merge=an.TraceState=an.unsuppressTracing=an.suppressTracing=an.isTracingSuppressed=an.setRPCMetadata=an.getRPCMetadata=an.deleteRPCMetadata=an.RPCType=an.parseTraceParent=an.W3CTraceContextPropagator=an.TRACE_STATE_HEADER=an.TRACE_PARENT_HEADER=an.CompositePropagator=an.unrefTimer=an.otperformance=an.getStringListFromEnv=an.getNumberFromEnv=an.getBooleanFromEnv=an.getStringFromEnv=an._globalThis=an.SDK_INFO=an.parseKeyPairsIntoRecord=an.ExportResultCode=an.timeInputToHrTime=an.millisToHrTime=an.isTimeInputHrTime=an.isTimeInput=an.hrTimeToTimeStamp=an.hrTimeToNanoseconds=an.hrTimeToMilliseconds=an.hrTimeToMicroseconds=an.hrTimeDuration=an.hrTime=an.getTimeOrigin=an.addHrTimes=an.loggingErrorHandler=an.setGlobalErrorHandler=an.globalErrorHandler=an.sanitizeAttributes=an.isAttributeValue=an.AnchoredClock=an.W3CBaggagePropagator=void 0;var Z8o=dVr();Object.defineProperty(an,"W3CBaggagePropagator",{enumerable:!0,get:function(){return Z8o.W3CBaggagePropagator}});var eDo=pVr();Object.defineProperty(an,"AnchoredClock",{enumerable:!0,get:function(){return eDo.AnchoredClock}});var dGr=AVr();Object.defineProperty(an,"isAttributeValue",{enumerable:!0,get:function(){return dGr.isAttributeValue}});Object.defineProperty(an,"sanitizeAttributes",{enumerable:!0,get:function(){return dGr.sanitizeAttributes}});var pGr=bVr();Object.defineProperty(an,"globalErrorHandler",{enumerable:!0,get:function(){return pGr.globalErrorHandler}});Object.defineProperty(an,"setGlobalErrorHandler",{enumerable:!0,get:function(){return pGr.setGlobalErrorHandler}});var tDo=e4t();Object.defineProperty(an,"loggingErrorHandler",{enumerable:!0,get:function(){return tDo.loggingErrorHandler}});var J_=BVr();Object.defineProperty(an,"addHrTimes",{enumerable:!0,get:function(){return J_.addHrTimes}});Object.defineProperty(an,"getTimeOrigin",{enumerable:!0,get:function(){return J_.getTimeOrigin}});Object.defineProperty(an,"hrTime",{enumerable:!0,get:function(){return J_.hrTime}});Object.defineProperty(an,"hrTimeDuration",{enumerable:!0,get:function(){return J_.hrTimeDuration}});Object.defineProperty(an,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return J_.hrTimeToMicroseconds}});Object.defineProperty(an,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return J_.hrTimeToMilliseconds}});Object.defineProperty(an,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return J_.hrTimeToNanoseconds}});Object.defineProperty(an,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return J_.hrTimeToTimeStamp}});Object.defineProperty(an,"isTimeInput",{enumerable:!0,get:function(){return J_.isTimeInput}});Object.defineProperty(an,"isTimeInputHrTime",{enumerable:!0,get:function(){return J_.isTimeInputHrTime}});Object.defineProperty(an,"millisToHrTime",{enumerable:!0,get:function(){return J_.millisToHrTime}});Object.defineProperty(an,"timeInputToHrTime",{enumerable:!0,get:function(){return J_.timeInputToHrTime}});var rDo=MVr();Object.defineProperty(an,"ExportResultCode",{enumerable:!0,get:function(){return rDo.ExportResultCode}});var nDo=KTt();Object.defineProperty(an,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return nDo.parseKeyPairsIntoRecord}});var AB=t4t();Object.defineProperty(an,"SDK_INFO",{enumerable:!0,get:function(){return AB.SDK_INFO}});Object.defineProperty(an,"_globalThis",{enumerable:!0,get:function(){return AB._globalThis}});Object.defineProperty(an,"getStringFromEnv",{enumerable:!0,get:function(){return AB.getStringFromEnv}});Object.defineProperty(an,"getBooleanFromEnv",{enumerable:!0,get:function(){return AB.getBooleanFromEnv}});Object.defineProperty(an,"getNumberFromEnv",{enumerable:!0,get:function(){return AB.getNumberFromEnv}});Object.defineProperty(an,"getStringListFromEnv",{enumerable:!0,get:function(){return AB.getStringListFromEnv}});Object.defineProperty(an,"otperformance",{enumerable:!0,get:function(){return AB.otperformance}});Object.defineProperty(an,"unrefTimer",{enumerable:!0,get:function(){return AB.unrefTimer}});var iDo=UVr();Object.defineProperty(an,"CompositePropagator",{enumerable:!0,get:function(){return iDo.CompositePropagator}});var NOe=jVr();Object.defineProperty(an,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return NOe.TRACE_PARENT_HEADER}});Object.defineProperty(an,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return NOe.TRACE_STATE_HEADER}});Object.defineProperty(an,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return NOe.W3CTraceContextPropagator}});Object.defineProperty(an,"parseTraceParent",{enumerable:!0,get:function(){return NOe.parseTraceParent}});var POe=$Vr();Object.defineProperty(an,"RPCType",{enumerable:!0,get:function(){return POe.RPCType}});Object.defineProperty(an,"deleteRPCMetadata",{enumerable:!0,get:function(){return POe.deleteRPCMetadata}});Object.defineProperty(an,"getRPCMetadata",{enumerable:!0,get:function(){return POe.getRPCMetadata}});Object.defineProperty(an,"setRPCMetadata",{enumerable:!0,get:function(){return POe.setRPCMetadata}});var h4t=m2e();Object.defineProperty(an,"isTracingSuppressed",{enumerable:!0,get:function(){return h4t.isTracingSuppressed}});Object.defineProperty(an,"suppressTracing",{enumerable:!0,get:function(){return h4t.suppressTracing}});Object.defineProperty(an,"unsuppressTracing",{enumerable:!0,get:function(){return h4t.unsuppressTracing}});var oDo=c4t();Object.defineProperty(an,"TraceState",{enumerable:!0,get:function(){return oDo.TraceState}});var sDo=rGr();Object.defineProperty(an,"merge",{enumerable:!0,get:function(){return sDo.merge}});var hGr=nGr();Object.defineProperty(an,"TimeoutError",{enumerable:!0,get:function(){return hGr.TimeoutError}});Object.defineProperty(an,"callWithTimeout",{enumerable:!0,get:function(){return hGr.callWithTimeout}});var mGr=oGr();Object.defineProperty(an,"isUrlIgnored",{enumerable:!0,get:function(){return mGr.isUrlIgnored}});Object.defineProperty(an,"urlMatches",{enumerable:!0,get:function(){return mGr.urlMatches}});var aDo=aGr();Object.defineProperty(an,"BindOnceFuture",{enumerable:!0,get:function(){return aDo.BindOnceFuture}});var cDo=lGr();Object.defineProperty(an,"diagLogLevelFromString",{enumerable:!0,get:function(){return cDo.diagLogLevelFromString}});var lDo=fGr();an.internal={_export:lDo._export}});function uDo(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function gGr(){return{handleResponse(t){t==null||!uDo(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||Sr.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var yGr=G(()=>{ut()});function kOe(t,e){return new m4t(t.transport,t.serializer,gGr(),t.promiseHandler,e.timeout)}var vB,m4t,g4t=G(()=>{vB=we(v2e());rOe();yGr();ut();m4t=class{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,r,o,s,a){this._transport=e,this._serializer=r,this._responseHandler=o,this._promiseQueue=s,this._timeout=a,this._diagLogger=Sr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,r){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){r({code:vB.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}let o=this._serializer.serializeRequest(e);if(o==null){r({code:vB.ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(o,this._timeout).then(s=>{if(s.status==="success"){if(s.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(s.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,s.data)}r({code:vB.ExportResultCode.SUCCESS});return}else if(s.status==="failure"&&s.error){r({code:vB.ExportResultCode.FAILED,error:s.error});return}else s.status==="retryable"?r({code:vB.ExportResultCode.FAILED,error:new iO("Export failed with retryable status")}):r({code:vB.ExportResultCode.FAILED,error:new iO("Export failed with unknown error")})},s=>r({code:vB.ExportResultCode.FAILED,error:s})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}});function AGr(t,e,r){return kOe({transport:r,serializer:e,promiseHandler:aOe(t)},{timeout:t.timeoutMillis})}var vGr=G(()=>{$Tt();g4t()});var bGr={};os(bGr,{CompressionAlgorithm:()=>sOe,OTLPExporterBase:()=>tOe,OTLPExporterError:()=>iO,createOtlpNetworkExportDelegate:()=>AGr,getSharedConfigurationDefaults:()=>oOe,mergeOtlpSharedConfigurationWithDefaults:()=>iOe});var EGr=G(()=>{lVr();rOe();h2e();uVr();vGr()});var y4t=E((nHc,SGr)=>{"use strict";SGr.exports=fDo;function fDo(t,e){for(var r=new Array(arguments.length-1),o=0,s=2,a=!0;s<arguments.length;)r[o++]=arguments[s++];return new Promise(function(n,c){r[o]=function(f){if(a)if(a=!1,f)c(f);else{for(var d=new Array(arguments.length-1),p=0;p<d.length;)d[p++]=arguments[p];n.apply(null,d)}};try{t.apply(e||null,r)}catch(u){a&&(a=!1,c(u))}})}});var TGr=E(CGr=>{"use strict";var BOe=CGr;BOe.length=function(e){var r=e.length;if(!r)return 0;for(var o=0;--r%4>1&&e.charAt(r)==="=";)++o;return Math.ceil(e.length*3)/4-o};var gte=new Array(64),xGr=new Array(123);for(K4=0;K4<64;)xGr[gte[K4]=K4<26?K4+65:K4<52?K4+71:K4<62?K4-4:K4-59|43]=K4++;var K4;BOe.encode=function(e,r,o){for(var s=null,a=[],i=0,n=0,c;r<o;){var u=e[r++];switch(n){case 0:a[i++]=gte[u>>2],c=(u&3)<<4,n=1;break;case 1:a[i++]=gte[c|u>>4],c=(u&15)<<2,n=2;break;case 2:a[i++]=gte[c|u>>6],a[i++]=gte[u&63],n=0;break}i>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,a)),i=0)}return n&&(a[i++]=gte[c],a[i++]=61,n===1&&(a[i++]=61)),s?(i&&s.push(String.fromCharCode.apply(String,a.slice(0,i))),s.join("")):String.fromCharCode.apply(String,a.slice(0,i))};var _Gr="invalid encoding";BOe.decode=function(e,r,o){for(var s=o,a=0,i,n=0;n<e.length;){var c=e.charCodeAt(n++);if(c===61&&a>1)break;if((c=xGr[c])===void 0)throw Error(_Gr);switch(a){case 0:i=c,a=1;break;case 1:r[o++]=i<<2|(c&48)>>4,i=c,a=2;break;case 2:r[o++]=(i&15)<<4|(c&60)>>2,i=c,a=3;break;case 3:r[o++]=(i&3)<<6|c,a=0;break}}if(a===1)throw Error(_Gr);return o-s};BOe.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var IGr=E((oHc,wGr)=>{"use strict";wGr.exports=MOe;function MOe(){this._listeners={}}MOe.prototype.on=function(e,r,o){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:r,ctx:o||this}),this};MOe.prototype.off=function(e,r){if(e===void 0)this._listeners={};else if(r===void 0)this._listeners[e]=[];else for(var o=this._listeners[e],s=0;s<o.length;)o[s].fn===r?o.splice(s,1):++s;return this};MOe.prototype.emit=function(e){var r=this._listeners[e];if(r){for(var o=[],s=1;s<arguments.length;)o.push(arguments[s++]);for(s=0;s<r.length;)r[s].fn.apply(r[s++].ctx,o)}return this}});var BGr=E((sHc,kGr)=>{"use strict";kGr.exports=DGr(DGr);function DGr(t){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),r=new Uint8Array(e.buffer),o=r[3]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3]}function a(c,u,f){e[0]=c,u[f]=r[3],u[f+1]=r[2],u[f+2]=r[1],u[f+3]=r[0]}t.writeFloatLE=o?s:a,t.writeFloatBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],e[0]}function n(c,u){return r[3]=c[u],r[2]=c[u+1],r[1]=c[u+2],r[0]=c[u+3],e[0]}t.readFloatLE=o?i:n,t.readFloatBE=o?n:i})():(function(){function e(o,s,a,i){var n=s<0?1:0;if(n&&(s=-s),s===0)o(1/s>0?0:2147483648,a,i);else if(isNaN(s))o(2143289344,a,i);else if(s>34028234663852886e22)o((n<<31|2139095040)>>>0,a,i);else if(s<11754943508222875e-54)o((n<<31|Math.round(s/1401298464324817e-60))>>>0,a,i);else{var c=Math.floor(Math.log(s)/Math.LN2),u=Math.round(s*Math.pow(2,-c)*8388608)&8388607;o((n<<31|c+127<<23|u)>>>0,a,i)}}t.writeFloatLE=e.bind(null,OGr),t.writeFloatBE=e.bind(null,RGr);function r(o,s,a){var i=o(s,a),n=(i>>31)*2+1,c=i>>>23&255,u=i&8388607;return c===255?u?NaN:n*(1/0):c===0?n*1401298464324817e-60*u:n*Math.pow(2,c-150)*(u+8388608)}t.readFloatLE=r.bind(null,NGr),t.readFloatBE=r.bind(null,PGr)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),r=new Uint8Array(e.buffer),o=r[7]===128;function s(c,u,f){e[0]=c,u[f]=r[0],u[f+1]=r[1],u[f+2]=r[2],u[f+3]=r[3],u[f+4]=r[4],u[f+5]=r[5],u[f+6]=r[6],u[f+7]=r[7]}function a(c,u,f){e[0]=c,u[f]=r[7],u[f+1]=r[6],u[f+2]=r[5],u[f+3]=r[4],u[f+4]=r[3],u[f+5]=r[2],u[f+6]=r[1],u[f+7]=r[0]}t.writeDoubleLE=o?s:a,t.writeDoubleBE=o?a:s;function i(c,u){return r[0]=c[u],r[1]=c[u+1],r[2]=c[u+2],r[3]=c[u+3],r[4]=c[u+4],r[5]=c[u+5],r[6]=c[u+6],r[7]=c[u+7],e[0]}function n(c,u){return r[7]=c[u],r[6]=c[u+1],r[5]=c[u+2],r[4]=c[u+3],r[3]=c[u+4],r[2]=c[u+5],r[1]=c[u+6],r[0]=c[u+7],e[0]}t.readDoubleLE=o?i:n,t.readDoubleBE=o?n:i})():(function(){function e(o,s,a,i,n,c){var u=i<0?1:0;if(u&&(i=-i),i===0)o(0,n,c+s),o(1/i>0?0:2147483648,n,c+a);else if(isNaN(i))o(0,n,c+s),o(2146959360,n,c+a);else if(i>17976931348623157e292)o(0,n,c+s),o((u<<31|2146435072)>>>0,n,c+a);else{var f;if(i<22250738585072014e-324)f=i/5e-324,o(f>>>0,n,c+s),o((u<<31|f/4294967296)>>>0,n,c+a);else{var d=Math.floor(Math.log(i)/Math.LN2);d===1024&&(d=1023),f=i*Math.pow(2,-d),o(f*4503599627370496>>>0,n,c+s),o((u<<31|d+1023<<20|f*1048576&1048575)>>>0,n,c+a)}}}t.writeDoubleLE=e.bind(null,OGr,0,4),t.writeDoubleBE=e.bind(null,RGr,4,0);function r(o,s,a,i,n){var c=o(i,n+s),u=o(i,n+a),f=(u>>31)*2+1,d=u>>>20&2047,p=4294967296*(u&1048575)+c;return d===2047?p?NaN:f*(1/0):d===0?f*5e-324*p:f*Math.pow(2,d-1075)*(p+4503599627370496)}t.readDoubleLE=r.bind(null,NGr,0,4),t.readDoubleBE=r.bind(null,PGr,4,0)})(),t}function OGr(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}function RGr(t,e,r){e[r]=t>>>24,e[r+1]=t>>>16&255,e[r+2]=t>>>8&255,e[r+3]=t&255}function NGr(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function PGr(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}});var A4t=E((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}});var LGr=E(MGr=>{"use strict";var v4t=MGr;v4t.length=function(e){for(var r=0,o=0,s=0;s<e.length;++s)o=e.charCodeAt(s),o<128?r+=1:o<2048?r+=2:(o&64512)===55296&&(e.charCodeAt(s+1)&64512)===56320?(++s,r+=4):r+=3;return r};v4t.read=function(e,r,o){var s=o-r;if(s<1)return"";for(var a=null,i=[],n=0,c;r<o;)c=e[r++],c<128?i[n++]=c:c>191&&c<224?i[n++]=(c&31)<<6|e[r++]&63:c>239&&c<365?(c=((c&7)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,i[n++]=55296+(c>>10),i[n++]=56320+(c&1023)):i[n++]=(c&15)<<12|(e[r++]&63)<<6|e[r++]&63,n>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),n=0);return a?(n&&a.push(String.fromCharCode.apply(String,i.slice(0,n))),a.join("")):String.fromCharCode.apply(String,i.slice(0,n))};v4t.write=function(e,r,o){for(var s=o,a,i,n=0;n<e.length;++n)a=e.charCodeAt(n),a<128?r[o++]=a:a<2048?(r[o++]=a>>6|192,r[o++]=a&63|128):(a&64512)===55296&&((i=e.charCodeAt(n+1))&64512)===56320?(a=65536+((a&1023)<<10)+(i&1023),++n,r[o++]=a>>18|240,r[o++]=a>>12&63|128,r[o++]=a>>6&63|128,r[o++]=a&63|128):(r[o++]=a>>12|224,r[o++]=a>>6&63|128,r[o++]=a&63|128);return o-s}});var FGr=E((cHc,UGr)=>{"use strict";UGr.exports=dDo;function dDo(t,e,r){var o=r||8192,s=o>>>1,a=null,i=o;return function(c){if(c<1||c>s)return t(c);i+c>o&&(a=t(o),i=0);var u=e.call(a,i,i+=c);return i&7&&(i=(i|7)+1),u}}});var qGr=E((lHc,QGr)=>{"use strict";QGr.exports=s0;var b2e=K5();function s0(t,e){this.lo=t>>>0,this.hi=e>>>0}var cV=s0.zero=new s0(0,0);cV.toNumber=function(){return 0};cV.zzEncode=cV.zzDecode=function(){return this};cV.length=function(){return 1};var pDo=s0.zeroHash="\0\0\0\0\0\0\0\0";s0.fromNumber=function(e){if(e===0)return cV;var r=e<0;r&&(e=-e);var o=e>>>0,s=(e-o)/4294967296>>>0;return r&&(s=~s>>>0,o=~o>>>0,++o>4294967295&&(o=0,++s>4294967295&&(s=0))),new s0(o,s)};s0.from=function(e){if(typeof e=="number")return s0.fromNumber(e);if(b2e.isString(e))if(b2e.Long)e=b2e.Long.fromString(e);else return s0.fromNumber(parseInt(e,10));return e.low||e.high?new s0(e.low>>>0,e.high>>>0):cV};s0.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var r=~this.lo+1>>>0,o=~this.hi>>>0;return r||(o=o+1>>>0),-(r+o*4294967296)}return this.lo+this.hi*4294967296};s0.prototype.toLong=function(e){return b2e.Long?new b2e.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var bB=String.prototype.charCodeAt;s0.fromHash=function(e){return e===pDo?cV:new s0((bB.call(e,0)|bB.call(e,1)<<8|bB.call(e,2)<<16|bB.call(e,3)<<24)>>>0,(bB.call(e,4)|bB.call(e,5)<<8|bB.call(e,6)<<16|bB.call(e,7)<<24)>>>0)};s0.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};s0.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};s0.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};s0.prototype.length=function(){var e=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,o=this.hi>>>24;return o===0?r===0?e<16384?e<128?1:2:e<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:o<128?9:10}});var K5=E(b4t=>{"use strict";var bo=b4t;bo.asPromise=y4t();bo.base64=TGr();bo.EventEmitter=IGr();bo.float=BGr();bo.inquire=A4t();bo.utf8=LGr();bo.pool=FGr();bo.LongBits=qGr();bo.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);bo.global=bo.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||b4t;bo.emptyArray=Object.freeze?Object.freeze([]):[];bo.emptyObject=Object.freeze?Object.freeze({}):{};bo.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};bo.isString=function(e){return typeof e=="string"||e instanceof String};bo.isObject=function(e){return e&&typeof e=="object"};bo.isset=bo.isSet=function(e,r){var o=e[r];return o!=null&&e.hasOwnProperty(r)?typeof o!="object"||(Array.isArray(o)?o.length:Object.keys(o).length)>0:!1};bo.Buffer=(function(){try{var t=bo.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch{return null}})();bo._Buffer_from=null;bo._Buffer_allocUnsafe=null;bo.newBuffer=function(e){return typeof e=="number"?bo.Buffer?bo._Buffer_allocUnsafe(e):new bo.Array(e):bo.Buffer?bo._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};bo.Array=typeof Uint8Array<"u"?Uint8Array:Array;bo.Long=bo.global.dcodeIO&&bo.global.dcodeIO.Long||bo.global.Long||bo.inquire("long");bo.key2Re=/^true|false|0|1$/;bo.key32Re=/^-?(?:0|[1-9][0-9]*)$/;bo.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;bo.longToHash=function(e){return e?bo.LongBits.from(e).toHash():bo.LongBits.zeroHash};bo.longFromHash=function(e,r){var o=bo.LongBits.fromHash(e);return bo.Long?bo.Long.fromBits(o.lo,o.hi,r):o.toNumber(!!r)};function HGr(t,e,r){for(var o=Object.keys(e),s=0;s<o.length;++s)(t[o[s]]===void 0||!r)&&(t[o[s]]=e[o[s]]);return t}bo.merge=HGr;bo.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function VGr(t){function e(r,o){if(!(this instanceof e))return new e(r,o);Object.defineProperty(this,"message",{get:function(){return r}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),o&&HGr(this,o)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}bo.newError=VGr;bo.ProtocolError=VGr("ProtocolError");bo.oneOfGetter=function(e){for(var r={},o=0;o<e.length;++o)r[e[o]]=1;return function(){for(var s=Object.keys(this),a=s.length-1;a>-1;--a)if(r[s[a]]===1&&this[s[a]]!==void 0&&this[s[a]]!==null)return s[a]}};bo.oneOfSetter=function(e){return function(r){for(var o=0;o<e.length;++o)e[o]!==r&&delete this[e[o]]}};bo.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};bo._configure=function(){var t=bo.Buffer;if(!t){bo._Buffer_from=bo._Buffer_allocUnsafe=null;return}bo._Buffer_from=t.from!==Uint8Array.from&&t.from||function(r,o){return new t(r,o)},bo._Buffer_allocUnsafe=t.allocUnsafe||function(r){return new t(r)}}});var UOe=E((fHc,WGr)=>{"use strict";WGr.exports=ll;var X_=K5(),E4t,LOe=X_.LongBits,GGr=X_.base64,jGr=X_.utf8;function E2e(t,e,r){this.fn=t,this.len=e,this.next=void 0,this.val=r}function _4t(){}function hDo(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function ll(){this.len=0,this.head=new E2e(_4t,0,0),this.tail=this.head,this.states=null}var $Gr=function(){return X_.Buffer?function(){return(ll.create=function(){return new E4t})()}:function(){return new ll}};ll.create=$Gr();ll.alloc=function(e){return new X_.Array(e)};X_.Array!==Array&&(ll.alloc=X_.pool(ll.alloc,X_.Array.prototype.subarray));ll.prototype._push=function(e,r,o){return this.tail=this.tail.next=new E2e(e,r,o),this.len+=r,this};function x4t(t,e,r){e[r]=t&255}function mDo(t,e,r){for(;t>127;)e[r++]=t&127|128,t>>>=7;e[r]=t}function C4t(t,e){this.len=t,this.next=void 0,this.val=e}C4t.prototype=Object.create(E2e.prototype);C4t.prototype.fn=mDo;ll.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new C4t((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};ll.prototype.int32=function(e){return e<0?this._push(T4t,10,LOe.fromNumber(e)):this.uint32(e)};ll.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function T4t(t,e,r){for(;t.hi;)e[r++]=t.lo&127|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[r++]=t.lo&127|128,t.lo=t.lo>>>7;e[r++]=t.lo}ll.prototype.uint64=function(e){var r=LOe.from(e);return this._push(T4t,r.length(),r)};ll.prototype.int64=ll.prototype.uint64;ll.prototype.sint64=function(e){var r=LOe.from(e).zzEncode();return this._push(T4t,r.length(),r)};ll.prototype.bool=function(e){return this._push(x4t,1,e?1:0)};function S4t(t,e,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24}ll.prototype.fixed32=function(e){return this._push(S4t,4,e>>>0)};ll.prototype.sfixed32=ll.prototype.fixed32;ll.prototype.fixed64=function(e){var r=LOe.from(e);return this._push(S4t,4,r.lo)._push(S4t,4,r.hi)};ll.prototype.sfixed64=ll.prototype.fixed64;ll.prototype.float=function(e){return this._push(X_.float.writeFloatLE,4,e)};ll.prototype.double=function(e){return this._push(X_.float.writeDoubleLE,8,e)};var gDo=X_.Array.prototype.set?function(e,r,o){r.set(e,o)}:function(e,r,o){for(var s=0;s<e.length;++s)r[o+s]=e[s]};ll.prototype.bytes=function(e){var r=e.length>>>0;if(!r)return this._push(x4t,1,0);if(X_.isString(e)){var o=ll.alloc(r=GGr.length(e));GGr.decode(e,o,0),e=o}return this.uint32(r)._push(gDo,r,e)};ll.prototype.string=function(e){var r=jGr.length(e);return r?this.uint32(r)._push(jGr.write,r,e):this._push(x4t,1,0)};ll.prototype.fork=function(){return this.states=new hDo(this),this.head=this.tail=new E2e(_4t,0,0),this.len=0,this};ll.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new E2e(_4t,0,0),this.len=0),this};ll.prototype.ldelim=function(){var e=this.head,r=this.tail,o=this.len;return this.reset().uint32(o),o&&(this.tail.next=e.next,this.tail=r,this.len+=o),this};ll.prototype.finish=function(){for(var e=this.head.next,r=this.constructor.alloc(this.len),o=0;e;)e.fn(e.val,r,o),o+=e.len,e=e.next;return r};ll._configure=function(t){E4t=t,ll.create=$Gr(),E4t._configure()}});var YGr=E((dHc,KGr)=>{"use strict";KGr.exports=Y5;var zGr=UOe();(Y5.prototype=Object.create(zGr.prototype)).constructor=Y5;var EB=K5();function Y5(){zGr.call(this)}Y5._configure=function(){Y5.alloc=EB._Buffer_allocUnsafe,Y5.writeBytesBuffer=EB.Buffer&&EB.Buffer.prototype instanceof Uint8Array&&EB.Buffer.prototype.set.name==="set"?function(e,r,o){r.set(e,o)}:function(e,r,o){if(e.copy)e.copy(r,o,0,e.length);else for(var s=0;s<e.length;)r[o++]=e[s++]}};Y5.prototype.bytes=function(e){EB.isString(e)&&(e=EB._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(Y5.writeBytesBuffer,r,e),this};function yDo(t,e,r){t.length<40?EB.utf8.write(t,e,r):e.utf8Write?e.utf8Write(t,r):e.write(t,r)}Y5.prototype.string=function(e){var r=EB.Buffer.byteLength(e);return this.uint32(r),r&&this._push(yDo,r,e),this};Y5._configure()});var QOe=E((pHc,tjr)=>{"use strict";tjr.exports=Mh;var Y4=K5(),I4t,ZGr=Y4.LongBits,ADo=Y4.utf8;function J4(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function Mh(t){this.buf=t,this.pos=0,this.len=t.length}var JGr=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Mh(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Mh(e);throw Error("illegal buffer")},ejr=function(){return Y4.Buffer?function(r){return(Mh.create=function(s){return Y4.Buffer.isBuffer(s)?new I4t(s):JGr(s)})(r)}:JGr};Mh.create=ejr();Mh.prototype._slice=Y4.Array.prototype.subarray||Y4.Array.prototype.slice;Mh.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,J4(this,10);return e}})();Mh.prototype.int32=function(){return this.uint32()|0};Mh.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function w4t(){var t=new ZGr(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(this.buf[this.pos]&127)<<28)>>>0,t.hi=(t.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw J4(this);if(t.lo=(t.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw J4(this);if(t.hi=(t.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}Mh.prototype.bool=function(){return this.uint32()!==0};function FOe(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}Mh.prototype.fixed32=function(){if(this.pos+4>this.len)throw J4(this,4);return FOe(this.buf,this.pos+=4)};Mh.prototype.sfixed32=function(){if(this.pos+4>this.len)throw J4(this,4);return FOe(this.buf,this.pos+=4)|0};function XGr(){if(this.pos+8>this.len)throw J4(this,8);return new ZGr(FOe(this.buf,this.pos+=4),FOe(this.buf,this.pos+=4))}Mh.prototype.float=function(){if(this.pos+4>this.len)throw J4(this,4);var e=Y4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Mh.prototype.double=function(){if(this.pos+8>this.len)throw J4(this,4);var e=Y4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Mh.prototype.bytes=function(){var e=this.uint32(),r=this.pos,o=this.pos+e;if(o>this.len)throw J4(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(r,o);if(r===o){var s=Y4.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,o)};Mh.prototype.string=function(){var e=this.bytes();return ADo.read(e,0,e.length)};Mh.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw J4(this,e);this.pos+=e}else do if(this.pos>=this.len)throw J4(this);while(this.buf[this.pos++]&128);return this};Mh.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t=this.uint32()&7)!==4;)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this};Mh._configure=function(t){I4t=t,Mh.create=ejr(),I4t._configure();var e=Y4.Long?"toLong":"toNumber";Y4.merge(Mh.prototype,{int64:function(){return w4t.call(this)[e](!1)},uint64:function(){return w4t.call(this)[e](!0)},sint64:function(){return w4t.call(this).zzDecode()[e](!1)},fixed64:function(){return XGr.call(this)[e](!0)},sfixed64:function(){return XGr.call(this)[e](!1)}})}});var ojr=E((hHc,ijr)=>{"use strict";ijr.exports=lV;var njr=QOe();(lV.prototype=Object.create(njr.prototype)).constructor=lV;var rjr=K5();function lV(t){njr.call(this,t)}lV._configure=function(){rjr.Buffer&&(lV.prototype._slice=rjr.Buffer.prototype.slice)};lV.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};lV._configure()});var ajr=E((mHc,sjr)=>{"use strict";sjr.exports=S2e;var D4t=K5();(S2e.prototype=Object.create(D4t.EventEmitter.prototype)).constructor=S2e;function S2e(t,e,r){if(typeof t!="function")throw TypeError("rpcImpl must be a function");D4t.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!r}S2e.prototype.rpcCall=function t(e,r,o,s,a){if(!s)throw TypeError("request must be specified");var i=this;if(!a)return D4t.asPromise(t,i,e,r,o,s);if(!i.rpcImpl){setTimeout(function(){a(Error("already ended"))},0);return}try{return i.rpcImpl(e,r[i.requestDelimited?"encodeDelimited":"encode"](s).finish(),function(c,u){if(c)return i.emit("error",c,e),a(c);if(u===null){i.end(!0);return}if(!(u instanceof o))try{u=o[i.responseDelimited?"decodeDelimited":"decode"](u)}catch(f){return i.emit("error",f,e),a(f)}return i.emit("data",u,e),a(null,u)})}catch(n){i.emit("error",n,e),setTimeout(function(){a(n)},0);return}};S2e.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var O4t=E(cjr=>{"use strict";var vDo=cjr;vDo.Service=ajr()});var R4t=E((yHc,ljr)=>{"use strict";ljr.exports={}});var N4t=E(fjr=>{"use strict";var kv=fjr;kv.build="minimal";kv.Writer=UOe();kv.BufferWriter=YGr();kv.Reader=QOe();kv.BufferReader=ojr();kv.util=K5();kv.rpc=O4t();kv.roots=R4t();kv.configure=ujr;function ujr(){kv.util._configure(),kv.Writer._configure(kv.BufferWriter),kv.Reader._configure(kv.BufferReader)}ujr()});var J5=E((vHc,djr)=>{"use strict";djr.exports=N4t()});var qOe=E((pjr,hjr)=>{"use strict";Object.defineProperty(pjr,"__esModule",{value:!0});var Lo=J5(),Kt=Lo.Reader,oa=Lo.Writer,$e=Lo.util,Be=Lo.roots.default||(Lo.roots.default={});Be.opentelemetry=(function(){var t={};return t.proto=(function(){var e={};return e.common=(function(){var r={};return r.v1=(function(){var o={};return o.AnyValue=(function(){function s(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.stringValue=null,s.prototype.boolValue=null,s.prototype.intValue=null,s.prototype.doubleValue=null,s.prototype.arrayValue=null,s.prototype.kvlistValue=null,s.prototype.bytesValue=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){return c||(c=oa.create()),n.stringValue!=null&&Object.hasOwnProperty.call(n,"stringValue")&&c.uint32(10).string(n.stringValue),n.boolValue!=null&&Object.hasOwnProperty.call(n,"boolValue")&&c.uint32(16).bool(n.boolValue),n.intValue!=null&&Object.hasOwnProperty.call(n,"intValue")&&c.uint32(24).int64(n.intValue),n.doubleValue!=null&&Object.hasOwnProperty.call(n,"doubleValue")&&c.uint32(33).double(n.doubleValue),n.arrayValue!=null&&Object.hasOwnProperty.call(n,"arrayValue")&&Be.opentelemetry.proto.common.v1.ArrayValue.encode(n.arrayValue,c.uint32(42).fork()).ldelim(),n.kvlistValue!=null&&Object.hasOwnProperty.call(n,"kvlistValue")&&Be.opentelemetry.proto.common.v1.KeyValueList.encode(n.kvlistValue,c.uint32(50).fork()).ldelim(),n.bytesValue!=null&&Object.hasOwnProperty.call(n,"bytesValue")&&c.uint32(58).bytes(n.bytesValue),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.common.v1.AnyValue;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.stringValue=n.string();break}case 2:{d.boolValue=n.bool();break}case 3:{d.intValue=n.int64();break}case 4:{d.doubleValue=n.double();break}case 5:{d.arrayValue=Be.opentelemetry.proto.common.v1.ArrayValue.decode(n,n.uint32());break}case 6:{d.kvlistValue=Be.opentelemetry.proto.common.v1.KeyValueList.decode(n,n.uint32());break}case 7:{d.bytesValue=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(c.value=1,!$e.isString(n.stringValue)))return"stringValue: string expected";if(n.boolValue!=null&&n.hasOwnProperty("boolValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.boolValue!="boolean")return"boolValue: boolean expected"}if(n.intValue!=null&&n.hasOwnProperty("intValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.intValue)&&!(n.intValue&&$e.isInteger(n.intValue.low)&&$e.isInteger(n.intValue.high)))return"intValue: integer|Long expected"}if(n.doubleValue!=null&&n.hasOwnProperty("doubleValue")){if(c.value===1)return"value: multiple values";if(c.value=1,typeof n.doubleValue!="number")return"doubleValue: number expected"}if(n.arrayValue!=null&&n.hasOwnProperty("arrayValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=Be.opentelemetry.proto.common.v1.ArrayValue.verify(n.arrayValue);if(u)return"arrayValue."+u}}if(n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")){if(c.value===1)return"value: multiple values";c.value=1;{var u=Be.opentelemetry.proto.common.v1.KeyValueList.verify(n.kvlistValue);if(u)return"kvlistValue."+u}}if(n.bytesValue!=null&&n.hasOwnProperty("bytesValue")){if(c.value===1)return"value: multiple values";if(c.value=1,!(n.bytesValue&&typeof n.bytesValue.length=="number"||$e.isString(n.bytesValue)))return"bytesValue: buffer expected"}return null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.common.v1.AnyValue)return n;var c=new Be.opentelemetry.proto.common.v1.AnyValue;if(n.stringValue!=null&&(c.stringValue=String(n.stringValue)),n.boolValue!=null&&(c.boolValue=!!n.boolValue),n.intValue!=null&&($e.Long?(c.intValue=$e.Long.fromValue(n.intValue)).unsigned=!1:typeof n.intValue=="string"?c.intValue=parseInt(n.intValue,10):typeof n.intValue=="number"?c.intValue=n.intValue:typeof n.intValue=="object"&&(c.intValue=new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber())),n.doubleValue!=null&&(c.doubleValue=Number(n.doubleValue)),n.arrayValue!=null){if(typeof n.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");c.arrayValue=Be.opentelemetry.proto.common.v1.ArrayValue.fromObject(n.arrayValue)}if(n.kvlistValue!=null){if(typeof n.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");c.kvlistValue=Be.opentelemetry.proto.common.v1.KeyValueList.fromObject(n.kvlistValue)}return n.bytesValue!=null&&(typeof n.bytesValue=="string"?$e.base64.decode(n.bytesValue,c.bytesValue=$e.newBuffer($e.base64.length(n.bytesValue)),0):n.bytesValue.length>=0&&(c.bytesValue=n.bytesValue)),c},s.toObject=function(n,c){c||(c={});var u={};return n.stringValue!=null&&n.hasOwnProperty("stringValue")&&(u.stringValue=n.stringValue,c.oneofs&&(u.value="stringValue")),n.boolValue!=null&&n.hasOwnProperty("boolValue")&&(u.boolValue=n.boolValue,c.oneofs&&(u.value="boolValue")),n.intValue!=null&&n.hasOwnProperty("intValue")&&(typeof n.intValue=="number"?u.intValue=c.longs===String?String(n.intValue):n.intValue:u.intValue=c.longs===String?$e.Long.prototype.toString.call(n.intValue):c.longs===Number?new $e.LongBits(n.intValue.low>>>0,n.intValue.high>>>0).toNumber():n.intValue,c.oneofs&&(u.value="intValue")),n.doubleValue!=null&&n.hasOwnProperty("doubleValue")&&(u.doubleValue=c.json&&!isFinite(n.doubleValue)?String(n.doubleValue):n.doubleValue,c.oneofs&&(u.value="doubleValue")),n.arrayValue!=null&&n.hasOwnProperty("arrayValue")&&(u.arrayValue=Be.opentelemetry.proto.common.v1.ArrayValue.toObject(n.arrayValue,c),c.oneofs&&(u.value="arrayValue")),n.kvlistValue!=null&&n.hasOwnProperty("kvlistValue")&&(u.kvlistValue=Be.opentelemetry.proto.common.v1.KeyValueList.toObject(n.kvlistValue,c),c.oneofs&&(u.value="kvlistValue")),n.bytesValue!=null&&n.hasOwnProperty("bytesValue")&&(u.bytesValue=c.bytes===String?$e.base64.encode(n.bytesValue,0,n.bytesValue.length):c.bytes===Array?Array.prototype.slice.call(n.bytesValue):n.bytesValue,c.oneofs&&(u.value="bytesValue")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.common.v1.AnyValue"},s})(),o.ArrayValue=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)Be.opentelemetry.proto.common.v1.AnyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.ArrayValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.ArrayValue)return i;var n=new Be.opentelemetry.proto.common.v1.ArrayValue;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");n.values[c]=Be.opentelemetry.proto.common.v1.AnyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=Be.opentelemetry.proto.common.v1.AnyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.ArrayValue"},s})(),o.KeyValueList=(function(){function s(a){if(this.values=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.values=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.values!=null&&i.values.length)for(var c=0;c<i.values.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.values[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.KeyValueList;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.values&&f.values.length||(f.values=[]),f.values.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.values!=null&&i.hasOwnProperty("values")){if(!Array.isArray(i.values))return"values: array expected";for(var n=0;n<i.values.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.values[n]);if(c)return"values."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValueList)return i;var n=new Be.opentelemetry.proto.common.v1.KeyValueList;if(i.values){if(!Array.isArray(i.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");n.values=[];for(var c=0;c<i.values.length;++c){if(typeof i.values[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");n.values[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.values[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.values=[]),i.values&&i.values.length){c.values=[];for(var u=0;u<i.values.length;++u)c.values[u]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.values[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValueList"},s})(),o.KeyValue=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.key=null,s.prototype.value=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=oa.create()),i.key!=null&&Object.hasOwnProperty.call(i,"key")&&n.uint32(10).string(i.key),i.value!=null&&Object.hasOwnProperty.call(i,"value")&&Be.opentelemetry.proto.common.v1.AnyValue.encode(i.value,n.uint32(18).fork()).ldelim(),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.KeyValue;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.key=i.string();break}case 2:{f.value=Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.key!=null&&i.hasOwnProperty("key")&&!$e.isString(i.key))return"key: string expected";if(i.value!=null&&i.hasOwnProperty("value")){var n=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.value);if(n)return"value."+n}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.KeyValue)return i;var n=new Be.opentelemetry.proto.common.v1.KeyValue;if(i.key!=null&&(n.key=String(i.key)),i.value!=null){if(typeof i.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");n.value=Be.opentelemetry.proto.common.v1.AnyValue.fromObject(i.value)}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.key="",c.value=null),i.key!=null&&i.hasOwnProperty("key")&&(c.key=i.key),i.value!=null&&i.hasOwnProperty("value")&&(c.value=Be.opentelemetry.proto.common.v1.AnyValue.toObject(i.value,n)),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.KeyValue"},s})(),o.InstrumentationScope=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.name=null,s.prototype.version=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(10).string(i.name),i.version!=null&&Object.hasOwnProperty.call(i,"version")&&n.uint32(18).string(i.version),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(26).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(32).uint32(i.droppedAttributesCount),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.InstrumentationScope;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.name=i.string();break}case 2:{f.version=i.string();break}case 3:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 4:{f.droppedAttributesCount=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.version!=null&&i.hasOwnProperty("version")&&!$e.isString(i.version))return"version: string expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.InstrumentationScope)return i;var n=new Be.opentelemetry.proto.common.v1.InstrumentationScope;if(i.name!=null&&(n.name=String(i.name)),i.version!=null&&(n.version=String(i.version)),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults&&(c.name="",c.version="",c.droppedAttributesCount=0),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.version!=null&&i.hasOwnProperty("version")&&(c.version=i.version),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.InstrumentationScope"},s})(),o.EntityRef=(function(){function s(a){if(this.idKeys=[],this.descriptionKeys=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.schemaUrl=null,s.prototype.type=null,s.prototype.idKeys=$e.emptyArray,s.prototype.descriptionKeys=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(10).string(i.schemaUrl),i.type!=null&&Object.hasOwnProperty.call(i,"type")&&n.uint32(18).string(i.type),i.idKeys!=null&&i.idKeys.length)for(var c=0;c<i.idKeys.length;++c)n.uint32(26).string(i.idKeys[c]);if(i.descriptionKeys!=null&&i.descriptionKeys.length)for(var c=0;c<i.descriptionKeys.length;++c)n.uint32(34).string(i.descriptionKeys[c]);return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.common.v1.EntityRef;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.schemaUrl=i.string();break}case 2:{f.type=i.string();break}case 3:{f.idKeys&&f.idKeys.length||(f.idKeys=[]),f.idKeys.push(i.string());break}case 4:{f.descriptionKeys&&f.descriptionKeys.length||(f.descriptionKeys=[]),f.descriptionKeys.push(i.string());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl))return"schemaUrl: string expected";if(i.type!=null&&i.hasOwnProperty("type")&&!$e.isString(i.type))return"type: string expected";if(i.idKeys!=null&&i.hasOwnProperty("idKeys")){if(!Array.isArray(i.idKeys))return"idKeys: array expected";for(var n=0;n<i.idKeys.length;++n)if(!$e.isString(i.idKeys[n]))return"idKeys: string[] expected"}if(i.descriptionKeys!=null&&i.hasOwnProperty("descriptionKeys")){if(!Array.isArray(i.descriptionKeys))return"descriptionKeys: array expected";for(var n=0;n<i.descriptionKeys.length;++n)if(!$e.isString(i.descriptionKeys[n]))return"descriptionKeys: string[] expected"}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.common.v1.EntityRef)return i;var n=new Be.opentelemetry.proto.common.v1.EntityRef;if(i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),i.type!=null&&(n.type=String(i.type)),i.idKeys){if(!Array.isArray(i.idKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.idKeys: array expected");n.idKeys=[];for(var c=0;c<i.idKeys.length;++c)n.idKeys[c]=String(i.idKeys[c])}if(i.descriptionKeys){if(!Array.isArray(i.descriptionKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected");n.descriptionKeys=[];for(var c=0;c<i.descriptionKeys.length;++c)n.descriptionKeys[c]=String(i.descriptionKeys[c])}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.idKeys=[],c.descriptionKeys=[]),n.defaults&&(c.schemaUrl="",c.type=""),i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),i.type!=null&&i.hasOwnProperty("type")&&(c.type=i.type),i.idKeys&&i.idKeys.length){c.idKeys=[];for(var u=0;u<i.idKeys.length;++u)c.idKeys[u]=i.idKeys[u]}if(i.descriptionKeys&&i.descriptionKeys.length){c.descriptionKeys=[];for(var u=0;u<i.descriptionKeys.length;++u)c.descriptionKeys[u]=i.descriptionKeys[u]}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.common.v1.EntityRef"},s})(),o})(),r})(),e.resource=(function(){var r={};return r.v1=(function(){var o={};return o.Resource=(function(){function s(a){if(this.attributes=[],this.entityRefs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.entityRefs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(10).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(16).uint32(i.droppedAttributesCount),i.entityRefs!=null&&i.entityRefs.length)for(var c=0;c<i.entityRefs.length;++c)Be.opentelemetry.proto.common.v1.EntityRef.encode(i.entityRefs[c],n.uint32(26).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.resource.v1.Resource;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.droppedAttributesCount=i.uint32();break}case 3:{f.entityRefs&&f.entityRefs.length||(f.entityRefs=[]),f.entityRefs.push(Be.opentelemetry.proto.common.v1.EntityRef.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.entityRefs!=null&&i.hasOwnProperty("entityRefs")){if(!Array.isArray(i.entityRefs))return"entityRefs: array expected";for(var n=0;n<i.entityRefs.length;++n){var c=Be.opentelemetry.proto.common.v1.EntityRef.verify(i.entityRefs[n]);if(c)return"entityRefs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.resource.v1.Resource)return i;var n=new Be.opentelemetry.proto.resource.v1.Resource;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.entityRefs){if(!Array.isArray(i.entityRefs))throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: array expected");n.entityRefs=[];for(var c=0;c<i.entityRefs.length;++c){if(typeof i.entityRefs[c]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: object expected");n.entityRefs[c]=Be.opentelemetry.proto.common.v1.EntityRef.fromObject(i.entityRefs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.entityRefs=[]),n.defaults&&(c.droppedAttributesCount=0),i.attributes&&i.attributes.length){c.attributes=[];for(var u=0;u<i.attributes.length;++u)c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[u],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.entityRefs&&i.entityRefs.length){c.entityRefs=[];for(var u=0;u<i.entityRefs.length;++u)c.entityRefs[u]=Be.opentelemetry.proto.common.v1.EntityRef.toObject(i.entityRefs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.resource.v1.Resource"},s})(),o})(),r})(),e.trace=(function(){var r={};return r.v1=(function(){var o={};return o.TracesData=(function(){function s(a){if(this.resourceSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceSpans=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resourceSpans!=null&&i.resourceSpans.length)for(var c=0;c<i.resourceSpans.length;++c)Be.opentelemetry.proto.trace.v1.ResourceSpans.encode(i.resourceSpans[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.TracesData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceSpans&&f.resourceSpans.length||(f.resourceSpans=[]),f.resourceSpans.push(Be.opentelemetry.proto.trace.v1.ResourceSpans.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceSpans!=null&&i.hasOwnProperty("resourceSpans")){if(!Array.isArray(i.resourceSpans))return"resourceSpans: array expected";for(var n=0;n<i.resourceSpans.length;++n){var c=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(i.resourceSpans[n]);if(c)return"resourceSpans."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.TracesData)return i;var n=new Be.opentelemetry.proto.trace.v1.TracesData;if(i.resourceSpans){if(!Array.isArray(i.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");n.resourceSpans=[];for(var c=0;c<i.resourceSpans.length;++c){if(typeof i.resourceSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");n.resourceSpans[c]=Be.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(i.resourceSpans[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceSpans=[]),i.resourceSpans&&i.resourceSpans.length){c.resourceSpans=[];for(var u=0;u<i.resourceSpans.length;++u)c.resourceSpans[u]=Be.opentelemetry.proto.trace.v1.ResourceSpans.toObject(i.resourceSpans[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.TracesData"},s})(),o.ResourceSpans=(function(){function s(a){if(this.scopeSpans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeSpans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&Be.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeSpans!=null&&i.scopeSpans.length)for(var c=0;c<i.scopeSpans.length;++c)Be.opentelemetry.proto.trace.v1.ScopeSpans.encode(i.scopeSpans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.ResourceSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeSpans&&f.scopeSpans.length||(f.scopeSpans=[]),f.scopeSpans.push(Be.opentelemetry.proto.trace.v1.ScopeSpans.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=Be.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeSpans!=null&&i.hasOwnProperty("scopeSpans")){if(!Array.isArray(i.scopeSpans))return"scopeSpans: array expected";for(var c=0;c<i.scopeSpans.length;++c){var n=Be.opentelemetry.proto.trace.v1.ScopeSpans.verify(i.scopeSpans[c]);if(n)return"scopeSpans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.ResourceSpans)return i;var n=new Be.opentelemetry.proto.trace.v1.ResourceSpans;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");n.resource=Be.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeSpans){if(!Array.isArray(i.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");n.scopeSpans=[];for(var c=0;c<i.scopeSpans.length;++c){if(typeof i.scopeSpans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");n.scopeSpans[c]=Be.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(i.scopeSpans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeSpans=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=Be.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeSpans&&i.scopeSpans.length){c.scopeSpans=[];for(var u=0;u<i.scopeSpans.length;++u)c.scopeSpans[u]=Be.opentelemetry.proto.trace.v1.ScopeSpans.toObject(i.scopeSpans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ResourceSpans"},s})(),o.ScopeSpans=(function(){function s(a){if(this.spans=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.spans=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&Be.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.spans!=null&&i.spans.length)for(var c=0;c<i.spans.length;++c)Be.opentelemetry.proto.trace.v1.Span.encode(i.spans[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.ScopeSpans;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.spans&&f.spans.length||(f.spans=[]),f.spans.push(Be.opentelemetry.proto.trace.v1.Span.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=Be.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.spans!=null&&i.hasOwnProperty("spans")){if(!Array.isArray(i.spans))return"spans: array expected";for(var c=0;c<i.spans.length;++c){var n=Be.opentelemetry.proto.trace.v1.Span.verify(i.spans[c]);if(n)return"spans."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.ScopeSpans)return i;var n=new Be.opentelemetry.proto.trace.v1.ScopeSpans;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");n.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.spans){if(!Array.isArray(i.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");n.spans=[];for(var c=0;c<i.spans.length;++c){if(typeof i.spans[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");n.spans[c]=Be.opentelemetry.proto.trace.v1.Span.fromObject(i.spans[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.spans=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.spans&&i.spans.length){c.spans=[];for(var u=0;u<i.spans.length;++u)c.spans[u]=Be.opentelemetry.proto.trace.v1.Span.toObject(i.spans[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.ScopeSpans"},s})(),o.Span=(function(){function s(a){if(this.attributes=[],this.events=[],this.links=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.parentSpanId=null,s.prototype.flags=null,s.prototype.name=null,s.prototype.kind=null,s.prototype.startTimeUnixNano=null,s.prototype.endTimeUnixNano=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.events=$e.emptyArray,s.prototype.droppedEventsCount=null,s.prototype.links=$e.emptyArray,s.prototype.droppedLinksCount=null,s.prototype.status=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(10).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(18).bytes(i.spanId),i.traceState!=null&&Object.hasOwnProperty.call(i,"traceState")&&n.uint32(26).string(i.traceState),i.parentSpanId!=null&&Object.hasOwnProperty.call(i,"parentSpanId")&&n.uint32(34).bytes(i.parentSpanId),i.name!=null&&Object.hasOwnProperty.call(i,"name")&&n.uint32(42).string(i.name),i.kind!=null&&Object.hasOwnProperty.call(i,"kind")&&n.uint32(48).int32(i.kind),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(57).fixed64(i.startTimeUnixNano),i.endTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"endTimeUnixNano")&&n.uint32(65).fixed64(i.endTimeUnixNano),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(74).fork()).ldelim();if(i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(80).uint32(i.droppedAttributesCount),i.events!=null&&i.events.length)for(var c=0;c<i.events.length;++c)Be.opentelemetry.proto.trace.v1.Span.Event.encode(i.events[c],n.uint32(90).fork()).ldelim();if(i.droppedEventsCount!=null&&Object.hasOwnProperty.call(i,"droppedEventsCount")&&n.uint32(96).uint32(i.droppedEventsCount),i.links!=null&&i.links.length)for(var c=0;c<i.links.length;++c)Be.opentelemetry.proto.trace.v1.Span.Link.encode(i.links[c],n.uint32(106).fork()).ldelim();return i.droppedLinksCount!=null&&Object.hasOwnProperty.call(i,"droppedLinksCount")&&n.uint32(112).uint32(i.droppedLinksCount),i.status!=null&&Object.hasOwnProperty.call(i,"status")&&Be.opentelemetry.proto.trace.v1.Status.encode(i.status,n.uint32(122).fork()).ldelim(),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(133).fixed32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.Span;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.traceId=i.bytes();break}case 2:{f.spanId=i.bytes();break}case 3:{f.traceState=i.string();break}case 4:{f.parentSpanId=i.bytes();break}case 16:{f.flags=i.fixed32();break}case 5:{f.name=i.string();break}case 6:{f.kind=i.int32();break}case 7:{f.startTimeUnixNano=i.fixed64();break}case 8:{f.endTimeUnixNano=i.fixed64();break}case 9:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 10:{f.droppedAttributesCount=i.uint32();break}case 11:{f.events&&f.events.length||(f.events=[]),f.events.push(Be.opentelemetry.proto.trace.v1.Span.Event.decode(i,i.uint32()));break}case 12:{f.droppedEventsCount=i.uint32();break}case 13:{f.links&&f.links.length||(f.links=[]),f.links.push(Be.opentelemetry.proto.trace.v1.Span.Link.decode(i,i.uint32()));break}case 14:{f.droppedLinksCount=i.uint32();break}case 15:{f.status=Be.opentelemetry.proto.trace.v1.Status.decode(i,i.uint32());break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId)))return"traceId: buffer expected";if(i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId)))return"spanId: buffer expected";if(i.traceState!=null&&i.hasOwnProperty("traceState")&&!$e.isString(i.traceState))return"traceState: string expected";if(i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&!(i.parentSpanId&&typeof i.parentSpanId.length=="number"||$e.isString(i.parentSpanId)))return"parentSpanId: buffer expected";if(i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags))return"flags: integer expected";if(i.name!=null&&i.hasOwnProperty("name")&&!$e.isString(i.name))return"name: string expected";if(i.kind!=null&&i.hasOwnProperty("kind"))switch(i.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&!$e.isInteger(i.endTimeUnixNano)&&!(i.endTimeUnixNano&&$e.isInteger(i.endTimeUnixNano.low)&&$e.isInteger(i.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(i.events!=null&&i.hasOwnProperty("events")){if(!Array.isArray(i.events))return"events: array expected";for(var n=0;n<i.events.length;++n){var c=Be.opentelemetry.proto.trace.v1.Span.Event.verify(i.events[n]);if(c)return"events."+c}}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&!$e.isInteger(i.droppedEventsCount))return"droppedEventsCount: integer expected";if(i.links!=null&&i.hasOwnProperty("links")){if(!Array.isArray(i.links))return"links: array expected";for(var n=0;n<i.links.length;++n){var c=Be.opentelemetry.proto.trace.v1.Span.Link.verify(i.links[n]);if(c)return"links."+c}}if(i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&!$e.isInteger(i.droppedLinksCount))return"droppedLinksCount: integer expected";if(i.status!=null&&i.hasOwnProperty("status")){var c=Be.opentelemetry.proto.trace.v1.Status.verify(i.status);if(c)return"status."+c}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.Span)return i;var n=new Be.opentelemetry.proto.trace.v1.Span;switch(i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.traceState!=null&&(n.traceState=String(i.traceState)),i.parentSpanId!=null&&(typeof i.parentSpanId=="string"?$e.base64.decode(i.parentSpanId,n.parentSpanId=$e.newBuffer($e.base64.length(i.parentSpanId)),0):i.parentSpanId.length>=0&&(n.parentSpanId=i.parentSpanId)),i.flags!=null&&(n.flags=i.flags>>>0),i.name!=null&&(n.name=String(i.name)),i.kind){default:if(typeof i.kind=="number"){n.kind=i.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:n.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:n.kind=1;break;case"SPAN_KIND_SERVER":case 2:n.kind=2;break;case"SPAN_KIND_CLIENT":case 3:n.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:n.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:n.kind=5;break}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.endTimeUnixNano!=null&&($e.Long?(n.endTimeUnixNano=$e.Long.fromValue(i.endTimeUnixNano)).unsigned=!1:typeof i.endTimeUnixNano=="string"?n.endTimeUnixNano=parseInt(i.endTimeUnixNano,10):typeof i.endTimeUnixNano=="number"?n.endTimeUnixNano=i.endTimeUnixNano:typeof i.endTimeUnixNano=="object"&&(n.endTimeUnixNano=new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber())),i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.events){if(!Array.isArray(i.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");n.events=[];for(var c=0;c<i.events.length;++c){if(typeof i.events[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");n.events[c]=Be.opentelemetry.proto.trace.v1.Span.Event.fromObject(i.events[c])}}if(i.droppedEventsCount!=null&&(n.droppedEventsCount=i.droppedEventsCount>>>0),i.links){if(!Array.isArray(i.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");n.links=[];for(var c=0;c<i.links.length;++c){if(typeof i.links[c]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");n.links[c]=Be.opentelemetry.proto.trace.v1.Span.Link.fromObject(i.links[c])}}if(i.droppedLinksCount!=null&&(n.droppedLinksCount=i.droppedLinksCount>>>0),i.status!=null){if(typeof i.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");n.status=Be.opentelemetry.proto.trace.v1.Status.fromObject(i.status)}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[],c.events=[],c.links=[]),n.defaults){if(n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),c.traceState="",n.bytes===String?c.parentSpanId="":(c.parentSpanId=[],n.bytes!==Array&&(c.parentSpanId=$e.newBuffer(c.parentSpanId))),c.name="",c.kind=n.enums===String?"SPAN_KIND_UNSPECIFIED":0,$e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.endTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.endTimeUnixNano=n.longs===String?"0":0;c.droppedAttributesCount=0,c.droppedEventsCount=0,c.droppedLinksCount=0,c.status=null,c.flags=0}if(i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.traceState!=null&&i.hasOwnProperty("traceState")&&(c.traceState=i.traceState),i.parentSpanId!=null&&i.hasOwnProperty("parentSpanId")&&(c.parentSpanId=n.bytes===String?$e.base64.encode(i.parentSpanId,0,i.parentSpanId.length):n.bytes===Array?Array.prototype.slice.call(i.parentSpanId):i.parentSpanId),i.name!=null&&i.hasOwnProperty("name")&&(c.name=i.name),i.kind!=null&&i.hasOwnProperty("kind")&&(c.kind=n.enums===String?Be.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]===void 0?i.kind:Be.opentelemetry.proto.trace.v1.Span.SpanKind[i.kind]:i.kind),i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.endTimeUnixNano!=null&&i.hasOwnProperty("endTimeUnixNano")&&(typeof i.endTimeUnixNano=="number"?c.endTimeUnixNano=n.longs===String?String(i.endTimeUnixNano):i.endTimeUnixNano:c.endTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.endTimeUnixNano):n.longs===Number?new $e.LongBits(i.endTimeUnixNano.low>>>0,i.endTimeUnixNano.high>>>0).toNumber():i.endTimeUnixNano),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}if(i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.events&&i.events.length){c.events=[];for(var f=0;f<i.events.length;++f)c.events[f]=Be.opentelemetry.proto.trace.v1.Span.Event.toObject(i.events[f],n)}if(i.droppedEventsCount!=null&&i.hasOwnProperty("droppedEventsCount")&&(c.droppedEventsCount=i.droppedEventsCount),i.links&&i.links.length){c.links=[];for(var f=0;f<i.links.length;++f)c.links[f]=Be.opentelemetry.proto.trace.v1.Span.Link.toObject(i.links[f],n)}return i.droppedLinksCount!=null&&i.hasOwnProperty("droppedLinksCount")&&(c.droppedLinksCount=i.droppedLinksCount),i.status!=null&&i.hasOwnProperty("status")&&(c.status=Be.opentelemetry.proto.trace.v1.Status.toObject(i.status,n)),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Span"},s.SpanKind=(function(){var a={},i=Object.create(a);return i[a[0]="SPAN_KIND_UNSPECIFIED"]=0,i[a[1]="SPAN_KIND_INTERNAL"]=1,i[a[2]="SPAN_KIND_SERVER"]=2,i[a[3]="SPAN_KIND_CLIENT"]=3,i[a[4]="SPAN_KIND_PRODUCER"]=4,i[a[5]="SPAN_KIND_CONSUMER"]=5,i})(),s.Event=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.timeUnixNano=null,a.prototype.name=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(9).fixed64(n.timeUnixNano),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(18).string(n.name),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(26).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(32).uint32(n.droppedAttributesCount),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.trace.v1.Span.Event;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.timeUnixNano=n.fixed64();break}case 2:{d.name=n.string();break}case 3:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 4:{d.droppedAttributesCount=n.uint32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.trace.v1.Span.Event)return n;var c=new Be.opentelemetry.proto.trace.v1.Span.Event;if(n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.name!=null&&(c.name=String(n.name)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.name="",u.droppedAttributesCount=0}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Event"},a})(),s.Link=(function(){function a(i){if(this.attributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.attributes=$e.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(10).bytes(n.traceId),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(18).bytes(n.spanId),n.traceState!=null&&Object.hasOwnProperty.call(n,"traceState")&&c.uint32(26).string(n.traceState),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(34).fork()).ldelim();return n.droppedAttributesCount!=null&&Object.hasOwnProperty.call(n,"droppedAttributesCount")&&c.uint32(40).uint32(n.droppedAttributesCount),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(53).fixed32(n.flags),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.trace.v1.Span.Link;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.traceId=n.bytes();break}case 2:{d.spanId=n.bytes();break}case 3:{d.traceState=n.string();break}case 4:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 5:{d.droppedAttributesCount=n.uint32();break}case 6:{d.flags=n.fixed32();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId)))return"traceId: buffer expected";if(n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId)))return"spanId: buffer expected";if(n.traceState!=null&&n.hasOwnProperty("traceState")&&!$e.isString(n.traceState))return"traceState: string expected";if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var c=0;c<n.attributes.length;++c){var u=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[c]);if(u)return"attributes."+u}}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(n.droppedAttributesCount)?"droppedAttributesCount: integer expected":n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.trace.v1.Span.Link)return n;var c=new Be.opentelemetry.proto.trace.v1.Span.Link;if(n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceState!=null&&(c.traceState=String(n.traceState)),n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}return n.droppedAttributesCount!=null&&(c.droppedAttributesCount=n.droppedAttributesCount>>>0),n.flags!=null&&(c.flags=n.flags>>>0),c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[]),c.defaults&&(c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId))),c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),u.traceState="",u.droppedAttributesCount=0,u.flags=0),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceState!=null&&n.hasOwnProperty("traceState")&&(u.traceState=n.traceState),n.attributes&&n.attributes.length){u.attributes=[];for(var f=0;f<n.attributes.length;++f)u.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[f],c)}return n.droppedAttributesCount!=null&&n.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=n.droppedAttributesCount),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.trace.v1.Span.Link"},a})(),s})(),o.Status=(function(){function s(a){if(a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.message=null,s.prototype.code=null,s.create=function(i){return new s(i)},s.encode=function(i,n){return n||(n=oa.create()),i.message!=null&&Object.hasOwnProperty.call(i,"message")&&n.uint32(18).string(i.message),i.code!=null&&Object.hasOwnProperty.call(i,"code")&&n.uint32(24).int32(i.code),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.trace.v1.Status;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 2:{f.message=i.string();break}case 3:{f.code=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.message!=null&&i.hasOwnProperty("message")&&!$e.isString(i.message))return"message: string expected";if(i.code!=null&&i.hasOwnProperty("code"))switch(i.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.trace.v1.Status)return i;var n=new Be.opentelemetry.proto.trace.v1.Status;switch(i.message!=null&&(n.message=String(i.message)),i.code){default:if(typeof i.code=="number"){n.code=i.code;break}break;case"STATUS_CODE_UNSET":case 0:n.code=0;break;case"STATUS_CODE_OK":case 1:n.code=1;break;case"STATUS_CODE_ERROR":case 2:n.code=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};return n.defaults&&(c.message="",c.code=n.enums===String?"STATUS_CODE_UNSET":0),i.message!=null&&i.hasOwnProperty("message")&&(c.message=i.message),i.code!=null&&i.hasOwnProperty("code")&&(c.code=n.enums===String?Be.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]===void 0?i.code:Be.opentelemetry.proto.trace.v1.Status.StatusCode[i.code]:i.code),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.trace.v1.Status"},s.StatusCode=(function(){var a={},i=Object.create(a);return i[a[0]="STATUS_CODE_UNSET"]=0,i[a[1]="STATUS_CODE_OK"]=1,i[a[2]="STATUS_CODE_ERROR"]=2,i})(),s})(),o.SpanFlags=(function(){var s={},a=Object.create(s);return a[s[0]="SPAN_FLAGS_DO_NOT_USE"]=0,a[s[255]="SPAN_FLAGS_TRACE_FLAGS_MASK"]=255,a[s[256]="SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK"]=256,a[s[512]="SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK"]=512,a})(),o})(),r})(),e.collector=(function(){var r={};return r.trace=(function(){var o={};return o.v1=(function(){var s={};return s.TraceService=(function(){function a(i,n,c){Lo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Lo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportTraceServiceRequest=(function(){function a(i){if(this.resourceSpans=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceSpans=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.resourceSpans!=null&&n.resourceSpans.length)for(var u=0;u<n.resourceSpans.length;++u)Be.opentelemetry.proto.trace.v1.ResourceSpans.encode(n.resourceSpans[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceSpans&&d.resourceSpans.length||(d.resourceSpans=[]),d.resourceSpans.push(Be.opentelemetry.proto.trace.v1.ResourceSpans.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceSpans!=null&&n.hasOwnProperty("resourceSpans")){if(!Array.isArray(n.resourceSpans))return"resourceSpans: array expected";for(var c=0;c<n.resourceSpans.length;++c){var u=Be.opentelemetry.proto.trace.v1.ResourceSpans.verify(n.resourceSpans[c]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return n;var c=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(n.resourceSpans){if(!Array.isArray(n.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");c.resourceSpans=[];for(var u=0;u<n.resourceSpans.length;++u){if(typeof n.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");c.resourceSpans[u]=Be.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(n.resourceSpans[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceSpans=[]),n.resourceSpans&&n.resourceSpans.length){u.resourceSpans=[];for(var f=0;f<n.resourceSpans.length;++f)u.resourceSpans[f]=Be.opentelemetry.proto.trace.v1.ResourceSpans.toObject(n.resourceSpans[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},a})(),s.ExportTraceServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return n;var c=new Be.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");c.partialSuccess=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},a})(),s.ExportTracePartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedSpans=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.rejectedSpans!=null&&Object.hasOwnProperty.call(n,"rejectedSpans")&&c.uint32(8).int64(n.rejectedSpans),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedSpans=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&!$e.isInteger(n.rejectedSpans)&&!(n.rejectedSpans&&$e.isInteger(n.rejectedSpans.low)&&$e.isInteger(n.rejectedSpans.high))?"rejectedSpans: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return n;var c=new Be.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return n.rejectedSpans!=null&&($e.Long?(c.rejectedSpans=$e.Long.fromValue(n.rejectedSpans)).unsigned=!1:typeof n.rejectedSpans=="string"?c.rejectedSpans=parseInt(n.rejectedSpans,10):typeof n.rejectedSpans=="number"?c.rejectedSpans=n.rejectedSpans:typeof n.rejectedSpans=="object"&&(c.rejectedSpans=new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedSpans=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedSpans=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedSpans!=null&&n.hasOwnProperty("rejectedSpans")&&(typeof n.rejectedSpans=="number"?u.rejectedSpans=c.longs===String?String(n.rejectedSpans):n.rejectedSpans:u.rejectedSpans=c.longs===String?$e.Long.prototype.toString.call(n.rejectedSpans):c.longs===Number?new $e.LongBits(n.rejectedSpans.low>>>0,n.rejectedSpans.high>>>0).toNumber():n.rejectedSpans),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},a})(),s})(),o})(),r.metrics=(function(){var o={};return o.v1=(function(){var s={};return s.MetricsService=(function(){function a(i,n,c){Lo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Lo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportMetricsServiceRequest=(function(){function a(i){if(this.resourceMetrics=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceMetrics=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.resourceMetrics!=null&&n.resourceMetrics.length)for(var u=0;u<n.resourceMetrics.length;++u)Be.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(n.resourceMetrics[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceMetrics&&d.resourceMetrics.length||(d.resourceMetrics=[]),d.resourceMetrics.push(Be.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceMetrics!=null&&n.hasOwnProperty("resourceMetrics")){if(!Array.isArray(n.resourceMetrics))return"resourceMetrics: array expected";for(var c=0;c<n.resourceMetrics.length;++c){var u=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(n.resourceMetrics[c]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return n;var c=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(n.resourceMetrics){if(!Array.isArray(n.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");c.resourceMetrics=[];for(var u=0;u<n.resourceMetrics.length;++u){if(typeof n.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");c.resourceMetrics[u]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(n.resourceMetrics[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceMetrics=[]),n.resourceMetrics&&n.resourceMetrics.length){u.resourceMetrics=[];for(var f=0;f<n.resourceMetrics.length;++f)u.resourceMetrics[f]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(n.resourceMetrics[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},a})(),s.ExportMetricsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return n;var c=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");c.partialSuccess=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},a})(),s.ExportMetricsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedDataPoints=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.rejectedDataPoints!=null&&Object.hasOwnProperty.call(n,"rejectedDataPoints")&&c.uint32(8).int64(n.rejectedDataPoints),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedDataPoints=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&!$e.isInteger(n.rejectedDataPoints)&&!(n.rejectedDataPoints&&$e.isInteger(n.rejectedDataPoints.low)&&$e.isInteger(n.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return n;var c=new Be.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return n.rejectedDataPoints!=null&&($e.Long?(c.rejectedDataPoints=$e.Long.fromValue(n.rejectedDataPoints)).unsigned=!1:typeof n.rejectedDataPoints=="string"?c.rejectedDataPoints=parseInt(n.rejectedDataPoints,10):typeof n.rejectedDataPoints=="number"?c.rejectedDataPoints=n.rejectedDataPoints:typeof n.rejectedDataPoints=="object"&&(c.rejectedDataPoints=new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedDataPoints=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedDataPoints=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedDataPoints!=null&&n.hasOwnProperty("rejectedDataPoints")&&(typeof n.rejectedDataPoints=="number"?u.rejectedDataPoints=c.longs===String?String(n.rejectedDataPoints):n.rejectedDataPoints:u.rejectedDataPoints=c.longs===String?$e.Long.prototype.toString.call(n.rejectedDataPoints):c.longs===Number?new $e.LongBits(n.rejectedDataPoints.low>>>0,n.rejectedDataPoints.high>>>0).toNumber():n.rejectedDataPoints),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},a})(),s})(),o})(),r.logs=(function(){var o={};return o.v1=(function(){var s={};return s.LogsService=(function(){function a(i,n,c){Lo.rpc.Service.call(this,i,n,c)}return(a.prototype=Object.create(Lo.rpc.Service.prototype)).constructor=a,a.create=function(n,c,u){return new this(n,c,u)},Object.defineProperty(a.prototype.export=function i(n,c){return this.rpcCall(i,Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,n,c)},"name",{value:"Export"}),a})(),s.ExportLogsServiceRequest=(function(){function a(i){if(this.resourceLogs=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.resourceLogs=$e.emptyArray,a.create=function(n){return new a(n)},a.encode=function(n,c){if(c||(c=oa.create()),n.resourceLogs!=null&&n.resourceLogs.length)for(var u=0;u<n.resourceLogs.length;++u)Be.opentelemetry.proto.logs.v1.ResourceLogs.encode(n.resourceLogs[u],c.uint32(10).fork()).ldelim();return c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.resourceLogs&&d.resourceLogs.length||(d.resourceLogs=[]),d.resourceLogs.push(Be.opentelemetry.proto.logs.v1.ResourceLogs.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.resourceLogs!=null&&n.hasOwnProperty("resourceLogs")){if(!Array.isArray(n.resourceLogs))return"resourceLogs: array expected";for(var c=0;c<n.resourceLogs.length;++c){var u=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(n.resourceLogs[c]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return n;var c=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(n.resourceLogs){if(!Array.isArray(n.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");c.resourceLogs=[];for(var u=0;u<n.resourceLogs.length;++u){if(typeof n.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");c.resourceLogs[u]=Be.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(n.resourceLogs[u])}}return c},a.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.resourceLogs=[]),n.resourceLogs&&n.resourceLogs.length){u.resourceLogs=[];for(var f=0;f<n.resourceLogs.length;++f)u.resourceLogs[f]=Be.opentelemetry.proto.logs.v1.ResourceLogs.toObject(n.resourceLogs[f],c)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},a})(),s.ExportLogsServiceResponse=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.partialSuccess=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.partialSuccess!=null&&Object.hasOwnProperty.call(n,"partialSuccess")&&Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(n.partialSuccess,c.uint32(10).fork()).ldelim(),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.partialSuccess=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(n,n.uint32());break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")){var c=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(n.partialSuccess);if(c)return"partialSuccess."+c}return null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return n;var c=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(n.partialSuccess!=null){if(typeof n.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");c.partialSuccess=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(n.partialSuccess)}return c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.partialSuccess=null),n.partialSuccess!=null&&n.hasOwnProperty("partialSuccess")&&(u.partialSuccess=Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(n.partialSuccess,c)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},a})(),s.ExportLogsPartialSuccess=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.rejectedLogRecords=null,a.prototype.errorMessage=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.rejectedLogRecords!=null&&Object.hasOwnProperty.call(n,"rejectedLogRecords")&&c.uint32(8).int64(n.rejectedLogRecords),n.errorMessage!=null&&Object.hasOwnProperty.call(n,"errorMessage")&&c.uint32(18).string(n.errorMessage),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.rejectedLogRecords=n.int64();break}case 2:{d.errorMessage=n.string();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&!$e.isInteger(n.rejectedLogRecords)&&!(n.rejectedLogRecords&&$e.isInteger(n.rejectedLogRecords.low)&&$e.isInteger(n.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&!$e.isString(n.errorMessage)?"errorMessage: string expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return n;var c=new Be.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return n.rejectedLogRecords!=null&&($e.Long?(c.rejectedLogRecords=$e.Long.fromValue(n.rejectedLogRecords)).unsigned=!1:typeof n.rejectedLogRecords=="string"?c.rejectedLogRecords=parseInt(n.rejectedLogRecords,10):typeof n.rejectedLogRecords=="number"?c.rejectedLogRecords=n.rejectedLogRecords:typeof n.rejectedLogRecords=="object"&&(c.rejectedLogRecords=new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber())),n.errorMessage!=null&&(c.errorMessage=String(n.errorMessage)),c},a.toObject=function(n,c){c||(c={});var u={};if(c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.rejectedLogRecords=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.rejectedLogRecords=c.longs===String?"0":0;u.errorMessage=""}return n.rejectedLogRecords!=null&&n.hasOwnProperty("rejectedLogRecords")&&(typeof n.rejectedLogRecords=="number"?u.rejectedLogRecords=c.longs===String?String(n.rejectedLogRecords):n.rejectedLogRecords:u.rejectedLogRecords=c.longs===String?$e.Long.prototype.toString.call(n.rejectedLogRecords):c.longs===Number?new $e.LongBits(n.rejectedLogRecords.low>>>0,n.rejectedLogRecords.high>>>0).toNumber():n.rejectedLogRecords),n.errorMessage!=null&&n.hasOwnProperty("errorMessage")&&(u.errorMessage=n.errorMessage),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},a})(),s})(),o})(),r})(),e.metrics=(function(){var r={};return r.v1=(function(){var o={};return o.MetricsData=(function(){function s(a){if(this.resourceMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceMetrics=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resourceMetrics!=null&&i.resourceMetrics.length)for(var c=0;c<i.resourceMetrics.length;++c)Be.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(i.resourceMetrics[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.MetricsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceMetrics&&f.resourceMetrics.length||(f.resourceMetrics=[]),f.resourceMetrics.push(Be.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceMetrics!=null&&i.hasOwnProperty("resourceMetrics")){if(!Array.isArray(i.resourceMetrics))return"resourceMetrics: array expected";for(var n=0;n<i.resourceMetrics.length;++n){var c=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(i.resourceMetrics[n]);if(c)return"resourceMetrics."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.MetricsData)return i;var n=new Be.opentelemetry.proto.metrics.v1.MetricsData;if(i.resourceMetrics){if(!Array.isArray(i.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");n.resourceMetrics=[];for(var c=0;c<i.resourceMetrics.length;++c){if(typeof i.resourceMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");n.resourceMetrics[c]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(i.resourceMetrics[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceMetrics=[]),i.resourceMetrics&&i.resourceMetrics.length){c.resourceMetrics=[];for(var u=0;u<i.resourceMetrics.length;++u)c.resourceMetrics[u]=Be.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(i.resourceMetrics[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.MetricsData"},s})(),o.ResourceMetrics=(function(){function s(a){if(this.scopeMetrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeMetrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&Be.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeMetrics!=null&&i.scopeMetrics.length)for(var c=0;c<i.scopeMetrics.length;++c)Be.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(i.scopeMetrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.ResourceMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeMetrics&&f.scopeMetrics.length||(f.scopeMetrics=[]),f.scopeMetrics.push(Be.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=Be.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeMetrics!=null&&i.hasOwnProperty("scopeMetrics")){if(!Array.isArray(i.scopeMetrics))return"scopeMetrics: array expected";for(var c=0;c<i.scopeMetrics.length;++c){var n=Be.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(i.scopeMetrics[c]);if(n)return"scopeMetrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.ResourceMetrics)return i;var n=new Be.opentelemetry.proto.metrics.v1.ResourceMetrics;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");n.resource=Be.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeMetrics){if(!Array.isArray(i.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");n.scopeMetrics=[];for(var c=0;c<i.scopeMetrics.length;++c){if(typeof i.scopeMetrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");n.scopeMetrics[c]=Be.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(i.scopeMetrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeMetrics=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=Be.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeMetrics&&i.scopeMetrics.length){c.scopeMetrics=[];for(var u=0;u<i.scopeMetrics.length;++u)c.scopeMetrics[u]=Be.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(i.scopeMetrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},s})(),o.ScopeMetrics=(function(){function s(a){if(this.metrics=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.metrics=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&Be.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.metrics!=null&&i.metrics.length)for(var c=0;c<i.metrics.length;++c)Be.opentelemetry.proto.metrics.v1.Metric.encode(i.metrics[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.ScopeMetrics;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.metrics&&f.metrics.length||(f.metrics=[]),f.metrics.push(Be.opentelemetry.proto.metrics.v1.Metric.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=Be.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.metrics!=null&&i.hasOwnProperty("metrics")){if(!Array.isArray(i.metrics))return"metrics: array expected";for(var c=0;c<i.metrics.length;++c){var n=Be.opentelemetry.proto.metrics.v1.Metric.verify(i.metrics[c]);if(n)return"metrics."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.ScopeMetrics)return i;var n=new Be.opentelemetry.proto.metrics.v1.ScopeMetrics;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");n.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.metrics){if(!Array.isArray(i.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");n.metrics=[];for(var c=0;c<i.metrics.length;++c){if(typeof i.metrics[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");n.metrics[c]=Be.opentelemetry.proto.metrics.v1.Metric.fromObject(i.metrics[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.metrics=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.metrics&&i.metrics.length){c.metrics=[];for(var u=0;u<i.metrics.length;++u)c.metrics[u]=Be.opentelemetry.proto.metrics.v1.Metric.toObject(i.metrics[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},s})(),o.Metric=(function(){function s(i){if(this.metadata=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.name=null,s.prototype.description=null,s.prototype.unit=null,s.prototype.gauge=null,s.prototype.sum=null,s.prototype.histogram=null,s.prototype.exponentialHistogram=null,s.prototype.summary=null,s.prototype.metadata=$e.emptyArray;var a;return Object.defineProperty(s.prototype,"data",{get:$e.oneOfGetter(a=["gauge","sum","histogram","exponentialHistogram","summary"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.name!=null&&Object.hasOwnProperty.call(n,"name")&&c.uint32(10).string(n.name),n.description!=null&&Object.hasOwnProperty.call(n,"description")&&c.uint32(18).string(n.description),n.unit!=null&&Object.hasOwnProperty.call(n,"unit")&&c.uint32(26).string(n.unit),n.gauge!=null&&Object.hasOwnProperty.call(n,"gauge")&&Be.opentelemetry.proto.metrics.v1.Gauge.encode(n.gauge,c.uint32(42).fork()).ldelim(),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&Be.opentelemetry.proto.metrics.v1.Sum.encode(n.sum,c.uint32(58).fork()).ldelim(),n.histogram!=null&&Object.hasOwnProperty.call(n,"histogram")&&Be.opentelemetry.proto.metrics.v1.Histogram.encode(n.histogram,c.uint32(74).fork()).ldelim(),n.exponentialHistogram!=null&&Object.hasOwnProperty.call(n,"exponentialHistogram")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(n.exponentialHistogram,c.uint32(82).fork()).ldelim(),n.summary!=null&&Object.hasOwnProperty.call(n,"summary")&&Be.opentelemetry.proto.metrics.v1.Summary.encode(n.summary,c.uint32(90).fork()).ldelim(),n.metadata!=null&&n.metadata.length)for(var u=0;u<n.metadata.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.metadata[u],c.uint32(98).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.Metric;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.name=n.string();break}case 2:{d.description=n.string();break}case 3:{d.unit=n.string();break}case 5:{d.gauge=Be.opentelemetry.proto.metrics.v1.Gauge.decode(n,n.uint32());break}case 7:{d.sum=Be.opentelemetry.proto.metrics.v1.Sum.decode(n,n.uint32());break}case 9:{d.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.decode(n,n.uint32());break}case 10:{d.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(n,n.uint32());break}case 11:{d.summary=Be.opentelemetry.proto.metrics.v1.Summary.decode(n,n.uint32());break}case 12:{d.metadata&&d.metadata.length||(d.metadata=[]),d.metadata.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.name!=null&&n.hasOwnProperty("name")&&!$e.isString(n.name))return"name: string expected";if(n.description!=null&&n.hasOwnProperty("description")&&!$e.isString(n.description))return"description: string expected";if(n.unit!=null&&n.hasOwnProperty("unit")&&!$e.isString(n.unit))return"unit: string expected";if(n.gauge!=null&&n.hasOwnProperty("gauge")){c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Gauge.verify(n.gauge);if(u)return"gauge."+u}}if(n.sum!=null&&n.hasOwnProperty("sum")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Sum.verify(n.sum);if(u)return"sum."+u}}if(n.histogram!=null&&n.hasOwnProperty("histogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Histogram.verify(n.histogram);if(u)return"histogram."+u}}if(n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(n.exponentialHistogram);if(u)return"exponentialHistogram."+u}}if(n.summary!=null&&n.hasOwnProperty("summary")){if(c.data===1)return"data: multiple values";c.data=1;{var u=Be.opentelemetry.proto.metrics.v1.Summary.verify(n.summary);if(u)return"summary."+u}}if(n.metadata!=null&&n.hasOwnProperty("metadata")){if(!Array.isArray(n.metadata))return"metadata: array expected";for(var f=0;f<n.metadata.length;++f){var u=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.metadata[f]);if(u)return"metadata."+u}}return null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.Metric)return n;var c=new Be.opentelemetry.proto.metrics.v1.Metric;if(n.name!=null&&(c.name=String(n.name)),n.description!=null&&(c.description=String(n.description)),n.unit!=null&&(c.unit=String(n.unit)),n.gauge!=null){if(typeof n.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");c.gauge=Be.opentelemetry.proto.metrics.v1.Gauge.fromObject(n.gauge)}if(n.sum!=null){if(typeof n.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");c.sum=Be.opentelemetry.proto.metrics.v1.Sum.fromObject(n.sum)}if(n.histogram!=null){if(typeof n.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");c.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.fromObject(n.histogram)}if(n.exponentialHistogram!=null){if(typeof n.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");c.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(n.exponentialHistogram)}if(n.summary!=null){if(typeof n.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");c.summary=Be.opentelemetry.proto.metrics.v1.Summary.fromObject(n.summary)}if(n.metadata){if(!Array.isArray(n.metadata))throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: array expected");c.metadata=[];for(var u=0;u<n.metadata.length;++u){if(typeof n.metadata[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: object expected");c.metadata[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.metadata[u])}}return c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.metadata=[]),c.defaults&&(u.name="",u.description="",u.unit=""),n.name!=null&&n.hasOwnProperty("name")&&(u.name=n.name),n.description!=null&&n.hasOwnProperty("description")&&(u.description=n.description),n.unit!=null&&n.hasOwnProperty("unit")&&(u.unit=n.unit),n.gauge!=null&&n.hasOwnProperty("gauge")&&(u.gauge=Be.opentelemetry.proto.metrics.v1.Gauge.toObject(n.gauge,c),c.oneofs&&(u.data="gauge")),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=Be.opentelemetry.proto.metrics.v1.Sum.toObject(n.sum,c),c.oneofs&&(u.data="sum")),n.histogram!=null&&n.hasOwnProperty("histogram")&&(u.histogram=Be.opentelemetry.proto.metrics.v1.Histogram.toObject(n.histogram,c),c.oneofs&&(u.data="histogram")),n.exponentialHistogram!=null&&n.hasOwnProperty("exponentialHistogram")&&(u.exponentialHistogram=Be.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(n.exponentialHistogram,c),c.oneofs&&(u.data="exponentialHistogram")),n.summary!=null&&n.hasOwnProperty("summary")&&(u.summary=Be.opentelemetry.proto.metrics.v1.Summary.toObject(n.summary,c),c.oneofs&&(u.data="summary")),n.metadata&&n.metadata.length){u.metadata=[];for(var f=0;f<n.metadata.length;++f)u.metadata[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.metadata[f],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Metric"},s})(),o.Gauge=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Gauge;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Gauge)return i;var n=new Be.opentelemetry.proto.metrics.v1.Gauge;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Gauge"},s})(),o.Sum=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.prototype.isMonotonic=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),i.isMonotonic!=null&&Object.hasOwnProperty.call(i,"isMonotonic")&&n.uint32(24).bool(i.isMonotonic),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Sum;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}case 3:{f.isMonotonic=i.bool();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&typeof i.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Sum)return i;var n=new Be.opentelemetry.proto.metrics.v1.Sum;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return i.isMonotonic!=null&&(n.isMonotonic=!!i.isMonotonic),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,c.isMonotonic=!1),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),i.isMonotonic!=null&&i.hasOwnProperty("isMonotonic")&&(c.isMonotonic=i.isMonotonic),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Sum"},s})(),o.Histogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Histogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Histogram)return i;var n=new Be.opentelemetry.proto.metrics.v1.Histogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Histogram"},s})(),o.ExponentialHistogram=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.prototype.aggregationTemporality=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return i.aggregationTemporality!=null&&Object.hasOwnProperty.call(i,"aggregationTemporality")&&n.uint32(16).int32(i.aggregationTemporality),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogram;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(i,i.uint32()));break}case 2:{f.aggregationTemporality=i.int32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}if(i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality"))switch(i.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.ExponentialHistogram)return i;var n=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(i.dataPoints[c])}}switch(i.aggregationTemporality){default:if(typeof i.aggregationTemporality=="number"){n.aggregationTemporality=i.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:n.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:n.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:n.aggregationTemporality=2;break}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),n.defaults&&(c.aggregationTemporality=n.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(i.dataPoints[u],n)}return i.aggregationTemporality!=null&&i.hasOwnProperty("aggregationTemporality")&&(c.aggregationTemporality=n.enums===String?Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]===void 0?i.aggregationTemporality:Be.opentelemetry.proto.metrics.v1.AggregationTemporality[i.aggregationTemporality]:i.aggregationTemporality),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},s})(),o.Summary=(function(){function s(a){if(this.dataPoints=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.dataPoints=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.dataPoints!=null&&i.dataPoints.length)for(var c=0;c<i.dataPoints.length;++c)Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(i.dataPoints[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.Summary;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.dataPoints&&f.dataPoints.length||(f.dataPoints=[]),f.dataPoints.push(Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.dataPoints!=null&&i.hasOwnProperty("dataPoints")){if(!Array.isArray(i.dataPoints))return"dataPoints: array expected";for(var n=0;n<i.dataPoints.length;++n){var c=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(i.dataPoints[n]);if(c)return"dataPoints."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.Summary)return i;var n=new Be.opentelemetry.proto.metrics.v1.Summary;if(i.dataPoints){if(!Array.isArray(i.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");n.dataPoints=[];for(var c=0;c<i.dataPoints.length;++c){if(typeof i.dataPoints[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");n.dataPoints[c]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(i.dataPoints[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.dataPoints=[]),i.dataPoints&&i.dataPoints.length){c.dataPoints=[];for(var u=0;u<i.dataPoints.length;++u)c.dataPoints[u]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(i.dataPoints[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.Summary"},s})(),o.AggregationTemporality=(function(){var s={},a=Object.create(s);return a[s[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,a[s[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,a[s[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,a})(),o.DataPointFlags=(function(){var s={},a=Object.create(s);return a[s[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,a[s[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,a})(),o.NumberDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(33).double(n.asDouble),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)Be.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(42).fork()).ldelim();if(n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(58).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(64).uint32(n.flags),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.NumberDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 5:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(Be.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 8:{d.flags=n.uint32();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=Be.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.NumberDataPoint)return n;var c=new Be.opentelemetry.proto.metrics.v1.NumberDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");c.exemplars[u]=Be.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=Be.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},s})(),o.HistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.bucketCounts=$e.emptyArray,s.prototype.explicitBounds=$e.emptyArray,s.prototype.exemplars=$e.emptyArray,s.prototype.flags=null,s.prototype.min=null,s.prototype.max=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.bucketCounts!=null&&n.bucketCounts.length){c.uint32(50).fork();for(var u=0;u<n.bucketCounts.length;++u)c.fixed64(n.bucketCounts[u]);c.ldelim()}if(n.explicitBounds!=null&&n.explicitBounds.length){c.uint32(58).fork();for(var u=0;u<n.explicitBounds.length;++u)c.double(n.explicitBounds[u]);c.ldelim()}if(n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)Be.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(66).fork()).ldelim();if(n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(74).fork()).ldelim();return n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(89).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(97).double(n.max),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.HistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 9:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{if(d.bucketCounts&&d.bucketCounts.length||(d.bucketCounts=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.bucketCounts.push(n.fixed64());else d.bucketCounts.push(n.fixed64());break}case 7:{if(d.explicitBounds&&d.explicitBounds.length||(d.explicitBounds=[]),(p&7)===2)for(var h=n.uint32()+n.pos;n.pos<h;)d.explicitBounds.push(n.double());else d.explicitBounds.push(n.double());break}case 8:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(Be.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 10:{d.flags=n.uint32();break}case 11:{d.min=n.double();break}case 12:{d.max=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.bucketCounts!=null&&n.hasOwnProperty("bucketCounts")){if(!Array.isArray(n.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<n.bucketCounts.length;++u)if(!$e.isInteger(n.bucketCounts[u])&&!(n.bucketCounts[u]&&$e.isInteger(n.bucketCounts[u].low)&&$e.isInteger(n.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}if(n.explicitBounds!=null&&n.hasOwnProperty("explicitBounds")){if(!Array.isArray(n.explicitBounds))return"explicitBounds: array expected";for(var u=0;u<n.explicitBounds.length;++u)if(typeof n.explicitBounds[u]!="number")return"explicitBounds: number[] expected"}if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=Be.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags)?"flags: integer expected":n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.HistogramDataPoint)return n;var c=new Be.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.bucketCounts){if(!Array.isArray(n.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");c.bucketCounts=[];for(var u=0;u<n.bucketCounts.length;++u)$e.Long?(c.bucketCounts[u]=$e.Long.fromValue(n.bucketCounts[u])).unsigned=!1:typeof n.bucketCounts[u]=="string"?c.bucketCounts[u]=parseInt(n.bucketCounts[u],10):typeof n.bucketCounts[u]=="number"?c.bucketCounts[u]=n.bucketCounts[u]:typeof n.bucketCounts[u]=="object"&&(c.bucketCounts[u]=new $e.LongBits(n.bucketCounts[u].low>>>0,n.bucketCounts[u].high>>>0).toNumber())}if(n.explicitBounds){if(!Array.isArray(n.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");c.explicitBounds=[];for(var u=0;u<n.explicitBounds.length;++u)c.explicitBounds[u]=Number(n.explicitBounds[u])}if(n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");c.exemplars[u]=Be.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.flags!=null&&(c.flags=n.flags>>>0),n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.bucketCounts=[],u.explicitBounds=[],u.exemplars=[],u.attributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;u.flags=0}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.bucketCounts&&n.bucketCounts.length){u.bucketCounts=[];for(var d=0;d<n.bucketCounts.length;++d)typeof n.bucketCounts[d]=="number"?u.bucketCounts[d]=c.longs===String?String(n.bucketCounts[d]):n.bucketCounts[d]:u.bucketCounts[d]=c.longs===String?$e.Long.prototype.toString.call(n.bucketCounts[d]):c.longs===Number?new $e.LongBits(n.bucketCounts[d].low>>>0,n.bucketCounts[d].high>>>0).toNumber():n.bucketCounts[d]}if(n.explicitBounds&&n.explicitBounds.length){u.explicitBounds=[];for(var d=0;d<n.explicitBounds.length;++d)u.explicitBounds[d]=c.json&&!isFinite(n.explicitBounds[d])?String(n.explicitBounds[d]):n.explicitBounds[d]}if(n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=Be.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}return n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},s})(),o.ExponentialHistogramDataPoint=(function(){function s(i){if(this.attributes=[],this.exemplars=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.scale=null,s.prototype.zeroCount=null,s.prototype.positive=null,s.prototype.negative=null,s.prototype.flags=null,s.prototype.exemplars=$e.emptyArray,s.prototype.min=null,s.prototype.max=null,s.prototype.zeroThreshold=null;var a;return Object.defineProperty(s.prototype,"_sum",{get:$e.oneOfGetter(a=["sum"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_min",{get:$e.oneOfGetter(a=["min"]),set:$e.oneOfSetter(a)}),Object.defineProperty(s.prototype,"_max",{get:$e.oneOfGetter(a=["max"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.attributes!=null&&n.attributes.length)for(var u=0;u<n.attributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.attributes[u],c.uint32(10).fork()).ldelim();if(n.startTimeUnixNano!=null&&Object.hasOwnProperty.call(n,"startTimeUnixNano")&&c.uint32(17).fixed64(n.startTimeUnixNano),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(25).fixed64(n.timeUnixNano),n.count!=null&&Object.hasOwnProperty.call(n,"count")&&c.uint32(33).fixed64(n.count),n.sum!=null&&Object.hasOwnProperty.call(n,"sum")&&c.uint32(41).double(n.sum),n.scale!=null&&Object.hasOwnProperty.call(n,"scale")&&c.uint32(48).sint32(n.scale),n.zeroCount!=null&&Object.hasOwnProperty.call(n,"zeroCount")&&c.uint32(57).fixed64(n.zeroCount),n.positive!=null&&Object.hasOwnProperty.call(n,"positive")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.positive,c.uint32(66).fork()).ldelim(),n.negative!=null&&Object.hasOwnProperty.call(n,"negative")&&Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(n.negative,c.uint32(74).fork()).ldelim(),n.flags!=null&&Object.hasOwnProperty.call(n,"flags")&&c.uint32(80).uint32(n.flags),n.exemplars!=null&&n.exemplars.length)for(var u=0;u<n.exemplars.length;++u)Be.opentelemetry.proto.metrics.v1.Exemplar.encode(n.exemplars[u],c.uint32(90).fork()).ldelim();return n.min!=null&&Object.hasOwnProperty.call(n,"min")&&c.uint32(97).double(n.min),n.max!=null&&Object.hasOwnProperty.call(n,"max")&&c.uint32(105).double(n.max),n.zeroThreshold!=null&&Object.hasOwnProperty.call(n,"zeroThreshold")&&c.uint32(113).double(n.zeroThreshold),c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.attributes&&d.attributes.length||(d.attributes=[]),d.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.startTimeUnixNano=n.fixed64();break}case 3:{d.timeUnixNano=n.fixed64();break}case 4:{d.count=n.fixed64();break}case 5:{d.sum=n.double();break}case 6:{d.scale=n.sint32();break}case 7:{d.zeroCount=n.fixed64();break}case 8:{d.positive=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 9:{d.negative=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(n,n.uint32());break}case 10:{d.flags=n.uint32();break}case 11:{d.exemplars&&d.exemplars.length||(d.exemplars=[]),d.exemplars.push(Be.opentelemetry.proto.metrics.v1.Exemplar.decode(n,n.uint32()));break}case 12:{d.min=n.double();break}case 13:{d.max=n.double();break}case 14:{d.zeroThreshold=n.double();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.attributes!=null&&n.hasOwnProperty("attributes")){if(!Array.isArray(n.attributes))return"attributes: array expected";for(var u=0;u<n.attributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.attributes[u]);if(f)return"attributes."+f}}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(n.startTimeUnixNano)&&!(n.startTimeUnixNano&&$e.isInteger(n.startTimeUnixNano.low)&&$e.isInteger(n.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.count!=null&&n.hasOwnProperty("count")&&!$e.isInteger(n.count)&&!(n.count&&$e.isInteger(n.count.low)&&$e.isInteger(n.count.high)))return"count: integer|Long expected";if(n.sum!=null&&n.hasOwnProperty("sum")&&(c._sum=1,typeof n.sum!="number"))return"sum: number expected";if(n.scale!=null&&n.hasOwnProperty("scale")&&!$e.isInteger(n.scale))return"scale: integer expected";if(n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&!$e.isInteger(n.zeroCount)&&!(n.zeroCount&&$e.isInteger(n.zeroCount.low)&&$e.isInteger(n.zeroCount.high)))return"zeroCount: integer|Long expected";if(n.positive!=null&&n.hasOwnProperty("positive")){var f=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.positive);if(f)return"positive."+f}if(n.negative!=null&&n.hasOwnProperty("negative")){var f=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(n.negative);if(f)return"negative."+f}if(n.flags!=null&&n.hasOwnProperty("flags")&&!$e.isInteger(n.flags))return"flags: integer expected";if(n.exemplars!=null&&n.hasOwnProperty("exemplars")){if(!Array.isArray(n.exemplars))return"exemplars: array expected";for(var u=0;u<n.exemplars.length;++u){var f=Be.opentelemetry.proto.metrics.v1.Exemplar.verify(n.exemplars[u]);if(f)return"exemplars."+f}}return n.min!=null&&n.hasOwnProperty("min")&&(c._min=1,typeof n.min!="number")?"min: number expected":n.max!=null&&n.hasOwnProperty("max")&&(c._max=1,typeof n.max!="number")?"max: number expected":n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&typeof n.zeroThreshold!="number"?"zeroThreshold: number expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return n;var c=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(n.attributes){if(!Array.isArray(n.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");c.attributes=[];for(var u=0;u<n.attributes.length;++u){if(typeof n.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");c.attributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.attributes[u])}}if(n.startTimeUnixNano!=null&&($e.Long?(c.startTimeUnixNano=$e.Long.fromValue(n.startTimeUnixNano)).unsigned=!1:typeof n.startTimeUnixNano=="string"?c.startTimeUnixNano=parseInt(n.startTimeUnixNano,10):typeof n.startTimeUnixNano=="number"?c.startTimeUnixNano=n.startTimeUnixNano:typeof n.startTimeUnixNano=="object"&&(c.startTimeUnixNano=new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber())),n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.count!=null&&($e.Long?(c.count=$e.Long.fromValue(n.count)).unsigned=!1:typeof n.count=="string"?c.count=parseInt(n.count,10):typeof n.count=="number"?c.count=n.count:typeof n.count=="object"&&(c.count=new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber())),n.sum!=null&&(c.sum=Number(n.sum)),n.scale!=null&&(c.scale=n.scale|0),n.zeroCount!=null&&($e.Long?(c.zeroCount=$e.Long.fromValue(n.zeroCount)).unsigned=!1:typeof n.zeroCount=="string"?c.zeroCount=parseInt(n.zeroCount,10):typeof n.zeroCount=="number"?c.zeroCount=n.zeroCount:typeof n.zeroCount=="object"&&(c.zeroCount=new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber())),n.positive!=null){if(typeof n.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");c.positive=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.positive)}if(n.negative!=null){if(typeof n.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");c.negative=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(n.negative)}if(n.flags!=null&&(c.flags=n.flags>>>0),n.exemplars){if(!Array.isArray(n.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");c.exemplars=[];for(var u=0;u<n.exemplars.length;++u){if(typeof n.exemplars[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");c.exemplars[u]=Be.opentelemetry.proto.metrics.v1.Exemplar.fromObject(n.exemplars[u])}}return n.min!=null&&(c.min=Number(n.min)),n.max!=null&&(c.max=Number(n.max)),n.zeroThreshold!=null&&(c.zeroThreshold=Number(n.zeroThreshold)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.attributes=[],u.exemplars=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.startTimeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.startTimeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;if($e.Long){var f=new $e.Long(0,0,!1);u.count=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.count=c.longs===String?"0":0;if(u.scale=0,$e.Long){var f=new $e.Long(0,0,!1);u.zeroCount=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.zeroCount=c.longs===String?"0":0;u.positive=null,u.negative=null,u.flags=0,u.zeroThreshold=0}if(n.attributes&&n.attributes.length){u.attributes=[];for(var d=0;d<n.attributes.length;++d)u.attributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.attributes[d],c)}if(n.startTimeUnixNano!=null&&n.hasOwnProperty("startTimeUnixNano")&&(typeof n.startTimeUnixNano=="number"?u.startTimeUnixNano=c.longs===String?String(n.startTimeUnixNano):n.startTimeUnixNano:u.startTimeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.startTimeUnixNano):c.longs===Number?new $e.LongBits(n.startTimeUnixNano.low>>>0,n.startTimeUnixNano.high>>>0).toNumber():n.startTimeUnixNano),n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.count!=null&&n.hasOwnProperty("count")&&(typeof n.count=="number"?u.count=c.longs===String?String(n.count):n.count:u.count=c.longs===String?$e.Long.prototype.toString.call(n.count):c.longs===Number?new $e.LongBits(n.count.low>>>0,n.count.high>>>0).toNumber():n.count),n.sum!=null&&n.hasOwnProperty("sum")&&(u.sum=c.json&&!isFinite(n.sum)?String(n.sum):n.sum,c.oneofs&&(u._sum="sum")),n.scale!=null&&n.hasOwnProperty("scale")&&(u.scale=n.scale),n.zeroCount!=null&&n.hasOwnProperty("zeroCount")&&(typeof n.zeroCount=="number"?u.zeroCount=c.longs===String?String(n.zeroCount):n.zeroCount:u.zeroCount=c.longs===String?$e.Long.prototype.toString.call(n.zeroCount):c.longs===Number?new $e.LongBits(n.zeroCount.low>>>0,n.zeroCount.high>>>0).toNumber():n.zeroCount),n.positive!=null&&n.hasOwnProperty("positive")&&(u.positive=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.positive,c)),n.negative!=null&&n.hasOwnProperty("negative")&&(u.negative=Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(n.negative,c)),n.flags!=null&&n.hasOwnProperty("flags")&&(u.flags=n.flags),n.exemplars&&n.exemplars.length){u.exemplars=[];for(var d=0;d<n.exemplars.length;++d)u.exemplars[d]=Be.opentelemetry.proto.metrics.v1.Exemplar.toObject(n.exemplars[d],c)}return n.min!=null&&n.hasOwnProperty("min")&&(u.min=c.json&&!isFinite(n.min)?String(n.min):n.min,c.oneofs&&(u._min="min")),n.max!=null&&n.hasOwnProperty("max")&&(u.max=c.json&&!isFinite(n.max)?String(n.max):n.max,c.oneofs&&(u._max="max")),n.zeroThreshold!=null&&n.hasOwnProperty("zeroThreshold")&&(u.zeroThreshold=c.json&&!isFinite(n.zeroThreshold)?String(n.zeroThreshold):n.zeroThreshold),u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},s.Buckets=(function(){function i(n){if(this.bucketCounts=[],n)for(var c=Object.keys(n),u=0;u<c.length;++u)n[c[u]]!=null&&(this[c[u]]=n[c[u]])}return i.prototype.offset=null,i.prototype.bucketCounts=$e.emptyArray,i.create=function(c){return new i(c)},i.encode=function(c,u){if(u||(u=oa.create()),c.offset!=null&&Object.hasOwnProperty.call(c,"offset")&&u.uint32(8).sint32(c.offset),c.bucketCounts!=null&&c.bucketCounts.length){u.uint32(18).fork();for(var f=0;f<c.bucketCounts.length;++f)u.uint64(c.bucketCounts[f]);u.ldelim()}return u},i.encodeDelimited=function(c,u){return this.encode(c,u).ldelim()},i.decode=function(c,u,f){c instanceof Kt||(c=Kt.create(c));for(var d=u===void 0?c.len:c.pos+u,p=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;c.pos<d;){var h=c.uint32();if(h===f)break;switch(h>>>3){case 1:{p.offset=c.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(h&7)===2)for(var m=c.uint32()+c.pos;c.pos<m;)p.bucketCounts.push(c.uint64());else p.bucketCounts.push(c.uint64());break}default:c.skipType(h&7);break}}return p},i.decodeDelimited=function(c){return c instanceof Kt||(c=new Kt(c)),this.decode(c,c.uint32())},i.verify=function(c){if(typeof c!="object"||c===null)return"object expected";if(c.offset!=null&&c.hasOwnProperty("offset")&&!$e.isInteger(c.offset))return"offset: integer expected";if(c.bucketCounts!=null&&c.hasOwnProperty("bucketCounts")){if(!Array.isArray(c.bucketCounts))return"bucketCounts: array expected";for(var u=0;u<c.bucketCounts.length;++u)if(!$e.isInteger(c.bucketCounts[u])&&!(c.bucketCounts[u]&&$e.isInteger(c.bucketCounts[u].low)&&$e.isInteger(c.bucketCounts[u].high)))return"bucketCounts: integer|Long[] expected"}return null},i.fromObject=function(c){if(c instanceof Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return c;var u=new Be.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(c.offset!=null&&(u.offset=c.offset|0),c.bucketCounts){if(!Array.isArray(c.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");u.bucketCounts=[];for(var f=0;f<c.bucketCounts.length;++f)$e.Long?(u.bucketCounts[f]=$e.Long.fromValue(c.bucketCounts[f])).unsigned=!0:typeof c.bucketCounts[f]=="string"?u.bucketCounts[f]=parseInt(c.bucketCounts[f],10):typeof c.bucketCounts[f]=="number"?u.bucketCounts[f]=c.bucketCounts[f]:typeof c.bucketCounts[f]=="object"&&(u.bucketCounts[f]=new $e.LongBits(c.bucketCounts[f].low>>>0,c.bucketCounts[f].high>>>0).toNumber(!0))}return u},i.toObject=function(c,u){u||(u={});var f={};if((u.arrays||u.defaults)&&(f.bucketCounts=[]),u.defaults&&(f.offset=0),c.offset!=null&&c.hasOwnProperty("offset")&&(f.offset=c.offset),c.bucketCounts&&c.bucketCounts.length){f.bucketCounts=[];for(var d=0;d<c.bucketCounts.length;++d)typeof c.bucketCounts[d]=="number"?f.bucketCounts[d]=u.longs===String?String(c.bucketCounts[d]):c.bucketCounts[d]:f.bucketCounts[d]=u.longs===String?$e.Long.prototype.toString.call(c.bucketCounts[d]):u.longs===Number?new $e.LongBits(c.bucketCounts[d].low>>>0,c.bucketCounts[d].high>>>0).toNumber(!0):c.bucketCounts[d]}return f},i.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},i.getTypeUrl=function(c){return c===void 0&&(c="type.googleapis.com"),c+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},i})(),s})(),o.SummaryDataPoint=(function(){function s(a){if(this.attributes=[],this.quantileValues=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.attributes=$e.emptyArray,s.prototype.startTimeUnixNano=null,s.prototype.timeUnixNano=null,s.prototype.count=null,s.prototype.sum=null,s.prototype.quantileValues=$e.emptyArray,s.prototype.flags=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.startTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"startTimeUnixNano")&&n.uint32(17).fixed64(i.startTimeUnixNano),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(25).fixed64(i.timeUnixNano),i.count!=null&&Object.hasOwnProperty.call(i,"count")&&n.uint32(33).fixed64(i.count),i.sum!=null&&Object.hasOwnProperty.call(i,"sum")&&n.uint32(41).double(i.sum),i.quantileValues!=null&&i.quantileValues.length)for(var c=0;c<i.quantileValues.length;++c)Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(i.quantileValues[c],n.uint32(50).fork()).ldelim();if(i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(58).fork()).ldelim();return i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(64).uint32(i.flags),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 7:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 2:{f.startTimeUnixNano=i.fixed64();break}case 3:{f.timeUnixNano=i.fixed64();break}case 4:{f.count=i.fixed64();break}case 5:{f.sum=i.double();break}case 6:{f.quantileValues&&f.quantileValues.length||(f.quantileValues=[]),f.quantileValues.push(Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(i,i.uint32()));break}case 8:{f.flags=i.uint32();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var n=0;n<i.attributes.length;++n){var c=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[n]);if(c)return"attributes."+c}}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&!$e.isInteger(i.startTimeUnixNano)&&!(i.startTimeUnixNano&&$e.isInteger(i.startTimeUnixNano.low)&&$e.isInteger(i.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.count!=null&&i.hasOwnProperty("count")&&!$e.isInteger(i.count)&&!(i.count&&$e.isInteger(i.count.low)&&$e.isInteger(i.count.high)))return"count: integer|Long expected";if(i.sum!=null&&i.hasOwnProperty("sum")&&typeof i.sum!="number")return"sum: number expected";if(i.quantileValues!=null&&i.hasOwnProperty("quantileValues")){if(!Array.isArray(i.quantileValues))return"quantileValues: array expected";for(var n=0;n<i.quantileValues.length;++n){var c=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(i.quantileValues[n]);if(c)return"quantileValues."+c}}return i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.metrics.v1.SummaryDataPoint)return i;var n=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}if(i.startTimeUnixNano!=null&&($e.Long?(n.startTimeUnixNano=$e.Long.fromValue(i.startTimeUnixNano)).unsigned=!1:typeof i.startTimeUnixNano=="string"?n.startTimeUnixNano=parseInt(i.startTimeUnixNano,10):typeof i.startTimeUnixNano=="number"?n.startTimeUnixNano=i.startTimeUnixNano:typeof i.startTimeUnixNano=="object"&&(n.startTimeUnixNano=new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber())),i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.count!=null&&($e.Long?(n.count=$e.Long.fromValue(i.count)).unsigned=!1:typeof i.count=="string"?n.count=parseInt(i.count,10):typeof i.count=="number"?n.count=i.count:typeof i.count=="object"&&(n.count=new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber())),i.sum!=null&&(n.sum=Number(i.sum)),i.quantileValues){if(!Array.isArray(i.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");n.quantileValues=[];for(var c=0;c<i.quantileValues.length;++c){if(typeof i.quantileValues[c]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");n.quantileValues[c]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(i.quantileValues[c])}}return i.flags!=null&&(n.flags=i.flags>>>0),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.quantileValues=[],c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.startTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.startTimeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if($e.Long){var u=new $e.Long(0,0,!1);c.count=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.count=n.longs===String?"0":0;c.sum=0,c.flags=0}if(i.startTimeUnixNano!=null&&i.hasOwnProperty("startTimeUnixNano")&&(typeof i.startTimeUnixNano=="number"?c.startTimeUnixNano=n.longs===String?String(i.startTimeUnixNano):i.startTimeUnixNano:c.startTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.startTimeUnixNano):n.longs===Number?new $e.LongBits(i.startTimeUnixNano.low>>>0,i.startTimeUnixNano.high>>>0).toNumber():i.startTimeUnixNano),i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.count!=null&&i.hasOwnProperty("count")&&(typeof i.count=="number"?c.count=n.longs===String?String(i.count):i.count:c.count=n.longs===String?$e.Long.prototype.toString.call(i.count):n.longs===Number?new $e.LongBits(i.count.low>>>0,i.count.high>>>0).toNumber():i.count),i.sum!=null&&i.hasOwnProperty("sum")&&(c.sum=n.json&&!isFinite(i.sum)?String(i.sum):i.sum),i.quantileValues&&i.quantileValues.length){c.quantileValues=[];for(var f=0;f<i.quantileValues.length;++f)c.quantileValues[f]=Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(i.quantileValues[f],n)}if(i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},s.ValueAtQuantile=(function(){function a(i){if(i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}return a.prototype.quantile=null,a.prototype.value=null,a.create=function(n){return new a(n)},a.encode=function(n,c){return c||(c=oa.create()),n.quantile!=null&&Object.hasOwnProperty.call(n,"quantile")&&c.uint32(9).double(n.quantile),n.value!=null&&Object.hasOwnProperty.call(n,"value")&&c.uint32(17).double(n.value),c},a.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},a.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 1:{d.quantile=n.double();break}case 2:{d.value=n.double();break}default:n.skipType(p&7);break}}return d},a.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},a.verify=function(n){return typeof n!="object"||n===null?"object expected":n.quantile!=null&&n.hasOwnProperty("quantile")&&typeof n.quantile!="number"?"quantile: number expected":n.value!=null&&n.hasOwnProperty("value")&&typeof n.value!="number"?"value: number expected":null},a.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return n;var c=new Be.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return n.quantile!=null&&(c.quantile=Number(n.quantile)),n.value!=null&&(c.value=Number(n.value)),c},a.toObject=function(n,c){c||(c={});var u={};return c.defaults&&(u.quantile=0,u.value=0),n.quantile!=null&&n.hasOwnProperty("quantile")&&(u.quantile=c.json&&!isFinite(n.quantile)?String(n.quantile):n.quantile),n.value!=null&&n.hasOwnProperty("value")&&(u.value=c.json&&!isFinite(n.value)?String(n.value):n.value),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},a.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},a})(),s})(),o.Exemplar=(function(){function s(i){if(this.filteredAttributes=[],i)for(var n=Object.keys(i),c=0;c<n.length;++c)i[n[c]]!=null&&(this[n[c]]=i[n[c]])}s.prototype.filteredAttributes=$e.emptyArray,s.prototype.timeUnixNano=null,s.prototype.asDouble=null,s.prototype.asInt=null,s.prototype.spanId=null,s.prototype.traceId=null;var a;return Object.defineProperty(s.prototype,"value",{get:$e.oneOfGetter(a=["asDouble","asInt"]),set:$e.oneOfSetter(a)}),s.create=function(n){return new s(n)},s.encode=function(n,c){if(c||(c=oa.create()),n.timeUnixNano!=null&&Object.hasOwnProperty.call(n,"timeUnixNano")&&c.uint32(17).fixed64(n.timeUnixNano),n.asDouble!=null&&Object.hasOwnProperty.call(n,"asDouble")&&c.uint32(25).double(n.asDouble),n.spanId!=null&&Object.hasOwnProperty.call(n,"spanId")&&c.uint32(34).bytes(n.spanId),n.traceId!=null&&Object.hasOwnProperty.call(n,"traceId")&&c.uint32(42).bytes(n.traceId),n.asInt!=null&&Object.hasOwnProperty.call(n,"asInt")&&c.uint32(49).sfixed64(n.asInt),n.filteredAttributes!=null&&n.filteredAttributes.length)for(var u=0;u<n.filteredAttributes.length;++u)Be.opentelemetry.proto.common.v1.KeyValue.encode(n.filteredAttributes[u],c.uint32(58).fork()).ldelim();return c},s.encodeDelimited=function(n,c){return this.encode(n,c).ldelim()},s.decode=function(n,c,u){n instanceof Kt||(n=Kt.create(n));for(var f=c===void 0?n.len:n.pos+c,d=new Be.opentelemetry.proto.metrics.v1.Exemplar;n.pos<f;){var p=n.uint32();if(p===u)break;switch(p>>>3){case 7:{d.filteredAttributes&&d.filteredAttributes.length||(d.filteredAttributes=[]),d.filteredAttributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(n,n.uint32()));break}case 2:{d.timeUnixNano=n.fixed64();break}case 3:{d.asDouble=n.double();break}case 6:{d.asInt=n.sfixed64();break}case 4:{d.spanId=n.bytes();break}case 5:{d.traceId=n.bytes();break}default:n.skipType(p&7);break}}return d},s.decodeDelimited=function(n){return n instanceof Kt||(n=new Kt(n)),this.decode(n,n.uint32())},s.verify=function(n){if(typeof n!="object"||n===null)return"object expected";var c={};if(n.filteredAttributes!=null&&n.hasOwnProperty("filteredAttributes")){if(!Array.isArray(n.filteredAttributes))return"filteredAttributes: array expected";for(var u=0;u<n.filteredAttributes.length;++u){var f=Be.opentelemetry.proto.common.v1.KeyValue.verify(n.filteredAttributes[u]);if(f)return"filteredAttributes."+f}}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&!$e.isInteger(n.timeUnixNano)&&!(n.timeUnixNano&&$e.isInteger(n.timeUnixNano.low)&&$e.isInteger(n.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(c.value=1,typeof n.asDouble!="number"))return"asDouble: number expected";if(n.asInt!=null&&n.hasOwnProperty("asInt")){if(c.value===1)return"value: multiple values";if(c.value=1,!$e.isInteger(n.asInt)&&!(n.asInt&&$e.isInteger(n.asInt.low)&&$e.isInteger(n.asInt.high)))return"asInt: integer|Long expected"}return n.spanId!=null&&n.hasOwnProperty("spanId")&&!(n.spanId&&typeof n.spanId.length=="number"||$e.isString(n.spanId))?"spanId: buffer expected":n.traceId!=null&&n.hasOwnProperty("traceId")&&!(n.traceId&&typeof n.traceId.length=="number"||$e.isString(n.traceId))?"traceId: buffer expected":null},s.fromObject=function(n){if(n instanceof Be.opentelemetry.proto.metrics.v1.Exemplar)return n;var c=new Be.opentelemetry.proto.metrics.v1.Exemplar;if(n.filteredAttributes){if(!Array.isArray(n.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");c.filteredAttributes=[];for(var u=0;u<n.filteredAttributes.length;++u){if(typeof n.filteredAttributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");c.filteredAttributes[u]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(n.filteredAttributes[u])}}return n.timeUnixNano!=null&&($e.Long?(c.timeUnixNano=$e.Long.fromValue(n.timeUnixNano)).unsigned=!1:typeof n.timeUnixNano=="string"?c.timeUnixNano=parseInt(n.timeUnixNano,10):typeof n.timeUnixNano=="number"?c.timeUnixNano=n.timeUnixNano:typeof n.timeUnixNano=="object"&&(c.timeUnixNano=new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber())),n.asDouble!=null&&(c.asDouble=Number(n.asDouble)),n.asInt!=null&&($e.Long?(c.asInt=$e.Long.fromValue(n.asInt)).unsigned=!1:typeof n.asInt=="string"?c.asInt=parseInt(n.asInt,10):typeof n.asInt=="number"?c.asInt=n.asInt:typeof n.asInt=="object"&&(c.asInt=new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber())),n.spanId!=null&&(typeof n.spanId=="string"?$e.base64.decode(n.spanId,c.spanId=$e.newBuffer($e.base64.length(n.spanId)),0):n.spanId.length>=0&&(c.spanId=n.spanId)),n.traceId!=null&&(typeof n.traceId=="string"?$e.base64.decode(n.traceId,c.traceId=$e.newBuffer($e.base64.length(n.traceId)),0):n.traceId.length>=0&&(c.traceId=n.traceId)),c},s.toObject=function(n,c){c||(c={});var u={};if((c.arrays||c.defaults)&&(u.filteredAttributes=[]),c.defaults){if($e.Long){var f=new $e.Long(0,0,!1);u.timeUnixNano=c.longs===String?f.toString():c.longs===Number?f.toNumber():f}else u.timeUnixNano=c.longs===String?"0":0;c.bytes===String?u.spanId="":(u.spanId=[],c.bytes!==Array&&(u.spanId=$e.newBuffer(u.spanId))),c.bytes===String?u.traceId="":(u.traceId=[],c.bytes!==Array&&(u.traceId=$e.newBuffer(u.traceId)))}if(n.timeUnixNano!=null&&n.hasOwnProperty("timeUnixNano")&&(typeof n.timeUnixNano=="number"?u.timeUnixNano=c.longs===String?String(n.timeUnixNano):n.timeUnixNano:u.timeUnixNano=c.longs===String?$e.Long.prototype.toString.call(n.timeUnixNano):c.longs===Number?new $e.LongBits(n.timeUnixNano.low>>>0,n.timeUnixNano.high>>>0).toNumber():n.timeUnixNano),n.asDouble!=null&&n.hasOwnProperty("asDouble")&&(u.asDouble=c.json&&!isFinite(n.asDouble)?String(n.asDouble):n.asDouble,c.oneofs&&(u.value="asDouble")),n.spanId!=null&&n.hasOwnProperty("spanId")&&(u.spanId=c.bytes===String?$e.base64.encode(n.spanId,0,n.spanId.length):c.bytes===Array?Array.prototype.slice.call(n.spanId):n.spanId),n.traceId!=null&&n.hasOwnProperty("traceId")&&(u.traceId=c.bytes===String?$e.base64.encode(n.traceId,0,n.traceId.length):c.bytes===Array?Array.prototype.slice.call(n.traceId):n.traceId),n.asInt!=null&&n.hasOwnProperty("asInt")&&(typeof n.asInt=="number"?u.asInt=c.longs===String?String(n.asInt):n.asInt:u.asInt=c.longs===String?$e.Long.prototype.toString.call(n.asInt):c.longs===Number?new $e.LongBits(n.asInt.low>>>0,n.asInt.high>>>0).toNumber():n.asInt,c.oneofs&&(u.value="asInt")),n.filteredAttributes&&n.filteredAttributes.length){u.filteredAttributes=[];for(var d=0;d<n.filteredAttributes.length;++d)u.filteredAttributes[d]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(n.filteredAttributes[d],c)}return u},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/opentelemetry.proto.metrics.v1.Exemplar"},s})(),o})(),r})(),e.logs=(function(){var r={};return r.v1=(function(){var o={};return o.LogsData=(function(){function s(a){if(this.resourceLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resourceLogs=$e.emptyArray,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resourceLogs!=null&&i.resourceLogs.length)for(var c=0;c<i.resourceLogs.length;++c)Be.opentelemetry.proto.logs.v1.ResourceLogs.encode(i.resourceLogs[c],n.uint32(10).fork()).ldelim();return n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.LogsData;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resourceLogs&&f.resourceLogs.length||(f.resourceLogs=[]),f.resourceLogs.push(Be.opentelemetry.proto.logs.v1.ResourceLogs.decode(i,i.uint32()));break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resourceLogs!=null&&i.hasOwnProperty("resourceLogs")){if(!Array.isArray(i.resourceLogs))return"resourceLogs: array expected";for(var n=0;n<i.resourceLogs.length;++n){var c=Be.opentelemetry.proto.logs.v1.ResourceLogs.verify(i.resourceLogs[n]);if(c)return"resourceLogs."+c}}return null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.LogsData)return i;var n=new Be.opentelemetry.proto.logs.v1.LogsData;if(i.resourceLogs){if(!Array.isArray(i.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");n.resourceLogs=[];for(var c=0;c<i.resourceLogs.length;++c){if(typeof i.resourceLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");n.resourceLogs[c]=Be.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(i.resourceLogs[c])}}return n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.resourceLogs=[]),i.resourceLogs&&i.resourceLogs.length){c.resourceLogs=[];for(var u=0;u<i.resourceLogs.length;++u)c.resourceLogs[u]=Be.opentelemetry.proto.logs.v1.ResourceLogs.toObject(i.resourceLogs[u],n)}return c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogsData"},s})(),o.ResourceLogs=(function(){function s(a){if(this.scopeLogs=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.resource=null,s.prototype.scopeLogs=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.resource!=null&&Object.hasOwnProperty.call(i,"resource")&&Be.opentelemetry.proto.resource.v1.Resource.encode(i.resource,n.uint32(10).fork()).ldelim(),i.scopeLogs!=null&&i.scopeLogs.length)for(var c=0;c<i.scopeLogs.length;++c)Be.opentelemetry.proto.logs.v1.ScopeLogs.encode(i.scopeLogs[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.ResourceLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.resource=Be.opentelemetry.proto.resource.v1.Resource.decode(i,i.uint32());break}case 2:{f.scopeLogs&&f.scopeLogs.length||(f.scopeLogs=[]),f.scopeLogs.push(Be.opentelemetry.proto.logs.v1.ScopeLogs.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.resource!=null&&i.hasOwnProperty("resource")){var n=Be.opentelemetry.proto.resource.v1.Resource.verify(i.resource);if(n)return"resource."+n}if(i.scopeLogs!=null&&i.hasOwnProperty("scopeLogs")){if(!Array.isArray(i.scopeLogs))return"scopeLogs: array expected";for(var c=0;c<i.scopeLogs.length;++c){var n=Be.opentelemetry.proto.logs.v1.ScopeLogs.verify(i.scopeLogs[c]);if(n)return"scopeLogs."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.ResourceLogs)return i;var n=new Be.opentelemetry.proto.logs.v1.ResourceLogs;if(i.resource!=null){if(typeof i.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");n.resource=Be.opentelemetry.proto.resource.v1.Resource.fromObject(i.resource)}if(i.scopeLogs){if(!Array.isArray(i.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");n.scopeLogs=[];for(var c=0;c<i.scopeLogs.length;++c){if(typeof i.scopeLogs[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");n.scopeLogs[c]=Be.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(i.scopeLogs[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.scopeLogs=[]),n.defaults&&(c.resource=null,c.schemaUrl=""),i.resource!=null&&i.hasOwnProperty("resource")&&(c.resource=Be.opentelemetry.proto.resource.v1.Resource.toObject(i.resource,n)),i.scopeLogs&&i.scopeLogs.length){c.scopeLogs=[];for(var u=0;u<i.scopeLogs.length;++u)c.scopeLogs[u]=Be.opentelemetry.proto.logs.v1.ScopeLogs.toObject(i.scopeLogs[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ResourceLogs"},s})(),o.ScopeLogs=(function(){function s(a){if(this.logRecords=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.scope=null,s.prototype.logRecords=$e.emptyArray,s.prototype.schemaUrl=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.scope!=null&&Object.hasOwnProperty.call(i,"scope")&&Be.opentelemetry.proto.common.v1.InstrumentationScope.encode(i.scope,n.uint32(10).fork()).ldelim(),i.logRecords!=null&&i.logRecords.length)for(var c=0;c<i.logRecords.length;++c)Be.opentelemetry.proto.logs.v1.LogRecord.encode(i.logRecords[c],n.uint32(18).fork()).ldelim();return i.schemaUrl!=null&&Object.hasOwnProperty.call(i,"schemaUrl")&&n.uint32(26).string(i.schemaUrl),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.ScopeLogs;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.decode(i,i.uint32());break}case 2:{f.logRecords&&f.logRecords.length||(f.logRecords=[]),f.logRecords.push(Be.opentelemetry.proto.logs.v1.LogRecord.decode(i,i.uint32()));break}case 3:{f.schemaUrl=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.scope!=null&&i.hasOwnProperty("scope")){var n=Be.opentelemetry.proto.common.v1.InstrumentationScope.verify(i.scope);if(n)return"scope."+n}if(i.logRecords!=null&&i.hasOwnProperty("logRecords")){if(!Array.isArray(i.logRecords))return"logRecords: array expected";for(var c=0;c<i.logRecords.length;++c){var n=Be.opentelemetry.proto.logs.v1.LogRecord.verify(i.logRecords[c]);if(n)return"logRecords."+n}}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&!$e.isString(i.schemaUrl)?"schemaUrl: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.ScopeLogs)return i;var n=new Be.opentelemetry.proto.logs.v1.ScopeLogs;if(i.scope!=null){if(typeof i.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");n.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(i.scope)}if(i.logRecords){if(!Array.isArray(i.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");n.logRecords=[];for(var c=0;c<i.logRecords.length;++c){if(typeof i.logRecords[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");n.logRecords[c]=Be.opentelemetry.proto.logs.v1.LogRecord.fromObject(i.logRecords[c])}}return i.schemaUrl!=null&&(n.schemaUrl=String(i.schemaUrl)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.logRecords=[]),n.defaults&&(c.scope=null,c.schemaUrl=""),i.scope!=null&&i.hasOwnProperty("scope")&&(c.scope=Be.opentelemetry.proto.common.v1.InstrumentationScope.toObject(i.scope,n)),i.logRecords&&i.logRecords.length){c.logRecords=[];for(var u=0;u<i.logRecords.length;++u)c.logRecords[u]=Be.opentelemetry.proto.logs.v1.LogRecord.toObject(i.logRecords[u],n)}return i.schemaUrl!=null&&i.hasOwnProperty("schemaUrl")&&(c.schemaUrl=i.schemaUrl),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.ScopeLogs"},s})(),o.SeverityNumber=(function(){var s={},a=Object.create(s);return a[s[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,a[s[1]="SEVERITY_NUMBER_TRACE"]=1,a[s[2]="SEVERITY_NUMBER_TRACE2"]=2,a[s[3]="SEVERITY_NUMBER_TRACE3"]=3,a[s[4]="SEVERITY_NUMBER_TRACE4"]=4,a[s[5]="SEVERITY_NUMBER_DEBUG"]=5,a[s[6]="SEVERITY_NUMBER_DEBUG2"]=6,a[s[7]="SEVERITY_NUMBER_DEBUG3"]=7,a[s[8]="SEVERITY_NUMBER_DEBUG4"]=8,a[s[9]="SEVERITY_NUMBER_INFO"]=9,a[s[10]="SEVERITY_NUMBER_INFO2"]=10,a[s[11]="SEVERITY_NUMBER_INFO3"]=11,a[s[12]="SEVERITY_NUMBER_INFO4"]=12,a[s[13]="SEVERITY_NUMBER_WARN"]=13,a[s[14]="SEVERITY_NUMBER_WARN2"]=14,a[s[15]="SEVERITY_NUMBER_WARN3"]=15,a[s[16]="SEVERITY_NUMBER_WARN4"]=16,a[s[17]="SEVERITY_NUMBER_ERROR"]=17,a[s[18]="SEVERITY_NUMBER_ERROR2"]=18,a[s[19]="SEVERITY_NUMBER_ERROR3"]=19,a[s[20]="SEVERITY_NUMBER_ERROR4"]=20,a[s[21]="SEVERITY_NUMBER_FATAL"]=21,a[s[22]="SEVERITY_NUMBER_FATAL2"]=22,a[s[23]="SEVERITY_NUMBER_FATAL3"]=23,a[s[24]="SEVERITY_NUMBER_FATAL4"]=24,a})(),o.LogRecordFlags=(function(){var s={},a=Object.create(s);return a[s[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,a[s[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,a})(),o.LogRecord=(function(){function s(a){if(this.attributes=[],a)for(var i=Object.keys(a),n=0;n<i.length;++n)a[i[n]]!=null&&(this[i[n]]=a[i[n]])}return s.prototype.timeUnixNano=null,s.prototype.observedTimeUnixNano=null,s.prototype.severityNumber=null,s.prototype.severityText=null,s.prototype.body=null,s.prototype.attributes=$e.emptyArray,s.prototype.droppedAttributesCount=null,s.prototype.flags=null,s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.eventName=null,s.create=function(i){return new s(i)},s.encode=function(i,n){if(n||(n=oa.create()),i.timeUnixNano!=null&&Object.hasOwnProperty.call(i,"timeUnixNano")&&n.uint32(9).fixed64(i.timeUnixNano),i.severityNumber!=null&&Object.hasOwnProperty.call(i,"severityNumber")&&n.uint32(16).int32(i.severityNumber),i.severityText!=null&&Object.hasOwnProperty.call(i,"severityText")&&n.uint32(26).string(i.severityText),i.body!=null&&Object.hasOwnProperty.call(i,"body")&&Be.opentelemetry.proto.common.v1.AnyValue.encode(i.body,n.uint32(42).fork()).ldelim(),i.attributes!=null&&i.attributes.length)for(var c=0;c<i.attributes.length;++c)Be.opentelemetry.proto.common.v1.KeyValue.encode(i.attributes[c],n.uint32(50).fork()).ldelim();return i.droppedAttributesCount!=null&&Object.hasOwnProperty.call(i,"droppedAttributesCount")&&n.uint32(56).uint32(i.droppedAttributesCount),i.flags!=null&&Object.hasOwnProperty.call(i,"flags")&&n.uint32(69).fixed32(i.flags),i.traceId!=null&&Object.hasOwnProperty.call(i,"traceId")&&n.uint32(74).bytes(i.traceId),i.spanId!=null&&Object.hasOwnProperty.call(i,"spanId")&&n.uint32(82).bytes(i.spanId),i.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(i,"observedTimeUnixNano")&&n.uint32(89).fixed64(i.observedTimeUnixNano),i.eventName!=null&&Object.hasOwnProperty.call(i,"eventName")&&n.uint32(98).string(i.eventName),n},s.encodeDelimited=function(i,n){return this.encode(i,n).ldelim()},s.decode=function(i,n,c){i instanceof Kt||(i=Kt.create(i));for(var u=n===void 0?i.len:i.pos+n,f=new Be.opentelemetry.proto.logs.v1.LogRecord;i.pos<u;){var d=i.uint32();if(d===c)break;switch(d>>>3){case 1:{f.timeUnixNano=i.fixed64();break}case 11:{f.observedTimeUnixNano=i.fixed64();break}case 2:{f.severityNumber=i.int32();break}case 3:{f.severityText=i.string();break}case 5:{f.body=Be.opentelemetry.proto.common.v1.AnyValue.decode(i,i.uint32());break}case 6:{f.attributes&&f.attributes.length||(f.attributes=[]),f.attributes.push(Be.opentelemetry.proto.common.v1.KeyValue.decode(i,i.uint32()));break}case 7:{f.droppedAttributesCount=i.uint32();break}case 8:{f.flags=i.fixed32();break}case 9:{f.traceId=i.bytes();break}case 10:{f.spanId=i.bytes();break}case 12:{f.eventName=i.string();break}default:i.skipType(d&7);break}}return f},s.decodeDelimited=function(i){return i instanceof Kt||(i=new Kt(i)),this.decode(i,i.uint32())},s.verify=function(i){if(typeof i!="object"||i===null)return"object expected";if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&!$e.isInteger(i.timeUnixNano)&&!(i.timeUnixNano&&$e.isInteger(i.timeUnixNano.low)&&$e.isInteger(i.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&!$e.isInteger(i.observedTimeUnixNano)&&!(i.observedTimeUnixNano&&$e.isInteger(i.observedTimeUnixNano.low)&&$e.isInteger(i.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(i.severityNumber!=null&&i.hasOwnProperty("severityNumber"))switch(i.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(i.severityText!=null&&i.hasOwnProperty("severityText")&&!$e.isString(i.severityText))return"severityText: string expected";if(i.body!=null&&i.hasOwnProperty("body")){var n=Be.opentelemetry.proto.common.v1.AnyValue.verify(i.body);if(n)return"body."+n}if(i.attributes!=null&&i.hasOwnProperty("attributes")){if(!Array.isArray(i.attributes))return"attributes: array expected";for(var c=0;c<i.attributes.length;++c){var n=Be.opentelemetry.proto.common.v1.KeyValue.verify(i.attributes[c]);if(n)return"attributes."+n}}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&!$e.isInteger(i.droppedAttributesCount)?"droppedAttributesCount: integer expected":i.flags!=null&&i.hasOwnProperty("flags")&&!$e.isInteger(i.flags)?"flags: integer expected":i.traceId!=null&&i.hasOwnProperty("traceId")&&!(i.traceId&&typeof i.traceId.length=="number"||$e.isString(i.traceId))?"traceId: buffer expected":i.spanId!=null&&i.hasOwnProperty("spanId")&&!(i.spanId&&typeof i.spanId.length=="number"||$e.isString(i.spanId))?"spanId: buffer expected":i.eventName!=null&&i.hasOwnProperty("eventName")&&!$e.isString(i.eventName)?"eventName: string expected":null},s.fromObject=function(i){if(i instanceof Be.opentelemetry.proto.logs.v1.LogRecord)return i;var n=new Be.opentelemetry.proto.logs.v1.LogRecord;switch(i.timeUnixNano!=null&&($e.Long?(n.timeUnixNano=$e.Long.fromValue(i.timeUnixNano)).unsigned=!1:typeof i.timeUnixNano=="string"?n.timeUnixNano=parseInt(i.timeUnixNano,10):typeof i.timeUnixNano=="number"?n.timeUnixNano=i.timeUnixNano:typeof i.timeUnixNano=="object"&&(n.timeUnixNano=new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber())),i.observedTimeUnixNano!=null&&($e.Long?(n.observedTimeUnixNano=$e.Long.fromValue(i.observedTimeUnixNano)).unsigned=!1:typeof i.observedTimeUnixNano=="string"?n.observedTimeUnixNano=parseInt(i.observedTimeUnixNano,10):typeof i.observedTimeUnixNano=="number"?n.observedTimeUnixNano=i.observedTimeUnixNano:typeof i.observedTimeUnixNano=="object"&&(n.observedTimeUnixNano=new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber())),i.severityNumber){default:if(typeof i.severityNumber=="number"){n.severityNumber=i.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:n.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:n.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:n.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:n.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:n.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:n.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:n.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:n.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:n.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:n.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:n.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:n.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:n.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:n.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:n.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:n.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:n.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:n.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:n.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:n.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:n.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:n.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:n.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:n.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:n.severityNumber=24;break}if(i.severityText!=null&&(n.severityText=String(i.severityText)),i.body!=null){if(typeof i.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");n.body=Be.opentelemetry.proto.common.v1.AnyValue.fromObject(i.body)}if(i.attributes){if(!Array.isArray(i.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");n.attributes=[];for(var c=0;c<i.attributes.length;++c){if(typeof i.attributes[c]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");n.attributes[c]=Be.opentelemetry.proto.common.v1.KeyValue.fromObject(i.attributes[c])}}return i.droppedAttributesCount!=null&&(n.droppedAttributesCount=i.droppedAttributesCount>>>0),i.flags!=null&&(n.flags=i.flags>>>0),i.traceId!=null&&(typeof i.traceId=="string"?$e.base64.decode(i.traceId,n.traceId=$e.newBuffer($e.base64.length(i.traceId)),0):i.traceId.length>=0&&(n.traceId=i.traceId)),i.spanId!=null&&(typeof i.spanId=="string"?$e.base64.decode(i.spanId,n.spanId=$e.newBuffer($e.base64.length(i.spanId)),0):i.spanId.length>=0&&(n.spanId=i.spanId)),i.eventName!=null&&(n.eventName=String(i.eventName)),n},s.toObject=function(i,n){n||(n={});var c={};if((n.arrays||n.defaults)&&(c.attributes=[]),n.defaults){if($e.Long){var u=new $e.Long(0,0,!1);c.timeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.timeUnixNano=n.longs===String?"0":0;if(c.severityNumber=n.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,c.severityText="",c.body=null,c.droppedAttributesCount=0,c.flags=0,n.bytes===String?c.traceId="":(c.traceId=[],n.bytes!==Array&&(c.traceId=$e.newBuffer(c.traceId))),n.bytes===String?c.spanId="":(c.spanId=[],n.bytes!==Array&&(c.spanId=$e.newBuffer(c.spanId))),$e.Long){var u=new $e.Long(0,0,!1);c.observedTimeUnixNano=n.longs===String?u.toString():n.longs===Number?u.toNumber():u}else c.observedTimeUnixNano=n.longs===String?"0":0;c.eventName=""}if(i.timeUnixNano!=null&&i.hasOwnProperty("timeUnixNano")&&(typeof i.timeUnixNano=="number"?c.timeUnixNano=n.longs===String?String(i.timeUnixNano):i.timeUnixNano:c.timeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.timeUnixNano):n.longs===Number?new $e.LongBits(i.timeUnixNano.low>>>0,i.timeUnixNano.high>>>0).toNumber():i.timeUnixNano),i.severityNumber!=null&&i.hasOwnProperty("severityNumber")&&(c.severityNumber=n.enums===String?Be.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]===void 0?i.severityNumber:Be.opentelemetry.proto.logs.v1.SeverityNumber[i.severityNumber]:i.severityNumber),i.severityText!=null&&i.hasOwnProperty("severityText")&&(c.severityText=i.severityText),i.body!=null&&i.hasOwnProperty("body")&&(c.body=Be.opentelemetry.proto.common.v1.AnyValue.toObject(i.body,n)),i.attributes&&i.attributes.length){c.attributes=[];for(var f=0;f<i.attributes.length;++f)c.attributes[f]=Be.opentelemetry.proto.common.v1.KeyValue.toObject(i.attributes[f],n)}return i.droppedAttributesCount!=null&&i.hasOwnProperty("droppedAttributesCount")&&(c.droppedAttributesCount=i.droppedAttributesCount),i.flags!=null&&i.hasOwnProperty("flags")&&(c.flags=i.flags),i.traceId!=null&&i.hasOwnProperty("traceId")&&(c.traceId=n.bytes===String?$e.base64.encode(i.traceId,0,i.traceId.length):n.bytes===Array?Array.prototype.slice.call(i.traceId):i.traceId),i.spanId!=null&&i.hasOwnProperty("spanId")&&(c.spanId=n.bytes===String?$e.base64.encode(i.spanId,0,i.spanId.length):n.bytes===Array?Array.prototype.slice.call(i.spanId):i.spanId),i.observedTimeUnixNano!=null&&i.hasOwnProperty("observedTimeUnixNano")&&(typeof i.observedTimeUnixNano=="number"?c.observedTimeUnixNano=n.longs===String?String(i.observedTimeUnixNano):i.observedTimeUnixNano:c.observedTimeUnixNano=n.longs===String?$e.Long.prototype.toString.call(i.observedTimeUnixNano):n.longs===Number?new $e.LongBits(i.observedTimeUnixNano.low>>>0,i.observedTimeUnixNano.high>>>0).toNumber():i.observedTimeUnixNano),i.eventName!=null&&i.hasOwnProperty("eventName")&&(c.eventName=i.eventName),c},s.prototype.toJSON=function(){return this.constructor.toObject(this,Lo.util.toJSONOptions)},s.getTypeUrl=function(i){return i===void 0&&(i="type.googleapis.com"),i+"/opentelemetry.proto.logs.v1.LogRecord"},s})(),o})(),r})(),e})(),t})();hjr.exports=Be});var gjr=E(HOe=>{"use strict";Object.defineProperty(HOe,"__esModule",{value:!0});HOe.hexToBinary=void 0;function mjr(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function bDo(t){let e=new Uint8Array(t.length/2),r=0;for(let o=0;o<t.length;o+=2){let s=mjr(t.charCodeAt(o)),a=mjr(t.charCodeAt(o+1));e[r++]=s<<4|a}return e}HOe.hexToBinary=bDo});var VOe=E(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.getOtlpEncoder=Z_.encodeAsString=Z_.encodeAsLongBits=Z_.toLongBits=Z_.hrTimeToNanos=void 0;var EDo=v2e(),P4t=gjr();function k4t(t){let e=BigInt(1e9);return BigInt(Math.trunc(t[0]))*e+BigInt(Math.trunc(t[1]))}Z_.hrTimeToNanos=k4t;function Ajr(t){let e=Number(BigInt.asUintN(32,t)),r=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:r}}Z_.toLongBits=Ajr;function B4t(t){let e=k4t(t);return Ajr(e)}Z_.encodeAsLongBits=B4t;function vjr(t){return k4t(t).toString()}Z_.encodeAsString=vjr;var SDo=typeof BigInt<"u"?vjr:EDo.hrTimeToNanoseconds;function yjr(t){return t}function bjr(t){if(t!==void 0)return(0,P4t.hexToBinary)(t)}var _Do={encodeHrTime:B4t,encodeSpanContext:P4t.hexToBinary,encodeOptionalSpanContext:bjr};function xDo(t){if(t===void 0)return _Do;let e=t.useLongBits??!0,r=t.useHex??!1;return{encodeHrTime:e?B4t:SDo,encodeSpanContext:r?yjr:P4t.hexToBinary,encodeOptionalSpanContext:r?yjr:bjr}}Z_.getOtlpEncoder=xDo});var GOe=E(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0});ex.toAnyValue=ex.toKeyValue=ex.toAttributes=ex.createInstrumentationScope=ex.createResource=void 0;function CDo(t){let e={attributes:Ejr(t.attributes),droppedAttributesCount:0},r=t.schemaUrl;return r&&r!==""&&(e.schemaUrl=r),e}ex.createResource=CDo;function TDo(t){return{name:t.name,version:t.version}}ex.createInstrumentationScope=TDo;function Ejr(t){return Object.keys(t).map(e=>M4t(e,t[e]))}ex.toAttributes=Ejr;function M4t(t,e){return{key:t,value:L4t(e)}}ex.toKeyValue=M4t;function L4t(t){let e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(L4t)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([r,o])=>M4t(r,o))}}:{}}ex.toAnyValue=L4t});var U4t=E(yte=>{"use strict";Object.defineProperty(yte,"__esModule",{value:!0});yte.toLogAttributes=yte.createExportLogsServiceRequest=void 0;var wDo=VOe(),jOe=GOe();function IDo(t,e){let r=(0,wDo.getOtlpEncoder)(e);return{resourceLogs:ODo(t,r)}}yte.createExportLogsServiceRequest=IDo;function DDo(t){let e=new Map;for(let r of t){let{resource:o,instrumentationScope:{name:s,version:a="",schemaUrl:i=""}}=r,n=e.get(o);n||(n=new Map,e.set(o,n));let c=`${s}@${a}:${i}`,u=n.get(c);u||(u=[],n.set(c,u)),u.push(r)}return e}function ODo(t,e){let r=DDo(t);return Array.from(r,([o,s])=>{let a=(0,jOe.createResource)(o);return{resource:a,scopeLogs:Array.from(s,([,i])=>({scope:(0,jOe.createInstrumentationScope)(i[0].instrumentationScope),logRecords:i.map(n=>RDo(n,e)),schemaUrl:i[0].instrumentationScope.schemaUrl})),schemaUrl:a.schemaUrl}})}function RDo(t,e){return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:(0,jOe.toAnyValue)(t.body),eventName:t.eventName,attributes:Sjr(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:t.spanContext?.traceFlags,traceId:e.encodeOptionalSpanContext(t.spanContext?.traceId),spanId:e.encodeOptionalSpanContext(t.spanContext?.spanId)}}function Sjr(t){return Object.keys(t).map(e=>(0,jOe.toKeyValue)(e,t[e]))}yte.toLogAttributes=Sjr});var xjr=E($Oe=>{"use strict";Object.defineProperty($Oe,"__esModule",{value:!0});$Oe.ProtobufLogsSerializer=void 0;var _jr=qOe(),NDo=U4t(),PDo=_jr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,kDo=_jr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;$Oe.ProtobufLogsSerializer={serializeRequest:t=>{let e=(0,NDo.createExportLogsServiceRequest)(t);return kDo.encode(e).finish()},deserializeResponse:t=>PDo.decode(t)}});var Cjr=E(WOe=>{"use strict";Object.defineProperty(WOe,"__esModule",{value:!0});WOe.ProtobufLogsSerializer=void 0;var BDo=xjr();Object.defineProperty(WOe,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return BDo.ProtobufLogsSerializer}})});var zOe=E(_2e=>{"use strict";Object.defineProperty(_2e,"__esModule",{value:!0});_2e.AggregationTemporality=void 0;var MDo;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(MDo=_2e.AggregationTemporality||(_2e.AggregationTemporality={}))});var _B=E(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.DataPointType=SB.InstrumentType=void 0;var LDo;(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(LDo=SB.InstrumentType||(SB.InstrumentType={}));var UDo;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(UDo=SB.DataPointType||(SB.DataPointType={}))});var X4=E(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.equalsCaseInsensitive=tp.binarySearchUB=tp.setEquals=tp.FlatMap=tp.isPromiseAllSettledRejectionResult=tp.PromiseAllSettled=tp.callWithTimeout=tp.TimeoutError=tp.instrumentationScopeId=tp.hashAttributes=tp.isNotNullish=void 0;function FDo(t){return t!=null}tp.isNotNullish=FDo;function QDo(t){let e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(r=>[r,t[r]])))}tp.hashAttributes=QDo;function qDo(t){return`${t.name}:${t.version??""}:${t.schemaUrl??""}`}tp.instrumentationScopeId=qDo;var KOe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};tp.TimeoutError=KOe;function HDo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new KOe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}tp.callWithTimeout=HDo;async function VDo(t){return Promise.all(t.map(async e=>{try{return{status:"fulfilled",value:await e}}catch(r){return{status:"rejected",reason:r}}}))}tp.PromiseAllSettled=VDo;function GDo(t){return t.status==="rejected"}tp.isPromiseAllSettledRejectionResult=GDo;function jDo(t,e){let r=[];return t.forEach(o=>{r.push(...e(o))}),r}tp.FlatMap=jDo;function $Do(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}tp.setEquals=$Do;function WDo(t,e){let r=0,o=t.length-1,s=t.length;for(;o>=r;){let a=r+Math.trunc((o-r)/2);t[a]<e?r=a+1:(s=a,o=a-1)}return s}tp.binarySearchUB=WDo;function zDo(t,e){return t.toLowerCase()===e.toLowerCase()}tp.equalsCaseInsensitive=zDo});var Ate=E(x2e=>{"use strict";Object.defineProperty(x2e,"__esModule",{value:!0});x2e.AggregatorKind=void 0;var KDo;(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(KDo=x2e.AggregatorKind||(x2e.AggregatorKind={}))});var Tjr=E(YOe=>{"use strict";Object.defineProperty(YOe,"__esModule",{value:!0});YOe.DropAggregator=void 0;var YDo=Ate(),F4t=class{kind=YDo.AggregatorKind.DROP;createAccumulation(){}merge(e,r){}diff(e,r){}toMetricData(e,r,o,s){}};YOe.DropAggregator=F4t});var wjr=E(bte=>{"use strict";Object.defineProperty(bte,"__esModule",{value:!0});bte.HistogramAggregator=bte.HistogramAccumulation=void 0;var JDo=Ate(),C2e=_B(),XDo=X4();function ZDo(t){let e=t.map(()=>0);return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var vte=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,r,o=!0,s=ZDo(r)){this.startTime=e,this._boundaries=r,this._recordMinMax=o,this._current=s}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let r=(0,XDo.binarySearchUB)(this._boundaries,e);this._current.buckets.counts[r]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};bte.HistogramAccumulation=vte;var Q4t=class{_boundaries;_recordMinMax;kind=JDo.AggregatorKind.HISTOGRAM;constructor(e,r){this._boundaries=e,this._recordMinMax=r}createAccumulation(e){return new vte(e,this._boundaries,this._recordMinMax)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let f=0;f<a.length;f++)n[f]=a[f]+i[f];let c=1/0,u=-1/0;return this._recordMinMax&&(o.hasMinMax&&s.hasMinMax?(c=Math.min(o.min,s.min),u=Math.max(o.max,s.max)):o.hasMinMax?(c=o.min,u=o.max):s.hasMinMax&&(c=s.min,u=s.max)),new vte(e.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:o.count+s.count,sum:o.sum+s.sum,hasMinMax:this._recordMinMax&&(o.hasMinMax||s.hasMinMax),min:c,max:u})}diff(e,r){let o=e.toPointValue(),s=r.toPointValue(),a=o.buckets.counts,i=s.buckets.counts,n=new Array(a.length);for(let c=0;c<a.length;c++)n[c]=i[c]-a[c];return new vte(r.startTime,o.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:o.buckets.boundaries,counts:n},count:s.count-o.count,sum:s.sum-o.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:C2e.DataPointType.HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===C2e.InstrumentType.GAUGE||e.type===C2e.InstrumentType.UP_DOWN_COUNTER||e.type===C2e.InstrumentType.OBSERVABLE_GAUGE||e.type===C2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,buckets:n.buckets,count:n.count}}})}}};bte.HistogramAggregator=Q4t});var Ijr=E(JOe=>{"use strict";Object.defineProperty(JOe,"__esModule",{value:!0});JOe.Buckets=void 0;var q4t=class t{backing;indexBase;indexStart;indexEnd;constructor(e=new H4t,r=0,o=0,s=0){this.backing=e,this.indexBase=r,this.indexStart=o,this.indexEnd=s}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,r)=>this.at(r))}at(e){let r=this.indexBase-this.indexStart;return e<r&&(e+=this.backing.length),e-=r,this.backing.countAt(e)}incrementBucket(e,r){this.backing.increment(e,r)}decrementBucket(e,r){this.backing.decrement(e,r)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let r=1+this.indexEnd-this.indexStart,o=1<<e,s=0,a=0;for(let i=this.indexStart;i<=this.indexEnd;){let n=i%o;n<0&&(n+=o);for(let c=n;c<o&&s<r;c++)this._relocateBucket(a,s),s++,i++;a++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,r){e!==r&&this.incrementBucket(e,this.backing.emptyBucket(r))}};JOe.Buckets=q4t;var H4t=class t{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,r,o){let s=new Array(e).fill(0);s.splice(o,this._counts.length-r,...this._counts.slice(r)),s.splice(0,r,...this._counts.slice(0,r)),this._counts=s}reverse(e,r){let o=Math.floor((e+r)/2)-e;for(let s=0;s<o;s++){let a=this._counts[e+s];this._counts[e+s]=this._counts[r-s-1],this._counts[r-s-1]=a}}emptyBucket(e){let r=this._counts[e];return this._counts[e]=0,r}increment(e,r){this._counts[e]+=r}decrement(e,r){this._counts[e]>=r?this._counts[e]-=r:this._counts[e]=0}clone(){return new t([...this._counts])}}});var G4t=E(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.getSignificand=Bv.getNormalBase2=Bv.MIN_VALUE=Bv.MAX_NORMAL_EXPONENT=Bv.MIN_NORMAL_EXPONENT=Bv.SIGNIFICAND_WIDTH=void 0;Bv.SIGNIFICAND_WIDTH=52;var e9o=2146435072,t9o=1048575,V4t=1023;Bv.MIN_NORMAL_EXPONENT=-V4t+1;Bv.MAX_NORMAL_EXPONENT=V4t;Bv.MIN_VALUE=Math.pow(2,-1022);function r9o(t){let e=new DataView(new ArrayBuffer(8));return e.setFloat64(0,t),((e.getUint32(0)&e9o)>>20)-V4t}Bv.getNormalBase2=r9o;function n9o(t){let e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);let r=e.getUint32(0),o=e.getUint32(4);return(r&t9o)*Math.pow(2,32)+o}Bv.getSignificand=n9o});var XOe=E(Ete=>{"use strict";Object.defineProperty(Ete,"__esModule",{value:!0});Ete.nextGreaterSquare=Ete.ldexp=void 0;function i9o(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}Ete.ldexp=i9o;function o9o(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}Ete.nextGreaterSquare=o9o});var eRe=E(ZOe=>{"use strict";Object.defineProperty(ZOe,"__esModule",{value:!0});ZOe.MappingError=void 0;var j4t=class extends Error{};ZOe.MappingError=j4t});var Ojr=E(tRe=>{"use strict";Object.defineProperty(tRe,"__esModule",{value:!0});tRe.ExponentMapping=void 0;var Ste=G4t(),s9o=XOe(),Djr=eRe(),$4t=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){if(e<Ste.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let r=Ste.getNormalBase2(e),o=this._rightShift(Ste.getSignificand(e)-1,Ste.SIGNIFICAND_WIDTH);return r+o>>this._shift}lowerBoundary(e){let r=this._minNormalLowerBoundaryIndex();if(e<r)throw new Djr.MappingError(`underflow: ${e} is < minimum lower boundary: ${r}`);let o=this._maxNormalLowerBoundaryIndex();if(e>o)throw new Djr.MappingError(`overflow: ${e} is > maximum lower boundary: ${o}`);return s9o.ldexp(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=Ste.MIN_NORMAL_EXPONENT>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return Ste.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(e,r){return Math.floor(e*Math.pow(2,-r))}};tRe.ExponentMapping=$4t});var Pjr=E(rRe=>{"use strict";Object.defineProperty(rRe,"__esModule",{value:!0});rRe.LogarithmMapping=void 0;var _te=G4t(),Rjr=XOe(),Njr=eRe(),W4t=class{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=Rjr.ldexp(Math.LOG2E,e),this._inverseFactor=Rjr.ldexp(Math.LN2,-e)}mapToIndex(e){if(e<=_te.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(_te.getSignificand(e)===0)return(_te.getNormalBase2(e)<<this._scale)-1;let r=Math.floor(Math.log(e)*this._scaleFactor),o=this._maxNormalLowerBoundaryIndex();return r>=o?o:r}lowerBoundary(e){let r=this._maxNormalLowerBoundaryIndex();if(e>=r){if(e===r)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new Njr.MappingError(`overflow: ${e} is > maximum lower boundary: ${r}`)}let o=this._minNormalLowerBoundaryIndex();if(e<=o){if(e===o)return _te.MIN_VALUE;if(e===o-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new Njr.MappingError(`overflow: ${e} is < minimum lower boundary: ${o}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return _te.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(_te.MAX_NORMAL_EXPONENT+1<<this._scale)-1}};rRe.LogarithmMapping=W4t});var Mjr=E(nRe=>{"use strict";Object.defineProperty(nRe,"__esModule",{value:!0});nRe.getMapping=void 0;var a9o=Ojr(),c9o=Pjr(),l9o=eRe(),kjr=-10,Bjr=20,u9o=Array.from({length:31},(t,e)=>e>10?new c9o.LogarithmMapping(e-10):new a9o.ExponentMapping(e-10));function f9o(t){if(t>Bjr||t<kjr)throw new l9o.MappingError(`expected scale >= ${kjr} && <= ${Bjr}, got: ${t}`);return u9o[t+10]}nRe.getMapping=f9o});var Fjr=E(Cte=>{"use strict";Object.defineProperty(Cte,"__esModule",{value:!0});Cte.ExponentialHistogramAggregator=Cte.ExponentialHistogramAccumulation=void 0;var d9o=Ate(),T2e=_B(),p9o=(ut(),nt(_t)),Ljr=Ijr(),Ujr=Mjr(),h9o=XOe(),xte=class t{low;high;static combine(e,r){return new t(Math.min(e.low,r.low),Math.max(e.high,r.high))}constructor(e,r){this.low=e,this.high=r}},m9o=20,g9o=160,z4t=2,iRe=class t{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,r=g9o,o=!0,s=0,a=0,i=0,n=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=new Ljr.Buckets,f=new Ljr.Buckets,d=(0,Ujr.getMapping)(m9o)){this.startTime=e,this._maxSize=r,this._recordMinMax=o,this._sum=s,this._count=a,this._zeroCount=i,this._min=n,this._max=c,this._positive=u,this._negative=f,this._mapping=d,this._maxSize<z4t&&(p9o.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${z4t}`),this._maxSize=z4t)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,r){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=r,e===0){this._zeroCount+=r;return}this._sum+=e*r,e>0?this._updateBuckets(this._positive,e,r):this._updateBuckets(this._negative,-e,r)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._mergeBuckets(this.positive,e,e.positive,r),this._mergeBuckets(this.negative,e,e.negative,r)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let r=this._minScale(e);this._downscale(this.scale-r),this._diffBuckets(this.positive,e,e.positive,r),this._diffBuckets(this.negative,e,e.negative,r)}clone(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,r,o){let s=this._mapping.mapToIndex(r),a=!1,i=0,n=0;if(e.length===0?(e.indexStart=s,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):s<e.indexStart&&e.indexEnd-s>=this._maxSize?(a=!0,n=s,i=e.indexEnd):s>e.indexEnd&&s-e.indexStart>=this._maxSize&&(a=!0,n=e.indexStart,i=s),a){let c=this._changeScale(i,n);this._downscale(c),s=this._mapping.mapToIndex(r)}this._incrementIndexBy(e,s,o)}_incrementIndexBy(e,r,o){if(o===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=r),r<e.indexStart){let a=e.indexEnd-r;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=r}else if(r>e.indexEnd){let a=r-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=r}let s=r-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,o)}_grow(e,r){let o=e.backing.length,s=e.indexBase-e.indexStart,a=o-s,i=(0,h9o.nextGreaterSquare)(r);i>this._maxSize&&(i=this._maxSize);let n=i-s;e.backing.growTo(i,a,n)}_changeScale(e,r){let o=0;for(;e-r>=this._maxSize;)e>>=1,r>>=1,o++;return o}_downscale(e){if(e===0)return;if(e<0)throw new Error(`impossible change of scale: ${this.scale}`);let r=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=(0,Ujr.getMapping)(r)}_minScale(e){let r=Math.min(this.scale,e.scale),o=xte.combine(this._highLowAtScale(this.positive,this.scale,r),this._highLowAtScale(e.positive,e.scale,r)),s=xte.combine(this._highLowAtScale(this.negative,this.scale,r),this._highLowAtScale(e.negative,e.scale,r));return Math.min(r-this._changeScale(o.high,o.low),r-this._changeScale(s.high,s.low))}_highLowAtScale(e,r,o){if(e.length===0)return new xte(0,-1);let s=r-o;return new xte(e.indexStart>>s,e.indexEnd>>s)}_mergeBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++)this._incrementIndexBy(e,a+n>>i,o.at(n))}_diffBuckets(e,r,o,s){let a=o.offset,i=r.scale-s;for(let n=0;n<o.length;n++){let u=(a+n>>i)-e.indexBase;u<0&&(u+=e.backing.length),e.decrementBucket(u,o.at(n))}e.trim()}};Cte.ExponentialHistogramAccumulation=iRe;var K4t=class{_maxSize;_recordMinMax;kind=d9o.AggregatorKind.EXPONENTIAL_HISTOGRAM;constructor(e,r){this._maxSize=e,this._recordMinMax=r}createAccumulation(e){return new iRe(e,this._maxSize,this._recordMinMax)}merge(e,r){let o=r.clone();return o.merge(e),o}diff(e,r){let o=r.clone();return o.diff(e),o}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:T2e.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:o.map(([a,i])=>{let n=i.toPointValue(),c=e.type===T2e.InstrumentType.GAUGE||e.type===T2e.InstrumentType.UP_DOWN_COUNTER||e.type===T2e.InstrumentType.OBSERVABLE_GAUGE||e.type===T2e.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:a,startTime:i.startTime,endTime:s,value:{min:n.hasMinMax?n.min:void 0,max:n.hasMinMax?n.max:void 0,sum:c?void 0:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},count:n.count,scale:n.scale,zeroCount:n.zeroCount}}})}}};Cte.ExponentialHistogramAggregator=K4t});var w2e=E(xB=>{"use strict";Object.defineProperty(xB,"__esModule",{value:!0});xB.isTracingSuppressed=xB.unsuppressTracing=xB.suppressTracing=void 0;var y9o=(ut(),nt(_t)),Y4t=(0,y9o.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function A9o(t){return t.setValue(Y4t,!0)}xB.suppressTracing=A9o;function v9o(t){return t.deleteValue(Y4t)}xB.unsuppressTracing=v9o;function b9o(t){return t.getValue(Y4t)===!0}xB.isTracingSuppressed=b9o});var J4t=E(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.BAGGAGE_MAX_TOTAL_LENGTH=ty.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ty.BAGGAGE_MAX_NAME_VALUE_PAIRS=ty.BAGGAGE_HEADER=ty.BAGGAGE_ITEMS_SEPARATOR=ty.BAGGAGE_PROPERTIES_SEPARATOR=ty.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ty.BAGGAGE_KEY_PAIR_SEPARATOR="=";ty.BAGGAGE_PROPERTIES_SEPARATOR=";";ty.BAGGAGE_ITEMS_SEPARATOR=",";ty.BAGGAGE_HEADER="baggage";ty.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ty.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ty.BAGGAGE_MAX_TOTAL_LENGTH=8192});var X4t=E(X5=>{"use strict";Object.defineProperty(X5,"__esModule",{value:!0});X5.parseKeyPairsIntoRecord=X5.parsePairKeyValue=X5.getKeyPairs=X5.serializeKeyPairs=void 0;var E9o=(ut(),nt(_t)),uV=J4t();function S9o(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?uV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>uV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}X5.serializeKeyPairs=S9o;function _9o(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=uV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}X5.getKeyPairs=_9o;function Qjr(t){let e=t.split(uV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(uV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,E9o.baggageEntryMetadataFromString)(e.join(uV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}X5.parsePairKeyValue=Qjr;function x9o(t){let e={};return typeof t=="string"&&t.length>0&&t.split(uV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=Qjr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}X5.parseKeyPairsIntoRecord=x9o});var qjr=E(oRe=>{"use strict";Object.defineProperty(oRe,"__esModule",{value:!0});oRe.W3CBaggagePropagator=void 0;var Z4t=(ut(),nt(_t)),C9o=w2e(),fV=J4t(),e6t=X4t(),t6t=class{inject(e,r,o){let s=Z4t.propagation.getBaggage(e);if(!s||(0,C9o.isTracingSuppressed)(e))return;let a=(0,e6t.getKeyPairs)(s).filter(n=>n.length<=fV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,fV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,e6t.serializeKeyPairs)(a);i.length>0&&o.set(r,fV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,fV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(fV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(fV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,e6t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:Z4t.propagation.setBaggage(e,Z4t.propagation.createBaggage(i))}fields(){return[fV.BAGGAGE_HEADER]}};oRe.W3CBaggagePropagator=t6t});var Hjr=E(sRe=>{"use strict";Object.defineProperty(sRe,"__esModule",{value:!0});sRe.AnchoredClock=void 0;var r6t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};sRe.AnchoredClock=r6t});var Wjr=E(CB=>{"use strict";Object.defineProperty(CB,"__esModule",{value:!0});CB.isAttributeValue=CB.isAttributeKey=CB.sanitizeAttributes=void 0;var Vjr=(ut(),nt(_t));function T9o(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!Gjr(r)){Vjr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!jjr(o)){Vjr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}CB.sanitizeAttributes=T9o;function Gjr(t){return typeof t=="string"&&t.length>0}CB.isAttributeKey=Gjr;function jjr(t){return t==null?!0:Array.isArray(t)?w9o(t):$jr(t)}CB.isAttributeValue=jjr;function w9o(t){let e;for(let r of t)if(r!=null){if(!e){if($jr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function $jr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var n6t=E(aRe=>{"use strict";Object.defineProperty(aRe,"__esModule",{value:!0});aRe.loggingErrorHandler=void 0;var I9o=(ut(),nt(_t));function D9o(){return t=>{I9o.diag.error(O9o(t))}}aRe.loggingErrorHandler=D9o;function O9o(t){return typeof t=="string"?t:JSON.stringify(R9o(t))}function R9o(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var Kjr=E(Tte=>{"use strict";Object.defineProperty(Tte,"__esModule",{value:!0});Tte.globalErrorHandler=Tte.setGlobalErrorHandler=void 0;var N9o=n6t(),zjr=(0,N9o.loggingErrorHandler)();function P9o(t){zjr=t}Tte.setGlobalErrorHandler=P9o;function k9o(t){try{zjr(t)}catch{}}Tte.globalErrorHandler=k9o});var Zjr=E(Z5=>{"use strict";Object.defineProperty(Z5,"__esModule",{value:!0});Z5.getStringListFromEnv=Z5.getBooleanFromEnv=Z5.getStringFromEnv=Z5.getNumberFromEnv=void 0;var Yjr=(ut(),nt(_t)),Jjr=me("util");function B9o(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){Yjr.diag.warn(`Unknown value ${(0,Jjr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}Z5.getNumberFromEnv=B9o;function Xjr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}Z5.getStringFromEnv=Xjr;function M9o(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||Yjr.diag.warn(`Unknown value ${(0,Jjr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}Z5.getBooleanFromEnv=M9o;function L9o(t){return Xjr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}Z5.getStringListFromEnv=L9o});var e$r=E(cRe=>{"use strict";Object.defineProperty(cRe,"__esModule",{value:!0});cRe._globalThis=void 0;cRe._globalThis=typeof globalThis=="object"?globalThis:global});var t$r=E(lRe=>{"use strict";Object.defineProperty(lRe,"__esModule",{value:!0});lRe.otperformance=void 0;var U9o=me("perf_hooks");lRe.otperformance=U9o.performance});var r$r=E(uRe=>{"use strict";Object.defineProperty(uRe,"__esModule",{value:!0});uRe.VERSION=void 0;uRe.VERSION="2.1.0"});var n$r=E(fRe=>{"use strict";Object.defineProperty(fRe,"__esModule",{value:!0});fRe.ATTR_PROCESS_RUNTIME_NAME=void 0;fRe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var i$r=E(pRe=>{"use strict";Object.defineProperty(pRe,"__esModule",{value:!0});pRe.SDK_INFO=void 0;var F9o=r$r(),dRe=($l(),nt(Uu)),Q9o=n$r();pRe.SDK_INFO={[dRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[Q9o.ATTR_PROCESS_RUNTIME_NAME]:"node",[dRe.ATTR_TELEMETRY_SDK_LANGUAGE]:dRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[dRe.ATTR_TELEMETRY_SDK_VERSION]:F9o.VERSION}});var o$r=E(hRe=>{"use strict";Object.defineProperty(hRe,"__esModule",{value:!0});hRe.unrefTimer=void 0;function q9o(t){t.unref()}hRe.unrefTimer=q9o});var s$r=E(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.unrefTimer=a0.SDK_INFO=a0.otperformance=a0._globalThis=a0.getStringListFromEnv=a0.getNumberFromEnv=a0.getBooleanFromEnv=a0.getStringFromEnv=void 0;var mRe=Zjr();Object.defineProperty(a0,"getStringFromEnv",{enumerable:!0,get:function(){return mRe.getStringFromEnv}});Object.defineProperty(a0,"getBooleanFromEnv",{enumerable:!0,get:function(){return mRe.getBooleanFromEnv}});Object.defineProperty(a0,"getNumberFromEnv",{enumerable:!0,get:function(){return mRe.getNumberFromEnv}});Object.defineProperty(a0,"getStringListFromEnv",{enumerable:!0,get:function(){return mRe.getStringListFromEnv}});var H9o=e$r();Object.defineProperty(a0,"_globalThis",{enumerable:!0,get:function(){return H9o._globalThis}});var V9o=t$r();Object.defineProperty(a0,"otperformance",{enumerable:!0,get:function(){return V9o.otperformance}});var G9o=i$r();Object.defineProperty(a0,"SDK_INFO",{enumerable:!0,get:function(){return G9o.SDK_INFO}});var j9o=o$r();Object.defineProperty(a0,"unrefTimer",{enumerable:!0,get:function(){return j9o.unrefTimer}})});var i6t=E(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.getStringListFromEnv=c0.getNumberFromEnv=c0.getStringFromEnv=c0.getBooleanFromEnv=c0.unrefTimer=c0.otperformance=c0._globalThis=c0.SDK_INFO=void 0;var TB=s$r();Object.defineProperty(c0,"SDK_INFO",{enumerable:!0,get:function(){return TB.SDK_INFO}});Object.defineProperty(c0,"_globalThis",{enumerable:!0,get:function(){return TB._globalThis}});Object.defineProperty(c0,"otperformance",{enumerable:!0,get:function(){return TB.otperformance}});Object.defineProperty(c0,"unrefTimer",{enumerable:!0,get:function(){return TB.unrefTimer}});Object.defineProperty(c0,"getBooleanFromEnv",{enumerable:!0,get:function(){return TB.getBooleanFromEnv}});Object.defineProperty(c0,"getStringFromEnv",{enumerable:!0,get:function(){return TB.getStringFromEnv}});Object.defineProperty(c0,"getNumberFromEnv",{enumerable:!0,get:function(){return TB.getNumberFromEnv}});Object.defineProperty(c0,"getStringListFromEnv",{enumerable:!0,get:function(){return TB.getStringListFromEnv}})});var u$r=E(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.addHrTimes=Df.isTimeInput=Df.isTimeInputHrTime=Df.hrTimeToMicroseconds=Df.hrTimeToMilliseconds=Df.hrTimeToNanoseconds=Df.hrTimeToTimeStamp=Df.hrTimeDuration=Df.timeInputToHrTime=Df.hrTime=Df.getTimeOrigin=Df.millisToHrTime=void 0;var o6t=i6t(),a$r=9,$9o=6,W9o=Math.pow(10,$9o),gRe=Math.pow(10,a$r);function I2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*W9o);return[r,o]}Df.millisToHrTime=I2e;function s6t(){let t=o6t.otperformance.timeOrigin;if(typeof t!="number"){let e=o6t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Df.getTimeOrigin=s6t;function c$r(t){let e=I2e(s6t()),r=I2e(typeof t=="number"?t:o6t.otperformance.now());return l$r(e,r)}Df.hrTime=c$r;function z9o(t){if(a6t(t))return t;if(typeof t=="number")return t<s6t()?c$r(t):I2e(t);if(t instanceof Date)return I2e(t.getTime());throw TypeError("Invalid input type")}Df.timeInputToHrTime=z9o;function K9o(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=gRe),[r,o]}Df.hrTimeDuration=K9o;function Y9o(t){let e=a$r,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Df.hrTimeToTimeStamp=Y9o;function J9o(t){return t[0]*gRe+t[1]}Df.hrTimeToNanoseconds=J9o;function X9o(t){return t[0]*1e3+t[1]/1e6}Df.hrTimeToMilliseconds=X9o;function Z9o(t){return t[0]*1e6+t[1]/1e3}Df.hrTimeToMicroseconds=Z9o;function a6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Df.isTimeInputHrTime=a6t;function e7o(t){return a6t(t)||typeof t=="number"||t instanceof Date}Df.isTimeInput=e7o;function l$r(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=gRe&&(r[1]-=gRe,r[0]+=1),r}Df.addHrTimes=l$r});var f$r=E(D2e=>{"use strict";Object.defineProperty(D2e,"__esModule",{value:!0});D2e.ExportResultCode=void 0;var t7o;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(t7o=D2e.ExportResultCode||(D2e.ExportResultCode={}))});var p$r=E(yRe=>{"use strict";Object.defineProperty(yRe,"__esModule",{value:!0});yRe.CompositePropagator=void 0;var d$r=(ut(),nt(_t)),c6t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){d$r.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){d$r.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};yRe.CompositePropagator=c6t});var h$r=E(wte=>{"use strict";Object.defineProperty(wte,"__esModule",{value:!0});wte.validateValue=wte.validateKey=void 0;var l6t="[_0-9a-z-*/]",r7o=`[a-z]${l6t}{0,255}`,n7o=`[a-z0-9]${l6t}{0,240}@[a-z]${l6t}{0,13}`,i7o=new RegExp(`^(?:${r7o}|${n7o})$`),o7o=/^[ -~]{0,255}[!-~]$/,s7o=/,|=/;function a7o(t){return i7o.test(t)}wte.validateKey=a7o;function c7o(t){return o7o.test(t)&&!s7o.test(t)}wte.validateValue=c7o});var f6t=E(ARe=>{"use strict";Object.defineProperty(ARe,"__esModule",{value:!0});ARe.TraceState=void 0;var m$r=h$r(),g$r=32,l7o=512,y$r=",",A$r="=",u6t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+A$r+this.get(r)),e),[]).join(y$r)}_parse(e){e.length>l7o||(this._internalState=e.split(y$r).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(A$r);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,m$r.validateKey)(i)&&(0,m$r.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>g$r&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,g$r))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};ARe.TraceState=u6t});var b$r=E(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.W3CTraceContextPropagator=ry.parseTraceParent=ry.TRACE_STATE_HEADER=ry.TRACE_PARENT_HEADER=void 0;var vRe=(ut(),nt(_t)),u7o=w2e(),f7o=f6t();ry.TRACE_PARENT_HEADER="traceparent";ry.TRACE_STATE_HEADER="tracestate";var d7o="00",p7o="(?!ff)[\\da-f]{2}",h7o="(?![0]{32})[\\da-f]{32}",m7o="(?![0]{16})[\\da-f]{16}",g7o="[\\da-f]{2}",y7o=new RegExp(`^\\s?(${p7o})-(${h7o})-(${m7o})-(${g7o})(-.*)?\\s?$`);function v$r(t){let e=y7o.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}ry.parseTraceParent=v$r;var d6t=class{inject(e,r,o){let s=vRe.trace.getSpanContext(e);if(!s||(0,u7o.isTracingSuppressed)(e)||!(0,vRe.isSpanContextValid)(s))return;let a=`${d7o}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||vRe.TraceFlags.NONE).toString(16)}`;o.set(r,ry.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,ry.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,ry.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=v$r(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,ry.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new f7o.TraceState(typeof c=="string"?c:void 0)}return vRe.trace.setSpanContext(e,i)}fields(){return[ry.TRACE_PARENT_HEADER,ry.TRACE_STATE_HEADER]}};ry.W3CTraceContextPropagator=d6t});var E$r=E(Z4=>{"use strict";Object.defineProperty(Z4,"__esModule",{value:!0});Z4.getRPCMetadata=Z4.deleteRPCMetadata=Z4.setRPCMetadata=Z4.RPCType=void 0;var A7o=(ut(),nt(_t)),p6t=(0,A7o.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),v7o;(function(t){t.HTTP="http"})(v7o=Z4.RPCType||(Z4.RPCType={}));function b7o(t,e){return t.setValue(p6t,e)}Z4.setRPCMetadata=b7o;function E7o(t){return t.deleteValue(p6t)}Z4.deleteRPCMetadata=E7o;function S7o(t){return t.getValue(p6t)}Z4.getRPCMetadata=S7o});var T$r=E(bRe=>{"use strict";Object.defineProperty(bRe,"__esModule",{value:!0});bRe.isPlainObject=void 0;var _7o="[object Object]",x7o="[object Null]",C7o="[object Undefined]",T7o=Function.prototype,S$r=T7o.toString,w7o=S$r.call(Object),I7o=Object.getPrototypeOf,_$r=Object.prototype,x$r=_$r.hasOwnProperty,dV=Symbol?Symbol.toStringTag:void 0,C$r=_$r.toString;function D7o(t){if(!O7o(t)||R7o(t)!==_7o)return!1;let e=I7o(t);if(e===null)return!0;let r=x$r.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&S$r.call(r)===w7o}bRe.isPlainObject=D7o;function O7o(t){return t!=null&&typeof t=="object"}function R7o(t){return t==null?t===void 0?C7o:x7o:dV&&dV in Object(t)?N7o(t):P7o(t)}function N7o(t){let e=x$r.call(t,dV),r=t[dV],o=!1;try{t[dV]=void 0,o=!0}catch{}let s=C$r.call(t);return o&&(e?t[dV]=r:delete t[dV]),s}function P7o(t){return C$r.call(t)}});var R$r=E(_Re=>{"use strict";Object.defineProperty(_Re,"__esModule",{value:!0});_Re.merge=void 0;var w$r=T$r(),k7o=20;function B7o(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=D$r(e,t.shift(),0,r);return e}_Re.merge=B7o;function h6t(t){return SRe(t)?t.slice():t}function D$r(t,e,r=0,o){let s;if(!(r>k7o)){if(r++,ERe(t)||ERe(e)||O$r(e))s=h6t(e);else if(SRe(t)){if(s=t.slice(),SRe(e))for(let a=0,i=e.length;a<i;a++)s.push(h6t(e[a]));else if(O2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=h6t(e[c])}}}else if(O2e(t))if(O2e(e)){if(!M7o(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(ERe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(I$r(t,c,o)||I$r(e,c,o))delete s[c];else{if(O2e(f)&&O2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=D$r(s[c],u,r,o)}}}}else s=e;return s}}function I$r(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function SRe(t){return Array.isArray(t)}function O$r(t){return typeof t=="function"}function O2e(t){return!ERe(t)&&!SRe(t)&&!O$r(t)&&typeof t=="object"}function ERe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function M7o(t,e){return!(!(0,w$r.isPlainObject)(t)||!(0,w$r.isPlainObject)(e))}});var N$r=E(Ite=>{"use strict";Object.defineProperty(Ite,"__esModule",{value:!0});Ite.callWithTimeout=Ite.TimeoutError=void 0;var xRe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ite.TimeoutError=xRe;function L7o(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new xRe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Ite.callWithTimeout=L7o});var k$r=E(Dte=>{"use strict";Object.defineProperty(Dte,"__esModule",{value:!0});Dte.isUrlIgnored=Dte.urlMatches=void 0;function P$r(t,e){return typeof e=="string"?t===e:!!t.match(e)}Dte.urlMatches=P$r;function U7o(t,e){if(!e)return!1;for(let r of e)if(P$r(t,r))return!0;return!1}Dte.isUrlIgnored=U7o});var B$r=E(CRe=>{"use strict";Object.defineProperty(CRe,"__esModule",{value:!0});CRe.Deferred=void 0;var m6t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};CRe.Deferred=m6t});var M$r=E(TRe=>{"use strict";Object.defineProperty(TRe,"__esModule",{value:!0});TRe.BindOnceFuture=void 0;var F7o=B$r(),g6t=class{_callback;_that;_isCalled=!1;_deferred=new F7o.Deferred;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};TRe.BindOnceFuture=g6t});var U$r=E(wRe=>{"use strict";Object.defineProperty(wRe,"__esModule",{value:!0});wRe.diagLogLevelFromString=void 0;var sO=(ut(),nt(_t)),L$r={ALL:sO.DiagLogLevel.ALL,VERBOSE:sO.DiagLogLevel.VERBOSE,DEBUG:sO.DiagLogLevel.DEBUG,INFO:sO.DiagLogLevel.INFO,WARN:sO.DiagLogLevel.WARN,ERROR:sO.DiagLogLevel.ERROR,NONE:sO.DiagLogLevel.NONE};function Q7o(t){if(t==null)return;let e=L$r[t.toUpperCase()];return e??(sO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(L$r)}, using default`),sO.DiagLogLevel.INFO)}wRe.diagLogLevelFromString=Q7o});var Q$r=E(IRe=>{"use strict";Object.defineProperty(IRe,"__esModule",{value:!0});IRe._export=void 0;var F$r=(ut(),nt(_t)),q7o=w2e();function H7o(t,e){return new Promise(r=>{F$r.context.with((0,q7o.suppressTracing)(F$r.context.active()),()=>{t.export(e,o=>{r(o)})})})}IRe._export=H7o});var pV=E(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.internal=cn.diagLogLevelFromString=cn.BindOnceFuture=cn.urlMatches=cn.isUrlIgnored=cn.callWithTimeout=cn.TimeoutError=cn.merge=cn.TraceState=cn.unsuppressTracing=cn.suppressTracing=cn.isTracingSuppressed=cn.setRPCMetadata=cn.getRPCMetadata=cn.deleteRPCMetadata=cn.RPCType=cn.parseTraceParent=cn.W3CTraceContextPropagator=cn.TRACE_STATE_HEADER=cn.TRACE_PARENT_HEADER=cn.CompositePropagator=cn.unrefTimer=cn.otperformance=cn.getStringListFromEnv=cn.getNumberFromEnv=cn.getBooleanFromEnv=cn.getStringFromEnv=cn._globalThis=cn.SDK_INFO=cn.parseKeyPairsIntoRecord=cn.ExportResultCode=cn.timeInputToHrTime=cn.millisToHrTime=cn.isTimeInputHrTime=cn.isTimeInput=cn.hrTimeToTimeStamp=cn.hrTimeToNanoseconds=cn.hrTimeToMilliseconds=cn.hrTimeToMicroseconds=cn.hrTimeDuration=cn.hrTime=cn.getTimeOrigin=cn.addHrTimes=cn.loggingErrorHandler=cn.setGlobalErrorHandler=cn.globalErrorHandler=cn.sanitizeAttributes=cn.isAttributeValue=cn.AnchoredClock=cn.W3CBaggagePropagator=void 0;var V7o=qjr();Object.defineProperty(cn,"W3CBaggagePropagator",{enumerable:!0,get:function(){return V7o.W3CBaggagePropagator}});var G7o=Hjr();Object.defineProperty(cn,"AnchoredClock",{enumerable:!0,get:function(){return G7o.AnchoredClock}});var q$r=Wjr();Object.defineProperty(cn,"isAttributeValue",{enumerable:!0,get:function(){return q$r.isAttributeValue}});Object.defineProperty(cn,"sanitizeAttributes",{enumerable:!0,get:function(){return q$r.sanitizeAttributes}});var H$r=Kjr();Object.defineProperty(cn,"globalErrorHandler",{enumerable:!0,get:function(){return H$r.globalErrorHandler}});Object.defineProperty(cn,"setGlobalErrorHandler",{enumerable:!0,get:function(){return H$r.setGlobalErrorHandler}});var j7o=n6t();Object.defineProperty(cn,"loggingErrorHandler",{enumerable:!0,get:function(){return j7o.loggingErrorHandler}});var tx=u$r();Object.defineProperty(cn,"addHrTimes",{enumerable:!0,get:function(){return tx.addHrTimes}});Object.defineProperty(cn,"getTimeOrigin",{enumerable:!0,get:function(){return tx.getTimeOrigin}});Object.defineProperty(cn,"hrTime",{enumerable:!0,get:function(){return tx.hrTime}});Object.defineProperty(cn,"hrTimeDuration",{enumerable:!0,get:function(){return tx.hrTimeDuration}});Object.defineProperty(cn,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return tx.hrTimeToMicroseconds}});Object.defineProperty(cn,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return tx.hrTimeToMilliseconds}});Object.defineProperty(cn,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return tx.hrTimeToNanoseconds}});Object.defineProperty(cn,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return tx.hrTimeToTimeStamp}});Object.defineProperty(cn,"isTimeInput",{enumerable:!0,get:function(){return tx.isTimeInput}});Object.defineProperty(cn,"isTimeInputHrTime",{enumerable:!0,get:function(){return tx.isTimeInputHrTime}});Object.defineProperty(cn,"millisToHrTime",{enumerable:!0,get:function(){return tx.millisToHrTime}});Object.defineProperty(cn,"timeInputToHrTime",{enumerable:!0,get:function(){return tx.timeInputToHrTime}});var $7o=f$r();Object.defineProperty(cn,"ExportResultCode",{enumerable:!0,get:function(){return $7o.ExportResultCode}});var W7o=X4t();Object.defineProperty(cn,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return W7o.parseKeyPairsIntoRecord}});var wB=i6t();Object.defineProperty(cn,"SDK_INFO",{enumerable:!0,get:function(){return wB.SDK_INFO}});Object.defineProperty(cn,"_globalThis",{enumerable:!0,get:function(){return wB._globalThis}});Object.defineProperty(cn,"getStringFromEnv",{enumerable:!0,get:function(){return wB.getStringFromEnv}});Object.defineProperty(cn,"getBooleanFromEnv",{enumerable:!0,get:function(){return wB.getBooleanFromEnv}});Object.defineProperty(cn,"getNumberFromEnv",{enumerable:!0,get:function(){return wB.getNumberFromEnv}});Object.defineProperty(cn,"getStringListFromEnv",{enumerable:!0,get:function(){return wB.getStringListFromEnv}});Object.defineProperty(cn,"otperformance",{enumerable:!0,get:function(){return wB.otperformance}});Object.defineProperty(cn,"unrefTimer",{enumerable:!0,get:function(){return wB.unrefTimer}});var z7o=p$r();Object.defineProperty(cn,"CompositePropagator",{enumerable:!0,get:function(){return z7o.CompositePropagator}});var DRe=b$r();Object.defineProperty(cn,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return DRe.TRACE_PARENT_HEADER}});Object.defineProperty(cn,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return DRe.TRACE_STATE_HEADER}});Object.defineProperty(cn,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return DRe.W3CTraceContextPropagator}});Object.defineProperty(cn,"parseTraceParent",{enumerable:!0,get:function(){return DRe.parseTraceParent}});var ORe=E$r();Object.defineProperty(cn,"RPCType",{enumerable:!0,get:function(){return ORe.RPCType}});Object.defineProperty(cn,"deleteRPCMetadata",{enumerable:!0,get:function(){return ORe.deleteRPCMetadata}});Object.defineProperty(cn,"getRPCMetadata",{enumerable:!0,get:function(){return ORe.getRPCMetadata}});Object.defineProperty(cn,"setRPCMetadata",{enumerable:!0,get:function(){return ORe.setRPCMetadata}});var y6t=w2e();Object.defineProperty(cn,"isTracingSuppressed",{enumerable:!0,get:function(){return y6t.isTracingSuppressed}});Object.defineProperty(cn,"suppressTracing",{enumerable:!0,get:function(){return y6t.suppressTracing}});Object.defineProperty(cn,"unsuppressTracing",{enumerable:!0,get:function(){return y6t.unsuppressTracing}});var K7o=f6t();Object.defineProperty(cn,"TraceState",{enumerable:!0,get:function(){return K7o.TraceState}});var Y7o=R$r();Object.defineProperty(cn,"merge",{enumerable:!0,get:function(){return Y7o.merge}});var V$r=N$r();Object.defineProperty(cn,"TimeoutError",{enumerable:!0,get:function(){return V$r.TimeoutError}});Object.defineProperty(cn,"callWithTimeout",{enumerable:!0,get:function(){return V$r.callWithTimeout}});var G$r=k$r();Object.defineProperty(cn,"isUrlIgnored",{enumerable:!0,get:function(){return G$r.isUrlIgnored}});Object.defineProperty(cn,"urlMatches",{enumerable:!0,get:function(){return G$r.urlMatches}});var J7o=M$r();Object.defineProperty(cn,"BindOnceFuture",{enumerable:!0,get:function(){return J7o.BindOnceFuture}});var X7o=U$r();Object.defineProperty(cn,"diagLogLevelFromString",{enumerable:!0,get:function(){return X7o.diagLogLevelFromString}});var Z7o=Q$r();cn.internal={_export:Z7o._export}});var j$r=E(Rte=>{"use strict";Object.defineProperty(Rte,"__esModule",{value:!0});Rte.LastValueAggregator=Rte.LastValueAccumulation=void 0;var eOo=Ate(),R2e=pV(),tOo=_B(),Ote=class{startTime;_current;sampleTime;constructor(e,r=0,o=[0,0]){this.startTime=e,this._current=r,this.sampleTime=o}record(e){this._current=e,this.sampleTime=(0,R2e.millisToHrTime)(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};Rte.LastValueAccumulation=Ote;var A6t=class{kind=eOo.AggregatorKind.LAST_VALUE;createAccumulation(e){return new Ote(e)}merge(e,r){let o=(0,R2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,R2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new Ote(e.startTime,o.toPointValue(),o.sampleTime)}diff(e,r){let o=(0,R2e.hrTimeToMicroseconds)(r.sampleTime)>=(0,R2e.hrTimeToMicroseconds)(e.sampleTime)?r:e;return new Ote(r.startTime,o.toPointValue(),o.sampleTime)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:tOo.DataPointType.GAUGE,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()}))}}};Rte.LastValueAggregator=A6t});var $$r=E(Nte=>{"use strict";Object.defineProperty(Nte,"__esModule",{value:!0});Nte.SumAggregator=Nte.SumAccumulation=void 0;var rOo=Ate(),nOo=_B(),IB=class{startTime;monotonic;_current;reset;constructor(e,r,o=0,s=!1){this.startTime=e,this.monotonic=r,this._current=o,this.reset=s}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}};Nte.SumAccumulation=IB;var v6t=class{monotonic;kind=rOo.AggregatorKind.SUM;constructor(e){this.monotonic=e}createAccumulation(e){return new IB(e,this.monotonic)}merge(e,r){let o=e.toPointValue(),s=r.toPointValue();return r.reset?new IB(r.startTime,this.monotonic,s,r.reset):new IB(e.startTime,this.monotonic,o+s)}diff(e,r){let o=e.toPointValue(),s=r.toPointValue();return this.monotonic&&o>s?new IB(r.startTime,this.monotonic,s,!0):new IB(r.startTime,this.monotonic,s-o)}toMetricData(e,r,o,s){return{descriptor:e,aggregationTemporality:r,dataPointType:nOo.DataPointType.SUM,dataPoints:o.map(([a,i])=>({attributes:a,startTime:i.startTime,endTime:s,value:i.toPointValue()})),isMonotonic:this.monotonic}}};Nte.SumAggregator=v6t});var J$r=E(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.SumAggregator=_m.SumAccumulation=_m.LastValueAggregator=_m.LastValueAccumulation=_m.ExponentialHistogramAggregator=_m.ExponentialHistogramAccumulation=_m.HistogramAggregator=_m.HistogramAccumulation=_m.DropAggregator=void 0;var iOo=Tjr();Object.defineProperty(_m,"DropAggregator",{enumerable:!0,get:function(){return iOo.DropAggregator}});var W$r=wjr();Object.defineProperty(_m,"HistogramAccumulation",{enumerable:!0,get:function(){return W$r.HistogramAccumulation}});Object.defineProperty(_m,"HistogramAggregator",{enumerable:!0,get:function(){return W$r.HistogramAggregator}});var z$r=Fjr();Object.defineProperty(_m,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return z$r.ExponentialHistogramAccumulation}});Object.defineProperty(_m,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return z$r.ExponentialHistogramAggregator}});var K$r=j$r();Object.defineProperty(_m,"LastValueAccumulation",{enumerable:!0,get:function(){return K$r.LastValueAccumulation}});Object.defineProperty(_m,"LastValueAggregator",{enumerable:!0,get:function(){return K$r.LastValueAggregator}});var Y$r=$$r();Object.defineProperty(_m,"SumAccumulation",{enumerable:!0,get:function(){return Y$r.SumAccumulation}});Object.defineProperty(_m,"SumAggregator",{enumerable:!0,get:function(){return Y$r.SumAggregator}})});var X$r=E(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.DEFAULT_AGGREGATION=Tl.EXPONENTIAL_HISTOGRAM_AGGREGATION=Tl.HISTOGRAM_AGGREGATION=Tl.LAST_VALUE_AGGREGATION=Tl.SUM_AGGREGATION=Tl.DROP_AGGREGATION=Tl.DefaultAggregation=Tl.ExponentialHistogramAggregation=Tl.ExplicitBucketHistogramAggregation=Tl.HistogramAggregation=Tl.LastValueAggregation=Tl.SumAggregation=Tl.DropAggregation=void 0;var oOo=(ut(),nt(_t)),hV=J$r(),eI=_B(),RRe=class t{static DEFAULT_INSTANCE=new hV.DropAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Tl.DropAggregation=RRe;var NRe=class t{static MONOTONIC_INSTANCE=new hV.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new hV.SumAggregator(!1);createAggregator(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.HISTOGRAM:return t.MONOTONIC_INSTANCE;default:return t.NON_MONOTONIC_INSTANCE}}};Tl.SumAggregation=NRe;var PRe=class t{static DEFAULT_INSTANCE=new hV.LastValueAggregator;createAggregator(e){return t.DEFAULT_INSTANCE}};Tl.LastValueAggregation=PRe;var kRe=class t{static DEFAULT_INSTANCE=new hV.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(e){return t.DEFAULT_INSTANCE}};Tl.HistogramAggregation=kRe;var BRe=class{_recordMinMax;_boundaries;constructor(e,r=!0){if(this._recordMinMax=r,e==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");e=e.concat(),e=e.sort((a,i)=>a-i);let o=e.lastIndexOf(-1/0),s=e.indexOf(1/0);s===-1&&(s=void 0),this._boundaries=e.slice(o+1,s)}createAggregator(e){return new hV.HistogramAggregator(this._boundaries,this._recordMinMax)}};Tl.ExplicitBucketHistogramAggregation=BRe;var MRe=class{_maxSize;_recordMinMax;constructor(e=160,r=!0){this._maxSize=e,this._recordMinMax=r}createAggregator(e){return new hV.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};Tl.ExponentialHistogramAggregation=MRe;var LRe=class{_resolve(e){switch(e.type){case eI.InstrumentType.COUNTER:case eI.InstrumentType.UP_DOWN_COUNTER:case eI.InstrumentType.OBSERVABLE_COUNTER:case eI.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Tl.SUM_AGGREGATION;case eI.InstrumentType.GAUGE:case eI.InstrumentType.OBSERVABLE_GAUGE:return Tl.LAST_VALUE_AGGREGATION;case eI.InstrumentType.HISTOGRAM:return e.advice.explicitBucketBoundaries?new BRe(e.advice.explicitBucketBoundaries):Tl.HISTOGRAM_AGGREGATION}return oOo.diag.warn(`Unable to recognize instrument type: ${e.type}`),Tl.DROP_AGGREGATION}createAggregator(e){return this._resolve(e).createAggregator(e)}};Tl.DefaultAggregation=LRe;Tl.DROP_AGGREGATION=new RRe;Tl.SUM_AGGREGATION=new NRe;Tl.LAST_VALUE_AGGREGATION=new PRe;Tl.HISTOGRAM_AGGREGATION=new kRe;Tl.EXPONENTIAL_HISTOGRAM_AGGREGATION=new MRe;Tl.DEFAULT_AGGREGATION=new LRe});var N2e=E(yV=>{"use strict";Object.defineProperty(yV,"__esModule",{value:!0});yV.toAggregation=yV.AggregationType=void 0;var mV=X$r(),gV;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.DROP=1]="DROP",t[t.SUM=2]="SUM",t[t.LAST_VALUE=3]="LAST_VALUE",t[t.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(gV=yV.AggregationType||(yV.AggregationType={}));function sOo(t){switch(t.type){case gV.DEFAULT:return mV.DEFAULT_AGGREGATION;case gV.DROP:return mV.DROP_AGGREGATION;case gV.SUM:return mV.SUM_AGGREGATION;case gV.LAST_VALUE:return mV.LAST_VALUE_AGGREGATION;case gV.EXPONENTIAL_HISTOGRAM:{let e=t;return new mV.ExponentialHistogramAggregation(e.options?.maxSize,e.options?.recordMinMax)}case gV.EXPLICIT_BUCKET_HISTOGRAM:{let e=t;return e.options==null?mV.HISTOGRAM_AGGREGATION:new mV.ExplicitBucketHistogramAggregation(e.options?.boundaries,e.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}yV.toAggregation=sOo});var b6t=E(Pte=>{"use strict";Object.defineProperty(Pte,"__esModule",{value:!0});Pte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Pte.DEFAULT_AGGREGATION_SELECTOR=void 0;var aOo=zOe(),cOo=N2e(),lOo=t=>({type:cOo.AggregationType.DEFAULT});Pte.DEFAULT_AGGREGATION_SELECTOR=lOo;var uOo=t=>aOo.AggregationTemporality.CUMULATIVE;Pte.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=uOo});var S6t=E(FRe=>{"use strict";Object.defineProperty(FRe,"__esModule",{value:!0});FRe.MetricReader=void 0;var Z$r=(ut(),nt(_t)),URe=X4(),eWr=b6t(),E6t=class{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(e){this._aggregationSelector=e?.aggregationSelector??eWr.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??eWr.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=e?.metricProducers??[],this._cardinalitySelector=e?.cardinalitySelector}setMetricProducer(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[r,...o]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(n=>n.collect({timeoutMillis:e?.timeoutMillis}))]),s=r.errors.concat((0,URe.FlatMap)(o,n=>n.errors)),a=r.resourceMetrics.resource,i=r.resourceMetrics.scopeMetrics.concat((0,URe.FlatMap)(o,n=>n.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:a,scopeMetrics:i},errors:s}}async shutdown(e){if(this._shutdown){Z$r.diag.error("Cannot call shutdown twice.");return}e?.timeoutMillis==null?await this.onShutdown():await(0,URe.callWithTimeout)(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){Z$r.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await(0,URe.callWithTimeout)(this.onForceFlush(),e.timeoutMillis)}};FRe.MetricReader=E6t});var rWr=E(QRe=>{"use strict";Object.defineProperty(QRe,"__esModule",{value:!0});QRe.PeriodicExportingMetricReader=void 0;var _6t=(ut(),nt(_t)),P2e=pV(),fOo=S6t(),tWr=X4(),x6t=class extends fOo.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(e){if(super({aggregationSelector:e.exporter.selectAggregation?.bind(e.exporter),aggregationTemporalitySelector:e.exporter.selectAggregationTemporality?.bind(e.exporter),metricProducers:e.metricProducers}),e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(e.exportTimeoutMillis!==void 0&&e.exportIntervalMillis!==void 0&&e.exportIntervalMillis<e.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");this._exportInterval=e.exportIntervalMillis??6e4,this._exportTimeout=e.exportTimeoutMillis??3e4,this._exporter=e.exporter}async _runOnce(){try{await(0,tWr.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(e){if(e instanceof tWr.TimeoutError){_6t.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,P2e.globalErrorHandler)(e)}}async _doRun(){let{resourceMetrics:e,errors:r}=await this.collect({timeoutMillis:this._exportTimeout});if(r.length>0&&_6t.diag.error("PeriodicExportingMetricReader: metrics collection errors",...r),e.resource.asyncAttributesPending)try{await e.resource.waitForAsyncAttributes?.()}catch(s){_6t.diag.debug("Error while resolving async portion of resource: ",s),(0,P2e.globalErrorHandler)(s)}if(e.scopeMetrics.length===0)return;let o=await P2e.internal._export(this._exporter,e);if(o.code!==P2e.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${o.error})`)}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,P2e.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}};QRe.PeriodicExportingMetricReader=x6t});var iWr=E(qRe=>{"use strict";Object.defineProperty(qRe,"__esModule",{value:!0});qRe.InMemoryMetricExporter=void 0;var nWr=pV(),C6t=class{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(e){this._aggregationTemporality=e}export(e,r){if(this._shutdown){setTimeout(()=>r({code:nWr.ExportResultCode.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>r({code:nWr.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};qRe.InMemoryMetricExporter=C6t});var sWr=E(HRe=>{"use strict";Object.defineProperty(HRe,"__esModule",{value:!0});HRe.ConsoleMetricExporter=void 0;var oWr=pV(),dOo=b6t(),T6t=class t{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??dOo.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(e,r){if(this._shutdown){setImmediate(r,{code:oWr.ExportResultCode.FAILED});return}return t._sendMetrics(e,r)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,r){for(let o of e.scopeMetrics)for(let s of o.metrics)console.dir({descriptor:s.descriptor,dataPointType:s.dataPointType,dataPoints:s.dataPoints},{depth:null});r({code:oWr.ExportResultCode.SUCCESS})}};HRe.ConsoleMetricExporter=T6t});var k2e=E(DB=>{"use strict";Object.defineProperty(DB,"__esModule",{value:!0});DB.isTracingSuppressed=DB.unsuppressTracing=DB.suppressTracing=void 0;var pOo=(ut(),nt(_t)),w6t=(0,pOo.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function hOo(t){return t.setValue(w6t,!0)}DB.suppressTracing=hOo;function mOo(t){return t.deleteValue(w6t)}DB.unsuppressTracing=mOo;function gOo(t){return t.getValue(w6t)===!0}DB.isTracingSuppressed=gOo});var I6t=E(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.BAGGAGE_MAX_TOTAL_LENGTH=ny.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ny.BAGGAGE_MAX_NAME_VALUE_PAIRS=ny.BAGGAGE_HEADER=ny.BAGGAGE_ITEMS_SEPARATOR=ny.BAGGAGE_PROPERTIES_SEPARATOR=ny.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ny.BAGGAGE_KEY_PAIR_SEPARATOR="=";ny.BAGGAGE_PROPERTIES_SEPARATOR=";";ny.BAGGAGE_ITEMS_SEPARATOR=",";ny.BAGGAGE_HEADER="baggage";ny.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ny.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ny.BAGGAGE_MAX_TOTAL_LENGTH=8192});var D6t=E(tI=>{"use strict";Object.defineProperty(tI,"__esModule",{value:!0});tI.parseKeyPairsIntoRecord=tI.parsePairKeyValue=tI.getKeyPairs=tI.serializeKeyPairs=void 0;var yOo=(ut(),nt(_t)),AV=I6t();function AOo(t){return t.reduce((e,r)=>{let o=`${e}${e!==""?AV.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return o.length>AV.BAGGAGE_MAX_TOTAL_LENGTH?e:o},"")}tI.serializeKeyPairs=AOo;function vOo(t){return t.getAllEntries().map(([e,r])=>{let o=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(o+=AV.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),o})}tI.getKeyPairs=vOo;function aWr(t){let e=t.split(AV.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let o=r.indexOf(AV.BAGGAGE_KEY_PAIR_SEPARATOR);if(o<=0)return;let s=decodeURIComponent(r.substring(0,o).trim()),a=decodeURIComponent(r.substring(o+1).trim()),i;return e.length>0&&(i=(0,yOo.baggageEntryMetadataFromString)(e.join(AV.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:a,metadata:i}}tI.parsePairKeyValue=aWr;function bOo(t){let e={};return typeof t=="string"&&t.length>0&&t.split(AV.BAGGAGE_ITEMS_SEPARATOR).forEach(r=>{let o=aWr(r);o!==void 0&&o.value.length>0&&(e[o.key]=o.value)}),e}tI.parseKeyPairsIntoRecord=bOo});var cWr=E(VRe=>{"use strict";Object.defineProperty(VRe,"__esModule",{value:!0});VRe.W3CBaggagePropagator=void 0;var O6t=(ut(),nt(_t)),EOo=k2e(),vV=I6t(),R6t=D6t(),N6t=class{inject(e,r,o){let s=O6t.propagation.getBaggage(e);if(!s||(0,EOo.isTracingSuppressed)(e))return;let a=(0,R6t.getKeyPairs)(s).filter(n=>n.length<=vV.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,vV.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,R6t.serializeKeyPairs)(a);i.length>0&&o.set(r,vV.BAGGAGE_HEADER,i)}extract(e,r,o){let s=o.get(r,vV.BAGGAGE_HEADER),a=Array.isArray(s)?s.join(vV.BAGGAGE_ITEMS_SEPARATOR):s;if(!a)return e;let i={};return a.length===0||(a.split(vV.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let u=(0,R6t.parsePairKeyValue)(c);if(u){let f={value:u.value};u.metadata&&(f.metadata=u.metadata),i[u.key]=f}}),Object.entries(i).length===0)?e:O6t.propagation.setBaggage(e,O6t.propagation.createBaggage(i))}fields(){return[vV.BAGGAGE_HEADER]}};VRe.W3CBaggagePropagator=N6t});var lWr=E(GRe=>{"use strict";Object.defineProperty(GRe,"__esModule",{value:!0});GRe.AnchoredClock=void 0;var P6t=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};GRe.AnchoredClock=P6t});var hWr=E(OB=>{"use strict";Object.defineProperty(OB,"__esModule",{value:!0});OB.isAttributeValue=OB.isAttributeKey=OB.sanitizeAttributes=void 0;var uWr=(ut(),nt(_t));function SOo(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,o]of Object.entries(t)){if(!fWr(r)){uWr.diag.warn(`Invalid attribute key: ${r}`);continue}if(!dWr(o)){uWr.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(o)?e[r]=o.slice():e[r]=o}return e}OB.sanitizeAttributes=SOo;function fWr(t){return typeof t=="string"&&t.length>0}OB.isAttributeKey=fWr;function dWr(t){return t==null?!0:Array.isArray(t)?_Oo(t):pWr(t)}OB.isAttributeValue=dWr;function _Oo(t){let e;for(let r of t)if(r!=null){if(!e){if(pWr(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function pWr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var k6t=E(jRe=>{"use strict";Object.defineProperty(jRe,"__esModule",{value:!0});jRe.loggingErrorHandler=void 0;var xOo=(ut(),nt(_t));function COo(){return t=>{xOo.diag.error(TOo(t))}}jRe.loggingErrorHandler=COo;function TOo(t){return typeof t=="string"?t:JSON.stringify(wOo(t))}function wOo(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(o=>{if(e[o])return;let s=r[o];s&&(e[o]=String(s))}),r=Object.getPrototypeOf(r);return e}});var gWr=E(kte=>{"use strict";Object.defineProperty(kte,"__esModule",{value:!0});kte.globalErrorHandler=kte.setGlobalErrorHandler=void 0;var IOo=k6t(),mWr=(0,IOo.loggingErrorHandler)();function DOo(t){mWr=t}kte.setGlobalErrorHandler=DOo;function OOo(t){try{mWr(t)}catch{}}kte.globalErrorHandler=OOo});var bWr=E(rI=>{"use strict";Object.defineProperty(rI,"__esModule",{value:!0});rI.getStringListFromEnv=rI.getBooleanFromEnv=rI.getStringFromEnv=rI.getNumberFromEnv=void 0;var yWr=(ut(),nt(_t)),AWr=me("util");function ROo(t){let e=process.env[t];if(e==null||e.trim()==="")return;let r=Number(e);if(isNaN(r)){yWr.diag.warn(`Unknown value ${(0,AWr.inspect)(e)} for ${t}, expected a number, using defaults`);return}return r}rI.getNumberFromEnv=ROo;function vWr(t){let e=process.env[t];if(!(e==null||e.trim()===""))return e}rI.getStringFromEnv=vWr;function NOo(t){let e=process.env[t]?.trim().toLowerCase();return e==null||e===""?!1:e==="true"?!0:(e==="false"||yWr.diag.warn(`Unknown value ${(0,AWr.inspect)(e)} for ${t}, expected 'true' or 'false', falling back to 'false' (default)`),!1)}rI.getBooleanFromEnv=NOo;function POo(t){return vWr(t)?.split(",").map(e=>e.trim()).filter(e=>e!=="")}rI.getStringListFromEnv=POo});var EWr=E($Re=>{"use strict";Object.defineProperty($Re,"__esModule",{value:!0});$Re._globalThis=void 0;$Re._globalThis=typeof globalThis=="object"?globalThis:global});var SWr=E(WRe=>{"use strict";Object.defineProperty(WRe,"__esModule",{value:!0});WRe.otperformance=void 0;var kOo=me("perf_hooks");WRe.otperformance=kOo.performance});var _Wr=E(zRe=>{"use strict";Object.defineProperty(zRe,"__esModule",{value:!0});zRe.VERSION=void 0;zRe.VERSION="2.1.0"});var xWr=E(KRe=>{"use strict";Object.defineProperty(KRe,"__esModule",{value:!0});KRe.ATTR_PROCESS_RUNTIME_NAME=void 0;KRe.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var CWr=E(JRe=>{"use strict";Object.defineProperty(JRe,"__esModule",{value:!0});JRe.SDK_INFO=void 0;var BOo=_Wr(),YRe=($l(),nt(Uu)),MOo=xWr();JRe.SDK_INFO={[YRe.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[MOo.ATTR_PROCESS_RUNTIME_NAME]:"node",[YRe.ATTR_TELEMETRY_SDK_LANGUAGE]:YRe.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[YRe.ATTR_TELEMETRY_SDK_VERSION]:BOo.VERSION}});var TWr=E(XRe=>{"use strict";Object.defineProperty(XRe,"__esModule",{value:!0});XRe.unrefTimer=void 0;function LOo(t){t.unref()}XRe.unrefTimer=LOo});var wWr=E(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.unrefTimer=l0.SDK_INFO=l0.otperformance=l0._globalThis=l0.getStringListFromEnv=l0.getNumberFromEnv=l0.getBooleanFromEnv=l0.getStringFromEnv=void 0;var ZRe=bWr();Object.defineProperty(l0,"getStringFromEnv",{enumerable:!0,get:function(){return ZRe.getStringFromEnv}});Object.defineProperty(l0,"getBooleanFromEnv",{enumerable:!0,get:function(){return ZRe.getBooleanFromEnv}});Object.defineProperty(l0,"getNumberFromEnv",{enumerable:!0,get:function(){return ZRe.getNumberFromEnv}});Object.defineProperty(l0,"getStringListFromEnv",{enumerable:!0,get:function(){return ZRe.getStringListFromEnv}});var UOo=EWr();Object.defineProperty(l0,"_globalThis",{enumerable:!0,get:function(){return UOo._globalThis}});var FOo=SWr();Object.defineProperty(l0,"otperformance",{enumerable:!0,get:function(){return FOo.otperformance}});var QOo=CWr();Object.defineProperty(l0,"SDK_INFO",{enumerable:!0,get:function(){return QOo.SDK_INFO}});var qOo=TWr();Object.defineProperty(l0,"unrefTimer",{enumerable:!0,get:function(){return qOo.unrefTimer}})});var B6t=E(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.getStringListFromEnv=u0.getNumberFromEnv=u0.getStringFromEnv=u0.getBooleanFromEnv=u0.unrefTimer=u0.otperformance=u0._globalThis=u0.SDK_INFO=void 0;var RB=wWr();Object.defineProperty(u0,"SDK_INFO",{enumerable:!0,get:function(){return RB.SDK_INFO}});Object.defineProperty(u0,"_globalThis",{enumerable:!0,get:function(){return RB._globalThis}});Object.defineProperty(u0,"otperformance",{enumerable:!0,get:function(){return RB.otperformance}});Object.defineProperty(u0,"unrefTimer",{enumerable:!0,get:function(){return RB.unrefTimer}});Object.defineProperty(u0,"getBooleanFromEnv",{enumerable:!0,get:function(){return RB.getBooleanFromEnv}});Object.defineProperty(u0,"getStringFromEnv",{enumerable:!0,get:function(){return RB.getStringFromEnv}});Object.defineProperty(u0,"getNumberFromEnv",{enumerable:!0,get:function(){return RB.getNumberFromEnv}});Object.defineProperty(u0,"getStringListFromEnv",{enumerable:!0,get:function(){return RB.getStringListFromEnv}})});var RWr=E(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.addHrTimes=Of.isTimeInput=Of.isTimeInputHrTime=Of.hrTimeToMicroseconds=Of.hrTimeToMilliseconds=Of.hrTimeToNanoseconds=Of.hrTimeToTimeStamp=Of.hrTimeDuration=Of.timeInputToHrTime=Of.hrTime=Of.getTimeOrigin=Of.millisToHrTime=void 0;var M6t=B6t(),IWr=9,HOo=6,VOo=Math.pow(10,HOo),eNe=Math.pow(10,IWr);function B2e(t){let e=t/1e3,r=Math.trunc(e),o=Math.round(t%1e3*VOo);return[r,o]}Of.millisToHrTime=B2e;function L6t(){let t=M6t.otperformance.timeOrigin;if(typeof t!="number"){let e=M6t.otperformance;t=e.timing&&e.timing.fetchStart}return t}Of.getTimeOrigin=L6t;function DWr(t){let e=B2e(L6t()),r=B2e(typeof t=="number"?t:M6t.otperformance.now());return OWr(e,r)}Of.hrTime=DWr;function GOo(t){if(U6t(t))return t;if(typeof t=="number")return t<L6t()?DWr(t):B2e(t);if(t instanceof Date)return B2e(t.getTime());throw TypeError("Invalid input type")}Of.timeInputToHrTime=GOo;function jOo(t,e){let r=e[0]-t[0],o=e[1]-t[1];return o<0&&(r-=1,o+=eNe),[r,o]}Of.hrTimeDuration=jOo;function $Oo(t){let e=IWr,r=`${"0".repeat(e)}${t[1]}Z`,o=r.substring(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",o)}Of.hrTimeToTimeStamp=$Oo;function WOo(t){return t[0]*eNe+t[1]}Of.hrTimeToNanoseconds=WOo;function zOo(t){return t[0]*1e3+t[1]/1e6}Of.hrTimeToMilliseconds=zOo;function KOo(t){return t[0]*1e6+t[1]/1e3}Of.hrTimeToMicroseconds=KOo;function U6t(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}Of.isTimeInputHrTime=U6t;function YOo(t){return U6t(t)||typeof t=="number"||t instanceof Date}Of.isTimeInput=YOo;function OWr(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=eNe&&(r[1]-=eNe,r[0]+=1),r}Of.addHrTimes=OWr});var NWr=E(M2e=>{"use strict";Object.defineProperty(M2e,"__esModule",{value:!0});M2e.ExportResultCode=void 0;var JOo;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(JOo=M2e.ExportResultCode||(M2e.ExportResultCode={}))});var kWr=E(tNe=>{"use strict";Object.defineProperty(tNe,"__esModule",{value:!0});tNe.CompositePropagator=void 0;var PWr=(ut(),nt(_t)),F6t=class{_propagators;_fields;constructor(e={}){this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,o)=>r.concat(o),[])))}inject(e,r,o){for(let s of this._propagators)try{s.inject(e,r,o)}catch(a){PWr.diag.warn(`Failed to inject with ${s.constructor.name}. Err: ${a.message}`)}}extract(e,r,o){return this._propagators.reduce((s,a)=>{try{return a.extract(s,r,o)}catch(i){PWr.diag.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return s},e)}fields(){return this._fields.slice()}};tNe.CompositePropagator=F6t});var BWr=E(Bte=>{"use strict";Object.defineProperty(Bte,"__esModule",{value:!0});Bte.validateValue=Bte.validateKey=void 0;var Q6t="[_0-9a-z-*/]",XOo=`[a-z]${Q6t}{0,255}`,ZOo=`[a-z0-9]${Q6t}{0,240}@[a-z]${Q6t}{0,13}`,eRo=new RegExp(`^(?:${XOo}|${ZOo})$`),tRo=/^[ -~]{0,255}[!-~]$/,rRo=/,|=/;function nRo(t){return eRo.test(t)}Bte.validateKey=nRo;function iRo(t){return tRo.test(t)&&!rRo.test(t)}Bte.validateValue=iRo});var H6t=E(rNe=>{"use strict";Object.defineProperty(rNe,"__esModule",{value:!0});rNe.TraceState=void 0;var MWr=BWr(),LWr=32,oRo=512,UWr=",",FWr="=",q6t=class t{_internalState=new Map;constructor(e){e&&this._parse(e)}set(e,r){let o=this._clone();return o._internalState.has(e)&&o._internalState.delete(e),o._internalState.set(e,r),o}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+FWr+this.get(r)),e),[]).join(UWr)}_parse(e){e.length>oRo||(this._internalState=e.split(UWr).reverse().reduce((r,o)=>{let s=o.trim(),a=s.indexOf(FWr);if(a!==-1){let i=s.slice(0,a),n=s.slice(a+1,o.length);(0,MWr.validateKey)(i)&&(0,MWr.validateValue)(n)&&r.set(i,n)}return r},new Map),this._internalState.size>LWr&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,LWr))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};rNe.TraceState=q6t});var qWr=E(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.W3CTraceContextPropagator=iy.parseTraceParent=iy.TRACE_STATE_HEADER=iy.TRACE_PARENT_HEADER=void 0;var nNe=(ut(),nt(_t)),sRo=k2e(),aRo=H6t();iy.TRACE_PARENT_HEADER="traceparent";iy.TRACE_STATE_HEADER="tracestate";var cRo="00",lRo="(?!ff)[\\da-f]{2}",uRo="(?![0]{32})[\\da-f]{32}",fRo="(?![0]{16})[\\da-f]{16}",dRo="[\\da-f]{2}",pRo=new RegExp(`^\\s?(${lRo})-(${uRo})-(${fRo})-(${dRo})(-.*)?\\s?$`);function QWr(t){let e=pRo.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}iy.parseTraceParent=QWr;var V6t=class{inject(e,r,o){let s=nNe.trace.getSpanContext(e);if(!s||(0,sRo.isTracingSuppressed)(e)||!(0,nNe.isSpanContextValid)(s))return;let a=`${cRo}-${s.traceId}-${s.spanId}-0${Number(s.traceFlags||nNe.TraceFlags.NONE).toString(16)}`;o.set(r,iy.TRACE_PARENT_HEADER,a),s.traceState&&o.set(r,iy.TRACE_STATE_HEADER,s.traceState.serialize())}extract(e,r,o){let s=o.get(r,iy.TRACE_PARENT_HEADER);if(!s)return e;let a=Array.isArray(s)?s[0]:s;if(typeof a!="string")return e;let i=QWr(a);if(!i)return e;i.isRemote=!0;let n=o.get(r,iy.TRACE_STATE_HEADER);if(n){let c=Array.isArray(n)?n.join(","):n;i.traceState=new aRo.TraceState(typeof c=="string"?c:void 0)}return nNe.trace.setSpanContext(e,i)}fields(){return[iy.TRACE_PARENT_HEADER,iy.TRACE_STATE_HEADER]}};iy.W3CTraceContextPropagator=V6t});var HWr=E(e6=>{"use strict";Object.defineProperty(e6,"__esModule",{value:!0});e6.getRPCMetadata=e6.deleteRPCMetadata=e6.setRPCMetadata=e6.RPCType=void 0;var hRo=(ut(),nt(_t)),G6t=(0,hRo.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),mRo;(function(t){t.HTTP="http"})(mRo=e6.RPCType||(e6.RPCType={}));function gRo(t,e){return t.setValue(G6t,e)}e6.setRPCMetadata=gRo;function yRo(t){return t.deleteValue(G6t)}e6.deleteRPCMetadata=yRo;function ARo(t){return t.getValue(G6t)}e6.getRPCMetadata=ARo});var WWr=E(iNe=>{"use strict";Object.defineProperty(iNe,"__esModule",{value:!0});iNe.isPlainObject=void 0;var vRo="[object Object]",bRo="[object Null]",ERo="[object Undefined]",SRo=Function.prototype,VWr=SRo.toString,_Ro=VWr.call(Object),xRo=Object.getPrototypeOf,GWr=Object.prototype,jWr=GWr.hasOwnProperty,bV=Symbol?Symbol.toStringTag:void 0,$Wr=GWr.toString;function CRo(t){if(!TRo(t)||wRo(t)!==vRo)return!1;let e=xRo(t);if(e===null)return!0;let r=jWr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&VWr.call(r)===_Ro}iNe.isPlainObject=CRo;function TRo(t){return t!=null&&typeof t=="object"}function wRo(t){return t==null?t===void 0?ERo:bRo:bV&&bV in Object(t)?IRo(t):DRo(t)}function IRo(t){let e=jWr.call(t,bV),r=t[bV],o=!1;try{t[bV]=void 0,o=!0}catch{}let s=$Wr.call(t);return o&&(e?t[bV]=r:delete t[bV]),s}function DRo(t){return $Wr.call(t)}});var XWr=E(aNe=>{"use strict";Object.defineProperty(aNe,"__esModule",{value:!0});aNe.merge=void 0;var zWr=WWr(),ORo=20;function RRo(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=YWr(e,t.shift(),0,r);return e}aNe.merge=RRo;function j6t(t){return sNe(t)?t.slice():t}function YWr(t,e,r=0,o){let s;if(!(r>ORo)){if(r++,oNe(t)||oNe(e)||JWr(e))s=j6t(e);else if(sNe(t)){if(s=t.slice(),sNe(e))for(let a=0,i=e.length;a<i;a++)s.push(j6t(e[a]));else if(L2e(e)){let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i];s[c]=j6t(e[c])}}}else if(L2e(t))if(L2e(e)){if(!NRo(t,e))return e;s=Object.assign({},t);let a=Object.keys(e);for(let i=0,n=a.length;i<n;i++){let c=a[i],u=e[c];if(oNe(u))typeof u>"u"?delete s[c]:s[c]=u;else{let f=s[c],d=u;if(KWr(t,c,o)||KWr(e,c,o))delete s[c];else{if(L2e(f)&&L2e(d)){let p=o.get(f)||[],h=o.get(d)||[];p.push({obj:t,key:c}),h.push({obj:e,key:c}),o.set(f,p),o.set(d,h)}s[c]=YWr(s[c],u,r,o)}}}}else s=e;return s}}function KWr(t,e,r){let o=r.get(t[e])||[];for(let s=0,a=o.length;s<a;s++){let i=o[s];if(i.key===e&&i.obj===t)return!0}return!1}function sNe(t){return Array.isArray(t)}function JWr(t){return typeof t=="function"}function L2e(t){return!oNe(t)&&!sNe(t)&&!JWr(t)&&typeof t=="object"}function oNe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function NRo(t,e){return!(!(0,zWr.isPlainObject)(t)||!(0,zWr.isPlainObject)(e))}});var ZWr=E(Mte=>{"use strict";Object.defineProperty(Mte,"__esModule",{value:!0});Mte.callWithTimeout=Mte.TimeoutError=void 0;var cNe=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Mte.TimeoutError=cNe;function PRo(t,e){let r,o=new Promise(function(a,i){r=setTimeout(function(){i(new cNe("Operation timed out."))},e)});return Promise.race([t,o]).then(s=>(clearTimeout(r),s),s=>{throw clearTimeout(r),s})}Mte.callWithTimeout=PRo});var tzr=E(Lte=>{"use strict";Object.defineProperty(Lte,"__esModule",{value:!0});Lte.isUrlIgnored=Lte.urlMatches=void 0;function ezr(t,e){return typeof e=="string"?t===e:!!t.match(e)}Lte.urlMatches=ezr;function kRo(t,e){if(!e)return!1;for(let r of e)if(ezr(t,r))return!0;return!1}Lte.isUrlIgnored=kRo});var rzr=E(lNe=>{"use strict";Object.defineProperty(lNe,"__esModule",{value:!0});lNe.Deferred=void 0;var $6t=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};lNe.Deferred=$6t});var nzr=E(uNe=>{"use strict";Object.defineProperty(uNe,"__esModule",{value:!0});uNe.BindOnceFuture=void 0;var BRo=rzr(),W6t=class{_callback;_that;_isCalled=!1;_deferred=new BRo.Deferred;constructor(e,r){this._callback=e,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};uNe.BindOnceFuture=W6t});var ozr=E(fNe=>{"use strict";Object.defineProperty(fNe,"__esModule",{value:!0});fNe.diagLogLevelFromString=void 0;var aO=(ut(),nt(_t)),izr={ALL:aO.DiagLogLevel.ALL,VERBOSE:aO.DiagLogLevel.VERBOSE,DEBUG:aO.DiagLogLevel.DEBUG,INFO:aO.DiagLogLevel.INFO,WARN:aO.DiagLogLevel.WARN,ERROR:aO.DiagLogLevel.ERROR,NONE:aO.DiagLogLevel.NONE};function MRo(t){if(t==null)return;let e=izr[t.toUpperCase()];return e??(aO.diag.warn(`Unknown log level "${t}", expected one of ${Object.keys(izr)}, using default`),aO.DiagLogLevel.INFO)}fNe.diagLogLevelFromString=MRo});var azr=E(dNe=>{"use strict";Object.defineProperty(dNe,"__esModule",{value:!0});dNe._export=void 0;var szr=(ut(),nt(_t)),LRo=k2e();function URo(t,e){return new Promise(r=>{szr.context.with((0,LRo.suppressTracing)(szr.context.active()),()=>{t.export(e,o=>{r(o)})})})}dNe._export=URo});var K6t=E(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.internal=ln.diagLogLevelFromString=ln.BindOnceFuture=ln.urlMatches=ln.isUrlIgnored=ln.callWithTimeout=ln.TimeoutError=ln.merge=ln.TraceState=ln.unsuppressTracing=ln.suppressTracing=ln.isTracingSuppressed=ln.setRPCMetadata=ln.getRPCMetadata=ln.deleteRPCMetadata=ln.RPCType=ln.parseTraceParent=ln.W3CTraceContextPropagator=ln.TRACE_STATE_HEADER=ln.TRACE_PARENT_HEADER=ln.CompositePropagator=ln.unrefTimer=ln.otperformance=ln.getStringListFromEnv=ln.getNumberFromEnv=ln.getBooleanFromEnv=ln.getStringFromEnv=ln._globalThis=ln.SDK_INFO=ln.parseKeyPairsIntoRecord=ln.ExportResultCode=ln.timeInputToHrTime=ln.millisToHrTime=ln.isTimeInputHrTime=ln.isTimeInput=ln.hrTimeToTimeStamp=ln.hrTimeToNanoseconds=ln.hrTimeToMilliseconds=ln.hrTimeToMicroseconds=ln.hrTimeDuration=ln.hrTime=ln.getTimeOrigin=ln.addHrTimes=ln.loggingErrorHandler=ln.setGlobalErrorHandler=ln.globalErrorHandler=ln.sanitizeAttributes=ln.isAttributeValue=ln.AnchoredClock=ln.W3CBaggagePropagator=void 0;var FRo=cWr();Object.defineProperty(ln,"W3CBaggagePropagator",{enumerable:!0,get:function(){return FRo.W3CBaggagePropagator}});var QRo=lWr();Object.defineProperty(ln,"AnchoredClock",{enumerable:!0,get:function(){return QRo.AnchoredClock}});var czr=hWr();Object.defineProperty(ln,"isAttributeValue",{enumerable:!0,get:function(){return czr.isAttributeValue}});Object.defineProperty(ln,"sanitizeAttributes",{enumerable:!0,get:function(){return czr.sanitizeAttributes}});var lzr=gWr();Object.defineProperty(ln,"globalErrorHandler",{enumerable:!0,get:function(){return lzr.globalErrorHandler}});Object.defineProperty(ln,"setGlobalErrorHandler",{enumerable:!0,get:function(){return lzr.setGlobalErrorHandler}});var qRo=k6t();Object.defineProperty(ln,"loggingErrorHandler",{enumerable:!0,get:function(){return qRo.loggingErrorHandler}});var rx=RWr();Object.defineProperty(ln,"addHrTimes",{enumerable:!0,get:function(){return rx.addHrTimes}});Object.defineProperty(ln,"getTimeOrigin",{enumerable:!0,get:function(){return rx.getTimeOrigin}});Object.defineProperty(ln,"hrTime",{enumerable:!0,get:function(){return rx.hrTime}});Object.defineProperty(ln,"hrTimeDuration",{enumerable:!0,get:function(){return rx.hrTimeDuration}});Object.defineProperty(ln,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return rx.hrTimeToMicroseconds}});Object.defineProperty(ln,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return rx.hrTimeToMilliseconds}});Object.defineProperty(ln,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return rx.hrTimeToNanoseconds}});Object.defineProperty(ln,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return rx.hrTimeToTimeStamp}});Object.defineProperty(ln,"isTimeInput",{enumerable:!0,get:function(){return rx.isTimeInput}});Object.defineProperty(ln,"isTimeInputHrTime",{enumerable:!0,get:function(){return rx.isTimeInputHrTime}});Object.defineProperty(ln,"millisToHrTime",{enumerable:!0,get:function(){return rx.millisToHrTime}});Object.defineProperty(ln,"timeInputToHrTime",{enumerable:!0,get:function(){return rx.timeInputToHrTime}});var HRo=NWr();Object.defineProperty(ln,"ExportResultCode",{enumerable:!0,get:function(){return HRo.ExportResultCode}});var VRo=D6t();Object.defineProperty(ln,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return VRo.parseKeyPairsIntoRecord}});var NB=B6t();Object.defineProperty(ln,"SDK_INFO",{enumerable:!0,get:function(){return NB.SDK_INFO}});Object.defineProperty(ln,"_globalThis",{enumerable:!0,get:function(){return NB._globalThis}});Object.defineProperty(ln,"getStringFromEnv",{enumerable:!0,get:function(){return NB.getStringFromEnv}});Object.defineProperty(ln,"getBooleanFromEnv",{enumerable:!0,get:function(){return NB.getBooleanFromEnv}});Object.defineProperty(ln,"getNumberFromEnv",{enumerable:!0,get:function(){return NB.getNumberFromEnv}});Object.defineProperty(ln,"getStringListFromEnv",{enumerable:!0,get:function(){return NB.getStringListFromEnv}});Object.defineProperty(ln,"otperformance",{enumerable:!0,get:function(){return NB.otperformance}});Object.defineProperty(ln,"unrefTimer",{enumerable:!0,get:function(){return NB.unrefTimer}});var GRo=kWr();Object.defineProperty(ln,"CompositePropagator",{enumerable:!0,get:function(){return GRo.CompositePropagator}});var pNe=qWr();Object.defineProperty(ln,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return pNe.TRACE_PARENT_HEADER}});Object.defineProperty(ln,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return pNe.TRACE_STATE_HEADER}});Object.defineProperty(ln,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return pNe.W3CTraceContextPropagator}});Object.defineProperty(ln,"parseTraceParent",{enumerable:!0,get:function(){return pNe.parseTraceParent}});var hNe=HWr();Object.defineProperty(ln,"RPCType",{enumerable:!0,get:function(){return hNe.RPCType}});Object.defineProperty(ln,"deleteRPCMetadata",{enumerable:!0,get:function(){return hNe.deleteRPCMetadata}});Object.defineProperty(ln,"getRPCMetadata",{enumerable:!0,get:function(){return hNe.getRPCMetadata}});Object.defineProperty(ln,"setRPCMetadata",{enumerable:!0,get:function(){return hNe.setRPCMetadata}});var z6t=k2e();Object.defineProperty(ln,"isTracingSuppressed",{enumerable:!0,get:function(){return z6t.isTracingSuppressed}});Object.defineProperty(ln,"suppressTracing",{enumerable:!0,get:function(){return z6t.suppressTracing}});Object.defineProperty(ln,"unsuppressTracing",{enumerable:!0,get:function(){return z6t.unsuppressTracing}});var jRo=H6t();Object.defineProperty(ln,"TraceState",{enumerable:!0,get:function(){return jRo.TraceState}});var $Ro=XWr();Object.defineProperty(ln,"merge",{enumerable:!0,get:function(){return $Ro.merge}});var uzr=ZWr();Object.defineProperty(ln,"TimeoutError",{enumerable:!0,get:function(){return uzr.TimeoutError}});Object.defineProperty(ln,"callWithTimeout",{enumerable:!0,get:function(){return uzr.callWithTimeout}});var fzr=tzr();Object.defineProperty(ln,"isUrlIgnored",{enumerable:!0,get:function(){return fzr.isUrlIgnored}});Object.defineProperty(ln,"urlMatches",{enumerable:!0,get:function(){return fzr.urlMatches}});var WRo=nzr();Object.defineProperty(ln,"BindOnceFuture",{enumerable:!0,get:function(){return WRo.BindOnceFuture}});var zRo=ozr();Object.defineProperty(ln,"diagLogLevelFromString",{enumerable:!0,get:function(){return zRo.diagLogLevelFromString}});var KRo=azr();ln.internal={_export:KRo._export}});var dzr=E(mNe=>{"use strict";Object.defineProperty(mNe,"__esModule",{value:!0});mNe.defaultServiceName=void 0;function YRo(){return`unknown_service:${process.argv0}`}mNe.defaultServiceName=YRo});var pzr=E(gNe=>{"use strict";Object.defineProperty(gNe,"__esModule",{value:!0});gNe.defaultServiceName=void 0;var JRo=dzr();Object.defineProperty(gNe,"defaultServiceName",{enumerable:!0,get:function(){return JRo.defaultServiceName}})});var Y6t=E(yNe=>{"use strict";Object.defineProperty(yNe,"__esModule",{value:!0});yNe.defaultServiceName=void 0;var XRo=pzr();Object.defineProperty(yNe,"defaultServiceName",{enumerable:!0,get:function(){return XRo.defaultServiceName}})});var hzr=E(Ute=>{"use strict";Object.defineProperty(Ute,"__esModule",{value:!0});Ute.identity=Ute.isPromiseLike=void 0;var ZRo=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";Ute.isPromiseLike=ZRo;function eNo(t){return t}Ute.identity=eNo});var Z6t=E(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});nI.defaultResource=nI.emptyResource=nI.resourceFromDetectedResource=nI.resourceFromAttributes=void 0;var F2e=(ut(),nt(_t)),J6t=K6t(),EV=($l(),nt(Uu)),tNo=Y6t(),U2e=hzr(),ANe=class t{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(e,r){let o=new t({},r);return o._rawAttributes=mzr(e),o._asyncAttributesPending=e.filter(([s,a])=>(0,U2e.isPromiseLike)(a)).length>0,o}constructor(e,r){let o=e.attributes??{};this._rawAttributes=Object.entries(o).map(([s,a])=>((0,U2e.isPromiseLike)(a)&&(this._asyncAttributesPending=!0),[s,a])),this._rawAttributes=mzr(this._rawAttributes),this._schemaUrl=oNo(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[r,o]=this._rawAttributes[e];this._rawAttributes[e]=[r,(0,U2e.isPromiseLike)(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&F2e.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[r,o]of this._rawAttributes){if((0,U2e.isPromiseLike)(o)){F2e.diag.debug(`Unsettled resource attribute ${r} skipped`);continue}o!=null&&(e[r]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(e){if(e==null)return this;let r=sNo(this,e),o=r?{schemaUrl:r}:void 0;return t.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()],o)}};function X6t(t,e){return ANe.FromAttributeList(Object.entries(t),e)}nI.resourceFromAttributes=X6t;function rNo(t,e){return new ANe(t,e)}nI.resourceFromDetectedResource=rNo;function nNo(){return X6t({})}nI.emptyResource=nNo;function iNo(){return X6t({[EV.ATTR_SERVICE_NAME]:(0,tNo.defaultServiceName)(),[EV.ATTR_TELEMETRY_SDK_LANGUAGE]:J6t.SDK_INFO[EV.ATTR_TELEMETRY_SDK_LANGUAGE],[EV.ATTR_TELEMETRY_SDK_NAME]:J6t.SDK_INFO[EV.ATTR_TELEMETRY_SDK_NAME],[EV.ATTR_TELEMETRY_SDK_VERSION]:J6t.SDK_INFO[EV.ATTR_TELEMETRY_SDK_VERSION]})}nI.defaultResource=iNo;function mzr(t){return t.map(([e,r])=>(0,U2e.isPromiseLike)(r)?[e,r.catch(o=>{F2e.diag.debug("promise rejection for resource attribute: %s - %s",e,o)})]:[e,r])}function oNo(t){if(typeof t=="string"||t===void 0)return t;F2e.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",t)}function sNo(t,e){let r=t?.schemaUrl,o=e?.schemaUrl,s=r===void 0||r==="",a=o===void 0||o==="";if(s)return o;if(a||r===o)return r;F2e.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,o)}});var yzr=E(vNe=>{"use strict";Object.defineProperty(vNe,"__esModule",{value:!0});vNe.detectResources=void 0;var gzr=(ut(),nt(_t)),ewt=Z6t(),aNo=(t={})=>(t.detectors||[]).map(r=>{try{let o=(0,ewt.resourceFromDetectedResource)(r.detect(t));return gzr.diag.debug(`${r.constructor.name} found resource.`,o),o}catch(o){return gzr.diag.debug(`${r.constructor.name} failed: ${o.message}`),(0,ewt.emptyResource)()}}).reduce((r,o)=>r.merge(o),(0,ewt.emptyResource)());vNe.detectResources=aNo});var vzr=E(bNe=>{"use strict";Object.defineProperty(bNe,"__esModule",{value:!0});bNe.envDetector=void 0;var cNo=(ut(),nt(_t)),lNo=($l(),nt(Uu)),Azr=K6t(),twt=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(e){let r={},o=(0,Azr.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),s=(0,Azr.getStringFromEnv)("OTEL_SERVICE_NAME");if(o)try{let a=this._parseResourceAttributes(o);Object.assign(r,a)}catch(a){cNo.diag.debug(`EnvDetector failed: ${a.message}`)}return s&&(r[lNo.ATTR_SERVICE_NAME]=s),{attributes:r}}_parseResourceAttributes(e){if(!e)return{};let r={},o=e.split(this._COMMA_SEPARATOR,-1);for(let s of o){let a=s.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(a.length!==2)continue;let[i,n]=a;if(i=i.trim(),n=n.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(n))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);r[i]=decodeURIComponent(n)}return r}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o<33||o===44||o===59||o===92||o>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};bNe.envDetector=new twt});var Q2e=E(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.ATTR_WEBENGINE_VERSION=fi.ATTR_WEBENGINE_NAME=fi.ATTR_WEBENGINE_DESCRIPTION=fi.ATTR_SERVICE_NAMESPACE=fi.ATTR_SERVICE_INSTANCE_ID=fi.ATTR_PROCESS_RUNTIME_VERSION=fi.ATTR_PROCESS_RUNTIME_NAME=fi.ATTR_PROCESS_RUNTIME_DESCRIPTION=fi.ATTR_PROCESS_PID=fi.ATTR_PROCESS_OWNER=fi.ATTR_PROCESS_EXECUTABLE_PATH=fi.ATTR_PROCESS_EXECUTABLE_NAME=fi.ATTR_PROCESS_COMMAND_ARGS=fi.ATTR_PROCESS_COMMAND=fi.ATTR_OS_VERSION=fi.ATTR_OS_TYPE=fi.ATTR_K8S_POD_NAME=fi.ATTR_K8S_NAMESPACE_NAME=fi.ATTR_K8S_DEPLOYMENT_NAME=fi.ATTR_K8S_CLUSTER_NAME=fi.ATTR_HOST_TYPE=fi.ATTR_HOST_NAME=fi.ATTR_HOST_IMAGE_VERSION=fi.ATTR_HOST_IMAGE_NAME=fi.ATTR_HOST_IMAGE_ID=fi.ATTR_HOST_ID=fi.ATTR_HOST_ARCH=fi.ATTR_CONTAINER_NAME=fi.ATTR_CONTAINER_IMAGE_TAGS=fi.ATTR_CONTAINER_IMAGE_NAME=fi.ATTR_CONTAINER_ID=fi.ATTR_CLOUD_REGION=fi.ATTR_CLOUD_PROVIDER=fi.ATTR_CLOUD_AVAILABILITY_ZONE=fi.ATTR_CLOUD_ACCOUNT_ID=void 0;fi.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";fi.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";fi.ATTR_CLOUD_PROVIDER="cloud.provider";fi.ATTR_CLOUD_REGION="cloud.region";fi.ATTR_CONTAINER_ID="container.id";fi.ATTR_CONTAINER_IMAGE_NAME="container.image.name";fi.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";fi.ATTR_CONTAINER_NAME="container.name";fi.ATTR_HOST_ARCH="host.arch";fi.ATTR_HOST_ID="host.id";fi.ATTR_HOST_IMAGE_ID="host.image.id";fi.ATTR_HOST_IMAGE_NAME="host.image.name";fi.ATTR_HOST_IMAGE_VERSION="host.image.version";fi.ATTR_HOST_NAME="host.name";fi.ATTR_HOST_TYPE="host.type";fi.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";fi.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";fi.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";fi.ATTR_K8S_POD_NAME="k8s.pod.name";fi.ATTR_OS_TYPE="os.type";fi.ATTR_OS_VERSION="os.version";fi.ATTR_PROCESS_COMMAND="process.command";fi.ATTR_PROCESS_COMMAND_ARGS="process.command_args";fi.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";fi.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";fi.ATTR_PROCESS_OWNER="process.owner";fi.ATTR_PROCESS_PID="process.pid";fi.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";fi.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";fi.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";fi.ATTR_SERVICE_INSTANCE_ID="service.instance.id";fi.ATTR_SERVICE_NAMESPACE="service.namespace";fi.ATTR_WEBENGINE_DESCRIPTION="webengine.description";fi.ATTR_WEBENGINE_NAME="webengine.name";fi.ATTR_WEBENGINE_VERSION="webengine.version"});var SNe=E(ENe=>{"use strict";Object.defineProperty(ENe,"__esModule",{value:!0});ENe.execAsync=void 0;var uNo=me("child_process"),fNo=me("util");ENe.execAsync=fNo.promisify(uNo.exec)});var bzr=E(_Ne=>{"use strict";Object.defineProperty(_Ne,"__esModule",{value:!0});_Ne.getMachineId=void 0;var dNo=SNe(),pNo=(ut(),nt(_t));async function hNo(){try{let e=(await(0,dNo.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
782
782
  `).find(o=>o.includes("IOPlatformUUID"));if(!e)return;let r=e.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(t){pNo.diag.debug(`error reading machine id: ${t}`)}}_Ne.getMachineId=hNo});var Ezr=E(xNe=>{"use strict";Object.defineProperty(xNe,"__esModule",{value:!0});xNe.getMachineId=void 0;var mNo=me("fs"),gNo=(ut(),nt(_t));async function yNo(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await mNo.promises.readFile(e,{encoding:"utf8"})).trim()}catch(r){gNo.diag.debug(`error reading machine id: ${r}`)}}xNe.getMachineId=yNo});var _zr=E(CNe=>{"use strict";Object.defineProperty(CNe,"__esModule",{value:!0});CNe.getMachineId=void 0;var ANo=me("fs"),vNo=SNe(),Szr=(ut(),nt(_t));async function bNo(){try{return(await ANo.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){Szr.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,vNo.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){Szr.diag.debug(`error reading machine id: ${t}`)}}CNe.getMachineId=bNo});var Czr=E(TNe=>{"use strict";Object.defineProperty(TNe,"__esModule",{value:!0});TNe.getMachineId=void 0;var xzr=me("process"),ENo=SNe(),SNo=(ut(),nt(_t));async function _No(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";xzr.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in xzr.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let o=(await(0,ENo.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(o.length===2)return o[1].trim()}catch(r){SNo.diag.debug(`error reading machine id: ${r}`)}}TNe.getMachineId=_No});var Tzr=E(wNe=>{"use strict";Object.defineProperty(wNe,"__esModule",{value:!0});wNe.getMachineId=void 0;var xNo=(ut(),nt(_t));async function CNo(){xNo.diag.debug("could not read machine-id: unsupported platform")}wNe.getMachineId=CNo});var wzr=E(INe=>{"use strict";Object.defineProperty(INe,"__esModule",{value:!0});INe.getMachineId=void 0;var TNo=me("process"),SV;async function wNo(){if(!SV)switch(TNo.platform){case"darwin":SV=(await Promise.resolve().then(()=>we(bzr()))).getMachineId;break;case"linux":SV=(await Promise.resolve().then(()=>we(Ezr()))).getMachineId;break;case"freebsd":SV=(await Promise.resolve().then(()=>we(_zr()))).getMachineId;break;case"win32":SV=(await Promise.resolve().then(()=>we(Czr()))).getMachineId;break;default:SV=(await Promise.resolve().then(()=>we(Tzr()))).getMachineId;break}return SV()}INe.getMachineId=wNo});var rwt=E(Fte=>{"use strict";Object.defineProperty(Fte,"__esModule",{value:!0});Fte.normalizeType=Fte.normalizeArch=void 0;var INo=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};Fte.normalizeArch=INo;var DNo=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};Fte.normalizeType=DNo});var Dzr=E(DNe=>{"use strict";Object.defineProperty(DNe,"__esModule",{value:!0});DNe.hostDetector=void 0;var nwt=Q2e(),Izr=me("os"),ONo=wzr(),RNo=rwt(),iwt=class{detect(e){return{attributes:{[nwt.ATTR_HOST_NAME]:(0,Izr.hostname)(),[nwt.ATTR_HOST_ARCH]:(0,RNo.normalizeArch)((0,Izr.arch)()),[nwt.ATTR_HOST_ID]:(0,ONo.getMachineId)()}}}};DNe.hostDetector=new iwt});var Nzr=E(ONe=>{"use strict";Object.defineProperty(ONe,"__esModule",{value:!0});ONe.osDetector=void 0;var Ozr=Q2e(),Rzr=me("os"),NNo=rwt(),owt=class{detect(e){return{attributes:{[Ozr.ATTR_OS_TYPE]:(0,NNo.normalizeType)((0,Rzr.platform)()),[Ozr.ATTR_OS_VERSION]:(0,Rzr.release)()}}}};ONe.osDetector=new owt});var Pzr=E(RNe=>{"use strict";Object.defineProperty(RNe,"__esModule",{value:!0});RNe.processDetector=void 0;var PNo=(ut(),nt(_t)),cO=Q2e(),kNo=me("os"),swt=class{detect(e){let r={[cO.ATTR_PROCESS_PID]:process.pid,[cO.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[cO.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[cO.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[cO.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[cO.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[cO.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(r[cO.ATTR_PROCESS_COMMAND]=process.argv[1]);try{let o=kNo.userInfo();r[cO.ATTR_PROCESS_OWNER]=o.username}catch(o){PNo.diag.debug(`error obtaining process owner: ${o}`)}return{attributes:r}}};RNe.processDetector=new swt});var kzr=E(NNe=>{"use strict";Object.defineProperty(NNe,"__esModule",{value:!0});NNe.serviceInstanceIdDetector=void 0;var BNo=Q2e(),MNo=me("crypto"),awt=class{detect(e){return{attributes:{[BNo.ATTR_SERVICE_INSTANCE_ID]:(0,MNo.randomUUID)()}}}};NNe.serviceInstanceIdDetector=new awt});var Bzr=E(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0});iI.serviceInstanceIdDetector=iI.processDetector=iI.osDetector=iI.hostDetector=void 0;var LNo=Dzr();Object.defineProperty(iI,"hostDetector",{enumerable:!0,get:function(){return LNo.hostDetector}});var UNo=Nzr();Object.defineProperty(iI,"osDetector",{enumerable:!0,get:function(){return UNo.osDetector}});var FNo=Pzr();Object.defineProperty(iI,"processDetector",{enumerable:!0,get:function(){return FNo.processDetector}});var QNo=kzr();Object.defineProperty(iI,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return QNo.serviceInstanceIdDetector}})});var Mzr=E(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.serviceInstanceIdDetector=oI.processDetector=oI.osDetector=oI.hostDetector=void 0;var PNe=Bzr();Object.defineProperty(oI,"hostDetector",{enumerable:!0,get:function(){return PNe.hostDetector}});Object.defineProperty(oI,"osDetector",{enumerable:!0,get:function(){return PNe.osDetector}});Object.defineProperty(oI,"processDetector",{enumerable:!0,get:function(){return PNe.processDetector}});Object.defineProperty(oI,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return PNe.serviceInstanceIdDetector}})});var Lzr=E(Qte=>{"use strict";Object.defineProperty(Qte,"__esModule",{value:!0});Qte.noopDetector=Qte.NoopDetector=void 0;var kNe=class{detect(){return{attributes:{}}}};Qte.NoopDetector=kNe;Qte.noopDetector=new kNe});var Uzr=E(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});Mv.noopDetector=Mv.serviceInstanceIdDetector=Mv.processDetector=Mv.osDetector=Mv.hostDetector=Mv.envDetector=void 0;var qNo=vzr();Object.defineProperty(Mv,"envDetector",{enumerable:!0,get:function(){return qNo.envDetector}});var BNe=Mzr();Object.defineProperty(Mv,"hostDetector",{enumerable:!0,get:function(){return BNe.hostDetector}});Object.defineProperty(Mv,"osDetector",{enumerable:!0,get:function(){return BNe.osDetector}});Object.defineProperty(Mv,"processDetector",{enumerable:!0,get:function(){return BNe.processDetector}});Object.defineProperty(Mv,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return BNe.serviceInstanceIdDetector}});var HNo=Lzr();Object.defineProperty(Mv,"noopDetector",{enumerable:!0,get:function(){return HNo.noopDetector}})});var PB=E(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.defaultServiceName=Zp.emptyResource=Zp.defaultResource=Zp.resourceFromAttributes=Zp.serviceInstanceIdDetector=Zp.processDetector=Zp.osDetector=Zp.hostDetector=Zp.envDetector=Zp.detectResources=void 0;var VNo=yzr();Object.defineProperty(Zp,"detectResources",{enumerable:!0,get:function(){return VNo.detectResources}});var q2e=Uzr();Object.defineProperty(Zp,"envDetector",{enumerable:!0,get:function(){return q2e.envDetector}});Object.defineProperty(Zp,"hostDetector",{enumerable:!0,get:function(){return q2e.hostDetector}});Object.defineProperty(Zp,"osDetector",{enumerable:!0,get:function(){return q2e.osDetector}});Object.defineProperty(Zp,"processDetector",{enumerable:!0,get:function(){return q2e.processDetector}});Object.defineProperty(Zp,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return q2e.serviceInstanceIdDetector}});var cwt=Z6t();Object.defineProperty(Zp,"resourceFromAttributes",{enumerable:!0,get:function(){return cwt.resourceFromAttributes}});Object.defineProperty(Zp,"defaultResource",{enumerable:!0,get:function(){return cwt.defaultResource}});Object.defineProperty(Zp,"emptyResource",{enumerable:!0,get:function(){return cwt.emptyResource}});var GNo=Y6t();Object.defineProperty(Zp,"defaultServiceName",{enumerable:!0,get:function(){return GNo.defaultServiceName}})});var Fzr=E(MNe=>{"use strict";Object.defineProperty(MNe,"__esModule",{value:!0});MNe.ViewRegistry=void 0;var lwt=class{_registeredViews=[];addView(e){this._registeredViews.push(e)}findViews(e,r){return this._registeredViews.filter(s=>this._matchInstrument(s.instrumentSelector,e)&&this._matchMeter(s.meterSelector,r))}_matchInstrument(e,r){return(e.getType()===void 0||r.type===e.getType())&&e.getNameFilter().match(r.name)&&e.getUnitFilter().match(r.unit)}_matchMeter(e,r){return e.getNameFilter().match(r.name)&&(r.version===void 0||e.getVersionFilter().match(r.version))&&(r.schemaUrl===void 0||e.getSchemaUrlFilter().match(r.schemaUrl))}};MNe.ViewRegistry=lwt});var H2e=E(sI=>{"use strict";Object.defineProperty(sI,"__esModule",{value:!0});sI.isValidName=sI.isDescriptorCompatibleWith=sI.createInstrumentDescriptorWithView=sI.createInstrumentDescriptor=void 0;var Qzr=(ut(),nt(_t)),jNo=X4();function $No(t,e,r){return qzr(t)||Qzr.diag.warn(`Invalid metric name: "${t}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:t,type:e,description:r?.description??"",unit:r?.unit??"",valueType:r?.valueType??Qzr.ValueType.DOUBLE,advice:r?.advice??{}}}sI.createInstrumentDescriptor=$No;function WNo(t,e){return{name:t.name??e.name,description:t.description??e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}sI.createInstrumentDescriptorWithView=WNo;function zNo(t,e){return(0,jNo.equalsCaseInsensitive)(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}sI.isDescriptorCompatibleWith=zNo;var KNo=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function qzr(t){return t.match(KNo)!=null}sI.isValidName=qzr});var LNe=E(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.isObservableInstrument=eh.ObservableUpDownCounterInstrument=eh.ObservableGaugeInstrument=eh.ObservableCounterInstrument=eh.ObservableInstrument=eh.HistogramInstrument=eh.GaugeInstrument=eh.CounterInstrument=eh.UpDownCounterInstrument=eh.SyncInstrument=void 0;var qte=(ut(),nt(_t)),YNo=pV(),_V=class{_writableMetricStorage;_descriptor;constructor(e,r){this._writableMetricStorage=e,this._descriptor=r}_record(e,r={},o=qte.context.active()){if(typeof e!="number"){qte.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`);return}this._descriptor.valueType===qte.ValueType.INT&&!Number.isInteger(e)&&(qte.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,r,o,(0,YNo.millisToHrTime)(Date.now()))}};eh.SyncInstrument=_V;var uwt=class extends _V{add(e,r,o){this._record(e,r,o)}};eh.UpDownCounterInstrument=uwt;var fwt=class extends _V{add(e,r,o){if(e<0){qte.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`);return}this._record(e,r,o)}};eh.CounterInstrument=fwt;var dwt=class extends _V{record(e,r,o){this._record(e,r,o)}};eh.GaugeInstrument=dwt;var pwt=class extends _V{record(e,r,o){if(e<0){qte.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`);return}this._record(e,r,o)}};eh.HistogramInstrument=pwt;var xV=class{_observableRegistry;_metricStorages;_descriptor;constructor(e,r,o){this._observableRegistry=o,this._descriptor=e,this._metricStorages=r}addCallback(e){this._observableRegistry.addCallback(e,this)}removeCallback(e){this._observableRegistry.removeCallback(e,this)}};eh.ObservableInstrument=xV;var hwt=class extends xV{};eh.ObservableCounterInstrument=hwt;var mwt=class extends xV{};eh.ObservableGaugeInstrument=mwt;var gwt=class extends xV{};eh.ObservableUpDownCounterInstrument=gwt;function JNo(t){return t instanceof xV}eh.isObservableInstrument=JNo});var Hzr=E(UNe=>{"use strict";Object.defineProperty(UNe,"__esModule",{value:!0});UNe.Meter=void 0;var CV=H2e(),TV=LNe(),wV=_B(),ywt=class{_meterSharedState;constructor(e){this._meterSharedState=e}createGauge(e,r){let o=(0,CV.createInstrumentDescriptor)(e,wV.InstrumentType.GAUGE,r),s=this._meterSharedState.registerMetricStorage(o);return new TV.GaugeInstrument(s,o)}createHistogram(e,r){let o=(0,CV.createInstrumentDescriptor)(e,wV.InstrumentType.HISTOGRAM,r),s=this._meterSharedState.registerMetricStorage(o);return new TV.HistogramInstrument(s,o)}createCounter(e,r){let o=(0,CV.createInstrumentDescriptor)(e,wV.InstrumentType.COUNTER,r),s=this._meterSharedState.registerMetricStorage(o);return new TV.CounterInstrument(s,o)}createUpDownCounter(e,r){let o=(0,CV.createInstrumentDescriptor)(e,wV.InstrumentType.UP_DOWN_COUNTER,r),s=this._meterSharedState.registerMetricStorage(o);return new TV.UpDownCounterInstrument(s,o)}createObservableGauge(e,r){let o=(0,CV.createInstrumentDescriptor)(e,wV.InstrumentType.OBSERVABLE_GAUGE,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new TV.ObservableGaugeInstrument(o,s,this._meterSharedState.observableRegistry)}createObservableCounter(e,r){let o=(0,CV.createInstrumentDescriptor)(e,wV.InstrumentType.OBSERVABLE_COUNTER,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new TV.ObservableCounterInstrument(o,s,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,r){let o=(0,CV.createInstrumentDescriptor)(e,wV.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,r),s=this._meterSharedState.registerAsyncMetricStorage(o);return new TV.ObservableUpDownCounterInstrument(o,s,this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,r){this._meterSharedState.observableRegistry.addBatchCallback(e,r)}removeBatchObservableCallback(e,r){this._meterSharedState.observableRegistry.removeBatchCallback(e,r)}};UNe.Meter=ywt});var vwt=E(FNe=>{"use strict";Object.defineProperty(FNe,"__esModule",{value:!0});FNe.MetricStorage=void 0;var XNo=H2e(),Awt=class{_instrumentDescriptor;constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=(0,XNo.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};FNe.MetricStorage=Awt});var V2e=E(Hte=>{"use strict";Object.defineProperty(Hte,"__esModule",{value:!0});Hte.AttributeHashMap=Hte.HashMap=void 0;var ZNo=X4(),QNe=class{_hash;_valueMap=new Map;_keyMap=new Map;constructor(e){this._hash=e}get(e,r){return r??=this._hash(e),this._valueMap.get(r)}getOrDefault(e,r){let o=this._hash(e);if(this._valueMap.has(o))return this._valueMap.get(o);let s=r();return this._keyMap.has(o)||this._keyMap.set(o,e),this._valueMap.set(o,s),s}set(e,r,o){o??=this._hash(e),this._keyMap.has(o)||this._keyMap.set(o,e),this._valueMap.set(o,r)}has(e,r){return r??=this._hash(e),this._valueMap.has(r)}*keys(){let e=this._keyMap.entries(),r=e.next();for(;r.done!==!0;)yield[r.value[1],r.value[0]],r=e.next()}*entries(){let e=this._valueMap.entries(),r=e.next();for(;r.done!==!0;)yield[this._keyMap.get(r.value[0]),r.value[1],r.value[0]],r=e.next()}get size(){return this._valueMap.size}};Hte.HashMap=QNe;var bwt=class extends QNe{constructor(){super(ZNo.hashAttributes)}};Hte.AttributeHashMap=bwt});var _wt=E(qNe=>{"use strict";Object.defineProperty(qNe,"__esModule",{value:!0});qNe.DeltaMetricProcessor=void 0;var ePo=X4(),Ewt=V2e(),Swt=class{_aggregator;_activeCollectionStorage=new Ewt.AttributeHashMap;_cumulativeMemoStorage=new Ewt.AttributeHashMap;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;constructor(e,r){this._aggregator=e,this._cardinalityLimit=(r??2e3)-1,this._overflowHashCode=(0,ePo.hashAttributes)(this._overflowAttributes)}record(e,r,o,s){let a=this._activeCollectionStorage.get(r);if(!a){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(s))?.record(e);return}a=this._aggregator.createAccumulation(s),this._activeCollectionStorage.set(r,a)}a?.record(e)}batchCumulate(e,r){Array.from(e.entries()).forEach(([o,s,a])=>{let i=this._aggregator.createAccumulation(r);i?.record(s);let n=i;if(this._cumulativeMemoStorage.has(o,a)){let c=this._cumulativeMemoStorage.get(o,a);n=this._aggregator.diff(c,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(o=this._overflowAttributes,a=this._overflowHashCode,this._cumulativeMemoStorage.has(o,a))){let c=this._cumulativeMemoStorage.get(o,a);n=this._aggregator.diff(c,i)}if(this._activeCollectionStorage.has(o,a)){let c=this._activeCollectionStorage.get(o,a);n=this._aggregator.merge(c,n)}this._cumulativeMemoStorage.set(o,i,a),this._activeCollectionStorage.set(o,n,a)})}collect(){let e=this._activeCollectionStorage;return this._activeCollectionStorage=new Ewt.AttributeHashMap,e}};qNe.DeltaMetricProcessor=Swt});var Cwt=E(HNe=>{"use strict";Object.defineProperty(HNe,"__esModule",{value:!0});HNe.TemporalMetricProcessor=void 0;var tPo=zOe(),rPo=V2e(),xwt=class t{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(e,r){this._aggregator=e,r.forEach(o=>{this._unreportedAccumulations.set(o,[])})}buildMetrics(e,r,o,s){this._stashAccumulations(o);let a=this._getMergedUnreportedAccumulations(e),i=a,n;if(this._reportHistory.has(e)){let u=this._reportHistory.get(e),f=u.collectionTime;n=u.aggregationTemporality,n===tPo.AggregationTemporality.CUMULATIVE?i=t.merge(u.accumulations,a,this._aggregator):i=t.calibrateStartTime(u.accumulations,a,f)}else n=e.selectAggregationTemporality(r.type);this._reportHistory.set(e,{accumulations:i,collectionTime:s,aggregationTemporality:n});let c=nPo(i);if(c.length!==0)return this._aggregator.toMetricData(r,n,c,s)}_stashAccumulations(e){let r=this._unreportedAccumulations.keys();for(let o of r){let s=this._unreportedAccumulations.get(o);s===void 0&&(s=[],this._unreportedAccumulations.set(o,s)),s.push(e)}}_getMergedUnreportedAccumulations(e){let r=new rPo.AttributeHashMap,o=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),o===void 0)return r;for(let s of o)r=t.merge(r,s,this._aggregator);return r}static merge(e,r,o){let s=e,a=r.entries(),i=a.next();for(;i.done!==!0;){let[n,c,u]=i.value;if(e.has(n,u)){let f=e.get(n,u),d=o.merge(f,c);s.set(n,d,u)}else s.set(n,c,u);i=a.next()}return s}static calibrateStartTime(e,r,o){for(let[s,a]of e.keys())r.get(s,a)?.setStartTime(o);return r}};HNe.TemporalMetricProcessor=xwt;function nPo(t){return Array.from(t.entries())}});var Vzr=E(VNe=>{"use strict";Object.defineProperty(VNe,"__esModule",{value:!0});VNe.AsyncMetricStorage=void 0;var iPo=vwt(),oPo=_wt(),sPo=Cwt(),aPo=V2e(),Twt=class extends iPo.MetricStorage{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(e,r,o,s,a){super(e),this._attributesProcessor=o,this._aggregationCardinalityLimit=a,this._deltaMetricStorage=new oPo.DeltaMetricProcessor(r,this._aggregationCardinalityLimit),this._temporalMetricStorage=new sPo.TemporalMetricProcessor(r,s)}record(e,r){let o=new aPo.AttributeHashMap;Array.from(e.entries()).forEach(([s,a])=>{o.set(this._attributesProcessor.process(s),a)}),this._deltaMetricStorage.batchCumulate(o,r)}collect(e,r){let o=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,o,r)}};VNe.AsyncMetricStorage=Twt});var zzr=E(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});Lv.getConflictResolutionRecipe=Lv.getDescriptionResolutionRecipe=Lv.getTypeConflictResolutionRecipe=Lv.getUnitConflictResolutionRecipe=Lv.getValueTypeConflictResolutionRecipe=Lv.getIncompatibilityDetails=void 0;function cPo(t,e){let r="";return t.unit!==e.unit&&(r+=` - Unit '${t.unit}' does not match '${e.unit}'
783
783
  `),t.type!==e.type&&(r+=` - Type '${t.type}' does not match '${e.type}'
784
784
  `),t.valueType!==e.valueType&&(r+=` - Value Type '${t.valueType}' does not match '${e.valueType}'
@@ -900,14 +900,14 @@ Otherwise navigate to:
900
900
 
901
901
  ${e}
902
902
 
903
- `);try{(await K1(e)).on("error",a=>{throw new Error(`BROWSER_LAUNCH_FAILED: Failed to open browser automatically: ${a.message}. Please navigate to the URL manually.`)})}catch(s){throw new Error(`BROWSER_LAUNCH_FAILED: An unexpected error occurred while trying to open the browser: ${s}. Please navigate to the URL manually.`)}console.log("Waiting for authentication...");let o=0;for(;o<r.maxRetries;){await Q6n(r.pollInterval);let s=await q6n(t,r);if(s.isSuccess()){let a=s.getPrivateToken();return await VO.savePrivateToken(a),console.log("Aone authentication successful!"),!0}s.getError()&&console.log(`Waiting for authentication... (${o+1}/${r.maxRetries})`),o++}throw new Error("Authentication timeout. Please try again.")}async function CYe(t=new Wie){return await VO.hasValidToken()?(console.log("Using cached Aone authentication."),!0):await H6n(t)}async function F8(){return await VO.loadPrivateToken()}async function TYe(){await VO.clearPrivateToken(),console.log("Aone authentication cleared.")}async function Hws(){return await VO.hasValidToken()}async function Vws(t=new Wie){return await TYe(),await CYe(t)}var wYe=G(()=>{"use strict";UFt();$7();L6n();U6n();F6n();});async function FFt(t,e,r,o){if(e===Er.LOGIN_WITH_IFLOW){let s=await HH(e,r),a=await U4();if(!a)throw new Error("No API key found. Please re-authenticate.");let i=r.getContentGeneratorConfig();return new uj({model:r.getModel(),apiKey:a,baseUrl:i?.baseUrl||b3e,authType:e,debugMode:r.getDebugMode(),multimodalModelName:"qwen3-vl-plus",config:r})}if(e===Er.LOGIN_WITH_AONE){if(!await CYe())throw new Error("Aone authentication failed. Please try again.");let a=await F8();if(!a)throw new Error("No Aone private token found. Please re-authenticate.");let i=r.getContentGeneratorConfig(),n=Buffer.from(a,"utf8").toString("base64");return new uj({model:r.getModel(),apiKey:n,baseUrl:i?.baseUrl||"https://ducky.code.alibaba-inc.com/v1/openai",authType:e,debugMode:r.getDebugMode(),multimodalModelName:i?.multimodalModelName,config:r})}if(e===Er.CLOUD_SHELL){let s=await HH(e,r),a=await qRr(s);return new z7(s,a.projectId,t,o,a.userTier)}throw new Error(`Unsupported authType: ${e}`)}var QFt=G(()=>{"use strict";ME();Mk();HRr();O9e();RFt();O6();wYe();});function Gws(t){return t.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase()}function Q8(t){let e=Gws(t),r=`IFLOW_${t}`;if(process.env[r])return process.env[r];let o=`IFLOW_${e}`;if(process.env[o])return process.env[o];let s=`iflow_${t}`;if(process.env[s])return process.env[s];let a=`iflow_${e}`;if(process.env[a])return process.env[a]}function x3e(){return Q8("apiKey")}function C3e(){return Q8("baseUrl")||Q8("url")}function T3e(){return Q8("modelName")||Q8("model")}function V6n(t){let e=Q8(t);if(e===void 0)return;let r=e.toLowerCase();if(r==="true"||r==="1"||r==="yes")return!0;if(r==="false"||r==="0"||r==="no")return!1}function G6n(t){let e=Q8(t);if(e===void 0)return;let r=Number(e);return isNaN(r)?void 0:r}function j6n(t){let e=Q8(t);if(e!==void 0)return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function IYe(){return!!(x3e()||C3e()||T3e())}function qFt(){let t={},e=["theme","selectedAuthType","sandbox","toolDiscoveryCommand","toolCallCommand","mcpServerCommand","contextFileName","preferredEditor","apiKey","baseUrl","modelName","searchApiKey","multimodalModelName","memoryImportFormat"],r=["useExternalAuth","showMemoryUsage","usageStatisticsEnabled","autoConfigureMaxOldSpaceSize","hideWindowTitle","hideTips","hideBanner","vimMode","ideModeFeature","ideMode","disableAutoUpdate","skipNextSpeakerCheck","useRipgrep","debugKeystrokeLogging","pasteFromClipboard"],o=["maxSessionTurns","memoryDiscoveryMaxDirs","tokensLimit","compressionTokenThreshold","shellTimeout","temperature","topP"],s=["coreTools","excludeTools","allowMCPServers","excludeMCPServers"];return e.forEach(a=>{let i=Q8(a);i!==void 0&&(t[a]=i)}),r.forEach(a=>{let i=V6n(a);i!==void 0&&(t[a]=i)}),o.forEach(a=>{let i=G6n(a);i!==void 0&&(t[a]=i)}),s.forEach(a=>{let i=j6n(a);i!==void 0&&(t[a]=i)}),t}function jws(){return{apiKey:x3e(),baseUrl:C3e(),model:T3e()}}var HFt=G(()=>{"use strict";});async function VFt(t,e,r){await _ee()&&(await I9e()||console.log("OAuth2 credentials cleared due to expiration. Please authenticate when prompted."));let s=x3e(),a=C3e(),i=T3e(),n=r?.apiKey||s,c=r?.baseUrl||a||$ws[e],u=t.getModel()||i||YE,f={model:u,authType:e,proxy:t?.getProxy(),debugMode:t?.getDebugMode(),config:t};return e===Er.CLOUD_SHELL?f:e===Er.LOGIN_WITH_IFLOW?(f.baseUrl=c||b3e,f.multimodalModelName="qwen3-vl-plus",n&&(f.apiKey=n),f):([...JE,Er.OPENAI_COMPATIBLE].includes(e)&&n&&(f.apiKey=n,f.baseUrl=c,f.model=u),f)}async function GFt(t,e,r){let s={headers:{"User-Agent":`iFlowCLI/0.3.16-beta.0 (${process.platform}; ${process.arch})`}};if(t.authType&&[...JE,Er.IDEA_LAB].includes(t.authType)||t.authType===Er.OPENAI_COMPATIBLE)return new uj({...t,config:e});if(t.authType===Er.LOGIN_WITH_IFLOW||t.authType===Er.LOGIN_WITH_AONE||t.authType===Er.CLOUD_SHELL)return FFt(s,t.authType,e,r);throw new Error(`Error creating contentGenerator: Unsupported authType: ${t.authType}`)}var Er,JE,$ws,ME=G(()=>{"use strict";QFt();O6();RFt();HFt();Mk();(function(t){t.LOGIN_WITH_IFLOW="oauth-iflow",t.LOGIN_WITH_AONE="oauth-aone",t.CLOUD_SHELL="cloud-shell",t.IFLOW="iflow",t.AONE="aone",t.IDEA_LAB="idealab",t.OPENAI_COMPATIBLE="openai-compatible"})(Er||(Er={}));JE=[Er.IFLOW,Er.AONE],$ws={[Er.IDEA_LAB]:"https://idealab.alibaba-inc.com/api/openai/v1",[Er.IFLOW]:b3e,[Er.AONE]:y6n}});var DYe,$6n=G(()=>{"use strict";DYe=class{prompts=new Map;registerPrompt(e){if(this.prompts.has(e.name)){let r=`${e.serverName}_${e.name}`;console.warn(`Prompt with name "${e.name}" is already registered. Renaming to "${r}".`),this.prompts.set(r,{...e,name:r})}else this.prompts.set(e.name,e)}getAllPrompts(){return Array.from(this.prompts.values()).sort((e,r)=>e.name.localeCompare(r.name))}getPrompt(e){return this.prompts.get(e)}getPromptsByServer(e){let r=[];for(let o of this.prompts.values())o.serverName===e&&r.push(o);return r.sort((o,s)=>o.name.localeCompare(s.name))}clear(){this.prompts.clear()}removePromptsByServer(e){for(let[r,o]of this.prompts.entries())o.serverName===e&&this.prompts.delete(r)}}});var Kn,XE=G(()=>{"use strict";(function(t){t.INVALID_TOOL_PARAMS="invalid_tool_params",t.UNKNOWN="unknown",t.UNHANDLED_EXCEPTION="unhandled_exception",t.TOOL_NOT_REGISTERED="tool_not_registered",t.EXECUTION_FAILED="execution_failed",t.FILE_NOT_FOUND="file_not_found",t.FILE_WRITE_FAILURE="file_write_failure",t.READ_CONTENT_FAILURE="read_content_failure",t.ATTEMPT_TO_CREATE_EXISTING_FILE="attempt_to_create_existing_file",t.FILE_TOO_LARGE="file_too_large",t.PERMISSION_DENIED="permission_denied",t.NO_SPACE_LEFT="no_space_left",t.TARGET_IS_DIRECTORY="target_is_directory",t.PATH_NOT_IN_WORKSPACE="path_not_in_workspace",t.SEARCH_PATH_NOT_FOUND="search_path_not_found",t.SEARCH_PATH_NOT_A_DIRECTORY="search_path_not_a_directory",t.EDIT_PREPARATION_FAILURE="edit_preparation_failure",t.EDIT_NO_OCCURRENCE_FOUND="edit_no_occurrence_found",t.EDIT_EXPECTED_OCCURRENCE_MISMATCH="edit_expected_occurrence_mismatch",t.EDIT_NO_CHANGE="edit_no_change",t.GLOB_EXECUTION_ERROR="glob_execution_error",t.GREP_EXECUTION_ERROR="grep_execution_error",t.LS_EXECUTION_ERROR="ls_execution_error",t.PATH_IS_NOT_A_DIRECTORY="path_is_not_a_directory",t.MCP_TOOL_ERROR="mcp_tool_error",t.MEMORY_TOOL_EXECUTION_ERROR="memory_tool_execution_error",t.READ_MANY_FILES_SEARCH_ERROR="read_many_files_search_error",t.DISCOVERED_TOOL_EXECUTION_ERROR="discovered_tool_execution_error",t.WEB_FETCH_NO_URL_IN_PROMPT="web_fetch_no_url_in_prompt",t.WEB_FETCH_FALLBACK_FAILED="web_fetch_fallback_failed",t.WEB_FETCH_PROCESSING_ERROR="web_fetch_processing_error",t.WEB_SEARCH_FAILED="web_search_failed",t.HOOK_BLOCKED="hook_blocked"})(Kn||(Kn={}))});function Wws(t){return{text:t.text}}function zws(t,e){return[{text:R.t("mcpTool.messages.mediaDataProvided",{toolName:e,type:t.type,mimeType:t.mimeType})},{inlineData:{mimeType:t.mimeType,data:t.data}}]}function Kws(t,e){let r=t.resource;if(r?.text)return{text:r.text};if(r?.blob){let o=r.mimeType||"application/octet-stream";return[{text:R.t("mcpTool.messages.embeddedResourceProvided",{toolName:e,mimeType:o})},{inlineData:{mimeType:o,data:r.blob}}]}return null}function Yws(t){return{text:R.t("mcpTool.messages.resourceLink",{title:t.title||t.name,uri:t.uri})}}function Jws(t){let e=t?.[0]?.functionResponse,r=e?.response?.content,o=e?.name||"unknown tool";return Array.isArray(r)?r.flatMap(a=>{switch(a.type){case"text":return Wws(a);case"image":case"audio":return zws(a,o);case"resource":return Kws(a,o);case"resource_link":return Yws(a);default:return null}}).filter(a=>a!==null):[{text:R.t("mcpTool.errors.parseResponseFailed")}]}function Xws(t){let e=t?.[0]?.functionResponse?.response?.content;return Array.isArray(e)?e.map(o=>{switch(o.type){case"text":return o.text;case"image":return R.t("mcpTool.display.image",{mimeType:o.mimeType});case"audio":return R.t("mcpTool.display.audio",{mimeType:o.mimeType});case"resource_link":return R.t("mcpTool.display.resourceLink",{title:o.title||o.name,uri:o.uri});case"resource":return o.resource?.text?o.resource.text:R.t("mcpTool.display.embeddedResource",{mimeType:o.resource?.mimeType||R.t("mcpTool.display.unknownType")});default:return R.t("mcpTool.display.unknownContentType",{type:o.type})}}).join(`
903
+ `);try{(await K1(e)).on("error",a=>{throw new Error(`BROWSER_LAUNCH_FAILED: Failed to open browser automatically: ${a.message}. Please navigate to the URL manually.`)})}catch(s){throw new Error(`BROWSER_LAUNCH_FAILED: An unexpected error occurred while trying to open the browser: ${s}. Please navigate to the URL manually.`)}console.log("Waiting for authentication...");let o=0;for(;o<r.maxRetries;){await Q6n(r.pollInterval);let s=await q6n(t,r);if(s.isSuccess()){let a=s.getPrivateToken();return await VO.savePrivateToken(a),console.log("Aone authentication successful!"),!0}s.getError()&&console.log(`Waiting for authentication... (${o+1}/${r.maxRetries})`),o++}throw new Error("Authentication timeout. Please try again.")}async function CYe(t=new Wie){return await VO.hasValidToken()?(console.log("Using cached Aone authentication."),!0):await H6n(t)}async function F8(){return await VO.loadPrivateToken()}async function TYe(){await VO.clearPrivateToken(),console.log("Aone authentication cleared.")}async function Hws(){return await VO.hasValidToken()}async function Vws(t=new Wie){return await TYe(),await CYe(t)}var wYe=G(()=>{"use strict";UFt();$7();L6n();U6n();F6n();});async function FFt(t,e,r,o){if(e===Er.LOGIN_WITH_IFLOW){let s=await HH(e,r),a=await U4();if(!a)throw new Error("No API key found. Please re-authenticate.");let i=r.getContentGeneratorConfig();return new uj({model:r.getModel(),apiKey:a,baseUrl:i?.baseUrl||b3e,authType:e,debugMode:r.getDebugMode(),multimodalModelName:"qwen3-vl-plus",config:r})}if(e===Er.LOGIN_WITH_AONE){if(!await CYe())throw new Error("Aone authentication failed. Please try again.");let a=await F8();if(!a)throw new Error("No Aone private token found. Please re-authenticate.");let i=r.getContentGeneratorConfig(),n=Buffer.from(a,"utf8").toString("base64");return new uj({model:r.getModel(),apiKey:n,baseUrl:i?.baseUrl||"https://ducky.code.alibaba-inc.com/v1/openai",authType:e,debugMode:r.getDebugMode(),multimodalModelName:i?.multimodalModelName,config:r})}if(e===Er.CLOUD_SHELL){let s=await HH(e,r),a=await qRr(s);return new z7(s,a.projectId,t,o,a.userTier)}throw new Error(`Unsupported authType: ${e}`)}var QFt=G(()=>{"use strict";ME();Mk();HRr();O9e();RFt();O6();wYe();});function Gws(t){return t.replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase()}function Q8(t){let e=Gws(t),r=`IFLOW_${t}`;if(process.env[r])return process.env[r];let o=`IFLOW_${e}`;if(process.env[o])return process.env[o];let s=`iflow_${t}`;if(process.env[s])return process.env[s];let a=`iflow_${e}`;if(process.env[a])return process.env[a]}function x3e(){return Q8("apiKey")}function C3e(){return Q8("baseUrl")||Q8("url")}function T3e(){return Q8("modelName")||Q8("model")}function V6n(t){let e=Q8(t);if(e===void 0)return;let r=e.toLowerCase();if(r==="true"||r==="1"||r==="yes")return!0;if(r==="false"||r==="0"||r==="no")return!1}function G6n(t){let e=Q8(t);if(e===void 0)return;let r=Number(e);return isNaN(r)?void 0:r}function j6n(t){let e=Q8(t);if(e!==void 0)return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function IYe(){return!!(x3e()||C3e()||T3e())}function qFt(){let t={},e=["theme","selectedAuthType","sandbox","toolDiscoveryCommand","toolCallCommand","mcpServerCommand","contextFileName","preferredEditor","apiKey","baseUrl","modelName","searchApiKey","multimodalModelName","memoryImportFormat"],r=["useExternalAuth","showMemoryUsage","usageStatisticsEnabled","autoConfigureMaxOldSpaceSize","hideWindowTitle","hideTips","hideBanner","vimMode","ideModeFeature","ideMode","disableAutoUpdate","skipNextSpeakerCheck","useRipgrep","debugKeystrokeLogging","pasteFromClipboard"],o=["maxSessionTurns","memoryDiscoveryMaxDirs","tokensLimit","compressionTokenThreshold","shellTimeout","temperature","topP"],s=["coreTools","excludeTools","allowMCPServers","excludeMCPServers"];return e.forEach(a=>{let i=Q8(a);i!==void 0&&(t[a]=i)}),r.forEach(a=>{let i=V6n(a);i!==void 0&&(t[a]=i)}),o.forEach(a=>{let i=G6n(a);i!==void 0&&(t[a]=i)}),s.forEach(a=>{let i=j6n(a);i!==void 0&&(t[a]=i)}),t}function jws(){return{apiKey:x3e(),baseUrl:C3e(),model:T3e()}}var HFt=G(()=>{"use strict";});async function VFt(t,e,r){await _ee()&&(await I9e()||console.log("OAuth2 credentials cleared due to expiration. Please authenticate when prompted."));let s=x3e(),a=C3e(),i=T3e(),n=r?.apiKey||s,c=r?.baseUrl||a||$ws[e],u=t.getModel()||i||YE,f={model:u,authType:e,proxy:t?.getProxy(),debugMode:t?.getDebugMode(),config:t};return e===Er.CLOUD_SHELL?f:e===Er.LOGIN_WITH_IFLOW?(f.baseUrl=c||b3e,f.multimodalModelName="qwen3-vl-plus",n&&(f.apiKey=n),f):([...JE,Er.OPENAI_COMPATIBLE].includes(e)&&n&&(f.apiKey=n,f.baseUrl=c,f.model=u),f)}async function GFt(t,e,r){let s={headers:{"User-Agent":`iFlowCLI/0.3.16 (${process.platform}; ${process.arch})`}};if(t.authType&&[...JE,Er.IDEA_LAB].includes(t.authType)||t.authType===Er.OPENAI_COMPATIBLE)return new uj({...t,config:e});if(t.authType===Er.LOGIN_WITH_IFLOW||t.authType===Er.LOGIN_WITH_AONE||t.authType===Er.CLOUD_SHELL)return FFt(s,t.authType,e,r);throw new Error(`Error creating contentGenerator: Unsupported authType: ${t.authType}`)}var Er,JE,$ws,ME=G(()=>{"use strict";QFt();O6();RFt();HFt();Mk();(function(t){t.LOGIN_WITH_IFLOW="oauth-iflow",t.LOGIN_WITH_AONE="oauth-aone",t.CLOUD_SHELL="cloud-shell",t.IFLOW="iflow",t.AONE="aone",t.IDEA_LAB="idealab",t.OPENAI_COMPATIBLE="openai-compatible"})(Er||(Er={}));JE=[Er.IFLOW,Er.AONE],$ws={[Er.IDEA_LAB]:"https://idealab.alibaba-inc.com/api/openai/v1",[Er.IFLOW]:b3e,[Er.AONE]:y6n}});var DYe,$6n=G(()=>{"use strict";DYe=class{prompts=new Map;registerPrompt(e){if(this.prompts.has(e.name)){let r=`${e.serverName}_${e.name}`;console.warn(`Prompt with name "${e.name}" is already registered. Renaming to "${r}".`),this.prompts.set(r,{...e,name:r})}else this.prompts.set(e.name,e)}getAllPrompts(){return Array.from(this.prompts.values()).sort((e,r)=>e.name.localeCompare(r.name))}getPrompt(e){return this.prompts.get(e)}getPromptsByServer(e){let r=[];for(let o of this.prompts.values())o.serverName===e&&r.push(o);return r.sort((o,s)=>o.name.localeCompare(s.name))}clear(){this.prompts.clear()}removePromptsByServer(e){for(let[r,o]of this.prompts.entries())o.serverName===e&&this.prompts.delete(r)}}});var Kn,XE=G(()=>{"use strict";(function(t){t.INVALID_TOOL_PARAMS="invalid_tool_params",t.UNKNOWN="unknown",t.UNHANDLED_EXCEPTION="unhandled_exception",t.TOOL_NOT_REGISTERED="tool_not_registered",t.EXECUTION_FAILED="execution_failed",t.FILE_NOT_FOUND="file_not_found",t.FILE_WRITE_FAILURE="file_write_failure",t.READ_CONTENT_FAILURE="read_content_failure",t.ATTEMPT_TO_CREATE_EXISTING_FILE="attempt_to_create_existing_file",t.FILE_TOO_LARGE="file_too_large",t.PERMISSION_DENIED="permission_denied",t.NO_SPACE_LEFT="no_space_left",t.TARGET_IS_DIRECTORY="target_is_directory",t.PATH_NOT_IN_WORKSPACE="path_not_in_workspace",t.SEARCH_PATH_NOT_FOUND="search_path_not_found",t.SEARCH_PATH_NOT_A_DIRECTORY="search_path_not_a_directory",t.EDIT_PREPARATION_FAILURE="edit_preparation_failure",t.EDIT_NO_OCCURRENCE_FOUND="edit_no_occurrence_found",t.EDIT_EXPECTED_OCCURRENCE_MISMATCH="edit_expected_occurrence_mismatch",t.EDIT_NO_CHANGE="edit_no_change",t.GLOB_EXECUTION_ERROR="glob_execution_error",t.GREP_EXECUTION_ERROR="grep_execution_error",t.LS_EXECUTION_ERROR="ls_execution_error",t.PATH_IS_NOT_A_DIRECTORY="path_is_not_a_directory",t.MCP_TOOL_ERROR="mcp_tool_error",t.MEMORY_TOOL_EXECUTION_ERROR="memory_tool_execution_error",t.READ_MANY_FILES_SEARCH_ERROR="read_many_files_search_error",t.DISCOVERED_TOOL_EXECUTION_ERROR="discovered_tool_execution_error",t.WEB_FETCH_NO_URL_IN_PROMPT="web_fetch_no_url_in_prompt",t.WEB_FETCH_FALLBACK_FAILED="web_fetch_fallback_failed",t.WEB_FETCH_PROCESSING_ERROR="web_fetch_processing_error",t.WEB_SEARCH_FAILED="web_search_failed",t.HOOK_BLOCKED="hook_blocked"})(Kn||(Kn={}))});function Wws(t){return{text:t.text}}function zws(t,e){return[{text:R.t("mcpTool.messages.mediaDataProvided",{toolName:e,type:t.type,mimeType:t.mimeType})},{inlineData:{mimeType:t.mimeType,data:t.data}}]}function Kws(t,e){let r=t.resource;if(r?.text)return{text:r.text};if(r?.blob){let o=r.mimeType||"application/octet-stream";return[{text:R.t("mcpTool.messages.embeddedResourceProvided",{toolName:e,mimeType:o})},{inlineData:{mimeType:o,data:r.blob}}]}return null}function Yws(t){return{text:R.t("mcpTool.messages.resourceLink",{title:t.title||t.name,uri:t.uri})}}function Jws(t){let e=t?.[0]?.functionResponse,r=e?.response?.content,o=e?.name||"unknown tool";return Array.isArray(r)?r.flatMap(a=>{switch(a.type){case"text":return Wws(a);case"image":case"audio":return zws(a,o);case"resource":return Kws(a,o);case"resource_link":return Yws(a);default:return null}}).filter(a=>a!==null):[{text:R.t("mcpTool.errors.parseResponseFailed")}]}function Xws(t){let e=t?.[0]?.functionResponse?.response?.content;return Array.isArray(e)?e.map(o=>{switch(o.type){case"text":return o.text;case"image":return R.t("mcpTool.display.image",{mimeType:o.mimeType});case"audio":return R.t("mcpTool.display.audio",{mimeType:o.mimeType});case"resource_link":return R.t("mcpTool.display.resourceLink",{title:o.title||o.name,uri:o.uri});case"resource":return o.resource?.text?o.resource.text:R.t("mcpTool.display.embeddedResource",{mimeType:o.resource?.mimeType||R.t("mcpTool.display.unknownType")});default:return R.t("mcpTool.display.unknownContentType",{type:o.type})}}).join(`
904
904
  `):"```json\n"+JSON.stringify(t,null,2)+"\n```"}function W6n(t){let e=t.replace(/[^a-zA-Z0-9_.-]/g,"_");return e.length>63&&(e=e.slice(0,28)+"___"+e.slice(-32)),e}var n1,w3e=G(()=>{"use strict";ZKe();XE();rp();Eu();Ji();n1=class t extends Us{mcpTool;serverName;serverToolName;parameterSchemaJson;timeout;trust;static allowlist=new Set;constructor(e,r,o,s,a,i,n,c){super(c??W6n(o),`${o} (${r} MCP Server)`,s,Fs.Hammer,Qs.Other,{type:Or.OBJECT},!0,!1),this.mcpTool=e,this.serverName=r,this.serverToolName=o,this.parameterSchemaJson=a,this.timeout=i,this.trust=n}asFullyQualifiedTool(){return new t(this.mcpTool,this.serverName,this.serverToolName,this.description,this.parameterSchemaJson,this.timeout,this.trust,`${this.serverName}__${this.serverToolName}`)}get schema(){return{name:this.name,description:this.description,parametersJsonSchema:this.parameterSchemaJson}}async shouldConfirmExecute(e,r){let o=this.serverName,s=`${this.serverName}.${this.serverToolName}`;return this.trust||t.allowlist.has(o)||t.allowlist.has(s)?!1:{type:"mcp",title:R.t("mcpTool.messages.confirmExecution"),serverName:this.serverName,toolName:this.serverToolName,toolDisplayName:this.name,onConfirm:async i=>{i===ii.ProceedAlwaysServer?t.allowlist.add(o):i===ii.ProceedAlwaysTool&&t.allowlist.add(s)}}}isMCPToolError(e){let o=e?.[0]?.functionResponse?.response;if(o){let s=o?.error,a=s?.isError;if(s&&(a===!0||a==="true"))return!0}return!1}async execute(e){let{callId:r,...o}=e,s=[{name:this.serverToolName,args:o}],a=await this.mcpTool.callTool(s);if(this.isMCPToolError(a)){let n=`MCP tool '${this.serverToolName}' reported tool error for function call: ${sj(s[0])} with response: ${sj(a)}`;return{llmContent:n,returnDisplay:R.t("mcpTool.errors.toolReportedError",{toolName:this.serverToolName}),error:{message:n,type:Kn.MCP_TOOL_ERROR}}}return{llmContent:Jws(a),returnDisplay:Xws(a)}}}});var K6n=E((Lyl,z6n)=>{"use strict";z6n.exports=function(e){return e.map(function(r){return r===""?"''":r&&typeof r=="object"?r.op.replace(/(.)/g,"\\$1"):/["\s\\]/.test(r)&&!/'/.test(r)?"'"+r.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(r)?'"'+r.replace(/(["\\$`!])/g,"\\$1")+'"':String(r).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}});var rwn=E((Uyl,twn)=>{"use strict";var ewn="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",Y6n=new RegExp("^"+ewn+"$"),J6n="|&;()<> \\t",Zws='"((\\\\"|[^"])*?)"',e5s="'((\\\\'|[^'])*?)'",t5s=/^#$/,X6n="'",Z6n='"',jFt="$",fj="",r5s=4294967296;for($Ft=0;$Ft<4;$Ft++)fj+=(r5s*Math.random()).toString(16);var $Ft,n5s=new RegExp("^"+fj);function i5s(t,e){for(var r=e.lastIndex,o=[],s;s=e.exec(t);)o.push(s),e.lastIndex===s.index&&(e.lastIndex+=1);return e.lastIndex=r,o}function o5s(t,e,r){var o=typeof t=="function"?t(r):t[r];return typeof o>"u"&&r!=""?o="":typeof o>"u"&&(o="$"),typeof o=="object"?e+fj+JSON.stringify(o)+fj:e+o}function s5s(t,e,r){r||(r={});var o=r.escape||"\\",s="(\\"+o+`['"`+J6n+`]|[^\\s'"`+J6n+"])+",a=new RegExp(["("+ewn+")","("+s+"|"+Zws+"|"+e5s+")+"].join("|"),"g"),i=i5s(t,a);if(i.length===0)return[];e||(e={});var n=!1;return i.map(function(c){var u=c[0];if(!u||n)return;if(Y6n.test(u))return{op:u};var f=!1,d=!1,p="",h=!1,m;function y(){m+=1;var v,b,x=u.charAt(m);if(x==="{"){if(m+=1,u.charAt(m)==="}")throw new Error("Bad substitution: "+u.slice(m-2,m+1));if(v=u.indexOf("}",m),v<0)throw new Error("Bad substitution: "+u.slice(m));b=u.slice(m,v),m=v}else if(/[*@#?$!_-]/.test(x))b=x,m+=1;else{var T=u.slice(m);v=T.match(/[^\w\d_]/),v?(b=T.slice(0,v.index),m+=v.index-1):(b=T,m=u.length)}return o5s(e,"",b)}for(m=0;m<u.length;m++){var g=u.charAt(m);if(h=h||!f&&(g==="*"||g==="?"),d)p+=g,d=!1;else if(f)g===f?f=!1:f==X6n?p+=g:g===o?(m+=1,g=u.charAt(m),g===Z6n||g===o||g===jFt?p+=g:p+=o+g):g===jFt?p+=y():p+=g;else if(g===Z6n||g===X6n)f=g;else{if(Y6n.test(g))return{op:u};if(t5s.test(g)){n=!0;var A={comment:t.slice(c.index+m+1)};return p.length?[p,A]:[A]}else g===o?d=!0:g===jFt?p+=y():p+=g}}return h?{op:"glob",pattern:p}:p}).reduce(function(c,u){return typeof u>"u"?c:c.concat(u)},[])}twn.exports=function(e,r,o){var s=s5s(e,r,o);return typeof r!="function"?s:s.reduce(function(a,i){if(typeof i=="object")return a.concat(i);var n=i.split(RegExp("("+fj+".*?"+fj+")","g"));return n.length===1?a.concat(n[0]):a.concat(n.filter(Boolean).map(function(c){return n5s.test(c)?JSON.parse(c.split(fj)[1]):c}))},[])}});var OYe=E(WFt=>{"use strict";WFt.quote=K6n();WFt.parse=rwn()});var Ac,zFt,gi,q8,I3e=G(()=>{(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function r(s){throw new Error}t.assertNever=r,t.arrayToEnum=s=>{let a={};for(let i of s)a[i]=i;return a},t.getValidEnumValues=s=>{let a=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(let n of a)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(a){return s[a]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let a=[];for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},t.find=(s,a)=>{for(let i of s)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function o(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=o,t.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(Ac||(Ac={}));(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(zFt||(zFt={}));gi=Ac.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),q8=t=>{switch(typeof t){case"undefined":return gi.undefined;case"string":return gi.string;case"number":return Number.isNaN(t)?gi.nan:gi.number;case"boolean":return gi.boolean;case"function":return gi.function;case"bigint":return gi.bigint;case"symbol":return gi.symbol;case"object":return Array.isArray(t)?gi.array:t===null?gi.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?gi.promise:typeof Map<"u"&&t instanceof Map?gi.map:typeof Set<"u"&&t instanceof Set?gi.set:typeof Date<"u"&&t instanceof Date?gi.date:gi.object;default:return gi.unknown}}});var On,a5s,sb,RYe=G(()=>{I3e();On=Ac.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),a5s=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),sb=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){let r=e||function(a){return a.message},o={_errors:[]},s=a=>{for(let i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)o._errors.push(r(i));else{let n=o,c=0;for(;c<i.path.length;){let u=i.path[c];c===i.path.length-1?(n[u]=n[u]||{_errors:[]},n[u]._errors.push(r(i))):n[u]=n[u]||{_errors:[]},n=n[u],c++}}};return s(this),o}static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ac.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},o=[];for(let s of this.issues)if(s.path.length>0){let a=s.path[0];r[a]=r[a]||[],r[a].push(e(s))}else o.push(e(s));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};sb.create=t=>new sb(t)});var c5s,GO,KFt=G(()=>{RYe();I3e();c5s=(t,e)=>{let r;switch(t.code){case On.invalid_type:t.received===gi.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case On.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Ac.jsonStringifyReplacer)}`;break;case On.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ac.joinValues(t.keys,", ")}`;break;case On.invalid_union:r="Invalid input";break;case On.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ac.joinValues(t.options)}`;break;case On.invalid_enum_value:r=`Invalid enum value. Expected ${Ac.joinValues(t.options)}, received '${t.received}'`;break;case On.invalid_arguments:r="Invalid function arguments";break;case On.invalid_return_type:r="Invalid function return type";break;case On.invalid_date:r="Invalid date";break;case On.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Ac.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case On.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case On.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case On.custom:r="Invalid input";break;case On.invalid_intersection_types:r="Intersection results could not be merged";break;case On.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case On.not_finite:r="Number must be finite";break;default:r=e.defaultError,Ac.assertNever(t)}return{message:r}},GO=c5s});function l5s(t){nwn=t}function zie(){return nwn}var nwn,NYe=G(()=>{KFt();nwn=GO});function oi(t,e){let r=zie(),o=D3e({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===GO?void 0:GO].filter(s=>!!s)});t.common.issues.push(o)}var D3e,u5s,i1,rs,dj,Fy,PYe,kYe,AL,Kie,YFt=G(()=>{NYe();KFt();D3e=t=>{let{data:e,path:r,errorMaps:o,issueData:s}=t,a=[...r,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let n="",c=o.filter(u=>!!u).slice().reverse();for(let u of c)n=u(i,{data:e,defaultError:n}).message;return{...s,path:a,message:n}},u5s=[];i1=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let o=[];for(let s of r){if(s.status==="aborted")return rs;s.status==="dirty"&&e.dirty(),o.push(s.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,r){let o=[];for(let s of r){let a=await s.key,i=await s.value;o.push({key:a,value:i})}return t.mergeObjectSync(e,o)}static mergeObjectSync(e,r){let o={};for(let s of r){let{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return rs;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(o[a.value]=i.value)}return{status:e.value,value:o}}},rs=Object.freeze({status:"aborted"}),dj=t=>({status:"dirty",value:t}),Fy=t=>({status:"valid",value:t}),PYe=t=>t.status==="aborted",kYe=t=>t.status==="dirty",AL=t=>t.status==="valid",Kie=t=>typeof Promise<"u"&&t instanceof Promise});var iwn=G(()=>{});var eo,own=G(()=>{(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(eo||(eo={}))});function va(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:o,description:s}=t;if(e&&(r||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,n)=>{let{message:c}=t;return i.code==="invalid_enum_value"?{message:c??n.defaultError}:typeof n.data>"u"?{message:c??o??n.defaultError}:i.code!=="invalid_type"?{message:n.defaultError}:{message:c??r??n.defaultError}},description:s}}function lwn(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function w5s(t){return new RegExp(`^${lwn(t)}$`)}function uwn(t){let e=`${cwn}T${lwn(t)}`,r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function I5s(t,e){return!!((e==="v4"||!e)&&b5s.test(t)||(e==="v6"||!e)&&S5s.test(t))}function D5s(t,e){if(!g5s.test(t))return!1;try{let[r]=t.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(o));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function O5s(t,e){return!!((e==="v4"||!e)&&E5s.test(t)||(e==="v6"||!e)&&_5s.test(t))}function R5s(t,e){let r=(t.toString().split(".")[1]||"").length,o=(e.toString().split(".")[1]||"").length,s=r>o?r:o,a=Number.parseInt(t.toFixed(s).replace(".","")),i=Number.parseInt(e.toFixed(s).replace(".",""));return a%i/10**s}function Yie(t){if(t instanceof ab){let e={};for(let r in t.shape){let o=t.shape[r];e[r]=rC.create(Yie(o))}return new ab({...t._def,shape:()=>e})}else return t instanceof WO?new WO({...t._def,type:Yie(t.element)}):t instanceof rC?rC.create(Yie(t.unwrap())):t instanceof V8?V8.create(Yie(t.unwrap())):t instanceof H8?H8.create(t.items.map(e=>Yie(e))):t}function XFt(t,e){let r=q8(t),o=q8(e);if(t===e)return{valid:!0,data:t};if(r===gi.object&&o===gi.object){let s=Ac.objectKeys(e),a=Ac.objectKeys(t).filter(n=>s.indexOf(n)!==-1),i={...t,...e};for(let n of a){let c=XFt(t[n],e[n]);if(!c.valid)return{valid:!1};i[n]=c.data}return{valid:!0,data:i}}else if(r===gi.array&&o===gi.array){if(t.length!==e.length)return{valid:!1};let s=[];for(let a=0;a<t.length;a++){let i=t[a],n=e[a],c=XFt(i,n);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===gi.date&&o===gi.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}function fwn(t,e){return new _j({values:t,typeName:cs.ZodEnum,...va(e)})}function awn(t,e){let r=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof r=="string"?{message:r}:r}function dwn(t,e={},r){return t?bL.create().superRefine((o,s)=>{let a=t(o);if(a instanceof Promise)return a.then(i=>{if(!i){let n=awn(e,o),c=n.fatal??r??!0;s.addIssue({code:"custom",...n,fatal:c})}});if(!a){let i=awn(e,o),n=i.fatal??r??!0;s.addIssue({code:"custom",...i,fatal:n})}}):bL.create()}var nC,swn,Ua,f5s,d5s,p5s,h5s,m5s,g5s,y5s,A5s,v5s,JFt,b5s,E5s,S5s,_5s,x5s,C5s,cwn,T5s,vL,pj,hj,mj,gj,Jie,yj,Aj,bL,$O,R6,Xie,WO,ab,vj,jO,BYe,bj,H8,MYe,Zie,eoe,LYe,Ej,Sj,_j,xj,EL,iC,rC,V8,Cj,Tj,toe,N5s,O3e,R3e,wj,P5s,cs,k5s,pwn,hwn,B5s,M5s,mwn,L5s,U5s,F5s,Q5s,q5s,H5s,V5s,G5s,j5s,$5s,W5s,z5s,K5s,Y5s,J5s,X5s,Z5s,eIs,tIs,rIs,nIs,iIs,oIs,sIs,aIs,cIs,lIs,uIs,fIs,dIs,pIs,hIs,mIs,gIs,gwn=G(()=>{RYe();NYe();own();YFt();I3e();nC=class{constructor(e,r,o,s){this._cachedPath=[],this.parent=e,this.data=r,this._path=o,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},swn=(t,e)=>{if(AL(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new sb(t.common.issues);return this._error=r,this._error}}};Ua=class{get description(){return this._def.description}_getType(e){return q8(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:q8(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new i1,ctx:{common:e.parent.common,data:e.data,parsedType:q8(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(Kie(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let o=this.safeParse(e,r);if(o.success)return o.data;throw o.error}safeParse(e,r){let o={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:q8(e)},s=this._parseSync({data:e,path:o.path,parent:o});return swn(o,s)}"~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:q8(e)};if(!this["~standard"].async)try{let o=this._parseSync({data:e,path:[],parent:r});return AL(o)?{value:o.value}:{issues:r.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(o=>AL(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(e,r){let o=await this.safeParseAsync(e,r);if(o.success)return o.data;throw o.error}async safeParseAsync(e,r){let o={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:q8(e)},s=this._parse({data:e,path:o.path,parent:o}),a=await(Kie(s)?s:Promise.resolve(s));return swn(o,a)}refine(e,r){let o=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,a)=>{let i=e(s),n=()=>a.addIssue({code:On.custom,...o(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(n(),!1)):i?!0:(n(),!1)})}refinement(e,r){return this._refinement((o,s)=>e(o)?!0:(s.addIssue(typeof r=="function"?r(o,s):r),!1))}_refinement(e){return new iC({schema:this,typeName:cs.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return rC.create(this,this._def)}nullable(){return V8.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return WO.create(this)}promise(){return EL.create(this,this._def)}or(e){return vj.create([this,e],this._def)}and(e){return bj.create(this,e,this._def)}transform(e){return new iC({...va(this._def),schema:this,typeName:cs.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Cj({...va(this._def),innerType:this,defaultValue:r,typeName:cs.ZodDefault})}brand(){return new O3e({typeName:cs.ZodBranded,type:this,...va(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Tj({...va(this._def),innerType:this,catchValue:r,typeName:cs.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return R3e.create(this,e)}readonly(){return wj.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},f5s=/^c[^\s-]{8,}$/i,d5s=/^[0-9a-z]+$/,p5s=/^[0-9A-HJKMNP-TV-Z]{26}$/i,h5s=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,m5s=/^[a-z0-9_-]{21}$/i,g5s=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,y5s=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,A5s=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,v5s="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",b5s=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,E5s=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,S5s=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,_5s=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x5s=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,C5s=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,cwn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",T5s=new RegExp(`^${cwn}$`);vL=class t extends Ua{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==gi.string){let a=this._getOrReturnCtx(e);return oi(a,{code:On.invalid_type,expected:gi.string,received:a.parsedType}),rs}let o=new i1,s;for(let a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:On.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="max")e.data.length>a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:On.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="length"){let i=e.data.length>a.value,n=e.data.length<a.value;(i||n)&&(s=this._getOrReturnCtx(e,s),i?oi(s,{code:On.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):n&&oi(s,{code:On.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),o.dirty())}else if(a.kind==="email")A5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"email",code:On.invalid_string,message:a.message}),o.dirty());else if(a.kind==="emoji")JFt||(JFt=new RegExp(v5s,"u")),JFt.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"emoji",code:On.invalid_string,message:a.message}),o.dirty());else if(a.kind==="uuid")h5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"uuid",code:On.invalid_string,message:a.message}),o.dirty());else if(a.kind==="nanoid")m5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"nanoid",code:On.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid")f5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"cuid",code:On.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid2")d5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"cuid2",code:On.invalid_string,message:a.message}),o.dirty());else if(a.kind==="ulid")p5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"ulid",code:On.invalid_string,message:a.message}),o.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),oi(s,{validation:"url",code:On.invalid_string,message:a.message}),o.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"regex",code:On.invalid_string,message:a.message}),o.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(s=this._getOrReturnCtx(e,s),oi(s,{code:On.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),o.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(s=this._getOrReturnCtx(e,s),oi(s,{code:On.invalid_string,validation:{startsWith:a.value},message:a.message}),o.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(s=this._getOrReturnCtx(e,s),oi(s,{code:On.invalid_string,validation:{endsWith:a.value},message:a.message}),o.dirty()):a.kind==="datetime"?uwn(a).test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{code:On.invalid_string,validation:"datetime",message:a.message}),o.dirty()):a.kind==="date"?T5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{code:On.invalid_string,validation:"date",message:a.message}),o.dirty()):a.kind==="time"?w5s(a).test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{code:On.invalid_string,validation:"time",message:a.message}),o.dirty()):a.kind==="duration"?y5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"duration",code:On.invalid_string,message:a.message}),o.dirty()):a.kind==="ip"?I5s(e.data,a.version)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"ip",code:On.invalid_string,message:a.message}),o.dirty()):a.kind==="jwt"?D5s(e.data,a.alg)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"jwt",code:On.invalid_string,message:a.message}),o.dirty()):a.kind==="cidr"?O5s(e.data,a.version)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"cidr",code:On.invalid_string,message:a.message}),o.dirty()):a.kind==="base64"?x5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"base64",code:On.invalid_string,message:a.message}),o.dirty()):a.kind==="base64url"?C5s.test(e.data)||(s=this._getOrReturnCtx(e,s),oi(s,{validation:"base64url",code:On.invalid_string,message:a.message}),o.dirty()):Ac.assertNever(a);return{status:o.value,value:e.data}}_regex(e,r,o){return this.refinement(s=>e.test(s),{validation:r,code:On.invalid_string,...eo.errToObj(o)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...eo.errToObj(e)})}url(e){return this._addCheck({kind:"url",...eo.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...eo.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...eo.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...eo.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...eo.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...eo.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...eo.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...eo.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...eo.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...eo.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...eo.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...eo.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...eo.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...eo.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...eo.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...eo.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...eo.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...eo.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...eo.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...eo.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...eo.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...eo.errToObj(r)})}nonempty(e){return this.min(1,eo.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};vL.create=t=>new vL({checks:[],typeName:cs.ZodString,coerce:t?.coerce??!1,...va(t)});pj=class t extends Ua{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==gi.number){let a=this._getOrReturnCtx(e);return oi(a,{code:On.invalid_type,expected:gi.number,received:a.parsedType}),rs}let o,s=new i1;for(let a of this._def.checks)a.kind==="int"?Ac.isInteger(e.data)||(o=this._getOrReturnCtx(e,o),oi(o,{code:On.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:On.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:On.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?R5s(e.data,a.value)!==0&&(o=this._getOrReturnCtx(e,o),oi(o,{code:On.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(o=this._getOrReturnCtx(e,o),oi(o,{code:On.not_finite,message:a.message}),s.dirty()):Ac.assertNever(a);return{status:s.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,eo.toString(r))}gt(e,r){return this.setLimit("min",e,!1,eo.toString(r))}lte(e,r){return this.setLimit("max",e,!0,eo.toString(r))}lt(e,r){return this.setLimit("max",e,!1,eo.toString(r))}setLimit(e,r,o,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:eo.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:eo.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:eo.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:eo.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:eo.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:eo.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:eo.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:eo.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:eo.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:eo.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ac.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(e===null||o.value<e)&&(e=o.value)}return Number.isFinite(r)&&Number.isFinite(e)}};pj.create=t=>new pj({checks:[],typeName:cs.ZodNumber,coerce:t?.coerce||!1,...va(t)});hj=class t extends Ua{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==gi.bigint)return this._getInvalidInput(e);let o,s=new i1;for(let a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:On.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:On.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(o=this._getOrReturnCtx(e,o),oi(o,{code:On.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):Ac.assertNever(a);return{status:s.value,value:e.data}}_getInvalidInput(e){let r=this._getOrReturnCtx(e);return oi(r,{code:On.invalid_type,expected:gi.bigint,received:r.parsedType}),rs}gte(e,r){return this.setLimit("min",e,!0,eo.toString(r))}gt(e,r){return this.setLimit("min",e,!1,eo.toString(r))}lte(e,r){return this.setLimit("max",e,!0,eo.toString(r))}lt(e,r){return this.setLimit("max",e,!1,eo.toString(r))}setLimit(e,r,o,s){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:o,message:eo.toString(s)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:eo.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:eo.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:eo.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:eo.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:eo.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};hj.create=t=>new hj({checks:[],typeName:cs.ZodBigInt,coerce:t?.coerce??!1,...va(t)});mj=class extends Ua{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==gi.boolean){let o=this._getOrReturnCtx(e);return oi(o,{code:On.invalid_type,expected:gi.boolean,received:o.parsedType}),rs}return Fy(e.data)}};mj.create=t=>new mj({typeName:cs.ZodBoolean,coerce:t?.coerce||!1,...va(t)});gj=class t extends Ua{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==gi.date){let a=this._getOrReturnCtx(e);return oi(a,{code:On.invalid_type,expected:gi.date,received:a.parsedType}),rs}if(Number.isNaN(e.data.getTime())){let a=this._getOrReturnCtx(e);return oi(a,{code:On.invalid_date}),rs}let o=new i1,s;for(let a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:On.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),o.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(s=this._getOrReturnCtx(e,s),oi(s,{code:On.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),o.dirty()):Ac.assertNever(a);return{status:o.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:eo.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:eo.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};gj.create=t=>new gj({checks:[],coerce:t?.coerce||!1,typeName:cs.ZodDate,...va(t)});Jie=class extends Ua{_parse(e){if(this._getType(e)!==gi.symbol){let o=this._getOrReturnCtx(e);return oi(o,{code:On.invalid_type,expected:gi.symbol,received:o.parsedType}),rs}return Fy(e.data)}};Jie.create=t=>new Jie({typeName:cs.ZodSymbol,...va(t)});yj=class extends Ua{_parse(e){if(this._getType(e)!==gi.undefined){let o=this._getOrReturnCtx(e);return oi(o,{code:On.invalid_type,expected:gi.undefined,received:o.parsedType}),rs}return Fy(e.data)}};yj.create=t=>new yj({typeName:cs.ZodUndefined,...va(t)});Aj=class extends Ua{_parse(e){if(this._getType(e)!==gi.null){let o=this._getOrReturnCtx(e);return oi(o,{code:On.invalid_type,expected:gi.null,received:o.parsedType}),rs}return Fy(e.data)}};Aj.create=t=>new Aj({typeName:cs.ZodNull,...va(t)});bL=class extends Ua{constructor(){super(...arguments),this._any=!0}_parse(e){return Fy(e.data)}};bL.create=t=>new bL({typeName:cs.ZodAny,...va(t)});$O=class extends Ua{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Fy(e.data)}};$O.create=t=>new $O({typeName:cs.ZodUnknown,...va(t)});R6=class extends Ua{_parse(e){let r=this._getOrReturnCtx(e);return oi(r,{code:On.invalid_type,expected:gi.never,received:r.parsedType}),rs}};R6.create=t=>new R6({typeName:cs.ZodNever,...va(t)});Xie=class extends Ua{_parse(e){if(this._getType(e)!==gi.undefined){let o=this._getOrReturnCtx(e);return oi(o,{code:On.invalid_type,expected:gi.void,received:o.parsedType}),rs}return Fy(e.data)}};Xie.create=t=>new Xie({typeName:cs.ZodVoid,...va(t)});WO=class t extends Ua{_parse(e){let{ctx:r,status:o}=this._processInputParams(e),s=this._def;if(r.parsedType!==gi.array)return oi(r,{code:On.invalid_type,expected:gi.array,received:r.parsedType}),rs;if(s.exactLength!==null){let i=r.data.length>s.exactLength.value,n=r.data.length<s.exactLength.value;(i||n)&&(oi(r,{code:i?On.too_big:On.too_small,minimum:n?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),o.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(oi(r,{code:On.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),o.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(oi(r,{code:On.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((i,n)=>s.type._parseAsync(new nC(r,i,r.path,n)))).then(i=>i1.mergeArray(o,i));let a=[...r.data].map((i,n)=>s.type._parseSync(new nC(r,i,r.path,n)));return i1.mergeArray(o,a)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:eo.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:eo.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:eo.toString(r)}})}nonempty(e){return this.min(1,e)}};WO.create=(t,e)=>new WO({type:t,minLength:null,maxLength:null,exactLength:null,typeName:cs.ZodArray,...va(e)});ab=class t extends Ua{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Ac.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==gi.object){let u=this._getOrReturnCtx(e);return oi(u,{code:On.invalid_type,expected:gi.object,received:u.parsedType}),rs}let{status:o,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),n=[];if(!(this._def.catchall instanceof R6&&this._def.unknownKeys==="strip"))for(let u in s.data)i.includes(u)||n.push(u);let c=[];for(let u of i){let f=a[u],d=s.data[u];c.push({key:{status:"valid",value:u},value:f._parse(new nC(s,d,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof R6){let u=this._def.unknownKeys;if(u==="passthrough")for(let f of n)c.push({key:{status:"valid",value:f},value:{status:"valid",value:s.data[f]}});else if(u==="strict")n.length>0&&(oi(s,{code:On.unrecognized_keys,keys:n}),o.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let f of n){let d=s.data[f];c.push({key:{status:"valid",value:f},value:u._parse(new nC(s,d,s.path,f)),alwaysSet:f in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let u=[];for(let f of c){let d=await f.key,p=await f.value;u.push({key:d,value:p,alwaysSet:f.alwaysSet})}return u}).then(u=>i1.mergeObjectSync(o,u)):i1.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(e){return eo.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,o)=>{let s=this._def.errorMap?.(r,o).message??o.defaultError;return r.code==="unrecognized_keys"?{message:eo.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:cs.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};for(let o of Ac.objectKeys(e))e[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}omit(e){let r={};for(let o of Ac.objectKeys(this.shape))e[o]||(r[o]=this.shape[o]);return new t({...this._def,shape:()=>r})}deepPartial(){return Yie(this)}partial(e){let r={};for(let o of Ac.objectKeys(this.shape)){let s=this.shape[o];e&&!e[o]?r[o]=s:r[o]=s.optional()}return new t({...this._def,shape:()=>r})}required(e){let r={};for(let o of Ac.objectKeys(this.shape))if(e&&!e[o])r[o]=this.shape[o];else{let a=this.shape[o];for(;a instanceof rC;)a=a._def.innerType;r[o]=a}return new t({...this._def,shape:()=>r})}keyof(){return fwn(Ac.objectKeys(this.shape))}};ab.create=(t,e)=>new ab({shape:()=>t,unknownKeys:"strip",catchall:R6.create(),typeName:cs.ZodObject,...va(e)});ab.strictCreate=(t,e)=>new ab({shape:()=>t,unknownKeys:"strict",catchall:R6.create(),typeName:cs.ZodObject,...va(e)});ab.lazycreate=(t,e)=>new ab({shape:t,unknownKeys:"strip",catchall:R6.create(),typeName:cs.ZodObject,...va(e)});vj=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o=this._def.options;function s(a){for(let n of a)if(n.result.status==="valid")return n.result;for(let n of a)if(n.result.status==="dirty")return r.common.issues.push(...n.ctx.common.issues),n.result;let i=a.map(n=>new sb(n.ctx.common.issues));return oi(r,{code:On.invalid_union,unionErrors:i}),rs}if(r.common.async)return Promise.all(o.map(async a=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(s);{let a,i=[];for(let c of o){let u={...r,common:{...r.common,issues:[]},parent:null},f=c._parseSync({data:r.data,path:r.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!a&&(a={result:f,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;let n=i.map(c=>new sb(c));return oi(r,{code:On.invalid_union,unionErrors:n}),rs}}get options(){return this._def.options}};vj.create=(t,e)=>new vj({options:t,typeName:cs.ZodUnion,...va(e)});jO=t=>t instanceof Ej?jO(t.schema):t instanceof iC?jO(t.innerType()):t instanceof Sj?[t.value]:t instanceof _j?t.options:t instanceof xj?Ac.objectValues(t.enum):t instanceof Cj?jO(t._def.innerType):t instanceof yj?[void 0]:t instanceof Aj?[null]:t instanceof rC?[void 0,...jO(t.unwrap())]:t instanceof V8?[null,...jO(t.unwrap())]:t instanceof O3e||t instanceof wj?jO(t.unwrap()):t instanceof Tj?jO(t._def.innerType):[],BYe=class t extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==gi.object)return oi(r,{code:On.invalid_type,expected:gi.object,received:r.parsedType}),rs;let o=this.discriminator,s=r.data[o],a=this.optionsMap.get(s);return a?r.common.async?a._parseAsync({data:r.data,path:r.path,parent:r}):a._parseSync({data:r.data,path:r.path,parent:r}):(oi(r,{code:On.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),rs)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,o){let s=new Map;for(let a of r){let i=jO(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of i){if(s.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);s.set(n,a)}}return new t({typeName:cs.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:s,...va(o)})}};bj=class extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e),s=(a,i)=>{if(PYe(a)||PYe(i))return rs;let n=XFt(a.value,i.value);return n.valid?((kYe(a)||kYe(i))&&r.dirty(),{status:r.value,value:n.data}):(oi(o,{code:On.invalid_intersection_types}),rs)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};bj.create=(t,e,r)=>new bj({left:t,right:e,typeName:cs.ZodIntersection,...va(r)});H8=class t extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==gi.array)return oi(o,{code:On.invalid_type,expected:gi.array,received:o.parsedType}),rs;if(o.data.length<this._def.items.length)return oi(o,{code:On.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),rs;!this._def.rest&&o.data.length>this._def.items.length&&(oi(o,{code:On.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let a=[...o.data].map((i,n)=>{let c=this._def.items[n]||this._def.rest;return c?c._parse(new nC(o,i,o.path,n)):null}).filter(i=>!!i);return o.common.async?Promise.all(a).then(i=>i1.mergeArray(r,i)):i1.mergeArray(r,a)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};H8.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new H8({items:t,typeName:cs.ZodTuple,rest:null,...va(e)})};MYe=class t extends Ua{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==gi.object)return oi(o,{code:On.invalid_type,expected:gi.object,received:o.parsedType}),rs;let s=[],a=this._def.keyType,i=this._def.valueType;for(let n in o.data)s.push({key:a._parse(new nC(o,n,o.path,n)),value:i._parse(new nC(o,o.data[n],o.path,n)),alwaysSet:n in o.data});return o.common.async?i1.mergeObjectAsync(r,s):i1.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(e,r,o){return r instanceof Ua?new t({keyType:e,valueType:r,typeName:cs.ZodRecord,...va(o)}):new t({keyType:vL.create(),valueType:e,typeName:cs.ZodRecord,...va(r)})}},Zie=class extends Ua{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==gi.map)return oi(o,{code:On.invalid_type,expected:gi.map,received:o.parsedType}),rs;let s=this._def.keyType,a=this._def.valueType,i=[...o.data.entries()].map(([n,c],u)=>({key:s._parse(new nC(o,n,o.path,[u,"key"])),value:a._parse(new nC(o,c,o.path,[u,"value"]))}));if(o.common.async){let n=new Map;return Promise.resolve().then(async()=>{for(let c of i){let u=await c.key,f=await c.value;if(u.status==="aborted"||f.status==="aborted")return rs;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),n.set(u.value,f.value)}return{status:r.value,value:n}})}else{let n=new Map;for(let c of i){let u=c.key,f=c.value;if(u.status==="aborted"||f.status==="aborted")return rs;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),n.set(u.value,f.value)}return{status:r.value,value:n}}}};Zie.create=(t,e,r)=>new Zie({valueType:e,keyType:t,typeName:cs.ZodMap,...va(r)});eoe=class t extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.parsedType!==gi.set)return oi(o,{code:On.invalid_type,expected:gi.set,received:o.parsedType}),rs;let s=this._def;s.minSize!==null&&o.data.size<s.minSize.value&&(oi(o,{code:On.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&o.data.size>s.maxSize.value&&(oi(o,{code:On.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let a=this._def.valueType;function i(c){let u=new Set;for(let f of c){if(f.status==="aborted")return rs;f.status==="dirty"&&r.dirty(),u.add(f.value)}return{status:r.value,value:u}}let n=[...o.data.values()].map((c,u)=>a._parse(new nC(o,c,o.path,u)));return o.common.async?Promise.all(n).then(c=>i(c)):i(n)}min(e,r){return new t({...this._def,minSize:{value:e,message:eo.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:eo.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};eoe.create=(t,e)=>new eoe({valueType:t,minSize:null,maxSize:null,typeName:cs.ZodSet,...va(e)});LYe=class t extends Ua{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==gi.function)return oi(r,{code:On.invalid_type,expected:gi.function,received:r.parsedType}),rs;function o(n,c){return D3e({data:n,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,zie(),GO].filter(u=>!!u),issueData:{code:On.invalid_arguments,argumentsError:c}})}function s(n,c){return D3e({data:n,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,zie(),GO].filter(u=>!!u),issueData:{code:On.invalid_return_type,returnTypeError:c}})}let a={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof EL){let n=this;return Fy(async function(...c){let u=new sb([]),f=await n._def.args.parseAsync(c,a).catch(h=>{throw u.addIssue(o(c,h)),u}),d=await Reflect.apply(i,this,f);return await n._def.returns._def.type.parseAsync(d,a).catch(h=>{throw u.addIssue(s(d,h)),u})})}else{let n=this;return Fy(function(...c){let u=n._def.args.safeParse(c,a);if(!u.success)throw new sb([o(c,u.error)]);let f=Reflect.apply(i,this,u.data),d=n._def.returns.safeParse(f,a);if(!d.success)throw new sb([s(f,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:H8.create(e).rest($O.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,o){return new t({args:e||H8.create([]).rest($O.create()),returns:r||$O.create(),typeName:cs.ZodFunction,...va(o)})}},Ej=class extends Ua{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ej.create=(t,e)=>new Ej({getter:t,typeName:cs.ZodLazy,...va(e)});Sj=class extends Ua{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return oi(r,{received:r.data,code:On.invalid_literal,expected:this._def.value}),rs}return{status:"valid",value:e.data}}get value(){return this._def.value}};Sj.create=(t,e)=>new Sj({value:t,typeName:cs.ZodLiteral,...va(e)});_j=class t extends Ua{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),o=this._def.values;return oi(r,{expected:Ac.joinValues(o),received:r.parsedType,code:On.invalid_type}),rs}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let r=this._getOrReturnCtx(e),o=this._def.values;return oi(r,{received:r.data,code:On.invalid_enum_value,options:o}),rs}return Fy(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return t.create(e,{...this._def,...r})}exclude(e,r=this._def){return t.create(this.options.filter(o=>!e.includes(o)),{...this._def,...r})}};_j.create=fwn;xj=class extends Ua{_parse(e){let r=Ac.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(e);if(o.parsedType!==gi.string&&o.parsedType!==gi.number){let s=Ac.objectValues(r);return oi(o,{expected:Ac.joinValues(s),received:o.parsedType,code:On.invalid_type}),rs}if(this._cache||(this._cache=new Set(Ac.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let s=Ac.objectValues(r);return oi(o,{received:o.data,code:On.invalid_enum_value,options:s}),rs}return Fy(e.data)}get enum(){return this._def.values}};xj.create=(t,e)=>new xj({values:t,typeName:cs.ZodNativeEnum,...va(e)});EL=class extends Ua{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==gi.promise&&r.common.async===!1)return oi(r,{code:On.invalid_type,expected:gi.promise,received:r.parsedType}),rs;let o=r.parsedType===gi.promise?r.data:Promise.resolve(r.data);return Fy(o.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};EL.create=(t,e)=>new EL({type:t,typeName:cs.ZodPromise,...va(e)});iC=class extends Ua{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===cs.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:o}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{oi(o,i),i.fatal?r.abort():r.dirty()},get path(){return o.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){let i=s.transform(o.data,a);if(o.common.async)return Promise.resolve(i).then(async n=>{if(r.value==="aborted")return rs;let c=await this._def.schema._parseAsync({data:n,path:o.path,parent:o});return c.status==="aborted"?rs:c.status==="dirty"?dj(c.value):r.value==="dirty"?dj(c.value):c});{if(r.value==="aborted")return rs;let n=this._def.schema._parseSync({data:i,path:o.path,parent:o});return n.status==="aborted"?rs:n.status==="dirty"?dj(n.value):r.value==="dirty"?dj(n.value):n}}if(s.type==="refinement"){let i=n=>{let c=s.refinement(n,a);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return n};if(o.common.async===!1){let n=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?rs:(n.status==="dirty"&&r.dirty(),i(n.value),{status:r.value,value:n.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(n=>n.status==="aborted"?rs:(n.status==="dirty"&&r.dirty(),i(n.value).then(()=>({status:r.value,value:n.value}))))}if(s.type==="transform")if(o.common.async===!1){let i=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!AL(i))return rs;let n=s.transform(i.value,a);if(n instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:n}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(i=>AL(i)?Promise.resolve(s.transform(i.value,a)).then(n=>({status:r.value,value:n})):rs);Ac.assertNever(s)}};iC.create=(t,e,r)=>new iC({schema:t,typeName:cs.ZodEffects,effect:e,...va(r)});iC.createWithPreprocess=(t,e,r)=>new iC({schema:e,effect:{type:"preprocess",transform:t},typeName:cs.ZodEffects,...va(r)});rC=class extends Ua{_parse(e){return this._getType(e)===gi.undefined?Fy(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};rC.create=(t,e)=>new rC({innerType:t,typeName:cs.ZodOptional,...va(e)});V8=class extends Ua{_parse(e){return this._getType(e)===gi.null?Fy(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};V8.create=(t,e)=>new V8({innerType:t,typeName:cs.ZodNullable,...va(e)});Cj=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return r.parsedType===gi.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Cj.create=(t,e)=>new Cj({innerType:t,typeName:cs.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...va(e)});Tj=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return Kie(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new sb(o.common.issues)},input:o.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new sb(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};Tj.create=(t,e)=>new Tj({innerType:t,typeName:cs.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...va(e)});toe=class extends Ua{_parse(e){if(this._getType(e)!==gi.nan){let o=this._getOrReturnCtx(e);return oi(o,{code:On.invalid_type,expected:gi.nan,received:o.parsedType}),rs}return{status:"valid",value:e.data}}};toe.create=t=>new toe({typeName:cs.ZodNaN,...va(t)});N5s=Symbol("zod_brand"),O3e=class extends Ua{_parse(e){let{ctx:r}=this._processInputParams(e),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},R3e=class t extends Ua{_parse(e){let{status:r,ctx:o}=this._processInputParams(e);if(o.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return a.status==="aborted"?rs:a.status==="dirty"?(r.dirty(),dj(a.value)):this._def.out._parseAsync({data:a.value,path:o.path,parent:o})})();{let s=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?rs:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:o.path,parent:o})}}static create(e,r){return new t({in:e,out:r,typeName:cs.ZodPipeline})}},wj=class extends Ua{_parse(e){let r=this._def.innerType._parse(e),o=s=>(AL(s)&&(s.value=Object.freeze(s.value)),s);return Kie(r)?r.then(s=>o(s)):o(r)}unwrap(){return this._def.innerType}};wj.create=(t,e)=>new wj({innerType:t,typeName:cs.ZodReadonly,...va(e)});P5s={object:ab.lazycreate};(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(cs||(cs={}));k5s=(t,e={message:`Input not instance of ${t.name}`})=>dwn(r=>r instanceof t,e),pwn=vL.create,hwn=pj.create,B5s=toe.create,M5s=hj.create,mwn=mj.create,L5s=gj.create,U5s=Jie.create,F5s=yj.create,Q5s=Aj.create,q5s=bL.create,H5s=$O.create,V5s=R6.create,G5s=Xie.create,j5s=WO.create,$5s=ab.create,W5s=ab.strictCreate,z5s=vj.create,K5s=BYe.create,Y5s=bj.create,J5s=H8.create,X5s=MYe.create,Z5s=Zie.create,eIs=eoe.create,tIs=LYe.create,rIs=Ej.create,nIs=Sj.create,iIs=_j.create,oIs=xj.create,sIs=EL.create,aIs=iC.create,cIs=rC.create,lIs=V8.create,uIs=iC.createWithPreprocess,fIs=R3e.create,dIs=()=>pwn().optional(),pIs=()=>hwn().optional(),hIs=()=>mwn().optional(),mIs={string:(t=>vL.create({...t,coerce:!0})),number:(t=>pj.create({...t,coerce:!0})),boolean:(t=>mj.create({...t,coerce:!0})),bigint:(t=>hj.create({...t,coerce:!0})),date:(t=>gj.create({...t,coerce:!0}))},gIs=rs});var re={};os(re,{BRAND:()=>N5s,DIRTY:()=>dj,EMPTY_PATH:()=>u5s,INVALID:()=>rs,NEVER:()=>gIs,OK:()=>Fy,ParseStatus:()=>i1,Schema:()=>Ua,ZodAny:()=>bL,ZodArray:()=>WO,ZodBigInt:()=>hj,ZodBoolean:()=>mj,ZodBranded:()=>O3e,ZodCatch:()=>Tj,ZodDate:()=>gj,ZodDefault:()=>Cj,ZodDiscriminatedUnion:()=>BYe,ZodEffects:()=>iC,ZodEnum:()=>_j,ZodError:()=>sb,ZodFirstPartyTypeKind:()=>cs,ZodFunction:()=>LYe,ZodIntersection:()=>bj,ZodIssueCode:()=>On,ZodLazy:()=>Ej,ZodLiteral:()=>Sj,ZodMap:()=>Zie,ZodNaN:()=>toe,ZodNativeEnum:()=>xj,ZodNever:()=>R6,ZodNull:()=>Aj,ZodNullable:()=>V8,ZodNumber:()=>pj,ZodObject:()=>ab,ZodOptional:()=>rC,ZodParsedType:()=>gi,ZodPipeline:()=>R3e,ZodPromise:()=>EL,ZodReadonly:()=>wj,ZodRecord:()=>MYe,ZodSchema:()=>Ua,ZodSet:()=>eoe,ZodString:()=>vL,ZodSymbol:()=>Jie,ZodTransformer:()=>iC,ZodTuple:()=>H8,ZodType:()=>Ua,ZodUndefined:()=>yj,ZodUnion:()=>vj,ZodUnknown:()=>$O,ZodVoid:()=>Xie,addIssueToContext:()=>oi,any:()=>q5s,array:()=>j5s,bigint:()=>M5s,boolean:()=>mwn,coerce:()=>mIs,custom:()=>dwn,date:()=>L5s,datetimeRegex:()=>uwn,defaultErrorMap:()=>GO,discriminatedUnion:()=>K5s,effect:()=>aIs,enum:()=>iIs,function:()=>tIs,getErrorMap:()=>zie,getParsedType:()=>q8,instanceof:()=>k5s,intersection:()=>Y5s,isAborted:()=>PYe,isAsync:()=>Kie,isDirty:()=>kYe,isValid:()=>AL,late:()=>P5s,lazy:()=>rIs,literal:()=>nIs,makeIssue:()=>D3e,map:()=>Z5s,nan:()=>B5s,nativeEnum:()=>oIs,never:()=>V5s,null:()=>Q5s,nullable:()=>lIs,number:()=>hwn,object:()=>$5s,objectUtil:()=>zFt,oboolean:()=>hIs,onumber:()=>pIs,optional:()=>cIs,ostring:()=>dIs,pipeline:()=>fIs,preprocess:()=>uIs,promise:()=>sIs,quotelessJson:()=>a5s,record:()=>X5s,set:()=>eIs,setErrorMap:()=>l5s,strictObject:()=>W5s,string:()=>pwn,symbol:()=>U5s,transformer:()=>aIs,tuple:()=>J5s,undefined:()=>F5s,union:()=>z5s,unknown:()=>H5s,util:()=>Ac,void:()=>G5s});var ZFt=G(()=>{NYe();YFt();iwn();I3e();gwn();RYe()});var SL=G(()=>{ZFt();ZFt()});var roe,ywn,UYe,Awn,vwn,yIs,aC,cb,N3e,G8,cC,FYe,bwn,QYe,Ewn,Swn,_wn,P3e,oC,xwn,Cwn,_L,Ij,qYe,k3e,Twn,AIs,vIs,bIs,eQt,wwn,Iwn,HYe,EIs,VYe,GYe,jYe,Dwn,Own,tQt,Rwn,Nwn,SIs,_Is,rQt,xIs,nQt,CIs,iQt,TIs,wIs,IIs,DIs,OIs,RIs,NIs,B3e,PIs,oQt,sQt,aQt,kIs,BIs,Pwn,MIs,M3e,LIs,UIs,FIs,QIs,cQt,$Ye,pAl,qIs,HIs,kwn,VIs,GIs,jIs,$Is,WIs,zIs,KIs,YIs,JIs,XIs,ZIs,e8s,t8s,r8s,n8s,i8s,o8s,lQt,s8s,WYe,a8s,c8s,hAl,mAl,gAl,yAl,AAl,vAl,sC,xL=G(()=>{SL();roe="2025-06-18",ywn=[roe,"2025-03-26","2024-11-05","2024-10-07"],UYe="2.0",Awn=re.union([re.string(),re.number().int()]),vwn=re.string(),yIs=re.object({progressToken:re.optional(Awn)}).passthrough(),aC=re.object({_meta:re.optional(yIs)}).passthrough(),cb=re.object({method:re.string(),params:re.optional(aC)}),N3e=re.object({_meta:re.optional(re.object({}).passthrough())}).passthrough(),G8=re.object({method:re.string(),params:re.optional(N3e)}),cC=re.object({_meta:re.optional(re.object({}).passthrough())}).passthrough(),FYe=re.union([re.string(),re.number().int()]),bwn=re.object({jsonrpc:re.literal(UYe),id:FYe}).merge(cb).strict(),QYe=t=>bwn.safeParse(t).success,Ewn=re.object({jsonrpc:re.literal(UYe)}).merge(G8).strict(),Swn=t=>Ewn.safeParse(t).success,_wn=re.object({jsonrpc:re.literal(UYe),id:FYe,result:cC}).strict(),P3e=t=>_wn.safeParse(t).success;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError"})(oC||(oC={}));xwn=re.object({jsonrpc:re.literal(UYe),id:FYe,error:re.object({code:re.number().int(),message:re.string(),data:re.optional(re.unknown())})}).strict(),Cwn=t=>xwn.safeParse(t).success,_L=re.union([bwn,Ewn,_wn,xwn]),Ij=cC.strict(),qYe=G8.extend({method:re.literal("notifications/cancelled"),params:N3e.extend({requestId:FYe,reason:re.string().optional()})}),k3e=re.object({name:re.string(),title:re.optional(re.string())}).passthrough(),Twn=k3e.extend({version:re.string()}),AIs=re.object({experimental:re.optional(re.object({}).passthrough()),sampling:re.optional(re.object({}).passthrough()),elicitation:re.optional(re.object({}).passthrough()),roots:re.optional(re.object({listChanged:re.optional(re.boolean())}).passthrough())}).passthrough(),vIs=cb.extend({method:re.literal("initialize"),params:aC.extend({protocolVersion:re.string(),capabilities:AIs,clientInfo:Twn})}),bIs=re.object({experimental:re.optional(re.object({}).passthrough()),logging:re.optional(re.object({}).passthrough()),completions:re.optional(re.object({}).passthrough()),prompts:re.optional(re.object({listChanged:re.optional(re.boolean())}).passthrough()),resources:re.optional(re.object({subscribe:re.optional(re.boolean()),listChanged:re.optional(re.boolean())}).passthrough()),tools:re.optional(re.object({listChanged:re.optional(re.boolean())}).passthrough())}).passthrough(),eQt=cC.extend({protocolVersion:re.string(),capabilities:bIs,serverInfo:Twn,instructions:re.optional(re.string())}),wwn=G8.extend({method:re.literal("notifications/initialized")}),Iwn=t=>wwn.safeParse(t).success,HYe=cb.extend({method:re.literal("ping")}),EIs=re.object({progress:re.number(),total:re.optional(re.number()),message:re.optional(re.string())}).passthrough(),VYe=G8.extend({method:re.literal("notifications/progress"),params:N3e.merge(EIs).extend({progressToken:Awn})}),GYe=cb.extend({params:aC.extend({cursor:re.optional(vwn)}).optional()}),jYe=cC.extend({nextCursor:re.optional(vwn)}),Dwn=re.object({uri:re.string(),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}).passthrough(),Own=Dwn.extend({text:re.string()}),tQt=re.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),Rwn=Dwn.extend({blob:tQt}),Nwn=k3e.extend({uri:re.string(),description:re.optional(re.string()),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}),SIs=k3e.extend({uriTemplate:re.string(),description:re.optional(re.string()),mimeType:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}),_Is=GYe.extend({method:re.literal("resources/list")}),rQt=jYe.extend({resources:re.array(Nwn)}),xIs=GYe.extend({method:re.literal("resources/templates/list")}),nQt=jYe.extend({resourceTemplates:re.array(SIs)}),CIs=cb.extend({method:re.literal("resources/read"),params:aC.extend({uri:re.string()})}),iQt=cC.extend({contents:re.array(re.union([Own,Rwn]))}),TIs=G8.extend({method:re.literal("notifications/resources/list_changed")}),wIs=cb.extend({method:re.literal("resources/subscribe"),params:aC.extend({uri:re.string()})}),IIs=cb.extend({method:re.literal("resources/unsubscribe"),params:aC.extend({uri:re.string()})}),DIs=G8.extend({method:re.literal("notifications/resources/updated"),params:N3e.extend({uri:re.string()})}),OIs=re.object({name:re.string(),description:re.optional(re.string()),required:re.optional(re.boolean())}).passthrough(),RIs=k3e.extend({description:re.optional(re.string()),arguments:re.optional(re.array(OIs)),_meta:re.optional(re.object({}).passthrough())}),NIs=GYe.extend({method:re.literal("prompts/list")}),B3e=jYe.extend({prompts:re.array(RIs)}),PIs=cb.extend({method:re.literal("prompts/get"),params:aC.extend({name:re.string(),arguments:re.optional(re.record(re.string()))})}),oQt=re.object({type:re.literal("text"),text:re.string(),_meta:re.optional(re.object({}).passthrough())}).passthrough(),sQt=re.object({type:re.literal("image"),data:tQt,mimeType:re.string(),_meta:re.optional(re.object({}).passthrough())}).passthrough(),aQt=re.object({type:re.literal("audio"),data:tQt,mimeType:re.string(),_meta:re.optional(re.object({}).passthrough())}).passthrough(),kIs=re.object({type:re.literal("resource"),resource:re.union([Own,Rwn]),_meta:re.optional(re.object({}).passthrough())}).passthrough(),BIs=Nwn.extend({type:re.literal("resource_link")}),Pwn=re.union([oQt,sQt,aQt,BIs,kIs]),MIs=re.object({role:re.enum(["user","assistant"]),content:Pwn}).passthrough(),M3e=cC.extend({description:re.optional(re.string()),messages:re.array(MIs)}),LIs=G8.extend({method:re.literal("notifications/prompts/list_changed")}),UIs=re.object({title:re.optional(re.string()),readOnlyHint:re.optional(re.boolean()),destructiveHint:re.optional(re.boolean()),idempotentHint:re.optional(re.boolean()),openWorldHint:re.optional(re.boolean())}).passthrough(),FIs=k3e.extend({description:re.optional(re.string()),inputSchema:re.object({type:re.literal("object"),properties:re.optional(re.object({}).passthrough()),required:re.optional(re.array(re.string()))}).passthrough(),outputSchema:re.optional(re.object({type:re.literal("object"),properties:re.optional(re.object({}).passthrough()),required:re.optional(re.array(re.string()))}).passthrough()),annotations:re.optional(UIs),_meta:re.optional(re.object({}).passthrough())}),QIs=GYe.extend({method:re.literal("tools/list")}),cQt=jYe.extend({tools:re.array(FIs)}),$Ye=cC.extend({content:re.array(Pwn).default([]),structuredContent:re.object({}).passthrough().optional(),isError:re.optional(re.boolean())}),pAl=$Ye.or(cC.extend({toolResult:re.unknown()})),qIs=cb.extend({method:re.literal("tools/call"),params:aC.extend({name:re.string(),arguments:re.optional(re.record(re.unknown()))})}),HIs=G8.extend({method:re.literal("notifications/tools/list_changed")}),kwn=re.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),VIs=cb.extend({method:re.literal("logging/setLevel"),params:aC.extend({level:kwn})}),GIs=G8.extend({method:re.literal("notifications/message"),params:N3e.extend({level:kwn,logger:re.optional(re.string()),data:re.unknown()})}),jIs=re.object({name:re.string().optional()}).passthrough(),$Is=re.object({hints:re.optional(re.array(jIs)),costPriority:re.optional(re.number().min(0).max(1)),speedPriority:re.optional(re.number().min(0).max(1)),intelligencePriority:re.optional(re.number().min(0).max(1))}).passthrough(),WIs=re.object({role:re.enum(["user","assistant"]),content:re.union([oQt,sQt,aQt])}).passthrough(),zIs=cb.extend({method:re.literal("sampling/createMessage"),params:aC.extend({messages:re.array(WIs),systemPrompt:re.optional(re.string()),includeContext:re.optional(re.enum(["none","thisServer","allServers"])),temperature:re.optional(re.number()),maxTokens:re.number().int(),stopSequences:re.optional(re.array(re.string())),metadata:re.optional(re.object({}).passthrough()),modelPreferences:re.optional($Is)})}),KIs=cC.extend({model:re.string(),stopReason:re.optional(re.enum(["endTurn","stopSequence","maxTokens"]).or(re.string())),role:re.enum(["user","assistant"]),content:re.discriminatedUnion("type",[oQt,sQt,aQt])}),YIs=re.object({type:re.literal("boolean"),title:re.optional(re.string()),description:re.optional(re.string()),default:re.optional(re.boolean())}).passthrough(),JIs=re.object({type:re.literal("string"),title:re.optional(re.string()),description:re.optional(re.string()),minLength:re.optional(re.number()),maxLength:re.optional(re.number()),format:re.optional(re.enum(["email","uri","date","date-time"]))}).passthrough(),XIs=re.object({type:re.enum(["number","integer"]),title:re.optional(re.string()),description:re.optional(re.string()),minimum:re.optional(re.number()),maximum:re.optional(re.number())}).passthrough(),ZIs=re.object({type:re.literal("string"),title:re.optional(re.string()),description:re.optional(re.string()),enum:re.array(re.string()),enumNames:re.optional(re.array(re.string()))}).passthrough(),e8s=re.union([YIs,JIs,XIs,ZIs]),t8s=cb.extend({method:re.literal("elicitation/create"),params:aC.extend({message:re.string(),requestedSchema:re.object({type:re.literal("object"),properties:re.record(re.string(),e8s),required:re.optional(re.array(re.string()))}).passthrough()})}),r8s=cC.extend({action:re.enum(["accept","decline","cancel"]),content:re.optional(re.record(re.string(),re.unknown()))}),n8s=re.object({type:re.literal("ref/resource"),uri:re.string()}).passthrough(),i8s=re.object({type:re.literal("ref/prompt"),name:re.string()}).passthrough(),o8s=cb.extend({method:re.literal("completion/complete"),params:aC.extend({ref:re.union([i8s,n8s]),argument:re.object({name:re.string(),value:re.string()}).passthrough(),context:re.optional(re.object({arguments:re.optional(re.record(re.string(),re.string()))}))})}),lQt=cC.extend({completion:re.object({values:re.array(re.string()).max(100),total:re.optional(re.number().int()),hasMore:re.optional(re.boolean())}).passthrough()}),s8s=re.object({uri:re.string().startsWith("file://"),name:re.optional(re.string()),_meta:re.optional(re.object({}).passthrough())}).passthrough(),WYe=cb.extend({method:re.literal("roots/list")}),a8s=cC.extend({roots:re.array(s8s)}),c8s=G8.extend({method:re.literal("notifications/roots/list_changed")}),hAl=re.union([HYe,vIs,o8s,VIs,PIs,NIs,_Is,xIs,CIs,wIs,IIs,qIs,QIs]),mAl=re.union([qYe,VYe,wwn,c8s]),gAl=re.union([Ij,KIs,r8s,a8s]),yAl=re.union([HYe,zIs,t8s,WYe]),AAl=re.union([qYe,VYe,GIs,DIs,TIs,HIs,LIs]),vAl=re.union([Ij,eQt,lQt,M3e,B3e,rQt,nQt,iQt,$Ye,cQt]),sC=class extends Error{constructor(e,r,o){super(`MCP error ${e}: ${r}`),this.code=e,this.data=o,this.name="McpError"}}});function Bwn(t,e){return Object.entries(e).reduce((r,[o,s])=>(s&&typeof s=="object"?r[o]=r[o]?{...r[o],...s}:s:r[o]=s,r),{...t})}var l8s,zYe,Mwn=G(()=>{xL();l8s=6e4,zYe=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(qYe,r=>{let o=this._requestHandlerAbortControllers.get(r.params.requestId);o?.abort(r.params.reason)}),this.setNotificationHandler(VYe,r=>{this._onprogress(r)}),this.setRequestHandler(HYe,r=>({}))}_setupTimeout(e,r,o,s,a=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(s,r),startTime:Date.now(),timeout:r,maxTotalTimeout:o,resetTimeoutOnProgress:a,onTimeout:s})}_resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let o=Date.now()-r.startTime;if(r.maxTotalTimeout&&o>=r.maxTotalTimeout)throw this._timeoutInfo.delete(e),new sC(oC.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:o});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(e))}async connect(e){var r,o,s;this._transport=e;let a=(r=this.transport)===null||r===void 0?void 0:r.onclose;this._transport.onclose=()=>{a?.(),this._onclose()};let i=(o=this.transport)===null||o===void 0?void 0:o.onerror;this._transport.onerror=c=>{i?.(c),this._onerror(c)};let n=(s=this._transport)===null||s===void 0?void 0:s.onmessage;this._transport.onmessage=(c,u)=>{n?.(c,u),P3e(c)||Cwn(c)?this._onresponse(c):QYe(c)?this._onrequest(c,u):Swn(c)?this._onnotification(c):this._onerror(new Error(`Unknown message type: ${JSON.stringify(c)}`))},await this._transport.start()}_onclose(){var e;let r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(e=this.onclose)===null||e===void 0||e.call(this);let o=new sC(oC.ConnectionClosed,"Connection closed");for(let s of r.values())s(o)}_onerror(e){var r;(r=this.onerror)===null||r===void 0||r.call(this,e)}_onnotification(e){var r;let o=(r=this._notificationHandlers.get(e.method))!==null&&r!==void 0?r:this.fallbackNotificationHandler;o!==void 0&&Promise.resolve().then(()=>o(e)).catch(s=>this._onerror(new Error(`Uncaught error in notification handler: ${s}`)))}_onrequest(e,r){var o,s;let a=(o=this._requestHandlers.get(e.method))!==null&&o!==void 0?o:this.fallbackRequestHandler,i=this._transport;if(a===void 0){i?.send({jsonrpc:"2.0",id:e.id,error:{code:oC.MethodNotFound,message:"Method not found"}}).catch(u=>this._onerror(new Error(`Failed to send an error response: ${u}`)));return}let n=new AbortController;this._requestHandlerAbortControllers.set(e.id,n);let c={signal:n.signal,sessionId:i?.sessionId,_meta:(s=e.params)===null||s===void 0?void 0:s._meta,sendNotification:u=>this.notification(u,{relatedRequestId:e.id}),sendRequest:(u,f,d)=>this.request(u,f,{...d,relatedRequestId:e.id}),authInfo:r?.authInfo,requestId:e.id,requestInfo:r?.requestInfo};Promise.resolve().then(()=>a(e,c)).then(u=>{if(!n.signal.aborted)return i?.send({result:u,jsonrpc:"2.0",id:e.id})},u=>{var f;if(!n.signal.aborted)return i?.send({jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(u.code)?u.code:oC.InternalError,message:(f=u.message)!==null&&f!==void 0?f:"Internal error"}})}).catch(u=>this._onerror(new Error(`Failed to send response: ${u}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:r,...o}=e.params,s=Number(r),a=this._progressHandlers.get(s);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let i=this._responseHandlers.get(s),n=this._timeoutInfo.get(s);if(n&&i&&n.resetTimeoutOnProgress)try{this._resetTimeout(s)}catch(c){i(c);return}a(o)}_onresponse(e){let r=Number(e.id),o=this._responseHandlers.get(r);if(o===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}if(this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),P3e(e))o(e);else{let s=new sC(e.error.code,e.error.message,e.error.data);o(s)}}get transport(){return this._transport}async close(){var e;await((e=this._transport)===null||e===void 0?void 0:e.close())}request(e,r,o){let{relatedRequestId:s,resumptionToken:a,onresumptiontoken:i}=o??{};return new Promise((n,c)=>{var u,f,d,p,h,m;if(!this._transport){c(new Error("Not connected"));return}((u=this._options)===null||u===void 0?void 0:u.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(e.method),(f=o?.signal)===null||f===void 0||f.throwIfAborted();let y=this._requestMessageId++,g={...e,jsonrpc:"2.0",id:y};o?.onprogress&&(this._progressHandlers.set(y,o.onprogress),g.params={...e.params,_meta:{...((d=e.params)===null||d===void 0?void 0:d._meta)||{},progressToken:y}});let A=x=>{var T;this._responseHandlers.delete(y),this._progressHandlers.delete(y),this._cleanupTimeout(y),(T=this._transport)===null||T===void 0||T.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:y,reason:String(x)}},{relatedRequestId:s,resumptionToken:a,onresumptiontoken:i}).catch(D=>this._onerror(new Error(`Failed to send cancellation: ${D}`))),c(x)};this._responseHandlers.set(y,x=>{var T;if(!(!((T=o?.signal)===null||T===void 0)&&T.aborted)){if(x instanceof Error)return c(x);try{let D=r.parse(x.result);n(D)}catch(D){c(D)}}}),(p=o?.signal)===null||p===void 0||p.addEventListener("abort",()=>{var x;A((x=o?.signal)===null||x===void 0?void 0:x.reason)});let v=(h=o?.timeout)!==null&&h!==void 0?h:l8s,b=()=>A(new sC(oC.RequestTimeout,"Request timed out",{timeout:v}));this._setupTimeout(y,v,o?.maxTotalTimeout,b,(m=o?.resetTimeoutOnProgress)!==null&&m!==void 0?m:!1),this._transport.send(g,{relatedRequestId:s,resumptionToken:a,onresumptiontoken:i}).catch(x=>{this._cleanupTimeout(y),c(x)})})}async notification(e,r){var o,s;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(e.method),((s=(o=this._options)===null||o===void 0?void 0:o.debouncedNotificationMethods)!==null&&s!==void 0?s:[]).includes(e.method)&&!e.params&&!r?.relatedRequestId){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{var c;if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let u={...e,jsonrpc:"2.0"};(c=this._transport)===null||c===void 0||c.send(u,r).catch(f=>this._onerror(f))});return}let n={...e,jsonrpc:"2.0"};await this._transport.send(n,r)}setRequestHandler(e,r){let o=e.shape.method.value;this.assertRequestHandlerCapability(o),this._requestHandlers.set(o,(s,a)=>Promise.resolve(r(e.parse(s),a)))}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,r){this._notificationHandlers.set(e.shape.method.value,o=>Promise.resolve(r(e.parse(o))))}removeNotificationHandler(e){this._notificationHandlers.delete(e)}}});var Uwn=E((KYe,Lwn)=>{(function(t,e){typeof KYe=="object"&&typeof Lwn<"u"?e(KYe):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(KYe,(function(t){"use strict";function e(){for(var wt=arguments.length,pt=Array(wt),Ot=0;Ot<wt;Ot++)pt[Ot]=arguments[Ot];if(pt.length>1){pt[0]=pt[0].slice(0,-1);for(var Ht=pt.length-1,jt=1;jt<Ht;++jt)pt[jt]=pt[jt].slice(1,-1);return pt[Ht]=pt[Ht].slice(1),pt.join("")}else return pt[0]}function r(wt){return"(?:"+wt+")"}function o(wt){return wt===void 0?"undefined":wt===null?"null":Object.prototype.toString.call(wt).split(" ").pop().split("]").shift().toLowerCase()}function s(wt){return wt.toUpperCase()}function a(wt){return wt!=null?wt instanceof Array?wt:typeof wt.length!="number"||wt.split||wt.setInterval||wt.call?[wt]:Array.prototype.slice.call(wt):[]}function i(wt,pt){var Ot=wt;if(pt)for(var Ht in pt)Ot[Ht]=pt[Ht];return Ot}function n(wt){var pt="[A-Za-z]",Ot="[\\x0D]",Ht="[0-9]",jt="[\\x22]",Hr=e(Ht,"[A-Fa-f]"),Nn="[\\x0A]",Xn="[\\x20]",Ui=r(r("%[EFef]"+Hr+"%"+Hr+Hr+"%"+Hr+Hr)+"|"+r("%[89A-Fa-f]"+Hr+"%"+Hr+Hr)+"|"+r("%"+Hr+Hr)),io="[\\:\\/\\?\\#\\[\\]\\@]",To="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Ss=e(io,To),ds=wt?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ki=wt?"[\\uE000-\\uF8FF]":"[]",ts=e(pt,Ht,"[\\-\\.\\_\\~]",ds),Oa=r(pt+e(pt,Ht,"[\\+\\-\\.]")+"*"),js=r(r(Ui+"|"+e(ts,To,"[\\:]"))+"*"),ef=r(r("25[0-5]")+"|"+r("2[0-4]"+Ht)+"|"+r("1"+Ht+Ht)+"|"+r("[1-9]"+Ht)+"|"+Ht),Fl=r(r("25[0-5]")+"|"+r("2[0-4]"+Ht)+"|"+r("1"+Ht+Ht)+"|"+r("0?[1-9]"+Ht)+"|0?0?"+Ht),tf=r(Fl+"\\."+Fl+"\\."+Fl+"\\."+Fl),$s=r(Hr+"{1,4}"),fd=r(r($s+"\\:"+$s)+"|"+tf),$a=r(r($s+"\\:")+"{6}"+fd),ps=r("\\:\\:"+r($s+"\\:")+"{5}"+fd),Gp=r(r($s)+"?\\:\\:"+r($s+"\\:")+"{4}"+fd),dd=r(r(r($s+"\\:")+"{0,1}"+$s)+"?\\:\\:"+r($s+"\\:")+"{3}"+fd),Th=r(r(r($s+"\\:")+"{0,2}"+$s)+"?\\:\\:"+r($s+"\\:")+"{2}"+fd),wh=r(r(r($s+"\\:")+"{0,3}"+$s)+"?\\:\\:"+$s+"\\:"+fd),Ql=r(r(r($s+"\\:")+"{0,4}"+$s)+"?\\:\\:"+fd),Hc=r(r(r($s+"\\:")+"{0,5}"+$s)+"?\\:\\:"+$s),pd=r(r(r($s+"\\:")+"{0,6}"+$s)+"?\\:\\:"),ot=r([$a,ps,Gp,dd,Th,wh,Ql,Hc,pd].join("|")),at=r(r(ts+"|"+Ui)+"+"),Bt=r(ot+"\\%25"+at),Vt=r(ot+r("\\%25|\\%(?!"+Hr+"{2})")+at),ir=r("[vV]"+Hr+"+\\."+e(ts,To,"[\\:]")+"+"),Tr=r("\\["+r(Vt+"|"+ot+"|"+ir)+"\\]"),Yr=r(r(Ui+"|"+e(ts,To))+"*"),qr=r(Tr+"|"+tf+"(?!"+Yr+")|"+Yr),Dn=r(Ht+"*"),Cn=r(r(js+"@")+"?"+qr+r("\\:"+Dn)+"?"),Fn=r(Ui+"|"+e(ts,To,"[\\:\\@]")),ro=r(Fn+"*"),Ws=r(Fn+"+"),Vc=r(r(Ui+"|"+e(ts,To,"[\\@]"))+"+"),Mo=r(r("\\/"+ro)+"*"),vu=r("\\/"+r(Ws+Mo)+"?"),Sl=r(Vc+Mo),Ym=r(Ws+Mo),Pu="(?!"+Fn+")",VA=r(Mo+"|"+vu+"|"+Sl+"|"+Ym+"|"+Pu),Ug=r(r(Fn+"|"+e("[\\/\\?]",Ki))+"*"),P2=r(r(Fn+"|[\\/\\?]")+"*"),GA=r(r("\\/\\/"+Cn+Mo)+"|"+vu+"|"+Ym+"|"+Pu),mE=r(Oa+"\\:"+GA+r("\\?"+Ug)+"?"+r("\\#"+P2)+"?"),q1=r(r("\\/\\/"+Cn+Mo)+"|"+vu+"|"+Sl+"|"+Pu),hd=r(q1+r("\\?"+Ug)+"?"+r("\\#"+P2)+"?"),dv=r(mE+"|"+hd),k2=r(Oa+"\\:"+GA+r("\\?"+Ug)+"?"),jA="^("+Oa+")\\:"+r(r("\\/\\/("+r("("+js+")@")+"?("+qr+")"+r("\\:("+Dn+")")+"?)")+"?("+Mo+"|"+vu+"|"+Ym+"|"+Pu+")")+r("\\?("+Ug+")")+"?"+r("\\#("+P2+")")+"?$",pv="^(){0}"+r(r("\\/\\/("+r("("+js+")@")+"?("+qr+")"+r("\\:("+Dn+")")+"?)")+"?("+Mo+"|"+vu+"|"+Sl+"|"+Pu+")")+r("\\?("+Ug+")")+"?"+r("\\#("+P2+")")+"?$",hv="^("+Oa+")\\:"+r(r("\\/\\/("+r("("+js+")@")+"?("+qr+")"+r("\\:("+Dn+")")+"?)")+"?("+Mo+"|"+vu+"|"+Ym+"|"+Pu+")")+r("\\?("+Ug+")")+"?$",jp="^"+r("\\#("+P2+")")+"?$",t5="^"+r("("+js+")@")+"?("+qr+")"+r("\\:("+Dn+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",pt,Ht,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",ts,To),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",ts,To),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",ts,To),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",ts,To),"g"),NOT_QUERY:new RegExp(e("[^\\%]",ts,To,"[\\:\\@\\/\\?]",Ki),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",ts,To,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",ts,To),"g"),UNRESERVED:new RegExp(ts,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",ts,Ss),"g"),PCT_ENCODED:new RegExp(Ui,"g"),IPV4ADDRESS:new RegExp("^("+tf+")$"),IPV6ADDRESS:new RegExp("^\\[?("+ot+")"+r(r("\\%25|\\%(?!"+Hr+"{2})")+"("+at+")")+"?\\]?$")}}var c=n(!1),u=n(!0),f=(function(){function wt(pt,Ot){var Ht=[],jt=!0,Hr=!1,Nn=void 0;try{for(var Xn=pt[Symbol.iterator](),Ui;!(jt=(Ui=Xn.next()).done)&&(Ht.push(Ui.value),!(Ot&&Ht.length===Ot));jt=!0);}catch(io){Hr=!0,Nn=io}finally{try{!jt&&Xn.return&&Xn.return()}finally{if(Hr)throw Nn}}return Ht}return function(pt,Ot){if(Array.isArray(pt))return pt;if(Symbol.iterator in Object(pt))return wt(pt,Ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),d=function(wt){if(Array.isArray(wt)){for(var pt=0,Ot=Array(wt.length);pt<wt.length;pt++)Ot[pt]=wt[pt];return Ot}else return Array.from(wt)},p=2147483647,h=36,m=1,y=26,g=38,A=700,v=72,b=128,x="-",T=/^xn--/,D=/[^\0-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=h-m,N=Math.floor,O=String.fromCharCode;function M(wt){throw new RangeError(k[wt])}function B(wt,pt){for(var Ot=[],Ht=wt.length;Ht--;)Ot[Ht]=pt(wt[Ht]);return Ot}function P(wt,pt){var Ot=wt.split("@"),Ht="";Ot.length>1&&(Ht=Ot[0]+"@",wt=Ot[1]),wt=wt.replace(I,".");var jt=wt.split("."),Hr=B(jt,pt).join(".");return Ht+Hr}function q(wt){for(var pt=[],Ot=0,Ht=wt.length;Ot<Ht;){var jt=wt.charCodeAt(Ot++);if(jt>=55296&&jt<=56319&&Ot<Ht){var Hr=wt.charCodeAt(Ot++);(Hr&64512)==56320?pt.push(((jt&1023)<<10)+(Hr&1023)+65536):(pt.push(jt),Ot--)}else pt.push(jt)}return pt}var F=function(pt){return String.fromCodePoint.apply(String,d(pt))},j=function(pt){return pt-48<10?pt-22:pt-65<26?pt-65:pt-97<26?pt-97:h},H=function(pt,Ot){return pt+22+75*(pt<26)-((Ot!=0)<<5)},U=function(pt,Ot,Ht){var jt=0;for(pt=Ht?N(pt/A):pt>>1,pt+=N(pt/Ot);pt>w*y>>1;jt+=h)pt=N(pt/w);return N(jt+(w+1)*pt/(pt+g))},$=function(pt){var Ot=[],Ht=pt.length,jt=0,Hr=b,Nn=v,Xn=pt.lastIndexOf(x);Xn<0&&(Xn=0);for(var Ui=0;Ui<Xn;++Ui)pt.charCodeAt(Ui)>=128&&M("not-basic"),Ot.push(pt.charCodeAt(Ui));for(var io=Xn>0?Xn+1:0;io<Ht;){for(var To=jt,Ss=1,ds=h;;ds+=h){io>=Ht&&M("invalid-input");var Ki=j(pt.charCodeAt(io++));(Ki>=h||Ki>N((p-jt)/Ss))&&M("overflow"),jt+=Ki*Ss;var ts=ds<=Nn?m:ds>=Nn+y?y:ds-Nn;if(Ki<ts)break;var Oa=h-ts;Ss>N(p/Oa)&&M("overflow"),Ss*=Oa}var js=Ot.length+1;Nn=U(jt-To,js,To==0),N(jt/js)>p-Hr&&M("overflow"),Hr+=N(jt/js),jt%=js,Ot.splice(jt++,0,Hr)}return String.fromCodePoint.apply(String,Ot)},Y=function(pt){var Ot=[];pt=q(pt);var Ht=pt.length,jt=b,Hr=0,Nn=v,Xn=!0,Ui=!1,io=void 0;try{for(var To=pt[Symbol.iterator](),Ss;!(Xn=(Ss=To.next()).done);Xn=!0){var ds=Ss.value;ds<128&&Ot.push(O(ds))}}catch(Vt){Ui=!0,io=Vt}finally{try{!Xn&&To.return&&To.return()}finally{if(Ui)throw io}}var Ki=Ot.length,ts=Ki;for(Ki&&Ot.push(x);ts<Ht;){var Oa=p,js=!0,ef=!1,Fl=void 0;try{for(var tf=pt[Symbol.iterator](),$s;!(js=($s=tf.next()).done);js=!0){var fd=$s.value;fd>=jt&&fd<Oa&&(Oa=fd)}}catch(Vt){ef=!0,Fl=Vt}finally{try{!js&&tf.return&&tf.return()}finally{if(ef)throw Fl}}var $a=ts+1;Oa-jt>N((p-Hr)/$a)&&M("overflow"),Hr+=(Oa-jt)*$a,jt=Oa;var ps=!0,Gp=!1,dd=void 0;try{for(var Th=pt[Symbol.iterator](),wh;!(ps=(wh=Th.next()).done);ps=!0){var Ql=wh.value;if(Ql<jt&&++Hr>p&&M("overflow"),Ql==jt){for(var Hc=Hr,pd=h;;pd+=h){var ot=pd<=Nn?m:pd>=Nn+y?y:pd-Nn;if(Hc<ot)break;var at=Hc-ot,Bt=h-ot;Ot.push(O(H(ot+at%Bt,0))),Hc=N(at/Bt)}Ot.push(O(H(Hc,0))),Nn=U(Hr,$a,ts==Ki),Hr=0,++ts}}}catch(Vt){Gp=!0,dd=Vt}finally{try{!ps&&Th.return&&Th.return()}finally{if(Gp)throw dd}}++Hr,++jt}return Ot.join("")},se=function(pt){return P(pt,function(Ot){return T.test(Ot)?$(Ot.slice(4).toLowerCase()):Ot})},J=function(pt){return P(pt,function(Ot){return D.test(Ot)?"xn--"+Y(Ot):Ot})},fe={version:"2.1.0",ucs2:{decode:q,encode:F},decode:$,encode:Y,toASCII:J,toUnicode:se},Ae={};function ne(wt){var pt=wt.charCodeAt(0),Ot=void 0;return pt<16?Ot="%0"+pt.toString(16).toUpperCase():pt<128?Ot="%"+pt.toString(16).toUpperCase():pt<2048?Ot="%"+(pt>>6|192).toString(16).toUpperCase()+"%"+(pt&63|128).toString(16).toUpperCase():Ot="%"+(pt>>12|224).toString(16).toUpperCase()+"%"+(pt>>6&63|128).toString(16).toUpperCase()+"%"+(pt&63|128).toString(16).toUpperCase(),Ot}function ge(wt){for(var pt="",Ot=0,Ht=wt.length;Ot<Ht;){var jt=parseInt(wt.substr(Ot+1,2),16);if(jt<128)pt+=String.fromCharCode(jt),Ot+=3;else if(jt>=194&&jt<224){if(Ht-Ot>=6){var Hr=parseInt(wt.substr(Ot+4,2),16);pt+=String.fromCharCode((jt&31)<<6|Hr&63)}else pt+=wt.substr(Ot,6);Ot+=6}else if(jt>=224){if(Ht-Ot>=9){var Nn=parseInt(wt.substr(Ot+4,2),16),Xn=parseInt(wt.substr(Ot+7,2),16);pt+=String.fromCharCode((jt&15)<<12|(Nn&63)<<6|Xn&63)}else pt+=wt.substr(Ot,9);Ot+=9}else pt+=wt.substr(Ot,3),Ot+=3}return pt}function ee(wt,pt){function Ot(Ht){var jt=ge(Ht);return jt.match(pt.UNRESERVED)?jt:Ht}return wt.scheme&&(wt.scheme=String(wt.scheme).replace(pt.PCT_ENCODED,Ot).toLowerCase().replace(pt.NOT_SCHEME,"")),wt.userinfo!==void 0&&(wt.userinfo=String(wt.userinfo).replace(pt.PCT_ENCODED,Ot).replace(pt.NOT_USERINFO,ne).replace(pt.PCT_ENCODED,s)),wt.host!==void 0&&(wt.host=String(wt.host).replace(pt.PCT_ENCODED,Ot).toLowerCase().replace(pt.NOT_HOST,ne).replace(pt.PCT_ENCODED,s)),wt.path!==void 0&&(wt.path=String(wt.path).replace(pt.PCT_ENCODED,Ot).replace(wt.scheme?pt.NOT_PATH:pt.NOT_PATH_NOSCHEME,ne).replace(pt.PCT_ENCODED,s)),wt.query!==void 0&&(wt.query=String(wt.query).replace(pt.PCT_ENCODED,Ot).replace(pt.NOT_QUERY,ne).replace(pt.PCT_ENCODED,s)),wt.fragment!==void 0&&(wt.fragment=String(wt.fragment).replace(pt.PCT_ENCODED,Ot).replace(pt.NOT_FRAGMENT,ne).replace(pt.PCT_ENCODED,s)),wt}function X(wt){return wt.replace(/^0*(.*)/,"$1")||"0"}function ue(wt,pt){var Ot=wt.match(pt.IPV4ADDRESS)||[],Ht=f(Ot,2),jt=Ht[1];return jt?jt.split(".").map(X).join("."):wt}function oe(wt,pt){var Ot=wt.match(pt.IPV6ADDRESS)||[],Ht=f(Ot,3),jt=Ht[1],Hr=Ht[2];if(jt){for(var Nn=jt.toLowerCase().split("::").reverse(),Xn=f(Nn,2),Ui=Xn[0],io=Xn[1],To=io?io.split(":").map(X):[],Ss=Ui.split(":").map(X),ds=pt.IPV4ADDRESS.test(Ss[Ss.length-1]),Ki=ds?7:8,ts=Ss.length-Ki,Oa=Array(Ki),js=0;js<Ki;++js)Oa[js]=To[js]||Ss[ts+js]||"";ds&&(Oa[Ki-1]=ue(Oa[Ki-1],pt));var ef=Oa.reduce(function($a,ps,Gp){if(!ps||ps==="0"){var dd=$a[$a.length-1];dd&&dd.index+dd.length===Gp?dd.length++:$a.push({index:Gp,length:1})}return $a},[]),Fl=ef.sort(function($a,ps){return ps.length-$a.length})[0],tf=void 0;if(Fl&&Fl.length>1){var $s=Oa.slice(0,Fl.index),fd=Oa.slice(Fl.index+Fl.length);tf=$s.join(":")+"::"+fd.join(":")}else tf=Oa.join(":");return Hr&&(tf+="%"+Hr),tf}else return wt}var ae=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,pe="".match(/(){0}/)[1]===void 0;function te(wt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot={},Ht=pt.iri!==!1?u:c;pt.reference==="suffix"&&(wt=(pt.scheme?pt.scheme+":":"")+"//"+wt);var jt=wt.match(ae);if(jt){pe?(Ot.scheme=jt[1],Ot.userinfo=jt[3],Ot.host=jt[4],Ot.port=parseInt(jt[5],10),Ot.path=jt[6]||"",Ot.query=jt[7],Ot.fragment=jt[8],isNaN(Ot.port)&&(Ot.port=jt[5])):(Ot.scheme=jt[1]||void 0,Ot.userinfo=wt.indexOf("@")!==-1?jt[3]:void 0,Ot.host=wt.indexOf("//")!==-1?jt[4]:void 0,Ot.port=parseInt(jt[5],10),Ot.path=jt[6]||"",Ot.query=wt.indexOf("?")!==-1?jt[7]:void 0,Ot.fragment=wt.indexOf("#")!==-1?jt[8]:void 0,isNaN(Ot.port)&&(Ot.port=wt.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?jt[4]:void 0)),Ot.host&&(Ot.host=oe(ue(Ot.host,Ht),Ht)),Ot.scheme===void 0&&Ot.userinfo===void 0&&Ot.host===void 0&&Ot.port===void 0&&!Ot.path&&Ot.query===void 0?Ot.reference="same-document":Ot.scheme===void 0?Ot.reference="relative":Ot.fragment===void 0?Ot.reference="absolute":Ot.reference="uri",pt.reference&&pt.reference!=="suffix"&&pt.reference!==Ot.reference&&(Ot.error=Ot.error||"URI is not a "+pt.reference+" reference.");var Hr=Ae[(pt.scheme||Ot.scheme||"").toLowerCase()];if(!pt.unicodeSupport&&(!Hr||!Hr.unicodeSupport)){if(Ot.host&&(pt.domainHost||Hr&&Hr.domainHost))try{Ot.host=fe.toASCII(Ot.host.replace(Ht.PCT_ENCODED,ge).toLowerCase())}catch(Nn){Ot.error=Ot.error||"Host's domain name can not be converted to ASCII via punycode: "+Nn}ee(Ot,c)}else ee(Ot,Ht);Hr&&Hr.parse&&Hr.parse(Ot,pt)}else Ot.error=Ot.error||"URI can not be parsed.";return Ot}function z(wt,pt){var Ot=pt.iri!==!1?u:c,Ht=[];return wt.userinfo!==void 0&&(Ht.push(wt.userinfo),Ht.push("@")),wt.host!==void 0&&Ht.push(oe(ue(String(wt.host),Ot),Ot).replace(Ot.IPV6ADDRESS,function(jt,Hr,Nn){return"["+Hr+(Nn?"%25"+Nn:"")+"]"})),(typeof wt.port=="number"||typeof wt.port=="string")&&(Ht.push(":"),Ht.push(String(wt.port))),Ht.length?Ht.join(""):void 0}var K=/^\.\.?\//,Ee=/^\/\.(\/|$)/,be=/^\/\.\.(\/|$)/,ie=/^\/?(?:.|\n)*?(?=\/|$)/;function Oe(wt){for(var pt=[];wt.length;)if(wt.match(K))wt=wt.replace(K,"");else if(wt.match(Ee))wt=wt.replace(Ee,"/");else if(wt.match(be))wt=wt.replace(be,"/"),pt.pop();else if(wt==="."||wt==="..")wt="";else{var Ot=wt.match(ie);if(Ot){var Ht=Ot[0];wt=wt.slice(Ht.length),pt.push(Ht)}else throw new Error("Unexpected dot segment condition")}return pt.join("")}function tt(wt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=pt.iri?u:c,Ht=[],jt=Ae[(pt.scheme||wt.scheme||"").toLowerCase()];if(jt&&jt.serialize&&jt.serialize(wt,pt),wt.host&&!Ot.IPV6ADDRESS.test(wt.host)){if(pt.domainHost||jt&&jt.domainHost)try{wt.host=pt.iri?fe.toUnicode(wt.host):fe.toASCII(wt.host.replace(Ot.PCT_ENCODED,ge).toLowerCase())}catch(Xn){wt.error=wt.error||"Host's domain name can not be converted to "+(pt.iri?"Unicode":"ASCII")+" via punycode: "+Xn}}ee(wt,Ot),pt.reference!=="suffix"&&wt.scheme&&(Ht.push(wt.scheme),Ht.push(":"));var Hr=z(wt,pt);if(Hr!==void 0&&(pt.reference!=="suffix"&&Ht.push("//"),Ht.push(Hr),wt.path&&wt.path.charAt(0)!=="/"&&Ht.push("/")),wt.path!==void 0){var Nn=wt.path;!pt.absolutePath&&(!jt||!jt.absolutePath)&&(Nn=Oe(Nn)),Hr===void 0&&(Nn=Nn.replace(/^\/\//,"/%2F")),Ht.push(Nn)}return wt.query!==void 0&&(Ht.push("?"),Ht.push(wt.query)),wt.fragment!==void 0&&(Ht.push("#"),Ht.push(wt.fragment)),Ht.join("")}function Pe(wt,pt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ht=arguments[3],jt={};return Ht||(wt=te(tt(wt,Ot),Ot),pt=te(tt(pt,Ot),Ot)),Ot=Ot||{},!Ot.tolerant&&pt.scheme?(jt.scheme=pt.scheme,jt.userinfo=pt.userinfo,jt.host=pt.host,jt.port=pt.port,jt.path=Oe(pt.path||""),jt.query=pt.query):(pt.userinfo!==void 0||pt.host!==void 0||pt.port!==void 0?(jt.userinfo=pt.userinfo,jt.host=pt.host,jt.port=pt.port,jt.path=Oe(pt.path||""),jt.query=pt.query):(pt.path?(pt.path.charAt(0)==="/"?jt.path=Oe(pt.path):((wt.userinfo!==void 0||wt.host!==void 0||wt.port!==void 0)&&!wt.path?jt.path="/"+pt.path:wt.path?jt.path=wt.path.slice(0,wt.path.lastIndexOf("/")+1)+pt.path:jt.path=pt.path,jt.path=Oe(jt.path)),jt.query=pt.query):(jt.path=wt.path,pt.query!==void 0?jt.query=pt.query:jt.query=wt.query),jt.userinfo=wt.userinfo,jt.host=wt.host,jt.port=wt.port),jt.scheme=wt.scheme),jt.fragment=pt.fragment,jt}function je(wt,pt,Ot){var Ht=i({scheme:"null"},Ot);return tt(Pe(te(wt,Ht),te(pt,Ht),Ht,!0),Ht)}function de(wt,pt){return typeof wt=="string"?wt=tt(te(wt,pt),pt):o(wt)==="object"&&(wt=te(tt(wt,pt),pt)),wt}function Ce(wt,pt,Ot){return typeof wt=="string"?wt=tt(te(wt,Ot),Ot):o(wt)==="object"&&(wt=tt(wt,Ot)),typeof pt=="string"?pt=tt(te(pt,Ot),Ot):o(pt)==="object"&&(pt=tt(pt,Ot)),wt===pt}function De(wt,pt){return wt&&wt.toString().replace(!pt||!pt.iri?c.ESCAPE:u.ESCAPE,ne)}function Re(wt,pt){return wt&&wt.toString().replace(!pt||!pt.iri?c.PCT_ENCODED:u.PCT_ENCODED,ge)}var Ne={scheme:"http",domainHost:!0,parse:function(pt,Ot){return pt.host||(pt.error=pt.error||"HTTP URIs must have a host."),pt},serialize:function(pt,Ot){var Ht=String(pt.scheme).toLowerCase()==="https";return(pt.port===(Ht?443:80)||pt.port==="")&&(pt.port=void 0),pt.path||(pt.path="/"),pt}},ke={scheme:"https",domainHost:Ne.domainHost,parse:Ne.parse,serialize:Ne.serialize};function rt(wt){return typeof wt.secure=="boolean"?wt.secure:String(wt.scheme).toLowerCase()==="wss"}var it={scheme:"ws",domainHost:!0,parse:function(pt,Ot){var Ht=pt;return Ht.secure=rt(Ht),Ht.resourceName=(Ht.path||"/")+(Ht.query?"?"+Ht.query:""),Ht.path=void 0,Ht.query=void 0,Ht},serialize:function(pt,Ot){if((pt.port===(rt(pt)?443:80)||pt.port==="")&&(pt.port=void 0),typeof pt.secure=="boolean"&&(pt.scheme=pt.secure?"wss":"ws",pt.secure=void 0),pt.resourceName){var Ht=pt.resourceName.split("?"),jt=f(Ht,2),Hr=jt[0],Nn=jt[1];pt.path=Hr&&Hr!=="/"?Hr:void 0,pt.query=Nn,pt.resourceName=void 0}return pt.fragment=void 0,pt}},At={scheme:"wss",domainHost:it.domainHost,parse:it.parse,serialize:it.serialize},$t={},br=!0,_e="[A-Za-z0-9\\-\\.\\_\\~"+(br?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Te="[0-9A-Fa-f]",Ge=r(r("%[EFef]"+Te+"%"+Te+Te+"%"+Te+Te)+"|"+r("%[89A-Fa-f]"+Te+"%"+Te+Te)+"|"+r("%"+Te+Te)),St="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",dt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",lt=e(dt,'[\\"\\\\]'),Dt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",xt=new RegExp(_e,"g"),Ut=new RegExp(Ge,"g"),pr=new RegExp(e("[^]",St,"[\\.]",'[\\"]',lt),"g"),_r=new RegExp(e("[^]",_e,Dt),"g"),xr=_r;function Kr(wt){var pt=ge(wt);return pt.match(xt)?pt:wt}var Hn={scheme:"mailto",parse:function(pt,Ot){var Ht=pt,jt=Ht.to=Ht.path?Ht.path.split(","):[];if(Ht.path=void 0,Ht.query){for(var Hr=!1,Nn={},Xn=Ht.query.split("&"),Ui=0,io=Xn.length;Ui<io;++Ui){var To=Xn[Ui].split("=");switch(To[0]){case"to":for(var Ss=To[1].split(","),ds=0,Ki=Ss.length;ds<Ki;++ds)jt.push(Ss[ds]);break;case"subject":Ht.subject=Re(To[1],Ot);break;case"body":Ht.body=Re(To[1],Ot);break;default:Hr=!0,Nn[Re(To[0],Ot)]=Re(To[1],Ot);break}}Hr&&(Ht.headers=Nn)}Ht.query=void 0;for(var ts=0,Oa=jt.length;ts<Oa;++ts){var js=jt[ts].split("@");if(js[0]=Re(js[0]),Ot.unicodeSupport)js[1]=Re(js[1],Ot).toLowerCase();else try{js[1]=fe.toASCII(Re(js[1],Ot).toLowerCase())}catch(ef){Ht.error=Ht.error||"Email address's domain name can not be converted to ASCII via punycode: "+ef}jt[ts]=js.join("@")}return Ht},serialize:function(pt,Ot){var Ht=pt,jt=a(pt.to);if(jt){for(var Hr=0,Nn=jt.length;Hr<Nn;++Hr){var Xn=String(jt[Hr]),Ui=Xn.lastIndexOf("@"),io=Xn.slice(0,Ui).replace(Ut,Kr).replace(Ut,s).replace(pr,ne),To=Xn.slice(Ui+1);try{To=Ot.iri?fe.toUnicode(To):fe.toASCII(Re(To,Ot).toLowerCase())}catch(ts){Ht.error=Ht.error||"Email address's domain name can not be converted to "+(Ot.iri?"Unicode":"ASCII")+" via punycode: "+ts}jt[Hr]=io+"@"+To}Ht.path=jt.join(",")}var Ss=pt.headers=pt.headers||{};pt.subject&&(Ss.subject=pt.subject),pt.body&&(Ss.body=pt.body);var ds=[];for(var Ki in Ss)Ss[Ki]!==$t[Ki]&&ds.push(Ki.replace(Ut,Kr).replace(Ut,s).replace(_r,ne)+"="+Ss[Ki].replace(Ut,Kr).replace(Ut,s).replace(xr,ne));return ds.length&&(Ht.query=ds.join("&")),Ht}},Un=/^([^\:]+)\:(.*)/,Jn={scheme:"urn",parse:function(pt,Ot){var Ht=pt.path&&pt.path.match(Un),jt=pt;if(Ht){var Hr=Ot.scheme||jt.scheme||"urn",Nn=Ht[1].toLowerCase(),Xn=Ht[2],Ui=Hr+":"+(Ot.nid||Nn),io=Ae[Ui];jt.nid=Nn,jt.nss=Xn,jt.path=void 0,io&&(jt=io.parse(jt,Ot))}else jt.error=jt.error||"URN can not be parsed.";return jt},serialize:function(pt,Ot){var Ht=Ot.scheme||pt.scheme||"urn",jt=pt.nid,Hr=Ht+":"+(Ot.nid||jt),Nn=Ae[Hr];Nn&&(pt=Nn.serialize(pt,Ot));var Xn=pt,Ui=pt.nss;return Xn.path=(jt||Ot.nid)+":"+Ui,Xn}},xo=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Co={scheme:"urn:uuid",parse:function(pt,Ot){var Ht=pt;return Ht.uuid=Ht.nss,Ht.nss=void 0,!Ot.tolerant&&(!Ht.uuid||!Ht.uuid.match(xo))&&(Ht.error=Ht.error||"UUID is not valid."),Ht},serialize:function(pt,Ot){var Ht=pt;return Ht.nss=(pt.uuid||"").toLowerCase(),Ht}};Ae[Ne.scheme]=Ne,Ae[ke.scheme]=ke,Ae[it.scheme]=it,Ae[At.scheme]=At,Ae[Hn.scheme]=Hn,Ae[Jn.scheme]=Jn,Ae[Co.scheme]=Co,t.SCHEMES=Ae,t.pctEncChar=ne,t.pctDecChars=ge,t.parse=te,t.removeDotSegments=Oe,t.serialize=tt,t.resolveComponents=Pe,t.resolve=je,t.normalize=de,t.equal=Ce,t.escapeComponent=De,t.unescapeComponent=Re,Object.defineProperty(t,"__esModule",{value:!0})}))});var noe=E((_Al,Fwn)=>{"use strict";Fwn.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,s,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(s=o;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[s]))return!1;for(s=o;s--!==0;){var i=a[s];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}});var qwn=E((xAl,Qwn)=>{"use strict";Qwn.exports=function(e){for(var r=0,o=e.length,s=0,a;s<o;)r++,a=e.charCodeAt(s++),a>=55296&&a<=56319&&s<o&&(a=e.charCodeAt(s),(a&64512)==56320&&s++);return r}});var Dj=E((CAl,Gwn)=>{"use strict";Gwn.exports={copy:u8s,checkDataType:uQt,checkDataTypes:f8s,coerceToTypes:d8s,toHash:dQt,getProperty:pQt,escapeQuotes:hQt,equal:noe(),ucs2length:qwn(),varOccurences:m8s,varReplace:g8s,schemaHasRules:y8s,schemaHasRulesExcept:A8s,schemaUnknownRules:v8s,toQuotedString:fQt,getPathExpr:b8s,getPath:E8s,getData:x8s,unescapeFragment:C8s,unescapeJsonPointer:gQt,escapeFragment:T8s,escapeJsonPointer:mQt};function u8s(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function uQt(t,e,r,o){var s=o?" !== ":" === ",a=o?" || ":" && ",i=o?"!":"",n=o?"":"!";switch(t){case"null":return e+s+"null";case"array":return i+"Array.isArray("+e+")";case"object":return"("+i+e+a+"typeof "+e+s+'"object"'+a+n+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+s+'"number"'+a+n+"("+e+" % 1)"+a+e+s+e+(r?a+i+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+s+'"'+t+'"'+(r?a+i+"isFinite("+e+")":"")+")";default:return"typeof "+e+s+'"'+t+'"'}}function f8s(t,e,r){switch(t.length){case 1:return uQt(t[0],e,r,!0);default:var o="",s=dQt(t);s.array&&s.object&&(o=s.null?"(":"(!"+e+" || ",o+="typeof "+e+' !== "object")',delete s.null,delete s.array,delete s.object),s.number&&delete s.integer;for(var a in s)o+=(o?" && ":"")+uQt(a,e,r,!0);return o}}var Hwn=dQt(["string","number","integer","boolean","null"]);function d8s(t,e){if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=e[o];(Hwn[s]||t==="array"&&s==="array")&&(r[r.length]=s)}if(r.length)return r}else{if(Hwn[e])return[e];if(t==="array"&&e==="array")return["array"]}}function dQt(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var p8s=/^[a-z$_][a-z$_0-9]*$/i,h8s=/'|\\/g;function pQt(t){return typeof t=="number"?"["+t+"]":p8s.test(t)?"."+t:"['"+hQt(t)+"']"}function hQt(t){return t.replace(h8s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function m8s(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function g8s(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function y8s(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function A8s(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var o in t)if(o!=r&&e[o])return!0}function v8s(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function fQt(t){return"'"+hQt(t)+"'"}function b8s(t,e,r,o){var s=r?"'/' + "+e+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Vwn(t,s)}function E8s(t,e,r){var o=fQt(r?"/"+mQt(e):pQt(e));return Vwn(t,o)}var S8s=/^\/(?:[^~]|~0|~1)*$/,_8s=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function x8s(t,e,r){var o,s,a,i;if(t==="")return"rootData";if(t[0]=="/"){if(!S8s.test(t))throw new Error("Invalid JSON-pointer: "+t);s=t,a="rootData"}else{if(i=t.match(_8s),!i)throw new Error("Invalid JSON-pointer: "+t);if(o=+i[1],s=i[2],s=="#"){if(o>=e)throw new Error("Cannot access property/index "+o+" levels up, current level is "+e);return r[e-o]}if(o>e)throw new Error("Cannot access data "+o+" levels up, current level is "+e);if(a="data"+(e-o||""),!s)return a}for(var n=a,c=s.split("/"),u=0;u<c.length;u++){var f=c[u];f&&(a+=pQt(gQt(f)),n+=" && "+a)}return n}function Vwn(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function C8s(t){return gQt(decodeURIComponent(t))}function T8s(t){return encodeURIComponent(mQt(t))}function mQt(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function gQt(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var yQt=E((TAl,jwn)=>{"use strict";var w8s=Dj();jwn.exports=I8s;function I8s(t){w8s.copy(t,this)}});var Wwn=E((wAl,$wn)=>{"use strict";var CL=$wn.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var o=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};YYe(e,o,s,t,"",t)};CL.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};CL.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};CL.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};CL.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function YYe(t,e,r,o,s,a,i,n,c,u){if(o&&typeof o=="object"&&!Array.isArray(o)){e(o,s,a,i,n,c,u);for(var f in o){var d=o[f];if(Array.isArray(d)){if(f in CL.arrayKeywords)for(var p=0;p<d.length;p++)YYe(t,e,r,d[p],s+"/"+f+"/"+p,a,s,f,o,p)}else if(f in CL.propsKeywords){if(d&&typeof d=="object")for(var h in d)YYe(t,e,r,d[h],s+"/"+f+"/"+D8s(h),a,s,f,o,h)}else(f in CL.keywords||t.allKeys&&!(f in CL.skipKeywords))&&YYe(t,e,r,d,s+"/"+f,a,s,f,o)}r(o,s,a,i,n,c,u)}}function D8s(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var rJe=E((IAl,Jwn)=>{"use strict";var L3e=Uwn(),zwn=noe(),eJe=Dj(),JYe=yQt(),O8s=Wwn();Jwn.exports=wL;wL.normalizeId=TL;wL.fullPath=XYe;wL.url=ZYe;wL.ids=B8s;wL.inlineRef=AQt;wL.schema=tJe;function wL(t,e,r){var o=this._refs[r];if(typeof o=="string")if(this._refs[o])o=this._refs[o];else return wL.call(this,t,e,o);if(o=o||this._schemas[r],o instanceof JYe)return AQt(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var s=tJe.call(this,e,r),a,i,n;return s&&(a=s.schema,e=s.root,n=s.baseId),a instanceof JYe?i=a.validate||t.call(this,a.schema,e,void 0,n):a!==void 0&&(i=AQt(a,this._opts.inlineRefs)?a:t.call(this,a,e,void 0,n)),i}function tJe(t,e){var r=L3e.parse(e),o=Ywn(r),s=XYe(this._getId(t.schema));if(Object.keys(t.schema).length===0||o!==s){var a=TL(o),i=this._refs[a];if(typeof i=="string")return R8s.call(this,t,i,r);if(i instanceof JYe)i.validate||this._compile(i),t=i;else if(i=this._schemas[a],i instanceof JYe){if(i.validate||this._compile(i),a==TL(e))return{schema:i,root:t,baseId:s};t=i}else return;if(!t.schema)return;s=XYe(this._getId(t.schema))}return Kwn.call(this,r,s,t.schema,t)}function R8s(t,e,r){var o=tJe.call(this,t,e);if(o){var s=o.schema,a=o.baseId;t=o.root;var i=this._getId(s);return i&&(a=ZYe(a,i)),Kwn.call(this,r,a,s,t)}}var N8s=eJe.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Kwn(t,e,r,o){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var s=t.fragment.split("/"),a=1;a<s.length;a++){var i=s[a];if(i){if(i=eJe.unescapeFragment(i),r=r[i],r===void 0)break;var n;if(!N8s[i]&&(n=this._getId(r),n&&(e=ZYe(e,n)),r.$ref)){var c=ZYe(e,r.$ref),u=tJe.call(this,o,c);u&&(r=u.schema,o=u.root,e=u.baseId)}}}if(r!==void 0&&r!==o.schema)return{schema:r,root:o,baseId:e}}}var P8s=eJe.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function AQt(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return vQt(t);if(e)return bQt(t)<=e}function vQt(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!vQt(e))return!1}else for(var o in t)if(o=="$ref"||(e=t[o],typeof e=="object"&&!vQt(e)))return!1;return!0}function bQt(t){var e=0,r;if(Array.isArray(t)){for(var o=0;o<t.length;o++)if(r=t[o],typeof r=="object"&&(e+=bQt(r)),e==1/0)return 1/0}else for(var s in t){if(s=="$ref")return 1/0;if(P8s[s])e++;else if(r=t[s],typeof r=="object"&&(e+=bQt(r)+1),e==1/0)return 1/0}return e}function XYe(t,e){e!==!1&&(t=TL(t));var r=L3e.parse(t);return Ywn(r)}function Ywn(t){return L3e.serialize(t).split("#")[0]+"#"}var k8s=/#\/?$/;function TL(t){return t?t.replace(k8s,""):""}function ZYe(t,e){return e=TL(e),L3e.resolve(t,e)}function B8s(t){var e=TL(this._getId(t)),r={"":e},o={"":XYe(e,!1)},s={},a=this;return O8s(t,{allKeys:!0},function(i,n,c,u,f,d,p){if(n!==""){var h=a._getId(i),m=r[u],y=o[u]+"/"+f;if(p!==void 0&&(y+="/"+(typeof p=="number"?p:eJe.escapeFragment(p))),typeof h=="string"){h=m=TL(m?L3e.resolve(m,h):h);var g=a._refs[h];if(typeof g=="string"&&(g=a._refs[g]),g&&g.schema){if(!zwn(i,g.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=TL(y))if(h[0]=="#"){if(s[h]&&!zwn(i,s[h]))throw new Error('id "'+h+'" resolves to more than one schema');s[h]=i}else a._refs[h]=y}r[n]=m,o[n]=y}}),s}});var nJe=E((DAl,Zwn)=>{"use strict";var EQt=rJe();Zwn.exports={Validation:Xwn(M8s),MissingRef:Xwn(SQt)};function M8s(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}SQt.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function SQt(t,e,r){this.message=r||SQt.message(t,e),this.missingRef=EQt.url(t,e),this.missingSchema=EQt.normalizeId(EQt.fullPath(this.missingRef))}function Xwn(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var _Qt=E((OAl,e5n)=>{"use strict";e5n.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,o=e.cmp&&(function(a){return function(i){return function(n,c){var u={key:n,value:i[n]},f={key:c,value:i[c]};return a(u,f)}}})(e.cmp),s=[];return(function a(i){if(i&&i.toJSON&&typeof i.toJSON=="function"&&(i=i.toJSON()),i!==void 0){if(typeof i=="number")return isFinite(i)?""+i:"null";if(typeof i!="object")return JSON.stringify(i);var n,c;if(Array.isArray(i)){for(c="[",n=0;n<i.length;n++)n&&(c+=","),c+=a(i[n])||"null";return c+"]"}if(i===null)return"null";if(s.indexOf(i)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=s.push(i)-1,f=Object.keys(i).sort(o&&o(i));for(c="",n=0;n<f.length;n++){var d=f[n],p=a(i[d]);p&&(c&&(c+=","),c+=JSON.stringify(d)+":"+p)}return s.splice(u,1),"{"+c+"}"}})(t)}});var xQt=E((RAl,t5n)=>{"use strict";t5n.exports=function(e,r,o){var s="",a=e.schema.$async===!0,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),n=e.self._getId(e.schema);if(e.opts.strictKeywords){var c=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(c){var u="unknown keyword: "+c;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop&&(s+=" var validate = ",a&&(e.async=!0,s+="async "),s+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",n&&(e.opts.sourceCode||e.opts.processCode)&&(s+=" "+("/*# sourceURL="+n+" */")+" ")),typeof e.schema=="boolean"||!(i||e.schema.$ref)){var r="false schema",f=e.level,d=e.dataLevel,p=e.schema[r],h=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,T=!e.opts.allErrors,k,y="data"+(d||""),x="valid"+f;if(e.schema===!1){e.isTop?T=!0:s+=" var "+x+" = false; ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'boolean schema is false' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?s+=" return data; ":s+=" validate.errors = null; return true; ":s+=" var "+x+" = true; ";return e.isTop&&(s+=" }; return validate; "),s}if(e.isTop){var v=e.isTop,f=e.level=0,d=e.dataLevel=0,y="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}s+=" var vErrors = null; ",s+=" var errors = 0; ",s+=" if (rootData === undefined) rootData = data; "}else{var f=e.level,d=e.dataLevel,y="data"+(d||"");if(n&&(e.baseId=e.resolve.url(e.baseId,n)),a&&!e.async)throw new Error("async schema in sync schema");s+=" var errs_"+f+" = errors;"}var x="valid"+f,T=!e.opts.allErrors,D="",I="",k,w=e.schema.type,N=Array.isArray(w);if(w&&e.opts.nullable&&e.schema.nullable===!0&&(N?w.indexOf("null")==-1&&(w=w.concat("null")):w!="null"&&(w=[w,"null"],N=!0)),N&&w.length==1&&(w=w[0],N=!1),e.schema.$ref&&i){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(s+=" "+e.RULES.all.$comment.code(e,"$comment")),w){if(e.opts.coerceTypes)var O=e.util.coerceToTypes(e.opts.coerceTypes,w);var M=e.RULES.types[w];if(O||N||M===!0||M&&!ie(M)){var h=e.schemaPath+".type",m=e.errSchemaPath+"/type",h=e.schemaPath+".type",m=e.errSchemaPath+"/type",B=N?"checkDataTypes":"checkDataType";if(s+=" if ("+e.util[B](w,y,e.opts.strictNumbers,!0)+") { ",O){var P="dataType"+f,q="coerced"+f;s+=" var "+P+" = typeof "+y+"; var "+q+" = undefined; ",e.opts.coerceTypes=="array"&&(s+=" if ("+P+" == 'object' && Array.isArray("+y+") && "+y+".length == 1) { "+y+" = "+y+"[0]; "+P+" = typeof "+y+"; if ("+e.util.checkDataType(e.schema.type,y,e.opts.strictNumbers)+") "+q+" = "+y+"; } "),s+=" if ("+q+" !== undefined) ; ";var F=O;if(F)for(var j,H=-1,U=F.length-1;H<U;)j=F[H+=1],j=="string"?s+=" else if ("+P+" == 'number' || "+P+" == 'boolean') "+q+" = '' + "+y+"; else if ("+y+" === null) "+q+" = ''; ":j=="number"||j=="integer"?(s+=" else if ("+P+" == 'boolean' || "+y+" === null || ("+P+" == 'string' && "+y+" && "+y+" == +"+y+" ",j=="integer"&&(s+=" && !("+y+" % 1)"),s+=")) "+q+" = +"+y+"; "):j=="boolean"?s+=" else if ("+y+" === 'false' || "+y+" === 0 || "+y+" === null) "+q+" = false; else if ("+y+" === 'true' || "+y+" === 1) "+q+" = true; ":j=="null"?s+=" else if ("+y+" === '' || "+y+" === 0 || "+y+" === false) "+q+" = null; ":e.opts.coerceTypes=="array"&&j=="array"&&(s+=" else if ("+P+" == 'string' || "+P+" == 'number' || "+P+" == 'boolean' || "+y+" == null) "+q+" = ["+y+"]; ");s+=" else { ";var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",N?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",N?s+=""+w.join(","):s+=""+w,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } if ("+q+" !== undefined) { ";var $=d?"data"+(d-1||""):"parentData",Y=d?e.dataPathArr[d]:"parentDataProperty";s+=" "+y+" = "+q+"; ",d||(s+="if ("+$+" !== undefined)"),s+=" "+$+"["+Y+"] = "+q+"; } "}else{var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",N?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",N?s+=""+w.join(","):s+=""+w,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}s+=" } "}}if(e.schema.$ref&&!i)s+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",T&&(s+=" } if (errors === ",v?s+="0":s+="errs_"+f,s+=") { ",I+="}");else{var se=e.RULES;if(se){for(var M,J=-1,fe=se.length-1;J<fe;)if(M=se[J+=1],ie(M)){if(M.type&&(s+=" if ("+e.util.checkDataType(M.type,y,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(M.type=="object"&&e.schema.properties){var p=e.schema.properties,Ae=Object.keys(p),ne=Ae;if(ne)for(var ge,ee=-1,X=ne.length-1;ee<X;){ge=ne[ee+=1];var ue=p[ge];if(ue.default!==void 0){var oe=y+e.util.getProperty(ge);if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+oe;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else s+=" if ("+oe+" === undefined ",e.opts.useDefaults=="empty"&&(s+=" || "+oe+" === null || "+oe+" === '' "),s+=" ) "+oe+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(ue.default)+" ":s+=" "+JSON.stringify(ue.default)+" ",s+="; "}}}else if(M.type=="array"&&Array.isArray(e.schema.items)){var ae=e.schema.items;if(ae){for(var ue,H=-1,pe=ae.length-1;H<pe;)if(ue=ae[H+=1],ue.default!==void 0){var oe=y+"["+H+"]";if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+oe;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else s+=" if ("+oe+" === undefined ",e.opts.useDefaults=="empty"&&(s+=" || "+oe+" === null || "+oe+" === '' "),s+=" ) "+oe+" = ",e.opts.useDefaults=="shared"?s+=" "+e.useDefault(ue.default)+" ":s+=" "+JSON.stringify(ue.default)+" ",s+="; "}}}}var te=M.rules;if(te){for(var z,K=-1,Ee=te.length-1;K<Ee;)if(z=te[K+=1],Oe(z)){var be=z.code(e,z.keyword,M.type);be&&(s+=" "+be+" ",T&&(D+="}"))}}if(T&&(s+=" "+D+" ",D=""),M.type&&(s+=" } ",w&&w===M.type&&!O)){s+=" else { ";var h=e.schemaPath+".type",m=e.errSchemaPath+"/type",g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(k||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",N?s+=""+w.join(","):s+=""+w,s+="' } ",e.opts.messages!==!1&&(s+=" , message: 'should be ",N?s+=""+w.join(","):s+=""+w,s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&T?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } "}T&&(s+=" if (errors === ",v?s+="0":s+="errs_"+f,s+=") { ",I+="}")}}}T&&(s+=" "+I+" "),v?(a?(s+=" if (errors === 0) return data; ",s+=" else throw new ValidationError(vErrors); "):(s+=" validate.errors = vErrors; ",s+=" return errors === 0; "),s+=" }; return validate;"):s+=" var "+x+" = errors === errs_"+f+";";function ie(Pe){for(var je=Pe.rules,de=0;de<je.length;de++)if(Oe(je[de]))return!0}function Oe(Pe){return e.schema[Pe.keyword]!==void 0||Pe.implements&&tt(Pe)}function tt(Pe){for(var je=Pe.implements,de=0;de<je.length;de++)if(e.schema[je[de]]!==void 0)return!0}return s}});var s5n=E((NAl,o5n)=>{"use strict";var iJe=rJe(),sJe=Dj(),n5n=nJe(),L8s=_Qt(),r5n=xQt(),U8s=sJe.ucs2length,F8s=noe(),Q8s=n5n.Validation;o5n.exports=CQt;function CQt(t,e,r,o){var s=this,a=this._opts,i=[void 0],n={},c=[],u={},f=[],d={},p=[];e=e||{schema:t,refVal:i,refs:n};var h=q8s.call(this,t,e,o),m=this._compilations[h.index];if(h.compiling)return m.callValidate=b;var y=this._formats,g=this.RULES;try{var A=x(t,e,r,o);m.validate=A;var v=m.callValidate;return v&&(v.schema=A.schema,v.errors=null,v.refs=A.refs,v.refVal=A.refVal,v.root=A.root,v.$async=A.$async,a.sourceCode&&(v.source=A.source)),A}finally{H8s.call(this,t,e,o)}function b(){var B=m.validate,P=B.apply(this,arguments);return b.errors=B.errors,P}function x(B,P,q,F){var j=!P||P&&P.schema==B;if(P.schema!=e.schema)return CQt.call(s,B,P,q,F);var H=B.$async===!0,U=r5n({isTop:!0,schema:B,isRoot:j,baseId:F,root:P,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n5n.MissingRef,RULES:g,validate:r5n,util:sJe,resolve:iJe,resolveRef:T,usePattern:N,useDefault:O,useCustomRule:M,opts:a,formats:y,logger:s.logger,self:s});U=oJe(i,j8s)+oJe(c,V8s)+oJe(f,G8s)+oJe(p,$8s)+U,a.processCode&&(U=a.processCode(U,B));var $;try{var Y=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",U);$=Y(s,g,y,e,i,f,p,F8s,U8s,Q8s),i[0]=$}catch(se){throw s.logger.error("Error compiling schema, function code:",U),se}return $.schema=B,$.errors=null,$.refs=n,$.refVal=i,$.root=j?$:P,H&&($.$async=!0),a.sourceCode===!0&&($.source={code:U,patterns:c,defaults:f}),$}function T(B,P,q){P=iJe.url(B,P);var F=n[P],j,H;if(F!==void 0)return j=i[F],H="refVal["+F+"]",w(j,H);if(!q&&e.refs){var U=e.refs[P];if(U!==void 0)return j=e.refVal[U],H=D(P,j),w(j,H)}H=D(P);var $=iJe.call(s,x,e,P);if($===void 0){var Y=r&&r[P];Y&&($=iJe.inlineRef(Y,a.inlineRefs)?Y:CQt.call(s,Y,e,r,B))}if($===void 0)I(P);else return k(P,$),w($,H)}function D(B,P){var q=i.length;return i[q]=P,n[B]=q,"refVal"+q}function I(B){delete n[B]}function k(B,P){var q=n[B];i[q]=P}function w(B,P){return typeof B=="object"||typeof B=="boolean"?{code:P,schema:B,inline:!0}:{code:P,$async:B&&!!B.$async}}function N(B){var P=u[B];return P===void 0&&(P=u[B]=c.length,c[P]=B),"pattern"+P}function O(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return sJe.toQuotedString(B);case"object":if(B===null)return"null";var P=L8s(B),q=d[P];return q===void 0&&(q=d[P]=f.length,f[q]=B),"default"+q}}function M(B,P,q,F){if(s._opts.validateSchema!==!1){var j=B.definition.dependencies;if(j&&!j.every(function(ne){return Object.prototype.hasOwnProperty.call(q,ne)}))throw new Error("parent schema must have all required keywords: "+j.join(","));var H=B.definition.validateSchema;if(H){var U=H(P);if(!U){var $="keyword schema is invalid: "+s.errorsText(H.errors);if(s._opts.validateSchema=="log")s.logger.error($);else throw new Error($)}}}var Y=B.definition.compile,se=B.definition.inline,J=B.definition.macro,fe;if(Y)fe=Y.call(s,P,q,F);else if(J)fe=J.call(s,P,q,F),a.validateSchema!==!1&&s.validateSchema(fe,!0);else if(se)fe=se.call(s,F,B.keyword,P,q);else if(fe=B.definition.validate,!fe)return;if(fe===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');var Ae=p.length;return p[Ae]=fe,{code:"customRule"+Ae,validate:fe}}}function q8s(t,e,r){var o=i5n.call(this,t,e,r);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:t,root:e,baseId:r},{index:o,compiling:!1})}function H8s(t,e,r){var o=i5n.call(this,t,e,r);o>=0&&this._compilations.splice(o,1)}function i5n(t,e,r){for(var o=0;o<this._compilations.length;o++){var s=this._compilations[o];if(s.schema==t&&s.root==e&&s.baseId==r)return o}return-1}function V8s(t,e){return"var pattern"+t+" = new RegExp("+sJe.toQuotedString(e[t])+");"}function G8s(t){return"var default"+t+" = defaults["+t+"];"}function j8s(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function $8s(t){return"var customRule"+t+" = customRules["+t+"];"}function oJe(t,e){if(!t.length)return"";for(var r="",o=0;o<t.length;o++)r+=e(o,t);return r}});var c5n=E((PAl,a5n)=>{"use strict";var aJe=a5n.exports=function(){this._cache={}};aJe.prototype.put=function(e,r){this._cache[e]=r};aJe.prototype.get=function(e){return this._cache[e]};aJe.prototype.del=function(e){delete this._cache[e]};aJe.prototype.clear=function(){this._cache={}}});var b5n=E((kAl,v5n)=>{"use strict";var W8s=Dj(),z8s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,K8s=[0,31,28,31,30,31,30,31,31,30,31,30,31],Y8s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,l5n=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,J8s=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,X8s=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u5n=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,f5n=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d5n=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p5n=/^(?:\/(?:[^~/]|~0|~1)*)*$/,h5n=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,m5n=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;v5n.exports=cJe;function cJe(t){return t=t=="full"?"full":"fast",W8s.copy(cJe[t])}cJe.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u5n,url:f5n,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:l5n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:A5n,uuid:d5n,"json-pointer":p5n,"json-pointer-uri-fragment":h5n,"relative-json-pointer":m5n};cJe.full={date:g5n,time:y5n,"date-time":tDs,uri:nDs,"uri-reference":X8s,"uri-template":u5n,url:f5n,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:l5n,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:A5n,uuid:d5n,"json-pointer":p5n,"json-pointer-uri-fragment":h5n,"relative-json-pointer":m5n};function Z8s(t){return t%4===0&&(t%100!==0||t%400===0)}function g5n(t){var e=t.match(z8s);if(!e)return!1;var r=+e[1],o=+e[2],s=+e[3];return o>=1&&o<=12&&s>=1&&s<=(o==2&&Z8s(r)?29:K8s[o])}function y5n(t,e){var r=t.match(Y8s);if(!r)return!1;var o=r[1],s=r[2],a=r[3],i=r[5];return(o<=23&&s<=59&&a<=59||o==23&&s==59&&a==60)&&(!e||i)}var eDs=/t|\s/i;function tDs(t){var e=t.split(eDs);return e.length==2&&g5n(e[0])&&y5n(e[1],!0)}var rDs=/\/|:/;function nDs(t){return rDs.test(t)&&J8s.test(t)}var iDs=/[^\\]\\Z/;function A5n(t){if(iDs.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var S5n=E((BAl,E5n)=>{"use strict";E5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,f="data"+(i||""),d="valid"+a,p,h;if(n=="#"||n=="#/")e.isRoot?(p=e.async,h="validate"):(p=e.root.schema.$async===!0,h="root.refVal[0]");else{var m=e.resolveRef(e.baseId,n,e.isRoot);if(m===void 0){var y=e.MissingRefError.message(e.baseId,n);if(e.opts.missingRefs=="fail"){e.logger.error(y);var g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(n)+"' } ",e.opts.messages!==!1&&(s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(n)+"' "),e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(n)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),s+=" } "):s+=" {} ";var A=s;s=g.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(s+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(y),u&&(s+=" if (true) { ");else throw new e.MissingRefError(e.baseId,n,y)}else if(m.inline){var v=e.util.copy(e);v.level++;var b="valid"+v.level;v.schema=m.schema,v.schemaPath="",v.errSchemaPath=n;var x=e.validate(v).replace(/validate\.schema/g,m.code);s+=" "+x+" ",u&&(s+=" if ("+b+") { ")}else p=m.$async===!0||e.async&&m.$async!==!1,h=m.code}if(h){var g=g||[];g.push(s),s="",e.opts.passContext?s+=" "+h+".call(this, ":s+=" "+h+"( ",s+=" "+f+", (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var T=i?"data"+(i-1||""):"parentData",D=i?e.dataPathArr[i]:"parentDataProperty";s+=" , "+T+" , "+D+", rootData) ";var I=s;if(s=g.pop(),p){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(s+=" var "+d+"; "),s+=" try { await "+I+"; ",u&&(s+=" "+d+" = true; "),s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(s+=" "+d+" = false; "),s+=" } ",u&&(s+=" if ("+d+") { ")}else s+=" if (!"+I+") { if (vErrors === null) vErrors = "+h+".errors; else vErrors = vErrors.concat("+h+".errors); errors = vErrors.length; } ",u&&(s+=" else { ")}return s}});var x5n=E((MAl,_5n)=>{"use strict";_5n.exports=function(e,r,o){var s=" ",a=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u=e.util.copy(e),f="";u.level++;var d="valid"+u.level,p=u.baseId,h=!0,m=a;if(m)for(var y,g=-1,A=m.length-1;g<A;)y=m[g+=1],(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))&&(h=!1,u.schema=y,u.schemaPath=i+"["+g+"]",u.errSchemaPath=n+"/"+g,s+=" "+e.validate(u)+" ",u.baseId=p,c&&(s+=" if ("+d+") { ",f+="}"));return c&&(h?s+=" if (true) { ":s+=" "+f.slice(0,-1)+" "),s}});var T5n=E((LAl,C5n)=>{"use strict";C5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A=n.every(function(k){return e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:e.util.schemaHasRules(k,e.RULES.all)});if(A){var v=m.baseId;s+=" var "+h+" = errors; var "+p+" = false; ";var b=e.compositeRule;e.compositeRule=m.compositeRule=!0;var x=n;if(x)for(var T,D=-1,I=x.length-1;D<I;)T=x[D+=1],m.schema=T,m.schemaPath=c+"["+D+"]",m.errSchemaPath=u+"/"+D,s+=" "+e.validate(m)+" ",m.baseId=v,s+=" "+p+" = "+p+" || "+g+"; if (!"+p+") { ",y+="}";e.compositeRule=m.compositeRule=b,s+=" "+y+" if (!"+p+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else f&&(s+=" if (true) { ");return s}});var I5n=E((UAl,w5n)=>{"use strict";w5n.exports=function(e,r,o){var s=" ",a=e.schema[r],i=e.errSchemaPath+"/"+r,n=!e.opts.allErrors,c=e.util.toQuotedString(a);return e.opts.$comment===!0?s+=" console.log("+c+");":typeof e.opts.$comment=="function"&&(s+=" self._opts.$comment("+c+", "+e.util.toQuotedString(i)+", validate.root.schema);"),s}});var O5n=E((FAl,D5n)=>{"use strict";D5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n,h||(s+=" var schema"+a+" = validate.schema"+c+";"),s+="var "+p+" = equal("+d+", schema"+a+"); if (!"+p+") { ";var y=y||[];y.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+a+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to constant' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var g=s;return s=y.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",f&&(s+=" else { "),s}});var N5n=E((QAl,R5n)=>{"use strict";R5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A="i"+a,v=m.dataLevel=e.dataLevel+1,b="data"+v,x=e.baseId,T=e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all);if(s+="var "+h+" = errors;var "+p+";",T){var D=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=n,m.schemaPath=c,m.errSchemaPath=u,s+=" var "+g+" = false; for (var "+A+" = 0; "+A+" < "+d+".length; "+A+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var I=d+"["+A+"]";m.dataPathArr[v]=A;var k=e.validate(m);m.baseId=x,e.util.varOccurences(k,b)<2?s+=" "+e.util.varReplace(k,b,I)+" ":s+=" var "+b+" = "+I+"; "+k+" ",s+=" if ("+g+") break; } ",e.compositeRule=m.compositeRule=D,s+=" "+y+" if (!"+g+") {"}else s+=" if ("+d+".length == 0) {";var w=w||[];w.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should contain a valid item' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var N=s;return s=w.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+N+"]); ":s+=" validate.errors = ["+N+"]; return false; ":s+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { ",T&&(s+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(s+=" } "),s}});var k5n=E((qAl,P5n)=>{"use strict";P5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g={},A={},v=e.opts.ownProperties;for(D in n)if(D!="__proto__"){var b=n[D],x=Array.isArray(b)?A:g;x[D]=b}s+="var "+p+" = errors;";var T=e.errorPath;s+="var missing"+a+";";for(var D in A)if(x=A[D],x.length){if(s+=" if ( "+d+e.util.getProperty(D)+" !== undefined ",v&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(D)+"') "),f){s+=" && ( ";var I=x;if(I)for(var k,w=-1,N=I.length-1;w<N;){k=I[w+=1],w&&(s+=" || ");var O=e.util.getProperty(k),M=d+O;s+=" ( ( "+M+" === undefined ",v&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(k)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:O)+") ) "}s+=")) { ";var B="missing"+a,P="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(T,B,!0):T+" + "+B);var q=q||[];q.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(D)+"', missingProperty: '"+P+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",x.length==1?s+="property "+e.util.escapeQuotes(x[0]):s+="properties "+e.util.escapeQuotes(x.join(", ")),s+=" when property "+e.util.escapeQuotes(D)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var F=s;s=q.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+F+"]); ":s+=" validate.errors = ["+F+"]; return false; ":s+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{s+=" ) { ";var j=x;if(j)for(var k,H=-1,U=j.length-1;H<U;){k=j[H+=1];var O=e.util.getProperty(k),P=e.util.escapeQuotes(k),M=d+O;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,k,e.opts.jsonPointers)),s+=" if ( "+M+" === undefined ",v&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(k)+"') "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(D)+"', missingProperty: '"+P+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(s+=" , message: 'should have ",x.length==1?s+="property "+e.util.escapeQuotes(x[0]):s+="properties "+e.util.escapeQuotes(x.join(", ")),s+=" when property "+e.util.escapeQuotes(D)+" is present' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}s+=" } ",f&&(m+="}",s+=" else { ")}e.errorPath=T;var $=h.baseId;for(var D in g){var b=g[D];(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))&&(s+=" "+y+" = true; if ( "+d+e.util.getProperty(D)+" !== undefined ",v&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(D)+"') "),s+=") { ",h.schema=b,h.schemaPath=c+e.util.getProperty(D),h.errSchemaPath=u+"/"+e.util.escapeFragment(D),s+=" "+e.validate(h)+" ",h.baseId=$,s+=" } ",f&&(s+=" if ("+y+") { ",m+="}"))}return f&&(s+=" "+m+" if ("+p+" == errors) {"),s}});var M5n=E((HAl,B5n)=>{"use strict";B5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n;var y="i"+a,g="schema"+a;h||(s+=" var "+g+" = validate.schema"+c+";"),s+="var "+p+";",h&&(s+=" if (schema"+a+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+a+")) "+p+" = false; else {"),s+=""+p+" = false;for (var "+y+"=0; "+y+"<"+g+".length; "+y+"++) if (equal("+d+", "+g+"["+y+"])) { "+p+" = true; break; }",h&&(s+=" } "),s+=" if (!"+p+") { ";var A=A||[];A.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+a+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var v=s;return s=A.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" }",f&&(s+=" else { "),s}});var U5n=E((VAl,L5n)=>{"use strict";L5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||"");if(e.opts.format===!1)return f&&(s+=" if (true) { "),s;var p=e.opts.$data&&n&&n.$data,h;p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n;var m=e.opts.unknownFormats,y=Array.isArray(m);if(p){var g="format"+a,A="isObject"+a,v="formatType"+a;s+=" var "+g+" = formats["+h+"]; var "+A+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+v+" = "+A+" && "+g+".type || 'string'; if ("+A+") { ",e.async&&(s+=" var async"+a+" = "+g+".async; "),s+=" "+g+" = "+g+".validate; } if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),s+=" (",m!="ignore"&&(s+=" ("+h+" && !"+g+" ",y&&(s+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),s+=") || "),s+=" ("+g+" && "+v+" == '"+o+"' && !(typeof "+g+" == 'function' ? ",e.async?s+=" (async"+a+" ? await "+g+"("+d+") : "+g+"("+d+")) ":s+=" "+g+"("+d+") ",s+=" : "+g+".test("+d+"))))) {"}else{var g=e.formats[n];if(!g){if(m=="ignore")return e.logger.warn('unknown format "'+n+'" ignored in schema at path "'+e.errSchemaPath+'"'),f&&(s+=" if (true) { "),s;if(y&&m.indexOf(n)>=0)return f&&(s+=" if (true) { "),s;throw new Error('unknown format "'+n+'" is used in schema at path "'+e.errSchemaPath+'"')}var A=typeof g=="object"&&!(g instanceof RegExp)&&g.validate,v=A&&g.type||"string";if(A){var b=g.async===!0;g=g.validate}if(v!=o)return f&&(s+=" if (true) { "),s;if(b){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(n)+".validate";s+=" if (!(await "+x+"("+d+"))) { "}else{s+=" if (! ";var x="formats"+e.util.getProperty(n);A&&(x+=".validate"),typeof g=="function"?s+=" "+x+"("+d+") ":s+=" "+x+".test("+d+") ",s+=") { "}}var T=T||[];T.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",p?s+=""+h:s+=""+e.util.toQuotedString(n),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match format "`,p?s+="' + "+h+" + '":s+=""+e.util.escapeQuotes(n),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+e.util.toQuotedString(n),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var D=s;return s=T.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+D+"]); ":s+=" validate.errors = ["+D+"]; return false; ":s+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",f&&(s+=" else { "),s}});var Q5n=E((GAl,F5n)=>{"use strict";F5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e);m.level++;var y="valid"+m.level,g=e.schema.then,A=e.schema.else,v=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),b=A!==void 0&&(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all)),x=m.baseId;if(v||b){var T;m.createErrors=!1,m.schema=n,m.schemaPath=c,m.errSchemaPath=u,s+=" var "+h+" = errors; var "+p+" = true; ";var D=e.compositeRule;e.compositeRule=m.compositeRule=!0,s+=" "+e.validate(m)+" ",m.baseId=x,m.createErrors=!0,s+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=m.compositeRule=D,v?(s+=" if ("+y+") { ",m.schema=e.schema.then,m.schemaPath=e.schemaPath+".then",m.errSchemaPath=e.errSchemaPath+"/then",s+=" "+e.validate(m)+" ",m.baseId=x,s+=" "+p+" = "+y+"; ",v&&b?(T="ifClause"+a,s+=" var "+T+" = 'then'; "):T="'then'",s+=" } ",b&&(s+=" else { ")):s+=" if (!"+y+") { ",b&&(m.schema=e.schema.else,m.schemaPath=e.schemaPath+".else",m.errSchemaPath=e.errSchemaPath+"/else",s+=" "+e.validate(m)+" ",m.baseId=x,s+=" "+p+" = "+y+"; ",v&&b?(T="ifClause"+a,s+=" var "+T+" = 'else'; "):T="'else'",s+=" } "),s+=" if (!"+p+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+T+" } ",e.opts.messages!==!1&&(s+=` , message: 'should match "' + `+T+` + '" schema' `),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } ",f&&(s+=" else { ")}else f&&(s+=" if (true) { ");return s}});var H5n=E((jAl,q5n)=>{"use strict";q5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A="i"+a,v=m.dataLevel=e.dataLevel+1,b="data"+v,x=e.baseId;if(s+="var "+h+" = errors;var "+p+";",Array.isArray(n)){var T=e.schema.additionalItems;if(T===!1){s+=" "+p+" = "+d+".length <= "+n.length+"; ";var D=u;u=e.errSchemaPath+"/additionalItems",s+=" if (!"+p+") { ";var I=I||[];I.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n.length+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have more than "+n.length+" items' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var k=s;s=I.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+k+"]); ":s+=" validate.errors = ["+k+"]; return false; ":s+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u=D,f&&(y+="}",s+=" else { ")}var w=n;if(w){for(var N,O=-1,M=w.length-1;O<M;)if(N=w[O+=1],e.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:e.util.schemaHasRules(N,e.RULES.all)){s+=" "+g+" = true; if ("+d+".length > "+O+") { ";var B=d+"["+O+"]";m.schema=N,m.schemaPath=c+"["+O+"]",m.errSchemaPath=u+"/"+O,m.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,!0),m.dataPathArr[v]=O;var P=e.validate(m);m.baseId=x,e.util.varOccurences(P,b)<2?s+=" "+e.util.varReplace(P,b,B)+" ":s+=" var "+b+" = "+B+"; "+P+" ",s+=" } ",f&&(s+=" if ("+g+") { ",y+="}")}}if(typeof T=="object"&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))){m.schema=T,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",s+=" "+g+" = true; if ("+d+".length > "+n.length+") { for (var "+A+" = "+n.length+"; "+A+" < "+d+".length; "+A+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var B=d+"["+A+"]";m.dataPathArr[v]=A;var P=e.validate(m);m.baseId=x,e.util.varOccurences(P,b)<2?s+=" "+e.util.varReplace(P,b,B)+" ":s+=" var "+b+" = "+B+"; "+P+" ",f&&(s+=" if (!"+g+") break; "),s+=" } } ",f&&(s+=" if ("+g+") { ",y+="}")}}else if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){m.schema=n,m.schemaPath=c,m.errSchemaPath=u,s+=" for (var "+A+" = 0; "+A+" < "+d+".length; "+A+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var B=d+"["+A+"]";m.dataPathArr[v]=A;var P=e.validate(m);m.baseId=x,e.util.varOccurences(P,b)<2?s+=" "+e.util.varReplace(P,b,B)+" ":s+=" var "+b+" = "+B+"; "+P+" ",f&&(s+=" if (!"+g+") break; "),s+=" }"}return f&&(s+=" "+y+" if ("+h+" == errors) {"),s}});var TQt=E(($Al,V5n)=>{"use strict";V5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,x,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n;var m=r=="maximum",y=m?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[y],A=e.opts.$data&&g&&g.$data,v=m?"<":">",b=m?">":"<",x=void 0;if(!(p||typeof n=="number"||n===void 0))throw new Error(r+" must be number");if(!(A||g===void 0||typeof g=="number"||typeof g=="boolean"))throw new Error(y+" must be number or boolean");if(A){var T=e.util.getData(g.$data,i,e.dataPathArr),D="exclusive"+a,I="exclType"+a,k="exclIsNumber"+a,w="op"+a,N="' + "+w+" + '";s+=" var schemaExcl"+a+" = "+T+"; ",T="schemaExcl"+a,s+=" var "+D+"; var "+I+" = typeof "+T+"; if ("+I+" != 'boolean' && "+I+" != 'undefined' && "+I+" != 'number') { ";var x=y,O=O||[];O.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: '"+y+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var M=s;s=O.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" "+I+" == 'number' ? ( ("+D+" = "+h+" === undefined || "+T+" "+v+"= "+h+") ? "+d+" "+b+"= "+T+" : "+d+" "+b+" "+h+" ) : ( ("+D+" = "+T+" === true) ? "+d+" "+b+"= "+h+" : "+d+" "+b+" "+h+" ) || "+d+" !== "+d+") { var op"+a+" = "+D+" ? '"+v+"' : '"+v+"='; ",n===void 0&&(x=y,u=e.errSchemaPath+"/"+y,h=T,p=A)}else{var k=typeof g=="number",N=v;if(k&&p){var w="'"+N+"'";s+=" if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" ( "+h+" === undefined || "+g+" "+v+"= "+h+" ? "+d+" "+b+"= "+g+" : "+d+" "+b+" "+h+" ) || "+d+" !== "+d+") { "}else{k&&n===void 0?(D=!0,x=y,u=e.errSchemaPath+"/"+y,h=g,b+="="):(k&&(h=Math[m?"min":"max"](g,n)),g===(k?h:!0)?(D=!0,x=y,u=e.errSchemaPath+"/"+y,b+="="):(D=!1,N+="="));var w="'"+N+"'";s+=" if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" "+d+" "+b+" "+h+" || "+d+" !== "+d+") { "}}x=x||r;var O=O||[];O.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+w+", limit: "+h+", exclusive: "+D+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be "+N+" ",p?s+="' + "+h:s+=""+h+"'"),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var M=s;return s=O.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",f&&(s+=" else { "),s}});var wQt=E((WAl,G5n)=>{"use strict";G5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,y,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");var m=r=="maxItems"?">":"<";s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" "+d+".length "+m+" "+h+") { ";var y=r,g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(y||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",r=="maxItems"?s+="more":s+="fewer",s+=" than ",p?s+="' + "+h+" + '":s+=""+n,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var A=s;return s=g.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var IQt=E((zAl,j5n)=>{"use strict";j5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,y,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");var m=r=="maxLength"?">":"<";s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),e.opts.unicode===!1?s+=" "+d+".length ":s+=" ucs2length("+d+") ",s+=" "+m+" "+h+") { ";var y=r,g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(y||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be ",r=="maxLength"?s+="longer":s+="shorter",s+=" than ",p?s+="' + "+h+" + '":s+=""+n,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var A=s;return s=g.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var DQt=E((KAl,$5n)=>{"use strict";$5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,y,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");var m=r=="maxProperties"?">":"<";s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "),s+=" Object.keys("+d+").length "+m+" "+h+") { ";var y=r,g=g||[];g.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(y||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have ",r=="maxProperties"?s+="more":s+="fewer",s+=" than ",p?s+="' + "+h+" + '":s+=""+n,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var A=s;return s=g.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+A+"]); ":s+=" validate.errors = ["+A+"]; return false; ":s+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var z5n=E((YAl,W5n)=>{"use strict";W5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;if(p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n,!(p||typeof n=="number"))throw new Error(r+" must be number");s+="var division"+a+";if (",p&&(s+=" "+h+" !== undefined && ( typeof "+h+" != 'number' || "),s+=" (division"+a+" = "+d+" / "+h+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+a+" !== parseInt(division"+a+") ",s+=" ) ",p&&(s+=" ) "),s+=" ) { ";var m=m||[];m.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+h+" } ",e.opts.messages!==!1&&(s+=" , message: 'should be multiple of ",p?s+="' + "+h:s+=""+h+"'"),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var y=s;return s=m.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+y+"]); ":s+=" validate.errors = ["+y+"]; return false; ":s+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var Y5n=E((JAl,K5n)=>{"use strict";K5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e);h.level++;var m="valid"+h.level;if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){h.schema=n,h.schemaPath=c,h.errSchemaPath=u,s+=" var "+p+" = errors; ";var y=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1;var g;h.opts.allErrors&&(g=h.opts.allErrors,h.opts.allErrors=!1),s+=" "+e.validate(h)+" ",h.createErrors=!0,g&&(h.opts.allErrors=g),e.compositeRule=h.compositeRule=y,s+=" if ("+m+") { ";var A=A||[];A.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var v=s;s=A.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(s+=" } ")}else s+=" var err = ",e.createErrors!==!1?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(s+=" , message: 'should NOT be valid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(s+=" if (false) { ");return s}});var X5n=E((XAl,J5n)=>{"use strict";J5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h="errs__"+a,m=e.util.copy(e),y="";m.level++;var g="valid"+m.level,A=m.baseId,v="prevValid"+a,b="passingSchemas"+a;s+="var "+h+" = errors , "+v+" = false , "+p+" = false , "+b+" = null; ";var x=e.compositeRule;e.compositeRule=m.compositeRule=!0;var T=n;if(T)for(var D,I=-1,k=T.length-1;I<k;)D=T[I+=1],(e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:e.util.schemaHasRules(D,e.RULES.all))?(m.schema=D,m.schemaPath=c+"["+I+"]",m.errSchemaPath=u+"/"+I,s+=" "+e.validate(m)+" ",m.baseId=A):s+=" var "+g+" = true; ",I&&(s+=" if ("+g+" && "+v+") { "+p+" = false; "+b+" = ["+b+", "+I+"]; } else { ",y+="}"),s+=" if ("+g+") { "+p+" = "+v+" = true; "+b+" = "+I+"; }";return e.compositeRule=m.compositeRule=x,s+=""+y+"if (!"+p+") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+b+" } ",e.opts.messages!==!1&&(s+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(s+=" } "),s}});var eIn=E((ZAl,Z5n)=>{"use strict";Z5n.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p=e.opts.$data&&n&&n.$data,h;p?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",h="schema"+a):h=n;var m=p?"(new RegExp("+h+"))":e.usePattern(n);s+="if ( ",p&&(s+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),s+=" !"+m+".test("+d+") ) { ";var y=y||[];y.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",p?s+=""+h:s+=""+e.util.toQuotedString(n),s+=" } ",e.opts.messages!==!1&&(s+=` , message: 'should match pattern "`,p?s+="' + "+h+" + '":s+=""+e.util.escapeQuotes(n),s+=`"' `),e.opts.verbose&&(s+=" , schema: ",p?s+="validate.schema"+c:s+=""+e.util.toQuotedString(n),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var g=s;return s=y.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",f&&(s+=" else { "),s}});var rIn=E((e3l,tIn)=>{"use strict";tIn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g="key"+a,A="idx"+a,v=h.dataLevel=e.dataLevel+1,b="data"+v,x="dataProperties"+a,T=Object.keys(n||{}).filter(H),D=e.schema.patternProperties||{},I=Object.keys(D).filter(H),k=e.schema.additionalProperties,w=T.length||I.length,N=k===!1,O=typeof k=="object"&&Object.keys(k).length,M=e.opts.removeAdditional,B=N||O||M,P=e.opts.ownProperties,q=e.baseId,F=e.schema.required;if(F&&!(e.opts.$data&&F.$data)&&F.length<e.opts.loopRequired)var j=e.util.toHash(F);function H(Re){return Re!=="__proto__"}if(s+="var "+p+" = errors;var "+y+" = true;",P&&(s+=" var "+x+" = undefined;"),B){if(P?s+=" "+x+" = "+x+" || Object.keys("+d+"); for (var "+A+"=0; "+A+"<"+x+".length; "+A+"++) { var "+g+" = "+x+"["+A+"]; ":s+=" for (var "+g+" in "+d+") { ",w){if(s+=" var isAdditional"+a+" = !(false ",T.length)if(T.length>8)s+=" || validate.schema"+c+".hasOwnProperty("+g+") ";else{var U=T;if(U)for(var $,Y=-1,se=U.length-1;Y<se;)$=U[Y+=1],s+=" || "+g+" == "+e.util.toQuotedString($)+" "}if(I.length){var J=I;if(J)for(var fe,Ae=-1,ne=J.length-1;Ae<ne;)fe=J[Ae+=1],s+=" || "+e.usePattern(fe)+".test("+g+") "}s+=" ); if (isAdditional"+a+") { "}if(M=="all")s+=" delete "+d+"["+g+"]; ";else{var ge=e.errorPath,ee="' + "+g+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers)),N)if(M)s+=" delete "+d+"["+g+"]; ";else{s+=" "+y+" = false; ";var X=u;u=e.errSchemaPath+"/additionalProperties";var ue=ue||[];ue.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+ee+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is an invalid additional property":s+="should NOT have additional properties",s+="' "),e.opts.verbose&&(s+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var oe=s;s=ue.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+oe+"]); ":s+=" validate.errors = ["+oe+"]; return false; ":s+=" var err = "+oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=X,f&&(s+=" break; ")}else if(O)if(M=="failing"){s+=" var "+p+" = errors; ";var ae=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=k,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var pe=d+"["+g+"]";h.dataPathArr[v]=g;var te=e.validate(h);h.baseId=q,e.util.varOccurences(te,b)<2?s+=" "+e.util.varReplace(te,b,pe)+" ":s+=" var "+b+" = "+pe+"; "+te+" ",s+=" if (!"+y+") { errors = "+p+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+g+"]; } ",e.compositeRule=h.compositeRule=ae}else{h.schema=k,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var pe=d+"["+g+"]";h.dataPathArr[v]=g;var te=e.validate(h);h.baseId=q,e.util.varOccurences(te,b)<2?s+=" "+e.util.varReplace(te,b,pe)+" ":s+=" var "+b+" = "+pe+"; "+te+" ",f&&(s+=" if (!"+y+") break; ")}e.errorPath=ge}w&&(s+=" } "),s+=" } ",f&&(s+=" if ("+y+") { ",m+="}")}var z=e.opts.useDefaults&&!e.compositeRule;if(T.length){var K=T;if(K)for(var $,Ee=-1,be=K.length-1;Ee<be;){$=K[Ee+=1];var ie=n[$];if(e.opts.strictKeywords?typeof ie=="object"&&Object.keys(ie).length>0||ie===!1:e.util.schemaHasRules(ie,e.RULES.all)){var Oe=e.util.getProperty($),pe=d+Oe,tt=z&&ie.default!==void 0;h.schema=ie,h.schemaPath=c+Oe,h.errSchemaPath=u+"/"+e.util.escapeFragment($),h.errorPath=e.util.getPath(e.errorPath,$,e.opts.jsonPointers),h.dataPathArr[v]=e.util.toQuotedString($);var te=e.validate(h);if(h.baseId=q,e.util.varOccurences(te,b)<2){te=e.util.varReplace(te,b,pe);var Pe=pe}else{var Pe=b;s+=" var "+b+" = "+pe+"; "}if(tt)s+=" "+te+" ";else{if(j&&j[$]){s+=" if ( "+Pe+" === undefined ",P&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes($)+"') "),s+=") { "+y+" = false; ";var ge=e.errorPath,X=u,je=e.util.escapeQuotes($);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ge,$,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var ue=ue||[];ue.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+je+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+je+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var oe=s;s=ue.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+oe+"]); ":s+=" validate.errors = ["+oe+"]; return false; ":s+=" var err = "+oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=X,e.errorPath=ge,s+=" } else { "}else f?(s+=" if ( "+Pe+" === undefined ",P&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes($)+"') "),s+=") { "+y+" = true; } else { "):(s+=" if ("+Pe+" !== undefined ",P&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes($)+"') "),s+=" ) { ");s+=" "+te+" } "}}f&&(s+=" if ("+y+") { ",m+="}")}}if(I.length){var de=I;if(de)for(var fe,Ce=-1,De=de.length-1;Ce<De;){fe=de[Ce+=1];var ie=D[fe];if(e.opts.strictKeywords?typeof ie=="object"&&Object.keys(ie).length>0||ie===!1:e.util.schemaHasRules(ie,e.RULES.all)){h.schema=ie,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(fe),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(fe),P?s+=" "+x+" = "+x+" || Object.keys("+d+"); for (var "+A+"=0; "+A+"<"+x+".length; "+A+"++) { var "+g+" = "+x+"["+A+"]; ":s+=" for (var "+g+" in "+d+") { ",s+=" if ("+e.usePattern(fe)+".test("+g+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var pe=d+"["+g+"]";h.dataPathArr[v]=g;var te=e.validate(h);h.baseId=q,e.util.varOccurences(te,b)<2?s+=" "+e.util.varReplace(te,b,pe)+" ":s+=" var "+b+" = "+pe+"; "+te+" ",f&&(s+=" if (!"+y+") break; "),s+=" } ",f&&(s+=" else "+y+" = true; "),s+=" } ",f&&(s+=" if ("+y+") { ",m+="}")}}}return f&&(s+=" "+m+" if ("+p+" == errors) {"),s}});var iIn=E((t3l,nIn)=>{"use strict";nIn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="errs__"+a,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level;if(s+="var "+p+" = errors;",e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){h.schema=n,h.schemaPath=c,h.errSchemaPath=u;var g="key"+a,A="idx"+a,v="i"+a,b="' + "+g+" + '",x=h.dataLevel=e.dataLevel+1,T="data"+x,D="dataProperties"+a,I=e.opts.ownProperties,k=e.baseId;I&&(s+=" var "+D+" = undefined; "),I?s+=" "+D+" = "+D+" || Object.keys("+d+"); for (var "+A+"=0; "+A+"<"+D+".length; "+A+"++) { var "+g+" = "+D+"["+A+"]; ":s+=" for (var "+g+" in "+d+") { ",s+=" var startErrs"+a+" = errors; ";var w=g,N=e.compositeRule;e.compositeRule=h.compositeRule=!0;var O=e.validate(h);h.baseId=k,e.util.varOccurences(O,T)<2?s+=" "+e.util.varReplace(O,T,w)+" ":s+=" var "+T+" = "+w+"; "+O+" ",e.compositeRule=h.compositeRule=N,s+=" if (!"+y+") { for (var "+v+"=startErrs"+a+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+g+"; } var err = ",e.createErrors!==!1?(s+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+b+"' } ",e.opts.messages!==!1&&(s+=" , message: 'property name \\'"+b+"\\' is invalid' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),f&&(s+=" break; "),s+=" } }"}return f&&(s+=" "+m+" if ("+p+" == errors) {"),s}});var sIn=E((r3l,oIn)=>{"use strict";oIn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n;var y="schema"+a;if(!h)if(n.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var g=[],A=n;if(A)for(var v,b=-1,x=A.length-1;b<x;){v=A[b+=1];var T=e.schema.properties[v];T&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))||(g[g.length]=v)}}else var g=n;if(h||g.length){var D=e.errorPath,I=h||g.length>=e.opts.loopRequired,k=e.opts.ownProperties;if(f)if(s+=" var missing"+a+"; ",I){h||(s+=" var "+y+" = validate.schema"+c+"; ");var w="i"+a,N="schema"+a+"["+w+"]",O="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,N,e.opts.jsonPointers)),s+=" var "+p+" = true; ",h&&(s+=" if (schema"+a+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+a+")) "+p+" = false; else {"),s+=" for (var "+w+" = 0; "+w+" < "+y+".length; "+w+"++) { "+p+" = "+d+"["+y+"["+w+"]] !== undefined ",k&&(s+=" && Object.prototype.hasOwnProperty.call("+d+", "+y+"["+w+"]) "),s+="; if (!"+p+") break; } ",h&&(s+=" } "),s+=" if (!"+p+") { ";var M=M||[];M.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var B=s;s=M.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+B+"]); ":s+=" validate.errors = ["+B+"]; return false; ":s+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else{s+=" if ( ";var P=g;if(P)for(var q,w=-1,F=P.length-1;w<F;){q=P[w+=1],w&&(s+=" || ");var j=e.util.getProperty(q),H=d+j;s+=" ( ( "+H+" === undefined ",k&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(q)+"') "),s+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?q:j)+") ) "}s+=") { ";var N="missing"+a,O="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(D,N,!0):D+" + "+N);var M=M||[];M.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var B=s;s=M.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+B+"]); ":s+=" validate.errors = ["+B+"]; return false; ":s+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { "}else if(I){h||(s+=" var "+y+" = validate.schema"+c+"; ");var w="i"+a,N="schema"+a+"["+w+"]",O="' + "+N+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(D,N,e.opts.jsonPointers)),h&&(s+=" if ("+y+" && !Array.isArray("+y+")) { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+y+" !== undefined) { "),s+=" for (var "+w+" = 0; "+w+" < "+y+".length; "+w+"++) { if ("+d+"["+y+"["+w+"]] === undefined ",k&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", "+y+"["+w+"]) "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(s+=" } ")}else{var U=g;if(U)for(var q,$=-1,Y=U.length-1;$<Y;){q=U[$+=1];var j=e.util.getProperty(q),O=e.util.escapeQuotes(q),H=d+j;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(D,q,e.opts.jsonPointers)),s+=" if ( "+H+" === undefined ",k&&(s+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(q)+"') "),s+=") { var err = ",e.createErrors!==!1?(s+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+O+"' } ",e.opts.messages!==!1&&(s+=" , message: '",e.opts._errorDataPathProperty?s+="is a required property":s+="should have required property \\'"+O+"\\'",s+="' "),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=D}else f&&(s+=" if (true) {");return s}});var cIn=E((n3l,aIn)=>{"use strict";aIn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d="data"+(i||""),p="valid"+a,h=e.opts.$data&&n&&n.$data,m;if(h?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",m="schema"+a):m=n,(n||h)&&e.opts.uniqueItems!==!1){h&&(s+=" var "+p+"; if ("+m+" === false || "+m+" === undefined) "+p+" = true; else if (typeof "+m+" != 'boolean') "+p+" = false; else { "),s+=" var i = "+d+".length , "+p+" = true , j; if (i > 1) { ";var y=e.schema.items&&e.schema.items.type,g=Array.isArray(y);if(!y||y=="object"||y=="array"||g&&(y.indexOf("object")>=0||y.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+p+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var A="checkDataType"+(g?"s":"");s+=" if ("+e.util[A](y,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(s+=` if (typeof item == 'string') item = '"' + item; `),s+=" if (typeof itemIndices[item] == 'number') { "+p+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",h&&(s+=" } "),s+=" if (!"+p+") { ";var v=v||[];v.push(s),s="",e.createErrors!==!1?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",h?s+="validate.schema"+c:s+=""+n,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var b=s;s=v.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+b+"]); ":s+=" validate.errors = ["+b+"]; return false; ":s+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",f&&(s+=" else { ")}else f&&(s+=" if (true) { ");return s}});var uIn=E((i3l,lIn)=>{"use strict";lIn.exports={$ref:S5n(),allOf:x5n(),anyOf:T5n(),$comment:I5n(),const:O5n(),contains:N5n(),dependencies:k5n(),enum:M5n(),format:U5n(),if:Q5n(),items:H5n(),maximum:TQt(),minimum:TQt(),maxItems:wQt(),minItems:wQt(),maxLength:IQt(),minLength:IQt(),maxProperties:DQt(),minProperties:DQt(),multipleOf:z5n(),not:Y5n(),oneOf:X5n(),pattern:eIn(),properties:rIn(),propertyNames:iIn(),required:sIn(),uniqueItems:cIn(),validate:xQt()}});var pIn=E((o3l,dIn)=>{"use strict";var fIn=uIn(),OQt=Dj().toHash;dIn.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],o=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],s=["number","integer","string","array","object","boolean","null"];return e.all=OQt(r),e.types=OQt(s),e.forEach(function(a){a.rules=a.rules.map(function(i){var n;if(typeof i=="object"){var c=Object.keys(i)[0];n=i[c],i=c,n.forEach(function(f){r.push(f),e.all[f]=!0})}r.push(i);var u=e.all[i]={keyword:i,code:fIn[i],implements:n};return u}),e.all.$comment={keyword:"$comment",code:fIn.$comment},a.type&&(e.types[a.type]=a)}),e.keywords=OQt(r.concat(o)),e.custom={},e}});var gIn=E((s3l,mIn)=>{"use strict";var hIn=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];mIn.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var o=e[r].split("/"),s=t,a;for(a=1;a<o.length;a++)s=s[o[a]];for(a=0;a<hIn.length;a++){var i=hIn[a],n=s[i];n&&(s[i]={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var vIn=E((a3l,AIn)=>{"use strict";var oDs=nJe().MissingRef;AIn.exports=yIn;function yIn(t,e,r){var o=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var s=a(t).then(function(){var n=o._addSchema(t,void 0,e);return n.validate||i(n)});return r&&s.then(function(n){r(null,n)},r),s;function a(n){var c=n.$schema;return c&&!o.getSchema(c)?yIn.call(o,{$ref:c},!0):Promise.resolve()}function i(n){try{return o._compile(n)}catch(u){if(u instanceof oDs)return c(u);throw u}function c(u){var f=u.missingSchema;if(h(f))throw new Error("Schema "+f+" is loaded but "+u.missingRef+" cannot be resolved");var d=o._loadingSchemas[f];return d||(d=o._loadingSchemas[f]=o._opts.loadSchema(f),d.then(p,p)),d.then(function(m){if(!h(f))return a(m).then(function(){h(f)||o.addSchema(m,f,void 0,e)})}).then(function(){return i(n)});function p(){delete o._loadingSchemas[f]}function h(m){return o._refs[m]||o._schemas[m]}}}}});var EIn=E((c3l,bIn)=>{"use strict";bIn.exports=function(e,r,o){var s=" ",a=e.level,i=e.dataLevel,n=e.schema[r],c=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,d,p="data"+(i||""),h="valid"+a,m="errs__"+a,y=e.opts.$data&&n&&n.$data,g;y?(s+=" var schema"+a+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ",g="schema"+a):g=n;var A=this,v="definition"+a,b=A.definition,x="",T,D,I,k,w;if(y&&b.$data){w="keywordValidate"+a;var N=b.validateSchema;s+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+w+" = "+v+".validate;"}else{if(k=e.useCustomRule(A,n,e.schema,e),!k)return;g="validate.schema"+c,w=k.code,T=b.compile,D=b.inline,I=b.macro}var O=w+".errors",M="i"+a,B="ruleErr"+a,P=b.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(D||I||(s+=""+O+" = null;"),s+="var "+m+" = errors;var "+h+";",y&&b.$data&&(x+="}",s+=" if ("+g+" === undefined) { "+h+" = true; } else { ",N&&(x+="}",s+=" "+h+" = "+v+".validateSchema("+g+"); if ("+h+") { ")),D)b.statements?s+=" "+k.validate+" ":s+=" "+h+" = "+k.validate+"; ";else if(I){var q=e.util.copy(e),x="";q.level++;var F="valid"+q.level;q.schema=k.validate,q.schemaPath="";var j=e.compositeRule;e.compositeRule=q.compositeRule=!0;var H=e.validate(q).replace(/validate\.schema/g,w);e.compositeRule=q.compositeRule=j,s+=" "+H}else{var U=U||[];U.push(s),s="",s+=" "+w+".call( ",e.opts.passContext?s+="this":s+="self",T||b.schema===!1?s+=" , "+p+" ":s+=" , "+g+" , "+p+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",e.errorPath!='""'&&(s+=" + "+e.errorPath);var $=i?"data"+(i-1||""):"parentData",Y=i?e.dataPathArr[i]:"parentDataProperty";s+=" , "+$+" , "+Y+" , rootData ) ";var se=s;s=U.pop(),b.errors===!1?(s+=" "+h+" = ",P&&(s+="await "),s+=""+se+"; "):P?(O="customErrors"+a,s+=" var "+O+" = null; try { "+h+" = await "+se+"; } catch (e) { "+h+" = false; if (e instanceof ValidationError) "+O+" = e.errors; else throw e; } "):s+=" "+O+" = null; "+h+" = "+se+"; "}if(b.modifying&&(s+=" if ("+$+") "+p+" = "+$+"["+Y+"];"),s+=""+x,b.valid)f&&(s+=" if (true) { ");else{s+=" if ( ",b.valid===void 0?(s+=" !",I?s+=""+F:s+=""+h):s+=" "+!b.valid+" ",s+=") { ",d=A.keyword;var U=U||[];U.push(s),s="";var U=U||[];U.push(s),s="",e.createErrors!==!1?(s+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var J=s;s=U.pop(),!e.compositeRule&&f?e.async?s+=" throw new ValidationError(["+J+"]); ":s+=" validate.errors = ["+J+"]; return false; ":s+=" var err = "+J+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var fe=s;s=U.pop(),D?b.errors?b.errors!="full"&&(s+=" for (var "+M+"="+m+"; "+M+"<errors; "+M+"++) { var "+B+" = vErrors["+M+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+B+".schema = "+g+"; "+B+".data = "+p+"; "),s+=" } "):b.errors===!1?s+=" "+fe+" ":(s+=" if ("+m+" == errors) { "+fe+" } else { for (var "+M+"="+m+"; "+M+"<errors; "+M+"++) { var "+B+" = vErrors["+M+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(s+=" "+B+".schema = "+g+"; "+B+".data = "+p+"; "),s+=" } } "):I?(s+=" var err = ",e.createErrors!==!1?(s+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(s+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(s+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; ")):b.errors===!1?s+=" "+fe+" ":(s+=" if (Array.isArray("+O+")) { if (vErrors === null) vErrors = "+O+"; else vErrors = vErrors.concat("+O+"); errors = vErrors.length; for (var "+M+"="+m+"; "+M+"<errors; "+M+"++) { var "+B+" = vErrors["+M+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; "+B+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(s+=" "+B+".schema = "+g+"; "+B+".data = "+p+"; "),s+=" } } else { "+fe+" } "),s+=" } ",f&&(s+=" else { ")}return s}});var RQt=E((l3l,sDs)=>{sDs.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var xIn=E((u3l,_In)=>{"use strict";var SIn=RQt();_In.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:SIn.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:SIn.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var TIn=E((f3l,CIn)=>{"use strict";var aDs=/^[a-z_$][a-z0-9_$-]*$/i,cDs=EIn(),lDs=xIn();CIn.exports={add:uDs,get:fDs,remove:dDs,validate:NQt};function uDs(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!aDs.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var o=e.type;if(Array.isArray(o))for(var s=0;s<o.length;s++)i(t,o[s],e);else i(t,o,e);var a=e.metaSchema;a&&(e.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(a,!0))}r.keywords[t]=r.all[t]=!0;function i(n,c,u){for(var f,d=0;d<r.length;d++){var p=r[d];if(p.type==c){f=p;break}}f||(f={type:c,rules:[]},r.push(f));var h={keyword:n,definition:u,custom:!0,code:cDs,implements:u.implements};f.rules.push(h),r.custom[n]=h}return this}function fDs(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function dDs(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var o=e[r].rules,s=0;s<o.length;s++)if(o[s].keyword==t){o.splice(s,1);break}return this}function NQt(t,e){NQt.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(lDs,!0);if(r(t))return!0;if(NQt.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var wIn=E((d3l,pDs)=>{pDs.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var LIn=E((p3l,MIn)=>{"use strict";var DIn=s5n(),Oj=rJe(),hDs=c5n(),OIn=yQt(),mDs=_Qt(),gDs=b5n(),yDs=pIn(),RIn=gIn(),NIn=Dj();MIn.exports=ih;ih.prototype.validate=vDs;ih.prototype.compile=bDs;ih.prototype.addSchema=EDs;ih.prototype.addMetaSchema=SDs;ih.prototype.validateSchema=_Ds;ih.prototype.getSchema=CDs;ih.prototype.removeSchema=wDs;ih.prototype.addFormat=BDs;ih.prototype.errorsText=kDs;ih.prototype._addSchema=IDs;ih.prototype._compile=DDs;ih.prototype.compileAsync=vIn();var fJe=TIn();ih.prototype.addKeyword=fJe.add;ih.prototype.getKeyword=fJe.get;ih.prototype.removeKeyword=fJe.remove;ih.prototype.validateKeyword=fJe.validate;var PIn=nJe();ih.ValidationError=PIn.Validation;ih.MissingRefError=PIn.MissingRef;ih.$dataMetaSchema=RIn;var uJe="http://json-schema.org/draft-07/schema",IIn=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],ADs=["/properties"];function ih(t){if(!(this instanceof ih))return new ih(t);t=this._opts=NIn.copy(t)||{},qDs(this),this._schemas={},this._refs={},this._fragments={},this._formats=gDs(t.format),this._cache=t.cache||new hDs,this._loadingSchemas={},this._compilations=[],this.RULES=yDs(),this._getId=ODs(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=mDs),this._metaOpts=QDs(this),t.formats&&UDs(this),t.keywords&&FDs(this),MDs(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),LDs(this)}function vDs(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var o=this._addSchema(t);r=o.validate||this._compile(o)}var s=r(e);return r.$async!==!0&&(this.errors=r.errors),s}function bDs(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function EDs(t,e,r,o){if(Array.isArray(t)){for(var s=0;s<t.length;s++)this.addSchema(t[s],void 0,r,o);return this}var a=this._getId(t);if(a!==void 0&&typeof a!="string")throw new Error("schema id must be string");return e=Oj.normalizeId(e||a),BIn(this,e),this._schemas[e]=this._addSchema(t,r,o,!0),this}function SDs(t,e,r){return this.addSchema(t,e,r,!0),this}function _Ds(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||xDs(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(r,t);if(!o&&e){var s="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(s);else throw new Error(s)}return o}function xDs(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(uJe)?uJe:void 0,t._opts.defaultMeta}function CDs(t){var e=kIn(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return TDs(this,t)}}function TDs(t,e){var r=Oj.schema.call(t,{schema:{}},e);if(r){var o=r.schema,s=r.root,a=r.baseId,i=DIn.call(t,o,s,void 0,a);return t._fragments[e]=new OIn({ref:e,fragment:!0,schema:o,root:s,baseId:a,validate:i}),i}}function kIn(t,e){return e=Oj.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function wDs(t){if(t instanceof RegExp)return lJe(this,this._schemas,t),lJe(this,this._refs,t),this;switch(typeof t){case"undefined":return lJe(this,this._schemas),lJe(this,this._refs),this._cache.clear(),this;case"string":var e=kIn(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,o=r?r(t):t;this._cache.del(o);var s=this._getId(t);s&&(s=Oj.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this}function lJe(t,e,r){for(var o in e){var s=e[o];!s.meta&&(!r||r.test(o))&&(t._cache.del(s.cacheKey),delete e[o])}}function IDs(t,e,r,o){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var s=this._opts.serialize,a=s?s(t):t,i=this._cache.get(a);if(i)return i;o=o||this._opts.addUsedSchema!==!1;var n=Oj.normalizeId(this._getId(t));n&&o&&BIn(this,n);var c=this._opts.validateSchema!==!1&&!e,u;c&&!(u=n&&n==Oj.normalizeId(t.$schema))&&this.validateSchema(t,!0);var f=Oj.ids.call(this,t),d=new OIn({id:n,schema:t,localRefs:f,cacheKey:a,meta:r});return n[0]!="#"&&o&&(this._refs[n]=d),this._cache.put(a,d),c&&u&&this.validateSchema(t,!0),d}function DDs(t,e){if(t.compiling)return t.validate=s,s.schema=t.schema,s.errors=null,s.root=e||s,t.schema.$async===!0&&(s.$async=!0),s;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var o;try{o=DIn.call(this,t.schema,e,t.localRefs)}catch(a){throw delete t.validate,a}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=o,t.refs=o.refs,t.refVal=o.refVal,t.root=o.root,o;function s(){var a=t.validate,i=a.apply(this,arguments);return s.errors=a.errors,i}}function ODs(t){switch(t.schemaId){case"auto":return PDs;case"id":return RDs;default:return NDs}}function RDs(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function NDs(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function PDs(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function kDs(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,o=e.dataVar===void 0?"data":e.dataVar,s="",a=0;a<t.length;a++){var i=t[a];i&&(s+=o+i.dataPath+" "+i.message+r)}return s.slice(0,-r.length)}function BDs(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function MDs(t){var e;if(t._opts.$data&&(e=wIn(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=RQt();t._opts.$data&&(r=RIn(r,ADs)),t.addMetaSchema(r,uJe,!0),t._refs["http://json-schema.org/schema"]=uJe}}function LDs(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function UDs(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function FDs(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function BIn(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function QDs(t){for(var e=NIn.copy(t._opts),r=0;r<IIn.length;r++)delete e[IIn[r]];return e}function qDs(t){var e=t._opts.logger;if(e===!1)t.logger={log:PQt,warn:PQt,error:PQt};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function PQt(){}});var UIn,ZE,ioe=G(()=>{Mwn();xL();UIn=we(LIn(),1),ZE=class extends zYe{constructor(e,r){var o;super(r),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._capabilities=(o=r?.capabilities)!==null&&o!==void 0?o:{},this._ajv=new UIn.default}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Bwn(this._capabilities,e)}assertCapability(e,r){var o;if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o[e]))throw new Error(`Server does not support ${e} (required for ${r})`)}async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{let o=await this.request({method:"initialize",params:{protocolVersion:roe,capabilities:this._capabilities,clientInfo:this._clientInfo}},eQt,r);if(o===void 0)throw new Error(`Server sent invalid initialize result: ${o}`);if(!ywn.includes(o.protocolVersion))throw new Error(`Server's protocol version is not supported: ${o.protocolVersion}`);this._serverCapabilities=o.capabilities,this._serverVersion=o.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(o.protocolVersion),this._instructions=o.instructions,await this.notification({method:"notifications/initialized"})}catch(o){throw this.close(),o}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){var r,o,s,a,i;switch(e){case"logging/setLevel":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.logging))throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o.prompts))throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((s=this._serverCapabilities)===null||s===void 0)&&s.resources))throw new Error(`Server does not support resources (required for ${e})`);if(e==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${e})`);break;case"tools/call":case"tools/list":if(!(!((a=this._serverCapabilities)===null||a===void 0)&&a.tools))throw new Error(`Server does not support tools (required for ${e})`);break;case"completion/complete":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.completions))throw new Error(`Server does not support completions (required for ${e})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(e){var r;switch(e){case"notifications/roots/list_changed":if(!(!((r=this._capabilities.roots)===null||r===void 0)&&r.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${e})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${e})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${e})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${e})`);break;case"ping":break}}async ping(e){return this.request({method:"ping"},Ij,e)}async complete(e,r){return this.request({method:"completion/complete",params:e},lQt,r)}async setLoggingLevel(e,r){return this.request({method:"logging/setLevel",params:{level:e}},Ij,r)}async getPrompt(e,r){return this.request({method:"prompts/get",params:e},M3e,r)}async listPrompts(e,r){return this.request({method:"prompts/list",params:e},B3e,r)}async listResources(e,r){return this.request({method:"resources/list",params:e},rQt,r)}async listResourceTemplates(e,r){return this.request({method:"resources/templates/list",params:e},nQt,r)}async readResource(e,r){return this.request({method:"resources/read",params:e},iQt,r)}async subscribeResource(e,r){return this.request({method:"resources/subscribe",params:e},Ij,r)}async unsubscribeResource(e,r){return this.request({method:"resources/unsubscribe",params:e},Ij,r)}async callTool(e,r=$Ye,o){let s=await this.request({method:"tools/call",params:e},r,o),a=this.getToolOutputValidator(e.name);if(a){if(!s.structuredContent&&!s.isError)throw new sC(oC.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(s.structuredContent)try{if(!a(s.structuredContent))throw new sC(oC.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(a.errors)}`)}catch(i){throw i instanceof sC?i:new sC(oC.InvalidParams,`Failed to validate structured content: ${i instanceof Error?i.message:String(i)}`)}}return s}cacheToolOutputSchemas(e){this._cachedToolOutputValidators.clear();for(let r of e)if(r.outputSchema)try{let o=this._ajv.compile(r.outputSchema);this._cachedToolOutputValidators.set(r.name,o)}catch{}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,r){let o=await this.request({method:"tools/list",params:e},cQt,r);return this.cacheToolOutputSchemas(o.tools),o}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}});var VIn=E((y3l,HIn)=>{HIn.exports=qIn;qIn.sync=VDs;var FIn=me("fs");function HDs(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var o=0;o<r.length;o++){var s=r[o].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function QIn(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:HDs(e,r)}function qIn(t,e,r){FIn.stat(t,function(o,s){r(o,o?!1:QIn(s,t,e))})}function VDs(t,e){return QIn(FIn.statSync(t),t,e)}});var zIn=E((A3l,WIn)=>{WIn.exports=jIn;jIn.sync=GDs;var GIn=me("fs");function jIn(t,e,r){GIn.stat(t,function(o,s){r(o,o?!1:$In(s,e))})}function GDs(t,e){return $In(GIn.statSync(t),e)}function $In(t,e){return t.isFile()&&jDs(t,e)}function jDs(t,e){var r=t.mode,o=t.uid,s=t.gid,a=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),i=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),n=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),f=n|c,d=r&u||r&c&&s===i||r&n&&o===a||r&f&&a===0;return d}});var YIn=E((b3l,KIn)=>{var v3l=me("fs"),dJe;process.platform==="win32"||global.TESTING_WINDOWS?dJe=VIn():dJe=zIn();KIn.exports=kQt;kQt.sync=$Ds;function kQt(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,s){kQt(t,e||{},function(a,i){a?s(a):o(i)})})}dJe(t,e||{},function(o,s){o&&(o.code==="EACCES"||e&&e.ignoreErrors)&&(o=null,s=!1),r(o,s)})}function $Ds(t,e){try{return dJe.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var n8n=E((E3l,r8n)=>{var ooe=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",JIn=me("path"),WDs=ooe?";":":",XIn=YIn(),ZIn=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),e8n=(t,e)=>{let r=e.colon||WDs,o=t.match(/\//)||ooe&&t.match(/\\/)?[""]:[...ooe?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=ooe?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=ooe?s.split(r):[""];return ooe&&t.indexOf(".")!==-1&&a[0]!==""&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},t8n=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:o,pathExt:s,pathExtExe:a}=e8n(t,e),i=[],n=u=>new Promise((f,d)=>{if(u===o.length)return e.all&&i.length?f(i):d(ZIn(t));let p=o[u],h=/^".*"$/.test(p)?p.slice(1,-1):p,m=JIn.join(h,t),y=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;f(c(y,u,0))}),c=(u,f,d)=>new Promise((p,h)=>{if(d===s.length)return p(n(f+1));let m=s[d];XIn(u+m,{pathExt:a},(y,g)=>{if(!y&&g)if(e.all)i.push(u+m);else return p(u+m);return p(c(u,f,d+1))})});return r?n(0).then(u=>r(null,u),r):n(0)},zDs=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:o,pathExtExe:s}=e8n(t,e),a=[];for(let i=0;i<r.length;i++){let n=r[i],c=/^".*"$/.test(n)?n.slice(1,-1):n,u=JIn.join(c,t),f=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let d=0;d<o.length;d++){let p=f+o[d];try{if(XIn.sync(p,{pathExt:s}))if(e.all)a.push(p);else return p}catch{}}}if(e.all&&a.length)return a;if(e.nothrow)return null;throw ZIn(t)};r8n.exports=t8n;t8n.sync=zDs});var o8n=E((S3l,BQt)=>{"use strict";var i8n=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};BQt.exports=i8n;BQt.exports.default=i8n});var l8n=E((_3l,c8n)=>{"use strict";var s8n=me("path"),KDs=n8n(),YDs=o8n();function a8n(t,e){let r=t.options.env||process.env,o=process.cwd(),s=t.options.cwd!=null,a=s&&process.chdir!==void 0&&!process.chdir.disabled;if(a)try{process.chdir(t.options.cwd)}catch{}let i;try{i=KDs.sync(t.command,{path:r[YDs({env:r})],pathExt:e?s8n.delimiter:void 0})}catch{}finally{a&&process.chdir(o)}return i&&(i=s8n.resolve(s?t.options.cwd:"",i)),i}function JDs(t){return a8n(t)||a8n(t,!0)}c8n.exports=JDs});var u8n=E((x3l,LQt)=>{"use strict";var MQt=/([()\][%!^"`<>&|;, *?])/g;function XDs(t){return t=t.replace(MQt,"^$1"),t}function ZDs(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(MQt,"^$1"),e&&(t=t.replace(MQt,"^$1")),t}LQt.exports.command=XDs;LQt.exports.argument=ZDs});var d8n=E((C3l,f8n)=>{"use strict";f8n.exports=/^#!(.*)/});var h8n=E((T3l,p8n)=>{"use strict";var e9s=d8n();p8n.exports=(t="")=>{let e=t.match(e9s);if(!e)return null;let[r,o]=e[0].replace(/#! ?/,"").split(" "),s=r.split("/").pop();return s==="env"?o:o?`${s} ${o}`:s}});var g8n=E((w3l,m8n)=>{"use strict";var UQt=me("fs"),t9s=h8n();function r9s(t){let r=Buffer.alloc(150),o;try{o=UQt.openSync(t,"r"),UQt.readSync(o,r,0,150,0),UQt.closeSync(o)}catch{}return t9s(r.toString())}m8n.exports=r9s});var b8n=E((I3l,v8n)=>{"use strict";var n9s=me("path"),y8n=l8n(),A8n=u8n(),i9s=g8n(),o9s=process.platform==="win32",s9s=/\.(?:com|exe)$/i,a9s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c9s(t){t.file=y8n(t);let e=t.file&&i9s(t.file);return e?(t.args.unshift(t.file),t.command=e,y8n(t)):t.file}function l9s(t){if(!o9s)return t;let e=c9s(t),r=!s9s.test(e);if(t.options.forceShell||r){let o=a9s.test(e);t.command=n9s.normalize(t.command),t.command=A8n.command(t.command),t.args=t.args.map(a=>A8n.argument(a,o));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function u9s(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let o={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?o:l9s(o)}v8n.exports=u9s});var _8n=E((D3l,S8n)=>{"use strict";var FQt=process.platform==="win32";function QQt(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function f9s(t,e){if(!FQt)return;let r=t.emit;t.emit=function(o,s){if(o==="exit"){let a=E8n(s,e);if(a)return r.call(t,"error",a)}return r.apply(t,arguments)}}function E8n(t,e){return FQt&&t===1&&!e.file?QQt(e.original,"spawn"):null}function d9s(t,e){return FQt&&t===1&&!e.file?QQt(e.original,"spawnSync"):null}S8n.exports={hookChildProcess:f9s,verifyENOENT:E8n,verifyENOENTSync:d9s,notFoundError:QQt}});var T8n=E((O3l,soe)=>{"use strict";var x8n=me("child_process"),qQt=b8n(),HQt=_8n();function C8n(t,e,r){let o=qQt(t,e,r),s=x8n.spawn(o.command,o.args,o.options);return HQt.hookChildProcess(s,o),s}function p9s(t,e,r){let o=qQt(t,e,r),s=x8n.spawnSync(o.command,o.args,o.options);return s.error=s.error||HQt.verifyENOENTSync(s.status,o),s}soe.exports=C8n;soe.exports.spawn=C8n;soe.exports.sync=p9s;soe.exports._parse=qQt;soe.exports._enoent=HQt});function h9s(t){return _L.parse(JSON.parse(t))}function w8n(t){return JSON.stringify(t)+`
905
905
  `}var pJe,I8n=G(()=>{xL();pJe=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
906
906
  `);if(e===-1)return null;let r=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),h9s(r)}clear(){this._buffer=void 0}}});import hJe from"node:process";import{PassThrough as m9s}from"node:stream";function y9s(){let t={};for(let e of g9s){let r=hJe.env[e];r!==void 0&&(r.startsWith("()")||(t[e]=r))}return t}function A9s(){return"type"in hJe}var D8n,g9s,aoe,VQt=G(()=>{D8n=we(T8n(),1);I8n();g9s=hJe.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];aoe=class{constructor(e){this._abortController=new AbortController,this._readBuffer=new pJe,this._stderrStream=null,this._serverParams=e,(e.stderr==="pipe"||e.stderr==="overlapped")&&(this._stderrStream=new m9s)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((e,r)=>{var o,s,a,i,n;this._process=(0,D8n.default)(this._serverParams.command,(o=this._serverParams.args)!==null&&o!==void 0?o:[],{env:{...y9s(),...this._serverParams.env},stdio:["pipe","pipe",(s=this._serverParams.stderr)!==null&&s!==void 0?s:"inherit"],shell:!1,signal:this._abortController.signal,windowsHide:hJe.platform==="win32"&&A9s(),cwd:this._serverParams.cwd}),this._process.on("error",c=>{var u,f;if(c.name==="AbortError"){(u=this.onclose)===null||u===void 0||u.call(this);return}r(c),(f=this.onerror)===null||f===void 0||f.call(this,c)}),this._process.on("spawn",()=>{e()}),this._process.on("close",c=>{var u;this._process=void 0,(u=this.onclose)===null||u===void 0||u.call(this)}),(a=this._process.stdin)===null||a===void 0||a.on("error",c=>{var u;(u=this.onerror)===null||u===void 0||u.call(this,c)}),(i=this._process.stdout)===null||i===void 0||i.on("data",c=>{this._readBuffer.append(c),this.processReadBuffer()}),(n=this._process.stdout)===null||n===void 0||n.on("error",c=>{var u;(u=this.onerror)===null||u===void 0||u.call(this,c)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){var e,r;return this._stderrStream?this._stderrStream:(r=(e=this._process)===null||e===void 0?void 0:e.stderr)!==null&&r!==void 0?r:null}get pid(){var e,r;return(r=(e=this._process)===null||e===void 0?void 0:e.pid)!==null&&r!==void 0?r:null}processReadBuffer(){for(var e,r;;)try{let o=this._readBuffer.readMessage();if(o===null)break;(e=this.onmessage)===null||e===void 0||e.call(this,o)}catch(o){(r=this.onerror)===null||r===void 0||r.call(this,o)}}async close(){this._abortController.abort(),this._process=void 0,this._readBuffer.clear()}send(e){return new Promise(r=>{var o;if(!(!((o=this._process)===null||o===void 0)&&o.stdin))throw new Error("Not connected");let s=w8n(e);this._process.stdin.write(s)?r():this._process.stdin.once("drain",r)})}}});function GQt(t){}function gJe(t){if(typeof t=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:e=GQt,onError:r=GQt,onRetry:o=GQt,onComment:s}=t,a="",i=!0,n,c="",u="";function f(y){let g=i?y.replace(/^\xEF\xBB\xBF/,""):y,[A,v]=v9s(`${a}${g}`);for(let b of A)d(b);a=v,i=!1}function d(y){if(y===""){h();return}if(y.startsWith(":")){s&&s(y.slice(y.startsWith(": ")?2:1));return}let g=y.indexOf(":");if(g!==-1){let A=y.slice(0,g),v=y[g+1]===" "?2:1,b=y.slice(g+v);p(A,b,y);return}p(y,"",y)}function p(y,g,A){switch(y){case"event":u=g;break;case"data":c=`${c}${g}
907
907
  `;break;case"id":n=g.includes("\0")?void 0:g;break;case"retry":/^\d+$/.test(g)?o(parseInt(g,10)):r(new mJe(`Invalid \`retry\` value: "${g}"`,{type:"invalid-retry",value:g,line:A}));break;default:r(new mJe(`Unknown field "${y.length>20?`${y.slice(0,20)}\u2026`:y}"`,{type:"unknown-field",field:y,value:g,line:A}));break}}function h(){c.length>0&&e({id:n,event:u||void 0,data:c.endsWith(`
908
908
  `)?c.slice(0,-1):c}),n=void 0,c="",u=""}function m(y={}){a&&y.consume&&d(a),i=!0,n=void 0,c="",u="",a=""}return{feed:f,reset:m}}function v9s(t){let e=[],r="",o=0;for(;o<t.length;){let s=t.indexOf("\r",o),a=t.indexOf(`
909
909
  `,o),i=-1;if(s!==-1&&a!==-1?i=Math.min(s,a):s!==-1?s===t.length-1?i=-1:i=s:a!==-1&&(i=a),i===-1){r=t.slice(o);break}else{let n=t.slice(o,i);e.push(n),o=i+1,t[o-1]==="\r"&&t[o]===`
910
- `&&o++}}return[e,r]}var mJe,jQt=G(()=>{mJe=class extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}}});function b9s(t){let e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function $Qt(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map($Qt).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${$Qt(t.cause)}`:t.message:`${t}`}function O8n(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}function E9s(){let t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}var AJe,N8n,eqt,vc,fg,np,zO,lb,Rj,coe,yJe,vJe,Q3e,foe,q3e,IL,loe,doe,uoe,U3e,N6,WQt,zQt,KQt,R8n,YQt,JQt,F3e,XQt,ZQt,Nj,P8n=G(()=>{jQt();AJe=class extends Event{constructor(e,r){var o,s;super(e),this.code=(o=r?.code)!=null?o:void 0,this.message=(s=r?.message)!=null?s:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,r,o){return o(O8n(this),r)}[Symbol.for("Deno.customInspect")](e,r){return e(O8n(this),r)}};N8n=t=>{throw TypeError(t)},eqt=(t,e,r)=>e.has(t)||N8n("Cannot "+r),vc=(t,e,r)=>(eqt(t,e,"read from private field"),r?r.call(t):e.get(t)),fg=(t,e,r)=>e.has(t)?N8n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),np=(t,e,r,o)=>(eqt(t,e,"write to private field"),e.set(t,r),r),zO=(t,e,r)=>(eqt(t,e,"access private method"),r),Nj=class extends EventTarget{constructor(e,r){var o,s;super(),fg(this,N6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,fg(this,lb),fg(this,Rj),fg(this,coe),fg(this,yJe),fg(this,vJe),fg(this,Q3e),fg(this,foe),fg(this,q3e,null),fg(this,IL),fg(this,loe),fg(this,doe,null),fg(this,uoe,null),fg(this,U3e,null),fg(this,zQt,async a=>{var i;vc(this,loe).reset();let{body:n,redirected:c,status:u,headers:f}=a;if(u===204){zO(this,N6,F3e).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?np(this,coe,new URL(a.url)):np(this,coe,void 0),u!==200){zO(this,N6,F3e).call(this,`Non-200 status code (${u})`,u);return}if(!(f.get("content-type")||"").startsWith("text/event-stream")){zO(this,N6,F3e).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(vc(this,lb)===this.CLOSED)return;np(this,lb,this.OPEN);let d=new Event("open");if((i=vc(this,U3e))==null||i.call(this,d),this.dispatchEvent(d),typeof n!="object"||!n||!("getReader"in n)){zO(this,N6,F3e).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}let p=new TextDecoder,h=n.getReader(),m=!0;do{let{done:y,value:g}=await h.read();g&&vc(this,loe).feed(p.decode(g,{stream:!y})),y&&(m=!1,vc(this,loe).reset(),zO(this,N6,XQt).call(this))}while(m)}),fg(this,KQt,a=>{np(this,IL,void 0),!(a.name==="AbortError"||a.type==="aborted")&&zO(this,N6,XQt).call(this,$Qt(a))}),fg(this,YQt,a=>{typeof a.id=="string"&&np(this,q3e,a.id);let i=new MessageEvent(a.event||"message",{data:a.data,origin:vc(this,coe)?vc(this,coe).origin:vc(this,Rj).origin,lastEventId:a.id||""});vc(this,uoe)&&(!a.event||a.event==="message")&&vc(this,uoe).call(this,i),this.dispatchEvent(i)}),fg(this,JQt,a=>{np(this,Q3e,a)}),fg(this,ZQt,()=>{np(this,foe,void 0),vc(this,lb)===this.CONNECTING&&zO(this,N6,WQt).call(this)});try{if(e instanceof URL)np(this,Rj,e);else if(typeof e=="string")np(this,Rj,new URL(e,E9s()));else throw new Error("Invalid URL")}catch{throw b9s("An invalid or illegal string was specified")}np(this,loe,gJe({onEvent:vc(this,YQt),onRetry:vc(this,JQt)})),np(this,lb,this.CONNECTING),np(this,Q3e,3e3),np(this,vJe,(o=r?.fetch)!=null?o:globalThis.fetch),np(this,yJe,(s=r?.withCredentials)!=null?s:!1),zO(this,N6,WQt).call(this)}get readyState(){return vc(this,lb)}get url(){return vc(this,Rj).href}get withCredentials(){return vc(this,yJe)}get onerror(){return vc(this,doe)}set onerror(e){np(this,doe,e)}get onmessage(){return vc(this,uoe)}set onmessage(e){np(this,uoe,e)}get onopen(){return vc(this,U3e)}set onopen(e){np(this,U3e,e)}addEventListener(e,r,o){let s=r;super.addEventListener(e,s,o)}removeEventListener(e,r,o){let s=r;super.removeEventListener(e,s,o)}close(){vc(this,foe)&&clearTimeout(vc(this,foe)),vc(this,lb)!==this.CLOSED&&(vc(this,IL)&&vc(this,IL).abort(),np(this,lb,this.CLOSED),np(this,IL,void 0))}};lb=new WeakMap,Rj=new WeakMap,coe=new WeakMap,yJe=new WeakMap,vJe=new WeakMap,Q3e=new WeakMap,foe=new WeakMap,q3e=new WeakMap,IL=new WeakMap,loe=new WeakMap,doe=new WeakMap,uoe=new WeakMap,U3e=new WeakMap,N6=new WeakSet,WQt=function(){np(this,lb,this.CONNECTING),np(this,IL,new AbortController),vc(this,vJe)(vc(this,Rj),zO(this,N6,R8n).call(this)).then(vc(this,zQt)).catch(vc(this,KQt))},zQt=new WeakMap,KQt=new WeakMap,R8n=function(){var t;let e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...vc(this,q3e)?{"Last-Event-ID":vc(this,q3e)}:void 0},cache:"no-store",signal:(t=vc(this,IL))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},YQt=new WeakMap,JQt=new WeakMap,F3e=function(t,e){var r;vc(this,lb)!==this.CLOSED&&np(this,lb,this.CLOSED);let o=new AJe("error",{code:e,message:t});(r=vc(this,doe))==null||r.call(this,o),this.dispatchEvent(o)},XQt=function(t,e){var r;if(vc(this,lb)===this.CLOSED)return;np(this,lb,this.CONNECTING);let o=new AJe("error",{code:e,message:t});(r=vc(this,doe))==null||r.call(this,o),this.dispatchEvent(o),np(this,foe,setTimeout(vc(this,ZQt),vc(this,Q3e)))},ZQt=new WeakMap,Nj.CONNECTING=0,Nj.OPEN=1,Nj.CLOSED=2});async function S9s(t){return(await tqt).getRandomValues(new Uint8Array(t))}async function _9s(t){let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r="",o=await S9s(t);for(let s=0;s<t;s++){let a=o[s]%e.length;r+=e[a]}return r}async function x9s(t){return await _9s(t)}async function C9s(t){let e=await(await tqt).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function rqt(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;let e=await x9s(t),r=await C9s(e);return{code_verifier:e,code_challenge:r}}var tqt,k8n=G(()=>{tqt=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(t=>t.webcrypto)});var H0,B8n,nqt,T9s,M8n,iqt,L8n,w9s,I9s,U8n,H3l,V3l,oqt=G(()=>{SL();H0=re.string().url().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:re.ZodIssueCode.custom,message:"URL must be parseable",fatal:!0}),re.NEVER}).refine(t=>{let e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),B8n=re.object({resource:re.string().url(),authorization_servers:re.array(H0).optional(),jwks_uri:re.string().url().optional(),scopes_supported:re.array(re.string()).optional(),bearer_methods_supported:re.array(re.string()).optional(),resource_signing_alg_values_supported:re.array(re.string()).optional(),resource_name:re.string().optional(),resource_documentation:re.string().optional(),resource_policy_uri:re.string().url().optional(),resource_tos_uri:re.string().url().optional(),tls_client_certificate_bound_access_tokens:re.boolean().optional(),authorization_details_types_supported:re.array(re.string()).optional(),dpop_signing_alg_values_supported:re.array(re.string()).optional(),dpop_bound_access_tokens_required:re.boolean().optional()}).passthrough(),nqt=re.object({issuer:re.string(),authorization_endpoint:H0,token_endpoint:H0,registration_endpoint:H0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),service_documentation:H0.optional(),revocation_endpoint:H0.optional(),revocation_endpoint_auth_methods_supported:re.array(re.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),introspection_endpoint:re.string().optional(),introspection_endpoint_auth_methods_supported:re.array(re.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),code_challenge_methods_supported:re.array(re.string()).optional()}).passthrough(),T9s=re.object({issuer:re.string(),authorization_endpoint:H0,token_endpoint:H0,userinfo_endpoint:H0.optional(),jwks_uri:H0,registration_endpoint:H0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),acr_values_supported:re.array(re.string()).optional(),subject_types_supported:re.array(re.string()),id_token_signing_alg_values_supported:re.array(re.string()),id_token_encryption_alg_values_supported:re.array(re.string()).optional(),id_token_encryption_enc_values_supported:re.array(re.string()).optional(),userinfo_signing_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_enc_values_supported:re.array(re.string()).optional(),request_object_signing_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_enc_values_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),display_values_supported:re.array(re.string()).optional(),claim_types_supported:re.array(re.string()).optional(),claims_supported:re.array(re.string()).optional(),service_documentation:re.string().optional(),claims_locales_supported:re.array(re.string()).optional(),ui_locales_supported:re.array(re.string()).optional(),claims_parameter_supported:re.boolean().optional(),request_parameter_supported:re.boolean().optional(),request_uri_parameter_supported:re.boolean().optional(),require_request_uri_registration:re.boolean().optional(),op_policy_uri:H0.optional(),op_tos_uri:H0.optional()}).passthrough(),M8n=T9s.merge(nqt.pick({code_challenge_methods_supported:!0})),iqt=re.object({access_token:re.string(),id_token:re.string().optional(),token_type:re.string(),expires_in:re.number().optional(),scope:re.string().optional(),refresh_token:re.string().optional()}).strip(),L8n=re.object({error:re.string(),error_description:re.string().optional(),error_uri:re.string().optional()}),w9s=re.object({redirect_uris:re.array(H0),token_endpoint_auth_method:re.string().optional(),grant_types:re.array(re.string()).optional(),response_types:re.array(re.string()).optional(),client_name:re.string().optional(),client_uri:H0.optional(),logo_uri:H0.optional(),scope:re.string().optional(),contacts:re.array(re.string()).optional(),tos_uri:H0.optional(),policy_uri:re.string().optional(),jwks_uri:H0.optional(),jwks:re.any().optional(),software_id:re.string().optional(),software_version:re.string().optional(),software_statement:re.string().optional()}).strip(),I9s=re.object({client_id:re.string(),client_secret:re.string().optional(),client_id_issued_at:re.number().optional(),client_secret_expires_at:re.number().optional()}).strip(),U8n=w9s.merge(I9s),H3l=re.object({error:re.string(),error_description:re.string().optional()}).strip(),V3l=re.object({token:re.string(),token_type_hint:re.string().optional()}).strip()});function F8n(t){let e=typeof t=="string"?new URL(t):new URL(t.href);return e.hash="",e}function Q8n({requestedResource:t,configuredResource:e}){let r=typeof t=="string"?new URL(t):new URL(t.href),o=typeof e=="string"?new URL(e):new URL(e.href);if(r.origin!==o.origin||r.pathname.length<o.pathname.length)return!1;let s=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",a=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return s.startsWith(a)}var q8n=G(()=>{});var Dm,H3e,Pj,kj,Bj,V3e,G3e,j3e,KO,$3e,W3e,z3e,K3e,Y3e,J3e,X3e,Z3e,H8n,V8n=G(()=>{Dm=class extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}},H3e=class extends Dm{};H3e.errorCode="invalid_request";Pj=class extends Dm{};Pj.errorCode="invalid_client";kj=class extends Dm{};kj.errorCode="invalid_grant";Bj=class extends Dm{};Bj.errorCode="unauthorized_client";V3e=class extends Dm{};V3e.errorCode="unsupported_grant_type";G3e=class extends Dm{};G3e.errorCode="invalid_scope";j3e=class extends Dm{};j3e.errorCode="access_denied";KO=class extends Dm{};KO.errorCode="server_error";$3e=class extends Dm{};$3e.errorCode="temporarily_unavailable";W3e=class extends Dm{};W3e.errorCode="unsupported_response_type";z3e=class extends Dm{};z3e.errorCode="unsupported_token_type";K3e=class extends Dm{};K3e.errorCode="invalid_token";Y3e=class extends Dm{};Y3e.errorCode="method_not_allowed";J3e=class extends Dm{};J3e.errorCode="too_many_requests";X3e=class extends Dm{};X3e.errorCode="invalid_client_metadata";Z3e=class extends Dm{};Z3e.errorCode="insufficient_scope";H8n={[H3e.errorCode]:H3e,[Pj.errorCode]:Pj,[kj.errorCode]:kj,[Bj.errorCode]:Bj,[V3e.errorCode]:V3e,[G3e.errorCode]:G3e,[j3e.errorCode]:j3e,[KO.errorCode]:KO,[$3e.errorCode]:$3e,[W3e.errorCode]:W3e,[z3e.errorCode]:z3e,[K3e.errorCode]:K3e,[Y3e.errorCode]:Y3e,[J3e.errorCode]:J3e,[X3e.errorCode]:X3e,[Z3e.errorCode]:Z3e}});function j8n(t,e){let r=t.client_secret!==void 0;return e.length===0?r?"client_secret_post":"none":r&&e.includes("client_secret_basic")?"client_secret_basic":r&&e.includes("client_secret_post")?"client_secret_post":e.includes("none")?"none":r?"client_secret_post":"none"}function $8n(t,e,r,o){let{client_id:s,client_secret:a}=e;switch(t){case"client_secret_basic":D9s(s,a,r);return;case"client_secret_post":O9s(s,a,o);return;case"none":R9s(s,o);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function D9s(t,e,r){if(!e)throw new Error("client_secret_basic authentication requires a client_secret");let o=btoa(`${t}:${e}`);r.set("Authorization",`Basic ${o}`)}function O9s(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function R9s(t,e){e.set("client_id",t)}async function aqt(t){let e=t instanceof Response?t.status:void 0,r=t instanceof Response?await t.text():t;try{let o=L8n.parse(JSON.parse(r)),{error:s,error_description:a,error_uri:i}=o,n=H8n[s]||KO;return new n(a||"",i)}catch(o){let s=`${e?`HTTP ${e}: `:""}Invalid OAuth error response: ${o}. Raw body: ${r}`;return new KO(s)}}async function DL(t,e){var r,o;try{return await sqt(t,e)}catch(s){if(s instanceof Pj||s instanceof Bj)return await((r=t.invalidateCredentials)===null||r===void 0?void 0:r.call(t,"all")),await sqt(t,e);if(s instanceof kj)return await((o=t.invalidateCredentials)===null||o===void 0?void 0:o.call(t,"tokens")),await sqt(t,e);throw s}}async function sqt(t,{serverUrl:e,authorizationCode:r,scope:o,resourceMetadataUrl:s,fetchFn:a}){let i,n;try{i=await P9s(e,{resourceMetadataUrl:s},a),i.authorization_servers&&i.authorization_servers.length>0&&(n=i.authorization_servers[0])}catch{}n||(n=e);let c=await N9s(e,t,i),u=await U9s(n,{fetchFn:a}),f=await Promise.resolve(t.clientInformation());if(!f){if(r!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");let y=await Q9s(n,{metadata:u,clientMetadata:t.clientMetadata,fetchFn:a});await t.saveClientInformation(y),f=y}if(r!==void 0){let y=await t.codeVerifier(),g=await lqt(n,{metadata:u,clientInformation:f,authorizationCode:r,codeVerifier:y,redirectUri:t.redirectUrl,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(g),"AUTHORIZED"}let d=await t.tokens();if(d?.refresh_token)try{let y=await uqt(n,{metadata:u,clientInformation:f,refreshToken:d.refresh_token,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(y),"AUTHORIZED"}catch(y){if(!(!(y instanceof Dm)||y instanceof KO))throw y}let p=t.state?await t.state():void 0,{authorizationUrl:h,codeVerifier:m}=await F9s(n,{metadata:u,clientInformation:f,state:p,redirectUrl:t.redirectUrl,scope:o||t.clientMetadata.scope,resource:c});return await t.saveCodeVerifier(m),await t.redirectToAuthorization(h),"REDIRECT"}async function N9s(t,e,r){let o=F8n(t);if(e.validateResourceURL)return await e.validateResourceURL(o,r?.resource);if(r){if(!Q8n({requestedResource:o,configuredResource:r.resource}))throw new Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}}function eve(t){let e=t.headers.get("WWW-Authenticate");if(!e)return;let[r,o]=e.split(" ");if(r.toLowerCase()!=="bearer"||!o)return;let a=/resource_metadata="([^"]*)"/.exec(e);if(a)try{return new URL(a[1])}catch{return}}async function P9s(t,e,r=fetch){let o=await M9s(t,"oauth-protected-resource",r,{protocolVersion:e?.protocolVersion,metadataUrl:e?.resourceMetadataUrl});if(!o||o.status===404)throw new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw new Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return B8n.parse(await o.json())}async function cqt(t,e,r=fetch){try{return await r(t,{headers:e})}catch(o){if(o instanceof TypeError)return e?cqt(t,void 0,r):void 0;throw o}}function k9s(t,e="",r={}){return e.endsWith("/")&&(e=e.slice(0,-1)),r.prependPathname?`${e}/.well-known/${t}`:`/.well-known/${t}${e}`}async function G8n(t,e,r=fetch){return await cqt(t,{"MCP-Protocol-Version":e},r)}function B9s(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function M9s(t,e,r,o){var s,a;let i=new URL(t),n=(s=o?.protocolVersion)!==null&&s!==void 0?s:roe,c;if(o?.metadataUrl)c=new URL(o.metadataUrl);else{let f=k9s(e,i.pathname);c=new URL(f,(a=o?.metadataServerUrl)!==null&&a!==void 0?a:i),c.search=i.search}let u=await G8n(c,n,r);if(!o?.metadataUrl&&B9s(u,i.pathname)){let f=new URL(`/.well-known/${e}`,i);u=await G8n(f,n,r)}return u}function L9s(t){let e=typeof t=="string"?new URL(t):t,r=e.pathname!=="/",o=[];if(!r)return o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",e.origin),type:"oidc"}),o;let s=e.pathname;return s.endsWith("/")&&(s=s.slice(0,-1)),o.push({url:new URL(`/.well-known/oauth-authorization-server${s}`,e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${s}`,e.origin),type:"oidc"}),o.push({url:new URL(`${s}/.well-known/openid-configuration`,e.origin),type:"oidc"}),o}async function U9s(t,{fetchFn:e=fetch,protocolVersion:r=roe}={}){var o;let s={"MCP-Protocol-Version":r},a=L9s(t);for(let{url:i,type:n}of a){let c=await cqt(i,s,e);if(c){if(!c.ok){if(c.status>=400&&c.status<500)continue;throw new Error(`HTTP ${c.status} trying to load ${n==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(n==="oauth")return nqt.parse(await c.json());{let u=M8n.parse(await c.json());if(!(!((o=u.code_challenge_methods_supported)===null||o===void 0)&&o.includes("S256")))throw new Error(`Incompatible OIDC provider at ${i}: does not support S256 code challenge method required by MCP specification`);return u}}}}async function F9s(t,{metadata:e,clientInformation:r,redirectUrl:o,scope:s,state:a,resource:i}){let n="code",c="S256",u;if(e){if(u=new URL(e.authorization_endpoint),!e.response_types_supported.includes(n))throw new Error(`Incompatible auth server: does not support response type ${n}`);if(!e.code_challenge_methods_supported||!e.code_challenge_methods_supported.includes(c))throw new Error(`Incompatible auth server: does not support code challenge method ${c}`)}else u=new URL("/authorize",t);let f=await rqt(),d=f.code_verifier,p=f.code_challenge;return u.searchParams.set("response_type",n),u.searchParams.set("client_id",r.client_id),u.searchParams.set("code_challenge",p),u.searchParams.set("code_challenge_method",c),u.searchParams.set("redirect_uri",String(o)),a&&u.searchParams.set("state",a),s&&u.searchParams.set("scope",s),s?.includes("offline_access")&&u.searchParams.append("prompt","consent"),i&&u.searchParams.set("resource",i.href),{authorizationUrl:u,codeVerifier:d}}async function lqt(t,{metadata:e,clientInformation:r,authorizationCode:o,codeVerifier:s,redirectUri:a,resource:i,addClientAuthentication:n,fetchFn:c}){var u;let f="authorization_code",d=e?.token_endpoint?new URL(e.token_endpoint):new URL("/token",t);if(e?.grant_types_supported&&!e.grant_types_supported.includes(f))throw new Error(`Incompatible auth server: does not support grant type ${f}`);let p=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),h=new URLSearchParams({grant_type:f,code:o,code_verifier:s,redirect_uri:String(a)});if(n)n(p,h,t,e);else{let y=(u=e?.token_endpoint_auth_methods_supported)!==null&&u!==void 0?u:[],g=j8n(r,y);$8n(g,r,p,h)}i&&h.set("resource",i.href);let m=await(c??fetch)(d,{method:"POST",headers:p,body:h});if(!m.ok)throw await aqt(m);return iqt.parse(await m.json())}async function uqt(t,{metadata:e,clientInformation:r,refreshToken:o,resource:s,addClientAuthentication:a,fetchFn:i}){var n;let c="refresh_token",u;if(e){if(u=new URL(e.token_endpoint),e.grant_types_supported&&!e.grant_types_supported.includes(c))throw new Error(`Incompatible auth server: does not support grant type ${c}`)}else u=new URL("/token",t);let f=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),d=new URLSearchParams({grant_type:c,refresh_token:o});if(a)a(f,d,t,e);else{let h=(n=e?.token_endpoint_auth_methods_supported)!==null&&n!==void 0?n:[],m=j8n(r,h);$8n(m,r,f,d)}s&&d.set("resource",s.href);let p=await(i??fetch)(u,{method:"POST",headers:f,body:d});if(!p.ok)throw await aqt(p);return iqt.parse({refresh_token:o,...await p.json()})}async function Q9s(t,{metadata:e,clientMetadata:r,fetchFn:o}){let s;if(e){if(!e.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");s=new URL(e.registration_endpoint)}else s=new URL("/register",t);let a=await(o??fetch)(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok)throw await aqt(a);return U8n.parse(await a.json())}var ub,bJe=G(()=>{k8n();xL();oqt();oqt();q8n();V8n();ub=class extends Error{constructor(e){super(e??"Unauthorized")}}});var fqt,poe,W8n=G(()=>{P8n();xL();bJe();fqt=class extends Error{constructor(e,r,o){super(`SSE error: ${r}`),this.code=e,this.event=o}},poe=class{constructor(e,r){this._url=e,this._resourceMetadataUrl=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch}async _authThenStart(){var e;if(!this._authProvider)throw new ub("No auth provider");let r;try{r=await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new ub;return await this._startOrAuth()}async _commonHeaders(){var e;let r={};if(this._authProvider){let o=await this._authProvider.tokens();o&&(r.Authorization=`Bearer ${o.access_token}`)}return this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion),new Headers({...r,...(e=this._requestInit)===null||e===void 0?void 0:e.headers})}_startOrAuth(){var e,r,o;let s=(o=(r=(e=this===null||this===void 0?void 0:this._eventSourceInit)===null||e===void 0?void 0:e.fetch)!==null&&r!==void 0?r:this._fetch)!==null&&o!==void 0?o:fetch;return new Promise((a,i)=>{this._eventSource=new Nj(this._url.href,{...this._eventSourceInit,fetch:async(n,c)=>{let u=await this._commonHeaders();u.set("Accept","text/event-stream");let f=await s(n,{...c,headers:u});return f.status===401&&f.headers.has("www-authenticate")&&(this._resourceMetadataUrl=eve(f)),f}}),this._abortController=new AbortController,this._eventSource.onerror=n=>{var c;if(n.code===401&&this._authProvider){this._authThenStart().then(a,i);return}let u=new fqt(n.code,n.message,n);i(u),(c=this.onerror)===null||c===void 0||c.call(this,u)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",n=>{var c;let u=n;try{if(this._endpoint=new URL(u.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(f){i(f),(c=this.onerror)===null||c===void 0||c.call(this,f),this.close();return}a()}),this._eventSource.onmessage=n=>{var c,u;let f=n,d;try{d=_L.parse(JSON.parse(f.data))}catch(p){(c=this.onerror)===null||c===void 0||c.call(this,p);return}(u=this.onmessage)===null||u===void 0||u.call(this,d)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new ub("No auth provider");if(await DL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub("Failed to authorize")}async close(){var e,r,o;(e=this._abortController)===null||e===void 0||e.abort(),(r=this._eventSource)===null||r===void 0||r.close(),(o=this.onclose)===null||o===void 0||o.call(this)}async send(e){var r,o,s;if(!this._endpoint)throw new Error("Not connected");try{let a=await this._commonHeaders();a.set("content-type","application/json");let i={...this._requestInit,method:"POST",headers:a,body:JSON.stringify(e),signal:(r=this._abortController)===null||r===void 0?void 0:r.signal},n=await((o=this._fetch)!==null&&o!==void 0?o:fetch)(this._endpoint,i);if(!n.ok){if(n.status===401&&this._authProvider){if(this._resourceMetadataUrl=eve(n),await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub;return this.send(e)}let c=await n.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${n.status}): ${c}`)}}catch(a){throw(s=this.onerror)===null||s===void 0||s.call(this,a),a}}setProtocolVersion(e){this._protocolVersion=e}}});var EJe,z8n=G(()=>{jQt();EJe=class extends TransformStream{constructor({onError:e,onRetry:r,onComment:o}={}){let s;super({start(a){s=gJe({onEvent:i=>{a.enqueue(i)},onError(i){e==="terminate"?a.error(i):typeof e=="function"&&e(i)},onRetry:r,onComment:o})},transform(a){s.feed(a)}})}}});var q9s,tve,OL,dqt=G(()=>{xL();bJe();z8n();q9s={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},tve=class extends Error{constructor(e,r){super(`Streamable HTTP error: ${r}`),this.code=e}},OL=class{constructor(e,r){var o;this._url=e,this._resourceMetadataUrl=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._sessionId=r?.sessionId,this._reconnectionOptions=(o=r?.reconnectionOptions)!==null&&o!==void 0?o:q9s}async _authThenStart(){var e;if(!this._authProvider)throw new ub("No auth provider");let r;try{r=await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new ub;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){var e;let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._sessionId&&(r["mcp-session-id"]=this._sessionId),this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let o=this._normalizeHeaders((e=this._requestInit)===null||e===void 0?void 0:e.headers);return new Headers({...r,...o})}async _startOrAuthSse(e){var r,o,s;let{resumptionToken:a}=e;try{let i=await this._commonHeaders();i.set("Accept","text/event-stream"),a&&i.set("last-event-id",a);let n=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,{method:"GET",headers:i,signal:(o=this._abortController)===null||o===void 0?void 0:o.signal});if(!n.ok){if(n.status===401&&this._authProvider)return await this._authThenStart();if(n.status===405)return;throw new tve(n.status,`Failed to open SSE stream: ${n.statusText}`)}this._handleSseStream(n.body,e,!0)}catch(i){throw(s=this.onerror)===null||s===void 0||s.call(this,i),i}}_getNextReconnectionDelay(e){let r=this._reconnectionOptions.initialReconnectionDelay,o=this._reconnectionOptions.reconnectionDelayGrowFactor,s=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(o,e),s)}_normalizeHeaders(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}_scheduleReconnection(e,r=0){var o;let s=this._reconnectionOptions.maxRetries;if(s>0&&r>=s){(o=this.onerror)===null||o===void 0||o.call(this,new Error(`Maximum reconnection attempts (${s}) exceeded.`));return}let a=this._getNextReconnectionDelay(r);setTimeout(()=>{this._startOrAuthSse(e).catch(i=>{var n;(n=this.onerror)===null||n===void 0||n.call(this,new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(e,r+1)})},a)}_handleSseStream(e,r,o){if(!e)return;let{onresumptiontoken:s,replayMessageId:a}=r,i;(async()=>{var c,u,f,d;try{let p=e.pipeThrough(new TextDecoderStream).pipeThrough(new EJe).getReader();for(;;){let{value:h,done:m}=await p.read();if(m)break;if(h.id&&(i=h.id,s?.(h.id)),!h.event||h.event==="message")try{let y=_L.parse(JSON.parse(h.data));a!==void 0&&P3e(y)&&(y.id=a),(c=this.onmessage)===null||c===void 0||c.call(this,y)}catch(y){(u=this.onerror)===null||u===void 0||u.call(this,y)}}}catch(p){if((f=this.onerror)===null||f===void 0||f.call(this,new Error(`SSE stream disconnected: ${p}`)),o&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:i,onresumptiontoken:s,replayMessageId:a},0)}catch(h){(d=this.onerror)===null||d===void 0||d.call(this,new Error(`Failed to reconnect: ${h instanceof Error?h.message:String(h)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new ub("No auth provider");if(await DL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub("Failed to authorize")}async close(){var e,r;(e=this._abortController)===null||e===void 0||e.abort(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(e,r){var o,s,a,i;try{let{resumptionToken:n,onresumptiontoken:c}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:QYe(e)?e.id:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let u=await this._commonHeaders();u.set("content-type","application/json"),u.set("accept","application/json, text/event-stream");let f={...this._requestInit,method:"POST",headers:u,body:JSON.stringify(e),signal:(o=this._abortController)===null||o===void 0?void 0:o.signal},d=await((s=this._fetch)!==null&&s!==void 0?s:fetch)(this._url,f),p=d.headers.get("mcp-session-id");if(p&&(this._sessionId=p),!d.ok){if(d.status===401&&this._authProvider){if(this._resourceMetadataUrl=eve(d),await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub;return this.send(e)}let g=await d.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${d.status}): ${g}`)}if(d.status===202){Iwn(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let m=(Array.isArray(e)?e:[e]).filter(g=>"method"in g&&"id"in g&&g.id!==void 0).length>0,y=d.headers.get("content-type");if(m)if(y?.includes("text/event-stream"))this._handleSseStream(d.body,{onresumptiontoken:c},!1);else if(y?.includes("application/json")){let g=await d.json(),A=Array.isArray(g)?g.map(v=>_L.parse(v)):[_L.parse(g)];for(let v of A)(a=this.onmessage)===null||a===void 0||a.call(this,v)}else throw new tve(-1,`Unexpected content type: ${y}`)}catch(n){throw(i=this.onerror)===null||i===void 0||i.call(this,n),n}}get sessionId(){return this._sessionId}async terminateSession(){var e,r,o;if(this._sessionId)try{let s=await this._commonHeaders(),a={...this._requestInit,method:"DELETE",headers:s,signal:(e=this._abortController)===null||e===void 0?void 0:e.signal},i=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,a);if(!i.ok&&i.status!==405)throw new tve(i.status,`Failed to terminate session: ${i.statusText}`);this._sessionId=void 0}catch(s){throw(o=this.onerror)===null||o===void 0||o.call(this,s),s}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}}});import{readFile as H9s}from"node:fs/promises";var rve,nve,Mj,pqt=G(()=>{"use strict";SZ();bJe();Ji();(function(t){t.CLI_CONNECT="cli_connect",t.PING="ping",t.GET_ACTIVE_FILE="get_active_file",t.GET_FILE_CONTENT="get_file_content",t.GET_SELECTED_TEXT="get_selected_text",t.SHOW_DIFF="show_diff"})(rve||(rve={}));nve=class extends Error{code;constructor(e,r){super(r),this.code=e}},Mj=class{_websocket;_url;_authProvider;_websocketOptions;_WebSocket;_protocolVersion;_isClosed=!1;_specialIds=new Set;onclose;onerror;onmessage;sessionId;constructor(e,r){this._url=e,this._authProvider=r?.authProvider,this._websocketOptions=r?.websocketOptions,this._WebSocket=r?.WebSocket||Ak.default}async start(){if(this._isClosed)throw new Error(R.t("websocketClient.errors.transportClosed"));let e=null;if(this._authProvider)try{let s=await this._authProvider.tokens();s?.access_token&&(e=s.access_token)}catch(s){try{let a=await this._authProvider.clientInformation();if(a){let i=await this._authProvider.tokens();if(i?.refresh_token){let n=await uqt(this._url,{clientInformation:a,refreshToken:i.refresh_token,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(n),n?.access_token&&(e=n.access_token)}}}catch{if(this._authProvider.redirectToAuthorization){let i=this._authProvider.redirectUrl;throw await this._authProvider.redirectToAuthorization(typeof i=="string"?new URL(i):i),new Error(R.t("websocketClient.errors.unauthorizedOAuth"))}throw s}}let r={...this._websocketOptions?.headers};e&&(r.Authorization=`Bearer ${e}`),this._protocolVersion&&(r["MCP-Protocol-Version"]=this._protocolVersion);let o=new URL(this._url.toString());return o.protocol==="http:"?o.protocol="ws:":o.protocol==="https:"&&(o.protocol="wss:"),new Promise((s,a)=>{try{let i={headers:r};this._websocket=new this._WebSocket(o.toString(),i),this._websocket.on("open",()=>{s()}),this._websocket.on("error",n=>{let c=n.code!==void 0?n.code:void 0;a(new nve(c,`WebSocket error: ${n.message}`))}),this._websocket.on("message",async n=>{try{let c=n.toString(),u=JSON.parse(c);if(this._specialIds.has(Number(u.id))||u.type==="welcome")return;this.onmessage?.(await this._transformResponse(u))}catch(c){this.onerror?.(new Error(`Failed to parse WebSocket message: ${c instanceof Error?c.message:String(c)}`))}}),this._websocket.on("close",()=>{this._isClosed||(this._isClosed=!0,this.onclose?.())})}catch(i){a(new nve(void 0,`Failed to create WebSocket: ${i}`))}})}async finishAuth(e){if(!this._authProvider)throw new Error(R.t("websocketClient.errors.noAuthProvider"));try{let r=await this._authProvider.clientInformation();if(r){let o=this._authProvider.redirectUrl.toString(),s=await lqt(this._url,{clientInformation:r,authorizationCode:e,codeVerifier:await this._authProvider.codeVerifier(),redirectUri:o,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(s)}else throw new Error(R.t("websocketClient.errors.clientInfoNotAvailable"))}catch(r){throw new Error(`Failed to exchange authorization code for access token: ${r}`)}}async close(){this._isClosed=!0,this._websocket&&this._websocket.readyState===Ak.default.OPEN?this._websocket.close():this.onclose?.()}async send(e){if(this._isClosed)throw new Error(R.t("websocketClient.errors.transportClosed"));if(!this._websocket)throw new Error(R.t("websocketClient.errors.transportNotStarted"));if(this._websocket.readyState!==Ak.default.OPEN)throw new Error(R.t("websocketClient.errors.websocketNotOpen"));try{if(e.method==="notifications/initialized")return;let r=await this._transformRequest(e),o=JSON.stringify(r);this._websocket.send(o)}catch(r){throw new nve(void 0,`Failed to send message: ${r instanceof Error?r.message:String(r)}`)}}async _transformRequest(e){if(e.method==="initialize")return{type:rve.CLI_CONNECT,id:e.id,timestamp:Date.now(),payload:{clientInfo:{version:"0.3.16-beta.0",platform:process.platform,workingDirectory:process.cwd()}}};if(e.method==="tools/call"&&e.params?.name==="openDiff"){let{arguments:r}=e.params||{},{filePath:o,newContent:s}=r||{};return{type:rve.SHOW_DIFF,id:e.id,timestamp:Date.now(),payload:{originalText:await H9s(o,"utf8"),modifiedText:s}}}return e}async _transformResponse(e){if(e.type==="connection_ack")return{jsonrpc:"2.0",id:e.id,result:{protocolVersion:"2024-11-05",capabilities:{logging:{},prompts:{},resources:{},tools:{}},serverInfo:{name:"JetBrains Plugin Server",title:"JetBrains Plugin Server",version:"1.0.0"}}};if(e.type==="selection_changed"){let r=await this._getSelectedText();return{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0,selectedText:r}]}}}}return e.type==="active_file_changed"?{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0}]}}}:e}async _getSelectedText(){if(!this._websocket)return"";let e=performance.now();return this._specialIds.add(e),this._websocket.send(JSON.stringify({type:rve.GET_SELECTED_TEXT,id:e,timestamp:Date.now()})),new Promise((r,o)=>{this._websocket.once("message",s=>{try{let a=JSON.parse(s.toString());Number(a.id)===e&&(this._specialIds.delete(e),a.payload.success?r(a.payload.data.text):o(a.payload.error))}catch{r("")}})})}setProtocolVersion(e){this._protocolVersion=e}}});var K8n,SJe,Y8n=G(()=>{"use strict";K8n=we(g0e(),1);Ji();SJe=class{config;auth;redirectUrl="";clientMetadata={client_name:"iFlow CLI (Google ADC)",redirect_uris:[],grant_types:[],response_types:[],token_endpoint_auth_method:"none"};_clientInformation;constructor(e){this.config=e;let r=this.config?.oauth?.scopes;if(!r||r.length===0)throw new Error(R.t("mcp.auth.scopesRequired"));this.auth=new K8n.GoogleAuth({scopes:r})}clientInformation(){return this._clientInformation}saveClientInformation(e){this._clientInformation=e}async tokens(){let r=await(await this.auth.getClient()).getAccessToken();if(!r.token){console.error(R.t("mcp.auth.failedToGetAccessToken"));return}return{access_token:r.token,token_type:"Bearer"}}saveTokens(e){}redirectToAuthorization(e){}saveCodeVerifier(e){}codeVerifier(){return""}}});import{execFile as V9s}from"node:child_process";import{promisify as G9s}from"node:util";import{platform as j9s}from"node:os";import{URL as $9s}from"node:url";function W9s(t){let e;try{e=new $9s(t)}catch{throw new Error(`Invalid URL: ${t}`)}if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Error(`Unsafe protocol: ${e.protocol}. Only HTTP and HTTPS are allowed.`);if(/[\r\n\x00-\x1f]/.test(t))throw new Error("URL contains invalid characters")}async function X8n(t){W9s(t);let e=j9s(),r,o;switch(e){case"darwin":r="open",o=[t];break;case"win32":r="powershell.exe",o=["-NoProfile","-NonInteractive","-WindowStyle","Hidden","-Command",`Start-Process '${t.replace(/'/g,"''")}'`];break;case"linux":case"freebsd":case"openbsd":r="xdg-open",o=[t];break;default:throw new Error(`Unsupported platform: ${e}`)}let s={env:{...process.env,SHELL:void 0},detached:!0,stdio:"ignore"};try{await J8n(r,o,s)}catch(a){if((e==="linux"||e==="freebsd"||e==="openbsd")&&r==="xdg-open"){let i=["gnome-open","kde-open","firefox","chromium","google-chrome"];for(let n of i)try{await J8n(n,[t],s);return}catch{continue}}throw new Error(`Failed to open browser: ${a instanceof Error?a.message:"Unknown error"}`)}}var J8n,Z8n=G(()=>{"use strict";J8n=G9s(V9s)});function ha(t){return t instanceof Error&&"code"in t}function Wr(t){if(t instanceof Error)return t.message;try{return String(t)}catch{return"Failed to get error details"}}function hqt(t){if(t&&typeof t=="object"&&"response"in t){let r=z9s(t);if(r.error&&r.error.message&&r.error.code)switch(r.error.code){case 400:return new xJe(r.error.message);case 401:return new RL(r.error.message);case 403:return new _Je(r.error.message);default:}}return t}function z9s(t){return typeof t.response?.data=="string"?JSON.parse(t.response?.data):t.response?.data}var _Je,RL,xJe,Ed=G(()=>{"use strict";_Je=class extends Error{},RL=class extends Error{},xJe=class extends Error{}});import{promises as hoe}from"node:fs";import*as CJe from"node:path";import*as eDn from"node:os";var V0,TJe=G(()=>{"use strict";Ed();Ji();V0=class{static TOKEN_FILE="mcp-oauth-tokens.json";static CONFIG_DIR=".iflow";static getTokenFilePath(){let e=eDn.homedir();return CJe.join(e,this.CONFIG_DIR,this.TOKEN_FILE)}static async ensureConfigDir(){let e=CJe.dirname(this.getTokenFilePath());await hoe.mkdir(e,{recursive:!0})}static async loadTokens(){let e=new Map;try{let r=this.getTokenFilePath(),o=await hoe.readFile(r,"utf-8"),s=JSON.parse(o);for(let a of s)e.set(a.serverName,a)}catch(r){r.code!=="ENOENT"&&console.error(R.t("mcp.tokenStorage.errors.failedToLoadTokens",{error:Wr(r)}))}return e}static async saveToken(e,r,o,s,a){await this.ensureConfigDir();let i=await this.loadTokens(),n={serverName:e,token:r,clientId:o,tokenUrl:s,mcpServerUrl:a,updatedAt:Date.now()};i.set(e,n);let c=Array.from(i.values()),u=this.getTokenFilePath();try{await hoe.writeFile(u,JSON.stringify(c,null,2),{mode:384})}catch(f){throw console.error(R.t("mcp.tokenStorage.errors.failedToSaveToken",{error:Wr(f)})),f}}static async getToken(e){return(await this.loadTokens()).get(e)||null}static async removeToken(e){let r=await this.loadTokens();if(r.delete(e)){let o=Array.from(r.values()),s=this.getTokenFilePath();try{o.length===0?await hoe.unlink(s):await hoe.writeFile(s,JSON.stringify(o,null,2),{mode:384})}catch(a){console.error(R.t("mcp.tokenStorage.errors.failedToRemoveToken",{error:Wr(a)}))}}}static isTokenExpired(e){if(!e.expiresAt)return!1;let r=300*1e3;return Date.now()+r>=e.expiresAt}static async clearAllTokens(){try{let e=this.getTokenFilePath();await hoe.unlink(e)}catch(e){e.code!=="ENOENT"&&console.error(R.t("mcp.tokenStorage.errors.failedToClearTokens",{error:Wr(e)}))}}}});var G0,wJe=G(()=>{"use strict";Ed();Ji();G0=class{static buildWellKnownUrls(e){let r=new URL(e),o=`${r.protocol}//${r.host}`;return{protectedResource:new URL("/.well-known/oauth-protected-resource",o).toString(),authorizationServer:new URL("/.well-known/oauth-authorization-server",o).toString()}}static async fetchProtectedResourceMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch protected resource metadata from ${e}: ${Wr(r)}`),null}}static async fetchAuthorizationServerMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch authorization server metadata from ${e}: ${Wr(r)}`),null}}static metadataToOAuthConfig(e){return{authorizationUrl:e.authorization_endpoint,tokenUrl:e.token_endpoint,scopes:e.scopes_supported||[]}}static async discoverOAuthConfig(e){try{let r=this.buildWellKnownUrls(e),o=await this.fetchProtectedResourceMetadata(r.protectedResource);if(o?.authorization_servers?.length){let a=o.authorization_servers[0],i=new URL("/.well-known/oauth-authorization-server",a).toString(),n=await this.fetchAuthorizationServerMetadata(i);if(n){let c=this.metadataToOAuthConfig(n);return n.registration_endpoint&&console.log(R.t("mcp.oauth.discovery.dynamicRegistrationSupported"),n.registration_endpoint),c}}console.debug(`Trying OAuth discovery fallback at ${r.authorizationServer}`);let s=await this.fetchAuthorizationServerMetadata(r.authorizationServer);if(s){let a=this.metadataToOAuthConfig(s);return s.registration_endpoint&&console.log(R.t("mcp.oauth.discovery.dynamicRegistrationSupported"),s.registration_endpoint),a}return null}catch(r){return console.debug(`Failed to discover OAuth configuration: ${Wr(r)}`),null}}static parseWWWAuthenticateHeader(e){let r=e.match(/resource_metadata="([^"]+)"/);return r?r[1]:null}static async discoverOAuthFromWWWAuthenticate(e){let r=this.parseWWWAuthenticateHeader(e);if(!r)return null;console.log(R.t("mcp.oauth.discovery.foundResourceMetadataUri",{uri:r}));let o=await this.fetchProtectedResourceMetadata(r);if(!o?.authorization_servers?.length)return null;let s=o.authorization_servers[0],a=new URL("/.well-known/oauth-authorization-server",s).toString(),i=await this.fetchAuthorizationServerMetadata(a);return i?(console.log(R.t("mcp.oauth.discovery.configDiscoveredFromWwwAuth")),this.metadataToOAuthConfig(i)):null}static extractBaseUrl(e){let r=new URL(e);return`${r.protocol}//${r.host}`}static isSSEEndpoint(e){return e.includes("/sse")||!e.includes("/mcp")}static buildResourceParameter(e){let r=new URL(e);return`${r.protocol}//${r.host}`}}});import*as tDn from"node:http";import*as ive from"node:crypto";import{URL as mqt}from"node:url";var eS,gqt=G(()=>{"use strict";Z8n();TJe();Ed();wJe();Ji();eS=class{static REDIRECT_PORT=7777;static REDIRECT_PATH="/oauth/callback";static HTTP_OK=200;static HTTP_REDIRECT=302;static async registerClient(e,r){let s={client_name:"iFlow CLI MCP Client",redirect_uris:[r.redirectUri||`http://localhost:${this.REDIRECT_PORT}${this.REDIRECT_PATH}`],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",code_challenge_method:["S256"],scope:r.scopes?.join(" ")||""},a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!a.ok){let i=await a.text();throw new Error(R.t("mcp.auth.clientRegistrationFailed",{status:a.status,statusText:a.statusText,error:i}))}return await a.json()}static async discoverOAuthFromMCPServer(e){let r=G0.extractBaseUrl(e);return G0.discoverOAuthConfig(r)}static generatePKCEParams(){let e=ive.randomBytes(32).toString("base64url"),r=ive.createHash("sha256").update(e).digest("base64url"),o=ive.randomBytes(16).toString("base64url");return{codeVerifier:e,codeChallenge:r,state:o}}static async startCallbackServer(e){return new Promise((r,o)=>{let s=tDn.createServer(async(a,i)=>{try{let n=new mqt(a.url,`http://localhost:${this.REDIRECT_PORT}`);if(n.pathname!==this.REDIRECT_PATH){i.writeHead(404),i.end(R.t("mcp.ui.notFound"));return}let c=n.searchParams.get("code"),u=n.searchParams.get("state"),f=n.searchParams.get("error");if(f){i.writeHead(this.HTTP_OK,{"Content-Type":"text/html"}),i.end(`
910
+ `&&o++}}return[e,r]}var mJe,jQt=G(()=>{mJe=class extends Error{constructor(e,r){super(e),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}}});function b9s(t){let e=globalThis.DOMException;return typeof e=="function"?new e(t,"SyntaxError"):new SyntaxError(t)}function $Qt(t){return t instanceof Error?"errors"in t&&Array.isArray(t.errors)?t.errors.map($Qt).join(", "):"cause"in t&&t.cause instanceof Error?`${t}: ${$Qt(t.cause)}`:t.message:`${t}`}function O8n(t){return{type:t.type,message:t.message,code:t.code,defaultPrevented:t.defaultPrevented,cancelable:t.cancelable,timeStamp:t.timeStamp}}function E9s(){let t="document"in globalThis?globalThis.document:void 0;return t&&typeof t=="object"&&"baseURI"in t&&typeof t.baseURI=="string"?t.baseURI:void 0}var AJe,N8n,eqt,vc,fg,np,zO,lb,Rj,coe,yJe,vJe,Q3e,foe,q3e,IL,loe,doe,uoe,U3e,N6,WQt,zQt,KQt,R8n,YQt,JQt,F3e,XQt,ZQt,Nj,P8n=G(()=>{jQt();AJe=class extends Event{constructor(e,r){var o,s;super(e),this.code=(o=r?.code)!=null?o:void 0,this.message=(s=r?.message)!=null?s:void 0}[Symbol.for("nodejs.util.inspect.custom")](e,r,o){return o(O8n(this),r)}[Symbol.for("Deno.customInspect")](e,r){return e(O8n(this),r)}};N8n=t=>{throw TypeError(t)},eqt=(t,e,r)=>e.has(t)||N8n("Cannot "+r),vc=(t,e,r)=>(eqt(t,e,"read from private field"),r?r.call(t):e.get(t)),fg=(t,e,r)=>e.has(t)?N8n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),np=(t,e,r,o)=>(eqt(t,e,"write to private field"),e.set(t,r),r),zO=(t,e,r)=>(eqt(t,e,"access private method"),r),Nj=class extends EventTarget{constructor(e,r){var o,s;super(),fg(this,N6),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,fg(this,lb),fg(this,Rj),fg(this,coe),fg(this,yJe),fg(this,vJe),fg(this,Q3e),fg(this,foe),fg(this,q3e,null),fg(this,IL),fg(this,loe),fg(this,doe,null),fg(this,uoe,null),fg(this,U3e,null),fg(this,zQt,async a=>{var i;vc(this,loe).reset();let{body:n,redirected:c,status:u,headers:f}=a;if(u===204){zO(this,N6,F3e).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(c?np(this,coe,new URL(a.url)):np(this,coe,void 0),u!==200){zO(this,N6,F3e).call(this,`Non-200 status code (${u})`,u);return}if(!(f.get("content-type")||"").startsWith("text/event-stream")){zO(this,N6,F3e).call(this,'Invalid content type, expected "text/event-stream"',u);return}if(vc(this,lb)===this.CLOSED)return;np(this,lb,this.OPEN);let d=new Event("open");if((i=vc(this,U3e))==null||i.call(this,d),this.dispatchEvent(d),typeof n!="object"||!n||!("getReader"in n)){zO(this,N6,F3e).call(this,"Invalid response body, expected a web ReadableStream",u),this.close();return}let p=new TextDecoder,h=n.getReader(),m=!0;do{let{done:y,value:g}=await h.read();g&&vc(this,loe).feed(p.decode(g,{stream:!y})),y&&(m=!1,vc(this,loe).reset(),zO(this,N6,XQt).call(this))}while(m)}),fg(this,KQt,a=>{np(this,IL,void 0),!(a.name==="AbortError"||a.type==="aborted")&&zO(this,N6,XQt).call(this,$Qt(a))}),fg(this,YQt,a=>{typeof a.id=="string"&&np(this,q3e,a.id);let i=new MessageEvent(a.event||"message",{data:a.data,origin:vc(this,coe)?vc(this,coe).origin:vc(this,Rj).origin,lastEventId:a.id||""});vc(this,uoe)&&(!a.event||a.event==="message")&&vc(this,uoe).call(this,i),this.dispatchEvent(i)}),fg(this,JQt,a=>{np(this,Q3e,a)}),fg(this,ZQt,()=>{np(this,foe,void 0),vc(this,lb)===this.CONNECTING&&zO(this,N6,WQt).call(this)});try{if(e instanceof URL)np(this,Rj,e);else if(typeof e=="string")np(this,Rj,new URL(e,E9s()));else throw new Error("Invalid URL")}catch{throw b9s("An invalid or illegal string was specified")}np(this,loe,gJe({onEvent:vc(this,YQt),onRetry:vc(this,JQt)})),np(this,lb,this.CONNECTING),np(this,Q3e,3e3),np(this,vJe,(o=r?.fetch)!=null?o:globalThis.fetch),np(this,yJe,(s=r?.withCredentials)!=null?s:!1),zO(this,N6,WQt).call(this)}get readyState(){return vc(this,lb)}get url(){return vc(this,Rj).href}get withCredentials(){return vc(this,yJe)}get onerror(){return vc(this,doe)}set onerror(e){np(this,doe,e)}get onmessage(){return vc(this,uoe)}set onmessage(e){np(this,uoe,e)}get onopen(){return vc(this,U3e)}set onopen(e){np(this,U3e,e)}addEventListener(e,r,o){let s=r;super.addEventListener(e,s,o)}removeEventListener(e,r,o){let s=r;super.removeEventListener(e,s,o)}close(){vc(this,foe)&&clearTimeout(vc(this,foe)),vc(this,lb)!==this.CLOSED&&(vc(this,IL)&&vc(this,IL).abort(),np(this,lb,this.CLOSED),np(this,IL,void 0))}};lb=new WeakMap,Rj=new WeakMap,coe=new WeakMap,yJe=new WeakMap,vJe=new WeakMap,Q3e=new WeakMap,foe=new WeakMap,q3e=new WeakMap,IL=new WeakMap,loe=new WeakMap,doe=new WeakMap,uoe=new WeakMap,U3e=new WeakMap,N6=new WeakSet,WQt=function(){np(this,lb,this.CONNECTING),np(this,IL,new AbortController),vc(this,vJe)(vc(this,Rj),zO(this,N6,R8n).call(this)).then(vc(this,zQt)).catch(vc(this,KQt))},zQt=new WeakMap,KQt=new WeakMap,R8n=function(){var t;let e={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...vc(this,q3e)?{"Last-Event-ID":vc(this,q3e)}:void 0},cache:"no-store",signal:(t=vc(this,IL))==null?void 0:t.signal};return"window"in globalThis&&(e.credentials=this.withCredentials?"include":"same-origin"),e},YQt=new WeakMap,JQt=new WeakMap,F3e=function(t,e){var r;vc(this,lb)!==this.CLOSED&&np(this,lb,this.CLOSED);let o=new AJe("error",{code:e,message:t});(r=vc(this,doe))==null||r.call(this,o),this.dispatchEvent(o)},XQt=function(t,e){var r;if(vc(this,lb)===this.CLOSED)return;np(this,lb,this.CONNECTING);let o=new AJe("error",{code:e,message:t});(r=vc(this,doe))==null||r.call(this,o),this.dispatchEvent(o),np(this,foe,setTimeout(vc(this,ZQt),vc(this,Q3e)))},ZQt=new WeakMap,Nj.CONNECTING=0,Nj.OPEN=1,Nj.CLOSED=2});async function S9s(t){return(await tqt).getRandomValues(new Uint8Array(t))}async function _9s(t){let e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",r="",o=await S9s(t);for(let s=0;s<t;s++){let a=o[s]%e.length;r+=e[a]}return r}async function x9s(t){return await _9s(t)}async function C9s(t){let e=await(await tqt).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function rqt(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;let e=await x9s(t),r=await C9s(e);return{code_verifier:e,code_challenge:r}}var tqt,k8n=G(()=>{tqt=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(t=>t.webcrypto)});var H0,B8n,nqt,T9s,M8n,iqt,L8n,w9s,I9s,U8n,H3l,V3l,oqt=G(()=>{SL();H0=re.string().url().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:re.ZodIssueCode.custom,message:"URL must be parseable",fatal:!0}),re.NEVER}).refine(t=>{let e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),B8n=re.object({resource:re.string().url(),authorization_servers:re.array(H0).optional(),jwks_uri:re.string().url().optional(),scopes_supported:re.array(re.string()).optional(),bearer_methods_supported:re.array(re.string()).optional(),resource_signing_alg_values_supported:re.array(re.string()).optional(),resource_name:re.string().optional(),resource_documentation:re.string().optional(),resource_policy_uri:re.string().url().optional(),resource_tos_uri:re.string().url().optional(),tls_client_certificate_bound_access_tokens:re.boolean().optional(),authorization_details_types_supported:re.array(re.string()).optional(),dpop_signing_alg_values_supported:re.array(re.string()).optional(),dpop_bound_access_tokens_required:re.boolean().optional()}).passthrough(),nqt=re.object({issuer:re.string(),authorization_endpoint:H0,token_endpoint:H0,registration_endpoint:H0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),service_documentation:H0.optional(),revocation_endpoint:H0.optional(),revocation_endpoint_auth_methods_supported:re.array(re.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),introspection_endpoint:re.string().optional(),introspection_endpoint_auth_methods_supported:re.array(re.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),code_challenge_methods_supported:re.array(re.string()).optional()}).passthrough(),T9s=re.object({issuer:re.string(),authorization_endpoint:H0,token_endpoint:H0,userinfo_endpoint:H0.optional(),jwks_uri:H0,registration_endpoint:H0.optional(),scopes_supported:re.array(re.string()).optional(),response_types_supported:re.array(re.string()),response_modes_supported:re.array(re.string()).optional(),grant_types_supported:re.array(re.string()).optional(),acr_values_supported:re.array(re.string()).optional(),subject_types_supported:re.array(re.string()),id_token_signing_alg_values_supported:re.array(re.string()),id_token_encryption_alg_values_supported:re.array(re.string()).optional(),id_token_encryption_enc_values_supported:re.array(re.string()).optional(),userinfo_signing_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_alg_values_supported:re.array(re.string()).optional(),userinfo_encryption_enc_values_supported:re.array(re.string()).optional(),request_object_signing_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_alg_values_supported:re.array(re.string()).optional(),request_object_encryption_enc_values_supported:re.array(re.string()).optional(),token_endpoint_auth_methods_supported:re.array(re.string()).optional(),token_endpoint_auth_signing_alg_values_supported:re.array(re.string()).optional(),display_values_supported:re.array(re.string()).optional(),claim_types_supported:re.array(re.string()).optional(),claims_supported:re.array(re.string()).optional(),service_documentation:re.string().optional(),claims_locales_supported:re.array(re.string()).optional(),ui_locales_supported:re.array(re.string()).optional(),claims_parameter_supported:re.boolean().optional(),request_parameter_supported:re.boolean().optional(),request_uri_parameter_supported:re.boolean().optional(),require_request_uri_registration:re.boolean().optional(),op_policy_uri:H0.optional(),op_tos_uri:H0.optional()}).passthrough(),M8n=T9s.merge(nqt.pick({code_challenge_methods_supported:!0})),iqt=re.object({access_token:re.string(),id_token:re.string().optional(),token_type:re.string(),expires_in:re.number().optional(),scope:re.string().optional(),refresh_token:re.string().optional()}).strip(),L8n=re.object({error:re.string(),error_description:re.string().optional(),error_uri:re.string().optional()}),w9s=re.object({redirect_uris:re.array(H0),token_endpoint_auth_method:re.string().optional(),grant_types:re.array(re.string()).optional(),response_types:re.array(re.string()).optional(),client_name:re.string().optional(),client_uri:H0.optional(),logo_uri:H0.optional(),scope:re.string().optional(),contacts:re.array(re.string()).optional(),tos_uri:H0.optional(),policy_uri:re.string().optional(),jwks_uri:H0.optional(),jwks:re.any().optional(),software_id:re.string().optional(),software_version:re.string().optional(),software_statement:re.string().optional()}).strip(),I9s=re.object({client_id:re.string(),client_secret:re.string().optional(),client_id_issued_at:re.number().optional(),client_secret_expires_at:re.number().optional()}).strip(),U8n=w9s.merge(I9s),H3l=re.object({error:re.string(),error_description:re.string().optional()}).strip(),V3l=re.object({token:re.string(),token_type_hint:re.string().optional()}).strip()});function F8n(t){let e=typeof t=="string"?new URL(t):new URL(t.href);return e.hash="",e}function Q8n({requestedResource:t,configuredResource:e}){let r=typeof t=="string"?new URL(t):new URL(t.href),o=typeof e=="string"?new URL(e):new URL(e.href);if(r.origin!==o.origin||r.pathname.length<o.pathname.length)return!1;let s=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",a=o.pathname.endsWith("/")?o.pathname:o.pathname+"/";return s.startsWith(a)}var q8n=G(()=>{});var Dm,H3e,Pj,kj,Bj,V3e,G3e,j3e,KO,$3e,W3e,z3e,K3e,Y3e,J3e,X3e,Z3e,H8n,V8n=G(()=>{Dm=class extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}},H3e=class extends Dm{};H3e.errorCode="invalid_request";Pj=class extends Dm{};Pj.errorCode="invalid_client";kj=class extends Dm{};kj.errorCode="invalid_grant";Bj=class extends Dm{};Bj.errorCode="unauthorized_client";V3e=class extends Dm{};V3e.errorCode="unsupported_grant_type";G3e=class extends Dm{};G3e.errorCode="invalid_scope";j3e=class extends Dm{};j3e.errorCode="access_denied";KO=class extends Dm{};KO.errorCode="server_error";$3e=class extends Dm{};$3e.errorCode="temporarily_unavailable";W3e=class extends Dm{};W3e.errorCode="unsupported_response_type";z3e=class extends Dm{};z3e.errorCode="unsupported_token_type";K3e=class extends Dm{};K3e.errorCode="invalid_token";Y3e=class extends Dm{};Y3e.errorCode="method_not_allowed";J3e=class extends Dm{};J3e.errorCode="too_many_requests";X3e=class extends Dm{};X3e.errorCode="invalid_client_metadata";Z3e=class extends Dm{};Z3e.errorCode="insufficient_scope";H8n={[H3e.errorCode]:H3e,[Pj.errorCode]:Pj,[kj.errorCode]:kj,[Bj.errorCode]:Bj,[V3e.errorCode]:V3e,[G3e.errorCode]:G3e,[j3e.errorCode]:j3e,[KO.errorCode]:KO,[$3e.errorCode]:$3e,[W3e.errorCode]:W3e,[z3e.errorCode]:z3e,[K3e.errorCode]:K3e,[Y3e.errorCode]:Y3e,[J3e.errorCode]:J3e,[X3e.errorCode]:X3e,[Z3e.errorCode]:Z3e}});function j8n(t,e){let r=t.client_secret!==void 0;return e.length===0?r?"client_secret_post":"none":r&&e.includes("client_secret_basic")?"client_secret_basic":r&&e.includes("client_secret_post")?"client_secret_post":e.includes("none")?"none":r?"client_secret_post":"none"}function $8n(t,e,r,o){let{client_id:s,client_secret:a}=e;switch(t){case"client_secret_basic":D9s(s,a,r);return;case"client_secret_post":O9s(s,a,o);return;case"none":R9s(s,o);return;default:throw new Error(`Unsupported client authentication method: ${t}`)}}function D9s(t,e,r){if(!e)throw new Error("client_secret_basic authentication requires a client_secret");let o=btoa(`${t}:${e}`);r.set("Authorization",`Basic ${o}`)}function O9s(t,e,r){r.set("client_id",t),e&&r.set("client_secret",e)}function R9s(t,e){e.set("client_id",t)}async function aqt(t){let e=t instanceof Response?t.status:void 0,r=t instanceof Response?await t.text():t;try{let o=L8n.parse(JSON.parse(r)),{error:s,error_description:a,error_uri:i}=o,n=H8n[s]||KO;return new n(a||"",i)}catch(o){let s=`${e?`HTTP ${e}: `:""}Invalid OAuth error response: ${o}. Raw body: ${r}`;return new KO(s)}}async function DL(t,e){var r,o;try{return await sqt(t,e)}catch(s){if(s instanceof Pj||s instanceof Bj)return await((r=t.invalidateCredentials)===null||r===void 0?void 0:r.call(t,"all")),await sqt(t,e);if(s instanceof kj)return await((o=t.invalidateCredentials)===null||o===void 0?void 0:o.call(t,"tokens")),await sqt(t,e);throw s}}async function sqt(t,{serverUrl:e,authorizationCode:r,scope:o,resourceMetadataUrl:s,fetchFn:a}){let i,n;try{i=await P9s(e,{resourceMetadataUrl:s},a),i.authorization_servers&&i.authorization_servers.length>0&&(n=i.authorization_servers[0])}catch{}n||(n=e);let c=await N9s(e,t,i),u=await U9s(n,{fetchFn:a}),f=await Promise.resolve(t.clientInformation());if(!f){if(r!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");if(!t.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");let y=await Q9s(n,{metadata:u,clientMetadata:t.clientMetadata,fetchFn:a});await t.saveClientInformation(y),f=y}if(r!==void 0){let y=await t.codeVerifier(),g=await lqt(n,{metadata:u,clientInformation:f,authorizationCode:r,codeVerifier:y,redirectUri:t.redirectUrl,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(g),"AUTHORIZED"}let d=await t.tokens();if(d?.refresh_token)try{let y=await uqt(n,{metadata:u,clientInformation:f,refreshToken:d.refresh_token,resource:c,addClientAuthentication:t.addClientAuthentication,fetchFn:a});return await t.saveTokens(y),"AUTHORIZED"}catch(y){if(!(!(y instanceof Dm)||y instanceof KO))throw y}let p=t.state?await t.state():void 0,{authorizationUrl:h,codeVerifier:m}=await F9s(n,{metadata:u,clientInformation:f,state:p,redirectUrl:t.redirectUrl,scope:o||t.clientMetadata.scope,resource:c});return await t.saveCodeVerifier(m),await t.redirectToAuthorization(h),"REDIRECT"}async function N9s(t,e,r){let o=F8n(t);if(e.validateResourceURL)return await e.validateResourceURL(o,r?.resource);if(r){if(!Q8n({requestedResource:o,configuredResource:r.resource}))throw new Error(`Protected resource ${r.resource} does not match expected ${o} (or origin)`);return new URL(r.resource)}}function eve(t){let e=t.headers.get("WWW-Authenticate");if(!e)return;let[r,o]=e.split(" ");if(r.toLowerCase()!=="bearer"||!o)return;let a=/resource_metadata="([^"]*)"/.exec(e);if(a)try{return new URL(a[1])}catch{return}}async function P9s(t,e,r=fetch){let o=await M9s(t,"oauth-protected-resource",r,{protocolVersion:e?.protocolVersion,metadataUrl:e?.resourceMetadataUrl});if(!o||o.status===404)throw new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!o.ok)throw new Error(`HTTP ${o.status} trying to load well-known OAuth protected resource metadata.`);return B8n.parse(await o.json())}async function cqt(t,e,r=fetch){try{return await r(t,{headers:e})}catch(o){if(o instanceof TypeError)return e?cqt(t,void 0,r):void 0;throw o}}function k9s(t,e="",r={}){return e.endsWith("/")&&(e=e.slice(0,-1)),r.prependPathname?`${e}/.well-known/${t}`:`/.well-known/${t}${e}`}async function G8n(t,e,r=fetch){return await cqt(t,{"MCP-Protocol-Version":e},r)}function B9s(t,e){return!t||t.status>=400&&t.status<500&&e!=="/"}async function M9s(t,e,r,o){var s,a;let i=new URL(t),n=(s=o?.protocolVersion)!==null&&s!==void 0?s:roe,c;if(o?.metadataUrl)c=new URL(o.metadataUrl);else{let f=k9s(e,i.pathname);c=new URL(f,(a=o?.metadataServerUrl)!==null&&a!==void 0?a:i),c.search=i.search}let u=await G8n(c,n,r);if(!o?.metadataUrl&&B9s(u,i.pathname)){let f=new URL(`/.well-known/${e}`,i);u=await G8n(f,n,r)}return u}function L9s(t){let e=typeof t=="string"?new URL(t):t,r=e.pathname!=="/",o=[];if(!r)return o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/openid-configuration",e.origin),type:"oidc"}),o;let s=e.pathname;return s.endsWith("/")&&(s=s.slice(0,-1)),o.push({url:new URL(`/.well-known/oauth-authorization-server${s}`,e.origin),type:"oauth"}),o.push({url:new URL("/.well-known/oauth-authorization-server",e.origin),type:"oauth"}),o.push({url:new URL(`/.well-known/openid-configuration${s}`,e.origin),type:"oidc"}),o.push({url:new URL(`${s}/.well-known/openid-configuration`,e.origin),type:"oidc"}),o}async function U9s(t,{fetchFn:e=fetch,protocolVersion:r=roe}={}){var o;let s={"MCP-Protocol-Version":r},a=L9s(t);for(let{url:i,type:n}of a){let c=await cqt(i,s,e);if(c){if(!c.ok){if(c.status>=400&&c.status<500)continue;throw new Error(`HTTP ${c.status} trying to load ${n==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}if(n==="oauth")return nqt.parse(await c.json());{let u=M8n.parse(await c.json());if(!(!((o=u.code_challenge_methods_supported)===null||o===void 0)&&o.includes("S256")))throw new Error(`Incompatible OIDC provider at ${i}: does not support S256 code challenge method required by MCP specification`);return u}}}}async function F9s(t,{metadata:e,clientInformation:r,redirectUrl:o,scope:s,state:a,resource:i}){let n="code",c="S256",u;if(e){if(u=new URL(e.authorization_endpoint),!e.response_types_supported.includes(n))throw new Error(`Incompatible auth server: does not support response type ${n}`);if(!e.code_challenge_methods_supported||!e.code_challenge_methods_supported.includes(c))throw new Error(`Incompatible auth server: does not support code challenge method ${c}`)}else u=new URL("/authorize",t);let f=await rqt(),d=f.code_verifier,p=f.code_challenge;return u.searchParams.set("response_type",n),u.searchParams.set("client_id",r.client_id),u.searchParams.set("code_challenge",p),u.searchParams.set("code_challenge_method",c),u.searchParams.set("redirect_uri",String(o)),a&&u.searchParams.set("state",a),s&&u.searchParams.set("scope",s),s?.includes("offline_access")&&u.searchParams.append("prompt","consent"),i&&u.searchParams.set("resource",i.href),{authorizationUrl:u,codeVerifier:d}}async function lqt(t,{metadata:e,clientInformation:r,authorizationCode:o,codeVerifier:s,redirectUri:a,resource:i,addClientAuthentication:n,fetchFn:c}){var u;let f="authorization_code",d=e?.token_endpoint?new URL(e.token_endpoint):new URL("/token",t);if(e?.grant_types_supported&&!e.grant_types_supported.includes(f))throw new Error(`Incompatible auth server: does not support grant type ${f}`);let p=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),h=new URLSearchParams({grant_type:f,code:o,code_verifier:s,redirect_uri:String(a)});if(n)n(p,h,t,e);else{let y=(u=e?.token_endpoint_auth_methods_supported)!==null&&u!==void 0?u:[],g=j8n(r,y);$8n(g,r,p,h)}i&&h.set("resource",i.href);let m=await(c??fetch)(d,{method:"POST",headers:p,body:h});if(!m.ok)throw await aqt(m);return iqt.parse(await m.json())}async function uqt(t,{metadata:e,clientInformation:r,refreshToken:o,resource:s,addClientAuthentication:a,fetchFn:i}){var n;let c="refresh_token",u;if(e){if(u=new URL(e.token_endpoint),e.grant_types_supported&&!e.grant_types_supported.includes(c))throw new Error(`Incompatible auth server: does not support grant type ${c}`)}else u=new URL("/token",t);let f=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),d=new URLSearchParams({grant_type:c,refresh_token:o});if(a)a(f,d,t,e);else{let h=(n=e?.token_endpoint_auth_methods_supported)!==null&&n!==void 0?n:[],m=j8n(r,h);$8n(m,r,f,d)}s&&d.set("resource",s.href);let p=await(i??fetch)(u,{method:"POST",headers:f,body:d});if(!p.ok)throw await aqt(p);return iqt.parse({refresh_token:o,...await p.json()})}async function Q9s(t,{metadata:e,clientMetadata:r,fetchFn:o}){let s;if(e){if(!e.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");s=new URL(e.registration_endpoint)}else s=new URL("/register",t);let a=await(o??fetch)(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok)throw await aqt(a);return U8n.parse(await a.json())}var ub,bJe=G(()=>{k8n();xL();oqt();oqt();q8n();V8n();ub=class extends Error{constructor(e){super(e??"Unauthorized")}}});var fqt,poe,W8n=G(()=>{P8n();xL();bJe();fqt=class extends Error{constructor(e,r,o){super(`SSE error: ${r}`),this.code=e,this.event=o}},poe=class{constructor(e,r){this._url=e,this._resourceMetadataUrl=void 0,this._eventSourceInit=r?.eventSourceInit,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch}async _authThenStart(){var e;if(!this._authProvider)throw new ub("No auth provider");let r;try{r=await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new ub;return await this._startOrAuth()}async _commonHeaders(){var e;let r={};if(this._authProvider){let o=await this._authProvider.tokens();o&&(r.Authorization=`Bearer ${o.access_token}`)}return this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion),new Headers({...r,...(e=this._requestInit)===null||e===void 0?void 0:e.headers})}_startOrAuth(){var e,r,o;let s=(o=(r=(e=this===null||this===void 0?void 0:this._eventSourceInit)===null||e===void 0?void 0:e.fetch)!==null&&r!==void 0?r:this._fetch)!==null&&o!==void 0?o:fetch;return new Promise((a,i)=>{this._eventSource=new Nj(this._url.href,{...this._eventSourceInit,fetch:async(n,c)=>{let u=await this._commonHeaders();u.set("Accept","text/event-stream");let f=await s(n,{...c,headers:u});return f.status===401&&f.headers.has("www-authenticate")&&(this._resourceMetadataUrl=eve(f)),f}}),this._abortController=new AbortController,this._eventSource.onerror=n=>{var c;if(n.code===401&&this._authProvider){this._authThenStart().then(a,i);return}let u=new fqt(n.code,n.message,n);i(u),(c=this.onerror)===null||c===void 0||c.call(this,u)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",n=>{var c;let u=n;try{if(this._endpoint=new URL(u.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(f){i(f),(c=this.onerror)===null||c===void 0||c.call(this,f),this.close();return}a()}),this._eventSource.onmessage=n=>{var c,u;let f=n,d;try{d=_L.parse(JSON.parse(f.data))}catch(p){(c=this.onerror)===null||c===void 0||c.call(this,p);return}(u=this.onmessage)===null||u===void 0||u.call(this,d)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(e){if(!this._authProvider)throw new ub("No auth provider");if(await DL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub("Failed to authorize")}async close(){var e,r,o;(e=this._abortController)===null||e===void 0||e.abort(),(r=this._eventSource)===null||r===void 0||r.close(),(o=this.onclose)===null||o===void 0||o.call(this)}async send(e){var r,o,s;if(!this._endpoint)throw new Error("Not connected");try{let a=await this._commonHeaders();a.set("content-type","application/json");let i={...this._requestInit,method:"POST",headers:a,body:JSON.stringify(e),signal:(r=this._abortController)===null||r===void 0?void 0:r.signal},n=await((o=this._fetch)!==null&&o!==void 0?o:fetch)(this._endpoint,i);if(!n.ok){if(n.status===401&&this._authProvider){if(this._resourceMetadataUrl=eve(n),await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub;return this.send(e)}let c=await n.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${n.status}): ${c}`)}}catch(a){throw(s=this.onerror)===null||s===void 0||s.call(this,a),a}}setProtocolVersion(e){this._protocolVersion=e}}});var EJe,z8n=G(()=>{jQt();EJe=class extends TransformStream{constructor({onError:e,onRetry:r,onComment:o}={}){let s;super({start(a){s=gJe({onEvent:i=>{a.enqueue(i)},onError(i){e==="terminate"?a.error(i):typeof e=="function"&&e(i)},onRetry:r,onComment:o})},transform(a){s.feed(a)}})}}});var q9s,tve,OL,dqt=G(()=>{xL();bJe();z8n();q9s={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},tve=class extends Error{constructor(e,r){super(`Streamable HTTP error: ${r}`),this.code=e}},OL=class{constructor(e,r){var o;this._url=e,this._resourceMetadataUrl=void 0,this._requestInit=r?.requestInit,this._authProvider=r?.authProvider,this._fetch=r?.fetch,this._sessionId=r?.sessionId,this._reconnectionOptions=(o=r?.reconnectionOptions)!==null&&o!==void 0?o:q9s}async _authThenStart(){var e;if(!this._authProvider)throw new ub("No auth provider");let r;try{r=await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(o){throw(e=this.onerror)===null||e===void 0||e.call(this,o),o}if(r!=="AUTHORIZED")throw new ub;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){var e;let r={};if(this._authProvider){let s=await this._authProvider.tokens();s&&(r.Authorization=`Bearer ${s.access_token}`)}this._sessionId&&(r["mcp-session-id"]=this._sessionId),this._protocolVersion&&(r["mcp-protocol-version"]=this._protocolVersion);let o=this._normalizeHeaders((e=this._requestInit)===null||e===void 0?void 0:e.headers);return new Headers({...r,...o})}async _startOrAuthSse(e){var r,o,s;let{resumptionToken:a}=e;try{let i=await this._commonHeaders();i.set("Accept","text/event-stream"),a&&i.set("last-event-id",a);let n=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,{method:"GET",headers:i,signal:(o=this._abortController)===null||o===void 0?void 0:o.signal});if(!n.ok){if(n.status===401&&this._authProvider)return await this._authThenStart();if(n.status===405)return;throw new tve(n.status,`Failed to open SSE stream: ${n.statusText}`)}this._handleSseStream(n.body,e,!0)}catch(i){throw(s=this.onerror)===null||s===void 0||s.call(this,i),i}}_getNextReconnectionDelay(e){let r=this._reconnectionOptions.initialReconnectionDelay,o=this._reconnectionOptions.reconnectionDelayGrowFactor,s=this._reconnectionOptions.maxReconnectionDelay;return Math.min(r*Math.pow(o,e),s)}_normalizeHeaders(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}_scheduleReconnection(e,r=0){var o;let s=this._reconnectionOptions.maxRetries;if(s>0&&r>=s){(o=this.onerror)===null||o===void 0||o.call(this,new Error(`Maximum reconnection attempts (${s}) exceeded.`));return}let a=this._getNextReconnectionDelay(r);setTimeout(()=>{this._startOrAuthSse(e).catch(i=>{var n;(n=this.onerror)===null||n===void 0||n.call(this,new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(e,r+1)})},a)}_handleSseStream(e,r,o){if(!e)return;let{onresumptiontoken:s,replayMessageId:a}=r,i;(async()=>{var c,u,f,d;try{let p=e.pipeThrough(new TextDecoderStream).pipeThrough(new EJe).getReader();for(;;){let{value:h,done:m}=await p.read();if(m)break;if(h.id&&(i=h.id,s?.(h.id)),!h.event||h.event==="message")try{let y=_L.parse(JSON.parse(h.data));a!==void 0&&P3e(y)&&(y.id=a),(c=this.onmessage)===null||c===void 0||c.call(this,y)}catch(y){(u=this.onerror)===null||u===void 0||u.call(this,y)}}}catch(p){if((f=this.onerror)===null||f===void 0||f.call(this,new Error(`SSE stream disconnected: ${p}`)),o&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:i,onresumptiontoken:s,replayMessageId:a},0)}catch(h){(d=this.onerror)===null||d===void 0||d.call(this,new Error(`Failed to reconnect: ${h instanceof Error?h.message:String(h)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new ub("No auth provider");if(await DL(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub("Failed to authorize")}async close(){var e,r;(e=this._abortController)===null||e===void 0||e.abort(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(e,r){var o,s,a,i;try{let{resumptionToken:n,onresumptiontoken:c}=r||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:QYe(e)?e.id:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let u=await this._commonHeaders();u.set("content-type","application/json"),u.set("accept","application/json, text/event-stream");let f={...this._requestInit,method:"POST",headers:u,body:JSON.stringify(e),signal:(o=this._abortController)===null||o===void 0?void 0:o.signal},d=await((s=this._fetch)!==null&&s!==void 0?s:fetch)(this._url,f),p=d.headers.get("mcp-session-id");if(p&&(this._sessionId=p),!d.ok){if(d.status===401&&this._authProvider){if(this._resourceMetadataUrl=eve(d),await DL(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new ub;return this.send(e)}let g=await d.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${d.status}): ${g}`)}if(d.status===202){Iwn(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(g=>{var A;return(A=this.onerror)===null||A===void 0?void 0:A.call(this,g)});return}let m=(Array.isArray(e)?e:[e]).filter(g=>"method"in g&&"id"in g&&g.id!==void 0).length>0,y=d.headers.get("content-type");if(m)if(y?.includes("text/event-stream"))this._handleSseStream(d.body,{onresumptiontoken:c},!1);else if(y?.includes("application/json")){let g=await d.json(),A=Array.isArray(g)?g.map(v=>_L.parse(v)):[_L.parse(g)];for(let v of A)(a=this.onmessage)===null||a===void 0||a.call(this,v)}else throw new tve(-1,`Unexpected content type: ${y}`)}catch(n){throw(i=this.onerror)===null||i===void 0||i.call(this,n),n}}get sessionId(){return this._sessionId}async terminateSession(){var e,r,o;if(this._sessionId)try{let s=await this._commonHeaders(),a={...this._requestInit,method:"DELETE",headers:s,signal:(e=this._abortController)===null||e===void 0?void 0:e.signal},i=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._url,a);if(!i.ok&&i.status!==405)throw new tve(i.status,`Failed to terminate session: ${i.statusText}`);this._sessionId=void 0}catch(s){throw(o=this.onerror)===null||o===void 0||o.call(this,s),s}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}}});import{readFile as H9s}from"node:fs/promises";var rve,nve,Mj,pqt=G(()=>{"use strict";SZ();bJe();Ji();(function(t){t.CLI_CONNECT="cli_connect",t.PING="ping",t.GET_ACTIVE_FILE="get_active_file",t.GET_FILE_CONTENT="get_file_content",t.GET_SELECTED_TEXT="get_selected_text",t.SHOW_DIFF="show_diff"})(rve||(rve={}));nve=class extends Error{code;constructor(e,r){super(r),this.code=e}},Mj=class{_websocket;_url;_authProvider;_websocketOptions;_WebSocket;_protocolVersion;_isClosed=!1;_specialIds=new Set;onclose;onerror;onmessage;sessionId;constructor(e,r){this._url=e,this._authProvider=r?.authProvider,this._websocketOptions=r?.websocketOptions,this._WebSocket=r?.WebSocket||Ak.default}async start(){if(this._isClosed)throw new Error(R.t("websocketClient.errors.transportClosed"));let e=null;if(this._authProvider)try{let s=await this._authProvider.tokens();s?.access_token&&(e=s.access_token)}catch(s){try{let a=await this._authProvider.clientInformation();if(a){let i=await this._authProvider.tokens();if(i?.refresh_token){let n=await uqt(this._url,{clientInformation:a,refreshToken:i.refresh_token,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(n),n?.access_token&&(e=n.access_token)}}}catch{if(this._authProvider.redirectToAuthorization){let i=this._authProvider.redirectUrl;throw await this._authProvider.redirectToAuthorization(typeof i=="string"?new URL(i):i),new Error(R.t("websocketClient.errors.unauthorizedOAuth"))}throw s}}let r={...this._websocketOptions?.headers};e&&(r.Authorization=`Bearer ${e}`),this._protocolVersion&&(r["MCP-Protocol-Version"]=this._protocolVersion);let o=new URL(this._url.toString());return o.protocol==="http:"?o.protocol="ws:":o.protocol==="https:"&&(o.protocol="wss:"),new Promise((s,a)=>{try{let i={headers:r};this._websocket=new this._WebSocket(o.toString(),i),this._websocket.on("open",()=>{s()}),this._websocket.on("error",n=>{let c=n.code!==void 0?n.code:void 0;a(new nve(c,`WebSocket error: ${n.message}`))}),this._websocket.on("message",async n=>{try{let c=n.toString(),u=JSON.parse(c);if(this._specialIds.has(Number(u.id))||u.type==="welcome")return;this.onmessage?.(await this._transformResponse(u))}catch(c){this.onerror?.(new Error(`Failed to parse WebSocket message: ${c instanceof Error?c.message:String(c)}`))}}),this._websocket.on("close",()=>{this._isClosed||(this._isClosed=!0,this.onclose?.())})}catch(i){a(new nve(void 0,`Failed to create WebSocket: ${i}`))}})}async finishAuth(e){if(!this._authProvider)throw new Error(R.t("websocketClient.errors.noAuthProvider"));try{let r=await this._authProvider.clientInformation();if(r){let o=this._authProvider.redirectUrl.toString(),s=await lqt(this._url,{clientInformation:r,authorizationCode:e,codeVerifier:await this._authProvider.codeVerifier(),redirectUri:o,addClientAuthentication:this._authProvider.addClientAuthentication});await this._authProvider.saveTokens(s)}else throw new Error(R.t("websocketClient.errors.clientInfoNotAvailable"))}catch(r){throw new Error(`Failed to exchange authorization code for access token: ${r}`)}}async close(){this._isClosed=!0,this._websocket&&this._websocket.readyState===Ak.default.OPEN?this._websocket.close():this.onclose?.()}async send(e){if(this._isClosed)throw new Error(R.t("websocketClient.errors.transportClosed"));if(!this._websocket)throw new Error(R.t("websocketClient.errors.transportNotStarted"));if(this._websocket.readyState!==Ak.default.OPEN)throw new Error(R.t("websocketClient.errors.websocketNotOpen"));try{if(e.method==="notifications/initialized")return;let r=await this._transformRequest(e),o=JSON.stringify(r);this._websocket.send(o)}catch(r){throw new nve(void 0,`Failed to send message: ${r instanceof Error?r.message:String(r)}`)}}async _transformRequest(e){if(e.method==="initialize")return{type:rve.CLI_CONNECT,id:e.id,timestamp:Date.now(),payload:{clientInfo:{version:"0.3.16",platform:process.platform,workingDirectory:process.cwd()}}};if(e.method==="tools/call"&&e.params?.name==="openDiff"){let{arguments:r}=e.params||{},{filePath:o,newContent:s}=r||{};return{type:rve.SHOW_DIFF,id:e.id,timestamp:Date.now(),payload:{originalText:await H9s(o,"utf8"),modifiedText:s}}}return e}async _transformResponse(e){if(e.type==="connection_ack")return{jsonrpc:"2.0",id:e.id,result:{protocolVersion:"2024-11-05",capabilities:{logging:{},prompts:{},resources:{},tools:{}},serverInfo:{name:"JetBrains Plugin Server",title:"JetBrains Plugin Server",version:"1.0.0"}}};if(e.type==="selection_changed"){let r=await this._getSelectedText();return{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0,selectedText:r}]}}}}return e.type==="active_file_changed"?{jsonrpc:"2.0",method:"ide/contextUpdate",params:{workspaceState:{openFiles:[{path:e.payload.fileName,timestamp:Date.now(),isActive:!0}]}}}:e}async _getSelectedText(){if(!this._websocket)return"";let e=performance.now();return this._specialIds.add(e),this._websocket.send(JSON.stringify({type:rve.GET_SELECTED_TEXT,id:e,timestamp:Date.now()})),new Promise((r,o)=>{this._websocket.once("message",s=>{try{let a=JSON.parse(s.toString());Number(a.id)===e&&(this._specialIds.delete(e),a.payload.success?r(a.payload.data.text):o(a.payload.error))}catch{r("")}})})}setProtocolVersion(e){this._protocolVersion=e}}});var K8n,SJe,Y8n=G(()=>{"use strict";K8n=we(g0e(),1);Ji();SJe=class{config;auth;redirectUrl="";clientMetadata={client_name:"iFlow CLI (Google ADC)",redirect_uris:[],grant_types:[],response_types:[],token_endpoint_auth_method:"none"};_clientInformation;constructor(e){this.config=e;let r=this.config?.oauth?.scopes;if(!r||r.length===0)throw new Error(R.t("mcp.auth.scopesRequired"));this.auth=new K8n.GoogleAuth({scopes:r})}clientInformation(){return this._clientInformation}saveClientInformation(e){this._clientInformation=e}async tokens(){let r=await(await this.auth.getClient()).getAccessToken();if(!r.token){console.error(R.t("mcp.auth.failedToGetAccessToken"));return}return{access_token:r.token,token_type:"Bearer"}}saveTokens(e){}redirectToAuthorization(e){}saveCodeVerifier(e){}codeVerifier(){return""}}});import{execFile as V9s}from"node:child_process";import{promisify as G9s}from"node:util";import{platform as j9s}from"node:os";import{URL as $9s}from"node:url";function W9s(t){let e;try{e=new $9s(t)}catch{throw new Error(`Invalid URL: ${t}`)}if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Error(`Unsafe protocol: ${e.protocol}. Only HTTP and HTTPS are allowed.`);if(/[\r\n\x00-\x1f]/.test(t))throw new Error("URL contains invalid characters")}async function X8n(t){W9s(t);let e=j9s(),r,o;switch(e){case"darwin":r="open",o=[t];break;case"win32":r="powershell.exe",o=["-NoProfile","-NonInteractive","-WindowStyle","Hidden","-Command",`Start-Process '${t.replace(/'/g,"''")}'`];break;case"linux":case"freebsd":case"openbsd":r="xdg-open",o=[t];break;default:throw new Error(`Unsupported platform: ${e}`)}let s={env:{...process.env,SHELL:void 0},detached:!0,stdio:"ignore"};try{await J8n(r,o,s)}catch(a){if((e==="linux"||e==="freebsd"||e==="openbsd")&&r==="xdg-open"){let i=["gnome-open","kde-open","firefox","chromium","google-chrome"];for(let n of i)try{await J8n(n,[t],s);return}catch{continue}}throw new Error(`Failed to open browser: ${a instanceof Error?a.message:"Unknown error"}`)}}var J8n,Z8n=G(()=>{"use strict";J8n=G9s(V9s)});function ha(t){return t instanceof Error&&"code"in t}function Wr(t){if(t instanceof Error)return t.message;try{return String(t)}catch{return"Failed to get error details"}}function hqt(t){if(t&&typeof t=="object"&&"response"in t){let r=z9s(t);if(r.error&&r.error.message&&r.error.code)switch(r.error.code){case 400:return new xJe(r.error.message);case 401:return new RL(r.error.message);case 403:return new _Je(r.error.message);default:}}return t}function z9s(t){return typeof t.response?.data=="string"?JSON.parse(t.response?.data):t.response?.data}var _Je,RL,xJe,Ed=G(()=>{"use strict";_Je=class extends Error{},RL=class extends Error{},xJe=class extends Error{}});import{promises as hoe}from"node:fs";import*as CJe from"node:path";import*as eDn from"node:os";var V0,TJe=G(()=>{"use strict";Ed();Ji();V0=class{static TOKEN_FILE="mcp-oauth-tokens.json";static CONFIG_DIR=".iflow";static getTokenFilePath(){let e=eDn.homedir();return CJe.join(e,this.CONFIG_DIR,this.TOKEN_FILE)}static async ensureConfigDir(){let e=CJe.dirname(this.getTokenFilePath());await hoe.mkdir(e,{recursive:!0})}static async loadTokens(){let e=new Map;try{let r=this.getTokenFilePath(),o=await hoe.readFile(r,"utf-8"),s=JSON.parse(o);for(let a of s)e.set(a.serverName,a)}catch(r){r.code!=="ENOENT"&&console.error(R.t("mcp.tokenStorage.errors.failedToLoadTokens",{error:Wr(r)}))}return e}static async saveToken(e,r,o,s,a){await this.ensureConfigDir();let i=await this.loadTokens(),n={serverName:e,token:r,clientId:o,tokenUrl:s,mcpServerUrl:a,updatedAt:Date.now()};i.set(e,n);let c=Array.from(i.values()),u=this.getTokenFilePath();try{await hoe.writeFile(u,JSON.stringify(c,null,2),{mode:384})}catch(f){throw console.error(R.t("mcp.tokenStorage.errors.failedToSaveToken",{error:Wr(f)})),f}}static async getToken(e){return(await this.loadTokens()).get(e)||null}static async removeToken(e){let r=await this.loadTokens();if(r.delete(e)){let o=Array.from(r.values()),s=this.getTokenFilePath();try{o.length===0?await hoe.unlink(s):await hoe.writeFile(s,JSON.stringify(o,null,2),{mode:384})}catch(a){console.error(R.t("mcp.tokenStorage.errors.failedToRemoveToken",{error:Wr(a)}))}}}static isTokenExpired(e){if(!e.expiresAt)return!1;let r=300*1e3;return Date.now()+r>=e.expiresAt}static async clearAllTokens(){try{let e=this.getTokenFilePath();await hoe.unlink(e)}catch(e){e.code!=="ENOENT"&&console.error(R.t("mcp.tokenStorage.errors.failedToClearTokens",{error:Wr(e)}))}}}});var G0,wJe=G(()=>{"use strict";Ed();Ji();G0=class{static buildWellKnownUrls(e){let r=new URL(e),o=`${r.protocol}//${r.host}`;return{protectedResource:new URL("/.well-known/oauth-protected-resource",o).toString(),authorizationServer:new URL("/.well-known/oauth-authorization-server",o).toString()}}static async fetchProtectedResourceMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch protected resource metadata from ${e}: ${Wr(r)}`),null}}static async fetchAuthorizationServerMetadata(e){try{let r=await fetch(e);return r.ok?await r.json():null}catch(r){return console.debug(`Failed to fetch authorization server metadata from ${e}: ${Wr(r)}`),null}}static metadataToOAuthConfig(e){return{authorizationUrl:e.authorization_endpoint,tokenUrl:e.token_endpoint,scopes:e.scopes_supported||[]}}static async discoverOAuthConfig(e){try{let r=this.buildWellKnownUrls(e),o=await this.fetchProtectedResourceMetadata(r.protectedResource);if(o?.authorization_servers?.length){let a=o.authorization_servers[0],i=new URL("/.well-known/oauth-authorization-server",a).toString(),n=await this.fetchAuthorizationServerMetadata(i);if(n){let c=this.metadataToOAuthConfig(n);return n.registration_endpoint&&console.log(R.t("mcp.oauth.discovery.dynamicRegistrationSupported"),n.registration_endpoint),c}}console.debug(`Trying OAuth discovery fallback at ${r.authorizationServer}`);let s=await this.fetchAuthorizationServerMetadata(r.authorizationServer);if(s){let a=this.metadataToOAuthConfig(s);return s.registration_endpoint&&console.log(R.t("mcp.oauth.discovery.dynamicRegistrationSupported"),s.registration_endpoint),a}return null}catch(r){return console.debug(`Failed to discover OAuth configuration: ${Wr(r)}`),null}}static parseWWWAuthenticateHeader(e){let r=e.match(/resource_metadata="([^"]+)"/);return r?r[1]:null}static async discoverOAuthFromWWWAuthenticate(e){let r=this.parseWWWAuthenticateHeader(e);if(!r)return null;console.log(R.t("mcp.oauth.discovery.foundResourceMetadataUri",{uri:r}));let o=await this.fetchProtectedResourceMetadata(r);if(!o?.authorization_servers?.length)return null;let s=o.authorization_servers[0],a=new URL("/.well-known/oauth-authorization-server",s).toString(),i=await this.fetchAuthorizationServerMetadata(a);return i?(console.log(R.t("mcp.oauth.discovery.configDiscoveredFromWwwAuth")),this.metadataToOAuthConfig(i)):null}static extractBaseUrl(e){let r=new URL(e);return`${r.protocol}//${r.host}`}static isSSEEndpoint(e){return e.includes("/sse")||!e.includes("/mcp")}static buildResourceParameter(e){let r=new URL(e);return`${r.protocol}//${r.host}`}}});import*as tDn from"node:http";import*as ive from"node:crypto";import{URL as mqt}from"node:url";var eS,gqt=G(()=>{"use strict";Z8n();TJe();Ed();wJe();Ji();eS=class{static REDIRECT_PORT=7777;static REDIRECT_PATH="/oauth/callback";static HTTP_OK=200;static HTTP_REDIRECT=302;static async registerClient(e,r){let s={client_name:"iFlow CLI MCP Client",redirect_uris:[r.redirectUri||`http://localhost:${this.REDIRECT_PORT}${this.REDIRECT_PATH}`],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",code_challenge_method:["S256"],scope:r.scopes?.join(" ")||""},a=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!a.ok){let i=await a.text();throw new Error(R.t("mcp.auth.clientRegistrationFailed",{status:a.status,statusText:a.statusText,error:i}))}return await a.json()}static async discoverOAuthFromMCPServer(e){let r=G0.extractBaseUrl(e);return G0.discoverOAuthConfig(r)}static generatePKCEParams(){let e=ive.randomBytes(32).toString("base64url"),r=ive.createHash("sha256").update(e).digest("base64url"),o=ive.randomBytes(16).toString("base64url");return{codeVerifier:e,codeChallenge:r,state:o}}static async startCallbackServer(e){return new Promise((r,o)=>{let s=tDn.createServer(async(a,i)=>{try{let n=new mqt(a.url,`http://localhost:${this.REDIRECT_PORT}`);if(n.pathname!==this.REDIRECT_PATH){i.writeHead(404),i.end(R.t("mcp.ui.notFound"));return}let c=n.searchParams.get("code"),u=n.searchParams.get("state"),f=n.searchParams.get("error");if(f){i.writeHead(this.HTTP_OK,{"Content-Type":"text/html"}),i.end(`
911
911
  <html>
912
912
  <body>
913
913
  <h1>${R.t("mcp.ui.authenticationFailed")}</h1>
@@ -4421,7 +4421,7 @@ ${Pe.description}`:Pe.subject||Pe.description||"Thinking...",[]),Ee=(0,Cc.useCal
4421
4421
  `,e-1);return{line:r===-1?0:t.slice(0,r+1).match(/\n/g).length,column:e-r-1}}function Bvr(t,e,{oneBased:r=!1}={}){if(typeof t!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(e))throw new TypeError("Index parameter should be an integer");if(e<0||e>t.length)throw new RangeError("Index out of bounds");let o=N2c(t,e);return r?{line:o.line+1,column:o.column+1}:o}var P2c=t=>`\\u{${t.codePointAt(0).toString(16)}}`,Mvr=class t extends Error{name="JSONError";fileName;#e;#t;#r;#n;#o;constructor(e){if(typeof e=="string")super(),this.#r=e;else{let{jsonParseError:r,fileName:o,input:s}=e;super(void 0,{cause:r}),this.#e=s,this.#t=r,this.fileName=o}Error.captureStackTrace?.(this,t)}get message(){this.#r??=`${B2c(this.#t.message)}${this.#e===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#r}${this.fileName?` in ${this.fileName}`:""}${e?`
4422
4422
 
4423
4423
  ${e}
4424
- `:""}`}set message(e){this.#r=e}#i(e){if(!this.#t)return;let r=this.#e,o=k2c(r,this.#t.message);if(o)return(0,jqi.codeFrameColumns)(r,{start:o},{highlightCode:e})}get codeFrame(){return this.#n??=this.#i(!0),this.#n}get rawCodeFrame(){return this.#o??=this.#i(!1),this.#o}},k2c=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:o,line:s,column:a}=r.groups;return s&&a?{line:Number(s),column:Number(a)}:Bvr(t,Number(o),{oneBased:!0})},B2c=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,o)=>`"${o}"(${P2c(o)})`);function Lvr(t,e,r){typeof e=="string"&&(r=e,e=void 0);try{return JSON.parse(t,e)}catch(o){throw new Mvr({jsonParseError:o,fileName:r,input:t})}}var tVi=we(ZHi(),1);import{fileURLToPath as iyc}from"node:url";function eVi(t){return t instanceof URL?iyc(t):t}var ayc=t=>syc.resolve(eVi(t)??".","package.json"),cyc=(t,e)=>{let r=typeof t=="string"?Lvr(t):t;return e&&(0,tVi.default)(r),r};async function rVi({cwd:t,normalize:e=!0}={}){let r=await oyc.readFile(ayc(t),"utf8");return cyc(r,e)}async function nVi(t){let e=await bqi("package.json",t);if(e)return{packageJson:await rVi({...t,cwd:lyc.dirname(e)}),path:e}}import{fileURLToPath as uyc}from"url";import fyc from"path";var dyc=uyc(import.meta.url),pyc=fyc.dirname(dyc),n1t;async function nq(){if(n1t)return n1t;let t=await nVi({cwd:pyc});if(t)return n1t=t.packageJson,n1t}async function iq(){let t=await nq();return"0.3.16-beta.0"}Ka();gr();import cJ from"node:process";var iVi={name:"about",description:R.t("command.about"),kind:"built-in",action:async t=>{let e=cJ.platform,r=R.t("aboutCommand.noSandbox");cJ.env.SANDBOX&&cJ.env.SANDBOX!=="sandbox-exec"?r=cJ.env.SANDBOX:cJ.env.SANDBOX==="sandbox-exec"&&(r=`sandbox-exec (${cJ.env.SEATBELT_PROFILE||R.t("aboutCommand.unknown")})`);let o=t.services.config?.getModel()||R.t("aboutCommand.unknown"),s=await iq(),a=t.services.settings.merged.selectedAuthType||"",i=cJ.env.GOOGLE_CLOUD_PROJECT||"",n={type:"about",cliVersion:s,osVersion:e,sandboxEnv:r,modelVersion:o,selectedAuthType:a,gcpProject:i};t.ui.addItem(n,Date.now())}};gr();gr();Ka();var o1t="\x1B[32m";var sVi="\x1B[31m",oq="\x1B[36m",M1="\x1B[90m";var iu="\x1B[0m";function i1t(t,e,r,o=!1){let s="";if(t.length===0)return s="\u{1F534} ",`${s}${e}
4424
+ `:""}`}set message(e){this.#r=e}#i(e){if(!this.#t)return;let r=this.#e,o=k2c(r,this.#t.message);if(o)return(0,jqi.codeFrameColumns)(r,{start:o},{highlightCode:e})}get codeFrame(){return this.#n??=this.#i(!0),this.#n}get rawCodeFrame(){return this.#o??=this.#i(!1),this.#o}},k2c=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:o,line:s,column:a}=r.groups;return s&&a?{line:Number(s),column:Number(a)}:Bvr(t,Number(o),{oneBased:!0})},B2c=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,o)=>`"${o}"(${P2c(o)})`);function Lvr(t,e,r){typeof e=="string"&&(r=e,e=void 0);try{return JSON.parse(t,e)}catch(o){throw new Mvr({jsonParseError:o,fileName:r,input:t})}}var tVi=we(ZHi(),1);import{fileURLToPath as iyc}from"node:url";function eVi(t){return t instanceof URL?iyc(t):t}var ayc=t=>syc.resolve(eVi(t)??".","package.json"),cyc=(t,e)=>{let r=typeof t=="string"?Lvr(t):t;return e&&(0,tVi.default)(r),r};async function rVi({cwd:t,normalize:e=!0}={}){let r=await oyc.readFile(ayc(t),"utf8");return cyc(r,e)}async function nVi(t){let e=await bqi("package.json",t);if(e)return{packageJson:await rVi({...t,cwd:lyc.dirname(e)}),path:e}}import{fileURLToPath as uyc}from"url";import fyc from"path";var dyc=uyc(import.meta.url),pyc=fyc.dirname(dyc),n1t;async function nq(){if(n1t)return n1t;let t=await nVi({cwd:pyc});if(t)return n1t=t.packageJson,n1t}async function iq(){let t=await nq();return"0.3.16"}Ka();gr();import cJ from"node:process";var iVi={name:"about",description:R.t("command.about"),kind:"built-in",action:async t=>{let e=cJ.platform,r=R.t("aboutCommand.noSandbox");cJ.env.SANDBOX&&cJ.env.SANDBOX!=="sandbox-exec"?r=cJ.env.SANDBOX:cJ.env.SANDBOX==="sandbox-exec"&&(r=`sandbox-exec (${cJ.env.SEATBELT_PROFILE||R.t("aboutCommand.unknown")})`);let o=t.services.config?.getModel()||R.t("aboutCommand.unknown"),s=await iq(),a=t.services.settings.merged.selectedAuthType||"",i=cJ.env.GOOGLE_CLOUD_PROJECT||"",n={type:"about",cliVersion:s,osVersion:e,sandboxEnv:r,modelVersion:o,selectedAuthType:a,gcpProject:i};t.ui.addItem(n,Date.now())}};gr();gr();Ka();var o1t="\x1B[32m";var sVi="\x1B[31m",oq="\x1B[36m",M1="\x1B[90m";var iu="\x1B[0m";function i1t(t,e,r,o=!1){let s="";if(t.length===0)return s="\u{1F534} ",`${s}${e}
4425
4425
  ${sVi}${R.t("agentsCommand.list.noAgentsFound")}${iu}
4426
4426
  `;s="\u{1F7E2} ";let a=`${s}${e}
4427
4427
  `;for(let i of t)o?a+=hyc(i):a+=`${o1t}- ${i.agentType}${iu}
@@ -5516,7 +5516,7 @@ ${R.t("gemini.errors.criticalUnhandledRejection")}
5516
5516
  =========================================
5517
5517
  ${R.t("gemini.errors.reason",{reason:e})}${e instanceof Error&&e.stack?`
5518
5518
  ${R.t("gemini.errors.stackTrace")}
5519
- ${e.stack}`:""}`;ec.emit("log-error",o),t||(t=!0,ec.emit("open-debug-console"))})}function zIc(){console.log(R.t("gemini.crashDiagnosticsEnabled")),process.setUncaughtExceptionCaptureCallback(t=>{let e={timestamp:new Date().toISOString(),error:{name:t.name,message:t.message,stack:t.stack},memory:process.memoryUsage(),pid:process.pid,cwd:process.cwd(),nodeVersion:process.version,platform:process.platform,arch:process.arch,uptime:process.uptime(),env:{NODE_ENV:"production",SANDBOX:process.env.SANDBOX,CLI_VERSION:"0.3.16-beta.0"}},r=`crash-${Date.now()}-${process.pid}.json`,o=UIc.join(process.cwd(),r);try{VIc.writeFileSync(o,JSON.stringify(e,null,2)),console.error(R.t("gemini.crashDetected",{crashFilePath:o})),console.error(R.t("gemini.coreDumpWillBeGenerated"))}catch(s){console.error(R.t("gemini.failedToWriteCrashFile"),s)}process.abort()}),process.on("warning",t=>{console.warn(R.t("gemini.debug.nodejsWarning"),{name:t.name,message:t.message,stack:t.stack})}),process.on("unhandledRejection",(t,e)=>{console.error(R.t("gemini.debug.unhandledPromiseRejectionDetected"),{reason:t,promise:e.toString()})})}async function Qoo(){WIc();let t=process.cwd(),e=Ru(t);if(!e.user.settings.cna){let p=await x7e();p&&e.setValue("User","cna",p)}if(await Nro(),e.errors.length>0){for(let p of e.errors){let h=R.t("gemini.errorInFile",{path:p.path,message:p.message});process.env.NO_COLOR||(h=`\x1B[31m${h}\x1B[0m`),console.error(h),console.error(R.t("gemini.pleaseFixFileAndTryAgain",{path:p.path}))}process.exit(1)}let r=await RAt();(!!r.prompt&&!r.promptInteractive&&!r.continue&&!r.resume||r.experimentalAcp)&&(process.env.IFLOW_NON_INTERACTIVE="true");let s=bq(t),a=await YJ(e.merged,s,B1.generateSessionId(),r);if(R.changeLanguage(a.getLanguage()),a.getDebugMode()&&zIc(),qIc.setDefaultResultOrder(GIc(e.merged.dnsResolutionOrder)),r.promptInteractive&&!process.stdin.isTTY&&(console.error(R.t("gemini.errors.promptInteractiveFlagNotSupported")),process.exit(1)),a.getListExtensions()){console.debug(R.t("gemini.installedExtensions"));for(let p of s)console.debug(`- ${p.config.name}`);process.exit(0)}if(r._&&r._[0]==="agent"){let{agentCommand:p}=await Promise.resolve().then(()=>(sxr(),Cro)),h=(await Promise.resolve().then(()=>(wCr(),TCr))).default;await h().scriptName("iflow").command(p).help().version(!1).parse(),process.exit(0)}if(r._&&r._[0]==="commands"){let{commandsCommand:p}=await Promise.resolve().then(()=>(ixr(),fro)),h=(await Promise.resolve().then(()=>(wCr(),TCr))).default;await h().scriptName("iflow").command(p).help().version(!1).parse(),process.exit(0)}if(e.merged.selectedAuthType||process.env.CLOUD_SHELL==="true"&&e.setValue("User","selectedAuthType",Er.CLOUD_SHELL),qXi(a.getDebugMode()),await a.initialize(),uc.loadCustomThemes(e.merged.customThemes),e.merged.theme&&(uc.setActiveTheme(e.merged.theme)||console.warn(R.t("gemini.themeNotFound",{theme:e.merged.theme}))),!process.env.SANDBOX){let p=e.merged.autoConfigureMaxOldSpaceSize?jIc(a):[],h=a.getSandbox();if(h){if(e.merged.selectedAuthType&&!e.merged.useExternalAuth)try{let m=MJ(e.merged.selectedAuthType);if(m)throw new Error(m);await a.refreshAuth(e.merged.selectedAuthType,{apiKey:e.merged.apiKey,baseUrl:e.merged.baseUrl,modelName:e.merged.modelName})}catch(m){console.error(R.t("gemini.errorAuthenticating"),m),process.exit(1)}await Iio(h,p,a),process.exit(0)}else p.length>0&&(await $Ic(p),process.exit(0))}if(e.merged.selectedAuthType===Er.LOGIN_WITH_IFLOW&&a.isBrowserLaunchSuppressed()&&await HH(e.merged.selectedAuthType,a),a.getExperimentalAcp())return a.getAcpPort()?await Jio(a,e,s,r,a.getAcpPort()):Gio(a,e,s,r);let i=a.getQuestion(),n=[...await Dio(),...await Rio(t)];if(!!r.promptInteractive||!!r.continue||!!r.resume||process.stdin.isTTY&&i?.length===0){console.clear();let p=await iq();Foo(Uoo(t),e);try{await ZYi()}catch(v){a.getDebugMode()&&console.warn("Failed to detect/enable Kitty protocol:",v)}try{await a.setIdeModeAndSyncConnection(!0)}catch(v){console.error(R.t("gemini.failedToConnectToIdeServer"),v)}let h,m=async()=>{try{if(console.clear(),Foo(Uoo(t),e),h)try{h.unmount(),await new Promise(x=>process.nextTick(x))}catch(x){console.error(R.t("gemini.errorDuringUnmount"),x)}let{executeSessionStartHooks:v}=await Promise.resolve().then(()=>(fJ(),uJ)),b=await v(a,"resume");h=V8e((0,F5e.jsx)(ICr.default.StrictMode,{children:(0,F5e.jsx)(Lxr,{instance:()=>h,config:a,settings:e,startupWarnings:n,version:p,continueMode:!!r.continue,resumeMode:!!r.resume,resumeSessionId:r.resume,fgMode:!0,sessionStartContext:b})}),{exitOnCtrlC:!1,isScreenReaderEnabled:!1,stdout:dbr()})}catch(v){console.error(R.t("gemini.errorDuringResume"),v)}};process.on("SIGCONT",m),w5e(()=>{process.off("SIGCONT",m)});let y="startup";(r.continue||r.resume)&&(y="resume");let{executeSessionStartHooks:g}=await Promise.resolve().then(()=>(fJ(),uJ)),A=await g(a,y);h=V8e((0,F5e.jsx)(ICr.default.StrictMode,{children:(0,F5e.jsx)(Lxr,{instance:()=>h,config:a,settings:e,startupWarnings:n,version:p,continueMode:!!r.continue,resumeMode:!!r.resume,resumeSessionId:r.resume,sessionStartContext:A})}),{exitOnCtrlC:!1,isScreenReaderEnabled:!1,stdout:dbr()}),e.merged.disableAutoUpdate||Y1t().then(v=>{Hno(v,e,a.getProjectRoot())}).catch(v=>{a.getDebugMode()&&console.error(R.t("gemini.updateCheckFailed"),v)}),w5e(()=>h.unmount());return}!process.stdin.isTTY&&!i&&(i+=await xio()),i||(console.error(R.t("gemini.noInputProvidedViaStdin")),process.exit(1));let u=Math.random().toString(16).slice(2);Qie(a,{"event.name":"user_prompt","event.timestamp":new Date().toISOString(),prompt:i,prompt_id:u,auth_type:a.getContentGeneratorConfig()?.authType,prompt_length:i.length});let f=await KIc(a,s,e,r),d=r.outputFile||r.output_file;await kio(f,i,u,d),process.exit(0)}function Foo(t,e){if(!e.merged.hideWindowTitle){let r=(process.env.CLI_TITLE||`iFlow - ${t}`).replace(/[\x00-\x1F\x7F]/g,"");process.stdout.write(`\x1B]2;${r}\x07`),process.on("exit",()=>{process.stdout.write("\x1B]2;\x07")})}}async function KIc(t,e,r,o){let s=t;if(t.getApprovalMode()!==Bi.YOLO){let a=r.merged.excludeTools||[],i=[lp.Name,Lm.Name,dh.Name],n=[...new Set([...a,...i])],c={...r.merged,excludeTools:n},u={...o};s=await YJ(c,e,t.getSessionId(),u),await s.initialize()}return await YIc(r.merged.selectedAuthType,s,r)}async function YIc(t,e,r){!t&&!process.env.GEMINI_API_KEY&&!IYe()&&(console.error(R.t("gemini.pleaseSetAuthMethod",{userSettingsPath:rJ})),process.exit(1)),t||(IYe()?t=Er.IFLOW:t=Er.IFLOW);let o=MJ(t);return o!=null&&(console.error(o),process.exit(1)),await e.refreshAuth(t,{apiKey:r.merged.apiKey,baseUrl:r.merged.baseUrl,modelName:r.merged.modelName}),e}Qoo().catch(t=>{console.error("An unexpected critical error occurred:"),t instanceof Error?console.error(t.stack):console.error(String(t)),process.exit(1)});
5519
+ ${e.stack}`:""}`;ec.emit("log-error",o),t||(t=!0,ec.emit("open-debug-console"))})}function zIc(){console.log(R.t("gemini.crashDiagnosticsEnabled")),process.setUncaughtExceptionCaptureCallback(t=>{let e={timestamp:new Date().toISOString(),error:{name:t.name,message:t.message,stack:t.stack},memory:process.memoryUsage(),pid:process.pid,cwd:process.cwd(),nodeVersion:process.version,platform:process.platform,arch:process.arch,uptime:process.uptime(),env:{NODE_ENV:"production",SANDBOX:process.env.SANDBOX,CLI_VERSION:"0.3.16"}},r=`crash-${Date.now()}-${process.pid}.json`,o=UIc.join(process.cwd(),r);try{VIc.writeFileSync(o,JSON.stringify(e,null,2)),console.error(R.t("gemini.crashDetected",{crashFilePath:o})),console.error(R.t("gemini.coreDumpWillBeGenerated"))}catch(s){console.error(R.t("gemini.failedToWriteCrashFile"),s)}process.abort()}),process.on("warning",t=>{console.warn(R.t("gemini.debug.nodejsWarning"),{name:t.name,message:t.message,stack:t.stack})}),process.on("unhandledRejection",(t,e)=>{console.error(R.t("gemini.debug.unhandledPromiseRejectionDetected"),{reason:t,promise:e.toString()})})}async function Qoo(){WIc();let t=process.cwd(),e=Ru(t);if(!e.user.settings.cna){let p=await x7e();p&&e.setValue("User","cna",p)}if(await Nro(),e.errors.length>0){for(let p of e.errors){let h=R.t("gemini.errorInFile",{path:p.path,message:p.message});process.env.NO_COLOR||(h=`\x1B[31m${h}\x1B[0m`),console.error(h),console.error(R.t("gemini.pleaseFixFileAndTryAgain",{path:p.path}))}process.exit(1)}let r=await RAt();(!!r.prompt&&!r.promptInteractive&&!r.continue&&!r.resume||r.experimentalAcp)&&(process.env.IFLOW_NON_INTERACTIVE="true");let s=bq(t),a=await YJ(e.merged,s,B1.generateSessionId(),r);if(R.changeLanguage(a.getLanguage()),a.getDebugMode()&&zIc(),qIc.setDefaultResultOrder(GIc(e.merged.dnsResolutionOrder)),r.promptInteractive&&!process.stdin.isTTY&&(console.error(R.t("gemini.errors.promptInteractiveFlagNotSupported")),process.exit(1)),a.getListExtensions()){console.debug(R.t("gemini.installedExtensions"));for(let p of s)console.debug(`- ${p.config.name}`);process.exit(0)}if(r._&&r._[0]==="agent"){let{agentCommand:p}=await Promise.resolve().then(()=>(sxr(),Cro)),h=(await Promise.resolve().then(()=>(wCr(),TCr))).default;await h().scriptName("iflow").command(p).help().version(!1).parse(),process.exit(0)}if(r._&&r._[0]==="commands"){let{commandsCommand:p}=await Promise.resolve().then(()=>(ixr(),fro)),h=(await Promise.resolve().then(()=>(wCr(),TCr))).default;await h().scriptName("iflow").command(p).help().version(!1).parse(),process.exit(0)}if(e.merged.selectedAuthType||process.env.CLOUD_SHELL==="true"&&e.setValue("User","selectedAuthType",Er.CLOUD_SHELL),qXi(a.getDebugMode()),await a.initialize(),uc.loadCustomThemes(e.merged.customThemes),e.merged.theme&&(uc.setActiveTheme(e.merged.theme)||console.warn(R.t("gemini.themeNotFound",{theme:e.merged.theme}))),!process.env.SANDBOX){let p=e.merged.autoConfigureMaxOldSpaceSize?jIc(a):[],h=a.getSandbox();if(h){if(e.merged.selectedAuthType&&!e.merged.useExternalAuth)try{let m=MJ(e.merged.selectedAuthType);if(m)throw new Error(m);await a.refreshAuth(e.merged.selectedAuthType,{apiKey:e.merged.apiKey,baseUrl:e.merged.baseUrl,modelName:e.merged.modelName})}catch(m){console.error(R.t("gemini.errorAuthenticating"),m),process.exit(1)}await Iio(h,p,a),process.exit(0)}else p.length>0&&(await $Ic(p),process.exit(0))}if(e.merged.selectedAuthType===Er.LOGIN_WITH_IFLOW&&a.isBrowserLaunchSuppressed()&&await HH(e.merged.selectedAuthType,a),a.getExperimentalAcp())return a.getAcpPort()?await Jio(a,e,s,r,a.getAcpPort()):Gio(a,e,s,r);let i=a.getQuestion(),n=[...await Dio(),...await Rio(t)];if(!!r.promptInteractive||!!r.continue||!!r.resume||process.stdin.isTTY&&i?.length===0){console.clear();let p=await iq();Foo(Uoo(t),e);try{await ZYi()}catch(v){a.getDebugMode()&&console.warn("Failed to detect/enable Kitty protocol:",v)}try{await a.setIdeModeAndSyncConnection(!0)}catch(v){console.error(R.t("gemini.failedToConnectToIdeServer"),v)}let h,m=async()=>{try{if(console.clear(),Foo(Uoo(t),e),h)try{h.unmount(),await new Promise(x=>process.nextTick(x))}catch(x){console.error(R.t("gemini.errorDuringUnmount"),x)}let{executeSessionStartHooks:v}=await Promise.resolve().then(()=>(fJ(),uJ)),b=await v(a,"resume");h=V8e((0,F5e.jsx)(ICr.default.StrictMode,{children:(0,F5e.jsx)(Lxr,{instance:()=>h,config:a,settings:e,startupWarnings:n,version:p,continueMode:!!r.continue,resumeMode:!!r.resume,resumeSessionId:r.resume,fgMode:!0,sessionStartContext:b})}),{exitOnCtrlC:!1,isScreenReaderEnabled:!1,stdout:dbr()})}catch(v){console.error(R.t("gemini.errorDuringResume"),v)}};process.on("SIGCONT",m),w5e(()=>{process.off("SIGCONT",m)});let y="startup";(r.continue||r.resume)&&(y="resume");let{executeSessionStartHooks:g}=await Promise.resolve().then(()=>(fJ(),uJ)),A=await g(a,y);h=V8e((0,F5e.jsx)(ICr.default.StrictMode,{children:(0,F5e.jsx)(Lxr,{instance:()=>h,config:a,settings:e,startupWarnings:n,version:p,continueMode:!!r.continue,resumeMode:!!r.resume,resumeSessionId:r.resume,sessionStartContext:A})}),{exitOnCtrlC:!1,isScreenReaderEnabled:!1,stdout:dbr()}),e.merged.disableAutoUpdate||Y1t().then(v=>{Hno(v,e,a.getProjectRoot())}).catch(v=>{a.getDebugMode()&&console.error(R.t("gemini.updateCheckFailed"),v)}),w5e(()=>h.unmount());return}!process.stdin.isTTY&&!i&&(i+=await xio()),i||(console.error(R.t("gemini.noInputProvidedViaStdin")),process.exit(1));let u=Math.random().toString(16).slice(2);Qie(a,{"event.name":"user_prompt","event.timestamp":new Date().toISOString(),prompt:i,prompt_id:u,auth_type:a.getContentGeneratorConfig()?.authType,prompt_length:i.length});let f=await KIc(a,s,e,r),d=r.outputFile||r.output_file;await kio(f,i,u,d),process.exit(0)}function Foo(t,e){if(!e.merged.hideWindowTitle){let r=(process.env.CLI_TITLE||`iFlow - ${t}`).replace(/[\x00-\x1F\x7F]/g,"");process.stdout.write(`\x1B]2;${r}\x07`),process.on("exit",()=>{process.stdout.write("\x1B]2;\x07")})}}async function KIc(t,e,r,o){let s=t;if(t.getApprovalMode()!==Bi.YOLO){let a=r.merged.excludeTools||[],i=[lp.Name,Lm.Name,dh.Name],n=[...new Set([...a,...i])],c={...r.merged,excludeTools:n},u={...o};s=await YJ(c,e,t.getSessionId(),u),await s.initialize()}return await YIc(r.merged.selectedAuthType,s,r)}async function YIc(t,e,r){!t&&!process.env.GEMINI_API_KEY&&!IYe()&&(console.error(R.t("gemini.pleaseSetAuthMethod",{userSettingsPath:rJ})),process.exit(1)),t||(IYe()?t=Er.IFLOW:t=Er.IFLOW);let o=MJ(t);return o!=null&&(console.error(o),process.exit(1)),await e.refreshAuth(t,{apiKey:r.merged.apiKey,baseUrl:r.merged.baseUrl,modelName:r.merged.modelName}),e}Qoo().catch(t=>{console.error("An unexpected critical error occurred:"),t instanceof Error?console.error(t.stack):console.error(String(t)),process.exit(1)});
5520
5520
  /**
5521
5521
  * @license
5522
5522
  * Copyright 2025 Google LLC