@getopenpay/openpay-js 0.5.16 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Resource-CUhg8dEK.js → Resource-B7bleRFM.js} +1 -1
- package/dist/{SimpleSpanProcessor-BtNzab2_.js → SimpleSpanProcessor-iCWR2wrc.js} +6 -6
- package/dist/{detect-resources-6fNItMfQ.js → detect-resources-D2kOb3PM.js} +5 -5
- package/dist/{diag-api-BaoBTidT.js → diag-api-BoyoSeID.js} +1 -1
- package/dist/{index-CmjNpx1j.js → index-BPMrBQET.js} +1 -1
- package/dist/{index-DhyFkarT.js → index-BYTBH3hu.js} +5 -5
- package/dist/{index-BohOdvI5.js → index-Bt776KGI.js} +1 -1
- package/dist/{index-CfhP31jP.js → index-ChUHjTV-.js} +2 -2
- package/dist/{index-2Dpi7rDE.js → index-Cu-H4NqV.js} +4 -4
- package/dist/{index-Dcezwdcs.js → index-DC5j54sB.js} +531 -529
- package/dist/{index-t_WVTb5S.js → index-DKzJ38go.js} +4 -4
- package/dist/{index-Cb6WFqJj.js → index-DSo9rD_X.js} +4 -4
- package/dist/{index-CsjF5pDg.js → index-DutR89R3.js} +1 -1
- package/dist/{index-BkFKN09r.js → index-_XOmOW58.js} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/{metrics-api-CsLzDvjo.js → metrics-api-CyZz_Aku.js} +1 -1
- package/dist/{suppress-tracing-Cu47NVB2.js → suppress-tracing-3WarLq8k.js} +1 -1
- package/dist/{url-CgnFZYDI.js → url-CWnDM543.js} +1 -1
- package/dist/{utils-Dius2V8g.js → utils-BnYsKdhz.js} +3 -3
- package/dist/{utils-BJ1UAbM8.js → utils-CRswusUx.js} +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -211,8 +211,8 @@ ${S.message}`),S.message)}else return getHumanFriendlyMessage(S.message);if(type
|
|
|
211
211
|
</div>
|
|
212
212
|
`;const C=document.createElement("div"),L=C.attachShadow({mode:"open"});L.appendChild(D.content.cloneNode(!0));const y=L.querySelector(".cancel-button"),_=L.querySelectorAll(".bank-item"),N=()=>{document.body.removeChild(C)};y.addEventListener("click",()=>{N(),M(new Error("Bank selection cancelled"))}),_.forEach((I,x)=>{I.addEventListener("click",()=>{N(),R(S[x])})}),document.body.appendChild(C)})},createAndOpenMicroDepositForm=(S,T)=>{const{width:A,height:O,baseUrl:P}=T??{},R=new URL(`app/direct_debit/micro_deposit/?type=${S}`,P).toString();return new Promise((M,D)=>{const U=createAndOpenFrame(R,{width:A,height:O,title:"Micro Deposit Form"}),C=()=>{U.host.remove()},L=()=>{C(),D(new Error("Micro deposit form cancelled"))},y=V=>{C(),V.status==="success"&&V.payload?"error"in V.payload?D(new Error(V.payload.error)):M(V.payload):D(new Error("Micro deposit form failed"))};U.cancelButton.addEventListener("click",L);const _=startPolling(U.iframe,y,new URL(P).origin,"micro-deposit-status",MicroDepositStatusResponse),N=()=>{U.cancelButton.removeEventListener("click",L),clearInterval(_)},I=L,x=()=>{N(),I()};U.cancelButton.removeEventListener("click",L),U.cancelButton.addEventListener("click",x)})};function startPolling(S,T,A,O,P){const R=async()=>{try{const D=await pingCdeForStatus(S,A,O,P);D&&(clearInterval(M),T(D))}catch{}};R();const M=setInterval(R,CDE_POLLING_INTERVAL);return M}function handleEvents({elements:S,pollingInterval:T,resolve:A}){const O=()=>{clearInterval(T),S.host.remove(),A({status:ThreeDSStatus.CANCELLED})};return S.cancelButton.addEventListener("click",O),()=>{S.cancelButton.removeEventListener("click",O)}}async function start3dsVerification(S){const{url:T,baseUrl:A,frameWidth:O,frameHeight:P,frameTitle:R}=S,M=createAndOpenFrame(T,{width:O,height:P,title:R});return new Promise(D=>{const U=y=>{setTimeout(()=>{M.host.remove()},1e3),D(y),L?.()},C=startPolling(M.iframe,U,new URL(A).origin,"ping-3ds-status",Ping3DSStatusResponse),L=handleEvents({elements:M,pollingInterval:C,resolve:D})})}const start3dsVerificationStrict=async S=>{const T=await start3dsVerification(S);if(T.status===ThreeDSStatus.CANCELLED)throw new Error("3DS verification cancelled");if(T.status===ThreeDSStatus.FAILURE)throw new Error("3DS verification failed");return T.status!==ThreeDSStatus.SUCCESS&&assertNever(T.status),{href:T.href}},openPopupWindow=(S,T)=>{const A=window.open(T,"_blank");if(!A)throw new Error(`${S} popup window blocked. Please allow popups for this site.`);return A},startPopupWindowVerificationStrict=async(S,T,A,O)=>{const{err__:P}=createOjsFlowLoggers("popup-verify");return new Promise((R,M)=>{const D=openPopupWindow(S,O),U=setInterval(async()=>{try{const C=await checkIfPopupWindowVerified(T,A);if(C.present)clearInterval(U),D.close(),R({href:C.href});else if(D.closed)throw new Error(`${S} payment cancelled`)}catch(C){P(getErrorMessage(C)),clearInterval(U),M(getErrorMessage(C))}},1e3)})},detectLanguage=()=>{let T=(navigator.languages&&navigator.languages.length?navigator.languages:[navigator.language])?.[0];return T&&(T=T.split("-")[0]),T},{log__:log__$s,err__:err__$s}=createOjsFlowLoggers("common-cc"),createDynamicValidationSchema=({require_zip_code:S,require_full_billing_address:T,require_full_shipping_address:A,payment_method:O})=>{const P={};return O==="ach"&&(P[FieldName.FIRST_NAME]=stringType().min(2,{message:"Minimum length is 2"}),P[FieldName.LAST_NAME]=stringType().min(2,{message:"Minimum length is 2"})),S&&(P[FieldName.ZIP_CODE]=RequiredString),T&&(P[FieldName.LINE1]=RequiredString,P[FieldName.CITY]=RequiredString,P[FieldName.STATE]=RequiredString,P[FieldName.COUNTRY]=RequiredString,P[FieldName.ZIP_CODE]=RequiredString),A&&(P[FieldName.SHIPPING_LINE1]=RequiredString,P[FieldName.SHIPPING_CITY]=RequiredString,P[FieldName.SHIPPING_STATE]=RequiredString,P[FieldName.SHIPPING_COUNTRY]=RequiredString,P[FieldName.SHIPPING_ZIP_CODE]=RequiredString),Object.keys(P).length===0?RequiredFormFields:RequiredFormFields.extend(P)},validateNonCdeFormFields=(S,T,A={})=>{if(A){log__$s(`Received default field values: ${JSON.stringify(A)}`);const R=Object.keys(A);for(let M=0;M<R.length;M++){const D=R[M],U=A[D];S[D]||(S[D]=U)}}S[FieldName.IS_SHIPPING_SAME_AS_BILLING]=!!S[FieldName.IS_SHIPPING_SAME_AS_BILLING],S[FieldName.IS_SHIPPING_SAME_AS_BILLING]&&(S[FieldName.SHIPPING_LINE1]=S[FieldName.LINE1],S[FieldName.SHIPPING_LINE2]=S[FieldName.LINE2],S[FieldName.SHIPPING_LINE3]=S[FieldName.LINE3],S[FieldName.SHIPPING_CITY]=S[FieldName.CITY],S[FieldName.SHIPPING_STATE]=S[FieldName.STATE],S[FieldName.SHIPPING_COUNTRY]=S[FieldName.COUNTRY],S[FieldName.SHIPPING_ZIP_CODE]=S[FieldName.ZIP_CODE]);const P=createDynamicValidationSchema(A).safeParse(S);if(!P.success){const R=P.error.format(),M=extractIssuesPerField(R),D=Object.keys(M);for(let U=0;U<D.length;U++){const C=D[U],L=M[C];T(C,L,C)}throw err__$s("Got validation errors in non-CDE form fields",M),new Error("Almost there! Just a few things highlighted above to fix before you can submit.")}return P.data},{log__:log__$r,err__:err__$r}=createOjsFlowLoggers("common-cc"),validateNonCdeFormFieldsForCC=validateNonCdeFormFields,validateTokenizeCardResults=(S,T)=>{for(const A of S)if(A.success===!1)throw A.errors.forEach(O=>{const P=AllFieldNames.safeParse(O.elementType);if(!P.success)err__$r(`Unknown field name in onValidationError: ${O.elementType}. Error object:`,O);else{const R=P.data;T(R,O.errors)}}),log__$r(`Error tokenizing card: got validation errors: ${JSON.stringify(A.errors)}`),new Error("Got validation errors while tokenizing card")},{err__:err__$q}=createOjsFlowLoggers("common"),parseConfirmPaymentFlowResponse=S=>{if(S.payment_methods.length!==1)throw new Error(`Expected exactly one payment method, got ${S.payment_methods.length}`);return{payment_method_id:S.payment_methods[0].id}},findCpmMatchingType=(S,T)=>{const A=S.find(O=>T.safeParse(O).success);if(!A)throw err__$q("No CPMs found for model. All models:",S),new Error("No CPMs found for model");return T.parse(A)},createCustomerFieldsFromForm=(S,T)=>({new_customer_email:S.email,new_customer_last_name:S.lastName,new_customer_first_name:S.firstName,customer_business_name:S.businessName,customer_tax_id:S.taxId,customer_tax_id_type:S.taxIdType,new_customer_address:generateBillingAddressFromFields(S),new_customer_shipping_address:generateShippingAddressFromFields(S,T)}),performSimpleCheckoutOrSetup=async S=>{const{log__:T}=createOjsFlowLoggers(S.logPrefix),A=await getPrefill(S.anyCdeConnection),O=parseConfirmPaymentFlowResponse(S.confirmResult);if(A.mode==="setup")return T("Setting up payment method..."),{mode:"setup",result:await finalizeSetupPaymentMethod(S.anyCdeConnection,{secure_token:A.token,pm_id:O.payment_method_id})};{if(S.usePayFirstFlow){if(T("Using pay-first flow..."),!S.confirmResult.pay_first_success_response)throw err__$q("Checkout failed, no pay-first success response:",S.confirmResult),new Error("Checkout failed, please try again with another payment method.");return{mode:"checkout",result:S.confirmResult.pay_first_success_response}}const P={secure_token:A.token,payment_input:{provider_type:S.checkoutPaymentMethod.provider},customer_email:S.requiredFormFields[FieldName.EMAIL],customer_address:generateBillingAddressFromFields(S.requiredFormFields),customer_shipping_address:generateShippingAddressFromFields(S.requiredFormFields,A.checkout_settings),promotion_code:S.requiredFormFields[FieldName.PROMOTION_CODE],line_items:A.line_items,total_amount_atom:A.amount_total_atom,cancel_at_end:!1,use_confirmed_pm_id:O.payment_method_id,checkout_payment_method:S.checkoutPaymentMethod};return T("Doing checkout...",P),{mode:"checkout",result:await performCheckout(S.anyCdeConnection,P)}}},PaymentProcessor=enumType(["stripe","airwallex","authorize_net","adyen","paypal","pockyt","loop"]);PaymentProcessor.Enum.stripe;const loadScript=({scriptId:S,src:T,checkLoadedFn:A})=>{const O=new AbortController;return new Promise((P,R)=>{let M=document.createElement("script");M.src=T,M.id=S,M.async=!0;const D=document.getElementById(S);A()?P():D?M=D:document.body.appendChild(M),M.addEventListener("load",()=>{O.abort(),P()},{signal:O.signal}),M.addEventListener("error",()=>{O.abort(),R("Failed to load the script")},{signal:O.signal})})},getPaymentDataRequest=({gateway:S,gatewayMerchantId:T,merchantName:A,merchantId:O,initialPreview:P,overridePaymentRequest:R,prefill:M})=>{const D=R?.amount?.amountAtom??P?.amountAtom??0,U=Math.max(D/100,0),C=(R?.amount?.currency??M?.currency??P.currency).toUpperCase(),L={apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"],billingAddressRequired:!0,billingAddressParameters:{format:"FULL"},allowCreditCards:!0,allowPrepaidCards:!0},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:S,gatewayMerchantId:T}}}],emailRequired:!0,shippingAddressRequired:M.checkout_settings.require_full_shipping_address,merchantInfo:{merchantId:O??"",merchantName:A},transactionInfo:{countryCode:"US",currencyCode:C,totalPriceStatus:R?.pending?"ESTIMATED":"FINAL",totalPrice:U.toFixed(2)}};return R?.googlePayPaymentRequest?typeof R.googlePayPaymentRequest=="function"?{...L,...R.googlePayPaymentRequest(L)}:{...L,...R.googlePayPaymentRequest}:L},loadGooglePayScript=()=>loadScript({scriptId:"__op_internal_google_pay_sdk",src:"https://pay.google.com/gp/p/js/pay.js",checkLoadedFn:()=>!!window.google?.payments?.api});let paymentsClient=null;const getGooglePayEnvironment=async S=>await getCurrentEnv(S)==="prod"?"PRODUCTION":"TEST",getGooglePaymentsClient=async(S,T)=>{const A=await getGooglePayEnvironment(S);return paymentsClient===null&&(paymentsClient=new window.google.payments.api.PaymentsClient({environment:A,merchantInfo:T.merchantInfo})),paymentsClient},parseAirwallexStartPaymentFlowResponse=S=>{const T=S.required_user_actions.find(A=>A.type==="airwallex_payment_consent");return T?CommonNextActionMetadata.parse(T):null},fillEmptyFormInputsWithGooglePay=(S,T)=>{const A={...S},O=T.paymentMethodData?.info?.billingAddress,P=T.shippingAddress;if(O){const[R,...M]=O.name?.trim()?.split(/\s+/)??[],D=M.join(" ")||void 0;A[FieldName.EMAIL]=A[FieldName.EMAIL]||T.email||"op_unfilled@getopenpay.com",A[FieldName.LINE1]=A[FieldName.LINE1]||O.address1||"",A[FieldName.LINE2]=A[FieldName.LINE2]||O.address2||"",A[FieldName.LINE3]=A[FieldName.LINE3]||O.address3||"",A[FieldName.CITY]=A[FieldName.CITY]||O.locality||"",A[FieldName.STATE]=A[FieldName.STATE]||O.administrativeArea||"",A[FieldName.COUNTRY]=A[FieldName.COUNTRY]||O.countryCode||"US",A[FieldName.ZIP_CODE]=A[FieldName.ZIP_CODE]||O.postalCode||"00000";const U=A[FieldName.FIRST_NAME]||R||"",C=A[FieldName.LAST_NAME]||D||"";U||C?(A[FieldName.FIRST_NAME]=U,A[FieldName.LAST_NAME]=C):(A[FieldName.FIRST_NAME]="_OP_UNKNOWN",A[FieldName.LAST_NAME]="")}return P&&(A[FieldName.SHIPPING_LINE1]=A[FieldName.SHIPPING_LINE1]||P.address1||"",A[FieldName.SHIPPING_LINE2]=A[FieldName.SHIPPING_LINE2]||P.address2||"",A[FieldName.SHIPPING_LINE3]=A[FieldName.SHIPPING_LINE3]||P.address3||"",A[FieldName.SHIPPING_CITY]=A[FieldName.SHIPPING_CITY]||P.locality||"",A[FieldName.SHIPPING_ZIP_CODE]=A[FieldName.SHIPPING_ZIP_CODE]||P.postalCode||"00000",A[FieldName.SHIPPING_STATE]=A[FieldName.SHIPPING_STATE]||P.administrativeArea||"",A[FieldName.SHIPPING_COUNTRY]=A[FieldName.SHIPPING_COUNTRY]||P.countryCode||"US"),A},{log__:log__$q,err__:err__$p}=createOjsFlowLoggers("awx-bacs"),runAirwallexBACSFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{const R=validateNonCdeFormFieldsForCC(A,O.get.onValidationError),M=S.anyCdeConnection,D=await getPrefill(M),U=P.verificationMethod??"truelayer";let C=null;if(U==="micro_deposit"){log__$q("Micro deposit verification selected, showing form...");try{C=await createAndOpenMicroDepositForm("bacs_direct_debit",{width:"450px",height:"350px",baseUrl:S.baseUrl}),log__$q("Micro deposit data collected")}catch{throw log__$q("Micro deposit form cancelled"),new Error("Micro deposit form cancelled")}}const L=await startPaymentFlow(M,{payment_provider:T.provider,checkout_payment_method:T,...createCustomerFieldsFromForm(R,D.checkout_settings),customer_language:detectLanguage()}),y=parseAirwallexStartPaymentFlowResponse(L),_=y?.consent_id,N=y?.available_banks;let I;if(U==="truelayer"&&N&&N.length>=1){log__$q("Multiple banks available, showing bank selector...");try{I=await createAndOpenBankSelector(N,{width:"450px",height:"500px",title:"Select bank"}),log__$q(`Bank selected: ${I.display_name}`)}catch{throw log__$q("Bank selection cancelled"),new Error("Bank selection cancelled")}}const x=generateBillingAddressFromFields(R),V={type:"bacs_direct_debit",bacs_direct_debit:{bank_name:I?.bank_name,owner_name:getFullName(R[FieldName.FIRST_NAME],R[FieldName.LAST_NAME]),owner_email:R[FieldName.EMAIL],country_code:R[FieldName.COUNTRY],account_number:C?.account_number,sort_code:C?.sort_code,address:{...x,town:x.city,postcode:x.zip_code}}},B=(await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_,verification_method:U,direct_debit_data:V}})).required_user_actions?.find(oe=>oe.type==="airwallex_payment_consent")?.redirect_url;if(B){log__$q("BACS verification required, starting verification...");const{status:oe}=await start3dsVerification({url:B,baseUrl:S.baseUrl,frameWidth:"500px",frameHeight:"700px",frameTitle:"BACS verification"});if(log__$q(`╰ BACS verification completed [Status: ${oe}]`),oe===ThreeDSStatus.CANCELLED)throw new Error("BACS verification cancelled");if(oe===ThreeDSStatus.FAILURE)throw new Error("BACS verification failed")}const W=await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_}});try{return performSimpleCheckoutOrSetup({logPrefix:"awx-bacs",anyCdeConnection:M,checkoutPaymentMethod:T,requiredFormFields:R,confirmResult:W,usePayFirstFlow:!1})}catch(oe){throw err__$p("BACS payment error",oe),track("checkout_error",{error:oe}),new Error(oe?.message??"Unknown error")}}),{log__:log__$p,err__:err__$o}=createOjsFlowLoggers("awx-eft"),runAirwallexEFTFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{const R=validateNonCdeFormFieldsForCC(A,O.get.onValidationError),M=S.anyCdeConnection,D=await getPrefill(M),U=P.verificationMethod??"plaid";let C=null;if(U==="micro_deposit"){log__$p("Micro deposit verification selected, showing form...");try{C=await createAndOpenMicroDepositForm("eft_direct_debit",{width:"450px",height:"450px",baseUrl:S.baseUrl}),log__$p("Micro deposit data collected")}catch{throw log__$p("Micro deposit form cancelled"),new Error("Micro deposit form cancelled")}}const L=await startPaymentFlow(M,{payment_provider:T.provider,checkout_payment_method:T,...createCustomerFieldsFromForm(R,D.checkout_settings),customer_language:detectLanguage()}),_=parseAirwallexStartPaymentFlowResponse(L)?.consent_id,N={type:"eft_direct_debit",eft_direct_debit:{business_account:P.isBusinessAccount??!1,owner_name:getFullName(R[FieldName.FIRST_NAME],R[FieldName.LAST_NAME]),owner_email:R[FieldName.EMAIL],institution_number:C?.institution_number,transit_number:C?.transit_number,account_number:C?.account_number}},x=(await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_,verification_method:U,direct_debit_data:N}})).required_user_actions?.find(k=>k.type==="airwallex_payment_consent")?.redirect_url;if(x){log__$p("EFT verification required, starting verification...");const{status:k}=await start3dsVerification({url:x,baseUrl:S.baseUrl,frameWidth:"500px",frameHeight:"700px",frameTitle:"EFT verification"});if(log__$p(`╰ EFT verification completed [Status: ${k}]`),k===ThreeDSStatus.CANCELLED)throw new Error("EFT verification cancelled");if(k===ThreeDSStatus.FAILURE)throw new Error("EFT verification failed")}const V=await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_}});try{return performSimpleCheckoutOrSetup({logPrefix:"awx-eft",anyCdeConnection:M,checkoutPaymentMethod:T,requiredFormFields:R,confirmResult:V,usePayFirstFlow:!1})}catch(k){throw err__$o("EFT payment error",k),track("checkout_error",{error:k}),new Error(k?.message??"Unknown error")}}),{log__:log__$o,err__:err__$n}=createOjsFlowLoggers("awx-sepa"),runAirwallexSEPAFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{const R=validateNonCdeFormFieldsForCC(A,O.get.onValidationError),M=S.anyCdeConnection,D=await getPrefill(M),U=P.verificationMethod??"truelayer";let C=null;if(U==="micro_deposit"){log__$o("Micro deposit verification selected, showing form...");try{C=await createAndOpenMicroDepositForm("sepa_direct_debit",{width:"450px",height:"300px",baseUrl:S.baseUrl}),log__$o("Micro deposit data collected")}catch{throw log__$o("Micro deposit form cancelled"),new Error("Micro deposit form cancelled")}}const L=await startPaymentFlow(M,{payment_provider:T.provider,checkout_payment_method:T,...createCustomerFieldsFromForm(R,D.checkout_settings),customer_language:detectLanguage()}),y=parseAirwallexStartPaymentFlowResponse(L),_=y?.consent_id,N=y?.available_banks;let I;if(U==="truelayer"&&N&&N.length>=1){log__$o("Multiple banks available, showing bank selector...");try{I=await createAndOpenBankSelector(N,{width:"450px",height:"500px",title:"Select bank"}),log__$o(`Bank selected: ${I.display_name}`)}catch{throw log__$o("Bank selection cancelled"),new Error("Bank selection cancelled")}}const V=(await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_,verification_method:U,direct_debit_data:{type:"sepa_direct_debit",sepa_direct_debit:{bank_name:I?.bank_name,country_code:R[FieldName.COUNTRY],owner_name:getFullName(R[FieldName.FIRST_NAME],R[FieldName.LAST_NAME]),owner_email:R[FieldName.EMAIL],iban:C?.iban}}}})).required_user_actions?.find(B=>B.type==="airwallex_payment_consent")?.redirect_url;if(V){log__$o("SEPA verification required, starting verification...");const{status:B}=await start3dsVerification({url:V,baseUrl:S.baseUrl,frameWidth:"500px",frameHeight:"700px",frameTitle:"SEPA verification"});if(log__$o(`╰ SEPA verification completed [Status: ${B}]`),B===ThreeDSStatus.CANCELLED)throw new Error("SEPA verification cancelled");if(B===ThreeDSStatus.FAILURE)throw new Error("SEPA verification failed")}const k=await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_}});try{return performSimpleCheckoutOrSetup({logPrefix:"awx-sepa",anyCdeConnection:M,checkoutPaymentMethod:T,requiredFormFields:R,confirmResult:k,usePayFirstFlow:!1})}catch(B){throw err__$n("SEPA payment error",B),track("checkout_error",{error:B}),new Error(B?.message??"Unknown error")}}),{log__:log__$n,err__:err__$m}=createOjsFlowLoggers("airwallex-cc"),Airwallex3dsErrorResponseHeaders=objectType({"op-airwallex-3ds-url":stringType(),"op-airwallex-initial-intent-id":stringType(),"op-airwallex-consent-id":stringType()}),parseResponseHeaders$3=S=>{const T=Airwallex3dsErrorResponseHeaders.safeParse(S);if(!T.success){const A="Unable to process your credit card. Please contact support for assistance.",O=`Airwallex 3DS is required but headers are malformed. Got: ${JSON.stringify(S)}`;throw err__$m(O),new Error(A)}return T.data},checkIfRequiresAirwallex3ds=S=>S?.["op-airwallex-3ds-url"]!==void 0,parseIntentIdFrom3dsHref=S=>{try{const T=new URL(S??"").searchParams.get("payment_intent_id");if(!T)throw new Error("No intent ID found in Airwallex 3DS verification result");return log__$n(`Airwallex 3DS verification success. [Intent ID: ${T}]`),T}catch(T){const A="Error verifying Airwallex 3DS verification result.";throw err__$m(A,`Resulting URL: ${S}.
|
|
213
213
|
Error: ${getErrorMessage(T)}`),new Error(A)}},runAirwallex3dsFlow=async(S,T)=>{const A=parseResponseHeaders$3(T),O=await start3dsVerificationStrict({url:A["op-airwallex-3ds-url"],baseUrl:S}),P=parseIntentIdFrom3dsHref(O.href??""),R=A["op-airwallex-initial-intent-id"];if(R!==P){const D="Unable to process your credit card. Please contact support for assistance.",U=`Intent ID from callback (${P}) does not match the initial intent ID (${R}).`;throw err__$m(U),new Error(D)}return{existing_cc:{initial_intent_id:P,consent_id:A["op-airwallex-consent-id"]}}},ApplePayCpm$2=objectType({provider:literalType("apple_pay"),processor_name:literalType("airwallex"),metadata:objectType({processor_account_id:stringType(),processor_account_name:stringType()})}),GooglePayCpm$2=objectType({provider:literalType("google_pay"),processor_name:literalType("airwallex"),metadata:objectType({processor_account_id:stringType(),processor_account_name:stringType(),google_pay_merchant_id:stringType().nullish()})}),loadApplePayScript=()=>loadScript({scriptId:"__op_internal_apple_pay_sdk",src:"https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",checkLoadedFn:()=>!!window.ApplePaySession}),fillEmptyFormInputsWithApplePay=(S,T)=>{const A=T.token.paymentMethod.billingContact,O=T.billingContact,P=T.shippingContact,R={...S};if(A||O||P){R[FieldName.EMAIL]=R[FieldName.EMAIL]||A?.emailAddress||O?.emailAddress||P?.emailAddress||"op_unfilled@email.com",R[FieldName.COUNTRY]=R[FieldName.COUNTRY]||A?.countryCode||O?.countryCode||P?.countryCode||"US",R[FieldName.ZIP_CODE]=R[FieldName.ZIP_CODE]||A?.postalCode||O?.postalCode||P?.postalCode||"00000";const M=R[FieldName.FIRST_NAME]||A?.givenName||O?.givenName||P?.givenName||"",D=R[FieldName.LAST_NAME]||A?.familyName||O?.familyName||P?.familyName||"";M||D?(R[FieldName.FIRST_NAME]=M,R[FieldName.LAST_NAME]=D):(R[FieldName.FIRST_NAME]="_OP_UNKNOWN",R[FieldName.LAST_NAME]="")}return R};objectType({data:objectType({messageHeaders:recordType(stringType(),anyType()),errors:arrayType(anyType()),messageType:stringType(),messageBody:recordType(stringType(),anyType())}),origin:literalType("https://applepay.cdn-apple.com")});const createRecurringPaymentRequest=({total:S,prefill:T})=>{if(T.mode==="setup")return{paymentDescription:"Setup recurring payment",regularBilling:{amount:S.amount,label:"Setup recurring payment",paymentTiming:"recurring",type:"final"},managementURL:new URL(`/pay/${T.token}`,FRAME_BASE_URL).toString()};const A=T.line_items?.[0];if(A)return{paymentDescription:A?.description??"",regularBilling:{amount:S.amount,label:A?.description??"",recurringPaymentIntervalUnit:A?.billing_interval,recurringPaymentIntervalCount:A?.billing_interval_count??void 0,paymentTiming:"recurring",type:"final"},managementURL:`https://cde.getopenpay.com/pay/${T.token}`}},createApplePayTotal=({overridePaymentRequest:S,initialPreview:T,prefill:A,defaultLabel:O="Total"})=>{const P=(S?.amount?.currency??A?.currency??T.currency).toUpperCase(),M=((S?.amount?.amountAtom??T?.amountAtom??0)/100).toFixed(2);return{currencyCode:P,total:{label:S?.label??O??"Total",type:S?.pending?"pending":"final",amount:M}}},getApplePayPaymentRequest=({overridePaymentRequest:S,initialPreview:T,prefill:A,defaultLabel:O})=>{const{currencyCode:P,total:R}=createApplePayTotal({overridePaymentRequest:S,initialPreview:T,prefill:A,defaultLabel:O});let M={countryCode:"US",currencyCode:P,requiredBillingContactFields:["email","postalAddress","name"],requiredShippingContactFields:["email",...A.checkout_settings.require_full_shipping_address?["postalAddress"]:[]],supportedNetworks:["visa","masterCard","amex","discover","jcb"],merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],total:R};return A.line_items.every(U=>U.billing_interval&&U.billing_interval_count)&&(M.recurringPaymentRequest=createRecurringPaymentRequest({total:R,prefill:A})),S?.applePayPaymentRequest&&(typeof S.applePayPaymentRequest=="function"?M={...M,...S.applePayPaymentRequest(M)}:M={...M,...S.applePayPaymentRequest}),M},AdyenEnvironment=enumType(["test","live","live-us","live-in","live-apse","live-au"]),AdyenLocale=enumType(["ar","bg-BG","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","es-ES","et-EE","fi-FI","fr-FR","hr-HR","hu-HU","is-IS","it-IT","ja-JP","ko-KR","lt-LT","lv-LV","nl-NL","no-NO","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sl-SI","sv-SE","zh-CN","zh-TW"]),{log__:log__$m,err__:err__$l}=createOjsFlowLoggers("adyen-cc"),Adyen3dsResponseHeaders=objectType({"op-account-id":stringType(),"op-adyen-client-key":stringType(),"op-adyen-environment":AdyenEnvironment,"op-adyen-action":stringType()}),friendlyErr="Unable to process your credit card. Please contact support for assistance.",parseResponseHeaders$2=S=>{const T=Adyen3dsResponseHeaders.safeParse(S);if(!T.success)throw err__$l(`Adyen 3DS is required but headers are malformed. Got: ${JSON.stringify(S)}`),new Error(friendlyErr);return T.data},decodeAdyenAction=S=>JSON.parse(S),isAdyenAvailable=()=>"AdyenWeb"in window&&"AdyenCheckout"in window.AdyenWeb,getAdyenCheckout=async()=>{log__$m("Waiting for Adyen SDK to load...");for(let S=0;S<10;S++)isAdyenAvailable()||await sleep(500);if(!isAdyenAvailable())throw err__$l("Adyen SDK not loaded properly"),new Error(friendlyErr);return log__$m("Adyen SDK loaded successfully"),window.AdyenWeb.AdyenCheckout},handleAdyen3ds=S=>{const{headers:T,locale:A,countryCode:O,component:P,host:R,cancelButton:M}=S,D=decodeAdyenAction(T["op-adyen-action"]);return log__$m(`Running Adyen 3DS flow for action type: ${D.type}`),new Promise(U=>{const C=()=>{log__$m("Cleaning up Adyen 3DS flow"),M.removeEventListener("click",_),R.remove()},L=I=>{err__$l("Authentication failed. Result:",I),U({status:ThreeDSStatus.FAILURE,cleanup:C})},y=I=>{err__$l("Adyen error:",I),U({status:ThreeDSStatus.FAILURE,cleanup:C})},_=()=>{U({status:ThreeDSStatus.CANCELLED,cleanup:C})};M.addEventListener("click",_);const N=(I,x,V)=>{R.remove(),U({status:ThreeDSStatus.SUCCESS,additionalDetails:I,cleanup:C})};getAdyenCheckout().then(I=>I({clientKey:T["op-adyen-client-key"],environment:T["op-adyen-environment"],locale:A,countryCode:O,onAdditionalDetails:N,onPaymentFailed:L,onError:y})).then(I=>{I.createFromAction(D,{challengeWindowSize:"03"}).mount(P)})})},determineLocale=S=>{const T=navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language,A=S??T,O=AdyenLocale.safeParse(A);return O.success?(log__$m(`Resolved locale: ${O.data}`),O.data):(err__$l(`Resolved invalid locale: ${A}. Defaulting to en-US.`),"en-US")},checkIfRequiresAdyen3ds=S=>S?.["op-adyen-action"]!==void 0,runAdyen3dsFlow=async(S,T,A)=>{const O=parseResponseHeaders$2(T),P=document.createElement("div");P.id="adyen-container";const{host:R,iframe:M,cancelButton:D}=createAndOpenFrame("http://example.com");M.replaceWith(P);const U=await handleAdyen3ds({headers:O,locale:determineLocale(A),countryCode:S,component:P,host:R,cancelButton:D});if(U.cleanup(),U.status===ThreeDSStatus.FAILURE)throw new Error("3DS verification failed");if(U.status===ThreeDSStatus.CANCELLED)throw new Error("3DS verification cancelled");if(U.status===ThreeDSStatus.SUCCESS){if(!U.additionalDetails)throw new Error("3DS verification succeeded but no additional details were returned");return log__$m("3DS verification succeeded"),{existing_cc:{additional_details:U.additionalDetails.data}}}else assertNever(U.status)},ApplePayCpm$1=objectType({provider:literalType("apple_pay"),processor_name:literalType("adyen"),metadata:objectType({processor_account_id:stringType(),processor_account_name:stringType()})}),GooglePayCpm$1=objectType({provider:literalType("google_pay"),processor_name:literalType("adyen"),metadata:objectType({processor_account_id:stringType(),processor_account_name:stringType(),google_pay_merchant_id:stringType().nullish()})}),{log__:log__$l}=createOjsFlowLoggers("awx-apple-pay");async function handleValidateMerchant$2(S,T){try{const P=(await preparePaymentFlow(T.connection,{checkout_payment_method:T.checkoutPaymentMethod,processor_specific_metadata:{apple_pay_session:{validation_url:S.validationURL,initiative_context:window.location.hostname,their_account_id:T.processorAccount.processor_account_id}}})).next_action_metadata?.apple_pay_session;if(!P)throw new Error("No session data received from payment flow");T.session.completeMerchantValidation(P),track("apple_pay_complete_merchant_validation",{...P})}catch(A){throw T.session.abort(),A}}async function handlePaymentAuthorized$2(S,T){try{const A=S.payment,O=fillEmptyFormInputsWithApplePay(T.nonCdeFormInputs,A),P=validateNonCdeFormFieldsForCC(O,T.formCallbacks.get.onValidationError,T.defaultFieldValues);track("billing_details_received",{...P}),await startPaymentFlow(T.connection,{payment_provider:T.checkoutPaymentMethod.provider,checkout_payment_method:T.checkoutPaymentMethod,...createCustomerFieldsFromForm(P,T.prefill.checkout_settings)});const R=await confirmPaymentFlow(T.connection,{secure_token:T.prefill.token,processor_specific_metadata:{payment_provider:T.checkoutPaymentMethod.provider,browser_info:getFraudMetadata(),mobile_wallet_payment_data:{encrypted_payment_token:JSON.stringify(A.token)}}});if(log__$l("[1st] Confirm payment flow response",R),!R.payment_methods?.[0]?.id)throw new Error("No PM ID found");const D={status:ApplePaySession.STATUS_SUCCESS};return T.session.completePayment(D),performSimpleCheckoutOrSetup({logPrefix:"adyen-applepay",anyCdeConnection:T.connection,checkoutPaymentMethod:T.checkoutPaymentMethod,requiredFormFields:P,confirmResult:R,usePayFirstFlow:!1})}catch(A){const O={status:ApplePaySession.STATUS_FAILURE};throw T.session.completePayment(O),A}}const{log__:log__$k,err__:err__$k}=createOjsFlowLoggers("adyen-apple-pay"),initAdyenApplePayFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{const A={processor:PaymentProcessor.Enum.adyen,isAvailable:!1,isLoading:!1,startFlow:async()=>{}},O=findCpmMatchingType(S.checkoutPaymentMethods,ApplePayCpm$1);if(!O)return A;if(log__$k("Loading Apple Pay script"),await loadApplePayScript(),!window.ApplePaySession||!ApplePaySession.canMakePayments())return log__$k("Apple Pay is not available on this device/browser"),A;if(log__$k("Apple Pay Loaded"),!await ApplePaySession.canMakePayments())return log__$k("No active cards available for Apple Pay"),A;if(!O.metadata.processor_account_id)throw new Error("No gateway merchant ID found in processor account");const M=S.anyCdeConnection,D=await getPrefill(M),U=D.mode==="setup",C=await getCheckoutPreviewAmount(M,D.token,U,void 0),L=async y=>{try{await OjsFlows.adyenApplePay.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,customParams:{...y,initialPreview:C},initResult:void 0})}catch(_){err__$k("Apple Pay payment error",_),T.get.onCheckoutError(_?.message??"Unknown error")}};return{processor:PaymentProcessor.Enum.adyen,isAvailable:!0,isLoading:!1,startFlow:L}}),runAdyenApplePayFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,customParams:O,formCallbacks:P})=>{const R=findCpmMatchingType(S.checkoutPaymentMethods,ApplePayCpm$1),{overridePaymentRequest:M,initialPreview:D}=O,U=S.anyCdeConnection,C=await getPrefill(U),L=C.mode==="setup",y=getApplePayPaymentRequest({overridePaymentRequest:M,initialPreview:D,prefill:{...C},defaultLabel:R?.metadata?.processor_account_name}),_=new ApplePaySession(3,y),N={session:_,connection:S.anyCdeConnection,checkoutPaymentMethod:T,nonCdeFormInputs:A,processorAccount:R.metadata,prefill:C,isSetupMode:L,baseUrl:S.baseUrl,formCallbacks:P,defaultFieldValues:O?.defaultFieldValues};return track("apple_pay_flow_started",{processor_name:T.processor_name,prefill:excludeProps(C,["brand"]),overridePaymentRequest:M}),new Promise((I,x)=>{const V=()=>{log__$k("Payment cancelled by user"),x(new Error("Payment cancelled by user"))};_.onvalidatemerchant=async k=>{try{await handleValidateMerchant$2(k,N)}catch(B){x(B)}},_.onpaymentmethodselected=()=>{const k={newTotal:{...y.total}};_.completePaymentMethodSelection(k)},_.onpaymentauthorized=async k=>{track("apple_pay_payment_authorized");try{const B=await handlePaymentAuthorized$2(k,N);I(B)}catch(B){x(B)}},_.oncancel=V,_.begin()}).catch(I=>{throw err__$k("Apple Pay payment error",I),track("apple_pay_payment_error",{error:I}),I})}),{log__:log__$j,err__:err__$j}=createOjsFlowLoggers("adyen-google-pay"),initAdyenGooglePayFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{const A={processor:PaymentProcessor.Enum.adyen,isAvailable:!1,isLoading:!1,startFlow:async()=>{}},O=findCpmMatchingType(S.checkoutPaymentMethods,GooglePayCpm$1);if(!O)return A;log__$j("Google Pay CPM",O);const P=O.metadata;if(!P.processor_account_id)return err__$j("No gateway merchant ID found in processor account"),A;if(log__$j("Loading Google Pay script"),await loadGooglePayScript(),!window.google?.payments?.api)return err__$j("Google Pay SDK not loaded properly"),A;if(await getGooglePayEnvironment(S.baseUrl)==="PRODUCTION"&&!P.google_pay_merchant_id)return err__$j("Google Pay merchant ID is required for production environment"),A;log__$j("Google Pay SDK loaded",window.google.payments);const M=S.anyCdeConnection,D=await getPrefill(M);try{const y=getPaymentDataRequest({prefill:D,gateway:"airwallex",gatewayMerchantId:P.processor_account_id,merchantName:P.processor_account_name,merchantId:P.google_pay_merchant_id??"",initialPreview:{amountAtom:0,currency:"USD"}}),_=await getGooglePaymentsClient(S.baseUrl,y),{result:N}=await _.isReadyToPay(y);if(!N)return log__$j("Google Pay is not available for this user"),A}catch(y){return err__$j("Error checking Google Pay availability",y),A}const U=D.mode==="setup",C=await getCheckoutPreviewAmount(M,D.token,U,void 0),L=async y=>{try{OjsFlows.adyenGooglePay.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,initResult:void 0,customParams:{...y,initialPreview:C}})}catch(_){err__$j("Google Pay payment error",_),T.get.onCheckoutError(_?.message??"Unknown error")}};return{processor:PaymentProcessor.Enum.adyen,isAvailable:!0,isLoading:!1,startFlow:L}}),runAdyenGooglePayFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$j("Starting Google Pay flow...");const R=findCpmMatchingType(S.checkoutPaymentMethods,GooglePayCpm$1),{initialPreview:M,overridePaymentRequest:D}=P,U=R.metadata;if(!U.processor_account_id)throw new Error("No gateway merchant ID found in processor account");const C=S.anyCdeConnection,L=await getPrefill(C),y=getPaymentDataRequest({prefill:L,gateway:"adyen",gatewayMerchantId:U.processor_account_id,merchantName:U.processor_account_name,merchantId:U.google_pay_merchant_id??"",initialPreview:M,overridePaymentRequest:D});track("google_pay_flow_started",{processor_name:R.processor_name,prefill:excludeProps(L,["brand"]),overridePaymentRequest:D});const _=await getGooglePaymentsClient(S.baseUrl,y);try{const N=await _.loadPaymentData(y);log__$j("Google Pay Payment data",N);const I=fillEmptyFormInputsWithGooglePay(A,N),x=validateNonCdeFormFieldsForCC(I,O.get.onValidationError,P?.defaultFieldValues);if(track("billing_details_received",{...x}),!N.paymentMethodData?.tokenizationData?.token)throw new Error("No payment token received from Google Pay");const k=await startPaymentFlow(C,{payment_provider:T.provider,checkout_payment_method:T,...createCustomerFieldsFromForm(x,L.checkout_settings)}),B=parseAirwallexStartPaymentFlowResponse(k);log__$j("Start flow next actions",B);let W=await confirmPaymentFlow(C,{secure_token:L.token,processor_specific_metadata:{payment_provider:T.provider,browser_info:getFraudMetadata(),mobile_wallet_payment_data:{encrypted_payment_token:N.paymentMethodData?.tokenizationData?.token}}});log__$j("[1st] Confirm payment flow response",W);let oe=W.payment_methods?.[0]?.id;const te=W.required_user_actions?.find(fe=>fe.type==="adyen-3ds");if(te&&te.redirect_url){log__$j("Adyen 3DS Required, starting verification...",te);const{status:fe}=await start3dsVerification({url:te.redirect_url,baseUrl:S.baseUrl});if(log__$j(`╰ Adyen 3DS verification completed [Status: ${fe}]`),fe===ThreeDSStatus.CANCELLED)throw new Error("3DS verification cancelled");if(fe===ThreeDSStatus.FAILURE)throw new Error("3DS verification failed")}if(te&&!oe&&(W=await confirmPaymentFlow(C,{secure_token:L.token,their_pm_id:te.their_pm_id,processor_specific_metadata:{payment_provider:T.provider}}),log__$j("[2nd] Confirm payment flow response after 3DS",W),oe=W.payment_methods?.[0]?.id),!oe)throw new Error("No payment method ID found");return performSimpleCheckoutOrSetup({logPrefix:"adyen-googlepay",anyCdeConnection:C,checkoutPaymentMethod:T,requiredFormFields:x,confirmResult:W,usePayFirstFlow:!1})}catch(N){throw err__$j("Google Pay payment error",N),track("google_pay_payment_error",{error:N}),new Error(N?.message??"Unknown error")}}),{log__:log__$i,err__:err__$i}=createOjsFlowLoggers("awx-ach"),runAirwallexACHFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{const R=validateNonCdeFormFieldsForCC(A,O.get.onValidationError),M=S.anyCdeConnection,D=await getPrefill(M),U=P.verificationMethod??"plaid";let C=null;if(U==="micro_deposit"){log__$i("Micro deposit verification selected, showing form...");try{C=await createAndOpenMicroDepositForm("ach_direct_debit",{width:"450px",height:"400px",baseUrl:S.baseUrl}),log__$i("Micro deposit data collected")}catch{throw log__$i("Micro deposit form cancelled"),new Error("Micro deposit form cancelled")}}const L=await startPaymentFlow(M,{payment_provider:T.provider,checkout_payment_method:T,...createCustomerFieldsFromForm(R,D.checkout_settings),customer_language:detectLanguage()}),_=parseAirwallexStartPaymentFlowResponse(L)?.consent_id,I=(await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_,verification_method:U,direct_debit_data:{type:"ach_direct_debit",ach_direct_debit:{business_account:P.isBusinessAccount??!1,owner_name:getFullName(R[FieldName.FIRST_NAME],R[FieldName.LAST_NAME]),owner_email:R[FieldName.EMAIL],account_number:C?.account_number,aba_routing_number:C?.aba_routing_number}}}})).required_user_actions?.find(V=>V.type==="airwallex_payment_consent")?.redirect_url;if(I){log__$i("Plaid verification Required, starting verification...");const{status:V}=await start3dsVerification({url:I,baseUrl:S.baseUrl,frameWidth:"500px",frameHeight:"700px",frameTitle:"ACH verification"});if(log__$i(`╰ Plaid verification completed [Status: ${V}]`),V===ThreeDSStatus.CANCELLED)throw new Error("Plaid verification cancelled");if(V===ThreeDSStatus.FAILURE)throw new Error("Plaid verification failed")}const x=await confirmPaymentFlow(M,{secure_token:D.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:_}});try{return performSimpleCheckoutOrSetup({logPrefix:"awx-ach",anyCdeConnection:M,checkoutPaymentMethod:T,requiredFormFields:R,confirmResult:x,usePayFirstFlow:!1})}catch(V){throw err__$i("ACH payment error",V),track("checkout_error",{error:V}),new Error(V?.message??"Unknown error")}}),{log__:log__$h}=createOjsFlowLoggers("awx-apple-pay");async function handleValidateMerchant$1(S,T){try{const P=(await preparePaymentFlow(T.connection,{checkout_payment_method:T.checkoutPaymentMethod,processor_specific_metadata:{airwallex_payment_session:{validation_url:S.validationURL,initiative_context:window.location.hostname,their_account_id:T.processorAccount.processor_account_id}}})).next_action_metadata?.apple_pay_session;if(!P)throw new Error("No session data received from payment flow");T.session.completeMerchantValidation(P),track("apple_pay_complete_merchant_validation",{...P})}catch(A){throw T.session.abort(),A}}async function handle3DS(S,T){if(!S.redirect_url)throw new Error("No redirect URL found");log__$h("3DS Required, starting verification...",S);const{status:A}=await start3dsVerification({url:S.redirect_url,baseUrl:T.baseUrl});if(log__$h(`╰ 3DS verification completed [Status: ${A}]`),A===ThreeDSStatus.CANCELLED)throw new Error("3DS verification cancelled");if(A===ThreeDSStatus.FAILURE)throw new Error("3DS verification failed");const O=await confirmPaymentFlow(T.connection,{secure_token:T.prefill.token,processor_specific_metadata:{their_pm_id:S.their_pm_id,airwallex_consent_id:S.consent_id,payment_provider:T.checkoutPaymentMethod.provider}});return log__$h("[2nd] Confirm payment flow response",O),O}async function handlePaymentAuthorized$1(S,T){try{const A=S.payment,O=fillEmptyFormInputsWithApplePay(T.nonCdeFormInputs,A),P=validateNonCdeFormFieldsForCC(O,T.formCallbacks.get.onValidationError,T.defaultFieldValues);track("billing_details_received",{...P});const D=(await startPaymentFlow(T.connection,{payment_provider:T.checkoutPaymentMethod.provider,checkout_payment_method:T.checkoutPaymentMethod,...createCustomerFieldsFromForm(P,T.prefill.checkout_settings),customer_language:detectLanguage()})).required_user_actions[0].consent_id;if(!D)throw new Error("No consent ID received from payment flow");let U=await confirmPaymentFlow(T.connection,{secure_token:T.prefill.token,processor_specific_metadata:{payment_provider:T.checkoutPaymentMethod.provider,airwallex_consent_id:D,airwallex_payment_method_data:{type:"applepay",applepay:{payment_data_type:"encrypted_payment_token",encrypted_payment_token:JSON.stringify(A.token)}}}});log__$h("[1st] Confirm payment flow response",U);let C=U.payment_methods?.[0]?.id;const L=U.required_user_actions?.find(_=>_.type==="airwallex_payment_consent");if(L?.redirect_url&&L.consent_id&&L.their_pm_id&&(U=await handle3DS(L,T),C=U.payment_methods?.[0]?.id),!C)throw new Error("No PM ID found");const y={status:ApplePaySession.STATUS_SUCCESS};return T.session.completePayment(y),performSimpleCheckoutOrSetup({logPrefix:"awx-applepay",anyCdeConnection:T.connection,checkoutPaymentMethod:T.checkoutPaymentMethod,requiredFormFields:P,confirmResult:U,usePayFirstFlow:!1})}catch(A){const O={status:ApplePaySession.STATUS_FAILURE};throw T.session.completePayment(O),A}}const{log__:log__$g,err__:err__$h}=createOjsFlowLoggers("awx-apple-pay"),initAirwallexApplePayFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{const A={processor:PaymentProcessor.Enum.airwallex,isAvailable:!1,isLoading:!1,startFlow:async()=>{}},O=findCpmMatchingType(S.checkoutPaymentMethods,ApplePayCpm$2);if(!O)return A;if(log__$g("Loading Apple Pay script"),await loadApplePayScript(),!window.ApplePaySession||!ApplePaySession.canMakePayments())return log__$g("Apple Pay is not available on this device/browser"),A;if(log__$g("Apple Pay Loaded"),!await ApplePaySession.canMakePayments())return log__$g("No active cards available for Apple Pay"),A;if(!O.metadata.processor_account_id)throw new Error("No gateway merchant ID found in processor account");const M=S.anyCdeConnection,D=await getPrefill(M),U=D.mode==="setup",C=await getCheckoutPreviewAmount(M,D.token,U,void 0),L=async y=>{try{await OjsFlows.airwallexApplePay.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,customParams:{...y,initialPreview:C},initResult:void 0})}catch(_){err__$h("Apple Pay payment error",_),T.get.onCheckoutError(_?.message??"Unknown error")}};return{processor:PaymentProcessor.Enum.airwallex,isAvailable:!0,isLoading:!1,startFlow:L}}),runAirwallexApplePayFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,customParams:O,formCallbacks:P})=>{const R=findCpmMatchingType(S.checkoutPaymentMethods,ApplePayCpm$2),{overridePaymentRequest:M,initialPreview:D}=O,U=S.anyCdeConnection,C=await getPrefill(U),L=C.mode==="setup",y=getApplePayPaymentRequest({overridePaymentRequest:M,initialPreview:D,prefill:{...C},defaultLabel:R?.metadata?.processor_account_name}),_=new ApplePaySession(3,y),N={session:_,connection:S.anyCdeConnection,checkoutPaymentMethod:T,nonCdeFormInputs:A,processorAccount:R.metadata,prefill:C,isSetupMode:L,baseUrl:S.baseUrl,formCallbacks:P,defaultFieldValues:O?.defaultFieldValues};return track("apple_pay_flow_started",{processor_name:T.processor_name,prefill:excludeProps(C,["brand"]),overridePaymentRequest:M}),new Promise((I,x)=>{const V=()=>{log__$g("Payment cancelled by user"),x(new Error("Payment cancelled by user"))};_.oncancel=V,_.onvalidatemerchant=async k=>{try{await handleValidateMerchant$1(k,N)}catch(B){x(B)}},_.onpaymentmethodselected=()=>{const k={newTotal:{...y.total}};_.completePaymentMethodSelection(k)},_.onpaymentauthorized=async k=>{track("apple_pay_payment_authorized");try{const B=await handlePaymentAuthorized$1(k,N);I(B)}catch(B){x(B)}},_.begin()}).catch(I=>{throw err__$h("Apple Pay payment error",I),track("apple_pay_payment_error",{error:I}),I})}),{log__:log__$f,err__:err__$g}=createOjsFlowLoggers("awx-google-pay"),initAirwallexGooglePayFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{const A={processor:PaymentProcessor.Enum.airwallex,isAvailable:!1,isLoading:!1,startFlow:async()=>{}},O=findCpmMatchingType(S.checkoutPaymentMethods,GooglePayCpm$2);if(!O)return A;log__$f("Google Pay CPM",O);const P=O.metadata;if(!P.processor_account_id)return err__$g("No gateway merchant ID found in processor account"),A;if(log__$f("Loading Google Pay script"),await loadGooglePayScript(),!window.google?.payments?.api)return err__$g("Google Pay SDK not loaded properly"),A;if(await getGooglePayEnvironment(S.baseUrl)==="PRODUCTION"&&!P.google_pay_merchant_id)return err__$g("Google Pay merchant ID is required for production environment"),A;log__$f("Google Pay SDK loaded",window.google.payments);const M=S.anyCdeConnection,D=await getPrefill(M);try{const y=getPaymentDataRequest({prefill:D,gateway:"airwallex",gatewayMerchantId:P.processor_account_id,merchantName:P.processor_account_name,merchantId:P.google_pay_merchant_id??"",initialPreview:{amountAtom:0,currency:"USD"}}),_=await getGooglePaymentsClient(S.baseUrl,y),{result:N}=await _.isReadyToPay(y);if(!N)return log__$f("Google Pay is not available for this user"),A}catch(y){return err__$g("Error checking Google Pay availability",y),A}const U=D.mode==="setup",C=await getCheckoutPreviewAmount(M,D.token,U,void 0),L=async y=>{try{OjsFlows.airwallexGooglePay.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,initResult:void 0,customParams:{...y,initialPreview:C}})}catch(_){err__$g("Google Pay payment error",_),T.get.onCheckoutError(_?.message??"Unknown error")}};return{processor:PaymentProcessor.Enum.airwallex,isAvailable:!0,isLoading:!1,startFlow:L}}),runAirwallexGooglePayFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$f("Starting Google Pay flow...");const R=findCpmMatchingType(S.checkoutPaymentMethods,GooglePayCpm$2),{initialPreview:M,overridePaymentRequest:D}=P,U=R.metadata;if(!U.processor_account_id)throw new Error("No gateway merchant ID found in processor account");const C=S.anyCdeConnection,L=await getPrefill(C),y=getPaymentDataRequest({prefill:L,gateway:"airwallex",gatewayMerchantId:U.processor_account_id,merchantName:U.processor_account_name,merchantId:U.google_pay_merchant_id??"",initialPreview:M,overridePaymentRequest:D});track("google_pay_flow_started",{processor_name:R.processor_name,prefill:excludeProps(L,["brand"]),overridePaymentRequest:D});const _=await getGooglePaymentsClient(S.baseUrl,y);try{const N=await _.loadPaymentData(y);log__$f("Google Pay Payment data",N);const I=fillEmptyFormInputsWithGooglePay(A,N),x=validateNonCdeFormFieldsForCC(I,O.get.onValidationError,P?.defaultFieldValues);log__$f("___",x),track("billing_details_received",{...x});const V=N.paymentMethodData?.tokenizationData?.token;if(!V)throw new Error("No payment token received from Google Pay");const k=await startPaymentFlow(C,{payment_provider:T.provider,checkout_payment_method:T,...createCustomerFieldsFromForm(x,L.checkout_settings),customer_language:detectLanguage()}),B=parseAirwallexStartPaymentFlowResponse(k);log__$f("Start flow next actions",B);let W=await confirmPaymentFlow(C,{secure_token:L.token,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:B?.consent_id,airwallex_payment_method_data:{type:"googlepay",googlepay:{payment_data_type:"encrypted_payment_token",encrypted_payment_token:V}}}});log__$f("[1st] Confirm payment flow response",W);let oe=W.payment_methods?.[0]?.id;const te=W.required_user_actions?.find(fe=>fe.type==="airwallex_payment_consent");if(te&&te.redirect_url){log__$f("3DS Required, starting verification...",te);const{status:fe}=await start3dsVerification({url:te.redirect_url,baseUrl:S.baseUrl});if(log__$f(`╰ 3DS verification completed [Status: ${fe}]`),fe===ThreeDSStatus.CANCELLED)throw new Error("3DS verification cancelled");if(fe===ThreeDSStatus.FAILURE)throw new Error("3DS verification failed")}if(te&&!oe&&(W=await confirmPaymentFlow(C,{secure_token:L.token,their_pm_id:te.their_pm_id,processor_specific_metadata:{payment_provider:T.provider,airwallex_consent_id:te.consent_id}}),log__$f("[2nd] Confirm payment flow response",W),oe=W.payment_methods?.[0]?.id),!oe)throw new Error("No PM ID found");return performSimpleCheckoutOrSetup({logPrefix:"awx-googlepay",anyCdeConnection:C,checkoutPaymentMethod:T,requiredFormFields:x,confirmResult:W,usePayFirstFlow:!1})}catch(N){throw err__$g("Google Pay payment error",N),track("google_pay_payment_error",{error:N}),new Error(N?.message??"Unknown error")}}),ApplePayCpm=objectType({provider:literalType("apple_pay"),processor_name:literalType("authorize_net"),metadata:objectType({processor_account_id:stringType(),processor_account_name:stringType()})}),GooglePayCpm=objectType({provider:literalType("google_pay"),processor_name:literalType("authorize_net"),metadata:objectType({processor_account_id:stringType(),processor_account_name:stringType(),google_pay_merchant_id:stringType().nullish()})});async function handleValidateMerchant(S,T){try{const P=(await preparePaymentFlow(T.connection,{checkout_payment_method:T.checkoutPaymentMethod,processor_specific_metadata:{apple_payment_session:{validation_url:S.validationURL,initiative_context:window.location.hostname,their_account_id:T.processorAccount.processor_account_id}}})).next_action_metadata?.apple_pay_session;if(!P)throw new Error("No session data received from payment flow");T.session.completeMerchantValidation(P),track("apple_pay_complete_merchant_validation",{...P})}catch(A){throw T.session.abort(),A}}async function handlePaymentAuthorized(S,T){try{const A=S.payment,O=fillEmptyFormInputsWithApplePay(T.nonCdeFormInputs,A),P=validateNonCdeFormFieldsForCC(O,T.formCallbacks.get.onValidationError);track("billing_details_received",{...P}),await startPaymentFlow(T.connection,{payment_provider:T.checkoutPaymentMethod.provider,checkout_payment_method:T.checkoutPaymentMethod,...createCustomerFieldsFromForm(P,T.prefill.checkout_settings),customer_language:detectLanguage()});const R={dataDescriptor:"COMMON.APPLE.INAPP.PAYMENT",dataValue:window.btoa(JSON.stringify(A.token.paymentData))},M=await confirmPaymentFlow(T.connection,{secure_token:T.prefill.token,processor_specific_metadata:{payment_provider:T.checkoutPaymentMethod.provider,mobile_wallet_payment_data:R}});if(!M.payment_methods?.[0]?.id)throw new Error("No PM ID found");const U={status:ApplePaySession.STATUS_SUCCESS};return T.session.completePayment(U),performSimpleCheckoutOrSetup({logPrefix:"authnet-applepay",anyCdeConnection:T.connection,checkoutPaymentMethod:T.checkoutPaymentMethod,requiredFormFields:P,confirmResult:M,usePayFirstFlow:!1})}catch(A){const O={status:ApplePaySession.STATUS_FAILURE};throw T.session.completePayment(O),A}}const{log__:log__$e,err__:err__$f}=createOjsFlowLoggers("authnet-applepay"),initAuthnetApplePayFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{const A={processor:PaymentProcessor.Enum.authorize_net,isAvailable:!1,isLoading:!1,startFlow:async()=>{}},O=findCpmMatchingType(S.checkoutPaymentMethods,ApplePayCpm);if(!O)return A;if(log__$e("Loading Apple Pay script"),await loadApplePayScript(),!window.ApplePaySession||!ApplePaySession.canMakePayments())return log__$e("Apple Pay is not available on this device/browser"),A;if(!await ApplePaySession.canMakePayments())return log__$e("No active cards available for Apple Pay"),A;if(!O.metadata.processor_account_id)throw new Error("No gateway merchant ID found in processor account");const M=S.anyCdeConnection,D=await getPrefill(M),U=D.mode==="setup",C=await getCheckoutPreviewAmount(M,D.token,U,void 0),L=async y=>{try{await OjsFlows.authorizeNetApplePay.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,customParams:{...y,initialPreview:C},initResult:void 0})}catch(_){err__$f("Apple Pay payment error",_),track("apple_pay_payment_error",{error:_}),T.get.onCheckoutError(_?.message??"Unknown error")}};return{processor:PaymentProcessor.Enum.authorize_net,isAvailable:!0,isLoading:!1,startFlow:L}}),runAuthnetApplePayFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,customParams:O,formCallbacks:P})=>{const{initialPreview:R,overridePaymentRequest:M}=O,D=findCpmMatchingType(S.checkoutPaymentMethods,ApplePayCpm),U=S.anyCdeConnection,C=await getPrefill(U),L=C.mode==="setup",y=getApplePayPaymentRequest({overridePaymentRequest:M,initialPreview:R,prefill:C,defaultLabel:D?.metadata?.processor_account_name});track("apple_pay_flow_started",{processor_name:T.processor_name,prefill:C,overridePaymentRequest:M});const _=new ApplePaySession(3,y),N={session:_,connection:S.anyCdeConnection,checkoutPaymentMethod:T,nonCdeFormInputs:A,processorAccount:T.metadata,prefill:C,isSetupMode:L,baseUrl:S.baseUrl,formCallbacks:P};return new Promise((I,x)=>{_.oncancel=()=>{log__$e("Payment cancelled by user"),x(new Error("Payment cancelled by user"))},_.onvalidatemerchant=async V=>{try{await handleValidateMerchant(V,N)}catch(k){x(k)}},_.onpaymentmethodselected=()=>{const V={newTotal:y.total};_.completePaymentMethodSelection(V)},_.onpaymentauthorized=async V=>{track("apple_pay_payment_authorized");try{const k=await handlePaymentAuthorized(V,N);I(k)}catch(k){x(k)}},_.begin()}).catch(I=>{throw err__$f("Apple Pay payment error",I),track("apple_pay_payment_error",{error:I}),I})}),{log__:log__$d,err__:err__$e}=createOjsFlowLoggers("authnet-googlepay"),initAuthnetGooglePayFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{log__$d("Initializing Authnet GooglePay flow");const A={processor:PaymentProcessor.Enum.authorize_net,isAvailable:!1,isLoading:!1,startFlow:async()=>{}},O=findCpmMatchingType(S.checkoutPaymentMethods,GooglePayCpm);if(!O)return A;log__$d("Google Pay CPM",O);const P=O.metadata;if(!P.processor_account_id)return err__$e("No gateway merchant ID found in processor account"),A;if(log__$d("Loading Google Pay script"),await loadGooglePayScript(),!window.google?.payments?.api)return err__$e("Google Pay SDK not loaded properly"),A;log__$d("Google Pay SDK loaded",window.google.payments);const R=S.anyCdeConnection,M=await getPrefill(R);try{const L=getPaymentDataRequest({prefill:M,gateway:"authorizenet",gatewayMerchantId:P.processor_account_id,merchantName:P.processor_account_name,merchantId:P.google_pay_merchant_id??"",initialPreview:{amountAtom:0,currency:"USD"}}),y=await getGooglePaymentsClient(S.baseUrl,L),{result:_}=await y.isReadyToPay(L);if(!_)return log__$d("Google Pay is not available for this user"),A}catch(L){return err__$e("Error checking Google Pay availability",L),A}const D=M.mode==="setup",U=await getCheckoutPreviewAmount(R,M.token,D,void 0),C=async L=>{try{OjsFlows.authorizeNetGooglePay.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,initResult:void 0,customParams:{...L,initialPreview:U}})}catch(y){err__$e("Google Pay payment error",y),track("google_pay_payment_error",{error:y}),T.get.onCheckoutError(y?.message??"Unknown error")}};return{processor:PaymentProcessor.Enum.authorize_net,isAvailable:!0,isLoading:!1,startFlow:C}}),runAuthnetGooglePayFlow=addBasicCheckoutCallbackHandlers(async({context:S,nonCdeFormInputs:T,checkoutPaymentMethod:A,formCallbacks:O,customParams:P})=>{const{initialPreview:R,overridePaymentRequest:M}=P,U=findCpmMatchingType(S.checkoutPaymentMethods,GooglePayCpm).metadata,C=S.anyCdeConnection,L=await getPrefill(C),y=getPaymentDataRequest({prefill:L,gateway:"authorizenet",gatewayMerchantId:U.processor_account_id,merchantName:U.processor_account_name,merchantId:U.google_pay_merchant_id??"",initialPreview:R,overridePaymentRequest:M});track("google_pay_flow_started",{processor_name:A.processor_name,prefill:L,overridePaymentRequest:M});const _=await getGooglePaymentsClient(S.baseUrl,y);try{const N=await _.loadPaymentData(y);log__$d("Google Pay Payment data",N);const I=fillEmptyFormInputsWithGooglePay(T,N),x=validateNonCdeFormFieldsForCC(I,O.get.onValidationError);track("billing_details_received",{...x});const V=N.paymentMethodData?.tokenizationData?.token;if(!V)throw new Error("No payment token received from Google Pay");const k=await startPaymentFlow(C,{payment_provider:A.provider,checkout_payment_method:A,...createCustomerFieldsFromForm(x,L.checkout_settings),customer_language:detectLanguage()});log__$d("Start payment flow response",k);const B=await confirmPaymentFlow(C,{secure_token:L.token,processor_specific_metadata:{payment_provider:A.provider,mobile_wallet_payment_data:{dataDescriptor:"COMMON.GOOGLE.INAPP.PAYMENT",dataValue:window.btoa(V)}}});if(!B.payment_methods?.[0]?.id)throw new Error("No PM ID found");return performSimpleCheckoutOrSetup({logPrefix:"authnet-googlepay",anyCdeConnection:C,checkoutPaymentMethod:A,requiredFormFields:x,confirmResult:B,usePayFirstFlow:!1})}catch(N){throw err__$e("Google Pay payment error",N),track("google_pay_payment_error",{error:N}),new Error(N?.message??"Unknown error")}}),{log__:log__$c,err__:err__$d}=createOjsFlowLoggers("cybs-frame"),attachDeviceDataCollector=(S,T)=>{const A=document.createElement("iframe");A.name="cardinal_collection_iframe",A.style.display="none",A.style.width="10px",A.style.height="10px";const O=document.createElement("form");O.action=S,O.method="POST",O.target=A.name;const P=document.createElement("input");return P.type="hidden",P.name="JWT",P.value=T,O.appendChild(P),document.body.appendChild(A),document.body.appendChild(O),{form:O,detach:()=>{document.body.removeChild(A),document.body.removeChild(O)}}},runDeviceDataCollection=async S=>new Promise((T,A)=>{const{postUrl:O,accessToken:P}=S,R=new URL(O).origin,{form:M,detach:D}=attachDeviceDataCollector(O,P);log__$c("Attached device data collector");const U=L=>{if(L.origin!==R)return;const y=JSON.parse(L.data);if(log__$c("Received event from device data collector:",y),y.MessageType==="profile.completed"){T(y),C();return}},C=()=>{D(),window.removeEventListener("message",U)};try{window.addEventListener("message",U),log__$c("Attached listener to window"),M.submit(),log__$c("Submitted form")}catch(L){err__$d("Error submitting form:",L),C(),A(L)}}),runPayerAuth=S=>{const{stepUpUrl:T,accessToken:A,merchantData:O,iframe:P,host:R}=S,M=document.createElement("form");M.action=T,M.method="POST",M.target=P.name;const D=document.createElement("input");D.type="hidden",D.name="JWT",D.value=A;const U=document.createElement("input");return U.type="hidden",U.name="MD",U.value=O,M.appendChild(D),M.appendChild(U),R.appendChild(M),M},{log__:log__$b,err__:err__$c}=createOjsFlowLoggers("cybs"),CybersourceActionPayload=objectType({step_up_url:stringType(),access_token:stringType(),dd_url:nullOrUndefOr$1(stringType()),dd_token:nullOrUndefOr$1(stringType()),merchant_data:stringType()}),FRIENDLY_ERR="Unable to process your credit card. Please contact support for assistance.",parseResponseHeaders$1=S=>{const T=CybersourceActionPayload.safeParse(S);if(!T.success)throw err__$c(`Cybersource 3DS is required but user action is malformed. Got: ${JSON.stringify(S)}`),new Error(FRIENDLY_ERR);return T.data},checkIfRequiresCybersource3ds=S=>S.type==="cybersource_payer_auth",handleCybersource3ds=async S=>{const{stepUpUrl:T,accessToken:A,merchantData:O,iframe:P,host:R,cancelButton:M}=S,D=new URL(T).origin;return new Promise(U=>{const C=()=>{log__$b("Cleaning up Cybersource 3DS flow"),M.removeEventListener("click",L),R.remove()},L=()=>{log__$b("Cybersource 3DS cancelled"),U({status:ThreeDSStatus.CANCELLED,cleanup:C})},_=startPolling(P,x=>{log__$b("Cybersource 3DS completed with status:",x),U({status:x.status,cleanup:C}),N()},D,"ping-3ds-status",Ping3DSStatusResponse),N=handleEvents({elements:{host:R,cancelButton:M},pollingInterval:_,resolve:x=>{U({status:x.status,cleanup:C})}});M.addEventListener("click",L),runPayerAuth({stepUpUrl:T,accessToken:A,merchantData:O,iframe:P,host:R}).submit()})},runCybersource3dsFlow=async S=>{const T=parseResponseHeaders$1(S),{step_up_url:A,access_token:O,dd_url:P,dd_token:R,merchant_data:M}=T;if(P&&R){const y=await runDeviceDataCollection({postUrl:P,accessToken:R});log__$b("Device data collection completed with status:",y.Status)}else err__$c("No device data collection URL or token provided");const{host:D,iframe:U,cancelButton:C}=createAndOpenFrame("",{name:"cardinal_auth_iframe"});log__$b("Running Cybersource 3DS flow");const L=await handleCybersource3ds({stepUpUrl:A,accessToken:O,merchantData:M,iframe:U,host:D,cancelButton:C});if(L.cleanup(),L.status===ThreeDSStatus.FAILURE)throw new Error("3DS verification failed");if(L.status===ThreeDSStatus.CANCELLED)throw new Error("3DS verification cancelled");if(L.status===ThreeDSStatus.SUCCESS){log__$b("3DS verification succeeded");return}else assertNever(L.status)},{log__:log__$a,err__:err__$b}=createOjsFlowLoggers("pockyt-cc"),Pockyt3dsErrorResponseHeaders=objectType({"op-pockyt-3ds-url":stringType(),"op-pockyt-txn-no":stringType(),"op-pockyt-ref-no":stringType()}),parseResponseHeaders=S=>{const T=Pockyt3dsErrorResponseHeaders.safeParse(S);if(!T.success){const A="Unable to process your credit card. Please contact support for assistance.",O=`Pockyt 3DS is required but headers are malformed. Got: ${JSON.stringify(S)}`;throw err__$b(O),new Error(A)}return T.data},parseVaultIdFrom3dsHref=S=>{try{const T=new URL(S??"").searchParams.get("vaultId");if(!T)throw new Error("No vault ID found in 3DS verification result");return log__$a(`3DS verification success. [Vault ID: ${T}]`),T}catch(T){const A="Error verifying 3DS verification result.";throw err__$b(A,`Resulting URL: ${S}.
|
|
214
|
-
Error: ${getErrorMessage(T)}`),new Error(A)}},parseArgFromHref=(S,T)=>new URL(S).searchParams.get(T),checkIfRequiresPockyt3ds=S=>S?.["op-pockyt-3ds-url"]!==void 0,runPockyt3dsFlow=async(S,T)=>{const A=parseResponseHeaders(T),O=await start3dsVerificationStrict({url:A["op-pockyt-3ds-url"],baseUrl:S});return{existing_cc:{vault_id:parseVaultIdFrom3dsHref(O.href??""),transaction_no:A["op-pockyt-txn-no"],reference_no:A["op-pockyt-ref-no"]}}},{log__:stripeLog__}=createOjsFlowLoggers("stripe-cc"),Stripe3DSMetadataPayload=objectType({stripe_pk:stringType(),client_secret:stringType(),stripe_pm_id:stringType()}),stripeCC3DSFlow=async S=>{track("3ds_stripe_redirect",{...S}),stripeLog__(`├ Using stripe 3DS flow [Client Secret: ${S.client_secret.substring(0,8)}...]`),await launchStripe3DSDialogFlow(S),track("3ds_stripe_complete"),stripeLog__("╰ Stripe 3DS flow completed successfully")},parseUserFEPayload=S=>{const T=Stripe3DSMetadataPayload.safeParse(S);if(!T.success)throw new Error(`Stripe 3DS metadata has unexpected format: ${JSON.stringify(T.error.errors)}`);return{stripe_pk:T.data.stripe_pk,client_secret:T.data.client_secret,stripe_pm_id:T.data.stripe_pm_id}},MAX_CONFIRM_LOOP_ITERATIONS=4,{log__:log__$9,err__:err__$a}=createOjsFlowLoggers("unified-cc"),unsafelyRunUnifiedCcFlow=async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$9("├ Running unified CC flow...",{checkoutPaymentMethod:T});const R=S.anyCdeConnection,M=await getPrefill(R);log__$9(`├ Validating non-CDE form fields [Mode: ${M.mode}]`);const D=validateNonCdeFormFieldsForCC(A,O.get.onValidationError),U={session_id:S.elementsSessionId,checkout_payment_method:T,non_cde_form_fields:D,extra_metadata:{origin:window.location.origin,deviceToken:getDeviceToken()},use_unified_cc_flow:!0,pay_first_flow_cart_info:{line_items:M.line_items,displayed_total_amount_atom:M.amount_total_atom},payment_route_id:P.paymentRouteId};err__$a(P,U),log__$9(`├ Tokenizing card info in Partial PMs [Session: ${S.elementsSessionId}]`);const C=await tokenizeCardOnAllConnections(P.currentCdeConnections,{session_id:S.elementsSessionId});validateTokenizeCardResults(C,O.get.onValidationError);const L=await startPaymentFlowForCC(R,U);if(log__$9("├ startPf result",L),L.checkout_success_response)return returnSuccessResult(M.mode,L);if(!L.checkout_attempt_id)throw new Error("Invalid state: no checkout attempt ID from PF result");return runConfirmLoop({context:S,prefill:M,nonCdeFormInputs:A,commonCheckoutParams:U,anyCdeConnection:R,startPfResult:L,checkoutAttemptId:L.checkout_attempt_id})},runConfirmLoop=async S=>{const{context:T,prefill:A,nonCdeFormInputs:O,commonCheckoutParams:P,anyCdeConnection:R,startPfResult:M,checkoutAttemptId:D}=S;let U=M;for(let C=0;C<MAX_CONFIRM_LOOP_ITERATIONS;C++){log__$9(`├ Running confirm loop iteration ${C}`),track("unified_cc_confirm_loop_iteration",{iteration:C});const{userAction:L}=validatePfResultUserAction(U);try{const y=await runRequiredUserAction(T.baseUrl,L,A,O);P.extra_metadata={...P.extra_metadata,...y.metadataForConfirmStep},log__$9("├ New extra metadata",P.extra_metadata)}catch(y){const _=getErrorMessage(y);err__$a(`├ Error in running user action in iteration ${C}. Continuing to confirm step...`,_),track("unified_cc_user_action_error",{error_message:_,iteration:C})}if(U=await confirmPaymentFlow(R,{secure_token:A.token,checkout_attempt_id:D,processor_specific_metadata:P.extra_metadata}),log__$9(`├ confirmPf result (iteration ${C})`,U),U.checkout_success_response)return returnSuccessResult(A.mode,U)}throw track("unified_cc_unexpected_branch",{secure_token:A.token,checkout_attempt_id:U.checkout_attempt_id,confirmPFResult:U}),new Error("Checkout error, please try another payment method")},runRequiredUserAction=async(S,T,A,O)=>{if(T._unified_cc_action_name==="3DS_REQUIRED"){if(T.type==="stripe_3ds")return await stripeCC3DSFlow(parseUserFEPayload(T)),{metadataForConfirmStep:{}};if(checkIfRequiresAirwallex3ds(T))return{metadataForConfirmStep:{airwallex:await runAirwallex3dsFlow(S,T)}};if(checkIfRequiresAdyen3ds(T))return{metadataForConfirmStep:{adyen:await runAdyen3dsFlow(O[FieldName.COUNTRY],T,A.locale)}};if(checkIfRequiresCybersource3ds(T))return await runCybersource3dsFlow(T),{metadataForConfirmStep:{}};if(checkIfLegacy3DSPath(T))return await commonCC3DSFlow({required_user_actions:[T]},S),{metadataForConfirmStep:{}};throw new Error(`Unhandled 3DS user action: ${JSON.stringify(T)}`)}else throw new Error(`Unknown required user action: ${JSON.stringify(T)}`)},checkIfLegacy3DSPath=S=>{try{return parseCommon3DSNextActionMetadata([S]),!0}catch{return!1}},validatePfResultUserAction=S=>{if(S.required_user_actions){if(S.required_user_actions.length===0)throw new Error("Invalid state: no required user actions");if(S.required_user_actions.length>1)throw new Error("Invalid state: multiple required user actions")}else throw new Error("Invalid state: no required user actions");const T=UserActionFEPayload.safeParse(S.required_user_actions[0]);if(!T.success)throw err__$a("User action raw payload",S.required_user_actions[0]),err__$a("Parsing error",T.error),new Error("Invalid state: schema of user action payload is not valid");return{userAction:T.data}},returnSuccessResult=(S,T)=>{if(S==="setup"){const A=T.cc_pm_id??T.payment_methods?.[0].id;if(!A)throw new Error("Invalid state: no CC PM ID or payment_methods found in PF result");return{mode:"setup",result:{payment_method_id:A}}}else{if(!T.checkout_success_response)throw new Error("Invalid state: no checkout success response from startPF");return{mode:"checkout",result:T.checkout_success_response}}},{log__:log__$8,err__:err__$9}=createOjsFlowLoggers("common-cc");arrayType(objectType({our_existing_pm_id:stringType()})).length(1);const runCommonCcFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$8("├ Running common CC flow...",{checkoutPaymentMethod:T});const R=S.anyCdeConnection,M=await getPrefill(R);track("common_cc_flow_started",{...T,prefill:M});const D=M.final_feature_rollout_settings?.unified_cc??0;log__$8(`├ Unified CC rollout: ${Math.round(D*100)}%`);const U=Math.random(),C=U<D,L={roll:U,unifiedCCRolloutRatio:D,useUnifiedCCFlow:C};if(C)return log__$8(`├ Picked unified CC flow (${U} vs ${D})`),track("unified_cc_flow_picked",L),unsafelyRunUnifiedCcFlow({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P,initResult:void 0});log__$8(`├ Picked legacy CC flow (${U} vs ${D})`),track("legacy_cc_flow_picked",L),log__$8(`├ Validating non-CDE form fields [Mode: ${M.mode}]`);const y=validateNonCdeFormFieldsForCC(A,O.get.onValidationError,M.checkout_settings);track("billing_details_received",{...y});const _={session_id:S.elementsSessionId,checkout_payment_method:T,non_cde_form_fields:y,extra_metadata:{origin:window.location.origin},use_unified_cc_flow:!1,payment_route_id:P.paymentRouteId,customer_language:detectLanguage(),...createCustomerFieldsFromForm(y,M.checkout_settings)};try{log__$8(`├ Tokenizing card info in CDE [Session: ${S.elementsSessionId}]`);const N=await tokenizeCardOnAllConnections(P.currentCdeConnections,{session_id:S.elementsSessionId});if(validateTokenizeCardResults(N,O.get.onValidationError),M.mode==="setup"){log__$8(`├ Setting up payment method in CDE [Token: ${M.token}]`);const I=await setupCheckout(R,_);return log__$8(`╰ Setup completed successfully [PM ID: ${I.payment_method_id}]`),{mode:"setup",result:I}}else{log__$8(`├ Initial checkout flow. Checking out card info in CDE [Session: ${S.elementsSessionId}]`);const I=await checkoutCardElements(R,_);return log__$8("╰ Checkout completed successfully."),{mode:"checkout",result:I}}}catch(N){if(N instanceof CdeError&&N.originalErrorMessage.includes("3DS_REQUIRED")){log__$8("├ Card requires 3DS, starting non-legacy payment flow"),log__$8("Received 3DS error response headers:",N.response.headers),track("3ds_required",{...T,...N.response.headers});const I=N.response.headers??{};"op-existing-cc-pm-id"in I&&(_.existing_cc_pm_id=I["op-existing-cc-pm-id"],log__$8(`├ Existing CC PM ID: ${_.existing_cc_pm_id}`));const x=checkIfRequiresPockyt3ds(N.response.headers);if(x){log__$8("├ Pockyt 3DS case detected. Going through Pockyt 3DS flow.");const fe=await runPockyt3dsFlow(S.baseUrl,N.response.headers);_.extra_metadata.pockyt=fe}if(checkIfRequiresAirwallex3ds(N.response.headers)){log__$8("├ Airwallex 3DS case detected. Going through Airwallex 3DS flow.");const fe=await runAirwallex3dsFlow(S.baseUrl,N.response.headers);_.extra_metadata.airwallex=fe}if(checkIfRequiresAdyen3ds(N.response.headers)){log__$8("├ Adyen 3DS case detected. Going through Adyen 3DS flow.");const fe=await runAdyen3dsFlow(A[FieldName.COUNTRY],N.response.headers,M.locale);_.extra_metadata.adyen=fe}const B=await startPaymentFlowForCC(R,_);log__$8("├ Start payment flow result:",B);const W=B.required_user_actions.find(fe=>fe.type==="cybersource_payer_auth");if(W){log__$8("├ Cybersource 3DS case detected. Going through Cybersource 3DS flow.");const fe=CybersourceActionPayload.parse(W),Fe=await runCybersource3dsFlow({...fe,_unified_cc_action_name:"",_unified_cc_pccs_id:""});_.extra_metadata.cybersource=Fe}const oe=N.response.headers?.["op-should-use-new-flow"]!=="true";!x&&!W?oe?(log__$8("├ Using stripe 3DS flow"),await stripeCC3DSFlow(parseStripe3DSNextActionMetadata(B))):(log__$8("├ Using common 3DS flow"),await commonCC3DSFlow(B,S.baseUrl)):log__$8("├ Pre-start 3DS is successful, other 3DS flows will be skipped.");const te=B.cc_pm_id;if(M.mode==="setup"){log__$8(`├ Confirming payment flow [cc_pm_id: ${te}]`);const fe=await confirmPaymentFlow(R,{secure_token:M.token,existing_cc_pm_id:te});log__$8("├ Confirm payment flow result received Result:",fe);const Fe=parseConfirmPaymentFlowResponse(fe);return log__$8(`╰ Setup completed successfully [PM ID: ${Fe.payment_method_id}]`),{mode:"setup",result:Fe}}else{log__$8(`├ Checking out after 3DS flow [Flow: ${oe?"legacy":"new"}]`);const fe=await checkoutCardElements(R,{..._,existing_cc_pm_id:te,do_not_use_legacy_cc_flow:oe});return log__$8("╰ Checkout completed successfully."),{mode:"checkout",result:fe}}}throw err__$9("╰ Error checking out card info in CDE"),err__$9(N),N}}),parseStripe3DSNextActionMetadata=S=>{const T=S.required_user_actions.find(A=>A.type==="stripe_3ds");if(!T)throw new Error("No stripe 3DS action found");return Stripe3DSNextActionMetadata.parse(T)},common3DSActionTypes=["airwallex_payment_consent","adyen"],parseCommon3DSNextActionMetadata=S=>{const T=S.find(A=>common3DSActionTypes.includes(A.type));if(!T)throw new Error("No common 3DS action found");return Common3DSNextActionMetadata.parse(T)},commonCC3DSFlow=async(S,T)=>{const A=parseCommon3DSNextActionMetadata(S.required_user_actions);if(A.redirect_url==="3DS_COMPLETE"){log__$8("├ 3DS flow completed successfully"),track("3ds_complete");return}log__$8(`├ Using common 3DS flow [URL: ${A.redirect_url}]`),track("3ds_redirect",{...A});const{status:O}=await start3dsVerification({url:A.redirect_url,baseUrl:T});if(log__$8(`╰ 3DS verification completed [Status: ${O}]`),O===ThreeDSStatus.CANCELLED)throw track("3ds_cancelled"),new Error("3DS verification cancelled");if(O===ThreeDSStatus.FAILURE)throw track("3ds_failure"),new Error("3DS verification failed");track("common_3ds_completed")},LoopCryptoCpm=objectType({processor_name:literalType("loop"),provider:literalType("crypto"),metadata:objectType({merchant_id:stringType(),entity_id:stringType(),api_token:stringType(),supported_currencies:arrayType(stringType()),environment:stringType()})}),{log__:log__$7,err__:err__$8}=createOjsFlowLoggers("loop-crypto"),initLoopFlow=addErrorCatcherForInit(async({context:S})=>{log__$7("Checking if there are any CPMs for Loop Crypto...");const T=findCpmMatchingType(S.checkoutPaymentMethods,LoopCryptoCpm);log__$7(`checkoutPaymentMethod: ${JSON.stringify(T)}`),log__$7("Starting Loop Crypto flow...");const A=await getPrefill(S.anyCdeConnection),O=A.mode==="setup",P=await preparePaymentFlow(S.anyCdeConnection,{checkout_payment_method:T}),R=await getCheckoutPreviewAmount(S.anyCdeConnection,A.token,O,void 0);if(!O&&!T.metadata.supported_currencies.includes(A.currency))throw Error(`Currency ${A.currency} not enabled for Loop. Enabled currencies: ${T.metadata.supported_currencies}`);if(!P||!P.next_action_metadata)throw Error("Failed to fetch necessary setup data for Loop");const M=P.next_action_metadata;let D=M.authorization_amount,U=M.min_authorization_amount;const C=M.allow_customer_to_choose_auth;let L;O?(L=0,D=Math.max(D,U)):(L=(R?R.amountAtom:A.amount_total_atom)*M.token_price,U=Math.max(U,L),D=Math.max(D,U));const y=L,_=v4(),N={paymentUsdAmount:y,suggestedAuthorizationUsdAmount:D,customerRefId:_,minAuthorizationUsdAmount:U,allowCustomerToChooseAuth:C},I={apiToken:T.metadata.api_token,entityId:T.metadata.entity_id,merchantId:T.metadata.merchant_id,environment:T.metadata.environment};return{isAvailable:!0,widgetProps:N,initLoopConnectProps:I}}),runLoopFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$7("Running Loop flow..."),log__$7("context",S),log__$7("checkoutPaymentMethod",T),log__$7("nonCdeFormInputs",A),log__$7("flowCallbacks",O),log__$7("customParams",P);const R=await getPrefill(S.anyCdeConnection);log__$7(`├ Validating non-CDE form fields [Mode: ${R.mode}]`);const M=validateNonCdeFormFieldsForCC(A,O.get.onValidationError,R.checkout_settings),D=S.anyCdeConnection,U=R.mode!=="setup",C=createCustomerFieldsFromForm(M,R.checkout_settings);if(!P)throw new Error("Checkout failed. Failed to properly submit form data.");if(!P.success)throw track("loop_pay_flow_failure",P),new Error("Checkout failed. Success is not true.");const L=await startPaymentFlow(S.anyCdeConnection,{checkout_payment_method:T,payment_provider:T.provider,...C,use_pay_first_flow:U,pay_first_flow_cart_info:U?{line_items:R.line_items,displayed_total_amount_atom:R.amount_total_atom,promotion_code:M[FieldName.PROMOTION_CODE]}:void 0,customer_language:detectLanguage()}),y=await confirmPaymentFlow(D,{secure_token:R.token,their_pm_id:P.paymentMethod.paymentMethodId,checkout_attempt_id:U?L.checkout_attempt_id:void 0,processor_specific_metadata:{loop_customer:P.customer,loop_payment_method:P.paymentMethod,loop_success:P.success}});if(log__$7(`Confirm result: ${y}`),R.mode==="setup"){log__$7("Doing payment setup..."),log__$7("├ Confirm payment flow result received Result:",y);const _=parseConfirmPaymentFlowResponse(y);return log__$7(`╰ Setup completed successfully [PM ID: ${_.payment_method_id}]`),{mode:"setup",result:_}}else{if(log__$7("Doing checkout..."),!y.pay_first_success_response)throw err__$8("Checkout failed, no pay-first success response:",y),new Error("Checkout failed, please try again with another payment method.");return{mode:"checkout",result:y.pay_first_success_response}}}),{log__:log__$6,err__:err__$7}=createOjsFlowLoggers("paypal"),PaypalCpm=objectType({provider:literalType("paypal"),metadata:objectType({client_id:stringType()}),processor_name:literalType("paypal")}),initPaypalFlow=async({context:S,formCallbacks:T})=>{const A=findCpmMatchingType(S.checkoutPaymentMethods,PaypalCpm);if(!A)throw new Error("PayPal CPM not found in available payment methods");return{isLoading:!1,isAvailable:!0,startFlow:()=>OjsFlows.paypal.run({context:S,checkoutPaymentMethod:A,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,initResult:void 0,customParams:{settings:{}}})}},runPaypalFlow=addBasicCheckoutCallbackHandlers(async({context:S,nonCdeFormInputs:T,checkoutPaymentMethod:A,formCallbacks:O,customParams:P})=>{try{log__$6("Running PayPal flow...");const R=S.anyCdeConnection,M=await getPrefill(R),{isAnonymous:D,useRedirectFlow:U}=P.settings??{};log__$6("Verifying CPM...");const C=PaypalCpm.parse(A);log__$6("├ Validating non-CDE form fields");const L=validateNonCdeFormFieldsForCC(T,O.get.onValidationError,{...D?generateAnonymousValues():void 0,...M.checkout_settings}),y=createCustomerFieldsFromForm(L,M.checkout_settings);log__$6(`Starting payment flow... Mode: ${M.mode}`);const _=v4(),N=!1,I={payment_provider:C.provider,checkout_payment_method:C,use_pay_first_flow:N,pay_first_flow_cart_info:N?{line_items:M.line_items,displayed_total_amount_atom:M.amount_total_atom}:void 0,processor_specific_metadata:{use_paypal_redirect_flow:U,frontend_token_for_redirect_flow:_},...y},x=new URL("/app/pre-action/start/",S.baseUrl).toString(),V=btoa(JSON.stringify(I)),k=new URLSearchParams({st:M.token,r:V}),B=`${x}?${k.toString()}`;if(U)throw log__$6("Starting redirect mode for PayPal..."),window.location.href=B,await sleep(20*1e3),new Error("Paypal flow timed out, please try again with another payment method.");const W=await startPopupWindowVerificationStrict("PayPal",R,_,B);log__$6("Paypal flow result",W);const oe=parseArgFromHref(W.href,"catt"),te=parseArgFromHref(W.href,"approval_session_id"),fe=await confirmPaymentFlow(R,{secure_token:M.token,checkout_attempt_id:N?oe:void 0,their_pm_id:N?te:void 0});return log__$6("Confirm payment flow result",fe),performSimpleCheckoutOrSetup({logPrefix:"paypal",anyCdeConnection:R,checkoutPaymentMethod:C,requiredFormFields:L,confirmResult:fe,usePayFirstFlow:N})}catch(R){throw err__$7("PayPal payment error",R),track("checkout_error",{payment_method:"paypal",error:R}),new Error(R?.message??"Unknown error")}}),{log__:log__$5,err__:err__$6}=createOjsFlowLoggers("pockyt-paypal"),PockytPaypalCpm=objectType({processor_name:literalType("pockyt"),provider:literalType("paypal")});arrayType(objectType({paypal_iframe_url:stringType(),verify_token:stringType()})).length(1);const initPockytPaypalFlow=async({context:S,formCallbacks:T})=>{const A=findCpmMatchingType(S.checkoutPaymentMethods,PockytPaypalCpm);if(!A)throw new Error("Pockyt PayPal CPM not found in available payment methods");return{isLoading:!1,isAvailable:!0,startFlow:()=>OjsFlows.pockytPaypal.run({context:S,checkoutPaymentMethod:A,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,initResult:void 0,customParams:{settings:{}}})}},runPockytPaypalFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$5("Running Pockyt Paypal flow...");const R=S.anyCdeConnection,M=await getPrefill(R);log__$5("Verifying CPM...");const D=PockytPaypalCpm.parse(T);log__$5("├ Validating non-CDE form fields");const U=P?.settings,C=validateNonCdeFormFieldsForCC(A,O.get.onValidationError,U?.defaultFieldValues),L=createCustomerFieldsFromForm(C,M.checkout_settings);log__$5(`Starting payment flow... Mode: ${M.mode}`);const y=v4(),_=M.mode!=="setup",N={payment_provider:D.provider,checkout_payment_method:D,use_pay_first_flow:_,pay_first_flow_cart_info:_?{line_items:M.line_items,displayed_total_amount_atom:M.amount_total_atom}:void 0,processor_specific_metadata:{use_paypal_redirect_flow:!!P?.settings?.useRedirectFlow,frontend_token_for_redirect_flow:y},...L},I=new URL("/app/pre-action/start/",S.baseUrl).toString(),x=btoa(JSON.stringify(N)),V=new URLSearchParams({st:M.token,r:x}),k=`${I}?${V.toString()}`;if(P?.settings?.useRedirectFlow)throw log__$5("Starting redirect mode for PayPal..."),window.location.href=k,await sleep(20*1e3),new Error("Paypal flow timed out, please try again with another payment method.");log__$5("Starting popup mode for PayPal..."),log__$5("Opening paypal iframe...");const B=await startPopupWindowVerificationStrict("PayPal",R,y,k);log__$5("Paypal flow result",B);const W=parseVaultIdFrom3dsHref(B.href),oe=parseArgFromHref(B.href,"catt");if(!oe)throw err__$6("Checkout attempt ID not found in redirect URL:",B.href),new Error("Checkout attempt ID not found in redirect URL");log__$5(`Confirming payment flow using vault ID ${W}`);const te=await confirmPaymentFlow(R,{secure_token:M.token,their_pm_id:W,checkout_attempt_id:_?oe:void 0});if(log__$5("Confirm payment flow result",te),M.mode==="setup")return{mode:"setup",result:{payment_method_id:te.payment_methods[0].id}};if(!te.pay_first_success_response)throw err__$6("Checkout failed, no pay-first success response:",te),new Error("Checkout failed, please try again with another payment method.");return{mode:"checkout",result:te.pay_first_success_response}}),OJS_STRIPE_LINK_BTN_ID="ojs-stripe-link-btn",{log__:log__$4,err__:err__$5}=createOjsFlowLoggers("stripe-link"),StripeLinkCpm=objectType({provider:literalType("stripe_link"),processor_name:literalType("stripe"),metadata:objectType({stripe_pk:stringType()})}),StripeLinkRequiredUserActions=arrayType(objectType({our_existing_pm_id:stringType()})).length(1),initStripeLinkFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{const A=S.customInitParams.stripeLink;log__$4("Checking if there are any CPMs for Stripe Link...");const O=findCpmMatchingType(S.checkoutPaymentMethods,StripeLinkCpm);log__$4("Starting stripe link flow...");const P=S.anyCdeConnection,R=await getPrefill(P),M=R.mode==="setup";log__$4("Creating stripe elements...");const D=await getCheckoutPreviewAmount(P,R.token,M,void 0),{elements:U,stripe:C}=await createStripeElements(O.metadata.stripe_pk,{mode:"setup",currency:D.currency,setup_future_usage:"off_session",paymentMethodCreation:"manual"}),L=U.create("linkAuthentication");log__$4("Creating express checkout...");const y=U.create("expressCheckout",{buttonHeight:A?.buttonHeight,paymentMethods:{amazonPay:"never",applePay:"never",googlePay:"never",paypal:"never"}}),_=(x,V)=>{let k=document.querySelector(x);k||(err__$5(`Recommanded to render a container with ${x} to avoid rendering in the body`),k=document.body);const B=document.createElement("div");k?.appendChild(B),L.mount(B);let W=!1;if(V){B.style.visibility="hidden",B.style.position="absolute",B.style.top="-1000px",B.style.left="-1000px",B.style.zIndex="-1",L.on("change",te=>{W=te.complete||!!te.value.email,A?.onAuthenticationStatusChange?.(W)});const oe=B.querySelector("iframe");oe&&new MutationObserver(()=>{const Fe=oe.offsetHeight>160;A?.onAuthenticationStatusChange?.(W||Fe)}).observe(oe,{attributes:!0,attributeFilter:["style"]})}return L},N=x=>{y.mount(x||`#${OJS_STRIPE_LINK_BTN_ID}`)},I=()=>{y.unmount()};return A?.doNotMountOnInit?log__$4("NOT mounting stripe link button (doNotMountOnInit is true)"):(log__$4("Mounting stripe link button..."),N()),A?.silentlyCheckAuthentication&&(log__$4(`Silently mounting link authentication element at #${OJS_STRIPE_LINK_BTN_ID}...`),_(`#${OJS_STRIPE_LINK_BTN_ID}`,!0)),y.on("click",async x=>{if(log__$4("Stripe Link button clicked"),A?.overrideLinkSubmit&&!await A.overrideLinkSubmit()){log__$4("Stripe Link submit aborted by overrideLinkSubmit");return}x.resolve()}),y.on("confirm",async x=>{log__$4("Stripe Link window confirmed",x);const V=await C.createPaymentMethod({elements:U,params:{billing_details:x.billingDetails}});V.error?(err__$5("error",V.error),T.get.onCheckoutError(V.error.message??"Stripe Link unknown error")):(log__$4("paymentMethod",V.paymentMethod),OjsFlows.stripeLink.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,customParams:{stripePM:V.paymentMethod},initResult:{isAvailable:!0}}))}),{isAvailable:!0,controller:{mountButton:N,dismountButton:I,mountLinkAuthenticationElement:x=>_(x,!1),waitForButtonToMount:async()=>await getElementByIdAsync(OJS_STRIPE_LINK_BTN_ID)}}}),runStripeLinkFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$4("Running Stripe Link flow...");const R=S.anyCdeConnection,M=await getPrefill(R);log__$4("Merging PM fields with form fields...");const D=fillEmptyFormInputsWithStripePM(A,P.stripePM),U=validateNonCdeFormFieldsForCC(D,O.get.onValidationError);track("billing_details_received",{...U}),log__$4("Starting payment flow...");const C=await startPaymentFlow(R,{payment_provider:T.provider,checkout_payment_method:T,their_existing_pm_id:P.stripePM.id,...createCustomerFieldsFromForm(U,M.checkout_settings),customer_language:detectLanguage()});log__$4("Start payment flow response",C);const y=StripeLinkRequiredUserActions.parse(C.required_user_actions)[0].our_existing_pm_id;if(M.mode==="setup"){log__$4("Doing payment setup...");const _=await confirmPaymentFlow(R,{secure_token:M.token,existing_cc_pm_id:y});return{mode:"setup",result:parseConfirmPaymentFlowResponse(_)}}else{log__$4("Doing checkout...");const _={secure_token:M.token,payment_input:{provider_type:T.provider},customer_email:U[FieldName.EMAIL],customer_first_name:U[FieldName.FIRST_NAME],customer_last_name:U[FieldName.LAST_NAME],customer_address:generateBillingAddressFromFields(U),customer_shipping_address:generateShippingAddressFromFields(U,M.checkout_settings),promotion_code:U[FieldName.PROMOTION_CODE],line_items:M.line_items,total_amount_atom:M.amount_total_atom,cancel_at_end:!1,checkout_payment_method:T};return{mode:"checkout",result:await performCheckout(R,_)}}}),fillEmptyFormInputsWithStripePM=(S,T)=>{const A={...S},[O,...P]=T.billing_details.name?.trim()?.split(/\s+/)??[],R=P.join(" ")||void 0;A[FieldName.EMAIL]=A[FieldName.EMAIL]||T.link?.email||T.billing_details.email||"op_unfilled@getopenpay.com",A[FieldName.ZIP_CODE]=A[FieldName.ZIP_CODE]||T.billing_details.address?.postal_code||"00000",A[FieldName.COUNTRY]=A[FieldName.COUNTRY]||T.billing_details.address?.country||"US";const M=A[FieldName.FIRST_NAME]||O||"",D=A[FieldName.LAST_NAME]||R||"";return M||D?(A[FieldName.FIRST_NAME]=M,A[FieldName.LAST_NAME]=D):(A[FieldName.FIRST_NAME]="_OP_UNKNOWN",A[FieldName.LAST_NAME]=""),log__$4("Final form inputs:",A),A},getElementByIdAsync=S=>new Promise(T=>{const A=()=>{const O=document.getElementById(S);O?T(O):requestAnimationFrame(A)};A()}),{log__:log__$3,err__:err__$4}=createOjsFlowLoggers("stripe-pr"),StripePrCpm=objectType({provider:unionType([literalType("apple_pay"),literalType("google_pay")]),processor_name:literalType("stripe"),metadata:objectType({stripe_pk:stringType()})}),initStripePrFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{log__$3("Checking if there are any CPMs for Stripe PR...");const A=findCpmMatchingType(S.checkoutPaymentMethods,StripePrCpm);log__$3("Initializing Stripe PR flow...");const O=S.anyCdeConnection,P=await getPrefill(O),R=P.mode==="setup";log__$3("Getting initial preview amount");const M=await getCheckoutPreviewAmount(O,P.token,R,void 0),D=await createStripePaymentRequest(A.metadata.stripe_pk,M.amountAtom,M.currency,R);log__$3("Checking if can make payment");const U=await D.canMakePayment();if(U===null)return err__$4("canMakePayment returned null"),{isAvailable:!1,reason:"canMakePayment returned null"};log__$3("Stripe PR flow initialized successfully. Can make payment",U);const C=(L,y)=>OjsFlows.stripePR.run({context:S,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(S.checkoutPaymentMethods,L),nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,customParams:{provider:L,overridePaymentRequest:y?.overridePaymentRequest},initResult:{processor:PaymentProcessor.Enum.stripe,pr:D,isAvailable:!0,availableProviders:{applePay:U.applePay,googlePay:U.googlePay},startFlow:C}});return{processor:PaymentProcessor.Enum.stripe,isAvailable:!0,pr:D,availableProviders:{applePay:U.applePay,googlePay:U.googlePay},startFlow:C}}),runStripePrFlow$1=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P,initResult:R})=>{if(log__$3("Running Stripe PR flow..."),P.provider!==T.provider)throw new Error(`Provider mismatch. Expected ${P.provider}, got ${T.provider}`);const M=S.anyCdeConnection,D=R.pr;if(P?.overridePaymentRequest){const I=P.overridePaymentRequest;log__$3("Overriding PR amount with",I);const x=typeof I.applePayPaymentRequest=="function"?I.applePayPaymentRequest({}):I.applePayPaymentRequest;updatePrWithAmount(D,I.amount,I.pending,x,I.label)}log__$3("Showing PR dialog..."),D.show();const U=await waitForUserToAddPaymentMethod(D);log__$3("Stripe PM added event:",U),log__$3("Merging PM fields with form fields...");const C=fillEmptyFormInputsWithStripePm(A,U),L=validateNonCdeFormFieldsForCC(C,O.get.onValidationError);track("billing_details_received",{...L}),log__$3("PR dialog finished. Starting payment flow...",L);const y=await startPaymentFlowForPR(M,{fields:L,checkoutPaymentMethod:T}),_=parsePRNextActionMetadata(y);log__$3("Confirming PR with Stripe..."),await confirmStripePrPM(_,U);const N=await getPrefill(M);if(N.mode==="setup"){log__$3("Confirming payment flow for setup...");const I=await confirmPaymentFlow(M,{secure_token:N.token});return{mode:"setup",result:parseConfirmPaymentFlowResponse(I)}}else{log__$3("Performing checkout...");const I={secure_token:N.token,payment_input:{provider_type:T.provider},customer_first_name:L[FieldName.FIRST_NAME],customer_last_name:L[FieldName.LAST_NAME],customer_email:L[FieldName.EMAIL],customer_address:generateBillingAddressFromFields(L),customer_shipping_address:generateShippingAddressFromFields(L,N.checkout_settings),promotion_code:L[FieldName.PROMOTION_CODE],line_items:N.line_items,total_amount_atom:N.amount_total_atom,cancel_at_end:!1,checkout_payment_method:T};return{mode:"checkout",result:await performCheckout(M,I)}}}),fillEmptyFormInputsWithStripePm=(S,T)=>{const A={...S},[O,...P]=T.payerName?.trim()?.split(/\s+/)??[],R=P.join(" ")||void 0,M=T.paymentMethod?.billing_details?.address,D=T.shippingAddress;A[FieldName.EMAIL]=A[FieldName.EMAIL]||T.payerEmail||"op_unfilled@getopenpay.com",A[FieldName.ZIP_CODE]=A[FieldName.ZIP_CODE]||M?.postal_code||D?.postalCode||"00000",A[FieldName.COUNTRY]=A[FieldName.COUNTRY]||M?.country||D?.country||"US";const U=A[FieldName.FIRST_NAME]||O||"",C=A[FieldName.LAST_NAME]||R||"";return U||C?(A[FieldName.FIRST_NAME]=U,A[FieldName.LAST_NAME]=C):(A[FieldName.FIRST_NAME]="_OP_UNKNOWN",A[FieldName.LAST_NAME]=""),log__$3("Final form inputs:",A),A},updatePrWithAmount=(S,T,A,O,P)=>{S.update({total:T?{amount:T.amountAtom,label:P??"Total",pending:A}:void 0,currency:T?.currency,applePay:O})},parsePRNextActionMetadata=S=>{if(S.required_user_actions.length!==1)throw new Error(`Error occurred.
|
|
215
|
-
Details: got ${S.required_user_actions.length} required user actions`);return PaymentRequestNextActionMetadata.parse(S.required_user_actions[0])},findCheckoutPaymentMethodStrict=(S,T,A)=>{const O=S.filter(P=>{const R=A===void 0?!0:P.processor_name===A,M=P.provider===T;return R&&M});if(O.length===0)throw console.warn("CPMs list",S),new Error(`No CPMs found with provider '${T}' and processor '${A}'`);return O.length!==1&&(console.warn("CPMs list",S),console.warn(`More than one CPM found with provider '${T}' and processor '${A}'`),track("more_than_one_cpm_found",{provider:T,processor:A,cpms:S})),O[0]},OjsFlows={commonCC:{init:async()=>{},run:runCommonCcFlow},stripePR:{init:initStripePrFlow,run:runStripePrFlow$1},stripeLink:{init:initStripeLinkFlow,run:runStripeLinkFlow},pockytPaypal:{init:initPockytPaypalFlow,run:runPockytPaypalFlow},paypal:{init:initPaypalFlow,run:runPaypalFlow},airwallexGooglePay:{init:initAirwallexGooglePayFlow,run:runAirwallexGooglePayFlow},airwallexApplePay:{init:initAirwallexApplePayFlow,run:runAirwallexApplePayFlow},airwallexACH:{init:async()=>{},run:runAirwallexACHFlow},airwallexEFT:{init:async()=>{},run:runAirwallexEFTFlow},airwallexBACS:{init:async()=>{},run:runAirwallexBACSFlow},airwallexSEPA:{init:async()=>{},run:runAirwallexSEPAFlow},loopCrypto:{init:initLoopFlow,run:runLoopFlow},authorizeNetApplePay:{init:initAuthnetApplePayFlow,run:runAuthnetApplePayFlow},authorizeNetGooglePay:{init:initAuthnetGooglePayFlow,run:runAuthnetGooglePayFlow},adyenGooglePay:{init:initAdyenGooglePayFlow,run:runAdyenGooglePayFlow},adyenApplePay:{init:initAdyenApplePayFlow,run:runAdyenApplePayFlow}},{log__:log__$2,err__:err__$3}=createOjsFlowLoggers("init-flows"),createInitFlowPublisher=(S,T)=>{const A=new LoadedOncePublisher;return{publisher:A,initialize:async O=>{try{if(A.current.isSuccess)throw new Error("This flow has already been initialized.");const P=await T(O);log__$2(`✔ ${S} flow initialized successfully. Result:`,P),A.set(P)}catch(P){err__$3(`𝙭 ${S} flow initialization failed. Error:`,getErrorMessage(P),"Details:",P),A.throw(P,getErrorMessage(P))}}}},startAllInitFlows=async(S,T,A)=>{await Promise.all(Object.values(S).map(O=>O.initialize({context:T,formCallbacks:A})))},createInitFlowsPublishers=()=>({stripePR:createInitFlowPublisher("Stripe PR",OjsFlows.stripePR.init),stripeLink:createInitFlowPublisher("Stripe Link",OjsFlows.stripeLink.init),airwallexGooglePay:createInitFlowPublisher("Airwallex GooglePay",OjsFlows.airwallexGooglePay.init),airwallexApplePay:createInitFlowPublisher("Airwallex ApplePay",OjsFlows.airwallexApplePay.init),loop:createInitFlowPublisher("Loop",OjsFlows.loopCrypto.init),paypal:createInitFlowPublisher("PayPal",OjsFlows.paypal.init),pockytPaypal:createInitFlowPublisher("Pockyt PayPal",OjsFlows.pockytPaypal.init),authorizeNetGooglePay:createInitFlowPublisher("Authnet GooglePay",OjsFlows.authorizeNetGooglePay.init),authorizeNetApplePay:createInitFlowPublisher("Authnet ApplePay",OjsFlows.authorizeNetApplePay.init),adyenGooglePay:createInitFlowPublisher("Adyen GooglePay",OjsFlows.adyenGooglePay.init),adyenApplePay:createInitFlowPublisher("Adyen ApplePay",OjsFlows.adyenApplePay.init)}),{err__:err__$2}=createOjsFlowLoggers("form-callbacks"),OptionalFn=functionType().optional(),ZodFormCallbacks=objectType({onFocus:OptionalFn,onBlur:OptionalFn,onChange:OptionalFn,onLoad:OptionalFn,onLoadError:OptionalFn,onValidationError:OptionalFn,onCheckoutStarted:OptionalFn,onCheckoutSuccess:OptionalFn,onSetupPaymentMethodSuccess:OptionalFn,onCheckoutError:OptionalFn,onPaymentRequestLoad:OptionalFn}),Ye=class Ye{constructor(){this.setCallbacks=T=>{this._callbacks=Ye.createEmptyCallbacks(),Object.entries(T).forEach(([A,O])=>{const P=makeCallbackSafe(A,O??Ye.NOOP,err__$2);this._callbacks[A]=P})},this._callbacks=Ye.createEmptyCallbacks()}get get(){return{...this._callbacks}}};Ye.NOOP=()=>{},Ye.createEmptyCallbacks=()=>{const T={};return Object.keys(ZodFormCallbacks.keyof().enum).forEach(A=>{T[A]=Ye.NOOP}),T},Ye.fromObject=T=>{const A=new Ye;return A.setCallbacks(ZodFormCallbacks.parse(T)),A};let FormCallbacks=Ye;function detectFramework(){try{const S=getWindowSafe(),T=S;if(T?.next||T?.__NEXT_DATA__||document.querySelector("#__next"))return"nextjs";if(S?.__NUXT__||document.querySelector("#__nuxt"))return"nuxt";if(Object.keys(document).find(P=>P.includes("react"))||Array.from(document.body.querySelectorAll("body > *")).find(P=>P._reactRootContainer))return"react";const O=S;return O?.Vue||O?.__VUE__?"vue":document.querySelector("[ng-version]")?"angular":"vanilla"}catch{return"unknown"}}function getFrameworkVersion(S){try{switch(S){case"react":return null;case"nextjs":{const A=getWindowSafe();return A?.next?.version||A?.__NEXT_DATA__?.buildId||null}case"nuxt":return null;case"vue":return null;case"angular":{const A=getWindowSafe()?.document?.querySelector("[ng-version]");return A?A.getAttribute("ng-version"):null}default:return null}}catch{return null}}function getFrameworkInfo(){const S=detectFramework(),T=getFrameworkVersion(S);return{framework:S,version:T}}const getFraudMetadata=()=>{const S=window&&window.screen?window.screen.height:null,T=window&&window.screen?window.screen.width:null,A=window&&window.screen?window.screen.colorDepth:null,O=window&&window.navigator?window.navigator.javaEnabled():!1,P=window&&window.navigator?window.navigator.userAgent:null,R="text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";let M=null;window&&window.navigator&&(M=window.navigator.language?window.navigator.language:window.navigator.browserLanguage);const D=new Date().getTimezoneOffset();return{color_depth:A,java_enabled:O,javascript_enabled:!0,language:M,screen_height:S,screen_width:T,time_zone_offset:D,user_agent:P,accept_header:R}};var SubmitMethods=(S=>(S.card="card",S.pockytPaypal="pockyt-paypal",S.applePay="apple-pay",S.googlePay="google-pay",S.loopCrypto="loop-crypto",S.paypal="paypal",S.stripeLink="stripe-link",S.airwallexGooglePay="airwallex-google-pay",S.airwallexApplePay="airwallex-apple-pay",S.authorizenetGooglePay="authorizenet-google-pay",S.authorizenetApplePay="authorizenet-apple-pay",S.adyenGooglePay="adyen-google-pay",S.adyenApplePay="adyen-apple-pay",S.airwallexACH="airwallex-ach",S.airwallexEFT="airwallex-eft",S.airwallexBACS="airwallex-bacs",S.airwallexSEPA="airwallex-sepa",S))(SubmitMethods||{});nativeEnumType(SubmitMethods);var PaymentProviderType=(S=>(S.ACH="ach",S.EFT="eft",S.BACS="bacs",S.SEPA="sepa",S.APPLE_PAY="apple_pay",S.CREDIT_CARD="credit_card",S.GOOGLE_PAY="google_pay",S.STRIPE_LINK="stripe_link",S.CRYPTO="crypto",S.PAYPAL="paypal",S))(PaymentProviderType||{});const getApplePayProcessors=S=>{const T=[S.airwallexApplePay,S.authorizeNetApplePay,S.adyenApplePay],A=[];T.forEach(P=>{const R=P.publisher.getValueIfLoadedElse(null);R?.isAvailable&&A.push(R)});const O=S.stripePR.publisher.getValueIfLoadedElse(null);return O?.isAvailable&&O.availableProviders.applePay&&A.push({isAvailable:!0,isLoading:!1,processor:PaymentProcessor.Enum.stripe,startFlow:R=>O.startFlow("apple_pay",{overridePaymentRequest:R?.overridePaymentRequest})}),{processors:A.map(P=>P.processor),isAvailable:A.length>0,isLoading:!1,startFlow:P=>startApplePayFlow(A,P)}},getGooglePayProcessors=S=>{const T=[S.airwallexGooglePay,S.authorizeNetGooglePay,S.adyenGooglePay],A=[];T.forEach(P=>{const R=P.publisher.getValueIfLoadedElse(null);R?.isAvailable&&A.push(R)});const O=S.stripePR.publisher.getValueIfLoadedElse(null);return O?.isAvailable&&O.availableProviders.googlePay&&A.push({isAvailable:!0,isLoading:!1,processor:PaymentProcessor.Enum.stripe,startFlow:R=>O.startFlow("google_pay",{overridePaymentRequest:R?.overridePaymentRequest})}),{processors:A.map(P=>P.processor),isAvailable:A.length>0,isLoading:!1,startFlow:P=>startGooglePayFlow(A,P)}},startApplePayFlow=(S,T)=>{if(T?.processor){const O=S.find(P=>P.processor===T.processor);if(O?.isAvailable)return O.startFlow(T);throw new Error(`Specified Apple Pay processor ${T.processor} is not available`)}const A=S.find(O=>O.isAvailable);if(A)return A.startFlow(T);throw new Error("No available Apple Pay processor found")},startGooglePayFlow=(S,T)=>{if(T?.processor){const O=S.find(P=>P.processor===T.processor);if(O?.isAvailable)return O.startFlow(T);throw new Error(`Specified Google Pay processor ${T.processor} is not available`)}const A=S.find(O=>O.isAvailable);if(A)return A.startFlow(T);throw new Error("No available Google Pay processor found")},convertStylesToQueryString=S=>JSON.stringify(S),{log__:log__$1,err__:err__$1}=createOjsFlowLoggers("tracer"),initTracerSafe=(S,T)=>{try{initTracerUnsafe(S,T)}catch(A){err__$1(`Error initializing tracer: ${A}`)}};let globalTracer;const initTracerUnsafe=async(S,T)=>{if(typeof window>"u")return;const A=await Promise.resolve().then(()=>index$5),{ConsoleSpanExporter:O,SimpleSpanProcessor:P,WebTracerProvider:R}=A,M=await Promise.resolve().then(()=>index$3),{FetchInstrumentation:D}=M,U=await Promise.resolve().then(()=>index$2),{ZoneContextManager:C}=U,L=await Promise.resolve().then(()=>index$4),{registerInstrumentations:y}=L,_=await Promise.resolve().then(()=>index$7),{Resource:N}=_,I=await Promise.resolve().then(()=>detectResources),{detectResourcesSync:x}=I,V=await Promise.resolve().then(()=>index$1),{OTLPTraceExporter:k}=V,B=await Promise.resolve().then(()=>index),{B3Propagator:W,B3InjectEncoding:oe}=B,te=await Promise.resolve().then(()=>index$6),{BatchSpanProcessor:fe}=te;log__$1(`Initializing tracer with version ${S} and baseUrl ${T}`);const Fe=getCollectorUrl(T);log__$1(`Using collector URL ${Fe}`);const ot=new k({url:Fe}),et={"service.version":S,"service.name":"ojs"};return new R({resource:new N(et).merge(x()),spanProcessors:[new P(new O),new fe(ot,{scheduledDelayMillis:500})]}).register({contextManager:new C,propagator:new W({injectEncoding:oe.MULTI_HEADER})}),y({instrumentations:[new D({propagateTraceHeaderCorsUrls:[/.*/],ignoreUrls:[/^https:\/\/(.*\.)?adyen\.com/,/^https:\/\/(.*\.)?loopcrypto\.xyz/]})]}),globalTracer=trace.getTracer("openpay-js"),log__$1("Tracer initialized"),globalTracer},getCollectorUrl=S=>{const T=new URL(S).hostname;return T==="cde.openpaystaging.com"?"https://otel.openpaysandbox.com/v1/traces":T==="cde.getopenpay.com"?"https://otel.getopenpay.com/v1/traces":"http://localhost:4319/v1/traces"};class OpenPayFormEventHandler{constructor(T,A,O,P){this.handleMessage=R=>{if(!R.source){console.warn("[OJS] No source found");return}if(getCleanOrigin(R.origin)!==getCleanOrigin(this.baseUrl)||typeof R.data=="object"&&R.data.penpal||typeof R.data=="object"&&R.data.source&&R.data.source==="react-devtools-bridge")return;let M=null;try{M=parseEventPayload(JSON.parse(R.data))}catch{return}if(!this.validateEvent(M))return;const{elementId:U,payload:C}=M,L=C.type;switch(L){case"LAYOUT":this.internalCallbacks.setFormHeight(C.height?`${C.height}px`:"100%");break;case"FOCUS":this.formCallbacks.get.onFocus(U,C.elementType);break;case"BLUR":this.formCallbacks.get.onBlur(U,C.elementType,{obfuscatedValue:C.obfuscatedValue});break;case"CHANGE":this.formCallbacks.get.onChange(U,C.elementType,C.errors);break;case"LOADED":this.eventTargets[U]=R.source,this.internalCallbacks.onCdeLoaded(C);break;case"LOAD_ERROR":this.internalCallbacks.onCdeLoadError(C.message);break;case"VALIDATION_ERROR":this.formCallbacks.get.onValidationError(C.elementType,C.errors,U);break;default:console.warn("[form] Unhandled event type:",L)}},this.validateEvent=R=>R.formId!==this.formId||!R.elementId?(console.log("[OJS] formId",this.formId,R.formId),console.warn("[form] Ignoring unknown event:",R),!1):this.nonces.has(R.nonce)?(console.warn("[form] Ignoring duplicate event:",R),!1):(this.nonces.add(R.nonce),!0),this.eventTargets={},this.nonces=new Set,this.formId=T,this.baseUrl=A,this.formCallbacks=O,this.internalCallbacks=P}}const getCleanOrigin=S=>new URL(S).origin;async function createConnection(S,T){const O=await connectToChild({iframe:S,debug:!1,childOrigin:T}).promise,P=await checkIfValidCdeConnectionObject(O);if(!isResultValid(O,P))throw new Error("Got invalid CDE connection object");return O}class ConnectionManager{constructor(){this.connections=new Map}addConnection(T,A){this.connections.set(T,A)}getConnection(){const T=this.connections.values().next().value;if(!T)throw new Error("Connection not found");return T}getAllConnections(){return this.connections}}const setupPaymentRequestHandlers=(S,T,A)=>{const{stripePR:O}=S;O.publisher.subscribe(P=>{if(P.isSuccess){const R=P.loadedValue,M=R.isAvailable&&R.availableProviders.applePay,D=R.isAvailable&&R.availableProviders.googlePay,U={apple_pay:{isLoading:!1,isAvailable:M,startFlow:async C=>{M&&runStripePrFlow("apple_pay",R,T,A,C)}},google_pay:{isLoading:!1,isAvailable:D,startFlow:async C=>{D&&runStripePrFlow("google_pay",R,T,A,C)}}};A.get.onPaymentRequestLoad(U)}})},runStripePrFlow=(S,T,A,O,P)=>OjsFlows.stripePR.run({context:A,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(A.checkoutPaymentMethods,S),nonCdeFormInputs:createInputsDictFromForm(A.formDiv),formCallbacks:O,customParams:{provider:S,overridePaymentRequest:P?.overridePaymentRequest},initResult:T}),GENERIC_CONN_ERR="The secure form failed to load properly. Please check your internet connection, or try again later.",{log__,err__}=createOjsFlowLoggers("op-form"),$e=class $e{constructor(T){this.isDestroyed=!1,this.cdeLoadEvent=new LoadedOncePublisher,this.anyCdeConn=new LoadedOncePublisher,this.context=new LoadedOncePublisher,this.initFlows=createInitFlowsPublishers(),this.isSubmitting=!1,this.startFormInit=async()=>{const P=trace.getTracer("openpay-js"),R=P.startSpan("form.initialize",{kind:SpanKind.CLIENT,attributes:{"ojs.checkoutSecureToken":this.config.checkoutSecureToken,"ojs.deviceToken":this.deviceToken,"ojs.formId":this.formId,"ojs.version":this.ojsVersion,"ojs.release_version":this.ojsReleaseVersion,"ojs.base_url":this.baseUrl,"ojs.referrer":this.referrer}});return context.with(trace.setSpan(context.active(),R),async()=>{try{const M=this.createElement(ElementTypeEnum.CDE_BRIDGE);M.node.id="__op_internal_cde_bridge",M.node.ariaHidden="true",Object.assign(M.node.style,{border:"none",margin:"0px",padding:"0px",width:"1px",height:"1px",overflow:"hidden",visibility:"hidden",position:"fixed",pointerEvents:"none",userSelect:"none"}),M.mount("body"),log__("CDE bridge element mounted"),log__("Initializing OpenPay form:"),log__("├ Waiting for CDE load event...");const D=await this.cdeLoadEvent.waitForLoad({timeoutSec:120,timeoutErrMsg:GENERIC_CONN_ERR});log__("├ CDE load event received"),R?.addEvent("waiting_for_cde_connection"),log__("├ Waiting for CDE connection...");const U=P?.startSpan("cde.connect",void 0,context.active()),C=await this.anyCdeConn.waitForLoad({timeoutSec:120,timeoutErrMsg:GENERIC_CONN_ERR});U?.end(),R?.addEvent("cde_connected"),log__("├ CDE connection received"),await setUserDeviceToken(C,this.deviceToken),log__("├ Creating OJS context, setting up handlers...");const L=$e.buildOjsFlowContext(this.config,D,C,this.getFormDiv());this.context.set(L),setupPaymentRequestHandlers(this.initFlows,L,this.formCallbacks),log__("├ Starting OJS init flows..."),await startAllInitFlows(this.initFlows,L,this.formCallbacks),this.formCallbacks.get.onLoad(D.totalAmountAtoms,D.currency),log__("╰ Done initializing OJS flows."),R?.setStatus({code:SpanStatusCode.OK}),track("form_loaded")}catch(M){const D=getErrorMessage(M);R?.setStatus({code:SpanStatusCode.ERROR,message:D}),err__("╰ Error initializing OP form:",D),track("form_init_error",{error:D}),this.formCallbacks.get.onLoadError(D)}finally{R?.end()}})},this.setFormHeight=P=>{this.formProperties.height=P,this.registeredElements&&Object.values(this.registeredElements).forEach(R=>{!R||R.type===ElementTypeEnum.CDE_BRIDGE||(R.node.style.height=P)})},this.onCdeLoaded=P=>{this.cdeLoadEvent.current.isSuccess||(this.cdeLoadEvent.set(P),track("cde_loaded"))},this.onCdeLoadError=P=>{this.cdeLoadEvent.current.isSuccess||(this.cdeLoadEvent.throw(new Error(P),P),track("cde_load_error",{error:P}))},this.createElement=(P,R={})=>{if(this.checkValidFormInstance("createElement"),!this.config)throw new Error("OpenPay form not initialized");const M=_ElementTypeEnumZod.parse(P),D=document.createElement("iframe"),U=this.buildQueryString(R);D.name=`${M}-element`;const C=new URL(`/app/v1/${D.name}/`,this.config.baseUrl);return C.search=U.toString(),D.src=C.href,D.style.border="none",D.style.width="100%",this.registerIframe(M,D)},this.registerIframe=(P,R)=>{const M={type:P,node:R,mount:D=>{document.querySelector(D)?.appendChild(R),track("element_mounted",{element_type:P})}};return this.connectToElement({type:M.type,node:M.node}),this.registeredElements||(this.registeredElements={[ElementTypeEnum.CARD]:void 0,[ElementTypeEnum.CARD_NUMBER]:void 0,[ElementTypeEnum.CARD_EXPIRY]:void 0,[ElementTypeEnum.CARD_CVC]:void 0,[ElementTypeEnum.CDE_BRIDGE]:void 0}),this.registeredElements[P]=M,M},this.buildQueryString=P=>{const R=new URLSearchParams;return R.append("referer",this.referrer),R.append("formId",this.formId),P.styles&&R.append("styles",convertStylesToQueryString(P.styles)),R.append("secureToken",this.config.checkoutSecureToken),R},this.connectToElement=P=>createTrackingSpan({spanName:"connect_to_element",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},async()=>{const R=await createConnection(P.node);R.tracingContext={checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},this.connectionManager.addConnection(P.type,R),!this.anyCdeConn.current.isSuccess&&P.type===ElementTypeEnum.CDE_BRIDGE&&this.anyCdeConn.set(R)}).catch(R=>err__("[FORM] Error connecting to CDE iframe",R)),this.getFormDiv=()=>document.querySelector(this.formTarget)??document.body,this.submitCard=async P=>{if(this.isSubmitting){err__("Form is already submitting. Please wait for the submission to finish before submitting again.");return}this.isSubmitting=!0;try{const R=await createTrackingSpan({spanName:"submit_card",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer,paymentRouteId:P?.paymentRouteId},async()=>{track("submit_card",{...P}),this.checkValidFormInstance("submitCard");const M=this.context.getValueIfLoadedElse(null);if(!M)throw new Error("Please wait for the form to finish loading before submitting.");await OjsFlows.commonCC.run({context:M,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(M.checkoutPaymentMethods,"credit_card"),nonCdeFormInputs:createInputsDictFromForm(M.formDiv),formCallbacks:this.formCallbacks,customParams:{currentCdeConnections:this.connectionManager.getAllConnections(),paymentRouteId:P?.paymentRouteId},initResult:void 0})});return this.isSubmitting=!1,R}catch(R){throw this.isSubmitting=!1,R}},this.getAvailablePaymentMethods=()=>createTrackingSpan({spanName:"get_available_payment_methods",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},()=>{this.checkValidFormInstance("getAvailablePaymentMethods");const P=this.context.getValueIfLoadedElse(null);if(!P)throw new Error("Please wait for the form to finish loading before getting available payment methods.");const{processors:R,isAvailable:M}=getApplePayProcessors(this.initFlows),{processors:D,isAvailable:U}=getGooglePayProcessors(this.initFlows),L=this.initFlows.paypal.publisher.getValueIfLoadedElse(null)?.isAvailable??!1,y=P.checkoutPaymentMethods.some(W=>W.processor_name==="pockyt"&&W.provider==="paypal"),N=this.initFlows.loop.publisher.getValueIfLoadedElse(null)?.isAvailable??!1,I=this.initFlows.stripeLink.publisher.getValueIfLoadedElse(null),x=I?.isAvailable??!1,V=[{name:SubmitMethods.card,processors:[],isAvailable:!0},{name:SubmitMethods.applePay,processors:R,isAvailable:M},{name:SubmitMethods.googlePay,processors:D,isAvailable:U},{name:SubmitMethods.paypal,processors:L?[PaymentProcessor.Enum.paypal]:[],isAvailable:L},{name:SubmitMethods.pockytPaypal,processors:y?[PaymentProcessor.Enum.pockyt]:[],isAvailable:y},{name:SubmitMethods.loopCrypto,processors:N?[PaymentProcessor.Enum.loop]:[],isAvailable:N},{name:SubmitMethods.stripeLink,processors:[PaymentProcessor.Enum.stripe],isAvailable:x,controller:I?.isAvailable?I.controller:void 0}],k={paypal:SubmitMethods.paypal,airwallexGooglePay:SubmitMethods.airwallexGooglePay,airwallexApplePay:SubmitMethods.airwallexApplePay,authorizeNetGooglePay:SubmitMethods.authorizenetGooglePay,authorizeNetApplePay:SubmitMethods.authorizenetApplePay,adyenGooglePay:SubmitMethods.adyenGooglePay,adyenApplePay:SubmitMethods.adyenApplePay};return[...Object.entries(this.initFlows).map(([W,oe])=>{const te=oe.publisher.getValueIfLoadedElse(null);return{name:k[W]??W,processors:[],isAvailable:te?.isAvailable??!1}}),...V]}),this.generalSubmit=async(P,R)=>{if(this.isSubmitting){err__("Form is already submitting. Please wait for the submission to finish before submitting again.");return}this.isSubmitting=!0;try{const M=await createTrackingSpan({spanName:"general_form_submit",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},async()=>{track("general_form_submit",{method:P,settings:R}),this.checkValidFormInstance("generalSubmit");const D=this.context.getValueIfLoadedElse(null);if(!D)throw new Error("Please wait for the form to finish loading before submitting.");switch(P){case SubmitMethods.card:return this.submitCard(R);case SubmitMethods.pockytPaypal:return OjsFlows.pockytPaypal.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.PAYPAL,"pockyt"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:{settings:R},initResult:void 0});case SubmitMethods.paypal:return OjsFlows.paypal.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.PAYPAL,"paypal"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),initResult:void 0,customParams:{settings:R},formCallbacks:this.formCallbacks});case SubmitMethods.loopCrypto:return OjsFlows.loopCrypto.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,"crypto","loop"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.applePay:{const{startFlow:U}=getApplePayProcessors(this.initFlows);return U(R)}case SubmitMethods.googlePay:{const{startFlow:U}=getGooglePayProcessors(this.initFlows);return U(R)}case SubmitMethods.airwallexGooglePay:{const U=this.initFlows.airwallexGooglePay.publisher.getValueIfLoadedElse(null);if(!U){err__("airwallex-google-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.airwallexApplePay:{const U=this.initFlows.airwallexApplePay.publisher.getValueIfLoadedElse(null);if(!U){err__("airwallex-apple-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.authorizenetGooglePay:{const U=this.initFlows.authorizeNetGooglePay.publisher.getValueIfLoadedElse(null);if(!U){err__("authorize-net-google-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.authorizenetApplePay:{const U=this.initFlows.authorizeNetApplePay.publisher.getValueIfLoadedElse(null);if(!U){err__("authorize-net-apple-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.adyenGooglePay:{const U=this.initFlows.adyenGooglePay.publisher.getValueIfLoadedElse(null);if(!U){err__("adyen-google-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.adyenApplePay:{const U=this.initFlows.adyenApplePay.publisher.getValueIfLoadedElse(null);if(!U){err__("adyen-apple-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.airwallexACH:return OjsFlows.airwallexACH.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.ACH,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.airwallexEFT:return OjsFlows.airwallexEFT.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.EFT,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.airwallexBACS:return OjsFlows.airwallexBACS.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.BACS,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.airwallexSEPA:return OjsFlows.airwallexSEPA.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.SEPA,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.stripeLink:{err__("StripeLink cannot be submitted manually. Please mount the button properly and if user completed the payment flow via StripeLink button, the payment will be submitted automatically.");return}default:assertNever(P)}});return this.isSubmitting=!1,M}catch(M){throw this.isSubmitting=!1,M}},this.submitWith=this.generalSubmit,this.submit=this.submitCard,this.destroy=()=>{log__("Destroying OpenPay form..."),this.checkValidFormInstance("destroy"),this.isDestroyed=!0;for(const P of Object.values(this.registeredElements??{}))P&&P.node.remove();getWindowSafe()?.removeEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler)),detachAnalyticsEventListeners(),this.registeredElements=null,delete window.ojs,track("form_destroyed")},this.updateCallbacks=P=>{this.formCallbacks.setCallbacks(P)},$e.assignAsSingleton(this),this.ojsVersion="0.5.16",this.ojsReleaseVersion="0.5.16",this.baseUrl=T.baseUrl??"https://cde.getopenpay.com",this.config={...T,baseUrl:this.baseUrl},this.formCallbacks=FormCallbacks.fromObject(T),this.registeredElements=null,this.formId=`opjs-form-${v4()}`,this.referrer=window.location.origin,this.formTarget=T.formTarget??"body",this.formProperties={height:"1px"},this.connectionManager=new ConnectionManager,this.deviceToken=getDeviceToken(),attachAnalyticsEventListeners();const{framework:A,version:O}=getFrameworkInfo();getCurrentEnv(this.baseUrl).then(P=>{if(!metricsPublisher.current.isSuccess){const R={checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,environment:P,framework:A,frameworkVersion:O,ojsVersion:this.ojsVersion,ojsReleaseVersion:this.ojsReleaseVersion,referrer:this.referrer,baseUrl:this.baseUrl};metricsPublisher.set(R)}}),track("form_init"),console.log("OJS VERSION",this.ojsVersion),T.allowTracing===!0&&initTracerSafe(this.ojsVersion,this.baseUrl),this.eventHandler=new OpenPayFormEventHandler(this.formId,this.baseUrl,this.formCallbacks,{setFormHeight:this.setFormHeight,onCdeLoaded:this.onCdeLoaded,onCdeLoadError:this.onCdeLoadError}),getWindowSafe()?.addEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler)),this.startFormInit()}get checkoutSecureToken(){return this.config.checkoutSecureToken}checkValidFormInstance(T="unknown"){const A=$e.getInstance(),O={thisFormId:this.formId,currentFormId:A?.formId||"no-current-instance",isDestroyed:this.isDestroyed,checkoutToken:this.config.checkoutSecureToken.substring(0,10)+"..."},P=`
|
|
214
|
+
Error: ${getErrorMessage(T)}`),new Error(A)}},parseArgFromHref=(S,T)=>new URL(S).searchParams.get(T),checkIfRequiresPockyt3ds=S=>S?.["op-pockyt-3ds-url"]!==void 0,runPockyt3dsFlow=async(S,T)=>{const A=parseResponseHeaders(T),O=await start3dsVerificationStrict({url:A["op-pockyt-3ds-url"],baseUrl:S});return{existing_cc:{vault_id:parseVaultIdFrom3dsHref(O.href??""),transaction_no:A["op-pockyt-txn-no"],reference_no:A["op-pockyt-ref-no"]}}},{log__:stripeLog__}=createOjsFlowLoggers("stripe-cc"),Stripe3DSMetadataPayload=objectType({stripe_pk:stringType(),client_secret:stringType(),stripe_pm_id:stringType()}),stripeCC3DSFlow=async S=>{track("3ds_stripe_redirect",{...S}),stripeLog__(`├ Using stripe 3DS flow [Client Secret: ${S.client_secret.substring(0,8)}...]`),await launchStripe3DSDialogFlow(S),track("3ds_stripe_complete"),stripeLog__("╰ Stripe 3DS flow completed successfully")},parseUserFEPayload=S=>{const T=Stripe3DSMetadataPayload.safeParse(S);if(!T.success)throw new Error(`Stripe 3DS metadata has unexpected format: ${JSON.stringify(T.error.errors)}`);return{stripe_pk:T.data.stripe_pk,client_secret:T.data.client_secret,stripe_pm_id:T.data.stripe_pm_id}},MAX_CONFIRM_LOOP_ITERATIONS=4,{log__:log__$9,err__:err__$a}=createOjsFlowLoggers("unified-cc"),unsafelyRunUnifiedCcFlow=async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$9("├ Running unified CC flow...",{checkoutPaymentMethod:T});const R=S.anyCdeConnection,M=await getPrefill(R);log__$9(`├ Validating non-CDE form fields [Mode: ${M.mode}]`);const D=validateNonCdeFormFieldsForCC(A,O.get.onValidationError),U={session_id:S.elementsSessionId,checkout_payment_method:T,non_cde_form_fields:D,extra_metadata:{origin:window.location.origin,deviceToken:getDeviceToken()},use_unified_cc_flow:!0,pay_first_flow_cart_info:{line_items:M.line_items,displayed_total_amount_atom:M.amount_total_atom},payment_route_id:P.paymentRouteId};err__$a(P,U),log__$9(`├ Tokenizing card info in Partial PMs [Session: ${S.elementsSessionId}]`);const C=await tokenizeCardOnAllConnections(P.currentCdeConnections,{session_id:S.elementsSessionId});validateTokenizeCardResults(C,O.get.onValidationError);const L=await startPaymentFlowForCC(R,U);if(log__$9("├ startPf result",L),L.checkout_success_response)return returnSuccessResult(M.mode,L);if(!L.checkout_attempt_id)throw new Error("Invalid state: no checkout attempt ID from PF result");return runConfirmLoop({context:S,prefill:M,nonCdeFormInputs:A,commonCheckoutParams:U,anyCdeConnection:R,startPfResult:L,checkoutAttemptId:L.checkout_attempt_id})},runConfirmLoop=async S=>{const{context:T,prefill:A,nonCdeFormInputs:O,commonCheckoutParams:P,anyCdeConnection:R,startPfResult:M,checkoutAttemptId:D}=S;let U=M;for(let C=0;C<MAX_CONFIRM_LOOP_ITERATIONS;C++){log__$9(`├ Running confirm loop iteration ${C}`),track("unified_cc_confirm_loop_iteration",{iteration:C});const{userAction:L}=validatePfResultUserAction(U);try{const y=await runRequiredUserAction(T.baseUrl,L,A,O);P.extra_metadata={...P.extra_metadata,...y.metadataForConfirmStep},log__$9("├ New extra metadata",P.extra_metadata)}catch(y){const _=getErrorMessage(y);err__$a(`├ Error in running user action in iteration ${C}. Continuing to confirm step...`,_),track("unified_cc_user_action_error",{error_message:_,iteration:C})}if(U=await confirmPaymentFlow(R,{secure_token:A.token,checkout_attempt_id:D,processor_specific_metadata:P.extra_metadata}),log__$9(`├ confirmPf result (iteration ${C})`,U),U.checkout_success_response)return returnSuccessResult(A.mode,U)}throw track("unified_cc_unexpected_branch",{secure_token:A.token,checkout_attempt_id:U.checkout_attempt_id,confirmPFResult:U}),new Error("Checkout error, please try another payment method")},runRequiredUserAction=async(S,T,A,O)=>{if(T._unified_cc_action_name==="3DS_REQUIRED"){if(T.type==="stripe_3ds")return await stripeCC3DSFlow(parseUserFEPayload(T)),{metadataForConfirmStep:{}};if(checkIfRequiresAirwallex3ds(T))return{metadataForConfirmStep:{airwallex:await runAirwallex3dsFlow(S,T)}};if(checkIfRequiresAdyen3ds(T))return{metadataForConfirmStep:{adyen:await runAdyen3dsFlow(O[FieldName.COUNTRY],T,A.locale)}};if(checkIfRequiresCybersource3ds(T))return await runCybersource3dsFlow(T),{metadataForConfirmStep:{}};if(checkIfLegacy3DSPath(T))return await commonCC3DSFlow({required_user_actions:[T]},S),{metadataForConfirmStep:{}};throw new Error(`Unhandled 3DS user action: ${JSON.stringify(T)}`)}else throw new Error(`Unknown required user action: ${JSON.stringify(T)}`)},checkIfLegacy3DSPath=S=>{try{return parseCommon3DSNextActionMetadata([S]),!0}catch{return!1}},validatePfResultUserAction=S=>{if(S.required_user_actions){if(S.required_user_actions.length===0)throw new Error("Invalid state: no required user actions");if(S.required_user_actions.length>1)throw new Error("Invalid state: multiple required user actions")}else throw new Error("Invalid state: no required user actions");const T=UserActionFEPayload.safeParse(S.required_user_actions[0]);if(!T.success)throw err__$a("User action raw payload",S.required_user_actions[0]),err__$a("Parsing error",T.error),new Error("Invalid state: schema of user action payload is not valid");return{userAction:T.data}},returnSuccessResult=(S,T)=>{if(S==="setup"){const A=T.cc_pm_id??T.payment_methods?.[0].id;if(!A)throw new Error("Invalid state: no CC PM ID or payment_methods found in PF result");return{mode:"setup",result:{payment_method_id:A}}}else{if(!T.checkout_success_response)throw new Error("Invalid state: no checkout success response from startPF");return{mode:"checkout",result:T.checkout_success_response}}},{log__:log__$8,err__:err__$9}=createOjsFlowLoggers("common-cc");arrayType(objectType({our_existing_pm_id:stringType()})).length(1);const runCommonCcFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$8("├ Running common CC flow...",{checkoutPaymentMethod:T});const R=S.anyCdeConnection,M=await getPrefill(R);track("common_cc_flow_started",{...T,prefill:M});const D=M.final_feature_rollout_settings?.unified_cc??0;log__$8(`├ Unified CC rollout: ${Math.round(D*100)}%`);const U=Math.random(),C=U<D,L={roll:U,unifiedCCRolloutRatio:D,useUnifiedCCFlow:C};if(C)return log__$8(`├ Picked unified CC flow (${U} vs ${D})`),track("unified_cc_flow_picked",L),unsafelyRunUnifiedCcFlow({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P,initResult:void 0});log__$8(`├ Picked legacy CC flow (${U} vs ${D})`),track("legacy_cc_flow_picked",L),log__$8(`├ Validating non-CDE form fields [Mode: ${M.mode}]`);const y=validateNonCdeFormFieldsForCC(A,O.get.onValidationError,M.checkout_settings);track("billing_details_received",{...y});const _={session_id:S.elementsSessionId,checkout_payment_method:T,non_cde_form_fields:y,extra_metadata:{origin:window.location.origin},use_unified_cc_flow:!1,payment_route_id:P.paymentRouteId,customer_language:detectLanguage(),...createCustomerFieldsFromForm(y,M.checkout_settings)};try{log__$8(`├ Tokenizing card info in CDE [Session: ${S.elementsSessionId}]`);const N=await tokenizeCardOnAllConnections(P.currentCdeConnections,{session_id:S.elementsSessionId});if(validateTokenizeCardResults(N,O.get.onValidationError),M.mode==="setup"){log__$8(`├ Setting up payment method in CDE [Token: ${M.token}]`);const I=await setupCheckout(R,_);return log__$8(`╰ Setup completed successfully [PM ID: ${I.payment_method_id}]`),{mode:"setup",result:I}}else{log__$8(`├ Initial checkout flow. Checking out card info in CDE [Session: ${S.elementsSessionId}]`);const I=await checkoutCardElements(R,_);return log__$8("╰ Checkout completed successfully."),{mode:"checkout",result:I}}}catch(N){if(N instanceof CdeError&&N.originalErrorMessage.includes("3DS_REQUIRED")){log__$8("├ Card requires 3DS, starting non-legacy payment flow"),log__$8("Received 3DS error response headers:",N.response.headers),track("3ds_required",{...T,...N.response.headers});const I=N.response.headers??{};"op-existing-cc-pm-id"in I&&(_.existing_cc_pm_id=I["op-existing-cc-pm-id"],log__$8(`├ Existing CC PM ID: ${_.existing_cc_pm_id}`));const x=checkIfRequiresPockyt3ds(N.response.headers);if(x){log__$8("├ Pockyt 3DS case detected. Going through Pockyt 3DS flow.");const fe=await runPockyt3dsFlow(S.baseUrl,N.response.headers);_.extra_metadata.pockyt=fe}if(checkIfRequiresAirwallex3ds(N.response.headers)){log__$8("├ Airwallex 3DS case detected. Going through Airwallex 3DS flow.");const fe=await runAirwallex3dsFlow(S.baseUrl,N.response.headers);_.extra_metadata.airwallex=fe}if(checkIfRequiresAdyen3ds(N.response.headers)){log__$8("├ Adyen 3DS case detected. Going through Adyen 3DS flow.");const fe=await runAdyen3dsFlow(A[FieldName.COUNTRY],N.response.headers,M.locale);_.extra_metadata.adyen=fe}const B=await startPaymentFlowForCC(R,_);log__$8("├ Start payment flow result:",B);const W=B.required_user_actions.find(fe=>fe.type==="cybersource_payer_auth");if(W){log__$8("├ Cybersource 3DS case detected. Going through Cybersource 3DS flow.");const fe=CybersourceActionPayload.parse(W),Fe=await runCybersource3dsFlow({...fe,_unified_cc_action_name:"",_unified_cc_pccs_id:""});_.extra_metadata.cybersource=Fe}const oe=N.response.headers?.["op-should-use-new-flow"]!=="true";!x&&!W?oe?(log__$8("├ Using stripe 3DS flow"),await stripeCC3DSFlow(parseStripe3DSNextActionMetadata(B))):(log__$8("├ Using common 3DS flow"),await commonCC3DSFlow(B,S.baseUrl)):log__$8("├ Pre-start 3DS is successful, other 3DS flows will be skipped.");const te=B.cc_pm_id;if(M.mode==="setup"){log__$8(`├ Confirming payment flow [cc_pm_id: ${te}]`);const fe=await confirmPaymentFlow(R,{secure_token:M.token,existing_cc_pm_id:te});log__$8("├ Confirm payment flow result received Result:",fe);const Fe=parseConfirmPaymentFlowResponse(fe);return log__$8(`╰ Setup completed successfully [PM ID: ${Fe.payment_method_id}]`),{mode:"setup",result:Fe}}else{log__$8(`├ Checking out after 3DS flow [Flow: ${oe?"legacy":"new"}]`);const fe=await checkoutCardElements(R,{..._,existing_cc_pm_id:te,do_not_use_legacy_cc_flow:oe});return log__$8("╰ Checkout completed successfully."),{mode:"checkout",result:fe}}}throw err__$9("╰ Error checking out card info in CDE"),err__$9(N),N}}),parseStripe3DSNextActionMetadata=S=>{const T=S.required_user_actions.find(A=>A.type==="stripe_3ds");if(!T)throw new Error("No stripe 3DS action found");return Stripe3DSNextActionMetadata.parse(T)},common3DSActionTypes=["airwallex_payment_consent","adyen"],parseCommon3DSNextActionMetadata=S=>{const T=S.find(A=>common3DSActionTypes.includes(A.type));if(!T)throw new Error("No common 3DS action found");return Common3DSNextActionMetadata.parse(T)},commonCC3DSFlow=async(S,T)=>{const A=parseCommon3DSNextActionMetadata(S.required_user_actions);if(A.redirect_url==="3DS_COMPLETE"){log__$8("├ 3DS flow completed successfully"),track("3ds_complete");return}log__$8(`├ Using common 3DS flow [URL: ${A.redirect_url}]`),track("3ds_redirect",{...A});const{status:O}=await start3dsVerification({url:A.redirect_url,baseUrl:T});if(log__$8(`╰ 3DS verification completed [Status: ${O}]`),O===ThreeDSStatus.CANCELLED)throw track("3ds_cancelled"),new Error("3DS verification cancelled");if(O===ThreeDSStatus.FAILURE)throw track("3ds_failure"),new Error("3DS verification failed");track("common_3ds_completed")},LoopCryptoCpm=objectType({processor_name:literalType("loop"),provider:literalType("crypto"),metadata:objectType({merchant_id:stringType(),entity_id:stringType(),api_token:stringType(),supported_currencies:arrayType(stringType()),environment:stringType()})}),{log__:log__$7,err__:err__$8}=createOjsFlowLoggers("loop-crypto"),initLoopFlow=addErrorCatcherForInit(async({context:S})=>{log__$7("Checking if there are any CPMs for Loop Crypto...");const T=findCpmMatchingType(S.checkoutPaymentMethods,LoopCryptoCpm);log__$7(`checkoutPaymentMethod: ${JSON.stringify(T)}`),log__$7("Starting Loop Crypto flow...");const A=await getPrefill(S.anyCdeConnection),O=A.mode==="setup",P=await preparePaymentFlow(S.anyCdeConnection,{checkout_payment_method:T}),R=await getCheckoutPreviewAmount(S.anyCdeConnection,A.token,O,void 0);if(!O&&!T.metadata.supported_currencies.includes(A.currency))throw Error(`Currency ${A.currency} not enabled for Loop. Enabled currencies: ${T.metadata.supported_currencies}`);if(!P||!P.next_action_metadata)throw Error("Failed to fetch necessary setup data for Loop");const M=P.next_action_metadata;let D=M.authorization_amount,U=M.min_authorization_amount;const C=M.allow_customer_to_choose_auth;let L;O?(L=0,D=Math.max(D,U)):(L=(R?R.amountAtom:A.amount_total_atom)*M.token_price,U=Math.max(U,L),D=Math.max(D,U));const y=L,_=v4(),N={paymentUsdAmount:y,suggestedAuthorizationUsdAmount:D,customerRefId:_,minAuthorizationUsdAmount:U,allowCustomerToChooseAuth:C},I={apiToken:T.metadata.api_token,entityId:T.metadata.entity_id,merchantId:T.metadata.merchant_id,environment:T.metadata.environment};return{isAvailable:!0,widgetProps:N,initLoopConnectProps:I}}),runLoopFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$7("Running Loop flow..."),log__$7("context",S),log__$7("checkoutPaymentMethod",T),log__$7("nonCdeFormInputs",A),log__$7("flowCallbacks",O),log__$7("customParams",P);const R=await getPrefill(S.anyCdeConnection);log__$7(`├ Validating non-CDE form fields [Mode: ${R.mode}]`);const M=validateNonCdeFormFieldsForCC(A,O.get.onValidationError,R.checkout_settings),D=S.anyCdeConnection,U=R.mode!=="setup",C=createCustomerFieldsFromForm(M,R.checkout_settings);if(!P)throw new Error("Checkout failed. Failed to properly submit form data.");if(!P.success)throw track("loop_pay_flow_failure",P),new Error("Checkout failed. Success is not true.");const L=await startPaymentFlow(S.anyCdeConnection,{checkout_payment_method:T,payment_provider:T.provider,...C,use_pay_first_flow:U,pay_first_flow_cart_info:U?{line_items:R.line_items,displayed_total_amount_atom:R.amount_total_atom,promotion_code:M[FieldName.PROMOTION_CODE]}:void 0,customer_language:detectLanguage()}),y=await confirmPaymentFlow(D,{secure_token:R.token,their_pm_id:P.paymentMethod.paymentMethodId,checkout_attempt_id:U?L.checkout_attempt_id:void 0,processor_specific_metadata:{loop_customer:P.customer,loop_payment_method:P.paymentMethod,loop_success:P.success}});if(log__$7(`Confirm result: ${y}`),R.mode==="setup"){log__$7("Doing payment setup..."),log__$7("├ Confirm payment flow result received Result:",y);const _=parseConfirmPaymentFlowResponse(y);return log__$7(`╰ Setup completed successfully [PM ID: ${_.payment_method_id}]`),{mode:"setup",result:_}}else{if(log__$7("Doing checkout..."),!y.pay_first_success_response)throw err__$8("Checkout failed, no pay-first success response:",y),new Error("Checkout failed, please try again with another payment method.");return{mode:"checkout",result:y.pay_first_success_response}}}),{log__:log__$6,err__:err__$7}=createOjsFlowLoggers("paypal"),PaypalCpm=objectType({provider:literalType("paypal"),metadata:objectType({client_id:stringType()}),processor_name:literalType("paypal")}),initPaypalFlow=async({context:S,formCallbacks:T})=>{const A=findCpmMatchingType(S.checkoutPaymentMethods,PaypalCpm);if(!A)throw new Error("PayPal CPM not found in available payment methods");return{isLoading:!1,isAvailable:!0,startFlow:()=>OjsFlows.paypal.run({context:S,checkoutPaymentMethod:A,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,initResult:void 0,customParams:{settings:{}}})}},runPaypalFlow=addBasicCheckoutCallbackHandlers(async({context:S,nonCdeFormInputs:T,checkoutPaymentMethod:A,formCallbacks:O,customParams:P})=>{try{log__$6("Running PayPal flow...");const R=S.anyCdeConnection,M=await getPrefill(R),{isAnonymous:D,useRedirectFlow:U}=P.settings??{};log__$6("Verifying CPM...");const C=PaypalCpm.parse(A);log__$6("├ Validating non-CDE form fields");const L=validateNonCdeFormFieldsForCC(T,O.get.onValidationError,{...D?generateAnonymousValues():void 0,...M.checkout_settings}),y=createCustomerFieldsFromForm(L,M.checkout_settings);log__$6(`Starting payment flow... Mode: ${M.mode}`);const _=v4(),N=!1,I={payment_provider:C.provider,checkout_payment_method:C,use_pay_first_flow:N,pay_first_flow_cart_info:N?{line_items:M.line_items,displayed_total_amount_atom:M.amount_total_atom}:void 0,processor_specific_metadata:{use_paypal_redirect_flow:U,frontend_token_for_redirect_flow:_},...y},x=new URL("/app/pre-action/start/",S.baseUrl).toString(),V=btoa(JSON.stringify(I)),k=new URLSearchParams({st:M.token,r:V}),B=`${x}?${k.toString()}`;if(U)throw log__$6("Starting redirect mode for PayPal..."),window.location.href=B,await sleep(20*1e3),new Error("Paypal flow timed out, please try again with another payment method.");const W=await startPopupWindowVerificationStrict("PayPal",R,_,B);log__$6("Paypal flow result",W);const oe=parseArgFromHref(W.href,"catt"),te=parseArgFromHref(W.href,"approval_session_id"),fe=await confirmPaymentFlow(R,{secure_token:M.token,checkout_attempt_id:N?oe:void 0,their_pm_id:N?te:void 0});return log__$6("Confirm payment flow result",fe),performSimpleCheckoutOrSetup({logPrefix:"paypal",anyCdeConnection:R,checkoutPaymentMethod:C,requiredFormFields:L,confirmResult:fe,usePayFirstFlow:N})}catch(R){throw err__$7("PayPal payment error",R),track("checkout_error",{payment_method:"paypal",error:R}),new Error(R?.message??"Unknown error")}}),{log__:log__$5,err__:err__$6}=createOjsFlowLoggers("pockyt-paypal"),PockytPaypalCpm=objectType({processor_name:literalType("pockyt"),provider:literalType("paypal")});arrayType(objectType({paypal_iframe_url:stringType(),verify_token:stringType()})).length(1);const initPockytPaypalFlow=async({context:S,formCallbacks:T})=>{const A=findCpmMatchingType(S.checkoutPaymentMethods,PockytPaypalCpm);if(!A)throw new Error("Pockyt PayPal CPM not found in available payment methods");return{isLoading:!1,isAvailable:!0,startFlow:()=>OjsFlows.pockytPaypal.run({context:S,checkoutPaymentMethod:A,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,initResult:void 0,customParams:{settings:{}}})}},runPockytPaypalFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$5("Running Pockyt Paypal flow...");const R=S.anyCdeConnection,M=await getPrefill(R);log__$5("Verifying CPM...");const D=PockytPaypalCpm.parse(T);log__$5("├ Validating non-CDE form fields");const U=P?.settings,C=validateNonCdeFormFieldsForCC(A,O.get.onValidationError,U?.defaultFieldValues),L=createCustomerFieldsFromForm(C,M.checkout_settings);log__$5(`Starting payment flow... Mode: ${M.mode}`);const y=v4(),_=M.mode!=="setup",N={payment_provider:D.provider,checkout_payment_method:D,use_pay_first_flow:_,pay_first_flow_cart_info:_?{line_items:M.line_items,displayed_total_amount_atom:M.amount_total_atom}:void 0,processor_specific_metadata:{use_paypal_redirect_flow:!!P?.settings?.useRedirectFlow,frontend_token_for_redirect_flow:y},...L},I=new URL("/app/pre-action/start/",S.baseUrl).toString(),x=btoa(JSON.stringify(N)),V=new URLSearchParams({st:M.token,r:x}),k=`${I}?${V.toString()}`;if(P?.settings?.useRedirectFlow)throw log__$5("Starting redirect mode for PayPal..."),window.location.href=k,await sleep(20*1e3),new Error("Paypal flow timed out, please try again with another payment method.");log__$5("Starting popup mode for PayPal..."),log__$5("Opening paypal iframe...");const B=await startPopupWindowVerificationStrict("PayPal",R,y,k);log__$5("Paypal flow result",B);const W=parseVaultIdFrom3dsHref(B.href),oe=parseArgFromHref(B.href,"catt");if(!oe)throw err__$6("Checkout attempt ID not found in redirect URL:",B.href),new Error("Checkout attempt ID not found in redirect URL");log__$5(`Confirming payment flow using vault ID ${W}`);const te=await confirmPaymentFlow(R,{secure_token:M.token,their_pm_id:W,checkout_attempt_id:_?oe:void 0});if(log__$5("Confirm payment flow result",te),M.mode==="setup")return{mode:"setup",result:{payment_method_id:te.payment_methods[0].id}};if(!te.pay_first_success_response)throw err__$6("Checkout failed, no pay-first success response:",te),new Error("Checkout failed, please try again with another payment method.");return{mode:"checkout",result:te.pay_first_success_response}}),OJS_STRIPE_LINK_BTN_ID="ojs-stripe-link-btn",{log__:log__$4,err__:err__$5}=createOjsFlowLoggers("stripe-link"),StripeLinkCpm=objectType({provider:literalType("stripe_link"),processor_name:literalType("stripe"),metadata:objectType({stripe_pk:stringType()})}),StripeLinkRequiredUserActions=arrayType(objectType({our_existing_pm_id:stringType()})).length(1),initStripeLinkFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{const A=S.customInitParams.stripeLink;log__$4("Checking if there are any CPMs for Stripe Link...");const O=findCpmMatchingType(S.checkoutPaymentMethods,StripeLinkCpm);log__$4("Starting stripe link flow...");const P=S.anyCdeConnection,R=await getPrefill(P),M=R.mode==="setup";log__$4("Creating stripe elements...");const D=await getCheckoutPreviewAmount(P,R.token,M,void 0),{elements:U,stripe:C}=await createStripeElements(O.metadata.stripe_pk,{mode:"setup",currency:D.currency,setup_future_usage:"off_session",paymentMethodCreation:"manual"}),L=U.create("linkAuthentication");log__$4("Creating express checkout...");const y=U.create("expressCheckout",{buttonHeight:A?.buttonHeight,paymentMethods:{amazonPay:"never",applePay:"never",googlePay:"never",paypal:"never"}}),_=(x,V)=>{let k=document.querySelector(x);k||(err__$5(`Recommanded to render a container with ${x} to avoid rendering in the body`),k=document.body);const B=document.createElement("div");k?.appendChild(B),L.mount(B);let W=!1,oe=!1;if(L.once("ready",()=>{oe=!0,A?.onAuthenticationElementReady?.()}),V){B.style.visibility="hidden",B.style.position="absolute",B.style.top="-1000px",B.style.left="-1000px",B.style.zIndex="-1",L.on("change",fe=>{W=fe.complete||!!fe.value.email,oe&&A?.onAuthenticationStatusChange?.(W)});const te=B.querySelector("iframe");te&&new MutationObserver(()=>{const et=te.offsetHeight>160;oe&&A?.onAuthenticationStatusChange?.(W||et)}).observe(te,{attributes:!0,attributeFilter:["style"]})}return L},N=x=>{y.mount(x||`#${OJS_STRIPE_LINK_BTN_ID}`)},I=()=>{y.unmount()};return A?.doNotMountOnInit?log__$4("NOT mounting stripe link button (doNotMountOnInit is true)"):(log__$4("Mounting stripe link button..."),N()),A?.silentlyCheckAuthentication&&(log__$4(`Silently mounting link authentication element at #${OJS_STRIPE_LINK_BTN_ID}...`),_(`#${OJS_STRIPE_LINK_BTN_ID}`,!0)),y.on("click",async x=>{if(log__$4("Stripe Link button clicked"),A?.overrideLinkSubmit&&!await A.overrideLinkSubmit()){log__$4("Stripe Link submit aborted by overrideLinkSubmit");return}x.resolve()}),y.on("confirm",async x=>{log__$4("Stripe Link window confirmed",x);const V=await C.createPaymentMethod({elements:U,params:{billing_details:x.billingDetails}});V.error?(err__$5("error",V.error),T.get.onCheckoutError(V.error.message??"Stripe Link unknown error")):(log__$4("paymentMethod",V.paymentMethod),OjsFlows.stripeLink.run({context:S,checkoutPaymentMethod:O,nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,customParams:{stripePM:V.paymentMethod},initResult:{isAvailable:!0}}))}),{isAvailable:!0,controller:{mountButton:N,dismountButton:I,mountLinkAuthenticationElement:x=>_(x,!1),waitForButtonToMount:async()=>await getElementByIdAsync(OJS_STRIPE_LINK_BTN_ID)}}}),runStripeLinkFlow=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P})=>{log__$4("Running Stripe Link flow...");const R=S.anyCdeConnection,M=await getPrefill(R);log__$4("Merging PM fields with form fields...");const D=fillEmptyFormInputsWithStripePM(A,P.stripePM),U=validateNonCdeFormFieldsForCC(D,O.get.onValidationError);track("billing_details_received",{...U}),log__$4("Starting payment flow...");const C=await startPaymentFlow(R,{payment_provider:T.provider,checkout_payment_method:T,their_existing_pm_id:P.stripePM.id,...createCustomerFieldsFromForm(U,M.checkout_settings),customer_language:detectLanguage()});log__$4("Start payment flow response",C);const y=StripeLinkRequiredUserActions.parse(C.required_user_actions)[0].our_existing_pm_id;if(M.mode==="setup"){log__$4("Doing payment setup...");const _=await confirmPaymentFlow(R,{secure_token:M.token,existing_cc_pm_id:y});return{mode:"setup",result:parseConfirmPaymentFlowResponse(_)}}else{log__$4("Doing checkout...");const _={secure_token:M.token,payment_input:{provider_type:T.provider},customer_email:U[FieldName.EMAIL],customer_first_name:U[FieldName.FIRST_NAME],customer_last_name:U[FieldName.LAST_NAME],customer_address:generateBillingAddressFromFields(U),customer_shipping_address:generateShippingAddressFromFields(U,M.checkout_settings),promotion_code:U[FieldName.PROMOTION_CODE],line_items:M.line_items,total_amount_atom:M.amount_total_atom,cancel_at_end:!1,checkout_payment_method:T};return{mode:"checkout",result:await performCheckout(R,_)}}}),fillEmptyFormInputsWithStripePM=(S,T)=>{const A={...S},[O,...P]=T.billing_details.name?.trim()?.split(/\s+/)??[],R=P.join(" ")||void 0;A[FieldName.EMAIL]=A[FieldName.EMAIL]||T.link?.email||T.billing_details.email||"op_unfilled@getopenpay.com",A[FieldName.ZIP_CODE]=A[FieldName.ZIP_CODE]||T.billing_details.address?.postal_code||"00000",A[FieldName.COUNTRY]=A[FieldName.COUNTRY]||T.billing_details.address?.country||"US";const M=A[FieldName.FIRST_NAME]||O||"",D=A[FieldName.LAST_NAME]||R||"";return M||D?(A[FieldName.FIRST_NAME]=M,A[FieldName.LAST_NAME]=D):(A[FieldName.FIRST_NAME]="_OP_UNKNOWN",A[FieldName.LAST_NAME]=""),log__$4("Final form inputs:",A),A},getElementByIdAsync=S=>new Promise(T=>{const A=()=>{const O=document.getElementById(S);O?T(O):requestAnimationFrame(A)};A()}),{log__:log__$3,err__:err__$4}=createOjsFlowLoggers("stripe-pr"),StripePrCpm=objectType({provider:unionType([literalType("apple_pay"),literalType("google_pay")]),processor_name:literalType("stripe"),metadata:objectType({stripe_pk:stringType()})}),initStripePrFlow=addErrorCatcherForInit(async({context:S,formCallbacks:T})=>{log__$3("Checking if there are any CPMs for Stripe PR...");const A=findCpmMatchingType(S.checkoutPaymentMethods,StripePrCpm);log__$3("Initializing Stripe PR flow...");const O=S.anyCdeConnection,P=await getPrefill(O),R=P.mode==="setup";log__$3("Getting initial preview amount");const M=await getCheckoutPreviewAmount(O,P.token,R,void 0),D=await createStripePaymentRequest(A.metadata.stripe_pk,M.amountAtom,M.currency,R);log__$3("Checking if can make payment");const U=await D.canMakePayment();if(U===null)return err__$4("canMakePayment returned null"),{isAvailable:!1,reason:"canMakePayment returned null"};log__$3("Stripe PR flow initialized successfully. Can make payment",U);const C=(L,y)=>OjsFlows.stripePR.run({context:S,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(S.checkoutPaymentMethods,L),nonCdeFormInputs:createInputsDictFromForm(S.formDiv),formCallbacks:T,customParams:{provider:L,overridePaymentRequest:y?.overridePaymentRequest},initResult:{processor:PaymentProcessor.Enum.stripe,pr:D,isAvailable:!0,availableProviders:{applePay:U.applePay,googlePay:U.googlePay},startFlow:C}});return{processor:PaymentProcessor.Enum.stripe,isAvailable:!0,pr:D,availableProviders:{applePay:U.applePay,googlePay:U.googlePay},startFlow:C}}),runStripePrFlow$1=addBasicCheckoutCallbackHandlers(async({context:S,checkoutPaymentMethod:T,nonCdeFormInputs:A,formCallbacks:O,customParams:P,initResult:R})=>{if(log__$3("Running Stripe PR flow..."),P.provider!==T.provider)throw new Error(`Provider mismatch. Expected ${P.provider}, got ${T.provider}`);const M=S.anyCdeConnection,D=R.pr;if(P?.overridePaymentRequest){const I=P.overridePaymentRequest;log__$3("Overriding PR amount with",I);const x=typeof I.applePayPaymentRequest=="function"?I.applePayPaymentRequest({}):I.applePayPaymentRequest;updatePrWithAmount(D,I.amount,I.pending,x,I.label)}log__$3("Showing PR dialog..."),D.show();const U=await waitForUserToAddPaymentMethod(D);log__$3("Stripe PM added event:",U),log__$3("Merging PM fields with form fields...");const C=fillEmptyFormInputsWithStripePm(A,U),L=validateNonCdeFormFieldsForCC(C,O.get.onValidationError);track("billing_details_received",{...L}),log__$3("PR dialog finished. Starting payment flow...",L);const y=await startPaymentFlowForPR(M,{fields:L,checkoutPaymentMethod:T}),_=parsePRNextActionMetadata(y);log__$3("Confirming PR with Stripe..."),await confirmStripePrPM(_,U);const N=await getPrefill(M);if(N.mode==="setup"){log__$3("Confirming payment flow for setup...");const I=await confirmPaymentFlow(M,{secure_token:N.token});return{mode:"setup",result:parseConfirmPaymentFlowResponse(I)}}else{log__$3("Performing checkout...");const I={secure_token:N.token,payment_input:{provider_type:T.provider},customer_first_name:L[FieldName.FIRST_NAME],customer_last_name:L[FieldName.LAST_NAME],customer_email:L[FieldName.EMAIL],customer_address:generateBillingAddressFromFields(L),customer_shipping_address:generateShippingAddressFromFields(L,N.checkout_settings),promotion_code:L[FieldName.PROMOTION_CODE],line_items:N.line_items,total_amount_atom:N.amount_total_atom,cancel_at_end:!1,checkout_payment_method:T};return{mode:"checkout",result:await performCheckout(M,I)}}}),fillEmptyFormInputsWithStripePm=(S,T)=>{const A={...S},[O,...P]=T.payerName?.trim()?.split(/\s+/)??[],R=P.join(" ")||void 0,M=T.paymentMethod?.billing_details?.address,D=T.shippingAddress;A[FieldName.EMAIL]=A[FieldName.EMAIL]||T.payerEmail||"op_unfilled@getopenpay.com",A[FieldName.ZIP_CODE]=A[FieldName.ZIP_CODE]||M?.postal_code||D?.postalCode||"00000",A[FieldName.COUNTRY]=A[FieldName.COUNTRY]||M?.country||D?.country||"US";const U=A[FieldName.FIRST_NAME]||O||"",C=A[FieldName.LAST_NAME]||R||"";return U||C?(A[FieldName.FIRST_NAME]=U,A[FieldName.LAST_NAME]=C):(A[FieldName.FIRST_NAME]="_OP_UNKNOWN",A[FieldName.LAST_NAME]=""),log__$3("Final form inputs:",A),A},updatePrWithAmount=(S,T,A,O,P)=>{S.update({total:T?{amount:T.amountAtom,label:P??"Total",pending:A}:void 0,currency:T?.currency,applePay:O})},parsePRNextActionMetadata=S=>{if(S.required_user_actions.length!==1)throw new Error(`Error occurred.
|
|
215
|
+
Details: got ${S.required_user_actions.length} required user actions`);return PaymentRequestNextActionMetadata.parse(S.required_user_actions[0])},findCheckoutPaymentMethodStrict=(S,T,A)=>{const O=S.filter(P=>{const R=A===void 0?!0:P.processor_name===A,M=P.provider===T;return R&&M});if(O.length===0)throw console.warn("CPMs list",S),new Error(`No CPMs found with provider '${T}' and processor '${A}'`);return O.length!==1&&(console.warn("CPMs list",S),console.warn(`More than one CPM found with provider '${T}' and processor '${A}'`),track("more_than_one_cpm_found",{provider:T,processor:A,cpms:S})),O[0]},OjsFlows={commonCC:{init:async()=>{},run:runCommonCcFlow},stripePR:{init:initStripePrFlow,run:runStripePrFlow$1},stripeLink:{init:initStripeLinkFlow,run:runStripeLinkFlow},pockytPaypal:{init:initPockytPaypalFlow,run:runPockytPaypalFlow},paypal:{init:initPaypalFlow,run:runPaypalFlow},airwallexGooglePay:{init:initAirwallexGooglePayFlow,run:runAirwallexGooglePayFlow},airwallexApplePay:{init:initAirwallexApplePayFlow,run:runAirwallexApplePayFlow},airwallexACH:{init:async()=>{},run:runAirwallexACHFlow},airwallexEFT:{init:async()=>{},run:runAirwallexEFTFlow},airwallexBACS:{init:async()=>{},run:runAirwallexBACSFlow},airwallexSEPA:{init:async()=>{},run:runAirwallexSEPAFlow},loopCrypto:{init:initLoopFlow,run:runLoopFlow},authorizeNetApplePay:{init:initAuthnetApplePayFlow,run:runAuthnetApplePayFlow},authorizeNetGooglePay:{init:initAuthnetGooglePayFlow,run:runAuthnetGooglePayFlow},adyenGooglePay:{init:initAdyenGooglePayFlow,run:runAdyenGooglePayFlow},adyenApplePay:{init:initAdyenApplePayFlow,run:runAdyenApplePayFlow}},{log__:log__$2,err__:err__$3}=createOjsFlowLoggers("init-flows"),createInitFlowPublisher=(S,T)=>{const A=new LoadedOncePublisher;return{publisher:A,initialize:async O=>{try{if(A.current.isSuccess)throw new Error("This flow has already been initialized.");const P=await T(O);log__$2(`✔ ${S} flow initialized successfully. Result:`,P),A.set(P)}catch(P){err__$3(`𝙭 ${S} flow initialization failed. Error:`,getErrorMessage(P),"Details:",P),A.throw(P,getErrorMessage(P))}}}},startAllInitFlows=async(S,T,A)=>{await Promise.all(Object.values(S).map(O=>O.initialize({context:T,formCallbacks:A})))},createInitFlowsPublishers=()=>({stripePR:createInitFlowPublisher("Stripe PR",OjsFlows.stripePR.init),stripeLink:createInitFlowPublisher("Stripe Link",OjsFlows.stripeLink.init),airwallexGooglePay:createInitFlowPublisher("Airwallex GooglePay",OjsFlows.airwallexGooglePay.init),airwallexApplePay:createInitFlowPublisher("Airwallex ApplePay",OjsFlows.airwallexApplePay.init),loop:createInitFlowPublisher("Loop",OjsFlows.loopCrypto.init),paypal:createInitFlowPublisher("PayPal",OjsFlows.paypal.init),pockytPaypal:createInitFlowPublisher("Pockyt PayPal",OjsFlows.pockytPaypal.init),authorizeNetGooglePay:createInitFlowPublisher("Authnet GooglePay",OjsFlows.authorizeNetGooglePay.init),authorizeNetApplePay:createInitFlowPublisher("Authnet ApplePay",OjsFlows.authorizeNetApplePay.init),adyenGooglePay:createInitFlowPublisher("Adyen GooglePay",OjsFlows.adyenGooglePay.init),adyenApplePay:createInitFlowPublisher("Adyen ApplePay",OjsFlows.adyenApplePay.init)}),{err__:err__$2}=createOjsFlowLoggers("form-callbacks"),OptionalFn=functionType().optional(),ZodFormCallbacks=objectType({onFocus:OptionalFn,onBlur:OptionalFn,onChange:OptionalFn,onLoad:OptionalFn,onLoadError:OptionalFn,onValidationError:OptionalFn,onCheckoutStarted:OptionalFn,onCheckoutSuccess:OptionalFn,onSetupPaymentMethodSuccess:OptionalFn,onCheckoutError:OptionalFn,onPaymentRequestLoad:OptionalFn}),Ye=class Ye{constructor(){this.setCallbacks=T=>{this._callbacks=Ye.createEmptyCallbacks(),Object.entries(T).forEach(([A,O])=>{const P=makeCallbackSafe(A,O??Ye.NOOP,err__$2);this._callbacks[A]=P})},this._callbacks=Ye.createEmptyCallbacks()}get get(){return{...this._callbacks}}};Ye.NOOP=()=>{},Ye.createEmptyCallbacks=()=>{const T={};return Object.keys(ZodFormCallbacks.keyof().enum).forEach(A=>{T[A]=Ye.NOOP}),T},Ye.fromObject=T=>{const A=new Ye;return A.setCallbacks(ZodFormCallbacks.parse(T)),A};let FormCallbacks=Ye;function detectFramework(){try{const S=getWindowSafe(),T=S;if(T?.next||T?.__NEXT_DATA__||document.querySelector("#__next"))return"nextjs";if(S?.__NUXT__||document.querySelector("#__nuxt"))return"nuxt";if(Object.keys(document).find(P=>P.includes("react"))||Array.from(document.body.querySelectorAll("body > *")).find(P=>P._reactRootContainer))return"react";const O=S;return O?.Vue||O?.__VUE__?"vue":document.querySelector("[ng-version]")?"angular":"vanilla"}catch{return"unknown"}}function getFrameworkVersion(S){try{switch(S){case"react":return null;case"nextjs":{const A=getWindowSafe();return A?.next?.version||A?.__NEXT_DATA__?.buildId||null}case"nuxt":return null;case"vue":return null;case"angular":{const A=getWindowSafe()?.document?.querySelector("[ng-version]");return A?A.getAttribute("ng-version"):null}default:return null}}catch{return null}}function getFrameworkInfo(){const S=detectFramework(),T=getFrameworkVersion(S);return{framework:S,version:T}}const getFraudMetadata=()=>{const S=window&&window.screen?window.screen.height:null,T=window&&window.screen?window.screen.width:null,A=window&&window.screen?window.screen.colorDepth:null,O=window&&window.navigator?window.navigator.javaEnabled():!1,P=window&&window.navigator?window.navigator.userAgent:null,R="text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";let M=null;window&&window.navigator&&(M=window.navigator.language?window.navigator.language:window.navigator.browserLanguage);const D=new Date().getTimezoneOffset();return{color_depth:A,java_enabled:O,javascript_enabled:!0,language:M,screen_height:S,screen_width:T,time_zone_offset:D,user_agent:P,accept_header:R}};var SubmitMethods=(S=>(S.card="card",S.pockytPaypal="pockyt-paypal",S.applePay="apple-pay",S.googlePay="google-pay",S.loopCrypto="loop-crypto",S.paypal="paypal",S.stripeLink="stripe-link",S.airwallexGooglePay="airwallex-google-pay",S.airwallexApplePay="airwallex-apple-pay",S.authorizenetGooglePay="authorizenet-google-pay",S.authorizenetApplePay="authorizenet-apple-pay",S.adyenGooglePay="adyen-google-pay",S.adyenApplePay="adyen-apple-pay",S.airwallexACH="airwallex-ach",S.airwallexEFT="airwallex-eft",S.airwallexBACS="airwallex-bacs",S.airwallexSEPA="airwallex-sepa",S))(SubmitMethods||{});nativeEnumType(SubmitMethods);var PaymentProviderType=(S=>(S.ACH="ach",S.EFT="eft",S.BACS="bacs",S.SEPA="sepa",S.APPLE_PAY="apple_pay",S.CREDIT_CARD="credit_card",S.GOOGLE_PAY="google_pay",S.STRIPE_LINK="stripe_link",S.CRYPTO="crypto",S.PAYPAL="paypal",S))(PaymentProviderType||{});const getApplePayProcessors=S=>{const T=[S.airwallexApplePay,S.authorizeNetApplePay,S.adyenApplePay],A=[];T.forEach(P=>{const R=P.publisher.getValueIfLoadedElse(null);R?.isAvailable&&A.push(R)});const O=S.stripePR.publisher.getValueIfLoadedElse(null);return O?.isAvailable&&O.availableProviders.applePay&&A.push({isAvailable:!0,isLoading:!1,processor:PaymentProcessor.Enum.stripe,startFlow:R=>O.startFlow("apple_pay",{overridePaymentRequest:R?.overridePaymentRequest})}),{processors:A.map(P=>P.processor),isAvailable:A.length>0,isLoading:!1,startFlow:P=>startApplePayFlow(A,P)}},getGooglePayProcessors=S=>{const T=[S.airwallexGooglePay,S.authorizeNetGooglePay,S.adyenGooglePay],A=[];T.forEach(P=>{const R=P.publisher.getValueIfLoadedElse(null);R?.isAvailable&&A.push(R)});const O=S.stripePR.publisher.getValueIfLoadedElse(null);return O?.isAvailable&&O.availableProviders.googlePay&&A.push({isAvailable:!0,isLoading:!1,processor:PaymentProcessor.Enum.stripe,startFlow:R=>O.startFlow("google_pay",{overridePaymentRequest:R?.overridePaymentRequest})}),{processors:A.map(P=>P.processor),isAvailable:A.length>0,isLoading:!1,startFlow:P=>startGooglePayFlow(A,P)}},startApplePayFlow=(S,T)=>{if(T?.processor){const O=S.find(P=>P.processor===T.processor);if(O?.isAvailable)return O.startFlow(T);throw new Error(`Specified Apple Pay processor ${T.processor} is not available`)}const A=S.find(O=>O.isAvailable);if(A)return A.startFlow(T);throw new Error("No available Apple Pay processor found")},startGooglePayFlow=(S,T)=>{if(T?.processor){const O=S.find(P=>P.processor===T.processor);if(O?.isAvailable)return O.startFlow(T);throw new Error(`Specified Google Pay processor ${T.processor} is not available`)}const A=S.find(O=>O.isAvailable);if(A)return A.startFlow(T);throw new Error("No available Google Pay processor found")},convertStylesToQueryString=S=>JSON.stringify(S),{log__:log__$1,err__:err__$1}=createOjsFlowLoggers("tracer"),initTracerSafe=(S,T)=>{try{initTracerUnsafe(S,T)}catch(A){err__$1(`Error initializing tracer: ${A}`)}};let globalTracer;const initTracerUnsafe=async(S,T)=>{if(typeof window>"u")return;const A=await Promise.resolve().then(()=>index$5),{ConsoleSpanExporter:O,SimpleSpanProcessor:P,WebTracerProvider:R}=A,M=await Promise.resolve().then(()=>index$3),{FetchInstrumentation:D}=M,U=await Promise.resolve().then(()=>index$2),{ZoneContextManager:C}=U,L=await Promise.resolve().then(()=>index$4),{registerInstrumentations:y}=L,_=await Promise.resolve().then(()=>index$7),{Resource:N}=_,I=await Promise.resolve().then(()=>detectResources),{detectResourcesSync:x}=I,V=await Promise.resolve().then(()=>index$1),{OTLPTraceExporter:k}=V,B=await Promise.resolve().then(()=>index),{B3Propagator:W,B3InjectEncoding:oe}=B,te=await Promise.resolve().then(()=>index$6),{BatchSpanProcessor:fe}=te;log__$1(`Initializing tracer with version ${S} and baseUrl ${T}`);const Fe=getCollectorUrl(T);log__$1(`Using collector URL ${Fe}`);const et=new k({url:Fe}),tt={"service.version":S,"service.name":"ojs"};return new R({resource:new N(tt).merge(x()),spanProcessors:[new P(new O),new fe(et,{scheduledDelayMillis:500})]}).register({contextManager:new C,propagator:new W({injectEncoding:oe.MULTI_HEADER})}),y({instrumentations:[new D({propagateTraceHeaderCorsUrls:[/.*/],ignoreUrls:[/^https:\/\/(.*\.)?adyen\.com/,/^https:\/\/(.*\.)?loopcrypto\.xyz/]})]}),globalTracer=trace.getTracer("openpay-js"),log__$1("Tracer initialized"),globalTracer},getCollectorUrl=S=>{const T=new URL(S).hostname;return T==="cde.openpaystaging.com"?"https://otel.openpaysandbox.com/v1/traces":T==="cde.getopenpay.com"?"https://otel.getopenpay.com/v1/traces":"http://localhost:4319/v1/traces"};class OpenPayFormEventHandler{constructor(T,A,O,P){this.handleMessage=R=>{if(!R.source){console.warn("[OJS] No source found");return}if(getCleanOrigin(R.origin)!==getCleanOrigin(this.baseUrl)||typeof R.data=="object"&&R.data.penpal||typeof R.data=="object"&&R.data.source&&R.data.source==="react-devtools-bridge")return;let M=null;try{M=parseEventPayload(JSON.parse(R.data))}catch{return}if(!this.validateEvent(M))return;const{elementId:U,payload:C}=M,L=C.type;switch(L){case"LAYOUT":this.internalCallbacks.setFormHeight(C.height?`${C.height}px`:"100%");break;case"FOCUS":this.formCallbacks.get.onFocus(U,C.elementType);break;case"BLUR":this.formCallbacks.get.onBlur(U,C.elementType,{obfuscatedValue:C.obfuscatedValue});break;case"CHANGE":this.formCallbacks.get.onChange(U,C.elementType,C.errors);break;case"LOADED":this.eventTargets[U]=R.source,this.internalCallbacks.onCdeLoaded(C);break;case"LOAD_ERROR":this.internalCallbacks.onCdeLoadError(C.message);break;case"VALIDATION_ERROR":this.formCallbacks.get.onValidationError(C.elementType,C.errors,U);break;default:console.warn("[form] Unhandled event type:",L)}},this.validateEvent=R=>R.formId!==this.formId||!R.elementId?(console.log("[OJS] formId",this.formId,R.formId),console.warn("[form] Ignoring unknown event:",R),!1):this.nonces.has(R.nonce)?(console.warn("[form] Ignoring duplicate event:",R),!1):(this.nonces.add(R.nonce),!0),this.eventTargets={},this.nonces=new Set,this.formId=T,this.baseUrl=A,this.formCallbacks=O,this.internalCallbacks=P}}const getCleanOrigin=S=>new URL(S).origin;async function createConnection(S,T){const O=await connectToChild({iframe:S,debug:!1,childOrigin:T}).promise,P=await checkIfValidCdeConnectionObject(O);if(!isResultValid(O,P))throw new Error("Got invalid CDE connection object");return O}class ConnectionManager{constructor(){this.connections=new Map}addConnection(T,A){this.connections.set(T,A)}getConnection(){const T=this.connections.values().next().value;if(!T)throw new Error("Connection not found");return T}getAllConnections(){return this.connections}}const setupPaymentRequestHandlers=(S,T,A)=>{const{stripePR:O}=S;O.publisher.subscribe(P=>{if(P.isSuccess){const R=P.loadedValue,M=R.isAvailable&&R.availableProviders.applePay,D=R.isAvailable&&R.availableProviders.googlePay,U={apple_pay:{isLoading:!1,isAvailable:M,startFlow:async C=>{M&&runStripePrFlow("apple_pay",R,T,A,C)}},google_pay:{isLoading:!1,isAvailable:D,startFlow:async C=>{D&&runStripePrFlow("google_pay",R,T,A,C)}}};A.get.onPaymentRequestLoad(U)}})},runStripePrFlow=(S,T,A,O,P)=>OjsFlows.stripePR.run({context:A,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(A.checkoutPaymentMethods,S),nonCdeFormInputs:createInputsDictFromForm(A.formDiv),formCallbacks:O,customParams:{provider:S,overridePaymentRequest:P?.overridePaymentRequest},initResult:T}),GENERIC_CONN_ERR="The secure form failed to load properly. Please check your internet connection, or try again later.",{log__,err__}=createOjsFlowLoggers("op-form"),$e=class $e{constructor(T){this.isDestroyed=!1,this.cdeLoadEvent=new LoadedOncePublisher,this.anyCdeConn=new LoadedOncePublisher,this.context=new LoadedOncePublisher,this.initFlows=createInitFlowsPublishers(),this.isSubmitting=!1,this.startFormInit=async()=>{const P=trace.getTracer("openpay-js"),R=P.startSpan("form.initialize",{kind:SpanKind.CLIENT,attributes:{"ojs.checkoutSecureToken":this.config.checkoutSecureToken,"ojs.deviceToken":this.deviceToken,"ojs.formId":this.formId,"ojs.version":this.ojsVersion,"ojs.release_version":this.ojsReleaseVersion,"ojs.base_url":this.baseUrl,"ojs.referrer":this.referrer}});return context.with(trace.setSpan(context.active(),R),async()=>{try{const M=this.createElement(ElementTypeEnum.CDE_BRIDGE);M.node.id="__op_internal_cde_bridge",M.node.ariaHidden="true",Object.assign(M.node.style,{border:"none",margin:"0px",padding:"0px",width:"1px",height:"1px",overflow:"hidden",visibility:"hidden",position:"fixed",pointerEvents:"none",userSelect:"none"}),M.mount("body"),log__("CDE bridge element mounted"),log__("Initializing OpenPay form:"),log__("├ Waiting for CDE load event...");const D=await this.cdeLoadEvent.waitForLoad({timeoutSec:120,timeoutErrMsg:GENERIC_CONN_ERR});log__("├ CDE load event received"),R?.addEvent("waiting_for_cde_connection"),log__("├ Waiting for CDE connection...");const U=P?.startSpan("cde.connect",void 0,context.active()),C=await this.anyCdeConn.waitForLoad({timeoutSec:120,timeoutErrMsg:GENERIC_CONN_ERR});U?.end(),R?.addEvent("cde_connected"),log__("├ CDE connection received"),await setUserDeviceToken(C,this.deviceToken),log__("├ Creating OJS context, setting up handlers...");const L=$e.buildOjsFlowContext(this.config,D,C,this.getFormDiv());this.context.set(L),setupPaymentRequestHandlers(this.initFlows,L,this.formCallbacks),log__("├ Starting OJS init flows..."),await startAllInitFlows(this.initFlows,L,this.formCallbacks),this.formCallbacks.get.onLoad(D.totalAmountAtoms,D.currency),log__("╰ Done initializing OJS flows."),R?.setStatus({code:SpanStatusCode.OK}),track("form_loaded")}catch(M){const D=getErrorMessage(M);R?.setStatus({code:SpanStatusCode.ERROR,message:D}),err__("╰ Error initializing OP form:",D),track("form_init_error",{error:D}),this.formCallbacks.get.onLoadError(D)}finally{R?.end()}})},this.setFormHeight=P=>{this.formProperties.height=P,this.registeredElements&&Object.values(this.registeredElements).forEach(R=>{!R||R.type===ElementTypeEnum.CDE_BRIDGE||(R.node.style.height=P)})},this.onCdeLoaded=P=>{this.cdeLoadEvent.current.isSuccess||(this.cdeLoadEvent.set(P),track("cde_loaded"))},this.onCdeLoadError=P=>{this.cdeLoadEvent.current.isSuccess||(this.cdeLoadEvent.throw(new Error(P),P),track("cde_load_error",{error:P}))},this.createElement=(P,R={})=>{if(this.checkValidFormInstance("createElement"),!this.config)throw new Error("OpenPay form not initialized");const M=_ElementTypeEnumZod.parse(P),D=document.createElement("iframe"),U=this.buildQueryString(R);D.name=`${M}-element`;const C=new URL(`/app/v1/${D.name}/`,this.config.baseUrl);return C.search=U.toString(),D.src=C.href,D.style.border="none",D.style.width="100%",this.registerIframe(M,D)},this.registerIframe=(P,R)=>{const M={type:P,node:R,mount:D=>{document.querySelector(D)?.appendChild(R),track("element_mounted",{element_type:P})}};return this.connectToElement({type:M.type,node:M.node}),this.registeredElements||(this.registeredElements={[ElementTypeEnum.CARD]:void 0,[ElementTypeEnum.CARD_NUMBER]:void 0,[ElementTypeEnum.CARD_EXPIRY]:void 0,[ElementTypeEnum.CARD_CVC]:void 0,[ElementTypeEnum.CDE_BRIDGE]:void 0}),this.registeredElements[P]=M,M},this.buildQueryString=P=>{const R=new URLSearchParams;return R.append("referer",this.referrer),R.append("formId",this.formId),P.styles&&R.append("styles",convertStylesToQueryString(P.styles)),R.append("secureToken",this.config.checkoutSecureToken),R},this.connectToElement=P=>createTrackingSpan({spanName:"connect_to_element",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},async()=>{const R=await createConnection(P.node);R.tracingContext={checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},this.connectionManager.addConnection(P.type,R),!this.anyCdeConn.current.isSuccess&&P.type===ElementTypeEnum.CDE_BRIDGE&&this.anyCdeConn.set(R)}).catch(R=>err__("[FORM] Error connecting to CDE iframe",R)),this.getFormDiv=()=>document.querySelector(this.formTarget)??document.body,this.submitCard=async P=>{if(this.isSubmitting){err__("Form is already submitting. Please wait for the submission to finish before submitting again.");return}this.isSubmitting=!0;try{const R=await createTrackingSpan({spanName:"submit_card",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer,paymentRouteId:P?.paymentRouteId},async()=>{track("submit_card",{...P}),this.checkValidFormInstance("submitCard");const M=this.context.getValueIfLoadedElse(null);if(!M)throw new Error("Please wait for the form to finish loading before submitting.");await OjsFlows.commonCC.run({context:M,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(M.checkoutPaymentMethods,"credit_card"),nonCdeFormInputs:createInputsDictFromForm(M.formDiv),formCallbacks:this.formCallbacks,customParams:{currentCdeConnections:this.connectionManager.getAllConnections(),paymentRouteId:P?.paymentRouteId},initResult:void 0})});return this.isSubmitting=!1,R}catch(R){throw this.isSubmitting=!1,R}},this.getAvailablePaymentMethods=()=>createTrackingSpan({spanName:"get_available_payment_methods",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},()=>{this.checkValidFormInstance("getAvailablePaymentMethods");const P=this.context.getValueIfLoadedElse(null);if(!P)throw new Error("Please wait for the form to finish loading before getting available payment methods.");const{processors:R,isAvailable:M}=getApplePayProcessors(this.initFlows),{processors:D,isAvailable:U}=getGooglePayProcessors(this.initFlows),L=this.initFlows.paypal.publisher.getValueIfLoadedElse(null)?.isAvailable??!1,y=P.checkoutPaymentMethods.some(W=>W.processor_name==="pockyt"&&W.provider==="paypal"),N=this.initFlows.loop.publisher.getValueIfLoadedElse(null)?.isAvailable??!1,I=this.initFlows.stripeLink.publisher.getValueIfLoadedElse(null),x=I?.isAvailable??!1,V=[{name:SubmitMethods.card,processors:[],isAvailable:!0},{name:SubmitMethods.applePay,processors:R,isAvailable:M},{name:SubmitMethods.googlePay,processors:D,isAvailable:U},{name:SubmitMethods.paypal,processors:L?[PaymentProcessor.Enum.paypal]:[],isAvailable:L},{name:SubmitMethods.pockytPaypal,processors:y?[PaymentProcessor.Enum.pockyt]:[],isAvailable:y},{name:SubmitMethods.loopCrypto,processors:N?[PaymentProcessor.Enum.loop]:[],isAvailable:N},{name:SubmitMethods.stripeLink,processors:[PaymentProcessor.Enum.stripe],isAvailable:x,controller:I?.isAvailable?I.controller:void 0}],k={paypal:SubmitMethods.paypal,airwallexGooglePay:SubmitMethods.airwallexGooglePay,airwallexApplePay:SubmitMethods.airwallexApplePay,authorizeNetGooglePay:SubmitMethods.authorizenetGooglePay,authorizeNetApplePay:SubmitMethods.authorizenetApplePay,adyenGooglePay:SubmitMethods.adyenGooglePay,adyenApplePay:SubmitMethods.adyenApplePay};return[...Object.entries(this.initFlows).map(([W,oe])=>{const te=oe.publisher.getValueIfLoadedElse(null);return{name:k[W]??W,processors:[],isAvailable:te?.isAvailable??!1}}),...V]}),this.generalSubmit=async(P,R)=>{if(this.isSubmitting){err__("Form is already submitting. Please wait for the submission to finish before submitting again.");return}this.isSubmitting=!0;try{const M=await createTrackingSpan({spanName:"general_form_submit",checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,formId:this.formId,version:this.ojsVersion,releaseVersion:this.ojsReleaseVersion,baseUrl:this.baseUrl,referrer:this.referrer},async()=>{track("general_form_submit",{method:P,settings:R}),this.checkValidFormInstance("generalSubmit");const D=this.context.getValueIfLoadedElse(null);if(!D)throw new Error("Please wait for the form to finish loading before submitting.");switch(P){case SubmitMethods.card:return this.submitCard(R);case SubmitMethods.pockytPaypal:return OjsFlows.pockytPaypal.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.PAYPAL,"pockyt"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:{settings:R},initResult:void 0});case SubmitMethods.paypal:return OjsFlows.paypal.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.PAYPAL,"paypal"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),initResult:void 0,customParams:{settings:R},formCallbacks:this.formCallbacks});case SubmitMethods.loopCrypto:return OjsFlows.loopCrypto.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,"crypto","loop"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.applePay:{const{startFlow:U}=getApplePayProcessors(this.initFlows);return U(R)}case SubmitMethods.googlePay:{const{startFlow:U}=getGooglePayProcessors(this.initFlows);return U(R)}case SubmitMethods.airwallexGooglePay:{const U=this.initFlows.airwallexGooglePay.publisher.getValueIfLoadedElse(null);if(!U){err__("airwallex-google-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.airwallexApplePay:{const U=this.initFlows.airwallexApplePay.publisher.getValueIfLoadedElse(null);if(!U){err__("airwallex-apple-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.authorizenetGooglePay:{const U=this.initFlows.authorizeNetGooglePay.publisher.getValueIfLoadedElse(null);if(!U){err__("authorize-net-google-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.authorizenetApplePay:{const U=this.initFlows.authorizeNetApplePay.publisher.getValueIfLoadedElse(null);if(!U){err__("authorize-net-apple-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.adyenGooglePay:{const U=this.initFlows.adyenGooglePay.publisher.getValueIfLoadedElse(null);if(!U){err__("adyen-google-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.adyenApplePay:{const U=this.initFlows.adyenApplePay.publisher.getValueIfLoadedElse(null);if(!U){err__("adyen-apple-pay is not available. Please check the availability using 'getAvailablePaymentMethods()'");return}return U.startFlow(R)}case SubmitMethods.airwallexACH:return OjsFlows.airwallexACH.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.ACH,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.airwallexEFT:return OjsFlows.airwallexEFT.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.EFT,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.airwallexBACS:return OjsFlows.airwallexBACS.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.BACS,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.airwallexSEPA:return OjsFlows.airwallexSEPA.run({context:D,checkoutPaymentMethod:findCheckoutPaymentMethodStrict(D.checkoutPaymentMethods,PaymentProviderType.SEPA,"airwallex"),nonCdeFormInputs:createInputsDictFromForm(D.formDiv),formCallbacks:this.formCallbacks,customParams:R,initResult:void 0});case SubmitMethods.stripeLink:{err__("StripeLink cannot be submitted manually. Please mount the button properly and if user completed the payment flow via StripeLink button, the payment will be submitted automatically.");return}default:assertNever(P)}});return this.isSubmitting=!1,M}catch(M){throw this.isSubmitting=!1,M}},this.submitWith=this.generalSubmit,this.submit=this.submitCard,this.destroy=()=>{log__("Destroying OpenPay form..."),this.checkValidFormInstance("destroy"),this.isDestroyed=!0;for(const P of Object.values(this.registeredElements??{}))P&&P.node.remove();getWindowSafe()?.removeEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler)),detachAnalyticsEventListeners(),this.registeredElements=null,delete window.ojs,track("form_destroyed")},this.updateCallbacks=P=>{this.formCallbacks.setCallbacks(P)},$e.assignAsSingleton(this),this.ojsVersion="0.5.17",this.ojsReleaseVersion="0.5.17",this.baseUrl=T.baseUrl??"https://cde.getopenpay.com",this.config={...T,baseUrl:this.baseUrl},this.formCallbacks=FormCallbacks.fromObject(T),this.registeredElements=null,this.formId=`opjs-form-${v4()}`,this.referrer=window.location.origin,this.formTarget=T.formTarget??"body",this.formProperties={height:"1px"},this.connectionManager=new ConnectionManager,this.deviceToken=getDeviceToken(),attachAnalyticsEventListeners();const{framework:A,version:O}=getFrameworkInfo();getCurrentEnv(this.baseUrl).then(P=>{if(!metricsPublisher.current.isSuccess){const R={checkoutSecureToken:this.config.checkoutSecureToken,deviceToken:this.deviceToken,environment:P,framework:A,frameworkVersion:O,ojsVersion:this.ojsVersion,ojsReleaseVersion:this.ojsReleaseVersion,referrer:this.referrer,baseUrl:this.baseUrl};metricsPublisher.set(R)}}),track("form_init"),console.log("OJS VERSION",this.ojsVersion),T.allowTracing===!0&&initTracerSafe(this.ojsVersion,this.baseUrl),this.eventHandler=new OpenPayFormEventHandler(this.formId,this.baseUrl,this.formCallbacks,{setFormHeight:this.setFormHeight,onCdeLoaded:this.onCdeLoaded,onCdeLoadError:this.onCdeLoadError}),getWindowSafe()?.addEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler)),this.startFormInit()}get checkoutSecureToken(){return this.config.checkoutSecureToken}checkValidFormInstance(T="unknown"){const A=$e.getInstance(),O={thisFormId:this.formId,currentFormId:A?.formId||"no-current-instance",isDestroyed:this.isDestroyed,checkoutToken:this.config.checkoutSecureToken.substring(0,10)+"..."},P=`
|
|
216
216
|
[Warning] Invalid form instance detected.
|
|
217
217
|
It looks like you are still using an old instance that has been destroyed.
|
|
218
218
|
Please make sure you are using the latest instance of the form and cleanup event listeners.
|
|
@@ -236,9 +236,9 @@ Details: got ${S.required_user_actions.length} required user actions`);return Pa
|
|
|
236
236
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
237
237
|
See the License for the specific language governing permissions and
|
|
238
238
|
limitations under the License.
|
|
239
|
-
*//*! lifecycle.mjs v0.1.1 */let e;try{new EventTarget,e=!0}catch(S){e=!1}class t{constructor(){this.e={}}addEventListener(T,A,O=!1){this.t(T).push(A)}removeEventListener(T,A,O=!1){const P=this.t(T),R=P.indexOf(A);R>-1&&P.splice(R,1)}dispatchEvent(T){return T.target=this,Object.freeze(T),this.t(T.type).forEach(A=>A(T)),!0}t(T){return this.e[T]=this.e[T]||[]}}var s=e?EventTarget:t;class i{constructor(T){this.type=T}}var a=e?Event:i;class n extends a{constructor(T,A){super(T),this.newState=A.newState,this.oldState=A.oldState,this.originalEvent=A.originalEvent}}const r="active",h="passive",c="hidden",o="frozen",d="terminated",u=typeof safari=="object"&&safari.pushNotification,v="onpageshow"in self,l=["focus","blur","visibilitychange","freeze","resume","pageshow",v?"pagehide":"unload"],g=S=>(S.preventDefault(),S.returnValue="Are you sure?"),f=S=>S.reduce((T,A,O)=>(T[A]=O,T),{}),b=[[r,h,c,d],[r,h,c,o],[c,h,r],[o,c],[o,r],[o,h]].map(f),p=(S,T)=>{for(let A,O=0;A=b[O];++O){const P=A[S],R=A[T];if(P>=0&&R>=0&&R>P)return Object.keys(A).slice(P,R+1)}return[]},E=()=>document.visibilityState===c?c:document.hasFocus()?r:h;class m extends s{constructor(){super();const T=E();this.s=T,this.i=[],this.a=this.a.bind(this),l.forEach(A=>addEventListener(A,this.a,!0)),u&&addEventListener("beforeunload",A=>{this.n=setTimeout(()=>{A.defaultPrevented||A.returnValue.length>0||this.r(A,c)},0)})}get state(){return this.s}get pageWasDiscarded(){return document.wasDiscarded||!1}addUnsavedChanges(T){!this.i.indexOf(T)>-1&&(this.i.length===0&&addEventListener("beforeunload",g),this.i.push(T))}removeUnsavedChanges(T){const A=this.i.indexOf(T);A>-1&&(this.i.splice(A,1),this.i.length===0&&removeEventListener("beforeunload",g))}r(T,A){if(A!==this.s){const O=this.s,P=p(O,A);for(let R=0;R<P.length-1;++R){const M=P[R],D=P[R+1];this.s=D,this.dispatchEvent(new n("statechange",{oldState:M,newState:D,originalEvent:T}))}}}a(T){switch(u&&clearTimeout(this.n),T.type){case"pageshow":case"resume":this.r(T,E());break;case"focus":this.r(T,r);break;case"blur":this.s===r&&this.r(T,E());break;case"pagehide":case"unload":this.r(T,T.persisted?o:d);break;case"visibilitychange":this.s!==o&&this.s!==d&&this.r(T,E());break;case"freeze":this.r(T,o)}}}var w=new m;const lifecycle=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"}));var SUPPRESS_TRACING_KEY=createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(S){return S.setValue(SUPPRESS_TRACING_KEY,!0)}function unsuppressTracing(S){return S.deleteValue(SUPPRESS_TRACING_KEY)}function isTracingSuppressed(S){return S.getValue(SUPPRESS_TRACING_KEY)===!0}var BAGGAGE_KEY_PAIR_SEPARATOR="=",BAGGAGE_PROPERTIES_SEPARATOR=";",BAGGAGE_ITEMS_SEPARATOR=",",BAGGAGE_HEADER="baggage",BAGGAGE_MAX_NAME_VALUE_PAIRS=180,BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,BAGGAGE_MAX_TOTAL_LENGTH=8192,__read$e=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function serializeKeyPairs(S){return S.reduce(function(T,A){var O=""+T+(T!==""?BAGGAGE_ITEMS_SEPARATOR:"")+A;return O.length>BAGGAGE_MAX_TOTAL_LENGTH?T:O},"")}function getKeyPairs(S){return S.getAllEntries().map(function(T){var A=__read$e(T,2),O=A[0],P=A[1],R=encodeURIComponent(O)+"="+encodeURIComponent(P.value);return P.metadata!==void 0&&(R+=BAGGAGE_PROPERTIES_SEPARATOR+P.metadata.toString()),R})}function parsePairKeyValue(S){var T=S.split(BAGGAGE_PROPERTIES_SEPARATOR);if(!(T.length<=0)){var A=T.shift();if(A){var O=A.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR);if(!(O<=0)){var P=decodeURIComponent(A.substring(0,O).trim()),R=decodeURIComponent(A.substring(O+1).trim()),M;return T.length>0&&(M=baggageEntryMetadataFromString(T.join(BAGGAGE_PROPERTIES_SEPARATOR))),{key:P,value:R,metadata:M}}}}}function parseKeyPairsIntoRecord(S){return typeof S!="string"||S.length===0?{}:S.split(BAGGAGE_ITEMS_SEPARATOR).map(function(T){return parsePairKeyValue(T)}).filter(function(T){return T!==void 0&&T.value.length>0}).reduce(function(T,A){return T[A.key]=A.value,T},{})}var W3CBaggagePropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=propagation.getBaggage(T);if(!(!P||isTracingSuppressed(T))){var R=getKeyPairs(P).filter(function(D){return D.length<=BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,BAGGAGE_MAX_NAME_VALUE_PAIRS),M=serializeKeyPairs(R);M.length>0&&O.set(A,BAGGAGE_HEADER,M)}},S.prototype.extract=function(T,A,O){var P=O.get(A,BAGGAGE_HEADER),R=Array.isArray(P)?P.join(BAGGAGE_ITEMS_SEPARATOR):P;if(!R)return T;var M={};if(R.length===0)return T;var D=R.split(BAGGAGE_ITEMS_SEPARATOR);return D.forEach(function(U){var C=parsePairKeyValue(U);if(C){var L={value:C.value};C.metadata&&(L.metadata=C.metadata),M[C.key]=L}}),Object.entries(M).length===0?T:propagation.setBaggage(T,propagation.createBaggage(M))},S.prototype.fields=function(){return[BAGGAGE_HEADER]},S})(),AnchoredClock=(function(){function S(T,A){this._monotonicClock=A,this._epochMillis=T.now(),this._performanceMillis=A.now()}return S.prototype.now=function(){var T=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+T},S})(),__values$7=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$d=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function sanitizeAttributes(S){var T,A,O={};if(typeof S!="object"||S==null)return O;try{for(var P=__values$7(Object.entries(S)),R=P.next();!R.done;R=P.next()){var M=__read$d(R.value,2),D=M[0],U=M[1];if(!isAttributeKey(D)){diag.warn("Invalid attribute key: "+D);continue}if(!isAttributeValue(U)){diag.warn("Invalid attribute value set for key: "+D);continue}Array.isArray(U)?O[D]=U.slice():O[D]=U}}catch(C){T={error:C}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return O}function isAttributeKey(S){return typeof S=="string"&&S.length>0}function isAttributeValue(S){return S==null?!0:Array.isArray(S)?isHomogeneousAttributeValueArray(S):isValidPrimitiveAttributeValue(S)}function isHomogeneousAttributeValueArray(S){var T,A,O;try{for(var P=__values$7(S),R=P.next();!R.done;R=P.next()){var M=R.value;if(M!=null){if(!O){if(isValidPrimitiveAttributeValue(M)){O=typeof M;continue}return!1}if(typeof M!==O)return!1}}}catch(D){T={error:D}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return!0}function isValidPrimitiveAttributeValue(S){switch(typeof S){case"number":case"boolean":case"string":return!0}return!1}function loggingErrorHandler(){return function(S){diag.error(stringifyException(S))}}function stringifyException(S){return typeof S=="string"?S:JSON.stringify(flattenException(S))}function flattenException(S){for(var T={},A=S;A!==null;)Object.getOwnPropertyNames(A).forEach(function(O){if(!T[O]){var P=A[O];P&&(T[O]=String(P))}}),A=Object.getPrototypeOf(A);return T}var delegateHandler=loggingErrorHandler();function setGlobalErrorHandler(S){delegateHandler=S}function globalErrorHandler(S){try{delegateHandler(S)}catch{}}var TracesSamplerValues;(function(S){S.AlwaysOff="always_off",S.AlwaysOn="always_on",S.ParentBasedAlwaysOff="parentbased_always_off",S.ParentBasedAlwaysOn="parentbased_always_on",S.ParentBasedTraceIdRatio="parentbased_traceidratio",S.TraceIdRatio="traceidratio"})(TracesSamplerValues||(TracesSamplerValues={}));var DEFAULT_LIST_SEPARATOR=",",ENVIRONMENT_BOOLEAN_KEYS=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(S){return ENVIRONMENT_BOOLEAN_KEYS.indexOf(S)>-1}var ENVIRONMENT_NUMBERS_KEYS=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(S){return ENVIRONMENT_NUMBERS_KEYS.indexOf(S)>-1}var ENVIRONMENT_LISTS_KEYS=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function isEnvVarAList(S){return ENVIRONMENT_LISTS_KEYS.indexOf(S)>-1}var DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0,DEFAULT_ATTRIBUTE_COUNT_LIMIT=128,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128,DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function parseBoolean(S,T,A){if(!(typeof A[S]>"u")){var O=String(A[S]);T[S]=O.toLowerCase()==="true"}}function parseNumber(S,T,A,O,P){if(O===void 0&&(O=-1/0),P===void 0&&(P=1/0),typeof A[S]<"u"){var R=Number(A[S]);isNaN(R)||(R<O?T[S]=O:R>P?T[S]=P:T[S]=R)}}function parseStringList(S,T,A,O){O===void 0&&(O=DEFAULT_LIST_SEPARATOR);var P=A[S];typeof P=="string"&&(T[S]=P.split(O).map(function(R){return R.trim()}))}var logLevelMap={ALL:DiagLogLevel.ALL,VERBOSE:DiagLogLevel.VERBOSE,DEBUG:DiagLogLevel.DEBUG,INFO:DiagLogLevel.INFO,WARN:DiagLogLevel.WARN,ERROR:DiagLogLevel.ERROR,NONE:DiagLogLevel.NONE};function setLogLevelFromEnv(S,T,A){var O=A[S];if(typeof O=="string"){var P=logLevelMap[O.toUpperCase()];P!=null&&(T[S]=P)}}function parseEnvironment(S){var T={};for(var A in DEFAULT_ENVIRONMENT){var O=A;switch(O){case"OTEL_LOG_LEVEL":setLogLevelFromEnv(O,T,S);break;default:if(isEnvVarABoolean(O))parseBoolean(O,T,S);else if(isEnvVarANumber(O))parseNumber(O,T,S);else if(isEnvVarAList(O))parseStringList(O,T,S);else{var P=S[O];typeof P<"u"&&P!==null&&(T[O]=String(P))}}}return T}var _globalThis$1=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};function getEnv(){var S=parseEnvironment(_globalThis$1);return Object.assign({},DEFAULT_ENVIRONMENT,S)}function getEnvWithoutDefaults(){return parseEnvironment(_globalThis$1)}function intValue(S){return S>=48&&S<=57?S-48:S>=97&&S<=102?S-87:S-55}function hexToBinary(S){for(var T=new Uint8Array(S.length/2),A=0,O=0;O<S.length;O+=2){var P=intValue(S.charCodeAt(O)),R=intValue(S.charCodeAt(O+1));T[A++]=P<<4|R}return T}var __read$c=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$5=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))};function hexToBase64(S){return btoa(String.fromCharCode.apply(String,__spreadArray$5([],__read$c(hexToBinary(S)),!1)))}var SPAN_ID_BYTES$1=8,TRACE_ID_BYTES$1=16,RandomIdGenerator$1=(function(){function S(){this.generateTraceId=getIdGenerator$1(TRACE_ID_BYTES$1),this.generateSpanId=getIdGenerator$1(SPAN_ID_BYTES$1)}return S})(),SHARED_CHAR_CODES_ARRAY$1=Array(32);function getIdGenerator$1(S){return function(){for(var A=0;A<S*2;A++)SHARED_CHAR_CODES_ARRAY$1[A]=Math.floor(Math.random()*16)+48,SHARED_CHAR_CODES_ARRAY$1[A]>=58&&(SHARED_CHAR_CODES_ARRAY$1[A]+=39);return String.fromCharCode.apply(null,SHARED_CHAR_CODES_ARRAY$1.slice(0,S*2))}}var otperformance=performance,VERSION$2="1.30.1";function createConstMap(S){for(var T={},A=S.length,O=0;O<A;O++){var P=S[O];P&&(T[String(P).toUpperCase().replace(/[-.]/g,"_")]=P)}return T}var TMP_AWS_LAMBDA_INVOKED_ARN="aws.lambda.invoked_arn",TMP_DB_SYSTEM="db.system",TMP_DB_CONNECTION_STRING="db.connection_string",TMP_DB_USER="db.user",TMP_DB_JDBC_DRIVER_CLASSNAME="db.jdbc.driver_classname",TMP_DB_NAME="db.name",TMP_DB_STATEMENT="db.statement",TMP_DB_OPERATION="db.operation",TMP_DB_MSSQL_INSTANCE_NAME="db.mssql.instance_name",TMP_DB_CASSANDRA_KEYSPACE="db.cassandra.keyspace",TMP_DB_CASSANDRA_PAGE_SIZE="db.cassandra.page_size",TMP_DB_CASSANDRA_CONSISTENCY_LEVEL="db.cassandra.consistency_level",TMP_DB_CASSANDRA_TABLE="db.cassandra.table",TMP_DB_CASSANDRA_IDEMPOTENCE="db.cassandra.idempotence",TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT="db.cassandra.speculative_execution_count",TMP_DB_CASSANDRA_COORDINATOR_ID="db.cassandra.coordinator.id",TMP_DB_CASSANDRA_COORDINATOR_DC="db.cassandra.coordinator.dc",TMP_DB_HBASE_NAMESPACE="db.hbase.namespace",TMP_DB_REDIS_DATABASE_INDEX="db.redis.database_index",TMP_DB_MONGODB_COLLECTION="db.mongodb.collection",TMP_DB_SQL_TABLE="db.sql.table",TMP_EXCEPTION_TYPE="exception.type",TMP_EXCEPTION_MESSAGE="exception.message",TMP_EXCEPTION_STACKTRACE="exception.stacktrace",TMP_EXCEPTION_ESCAPED="exception.escaped",TMP_FAAS_TRIGGER="faas.trigger",TMP_FAAS_EXECUTION="faas.execution",TMP_FAAS_DOCUMENT_COLLECTION="faas.document.collection",TMP_FAAS_DOCUMENT_OPERATION="faas.document.operation",TMP_FAAS_DOCUMENT_TIME="faas.document.time",TMP_FAAS_DOCUMENT_NAME="faas.document.name",TMP_FAAS_TIME="faas.time",TMP_FAAS_CRON="faas.cron",TMP_FAAS_COLDSTART="faas.coldstart",TMP_FAAS_INVOKED_NAME="faas.invoked_name",TMP_FAAS_INVOKED_PROVIDER="faas.invoked_provider",TMP_FAAS_INVOKED_REGION="faas.invoked_region",TMP_NET_TRANSPORT="net.transport",TMP_NET_PEER_IP="net.peer.ip",TMP_NET_PEER_PORT="net.peer.port",TMP_NET_PEER_NAME="net.peer.name",TMP_NET_HOST_IP="net.host.ip",TMP_NET_HOST_PORT="net.host.port",TMP_NET_HOST_NAME="net.host.name",TMP_NET_HOST_CONNECTION_TYPE="net.host.connection.type",TMP_NET_HOST_CONNECTION_SUBTYPE="net.host.connection.subtype",TMP_NET_HOST_CARRIER_NAME="net.host.carrier.name",TMP_NET_HOST_CARRIER_MCC="net.host.carrier.mcc",TMP_NET_HOST_CARRIER_MNC="net.host.carrier.mnc",TMP_NET_HOST_CARRIER_ICC="net.host.carrier.icc",TMP_PEER_SERVICE="peer.service",TMP_ENDUSER_ID="enduser.id",TMP_ENDUSER_ROLE="enduser.role",TMP_ENDUSER_SCOPE="enduser.scope",TMP_THREAD_ID="thread.id",TMP_THREAD_NAME="thread.name",TMP_CODE_FUNCTION="code.function",TMP_CODE_NAMESPACE="code.namespace",TMP_CODE_FILEPATH="code.filepath",TMP_CODE_LINENO="code.lineno",TMP_HTTP_METHOD="http.method",TMP_HTTP_URL="http.url",TMP_HTTP_TARGET="http.target",TMP_HTTP_HOST="http.host",TMP_HTTP_SCHEME="http.scheme",TMP_HTTP_STATUS_CODE="http.status_code",TMP_HTTP_FLAVOR="http.flavor",TMP_HTTP_USER_AGENT="http.user_agent",TMP_HTTP_REQUEST_CONTENT_LENGTH="http.request_content_length",TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",TMP_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED="http.response_content_length_uncompressed",TMP_HTTP_SERVER_NAME="http.server_name",TMP_HTTP_ROUTE="http.route",TMP_HTTP_CLIENT_IP="http.client_ip",TMP_AWS_DYNAMODB_TABLE_NAMES="aws.dynamodb.table_names",TMP_AWS_DYNAMODB_CONSUMED_CAPACITY="aws.dynamodb.consumed_capacity",TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS="aws.dynamodb.item_collection_metrics",TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY="aws.dynamodb.provisioned_read_capacity",TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY="aws.dynamodb.provisioned_write_capacity",TMP_AWS_DYNAMODB_CONSISTENT_READ="aws.dynamodb.consistent_read",TMP_AWS_DYNAMODB_PROJECTION="aws.dynamodb.projection",TMP_AWS_DYNAMODB_LIMIT="aws.dynamodb.limit",TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET="aws.dynamodb.attributes_to_get",TMP_AWS_DYNAMODB_INDEX_NAME="aws.dynamodb.index_name",TMP_AWS_DYNAMODB_SELECT="aws.dynamodb.select",TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES="aws.dynamodb.global_secondary_indexes",TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES="aws.dynamodb.local_secondary_indexes",TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE="aws.dynamodb.exclusive_start_table",TMP_AWS_DYNAMODB_TABLE_COUNT="aws.dynamodb.table_count",TMP_AWS_DYNAMODB_SCAN_FORWARD="aws.dynamodb.scan_forward",TMP_AWS_DYNAMODB_SEGMENT="aws.dynamodb.segment",TMP_AWS_DYNAMODB_TOTAL_SEGMENTS="aws.dynamodb.total_segments",TMP_AWS_DYNAMODB_COUNT="aws.dynamodb.count",TMP_AWS_DYNAMODB_SCANNED_COUNT="aws.dynamodb.scanned_count",TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS="aws.dynamodb.attribute_definitions",TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES="aws.dynamodb.global_secondary_index_updates",TMP_MESSAGING_SYSTEM="messaging.system",TMP_MESSAGING_DESTINATION="messaging.destination",TMP_MESSAGING_DESTINATION_KIND="messaging.destination_kind",TMP_MESSAGING_TEMP_DESTINATION="messaging.temp_destination",TMP_MESSAGING_PROTOCOL="messaging.protocol",TMP_MESSAGING_PROTOCOL_VERSION="messaging.protocol_version",TMP_MESSAGING_URL="messaging.url",TMP_MESSAGING_MESSAGE_ID="messaging.message_id",TMP_MESSAGING_CONVERSATION_ID="messaging.conversation_id",TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES="messaging.message_payload_size_bytes",TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES="messaging.message_payload_compressed_size_bytes",TMP_MESSAGING_OPERATION="messaging.operation",TMP_MESSAGING_CONSUMER_ID="messaging.consumer_id",TMP_MESSAGING_RABBITMQ_ROUTING_KEY="messaging.rabbitmq.routing_key",TMP_MESSAGING_KAFKA_MESSAGE_KEY="messaging.kafka.message_key",TMP_MESSAGING_KAFKA_CONSUMER_GROUP="messaging.kafka.consumer_group",TMP_MESSAGING_KAFKA_CLIENT_ID="messaging.kafka.client_id",TMP_MESSAGING_KAFKA_PARTITION="messaging.kafka.partition",TMP_MESSAGING_KAFKA_TOMBSTONE="messaging.kafka.tombstone",TMP_RPC_SYSTEM="rpc.system",TMP_RPC_SERVICE="rpc.service",TMP_RPC_METHOD="rpc.method",TMP_RPC_GRPC_STATUS_CODE="rpc.grpc.status_code",TMP_RPC_JSONRPC_VERSION="rpc.jsonrpc.version",TMP_RPC_JSONRPC_REQUEST_ID="rpc.jsonrpc.request_id",TMP_RPC_JSONRPC_ERROR_CODE="rpc.jsonrpc.error_code",TMP_RPC_JSONRPC_ERROR_MESSAGE="rpc.jsonrpc.error_message",TMP_MESSAGE_TYPE="message.type",TMP_MESSAGE_ID="message.id",TMP_MESSAGE_COMPRESSED_SIZE="message.compressed_size",TMP_MESSAGE_UNCOMPRESSED_SIZE="message.uncompressed_size",SEMATTRS_AWS_LAMBDA_INVOKED_ARN=TMP_AWS_LAMBDA_INVOKED_ARN,SEMATTRS_DB_SYSTEM=TMP_DB_SYSTEM,SEMATTRS_DB_CONNECTION_STRING=TMP_DB_CONNECTION_STRING,SEMATTRS_DB_USER=TMP_DB_USER,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=TMP_DB_JDBC_DRIVER_CLASSNAME,SEMATTRS_DB_NAME=TMP_DB_NAME,SEMATTRS_DB_STATEMENT=TMP_DB_STATEMENT,SEMATTRS_DB_OPERATION=TMP_DB_OPERATION,SEMATTRS_DB_MSSQL_INSTANCE_NAME=TMP_DB_MSSQL_INSTANCE_NAME,SEMATTRS_DB_CASSANDRA_KEYSPACE=TMP_DB_CASSANDRA_KEYSPACE,SEMATTRS_DB_CASSANDRA_PAGE_SIZE=TMP_DB_CASSANDRA_PAGE_SIZE,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=TMP_DB_CASSANDRA_CONSISTENCY_LEVEL,SEMATTRS_DB_CASSANDRA_TABLE=TMP_DB_CASSANDRA_TABLE,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=TMP_DB_CASSANDRA_IDEMPOTENCE,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=TMP_DB_CASSANDRA_COORDINATOR_ID,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=TMP_DB_CASSANDRA_COORDINATOR_DC,SEMATTRS_DB_HBASE_NAMESPACE=TMP_DB_HBASE_NAMESPACE,SEMATTRS_DB_REDIS_DATABASE_INDEX=TMP_DB_REDIS_DATABASE_INDEX,SEMATTRS_DB_MONGODB_COLLECTION=TMP_DB_MONGODB_COLLECTION,SEMATTRS_DB_SQL_TABLE=TMP_DB_SQL_TABLE,SEMATTRS_EXCEPTION_TYPE=TMP_EXCEPTION_TYPE,SEMATTRS_EXCEPTION_MESSAGE=TMP_EXCEPTION_MESSAGE,SEMATTRS_EXCEPTION_STACKTRACE=TMP_EXCEPTION_STACKTRACE,SEMATTRS_EXCEPTION_ESCAPED=TMP_EXCEPTION_ESCAPED,SEMATTRS_FAAS_TRIGGER=TMP_FAAS_TRIGGER,SEMATTRS_FAAS_EXECUTION=TMP_FAAS_EXECUTION,SEMATTRS_FAAS_DOCUMENT_COLLECTION=TMP_FAAS_DOCUMENT_COLLECTION,SEMATTRS_FAAS_DOCUMENT_OPERATION=TMP_FAAS_DOCUMENT_OPERATION,SEMATTRS_FAAS_DOCUMENT_TIME=TMP_FAAS_DOCUMENT_TIME,SEMATTRS_FAAS_DOCUMENT_NAME=TMP_FAAS_DOCUMENT_NAME,SEMATTRS_FAAS_TIME=TMP_FAAS_TIME,SEMATTRS_FAAS_CRON=TMP_FAAS_CRON,SEMATTRS_FAAS_COLDSTART=TMP_FAAS_COLDSTART,SEMATTRS_FAAS_INVOKED_NAME=TMP_FAAS_INVOKED_NAME,SEMATTRS_FAAS_INVOKED_PROVIDER=TMP_FAAS_INVOKED_PROVIDER,SEMATTRS_FAAS_INVOKED_REGION=TMP_FAAS_INVOKED_REGION,SEMATTRS_NET_TRANSPORT=TMP_NET_TRANSPORT,SEMATTRS_NET_PEER_IP=TMP_NET_PEER_IP,SEMATTRS_NET_PEER_PORT=TMP_NET_PEER_PORT,SEMATTRS_NET_PEER_NAME=TMP_NET_PEER_NAME,SEMATTRS_NET_HOST_IP=TMP_NET_HOST_IP,SEMATTRS_NET_HOST_PORT=TMP_NET_HOST_PORT,SEMATTRS_NET_HOST_NAME=TMP_NET_HOST_NAME,SEMATTRS_NET_HOST_CONNECTION_TYPE=TMP_NET_HOST_CONNECTION_TYPE,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=TMP_NET_HOST_CONNECTION_SUBTYPE,SEMATTRS_NET_HOST_CARRIER_NAME=TMP_NET_HOST_CARRIER_NAME,SEMATTRS_NET_HOST_CARRIER_MCC=TMP_NET_HOST_CARRIER_MCC,SEMATTRS_NET_HOST_CARRIER_MNC=TMP_NET_HOST_CARRIER_MNC,SEMATTRS_NET_HOST_CARRIER_ICC=TMP_NET_HOST_CARRIER_ICC,SEMATTRS_PEER_SERVICE=TMP_PEER_SERVICE,SEMATTRS_ENDUSER_ID=TMP_ENDUSER_ID,SEMATTRS_ENDUSER_ROLE=TMP_ENDUSER_ROLE,SEMATTRS_ENDUSER_SCOPE=TMP_ENDUSER_SCOPE,SEMATTRS_THREAD_ID=TMP_THREAD_ID,SEMATTRS_THREAD_NAME=TMP_THREAD_NAME,SEMATTRS_CODE_FUNCTION=TMP_CODE_FUNCTION,SEMATTRS_CODE_NAMESPACE=TMP_CODE_NAMESPACE,SEMATTRS_CODE_FILEPATH=TMP_CODE_FILEPATH,SEMATTRS_CODE_LINENO=TMP_CODE_LINENO,SEMATTRS_HTTP_METHOD=TMP_HTTP_METHOD,SEMATTRS_HTTP_URL=TMP_HTTP_URL,SEMATTRS_HTTP_TARGET=TMP_HTTP_TARGET,SEMATTRS_HTTP_HOST=TMP_HTTP_HOST,SEMATTRS_HTTP_SCHEME=TMP_HTTP_SCHEME,SEMATTRS_HTTP_STATUS_CODE=TMP_HTTP_STATUS_CODE,SEMATTRS_HTTP_FLAVOR=TMP_HTTP_FLAVOR,SEMATTRS_HTTP_USER_AGENT=TMP_HTTP_USER_AGENT,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=TMP_HTTP_REQUEST_CONTENT_LENGTH,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=TMP_HTTP_RESPONSE_CONTENT_LENGTH,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_SERVER_NAME=TMP_HTTP_SERVER_NAME,SEMATTRS_HTTP_ROUTE=TMP_HTTP_ROUTE,SEMATTRS_HTTP_CLIENT_IP=TMP_HTTP_CLIENT_IP,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=TMP_AWS_DYNAMODB_TABLE_NAMES,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=TMP_AWS_DYNAMODB_CONSUMED_CAPACITY,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=TMP_AWS_DYNAMODB_CONSISTENT_READ,SEMATTRS_AWS_DYNAMODB_PROJECTION=TMP_AWS_DYNAMODB_PROJECTION,SEMATTRS_AWS_DYNAMODB_LIMIT=TMP_AWS_DYNAMODB_LIMIT,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET,SEMATTRS_AWS_DYNAMODB_INDEX_NAME=TMP_AWS_DYNAMODB_INDEX_NAME,SEMATTRS_AWS_DYNAMODB_SELECT=TMP_AWS_DYNAMODB_SELECT,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=TMP_AWS_DYNAMODB_TABLE_COUNT,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=TMP_AWS_DYNAMODB_SCAN_FORWARD,SEMATTRS_AWS_DYNAMODB_SEGMENT=TMP_AWS_DYNAMODB_SEGMENT,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=TMP_AWS_DYNAMODB_TOTAL_SEGMENTS,SEMATTRS_AWS_DYNAMODB_COUNT=TMP_AWS_DYNAMODB_COUNT,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=TMP_AWS_DYNAMODB_SCANNED_COUNT,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES,SEMATTRS_MESSAGING_SYSTEM=TMP_MESSAGING_SYSTEM,SEMATTRS_MESSAGING_DESTINATION=TMP_MESSAGING_DESTINATION,SEMATTRS_MESSAGING_DESTINATION_KIND=TMP_MESSAGING_DESTINATION_KIND,SEMATTRS_MESSAGING_TEMP_DESTINATION=TMP_MESSAGING_TEMP_DESTINATION,SEMATTRS_MESSAGING_PROTOCOL=TMP_MESSAGING_PROTOCOL,SEMATTRS_MESSAGING_PROTOCOL_VERSION=TMP_MESSAGING_PROTOCOL_VERSION,SEMATTRS_MESSAGING_URL=TMP_MESSAGING_URL,SEMATTRS_MESSAGING_MESSAGE_ID=TMP_MESSAGING_MESSAGE_ID,SEMATTRS_MESSAGING_CONVERSATION_ID=TMP_MESSAGING_CONVERSATION_ID,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES,SEMATTRS_MESSAGING_OPERATION=TMP_MESSAGING_OPERATION,SEMATTRS_MESSAGING_CONSUMER_ID=TMP_MESSAGING_CONSUMER_ID,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=TMP_MESSAGING_RABBITMQ_ROUTING_KEY,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=TMP_MESSAGING_KAFKA_MESSAGE_KEY,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=TMP_MESSAGING_KAFKA_CONSUMER_GROUP,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=TMP_MESSAGING_KAFKA_CLIENT_ID,SEMATTRS_MESSAGING_KAFKA_PARTITION=TMP_MESSAGING_KAFKA_PARTITION,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=TMP_MESSAGING_KAFKA_TOMBSTONE,SEMATTRS_RPC_SYSTEM=TMP_RPC_SYSTEM,SEMATTRS_RPC_SERVICE=TMP_RPC_SERVICE,SEMATTRS_RPC_METHOD=TMP_RPC_METHOD,SEMATTRS_RPC_GRPC_STATUS_CODE=TMP_RPC_GRPC_STATUS_CODE,SEMATTRS_RPC_JSONRPC_VERSION=TMP_RPC_JSONRPC_VERSION,SEMATTRS_RPC_JSONRPC_REQUEST_ID=TMP_RPC_JSONRPC_REQUEST_ID,SEMATTRS_RPC_JSONRPC_ERROR_CODE=TMP_RPC_JSONRPC_ERROR_CODE,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=TMP_RPC_JSONRPC_ERROR_MESSAGE,SEMATTRS_MESSAGE_TYPE=TMP_MESSAGE_TYPE,SEMATTRS_MESSAGE_ID=TMP_MESSAGE_ID,SEMATTRS_MESSAGE_COMPRESSED_SIZE=TMP_MESSAGE_COMPRESSED_SIZE,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=TMP_MESSAGE_UNCOMPRESSED_SIZE,SemanticAttributes=createConstMap([TMP_AWS_LAMBDA_INVOKED_ARN,TMP_DB_SYSTEM,TMP_DB_CONNECTION_STRING,TMP_DB_USER,TMP_DB_JDBC_DRIVER_CLASSNAME,TMP_DB_NAME,TMP_DB_STATEMENT,TMP_DB_OPERATION,TMP_DB_MSSQL_INSTANCE_NAME,TMP_DB_CASSANDRA_KEYSPACE,TMP_DB_CASSANDRA_PAGE_SIZE,TMP_DB_CASSANDRA_CONSISTENCY_LEVEL,TMP_DB_CASSANDRA_TABLE,TMP_DB_CASSANDRA_IDEMPOTENCE,TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT,TMP_DB_CASSANDRA_COORDINATOR_ID,TMP_DB_CASSANDRA_COORDINATOR_DC,TMP_DB_HBASE_NAMESPACE,TMP_DB_REDIS_DATABASE_INDEX,TMP_DB_MONGODB_COLLECTION,TMP_DB_SQL_TABLE,TMP_EXCEPTION_TYPE,TMP_EXCEPTION_MESSAGE,TMP_EXCEPTION_STACKTRACE,TMP_EXCEPTION_ESCAPED,TMP_FAAS_TRIGGER,TMP_FAAS_EXECUTION,TMP_FAAS_DOCUMENT_COLLECTION,TMP_FAAS_DOCUMENT_OPERATION,TMP_FAAS_DOCUMENT_TIME,TMP_FAAS_DOCUMENT_NAME,TMP_FAAS_TIME,TMP_FAAS_CRON,TMP_FAAS_COLDSTART,TMP_FAAS_INVOKED_NAME,TMP_FAAS_INVOKED_PROVIDER,TMP_FAAS_INVOKED_REGION,TMP_NET_TRANSPORT,TMP_NET_PEER_IP,TMP_NET_PEER_PORT,TMP_NET_PEER_NAME,TMP_NET_HOST_IP,TMP_NET_HOST_PORT,TMP_NET_HOST_NAME,TMP_NET_HOST_CONNECTION_TYPE,TMP_NET_HOST_CONNECTION_SUBTYPE,TMP_NET_HOST_CARRIER_NAME,TMP_NET_HOST_CARRIER_MCC,TMP_NET_HOST_CARRIER_MNC,TMP_NET_HOST_CARRIER_ICC,TMP_PEER_SERVICE,TMP_ENDUSER_ID,TMP_ENDUSER_ROLE,TMP_ENDUSER_SCOPE,TMP_THREAD_ID,TMP_THREAD_NAME,TMP_CODE_FUNCTION,TMP_CODE_NAMESPACE,TMP_CODE_FILEPATH,TMP_CODE_LINENO,TMP_HTTP_METHOD,TMP_HTTP_URL,TMP_HTTP_TARGET,TMP_HTTP_HOST,TMP_HTTP_SCHEME,TMP_HTTP_STATUS_CODE,TMP_HTTP_FLAVOR,TMP_HTTP_USER_AGENT,TMP_HTTP_REQUEST_CONTENT_LENGTH,TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,TMP_HTTP_RESPONSE_CONTENT_LENGTH,TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,TMP_HTTP_SERVER_NAME,TMP_HTTP_ROUTE,TMP_HTTP_CLIENT_IP,TMP_AWS_DYNAMODB_TABLE_NAMES,TMP_AWS_DYNAMODB_CONSUMED_CAPACITY,TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS,TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY,TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY,TMP_AWS_DYNAMODB_CONSISTENT_READ,TMP_AWS_DYNAMODB_PROJECTION,TMP_AWS_DYNAMODB_LIMIT,TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET,TMP_AWS_DYNAMODB_INDEX_NAME,TMP_AWS_DYNAMODB_SELECT,TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES,TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES,TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE,TMP_AWS_DYNAMODB_TABLE_COUNT,TMP_AWS_DYNAMODB_SCAN_FORWARD,TMP_AWS_DYNAMODB_SEGMENT,TMP_AWS_DYNAMODB_TOTAL_SEGMENTS,TMP_AWS_DYNAMODB_COUNT,TMP_AWS_DYNAMODB_SCANNED_COUNT,TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS,TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES,TMP_MESSAGING_SYSTEM,TMP_MESSAGING_DESTINATION,TMP_MESSAGING_DESTINATION_KIND,TMP_MESSAGING_TEMP_DESTINATION,TMP_MESSAGING_PROTOCOL,TMP_MESSAGING_PROTOCOL_VERSION,TMP_MESSAGING_URL,TMP_MESSAGING_MESSAGE_ID,TMP_MESSAGING_CONVERSATION_ID,TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES,TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES,TMP_MESSAGING_OPERATION,TMP_MESSAGING_CONSUMER_ID,TMP_MESSAGING_RABBITMQ_ROUTING_KEY,TMP_MESSAGING_KAFKA_MESSAGE_KEY,TMP_MESSAGING_KAFKA_CONSUMER_GROUP,TMP_MESSAGING_KAFKA_CLIENT_ID,TMP_MESSAGING_KAFKA_PARTITION,TMP_MESSAGING_KAFKA_TOMBSTONE,TMP_RPC_SYSTEM,TMP_RPC_SERVICE,TMP_RPC_METHOD,TMP_RPC_GRPC_STATUS_CODE,TMP_RPC_JSONRPC_VERSION,TMP_RPC_JSONRPC_REQUEST_ID,TMP_RPC_JSONRPC_ERROR_CODE,TMP_RPC_JSONRPC_ERROR_MESSAGE,TMP_MESSAGE_TYPE,TMP_MESSAGE_ID,TMP_MESSAGE_COMPRESSED_SIZE,TMP_MESSAGE_UNCOMPRESSED_SIZE]),TMP_DBSYSTEMVALUES_OTHER_SQL="other_sql",TMP_DBSYSTEMVALUES_MSSQL="mssql",TMP_DBSYSTEMVALUES_MYSQL="mysql",TMP_DBSYSTEMVALUES_ORACLE="oracle",TMP_DBSYSTEMVALUES_DB2="db2",TMP_DBSYSTEMVALUES_POSTGRESQL="postgresql",TMP_DBSYSTEMVALUES_REDSHIFT="redshift",TMP_DBSYSTEMVALUES_HIVE="hive",TMP_DBSYSTEMVALUES_CLOUDSCAPE="cloudscape",TMP_DBSYSTEMVALUES_HSQLDB="hsqldb",TMP_DBSYSTEMVALUES_PROGRESS="progress",TMP_DBSYSTEMVALUES_MAXDB="maxdb",TMP_DBSYSTEMVALUES_HANADB="hanadb",TMP_DBSYSTEMVALUES_INGRES="ingres",TMP_DBSYSTEMVALUES_FIRSTSQL="firstsql",TMP_DBSYSTEMVALUES_EDB="edb",TMP_DBSYSTEMVALUES_CACHE="cache",TMP_DBSYSTEMVALUES_ADABAS="adabas",TMP_DBSYSTEMVALUES_FIREBIRD="firebird",TMP_DBSYSTEMVALUES_DERBY="derby",TMP_DBSYSTEMVALUES_FILEMAKER="filemaker",TMP_DBSYSTEMVALUES_INFORMIX="informix",TMP_DBSYSTEMVALUES_INSTANTDB="instantdb",TMP_DBSYSTEMVALUES_INTERBASE="interbase",TMP_DBSYSTEMVALUES_MARIADB="mariadb",TMP_DBSYSTEMVALUES_NETEZZA="netezza",TMP_DBSYSTEMVALUES_PERVASIVE="pervasive",TMP_DBSYSTEMVALUES_POINTBASE="pointbase",TMP_DBSYSTEMVALUES_SQLITE="sqlite",TMP_DBSYSTEMVALUES_SYBASE="sybase",TMP_DBSYSTEMVALUES_TERADATA="teradata",TMP_DBSYSTEMVALUES_VERTICA="vertica",TMP_DBSYSTEMVALUES_H2="h2",TMP_DBSYSTEMVALUES_COLDFUSION="coldfusion",TMP_DBSYSTEMVALUES_CASSANDRA="cassandra",TMP_DBSYSTEMVALUES_HBASE="hbase",TMP_DBSYSTEMVALUES_MONGODB="mongodb",TMP_DBSYSTEMVALUES_REDIS="redis",TMP_DBSYSTEMVALUES_COUCHBASE="couchbase",TMP_DBSYSTEMVALUES_COUCHDB="couchdb",TMP_DBSYSTEMVALUES_COSMOSDB="cosmosdb",TMP_DBSYSTEMVALUES_DYNAMODB="dynamodb",TMP_DBSYSTEMVALUES_NEO4J="neo4j",TMP_DBSYSTEMVALUES_GEODE="geode",TMP_DBSYSTEMVALUES_ELASTICSEARCH="elasticsearch",TMP_DBSYSTEMVALUES_MEMCACHED="memcached",TMP_DBSYSTEMVALUES_COCKROACHDB="cockroachdb",DBSYSTEMVALUES_OTHER_SQL=TMP_DBSYSTEMVALUES_OTHER_SQL,DBSYSTEMVALUES_MSSQL=TMP_DBSYSTEMVALUES_MSSQL,DBSYSTEMVALUES_MYSQL=TMP_DBSYSTEMVALUES_MYSQL,DBSYSTEMVALUES_ORACLE=TMP_DBSYSTEMVALUES_ORACLE,DBSYSTEMVALUES_DB2=TMP_DBSYSTEMVALUES_DB2,DBSYSTEMVALUES_POSTGRESQL=TMP_DBSYSTEMVALUES_POSTGRESQL,DBSYSTEMVALUES_REDSHIFT=TMP_DBSYSTEMVALUES_REDSHIFT,DBSYSTEMVALUES_HIVE=TMP_DBSYSTEMVALUES_HIVE,DBSYSTEMVALUES_CLOUDSCAPE=TMP_DBSYSTEMVALUES_CLOUDSCAPE,DBSYSTEMVALUES_HSQLDB=TMP_DBSYSTEMVALUES_HSQLDB,DBSYSTEMVALUES_PROGRESS=TMP_DBSYSTEMVALUES_PROGRESS,DBSYSTEMVALUES_MAXDB=TMP_DBSYSTEMVALUES_MAXDB,DBSYSTEMVALUES_HANADB=TMP_DBSYSTEMVALUES_HANADB,DBSYSTEMVALUES_INGRES=TMP_DBSYSTEMVALUES_INGRES,DBSYSTEMVALUES_FIRSTSQL=TMP_DBSYSTEMVALUES_FIRSTSQL,DBSYSTEMVALUES_EDB=TMP_DBSYSTEMVALUES_EDB,DBSYSTEMVALUES_CACHE=TMP_DBSYSTEMVALUES_CACHE,DBSYSTEMVALUES_ADABAS=TMP_DBSYSTEMVALUES_ADABAS,DBSYSTEMVALUES_FIREBIRD=TMP_DBSYSTEMVALUES_FIREBIRD,DBSYSTEMVALUES_DERBY=TMP_DBSYSTEMVALUES_DERBY,DBSYSTEMVALUES_FILEMAKER=TMP_DBSYSTEMVALUES_FILEMAKER,DBSYSTEMVALUES_INFORMIX=TMP_DBSYSTEMVALUES_INFORMIX,DBSYSTEMVALUES_INSTANTDB=TMP_DBSYSTEMVALUES_INSTANTDB,DBSYSTEMVALUES_INTERBASE=TMP_DBSYSTEMVALUES_INTERBASE,DBSYSTEMVALUES_MARIADB=TMP_DBSYSTEMVALUES_MARIADB,DBSYSTEMVALUES_NETEZZA=TMP_DBSYSTEMVALUES_NETEZZA,DBSYSTEMVALUES_PERVASIVE=TMP_DBSYSTEMVALUES_PERVASIVE,DBSYSTEMVALUES_POINTBASE=TMP_DBSYSTEMVALUES_POINTBASE,DBSYSTEMVALUES_SQLITE=TMP_DBSYSTEMVALUES_SQLITE,DBSYSTEMVALUES_SYBASE=TMP_DBSYSTEMVALUES_SYBASE,DBSYSTEMVALUES_TERADATA=TMP_DBSYSTEMVALUES_TERADATA,DBSYSTEMVALUES_VERTICA=TMP_DBSYSTEMVALUES_VERTICA,DBSYSTEMVALUES_H2=TMP_DBSYSTEMVALUES_H2,DBSYSTEMVALUES_COLDFUSION=TMP_DBSYSTEMVALUES_COLDFUSION,DBSYSTEMVALUES_CASSANDRA=TMP_DBSYSTEMVALUES_CASSANDRA,DBSYSTEMVALUES_HBASE=TMP_DBSYSTEMVALUES_HBASE,DBSYSTEMVALUES_MONGODB=TMP_DBSYSTEMVALUES_MONGODB,DBSYSTEMVALUES_REDIS=TMP_DBSYSTEMVALUES_REDIS,DBSYSTEMVALUES_COUCHBASE=TMP_DBSYSTEMVALUES_COUCHBASE,DBSYSTEMVALUES_COUCHDB=TMP_DBSYSTEMVALUES_COUCHDB,DBSYSTEMVALUES_COSMOSDB=TMP_DBSYSTEMVALUES_COSMOSDB,DBSYSTEMVALUES_DYNAMODB=TMP_DBSYSTEMVALUES_DYNAMODB,DBSYSTEMVALUES_NEO4J=TMP_DBSYSTEMVALUES_NEO4J,DBSYSTEMVALUES_GEODE=TMP_DBSYSTEMVALUES_GEODE,DBSYSTEMVALUES_ELASTICSEARCH=TMP_DBSYSTEMVALUES_ELASTICSEARCH,DBSYSTEMVALUES_MEMCACHED=TMP_DBSYSTEMVALUES_MEMCACHED,DBSYSTEMVALUES_COCKROACHDB=TMP_DBSYSTEMVALUES_COCKROACHDB,DbSystemValues=createConstMap([TMP_DBSYSTEMVALUES_OTHER_SQL,TMP_DBSYSTEMVALUES_MSSQL,TMP_DBSYSTEMVALUES_MYSQL,TMP_DBSYSTEMVALUES_ORACLE,TMP_DBSYSTEMVALUES_DB2,TMP_DBSYSTEMVALUES_POSTGRESQL,TMP_DBSYSTEMVALUES_REDSHIFT,TMP_DBSYSTEMVALUES_HIVE,TMP_DBSYSTEMVALUES_CLOUDSCAPE,TMP_DBSYSTEMVALUES_HSQLDB,TMP_DBSYSTEMVALUES_PROGRESS,TMP_DBSYSTEMVALUES_MAXDB,TMP_DBSYSTEMVALUES_HANADB,TMP_DBSYSTEMVALUES_INGRES,TMP_DBSYSTEMVALUES_FIRSTSQL,TMP_DBSYSTEMVALUES_EDB,TMP_DBSYSTEMVALUES_CACHE,TMP_DBSYSTEMVALUES_ADABAS,TMP_DBSYSTEMVALUES_FIREBIRD,TMP_DBSYSTEMVALUES_DERBY,TMP_DBSYSTEMVALUES_FILEMAKER,TMP_DBSYSTEMVALUES_INFORMIX,TMP_DBSYSTEMVALUES_INSTANTDB,TMP_DBSYSTEMVALUES_INTERBASE,TMP_DBSYSTEMVALUES_MARIADB,TMP_DBSYSTEMVALUES_NETEZZA,TMP_DBSYSTEMVALUES_PERVASIVE,TMP_DBSYSTEMVALUES_POINTBASE,TMP_DBSYSTEMVALUES_SQLITE,TMP_DBSYSTEMVALUES_SYBASE,TMP_DBSYSTEMVALUES_TERADATA,TMP_DBSYSTEMVALUES_VERTICA,TMP_DBSYSTEMVALUES_H2,TMP_DBSYSTEMVALUES_COLDFUSION,TMP_DBSYSTEMVALUES_CASSANDRA,TMP_DBSYSTEMVALUES_HBASE,TMP_DBSYSTEMVALUES_MONGODB,TMP_DBSYSTEMVALUES_REDIS,TMP_DBSYSTEMVALUES_COUCHBASE,TMP_DBSYSTEMVALUES_COUCHDB,TMP_DBSYSTEMVALUES_COSMOSDB,TMP_DBSYSTEMVALUES_DYNAMODB,TMP_DBSYSTEMVALUES_NEO4J,TMP_DBSYSTEMVALUES_GEODE,TMP_DBSYSTEMVALUES_ELASTICSEARCH,TMP_DBSYSTEMVALUES_MEMCACHED,TMP_DBSYSTEMVALUES_COCKROACHDB]),TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL="all",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM="each_quorum",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM="quorum",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM="local_quorum",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE="one",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO="two",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE="three",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE="local_one",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY="any",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL="serial",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL="local_serial",DBCASSANDRACONSISTENCYLEVELVALUES_ALL=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_ONE=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_TWO=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO,DBCASSANDRACONSISTENCYLEVELVALUES_THREE=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_ANY=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL,DbCassandraConsistencyLevelValues=createConstMap([TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL]),TMP_FAASTRIGGERVALUES_DATASOURCE="datasource",TMP_FAASTRIGGERVALUES_HTTP="http",TMP_FAASTRIGGERVALUES_PUBSUB="pubsub",TMP_FAASTRIGGERVALUES_TIMER="timer",TMP_FAASTRIGGERVALUES_OTHER="other",FAASTRIGGERVALUES_DATASOURCE=TMP_FAASTRIGGERVALUES_DATASOURCE,FAASTRIGGERVALUES_HTTP=TMP_FAASTRIGGERVALUES_HTTP,FAASTRIGGERVALUES_PUBSUB=TMP_FAASTRIGGERVALUES_PUBSUB,FAASTRIGGERVALUES_TIMER=TMP_FAASTRIGGERVALUES_TIMER,FAASTRIGGERVALUES_OTHER=TMP_FAASTRIGGERVALUES_OTHER,FaasTriggerValues=createConstMap([TMP_FAASTRIGGERVALUES_DATASOURCE,TMP_FAASTRIGGERVALUES_HTTP,TMP_FAASTRIGGERVALUES_PUBSUB,TMP_FAASTRIGGERVALUES_TIMER,TMP_FAASTRIGGERVALUES_OTHER]),TMP_FAASDOCUMENTOPERATIONVALUES_INSERT="insert",TMP_FAASDOCUMENTOPERATIONVALUES_EDIT="edit",TMP_FAASDOCUMENTOPERATIONVALUES_DELETE="delete",FAASDOCUMENTOPERATIONVALUES_INSERT=TMP_FAASDOCUMENTOPERATIONVALUES_INSERT,FAASDOCUMENTOPERATIONVALUES_EDIT=TMP_FAASDOCUMENTOPERATIONVALUES_EDIT,FAASDOCUMENTOPERATIONVALUES_DELETE=TMP_FAASDOCUMENTOPERATIONVALUES_DELETE,FaasDocumentOperationValues=createConstMap([TMP_FAASDOCUMENTOPERATIONVALUES_INSERT,TMP_FAASDOCUMENTOPERATIONVALUES_EDIT,TMP_FAASDOCUMENTOPERATIONVALUES_DELETE]),TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD="alibaba_cloud",TMP_FAASINVOKEDPROVIDERVALUES_AWS="aws",TMP_FAASINVOKEDPROVIDERVALUES_AZURE="azure",TMP_FAASINVOKEDPROVIDERVALUES_GCP="gcp",FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD,FAASINVOKEDPROVIDERVALUES_AWS=TMP_FAASINVOKEDPROVIDERVALUES_AWS,FAASINVOKEDPROVIDERVALUES_AZURE=TMP_FAASINVOKEDPROVIDERVALUES_AZURE,FAASINVOKEDPROVIDERVALUES_GCP=TMP_FAASINVOKEDPROVIDERVALUES_GCP,FaasInvokedProviderValues=createConstMap([TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD,TMP_FAASINVOKEDPROVIDERVALUES_AWS,TMP_FAASINVOKEDPROVIDERVALUES_AZURE,TMP_FAASINVOKEDPROVIDERVALUES_GCP]),TMP_NETTRANSPORTVALUES_IP_TCP="ip_tcp",TMP_NETTRANSPORTVALUES_IP_UDP="ip_udp",TMP_NETTRANSPORTVALUES_IP="ip",TMP_NETTRANSPORTVALUES_UNIX="unix",TMP_NETTRANSPORTVALUES_PIPE="pipe",TMP_NETTRANSPORTVALUES_INPROC="inproc",TMP_NETTRANSPORTVALUES_OTHER="other",NETTRANSPORTVALUES_IP_TCP=TMP_NETTRANSPORTVALUES_IP_TCP,NETTRANSPORTVALUES_IP_UDP=TMP_NETTRANSPORTVALUES_IP_UDP,NETTRANSPORTVALUES_IP=TMP_NETTRANSPORTVALUES_IP,NETTRANSPORTVALUES_UNIX=TMP_NETTRANSPORTVALUES_UNIX,NETTRANSPORTVALUES_PIPE=TMP_NETTRANSPORTVALUES_PIPE,NETTRANSPORTVALUES_INPROC=TMP_NETTRANSPORTVALUES_INPROC,NETTRANSPORTVALUES_OTHER=TMP_NETTRANSPORTVALUES_OTHER,NetTransportValues=createConstMap([TMP_NETTRANSPORTVALUES_IP_TCP,TMP_NETTRANSPORTVALUES_IP_UDP,TMP_NETTRANSPORTVALUES_IP,TMP_NETTRANSPORTVALUES_UNIX,TMP_NETTRANSPORTVALUES_PIPE,TMP_NETTRANSPORTVALUES_INPROC,TMP_NETTRANSPORTVALUES_OTHER]),TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI="wifi",TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED="wired",TMP_NETHOSTCONNECTIONTYPEVALUES_CELL="cell",TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE="unavailable",TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN="unknown",NETHOSTCONNECTIONTYPEVALUES_WIFI=TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI,NETHOSTCONNECTIONTYPEVALUES_WIRED=TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED,NETHOSTCONNECTIONTYPEVALUES_CELL=TMP_NETHOSTCONNECTIONTYPEVALUES_CELL,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN,NetHostConnectionTypeValues=createConstMap([TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI,TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED,TMP_NETHOSTCONNECTIONTYPEVALUES_CELL,TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE,TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN]),TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS="gprs",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE="edge",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS="umts",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA="cdma",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0="evdo_0",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A="evdo_a",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT="cdma2000_1xrtt",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA="hsdpa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA="hsupa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA="hspa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN="iden",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B="evdo_b",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE="lte",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD="ehrpd",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP="hspap",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM="gsm",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA="td_scdma",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN="iwlan",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR="nr",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA="nrnsa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA="lte_ca",NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B,NETHOSTCONNECTIONSUBTYPEVALUES_LTE=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP,NETHOSTCONNECTIONSUBTYPEVALUES_GSM=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN,NETHOSTCONNECTIONSUBTYPEVALUES_NR=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA,NetHostConnectionSubtypeValues=createConstMap([TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA]),TMP_HTTPFLAVORVALUES_HTTP_1_0="1.0",TMP_HTTPFLAVORVALUES_HTTP_1_1="1.1",TMP_HTTPFLAVORVALUES_HTTP_2_0="2.0",TMP_HTTPFLAVORVALUES_SPDY="SPDY",TMP_HTTPFLAVORVALUES_QUIC="QUIC",HTTPFLAVORVALUES_HTTP_1_0=TMP_HTTPFLAVORVALUES_HTTP_1_0,HTTPFLAVORVALUES_HTTP_1_1=TMP_HTTPFLAVORVALUES_HTTP_1_1,HTTPFLAVORVALUES_HTTP_2_0=TMP_HTTPFLAVORVALUES_HTTP_2_0,HTTPFLAVORVALUES_SPDY=TMP_HTTPFLAVORVALUES_SPDY,HTTPFLAVORVALUES_QUIC=TMP_HTTPFLAVORVALUES_QUIC,HttpFlavorValues={HTTP_1_0:TMP_HTTPFLAVORVALUES_HTTP_1_0,HTTP_1_1:TMP_HTTPFLAVORVALUES_HTTP_1_1,HTTP_2_0:TMP_HTTPFLAVORVALUES_HTTP_2_0,SPDY:TMP_HTTPFLAVORVALUES_SPDY,QUIC:TMP_HTTPFLAVORVALUES_QUIC},TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE="queue",TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC="topic",MESSAGINGDESTINATIONKINDVALUES_QUEUE=TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE,MESSAGINGDESTINATIONKINDVALUES_TOPIC=TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC,MessagingDestinationKindValues=createConstMap([TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE,TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC]),TMP_MESSAGINGOPERATIONVALUES_RECEIVE="receive",TMP_MESSAGINGOPERATIONVALUES_PROCESS="process",MESSAGINGOPERATIONVALUES_RECEIVE=TMP_MESSAGINGOPERATIONVALUES_RECEIVE,MESSAGINGOPERATIONVALUES_PROCESS=TMP_MESSAGINGOPERATIONVALUES_PROCESS,MessagingOperationValues=createConstMap([TMP_MESSAGINGOPERATIONVALUES_RECEIVE,TMP_MESSAGINGOPERATIONVALUES_PROCESS]),TMP_RPCGRPCSTATUSCODEVALUES_OK=0,TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED=1,TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN=2,TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=3,TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=4,TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND=5,TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=6,TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=7,TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=8,TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=9,TMP_RPCGRPCSTATUSCODEVALUES_ABORTED=10,TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=11,TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=12,TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL=13,TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=14,TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS=15,TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=16,RPCGRPCSTATUSCODEVALUES_OK=TMP_RPCGRPCSTATUSCODEVALUES_OK,RPCGRPCSTATUSCODEVALUES_CANCELLED=TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED,RPCGRPCSTATUSCODEVALUES_UNKNOWN=TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED,RPCGRPCSTATUSCODEVALUES_NOT_FOUND=TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION,RPCGRPCSTATUSCODEVALUES_ABORTED=TMP_RPCGRPCSTATUSCODEVALUES_ABORTED,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED,RPCGRPCSTATUSCODEVALUES_INTERNAL=TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE,RPCGRPCSTATUSCODEVALUES_DATA_LOSS=TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED,RpcGrpcStatusCodeValues={OK:TMP_RPCGRPCSTATUSCODEVALUES_OK,CANCELLED:TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED,UNKNOWN:TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN,INVALID_ARGUMENT:TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT,DEADLINE_EXCEEDED:TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED,NOT_FOUND:TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND,ALREADY_EXISTS:TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS,PERMISSION_DENIED:TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED,RESOURCE_EXHAUSTED:TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED,FAILED_PRECONDITION:TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION,ABORTED:TMP_RPCGRPCSTATUSCODEVALUES_ABORTED,OUT_OF_RANGE:TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE,UNIMPLEMENTED:TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED,INTERNAL:TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL,UNAVAILABLE:TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE,DATA_LOSS:TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS,UNAUTHENTICATED:TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED},TMP_MESSAGETYPEVALUES_SENT="SENT",TMP_MESSAGETYPEVALUES_RECEIVED="RECEIVED",MESSAGETYPEVALUES_SENT=TMP_MESSAGETYPEVALUES_SENT,MESSAGETYPEVALUES_RECEIVED=TMP_MESSAGETYPEVALUES_RECEIVED,MessageTypeValues=createConstMap([TMP_MESSAGETYPEVALUES_SENT,TMP_MESSAGETYPEVALUES_RECEIVED]),TMP_CLOUD_PROVIDER="cloud.provider",TMP_CLOUD_ACCOUNT_ID="cloud.account.id",TMP_CLOUD_REGION="cloud.region",TMP_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone",TMP_CLOUD_PLATFORM="cloud.platform",TMP_AWS_ECS_CONTAINER_ARN="aws.ecs.container.arn",TMP_AWS_ECS_CLUSTER_ARN="aws.ecs.cluster.arn",TMP_AWS_ECS_LAUNCHTYPE="aws.ecs.launchtype",TMP_AWS_ECS_TASK_ARN="aws.ecs.task.arn",TMP_AWS_ECS_TASK_FAMILY="aws.ecs.task.family",TMP_AWS_ECS_TASK_REVISION="aws.ecs.task.revision",TMP_AWS_EKS_CLUSTER_ARN="aws.eks.cluster.arn",TMP_AWS_LOG_GROUP_NAMES="aws.log.group.names",TMP_AWS_LOG_GROUP_ARNS="aws.log.group.arns",TMP_AWS_LOG_STREAM_NAMES="aws.log.stream.names",TMP_AWS_LOG_STREAM_ARNS="aws.log.stream.arns",TMP_CONTAINER_NAME="container.name",TMP_CONTAINER_ID="container.id",TMP_CONTAINER_RUNTIME="container.runtime",TMP_CONTAINER_IMAGE_NAME="container.image.name",TMP_CONTAINER_IMAGE_TAG="container.image.tag",TMP_DEPLOYMENT_ENVIRONMENT="deployment.environment",TMP_DEVICE_ID="device.id",TMP_DEVICE_MODEL_IDENTIFIER="device.model.identifier",TMP_DEVICE_MODEL_NAME="device.model.name",TMP_FAAS_NAME="faas.name",TMP_FAAS_ID="faas.id",TMP_FAAS_VERSION="faas.version",TMP_FAAS_INSTANCE="faas.instance",TMP_FAAS_MAX_MEMORY="faas.max_memory",TMP_HOST_ID="host.id",TMP_HOST_NAME="host.name",TMP_HOST_TYPE="host.type",TMP_HOST_ARCH="host.arch",TMP_HOST_IMAGE_NAME="host.image.name",TMP_HOST_IMAGE_ID="host.image.id",TMP_HOST_IMAGE_VERSION="host.image.version",TMP_K8S_CLUSTER_NAME="k8s.cluster.name",TMP_K8S_NODE_NAME="k8s.node.name",TMP_K8S_NODE_UID="k8s.node.uid",TMP_K8S_NAMESPACE_NAME="k8s.namespace.name",TMP_K8S_POD_UID="k8s.pod.uid",TMP_K8S_POD_NAME="k8s.pod.name",TMP_K8S_CONTAINER_NAME="k8s.container.name",TMP_K8S_REPLICASET_UID="k8s.replicaset.uid",TMP_K8S_REPLICASET_NAME="k8s.replicaset.name",TMP_K8S_DEPLOYMENT_UID="k8s.deployment.uid",TMP_K8S_DEPLOYMENT_NAME="k8s.deployment.name",TMP_K8S_STATEFULSET_UID="k8s.statefulset.uid",TMP_K8S_STATEFULSET_NAME="k8s.statefulset.name",TMP_K8S_DAEMONSET_UID="k8s.daemonset.uid",TMP_K8S_DAEMONSET_NAME="k8s.daemonset.name",TMP_K8S_JOB_UID="k8s.job.uid",TMP_K8S_JOB_NAME="k8s.job.name",TMP_K8S_CRONJOB_UID="k8s.cronjob.uid",TMP_K8S_CRONJOB_NAME="k8s.cronjob.name",TMP_OS_TYPE="os.type",TMP_OS_DESCRIPTION="os.description",TMP_OS_NAME="os.name",TMP_OS_VERSION="os.version",TMP_PROCESS_PID="process.pid",TMP_PROCESS_EXECUTABLE_NAME="process.executable.name",TMP_PROCESS_EXECUTABLE_PATH="process.executable.path",TMP_PROCESS_COMMAND="process.command",TMP_PROCESS_COMMAND_LINE="process.command_line",TMP_PROCESS_COMMAND_ARGS="process.command_args",TMP_PROCESS_OWNER="process.owner",TMP_PROCESS_RUNTIME_NAME="process.runtime.name",TMP_PROCESS_RUNTIME_VERSION="process.runtime.version",TMP_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description",TMP_SERVICE_NAME="service.name",TMP_SERVICE_NAMESPACE="service.namespace",TMP_SERVICE_INSTANCE_ID="service.instance.id",TMP_SERVICE_VERSION="service.version",TMP_TELEMETRY_SDK_NAME="telemetry.sdk.name",TMP_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language",TMP_TELEMETRY_SDK_VERSION="telemetry.sdk.version",TMP_TELEMETRY_AUTO_VERSION="telemetry.auto.version",TMP_WEBENGINE_NAME="webengine.name",TMP_WEBENGINE_VERSION="webengine.version",TMP_WEBENGINE_DESCRIPTION="webengine.description",SEMRESATTRS_CLOUD_PROVIDER=TMP_CLOUD_PROVIDER,SEMRESATTRS_CLOUD_ACCOUNT_ID=TMP_CLOUD_ACCOUNT_ID,SEMRESATTRS_CLOUD_REGION=TMP_CLOUD_REGION,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=TMP_CLOUD_AVAILABILITY_ZONE,SEMRESATTRS_CLOUD_PLATFORM=TMP_CLOUD_PLATFORM,SEMRESATTRS_AWS_ECS_CONTAINER_ARN=TMP_AWS_ECS_CONTAINER_ARN,SEMRESATTRS_AWS_ECS_CLUSTER_ARN=TMP_AWS_ECS_CLUSTER_ARN,SEMRESATTRS_AWS_ECS_LAUNCHTYPE=TMP_AWS_ECS_LAUNCHTYPE,SEMRESATTRS_AWS_ECS_TASK_ARN=TMP_AWS_ECS_TASK_ARN,SEMRESATTRS_AWS_ECS_TASK_FAMILY=TMP_AWS_ECS_TASK_FAMILY,SEMRESATTRS_AWS_ECS_TASK_REVISION=TMP_AWS_ECS_TASK_REVISION,SEMRESATTRS_AWS_EKS_CLUSTER_ARN=TMP_AWS_EKS_CLUSTER_ARN,SEMRESATTRS_AWS_LOG_GROUP_NAMES=TMP_AWS_LOG_GROUP_NAMES,SEMRESATTRS_AWS_LOG_GROUP_ARNS=TMP_AWS_LOG_GROUP_ARNS,SEMRESATTRS_AWS_LOG_STREAM_NAMES=TMP_AWS_LOG_STREAM_NAMES,SEMRESATTRS_AWS_LOG_STREAM_ARNS=TMP_AWS_LOG_STREAM_ARNS,SEMRESATTRS_CONTAINER_NAME=TMP_CONTAINER_NAME,SEMRESATTRS_CONTAINER_ID=TMP_CONTAINER_ID,SEMRESATTRS_CONTAINER_RUNTIME=TMP_CONTAINER_RUNTIME,SEMRESATTRS_CONTAINER_IMAGE_NAME=TMP_CONTAINER_IMAGE_NAME,SEMRESATTRS_CONTAINER_IMAGE_TAG=TMP_CONTAINER_IMAGE_TAG,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=TMP_DEPLOYMENT_ENVIRONMENT,SEMRESATTRS_DEVICE_ID=TMP_DEVICE_ID,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=TMP_DEVICE_MODEL_IDENTIFIER,SEMRESATTRS_DEVICE_MODEL_NAME=TMP_DEVICE_MODEL_NAME,SEMRESATTRS_FAAS_NAME=TMP_FAAS_NAME,SEMRESATTRS_FAAS_ID=TMP_FAAS_ID,SEMRESATTRS_FAAS_VERSION=TMP_FAAS_VERSION,SEMRESATTRS_FAAS_INSTANCE=TMP_FAAS_INSTANCE,SEMRESATTRS_FAAS_MAX_MEMORY=TMP_FAAS_MAX_MEMORY,SEMRESATTRS_HOST_ID=TMP_HOST_ID,SEMRESATTRS_HOST_NAME=TMP_HOST_NAME,SEMRESATTRS_HOST_TYPE=TMP_HOST_TYPE,SEMRESATTRS_HOST_ARCH=TMP_HOST_ARCH,SEMRESATTRS_HOST_IMAGE_NAME=TMP_HOST_IMAGE_NAME,SEMRESATTRS_HOST_IMAGE_ID=TMP_HOST_IMAGE_ID,SEMRESATTRS_HOST_IMAGE_VERSION=TMP_HOST_IMAGE_VERSION,SEMRESATTRS_K8S_CLUSTER_NAME=TMP_K8S_CLUSTER_NAME,SEMRESATTRS_K8S_NODE_NAME=TMP_K8S_NODE_NAME,SEMRESATTRS_K8S_NODE_UID=TMP_K8S_NODE_UID,SEMRESATTRS_K8S_NAMESPACE_NAME=TMP_K8S_NAMESPACE_NAME,SEMRESATTRS_K8S_POD_UID=TMP_K8S_POD_UID,SEMRESATTRS_K8S_POD_NAME=TMP_K8S_POD_NAME,SEMRESATTRS_K8S_CONTAINER_NAME=TMP_K8S_CONTAINER_NAME,SEMRESATTRS_K8S_REPLICASET_UID=TMP_K8S_REPLICASET_UID,SEMRESATTRS_K8S_REPLICASET_NAME=TMP_K8S_REPLICASET_NAME,SEMRESATTRS_K8S_DEPLOYMENT_UID=TMP_K8S_DEPLOYMENT_UID,SEMRESATTRS_K8S_DEPLOYMENT_NAME=TMP_K8S_DEPLOYMENT_NAME,SEMRESATTRS_K8S_STATEFULSET_UID=TMP_K8S_STATEFULSET_UID,SEMRESATTRS_K8S_STATEFULSET_NAME=TMP_K8S_STATEFULSET_NAME,SEMRESATTRS_K8S_DAEMONSET_UID=TMP_K8S_DAEMONSET_UID,SEMRESATTRS_K8S_DAEMONSET_NAME=TMP_K8S_DAEMONSET_NAME,SEMRESATTRS_K8S_JOB_UID=TMP_K8S_JOB_UID,SEMRESATTRS_K8S_JOB_NAME=TMP_K8S_JOB_NAME,SEMRESATTRS_K8S_CRONJOB_UID=TMP_K8S_CRONJOB_UID,SEMRESATTRS_K8S_CRONJOB_NAME=TMP_K8S_CRONJOB_NAME,SEMRESATTRS_OS_TYPE=TMP_OS_TYPE,SEMRESATTRS_OS_DESCRIPTION=TMP_OS_DESCRIPTION,SEMRESATTRS_OS_NAME=TMP_OS_NAME,SEMRESATTRS_OS_VERSION=TMP_OS_VERSION,SEMRESATTRS_PROCESS_PID=TMP_PROCESS_PID,SEMRESATTRS_PROCESS_EXECUTABLE_NAME=TMP_PROCESS_EXECUTABLE_NAME,SEMRESATTRS_PROCESS_EXECUTABLE_PATH=TMP_PROCESS_EXECUTABLE_PATH,SEMRESATTRS_PROCESS_COMMAND=TMP_PROCESS_COMMAND,SEMRESATTRS_PROCESS_COMMAND_LINE=TMP_PROCESS_COMMAND_LINE,SEMRESATTRS_PROCESS_COMMAND_ARGS=TMP_PROCESS_COMMAND_ARGS,SEMRESATTRS_PROCESS_OWNER=TMP_PROCESS_OWNER,SEMRESATTRS_PROCESS_RUNTIME_NAME=TMP_PROCESS_RUNTIME_NAME,SEMRESATTRS_PROCESS_RUNTIME_VERSION=TMP_PROCESS_RUNTIME_VERSION,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=TMP_PROCESS_RUNTIME_DESCRIPTION,SEMRESATTRS_SERVICE_NAME=TMP_SERVICE_NAME,SEMRESATTRS_SERVICE_NAMESPACE=TMP_SERVICE_NAMESPACE,SEMRESATTRS_SERVICE_INSTANCE_ID=TMP_SERVICE_INSTANCE_ID,SEMRESATTRS_SERVICE_VERSION=TMP_SERVICE_VERSION,SEMRESATTRS_TELEMETRY_SDK_NAME=TMP_TELEMETRY_SDK_NAME,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=TMP_TELEMETRY_SDK_LANGUAGE,SEMRESATTRS_TELEMETRY_SDK_VERSION=TMP_TELEMETRY_SDK_VERSION,SEMRESATTRS_TELEMETRY_AUTO_VERSION=TMP_TELEMETRY_AUTO_VERSION,SEMRESATTRS_WEBENGINE_NAME=TMP_WEBENGINE_NAME,SEMRESATTRS_WEBENGINE_VERSION=TMP_WEBENGINE_VERSION,SEMRESATTRS_WEBENGINE_DESCRIPTION=TMP_WEBENGINE_DESCRIPTION,SemanticResourceAttributes=createConstMap([TMP_CLOUD_PROVIDER,TMP_CLOUD_ACCOUNT_ID,TMP_CLOUD_REGION,TMP_CLOUD_AVAILABILITY_ZONE,TMP_CLOUD_PLATFORM,TMP_AWS_ECS_CONTAINER_ARN,TMP_AWS_ECS_CLUSTER_ARN,TMP_AWS_ECS_LAUNCHTYPE,TMP_AWS_ECS_TASK_ARN,TMP_AWS_ECS_TASK_FAMILY,TMP_AWS_ECS_TASK_REVISION,TMP_AWS_EKS_CLUSTER_ARN,TMP_AWS_LOG_GROUP_NAMES,TMP_AWS_LOG_GROUP_ARNS,TMP_AWS_LOG_STREAM_NAMES,TMP_AWS_LOG_STREAM_ARNS,TMP_CONTAINER_NAME,TMP_CONTAINER_ID,TMP_CONTAINER_RUNTIME,TMP_CONTAINER_IMAGE_NAME,TMP_CONTAINER_IMAGE_TAG,TMP_DEPLOYMENT_ENVIRONMENT,TMP_DEVICE_ID,TMP_DEVICE_MODEL_IDENTIFIER,TMP_DEVICE_MODEL_NAME,TMP_FAAS_NAME,TMP_FAAS_ID,TMP_FAAS_VERSION,TMP_FAAS_INSTANCE,TMP_FAAS_MAX_MEMORY,TMP_HOST_ID,TMP_HOST_NAME,TMP_HOST_TYPE,TMP_HOST_ARCH,TMP_HOST_IMAGE_NAME,TMP_HOST_IMAGE_ID,TMP_HOST_IMAGE_VERSION,TMP_K8S_CLUSTER_NAME,TMP_K8S_NODE_NAME,TMP_K8S_NODE_UID,TMP_K8S_NAMESPACE_NAME,TMP_K8S_POD_UID,TMP_K8S_POD_NAME,TMP_K8S_CONTAINER_NAME,TMP_K8S_REPLICASET_UID,TMP_K8S_REPLICASET_NAME,TMP_K8S_DEPLOYMENT_UID,TMP_K8S_DEPLOYMENT_NAME,TMP_K8S_STATEFULSET_UID,TMP_K8S_STATEFULSET_NAME,TMP_K8S_DAEMONSET_UID,TMP_K8S_DAEMONSET_NAME,TMP_K8S_JOB_UID,TMP_K8S_JOB_NAME,TMP_K8S_CRONJOB_UID,TMP_K8S_CRONJOB_NAME,TMP_OS_TYPE,TMP_OS_DESCRIPTION,TMP_OS_NAME,TMP_OS_VERSION,TMP_PROCESS_PID,TMP_PROCESS_EXECUTABLE_NAME,TMP_PROCESS_EXECUTABLE_PATH,TMP_PROCESS_COMMAND,TMP_PROCESS_COMMAND_LINE,TMP_PROCESS_COMMAND_ARGS,TMP_PROCESS_OWNER,TMP_PROCESS_RUNTIME_NAME,TMP_PROCESS_RUNTIME_VERSION,TMP_PROCESS_RUNTIME_DESCRIPTION,TMP_SERVICE_NAME,TMP_SERVICE_NAMESPACE,TMP_SERVICE_INSTANCE_ID,TMP_SERVICE_VERSION,TMP_TELEMETRY_SDK_NAME,TMP_TELEMETRY_SDK_LANGUAGE,TMP_TELEMETRY_SDK_VERSION,TMP_TELEMETRY_AUTO_VERSION,TMP_WEBENGINE_NAME,TMP_WEBENGINE_VERSION,TMP_WEBENGINE_DESCRIPTION]),TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD="alibaba_cloud",TMP_CLOUDPROVIDERVALUES_AWS="aws",TMP_CLOUDPROVIDERVALUES_AZURE="azure",TMP_CLOUDPROVIDERVALUES_GCP="gcp",CLOUDPROVIDERVALUES_ALIBABA_CLOUD=TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD,CLOUDPROVIDERVALUES_AWS=TMP_CLOUDPROVIDERVALUES_AWS,CLOUDPROVIDERVALUES_AZURE=TMP_CLOUDPROVIDERVALUES_AZURE,CLOUDPROVIDERVALUES_GCP=TMP_CLOUDPROVIDERVALUES_GCP,CloudProviderValues=createConstMap([TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD,TMP_CLOUDPROVIDERVALUES_AWS,TMP_CLOUDPROVIDERVALUES_AZURE,TMP_CLOUDPROVIDERVALUES_GCP]),TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS="alibaba_cloud_ecs",TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC="alibaba_cloud_fc",TMP_CLOUDPLATFORMVALUES_AWS_EC2="aws_ec2",TMP_CLOUDPLATFORMVALUES_AWS_ECS="aws_ecs",TMP_CLOUDPLATFORMVALUES_AWS_EKS="aws_eks",TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA="aws_lambda",TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",TMP_CLOUDPLATFORMVALUES_AZURE_VM="azure_vm",TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES="azure_container_instances",TMP_CLOUDPLATFORMVALUES_AZURE_AKS="azure_aks",TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS="azure_functions",TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE="azure_app_service",TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE="gcp_compute_engine",TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN="gcp_cloud_run",TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE="gcp_app_engine",CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,CLOUDPLATFORMVALUES_AWS_EC2=TMP_CLOUDPLATFORMVALUES_AWS_EC2,CLOUDPLATFORMVALUES_AWS_ECS=TMP_CLOUDPLATFORMVALUES_AWS_ECS,CLOUDPLATFORMVALUES_AWS_EKS=TMP_CLOUDPLATFORMVALUES_AWS_EKS,CLOUDPLATFORMVALUES_AWS_LAMBDA=TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,CLOUDPLATFORMVALUES_AZURE_VM=TMP_CLOUDPLATFORMVALUES_AZURE_VM,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,CLOUDPLATFORMVALUES_AZURE_AKS=TMP_CLOUDPLATFORMVALUES_AZURE_AKS,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,CLOUDPLATFORMVALUES_GCP_APP_ENGINE=TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE,CloudPlatformValues=createConstMap([TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,TMP_CLOUDPLATFORMVALUES_AWS_EC2,TMP_CLOUDPLATFORMVALUES_AWS_ECS,TMP_CLOUDPLATFORMVALUES_AWS_EKS,TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA,TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,TMP_CLOUDPLATFORMVALUES_AZURE_VM,TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,TMP_CLOUDPLATFORMVALUES_AZURE_AKS,TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE]),TMP_AWSECSLAUNCHTYPEVALUES_EC2="ec2",TMP_AWSECSLAUNCHTYPEVALUES_FARGATE="fargate",AWSECSLAUNCHTYPEVALUES_EC2=TMP_AWSECSLAUNCHTYPEVALUES_EC2,AWSECSLAUNCHTYPEVALUES_FARGATE=TMP_AWSECSLAUNCHTYPEVALUES_FARGATE,AwsEcsLaunchtypeValues=createConstMap([TMP_AWSECSLAUNCHTYPEVALUES_EC2,TMP_AWSECSLAUNCHTYPEVALUES_FARGATE]),TMP_HOSTARCHVALUES_AMD64="amd64",TMP_HOSTARCHVALUES_ARM32="arm32",TMP_HOSTARCHVALUES_ARM64="arm64",TMP_HOSTARCHVALUES_IA64="ia64",TMP_HOSTARCHVALUES_PPC32="ppc32",TMP_HOSTARCHVALUES_PPC64="ppc64",TMP_HOSTARCHVALUES_X86="x86",HOSTARCHVALUES_AMD64=TMP_HOSTARCHVALUES_AMD64,HOSTARCHVALUES_ARM32=TMP_HOSTARCHVALUES_ARM32,HOSTARCHVALUES_ARM64=TMP_HOSTARCHVALUES_ARM64,HOSTARCHVALUES_IA64=TMP_HOSTARCHVALUES_IA64,HOSTARCHVALUES_PPC32=TMP_HOSTARCHVALUES_PPC32,HOSTARCHVALUES_PPC64=TMP_HOSTARCHVALUES_PPC64,HOSTARCHVALUES_X86=TMP_HOSTARCHVALUES_X86,HostArchValues=createConstMap([TMP_HOSTARCHVALUES_AMD64,TMP_HOSTARCHVALUES_ARM32,TMP_HOSTARCHVALUES_ARM64,TMP_HOSTARCHVALUES_IA64,TMP_HOSTARCHVALUES_PPC32,TMP_HOSTARCHVALUES_PPC64,TMP_HOSTARCHVALUES_X86]),TMP_OSTYPEVALUES_WINDOWS="windows",TMP_OSTYPEVALUES_LINUX="linux",TMP_OSTYPEVALUES_DARWIN="darwin",TMP_OSTYPEVALUES_FREEBSD="freebsd",TMP_OSTYPEVALUES_NETBSD="netbsd",TMP_OSTYPEVALUES_OPENBSD="openbsd",TMP_OSTYPEVALUES_DRAGONFLYBSD="dragonflybsd",TMP_OSTYPEVALUES_HPUX="hpux",TMP_OSTYPEVALUES_AIX="aix",TMP_OSTYPEVALUES_SOLARIS="solaris",TMP_OSTYPEVALUES_Z_OS="z_os",OSTYPEVALUES_WINDOWS=TMP_OSTYPEVALUES_WINDOWS,OSTYPEVALUES_LINUX=TMP_OSTYPEVALUES_LINUX,OSTYPEVALUES_DARWIN=TMP_OSTYPEVALUES_DARWIN,OSTYPEVALUES_FREEBSD=TMP_OSTYPEVALUES_FREEBSD,OSTYPEVALUES_NETBSD=TMP_OSTYPEVALUES_NETBSD,OSTYPEVALUES_OPENBSD=TMP_OSTYPEVALUES_OPENBSD,OSTYPEVALUES_DRAGONFLYBSD=TMP_OSTYPEVALUES_DRAGONFLYBSD,OSTYPEVALUES_HPUX=TMP_OSTYPEVALUES_HPUX,OSTYPEVALUES_AIX=TMP_OSTYPEVALUES_AIX,OSTYPEVALUES_SOLARIS=TMP_OSTYPEVALUES_SOLARIS,OSTYPEVALUES_Z_OS=TMP_OSTYPEVALUES_Z_OS,OsTypeValues=createConstMap([TMP_OSTYPEVALUES_WINDOWS,TMP_OSTYPEVALUES_LINUX,TMP_OSTYPEVALUES_DARWIN,TMP_OSTYPEVALUES_FREEBSD,TMP_OSTYPEVALUES_NETBSD,TMP_OSTYPEVALUES_OPENBSD,TMP_OSTYPEVALUES_DRAGONFLYBSD,TMP_OSTYPEVALUES_HPUX,TMP_OSTYPEVALUES_AIX,TMP_OSTYPEVALUES_SOLARIS,TMP_OSTYPEVALUES_Z_OS]),TMP_TELEMETRYSDKLANGUAGEVALUES_CPP="cpp",TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET="dotnet",TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG="erlang",TMP_TELEMETRYSDKLANGUAGEVALUES_GO="go",TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA="java",TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS="nodejs",TMP_TELEMETRYSDKLANGUAGEVALUES_PHP="php",TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON="python",TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY="ruby",TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS="webjs",TELEMETRYSDKLANGUAGEVALUES_CPP=TMP_TELEMETRYSDKLANGUAGEVALUES_CPP,TELEMETRYSDKLANGUAGEVALUES_DOTNET=TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET,TELEMETRYSDKLANGUAGEVALUES_ERLANG=TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG,TELEMETRYSDKLANGUAGEVALUES_GO=TMP_TELEMETRYSDKLANGUAGEVALUES_GO,TELEMETRYSDKLANGUAGEVALUES_JAVA=TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA,TELEMETRYSDKLANGUAGEVALUES_NODEJS=TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS,TELEMETRYSDKLANGUAGEVALUES_PHP=TMP_TELEMETRYSDKLANGUAGEVALUES_PHP,TELEMETRYSDKLANGUAGEVALUES_PYTHON=TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON,TELEMETRYSDKLANGUAGEVALUES_RUBY=TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY,TELEMETRYSDKLANGUAGEVALUES_WEBJS=TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS,TelemetrySdkLanguageValues=createConstMap([TMP_TELEMETRYSDKLANGUAGEVALUES_CPP,TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET,TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG,TMP_TELEMETRYSDKLANGUAGEVALUES_GO,TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA,TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS,TMP_TELEMETRYSDKLANGUAGEVALUES_PHP,TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON,TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY,TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS]),ATTR_ASPNETCORE_RATE_LIMITING_RESULT="aspnetcore.rate_limiting.result",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED="acquired",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER="endpoint_limiter",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER="global_limiter",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED="request_canceled",ATTR_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language",TELEMETRY_SDK_LANGUAGE_VALUE_CPP="cpp",TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET="dotnet",TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG="erlang",TELEMETRY_SDK_LANGUAGE_VALUE_GO="go",TELEMETRY_SDK_LANGUAGE_VALUE_JAVA="java",TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS="nodejs",TELEMETRY_SDK_LANGUAGE_VALUE_PHP="php",TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON="python",TELEMETRY_SDK_LANGUAGE_VALUE_RUBY="ruby",TELEMETRY_SDK_LANGUAGE_VALUE_RUST="rust",TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT="swift",TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS="webjs",ATTR_TELEMETRY_SDK_NAME="telemetry.sdk.name",ATTR_TELEMETRY_SDK_VERSION="telemetry.sdk.version",ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE="aspnetcore.diagnostics.handler.type",ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT="aspnetcore.diagnostics.exception.result",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED="aborted",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED="handled",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED="skipped",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED="unhandled",ATTR_ASPNETCORE_RATE_LIMITING_POLICY="aspnetcore.rate_limiting.policy",ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED="aspnetcore.request.is_unhandled",ATTR_ASPNETCORE_ROUTING_IS_FALLBACK="aspnetcore.routing.is_fallback",ATTR_ASPNETCORE_ROUTING_MATCH_STATUS="aspnetcore.routing.match_status",ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE="failure",ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS="success",ATTR_CLIENT_ADDRESS="client.address",ATTR_CLIENT_PORT="client.port",ATTR_ERROR_TYPE="error.type",ERROR_TYPE_VALUE_OTHER="_OTHER",ATTR_EXCEPTION_ESCAPED="exception.escaped",ATTR_EXCEPTION_MESSAGE="exception.message",ATTR_EXCEPTION_STACKTRACE="exception.stacktrace",ATTR_EXCEPTION_TYPE="exception.type",ATTR_HTTP_REQUEST_HEADER=function(S){return"http.request.header."+S},ATTR_HTTP_REQUEST_METHOD="http.request.method",HTTP_REQUEST_METHOD_VALUE_OTHER="_OTHER",HTTP_REQUEST_METHOD_VALUE_CONNECT="CONNECT",HTTP_REQUEST_METHOD_VALUE_DELETE="DELETE",HTTP_REQUEST_METHOD_VALUE_GET="GET",HTTP_REQUEST_METHOD_VALUE_HEAD="HEAD",HTTP_REQUEST_METHOD_VALUE_OPTIONS="OPTIONS",HTTP_REQUEST_METHOD_VALUE_PATCH="PATCH",HTTP_REQUEST_METHOD_VALUE_POST="POST",HTTP_REQUEST_METHOD_VALUE_PUT="PUT",HTTP_REQUEST_METHOD_VALUE_TRACE="TRACE",ATTR_HTTP_REQUEST_METHOD_ORIGINAL="http.request.method_original",ATTR_HTTP_REQUEST_RESEND_COUNT="http.request.resend_count",ATTR_HTTP_RESPONSE_HEADER=function(S){return"http.response.header."+S},ATTR_HTTP_RESPONSE_STATUS_CODE="http.response.status_code",ATTR_HTTP_ROUTE="http.route",ATTR_JVM_GC_ACTION="jvm.gc.action",ATTR_JVM_GC_NAME="jvm.gc.name",ATTR_JVM_MEMORY_POOL_NAME="jvm.memory.pool.name",ATTR_JVM_MEMORY_TYPE="jvm.memory.type",JVM_MEMORY_TYPE_VALUE_HEAP="heap",JVM_MEMORY_TYPE_VALUE_NON_HEAP="non_heap",ATTR_JVM_THREAD_DAEMON="jvm.thread.daemon",ATTR_JVM_THREAD_STATE="jvm.thread.state",JVM_THREAD_STATE_VALUE_BLOCKED="blocked",JVM_THREAD_STATE_VALUE_NEW="new",JVM_THREAD_STATE_VALUE_RUNNABLE="runnable",JVM_THREAD_STATE_VALUE_TERMINATED="terminated",JVM_THREAD_STATE_VALUE_TIMED_WAITING="timed_waiting",JVM_THREAD_STATE_VALUE_WAITING="waiting",ATTR_NETWORK_LOCAL_ADDRESS="network.local.address",ATTR_NETWORK_LOCAL_PORT="network.local.port",ATTR_NETWORK_PEER_ADDRESS="network.peer.address",ATTR_NETWORK_PEER_PORT="network.peer.port",ATTR_NETWORK_PROTOCOL_NAME="network.protocol.name",ATTR_NETWORK_PROTOCOL_VERSION="network.protocol.version",ATTR_NETWORK_TRANSPORT="network.transport",NETWORK_TRANSPORT_VALUE_PIPE="pipe",NETWORK_TRANSPORT_VALUE_QUIC="quic",NETWORK_TRANSPORT_VALUE_TCP="tcp",NETWORK_TRANSPORT_VALUE_UDP="udp",NETWORK_TRANSPORT_VALUE_UNIX="unix",ATTR_NETWORK_TYPE="network.type",NETWORK_TYPE_VALUE_IPV4="ipv4",NETWORK_TYPE_VALUE_IPV6="ipv6",ATTR_OTEL_SCOPE_NAME="otel.scope.name",ATTR_OTEL_SCOPE_VERSION="otel.scope.version",ATTR_OTEL_STATUS_CODE="otel.status_code",OTEL_STATUS_CODE_VALUE_ERROR="ERROR",OTEL_STATUS_CODE_VALUE_OK="OK",ATTR_OTEL_STATUS_DESCRIPTION="otel.status_description",ATTR_SERVER_ADDRESS="server.address",ATTR_SERVER_PORT="server.port",ATTR_SERVICE_NAME="service.name",ATTR_SERVICE_VERSION="service.version",ATTR_SIGNALR_CONNECTION_STATUS="signalr.connection.status",SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN="app_shutdown",SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE="normal_closure",SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT="timeout",ATTR_SIGNALR_TRANSPORT="signalr.transport",SIGNALR_TRANSPORT_VALUE_LONG_POLLING="long_polling",SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS="server_sent_events",SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS="web_sockets",ATTR_URL_FRAGMENT="url.fragment",ATTR_URL_FULL="url.full",ATTR_URL_PATH="url.path",ATTR_URL_QUERY="url.query",ATTR_URL_SCHEME="url.scheme",ATTR_USER_AGENT_ORIGINAL="user_agent.original",METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS="aspnetcore.diagnostics.exceptions",METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES="aspnetcore.rate_limiting.active_request_leases",METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS="aspnetcore.rate_limiting.queued_requests",METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE="aspnetcore.rate_limiting.request.time_in_queue",METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION="aspnetcore.rate_limiting.request_lease.duration",METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS="aspnetcore.rate_limiting.requests",METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS="aspnetcore.routing.match_attempts",METRIC_HTTP_CLIENT_REQUEST_DURATION="http.client.request.duration",METRIC_HTTP_SERVER_REQUEST_DURATION="http.server.request.duration",METRIC_JVM_CLASS_COUNT="jvm.class.count",METRIC_JVM_CLASS_LOADED="jvm.class.loaded",METRIC_JVM_CLASS_UNLOADED="jvm.class.unloaded",METRIC_JVM_CPU_COUNT="jvm.cpu.count",METRIC_JVM_CPU_RECENT_UTILIZATION="jvm.cpu.recent_utilization",METRIC_JVM_CPU_TIME="jvm.cpu.time",METRIC_JVM_GC_DURATION="jvm.gc.duration",METRIC_JVM_MEMORY_COMMITTED="jvm.memory.committed",METRIC_JVM_MEMORY_LIMIT="jvm.memory.limit",METRIC_JVM_MEMORY_USED="jvm.memory.used",METRIC_JVM_MEMORY_USED_AFTER_LAST_GC="jvm.memory.used_after_last_gc",METRIC_JVM_THREAD_COUNT="jvm.thread.count",METRIC_KESTREL_ACTIVE_CONNECTIONS="kestrel.active_connections",METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES="kestrel.active_tls_handshakes",METRIC_KESTREL_CONNECTION_DURATION="kestrel.connection.duration",METRIC_KESTREL_QUEUED_CONNECTIONS="kestrel.queued_connections",METRIC_KESTREL_QUEUED_REQUESTS="kestrel.queued_requests",METRIC_KESTREL_REJECTED_CONNECTIONS="kestrel.rejected_connections",METRIC_KESTREL_TLS_HANDSHAKE_DURATION="kestrel.tls_handshake.duration",METRIC_KESTREL_UPGRADED_CONNECTIONS="kestrel.upgraded_connections",METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS="signalr.server.active_connections",METRIC_SIGNALR_SERVER_CONNECTION_DURATION="signalr.server.connection.duration";const esm$1=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE,ATTR_ASPNETCORE_RATE_LIMITING_POLICY,ATTR_ASPNETCORE_RATE_LIMITING_RESULT,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS,ATTR_CLIENT_ADDRESS,ATTR_CLIENT_PORT,ATTR_ERROR_TYPE,ATTR_EXCEPTION_ESCAPED,ATTR_EXCEPTION_MESSAGE,ATTR_EXCEPTION_STACKTRACE,ATTR_EXCEPTION_TYPE,ATTR_HTTP_REQUEST_HEADER,ATTR_HTTP_REQUEST_METHOD,ATTR_HTTP_REQUEST_METHOD_ORIGINAL,ATTR_HTTP_REQUEST_RESEND_COUNT,ATTR_HTTP_RESPONSE_HEADER,ATTR_HTTP_RESPONSE_STATUS_CODE,ATTR_HTTP_ROUTE,ATTR_JVM_GC_ACTION,ATTR_JVM_GC_NAME,ATTR_JVM_MEMORY_POOL_NAME,ATTR_JVM_MEMORY_TYPE,ATTR_JVM_THREAD_DAEMON,ATTR_JVM_THREAD_STATE,ATTR_NETWORK_LOCAL_ADDRESS,ATTR_NETWORK_LOCAL_PORT,ATTR_NETWORK_PEER_ADDRESS,ATTR_NETWORK_PEER_PORT,ATTR_NETWORK_PROTOCOL_NAME,ATTR_NETWORK_PROTOCOL_VERSION,ATTR_NETWORK_TRANSPORT,ATTR_NETWORK_TYPE,ATTR_OTEL_SCOPE_NAME,ATTR_OTEL_SCOPE_VERSION,ATTR_OTEL_STATUS_CODE,ATTR_OTEL_STATUS_DESCRIPTION,ATTR_SERVER_ADDRESS,ATTR_SERVER_PORT,ATTR_SERVICE_NAME,ATTR_SERVICE_VERSION,ATTR_SIGNALR_CONNECTION_STATUS,ATTR_SIGNALR_TRANSPORT,ATTR_TELEMETRY_SDK_LANGUAGE,ATTR_TELEMETRY_SDK_NAME,ATTR_TELEMETRY_SDK_VERSION,ATTR_URL_FRAGMENT,ATTR_URL_FULL,ATTR_URL_PATH,ATTR_URL_QUERY,ATTR_URL_SCHEME,ATTR_USER_AGENT_ORIGINAL,AWSECSLAUNCHTYPEVALUES_EC2,AWSECSLAUNCHTYPEVALUES_FARGATE,AwsEcsLaunchtypeValues,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,CLOUDPLATFORMVALUES_AWS_EC2,CLOUDPLATFORMVALUES_AWS_ECS,CLOUDPLATFORMVALUES_AWS_EKS,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,CLOUDPLATFORMVALUES_AWS_LAMBDA,CLOUDPLATFORMVALUES_AZURE_AKS,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,CLOUDPLATFORMVALUES_AZURE_VM,CLOUDPLATFORMVALUES_GCP_APP_ENGINE,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,CLOUDPROVIDERVALUES_ALIBABA_CLOUD,CLOUDPROVIDERVALUES_AWS,CLOUDPROVIDERVALUES_AZURE,CLOUDPROVIDERVALUES_GCP,CloudPlatformValues,CloudProviderValues,DBCASSANDRACONSISTENCYLEVELVALUES_ALL,DBCASSANDRACONSISTENCYLEVELVALUES_ANY,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL,DBCASSANDRACONSISTENCYLEVELVALUES_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL,DBCASSANDRACONSISTENCYLEVELVALUES_THREE,DBCASSANDRACONSISTENCYLEVELVALUES_TWO,DBSYSTEMVALUES_ADABAS,DBSYSTEMVALUES_CACHE,DBSYSTEMVALUES_CASSANDRA,DBSYSTEMVALUES_CLOUDSCAPE,DBSYSTEMVALUES_COCKROACHDB,DBSYSTEMVALUES_COLDFUSION,DBSYSTEMVALUES_COSMOSDB,DBSYSTEMVALUES_COUCHBASE,DBSYSTEMVALUES_COUCHDB,DBSYSTEMVALUES_DB2,DBSYSTEMVALUES_DERBY,DBSYSTEMVALUES_DYNAMODB,DBSYSTEMVALUES_EDB,DBSYSTEMVALUES_ELASTICSEARCH,DBSYSTEMVALUES_FILEMAKER,DBSYSTEMVALUES_FIREBIRD,DBSYSTEMVALUES_FIRSTSQL,DBSYSTEMVALUES_GEODE,DBSYSTEMVALUES_H2,DBSYSTEMVALUES_HANADB,DBSYSTEMVALUES_HBASE,DBSYSTEMVALUES_HIVE,DBSYSTEMVALUES_HSQLDB,DBSYSTEMVALUES_INFORMIX,DBSYSTEMVALUES_INGRES,DBSYSTEMVALUES_INSTANTDB,DBSYSTEMVALUES_INTERBASE,DBSYSTEMVALUES_MARIADB,DBSYSTEMVALUES_MAXDB,DBSYSTEMVALUES_MEMCACHED,DBSYSTEMVALUES_MONGODB,DBSYSTEMVALUES_MSSQL,DBSYSTEMVALUES_MYSQL,DBSYSTEMVALUES_NEO4J,DBSYSTEMVALUES_NETEZZA,DBSYSTEMVALUES_ORACLE,DBSYSTEMVALUES_OTHER_SQL,DBSYSTEMVALUES_PERVASIVE,DBSYSTEMVALUES_POINTBASE,DBSYSTEMVALUES_POSTGRESQL,DBSYSTEMVALUES_PROGRESS,DBSYSTEMVALUES_REDIS,DBSYSTEMVALUES_REDSHIFT,DBSYSTEMVALUES_SQLITE,DBSYSTEMVALUES_SYBASE,DBSYSTEMVALUES_TERADATA,DBSYSTEMVALUES_VERTICA,DbCassandraConsistencyLevelValues,DbSystemValues,ERROR_TYPE_VALUE_OTHER,FAASDOCUMENTOPERATIONVALUES_DELETE,FAASDOCUMENTOPERATIONVALUES_EDIT,FAASDOCUMENTOPERATIONVALUES_INSERT,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD,FAASINVOKEDPROVIDERVALUES_AWS,FAASINVOKEDPROVIDERVALUES_AZURE,FAASINVOKEDPROVIDERVALUES_GCP,FAASTRIGGERVALUES_DATASOURCE,FAASTRIGGERVALUES_HTTP,FAASTRIGGERVALUES_OTHER,FAASTRIGGERVALUES_PUBSUB,FAASTRIGGERVALUES_TIMER,FaasDocumentOperationValues,FaasInvokedProviderValues,FaasTriggerValues,HOSTARCHVALUES_AMD64,HOSTARCHVALUES_ARM32,HOSTARCHVALUES_ARM64,HOSTARCHVALUES_IA64,HOSTARCHVALUES_PPC32,HOSTARCHVALUES_PPC64,HOSTARCHVALUES_X86,HTTPFLAVORVALUES_HTTP_1_0,HTTPFLAVORVALUES_HTTP_1_1,HTTPFLAVORVALUES_HTTP_2_0,HTTPFLAVORVALUES_QUIC,HTTPFLAVORVALUES_SPDY,HTTP_REQUEST_METHOD_VALUE_CONNECT,HTTP_REQUEST_METHOD_VALUE_DELETE,HTTP_REQUEST_METHOD_VALUE_GET,HTTP_REQUEST_METHOD_VALUE_HEAD,HTTP_REQUEST_METHOD_VALUE_OPTIONS,HTTP_REQUEST_METHOD_VALUE_OTHER,HTTP_REQUEST_METHOD_VALUE_PATCH,HTTP_REQUEST_METHOD_VALUE_POST,HTTP_REQUEST_METHOD_VALUE_PUT,HTTP_REQUEST_METHOD_VALUE_TRACE,HostArchValues,HttpFlavorValues,JVM_MEMORY_TYPE_VALUE_HEAP,JVM_MEMORY_TYPE_VALUE_NON_HEAP,JVM_THREAD_STATE_VALUE_BLOCKED,JVM_THREAD_STATE_VALUE_NEW,JVM_THREAD_STATE_VALUE_RUNNABLE,JVM_THREAD_STATE_VALUE_TERMINATED,JVM_THREAD_STATE_VALUE_TIMED_WAITING,JVM_THREAD_STATE_VALUE_WAITING,MESSAGETYPEVALUES_RECEIVED,MESSAGETYPEVALUES_SENT,MESSAGINGDESTINATIONKINDVALUES_QUEUE,MESSAGINGDESTINATIONKINDVALUES_TOPIC,MESSAGINGOPERATIONVALUES_PROCESS,MESSAGINGOPERATIONVALUES_RECEIVE,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS,METRIC_HTTP_CLIENT_REQUEST_DURATION,METRIC_HTTP_SERVER_REQUEST_DURATION,METRIC_JVM_CLASS_COUNT,METRIC_JVM_CLASS_LOADED,METRIC_JVM_CLASS_UNLOADED,METRIC_JVM_CPU_COUNT,METRIC_JVM_CPU_RECENT_UTILIZATION,METRIC_JVM_CPU_TIME,METRIC_JVM_GC_DURATION,METRIC_JVM_MEMORY_COMMITTED,METRIC_JVM_MEMORY_LIMIT,METRIC_JVM_MEMORY_USED,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC,METRIC_JVM_THREAD_COUNT,METRIC_KESTREL_ACTIVE_CONNECTIONS,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES,METRIC_KESTREL_CONNECTION_DURATION,METRIC_KESTREL_QUEUED_CONNECTIONS,METRIC_KESTREL_QUEUED_REQUESTS,METRIC_KESTREL_REJECTED_CONNECTIONS,METRIC_KESTREL_TLS_HANDSHAKE_DURATION,METRIC_KESTREL_UPGRADED_CONNECTIONS,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS,METRIC_SIGNALR_SERVER_CONNECTION_DURATION,MessageTypeValues,MessagingDestinationKindValues,MessagingOperationValues,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS,NETHOSTCONNECTIONSUBTYPEVALUES_GSM,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN,NETHOSTCONNECTIONSUBTYPEVALUES_LTE,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA,NETHOSTCONNECTIONSUBTYPEVALUES_NR,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS,NETHOSTCONNECTIONTYPEVALUES_CELL,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN,NETHOSTCONNECTIONTYPEVALUES_WIFI,NETHOSTCONNECTIONTYPEVALUES_WIRED,NETTRANSPORTVALUES_INPROC,NETTRANSPORTVALUES_IP,NETTRANSPORTVALUES_IP_TCP,NETTRANSPORTVALUES_IP_UDP,NETTRANSPORTVALUES_OTHER,NETTRANSPORTVALUES_PIPE,NETTRANSPORTVALUES_UNIX,NETWORK_TRANSPORT_VALUE_PIPE,NETWORK_TRANSPORT_VALUE_QUIC,NETWORK_TRANSPORT_VALUE_TCP,NETWORK_TRANSPORT_VALUE_UDP,NETWORK_TRANSPORT_VALUE_UNIX,NETWORK_TYPE_VALUE_IPV4,NETWORK_TYPE_VALUE_IPV6,NetHostConnectionSubtypeValues,NetHostConnectionTypeValues,NetTransportValues,OSTYPEVALUES_AIX,OSTYPEVALUES_DARWIN,OSTYPEVALUES_DRAGONFLYBSD,OSTYPEVALUES_FREEBSD,OSTYPEVALUES_HPUX,OSTYPEVALUES_LINUX,OSTYPEVALUES_NETBSD,OSTYPEVALUES_OPENBSD,OSTYPEVALUES_SOLARIS,OSTYPEVALUES_WINDOWS,OSTYPEVALUES_Z_OS,OTEL_STATUS_CODE_VALUE_ERROR,OTEL_STATUS_CODE_VALUE_OK,OsTypeValues,RPCGRPCSTATUSCODEVALUES_ABORTED,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS,RPCGRPCSTATUSCODEVALUES_CANCELLED,RPCGRPCSTATUSCODEVALUES_DATA_LOSS,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION,RPCGRPCSTATUSCODEVALUES_INTERNAL,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT,RPCGRPCSTATUSCODEVALUES_NOT_FOUND,RPCGRPCSTATUSCODEVALUES_OK,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED,RPCGRPCSTATUSCODEVALUES_UNKNOWN,RpcGrpcStatusCodeValues,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY,SEMATTRS_AWS_DYNAMODB_COUNT,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES,SEMATTRS_AWS_DYNAMODB_INDEX_NAME,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS,SEMATTRS_AWS_DYNAMODB_LIMIT,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_PROJECTION,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD,SEMATTRS_AWS_DYNAMODB_SEGMENT,SEMATTRS_AWS_DYNAMODB_SELECT,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS,SEMATTRS_AWS_LAMBDA_INVOKED_ARN,SEMATTRS_CODE_FILEPATH,SEMATTRS_CODE_FUNCTION,SEMATTRS_CODE_LINENO,SEMATTRS_CODE_NAMESPACE,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE,SEMATTRS_DB_CASSANDRA_KEYSPACE,SEMATTRS_DB_CASSANDRA_PAGE_SIZE,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT,SEMATTRS_DB_CASSANDRA_TABLE,SEMATTRS_DB_CONNECTION_STRING,SEMATTRS_DB_HBASE_NAMESPACE,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME,SEMATTRS_DB_MONGODB_COLLECTION,SEMATTRS_DB_MSSQL_INSTANCE_NAME,SEMATTRS_DB_NAME,SEMATTRS_DB_OPERATION,SEMATTRS_DB_REDIS_DATABASE_INDEX,SEMATTRS_DB_SQL_TABLE,SEMATTRS_DB_STATEMENT,SEMATTRS_DB_SYSTEM,SEMATTRS_DB_USER,SEMATTRS_ENDUSER_ID,SEMATTRS_ENDUSER_ROLE,SEMATTRS_ENDUSER_SCOPE,SEMATTRS_EXCEPTION_ESCAPED,SEMATTRS_EXCEPTION_MESSAGE,SEMATTRS_EXCEPTION_STACKTRACE,SEMATTRS_EXCEPTION_TYPE,SEMATTRS_FAAS_COLDSTART,SEMATTRS_FAAS_CRON,SEMATTRS_FAAS_DOCUMENT_COLLECTION,SEMATTRS_FAAS_DOCUMENT_NAME,SEMATTRS_FAAS_DOCUMENT_OPERATION,SEMATTRS_FAAS_DOCUMENT_TIME,SEMATTRS_FAAS_EXECUTION,SEMATTRS_FAAS_INVOKED_NAME,SEMATTRS_FAAS_INVOKED_PROVIDER,SEMATTRS_FAAS_INVOKED_REGION,SEMATTRS_FAAS_TIME,SEMATTRS_FAAS_TRIGGER,SEMATTRS_HTTP_CLIENT_IP,SEMATTRS_HTTP_FLAVOR,SEMATTRS_HTTP_HOST,SEMATTRS_HTTP_METHOD,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_ROUTE,SEMATTRS_HTTP_SCHEME,SEMATTRS_HTTP_SERVER_NAME,SEMATTRS_HTTP_STATUS_CODE,SEMATTRS_HTTP_TARGET,SEMATTRS_HTTP_URL,SEMATTRS_HTTP_USER_AGENT,SEMATTRS_MESSAGE_COMPRESSED_SIZE,SEMATTRS_MESSAGE_ID,SEMATTRS_MESSAGE_TYPE,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE,SEMATTRS_MESSAGING_CONSUMER_ID,SEMATTRS_MESSAGING_CONVERSATION_ID,SEMATTRS_MESSAGING_DESTINATION,SEMATTRS_MESSAGING_DESTINATION_KIND,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY,SEMATTRS_MESSAGING_KAFKA_PARTITION,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE,SEMATTRS_MESSAGING_MESSAGE_ID,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES,SEMATTRS_MESSAGING_OPERATION,SEMATTRS_MESSAGING_PROTOCOL,SEMATTRS_MESSAGING_PROTOCOL_VERSION,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY,SEMATTRS_MESSAGING_SYSTEM,SEMATTRS_MESSAGING_TEMP_DESTINATION,SEMATTRS_MESSAGING_URL,SEMATTRS_NET_HOST_CARRIER_ICC,SEMATTRS_NET_HOST_CARRIER_MCC,SEMATTRS_NET_HOST_CARRIER_MNC,SEMATTRS_NET_HOST_CARRIER_NAME,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE,SEMATTRS_NET_HOST_CONNECTION_TYPE,SEMATTRS_NET_HOST_IP,SEMATTRS_NET_HOST_NAME,SEMATTRS_NET_HOST_PORT,SEMATTRS_NET_PEER_IP,SEMATTRS_NET_PEER_NAME,SEMATTRS_NET_PEER_PORT,SEMATTRS_NET_TRANSPORT,SEMATTRS_PEER_SERVICE,SEMATTRS_RPC_GRPC_STATUS_CODE,SEMATTRS_RPC_JSONRPC_ERROR_CODE,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE,SEMATTRS_RPC_JSONRPC_REQUEST_ID,SEMATTRS_RPC_JSONRPC_VERSION,SEMATTRS_RPC_METHOD,SEMATTRS_RPC_SERVICE,SEMATTRS_RPC_SYSTEM,SEMATTRS_THREAD_ID,SEMATTRS_THREAD_NAME,SEMRESATTRS_AWS_ECS_CLUSTER_ARN,SEMRESATTRS_AWS_ECS_CONTAINER_ARN,SEMRESATTRS_AWS_ECS_LAUNCHTYPE,SEMRESATTRS_AWS_ECS_TASK_ARN,SEMRESATTRS_AWS_ECS_TASK_FAMILY,SEMRESATTRS_AWS_ECS_TASK_REVISION,SEMRESATTRS_AWS_EKS_CLUSTER_ARN,SEMRESATTRS_AWS_LOG_GROUP_ARNS,SEMRESATTRS_AWS_LOG_GROUP_NAMES,SEMRESATTRS_AWS_LOG_STREAM_ARNS,SEMRESATTRS_AWS_LOG_STREAM_NAMES,SEMRESATTRS_CLOUD_ACCOUNT_ID,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE,SEMRESATTRS_CLOUD_PLATFORM,SEMRESATTRS_CLOUD_PROVIDER,SEMRESATTRS_CLOUD_REGION,SEMRESATTRS_CONTAINER_ID,SEMRESATTRS_CONTAINER_IMAGE_NAME,SEMRESATTRS_CONTAINER_IMAGE_TAG,SEMRESATTRS_CONTAINER_NAME,SEMRESATTRS_CONTAINER_RUNTIME,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT,SEMRESATTRS_DEVICE_ID,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER,SEMRESATTRS_DEVICE_MODEL_NAME,SEMRESATTRS_FAAS_ID,SEMRESATTRS_FAAS_INSTANCE,SEMRESATTRS_FAAS_MAX_MEMORY,SEMRESATTRS_FAAS_NAME,SEMRESATTRS_FAAS_VERSION,SEMRESATTRS_HOST_ARCH,SEMRESATTRS_HOST_ID,SEMRESATTRS_HOST_IMAGE_ID,SEMRESATTRS_HOST_IMAGE_NAME,SEMRESATTRS_HOST_IMAGE_VERSION,SEMRESATTRS_HOST_NAME,SEMRESATTRS_HOST_TYPE,SEMRESATTRS_K8S_CLUSTER_NAME,SEMRESATTRS_K8S_CONTAINER_NAME,SEMRESATTRS_K8S_CRONJOB_NAME,SEMRESATTRS_K8S_CRONJOB_UID,SEMRESATTRS_K8S_DAEMONSET_NAME,SEMRESATTRS_K8S_DAEMONSET_UID,SEMRESATTRS_K8S_DEPLOYMENT_NAME,SEMRESATTRS_K8S_DEPLOYMENT_UID,SEMRESATTRS_K8S_JOB_NAME,SEMRESATTRS_K8S_JOB_UID,SEMRESATTRS_K8S_NAMESPACE_NAME,SEMRESATTRS_K8S_NODE_NAME,SEMRESATTRS_K8S_NODE_UID,SEMRESATTRS_K8S_POD_NAME,SEMRESATTRS_K8S_POD_UID,SEMRESATTRS_K8S_REPLICASET_NAME,SEMRESATTRS_K8S_REPLICASET_UID,SEMRESATTRS_K8S_STATEFULSET_NAME,SEMRESATTRS_K8S_STATEFULSET_UID,SEMRESATTRS_OS_DESCRIPTION,SEMRESATTRS_OS_NAME,SEMRESATTRS_OS_TYPE,SEMRESATTRS_OS_VERSION,SEMRESATTRS_PROCESS_COMMAND,SEMRESATTRS_PROCESS_COMMAND_ARGS,SEMRESATTRS_PROCESS_COMMAND_LINE,SEMRESATTRS_PROCESS_EXECUTABLE_NAME,SEMRESATTRS_PROCESS_EXECUTABLE_PATH,SEMRESATTRS_PROCESS_OWNER,SEMRESATTRS_PROCESS_PID,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION,SEMRESATTRS_PROCESS_RUNTIME_NAME,SEMRESATTRS_PROCESS_RUNTIME_VERSION,SEMRESATTRS_SERVICE_INSTANCE_ID,SEMRESATTRS_SERVICE_NAME,SEMRESATTRS_SERVICE_NAMESPACE,SEMRESATTRS_SERVICE_VERSION,SEMRESATTRS_TELEMETRY_AUTO_VERSION,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE,SEMRESATTRS_TELEMETRY_SDK_NAME,SEMRESATTRS_TELEMETRY_SDK_VERSION,SEMRESATTRS_WEBENGINE_DESCRIPTION,SEMRESATTRS_WEBENGINE_NAME,SEMRESATTRS_WEBENGINE_VERSION,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT,SIGNALR_TRANSPORT_VALUE_LONG_POLLING,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS,SemanticAttributes,SemanticResourceAttributes,TELEMETRYSDKLANGUAGEVALUES_CPP,TELEMETRYSDKLANGUAGEVALUES_DOTNET,TELEMETRYSDKLANGUAGEVALUES_ERLANG,TELEMETRYSDKLANGUAGEVALUES_GO,TELEMETRYSDKLANGUAGEVALUES_JAVA,TELEMETRYSDKLANGUAGEVALUES_NODEJS,TELEMETRYSDKLANGUAGEVALUES_PHP,TELEMETRYSDKLANGUAGEVALUES_PYTHON,TELEMETRYSDKLANGUAGEVALUES_RUBY,TELEMETRYSDKLANGUAGEVALUES_WEBJS,TELEMETRY_SDK_LANGUAGE_VALUE_CPP,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG,TELEMETRY_SDK_LANGUAGE_VALUE_GO,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,TELEMETRY_SDK_LANGUAGE_VALUE_PHP,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY,TELEMETRY_SDK_LANGUAGE_VALUE_RUST,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,TelemetrySdkLanguageValues},Symbol.toStringTag,{value:"Module"}));var _a$1,SDK_INFO=(_a$1={},_a$1[SEMRESATTRS_TELEMETRY_SDK_NAME]="opentelemetry",_a$1[SEMRESATTRS_PROCESS_RUNTIME_NAME]="browser",_a$1[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=TELEMETRYSDKLANGUAGEVALUES_WEBJS,_a$1[SEMRESATTRS_TELEMETRY_SDK_VERSION]=VERSION$2,_a$1);function unrefTimer(S){}var NANOSECOND_DIGITS=9,NANOSECOND_DIGITS_IN_MILLIS=6,MILLISECONDS_TO_NANOSECONDS=Math.pow(10,NANOSECOND_DIGITS_IN_MILLIS),SECOND_TO_NANOSECONDS=Math.pow(10,NANOSECOND_DIGITS);function millisToHrTime(S){var T=S/1e3,A=Math.trunc(T),O=Math.round(S%1e3*MILLISECONDS_TO_NANOSECONDS);return[A,O]}function getTimeOrigin(){var S=otperformance.timeOrigin;if(typeof S!="number"){var T=otperformance;S=T.timing&&T.timing.fetchStart}return S}function hrTime(S){var T=millisToHrTime(getTimeOrigin()),A=millisToHrTime(typeof S=="number"?S:otperformance.now());return addHrTimes(T,A)}function timeInputToHrTime(S){if(isTimeInputHrTime(S))return S;if(typeof S=="number")return S<getTimeOrigin()?hrTime(S):millisToHrTime(S);if(S instanceof Date)return millisToHrTime(S.getTime());throw TypeError("Invalid input type")}function hrTimeDuration(S,T){var A=T[0]-S[0],O=T[1]-S[1];return O<0&&(A-=1,O+=SECOND_TO_NANOSECONDS),[A,O]}function hrTimeToTimeStamp(S){var T=NANOSECOND_DIGITS,A=""+"0".repeat(T)+S[1]+"Z",O=A.substring(A.length-T-1),P=new Date(S[0]*1e3).toISOString();return P.replace("000Z",O)}function hrTimeToNanoseconds(S){return S[0]*SECOND_TO_NANOSECONDS+S[1]}function hrTimeToMilliseconds(S){return S[0]*1e3+S[1]/1e6}function hrTimeToMicroseconds(S){return S[0]*1e6+S[1]/1e3}function isTimeInputHrTime(S){return Array.isArray(S)&&S.length===2&&typeof S[0]=="number"&&typeof S[1]=="number"}function isTimeInput(S){return isTimeInputHrTime(S)||typeof S=="number"||S instanceof Date}function addHrTimes(S,T){var A=[S[0]+T[0],S[1]+T[1]];return A[1]>=SECOND_TO_NANOSECONDS&&(A[1]-=SECOND_TO_NANOSECONDS,A[0]+=1),A}var ExportResultCode;(function(S){S[S.SUCCESS=0]="SUCCESS",S[S.FAILED=1]="FAILED"})(ExportResultCode||(ExportResultCode={}));var __values$6=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},CompositePropagator=(function(){function S(T){T===void 0&&(T={});var A;this._propagators=(A=T.propagators)!==null&&A!==void 0?A:[],this._fields=Array.from(new Set(this._propagators.map(function(O){return typeof O.fields=="function"?O.fields():[]}).reduce(function(O,P){return O.concat(P)},[])))}return S.prototype.inject=function(T,A,O){var P,R;try{for(var M=__values$6(this._propagators),D=M.next();!D.done;D=M.next()){var U=D.value;try{U.inject(T,A,O)}catch(C){diag.warn("Failed to inject with "+U.constructor.name+". Err: "+C.message)}}}catch(C){P={error:C}}finally{try{D&&!D.done&&(R=M.return)&&R.call(M)}finally{if(P)throw P.error}}},S.prototype.extract=function(T,A,O){return this._propagators.reduce(function(P,R){try{return R.extract(P,A,O)}catch(M){diag.warn("Failed to extract with "+R.constructor.name+". Err: "+M.message)}return P},T)},S.prototype.fields=function(){return this._fields.slice()},S})(),VALID_KEY_CHAR_RANGE="[_0-9a-z-*/]",VALID_KEY="[a-z]"+VALID_KEY_CHAR_RANGE+"{0,255}",VALID_VENDOR_KEY="[a-z0-9]"+VALID_KEY_CHAR_RANGE+"{0,240}@[a-z]"+VALID_KEY_CHAR_RANGE+"{0,13}",VALID_KEY_REGEX=new RegExp("^(?:"+VALID_KEY+"|"+VALID_VENDOR_KEY+")$"),VALID_VALUE_BASE_REGEX=/^[ -~]{0,255}[!-~]$/,INVALID_VALUE_COMMA_EQUAL_REGEX=/,|=/;function validateKey(S){return VALID_KEY_REGEX.test(S)}function validateValue(S){return VALID_VALUE_BASE_REGEX.test(S)&&!INVALID_VALUE_COMMA_EQUAL_REGEX.test(S)}var MAX_TRACE_STATE_ITEMS=32,MAX_TRACE_STATE_LEN=512,LIST_MEMBERS_SEPARATOR=",",LIST_MEMBER_KEY_VALUE_SPLITTER="=",TraceState=(function(){function S(T){this._internalState=new Map,T&&this._parse(T)}return S.prototype.set=function(T,A){var O=this._clone();return O._internalState.has(T)&&O._internalState.delete(T),O._internalState.set(T,A),O},S.prototype.unset=function(T){var A=this._clone();return A._internalState.delete(T),A},S.prototype.get=function(T){return this._internalState.get(T)},S.prototype.serialize=function(){var T=this;return this._keys().reduce(function(A,O){return A.push(O+LIST_MEMBER_KEY_VALUE_SPLITTER+T.get(O)),A},[]).join(LIST_MEMBERS_SEPARATOR)},S.prototype._parse=function(T){T.length>MAX_TRACE_STATE_LEN||(this._internalState=T.split(LIST_MEMBERS_SEPARATOR).reverse().reduce(function(A,O){var P=O.trim(),R=P.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);if(R!==-1){var M=P.slice(0,R),D=P.slice(R+1,O.length);validateKey(M)&&validateValue(D)&&A.set(M,D)}return A},new Map),this._internalState.size>MAX_TRACE_STATE_ITEMS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MAX_TRACE_STATE_ITEMS))))},S.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},S.prototype._clone=function(){var T=new S;return T._internalState=new Map(this._internalState),T},S})(),TRACE_PARENT_HEADER="traceparent",TRACE_STATE_HEADER="tracestate",VERSION$1="00",VERSION_PART="(?!ff)[\\da-f]{2}",TRACE_ID_PART="(?![0]{32})[\\da-f]{32}",PARENT_ID_PART="(?![0]{16})[\\da-f]{16}",FLAGS_PART="[\\da-f]{2}",TRACE_PARENT_REGEX=new RegExp("^\\s?("+VERSION_PART+")-("+TRACE_ID_PART+")-("+PARENT_ID_PART+")-("+FLAGS_PART+")(-.*)?\\s?$");function parseTraceParent(S){var T=TRACE_PARENT_REGEX.exec(S);return!T||T[1]==="00"&&T[5]?null:{traceId:T[2],spanId:T[3],traceFlags:parseInt(T[4],16)}}var W3CTraceContextPropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=trace.getSpanContext(T);if(!(!P||isTracingSuppressed(T)||!isSpanContextValid(P))){var R=VERSION$1+"-"+P.traceId+"-"+P.spanId+"-0"+Number(P.traceFlags||TraceFlags.NONE).toString(16);O.set(A,TRACE_PARENT_HEADER,R),P.traceState&&O.set(A,TRACE_STATE_HEADER,P.traceState.serialize())}},S.prototype.extract=function(T,A,O){var P=O.get(A,TRACE_PARENT_HEADER);if(!P)return T;var R=Array.isArray(P)?P[0]:P;if(typeof R!="string")return T;var M=parseTraceParent(R);if(!M)return T;M.isRemote=!0;var D=O.get(A,TRACE_STATE_HEADER);if(D){var U=Array.isArray(D)?D.join(","):D;M.traceState=new TraceState(typeof U=="string"?U:void 0)}return trace.setSpanContext(T,M)},S.prototype.fields=function(){return[TRACE_PARENT_HEADER,TRACE_STATE_HEADER]},S})(),RPC_METADATA_KEY=createContextKey("OpenTelemetry SDK Context Key RPC_METADATA"),RPCType;(function(S){S.HTTP="http"})(RPCType||(RPCType={}));function setRPCMetadata(S,T){return S.setValue(RPC_METADATA_KEY,T)}function deleteRPCMetadata(S){return S.deleteValue(RPC_METADATA_KEY)}function getRPCMetadata(S){return S.getValue(RPC_METADATA_KEY)}var AlwaysOffSampler$1=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision$1.NOT_RECORD}},S.prototype.toString=function(){return"AlwaysOffSampler"},S})(),AlwaysOnSampler$1=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision$1.RECORD_AND_SAMPLED}},S.prototype.toString=function(){return"AlwaysOnSampler"},S})(),ParentBasedSampler$1=(function(){function S(T){var A,O,P,R;this._root=T.root,this._root||(globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new AlwaysOnSampler$1),this._remoteParentSampled=(A=T.remoteParentSampled)!==null&&A!==void 0?A:new AlwaysOnSampler$1,this._remoteParentNotSampled=(O=T.remoteParentNotSampled)!==null&&O!==void 0?O:new AlwaysOffSampler$1,this._localParentSampled=(P=T.localParentSampled)!==null&&P!==void 0?P:new AlwaysOnSampler$1,this._localParentNotSampled=(R=T.localParentNotSampled)!==null&&R!==void 0?R:new AlwaysOffSampler$1}return S.prototype.shouldSample=function(T,A,O,P,R,M){var D=trace.getSpanContext(T);return!D||!isSpanContextValid(D)?this._root.shouldSample(T,A,O,P,R,M):D.isRemote?D.traceFlags&TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(T,A,O,P,R,M):this._remoteParentNotSampled.shouldSample(T,A,O,P,R,M):D.traceFlags&TraceFlags.SAMPLED?this._localParentSampled.shouldSample(T,A,O,P,R,M):this._localParentNotSampled.shouldSample(T,A,O,P,R,M)},S.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},S})(),TraceIdRatioBasedSampler$1=(function(){function S(T){T===void 0&&(T=0),this._ratio=T,this._ratio=this._normalize(T),this._upperBound=Math.floor(this._ratio*4294967295)}return S.prototype.shouldSample=function(T,A){return{decision:isValidTraceId(A)&&this._accumulate(A)<this._upperBound?SamplingDecision$1.RECORD_AND_SAMPLED:SamplingDecision$1.NOT_RECORD}},S.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},S.prototype._normalize=function(T){return typeof T!="number"||isNaN(T)?0:T>=1?1:T<=0?0:T},S.prototype._accumulate=function(T){for(var A=0,O=0;O<T.length/8;O++){var P=O*8,R=parseInt(T.slice(P,P+8),16);A=(A^R)>>>0}return A},S})(),objectTag="[object Object]",nullTag="[object Null]",undefinedTag="[object Undefined]",funcProto=Function.prototype,funcToString=funcProto.toString,objectCtorString=funcToString.call(Object),getPrototype=overArg(Object.getPrototypeOf,Object),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,symToStringTag=Symbol?Symbol.toStringTag:void 0,nativeObjectToString=objectProto.toString;function overArg(S,T){return function(A){return S(T(A))}}function isPlainObject(S){if(!isObjectLike(S)||baseGetTag(S)!==objectTag)return!1;var T=getPrototype(S);if(T===null)return!0;var A=hasOwnProperty.call(T,"constructor")&&T.constructor;return typeof A=="function"&&A instanceof A&&funcToString.call(A)===objectCtorString}function isObjectLike(S){return S!=null&&typeof S=="object"}function baseGetTag(S){return S==null?S===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(S)?getRawTag(S):objectToString(S)}function getRawTag(S){var T=hasOwnProperty.call(S,symToStringTag),A=S[symToStringTag],O=!1;try{S[symToStringTag]=void 0,O=!0}catch{}var P=nativeObjectToString.call(S);return O&&(T?S[symToStringTag]=A:delete S[symToStringTag]),P}function objectToString(S){return nativeObjectToString.call(S)}var MAX_LEVEL=20;function merge(){for(var S=[],T=0;T<arguments.length;T++)S[T]=arguments[T];for(var A=S.shift(),O=new WeakMap;S.length>0;)A=mergeTwoObjects(A,S.shift(),0,O);return A}function takeValue(S){return isArray(S)?S.slice():S}function mergeTwoObjects(S,T,A,O){A===void 0&&(A=0);var P;if(!(A>MAX_LEVEL)){if(A++,isPrimitive(S)||isPrimitive(T)||isFunction(T))P=takeValue(T);else if(isArray(S)){if(P=S.slice(),isArray(T))for(var R=0,M=T.length;R<M;R++)P.push(takeValue(T[R]));else if(isObject(T))for(var D=Object.keys(T),R=0,M=D.length;R<M;R++){var U=D[R];P[U]=takeValue(T[U])}}else if(isObject(S))if(isObject(T)){if(!shouldMerge(S,T))return T;P=Object.assign({},S);for(var D=Object.keys(T),R=0,M=D.length;R<M;R++){var U=D[R],C=T[U];if(isPrimitive(C))typeof C>"u"?delete P[U]:P[U]=C;else{var L=P[U],y=C;if(wasObjectReferenced(S,U,O)||wasObjectReferenced(T,U,O))delete P[U];else{if(isObject(L)&&isObject(y)){var _=O.get(L)||[],N=O.get(y)||[];_.push({obj:S,key:U}),N.push({obj:T,key:U}),O.set(L,_),O.set(y,N)}P[U]=mergeTwoObjects(P[U],C,A,O)}}}}else P=T;return P}}function wasObjectReferenced(S,T,A){for(var O=A.get(S[T])||[],P=0,R=O.length;P<R;P++){var M=O[P];if(M.key===T&&M.obj===S)return!0}return!1}function isArray(S){return Array.isArray(S)}function isFunction(S){return typeof S=="function"}function isObject(S){return!isPrimitive(S)&&!isArray(S)&&!isFunction(S)&&typeof S=="object"}function isPrimitive(S){return typeof S=="string"||typeof S=="number"||typeof S=="boolean"||typeof S>"u"||S instanceof Date||S instanceof RegExp||S===null}function shouldMerge(S,T){return!(!isPlainObject(S)||!isPlainObject(T))}var __extends$6=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),TimeoutError=(function(S){__extends$6(T,S);function T(A){var O=S.call(this,A)||this;return Object.setPrototypeOf(O,T.prototype),O}return T})(Error);function callWithTimeout(S,T){var A,O=new Promise(function(R,M){A=setTimeout(function(){M(new TimeoutError("Operation timed out."))},T)});return Promise.race([S,O]).then(function(P){return clearTimeout(A),P},function(P){throw clearTimeout(A),P})}var __values$5=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};function urlMatches(S,T){return typeof T=="string"?S===T:!!S.match(T)}function isUrlIgnored(S,T){var A,O;if(!T)return!1;try{for(var P=__values$5(T),R=P.next();!R.done;R=P.next()){var M=R.value;if(urlMatches(S,M))return!0}}catch(D){A={error:D}}finally{try{R&&!R.done&&(O=P.return)&&O.call(P)}finally{if(A)throw A.error}}return!1}function isWrapped$1(S){return typeof S=="function"&&typeof S.__original=="function"&&typeof S.__unwrap=="function"&&S.__wrapped===!0}var Deferred=(function(){function S(){var T=this;this._promise=new Promise(function(A,O){T._resolve=A,T._reject=O})}return Object.defineProperty(S.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),S.prototype.resolve=function(T){this._resolve(T)},S.prototype.reject=function(T){this._reject(T)},S})(),__read$b=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$4=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},BindOnceFuture=(function(){function S(T,A){this._callback=T,this._that=A,this._isCalled=!1,this._deferred=new Deferred}return Object.defineProperty(S.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),S.prototype.call=function(){for(var T,A=this,O=[],P=0;P<arguments.length;P++)O[P]=arguments[P];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((T=this._callback).call.apply(T,__spreadArray$4([this._that],__read$b(O),!1))).then(function(R){return A._deferred.resolve(R)},function(R){return A._deferred.reject(R)})}catch(R){this._deferred.reject(R)}}return this._deferred.promise},S})();function _export(S,T){return new Promise(function(A){context.with(suppressTracing(context.active()),function(){S.export(T,function(O){A(O)})})})}var baggageUtils={getKeyPairs,serializeKeyPairs,parseKeyPairsIntoRecord,parsePairKeyValue},internal={_export};const esm=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:AlwaysOffSampler$1,AlwaysOnSampler:AlwaysOnSampler$1,AnchoredClock,BindOnceFuture,CompositePropagator,DEFAULT_ATTRIBUTE_COUNT_LIMIT,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,DEFAULT_ENVIRONMENT,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,get ExportResultCode(){return ExportResultCode},ParentBasedSampler:ParentBasedSampler$1,get RPCType(){return RPCType},RandomIdGenerator:RandomIdGenerator$1,SDK_INFO,TRACE_PARENT_HEADER,TRACE_STATE_HEADER,TimeoutError,TraceIdRatioBasedSampler:TraceIdRatioBasedSampler$1,TraceState,get TracesSamplerValues(){return TracesSamplerValues},VERSION:VERSION$2,W3CBaggagePropagator,W3CTraceContextPropagator,_globalThis:_globalThis$1,addHrTimes,baggageUtils,callWithTimeout,deleteRPCMetadata,getEnv,getEnvWithoutDefaults,getRPCMetadata,getTimeOrigin,globalErrorHandler,hexToBase64,hexToBinary,hrTime,hrTimeDuration,hrTimeToMicroseconds,hrTimeToMilliseconds,hrTimeToNanoseconds,hrTimeToTimeStamp,internal,isAttributeKey,isAttributeValue,isTimeInput,isTimeInputHrTime,isTracingSuppressed,isUrlIgnored,isWrapped:isWrapped$1,loggingErrorHandler,merge,millisToHrTime,otperformance,parseEnvironment,parseTraceParent,sanitizeAttributes,setGlobalErrorHandler,setRPCMetadata,suppressTracing,timeInputToHrTime,unrefTimer,unsuppressTracing,urlMatches},Symbol.toStringTag,{value:"Module"}));var ExceptionEventName="exception",__assign$3=function(){return __assign$3=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign$3.apply(this,arguments)},__values$4=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$a=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$3=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},Span=(function(){function S(T,A,O,P,R,M,D,U,C,L){D===void 0&&(D=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=O,this._spanContext=P,this.parentSpanId=M,this.kind=R,this.links=D;var y=Date.now();this._performanceStartTime=otperformance.now(),this._performanceOffset=y-(this._performanceStartTime+getTimeOrigin()),this._startTimeProvided=U!=null,this.startTime=this._getTime(U??y),this.resource=T.resource,this.instrumentationLibrary=T.instrumentationLibrary,this._spanLimits=T.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,L!=null&&this.setAttributes(L),this._spanProcessor=T.getActiveSpanProcessor(),this._spanProcessor.onStart(this,A)}return S.prototype.spanContext=function(){return this._spanContext},S.prototype.setAttribute=function(T,A){return A==null||this._isSpanEnded()?this:T.length===0?(diag.warn("Invalid attribute key: "+T),this):isAttributeValue(A)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,T)?(this._droppedAttributesCount++,this):(this.attributes[T]=this._truncateToSize(A),this):(diag.warn("Invalid attribute value set for key: "+T),this)},S.prototype.setAttributes=function(T){var A,O;try{for(var P=__values$4(Object.entries(T)),R=P.next();!R.done;R=P.next()){var M=__read$a(R.value,2),D=M[0],U=M[1];this.setAttribute(D,U)}}catch(C){A={error:C}}finally{try{R&&!R.done&&(O=P.return)&&O.call(P)}finally{if(A)throw A.error}}return this},S.prototype.addEvent=function(T,A,O){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),isTimeInput(A)&&(isTimeInput(O)||(O=A),A=void 0);var P=sanitizeAttributes(A);return this.events.push({name:T,attributes:P,time:this._getTime(O),droppedAttributesCount:0}),this},S.prototype.addLink=function(T){return this.links.push(T),this},S.prototype.addLinks=function(T){var A;return(A=this.links).push.apply(A,__spreadArray$3([],__read$a(T),!1)),this},S.prototype.setStatus=function(T){return this._isSpanEnded()?this:(this.status=__assign$3({},T),this.status.message!=null&&typeof T.message!="string"&&(diag.warn("Dropping invalid status.message of type '"+typeof T.message+"', expected 'string'"),delete this.status.message),this)},S.prototype.updateName=function(T){return this._isSpanEnded()?this:(this.name=T,this)},S.prototype.end=function(T){if(this._isSpanEnded()){diag.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(T),this._duration=hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&(diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&diag.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},S.prototype._getTime=function(T){if(typeof T=="number"&&T<=otperformance.now())return hrTime(T+this._performanceOffset);if(typeof T=="number")return millisToHrTime(T);if(T instanceof Date)return millisToHrTime(T.getTime());if(isTimeInputHrTime(T))return T;if(this._startTimeProvided)return millisToHrTime(Date.now());var A=otperformance.now()-this._performanceStartTime;return addHrTimes(this.startTime,millisToHrTime(A))},S.prototype.isRecording=function(){return this._ended===!1},S.prototype.recordException=function(T,A){var O={};typeof T=="string"?O[SEMATTRS_EXCEPTION_MESSAGE]=T:T&&(T.code?O[SEMATTRS_EXCEPTION_TYPE]=T.code.toString():T.name&&(O[SEMATTRS_EXCEPTION_TYPE]=T.name),T.message&&(O[SEMATTRS_EXCEPTION_MESSAGE]=T.message),T.stack&&(O[SEMATTRS_EXCEPTION_STACKTRACE]=T.stack)),O[SEMATTRS_EXCEPTION_TYPE]||O[SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(ExceptionEventName,O,A):diag.warn("Failed to record an exception "+T)},Object.defineProperty(S.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),S.prototype._isSpanEnded=function(){return this._ended&&diag.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},S.prototype._truncateToLimitUtil=function(T,A){return T.length<=A?T:T.substring(0,A)},S.prototype._truncateToSize=function(T){var A=this,O=this._attributeValueLengthLimit;return O<=0?(diag.warn("Attribute value limit must be positive, got "+O),T):typeof T=="string"?this._truncateToLimitUtil(T,O):Array.isArray(T)?T.map(function(P){return typeof P=="string"?A._truncateToLimitUtil(P,O):P}):T},S})(),SamplingDecision;(function(S){S[S.NOT_RECORD=0]="NOT_RECORD",S[S.RECORD=1]="RECORD",S[S.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(SamplingDecision||(SamplingDecision={}));var AlwaysOffSampler=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision.NOT_RECORD}},S.prototype.toString=function(){return"AlwaysOffSampler"},S})(),AlwaysOnSampler=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision.RECORD_AND_SAMPLED}},S.prototype.toString=function(){return"AlwaysOnSampler"},S})(),ParentBasedSampler=(function(){function S(T){var A,O,P,R;this._root=T.root,this._root||(globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new AlwaysOnSampler),this._remoteParentSampled=(A=T.remoteParentSampled)!==null&&A!==void 0?A:new AlwaysOnSampler,this._remoteParentNotSampled=(O=T.remoteParentNotSampled)!==null&&O!==void 0?O:new AlwaysOffSampler,this._localParentSampled=(P=T.localParentSampled)!==null&&P!==void 0?P:new AlwaysOnSampler,this._localParentNotSampled=(R=T.localParentNotSampled)!==null&&R!==void 0?R:new AlwaysOffSampler}return S.prototype.shouldSample=function(T,A,O,P,R,M){var D=trace.getSpanContext(T);return!D||!isSpanContextValid(D)?this._root.shouldSample(T,A,O,P,R,M):D.isRemote?D.traceFlags&TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(T,A,O,P,R,M):this._remoteParentNotSampled.shouldSample(T,A,O,P,R,M):D.traceFlags&TraceFlags.SAMPLED?this._localParentSampled.shouldSample(T,A,O,P,R,M):this._localParentNotSampled.shouldSample(T,A,O,P,R,M)},S.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},S})(),TraceIdRatioBasedSampler=(function(){function S(T){T===void 0&&(T=0),this._ratio=T,this._ratio=this._normalize(T),this._upperBound=Math.floor(this._ratio*4294967295)}return S.prototype.shouldSample=function(T,A){return{decision:isValidTraceId(A)&&this._accumulate(A)<this._upperBound?SamplingDecision.RECORD_AND_SAMPLED:SamplingDecision.NOT_RECORD}},S.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},S.prototype._normalize=function(T){return typeof T!="number"||isNaN(T)?0:T>=1?1:T<=0?0:T},S.prototype._accumulate=function(T){for(var A=0,O=0;O<T.length/8;O++){var P=O*8,R=parseInt(T.slice(P,P+8),16);A=(A^R)>>>0}return A},S})(),FALLBACK_OTEL_TRACES_SAMPLER=TracesSamplerValues.AlwaysOn,DEFAULT_RATIO=1;function loadDefaultConfig(){var S=getEnv();return{sampler:buildSamplerFromEnv(S),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:S.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:S.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:S.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:S.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:S.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function buildSamplerFromEnv(S){switch(S===void 0&&(S=getEnv()),S.OTEL_TRACES_SAMPLER){case TracesSamplerValues.AlwaysOn:return new AlwaysOnSampler;case TracesSamplerValues.AlwaysOff:return new AlwaysOffSampler;case TracesSamplerValues.ParentBasedAlwaysOn:return new ParentBasedSampler({root:new AlwaysOnSampler});case TracesSamplerValues.ParentBasedAlwaysOff:return new ParentBasedSampler({root:new AlwaysOffSampler});case TracesSamplerValues.TraceIdRatio:return new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv(S));case TracesSamplerValues.ParentBasedTraceIdRatio:return new ParentBasedSampler({root:new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv(S))});default:return diag.error('OTEL_TRACES_SAMPLER value "'+S.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+FALLBACK_OTEL_TRACES_SAMPLER+'".'),new AlwaysOnSampler}}function getSamplerProbabilityFromEnv(S){if(S.OTEL_TRACES_SAMPLER_ARG===void 0||S.OTEL_TRACES_SAMPLER_ARG==="")return diag.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO;var T=Number(S.OTEL_TRACES_SAMPLER_ARG);return isNaN(T)?(diag.error("OTEL_TRACES_SAMPLER_ARG="+S.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO):T<0||T>1?(diag.error("OTEL_TRACES_SAMPLER_ARG="+S.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO):T}function mergeConfig(S){var T={sampler:buildSamplerFromEnv()},A=loadDefaultConfig(),O=Object.assign({},A,T,S);return O.generalLimits=Object.assign({},A.generalLimits,S.generalLimits||{}),O.spanLimits=Object.assign({},A.spanLimits,S.spanLimits||{}),O}function reconfigureLimits(S){var T,A,O,P,R,M,D,U,C,L,y,_,N=Object.assign({},S.spanLimits),I=getEnvWithoutDefaults();return N.attributeCountLimit=(M=(R=(P=(A=(T=S.spanLimits)===null||T===void 0?void 0:T.attributeCountLimit)!==null&&A!==void 0?A:(O=S.generalLimits)===null||O===void 0?void 0:O.attributeCountLimit)!==null&&P!==void 0?P:I.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&R!==void 0?R:I.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&M!==void 0?M:DEFAULT_ATTRIBUTE_COUNT_LIMIT,N.attributeValueLengthLimit=(_=(y=(L=(U=(D=S.spanLimits)===null||D===void 0?void 0:D.attributeValueLengthLimit)!==null&&U!==void 0?U:(C=S.generalLimits)===null||C===void 0?void 0:C.attributeValueLengthLimit)!==null&&L!==void 0?L:I.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&y!==void 0?y:I.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},S,{spanLimits:N})}var BatchSpanProcessorBase=(function(){function S(T,A){this._exporter=T,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var O=getEnv();this._maxExportBatchSize=typeof A?.maxExportBatchSize=="number"?A.maxExportBatchSize:O.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof A?.maxQueueSize=="number"?A.maxQueueSize:O.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof A?.scheduledDelayMillis=="number"?A.scheduledDelayMillis:O.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof A?.exportTimeoutMillis=="number"?A.exportTimeoutMillis:O.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return S.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},S.prototype.onStart=function(T,A){},S.prototype.onEnd=function(T){this._shutdownOnce.isCalled||(T.spanContext().traceFlags&TraceFlags.SAMPLED)!==0&&this._addToBuffer(T)},S.prototype.shutdown=function(){return this._shutdownOnce.call()},S.prototype._shutdown=function(){var T=this;return Promise.resolve().then(function(){return T.onShutdown()}).then(function(){return T._flushAll()}).then(function(){return T._exporter.shutdown()})},S.prototype._addToBuffer=function(T){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(diag.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(T),this._maybeStartTimer()},S.prototype._flushAll=function(){var T=this;return new Promise(function(A,O){for(var P=[],R=Math.ceil(T._finishedSpans.length/T._maxExportBatchSize),M=0,D=R;M<D;M++)P.push(T._flushOneBatch());Promise.all(P).then(function(){A()}).catch(O)})},S.prototype._flushOneBatch=function(){var T=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(A,O){var P=setTimeout(function(){O(new Error("Timeout"))},T._exportTimeoutMillis);context.with(suppressTracing(context.active()),function(){var R;T._finishedSpans.length<=T._maxExportBatchSize?(R=T._finishedSpans,T._finishedSpans=[]):R=T._finishedSpans.splice(0,T._maxExportBatchSize);for(var M=function(){return T._exporter.export(R,function(y){var _;clearTimeout(P),y.code===ExportResultCode.SUCCESS?A():O((_=y.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},D=null,U=0,C=R.length;U<C;U++){var L=R[U];L.resource.asyncAttributesPending&&L.resource.waitForAsyncAttributes&&(D??(D=[]),D.push(L.resource.waitForAsyncAttributes()))}D===null?M():Promise.all(D).then(M,function(y){globalErrorHandler(y),O(y)})})})},S.prototype._maybeStartTimer=function(){var T=this;if(!this._isExporting){var A=function(){T._isExporting=!0,T._flushOneBatch().finally(function(){T._isExporting=!1,T._finishedSpans.length>0&&(T._clearTimer(),T._maybeStartTimer())}).catch(function(O){T._isExporting=!1,globalErrorHandler(O)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return A();this._timer===void 0&&(this._timer=setTimeout(function(){return A()},this._scheduledDelayMillis),this._timer,void 0)}},S.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},S})(),__extends$5=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),BatchSpanProcessor=(function(S){__extends$5(T,S);function T(A,O){var P=S.call(this,A,O)||this;return P.onInit(O),P}return T.prototype.onInit=function(A){var O=this;A?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&O.forceFlush().catch(function(P){globalErrorHandler(P)})},this._pageHideListener=function(){O.forceFlush().catch(function(P){globalErrorHandler(P)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},T.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},T})(BatchSpanProcessorBase),SPAN_ID_BYTES=8,TRACE_ID_BYTES=16,RandomIdGenerator=(function(){function S(){this.generateTraceId=getIdGenerator(TRACE_ID_BYTES),this.generateSpanId=getIdGenerator(SPAN_ID_BYTES)}return S})(),SHARED_CHAR_CODES_ARRAY=Array(32);function getIdGenerator(S){return function(){for(var A=0;A<S*2;A++)SHARED_CHAR_CODES_ARRAY[A]=Math.floor(Math.random()*16)+48,SHARED_CHAR_CODES_ARRAY[A]>=58&&(SHARED_CHAR_CODES_ARRAY[A]+=39);return String.fromCharCode.apply(null,SHARED_CHAR_CODES_ARRAY.slice(0,S*2))}}var Tracer=(function(){function S(T,A,O){this._tracerProvider=O;var P=mergeConfig(A);this._sampler=P.sampler,this._generalLimits=P.generalLimits,this._spanLimits=P.spanLimits,this._idGenerator=A.idGenerator||new RandomIdGenerator,this.resource=O.resource,this.instrumentationLibrary=T}return S.prototype.startSpan=function(T,A,O){var P,R,M;A===void 0&&(A={}),O===void 0&&(O=context.active()),A.root&&(O=trace.deleteSpan(O));var D=trace.getSpan(O);if(isTracingSuppressed(O)){diag.debug("Instrumentation suppressed, returning Noop Span");var U=trace.wrapSpanContext(INVALID_SPAN_CONTEXT);return U}var C=D?.spanContext(),L=this._idGenerator.generateSpanId(),y,_,N;!C||!trace.isSpanContextValid(C)?y=this._idGenerator.generateTraceId():(y=C.traceId,_=C.traceState,N=C.spanId);var I=(P=A.kind)!==null&&P!==void 0?P:SpanKind.INTERNAL,x=((R=A.links)!==null&&R!==void 0?R:[]).map(function(fe){return{context:fe.context,attributes:sanitizeAttributes(fe.attributes)}}),V=sanitizeAttributes(A.attributes),k=this._sampler.shouldSample(O,y,T,I,V,x);_=(M=k.traceState)!==null&&M!==void 0?M:_;var B=k.decision===SamplingDecision$1.RECORD_AND_SAMPLED?TraceFlags.SAMPLED:TraceFlags.NONE,W={traceId:y,spanId:L,traceFlags:B,traceState:_};if(k.decision===SamplingDecision$1.NOT_RECORD){diag.debug("Recording is off, propagating context in a non-recording span");var U=trace.wrapSpanContext(W);return U}var oe=sanitizeAttributes(Object.assign(V,k.attributes)),te=new Span(this,O,T,W,I,N,x,A.startTime,void 0,oe);return te},S.prototype.startActiveSpan=function(T,A,O,P){var R,M,D;if(!(arguments.length<2)){arguments.length===2?D=A:arguments.length===3?(R=A,D=O):(R=A,M=O,D=P);var U=M??context.active(),C=this.startSpan(T,R,U),L=trace.setSpan(U,C);return context.with(L,D,void 0,C)}},S.prototype.getGeneralLimits=function(){return this._generalLimits},S.prototype.getSpanLimits=function(){return this._spanLimits},S.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},S})();function defaultServiceName$1(){return"unknown_service"}var __assign$2=function(){return __assign$2=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign$2.apply(this,arguments)},__awaiter$5=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$5=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},__read$9=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},Resource$1=(function(){function S(T,A){var O=this,P;this._attributes=T,this.asyncAttributesPending=A!=null,this._syncAttributes=(P=this._attributes)!==null&&P!==void 0?P:{},this._asyncAttributesPromise=A?.then(function(R){return O._attributes=Object.assign({},O._attributes,R),O.asyncAttributesPending=!1,R},function(R){return diag.debug("a resource's async attributes promise rejected: %s",R),O.asyncAttributesPending=!1,{}})}return S.empty=function(){return S.EMPTY},S.default=function(){var T;return new S((T={},T[SEMRESATTRS_SERVICE_NAME]=defaultServiceName$1(),T[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],T[SEMRESATTRS_TELEMETRY_SDK_NAME]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME],T[SEMRESATTRS_TELEMETRY_SDK_VERSION]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION],T))},Object.defineProperty(S.prototype,"attributes",{get:function(){var T;return this.asyncAttributesPending&&diag.error("Accessing resource attributes before async attributes settled"),(T=this._attributes)!==null&&T!==void 0?T:{}},enumerable:!1,configurable:!0}),S.prototype.waitForAsyncAttributes=function(){return __awaiter$5(this,void 0,void 0,function(){return __generator$5(this,function(T){switch(T.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:T.sent(),T.label=2;case 2:return[2]}})})},S.prototype.merge=function(T){var A=this,O;if(!T)return this;var P=__assign$2(__assign$2({},this._syncAttributes),(O=T._syncAttributes)!==null&&O!==void 0?O:T.attributes);if(!this._asyncAttributesPromise&&!T._asyncAttributesPromise)return new S(P);var R=Promise.all([this._asyncAttributesPromise,T._asyncAttributesPromise]).then(function(M){var D,U=__read$9(M,2),C=U[0],L=U[1];return __assign$2(__assign$2(__assign$2(__assign$2({},A._syncAttributes),C),(D=T._syncAttributes)!==null&&D!==void 0?D:T.attributes),L)});return new S(P,R)},S.EMPTY=new S({}),S})();const index$7=Object.freeze(Object.defineProperty({__proto__:null,Resource:Resource$1,defaultServiceName:defaultServiceName$1},Symbol.toStringTag,{value:"Module"}));var __values$3=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},MultiSpanProcessor=(function(){function S(T){this._spanProcessors=T}return S.prototype.forceFlush=function(){var T,A,O=[];try{for(var P=__values$3(this._spanProcessors),R=P.next();!R.done;R=P.next()){var M=R.value;O.push(M.forceFlush())}}catch(D){T={error:D}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return new Promise(function(D){Promise.all(O).then(function(){D()}).catch(function(U){globalErrorHandler(U||new Error("MultiSpanProcessor: forceFlush failed")),D()})})},S.prototype.onStart=function(T,A){var O,P;try{for(var R=__values$3(this._spanProcessors),M=R.next();!M.done;M=R.next()){var D=M.value;D.onStart(T,A)}}catch(U){O={error:U}}finally{try{M&&!M.done&&(P=R.return)&&P.call(R)}finally{if(O)throw O.error}}},S.prototype.onEnd=function(T){var A,O;try{for(var P=__values$3(this._spanProcessors),R=P.next();!R.done;R=P.next()){var M=R.value;M.onEnd(T)}}catch(D){A={error:D}}finally{try{R&&!R.done&&(O=P.return)&&O.call(P)}finally{if(A)throw A.error}}},S.prototype.shutdown=function(){var T,A,O=[];try{for(var P=__values$3(this._spanProcessors),R=P.next();!R.done;R=P.next()){var M=R.value;O.push(M.shutdown())}}catch(D){T={error:D}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return new Promise(function(D,U){Promise.all(O).then(function(){D()},U)})},S})(),NoopSpanProcessor=(function(){function S(){}return S.prototype.onStart=function(T,A){},S.prototype.onEnd=function(T){},S.prototype.shutdown=function(){return Promise.resolve()},S.prototype.forceFlush=function(){return Promise.resolve()},S})(),__read$8=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$2=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},ForceFlushState;(function(S){S[S.resolved=0]="resolved",S[S.timeout=1]="timeout",S[S.error=2]="error",S[S.unresolved=3]="unresolved"})(ForceFlushState||(ForceFlushState={}));var BasicTracerProvider=(function(){function S(T){T===void 0&&(T={});var A,O;this._registeredSpanProcessors=[],this._tracers=new Map;var P=merge({},loadDefaultConfig(),reconfigureLimits(T));if(this.resource=(A=P.resource)!==null&&A!==void 0?A:Resource$1.empty(),P.mergeResourceWithDefaults&&(this.resource=Resource$1.default().merge(this.resource)),this._config=Object.assign({},P,{resource:this.resource}),!((O=T.spanProcessors)===null||O===void 0)&&O.length)this._registeredSpanProcessors=__spreadArray$2([],__read$8(T.spanProcessors),!1),this.activeSpanProcessor=new MultiSpanProcessor(this._registeredSpanProcessors);else{var R=this._buildExporterFromEnv();if(R!==void 0){var M=new BatchSpanProcessor(R);this.activeSpanProcessor=M}else this.activeSpanProcessor=new NoopSpanProcessor}}return S.prototype.getTracer=function(T,A,O){var P=T+"@"+(A||"")+":"+(O?.schemaUrl||"");return this._tracers.has(P)||this._tracers.set(P,new Tracer({name:T,version:A,schemaUrl:O?.schemaUrl},this._config,this)),this._tracers.get(P)},S.prototype.addSpanProcessor=function(T){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(A){return diag.error("Error while trying to shutdown current span processor",A)}),this._registeredSpanProcessors.push(T),this.activeSpanProcessor=new MultiSpanProcessor(this._registeredSpanProcessors)},S.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},S.prototype.register=function(T){T===void 0&&(T={}),trace.setGlobalTracerProvider(this),T.propagator===void 0&&(T.propagator=this._buildPropagatorFromEnv()),T.contextManager&&context.setGlobalContextManager(T.contextManager),T.propagator&&propagation.setGlobalPropagator(T.propagator)},S.prototype.forceFlush=function(){var T=this._config.forceFlushTimeoutMillis,A=this._registeredSpanProcessors.map(function(O){return new Promise(function(P){var R,M=setTimeout(function(){P(new Error("Span processor did not completed within timeout period of "+T+" ms")),R=ForceFlushState.timeout},T);O.forceFlush().then(function(){clearTimeout(M),R!==ForceFlushState.timeout&&(R=ForceFlushState.resolved,P(R))}).catch(function(D){clearTimeout(M),R=ForceFlushState.error,P(D)})})});return new Promise(function(O,P){Promise.all(A).then(function(R){var M=R.filter(function(D){return D!==ForceFlushState.resolved});M.length>0?P(M):O()}).catch(function(R){return P([R])})})},S.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},S.prototype._getPropagator=function(T){var A;return(A=this.constructor._registeredPropagators.get(T))===null||A===void 0?void 0:A()},S.prototype._getSpanExporter=function(T){var A;return(A=this.constructor._registeredExporters.get(T))===null||A===void 0?void 0:A()},S.prototype._buildPropagatorFromEnv=function(){var T=this,A=Array.from(new Set(getEnv().OTEL_PROPAGATORS)),O=A.map(function(R){var M=T._getPropagator(R);return M||diag.warn('Propagator "'+R+'" requested through environment variable is unavailable.'),M}),P=O.reduce(function(R,M){return M&&R.push(M),R},[]);if(P.length!==0)return A.length===1?P[0]:new CompositePropagator({propagators:P})},S.prototype._buildExporterFromEnv=function(){var T=getEnv().OTEL_TRACES_EXPORTER;if(!(T==="none"||T==="")){var A=this._getSpanExporter(T);return A||diag.error('Exporter "'+T+'" requested through environment variable is unavailable.'),A}},S._registeredPropagators=new Map([["tracecontext",function(){return new W3CTraceContextPropagator}],["baggage",function(){return new W3CBaggagePropagator}]]),S._registeredExporters=new Map,S})(),__values$2=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},ConsoleSpanExporter=(function(){function S(){}return S.prototype.export=function(T,A){return this._sendSpans(T,A)},S.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},S.prototype.forceFlush=function(){return Promise.resolve()},S.prototype._exportInfo=function(T){var A;return{resource:{attributes:T.resource.attributes},instrumentationScope:T.instrumentationLibrary,traceId:T.spanContext().traceId,parentId:T.parentSpanId,traceState:(A=T.spanContext().traceState)===null||A===void 0?void 0:A.serialize(),name:T.name,id:T.spanContext().spanId,kind:T.kind,timestamp:hrTimeToMicroseconds(T.startTime),duration:hrTimeToMicroseconds(T.duration),attributes:T.attributes,status:T.status,events:T.events,links:T.links}},S.prototype._sendSpans=function(T,A){var O,P;try{for(var R=__values$2(T),M=R.next();!M.done;M=R.next()){var D=M.value;console.dir(this._exportInfo(D),{depth:3})}}catch(U){O={error:U}}finally{try{M&&!M.done&&(P=R.return)&&P.call(R)}finally{if(O)throw O.error}}if(A)return A({code:ExportResultCode.SUCCESS})},S})(),__awaiter$4=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$4=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},SimpleSpanProcessor=(function(){function S(T){this._exporter=T,this._shutdownOnce=new BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}return S.prototype.forceFlush=function(){return __awaiter$4(this,void 0,void 0,function(){return __generator$4(this,function(T){switch(T.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return T.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:T.sent(),T.label=3;case 3:return[2]}})})},S.prototype.onStart=function(T,A){},S.prototype.onEnd=function(T){var A=this,O,P;if(!this._shutdownOnce.isCalled&&(T.spanContext().traceFlags&TraceFlags.SAMPLED)!==0){var R=function(){return internal._export(A._exporter,[T]).then(function(D){var U;D.code!==ExportResultCode.SUCCESS&&globalErrorHandler((U=D.error)!==null&&U!==void 0?U:new Error("SimpleSpanProcessor: span export failed (status "+D+")"))}).catch(function(D){globalErrorHandler(D)})};if(T.resource.asyncAttributesPending){var M=(P=(O=T.resource).waitForAsyncAttributes)===null||P===void 0?void 0:P.call(O).then(function(){return M!=null&&A._unresolvedExports.delete(M),R()},function(D){return globalErrorHandler(D)});M!=null&&this._unresolvedExports.add(M)}else R()}},S.prototype.shutdown=function(){return this._shutdownOnce.call()},S.prototype._shutdown=function(){return this._exporter.shutdown()},S})();const index$6=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler,AlwaysOnSampler,BasicTracerProvider,BatchSpanProcessor,ConsoleSpanExporter,get ForceFlushState(){return ForceFlushState},NoopSpanProcessor,ParentBasedSampler,RandomIdGenerator,get SamplingDecision(){return SamplingDecision},SimpleSpanProcessor,Span,TraceIdRatioBasedSampler,Tracer},Symbol.toStringTag,{value:"Module"}));var __read$7=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$1=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},StackContextManager=(function(){function S(){this._enabled=!1,this._currentContext=ROOT_CONTEXT}return S.prototype._bindFunction=function(T,A){T===void 0&&(T=ROOT_CONTEXT);var O=this,P=function(){for(var R=this,M=[],D=0;D<arguments.length;D++)M[D]=arguments[D];return O.with(T,function(){return A.apply(R,M)})};return Object.defineProperty(P,"length",{enumerable:!1,configurable:!0,writable:!1,value:A.length}),P},S.prototype.active=function(){return this._currentContext},S.prototype.bind=function(T,A){return T===void 0&&(T=this.active()),typeof A=="function"?this._bindFunction(T,A):A},S.prototype.disable=function(){return this._currentContext=ROOT_CONTEXT,this._enabled=!1,this},S.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=ROOT_CONTEXT,this)},S.prototype.with=function(T,A,O){for(var P=[],R=3;R<arguments.length;R++)P[R-3]=arguments[R];var M=this._currentContext;this._currentContext=T||ROOT_CONTEXT;try{return A.call.apply(A,__spreadArray$1([O],__read$7(P),!1))}finally{this._currentContext=M}},S})(),__extends$4=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),WebTracerProvider=(function(S){__extends$4(T,S);function T(A){A===void 0&&(A={});var O=S.call(this,A)||this;if(A.contextManager)throw"contextManager should be defined in register method not in constructor";if(A.propagator)throw"propagator should be defined in register method not in constructor";return O}return T.prototype.register=function(A){A===void 0&&(A={}),A.contextManager===void 0&&(A.contextManager=new StackContextManager),A.contextManager&&A.contextManager.enable(),S.prototype.register.call(this,A)},T})(BasicTracerProvider),PerformanceTimingNames;(function(S){S.CONNECT_END="connectEnd",S.CONNECT_START="connectStart",S.DECODED_BODY_SIZE="decodedBodySize",S.DOM_COMPLETE="domComplete",S.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",S.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",S.DOM_INTERACTIVE="domInteractive",S.DOMAIN_LOOKUP_END="domainLookupEnd",S.DOMAIN_LOOKUP_START="domainLookupStart",S.ENCODED_BODY_SIZE="encodedBodySize",S.FETCH_START="fetchStart",S.LOAD_EVENT_END="loadEventEnd",S.LOAD_EVENT_START="loadEventStart",S.NAVIGATION_START="navigationStart",S.REDIRECT_END="redirectEnd",S.REDIRECT_START="redirectStart",S.REQUEST_START="requestStart",S.RESPONSE_END="responseEnd",S.RESPONSE_START="responseStart",S.SECURE_CONNECTION_START="secureConnectionStart",S.UNLOAD_EVENT_END="unloadEventEnd",S.UNLOAD_EVENT_START="unloadEventStart"})(PerformanceTimingNames||(PerformanceTimingNames={}));var urlNormalizingAnchor;function getUrlNormalizingAnchor(){return urlNormalizingAnchor||(urlNormalizingAnchor=document.createElement("a")),urlNormalizingAnchor}function hasKey(S,T){return T in S}function addSpanNetworkEvent(S,T,A,O){var P=void 0,R=void 0;hasKey(A,T)&&typeof A[T]=="number"&&(P=A[T]);var M=PerformanceTimingNames.FETCH_START;if(hasKey(A,M)&&typeof A[M]=="number"&&(R=A[M]),P!==void 0&&R!==void 0&&P>=R)return S.addEvent(T,P),S}function addSpanNetworkEvents(S,T,A){A===void 0&&(A=!1),A||(addSpanNetworkEvent(S,PerformanceTimingNames.FETCH_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.DOMAIN_LOOKUP_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.DOMAIN_LOOKUP_END,T),addSpanNetworkEvent(S,PerformanceTimingNames.CONNECT_START,T),hasKey(T,"name")&&T.name.startsWith("https:")&&addSpanNetworkEvent(S,PerformanceTimingNames.SECURE_CONNECTION_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.CONNECT_END,T),addSpanNetworkEvent(S,PerformanceTimingNames.REQUEST_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.RESPONSE_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.RESPONSE_END,T));var O=T[PerformanceTimingNames.ENCODED_BODY_SIZE];O!==void 0&&S.setAttribute(SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH,O);var P=T[PerformanceTimingNames.DECODED_BODY_SIZE];P!==void 0&&O!==P&&S.setAttribute(SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,P)}function sortResources(S){return S.slice().sort(function(T,A){var O=T[PerformanceTimingNames.FETCH_START],P=A[PerformanceTimingNames.FETCH_START];return O>P?1:O<P?-1:0})}function getOrigin(){return typeof location<"u"?location.origin:void 0}function getResource(S,T,A,O,P,R){P===void 0&&(P=new WeakSet);var M=parseUrl(S);S=M.toString();var D=filterResourcesForSpan(S,T,A,O,P,R);if(D.length===0)return{mainRequest:void 0};if(D.length===1)return{mainRequest:D[0]};var U=sortResources(D);if(M.origin!==getOrigin()&&U.length>1){var C=U[0],L=findMainRequest(U,C[PerformanceTimingNames.RESPONSE_END],A),y=C[PerformanceTimingNames.RESPONSE_END],_=L[PerformanceTimingNames.FETCH_START];return _<y&&(L=C,C=void 0),{corsPreFlightRequest:C,mainRequest:L}}else return{mainRequest:D[0]}}function findMainRequest(S,T,A){for(var O=hrTimeToNanoseconds(A),P=hrTimeToNanoseconds(timeInputToHrTime(T)),R=S[1],M,D=S.length,U=1;U<D;U++){var C=S[U],L=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.FETCH_START])),y=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.RESPONSE_END])),_=O-y;L>=P&&(!M||_<M)&&(M=_,R=C)}return R}function filterResourcesForSpan(S,T,A,O,P,R){var M=hrTimeToNanoseconds(T),D=hrTimeToNanoseconds(A),U=O.filter(function(C){var L=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.FETCH_START])),y=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.RESPONSE_END]));return C.initiatorType.toLowerCase()===R&&C.name===S&&L>=M&&y<=D});return U.length>0&&(U=U.filter(function(C){return!P.has(C)})),U}function parseUrl(S){if(typeof URL=="function")return new URL(S,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var T=getUrlNormalizingAnchor();return T.href=S,T}function shouldPropagateTraceHeaders(S,T){var A=T||[];(typeof A=="string"||A instanceof RegExp)&&(A=[A]);var O=parseUrl(S);return O.origin===getOrigin()?!0:A.some(function(P){return urlMatches(S,P)})}const index$5=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler,AlwaysOnSampler,BasicTracerProvider,BatchSpanProcessor,ConsoleSpanExporter,get ForceFlushState(){return ForceFlushState},NoopSpanProcessor,ParentBasedSampler,get PerformanceTimingNames(){return PerformanceTimingNames},RandomIdGenerator,get SamplingDecision(){return SamplingDecision},SimpleSpanProcessor,Span,StackContextManager,TraceIdRatioBasedSampler,Tracer,WebTracerProvider,addSpanNetworkEvent,addSpanNetworkEvents,getResource,hasKey,parseUrl,shouldPropagateTraceHeaders,sortResources},Symbol.toStringTag,{value:"Module"}));var NoopLogger=(function(){function S(){}return S.prototype.emit=function(T){},S})(),NOOP_LOGGER=new NoopLogger,NoopLoggerProvider=(function(){function S(){}return S.prototype.getLogger=function(T,A,O){return new NoopLogger},S})(),NOOP_LOGGER_PROVIDER=new NoopLoggerProvider,ProxyLogger=(function(){function S(T,A,O,P){this._provider=T,this.name=A,this.version=O,this.options=P}return S.prototype.emit=function(T){this._getLogger().emit(T)},S.prototype._getLogger=function(){if(this._delegate)return this._delegate;var T=this._provider.getDelegateLogger(this.name,this.version,this.options);return T?(this._delegate=T,this._delegate):NOOP_LOGGER},S})(),ProxyLoggerProvider=(function(){function S(){}return S.prototype.getLogger=function(T,A,O){var P;return(P=this.getDelegateLogger(T,A,O))!==null&&P!==void 0?P:new ProxyLogger(this,T,A,O)},S.prototype.getDelegate=function(){var T;return(T=this._delegate)!==null&&T!==void 0?T:NOOP_LOGGER_PROVIDER},S.prototype.setDelegate=function(T){this._delegate=T},S.prototype.getDelegateLogger=function(T,A,O){var P;return(P=this._delegate)===null||P===void 0?void 0:P.getLogger(T,A,O)},S})(),_globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs"),_global=_globalThis;function makeGetter(S,T,A){return function(O){return O===S?T:A}}var API_BACKWARDS_COMPATIBILITY_VERSION=1,LogsAPI=(function(){function S(){this._proxyLoggerProvider=new ProxyLoggerProvider}return S.getInstance=function(){return this._instance||(this._instance=new S),this._instance},S.prototype.setGlobalLoggerProvider=function(T){return _global[GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(_global[GLOBAL_LOGS_API_KEY]=makeGetter(API_BACKWARDS_COMPATIBILITY_VERSION,T,NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(T),T)},S.prototype.getLoggerProvider=function(){var T,A;return(A=(T=_global[GLOBAL_LOGS_API_KEY])===null||T===void 0?void 0:T.call(_global,API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&A!==void 0?A:this._proxyLoggerProvider},S.prototype.getLogger=function(T,A,O){return this.getLoggerProvider().getLogger(T,A,O)},S.prototype.disable=function(){delete _global[GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new ProxyLoggerProvider},S})(),logs=LogsAPI.getInstance();function enableInstrumentations(S,T,A,O){for(var P=0,R=S.length;P<R;P++){var M=S[P];T&&M.setTracerProvider(T),A&&M.setMeterProvider(A),O&&M.setLoggerProvider&&M.setLoggerProvider(O),M.getConfig().enabled||M.enable()}}function disableInstrumentations(S){S.forEach(function(T){return T.disable()})}function registerInstrumentations(S){var T,A,O=S.tracerProvider||trace.getTracerProvider(),P=S.meterProvider||metrics.getMeterProvider(),R=S.loggerProvider||logs.getLoggerProvider(),M=(A=(T=S.instrumentations)===null||T===void 0?void 0:T.flat())!==null&&A!==void 0?A:[];return enableInstrumentations(M,O,P,R),function(){disableInstrumentations(M)}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(S){if(Object.prototype.hasOwnProperty.call(S,"__esModule"))return S;var T=S.default;if(typeof T=="function"){var A=function O(){var P=!1;try{P=this instanceof O}catch{}return P?Reflect.construct(T,arguments,this.constructor):T.apply(this,arguments)};A.prototype=T.prototype}else A={};return Object.defineProperty(A,"__esModule",{value:!0}),Object.keys(S).forEach(function(O){var P=Object.getOwnPropertyDescriptor(S,O);Object.defineProperty(A,O,P.get?P:{enumerable:!0,get:function(){return S[O]}})}),A}var shimmer_1,hasRequiredShimmer;function requireShimmer(){if(hasRequiredShimmer)return shimmer_1;hasRequiredShimmer=1;function S(U){return typeof U=="function"}var T=console.error.bind(console);function A(U,C,L){var y=!!U[C]&&U.propertyIsEnumerable(C);Object.defineProperty(U,C,{configurable:!0,enumerable:y,writable:!0,value:L})}function O(U){U&&U.logger&&(S(U.logger)?T=U.logger:T("new logger isn't a function, not replacing"))}function P(U,C,L){if(!U||!U[C]){T("no original function "+C+" to wrap");return}if(!L){T("no wrapper function"),T(new Error().stack);return}if(!S(U[C])||!S(L)){T("original object and wrapper must be functions");return}var y=U[C],_=L(y,C);return A(_,"__original",y),A(_,"__unwrap",function(){U[C]===_&&A(U,C,y)}),A(_,"__wrapped",!0),A(U,C,_),_}function R(U,C,L){if(U)Array.isArray(U)||(U=[U]);else{T("must provide one or more modules to patch"),T(new Error().stack);return}if(!(C&&Array.isArray(C))){T("must provide one or more functions to wrap on modules");return}U.forEach(function(y){C.forEach(function(_){P(y,_,L)})})}function M(U,C){if(!U||!U[C]){T("no function to unwrap."),T(new Error().stack);return}if(!U[C].__unwrap)T("no original to unwrap to -- has "+C+" already been unwrapped?");else return U[C].__unwrap()}function D(U,C){if(U)Array.isArray(U)||(U=[U]);else{T("must provide one or more modules to patch"),T(new Error().stack);return}if(!(C&&Array.isArray(C))){T("must provide one or more functions to unwrap on modules");return}U.forEach(function(L){C.forEach(function(y){M(L,y)})})}return O.wrap=P,O.massWrap=R,O.unwrap=M,O.massUnwrap=D,shimmer_1=O,shimmer_1}var shimmerExports=requireShimmer(),__assign$1=function(){return __assign$1=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign$1.apply(this,arguments)},InstrumentationAbstract=(function(){function S(T,A,O){this.instrumentationName=T,this.instrumentationVersion=A,this._config={},this._wrap=shimmerExports.wrap,this._unwrap=shimmerExports.unwrap,this._massWrap=shimmerExports.massWrap,this._massUnwrap=shimmerExports.massUnwrap,this.setConfig(O),this._diag=diag.createComponentLogger({namespace:T}),this._tracer=trace.getTracer(T,A),this._meter=metrics.getMeter(T,A),this._logger=logs.getLogger(T,A),this._updateMetricInstruments()}return Object.defineProperty(S.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),S.prototype.setMeterProvider=function(T){this._meter=T.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(S.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),S.prototype.setLoggerProvider=function(T){this._logger=T.getLogger(this.instrumentationName,this.instrumentationVersion)},S.prototype.getModuleDefinitions=function(){var T,A=(T=this.init())!==null&&T!==void 0?T:[];return Array.isArray(A)?A:[A]},S.prototype._updateMetricInstruments=function(){},S.prototype.getConfig=function(){return this._config},S.prototype.setConfig=function(T){this._config=__assign$1({enabled:!0},T)},S.prototype.setTracerProvider=function(T){this._tracer=T.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(S.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),S.prototype._runSpanCustomizationHook=function(T,A,O,P){if(T)try{T(O,P)}catch(R){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:A},R)}},S})(),__extends$3=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),InstrumentationBase=(function(S){__extends$3(T,S);function T(A,O,P){var R=S.call(this,A,O,P)||this;return R._config.enabled&&R.enable(),R}return T})(InstrumentationAbstract);function safeExecuteInTheMiddle(S,T,A){var O,P;try{P=S()}catch(R){O=R}finally{return T(O,P),P}}function isWrapped(S){return typeof S=="function"&&typeof S.__original=="function"&&typeof S.__unwrap=="function"&&S.__wrapped===!0}const index$4=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase,isWrapped,registerInstrumentations,safeExecuteInTheMiddle},Symbol.toStringTag,{value:"Module"}));var AttributeNames;(function(S){S.COMPONENT="component",S.HTTP_ERROR_NAME="http.error_name",S.HTTP_STATUS_TEXT="http.status_text"})(AttributeNames||(AttributeNames={}));var __awaiter$3=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$3=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},__values$1=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$6=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},DIAG_LOGGER=diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function getFetchBodyLength(){for(var S=[],T=0;T<arguments.length;T++)S[T]=arguments[T];if(S[0]instanceof URL||typeof S[0]=="string"){var A=S[1];if(!A?.body)return Promise.resolve();if(A.body instanceof ReadableStream){var O=_getBodyNonDestructively(A.body),P=O.body,R=O.length;return A.body=P,R}else return Promise.resolve(getXHRBodyLength(A.body))}else{var M=S[0];return M?.body?M.clone().text().then(function(D){return getByteLength(D)}):Promise.resolve()}}function _getBodyNonDestructively(S){if(!S.pipeThrough)return DIAG_LOGGER.warn("Platform has ReadableStream but not pipeThrough!"),{body:S,length:Promise.resolve(void 0)};var T=0,A,O=new Promise(function(R){A=R}),P=new TransformStream({start:function(){},transform:function(R,M){return __awaiter$3(this,void 0,void 0,function(){var D;return __generator$3(this,function(U){switch(U.label){case 0:return[4,R];case 1:return D=U.sent(),T+=D.byteLength,M.enqueue(R),[2]}})})},flush:function(){A(T)}});return{body:S.pipeThrough(P),length:O}}function getXHRBodyLength(S){if(typeof Document<"u"&&S instanceof Document)return new XMLSerializer().serializeToString(document).length;if(S instanceof Blob)return S.size;if(S.byteLength!==void 0)return S.byteLength;if(S instanceof FormData)return getFormDataSize(S);if(S instanceof URLSearchParams)return getByteLength(S.toString());if(typeof S=="string")return getByteLength(S);DIAG_LOGGER.warn("unknown body type")}var TEXT_ENCODER=new TextEncoder;function getByteLength(S){return TEXT_ENCODER.encode(S).byteLength}function getFormDataSize(S){var T,A,O=0;try{for(var P=__values$1(S.entries()),R=P.next();!R.done;R=P.next()){var M=__read$6(R.value,2),D=M[0],U=M[1];O+=D.length,U instanceof Blob?O+=U.size:O+=U.length}}catch(C){T={error:C}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return O}var VERSION="0.57.2",__extends$2=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),__read$5=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},_a,OBSERVER_WAIT_TIME_MS=300,isNode=typeof process=="object"&&((_a=process.release)===null||_a===void 0?void 0:_a.name)==="node",FetchInstrumentation=(function(S){__extends$2(T,S);function T(A){A===void 0&&(A={});var O=S.call(this,"@opentelemetry/instrumentation-fetch",VERSION,A)||this;return O.component="fetch",O.version=VERSION,O.moduleName=O.component,O._usedResources=new WeakSet,O._tasksCount=0,O}return T.prototype.init=function(){},T.prototype._addChildSpan=function(A,O){var P=this.tracer.startSpan("CORS Preflight",{startTime:O[PerformanceTimingNames.FETCH_START]},trace.setSpan(context.active(),A));addSpanNetworkEvents(P,O,this.getConfig().ignoreNetworkEvents),P.end(O[PerformanceTimingNames.RESPONSE_END])},T.prototype._addFinalSpanAttributes=function(A,O){var P=parseUrl(O.url);A.setAttribute(SEMATTRS_HTTP_STATUS_CODE,O.status),O.statusText!=null&&A.setAttribute(AttributeNames.HTTP_STATUS_TEXT,O.statusText),A.setAttribute(SEMATTRS_HTTP_HOST,P.host),A.setAttribute(SEMATTRS_HTTP_SCHEME,P.protocol.replace(":","")),typeof navigator<"u"&&A.setAttribute(SEMATTRS_HTTP_USER_AGENT,navigator.userAgent)},T.prototype._addHeaders=function(A,O){if(!shouldPropagateTraceHeaders(O,this.getConfig().propagateTraceHeaderCorsUrls)){var P={};propagation.inject(context.active(),P),Object.keys(P).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(A instanceof Request)propagation.inject(context.active(),A.headers,{set:function(R,M,D){return R.set(M,typeof D=="string"?D:String(D))}});else if(A.headers instanceof Headers)propagation.inject(context.active(),A.headers,{set:function(R,M,D){return R.set(M,typeof D=="string"?D:String(D))}});else if(A.headers instanceof Map)propagation.inject(context.active(),A.headers,{set:function(R,M,D){return R.set(M,typeof D=="string"?D:String(D))}});else{var P={};propagation.inject(context.active(),P),A.headers=Object.assign({},P,A.headers||{})}},T.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},T.prototype._createSpan=function(A,O){var P;if(O===void 0&&(O={}),isUrlIgnored(A,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var R=(O.method||"GET").toUpperCase(),M="HTTP "+R;return this.tracer.startSpan(M,{kind:SpanKind.CLIENT,attributes:(P={},P[AttributeNames.COMPONENT]=this.moduleName,P[SEMATTRS_HTTP_METHOD]=R,P[SEMATTRS_HTTP_URL]=A,P)})},T.prototype._findResourceAndAddNetworkEvents=function(A,O,P){var R=O.entries;if(!R.length){if(!performance.getEntriesByType)return;R=performance.getEntriesByType("resource")}var M=getResource(O.spanUrl,O.startTime,P,R,this._usedResources,"fetch");if(M.mainRequest){var D=M.mainRequest;this._markResourceAsUsed(D);var U=M.corsPreFlightRequest;U&&(this._addChildSpan(A,U),this._markResourceAsUsed(U)),addSpanNetworkEvents(A,D,this.getConfig().ignoreNetworkEvents)}},T.prototype._markResourceAsUsed=function(A){this._usedResources.add(A)},T.prototype._endSpan=function(A,O,P){var R=this,M=millisToHrTime(Date.now()),D=hrTime();this._addFinalSpanAttributes(A,P),setTimeout(function(){var U;(U=O.observer)===null||U===void 0||U.disconnect(),R._findResourceAndAddNetworkEvents(A,O,D),R._tasksCount--,R._clearResources(),A.end(M)},OBSERVER_WAIT_TIME_MS)},T.prototype._patchConstructor=function(){var A=this;return function(O){var P=A;return function(){for(var M=[],D=0;D<arguments.length;D++)M[D]=arguments[D];var U=this,C=parseUrl(M[0]instanceof Request?M[0].url:String(M[0])).href,L=M[0]instanceof Request?M[0]:M[1]||{},y=P._createSpan(C,L);if(!y)return O.apply(this,M);var _=P._prepareSpanData(C);P.getConfig().measureRequestSize&&getFetchBodyLength.apply(void 0,__spreadArray([],__read$5(M),!1)).then(function(k){k&&y.setAttribute(SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,k)}).catch(function(k){P._diag.warn("getFetchBodyLength",k)});function N(k,B){P._applyAttributesAfterFetch(k,L,B),P._endSpan(k,_,{status:B.status||0,statusText:B.message,url:C})}function I(k,B){P._applyAttributesAfterFetch(k,L,B),B.status>=200&&B.status<400?P._endSpan(k,_,B):P._endSpan(k,_,{status:B.status,statusText:B.statusText,url:C})}function x(k,B,W){try{var oe=W.clone(),te=W.clone(),fe=oe.body;if(fe){var Fe=fe.getReader(),ot=function(){Fe.read().then(function(et){var lt=et.done;lt?I(k,te):ot()},function(et){N(k,et)})};ot()}else I(k,W)}finally{B(W)}}function V(k,B,W){try{N(k,W)}finally{B(W)}}return new Promise(function(k,B){return context.with(trace.setSpan(context.active(),y),function(){return P._addHeaders(L,C),P._tasksCount++,O.apply(U,L instanceof Request?[L]:[C,L]).then(x.bind(U,y,k),V.bind(U,y,B))})})}}},T.prototype._applyAttributesAfterFetch=function(A,O,P){var R=this,M=this.getConfig().applyCustomAttributesOnSpan;M&&safeExecuteInTheMiddle(function(){return M(A,O,P)},function(D){D&&R._diag.error("applyCustomAttributesOnSpan",D)})},T.prototype._prepareSpanData=function(A){var O=hrTime(),P=[];if(typeof PerformanceObserver!="function")return{entries:P,startTime:O,spanUrl:A};var R=new PerformanceObserver(function(M){var D=M.getEntries();D.forEach(function(U){U.initiatorType==="fetch"&&U.name===A&&P.push(U)})});return R.observe({entryTypes:["resource"]}),{entries:P,observer:R,startTime:O,spanUrl:A}},T.prototype.enable=function(){if(isNode){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}isWrapped(fetch)&&(this._unwrap(_globalThis$1,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(_globalThis$1,"fetch",this._patchConstructor())},T.prototype.disable=function(){isNode||(this._unwrap(_globalThis$1,"fetch"),this._usedResources=new WeakSet)},T})(InstrumentationBase);const index$3=Object.freeze(Object.defineProperty({__proto__:null,FetchInstrumentation},Symbol.toStringTag,{value:"Module"}));function isListenerObject(S){return S===void 0&&(S={}),typeof S.addEventListener=="function"&&typeof S.removeEventListener=="function"}var ZONE_CONTEXT_KEY="OT_ZONE_CONTEXT",ZoneContextManager=(function(){function S(){this._enabled=!1,this._zoneCounter=0}return S.prototype._activeContextFromZone=function(T){return T&&T.get(ZONE_CONTEXT_KEY)||ROOT_CONTEXT},S.prototype._bindFunction=function(T,A){var O=this,P=function(){for(var R=this,M=[],D=0;D<arguments.length;D++)M[D]=arguments[D];return O.with(T,function(){return A.apply(R,M)})};return Object.defineProperty(P,"length",{enumerable:!1,configurable:!0,writable:!1,value:A.length}),P},S.prototype._bindListener=function(T,A){var O=A;return O.__ot_listeners!==void 0||(O.__ot_listeners={},typeof O.addEventListener=="function"&&(O.addEventListener=this._patchAddEventListener(O,O.addEventListener,T)),typeof O.removeEventListener=="function"&&(O.removeEventListener=this._patchRemoveEventListener(O,O.removeEventListener))),A},S.prototype._createZoneName=function(){this._zoneCounter++;var T=Math.random();return this._zoneCounter+"-"+T},S.prototype._createZone=function(T,A){var O;return Zone.current.fork({name:T,properties:(O={},O[ZONE_CONTEXT_KEY]=A,O)})},S.prototype._getActiveZone=function(){return Zone.current},S.prototype._patchAddEventListener=function(T,A,O){var P=this;return function(R,M,D){T.__ot_listeners===void 0&&(T.__ot_listeners={});var U=T.__ot_listeners[R];U===void 0&&(U=new WeakMap,T.__ot_listeners[R]=U);var C=P.bind(O,M);return U.set(M,C),A.call(this,R,C,D)}},S.prototype._patchRemoveEventListener=function(T,A){return function(O,P){if(T.__ot_listeners===void 0||T.__ot_listeners[O]===void 0)return A.call(this,O,P);var R=T.__ot_listeners[O],M=R.get(P);return R.delete(P),A.call(this,O,M||P)}},S.prototype.active=function(){if(!this._enabled)return ROOT_CONTEXT;var T=this._getActiveZone(),A=this._activeContextFromZone(T);return A||ROOT_CONTEXT},S.prototype.bind=function(T,A){return T===void 0&&(T=this.active()),typeof A=="function"?this._bindFunction(T,A):(isListenerObject(A)&&this._bindListener(T,A),A)},S.prototype.disable=function(){return this._enabled=!1,this},S.prototype.enable=function(){return this._enabled=!0,this},S.prototype.with=function(T,A,O){for(var P=[],R=3;R<arguments.length;R++)P[R-3]=arguments[R];var M=this._createZoneName(),D=this._createZone(M,T);return D.run(A,O,P)},S})(),zone={},hasRequiredZone;function requireZone(){if(hasRequiredZone)return zone;hasRequiredZone=1;/**
|
|
239
|
+
*//*! lifecycle.mjs v0.1.1 */let e;try{new EventTarget,e=!0}catch(S){e=!1}class t{constructor(){this.e={}}addEventListener(T,A,O=!1){this.t(T).push(A)}removeEventListener(T,A,O=!1){const P=this.t(T),R=P.indexOf(A);R>-1&&P.splice(R,1)}dispatchEvent(T){return T.target=this,Object.freeze(T),this.t(T.type).forEach(A=>A(T)),!0}t(T){return this.e[T]=this.e[T]||[]}}var s=e?EventTarget:t;class i{constructor(T){this.type=T}}var a=e?Event:i;class n extends a{constructor(T,A){super(T),this.newState=A.newState,this.oldState=A.oldState,this.originalEvent=A.originalEvent}}const r="active",h="passive",c="hidden",o="frozen",d="terminated",u=typeof safari=="object"&&safari.pushNotification,v="onpageshow"in self,l=["focus","blur","visibilitychange","freeze","resume","pageshow",v?"pagehide":"unload"],g=S=>(S.preventDefault(),S.returnValue="Are you sure?"),f=S=>S.reduce((T,A,O)=>(T[A]=O,T),{}),b=[[r,h,c,d],[r,h,c,o],[c,h,r],[o,c],[o,r],[o,h]].map(f),p=(S,T)=>{for(let A,O=0;A=b[O];++O){const P=A[S],R=A[T];if(P>=0&&R>=0&&R>P)return Object.keys(A).slice(P,R+1)}return[]},E=()=>document.visibilityState===c?c:document.hasFocus()?r:h;class m extends s{constructor(){super();const T=E();this.s=T,this.i=[],this.a=this.a.bind(this),l.forEach(A=>addEventListener(A,this.a,!0)),u&&addEventListener("beforeunload",A=>{this.n=setTimeout(()=>{A.defaultPrevented||A.returnValue.length>0||this.r(A,c)},0)})}get state(){return this.s}get pageWasDiscarded(){return document.wasDiscarded||!1}addUnsavedChanges(T){!this.i.indexOf(T)>-1&&(this.i.length===0&&addEventListener("beforeunload",g),this.i.push(T))}removeUnsavedChanges(T){const A=this.i.indexOf(T);A>-1&&(this.i.splice(A,1),this.i.length===0&&removeEventListener("beforeunload",g))}r(T,A){if(A!==this.s){const O=this.s,P=p(O,A);for(let R=0;R<P.length-1;++R){const M=P[R],D=P[R+1];this.s=D,this.dispatchEvent(new n("statechange",{oldState:M,newState:D,originalEvent:T}))}}}a(T){switch(u&&clearTimeout(this.n),T.type){case"pageshow":case"resume":this.r(T,E());break;case"focus":this.r(T,r);break;case"blur":this.s===r&&this.r(T,E());break;case"pagehide":case"unload":this.r(T,T.persisted?o:d);break;case"visibilitychange":this.s!==o&&this.s!==d&&this.r(T,E());break;case"freeze":this.r(T,o)}}}var w=new m;const lifecycle=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"}));var SUPPRESS_TRACING_KEY=createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(S){return S.setValue(SUPPRESS_TRACING_KEY,!0)}function unsuppressTracing(S){return S.deleteValue(SUPPRESS_TRACING_KEY)}function isTracingSuppressed(S){return S.getValue(SUPPRESS_TRACING_KEY)===!0}var BAGGAGE_KEY_PAIR_SEPARATOR="=",BAGGAGE_PROPERTIES_SEPARATOR=";",BAGGAGE_ITEMS_SEPARATOR=",",BAGGAGE_HEADER="baggage",BAGGAGE_MAX_NAME_VALUE_PAIRS=180,BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,BAGGAGE_MAX_TOTAL_LENGTH=8192,__read$e=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function serializeKeyPairs(S){return S.reduce(function(T,A){var O=""+T+(T!==""?BAGGAGE_ITEMS_SEPARATOR:"")+A;return O.length>BAGGAGE_MAX_TOTAL_LENGTH?T:O},"")}function getKeyPairs(S){return S.getAllEntries().map(function(T){var A=__read$e(T,2),O=A[0],P=A[1],R=encodeURIComponent(O)+"="+encodeURIComponent(P.value);return P.metadata!==void 0&&(R+=BAGGAGE_PROPERTIES_SEPARATOR+P.metadata.toString()),R})}function parsePairKeyValue(S){var T=S.split(BAGGAGE_PROPERTIES_SEPARATOR);if(!(T.length<=0)){var A=T.shift();if(A){var O=A.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR);if(!(O<=0)){var P=decodeURIComponent(A.substring(0,O).trim()),R=decodeURIComponent(A.substring(O+1).trim()),M;return T.length>0&&(M=baggageEntryMetadataFromString(T.join(BAGGAGE_PROPERTIES_SEPARATOR))),{key:P,value:R,metadata:M}}}}}function parseKeyPairsIntoRecord(S){return typeof S!="string"||S.length===0?{}:S.split(BAGGAGE_ITEMS_SEPARATOR).map(function(T){return parsePairKeyValue(T)}).filter(function(T){return T!==void 0&&T.value.length>0}).reduce(function(T,A){return T[A.key]=A.value,T},{})}var W3CBaggagePropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=propagation.getBaggage(T);if(!(!P||isTracingSuppressed(T))){var R=getKeyPairs(P).filter(function(D){return D.length<=BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,BAGGAGE_MAX_NAME_VALUE_PAIRS),M=serializeKeyPairs(R);M.length>0&&O.set(A,BAGGAGE_HEADER,M)}},S.prototype.extract=function(T,A,O){var P=O.get(A,BAGGAGE_HEADER),R=Array.isArray(P)?P.join(BAGGAGE_ITEMS_SEPARATOR):P;if(!R)return T;var M={};if(R.length===0)return T;var D=R.split(BAGGAGE_ITEMS_SEPARATOR);return D.forEach(function(U){var C=parsePairKeyValue(U);if(C){var L={value:C.value};C.metadata&&(L.metadata=C.metadata),M[C.key]=L}}),Object.entries(M).length===0?T:propagation.setBaggage(T,propagation.createBaggage(M))},S.prototype.fields=function(){return[BAGGAGE_HEADER]},S})(),AnchoredClock=(function(){function S(T,A){this._monotonicClock=A,this._epochMillis=T.now(),this._performanceMillis=A.now()}return S.prototype.now=function(){var T=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+T},S})(),__values$7=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$d=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function sanitizeAttributes(S){var T,A,O={};if(typeof S!="object"||S==null)return O;try{for(var P=__values$7(Object.entries(S)),R=P.next();!R.done;R=P.next()){var M=__read$d(R.value,2),D=M[0],U=M[1];if(!isAttributeKey(D)){diag.warn("Invalid attribute key: "+D);continue}if(!isAttributeValue(U)){diag.warn("Invalid attribute value set for key: "+D);continue}Array.isArray(U)?O[D]=U.slice():O[D]=U}}catch(C){T={error:C}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return O}function isAttributeKey(S){return typeof S=="string"&&S.length>0}function isAttributeValue(S){return S==null?!0:Array.isArray(S)?isHomogeneousAttributeValueArray(S):isValidPrimitiveAttributeValue(S)}function isHomogeneousAttributeValueArray(S){var T,A,O;try{for(var P=__values$7(S),R=P.next();!R.done;R=P.next()){var M=R.value;if(M!=null){if(!O){if(isValidPrimitiveAttributeValue(M)){O=typeof M;continue}return!1}if(typeof M!==O)return!1}}}catch(D){T={error:D}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return!0}function isValidPrimitiveAttributeValue(S){switch(typeof S){case"number":case"boolean":case"string":return!0}return!1}function loggingErrorHandler(){return function(S){diag.error(stringifyException(S))}}function stringifyException(S){return typeof S=="string"?S:JSON.stringify(flattenException(S))}function flattenException(S){for(var T={},A=S;A!==null;)Object.getOwnPropertyNames(A).forEach(function(O){if(!T[O]){var P=A[O];P&&(T[O]=String(P))}}),A=Object.getPrototypeOf(A);return T}var delegateHandler=loggingErrorHandler();function setGlobalErrorHandler(S){delegateHandler=S}function globalErrorHandler(S){try{delegateHandler(S)}catch{}}var TracesSamplerValues;(function(S){S.AlwaysOff="always_off",S.AlwaysOn="always_on",S.ParentBasedAlwaysOff="parentbased_always_off",S.ParentBasedAlwaysOn="parentbased_always_on",S.ParentBasedTraceIdRatio="parentbased_traceidratio",S.TraceIdRatio="traceidratio"})(TracesSamplerValues||(TracesSamplerValues={}));var DEFAULT_LIST_SEPARATOR=",",ENVIRONMENT_BOOLEAN_KEYS=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(S){return ENVIRONMENT_BOOLEAN_KEYS.indexOf(S)>-1}var ENVIRONMENT_NUMBERS_KEYS=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(S){return ENVIRONMENT_NUMBERS_KEYS.indexOf(S)>-1}var ENVIRONMENT_LISTS_KEYS=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function isEnvVarAList(S){return ENVIRONMENT_LISTS_KEYS.indexOf(S)>-1}var DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0,DEFAULT_ATTRIBUTE_COUNT_LIMIT=128,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128,DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function parseBoolean(S,T,A){if(!(typeof A[S]>"u")){var O=String(A[S]);T[S]=O.toLowerCase()==="true"}}function parseNumber(S,T,A,O,P){if(O===void 0&&(O=-1/0),P===void 0&&(P=1/0),typeof A[S]<"u"){var R=Number(A[S]);isNaN(R)||(R<O?T[S]=O:R>P?T[S]=P:T[S]=R)}}function parseStringList(S,T,A,O){O===void 0&&(O=DEFAULT_LIST_SEPARATOR);var P=A[S];typeof P=="string"&&(T[S]=P.split(O).map(function(R){return R.trim()}))}var logLevelMap={ALL:DiagLogLevel.ALL,VERBOSE:DiagLogLevel.VERBOSE,DEBUG:DiagLogLevel.DEBUG,INFO:DiagLogLevel.INFO,WARN:DiagLogLevel.WARN,ERROR:DiagLogLevel.ERROR,NONE:DiagLogLevel.NONE};function setLogLevelFromEnv(S,T,A){var O=A[S];if(typeof O=="string"){var P=logLevelMap[O.toUpperCase()];P!=null&&(T[S]=P)}}function parseEnvironment(S){var T={};for(var A in DEFAULT_ENVIRONMENT){var O=A;switch(O){case"OTEL_LOG_LEVEL":setLogLevelFromEnv(O,T,S);break;default:if(isEnvVarABoolean(O))parseBoolean(O,T,S);else if(isEnvVarANumber(O))parseNumber(O,T,S);else if(isEnvVarAList(O))parseStringList(O,T,S);else{var P=S[O];typeof P<"u"&&P!==null&&(T[O]=String(P))}}}return T}var _globalThis$1=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};function getEnv(){var S=parseEnvironment(_globalThis$1);return Object.assign({},DEFAULT_ENVIRONMENT,S)}function getEnvWithoutDefaults(){return parseEnvironment(_globalThis$1)}function intValue(S){return S>=48&&S<=57?S-48:S>=97&&S<=102?S-87:S-55}function hexToBinary(S){for(var T=new Uint8Array(S.length/2),A=0,O=0;O<S.length;O+=2){var P=intValue(S.charCodeAt(O)),R=intValue(S.charCodeAt(O+1));T[A++]=P<<4|R}return T}var __read$c=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$5=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))};function hexToBase64(S){return btoa(String.fromCharCode.apply(String,__spreadArray$5([],__read$c(hexToBinary(S)),!1)))}var SPAN_ID_BYTES$1=8,TRACE_ID_BYTES$1=16,RandomIdGenerator$1=(function(){function S(){this.generateTraceId=getIdGenerator$1(TRACE_ID_BYTES$1),this.generateSpanId=getIdGenerator$1(SPAN_ID_BYTES$1)}return S})(),SHARED_CHAR_CODES_ARRAY$1=Array(32);function getIdGenerator$1(S){return function(){for(var A=0;A<S*2;A++)SHARED_CHAR_CODES_ARRAY$1[A]=Math.floor(Math.random()*16)+48,SHARED_CHAR_CODES_ARRAY$1[A]>=58&&(SHARED_CHAR_CODES_ARRAY$1[A]+=39);return String.fromCharCode.apply(null,SHARED_CHAR_CODES_ARRAY$1.slice(0,S*2))}}var otperformance=performance,VERSION$2="1.30.1";function createConstMap(S){for(var T={},A=S.length,O=0;O<A;O++){var P=S[O];P&&(T[String(P).toUpperCase().replace(/[-.]/g,"_")]=P)}return T}var TMP_AWS_LAMBDA_INVOKED_ARN="aws.lambda.invoked_arn",TMP_DB_SYSTEM="db.system",TMP_DB_CONNECTION_STRING="db.connection_string",TMP_DB_USER="db.user",TMP_DB_JDBC_DRIVER_CLASSNAME="db.jdbc.driver_classname",TMP_DB_NAME="db.name",TMP_DB_STATEMENT="db.statement",TMP_DB_OPERATION="db.operation",TMP_DB_MSSQL_INSTANCE_NAME="db.mssql.instance_name",TMP_DB_CASSANDRA_KEYSPACE="db.cassandra.keyspace",TMP_DB_CASSANDRA_PAGE_SIZE="db.cassandra.page_size",TMP_DB_CASSANDRA_CONSISTENCY_LEVEL="db.cassandra.consistency_level",TMP_DB_CASSANDRA_TABLE="db.cassandra.table",TMP_DB_CASSANDRA_IDEMPOTENCE="db.cassandra.idempotence",TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT="db.cassandra.speculative_execution_count",TMP_DB_CASSANDRA_COORDINATOR_ID="db.cassandra.coordinator.id",TMP_DB_CASSANDRA_COORDINATOR_DC="db.cassandra.coordinator.dc",TMP_DB_HBASE_NAMESPACE="db.hbase.namespace",TMP_DB_REDIS_DATABASE_INDEX="db.redis.database_index",TMP_DB_MONGODB_COLLECTION="db.mongodb.collection",TMP_DB_SQL_TABLE="db.sql.table",TMP_EXCEPTION_TYPE="exception.type",TMP_EXCEPTION_MESSAGE="exception.message",TMP_EXCEPTION_STACKTRACE="exception.stacktrace",TMP_EXCEPTION_ESCAPED="exception.escaped",TMP_FAAS_TRIGGER="faas.trigger",TMP_FAAS_EXECUTION="faas.execution",TMP_FAAS_DOCUMENT_COLLECTION="faas.document.collection",TMP_FAAS_DOCUMENT_OPERATION="faas.document.operation",TMP_FAAS_DOCUMENT_TIME="faas.document.time",TMP_FAAS_DOCUMENT_NAME="faas.document.name",TMP_FAAS_TIME="faas.time",TMP_FAAS_CRON="faas.cron",TMP_FAAS_COLDSTART="faas.coldstart",TMP_FAAS_INVOKED_NAME="faas.invoked_name",TMP_FAAS_INVOKED_PROVIDER="faas.invoked_provider",TMP_FAAS_INVOKED_REGION="faas.invoked_region",TMP_NET_TRANSPORT="net.transport",TMP_NET_PEER_IP="net.peer.ip",TMP_NET_PEER_PORT="net.peer.port",TMP_NET_PEER_NAME="net.peer.name",TMP_NET_HOST_IP="net.host.ip",TMP_NET_HOST_PORT="net.host.port",TMP_NET_HOST_NAME="net.host.name",TMP_NET_HOST_CONNECTION_TYPE="net.host.connection.type",TMP_NET_HOST_CONNECTION_SUBTYPE="net.host.connection.subtype",TMP_NET_HOST_CARRIER_NAME="net.host.carrier.name",TMP_NET_HOST_CARRIER_MCC="net.host.carrier.mcc",TMP_NET_HOST_CARRIER_MNC="net.host.carrier.mnc",TMP_NET_HOST_CARRIER_ICC="net.host.carrier.icc",TMP_PEER_SERVICE="peer.service",TMP_ENDUSER_ID="enduser.id",TMP_ENDUSER_ROLE="enduser.role",TMP_ENDUSER_SCOPE="enduser.scope",TMP_THREAD_ID="thread.id",TMP_THREAD_NAME="thread.name",TMP_CODE_FUNCTION="code.function",TMP_CODE_NAMESPACE="code.namespace",TMP_CODE_FILEPATH="code.filepath",TMP_CODE_LINENO="code.lineno",TMP_HTTP_METHOD="http.method",TMP_HTTP_URL="http.url",TMP_HTTP_TARGET="http.target",TMP_HTTP_HOST="http.host",TMP_HTTP_SCHEME="http.scheme",TMP_HTTP_STATUS_CODE="http.status_code",TMP_HTTP_FLAVOR="http.flavor",TMP_HTTP_USER_AGENT="http.user_agent",TMP_HTTP_REQUEST_CONTENT_LENGTH="http.request_content_length",TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",TMP_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED="http.response_content_length_uncompressed",TMP_HTTP_SERVER_NAME="http.server_name",TMP_HTTP_ROUTE="http.route",TMP_HTTP_CLIENT_IP="http.client_ip",TMP_AWS_DYNAMODB_TABLE_NAMES="aws.dynamodb.table_names",TMP_AWS_DYNAMODB_CONSUMED_CAPACITY="aws.dynamodb.consumed_capacity",TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS="aws.dynamodb.item_collection_metrics",TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY="aws.dynamodb.provisioned_read_capacity",TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY="aws.dynamodb.provisioned_write_capacity",TMP_AWS_DYNAMODB_CONSISTENT_READ="aws.dynamodb.consistent_read",TMP_AWS_DYNAMODB_PROJECTION="aws.dynamodb.projection",TMP_AWS_DYNAMODB_LIMIT="aws.dynamodb.limit",TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET="aws.dynamodb.attributes_to_get",TMP_AWS_DYNAMODB_INDEX_NAME="aws.dynamodb.index_name",TMP_AWS_DYNAMODB_SELECT="aws.dynamodb.select",TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES="aws.dynamodb.global_secondary_indexes",TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES="aws.dynamodb.local_secondary_indexes",TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE="aws.dynamodb.exclusive_start_table",TMP_AWS_DYNAMODB_TABLE_COUNT="aws.dynamodb.table_count",TMP_AWS_DYNAMODB_SCAN_FORWARD="aws.dynamodb.scan_forward",TMP_AWS_DYNAMODB_SEGMENT="aws.dynamodb.segment",TMP_AWS_DYNAMODB_TOTAL_SEGMENTS="aws.dynamodb.total_segments",TMP_AWS_DYNAMODB_COUNT="aws.dynamodb.count",TMP_AWS_DYNAMODB_SCANNED_COUNT="aws.dynamodb.scanned_count",TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS="aws.dynamodb.attribute_definitions",TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES="aws.dynamodb.global_secondary_index_updates",TMP_MESSAGING_SYSTEM="messaging.system",TMP_MESSAGING_DESTINATION="messaging.destination",TMP_MESSAGING_DESTINATION_KIND="messaging.destination_kind",TMP_MESSAGING_TEMP_DESTINATION="messaging.temp_destination",TMP_MESSAGING_PROTOCOL="messaging.protocol",TMP_MESSAGING_PROTOCOL_VERSION="messaging.protocol_version",TMP_MESSAGING_URL="messaging.url",TMP_MESSAGING_MESSAGE_ID="messaging.message_id",TMP_MESSAGING_CONVERSATION_ID="messaging.conversation_id",TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES="messaging.message_payload_size_bytes",TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES="messaging.message_payload_compressed_size_bytes",TMP_MESSAGING_OPERATION="messaging.operation",TMP_MESSAGING_CONSUMER_ID="messaging.consumer_id",TMP_MESSAGING_RABBITMQ_ROUTING_KEY="messaging.rabbitmq.routing_key",TMP_MESSAGING_KAFKA_MESSAGE_KEY="messaging.kafka.message_key",TMP_MESSAGING_KAFKA_CONSUMER_GROUP="messaging.kafka.consumer_group",TMP_MESSAGING_KAFKA_CLIENT_ID="messaging.kafka.client_id",TMP_MESSAGING_KAFKA_PARTITION="messaging.kafka.partition",TMP_MESSAGING_KAFKA_TOMBSTONE="messaging.kafka.tombstone",TMP_RPC_SYSTEM="rpc.system",TMP_RPC_SERVICE="rpc.service",TMP_RPC_METHOD="rpc.method",TMP_RPC_GRPC_STATUS_CODE="rpc.grpc.status_code",TMP_RPC_JSONRPC_VERSION="rpc.jsonrpc.version",TMP_RPC_JSONRPC_REQUEST_ID="rpc.jsonrpc.request_id",TMP_RPC_JSONRPC_ERROR_CODE="rpc.jsonrpc.error_code",TMP_RPC_JSONRPC_ERROR_MESSAGE="rpc.jsonrpc.error_message",TMP_MESSAGE_TYPE="message.type",TMP_MESSAGE_ID="message.id",TMP_MESSAGE_COMPRESSED_SIZE="message.compressed_size",TMP_MESSAGE_UNCOMPRESSED_SIZE="message.uncompressed_size",SEMATTRS_AWS_LAMBDA_INVOKED_ARN=TMP_AWS_LAMBDA_INVOKED_ARN,SEMATTRS_DB_SYSTEM=TMP_DB_SYSTEM,SEMATTRS_DB_CONNECTION_STRING=TMP_DB_CONNECTION_STRING,SEMATTRS_DB_USER=TMP_DB_USER,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=TMP_DB_JDBC_DRIVER_CLASSNAME,SEMATTRS_DB_NAME=TMP_DB_NAME,SEMATTRS_DB_STATEMENT=TMP_DB_STATEMENT,SEMATTRS_DB_OPERATION=TMP_DB_OPERATION,SEMATTRS_DB_MSSQL_INSTANCE_NAME=TMP_DB_MSSQL_INSTANCE_NAME,SEMATTRS_DB_CASSANDRA_KEYSPACE=TMP_DB_CASSANDRA_KEYSPACE,SEMATTRS_DB_CASSANDRA_PAGE_SIZE=TMP_DB_CASSANDRA_PAGE_SIZE,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=TMP_DB_CASSANDRA_CONSISTENCY_LEVEL,SEMATTRS_DB_CASSANDRA_TABLE=TMP_DB_CASSANDRA_TABLE,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=TMP_DB_CASSANDRA_IDEMPOTENCE,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=TMP_DB_CASSANDRA_COORDINATOR_ID,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=TMP_DB_CASSANDRA_COORDINATOR_DC,SEMATTRS_DB_HBASE_NAMESPACE=TMP_DB_HBASE_NAMESPACE,SEMATTRS_DB_REDIS_DATABASE_INDEX=TMP_DB_REDIS_DATABASE_INDEX,SEMATTRS_DB_MONGODB_COLLECTION=TMP_DB_MONGODB_COLLECTION,SEMATTRS_DB_SQL_TABLE=TMP_DB_SQL_TABLE,SEMATTRS_EXCEPTION_TYPE=TMP_EXCEPTION_TYPE,SEMATTRS_EXCEPTION_MESSAGE=TMP_EXCEPTION_MESSAGE,SEMATTRS_EXCEPTION_STACKTRACE=TMP_EXCEPTION_STACKTRACE,SEMATTRS_EXCEPTION_ESCAPED=TMP_EXCEPTION_ESCAPED,SEMATTRS_FAAS_TRIGGER=TMP_FAAS_TRIGGER,SEMATTRS_FAAS_EXECUTION=TMP_FAAS_EXECUTION,SEMATTRS_FAAS_DOCUMENT_COLLECTION=TMP_FAAS_DOCUMENT_COLLECTION,SEMATTRS_FAAS_DOCUMENT_OPERATION=TMP_FAAS_DOCUMENT_OPERATION,SEMATTRS_FAAS_DOCUMENT_TIME=TMP_FAAS_DOCUMENT_TIME,SEMATTRS_FAAS_DOCUMENT_NAME=TMP_FAAS_DOCUMENT_NAME,SEMATTRS_FAAS_TIME=TMP_FAAS_TIME,SEMATTRS_FAAS_CRON=TMP_FAAS_CRON,SEMATTRS_FAAS_COLDSTART=TMP_FAAS_COLDSTART,SEMATTRS_FAAS_INVOKED_NAME=TMP_FAAS_INVOKED_NAME,SEMATTRS_FAAS_INVOKED_PROVIDER=TMP_FAAS_INVOKED_PROVIDER,SEMATTRS_FAAS_INVOKED_REGION=TMP_FAAS_INVOKED_REGION,SEMATTRS_NET_TRANSPORT=TMP_NET_TRANSPORT,SEMATTRS_NET_PEER_IP=TMP_NET_PEER_IP,SEMATTRS_NET_PEER_PORT=TMP_NET_PEER_PORT,SEMATTRS_NET_PEER_NAME=TMP_NET_PEER_NAME,SEMATTRS_NET_HOST_IP=TMP_NET_HOST_IP,SEMATTRS_NET_HOST_PORT=TMP_NET_HOST_PORT,SEMATTRS_NET_HOST_NAME=TMP_NET_HOST_NAME,SEMATTRS_NET_HOST_CONNECTION_TYPE=TMP_NET_HOST_CONNECTION_TYPE,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=TMP_NET_HOST_CONNECTION_SUBTYPE,SEMATTRS_NET_HOST_CARRIER_NAME=TMP_NET_HOST_CARRIER_NAME,SEMATTRS_NET_HOST_CARRIER_MCC=TMP_NET_HOST_CARRIER_MCC,SEMATTRS_NET_HOST_CARRIER_MNC=TMP_NET_HOST_CARRIER_MNC,SEMATTRS_NET_HOST_CARRIER_ICC=TMP_NET_HOST_CARRIER_ICC,SEMATTRS_PEER_SERVICE=TMP_PEER_SERVICE,SEMATTRS_ENDUSER_ID=TMP_ENDUSER_ID,SEMATTRS_ENDUSER_ROLE=TMP_ENDUSER_ROLE,SEMATTRS_ENDUSER_SCOPE=TMP_ENDUSER_SCOPE,SEMATTRS_THREAD_ID=TMP_THREAD_ID,SEMATTRS_THREAD_NAME=TMP_THREAD_NAME,SEMATTRS_CODE_FUNCTION=TMP_CODE_FUNCTION,SEMATTRS_CODE_NAMESPACE=TMP_CODE_NAMESPACE,SEMATTRS_CODE_FILEPATH=TMP_CODE_FILEPATH,SEMATTRS_CODE_LINENO=TMP_CODE_LINENO,SEMATTRS_HTTP_METHOD=TMP_HTTP_METHOD,SEMATTRS_HTTP_URL=TMP_HTTP_URL,SEMATTRS_HTTP_TARGET=TMP_HTTP_TARGET,SEMATTRS_HTTP_HOST=TMP_HTTP_HOST,SEMATTRS_HTTP_SCHEME=TMP_HTTP_SCHEME,SEMATTRS_HTTP_STATUS_CODE=TMP_HTTP_STATUS_CODE,SEMATTRS_HTTP_FLAVOR=TMP_HTTP_FLAVOR,SEMATTRS_HTTP_USER_AGENT=TMP_HTTP_USER_AGENT,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=TMP_HTTP_REQUEST_CONTENT_LENGTH,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=TMP_HTTP_RESPONSE_CONTENT_LENGTH,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_SERVER_NAME=TMP_HTTP_SERVER_NAME,SEMATTRS_HTTP_ROUTE=TMP_HTTP_ROUTE,SEMATTRS_HTTP_CLIENT_IP=TMP_HTTP_CLIENT_IP,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=TMP_AWS_DYNAMODB_TABLE_NAMES,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=TMP_AWS_DYNAMODB_CONSUMED_CAPACITY,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=TMP_AWS_DYNAMODB_CONSISTENT_READ,SEMATTRS_AWS_DYNAMODB_PROJECTION=TMP_AWS_DYNAMODB_PROJECTION,SEMATTRS_AWS_DYNAMODB_LIMIT=TMP_AWS_DYNAMODB_LIMIT,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET,SEMATTRS_AWS_DYNAMODB_INDEX_NAME=TMP_AWS_DYNAMODB_INDEX_NAME,SEMATTRS_AWS_DYNAMODB_SELECT=TMP_AWS_DYNAMODB_SELECT,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=TMP_AWS_DYNAMODB_TABLE_COUNT,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=TMP_AWS_DYNAMODB_SCAN_FORWARD,SEMATTRS_AWS_DYNAMODB_SEGMENT=TMP_AWS_DYNAMODB_SEGMENT,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=TMP_AWS_DYNAMODB_TOTAL_SEGMENTS,SEMATTRS_AWS_DYNAMODB_COUNT=TMP_AWS_DYNAMODB_COUNT,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=TMP_AWS_DYNAMODB_SCANNED_COUNT,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES,SEMATTRS_MESSAGING_SYSTEM=TMP_MESSAGING_SYSTEM,SEMATTRS_MESSAGING_DESTINATION=TMP_MESSAGING_DESTINATION,SEMATTRS_MESSAGING_DESTINATION_KIND=TMP_MESSAGING_DESTINATION_KIND,SEMATTRS_MESSAGING_TEMP_DESTINATION=TMP_MESSAGING_TEMP_DESTINATION,SEMATTRS_MESSAGING_PROTOCOL=TMP_MESSAGING_PROTOCOL,SEMATTRS_MESSAGING_PROTOCOL_VERSION=TMP_MESSAGING_PROTOCOL_VERSION,SEMATTRS_MESSAGING_URL=TMP_MESSAGING_URL,SEMATTRS_MESSAGING_MESSAGE_ID=TMP_MESSAGING_MESSAGE_ID,SEMATTRS_MESSAGING_CONVERSATION_ID=TMP_MESSAGING_CONVERSATION_ID,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES,SEMATTRS_MESSAGING_OPERATION=TMP_MESSAGING_OPERATION,SEMATTRS_MESSAGING_CONSUMER_ID=TMP_MESSAGING_CONSUMER_ID,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=TMP_MESSAGING_RABBITMQ_ROUTING_KEY,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=TMP_MESSAGING_KAFKA_MESSAGE_KEY,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=TMP_MESSAGING_KAFKA_CONSUMER_GROUP,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=TMP_MESSAGING_KAFKA_CLIENT_ID,SEMATTRS_MESSAGING_KAFKA_PARTITION=TMP_MESSAGING_KAFKA_PARTITION,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=TMP_MESSAGING_KAFKA_TOMBSTONE,SEMATTRS_RPC_SYSTEM=TMP_RPC_SYSTEM,SEMATTRS_RPC_SERVICE=TMP_RPC_SERVICE,SEMATTRS_RPC_METHOD=TMP_RPC_METHOD,SEMATTRS_RPC_GRPC_STATUS_CODE=TMP_RPC_GRPC_STATUS_CODE,SEMATTRS_RPC_JSONRPC_VERSION=TMP_RPC_JSONRPC_VERSION,SEMATTRS_RPC_JSONRPC_REQUEST_ID=TMP_RPC_JSONRPC_REQUEST_ID,SEMATTRS_RPC_JSONRPC_ERROR_CODE=TMP_RPC_JSONRPC_ERROR_CODE,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=TMP_RPC_JSONRPC_ERROR_MESSAGE,SEMATTRS_MESSAGE_TYPE=TMP_MESSAGE_TYPE,SEMATTRS_MESSAGE_ID=TMP_MESSAGE_ID,SEMATTRS_MESSAGE_COMPRESSED_SIZE=TMP_MESSAGE_COMPRESSED_SIZE,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=TMP_MESSAGE_UNCOMPRESSED_SIZE,SemanticAttributes=createConstMap([TMP_AWS_LAMBDA_INVOKED_ARN,TMP_DB_SYSTEM,TMP_DB_CONNECTION_STRING,TMP_DB_USER,TMP_DB_JDBC_DRIVER_CLASSNAME,TMP_DB_NAME,TMP_DB_STATEMENT,TMP_DB_OPERATION,TMP_DB_MSSQL_INSTANCE_NAME,TMP_DB_CASSANDRA_KEYSPACE,TMP_DB_CASSANDRA_PAGE_SIZE,TMP_DB_CASSANDRA_CONSISTENCY_LEVEL,TMP_DB_CASSANDRA_TABLE,TMP_DB_CASSANDRA_IDEMPOTENCE,TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT,TMP_DB_CASSANDRA_COORDINATOR_ID,TMP_DB_CASSANDRA_COORDINATOR_DC,TMP_DB_HBASE_NAMESPACE,TMP_DB_REDIS_DATABASE_INDEX,TMP_DB_MONGODB_COLLECTION,TMP_DB_SQL_TABLE,TMP_EXCEPTION_TYPE,TMP_EXCEPTION_MESSAGE,TMP_EXCEPTION_STACKTRACE,TMP_EXCEPTION_ESCAPED,TMP_FAAS_TRIGGER,TMP_FAAS_EXECUTION,TMP_FAAS_DOCUMENT_COLLECTION,TMP_FAAS_DOCUMENT_OPERATION,TMP_FAAS_DOCUMENT_TIME,TMP_FAAS_DOCUMENT_NAME,TMP_FAAS_TIME,TMP_FAAS_CRON,TMP_FAAS_COLDSTART,TMP_FAAS_INVOKED_NAME,TMP_FAAS_INVOKED_PROVIDER,TMP_FAAS_INVOKED_REGION,TMP_NET_TRANSPORT,TMP_NET_PEER_IP,TMP_NET_PEER_PORT,TMP_NET_PEER_NAME,TMP_NET_HOST_IP,TMP_NET_HOST_PORT,TMP_NET_HOST_NAME,TMP_NET_HOST_CONNECTION_TYPE,TMP_NET_HOST_CONNECTION_SUBTYPE,TMP_NET_HOST_CARRIER_NAME,TMP_NET_HOST_CARRIER_MCC,TMP_NET_HOST_CARRIER_MNC,TMP_NET_HOST_CARRIER_ICC,TMP_PEER_SERVICE,TMP_ENDUSER_ID,TMP_ENDUSER_ROLE,TMP_ENDUSER_SCOPE,TMP_THREAD_ID,TMP_THREAD_NAME,TMP_CODE_FUNCTION,TMP_CODE_NAMESPACE,TMP_CODE_FILEPATH,TMP_CODE_LINENO,TMP_HTTP_METHOD,TMP_HTTP_URL,TMP_HTTP_TARGET,TMP_HTTP_HOST,TMP_HTTP_SCHEME,TMP_HTTP_STATUS_CODE,TMP_HTTP_FLAVOR,TMP_HTTP_USER_AGENT,TMP_HTTP_REQUEST_CONTENT_LENGTH,TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,TMP_HTTP_RESPONSE_CONTENT_LENGTH,TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,TMP_HTTP_SERVER_NAME,TMP_HTTP_ROUTE,TMP_HTTP_CLIENT_IP,TMP_AWS_DYNAMODB_TABLE_NAMES,TMP_AWS_DYNAMODB_CONSUMED_CAPACITY,TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS,TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY,TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY,TMP_AWS_DYNAMODB_CONSISTENT_READ,TMP_AWS_DYNAMODB_PROJECTION,TMP_AWS_DYNAMODB_LIMIT,TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET,TMP_AWS_DYNAMODB_INDEX_NAME,TMP_AWS_DYNAMODB_SELECT,TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES,TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES,TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE,TMP_AWS_DYNAMODB_TABLE_COUNT,TMP_AWS_DYNAMODB_SCAN_FORWARD,TMP_AWS_DYNAMODB_SEGMENT,TMP_AWS_DYNAMODB_TOTAL_SEGMENTS,TMP_AWS_DYNAMODB_COUNT,TMP_AWS_DYNAMODB_SCANNED_COUNT,TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS,TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES,TMP_MESSAGING_SYSTEM,TMP_MESSAGING_DESTINATION,TMP_MESSAGING_DESTINATION_KIND,TMP_MESSAGING_TEMP_DESTINATION,TMP_MESSAGING_PROTOCOL,TMP_MESSAGING_PROTOCOL_VERSION,TMP_MESSAGING_URL,TMP_MESSAGING_MESSAGE_ID,TMP_MESSAGING_CONVERSATION_ID,TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES,TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES,TMP_MESSAGING_OPERATION,TMP_MESSAGING_CONSUMER_ID,TMP_MESSAGING_RABBITMQ_ROUTING_KEY,TMP_MESSAGING_KAFKA_MESSAGE_KEY,TMP_MESSAGING_KAFKA_CONSUMER_GROUP,TMP_MESSAGING_KAFKA_CLIENT_ID,TMP_MESSAGING_KAFKA_PARTITION,TMP_MESSAGING_KAFKA_TOMBSTONE,TMP_RPC_SYSTEM,TMP_RPC_SERVICE,TMP_RPC_METHOD,TMP_RPC_GRPC_STATUS_CODE,TMP_RPC_JSONRPC_VERSION,TMP_RPC_JSONRPC_REQUEST_ID,TMP_RPC_JSONRPC_ERROR_CODE,TMP_RPC_JSONRPC_ERROR_MESSAGE,TMP_MESSAGE_TYPE,TMP_MESSAGE_ID,TMP_MESSAGE_COMPRESSED_SIZE,TMP_MESSAGE_UNCOMPRESSED_SIZE]),TMP_DBSYSTEMVALUES_OTHER_SQL="other_sql",TMP_DBSYSTEMVALUES_MSSQL="mssql",TMP_DBSYSTEMVALUES_MYSQL="mysql",TMP_DBSYSTEMVALUES_ORACLE="oracle",TMP_DBSYSTEMVALUES_DB2="db2",TMP_DBSYSTEMVALUES_POSTGRESQL="postgresql",TMP_DBSYSTEMVALUES_REDSHIFT="redshift",TMP_DBSYSTEMVALUES_HIVE="hive",TMP_DBSYSTEMVALUES_CLOUDSCAPE="cloudscape",TMP_DBSYSTEMVALUES_HSQLDB="hsqldb",TMP_DBSYSTEMVALUES_PROGRESS="progress",TMP_DBSYSTEMVALUES_MAXDB="maxdb",TMP_DBSYSTEMVALUES_HANADB="hanadb",TMP_DBSYSTEMVALUES_INGRES="ingres",TMP_DBSYSTEMVALUES_FIRSTSQL="firstsql",TMP_DBSYSTEMVALUES_EDB="edb",TMP_DBSYSTEMVALUES_CACHE="cache",TMP_DBSYSTEMVALUES_ADABAS="adabas",TMP_DBSYSTEMVALUES_FIREBIRD="firebird",TMP_DBSYSTEMVALUES_DERBY="derby",TMP_DBSYSTEMVALUES_FILEMAKER="filemaker",TMP_DBSYSTEMVALUES_INFORMIX="informix",TMP_DBSYSTEMVALUES_INSTANTDB="instantdb",TMP_DBSYSTEMVALUES_INTERBASE="interbase",TMP_DBSYSTEMVALUES_MARIADB="mariadb",TMP_DBSYSTEMVALUES_NETEZZA="netezza",TMP_DBSYSTEMVALUES_PERVASIVE="pervasive",TMP_DBSYSTEMVALUES_POINTBASE="pointbase",TMP_DBSYSTEMVALUES_SQLITE="sqlite",TMP_DBSYSTEMVALUES_SYBASE="sybase",TMP_DBSYSTEMVALUES_TERADATA="teradata",TMP_DBSYSTEMVALUES_VERTICA="vertica",TMP_DBSYSTEMVALUES_H2="h2",TMP_DBSYSTEMVALUES_COLDFUSION="coldfusion",TMP_DBSYSTEMVALUES_CASSANDRA="cassandra",TMP_DBSYSTEMVALUES_HBASE="hbase",TMP_DBSYSTEMVALUES_MONGODB="mongodb",TMP_DBSYSTEMVALUES_REDIS="redis",TMP_DBSYSTEMVALUES_COUCHBASE="couchbase",TMP_DBSYSTEMVALUES_COUCHDB="couchdb",TMP_DBSYSTEMVALUES_COSMOSDB="cosmosdb",TMP_DBSYSTEMVALUES_DYNAMODB="dynamodb",TMP_DBSYSTEMVALUES_NEO4J="neo4j",TMP_DBSYSTEMVALUES_GEODE="geode",TMP_DBSYSTEMVALUES_ELASTICSEARCH="elasticsearch",TMP_DBSYSTEMVALUES_MEMCACHED="memcached",TMP_DBSYSTEMVALUES_COCKROACHDB="cockroachdb",DBSYSTEMVALUES_OTHER_SQL=TMP_DBSYSTEMVALUES_OTHER_SQL,DBSYSTEMVALUES_MSSQL=TMP_DBSYSTEMVALUES_MSSQL,DBSYSTEMVALUES_MYSQL=TMP_DBSYSTEMVALUES_MYSQL,DBSYSTEMVALUES_ORACLE=TMP_DBSYSTEMVALUES_ORACLE,DBSYSTEMVALUES_DB2=TMP_DBSYSTEMVALUES_DB2,DBSYSTEMVALUES_POSTGRESQL=TMP_DBSYSTEMVALUES_POSTGRESQL,DBSYSTEMVALUES_REDSHIFT=TMP_DBSYSTEMVALUES_REDSHIFT,DBSYSTEMVALUES_HIVE=TMP_DBSYSTEMVALUES_HIVE,DBSYSTEMVALUES_CLOUDSCAPE=TMP_DBSYSTEMVALUES_CLOUDSCAPE,DBSYSTEMVALUES_HSQLDB=TMP_DBSYSTEMVALUES_HSQLDB,DBSYSTEMVALUES_PROGRESS=TMP_DBSYSTEMVALUES_PROGRESS,DBSYSTEMVALUES_MAXDB=TMP_DBSYSTEMVALUES_MAXDB,DBSYSTEMVALUES_HANADB=TMP_DBSYSTEMVALUES_HANADB,DBSYSTEMVALUES_INGRES=TMP_DBSYSTEMVALUES_INGRES,DBSYSTEMVALUES_FIRSTSQL=TMP_DBSYSTEMVALUES_FIRSTSQL,DBSYSTEMVALUES_EDB=TMP_DBSYSTEMVALUES_EDB,DBSYSTEMVALUES_CACHE=TMP_DBSYSTEMVALUES_CACHE,DBSYSTEMVALUES_ADABAS=TMP_DBSYSTEMVALUES_ADABAS,DBSYSTEMVALUES_FIREBIRD=TMP_DBSYSTEMVALUES_FIREBIRD,DBSYSTEMVALUES_DERBY=TMP_DBSYSTEMVALUES_DERBY,DBSYSTEMVALUES_FILEMAKER=TMP_DBSYSTEMVALUES_FILEMAKER,DBSYSTEMVALUES_INFORMIX=TMP_DBSYSTEMVALUES_INFORMIX,DBSYSTEMVALUES_INSTANTDB=TMP_DBSYSTEMVALUES_INSTANTDB,DBSYSTEMVALUES_INTERBASE=TMP_DBSYSTEMVALUES_INTERBASE,DBSYSTEMVALUES_MARIADB=TMP_DBSYSTEMVALUES_MARIADB,DBSYSTEMVALUES_NETEZZA=TMP_DBSYSTEMVALUES_NETEZZA,DBSYSTEMVALUES_PERVASIVE=TMP_DBSYSTEMVALUES_PERVASIVE,DBSYSTEMVALUES_POINTBASE=TMP_DBSYSTEMVALUES_POINTBASE,DBSYSTEMVALUES_SQLITE=TMP_DBSYSTEMVALUES_SQLITE,DBSYSTEMVALUES_SYBASE=TMP_DBSYSTEMVALUES_SYBASE,DBSYSTEMVALUES_TERADATA=TMP_DBSYSTEMVALUES_TERADATA,DBSYSTEMVALUES_VERTICA=TMP_DBSYSTEMVALUES_VERTICA,DBSYSTEMVALUES_H2=TMP_DBSYSTEMVALUES_H2,DBSYSTEMVALUES_COLDFUSION=TMP_DBSYSTEMVALUES_COLDFUSION,DBSYSTEMVALUES_CASSANDRA=TMP_DBSYSTEMVALUES_CASSANDRA,DBSYSTEMVALUES_HBASE=TMP_DBSYSTEMVALUES_HBASE,DBSYSTEMVALUES_MONGODB=TMP_DBSYSTEMVALUES_MONGODB,DBSYSTEMVALUES_REDIS=TMP_DBSYSTEMVALUES_REDIS,DBSYSTEMVALUES_COUCHBASE=TMP_DBSYSTEMVALUES_COUCHBASE,DBSYSTEMVALUES_COUCHDB=TMP_DBSYSTEMVALUES_COUCHDB,DBSYSTEMVALUES_COSMOSDB=TMP_DBSYSTEMVALUES_COSMOSDB,DBSYSTEMVALUES_DYNAMODB=TMP_DBSYSTEMVALUES_DYNAMODB,DBSYSTEMVALUES_NEO4J=TMP_DBSYSTEMVALUES_NEO4J,DBSYSTEMVALUES_GEODE=TMP_DBSYSTEMVALUES_GEODE,DBSYSTEMVALUES_ELASTICSEARCH=TMP_DBSYSTEMVALUES_ELASTICSEARCH,DBSYSTEMVALUES_MEMCACHED=TMP_DBSYSTEMVALUES_MEMCACHED,DBSYSTEMVALUES_COCKROACHDB=TMP_DBSYSTEMVALUES_COCKROACHDB,DbSystemValues=createConstMap([TMP_DBSYSTEMVALUES_OTHER_SQL,TMP_DBSYSTEMVALUES_MSSQL,TMP_DBSYSTEMVALUES_MYSQL,TMP_DBSYSTEMVALUES_ORACLE,TMP_DBSYSTEMVALUES_DB2,TMP_DBSYSTEMVALUES_POSTGRESQL,TMP_DBSYSTEMVALUES_REDSHIFT,TMP_DBSYSTEMVALUES_HIVE,TMP_DBSYSTEMVALUES_CLOUDSCAPE,TMP_DBSYSTEMVALUES_HSQLDB,TMP_DBSYSTEMVALUES_PROGRESS,TMP_DBSYSTEMVALUES_MAXDB,TMP_DBSYSTEMVALUES_HANADB,TMP_DBSYSTEMVALUES_INGRES,TMP_DBSYSTEMVALUES_FIRSTSQL,TMP_DBSYSTEMVALUES_EDB,TMP_DBSYSTEMVALUES_CACHE,TMP_DBSYSTEMVALUES_ADABAS,TMP_DBSYSTEMVALUES_FIREBIRD,TMP_DBSYSTEMVALUES_DERBY,TMP_DBSYSTEMVALUES_FILEMAKER,TMP_DBSYSTEMVALUES_INFORMIX,TMP_DBSYSTEMVALUES_INSTANTDB,TMP_DBSYSTEMVALUES_INTERBASE,TMP_DBSYSTEMVALUES_MARIADB,TMP_DBSYSTEMVALUES_NETEZZA,TMP_DBSYSTEMVALUES_PERVASIVE,TMP_DBSYSTEMVALUES_POINTBASE,TMP_DBSYSTEMVALUES_SQLITE,TMP_DBSYSTEMVALUES_SYBASE,TMP_DBSYSTEMVALUES_TERADATA,TMP_DBSYSTEMVALUES_VERTICA,TMP_DBSYSTEMVALUES_H2,TMP_DBSYSTEMVALUES_COLDFUSION,TMP_DBSYSTEMVALUES_CASSANDRA,TMP_DBSYSTEMVALUES_HBASE,TMP_DBSYSTEMVALUES_MONGODB,TMP_DBSYSTEMVALUES_REDIS,TMP_DBSYSTEMVALUES_COUCHBASE,TMP_DBSYSTEMVALUES_COUCHDB,TMP_DBSYSTEMVALUES_COSMOSDB,TMP_DBSYSTEMVALUES_DYNAMODB,TMP_DBSYSTEMVALUES_NEO4J,TMP_DBSYSTEMVALUES_GEODE,TMP_DBSYSTEMVALUES_ELASTICSEARCH,TMP_DBSYSTEMVALUES_MEMCACHED,TMP_DBSYSTEMVALUES_COCKROACHDB]),TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL="all",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM="each_quorum",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM="quorum",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM="local_quorum",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE="one",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO="two",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE="three",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE="local_one",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY="any",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL="serial",TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL="local_serial",DBCASSANDRACONSISTENCYLEVELVALUES_ALL=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_ONE=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_TWO=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO,DBCASSANDRACONSISTENCYLEVELVALUES_THREE=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_ANY=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL,DbCassandraConsistencyLevelValues=createConstMap([TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL,TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL]),TMP_FAASTRIGGERVALUES_DATASOURCE="datasource",TMP_FAASTRIGGERVALUES_HTTP="http",TMP_FAASTRIGGERVALUES_PUBSUB="pubsub",TMP_FAASTRIGGERVALUES_TIMER="timer",TMP_FAASTRIGGERVALUES_OTHER="other",FAASTRIGGERVALUES_DATASOURCE=TMP_FAASTRIGGERVALUES_DATASOURCE,FAASTRIGGERVALUES_HTTP=TMP_FAASTRIGGERVALUES_HTTP,FAASTRIGGERVALUES_PUBSUB=TMP_FAASTRIGGERVALUES_PUBSUB,FAASTRIGGERVALUES_TIMER=TMP_FAASTRIGGERVALUES_TIMER,FAASTRIGGERVALUES_OTHER=TMP_FAASTRIGGERVALUES_OTHER,FaasTriggerValues=createConstMap([TMP_FAASTRIGGERVALUES_DATASOURCE,TMP_FAASTRIGGERVALUES_HTTP,TMP_FAASTRIGGERVALUES_PUBSUB,TMP_FAASTRIGGERVALUES_TIMER,TMP_FAASTRIGGERVALUES_OTHER]),TMP_FAASDOCUMENTOPERATIONVALUES_INSERT="insert",TMP_FAASDOCUMENTOPERATIONVALUES_EDIT="edit",TMP_FAASDOCUMENTOPERATIONVALUES_DELETE="delete",FAASDOCUMENTOPERATIONVALUES_INSERT=TMP_FAASDOCUMENTOPERATIONVALUES_INSERT,FAASDOCUMENTOPERATIONVALUES_EDIT=TMP_FAASDOCUMENTOPERATIONVALUES_EDIT,FAASDOCUMENTOPERATIONVALUES_DELETE=TMP_FAASDOCUMENTOPERATIONVALUES_DELETE,FaasDocumentOperationValues=createConstMap([TMP_FAASDOCUMENTOPERATIONVALUES_INSERT,TMP_FAASDOCUMENTOPERATIONVALUES_EDIT,TMP_FAASDOCUMENTOPERATIONVALUES_DELETE]),TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD="alibaba_cloud",TMP_FAASINVOKEDPROVIDERVALUES_AWS="aws",TMP_FAASINVOKEDPROVIDERVALUES_AZURE="azure",TMP_FAASINVOKEDPROVIDERVALUES_GCP="gcp",FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD,FAASINVOKEDPROVIDERVALUES_AWS=TMP_FAASINVOKEDPROVIDERVALUES_AWS,FAASINVOKEDPROVIDERVALUES_AZURE=TMP_FAASINVOKEDPROVIDERVALUES_AZURE,FAASINVOKEDPROVIDERVALUES_GCP=TMP_FAASINVOKEDPROVIDERVALUES_GCP,FaasInvokedProviderValues=createConstMap([TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD,TMP_FAASINVOKEDPROVIDERVALUES_AWS,TMP_FAASINVOKEDPROVIDERVALUES_AZURE,TMP_FAASINVOKEDPROVIDERVALUES_GCP]),TMP_NETTRANSPORTVALUES_IP_TCP="ip_tcp",TMP_NETTRANSPORTVALUES_IP_UDP="ip_udp",TMP_NETTRANSPORTVALUES_IP="ip",TMP_NETTRANSPORTVALUES_UNIX="unix",TMP_NETTRANSPORTVALUES_PIPE="pipe",TMP_NETTRANSPORTVALUES_INPROC="inproc",TMP_NETTRANSPORTVALUES_OTHER="other",NETTRANSPORTVALUES_IP_TCP=TMP_NETTRANSPORTVALUES_IP_TCP,NETTRANSPORTVALUES_IP_UDP=TMP_NETTRANSPORTVALUES_IP_UDP,NETTRANSPORTVALUES_IP=TMP_NETTRANSPORTVALUES_IP,NETTRANSPORTVALUES_UNIX=TMP_NETTRANSPORTVALUES_UNIX,NETTRANSPORTVALUES_PIPE=TMP_NETTRANSPORTVALUES_PIPE,NETTRANSPORTVALUES_INPROC=TMP_NETTRANSPORTVALUES_INPROC,NETTRANSPORTVALUES_OTHER=TMP_NETTRANSPORTVALUES_OTHER,NetTransportValues=createConstMap([TMP_NETTRANSPORTVALUES_IP_TCP,TMP_NETTRANSPORTVALUES_IP_UDP,TMP_NETTRANSPORTVALUES_IP,TMP_NETTRANSPORTVALUES_UNIX,TMP_NETTRANSPORTVALUES_PIPE,TMP_NETTRANSPORTVALUES_INPROC,TMP_NETTRANSPORTVALUES_OTHER]),TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI="wifi",TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED="wired",TMP_NETHOSTCONNECTIONTYPEVALUES_CELL="cell",TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE="unavailable",TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN="unknown",NETHOSTCONNECTIONTYPEVALUES_WIFI=TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI,NETHOSTCONNECTIONTYPEVALUES_WIRED=TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED,NETHOSTCONNECTIONTYPEVALUES_CELL=TMP_NETHOSTCONNECTIONTYPEVALUES_CELL,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN,NetHostConnectionTypeValues=createConstMap([TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI,TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED,TMP_NETHOSTCONNECTIONTYPEVALUES_CELL,TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE,TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN]),TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS="gprs",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE="edge",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS="umts",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA="cdma",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0="evdo_0",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A="evdo_a",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT="cdma2000_1xrtt",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA="hsdpa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA="hsupa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA="hspa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN="iden",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B="evdo_b",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE="lte",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD="ehrpd",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP="hspap",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM="gsm",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA="td_scdma",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN="iwlan",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR="nr",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA="nrnsa",TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA="lte_ca",NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B,NETHOSTCONNECTIONSUBTYPEVALUES_LTE=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP,NETHOSTCONNECTIONSUBTYPEVALUES_GSM=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN,NETHOSTCONNECTIONSUBTYPEVALUES_NR=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA,NetHostConnectionSubtypeValues=createConstMap([TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA,TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA]),TMP_HTTPFLAVORVALUES_HTTP_1_0="1.0",TMP_HTTPFLAVORVALUES_HTTP_1_1="1.1",TMP_HTTPFLAVORVALUES_HTTP_2_0="2.0",TMP_HTTPFLAVORVALUES_SPDY="SPDY",TMP_HTTPFLAVORVALUES_QUIC="QUIC",HTTPFLAVORVALUES_HTTP_1_0=TMP_HTTPFLAVORVALUES_HTTP_1_0,HTTPFLAVORVALUES_HTTP_1_1=TMP_HTTPFLAVORVALUES_HTTP_1_1,HTTPFLAVORVALUES_HTTP_2_0=TMP_HTTPFLAVORVALUES_HTTP_2_0,HTTPFLAVORVALUES_SPDY=TMP_HTTPFLAVORVALUES_SPDY,HTTPFLAVORVALUES_QUIC=TMP_HTTPFLAVORVALUES_QUIC,HttpFlavorValues={HTTP_1_0:TMP_HTTPFLAVORVALUES_HTTP_1_0,HTTP_1_1:TMP_HTTPFLAVORVALUES_HTTP_1_1,HTTP_2_0:TMP_HTTPFLAVORVALUES_HTTP_2_0,SPDY:TMP_HTTPFLAVORVALUES_SPDY,QUIC:TMP_HTTPFLAVORVALUES_QUIC},TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE="queue",TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC="topic",MESSAGINGDESTINATIONKINDVALUES_QUEUE=TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE,MESSAGINGDESTINATIONKINDVALUES_TOPIC=TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC,MessagingDestinationKindValues=createConstMap([TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE,TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC]),TMP_MESSAGINGOPERATIONVALUES_RECEIVE="receive",TMP_MESSAGINGOPERATIONVALUES_PROCESS="process",MESSAGINGOPERATIONVALUES_RECEIVE=TMP_MESSAGINGOPERATIONVALUES_RECEIVE,MESSAGINGOPERATIONVALUES_PROCESS=TMP_MESSAGINGOPERATIONVALUES_PROCESS,MessagingOperationValues=createConstMap([TMP_MESSAGINGOPERATIONVALUES_RECEIVE,TMP_MESSAGINGOPERATIONVALUES_PROCESS]),TMP_RPCGRPCSTATUSCODEVALUES_OK=0,TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED=1,TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN=2,TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=3,TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=4,TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND=5,TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=6,TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=7,TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=8,TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=9,TMP_RPCGRPCSTATUSCODEVALUES_ABORTED=10,TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=11,TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=12,TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL=13,TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=14,TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS=15,TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=16,RPCGRPCSTATUSCODEVALUES_OK=TMP_RPCGRPCSTATUSCODEVALUES_OK,RPCGRPCSTATUSCODEVALUES_CANCELLED=TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED,RPCGRPCSTATUSCODEVALUES_UNKNOWN=TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED,RPCGRPCSTATUSCODEVALUES_NOT_FOUND=TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION,RPCGRPCSTATUSCODEVALUES_ABORTED=TMP_RPCGRPCSTATUSCODEVALUES_ABORTED,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED,RPCGRPCSTATUSCODEVALUES_INTERNAL=TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE,RPCGRPCSTATUSCODEVALUES_DATA_LOSS=TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED,RpcGrpcStatusCodeValues={OK:TMP_RPCGRPCSTATUSCODEVALUES_OK,CANCELLED:TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED,UNKNOWN:TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN,INVALID_ARGUMENT:TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT,DEADLINE_EXCEEDED:TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED,NOT_FOUND:TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND,ALREADY_EXISTS:TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS,PERMISSION_DENIED:TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED,RESOURCE_EXHAUSTED:TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED,FAILED_PRECONDITION:TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION,ABORTED:TMP_RPCGRPCSTATUSCODEVALUES_ABORTED,OUT_OF_RANGE:TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE,UNIMPLEMENTED:TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED,INTERNAL:TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL,UNAVAILABLE:TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE,DATA_LOSS:TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS,UNAUTHENTICATED:TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED},TMP_MESSAGETYPEVALUES_SENT="SENT",TMP_MESSAGETYPEVALUES_RECEIVED="RECEIVED",MESSAGETYPEVALUES_SENT=TMP_MESSAGETYPEVALUES_SENT,MESSAGETYPEVALUES_RECEIVED=TMP_MESSAGETYPEVALUES_RECEIVED,MessageTypeValues=createConstMap([TMP_MESSAGETYPEVALUES_SENT,TMP_MESSAGETYPEVALUES_RECEIVED]),TMP_CLOUD_PROVIDER="cloud.provider",TMP_CLOUD_ACCOUNT_ID="cloud.account.id",TMP_CLOUD_REGION="cloud.region",TMP_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone",TMP_CLOUD_PLATFORM="cloud.platform",TMP_AWS_ECS_CONTAINER_ARN="aws.ecs.container.arn",TMP_AWS_ECS_CLUSTER_ARN="aws.ecs.cluster.arn",TMP_AWS_ECS_LAUNCHTYPE="aws.ecs.launchtype",TMP_AWS_ECS_TASK_ARN="aws.ecs.task.arn",TMP_AWS_ECS_TASK_FAMILY="aws.ecs.task.family",TMP_AWS_ECS_TASK_REVISION="aws.ecs.task.revision",TMP_AWS_EKS_CLUSTER_ARN="aws.eks.cluster.arn",TMP_AWS_LOG_GROUP_NAMES="aws.log.group.names",TMP_AWS_LOG_GROUP_ARNS="aws.log.group.arns",TMP_AWS_LOG_STREAM_NAMES="aws.log.stream.names",TMP_AWS_LOG_STREAM_ARNS="aws.log.stream.arns",TMP_CONTAINER_NAME="container.name",TMP_CONTAINER_ID="container.id",TMP_CONTAINER_RUNTIME="container.runtime",TMP_CONTAINER_IMAGE_NAME="container.image.name",TMP_CONTAINER_IMAGE_TAG="container.image.tag",TMP_DEPLOYMENT_ENVIRONMENT="deployment.environment",TMP_DEVICE_ID="device.id",TMP_DEVICE_MODEL_IDENTIFIER="device.model.identifier",TMP_DEVICE_MODEL_NAME="device.model.name",TMP_FAAS_NAME="faas.name",TMP_FAAS_ID="faas.id",TMP_FAAS_VERSION="faas.version",TMP_FAAS_INSTANCE="faas.instance",TMP_FAAS_MAX_MEMORY="faas.max_memory",TMP_HOST_ID="host.id",TMP_HOST_NAME="host.name",TMP_HOST_TYPE="host.type",TMP_HOST_ARCH="host.arch",TMP_HOST_IMAGE_NAME="host.image.name",TMP_HOST_IMAGE_ID="host.image.id",TMP_HOST_IMAGE_VERSION="host.image.version",TMP_K8S_CLUSTER_NAME="k8s.cluster.name",TMP_K8S_NODE_NAME="k8s.node.name",TMP_K8S_NODE_UID="k8s.node.uid",TMP_K8S_NAMESPACE_NAME="k8s.namespace.name",TMP_K8S_POD_UID="k8s.pod.uid",TMP_K8S_POD_NAME="k8s.pod.name",TMP_K8S_CONTAINER_NAME="k8s.container.name",TMP_K8S_REPLICASET_UID="k8s.replicaset.uid",TMP_K8S_REPLICASET_NAME="k8s.replicaset.name",TMP_K8S_DEPLOYMENT_UID="k8s.deployment.uid",TMP_K8S_DEPLOYMENT_NAME="k8s.deployment.name",TMP_K8S_STATEFULSET_UID="k8s.statefulset.uid",TMP_K8S_STATEFULSET_NAME="k8s.statefulset.name",TMP_K8S_DAEMONSET_UID="k8s.daemonset.uid",TMP_K8S_DAEMONSET_NAME="k8s.daemonset.name",TMP_K8S_JOB_UID="k8s.job.uid",TMP_K8S_JOB_NAME="k8s.job.name",TMP_K8S_CRONJOB_UID="k8s.cronjob.uid",TMP_K8S_CRONJOB_NAME="k8s.cronjob.name",TMP_OS_TYPE="os.type",TMP_OS_DESCRIPTION="os.description",TMP_OS_NAME="os.name",TMP_OS_VERSION="os.version",TMP_PROCESS_PID="process.pid",TMP_PROCESS_EXECUTABLE_NAME="process.executable.name",TMP_PROCESS_EXECUTABLE_PATH="process.executable.path",TMP_PROCESS_COMMAND="process.command",TMP_PROCESS_COMMAND_LINE="process.command_line",TMP_PROCESS_COMMAND_ARGS="process.command_args",TMP_PROCESS_OWNER="process.owner",TMP_PROCESS_RUNTIME_NAME="process.runtime.name",TMP_PROCESS_RUNTIME_VERSION="process.runtime.version",TMP_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description",TMP_SERVICE_NAME="service.name",TMP_SERVICE_NAMESPACE="service.namespace",TMP_SERVICE_INSTANCE_ID="service.instance.id",TMP_SERVICE_VERSION="service.version",TMP_TELEMETRY_SDK_NAME="telemetry.sdk.name",TMP_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language",TMP_TELEMETRY_SDK_VERSION="telemetry.sdk.version",TMP_TELEMETRY_AUTO_VERSION="telemetry.auto.version",TMP_WEBENGINE_NAME="webengine.name",TMP_WEBENGINE_VERSION="webengine.version",TMP_WEBENGINE_DESCRIPTION="webengine.description",SEMRESATTRS_CLOUD_PROVIDER=TMP_CLOUD_PROVIDER,SEMRESATTRS_CLOUD_ACCOUNT_ID=TMP_CLOUD_ACCOUNT_ID,SEMRESATTRS_CLOUD_REGION=TMP_CLOUD_REGION,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=TMP_CLOUD_AVAILABILITY_ZONE,SEMRESATTRS_CLOUD_PLATFORM=TMP_CLOUD_PLATFORM,SEMRESATTRS_AWS_ECS_CONTAINER_ARN=TMP_AWS_ECS_CONTAINER_ARN,SEMRESATTRS_AWS_ECS_CLUSTER_ARN=TMP_AWS_ECS_CLUSTER_ARN,SEMRESATTRS_AWS_ECS_LAUNCHTYPE=TMP_AWS_ECS_LAUNCHTYPE,SEMRESATTRS_AWS_ECS_TASK_ARN=TMP_AWS_ECS_TASK_ARN,SEMRESATTRS_AWS_ECS_TASK_FAMILY=TMP_AWS_ECS_TASK_FAMILY,SEMRESATTRS_AWS_ECS_TASK_REVISION=TMP_AWS_ECS_TASK_REVISION,SEMRESATTRS_AWS_EKS_CLUSTER_ARN=TMP_AWS_EKS_CLUSTER_ARN,SEMRESATTRS_AWS_LOG_GROUP_NAMES=TMP_AWS_LOG_GROUP_NAMES,SEMRESATTRS_AWS_LOG_GROUP_ARNS=TMP_AWS_LOG_GROUP_ARNS,SEMRESATTRS_AWS_LOG_STREAM_NAMES=TMP_AWS_LOG_STREAM_NAMES,SEMRESATTRS_AWS_LOG_STREAM_ARNS=TMP_AWS_LOG_STREAM_ARNS,SEMRESATTRS_CONTAINER_NAME=TMP_CONTAINER_NAME,SEMRESATTRS_CONTAINER_ID=TMP_CONTAINER_ID,SEMRESATTRS_CONTAINER_RUNTIME=TMP_CONTAINER_RUNTIME,SEMRESATTRS_CONTAINER_IMAGE_NAME=TMP_CONTAINER_IMAGE_NAME,SEMRESATTRS_CONTAINER_IMAGE_TAG=TMP_CONTAINER_IMAGE_TAG,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=TMP_DEPLOYMENT_ENVIRONMENT,SEMRESATTRS_DEVICE_ID=TMP_DEVICE_ID,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=TMP_DEVICE_MODEL_IDENTIFIER,SEMRESATTRS_DEVICE_MODEL_NAME=TMP_DEVICE_MODEL_NAME,SEMRESATTRS_FAAS_NAME=TMP_FAAS_NAME,SEMRESATTRS_FAAS_ID=TMP_FAAS_ID,SEMRESATTRS_FAAS_VERSION=TMP_FAAS_VERSION,SEMRESATTRS_FAAS_INSTANCE=TMP_FAAS_INSTANCE,SEMRESATTRS_FAAS_MAX_MEMORY=TMP_FAAS_MAX_MEMORY,SEMRESATTRS_HOST_ID=TMP_HOST_ID,SEMRESATTRS_HOST_NAME=TMP_HOST_NAME,SEMRESATTRS_HOST_TYPE=TMP_HOST_TYPE,SEMRESATTRS_HOST_ARCH=TMP_HOST_ARCH,SEMRESATTRS_HOST_IMAGE_NAME=TMP_HOST_IMAGE_NAME,SEMRESATTRS_HOST_IMAGE_ID=TMP_HOST_IMAGE_ID,SEMRESATTRS_HOST_IMAGE_VERSION=TMP_HOST_IMAGE_VERSION,SEMRESATTRS_K8S_CLUSTER_NAME=TMP_K8S_CLUSTER_NAME,SEMRESATTRS_K8S_NODE_NAME=TMP_K8S_NODE_NAME,SEMRESATTRS_K8S_NODE_UID=TMP_K8S_NODE_UID,SEMRESATTRS_K8S_NAMESPACE_NAME=TMP_K8S_NAMESPACE_NAME,SEMRESATTRS_K8S_POD_UID=TMP_K8S_POD_UID,SEMRESATTRS_K8S_POD_NAME=TMP_K8S_POD_NAME,SEMRESATTRS_K8S_CONTAINER_NAME=TMP_K8S_CONTAINER_NAME,SEMRESATTRS_K8S_REPLICASET_UID=TMP_K8S_REPLICASET_UID,SEMRESATTRS_K8S_REPLICASET_NAME=TMP_K8S_REPLICASET_NAME,SEMRESATTRS_K8S_DEPLOYMENT_UID=TMP_K8S_DEPLOYMENT_UID,SEMRESATTRS_K8S_DEPLOYMENT_NAME=TMP_K8S_DEPLOYMENT_NAME,SEMRESATTRS_K8S_STATEFULSET_UID=TMP_K8S_STATEFULSET_UID,SEMRESATTRS_K8S_STATEFULSET_NAME=TMP_K8S_STATEFULSET_NAME,SEMRESATTRS_K8S_DAEMONSET_UID=TMP_K8S_DAEMONSET_UID,SEMRESATTRS_K8S_DAEMONSET_NAME=TMP_K8S_DAEMONSET_NAME,SEMRESATTRS_K8S_JOB_UID=TMP_K8S_JOB_UID,SEMRESATTRS_K8S_JOB_NAME=TMP_K8S_JOB_NAME,SEMRESATTRS_K8S_CRONJOB_UID=TMP_K8S_CRONJOB_UID,SEMRESATTRS_K8S_CRONJOB_NAME=TMP_K8S_CRONJOB_NAME,SEMRESATTRS_OS_TYPE=TMP_OS_TYPE,SEMRESATTRS_OS_DESCRIPTION=TMP_OS_DESCRIPTION,SEMRESATTRS_OS_NAME=TMP_OS_NAME,SEMRESATTRS_OS_VERSION=TMP_OS_VERSION,SEMRESATTRS_PROCESS_PID=TMP_PROCESS_PID,SEMRESATTRS_PROCESS_EXECUTABLE_NAME=TMP_PROCESS_EXECUTABLE_NAME,SEMRESATTRS_PROCESS_EXECUTABLE_PATH=TMP_PROCESS_EXECUTABLE_PATH,SEMRESATTRS_PROCESS_COMMAND=TMP_PROCESS_COMMAND,SEMRESATTRS_PROCESS_COMMAND_LINE=TMP_PROCESS_COMMAND_LINE,SEMRESATTRS_PROCESS_COMMAND_ARGS=TMP_PROCESS_COMMAND_ARGS,SEMRESATTRS_PROCESS_OWNER=TMP_PROCESS_OWNER,SEMRESATTRS_PROCESS_RUNTIME_NAME=TMP_PROCESS_RUNTIME_NAME,SEMRESATTRS_PROCESS_RUNTIME_VERSION=TMP_PROCESS_RUNTIME_VERSION,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=TMP_PROCESS_RUNTIME_DESCRIPTION,SEMRESATTRS_SERVICE_NAME=TMP_SERVICE_NAME,SEMRESATTRS_SERVICE_NAMESPACE=TMP_SERVICE_NAMESPACE,SEMRESATTRS_SERVICE_INSTANCE_ID=TMP_SERVICE_INSTANCE_ID,SEMRESATTRS_SERVICE_VERSION=TMP_SERVICE_VERSION,SEMRESATTRS_TELEMETRY_SDK_NAME=TMP_TELEMETRY_SDK_NAME,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=TMP_TELEMETRY_SDK_LANGUAGE,SEMRESATTRS_TELEMETRY_SDK_VERSION=TMP_TELEMETRY_SDK_VERSION,SEMRESATTRS_TELEMETRY_AUTO_VERSION=TMP_TELEMETRY_AUTO_VERSION,SEMRESATTRS_WEBENGINE_NAME=TMP_WEBENGINE_NAME,SEMRESATTRS_WEBENGINE_VERSION=TMP_WEBENGINE_VERSION,SEMRESATTRS_WEBENGINE_DESCRIPTION=TMP_WEBENGINE_DESCRIPTION,SemanticResourceAttributes=createConstMap([TMP_CLOUD_PROVIDER,TMP_CLOUD_ACCOUNT_ID,TMP_CLOUD_REGION,TMP_CLOUD_AVAILABILITY_ZONE,TMP_CLOUD_PLATFORM,TMP_AWS_ECS_CONTAINER_ARN,TMP_AWS_ECS_CLUSTER_ARN,TMP_AWS_ECS_LAUNCHTYPE,TMP_AWS_ECS_TASK_ARN,TMP_AWS_ECS_TASK_FAMILY,TMP_AWS_ECS_TASK_REVISION,TMP_AWS_EKS_CLUSTER_ARN,TMP_AWS_LOG_GROUP_NAMES,TMP_AWS_LOG_GROUP_ARNS,TMP_AWS_LOG_STREAM_NAMES,TMP_AWS_LOG_STREAM_ARNS,TMP_CONTAINER_NAME,TMP_CONTAINER_ID,TMP_CONTAINER_RUNTIME,TMP_CONTAINER_IMAGE_NAME,TMP_CONTAINER_IMAGE_TAG,TMP_DEPLOYMENT_ENVIRONMENT,TMP_DEVICE_ID,TMP_DEVICE_MODEL_IDENTIFIER,TMP_DEVICE_MODEL_NAME,TMP_FAAS_NAME,TMP_FAAS_ID,TMP_FAAS_VERSION,TMP_FAAS_INSTANCE,TMP_FAAS_MAX_MEMORY,TMP_HOST_ID,TMP_HOST_NAME,TMP_HOST_TYPE,TMP_HOST_ARCH,TMP_HOST_IMAGE_NAME,TMP_HOST_IMAGE_ID,TMP_HOST_IMAGE_VERSION,TMP_K8S_CLUSTER_NAME,TMP_K8S_NODE_NAME,TMP_K8S_NODE_UID,TMP_K8S_NAMESPACE_NAME,TMP_K8S_POD_UID,TMP_K8S_POD_NAME,TMP_K8S_CONTAINER_NAME,TMP_K8S_REPLICASET_UID,TMP_K8S_REPLICASET_NAME,TMP_K8S_DEPLOYMENT_UID,TMP_K8S_DEPLOYMENT_NAME,TMP_K8S_STATEFULSET_UID,TMP_K8S_STATEFULSET_NAME,TMP_K8S_DAEMONSET_UID,TMP_K8S_DAEMONSET_NAME,TMP_K8S_JOB_UID,TMP_K8S_JOB_NAME,TMP_K8S_CRONJOB_UID,TMP_K8S_CRONJOB_NAME,TMP_OS_TYPE,TMP_OS_DESCRIPTION,TMP_OS_NAME,TMP_OS_VERSION,TMP_PROCESS_PID,TMP_PROCESS_EXECUTABLE_NAME,TMP_PROCESS_EXECUTABLE_PATH,TMP_PROCESS_COMMAND,TMP_PROCESS_COMMAND_LINE,TMP_PROCESS_COMMAND_ARGS,TMP_PROCESS_OWNER,TMP_PROCESS_RUNTIME_NAME,TMP_PROCESS_RUNTIME_VERSION,TMP_PROCESS_RUNTIME_DESCRIPTION,TMP_SERVICE_NAME,TMP_SERVICE_NAMESPACE,TMP_SERVICE_INSTANCE_ID,TMP_SERVICE_VERSION,TMP_TELEMETRY_SDK_NAME,TMP_TELEMETRY_SDK_LANGUAGE,TMP_TELEMETRY_SDK_VERSION,TMP_TELEMETRY_AUTO_VERSION,TMP_WEBENGINE_NAME,TMP_WEBENGINE_VERSION,TMP_WEBENGINE_DESCRIPTION]),TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD="alibaba_cloud",TMP_CLOUDPROVIDERVALUES_AWS="aws",TMP_CLOUDPROVIDERVALUES_AZURE="azure",TMP_CLOUDPROVIDERVALUES_GCP="gcp",CLOUDPROVIDERVALUES_ALIBABA_CLOUD=TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD,CLOUDPROVIDERVALUES_AWS=TMP_CLOUDPROVIDERVALUES_AWS,CLOUDPROVIDERVALUES_AZURE=TMP_CLOUDPROVIDERVALUES_AZURE,CLOUDPROVIDERVALUES_GCP=TMP_CLOUDPROVIDERVALUES_GCP,CloudProviderValues=createConstMap([TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD,TMP_CLOUDPROVIDERVALUES_AWS,TMP_CLOUDPROVIDERVALUES_AZURE,TMP_CLOUDPROVIDERVALUES_GCP]),TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS="alibaba_cloud_ecs",TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC="alibaba_cloud_fc",TMP_CLOUDPLATFORMVALUES_AWS_EC2="aws_ec2",TMP_CLOUDPLATFORMVALUES_AWS_ECS="aws_ecs",TMP_CLOUDPLATFORMVALUES_AWS_EKS="aws_eks",TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA="aws_lambda",TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",TMP_CLOUDPLATFORMVALUES_AZURE_VM="azure_vm",TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES="azure_container_instances",TMP_CLOUDPLATFORMVALUES_AZURE_AKS="azure_aks",TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS="azure_functions",TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE="azure_app_service",TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE="gcp_compute_engine",TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN="gcp_cloud_run",TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE="gcp_app_engine",CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,CLOUDPLATFORMVALUES_AWS_EC2=TMP_CLOUDPLATFORMVALUES_AWS_EC2,CLOUDPLATFORMVALUES_AWS_ECS=TMP_CLOUDPLATFORMVALUES_AWS_ECS,CLOUDPLATFORMVALUES_AWS_EKS=TMP_CLOUDPLATFORMVALUES_AWS_EKS,CLOUDPLATFORMVALUES_AWS_LAMBDA=TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,CLOUDPLATFORMVALUES_AZURE_VM=TMP_CLOUDPLATFORMVALUES_AZURE_VM,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,CLOUDPLATFORMVALUES_AZURE_AKS=TMP_CLOUDPLATFORMVALUES_AZURE_AKS,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,CLOUDPLATFORMVALUES_GCP_APP_ENGINE=TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE,CloudPlatformValues=createConstMap([TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,TMP_CLOUDPLATFORMVALUES_AWS_EC2,TMP_CLOUDPLATFORMVALUES_AWS_ECS,TMP_CLOUDPLATFORMVALUES_AWS_EKS,TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA,TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,TMP_CLOUDPLATFORMVALUES_AZURE_VM,TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,TMP_CLOUDPLATFORMVALUES_AZURE_AKS,TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE]),TMP_AWSECSLAUNCHTYPEVALUES_EC2="ec2",TMP_AWSECSLAUNCHTYPEVALUES_FARGATE="fargate",AWSECSLAUNCHTYPEVALUES_EC2=TMP_AWSECSLAUNCHTYPEVALUES_EC2,AWSECSLAUNCHTYPEVALUES_FARGATE=TMP_AWSECSLAUNCHTYPEVALUES_FARGATE,AwsEcsLaunchtypeValues=createConstMap([TMP_AWSECSLAUNCHTYPEVALUES_EC2,TMP_AWSECSLAUNCHTYPEVALUES_FARGATE]),TMP_HOSTARCHVALUES_AMD64="amd64",TMP_HOSTARCHVALUES_ARM32="arm32",TMP_HOSTARCHVALUES_ARM64="arm64",TMP_HOSTARCHVALUES_IA64="ia64",TMP_HOSTARCHVALUES_PPC32="ppc32",TMP_HOSTARCHVALUES_PPC64="ppc64",TMP_HOSTARCHVALUES_X86="x86",HOSTARCHVALUES_AMD64=TMP_HOSTARCHVALUES_AMD64,HOSTARCHVALUES_ARM32=TMP_HOSTARCHVALUES_ARM32,HOSTARCHVALUES_ARM64=TMP_HOSTARCHVALUES_ARM64,HOSTARCHVALUES_IA64=TMP_HOSTARCHVALUES_IA64,HOSTARCHVALUES_PPC32=TMP_HOSTARCHVALUES_PPC32,HOSTARCHVALUES_PPC64=TMP_HOSTARCHVALUES_PPC64,HOSTARCHVALUES_X86=TMP_HOSTARCHVALUES_X86,HostArchValues=createConstMap([TMP_HOSTARCHVALUES_AMD64,TMP_HOSTARCHVALUES_ARM32,TMP_HOSTARCHVALUES_ARM64,TMP_HOSTARCHVALUES_IA64,TMP_HOSTARCHVALUES_PPC32,TMP_HOSTARCHVALUES_PPC64,TMP_HOSTARCHVALUES_X86]),TMP_OSTYPEVALUES_WINDOWS="windows",TMP_OSTYPEVALUES_LINUX="linux",TMP_OSTYPEVALUES_DARWIN="darwin",TMP_OSTYPEVALUES_FREEBSD="freebsd",TMP_OSTYPEVALUES_NETBSD="netbsd",TMP_OSTYPEVALUES_OPENBSD="openbsd",TMP_OSTYPEVALUES_DRAGONFLYBSD="dragonflybsd",TMP_OSTYPEVALUES_HPUX="hpux",TMP_OSTYPEVALUES_AIX="aix",TMP_OSTYPEVALUES_SOLARIS="solaris",TMP_OSTYPEVALUES_Z_OS="z_os",OSTYPEVALUES_WINDOWS=TMP_OSTYPEVALUES_WINDOWS,OSTYPEVALUES_LINUX=TMP_OSTYPEVALUES_LINUX,OSTYPEVALUES_DARWIN=TMP_OSTYPEVALUES_DARWIN,OSTYPEVALUES_FREEBSD=TMP_OSTYPEVALUES_FREEBSD,OSTYPEVALUES_NETBSD=TMP_OSTYPEVALUES_NETBSD,OSTYPEVALUES_OPENBSD=TMP_OSTYPEVALUES_OPENBSD,OSTYPEVALUES_DRAGONFLYBSD=TMP_OSTYPEVALUES_DRAGONFLYBSD,OSTYPEVALUES_HPUX=TMP_OSTYPEVALUES_HPUX,OSTYPEVALUES_AIX=TMP_OSTYPEVALUES_AIX,OSTYPEVALUES_SOLARIS=TMP_OSTYPEVALUES_SOLARIS,OSTYPEVALUES_Z_OS=TMP_OSTYPEVALUES_Z_OS,OsTypeValues=createConstMap([TMP_OSTYPEVALUES_WINDOWS,TMP_OSTYPEVALUES_LINUX,TMP_OSTYPEVALUES_DARWIN,TMP_OSTYPEVALUES_FREEBSD,TMP_OSTYPEVALUES_NETBSD,TMP_OSTYPEVALUES_OPENBSD,TMP_OSTYPEVALUES_DRAGONFLYBSD,TMP_OSTYPEVALUES_HPUX,TMP_OSTYPEVALUES_AIX,TMP_OSTYPEVALUES_SOLARIS,TMP_OSTYPEVALUES_Z_OS]),TMP_TELEMETRYSDKLANGUAGEVALUES_CPP="cpp",TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET="dotnet",TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG="erlang",TMP_TELEMETRYSDKLANGUAGEVALUES_GO="go",TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA="java",TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS="nodejs",TMP_TELEMETRYSDKLANGUAGEVALUES_PHP="php",TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON="python",TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY="ruby",TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS="webjs",TELEMETRYSDKLANGUAGEVALUES_CPP=TMP_TELEMETRYSDKLANGUAGEVALUES_CPP,TELEMETRYSDKLANGUAGEVALUES_DOTNET=TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET,TELEMETRYSDKLANGUAGEVALUES_ERLANG=TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG,TELEMETRYSDKLANGUAGEVALUES_GO=TMP_TELEMETRYSDKLANGUAGEVALUES_GO,TELEMETRYSDKLANGUAGEVALUES_JAVA=TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA,TELEMETRYSDKLANGUAGEVALUES_NODEJS=TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS,TELEMETRYSDKLANGUAGEVALUES_PHP=TMP_TELEMETRYSDKLANGUAGEVALUES_PHP,TELEMETRYSDKLANGUAGEVALUES_PYTHON=TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON,TELEMETRYSDKLANGUAGEVALUES_RUBY=TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY,TELEMETRYSDKLANGUAGEVALUES_WEBJS=TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS,TelemetrySdkLanguageValues=createConstMap([TMP_TELEMETRYSDKLANGUAGEVALUES_CPP,TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET,TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG,TMP_TELEMETRYSDKLANGUAGEVALUES_GO,TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA,TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS,TMP_TELEMETRYSDKLANGUAGEVALUES_PHP,TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON,TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY,TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS]),ATTR_ASPNETCORE_RATE_LIMITING_RESULT="aspnetcore.rate_limiting.result",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED="acquired",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER="endpoint_limiter",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER="global_limiter",ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED="request_canceled",ATTR_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language",TELEMETRY_SDK_LANGUAGE_VALUE_CPP="cpp",TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET="dotnet",TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG="erlang",TELEMETRY_SDK_LANGUAGE_VALUE_GO="go",TELEMETRY_SDK_LANGUAGE_VALUE_JAVA="java",TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS="nodejs",TELEMETRY_SDK_LANGUAGE_VALUE_PHP="php",TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON="python",TELEMETRY_SDK_LANGUAGE_VALUE_RUBY="ruby",TELEMETRY_SDK_LANGUAGE_VALUE_RUST="rust",TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT="swift",TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS="webjs",ATTR_TELEMETRY_SDK_NAME="telemetry.sdk.name",ATTR_TELEMETRY_SDK_VERSION="telemetry.sdk.version",ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE="aspnetcore.diagnostics.handler.type",ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT="aspnetcore.diagnostics.exception.result",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED="aborted",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED="handled",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED="skipped",ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED="unhandled",ATTR_ASPNETCORE_RATE_LIMITING_POLICY="aspnetcore.rate_limiting.policy",ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED="aspnetcore.request.is_unhandled",ATTR_ASPNETCORE_ROUTING_IS_FALLBACK="aspnetcore.routing.is_fallback",ATTR_ASPNETCORE_ROUTING_MATCH_STATUS="aspnetcore.routing.match_status",ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE="failure",ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS="success",ATTR_CLIENT_ADDRESS="client.address",ATTR_CLIENT_PORT="client.port",ATTR_ERROR_TYPE="error.type",ERROR_TYPE_VALUE_OTHER="_OTHER",ATTR_EXCEPTION_ESCAPED="exception.escaped",ATTR_EXCEPTION_MESSAGE="exception.message",ATTR_EXCEPTION_STACKTRACE="exception.stacktrace",ATTR_EXCEPTION_TYPE="exception.type",ATTR_HTTP_REQUEST_HEADER=function(S){return"http.request.header."+S},ATTR_HTTP_REQUEST_METHOD="http.request.method",HTTP_REQUEST_METHOD_VALUE_OTHER="_OTHER",HTTP_REQUEST_METHOD_VALUE_CONNECT="CONNECT",HTTP_REQUEST_METHOD_VALUE_DELETE="DELETE",HTTP_REQUEST_METHOD_VALUE_GET="GET",HTTP_REQUEST_METHOD_VALUE_HEAD="HEAD",HTTP_REQUEST_METHOD_VALUE_OPTIONS="OPTIONS",HTTP_REQUEST_METHOD_VALUE_PATCH="PATCH",HTTP_REQUEST_METHOD_VALUE_POST="POST",HTTP_REQUEST_METHOD_VALUE_PUT="PUT",HTTP_REQUEST_METHOD_VALUE_TRACE="TRACE",ATTR_HTTP_REQUEST_METHOD_ORIGINAL="http.request.method_original",ATTR_HTTP_REQUEST_RESEND_COUNT="http.request.resend_count",ATTR_HTTP_RESPONSE_HEADER=function(S){return"http.response.header."+S},ATTR_HTTP_RESPONSE_STATUS_CODE="http.response.status_code",ATTR_HTTP_ROUTE="http.route",ATTR_JVM_GC_ACTION="jvm.gc.action",ATTR_JVM_GC_NAME="jvm.gc.name",ATTR_JVM_MEMORY_POOL_NAME="jvm.memory.pool.name",ATTR_JVM_MEMORY_TYPE="jvm.memory.type",JVM_MEMORY_TYPE_VALUE_HEAP="heap",JVM_MEMORY_TYPE_VALUE_NON_HEAP="non_heap",ATTR_JVM_THREAD_DAEMON="jvm.thread.daemon",ATTR_JVM_THREAD_STATE="jvm.thread.state",JVM_THREAD_STATE_VALUE_BLOCKED="blocked",JVM_THREAD_STATE_VALUE_NEW="new",JVM_THREAD_STATE_VALUE_RUNNABLE="runnable",JVM_THREAD_STATE_VALUE_TERMINATED="terminated",JVM_THREAD_STATE_VALUE_TIMED_WAITING="timed_waiting",JVM_THREAD_STATE_VALUE_WAITING="waiting",ATTR_NETWORK_LOCAL_ADDRESS="network.local.address",ATTR_NETWORK_LOCAL_PORT="network.local.port",ATTR_NETWORK_PEER_ADDRESS="network.peer.address",ATTR_NETWORK_PEER_PORT="network.peer.port",ATTR_NETWORK_PROTOCOL_NAME="network.protocol.name",ATTR_NETWORK_PROTOCOL_VERSION="network.protocol.version",ATTR_NETWORK_TRANSPORT="network.transport",NETWORK_TRANSPORT_VALUE_PIPE="pipe",NETWORK_TRANSPORT_VALUE_QUIC="quic",NETWORK_TRANSPORT_VALUE_TCP="tcp",NETWORK_TRANSPORT_VALUE_UDP="udp",NETWORK_TRANSPORT_VALUE_UNIX="unix",ATTR_NETWORK_TYPE="network.type",NETWORK_TYPE_VALUE_IPV4="ipv4",NETWORK_TYPE_VALUE_IPV6="ipv6",ATTR_OTEL_SCOPE_NAME="otel.scope.name",ATTR_OTEL_SCOPE_VERSION="otel.scope.version",ATTR_OTEL_STATUS_CODE="otel.status_code",OTEL_STATUS_CODE_VALUE_ERROR="ERROR",OTEL_STATUS_CODE_VALUE_OK="OK",ATTR_OTEL_STATUS_DESCRIPTION="otel.status_description",ATTR_SERVER_ADDRESS="server.address",ATTR_SERVER_PORT="server.port",ATTR_SERVICE_NAME="service.name",ATTR_SERVICE_VERSION="service.version",ATTR_SIGNALR_CONNECTION_STATUS="signalr.connection.status",SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN="app_shutdown",SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE="normal_closure",SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT="timeout",ATTR_SIGNALR_TRANSPORT="signalr.transport",SIGNALR_TRANSPORT_VALUE_LONG_POLLING="long_polling",SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS="server_sent_events",SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS="web_sockets",ATTR_URL_FRAGMENT="url.fragment",ATTR_URL_FULL="url.full",ATTR_URL_PATH="url.path",ATTR_URL_QUERY="url.query",ATTR_URL_SCHEME="url.scheme",ATTR_USER_AGENT_ORIGINAL="user_agent.original",METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS="aspnetcore.diagnostics.exceptions",METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES="aspnetcore.rate_limiting.active_request_leases",METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS="aspnetcore.rate_limiting.queued_requests",METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE="aspnetcore.rate_limiting.request.time_in_queue",METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION="aspnetcore.rate_limiting.request_lease.duration",METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS="aspnetcore.rate_limiting.requests",METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS="aspnetcore.routing.match_attempts",METRIC_HTTP_CLIENT_REQUEST_DURATION="http.client.request.duration",METRIC_HTTP_SERVER_REQUEST_DURATION="http.server.request.duration",METRIC_JVM_CLASS_COUNT="jvm.class.count",METRIC_JVM_CLASS_LOADED="jvm.class.loaded",METRIC_JVM_CLASS_UNLOADED="jvm.class.unloaded",METRIC_JVM_CPU_COUNT="jvm.cpu.count",METRIC_JVM_CPU_RECENT_UTILIZATION="jvm.cpu.recent_utilization",METRIC_JVM_CPU_TIME="jvm.cpu.time",METRIC_JVM_GC_DURATION="jvm.gc.duration",METRIC_JVM_MEMORY_COMMITTED="jvm.memory.committed",METRIC_JVM_MEMORY_LIMIT="jvm.memory.limit",METRIC_JVM_MEMORY_USED="jvm.memory.used",METRIC_JVM_MEMORY_USED_AFTER_LAST_GC="jvm.memory.used_after_last_gc",METRIC_JVM_THREAD_COUNT="jvm.thread.count",METRIC_KESTREL_ACTIVE_CONNECTIONS="kestrel.active_connections",METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES="kestrel.active_tls_handshakes",METRIC_KESTREL_CONNECTION_DURATION="kestrel.connection.duration",METRIC_KESTREL_QUEUED_CONNECTIONS="kestrel.queued_connections",METRIC_KESTREL_QUEUED_REQUESTS="kestrel.queued_requests",METRIC_KESTREL_REJECTED_CONNECTIONS="kestrel.rejected_connections",METRIC_KESTREL_TLS_HANDSHAKE_DURATION="kestrel.tls_handshake.duration",METRIC_KESTREL_UPGRADED_CONNECTIONS="kestrel.upgraded_connections",METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS="signalr.server.active_connections",METRIC_SIGNALR_SERVER_CONNECTION_DURATION="signalr.server.connection.duration";const esm$1=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE,ATTR_ASPNETCORE_RATE_LIMITING_POLICY,ATTR_ASPNETCORE_RATE_LIMITING_RESULT,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS,ATTR_CLIENT_ADDRESS,ATTR_CLIENT_PORT,ATTR_ERROR_TYPE,ATTR_EXCEPTION_ESCAPED,ATTR_EXCEPTION_MESSAGE,ATTR_EXCEPTION_STACKTRACE,ATTR_EXCEPTION_TYPE,ATTR_HTTP_REQUEST_HEADER,ATTR_HTTP_REQUEST_METHOD,ATTR_HTTP_REQUEST_METHOD_ORIGINAL,ATTR_HTTP_REQUEST_RESEND_COUNT,ATTR_HTTP_RESPONSE_HEADER,ATTR_HTTP_RESPONSE_STATUS_CODE,ATTR_HTTP_ROUTE,ATTR_JVM_GC_ACTION,ATTR_JVM_GC_NAME,ATTR_JVM_MEMORY_POOL_NAME,ATTR_JVM_MEMORY_TYPE,ATTR_JVM_THREAD_DAEMON,ATTR_JVM_THREAD_STATE,ATTR_NETWORK_LOCAL_ADDRESS,ATTR_NETWORK_LOCAL_PORT,ATTR_NETWORK_PEER_ADDRESS,ATTR_NETWORK_PEER_PORT,ATTR_NETWORK_PROTOCOL_NAME,ATTR_NETWORK_PROTOCOL_VERSION,ATTR_NETWORK_TRANSPORT,ATTR_NETWORK_TYPE,ATTR_OTEL_SCOPE_NAME,ATTR_OTEL_SCOPE_VERSION,ATTR_OTEL_STATUS_CODE,ATTR_OTEL_STATUS_DESCRIPTION,ATTR_SERVER_ADDRESS,ATTR_SERVER_PORT,ATTR_SERVICE_NAME,ATTR_SERVICE_VERSION,ATTR_SIGNALR_CONNECTION_STATUS,ATTR_SIGNALR_TRANSPORT,ATTR_TELEMETRY_SDK_LANGUAGE,ATTR_TELEMETRY_SDK_NAME,ATTR_TELEMETRY_SDK_VERSION,ATTR_URL_FRAGMENT,ATTR_URL_FULL,ATTR_URL_PATH,ATTR_URL_QUERY,ATTR_URL_SCHEME,ATTR_USER_AGENT_ORIGINAL,AWSECSLAUNCHTYPEVALUES_EC2,AWSECSLAUNCHTYPEVALUES_FARGATE,AwsEcsLaunchtypeValues,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,CLOUDPLATFORMVALUES_AWS_EC2,CLOUDPLATFORMVALUES_AWS_ECS,CLOUDPLATFORMVALUES_AWS_EKS,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,CLOUDPLATFORMVALUES_AWS_LAMBDA,CLOUDPLATFORMVALUES_AZURE_AKS,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,CLOUDPLATFORMVALUES_AZURE_VM,CLOUDPLATFORMVALUES_GCP_APP_ENGINE,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,CLOUDPROVIDERVALUES_ALIBABA_CLOUD,CLOUDPROVIDERVALUES_AWS,CLOUDPROVIDERVALUES_AZURE,CLOUDPROVIDERVALUES_GCP,CloudPlatformValues,CloudProviderValues,DBCASSANDRACONSISTENCYLEVELVALUES_ALL,DBCASSANDRACONSISTENCYLEVELVALUES_ANY,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL,DBCASSANDRACONSISTENCYLEVELVALUES_ONE,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL,DBCASSANDRACONSISTENCYLEVELVALUES_THREE,DBCASSANDRACONSISTENCYLEVELVALUES_TWO,DBSYSTEMVALUES_ADABAS,DBSYSTEMVALUES_CACHE,DBSYSTEMVALUES_CASSANDRA,DBSYSTEMVALUES_CLOUDSCAPE,DBSYSTEMVALUES_COCKROACHDB,DBSYSTEMVALUES_COLDFUSION,DBSYSTEMVALUES_COSMOSDB,DBSYSTEMVALUES_COUCHBASE,DBSYSTEMVALUES_COUCHDB,DBSYSTEMVALUES_DB2,DBSYSTEMVALUES_DERBY,DBSYSTEMVALUES_DYNAMODB,DBSYSTEMVALUES_EDB,DBSYSTEMVALUES_ELASTICSEARCH,DBSYSTEMVALUES_FILEMAKER,DBSYSTEMVALUES_FIREBIRD,DBSYSTEMVALUES_FIRSTSQL,DBSYSTEMVALUES_GEODE,DBSYSTEMVALUES_H2,DBSYSTEMVALUES_HANADB,DBSYSTEMVALUES_HBASE,DBSYSTEMVALUES_HIVE,DBSYSTEMVALUES_HSQLDB,DBSYSTEMVALUES_INFORMIX,DBSYSTEMVALUES_INGRES,DBSYSTEMVALUES_INSTANTDB,DBSYSTEMVALUES_INTERBASE,DBSYSTEMVALUES_MARIADB,DBSYSTEMVALUES_MAXDB,DBSYSTEMVALUES_MEMCACHED,DBSYSTEMVALUES_MONGODB,DBSYSTEMVALUES_MSSQL,DBSYSTEMVALUES_MYSQL,DBSYSTEMVALUES_NEO4J,DBSYSTEMVALUES_NETEZZA,DBSYSTEMVALUES_ORACLE,DBSYSTEMVALUES_OTHER_SQL,DBSYSTEMVALUES_PERVASIVE,DBSYSTEMVALUES_POINTBASE,DBSYSTEMVALUES_POSTGRESQL,DBSYSTEMVALUES_PROGRESS,DBSYSTEMVALUES_REDIS,DBSYSTEMVALUES_REDSHIFT,DBSYSTEMVALUES_SQLITE,DBSYSTEMVALUES_SYBASE,DBSYSTEMVALUES_TERADATA,DBSYSTEMVALUES_VERTICA,DbCassandraConsistencyLevelValues,DbSystemValues,ERROR_TYPE_VALUE_OTHER,FAASDOCUMENTOPERATIONVALUES_DELETE,FAASDOCUMENTOPERATIONVALUES_EDIT,FAASDOCUMENTOPERATIONVALUES_INSERT,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD,FAASINVOKEDPROVIDERVALUES_AWS,FAASINVOKEDPROVIDERVALUES_AZURE,FAASINVOKEDPROVIDERVALUES_GCP,FAASTRIGGERVALUES_DATASOURCE,FAASTRIGGERVALUES_HTTP,FAASTRIGGERVALUES_OTHER,FAASTRIGGERVALUES_PUBSUB,FAASTRIGGERVALUES_TIMER,FaasDocumentOperationValues,FaasInvokedProviderValues,FaasTriggerValues,HOSTARCHVALUES_AMD64,HOSTARCHVALUES_ARM32,HOSTARCHVALUES_ARM64,HOSTARCHVALUES_IA64,HOSTARCHVALUES_PPC32,HOSTARCHVALUES_PPC64,HOSTARCHVALUES_X86,HTTPFLAVORVALUES_HTTP_1_0,HTTPFLAVORVALUES_HTTP_1_1,HTTPFLAVORVALUES_HTTP_2_0,HTTPFLAVORVALUES_QUIC,HTTPFLAVORVALUES_SPDY,HTTP_REQUEST_METHOD_VALUE_CONNECT,HTTP_REQUEST_METHOD_VALUE_DELETE,HTTP_REQUEST_METHOD_VALUE_GET,HTTP_REQUEST_METHOD_VALUE_HEAD,HTTP_REQUEST_METHOD_VALUE_OPTIONS,HTTP_REQUEST_METHOD_VALUE_OTHER,HTTP_REQUEST_METHOD_VALUE_PATCH,HTTP_REQUEST_METHOD_VALUE_POST,HTTP_REQUEST_METHOD_VALUE_PUT,HTTP_REQUEST_METHOD_VALUE_TRACE,HostArchValues,HttpFlavorValues,JVM_MEMORY_TYPE_VALUE_HEAP,JVM_MEMORY_TYPE_VALUE_NON_HEAP,JVM_THREAD_STATE_VALUE_BLOCKED,JVM_THREAD_STATE_VALUE_NEW,JVM_THREAD_STATE_VALUE_RUNNABLE,JVM_THREAD_STATE_VALUE_TERMINATED,JVM_THREAD_STATE_VALUE_TIMED_WAITING,JVM_THREAD_STATE_VALUE_WAITING,MESSAGETYPEVALUES_RECEIVED,MESSAGETYPEVALUES_SENT,MESSAGINGDESTINATIONKINDVALUES_QUEUE,MESSAGINGDESTINATIONKINDVALUES_TOPIC,MESSAGINGOPERATIONVALUES_PROCESS,MESSAGINGOPERATIONVALUES_RECEIVE,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS,METRIC_HTTP_CLIENT_REQUEST_DURATION,METRIC_HTTP_SERVER_REQUEST_DURATION,METRIC_JVM_CLASS_COUNT,METRIC_JVM_CLASS_LOADED,METRIC_JVM_CLASS_UNLOADED,METRIC_JVM_CPU_COUNT,METRIC_JVM_CPU_RECENT_UTILIZATION,METRIC_JVM_CPU_TIME,METRIC_JVM_GC_DURATION,METRIC_JVM_MEMORY_COMMITTED,METRIC_JVM_MEMORY_LIMIT,METRIC_JVM_MEMORY_USED,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC,METRIC_JVM_THREAD_COUNT,METRIC_KESTREL_ACTIVE_CONNECTIONS,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES,METRIC_KESTREL_CONNECTION_DURATION,METRIC_KESTREL_QUEUED_CONNECTIONS,METRIC_KESTREL_QUEUED_REQUESTS,METRIC_KESTREL_REJECTED_CONNECTIONS,METRIC_KESTREL_TLS_HANDSHAKE_DURATION,METRIC_KESTREL_UPGRADED_CONNECTIONS,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS,METRIC_SIGNALR_SERVER_CONNECTION_DURATION,MessageTypeValues,MessagingDestinationKindValues,MessagingOperationValues,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS,NETHOSTCONNECTIONSUBTYPEVALUES_GSM,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN,NETHOSTCONNECTIONSUBTYPEVALUES_LTE,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA,NETHOSTCONNECTIONSUBTYPEVALUES_NR,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS,NETHOSTCONNECTIONTYPEVALUES_CELL,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN,NETHOSTCONNECTIONTYPEVALUES_WIFI,NETHOSTCONNECTIONTYPEVALUES_WIRED,NETTRANSPORTVALUES_INPROC,NETTRANSPORTVALUES_IP,NETTRANSPORTVALUES_IP_TCP,NETTRANSPORTVALUES_IP_UDP,NETTRANSPORTVALUES_OTHER,NETTRANSPORTVALUES_PIPE,NETTRANSPORTVALUES_UNIX,NETWORK_TRANSPORT_VALUE_PIPE,NETWORK_TRANSPORT_VALUE_QUIC,NETWORK_TRANSPORT_VALUE_TCP,NETWORK_TRANSPORT_VALUE_UDP,NETWORK_TRANSPORT_VALUE_UNIX,NETWORK_TYPE_VALUE_IPV4,NETWORK_TYPE_VALUE_IPV6,NetHostConnectionSubtypeValues,NetHostConnectionTypeValues,NetTransportValues,OSTYPEVALUES_AIX,OSTYPEVALUES_DARWIN,OSTYPEVALUES_DRAGONFLYBSD,OSTYPEVALUES_FREEBSD,OSTYPEVALUES_HPUX,OSTYPEVALUES_LINUX,OSTYPEVALUES_NETBSD,OSTYPEVALUES_OPENBSD,OSTYPEVALUES_SOLARIS,OSTYPEVALUES_WINDOWS,OSTYPEVALUES_Z_OS,OTEL_STATUS_CODE_VALUE_ERROR,OTEL_STATUS_CODE_VALUE_OK,OsTypeValues,RPCGRPCSTATUSCODEVALUES_ABORTED,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS,RPCGRPCSTATUSCODEVALUES_CANCELLED,RPCGRPCSTATUSCODEVALUES_DATA_LOSS,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION,RPCGRPCSTATUSCODEVALUES_INTERNAL,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT,RPCGRPCSTATUSCODEVALUES_NOT_FOUND,RPCGRPCSTATUSCODEVALUES_OK,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED,RPCGRPCSTATUSCODEVALUES_UNKNOWN,RpcGrpcStatusCodeValues,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY,SEMATTRS_AWS_DYNAMODB_COUNT,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES,SEMATTRS_AWS_DYNAMODB_INDEX_NAME,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS,SEMATTRS_AWS_DYNAMODB_LIMIT,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES,SEMATTRS_AWS_DYNAMODB_PROJECTION,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD,SEMATTRS_AWS_DYNAMODB_SEGMENT,SEMATTRS_AWS_DYNAMODB_SELECT,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS,SEMATTRS_AWS_LAMBDA_INVOKED_ARN,SEMATTRS_CODE_FILEPATH,SEMATTRS_CODE_FUNCTION,SEMATTRS_CODE_LINENO,SEMATTRS_CODE_NAMESPACE,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE,SEMATTRS_DB_CASSANDRA_KEYSPACE,SEMATTRS_DB_CASSANDRA_PAGE_SIZE,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT,SEMATTRS_DB_CASSANDRA_TABLE,SEMATTRS_DB_CONNECTION_STRING,SEMATTRS_DB_HBASE_NAMESPACE,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME,SEMATTRS_DB_MONGODB_COLLECTION,SEMATTRS_DB_MSSQL_INSTANCE_NAME,SEMATTRS_DB_NAME,SEMATTRS_DB_OPERATION,SEMATTRS_DB_REDIS_DATABASE_INDEX,SEMATTRS_DB_SQL_TABLE,SEMATTRS_DB_STATEMENT,SEMATTRS_DB_SYSTEM,SEMATTRS_DB_USER,SEMATTRS_ENDUSER_ID,SEMATTRS_ENDUSER_ROLE,SEMATTRS_ENDUSER_SCOPE,SEMATTRS_EXCEPTION_ESCAPED,SEMATTRS_EXCEPTION_MESSAGE,SEMATTRS_EXCEPTION_STACKTRACE,SEMATTRS_EXCEPTION_TYPE,SEMATTRS_FAAS_COLDSTART,SEMATTRS_FAAS_CRON,SEMATTRS_FAAS_DOCUMENT_COLLECTION,SEMATTRS_FAAS_DOCUMENT_NAME,SEMATTRS_FAAS_DOCUMENT_OPERATION,SEMATTRS_FAAS_DOCUMENT_TIME,SEMATTRS_FAAS_EXECUTION,SEMATTRS_FAAS_INVOKED_NAME,SEMATTRS_FAAS_INVOKED_PROVIDER,SEMATTRS_FAAS_INVOKED_REGION,SEMATTRS_FAAS_TIME,SEMATTRS_FAAS_TRIGGER,SEMATTRS_HTTP_CLIENT_IP,SEMATTRS_HTTP_FLAVOR,SEMATTRS_HTTP_HOST,SEMATTRS_HTTP_METHOD,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,SEMATTRS_HTTP_ROUTE,SEMATTRS_HTTP_SCHEME,SEMATTRS_HTTP_SERVER_NAME,SEMATTRS_HTTP_STATUS_CODE,SEMATTRS_HTTP_TARGET,SEMATTRS_HTTP_URL,SEMATTRS_HTTP_USER_AGENT,SEMATTRS_MESSAGE_COMPRESSED_SIZE,SEMATTRS_MESSAGE_ID,SEMATTRS_MESSAGE_TYPE,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE,SEMATTRS_MESSAGING_CONSUMER_ID,SEMATTRS_MESSAGING_CONVERSATION_ID,SEMATTRS_MESSAGING_DESTINATION,SEMATTRS_MESSAGING_DESTINATION_KIND,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY,SEMATTRS_MESSAGING_KAFKA_PARTITION,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE,SEMATTRS_MESSAGING_MESSAGE_ID,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES,SEMATTRS_MESSAGING_OPERATION,SEMATTRS_MESSAGING_PROTOCOL,SEMATTRS_MESSAGING_PROTOCOL_VERSION,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY,SEMATTRS_MESSAGING_SYSTEM,SEMATTRS_MESSAGING_TEMP_DESTINATION,SEMATTRS_MESSAGING_URL,SEMATTRS_NET_HOST_CARRIER_ICC,SEMATTRS_NET_HOST_CARRIER_MCC,SEMATTRS_NET_HOST_CARRIER_MNC,SEMATTRS_NET_HOST_CARRIER_NAME,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE,SEMATTRS_NET_HOST_CONNECTION_TYPE,SEMATTRS_NET_HOST_IP,SEMATTRS_NET_HOST_NAME,SEMATTRS_NET_HOST_PORT,SEMATTRS_NET_PEER_IP,SEMATTRS_NET_PEER_NAME,SEMATTRS_NET_PEER_PORT,SEMATTRS_NET_TRANSPORT,SEMATTRS_PEER_SERVICE,SEMATTRS_RPC_GRPC_STATUS_CODE,SEMATTRS_RPC_JSONRPC_ERROR_CODE,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE,SEMATTRS_RPC_JSONRPC_REQUEST_ID,SEMATTRS_RPC_JSONRPC_VERSION,SEMATTRS_RPC_METHOD,SEMATTRS_RPC_SERVICE,SEMATTRS_RPC_SYSTEM,SEMATTRS_THREAD_ID,SEMATTRS_THREAD_NAME,SEMRESATTRS_AWS_ECS_CLUSTER_ARN,SEMRESATTRS_AWS_ECS_CONTAINER_ARN,SEMRESATTRS_AWS_ECS_LAUNCHTYPE,SEMRESATTRS_AWS_ECS_TASK_ARN,SEMRESATTRS_AWS_ECS_TASK_FAMILY,SEMRESATTRS_AWS_ECS_TASK_REVISION,SEMRESATTRS_AWS_EKS_CLUSTER_ARN,SEMRESATTRS_AWS_LOG_GROUP_ARNS,SEMRESATTRS_AWS_LOG_GROUP_NAMES,SEMRESATTRS_AWS_LOG_STREAM_ARNS,SEMRESATTRS_AWS_LOG_STREAM_NAMES,SEMRESATTRS_CLOUD_ACCOUNT_ID,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE,SEMRESATTRS_CLOUD_PLATFORM,SEMRESATTRS_CLOUD_PROVIDER,SEMRESATTRS_CLOUD_REGION,SEMRESATTRS_CONTAINER_ID,SEMRESATTRS_CONTAINER_IMAGE_NAME,SEMRESATTRS_CONTAINER_IMAGE_TAG,SEMRESATTRS_CONTAINER_NAME,SEMRESATTRS_CONTAINER_RUNTIME,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT,SEMRESATTRS_DEVICE_ID,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER,SEMRESATTRS_DEVICE_MODEL_NAME,SEMRESATTRS_FAAS_ID,SEMRESATTRS_FAAS_INSTANCE,SEMRESATTRS_FAAS_MAX_MEMORY,SEMRESATTRS_FAAS_NAME,SEMRESATTRS_FAAS_VERSION,SEMRESATTRS_HOST_ARCH,SEMRESATTRS_HOST_ID,SEMRESATTRS_HOST_IMAGE_ID,SEMRESATTRS_HOST_IMAGE_NAME,SEMRESATTRS_HOST_IMAGE_VERSION,SEMRESATTRS_HOST_NAME,SEMRESATTRS_HOST_TYPE,SEMRESATTRS_K8S_CLUSTER_NAME,SEMRESATTRS_K8S_CONTAINER_NAME,SEMRESATTRS_K8S_CRONJOB_NAME,SEMRESATTRS_K8S_CRONJOB_UID,SEMRESATTRS_K8S_DAEMONSET_NAME,SEMRESATTRS_K8S_DAEMONSET_UID,SEMRESATTRS_K8S_DEPLOYMENT_NAME,SEMRESATTRS_K8S_DEPLOYMENT_UID,SEMRESATTRS_K8S_JOB_NAME,SEMRESATTRS_K8S_JOB_UID,SEMRESATTRS_K8S_NAMESPACE_NAME,SEMRESATTRS_K8S_NODE_NAME,SEMRESATTRS_K8S_NODE_UID,SEMRESATTRS_K8S_POD_NAME,SEMRESATTRS_K8S_POD_UID,SEMRESATTRS_K8S_REPLICASET_NAME,SEMRESATTRS_K8S_REPLICASET_UID,SEMRESATTRS_K8S_STATEFULSET_NAME,SEMRESATTRS_K8S_STATEFULSET_UID,SEMRESATTRS_OS_DESCRIPTION,SEMRESATTRS_OS_NAME,SEMRESATTRS_OS_TYPE,SEMRESATTRS_OS_VERSION,SEMRESATTRS_PROCESS_COMMAND,SEMRESATTRS_PROCESS_COMMAND_ARGS,SEMRESATTRS_PROCESS_COMMAND_LINE,SEMRESATTRS_PROCESS_EXECUTABLE_NAME,SEMRESATTRS_PROCESS_EXECUTABLE_PATH,SEMRESATTRS_PROCESS_OWNER,SEMRESATTRS_PROCESS_PID,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION,SEMRESATTRS_PROCESS_RUNTIME_NAME,SEMRESATTRS_PROCESS_RUNTIME_VERSION,SEMRESATTRS_SERVICE_INSTANCE_ID,SEMRESATTRS_SERVICE_NAME,SEMRESATTRS_SERVICE_NAMESPACE,SEMRESATTRS_SERVICE_VERSION,SEMRESATTRS_TELEMETRY_AUTO_VERSION,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE,SEMRESATTRS_TELEMETRY_SDK_NAME,SEMRESATTRS_TELEMETRY_SDK_VERSION,SEMRESATTRS_WEBENGINE_DESCRIPTION,SEMRESATTRS_WEBENGINE_NAME,SEMRESATTRS_WEBENGINE_VERSION,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT,SIGNALR_TRANSPORT_VALUE_LONG_POLLING,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS,SemanticAttributes,SemanticResourceAttributes,TELEMETRYSDKLANGUAGEVALUES_CPP,TELEMETRYSDKLANGUAGEVALUES_DOTNET,TELEMETRYSDKLANGUAGEVALUES_ERLANG,TELEMETRYSDKLANGUAGEVALUES_GO,TELEMETRYSDKLANGUAGEVALUES_JAVA,TELEMETRYSDKLANGUAGEVALUES_NODEJS,TELEMETRYSDKLANGUAGEVALUES_PHP,TELEMETRYSDKLANGUAGEVALUES_PYTHON,TELEMETRYSDKLANGUAGEVALUES_RUBY,TELEMETRYSDKLANGUAGEVALUES_WEBJS,TELEMETRY_SDK_LANGUAGE_VALUE_CPP,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG,TELEMETRY_SDK_LANGUAGE_VALUE_GO,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,TELEMETRY_SDK_LANGUAGE_VALUE_PHP,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY,TELEMETRY_SDK_LANGUAGE_VALUE_RUST,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,TelemetrySdkLanguageValues},Symbol.toStringTag,{value:"Module"}));var _a$1,SDK_INFO=(_a$1={},_a$1[SEMRESATTRS_TELEMETRY_SDK_NAME]="opentelemetry",_a$1[SEMRESATTRS_PROCESS_RUNTIME_NAME]="browser",_a$1[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=TELEMETRYSDKLANGUAGEVALUES_WEBJS,_a$1[SEMRESATTRS_TELEMETRY_SDK_VERSION]=VERSION$2,_a$1);function unrefTimer(S){}var NANOSECOND_DIGITS=9,NANOSECOND_DIGITS_IN_MILLIS=6,MILLISECONDS_TO_NANOSECONDS=Math.pow(10,NANOSECOND_DIGITS_IN_MILLIS),SECOND_TO_NANOSECONDS=Math.pow(10,NANOSECOND_DIGITS);function millisToHrTime(S){var T=S/1e3,A=Math.trunc(T),O=Math.round(S%1e3*MILLISECONDS_TO_NANOSECONDS);return[A,O]}function getTimeOrigin(){var S=otperformance.timeOrigin;if(typeof S!="number"){var T=otperformance;S=T.timing&&T.timing.fetchStart}return S}function hrTime(S){var T=millisToHrTime(getTimeOrigin()),A=millisToHrTime(typeof S=="number"?S:otperformance.now());return addHrTimes(T,A)}function timeInputToHrTime(S){if(isTimeInputHrTime(S))return S;if(typeof S=="number")return S<getTimeOrigin()?hrTime(S):millisToHrTime(S);if(S instanceof Date)return millisToHrTime(S.getTime());throw TypeError("Invalid input type")}function hrTimeDuration(S,T){var A=T[0]-S[0],O=T[1]-S[1];return O<0&&(A-=1,O+=SECOND_TO_NANOSECONDS),[A,O]}function hrTimeToTimeStamp(S){var T=NANOSECOND_DIGITS,A=""+"0".repeat(T)+S[1]+"Z",O=A.substring(A.length-T-1),P=new Date(S[0]*1e3).toISOString();return P.replace("000Z",O)}function hrTimeToNanoseconds(S){return S[0]*SECOND_TO_NANOSECONDS+S[1]}function hrTimeToMilliseconds(S){return S[0]*1e3+S[1]/1e6}function hrTimeToMicroseconds(S){return S[0]*1e6+S[1]/1e3}function isTimeInputHrTime(S){return Array.isArray(S)&&S.length===2&&typeof S[0]=="number"&&typeof S[1]=="number"}function isTimeInput(S){return isTimeInputHrTime(S)||typeof S=="number"||S instanceof Date}function addHrTimes(S,T){var A=[S[0]+T[0],S[1]+T[1]];return A[1]>=SECOND_TO_NANOSECONDS&&(A[1]-=SECOND_TO_NANOSECONDS,A[0]+=1),A}var ExportResultCode;(function(S){S[S.SUCCESS=0]="SUCCESS",S[S.FAILED=1]="FAILED"})(ExportResultCode||(ExportResultCode={}));var __values$6=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},CompositePropagator=(function(){function S(T){T===void 0&&(T={});var A;this._propagators=(A=T.propagators)!==null&&A!==void 0?A:[],this._fields=Array.from(new Set(this._propagators.map(function(O){return typeof O.fields=="function"?O.fields():[]}).reduce(function(O,P){return O.concat(P)},[])))}return S.prototype.inject=function(T,A,O){var P,R;try{for(var M=__values$6(this._propagators),D=M.next();!D.done;D=M.next()){var U=D.value;try{U.inject(T,A,O)}catch(C){diag.warn("Failed to inject with "+U.constructor.name+". Err: "+C.message)}}}catch(C){P={error:C}}finally{try{D&&!D.done&&(R=M.return)&&R.call(M)}finally{if(P)throw P.error}}},S.prototype.extract=function(T,A,O){return this._propagators.reduce(function(P,R){try{return R.extract(P,A,O)}catch(M){diag.warn("Failed to extract with "+R.constructor.name+". Err: "+M.message)}return P},T)},S.prototype.fields=function(){return this._fields.slice()},S})(),VALID_KEY_CHAR_RANGE="[_0-9a-z-*/]",VALID_KEY="[a-z]"+VALID_KEY_CHAR_RANGE+"{0,255}",VALID_VENDOR_KEY="[a-z0-9]"+VALID_KEY_CHAR_RANGE+"{0,240}@[a-z]"+VALID_KEY_CHAR_RANGE+"{0,13}",VALID_KEY_REGEX=new RegExp("^(?:"+VALID_KEY+"|"+VALID_VENDOR_KEY+")$"),VALID_VALUE_BASE_REGEX=/^[ -~]{0,255}[!-~]$/,INVALID_VALUE_COMMA_EQUAL_REGEX=/,|=/;function validateKey(S){return VALID_KEY_REGEX.test(S)}function validateValue(S){return VALID_VALUE_BASE_REGEX.test(S)&&!INVALID_VALUE_COMMA_EQUAL_REGEX.test(S)}var MAX_TRACE_STATE_ITEMS=32,MAX_TRACE_STATE_LEN=512,LIST_MEMBERS_SEPARATOR=",",LIST_MEMBER_KEY_VALUE_SPLITTER="=",TraceState=(function(){function S(T){this._internalState=new Map,T&&this._parse(T)}return S.prototype.set=function(T,A){var O=this._clone();return O._internalState.has(T)&&O._internalState.delete(T),O._internalState.set(T,A),O},S.prototype.unset=function(T){var A=this._clone();return A._internalState.delete(T),A},S.prototype.get=function(T){return this._internalState.get(T)},S.prototype.serialize=function(){var T=this;return this._keys().reduce(function(A,O){return A.push(O+LIST_MEMBER_KEY_VALUE_SPLITTER+T.get(O)),A},[]).join(LIST_MEMBERS_SEPARATOR)},S.prototype._parse=function(T){T.length>MAX_TRACE_STATE_LEN||(this._internalState=T.split(LIST_MEMBERS_SEPARATOR).reverse().reduce(function(A,O){var P=O.trim(),R=P.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);if(R!==-1){var M=P.slice(0,R),D=P.slice(R+1,O.length);validateKey(M)&&validateValue(D)&&A.set(M,D)}return A},new Map),this._internalState.size>MAX_TRACE_STATE_ITEMS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,MAX_TRACE_STATE_ITEMS))))},S.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},S.prototype._clone=function(){var T=new S;return T._internalState=new Map(this._internalState),T},S})(),TRACE_PARENT_HEADER="traceparent",TRACE_STATE_HEADER="tracestate",VERSION$1="00",VERSION_PART="(?!ff)[\\da-f]{2}",TRACE_ID_PART="(?![0]{32})[\\da-f]{32}",PARENT_ID_PART="(?![0]{16})[\\da-f]{16}",FLAGS_PART="[\\da-f]{2}",TRACE_PARENT_REGEX=new RegExp("^\\s?("+VERSION_PART+")-("+TRACE_ID_PART+")-("+PARENT_ID_PART+")-("+FLAGS_PART+")(-.*)?\\s?$");function parseTraceParent(S){var T=TRACE_PARENT_REGEX.exec(S);return!T||T[1]==="00"&&T[5]?null:{traceId:T[2],spanId:T[3],traceFlags:parseInt(T[4],16)}}var W3CTraceContextPropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=trace.getSpanContext(T);if(!(!P||isTracingSuppressed(T)||!isSpanContextValid(P))){var R=VERSION$1+"-"+P.traceId+"-"+P.spanId+"-0"+Number(P.traceFlags||TraceFlags.NONE).toString(16);O.set(A,TRACE_PARENT_HEADER,R),P.traceState&&O.set(A,TRACE_STATE_HEADER,P.traceState.serialize())}},S.prototype.extract=function(T,A,O){var P=O.get(A,TRACE_PARENT_HEADER);if(!P)return T;var R=Array.isArray(P)?P[0]:P;if(typeof R!="string")return T;var M=parseTraceParent(R);if(!M)return T;M.isRemote=!0;var D=O.get(A,TRACE_STATE_HEADER);if(D){var U=Array.isArray(D)?D.join(","):D;M.traceState=new TraceState(typeof U=="string"?U:void 0)}return trace.setSpanContext(T,M)},S.prototype.fields=function(){return[TRACE_PARENT_HEADER,TRACE_STATE_HEADER]},S})(),RPC_METADATA_KEY=createContextKey("OpenTelemetry SDK Context Key RPC_METADATA"),RPCType;(function(S){S.HTTP="http"})(RPCType||(RPCType={}));function setRPCMetadata(S,T){return S.setValue(RPC_METADATA_KEY,T)}function deleteRPCMetadata(S){return S.deleteValue(RPC_METADATA_KEY)}function getRPCMetadata(S){return S.getValue(RPC_METADATA_KEY)}var AlwaysOffSampler$1=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision$1.NOT_RECORD}},S.prototype.toString=function(){return"AlwaysOffSampler"},S})(),AlwaysOnSampler$1=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision$1.RECORD_AND_SAMPLED}},S.prototype.toString=function(){return"AlwaysOnSampler"},S})(),ParentBasedSampler$1=(function(){function S(T){var A,O,P,R;this._root=T.root,this._root||(globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new AlwaysOnSampler$1),this._remoteParentSampled=(A=T.remoteParentSampled)!==null&&A!==void 0?A:new AlwaysOnSampler$1,this._remoteParentNotSampled=(O=T.remoteParentNotSampled)!==null&&O!==void 0?O:new AlwaysOffSampler$1,this._localParentSampled=(P=T.localParentSampled)!==null&&P!==void 0?P:new AlwaysOnSampler$1,this._localParentNotSampled=(R=T.localParentNotSampled)!==null&&R!==void 0?R:new AlwaysOffSampler$1}return S.prototype.shouldSample=function(T,A,O,P,R,M){var D=trace.getSpanContext(T);return!D||!isSpanContextValid(D)?this._root.shouldSample(T,A,O,P,R,M):D.isRemote?D.traceFlags&TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(T,A,O,P,R,M):this._remoteParentNotSampled.shouldSample(T,A,O,P,R,M):D.traceFlags&TraceFlags.SAMPLED?this._localParentSampled.shouldSample(T,A,O,P,R,M):this._localParentNotSampled.shouldSample(T,A,O,P,R,M)},S.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},S})(),TraceIdRatioBasedSampler$1=(function(){function S(T){T===void 0&&(T=0),this._ratio=T,this._ratio=this._normalize(T),this._upperBound=Math.floor(this._ratio*4294967295)}return S.prototype.shouldSample=function(T,A){return{decision:isValidTraceId(A)&&this._accumulate(A)<this._upperBound?SamplingDecision$1.RECORD_AND_SAMPLED:SamplingDecision$1.NOT_RECORD}},S.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},S.prototype._normalize=function(T){return typeof T!="number"||isNaN(T)?0:T>=1?1:T<=0?0:T},S.prototype._accumulate=function(T){for(var A=0,O=0;O<T.length/8;O++){var P=O*8,R=parseInt(T.slice(P,P+8),16);A=(A^R)>>>0}return A},S})(),objectTag="[object Object]",nullTag="[object Null]",undefinedTag="[object Undefined]",funcProto=Function.prototype,funcToString=funcProto.toString,objectCtorString=funcToString.call(Object),getPrototype=overArg(Object.getPrototypeOf,Object),objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,symToStringTag=Symbol?Symbol.toStringTag:void 0,nativeObjectToString=objectProto.toString;function overArg(S,T){return function(A){return S(T(A))}}function isPlainObject(S){if(!isObjectLike(S)||baseGetTag(S)!==objectTag)return!1;var T=getPrototype(S);if(T===null)return!0;var A=hasOwnProperty.call(T,"constructor")&&T.constructor;return typeof A=="function"&&A instanceof A&&funcToString.call(A)===objectCtorString}function isObjectLike(S){return S!=null&&typeof S=="object"}function baseGetTag(S){return S==null?S===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(S)?getRawTag(S):objectToString(S)}function getRawTag(S){var T=hasOwnProperty.call(S,symToStringTag),A=S[symToStringTag],O=!1;try{S[symToStringTag]=void 0,O=!0}catch{}var P=nativeObjectToString.call(S);return O&&(T?S[symToStringTag]=A:delete S[symToStringTag]),P}function objectToString(S){return nativeObjectToString.call(S)}var MAX_LEVEL=20;function merge(){for(var S=[],T=0;T<arguments.length;T++)S[T]=arguments[T];for(var A=S.shift(),O=new WeakMap;S.length>0;)A=mergeTwoObjects(A,S.shift(),0,O);return A}function takeValue(S){return isArray(S)?S.slice():S}function mergeTwoObjects(S,T,A,O){A===void 0&&(A=0);var P;if(!(A>MAX_LEVEL)){if(A++,isPrimitive(S)||isPrimitive(T)||isFunction(T))P=takeValue(T);else if(isArray(S)){if(P=S.slice(),isArray(T))for(var R=0,M=T.length;R<M;R++)P.push(takeValue(T[R]));else if(isObject(T))for(var D=Object.keys(T),R=0,M=D.length;R<M;R++){var U=D[R];P[U]=takeValue(T[U])}}else if(isObject(S))if(isObject(T)){if(!shouldMerge(S,T))return T;P=Object.assign({},S);for(var D=Object.keys(T),R=0,M=D.length;R<M;R++){var U=D[R],C=T[U];if(isPrimitive(C))typeof C>"u"?delete P[U]:P[U]=C;else{var L=P[U],y=C;if(wasObjectReferenced(S,U,O)||wasObjectReferenced(T,U,O))delete P[U];else{if(isObject(L)&&isObject(y)){var _=O.get(L)||[],N=O.get(y)||[];_.push({obj:S,key:U}),N.push({obj:T,key:U}),O.set(L,_),O.set(y,N)}P[U]=mergeTwoObjects(P[U],C,A,O)}}}}else P=T;return P}}function wasObjectReferenced(S,T,A){for(var O=A.get(S[T])||[],P=0,R=O.length;P<R;P++){var M=O[P];if(M.key===T&&M.obj===S)return!0}return!1}function isArray(S){return Array.isArray(S)}function isFunction(S){return typeof S=="function"}function isObject(S){return!isPrimitive(S)&&!isArray(S)&&!isFunction(S)&&typeof S=="object"}function isPrimitive(S){return typeof S=="string"||typeof S=="number"||typeof S=="boolean"||typeof S>"u"||S instanceof Date||S instanceof RegExp||S===null}function shouldMerge(S,T){return!(!isPlainObject(S)||!isPlainObject(T))}var __extends$6=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),TimeoutError=(function(S){__extends$6(T,S);function T(A){var O=S.call(this,A)||this;return Object.setPrototypeOf(O,T.prototype),O}return T})(Error);function callWithTimeout(S,T){var A,O=new Promise(function(R,M){A=setTimeout(function(){M(new TimeoutError("Operation timed out."))},T)});return Promise.race([S,O]).then(function(P){return clearTimeout(A),P},function(P){throw clearTimeout(A),P})}var __values$5=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};function urlMatches(S,T){return typeof T=="string"?S===T:!!S.match(T)}function isUrlIgnored(S,T){var A,O;if(!T)return!1;try{for(var P=__values$5(T),R=P.next();!R.done;R=P.next()){var M=R.value;if(urlMatches(S,M))return!0}}catch(D){A={error:D}}finally{try{R&&!R.done&&(O=P.return)&&O.call(P)}finally{if(A)throw A.error}}return!1}function isWrapped$1(S){return typeof S=="function"&&typeof S.__original=="function"&&typeof S.__unwrap=="function"&&S.__wrapped===!0}var Deferred=(function(){function S(){var T=this;this._promise=new Promise(function(A,O){T._resolve=A,T._reject=O})}return Object.defineProperty(S.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),S.prototype.resolve=function(T){this._resolve(T)},S.prototype.reject=function(T){this._reject(T)},S})(),__read$b=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$4=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},BindOnceFuture=(function(){function S(T,A){this._callback=T,this._that=A,this._isCalled=!1,this._deferred=new Deferred}return Object.defineProperty(S.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),S.prototype.call=function(){for(var T,A=this,O=[],P=0;P<arguments.length;P++)O[P]=arguments[P];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((T=this._callback).call.apply(T,__spreadArray$4([this._that],__read$b(O),!1))).then(function(R){return A._deferred.resolve(R)},function(R){return A._deferred.reject(R)})}catch(R){this._deferred.reject(R)}}return this._deferred.promise},S})();function _export(S,T){return new Promise(function(A){context.with(suppressTracing(context.active()),function(){S.export(T,function(O){A(O)})})})}var baggageUtils={getKeyPairs,serializeKeyPairs,parseKeyPairsIntoRecord,parsePairKeyValue},internal={_export};const esm=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:AlwaysOffSampler$1,AlwaysOnSampler:AlwaysOnSampler$1,AnchoredClock,BindOnceFuture,CompositePropagator,DEFAULT_ATTRIBUTE_COUNT_LIMIT,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,DEFAULT_ENVIRONMENT,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,get ExportResultCode(){return ExportResultCode},ParentBasedSampler:ParentBasedSampler$1,get RPCType(){return RPCType},RandomIdGenerator:RandomIdGenerator$1,SDK_INFO,TRACE_PARENT_HEADER,TRACE_STATE_HEADER,TimeoutError,TraceIdRatioBasedSampler:TraceIdRatioBasedSampler$1,TraceState,get TracesSamplerValues(){return TracesSamplerValues},VERSION:VERSION$2,W3CBaggagePropagator,W3CTraceContextPropagator,_globalThis:_globalThis$1,addHrTimes,baggageUtils,callWithTimeout,deleteRPCMetadata,getEnv,getEnvWithoutDefaults,getRPCMetadata,getTimeOrigin,globalErrorHandler,hexToBase64,hexToBinary,hrTime,hrTimeDuration,hrTimeToMicroseconds,hrTimeToMilliseconds,hrTimeToNanoseconds,hrTimeToTimeStamp,internal,isAttributeKey,isAttributeValue,isTimeInput,isTimeInputHrTime,isTracingSuppressed,isUrlIgnored,isWrapped:isWrapped$1,loggingErrorHandler,merge,millisToHrTime,otperformance,parseEnvironment,parseTraceParent,sanitizeAttributes,setGlobalErrorHandler,setRPCMetadata,suppressTracing,timeInputToHrTime,unrefTimer,unsuppressTracing,urlMatches},Symbol.toStringTag,{value:"Module"}));var ExceptionEventName="exception",__assign$3=function(){return __assign$3=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign$3.apply(this,arguments)},__values$4=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$a=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$3=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},Span=(function(){function S(T,A,O,P,R,M,D,U,C,L){D===void 0&&(D=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=O,this._spanContext=P,this.parentSpanId=M,this.kind=R,this.links=D;var y=Date.now();this._performanceStartTime=otperformance.now(),this._performanceOffset=y-(this._performanceStartTime+getTimeOrigin()),this._startTimeProvided=U!=null,this.startTime=this._getTime(U??y),this.resource=T.resource,this.instrumentationLibrary=T.instrumentationLibrary,this._spanLimits=T.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,L!=null&&this.setAttributes(L),this._spanProcessor=T.getActiveSpanProcessor(),this._spanProcessor.onStart(this,A)}return S.prototype.spanContext=function(){return this._spanContext},S.prototype.setAttribute=function(T,A){return A==null||this._isSpanEnded()?this:T.length===0?(diag.warn("Invalid attribute key: "+T),this):isAttributeValue(A)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,T)?(this._droppedAttributesCount++,this):(this.attributes[T]=this._truncateToSize(A),this):(diag.warn("Invalid attribute value set for key: "+T),this)},S.prototype.setAttributes=function(T){var A,O;try{for(var P=__values$4(Object.entries(T)),R=P.next();!R.done;R=P.next()){var M=__read$a(R.value,2),D=M[0],U=M[1];this.setAttribute(D,U)}}catch(C){A={error:C}}finally{try{R&&!R.done&&(O=P.return)&&O.call(P)}finally{if(A)throw A.error}}return this},S.prototype.addEvent=function(T,A,O){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),isTimeInput(A)&&(isTimeInput(O)||(O=A),A=void 0);var P=sanitizeAttributes(A);return this.events.push({name:T,attributes:P,time:this._getTime(O),droppedAttributesCount:0}),this},S.prototype.addLink=function(T){return this.links.push(T),this},S.prototype.addLinks=function(T){var A;return(A=this.links).push.apply(A,__spreadArray$3([],__read$a(T),!1)),this},S.prototype.setStatus=function(T){return this._isSpanEnded()?this:(this.status=__assign$3({},T),this.status.message!=null&&typeof T.message!="string"&&(diag.warn("Dropping invalid status.message of type '"+typeof T.message+"', expected 'string'"),delete this.status.message),this)},S.prototype.updateName=function(T){return this._isSpanEnded()?this:(this.name=T,this)},S.prototype.end=function(T){if(this._isSpanEnded()){diag.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(T),this._duration=hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&(diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&diag.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},S.prototype._getTime=function(T){if(typeof T=="number"&&T<=otperformance.now())return hrTime(T+this._performanceOffset);if(typeof T=="number")return millisToHrTime(T);if(T instanceof Date)return millisToHrTime(T.getTime());if(isTimeInputHrTime(T))return T;if(this._startTimeProvided)return millisToHrTime(Date.now());var A=otperformance.now()-this._performanceStartTime;return addHrTimes(this.startTime,millisToHrTime(A))},S.prototype.isRecording=function(){return this._ended===!1},S.prototype.recordException=function(T,A){var O={};typeof T=="string"?O[SEMATTRS_EXCEPTION_MESSAGE]=T:T&&(T.code?O[SEMATTRS_EXCEPTION_TYPE]=T.code.toString():T.name&&(O[SEMATTRS_EXCEPTION_TYPE]=T.name),T.message&&(O[SEMATTRS_EXCEPTION_MESSAGE]=T.message),T.stack&&(O[SEMATTRS_EXCEPTION_STACKTRACE]=T.stack)),O[SEMATTRS_EXCEPTION_TYPE]||O[SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(ExceptionEventName,O,A):diag.warn("Failed to record an exception "+T)},Object.defineProperty(S.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),S.prototype._isSpanEnded=function(){return this._ended&&diag.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},S.prototype._truncateToLimitUtil=function(T,A){return T.length<=A?T:T.substring(0,A)},S.prototype._truncateToSize=function(T){var A=this,O=this._attributeValueLengthLimit;return O<=0?(diag.warn("Attribute value limit must be positive, got "+O),T):typeof T=="string"?this._truncateToLimitUtil(T,O):Array.isArray(T)?T.map(function(P){return typeof P=="string"?A._truncateToLimitUtil(P,O):P}):T},S})(),SamplingDecision;(function(S){S[S.NOT_RECORD=0]="NOT_RECORD",S[S.RECORD=1]="RECORD",S[S.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(SamplingDecision||(SamplingDecision={}));var AlwaysOffSampler=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision.NOT_RECORD}},S.prototype.toString=function(){return"AlwaysOffSampler"},S})(),AlwaysOnSampler=(function(){function S(){}return S.prototype.shouldSample=function(){return{decision:SamplingDecision.RECORD_AND_SAMPLED}},S.prototype.toString=function(){return"AlwaysOnSampler"},S})(),ParentBasedSampler=(function(){function S(T){var A,O,P,R;this._root=T.root,this._root||(globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new AlwaysOnSampler),this._remoteParentSampled=(A=T.remoteParentSampled)!==null&&A!==void 0?A:new AlwaysOnSampler,this._remoteParentNotSampled=(O=T.remoteParentNotSampled)!==null&&O!==void 0?O:new AlwaysOffSampler,this._localParentSampled=(P=T.localParentSampled)!==null&&P!==void 0?P:new AlwaysOnSampler,this._localParentNotSampled=(R=T.localParentNotSampled)!==null&&R!==void 0?R:new AlwaysOffSampler}return S.prototype.shouldSample=function(T,A,O,P,R,M){var D=trace.getSpanContext(T);return!D||!isSpanContextValid(D)?this._root.shouldSample(T,A,O,P,R,M):D.isRemote?D.traceFlags&TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(T,A,O,P,R,M):this._remoteParentNotSampled.shouldSample(T,A,O,P,R,M):D.traceFlags&TraceFlags.SAMPLED?this._localParentSampled.shouldSample(T,A,O,P,R,M):this._localParentNotSampled.shouldSample(T,A,O,P,R,M)},S.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},S})(),TraceIdRatioBasedSampler=(function(){function S(T){T===void 0&&(T=0),this._ratio=T,this._ratio=this._normalize(T),this._upperBound=Math.floor(this._ratio*4294967295)}return S.prototype.shouldSample=function(T,A){return{decision:isValidTraceId(A)&&this._accumulate(A)<this._upperBound?SamplingDecision.RECORD_AND_SAMPLED:SamplingDecision.NOT_RECORD}},S.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},S.prototype._normalize=function(T){return typeof T!="number"||isNaN(T)?0:T>=1?1:T<=0?0:T},S.prototype._accumulate=function(T){for(var A=0,O=0;O<T.length/8;O++){var P=O*8,R=parseInt(T.slice(P,P+8),16);A=(A^R)>>>0}return A},S})(),FALLBACK_OTEL_TRACES_SAMPLER=TracesSamplerValues.AlwaysOn,DEFAULT_RATIO=1;function loadDefaultConfig(){var S=getEnv();return{sampler:buildSamplerFromEnv(S),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:S.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:S.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:S.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:S.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:S.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function buildSamplerFromEnv(S){switch(S===void 0&&(S=getEnv()),S.OTEL_TRACES_SAMPLER){case TracesSamplerValues.AlwaysOn:return new AlwaysOnSampler;case TracesSamplerValues.AlwaysOff:return new AlwaysOffSampler;case TracesSamplerValues.ParentBasedAlwaysOn:return new ParentBasedSampler({root:new AlwaysOnSampler});case TracesSamplerValues.ParentBasedAlwaysOff:return new ParentBasedSampler({root:new AlwaysOffSampler});case TracesSamplerValues.TraceIdRatio:return new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv(S));case TracesSamplerValues.ParentBasedTraceIdRatio:return new ParentBasedSampler({root:new TraceIdRatioBasedSampler(getSamplerProbabilityFromEnv(S))});default:return diag.error('OTEL_TRACES_SAMPLER value "'+S.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+FALLBACK_OTEL_TRACES_SAMPLER+'".'),new AlwaysOnSampler}}function getSamplerProbabilityFromEnv(S){if(S.OTEL_TRACES_SAMPLER_ARG===void 0||S.OTEL_TRACES_SAMPLER_ARG==="")return diag.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO;var T=Number(S.OTEL_TRACES_SAMPLER_ARG);return isNaN(T)?(diag.error("OTEL_TRACES_SAMPLER_ARG="+S.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO):T<0||T>1?(diag.error("OTEL_TRACES_SAMPLER_ARG="+S.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+DEFAULT_RATIO+"."),DEFAULT_RATIO):T}function mergeConfig(S){var T={sampler:buildSamplerFromEnv()},A=loadDefaultConfig(),O=Object.assign({},A,T,S);return O.generalLimits=Object.assign({},A.generalLimits,S.generalLimits||{}),O.spanLimits=Object.assign({},A.spanLimits,S.spanLimits||{}),O}function reconfigureLimits(S){var T,A,O,P,R,M,D,U,C,L,y,_,N=Object.assign({},S.spanLimits),I=getEnvWithoutDefaults();return N.attributeCountLimit=(M=(R=(P=(A=(T=S.spanLimits)===null||T===void 0?void 0:T.attributeCountLimit)!==null&&A!==void 0?A:(O=S.generalLimits)===null||O===void 0?void 0:O.attributeCountLimit)!==null&&P!==void 0?P:I.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&R!==void 0?R:I.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&M!==void 0?M:DEFAULT_ATTRIBUTE_COUNT_LIMIT,N.attributeValueLengthLimit=(_=(y=(L=(U=(D=S.spanLimits)===null||D===void 0?void 0:D.attributeValueLengthLimit)!==null&&U!==void 0?U:(C=S.generalLimits)===null||C===void 0?void 0:C.attributeValueLengthLimit)!==null&&L!==void 0?L:I.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&y!==void 0?y:I.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},S,{spanLimits:N})}var BatchSpanProcessorBase=(function(){function S(T,A){this._exporter=T,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var O=getEnv();this._maxExportBatchSize=typeof A?.maxExportBatchSize=="number"?A.maxExportBatchSize:O.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof A?.maxQueueSize=="number"?A.maxQueueSize:O.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof A?.scheduledDelayMillis=="number"?A.scheduledDelayMillis:O.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof A?.exportTimeoutMillis=="number"?A.exportTimeoutMillis:O.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return S.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},S.prototype.onStart=function(T,A){},S.prototype.onEnd=function(T){this._shutdownOnce.isCalled||(T.spanContext().traceFlags&TraceFlags.SAMPLED)!==0&&this._addToBuffer(T)},S.prototype.shutdown=function(){return this._shutdownOnce.call()},S.prototype._shutdown=function(){var T=this;return Promise.resolve().then(function(){return T.onShutdown()}).then(function(){return T._flushAll()}).then(function(){return T._exporter.shutdown()})},S.prototype._addToBuffer=function(T){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(diag.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(T),this._maybeStartTimer()},S.prototype._flushAll=function(){var T=this;return new Promise(function(A,O){for(var P=[],R=Math.ceil(T._finishedSpans.length/T._maxExportBatchSize),M=0,D=R;M<D;M++)P.push(T._flushOneBatch());Promise.all(P).then(function(){A()}).catch(O)})},S.prototype._flushOneBatch=function(){var T=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(A,O){var P=setTimeout(function(){O(new Error("Timeout"))},T._exportTimeoutMillis);context.with(suppressTracing(context.active()),function(){var R;T._finishedSpans.length<=T._maxExportBatchSize?(R=T._finishedSpans,T._finishedSpans=[]):R=T._finishedSpans.splice(0,T._maxExportBatchSize);for(var M=function(){return T._exporter.export(R,function(y){var _;clearTimeout(P),y.code===ExportResultCode.SUCCESS?A():O((_=y.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},D=null,U=0,C=R.length;U<C;U++){var L=R[U];L.resource.asyncAttributesPending&&L.resource.waitForAsyncAttributes&&(D??(D=[]),D.push(L.resource.waitForAsyncAttributes()))}D===null?M():Promise.all(D).then(M,function(y){globalErrorHandler(y),O(y)})})})},S.prototype._maybeStartTimer=function(){var T=this;if(!this._isExporting){var A=function(){T._isExporting=!0,T._flushOneBatch().finally(function(){T._isExporting=!1,T._finishedSpans.length>0&&(T._clearTimer(),T._maybeStartTimer())}).catch(function(O){T._isExporting=!1,globalErrorHandler(O)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return A();this._timer===void 0&&(this._timer=setTimeout(function(){return A()},this._scheduledDelayMillis),this._timer,void 0)}},S.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},S})(),__extends$5=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),BatchSpanProcessor=(function(S){__extends$5(T,S);function T(A,O){var P=S.call(this,A,O)||this;return P.onInit(O),P}return T.prototype.onInit=function(A){var O=this;A?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&O.forceFlush().catch(function(P){globalErrorHandler(P)})},this._pageHideListener=function(){O.forceFlush().catch(function(P){globalErrorHandler(P)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},T.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},T})(BatchSpanProcessorBase),SPAN_ID_BYTES=8,TRACE_ID_BYTES=16,RandomIdGenerator=(function(){function S(){this.generateTraceId=getIdGenerator(TRACE_ID_BYTES),this.generateSpanId=getIdGenerator(SPAN_ID_BYTES)}return S})(),SHARED_CHAR_CODES_ARRAY=Array(32);function getIdGenerator(S){return function(){for(var A=0;A<S*2;A++)SHARED_CHAR_CODES_ARRAY[A]=Math.floor(Math.random()*16)+48,SHARED_CHAR_CODES_ARRAY[A]>=58&&(SHARED_CHAR_CODES_ARRAY[A]+=39);return String.fromCharCode.apply(null,SHARED_CHAR_CODES_ARRAY.slice(0,S*2))}}var Tracer=(function(){function S(T,A,O){this._tracerProvider=O;var P=mergeConfig(A);this._sampler=P.sampler,this._generalLimits=P.generalLimits,this._spanLimits=P.spanLimits,this._idGenerator=A.idGenerator||new RandomIdGenerator,this.resource=O.resource,this.instrumentationLibrary=T}return S.prototype.startSpan=function(T,A,O){var P,R,M;A===void 0&&(A={}),O===void 0&&(O=context.active()),A.root&&(O=trace.deleteSpan(O));var D=trace.getSpan(O);if(isTracingSuppressed(O)){diag.debug("Instrumentation suppressed, returning Noop Span");var U=trace.wrapSpanContext(INVALID_SPAN_CONTEXT);return U}var C=D?.spanContext(),L=this._idGenerator.generateSpanId(),y,_,N;!C||!trace.isSpanContextValid(C)?y=this._idGenerator.generateTraceId():(y=C.traceId,_=C.traceState,N=C.spanId);var I=(P=A.kind)!==null&&P!==void 0?P:SpanKind.INTERNAL,x=((R=A.links)!==null&&R!==void 0?R:[]).map(function(fe){return{context:fe.context,attributes:sanitizeAttributes(fe.attributes)}}),V=sanitizeAttributes(A.attributes),k=this._sampler.shouldSample(O,y,T,I,V,x);_=(M=k.traceState)!==null&&M!==void 0?M:_;var B=k.decision===SamplingDecision$1.RECORD_AND_SAMPLED?TraceFlags.SAMPLED:TraceFlags.NONE,W={traceId:y,spanId:L,traceFlags:B,traceState:_};if(k.decision===SamplingDecision$1.NOT_RECORD){diag.debug("Recording is off, propagating context in a non-recording span");var U=trace.wrapSpanContext(W);return U}var oe=sanitizeAttributes(Object.assign(V,k.attributes)),te=new Span(this,O,T,W,I,N,x,A.startTime,void 0,oe);return te},S.prototype.startActiveSpan=function(T,A,O,P){var R,M,D;if(!(arguments.length<2)){arguments.length===2?D=A:arguments.length===3?(R=A,D=O):(R=A,M=O,D=P);var U=M??context.active(),C=this.startSpan(T,R,U),L=trace.setSpan(U,C);return context.with(L,D,void 0,C)}},S.prototype.getGeneralLimits=function(){return this._generalLimits},S.prototype.getSpanLimits=function(){return this._spanLimits},S.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},S})();function defaultServiceName$1(){return"unknown_service"}var __assign$2=function(){return __assign$2=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign$2.apply(this,arguments)},__awaiter$5=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$5=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},__read$9=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},Resource$1=(function(){function S(T,A){var O=this,P;this._attributes=T,this.asyncAttributesPending=A!=null,this._syncAttributes=(P=this._attributes)!==null&&P!==void 0?P:{},this._asyncAttributesPromise=A?.then(function(R){return O._attributes=Object.assign({},O._attributes,R),O.asyncAttributesPending=!1,R},function(R){return diag.debug("a resource's async attributes promise rejected: %s",R),O.asyncAttributesPending=!1,{}})}return S.empty=function(){return S.EMPTY},S.default=function(){var T;return new S((T={},T[SEMRESATTRS_SERVICE_NAME]=defaultServiceName$1(),T[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],T[SEMRESATTRS_TELEMETRY_SDK_NAME]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME],T[SEMRESATTRS_TELEMETRY_SDK_VERSION]=SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION],T))},Object.defineProperty(S.prototype,"attributes",{get:function(){var T;return this.asyncAttributesPending&&diag.error("Accessing resource attributes before async attributes settled"),(T=this._attributes)!==null&&T!==void 0?T:{}},enumerable:!1,configurable:!0}),S.prototype.waitForAsyncAttributes=function(){return __awaiter$5(this,void 0,void 0,function(){return __generator$5(this,function(T){switch(T.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:T.sent(),T.label=2;case 2:return[2]}})})},S.prototype.merge=function(T){var A=this,O;if(!T)return this;var P=__assign$2(__assign$2({},this._syncAttributes),(O=T._syncAttributes)!==null&&O!==void 0?O:T.attributes);if(!this._asyncAttributesPromise&&!T._asyncAttributesPromise)return new S(P);var R=Promise.all([this._asyncAttributesPromise,T._asyncAttributesPromise]).then(function(M){var D,U=__read$9(M,2),C=U[0],L=U[1];return __assign$2(__assign$2(__assign$2(__assign$2({},A._syncAttributes),C),(D=T._syncAttributes)!==null&&D!==void 0?D:T.attributes),L)});return new S(P,R)},S.EMPTY=new S({}),S})();const index$7=Object.freeze(Object.defineProperty({__proto__:null,Resource:Resource$1,defaultServiceName:defaultServiceName$1},Symbol.toStringTag,{value:"Module"}));var __values$3=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},MultiSpanProcessor=(function(){function S(T){this._spanProcessors=T}return S.prototype.forceFlush=function(){var T,A,O=[];try{for(var P=__values$3(this._spanProcessors),R=P.next();!R.done;R=P.next()){var M=R.value;O.push(M.forceFlush())}}catch(D){T={error:D}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return new Promise(function(D){Promise.all(O).then(function(){D()}).catch(function(U){globalErrorHandler(U||new Error("MultiSpanProcessor: forceFlush failed")),D()})})},S.prototype.onStart=function(T,A){var O,P;try{for(var R=__values$3(this._spanProcessors),M=R.next();!M.done;M=R.next()){var D=M.value;D.onStart(T,A)}}catch(U){O={error:U}}finally{try{M&&!M.done&&(P=R.return)&&P.call(R)}finally{if(O)throw O.error}}},S.prototype.onEnd=function(T){var A,O;try{for(var P=__values$3(this._spanProcessors),R=P.next();!R.done;R=P.next()){var M=R.value;M.onEnd(T)}}catch(D){A={error:D}}finally{try{R&&!R.done&&(O=P.return)&&O.call(P)}finally{if(A)throw A.error}}},S.prototype.shutdown=function(){var T,A,O=[];try{for(var P=__values$3(this._spanProcessors),R=P.next();!R.done;R=P.next()){var M=R.value;O.push(M.shutdown())}}catch(D){T={error:D}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return new Promise(function(D,U){Promise.all(O).then(function(){D()},U)})},S})(),NoopSpanProcessor=(function(){function S(){}return S.prototype.onStart=function(T,A){},S.prototype.onEnd=function(T){},S.prototype.shutdown=function(){return Promise.resolve()},S.prototype.forceFlush=function(){return Promise.resolve()},S})(),__read$8=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$2=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},ForceFlushState;(function(S){S[S.resolved=0]="resolved",S[S.timeout=1]="timeout",S[S.error=2]="error",S[S.unresolved=3]="unresolved"})(ForceFlushState||(ForceFlushState={}));var BasicTracerProvider=(function(){function S(T){T===void 0&&(T={});var A,O;this._registeredSpanProcessors=[],this._tracers=new Map;var P=merge({},loadDefaultConfig(),reconfigureLimits(T));if(this.resource=(A=P.resource)!==null&&A!==void 0?A:Resource$1.empty(),P.mergeResourceWithDefaults&&(this.resource=Resource$1.default().merge(this.resource)),this._config=Object.assign({},P,{resource:this.resource}),!((O=T.spanProcessors)===null||O===void 0)&&O.length)this._registeredSpanProcessors=__spreadArray$2([],__read$8(T.spanProcessors),!1),this.activeSpanProcessor=new MultiSpanProcessor(this._registeredSpanProcessors);else{var R=this._buildExporterFromEnv();if(R!==void 0){var M=new BatchSpanProcessor(R);this.activeSpanProcessor=M}else this.activeSpanProcessor=new NoopSpanProcessor}}return S.prototype.getTracer=function(T,A,O){var P=T+"@"+(A||"")+":"+(O?.schemaUrl||"");return this._tracers.has(P)||this._tracers.set(P,new Tracer({name:T,version:A,schemaUrl:O?.schemaUrl},this._config,this)),this._tracers.get(P)},S.prototype.addSpanProcessor=function(T){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(A){return diag.error("Error while trying to shutdown current span processor",A)}),this._registeredSpanProcessors.push(T),this.activeSpanProcessor=new MultiSpanProcessor(this._registeredSpanProcessors)},S.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},S.prototype.register=function(T){T===void 0&&(T={}),trace.setGlobalTracerProvider(this),T.propagator===void 0&&(T.propagator=this._buildPropagatorFromEnv()),T.contextManager&&context.setGlobalContextManager(T.contextManager),T.propagator&&propagation.setGlobalPropagator(T.propagator)},S.prototype.forceFlush=function(){var T=this._config.forceFlushTimeoutMillis,A=this._registeredSpanProcessors.map(function(O){return new Promise(function(P){var R,M=setTimeout(function(){P(new Error("Span processor did not completed within timeout period of "+T+" ms")),R=ForceFlushState.timeout},T);O.forceFlush().then(function(){clearTimeout(M),R!==ForceFlushState.timeout&&(R=ForceFlushState.resolved,P(R))}).catch(function(D){clearTimeout(M),R=ForceFlushState.error,P(D)})})});return new Promise(function(O,P){Promise.all(A).then(function(R){var M=R.filter(function(D){return D!==ForceFlushState.resolved});M.length>0?P(M):O()}).catch(function(R){return P([R])})})},S.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},S.prototype._getPropagator=function(T){var A;return(A=this.constructor._registeredPropagators.get(T))===null||A===void 0?void 0:A()},S.prototype._getSpanExporter=function(T){var A;return(A=this.constructor._registeredExporters.get(T))===null||A===void 0?void 0:A()},S.prototype._buildPropagatorFromEnv=function(){var T=this,A=Array.from(new Set(getEnv().OTEL_PROPAGATORS)),O=A.map(function(R){var M=T._getPropagator(R);return M||diag.warn('Propagator "'+R+'" requested through environment variable is unavailable.'),M}),P=O.reduce(function(R,M){return M&&R.push(M),R},[]);if(P.length!==0)return A.length===1?P[0]:new CompositePropagator({propagators:P})},S.prototype._buildExporterFromEnv=function(){var T=getEnv().OTEL_TRACES_EXPORTER;if(!(T==="none"||T==="")){var A=this._getSpanExporter(T);return A||diag.error('Exporter "'+T+'" requested through environment variable is unavailable.'),A}},S._registeredPropagators=new Map([["tracecontext",function(){return new W3CTraceContextPropagator}],["baggage",function(){return new W3CBaggagePropagator}]]),S._registeredExporters=new Map,S})(),__values$2=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},ConsoleSpanExporter=(function(){function S(){}return S.prototype.export=function(T,A){return this._sendSpans(T,A)},S.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},S.prototype.forceFlush=function(){return Promise.resolve()},S.prototype._exportInfo=function(T){var A;return{resource:{attributes:T.resource.attributes},instrumentationScope:T.instrumentationLibrary,traceId:T.spanContext().traceId,parentId:T.parentSpanId,traceState:(A=T.spanContext().traceState)===null||A===void 0?void 0:A.serialize(),name:T.name,id:T.spanContext().spanId,kind:T.kind,timestamp:hrTimeToMicroseconds(T.startTime),duration:hrTimeToMicroseconds(T.duration),attributes:T.attributes,status:T.status,events:T.events,links:T.links}},S.prototype._sendSpans=function(T,A){var O,P;try{for(var R=__values$2(T),M=R.next();!M.done;M=R.next()){var D=M.value;console.dir(this._exportInfo(D),{depth:3})}}catch(U){O={error:U}}finally{try{M&&!M.done&&(P=R.return)&&P.call(R)}finally{if(O)throw O.error}}if(A)return A({code:ExportResultCode.SUCCESS})},S})(),__awaiter$4=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$4=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},SimpleSpanProcessor=(function(){function S(T){this._exporter=T,this._shutdownOnce=new BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}return S.prototype.forceFlush=function(){return __awaiter$4(this,void 0,void 0,function(){return __generator$4(this,function(T){switch(T.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return T.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:T.sent(),T.label=3;case 3:return[2]}})})},S.prototype.onStart=function(T,A){},S.prototype.onEnd=function(T){var A=this,O,P;if(!this._shutdownOnce.isCalled&&(T.spanContext().traceFlags&TraceFlags.SAMPLED)!==0){var R=function(){return internal._export(A._exporter,[T]).then(function(D){var U;D.code!==ExportResultCode.SUCCESS&&globalErrorHandler((U=D.error)!==null&&U!==void 0?U:new Error("SimpleSpanProcessor: span export failed (status "+D+")"))}).catch(function(D){globalErrorHandler(D)})};if(T.resource.asyncAttributesPending){var M=(P=(O=T.resource).waitForAsyncAttributes)===null||P===void 0?void 0:P.call(O).then(function(){return M!=null&&A._unresolvedExports.delete(M),R()},function(D){return globalErrorHandler(D)});M!=null&&this._unresolvedExports.add(M)}else R()}},S.prototype.shutdown=function(){return this._shutdownOnce.call()},S.prototype._shutdown=function(){return this._exporter.shutdown()},S})();const index$6=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler,AlwaysOnSampler,BasicTracerProvider,BatchSpanProcessor,ConsoleSpanExporter,get ForceFlushState(){return ForceFlushState},NoopSpanProcessor,ParentBasedSampler,RandomIdGenerator,get SamplingDecision(){return SamplingDecision},SimpleSpanProcessor,Span,TraceIdRatioBasedSampler,Tracer},Symbol.toStringTag,{value:"Module"}));var __read$7=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray$1=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},StackContextManager=(function(){function S(){this._enabled=!1,this._currentContext=ROOT_CONTEXT}return S.prototype._bindFunction=function(T,A){T===void 0&&(T=ROOT_CONTEXT);var O=this,P=function(){for(var R=this,M=[],D=0;D<arguments.length;D++)M[D]=arguments[D];return O.with(T,function(){return A.apply(R,M)})};return Object.defineProperty(P,"length",{enumerable:!1,configurable:!0,writable:!1,value:A.length}),P},S.prototype.active=function(){return this._currentContext},S.prototype.bind=function(T,A){return T===void 0&&(T=this.active()),typeof A=="function"?this._bindFunction(T,A):A},S.prototype.disable=function(){return this._currentContext=ROOT_CONTEXT,this._enabled=!1,this},S.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=ROOT_CONTEXT,this)},S.prototype.with=function(T,A,O){for(var P=[],R=3;R<arguments.length;R++)P[R-3]=arguments[R];var M=this._currentContext;this._currentContext=T||ROOT_CONTEXT;try{return A.call.apply(A,__spreadArray$1([O],__read$7(P),!1))}finally{this._currentContext=M}},S})(),__extends$4=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),WebTracerProvider=(function(S){__extends$4(T,S);function T(A){A===void 0&&(A={});var O=S.call(this,A)||this;if(A.contextManager)throw"contextManager should be defined in register method not in constructor";if(A.propagator)throw"propagator should be defined in register method not in constructor";return O}return T.prototype.register=function(A){A===void 0&&(A={}),A.contextManager===void 0&&(A.contextManager=new StackContextManager),A.contextManager&&A.contextManager.enable(),S.prototype.register.call(this,A)},T})(BasicTracerProvider),PerformanceTimingNames;(function(S){S.CONNECT_END="connectEnd",S.CONNECT_START="connectStart",S.DECODED_BODY_SIZE="decodedBodySize",S.DOM_COMPLETE="domComplete",S.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",S.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",S.DOM_INTERACTIVE="domInteractive",S.DOMAIN_LOOKUP_END="domainLookupEnd",S.DOMAIN_LOOKUP_START="domainLookupStart",S.ENCODED_BODY_SIZE="encodedBodySize",S.FETCH_START="fetchStart",S.LOAD_EVENT_END="loadEventEnd",S.LOAD_EVENT_START="loadEventStart",S.NAVIGATION_START="navigationStart",S.REDIRECT_END="redirectEnd",S.REDIRECT_START="redirectStart",S.REQUEST_START="requestStart",S.RESPONSE_END="responseEnd",S.RESPONSE_START="responseStart",S.SECURE_CONNECTION_START="secureConnectionStart",S.UNLOAD_EVENT_END="unloadEventEnd",S.UNLOAD_EVENT_START="unloadEventStart"})(PerformanceTimingNames||(PerformanceTimingNames={}));var urlNormalizingAnchor;function getUrlNormalizingAnchor(){return urlNormalizingAnchor||(urlNormalizingAnchor=document.createElement("a")),urlNormalizingAnchor}function hasKey(S,T){return T in S}function addSpanNetworkEvent(S,T,A,O){var P=void 0,R=void 0;hasKey(A,T)&&typeof A[T]=="number"&&(P=A[T]);var M=PerformanceTimingNames.FETCH_START;if(hasKey(A,M)&&typeof A[M]=="number"&&(R=A[M]),P!==void 0&&R!==void 0&&P>=R)return S.addEvent(T,P),S}function addSpanNetworkEvents(S,T,A){A===void 0&&(A=!1),A||(addSpanNetworkEvent(S,PerformanceTimingNames.FETCH_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.DOMAIN_LOOKUP_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.DOMAIN_LOOKUP_END,T),addSpanNetworkEvent(S,PerformanceTimingNames.CONNECT_START,T),hasKey(T,"name")&&T.name.startsWith("https:")&&addSpanNetworkEvent(S,PerformanceTimingNames.SECURE_CONNECTION_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.CONNECT_END,T),addSpanNetworkEvent(S,PerformanceTimingNames.REQUEST_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.RESPONSE_START,T),addSpanNetworkEvent(S,PerformanceTimingNames.RESPONSE_END,T));var O=T[PerformanceTimingNames.ENCODED_BODY_SIZE];O!==void 0&&S.setAttribute(SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH,O);var P=T[PerformanceTimingNames.DECODED_BODY_SIZE];P!==void 0&&O!==P&&S.setAttribute(SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,P)}function sortResources(S){return S.slice().sort(function(T,A){var O=T[PerformanceTimingNames.FETCH_START],P=A[PerformanceTimingNames.FETCH_START];return O>P?1:O<P?-1:0})}function getOrigin(){return typeof location<"u"?location.origin:void 0}function getResource(S,T,A,O,P,R){P===void 0&&(P=new WeakSet);var M=parseUrl(S);S=M.toString();var D=filterResourcesForSpan(S,T,A,O,P,R);if(D.length===0)return{mainRequest:void 0};if(D.length===1)return{mainRequest:D[0]};var U=sortResources(D);if(M.origin!==getOrigin()&&U.length>1){var C=U[0],L=findMainRequest(U,C[PerformanceTimingNames.RESPONSE_END],A),y=C[PerformanceTimingNames.RESPONSE_END],_=L[PerformanceTimingNames.FETCH_START];return _<y&&(L=C,C=void 0),{corsPreFlightRequest:C,mainRequest:L}}else return{mainRequest:D[0]}}function findMainRequest(S,T,A){for(var O=hrTimeToNanoseconds(A),P=hrTimeToNanoseconds(timeInputToHrTime(T)),R=S[1],M,D=S.length,U=1;U<D;U++){var C=S[U],L=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.FETCH_START])),y=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.RESPONSE_END])),_=O-y;L>=P&&(!M||_<M)&&(M=_,R=C)}return R}function filterResourcesForSpan(S,T,A,O,P,R){var M=hrTimeToNanoseconds(T),D=hrTimeToNanoseconds(A),U=O.filter(function(C){var L=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.FETCH_START])),y=hrTimeToNanoseconds(timeInputToHrTime(C[PerformanceTimingNames.RESPONSE_END]));return C.initiatorType.toLowerCase()===R&&C.name===S&&L>=M&&y<=D});return U.length>0&&(U=U.filter(function(C){return!P.has(C)})),U}function parseUrl(S){if(typeof URL=="function")return new URL(S,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var T=getUrlNormalizingAnchor();return T.href=S,T}function shouldPropagateTraceHeaders(S,T){var A=T||[];(typeof A=="string"||A instanceof RegExp)&&(A=[A]);var O=parseUrl(S);return O.origin===getOrigin()?!0:A.some(function(P){return urlMatches(S,P)})}const index$5=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler,AlwaysOnSampler,BasicTracerProvider,BatchSpanProcessor,ConsoleSpanExporter,get ForceFlushState(){return ForceFlushState},NoopSpanProcessor,ParentBasedSampler,get PerformanceTimingNames(){return PerformanceTimingNames},RandomIdGenerator,get SamplingDecision(){return SamplingDecision},SimpleSpanProcessor,Span,StackContextManager,TraceIdRatioBasedSampler,Tracer,WebTracerProvider,addSpanNetworkEvent,addSpanNetworkEvents,getResource,hasKey,parseUrl,shouldPropagateTraceHeaders,sortResources},Symbol.toStringTag,{value:"Module"}));var NoopLogger=(function(){function S(){}return S.prototype.emit=function(T){},S})(),NOOP_LOGGER=new NoopLogger,NoopLoggerProvider=(function(){function S(){}return S.prototype.getLogger=function(T,A,O){return new NoopLogger},S})(),NOOP_LOGGER_PROVIDER=new NoopLoggerProvider,ProxyLogger=(function(){function S(T,A,O,P){this._provider=T,this.name=A,this.version=O,this.options=P}return S.prototype.emit=function(T){this._getLogger().emit(T)},S.prototype._getLogger=function(){if(this._delegate)return this._delegate;var T=this._provider.getDelegateLogger(this.name,this.version,this.options);return T?(this._delegate=T,this._delegate):NOOP_LOGGER},S})(),ProxyLoggerProvider=(function(){function S(){}return S.prototype.getLogger=function(T,A,O){var P;return(P=this.getDelegateLogger(T,A,O))!==null&&P!==void 0?P:new ProxyLogger(this,T,A,O)},S.prototype.getDelegate=function(){var T;return(T=this._delegate)!==null&&T!==void 0?T:NOOP_LOGGER_PROVIDER},S.prototype.setDelegate=function(T){this._delegate=T},S.prototype.getDelegateLogger=function(T,A,O){var P;return(P=this._delegate)===null||P===void 0?void 0:P.getLogger(T,A,O)},S})(),_globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs"),_global=_globalThis;function makeGetter(S,T,A){return function(O){return O===S?T:A}}var API_BACKWARDS_COMPATIBILITY_VERSION=1,LogsAPI=(function(){function S(){this._proxyLoggerProvider=new ProxyLoggerProvider}return S.getInstance=function(){return this._instance||(this._instance=new S),this._instance},S.prototype.setGlobalLoggerProvider=function(T){return _global[GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(_global[GLOBAL_LOGS_API_KEY]=makeGetter(API_BACKWARDS_COMPATIBILITY_VERSION,T,NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(T),T)},S.prototype.getLoggerProvider=function(){var T,A;return(A=(T=_global[GLOBAL_LOGS_API_KEY])===null||T===void 0?void 0:T.call(_global,API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&A!==void 0?A:this._proxyLoggerProvider},S.prototype.getLogger=function(T,A,O){return this.getLoggerProvider().getLogger(T,A,O)},S.prototype.disable=function(){delete _global[GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new ProxyLoggerProvider},S})(),logs=LogsAPI.getInstance();function enableInstrumentations(S,T,A,O){for(var P=0,R=S.length;P<R;P++){var M=S[P];T&&M.setTracerProvider(T),A&&M.setMeterProvider(A),O&&M.setLoggerProvider&&M.setLoggerProvider(O),M.getConfig().enabled||M.enable()}}function disableInstrumentations(S){S.forEach(function(T){return T.disable()})}function registerInstrumentations(S){var T,A,O=S.tracerProvider||trace.getTracerProvider(),P=S.meterProvider||metrics.getMeterProvider(),R=S.loggerProvider||logs.getLoggerProvider(),M=(A=(T=S.instrumentations)===null||T===void 0?void 0:T.flat())!==null&&A!==void 0?A:[];return enableInstrumentations(M,O,P,R),function(){disableInstrumentations(M)}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(S){if(Object.prototype.hasOwnProperty.call(S,"__esModule"))return S;var T=S.default;if(typeof T=="function"){var A=function O(){var P=!1;try{P=this instanceof O}catch{}return P?Reflect.construct(T,arguments,this.constructor):T.apply(this,arguments)};A.prototype=T.prototype}else A={};return Object.defineProperty(A,"__esModule",{value:!0}),Object.keys(S).forEach(function(O){var P=Object.getOwnPropertyDescriptor(S,O);Object.defineProperty(A,O,P.get?P:{enumerable:!0,get:function(){return S[O]}})}),A}var shimmer_1,hasRequiredShimmer;function requireShimmer(){if(hasRequiredShimmer)return shimmer_1;hasRequiredShimmer=1;function S(U){return typeof U=="function"}var T=console.error.bind(console);function A(U,C,L){var y=!!U[C]&&U.propertyIsEnumerable(C);Object.defineProperty(U,C,{configurable:!0,enumerable:y,writable:!0,value:L})}function O(U){U&&U.logger&&(S(U.logger)?T=U.logger:T("new logger isn't a function, not replacing"))}function P(U,C,L){if(!U||!U[C]){T("no original function "+C+" to wrap");return}if(!L){T("no wrapper function"),T(new Error().stack);return}if(!S(U[C])||!S(L)){T("original object and wrapper must be functions");return}var y=U[C],_=L(y,C);return A(_,"__original",y),A(_,"__unwrap",function(){U[C]===_&&A(U,C,y)}),A(_,"__wrapped",!0),A(U,C,_),_}function R(U,C,L){if(U)Array.isArray(U)||(U=[U]);else{T("must provide one or more modules to patch"),T(new Error().stack);return}if(!(C&&Array.isArray(C))){T("must provide one or more functions to wrap on modules");return}U.forEach(function(y){C.forEach(function(_){P(y,_,L)})})}function M(U,C){if(!U||!U[C]){T("no function to unwrap."),T(new Error().stack);return}if(!U[C].__unwrap)T("no original to unwrap to -- has "+C+" already been unwrapped?");else return U[C].__unwrap()}function D(U,C){if(U)Array.isArray(U)||(U=[U]);else{T("must provide one or more modules to patch"),T(new Error().stack);return}if(!(C&&Array.isArray(C))){T("must provide one or more functions to unwrap on modules");return}U.forEach(function(L){C.forEach(function(y){M(L,y)})})}return O.wrap=P,O.massWrap=R,O.unwrap=M,O.massUnwrap=D,shimmer_1=O,shimmer_1}var shimmerExports=requireShimmer(),__assign$1=function(){return __assign$1=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign$1.apply(this,arguments)},InstrumentationAbstract=(function(){function S(T,A,O){this.instrumentationName=T,this.instrumentationVersion=A,this._config={},this._wrap=shimmerExports.wrap,this._unwrap=shimmerExports.unwrap,this._massWrap=shimmerExports.massWrap,this._massUnwrap=shimmerExports.massUnwrap,this.setConfig(O),this._diag=diag.createComponentLogger({namespace:T}),this._tracer=trace.getTracer(T,A),this._meter=metrics.getMeter(T,A),this._logger=logs.getLogger(T,A),this._updateMetricInstruments()}return Object.defineProperty(S.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),S.prototype.setMeterProvider=function(T){this._meter=T.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(S.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),S.prototype.setLoggerProvider=function(T){this._logger=T.getLogger(this.instrumentationName,this.instrumentationVersion)},S.prototype.getModuleDefinitions=function(){var T,A=(T=this.init())!==null&&T!==void 0?T:[];return Array.isArray(A)?A:[A]},S.prototype._updateMetricInstruments=function(){},S.prototype.getConfig=function(){return this._config},S.prototype.setConfig=function(T){this._config=__assign$1({enabled:!0},T)},S.prototype.setTracerProvider=function(T){this._tracer=T.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(S.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),S.prototype._runSpanCustomizationHook=function(T,A,O,P){if(T)try{T(O,P)}catch(R){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:A},R)}},S})(),__extends$3=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),InstrumentationBase=(function(S){__extends$3(T,S);function T(A,O,P){var R=S.call(this,A,O,P)||this;return R._config.enabled&&R.enable(),R}return T})(InstrumentationAbstract);function safeExecuteInTheMiddle(S,T,A){var O,P;try{P=S()}catch(R){O=R}finally{return T(O,P),P}}function isWrapped(S){return typeof S=="function"&&typeof S.__original=="function"&&typeof S.__unwrap=="function"&&S.__wrapped===!0}const index$4=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase,isWrapped,registerInstrumentations,safeExecuteInTheMiddle},Symbol.toStringTag,{value:"Module"}));var AttributeNames;(function(S){S.COMPONENT="component",S.HTTP_ERROR_NAME="http.error_name",S.HTTP_STATUS_TEXT="http.status_text"})(AttributeNames||(AttributeNames={}));var __awaiter$3=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$3=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},__values$1=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$6=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},DIAG_LOGGER=diag.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function getFetchBodyLength(){for(var S=[],T=0;T<arguments.length;T++)S[T]=arguments[T];if(S[0]instanceof URL||typeof S[0]=="string"){var A=S[1];if(!A?.body)return Promise.resolve();if(A.body instanceof ReadableStream){var O=_getBodyNonDestructively(A.body),P=O.body,R=O.length;return A.body=P,R}else return Promise.resolve(getXHRBodyLength(A.body))}else{var M=S[0];return M?.body?M.clone().text().then(function(D){return getByteLength(D)}):Promise.resolve()}}function _getBodyNonDestructively(S){if(!S.pipeThrough)return DIAG_LOGGER.warn("Platform has ReadableStream but not pipeThrough!"),{body:S,length:Promise.resolve(void 0)};var T=0,A,O=new Promise(function(R){A=R}),P=new TransformStream({start:function(){},transform:function(R,M){return __awaiter$3(this,void 0,void 0,function(){var D;return __generator$3(this,function(U){switch(U.label){case 0:return[4,R];case 1:return D=U.sent(),T+=D.byteLength,M.enqueue(R),[2]}})})},flush:function(){A(T)}});return{body:S.pipeThrough(P),length:O}}function getXHRBodyLength(S){if(typeof Document<"u"&&S instanceof Document)return new XMLSerializer().serializeToString(document).length;if(S instanceof Blob)return S.size;if(S.byteLength!==void 0)return S.byteLength;if(S instanceof FormData)return getFormDataSize(S);if(S instanceof URLSearchParams)return getByteLength(S.toString());if(typeof S=="string")return getByteLength(S);DIAG_LOGGER.warn("unknown body type")}var TEXT_ENCODER=new TextEncoder;function getByteLength(S){return TEXT_ENCODER.encode(S).byteLength}function getFormDataSize(S){var T,A,O=0;try{for(var P=__values$1(S.entries()),R=P.next();!R.done;R=P.next()){var M=__read$6(R.value,2),D=M[0],U=M[1];O+=D.length,U instanceof Blob?O+=U.size:O+=U.length}}catch(C){T={error:C}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return O}var VERSION="0.57.2",__extends$2=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),__read$5=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},__spreadArray=function(S,T,A){if(A||arguments.length===2)for(var O=0,P=T.length,R;O<P;O++)(R||!(O in T))&&(R||(R=Array.prototype.slice.call(T,0,O)),R[O]=T[O]);return S.concat(R||Array.prototype.slice.call(T))},_a,OBSERVER_WAIT_TIME_MS=300,isNode=typeof process=="object"&&((_a=process.release)===null||_a===void 0?void 0:_a.name)==="node",FetchInstrumentation=(function(S){__extends$2(T,S);function T(A){A===void 0&&(A={});var O=S.call(this,"@opentelemetry/instrumentation-fetch",VERSION,A)||this;return O.component="fetch",O.version=VERSION,O.moduleName=O.component,O._usedResources=new WeakSet,O._tasksCount=0,O}return T.prototype.init=function(){},T.prototype._addChildSpan=function(A,O){var P=this.tracer.startSpan("CORS Preflight",{startTime:O[PerformanceTimingNames.FETCH_START]},trace.setSpan(context.active(),A));addSpanNetworkEvents(P,O,this.getConfig().ignoreNetworkEvents),P.end(O[PerformanceTimingNames.RESPONSE_END])},T.prototype._addFinalSpanAttributes=function(A,O){var P=parseUrl(O.url);A.setAttribute(SEMATTRS_HTTP_STATUS_CODE,O.status),O.statusText!=null&&A.setAttribute(AttributeNames.HTTP_STATUS_TEXT,O.statusText),A.setAttribute(SEMATTRS_HTTP_HOST,P.host),A.setAttribute(SEMATTRS_HTTP_SCHEME,P.protocol.replace(":","")),typeof navigator<"u"&&A.setAttribute(SEMATTRS_HTTP_USER_AGENT,navigator.userAgent)},T.prototype._addHeaders=function(A,O){if(!shouldPropagateTraceHeaders(O,this.getConfig().propagateTraceHeaderCorsUrls)){var P={};propagation.inject(context.active(),P),Object.keys(P).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(A instanceof Request)propagation.inject(context.active(),A.headers,{set:function(R,M,D){return R.set(M,typeof D=="string"?D:String(D))}});else if(A.headers instanceof Headers)propagation.inject(context.active(),A.headers,{set:function(R,M,D){return R.set(M,typeof D=="string"?D:String(D))}});else if(A.headers instanceof Map)propagation.inject(context.active(),A.headers,{set:function(R,M,D){return R.set(M,typeof D=="string"?D:String(D))}});else{var P={};propagation.inject(context.active(),P),A.headers=Object.assign({},P,A.headers||{})}},T.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},T.prototype._createSpan=function(A,O){var P;if(O===void 0&&(O={}),isUrlIgnored(A,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var R=(O.method||"GET").toUpperCase(),M="HTTP "+R;return this.tracer.startSpan(M,{kind:SpanKind.CLIENT,attributes:(P={},P[AttributeNames.COMPONENT]=this.moduleName,P[SEMATTRS_HTTP_METHOD]=R,P[SEMATTRS_HTTP_URL]=A,P)})},T.prototype._findResourceAndAddNetworkEvents=function(A,O,P){var R=O.entries;if(!R.length){if(!performance.getEntriesByType)return;R=performance.getEntriesByType("resource")}var M=getResource(O.spanUrl,O.startTime,P,R,this._usedResources,"fetch");if(M.mainRequest){var D=M.mainRequest;this._markResourceAsUsed(D);var U=M.corsPreFlightRequest;U&&(this._addChildSpan(A,U),this._markResourceAsUsed(U)),addSpanNetworkEvents(A,D,this.getConfig().ignoreNetworkEvents)}},T.prototype._markResourceAsUsed=function(A){this._usedResources.add(A)},T.prototype._endSpan=function(A,O,P){var R=this,M=millisToHrTime(Date.now()),D=hrTime();this._addFinalSpanAttributes(A,P),setTimeout(function(){var U;(U=O.observer)===null||U===void 0||U.disconnect(),R._findResourceAndAddNetworkEvents(A,O,D),R._tasksCount--,R._clearResources(),A.end(M)},OBSERVER_WAIT_TIME_MS)},T.prototype._patchConstructor=function(){var A=this;return function(O){var P=A;return function(){for(var M=[],D=0;D<arguments.length;D++)M[D]=arguments[D];var U=this,C=parseUrl(M[0]instanceof Request?M[0].url:String(M[0])).href,L=M[0]instanceof Request?M[0]:M[1]||{},y=P._createSpan(C,L);if(!y)return O.apply(this,M);var _=P._prepareSpanData(C);P.getConfig().measureRequestSize&&getFetchBodyLength.apply(void 0,__spreadArray([],__read$5(M),!1)).then(function(k){k&&y.setAttribute(SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,k)}).catch(function(k){P._diag.warn("getFetchBodyLength",k)});function N(k,B){P._applyAttributesAfterFetch(k,L,B),P._endSpan(k,_,{status:B.status||0,statusText:B.message,url:C})}function I(k,B){P._applyAttributesAfterFetch(k,L,B),B.status>=200&&B.status<400?P._endSpan(k,_,B):P._endSpan(k,_,{status:B.status,statusText:B.statusText,url:C})}function x(k,B,W){try{var oe=W.clone(),te=W.clone(),fe=oe.body;if(fe){var Fe=fe.getReader(),et=function(){Fe.read().then(function(tt){var lt=tt.done;lt?I(k,te):et()},function(tt){N(k,tt)})};et()}else I(k,W)}finally{B(W)}}function V(k,B,W){try{N(k,W)}finally{B(W)}}return new Promise(function(k,B){return context.with(trace.setSpan(context.active(),y),function(){return P._addHeaders(L,C),P._tasksCount++,O.apply(U,L instanceof Request?[L]:[C,L]).then(x.bind(U,y,k),V.bind(U,y,B))})})}}},T.prototype._applyAttributesAfterFetch=function(A,O,P){var R=this,M=this.getConfig().applyCustomAttributesOnSpan;M&&safeExecuteInTheMiddle(function(){return M(A,O,P)},function(D){D&&R._diag.error("applyCustomAttributesOnSpan",D)})},T.prototype._prepareSpanData=function(A){var O=hrTime(),P=[];if(typeof PerformanceObserver!="function")return{entries:P,startTime:O,spanUrl:A};var R=new PerformanceObserver(function(M){var D=M.getEntries();D.forEach(function(U){U.initiatorType==="fetch"&&U.name===A&&P.push(U)})});return R.observe({entryTypes:["resource"]}),{entries:P,observer:R,startTime:O,spanUrl:A}},T.prototype.enable=function(){if(isNode){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}isWrapped(fetch)&&(this._unwrap(_globalThis$1,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(_globalThis$1,"fetch",this._patchConstructor())},T.prototype.disable=function(){isNode||(this._unwrap(_globalThis$1,"fetch"),this._usedResources=new WeakSet)},T})(InstrumentationBase);const index$3=Object.freeze(Object.defineProperty({__proto__:null,FetchInstrumentation},Symbol.toStringTag,{value:"Module"}));function isListenerObject(S){return S===void 0&&(S={}),typeof S.addEventListener=="function"&&typeof S.removeEventListener=="function"}var ZONE_CONTEXT_KEY="OT_ZONE_CONTEXT",ZoneContextManager=(function(){function S(){this._enabled=!1,this._zoneCounter=0}return S.prototype._activeContextFromZone=function(T){return T&&T.get(ZONE_CONTEXT_KEY)||ROOT_CONTEXT},S.prototype._bindFunction=function(T,A){var O=this,P=function(){for(var R=this,M=[],D=0;D<arguments.length;D++)M[D]=arguments[D];return O.with(T,function(){return A.apply(R,M)})};return Object.defineProperty(P,"length",{enumerable:!1,configurable:!0,writable:!1,value:A.length}),P},S.prototype._bindListener=function(T,A){var O=A;return O.__ot_listeners!==void 0||(O.__ot_listeners={},typeof O.addEventListener=="function"&&(O.addEventListener=this._patchAddEventListener(O,O.addEventListener,T)),typeof O.removeEventListener=="function"&&(O.removeEventListener=this._patchRemoveEventListener(O,O.removeEventListener))),A},S.prototype._createZoneName=function(){this._zoneCounter++;var T=Math.random();return this._zoneCounter+"-"+T},S.prototype._createZone=function(T,A){var O;return Zone.current.fork({name:T,properties:(O={},O[ZONE_CONTEXT_KEY]=A,O)})},S.prototype._getActiveZone=function(){return Zone.current},S.prototype._patchAddEventListener=function(T,A,O){var P=this;return function(R,M,D){T.__ot_listeners===void 0&&(T.__ot_listeners={});var U=T.__ot_listeners[R];U===void 0&&(U=new WeakMap,T.__ot_listeners[R]=U);var C=P.bind(O,M);return U.set(M,C),A.call(this,R,C,D)}},S.prototype._patchRemoveEventListener=function(T,A){return function(O,P){if(T.__ot_listeners===void 0||T.__ot_listeners[O]===void 0)return A.call(this,O,P);var R=T.__ot_listeners[O],M=R.get(P);return R.delete(P),A.call(this,O,M||P)}},S.prototype.active=function(){if(!this._enabled)return ROOT_CONTEXT;var T=this._getActiveZone(),A=this._activeContextFromZone(T);return A||ROOT_CONTEXT},S.prototype.bind=function(T,A){return T===void 0&&(T=this.active()),typeof A=="function"?this._bindFunction(T,A):(isListenerObject(A)&&this._bindListener(T,A),A)},S.prototype.disable=function(){return this._enabled=!1,this},S.prototype.enable=function(){return this._enabled=!0,this},S.prototype.with=function(T,A,O){for(var P=[],R=3;R<arguments.length;R++)P[R-3]=arguments[R];var M=this._createZoneName(),D=this._createZone(M,T);return D.run(A,O,P)},S})(),zone={},hasRequiredZone;function requireZone(){if(hasRequiredZone)return zone;hasRequiredZone=1;/**
|
|
240
240
|
* @license Angular v<unknown>
|
|
241
241
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
242
242
|
* License: MIT
|
|
243
|
-
*/const S=globalThis;function T(G){return(S.__Zone_symbol_prefix||"__zone_symbol__")+G}function A(){const G=S.performance;function H(ge){G&&G.mark&&G.mark(ge)}function q(ge,j){G&&G.measure&&G.measure(ge,j)}H("Zone");class F{static __symbol__=T;static assertZonePatched(){if(S.Promise!==Ae.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let j=F.current;for(;j.parent;)j=j.parent;return j}static get current(){return pe.zone}static get currentTask(){return he}static __load_patch(j,K,Y=!1){if(Ae.hasOwnProperty(j)){const ae=S[T("forceDuplicateZoneCheck")]===!0;if(!Y&&ae)throw Error("Already loaded patch: "+j)}else if(!S["__Zone_disable_"+j]){const ae="Zone:"+j;H(ae),Ae[j]=K(S,F,Te),q(ae,ae)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(j,K){this._parent=j,this._name=K?K.name||"unnamed":"<root>",this._properties=K&&K.properties||{},this._zoneDelegate=new J(this,this._parent&&this._parent._zoneDelegate,K)}get(j){const K=this.getZoneWith(j);if(K)return K._properties[j]}getZoneWith(j){let K=this;for(;K;){if(K._properties.hasOwnProperty(j))return K;K=K._parent}return null}fork(j){if(!j)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,j)}wrap(j,K){if(typeof j!="function")throw new Error("Expecting function got: "+j);const Y=this._zoneDelegate.intercept(this,j,K),ae=this;return function(){return ae.runGuarded(Y,this,arguments,K)}}run(j,K,Y,ae){pe={parent:pe,zone:this};try{return this._zoneDelegate.invoke(this,j,K,Y,ae)}finally{pe=pe.parent}}runGuarded(j,K=null,Y,ae){pe={parent:pe,zone:this};try{try{return this._zoneDelegate.invoke(this,j,K,Y,ae)}catch(Ie){if(this._zoneDelegate.handleError(this,Ie))throw Ie}}finally{pe=pe.parent}}runTask(j,K,Y){if(j.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(j.zone||Ge).name+"; Execution: "+this.name+")");const ae=j,{type:Ie,data:{isPeriodic:Ke=!1,isRefreshable:Ne=!1}={}}=j;if(j.state===Ve&&(Ie===we||Ie===ce))return;const tt=j.state!=Re;tt&&ae._transitionTo(Re,ee);const nt=he;he=ae,pe={parent:pe,zone:this};try{Ie==ce&&j.data&&!Ke&&!Ne&&(j.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ae,K,Y)}catch(je){if(this._zoneDelegate.handleError(this,je))throw je}}finally{const je=j.state;if(je!==Ve&&je!==ke)if(Ie==we||Ke||Ne&&je===_e)tt&&ae._transitionTo(ee,Re,_e);else{const at=ae._zoneDelegates;this._updateTaskCount(ae,-1),tt&&ae._transitionTo(Ve,Re,Ve),Ne&&(ae._zoneDelegates=at)}pe=pe.parent,he=nt}}scheduleTask(j){if(j.zone&&j.zone!==this){let Y=this;for(;Y;){if(Y===j.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${j.zone.name}`);Y=Y.parent}}j._transitionTo(_e,Ve);const K=[];j._zoneDelegates=K,j._zone=this;try{j=this._zoneDelegate.scheduleTask(this,j)}catch(Y){throw j._transitionTo(ke,_e,Ve),this._zoneDelegate.handleError(this,Y),Y}return j._zoneDelegates===K&&this._updateTaskCount(j,1),j.state==_e&&j._transitionTo(ee,_e),j}scheduleMicroTask(j,K,Y,ae){return this.scheduleTask(new se(Le,j,K,Y,ae,void 0))}scheduleMacroTask(j,K,Y,ae,Ie){return this.scheduleTask(new se(ce,j,K,Y,ae,Ie))}scheduleEventTask(j,K,Y,ae,Ie){return this.scheduleTask(new se(we,j,K,Y,ae,Ie))}cancelTask(j){if(j.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(j.zone||Ge).name+"; Execution: "+this.name+")");if(!(j.state!==ee&&j.state!==Re)){j._transitionTo(Me,ee,Re);try{this._zoneDelegate.cancelTask(this,j)}catch(K){throw j._transitionTo(ke,Me),this._zoneDelegate.handleError(this,K),K}return this._updateTaskCount(j,-1),j._transitionTo(Ve,Me),j.runCount=-1,j}}_updateTaskCount(j,K){const Y=j._zoneDelegates;K==-1&&(j._zoneDelegates=null);for(let ae=0;ae<Y.length;ae++)Y[ae]._updateTaskCount(j.type,K)}}const Z={name:"",onHasTask:(ge,j,K,Y)=>ge.hasTask(K,Y),onScheduleTask:(ge,j,K,Y)=>ge.scheduleTask(K,Y),onInvokeTask:(ge,j,K,Y,ae,Ie)=>ge.invokeTask(K,Y,ae,Ie),onCancelTask:(ge,j,K,Y)=>ge.cancelTask(K,Y)};class J{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(j,K,Y){this._zone=j,this._parentDelegate=K,this._forkZS=Y&&(Y&&Y.onFork?Y:K._forkZS),this._forkDlgt=Y&&(Y.onFork?K:K._forkDlgt),this._forkCurrZone=Y&&(Y.onFork?this._zone:K._forkCurrZone),this._interceptZS=Y&&(Y.onIntercept?Y:K._interceptZS),this._interceptDlgt=Y&&(Y.onIntercept?K:K._interceptDlgt),this._interceptCurrZone=Y&&(Y.onIntercept?this._zone:K._interceptCurrZone),this._invokeZS=Y&&(Y.onInvoke?Y:K._invokeZS),this._invokeDlgt=Y&&(Y.onInvoke?K:K._invokeDlgt),this._invokeCurrZone=Y&&(Y.onInvoke?this._zone:K._invokeCurrZone),this._handleErrorZS=Y&&(Y.onHandleError?Y:K._handleErrorZS),this._handleErrorDlgt=Y&&(Y.onHandleError?K:K._handleErrorDlgt),this._handleErrorCurrZone=Y&&(Y.onHandleError?this._zone:K._handleErrorCurrZone),this._scheduleTaskZS=Y&&(Y.onScheduleTask?Y:K._scheduleTaskZS),this._scheduleTaskDlgt=Y&&(Y.onScheduleTask?K:K._scheduleTaskDlgt),this._scheduleTaskCurrZone=Y&&(Y.onScheduleTask?this._zone:K._scheduleTaskCurrZone),this._invokeTaskZS=Y&&(Y.onInvokeTask?Y:K._invokeTaskZS),this._invokeTaskDlgt=Y&&(Y.onInvokeTask?K:K._invokeTaskDlgt),this._invokeTaskCurrZone=Y&&(Y.onInvokeTask?this._zone:K._invokeTaskCurrZone),this._cancelTaskZS=Y&&(Y.onCancelTask?Y:K._cancelTaskZS),this._cancelTaskDlgt=Y&&(Y.onCancelTask?K:K._cancelTaskDlgt),this._cancelTaskCurrZone=Y&&(Y.onCancelTask?this._zone:K._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const ae=Y&&Y.onHasTask,Ie=K&&K._hasTaskZS;(ae||Ie)&&(this._hasTaskZS=ae?Y:Z,this._hasTaskDlgt=K,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,Y.onScheduleTask||(this._scheduleTaskZS=Z,this._scheduleTaskDlgt=K,this._scheduleTaskCurrZone=this._zone),Y.onInvokeTask||(this._invokeTaskZS=Z,this._invokeTaskDlgt=K,this._invokeTaskCurrZone=this._zone),Y.onCancelTask||(this._cancelTaskZS=Z,this._cancelTaskDlgt=K,this._cancelTaskCurrZone=this._zone))}fork(j,K){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,j,K):new F(j,K)}intercept(j,K,Y){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,j,K,Y):K}invoke(j,K,Y,ae,Ie){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,j,K,Y,ae,Ie):K.apply(Y,ae)}handleError(j,K){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,j,K):!0}scheduleTask(j,K){let Y=K;if(this._scheduleTaskZS)this._hasTaskZS&&Y._zoneDelegates.push(this._hasTaskDlgtOwner),Y=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,j,K),Y||(Y=K);else if(K.scheduleFn)K.scheduleFn(K);else if(K.type==Le)Ue(K);else throw new Error("Task is missing scheduleFn.");return Y}invokeTask(j,K,Y,ae){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,j,K,Y,ae):K.callback.apply(Y,ae)}cancelTask(j,K){let Y;if(this._cancelTaskZS)Y=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,j,K);else{if(!K.cancelFn)throw Error("Task is not cancelable");Y=K.cancelFn(K)}return Y}hasTask(j,K){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,j,K)}catch(Y){this.handleError(j,Y)}}_updateTaskCount(j,K){const Y=this._taskCounts,ae=Y[j],Ie=Y[j]=ae+K;if(Ie<0)throw new Error("More tasks executed then were scheduled.");if(ae==0||Ie==0){const Ke={microTask:Y.microTask>0,macroTask:Y.macroTask>0,eventTask:Y.eventTask>0,change:j};this.hasTask(this._zone,Ke)}}}class se{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(j,K,Y,ae,Ie,Ke){if(this.type=j,this.source=K,this.data=ae,this.scheduleFn=Ie,this.cancelFn=Ke,!Y)throw new Error("callback is not defined");this.callback=Y;const Ne=this;j===we&&ae&&ae.useG?this.invoke=se.invokeTask:this.invoke=function(){return se.invokeTask.call(S,Ne,this,arguments)}}static invokeTask(j,K,Y){j||(j=this),He++;try{return j.runCount++,j.zone.runTask(j,K,Y)}finally{He==1&&Be(),He--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ve,_e)}_transitionTo(j,K,Y){if(this._state===K||this._state===Y)this._state=j,j==Ve&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${j}', expecting state '${K}'${Y?" or '"+Y+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const ie=T("setTimeout"),ue=T("Promise"),ye=T("then");let ne=[],Ee=!1,Pe;function Ce(ge){if(Pe||S[ue]&&(Pe=S[ue].resolve(0)),Pe){let j=Pe[ye];j||(j=Pe.then),j.call(Pe,ge)}else S[ie](ge,0)}function Ue(ge){He===0&&ne.length===0&&Ce(Be),ge&&ne.push(ge)}function Be(){if(!Ee){for(Ee=!0;ne.length;){const ge=ne;ne=[];for(let j=0;j<ge.length;j++){const K=ge[j];try{K.zone.runTask(K,null,null)}catch(Y){Te.onUnhandledError(Y)}}}Te.microtaskDrainDone(),Ee=!1}}const Ge={name:"NO ZONE"},Ve="notScheduled",_e="scheduling",ee="scheduled",Re="running",Me="canceling",ke="unknown",Le="microTask",ce="macroTask",we="eventTask",Ae={},Te={symbol:T,currentZoneFrame:()=>pe,onUnhandledError:xe,microtaskDrainDone:xe,scheduleMicroTask:Ue,showUncaughtError:()=>!F[T("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:xe,patchMethod:()=>xe,bindArguments:()=>[],patchThen:()=>xe,patchMacroTask:()=>xe,patchEventPrototype:()=>xe,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>xe,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>xe,wrapWithCurrentZone:()=>xe,filterProperties:()=>[],attachOriginToPatched:()=>xe,_redefineProperty:()=>xe,patchCallbacks:()=>xe,nativeScheduleMicroTask:Ce};let pe={parent:null,zone:new F(null,null)},he=null,He=0;function xe(){}return q("Zone","Zone"),F}function O(){const G=globalThis,H=G[T("forceDuplicateZoneCheck")]===!0;if(G.Zone&&(H||typeof G.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return G.Zone??=A(),G.Zone}const P=Object.getOwnPropertyDescriptor,R=Object.defineProperty,M=Object.getPrototypeOf,D=Object.create,U=Array.prototype.slice,C="addEventListener",L="removeEventListener",y=T(C),_=T(L),N="true",I="false",x=T("");function V(G,H){return Zone.current.wrap(G,H)}function k(G,H,q,F,Z){return Zone.current.scheduleMacroTask(G,H,q,F,Z)}const B=T,W=typeof window<"u",oe=W?window:void 0,te=W&&oe||globalThis,fe="removeAttribute";function Fe(G,H){for(let q=G.length-1;q>=0;q--)typeof G[q]=="function"&&(G[q]=V(G[q],H+"_"+q));return G}function ot(G,H){const q=G.constructor.name;for(let F=0;F<H.length;F++){const Z=H[F],J=G[Z];if(J){const se=P(G,Z);if(!et(se))continue;G[Z]=(ie=>{const ue=function(){return ie.apply(this,Fe(arguments,q+"."+Z))};return Qe(ue,ie),ue})(J)}}}function et(G){return G?G.writable===!1?!1:!(typeof G.get=="function"&&typeof G.set>"u"):!0}const lt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,pt=!("nw"in te)&&typeof te.process<"u"&&te.process.toString()==="[object process]",St=!pt&&!lt&&!!(W&&oe.HTMLElement),vt=typeof te.process<"u"&&te.process.toString()==="[object process]"&&!lt&&!!(W&&oe.HTMLElement),ft={},Ht=B("enable_beforeunload"),Ot=function(G){if(G=G||te.event,!G)return;let H=ft[G.type];H||(H=ft[G.type]=B("ON_PROPERTY"+G.type));const q=this||G.target||te,F=q[H];let Z;if(St&&q===oe&&G.type==="error"){const J=G;Z=F&&F.call(this,J.message,J.filename,J.lineno,J.colno,J.error),Z===!0&&G.preventDefault()}else Z=F&&F.apply(this,arguments),G.type==="beforeunload"&&te[Ht]&&typeof Z=="string"?G.returnValue=Z:Z!=null&&!Z&&G.preventDefault();return Z};function Pt(G,H,q){let F=P(G,H);if(!F&&q&&P(q,H)&&(F={enumerable:!0,configurable:!0}),!F||!F.configurable)return;const Z=B("on"+H+"patched");if(G.hasOwnProperty(Z)&&G[Z])return;delete F.writable,delete F.value;const J=F.get,se=F.set,ie=H.slice(2);let ue=ft[ie];ue||(ue=ft[ie]=B("ON_PROPERTY"+ie)),F.set=function(ye){let ne=this;if(!ne&&G===te&&(ne=te),!ne)return;typeof ne[ue]=="function"&&ne.removeEventListener(ie,Ot),se?.call(ne,null),ne[ue]=ye,typeof ye=="function"&&ne.addEventListener(ie,Ot,!1)},F.get=function(){let ye=this;if(!ye&&G===te&&(ye=te),!ye)return null;const ne=ye[ue];if(ne)return ne;if(J){let Ee=J.call(this);if(Ee)return F.set.call(this,Ee),typeof ye[fe]=="function"&&ye.removeAttribute(H),Ee}return null},R(G,H,F),G[Z]=!0}function gt(G,H,q){if(H)for(let F=0;F<H.length;F++)Pt(G,"on"+H[F],q);else{const F=[];for(const Z in G)Z.slice(0,2)=="on"&&F.push(Z);for(let Z=0;Z<F.length;Z++)Pt(G,F[Z],q)}}const qe=B("originalInstance");function ut(G){const H=te[G];if(!H)return;te[B(G)]=H,te[G]=function(){const Z=Fe(arguments,G);switch(Z.length){case 0:this[qe]=new H;break;case 1:this[qe]=new H(Z[0]);break;case 2:this[qe]=new H(Z[0],Z[1]);break;case 3:this[qe]=new H(Z[0],Z[1],Z[2]);break;case 4:this[qe]=new H(Z[0],Z[1],Z[2],Z[3]);break;default:throw new Error("Arg list too long.")}},Qe(te[G],H);const q=new H(function(){});let F;for(F in q)G==="XMLHttpRequest"&&F==="responseBlob"||(function(Z){typeof q[Z]=="function"?te[G].prototype[Z]=function(){return this[qe][Z].apply(this[qe],arguments)}:R(te[G].prototype,Z,{set:function(J){typeof J=="function"?(this[qe][Z]=V(J,G+"."+Z),Qe(this[qe][Z],J)):this[qe][Z]=J},get:function(){return this[qe][Z]}})})(F);for(F in H)F!=="prototype"&&H.hasOwnProperty(F)&&(te[G][F]=H[F])}function Je(G,H,q){let F=G;for(;F&&!F.hasOwnProperty(H);)F=M(F);!F&&G[H]&&(F=G);const Z=B(H);let J=null;if(F&&(!(J=F[Z])||!F.hasOwnProperty(Z))){J=F[Z]=F[H];const se=F&&P(F,H);if(et(se)){const ie=q(J,Z,H);F[H]=function(){return ie(this,arguments)},Qe(F[H],J)}}return J}function Yt(G,H,q){let F=null;function Z(J){const se=J.data;return se.args[se.cbIdx]=function(){J.invoke.apply(this,arguments)},F.apply(se.target,se.args),J}F=Je(G,H,J=>function(se,ie){const ue=q(se,ie);return ue.cbIdx>=0&&typeof ie[ue.cbIdx]=="function"?k(ue.name,ie[ue.cbIdx],ue,Z):J.apply(se,ie)})}function Qe(G,H){G[B("OriginalDelegate")]=H}let Nt=!1,yt=!1;function $t(){if(Nt)return yt;Nt=!0;try{const G=oe.navigator.userAgent;(G.indexOf("MSIE ")!==-1||G.indexOf("Trident/")!==-1||G.indexOf("Edge/")!==-1)&&(yt=!0)}catch{}return yt}function Rt(G){return typeof G=="function"}function Ct(G){return typeof G=="number"}const jt={useG:!0},Ze={},Mt={},It=new RegExp("^"+x+"(\\w+)(true|false)$"),Lt=B("propagationStopped");function bt(G,H){const q=(H?H(G):G)+I,F=(H?H(G):G)+N,Z=x+q,J=x+F;Ze[G]={},Ze[G][I]=Z,Ze[G][N]=J}function Kt(G,H,q,F){const Z=F&&F.add||C,J=F&&F.rm||L,se=F&&F.listeners||"eventListeners",ie=F&&F.rmAll||"removeAllListeners",ue=B(Z),ye="."+Z+":",ne="prependListener",Ee="."+ne+":",Pe=function(_e,ee,Re){if(_e.isRemoved)return;const Me=_e.callback;typeof Me=="object"&&Me.handleEvent&&(_e.callback=ce=>Me.handleEvent(ce),_e.originalDelegate=Me);let ke;try{_e.invoke(_e,ee,[Re])}catch(ce){ke=ce}const Le=_e.options;if(Le&&typeof Le=="object"&&Le.once){const ce=_e.originalDelegate?_e.originalDelegate:_e.callback;ee[J].call(ee,Re.type,ce,Le)}return ke};function Ce(_e,ee,Re){if(ee=ee||G.event,!ee)return;const Me=_e||ee.target||G,ke=Me[Ze[ee.type][Re?N:I]];if(ke){const Le=[];if(ke.length===1){const ce=Pe(ke[0],Me,ee);ce&&Le.push(ce)}else{const ce=ke.slice();for(let we=0;we<ce.length&&!(ee&&ee[Lt]===!0);we++){const Ae=Pe(ce[we],Me,ee);Ae&&Le.push(Ae)}}if(Le.length===1)throw Le[0];for(let ce=0;ce<Le.length;ce++){const we=Le[ce];H.nativeScheduleMicroTask(()=>{throw we})}}}const Ue=function(_e){return Ce(this,_e,!1)},Be=function(_e){return Ce(this,_e,!0)};function Ge(_e,ee){if(!_e)return!1;let Re=!0;ee&&ee.useG!==void 0&&(Re=ee.useG);const Me=ee&&ee.vh;let ke=!0;ee&&ee.chkDup!==void 0&&(ke=ee.chkDup);let Le=!1;ee&&ee.rt!==void 0&&(Le=ee.rt);let ce=_e;for(;ce&&!ce.hasOwnProperty(Z);)ce=M(ce);if(!ce&&_e[Z]&&(ce=_e),!ce||ce[ue])return!1;const we=ee&&ee.eventNameToString,Ae={},Te=ce[ue]=ce[Z],pe=ce[B(J)]=ce[J],he=ce[B(se)]=ce[se],He=ce[B(ie)]=ce[ie];let xe;ee&&ee.prepend&&(xe=ce[B(ee.prepend)]=ce[ee.prepend]);function ge($,X){return X?typeof $=="boolean"?{capture:$,passive:!0}:$?typeof $=="object"&&$.passive!==!1?{...$,passive:!0}:$:{passive:!0}:$}const j=function($){if(!Ae.isExisting)return Te.call(Ae.target,Ae.eventName,Ae.capture?Be:Ue,Ae.options)},K=function($){if(!$.isRemoved){const X=Ze[$.eventName];let de;X&&(de=X[$.capture?N:I]);const Se=de&&$.target[de];if(Se){for(let le=0;le<Se.length;le++)if(Se[le]===$){Se.splice(le,1),$.isRemoved=!0,$.removeAbortListener&&($.removeAbortListener(),$.removeAbortListener=null),Se.length===0&&($.allRemoved=!0,$.target[de]=null);break}}}if($.allRemoved)return pe.call($.target,$.eventName,$.capture?Be:Ue,$.options)},Y=function($){return Te.call(Ae.target,Ae.eventName,$.invoke,Ae.options)},ae=function($){return xe.call(Ae.target,Ae.eventName,$.invoke,Ae.options)},Ie=function($){return pe.call($.target,$.eventName,$.invoke,$.options)},Ke=Re?j:Y,Ne=Re?K:Ie,tt=function($,X){const de=typeof X;return de==="function"&&$.callback===X||de==="object"&&$.originalDelegate===X},nt=ee?.diff||tt,je=Zone[B("UNPATCHED_EVENTS")],at=G[B("PASSIVE_EVENTS")];function Q($){if(typeof $=="object"&&$!==null){const X={...$};return $.signal&&(X.signal=$.signal),X}return $}const z=function($,X,de,Se,le=!1,me=!1){return function(){const ve=this||G;let Oe=arguments[0];ee&&ee.transferEventName&&(Oe=ee.transferEventName(Oe));let be=arguments[1];if(!be)return $.apply(this,arguments);if(pt&&Oe==="uncaughtException")return $.apply(this,arguments);let De=!1;if(typeof be!="function"){if(!be.handleEvent)return $.apply(this,arguments);De=!0}if(Me&&!Me($,be,ve,arguments))return;const rt=!!at&&at.indexOf(Oe)!==-1,ze=Q(ge(arguments[2],rt)),st=ze?.signal;if(st?.aborted)return;if(je){for(let Xe=0;Xe<je.length;Xe++)if(Oe===je[Xe])return rt?$.call(ve,Oe,be,ze):$.apply(this,arguments)}const At=ze?typeof ze=="boolean"?!0:ze.capture:!1,Vt=ze&&typeof ze=="object"?ze.once:!1,ir=Zone.current;let mt=Ze[Oe];mt||(bt(Oe,we),mt=Ze[Oe]);const kt=mt[At?N:I];let ct=ve[kt],Ft=!1;if(ct){if(Ft=!0,ke){for(let Xe=0;Xe<ct.length;Xe++)if(nt(ct[Xe],be))return}}else ct=ve[kt]=[];let Tt;const Bt=ve.constructor.name,Gt=Mt[Bt];Gt&&(Tt=Gt[Oe]),Tt||(Tt=Bt+X+(we?we(Oe):Oe)),Ae.options=ze,Vt&&(Ae.options.once=!1),Ae.target=ve,Ae.capture=At,Ae.eventName=Oe,Ae.isExisting=Ft;const _t=Re?jt:void 0;_t&&(_t.taskData=Ae),st&&(Ae.options.signal=void 0);const We=ir.scheduleEventTask(Tt,be,_t,de,Se);if(st){Ae.options.signal=st;const Xe=()=>We.zone.cancelTask(We);$.call(st,"abort",Xe,{once:!0}),We.removeAbortListener=()=>st.removeEventListener("abort",Xe)}if(Ae.target=null,_t&&(_t.taskData=null),Vt&&(Ae.options.once=!0),typeof We.options!="boolean"&&(We.options=ze),We.target=ve,We.capture=At,We.eventName=Oe,De&&(We.originalDelegate=be),me?ct.unshift(We):ct.push(We),le)return ve}};return ce[Z]=z(Te,ye,Ke,Ne,Le),xe&&(ce[ne]=z(xe,Ee,ae,Ne,Le,!0)),ce[J]=function(){const $=this||G;let X=arguments[0];ee&&ee.transferEventName&&(X=ee.transferEventName(X));const de=arguments[2],Se=de?typeof de=="boolean"?!0:de.capture:!1,le=arguments[1];if(!le)return pe.apply(this,arguments);if(Me&&!Me(pe,le,$,arguments))return;const me=Ze[X];let ve;me&&(ve=me[Se?N:I]);const Oe=ve&&$[ve];if(Oe)for(let be=0;be<Oe.length;be++){const De=Oe[be];if(nt(De,le)){if(Oe.splice(be,1),De.isRemoved=!0,Oe.length===0&&(De.allRemoved=!0,$[ve]=null,!Se&&typeof X=="string")){const rt=x+"ON_PROPERTY"+X;$[rt]=null}return De.zone.cancelTask(De),Le?$:void 0}}return pe.apply(this,arguments)},ce[se]=function(){const $=this||G;let X=arguments[0];ee&&ee.transferEventName&&(X=ee.transferEventName(X));const de=[],Se=Dt($,we?we(X):X);for(let le=0;le<Se.length;le++){const me=Se[le];let ve=me.originalDelegate?me.originalDelegate:me.callback;de.push(ve)}return de},ce[ie]=function(){const $=this||G;let X=arguments[0];if(X){ee&&ee.transferEventName&&(X=ee.transferEventName(X));const de=Ze[X];if(de){const Se=de[I],le=de[N],me=$[Se],ve=$[le];if(me){const Oe=me.slice();for(let be=0;be<Oe.length;be++){const De=Oe[be];let rt=De.originalDelegate?De.originalDelegate:De.callback;this[J].call(this,X,rt,De.options)}}if(ve){const Oe=ve.slice();for(let be=0;be<Oe.length;be++){const De=Oe[be];let rt=De.originalDelegate?De.originalDelegate:De.callback;this[J].call(this,X,rt,De.options)}}}}else{const de=Object.keys($);for(let Se=0;Se<de.length;Se++){const le=de[Se],me=It.exec(le);let ve=me&&me[1];ve&&ve!=="removeListener"&&this[ie].call(this,ve)}this[ie].call(this,"removeListener")}if(Le)return this},Qe(ce[Z],Te),Qe(ce[J],pe),He&&Qe(ce[ie],He),he&&Qe(ce[se],he),!0}let Ve=[];for(let _e=0;_e<q.length;_e++)Ve[_e]=Ge(q[_e],F);return Ve}function Dt(G,H){if(!H){const J=[];for(let se in G){const ie=It.exec(se);let ue=ie&&ie[1];if(ue&&(!H||ue===H)){const ye=G[se];if(ye)for(let ne=0;ne<ye.length;ne++)J.push(ye[ne])}}return J}let q=Ze[H];q||(bt(H),q=Ze[H]);const F=G[q[I]],Z=G[q[N]];return F?Z?F.concat(Z):F.slice():Z?Z.slice():[]}function Zt(G,H){const q=G.Event;q&&q.prototype&&H.patchMethod(q.prototype,"stopImmediatePropagation",F=>function(Z,J){Z[Lt]=!0,F&&F.apply(Z,J)})}function qt(G,H){H.patchMethod(G,"queueMicrotask",q=>function(F,Z){Zone.current.scheduleMicroTask("queueMicrotask",Z[0])})}const Et=B("zoneTask");function it(G,H,q,F){let Z=null,J=null;H+=F,q+=F;const se={};function ie(ye){const ne=ye.data;ne.args[0]=function(){return ye.invoke.apply(this,arguments)};const Ee=Z.apply(G,ne.args);return Ct(Ee)?ne.handleId=Ee:(ne.handle=Ee,ne.isRefreshable=Rt(Ee.refresh)),ye}function ue(ye){const{handle:ne,handleId:Ee}=ye.data;return J.call(G,ne??Ee)}Z=Je(G,H,ye=>function(ne,Ee){if(Rt(Ee[0])){const Pe={isRefreshable:!1,isPeriodic:F==="Interval",delay:F==="Timeout"||F==="Interval"?Ee[1]||0:void 0,args:Ee},Ce=Ee[0];Ee[0]=function(){try{return Ce.apply(this,arguments)}finally{const{handle:Re,handleId:Me,isPeriodic:ke,isRefreshable:Le}=Pe;!ke&&!Le&&(Me?delete se[Me]:Re&&(Re[Et]=null))}};const Ue=k(H,Ee[0],Pe,ie,ue);if(!Ue)return Ue;const{handleId:Be,handle:Ge,isRefreshable:Ve,isPeriodic:_e}=Ue.data;if(Be)se[Be]=Ue;else if(Ge&&(Ge[Et]=Ue,Ve&&!_e)){const ee=Ge.refresh;Ge.refresh=function(){const{zone:Re,state:Me}=Ue;return Me==="notScheduled"?(Ue._state="scheduled",Re._updateTaskCount(Ue,1)):Me==="running"&&(Ue._state="scheduling"),ee.call(this)}}return Ge??Be??Ue}else return ye.apply(G,Ee)}),J=Je(G,q,ye=>function(ne,Ee){const Pe=Ee[0];let Ce;Ct(Pe)?(Ce=se[Pe],delete se[Pe]):(Ce=Pe?.[Et],Ce?Pe[Et]=null:Ce=Pe),Ce?.type?Ce.cancelFn&&Ce.zone.cancelTask(Ce):ye.apply(G,Ee)})}function Wt(G,H){const{isBrowser:q,isMix:F}=H.getGlobalObjects();if(!q&&!F||!G.customElements||!("customElements"in G))return;const Z=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];H.patchCallbacks(H,G.customElements,"customElements","define",Z)}function zt(G,H){if(Zone[H.symbol("patchEventTarget")])return;const{eventNames:q,zoneSymbolEventNames:F,TRUE_STR:Z,FALSE_STR:J,ZONE_SYMBOL_PREFIX:se}=H.getGlobalObjects();for(let ue=0;ue<q.length;ue++){const ye=q[ue],ne=ye+J,Ee=ye+Z,Pe=se+ne,Ce=se+Ee;F[ye]={},F[ye][J]=Pe,F[ye][Z]=Ce}const ie=G.EventTarget;if(!(!ie||!ie.prototype))return H.patchEventTarget(G,H,[ie&&ie.prototype]),!0}function Xt(G,H){H.patchEventPrototype(G,H)}function Ut(G,H,q){if(!q||q.length===0)return H;const F=q.filter(J=>J.target===G);if(F.length===0)return H;const Z=F[0].ignoreProperties;return H.filter(J=>Z.indexOf(J)===-1)}function wt(G,H,q,F){if(!G)return;const Z=Ut(G,H,q);gt(G,Z,F)}function ht(G){return Object.getOwnPropertyNames(G).filter(H=>H.startsWith("on")&&H.length>2).map(H=>H.substring(2))}function Jt(G,H){if(pt&&!vt||Zone[G.symbol("patchEvents")])return;const q=H.__Zone_ignore_on_properties;let F=[];if(St){const Z=window;F=F.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const J=[];wt(Z,ht(Z),q&&q.concat(J),M(Z))}F=F.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let Z=0;Z<F.length;Z++){const J=H[F[Z]];J?.prototype&&wt(J.prototype,ht(J.prototype),q)}}function Qt(G){G.__load_patch("legacy",H=>{const q=H[G.__symbol__("legacyPatch")];q&&q()}),G.__load_patch("timers",H=>{const F="clear";it(H,"set",F,"Timeout"),it(H,"set",F,"Interval"),it(H,"set",F,"Immediate")}),G.__load_patch("requestAnimationFrame",H=>{it(H,"request","cancel","AnimationFrame"),it(H,"mozRequest","mozCancel","AnimationFrame"),it(H,"webkitRequest","webkitCancel","AnimationFrame")}),G.__load_patch("blocking",(H,q)=>{const F=["alert","prompt","confirm"];for(let Z=0;Z<F.length;Z++){const J=F[Z];Je(H,J,(se,ie,ue)=>function(ye,ne){return q.current.run(se,H,ne,ue)})}}),G.__load_patch("EventTarget",(H,q,F)=>{Xt(H,F),zt(H,F);const Z=H.XMLHttpRequestEventTarget;Z&&Z.prototype&&F.patchEventTarget(H,F,[Z.prototype])}),G.__load_patch("MutationObserver",(H,q,F)=>{ut("MutationObserver"),ut("WebKitMutationObserver")}),G.__load_patch("IntersectionObserver",(H,q,F)=>{ut("IntersectionObserver")}),G.__load_patch("FileReader",(H,q,F)=>{ut("FileReader")}),G.__load_patch("on_property",(H,q,F)=>{Jt(F,H)}),G.__load_patch("customElements",(H,q,F)=>{Wt(H,F)}),G.__load_patch("XHR",(H,q)=>{ye(H);const F=B("xhrTask"),Z=B("xhrSync"),J=B("xhrListener"),se=B("xhrScheduled"),ie=B("xhrURL"),ue=B("xhrErrorBeforeScheduled");function ye(ne){const Ee=ne.XMLHttpRequest;if(!Ee)return;const Pe=Ee.prototype;function Ce(Te){return Te[F]}let Ue=Pe[y],Be=Pe[_];if(!Ue){const Te=ne.XMLHttpRequestEventTarget;if(Te){const pe=Te.prototype;Ue=pe[y],Be=pe[_]}}const Ge="readystatechange",Ve="scheduled";function _e(Te){const pe=Te.data,he=pe.target;he[se]=!1,he[ue]=!1;const He=he[J];Ue||(Ue=he[y],Be=he[_]),He&&Be.call(he,Ge,He);const xe=he[J]=()=>{if(he.readyState===he.DONE)if(!pe.aborted&&he[se]&&Te.state===Ve){const j=he[q.__symbol__("loadfalse")];if(he.status!==0&&j&&j.length>0){const K=Te.invoke;Te.invoke=function(){const Y=he[q.__symbol__("loadfalse")];for(let ae=0;ae<Y.length;ae++)Y[ae]===Te&&Y.splice(ae,1);!pe.aborted&&Te.state===Ve&&K.call(Te)},j.push(Te)}else Te.invoke()}else!pe.aborted&&he[se]===!1&&(he[ue]=!0)};return Ue.call(he,Ge,xe),he[F]||(he[F]=Te),we.apply(he,pe.args),he[se]=!0,Te}function ee(){}function Re(Te){const pe=Te.data;return pe.aborted=!0,Ae.apply(pe.target,pe.args)}const Me=Je(Pe,"open",()=>function(Te,pe){return Te[Z]=pe[2]==!1,Te[ie]=pe[1],Me.apply(Te,pe)}),ke="XMLHttpRequest.send",Le=B("fetchTaskAborting"),ce=B("fetchTaskScheduling"),we=Je(Pe,"send",()=>function(Te,pe){if(q.current[ce]===!0||Te[Z])return we.apply(Te,pe);{const he={target:Te,url:Te[ie],isPeriodic:!1,args:pe,aborted:!1},He=k(ke,ee,he,_e,Re);Te&&Te[ue]===!0&&!he.aborted&&He.state===Ve&&He.invoke()}}),Ae=Je(Pe,"abort",()=>function(Te,pe){const he=Ce(Te);if(he&&typeof he.type=="string"){if(he.cancelFn==null||he.data&&he.data.aborted)return;he.zone.cancelTask(he)}else if(q.current[Le]===!0)return Ae.apply(Te,pe)})}}),G.__load_patch("geolocation",H=>{H.navigator&&H.navigator.geolocation&&ot(H.navigator.geolocation,["getCurrentPosition","watchPosition"])}),G.__load_patch("PromiseRejectionEvent",(H,q)=>{function F(Z){return function(J){Dt(H,Z).forEach(ie=>{const ue=H.PromiseRejectionEvent;if(ue){const ye=new ue(Z,{promise:J.promise,reason:J.rejection});ie.invoke(ye)}})}}H.PromiseRejectionEvent&&(q[B("unhandledPromiseRejectionHandler")]=F("unhandledrejection"),q[B("rejectionHandledHandler")]=F("rejectionhandled"))}),G.__load_patch("queueMicrotask",(H,q,F)=>{qt(H,F)})}function er(G){G.__load_patch("ZoneAwarePromise",(H,q,F)=>{const Z=Object.getOwnPropertyDescriptor,J=Object.defineProperty;function se(Q){if(Q&&Q.toString===Object.prototype.toString){const z=Q.constructor&&Q.constructor.name;return(z||"")+": "+JSON.stringify(Q)}return Q?Q.toString():Object.prototype.toString.call(Q)}const ie=F.symbol,ue=[],ye=H[ie("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,ne=ie("Promise"),Ee=ie("then"),Pe="__creationTrace__";F.onUnhandledError=Q=>{if(F.showUncaughtError()){const z=Q&&Q.rejection;z?console.error("Unhandled Promise rejection:",z instanceof Error?z.message:z,"; Zone:",Q.zone.name,"; Task:",Q.task&&Q.task.source,"; Value:",z,z instanceof Error?z.stack:void 0):console.error(Q)}},F.microtaskDrainDone=()=>{for(;ue.length;){const Q=ue.shift();try{Q.zone.runGuarded(()=>{throw Q.throwOriginal?Q.rejection:Q})}catch(z){Ue(z)}}};const Ce=ie("unhandledPromiseRejectionHandler");function Ue(Q){F.onUnhandledError(Q);try{const z=q[Ce];typeof z=="function"&&z.call(this,Q)}catch{}}function Be(Q){return Q&&typeof Q.then=="function"}function Ge(Q){return Q}function Ve(Q){return Ne.reject(Q)}const _e=ie("state"),ee=ie("value"),Re=ie("finally"),Me=ie("parentPromiseValue"),ke=ie("parentPromiseState"),Le="Promise.then",ce=null,we=!0,Ae=!1,Te=0;function pe(Q,z){return $=>{try{ge(Q,z,$)}catch(X){ge(Q,!1,X)}}}const he=function(){let Q=!1;return function($){return function(){Q||(Q=!0,$.apply(null,arguments))}}},He="Promise resolved with itself",xe=ie("currentTaskTrace");function ge(Q,z,$){const X=he();if(Q===$)throw new TypeError(He);if(Q[_e]===ce){let de=null;try{(typeof $=="object"||typeof $=="function")&&(de=$&&$.then)}catch(Se){return X(()=>{ge(Q,!1,Se)})(),Q}if(z!==Ae&&$ instanceof Ne&&$.hasOwnProperty(_e)&&$.hasOwnProperty(ee)&&$[_e]!==ce)K($),ge(Q,$[_e],$[ee]);else if(z!==Ae&&typeof de=="function")try{de.call($,X(pe(Q,z)),X(pe(Q,!1)))}catch(Se){X(()=>{ge(Q,!1,Se)})()}else{Q[_e]=z;const Se=Q[ee];if(Q[ee]=$,Q[Re]===Re&&z===we&&(Q[_e]=Q[ke],Q[ee]=Q[Me]),z===Ae&&$ instanceof Error){const le=q.currentTask&&q.currentTask.data&&q.currentTask.data[Pe];le&&J($,xe,{configurable:!0,enumerable:!1,writable:!0,value:le})}for(let le=0;le<Se.length;)Y(Q,Se[le++],Se[le++],Se[le++],Se[le++]);if(Se.length==0&&z==Ae){Q[_e]=Te;let le=$;try{throw new Error("Uncaught (in promise): "+se($)+($&&$.stack?`
|
|
244
|
-
`+$.stack:""))}catch(me){le=me}ye&&(le.throwOriginal=!0),le.rejection=$,le.promise=Q,le.zone=q.current,le.task=q.currentTask,ue.push(le),F.scheduleMicroTask()}}}return Q}const j=ie("rejectionHandledHandler");function K(Q){if(Q[_e]===Te){try{const z=q[j];z&&typeof z=="function"&&z.call(this,{rejection:Q[ee],promise:Q})}catch{}Q[_e]=Ae;for(let z=0;z<ue.length;z++)Q===ue[z].promise&&ue.splice(z,1)}}function Y(Q,z,$,X,de){K(Q);const Se=Q[_e],le=Se?typeof X=="function"?X:Ge:typeof de=="function"?de:Ve;z.scheduleMicroTask(Le,()=>{try{const me=Q[ee],ve=!!$&&Re===$[Re];ve&&($[Me]=me,$[ke]=Se);const Oe=z.run(le,void 0,ve&&le!==Ve&&le!==Ge?[]:[me]);ge($,!0,Oe)}catch(me){ge($,!1,me)}},$)}const ae="function ZoneAwarePromise() { [native code] }",Ie=function(){},Ke=H.AggregateError;class Ne{static toString(){return ae}static resolve(z){return z instanceof Ne?z:ge(new this(null),we,z)}static reject(z){return ge(new this(null),Ae,z)}static withResolvers(){const z={};return z.promise=new Ne(($,X)=>{z.resolve=$,z.reject=X}),z}static any(z){if(!z||typeof z[Symbol.iterator]!="function")return Promise.reject(new Ke([],"All promises were rejected"));const $=[];let X=0;try{for(let le of z)X++,$.push(Ne.resolve(le))}catch{return Promise.reject(new Ke([],"All promises were rejected"))}if(X===0)return Promise.reject(new Ke([],"All promises were rejected"));let de=!1;const Se=[];return new Ne((le,me)=>{for(let ve=0;ve<$.length;ve++)$[ve].then(Oe=>{de||(de=!0,le(Oe))},Oe=>{Se.push(Oe),X--,X===0&&(de=!0,me(new Ke(Se,"All promises were rejected")))})})}static race(z){let $,X,de=new this((me,ve)=>{$=me,X=ve});function Se(me){$(me)}function le(me){X(me)}for(let me of z)Be(me)||(me=this.resolve(me)),me.then(Se,le);return de}static all(z){return Ne.allWithCallback(z)}static allSettled(z){return(this&&this.prototype instanceof Ne?this:Ne).allWithCallback(z,{thenCallback:X=>({status:"fulfilled",value:X}),errorCallback:X=>({status:"rejected",reason:X})})}static allWithCallback(z,$){let X,de,Se=new this((Oe,be)=>{X=Oe,de=be}),le=2,me=0;const ve=[];for(let Oe of z){Be(Oe)||(Oe=this.resolve(Oe));const be=me;try{Oe.then(De=>{ve[be]=$?$.thenCallback(De):De,le--,le===0&&X(ve)},De=>{$?(ve[be]=$.errorCallback(De),le--,le===0&&X(ve)):de(De)})}catch(De){de(De)}le++,me++}return le-=2,le===0&&X(ve),Se}constructor(z){const $=this;if(!($ instanceof Ne))throw new Error("Must be an instanceof Promise.");$[_e]=ce,$[ee]=[];try{const X=he();z&&z(X(pe($,we)),X(pe($,Ae)))}catch(X){ge($,!1,X)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Ne}then(z,$){let X=this.constructor?.[Symbol.species];(!X||typeof X!="function")&&(X=this.constructor||Ne);const de=new X(Ie),Se=q.current;return this[_e]==ce?this[ee].push(Se,de,z,$):Y(this,Se,de,z,$),de}catch(z){return this.then(null,z)}finally(z){let $=this.constructor?.[Symbol.species];(!$||typeof $!="function")&&($=Ne);const X=new $(Ie);X[Re]=Re;const de=q.current;return this[_e]==ce?this[ee].push(de,X,z,z):Y(this,de,X,z,z),X}}Ne.resolve=Ne.resolve,Ne.reject=Ne.reject,Ne.race=Ne.race,Ne.all=Ne.all;const tt=H[ne]=H.Promise;H.Promise=Ne;const nt=ie("thenPatched");function je(Q){const z=Q.prototype,$=Z(z,"then");if($&&($.writable===!1||!$.configurable))return;const X=z.then;z[Ee]=X,Q.prototype.then=function(de,Se){return new Ne((me,ve)=>{X.call(this,me,ve)}).then(de,Se)},Q[nt]=!0}F.patchThen=je;function at(Q){return function(z,$){let X=Q.apply(z,$);if(X instanceof Ne)return X;let de=X.constructor;return de[nt]||je(de),X}}return tt&&(je(tt),Je(H,"fetch",Q=>at(Q))),Promise[q.__symbol__("uncaughtPromiseErrors")]=ue,Ne})}function tr(G){G.__load_patch("toString",H=>{const q=Function.prototype.toString,F=B("OriginalDelegate"),Z=B("Promise"),J=B("Error"),se=function(){if(typeof this=="function"){const ne=this[F];if(ne)return typeof ne=="function"?q.call(ne):Object.prototype.toString.call(ne);if(this===Promise){const Ee=H[Z];if(Ee)return q.call(Ee)}if(this===Error){const Ee=H[J];if(Ee)return q.call(Ee)}}return q.call(this)};se[F]=q,Function.prototype.toString=se;const ie=Object.prototype.toString,ue="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?ue:ie.call(this)}})}function rr(G,H,q,F,Z){const J=Zone.__symbol__(F);if(H[J])return;const se=H[J]=H[F];H[F]=function(ie,ue,ye){return ue&&ue.prototype&&Z.forEach(function(ne){const Ee=`${q}.${F}::`+ne,Pe=ue.prototype;try{if(Pe.hasOwnProperty(ne)){const Ce=G.ObjectGetOwnPropertyDescriptor(Pe,ne);Ce&&Ce.value?(Ce.value=G.wrapWithCurrentZone(Ce.value,Ee),G._redefineProperty(ue.prototype,ne,Ce)):Pe[ne]&&(Pe[ne]=G.wrapWithCurrentZone(Pe[ne],Ee))}else Pe[ne]&&(Pe[ne]=G.wrapWithCurrentZone(Pe[ne],Ee))}catch{}}),se.call(H,ie,ue,ye)},G.attachOriginToPatched(H[F],se)}function nr(G){G.__load_patch("util",(H,q,F)=>{const Z=ht(H);F.patchOnProperties=gt,F.patchMethod=Je,F.bindArguments=Fe,F.patchMacroTask=Yt;const J=q.__symbol__("BLACK_LISTED_EVENTS"),se=q.__symbol__("UNPATCHED_EVENTS");H[se]&&(H[J]=H[se]),H[J]&&(q[J]=q[se]=H[J]),F.patchEventPrototype=Zt,F.patchEventTarget=Kt,F.isIEOrEdge=$t,F.ObjectDefineProperty=R,F.ObjectGetOwnPropertyDescriptor=P,F.ObjectCreate=D,F.ArraySlice=U,F.patchClass=ut,F.wrapWithCurrentZone=V,F.filterProperties=Ut,F.attachOriginToPatched=Qe,F._redefineProperty=Object.defineProperty,F.patchCallbacks=rr,F.getGlobalObjects=()=>({globalSources:Mt,zoneSymbolEventNames:Ze,eventNames:Z,isBrowser:St,isMix:vt,isNode:pt,TRUE_STR:N,FALSE_STR:I,ZONE_SYMBOL_PREFIX:x,ADD_EVENT_LISTENER_STR:C,REMOVE_EVENT_LISTENER_STR:L})})}function or(G){er(G),tr(G),nr(G)}const xt=O();return or(xt),Qt(xt),zone}requireZone();const index$2=Object.freeze(Object.defineProperty({__proto__:null,ZoneContextManager},Symbol.toStringTag,{value:"Module"}));var detectResources$1={},Resource={};const require$$1$1=getAugmentedNamespace(esm$2),require$$1=getAugmentedNamespace(esm$1),require$$2=getAugmentedNamespace(esm);var browser={},defaultServiceName={},hasRequiredDefaultServiceName;function requireDefaultServiceName(){if(hasRequiredDefaultServiceName)return defaultServiceName;hasRequiredDefaultServiceName=1,Object.defineProperty(defaultServiceName,"__esModule",{value:!0}),defaultServiceName.defaultServiceName=void 0;function S(){return"unknown_service"}return defaultServiceName.defaultServiceName=S,defaultServiceName}var hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,(function(S){Object.defineProperty(S,"__esModule",{value:!0}),S.defaultServiceName=void 0;var T=requireDefaultServiceName();Object.defineProperty(S,"defaultServiceName",{enumerable:!0,get:function(){return T.defaultServiceName}})})(browser)),browser}var hasRequiredResource;function requireResource(){if(hasRequiredResource)return Resource;hasRequiredResource=1,Object.defineProperty(Resource,"__esModule",{value:!0}),Resource.Resource=void 0;const S=require$$1$1,T=require$$1,A=require$$2,O=requireBrowser();let P=class dt{constructor(M,D){var U;this._attributes=M,this.asyncAttributesPending=D!=null,this._syncAttributes=(U=this._attributes)!==null&&U!==void 0?U:{},this._asyncAttributesPromise=D?.then(C=>(this._attributes=Object.assign({},this._attributes,C),this.asyncAttributesPending=!1,C),C=>(S.diag.debug("a resource's async attributes promise rejected: %s",C),this.asyncAttributesPending=!1,{}))}static empty(){return dt.EMPTY}static default(){return new dt({[T.SEMRESATTRS_SERVICE_NAME]:(0,O.defaultServiceName)(),[T.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:A.SDK_INFO[T.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[T.SEMRESATTRS_TELEMETRY_SDK_NAME]:A.SDK_INFO[T.SEMRESATTRS_TELEMETRY_SDK_NAME],[T.SEMRESATTRS_TELEMETRY_SDK_VERSION]:A.SDK_INFO[T.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var M;return this.asyncAttributesPending&&S.diag.error("Accessing resource attributes before async attributes settled"),(M=this._attributes)!==null&&M!==void 0?M:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(M){var D;if(!M)return this;const U=Object.assign(Object.assign({},this._syncAttributes),(D=M._syncAttributes)!==null&&D!==void 0?D:M.attributes);if(!this._asyncAttributesPromise&&!M._asyncAttributesPromise)return new dt(U);const C=Promise.all([this._asyncAttributesPromise,M._asyncAttributesPromise]).then(([L,y])=>{var _;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),L),(_=M._syncAttributes)!==null&&_!==void 0?_:M.attributes),y)});return new dt(U,C)}};return Resource.Resource=P,P.EMPTY=new P({}),Resource}var utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1,Object.defineProperty(utils,"__esModule",{value:!0}),utils.isPromiseLike=void 0;const S=T=>T!==null&&typeof T=="object"&&typeof T.then=="function";return utils.isPromiseLike=S,utils}var hasRequiredDetectResources;function requireDetectResources(){if(hasRequiredDetectResources)return detectResources$1;hasRequiredDetectResources=1,Object.defineProperty(detectResources$1,"__esModule",{value:!0}),detectResources$1.detectResourcesSync=detectResources$1.detectResources=void 0;const S=requireResource(),T=require$$1$1,A=requireUtils(),O=async(M={})=>{const D=await Promise.all((M.detectors||[]).map(async U=>{try{const C=await U.detect(M);return T.diag.debug(`${U.constructor.name} found resource.`,C),C}catch(C){return T.diag.debug(`${U.constructor.name} failed: ${C.message}`),S.Resource.empty()}}));return R(D),D.reduce((U,C)=>U.merge(C),S.Resource.empty())};detectResources$1.detectResources=O;const P=(M={})=>{var D;const U=((D=M.detectors)!==null&&D!==void 0?D:[]).map(L=>{try{const y=L.detect(M);let _;if((0,A.isPromiseLike)(y)){const N=async()=>{var I;const x=await y;return await((I=x.waitForAsyncAttributes)===null||I===void 0?void 0:I.call(x)),x.attributes};_=new S.Resource({},N())}else _=y;return _.waitForAsyncAttributes?_.waitForAsyncAttributes().then(()=>T.diag.debug(`${L.constructor.name} found resource.`,_)):T.diag.debug(`${L.constructor.name} found resource.`,_),_}catch(y){return T.diag.error(`${L.constructor.name} failed: ${y.message}`),S.Resource.empty()}}),C=U.reduce((L,y)=>L.merge(y),S.Resource.empty());return C.waitForAsyncAttributes&&C.waitForAsyncAttributes().then(()=>{R(U)}),C};detectResources$1.detectResourcesSync=P;const R=M=>{M.forEach(D=>{if(Object.keys(D.attributes).length>0){const U=JSON.stringify(D.attributes,null,4);T.diag.verbose(U)}})};return detectResources$1}var detectResourcesExports=requireDetectResources();const detectResources=_mergeNamespaces({__proto__:null},[detectResourcesExports]);var OTLPExporterBase=(function(){function S(T){this._delegate=T}return S.prototype.export=function(T,A){this._delegate.export(T,A)},S.prototype.forceFlush=function(){return this._delegate.forceFlush()},S.prototype.shutdown=function(){return this._delegate.shutdown()},S})(),__extends$1=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),OTLPExporterError=(function(S){__extends$1(T,S);function T(A,O,P){var R=S.call(this,A)||this;return R.name="OTLPExporterError",R.data=P,R.code=O,R}return T})(Error);function validateTimeoutMillis(S){if(!Number.isNaN(S)&&Number.isFinite(S)&&S>0)return S;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+S+"')")}function wrapStaticHeadersInFunction(S){if(S!=null)return function(){return S}}function mergeOtlpSharedConfigurationWithDefaults(S,T,A){var O,P,R,M,D,U;return{timeoutMillis:validateTimeoutMillis((P=(O=S.timeoutMillis)!==null&&O!==void 0?O:T.timeoutMillis)!==null&&P!==void 0?P:A.timeoutMillis),concurrencyLimit:(M=(R=S.concurrencyLimit)!==null&&R!==void 0?R:T.concurrencyLimit)!==null&&M!==void 0?M:A.concurrencyLimit,compression:(U=(D=S.compression)!==null&&D!==void 0?D:T.compression)!==null&&U!==void 0?U:A.compression}}function getSharedConfigurationDefaults(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var __awaiter$2=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$2=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},BoundedQueueExportPromiseHandler=(function(){function S(T){this._sendingPromises=[],this._concurrencyLimit=T}return S.prototype.pushPromise=function(T){var A=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(T);var O=function(){var P=A._sendingPromises.indexOf(T);A._sendingPromises.splice(P,1)};T.then(O,O)},S.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},S.prototype.awaitAll=function(){return __awaiter$2(this,void 0,void 0,function(){return __generator$2(this,function(T){switch(T.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return T.sent(),[2]}})})},S})();function createBoundedQueueExportPromiseHandler(S){return new BoundedQueueExportPromiseHandler(S.concurrencyLimit)}function isPartialSuccessResponse(S){return Object.prototype.hasOwnProperty.call(S,"partialSuccess")}function createLoggingPartialSuccessResponseHandler(){return{handleResponse:function(S){S==null||!isPartialSuccessResponse(S)||S.partialSuccess==null||Object.keys(S.partialSuccess).length===0||diag.warn("Received Partial Success response:",JSON.stringify(S.partialSuccess))}}}var __awaiter$1=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$1=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},OTLPExportDelegate=(function(){function S(T,A,O,P,R){this._transport=T,this._serializer=A,this._responseHandler=O,this._promiseQueue=P,this._timeout=R,this._diagLogger=diag.createComponentLogger({namespace:"OTLPExportDelegate"})}return S.prototype.export=function(T,A){var O=this;if(this._diagLogger.debug("items to be sent",T),this._promiseQueue.hasReachedLimit()){A({code:ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}var P=this._serializer.serializeRequest(T);if(P==null){A({code:ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(P,this._timeout).then(function(R){if(R.status==="success"){if(R.data!=null)try{O._responseHandler.handleResponse(O._serializer.deserializeResponse(R.data))}catch(M){O._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",M,R.data)}A({code:ExportResultCode.SUCCESS});return}else if(R.status==="failure"&&R.error){A({code:ExportResultCode.FAILED,error:R.error});return}else R.status==="retryable"?A({code:ExportResultCode.FAILED,error:new OTLPExporterError("Export failed with retryable status")}):A({code:ExportResultCode.FAILED,error:new OTLPExporterError("Export failed with unknown error")})},function(R){return A({code:ExportResultCode.FAILED,error:R})}))},S.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},S.prototype.shutdown=function(){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(T){switch(T.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return T.sent(),this._transport.shutdown(),[2]}})})},S})();function createOtlpExportDelegate(S,T){return new OTLPExportDelegate(S.transport,S.serializer,createLoggingPartialSuccessResponseHandler(),S.promiseHandler,T.timeout)}function createOtlpNetworkExportDelegate(S,T,A){return createOtlpExportDelegate({transport:A,serializer:T,promiseHandler:createBoundedQueueExportPromiseHandler(S)},{timeout:S.timeoutMillis})}var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=S;function S(T,A){for(var O=new Array(arguments.length-1),P=0,R=2,M=!0;R<arguments.length;)O[P++]=arguments[R++];return new Promise(function(U,C){O[P]=function(y){if(M)if(M=!1,y)C(y);else{for(var _=new Array(arguments.length-1),N=0;N<_.length;)_[N++]=arguments[N];U.apply(null,_)}};try{T.apply(A||null,O)}catch(L){M&&(M=!1,C(L))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,(function(S){var T=S;T.length=function(D){var U=D.length;if(!U)return 0;for(var C=0;--U%4>1&&D.charAt(U)==="=";)++C;return Math.ceil(D.length*3)/4-C};for(var A=new Array(64),O=new Array(123),P=0;P<64;)O[A[P]=P<26?P+65:P<52?P+71:P<62?P-4:P-59|43]=P++;T.encode=function(D,U,C){for(var L=null,y=[],_=0,N=0,I;U<C;){var x=D[U++];switch(N){case 0:y[_++]=A[x>>2],I=(x&3)<<4,N=1;break;case 1:y[_++]=A[I|x>>4],I=(x&15)<<2,N=2;break;case 2:y[_++]=A[I|x>>6],y[_++]=A[x&63],N=0;break}_>8191&&((L||(L=[])).push(String.fromCharCode.apply(String,y)),_=0)}return N&&(y[_++]=A[I],y[_++]=61,N===1&&(y[_++]=61)),L?(_&&L.push(String.fromCharCode.apply(String,y.slice(0,_))),L.join("")):String.fromCharCode.apply(String,y.slice(0,_))};var R="invalid encoding";T.decode=function(D,U,C){for(var L=C,y=0,_,N=0;N<D.length;){var I=D.charCodeAt(N++);if(I===61&&y>1)break;if((I=O[I])===void 0)throw Error(R);switch(y){case 0:_=I,y=1;break;case 1:U[C++]=_<<2|(I&48)>>4,_=I,y=2;break;case 2:U[C++]=(_&15)<<4|(I&60)>>2,_=I,y=3;break;case 3:U[C++]=(_&3)<<6|I,y=0;break}}if(y===1)throw Error(R);return C-L},T.test=function(D){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(D)}})(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=S;function S(){this._listeners={}}return S.prototype.on=function(A,O,P){return(this._listeners[A]||(this._listeners[A]=[])).push({fn:O,ctx:P||this}),this},S.prototype.off=function(A,O){if(A===void 0)this._listeners={};else if(O===void 0)this._listeners[A]=[];else for(var P=this._listeners[A],R=0;R<P.length;)P[R].fn===O?P.splice(R,1):++R;return this},S.prototype.emit=function(A){var O=this._listeners[A];if(O){for(var P=[],R=1;R<arguments.length;)P.push(arguments[R++]);for(R=0;R<O.length;)O[R].fn.apply(O[R++].ctx,P)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=S(S);function S(R){return typeof Float32Array<"u"?(function(){var M=new Float32Array([-0]),D=new Uint8Array(M.buffer),U=D[3]===128;function C(N,I,x){M[0]=N,I[x]=D[0],I[x+1]=D[1],I[x+2]=D[2],I[x+3]=D[3]}function L(N,I,x){M[0]=N,I[x]=D[3],I[x+1]=D[2],I[x+2]=D[1],I[x+3]=D[0]}R.writeFloatLE=U?C:L,R.writeFloatBE=U?L:C;function y(N,I){return D[0]=N[I],D[1]=N[I+1],D[2]=N[I+2],D[3]=N[I+3],M[0]}function _(N,I){return D[3]=N[I],D[2]=N[I+1],D[1]=N[I+2],D[0]=N[I+3],M[0]}R.readFloatLE=U?y:_,R.readFloatBE=U?_:y})():(function(){function M(U,C,L,y){var _=C<0?1:0;if(_&&(C=-C),C===0)U(1/C>0?0:2147483648,L,y);else if(isNaN(C))U(2143289344,L,y);else if(C>34028234663852886e22)U((_<<31|2139095040)>>>0,L,y);else if(C<11754943508222875e-54)U((_<<31|Math.round(C/1401298464324817e-60))>>>0,L,y);else{var N=Math.floor(Math.log(C)/Math.LN2),I=Math.round(C*Math.pow(2,-N)*8388608)&8388607;U((_<<31|N+127<<23|I)>>>0,L,y)}}R.writeFloatLE=M.bind(null,T),R.writeFloatBE=M.bind(null,A);function D(U,C,L){var y=U(C,L),_=(y>>31)*2+1,N=y>>>23&255,I=y&8388607;return N===255?I?NaN:_*(1/0):N===0?_*1401298464324817e-60*I:_*Math.pow(2,N-150)*(I+8388608)}R.readFloatLE=D.bind(null,O),R.readFloatBE=D.bind(null,P)})(),typeof Float64Array<"u"?(function(){var M=new Float64Array([-0]),D=new Uint8Array(M.buffer),U=D[7]===128;function C(N,I,x){M[0]=N,I[x]=D[0],I[x+1]=D[1],I[x+2]=D[2],I[x+3]=D[3],I[x+4]=D[4],I[x+5]=D[5],I[x+6]=D[6],I[x+7]=D[7]}function L(N,I,x){M[0]=N,I[x]=D[7],I[x+1]=D[6],I[x+2]=D[5],I[x+3]=D[4],I[x+4]=D[3],I[x+5]=D[2],I[x+6]=D[1],I[x+7]=D[0]}R.writeDoubleLE=U?C:L,R.writeDoubleBE=U?L:C;function y(N,I){return D[0]=N[I],D[1]=N[I+1],D[2]=N[I+2],D[3]=N[I+3],D[4]=N[I+4],D[5]=N[I+5],D[6]=N[I+6],D[7]=N[I+7],M[0]}function _(N,I){return D[7]=N[I],D[6]=N[I+1],D[5]=N[I+2],D[4]=N[I+3],D[3]=N[I+4],D[2]=N[I+5],D[1]=N[I+6],D[0]=N[I+7],M[0]}R.readDoubleLE=U?y:_,R.readDoubleBE=U?_:y})():(function(){function M(U,C,L,y,_,N){var I=y<0?1:0;if(I&&(y=-y),y===0)U(0,_,N+C),U(1/y>0?0:2147483648,_,N+L);else if(isNaN(y))U(0,_,N+C),U(2146959360,_,N+L);else if(y>17976931348623157e292)U(0,_,N+C),U((I<<31|2146435072)>>>0,_,N+L);else{var x;if(y<22250738585072014e-324)x=y/5e-324,U(x>>>0,_,N+C),U((I<<31|x/4294967296)>>>0,_,N+L);else{var V=Math.floor(Math.log(y)/Math.LN2);V===1024&&(V=1023),x=y*Math.pow(2,-V),U(x*4503599627370496>>>0,_,N+C),U((I<<31|V+1023<<20|x*1048576&1048575)>>>0,_,N+L)}}}R.writeDoubleLE=M.bind(null,T,0,4),R.writeDoubleBE=M.bind(null,A,4,0);function D(U,C,L,y,_){var N=U(y,_+C),I=U(y,_+L),x=(I>>31)*2+1,V=I>>>20&2047,k=4294967296*(I&1048575)+N;return V===2047?k?NaN:x*(1/0):V===0?x*5e-324*k:x*Math.pow(2,V-1075)*(k+4503599627370496)}R.readDoubleLE=D.bind(null,O,0,4),R.readDoubleBE=D.bind(null,P,4,0)})(),R}function T(R,M,D){M[D]=R&255,M[D+1]=R>>>8&255,M[D+2]=R>>>16&255,M[D+3]=R>>>24}function A(R,M,D){M[D]=R>>>24,M[D+1]=R>>>16&255,M[D+2]=R>>>8&255,M[D+3]=R&255}function O(R,M){return(R[M]|R[M+1]<<8|R[M+2]<<16|R[M+3]<<24)>>>0}function P(R,M){return(R[M]<<24|R[M+1]<<16|R[M+2]<<8|R[M+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(S){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,(function(S){var T=S;T.length=function(O){for(var P=0,R=0,M=0;M<O.length;++M)R=O.charCodeAt(M),R<128?P+=1:R<2048?P+=2:(R&64512)===55296&&(O.charCodeAt(M+1)&64512)===56320?(++M,P+=4):P+=3;return P},T.read=function(O,P,R){var M=R-P;if(M<1)return"";for(var D=null,U=[],C=0,L;P<R;)L=O[P++],L<128?U[C++]=L:L>191&&L<224?U[C++]=(L&31)<<6|O[P++]&63:L>239&&L<365?(L=((L&7)<<18|(O[P++]&63)<<12|(O[P++]&63)<<6|O[P++]&63)-65536,U[C++]=55296+(L>>10),U[C++]=56320+(L&1023)):U[C++]=(L&15)<<12|(O[P++]&63)<<6|O[P++]&63,C>8191&&((D||(D=[])).push(String.fromCharCode.apply(String,U)),C=0);return D?(C&&D.push(String.fromCharCode.apply(String,U.slice(0,C))),D.join("")):String.fromCharCode.apply(String,U.slice(0,C))},T.write=function(O,P,R){for(var M=R,D,U,C=0;C<O.length;++C)D=O.charCodeAt(C),D<128?P[R++]=D:D<2048?(P[R++]=D>>6|192,P[R++]=D&63|128):(D&64512)===55296&&((U=O.charCodeAt(C+1))&64512)===56320?(D=65536+((D&1023)<<10)+(U&1023),++C,P[R++]=D>>18|240,P[R++]=D>>12&63|128,P[R++]=D>>6&63|128,P[R++]=D&63|128):(P[R++]=D>>12|224,P[R++]=D>>6&63|128,P[R++]=D&63|128);return R-M}})(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=S;function S(T,A,O){var P=O||8192,R=P>>>1,M=null,D=P;return function(C){if(C<1||C>R)return T(C);D+C>P&&(M=T(P),D=0);var L=A.call(M,D,D+=C);return D&7&&(D=(D|7)+1),L}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=T;var S=requireMinimal$1();function T(R,M){this.lo=R>>>0,this.hi=M>>>0}var A=T.zero=new T(0,0);A.toNumber=function(){return 0},A.zzEncode=A.zzDecode=function(){return this},A.length=function(){return 1};var O=T.zeroHash="\0\0\0\0\0\0\0\0";T.fromNumber=function(M){if(M===0)return A;var D=M<0;D&&(M=-M);var U=M>>>0,C=(M-U)/4294967296>>>0;return D&&(C=~C>>>0,U=~U>>>0,++U>4294967295&&(U=0,++C>4294967295&&(C=0))),new T(U,C)},T.from=function(M){if(typeof M=="number")return T.fromNumber(M);if(S.isString(M))if(S.Long)M=S.Long.fromString(M);else return T.fromNumber(parseInt(M,10));return M.low||M.high?new T(M.low>>>0,M.high>>>0):A},T.prototype.toNumber=function(M){if(!M&&this.hi>>>31){var D=~this.lo+1>>>0,U=~this.hi>>>0;return D||(U=U+1>>>0),-(D+U*4294967296)}return this.lo+this.hi*4294967296},T.prototype.toLong=function(M){return S.Long?new S.Long(this.lo|0,this.hi|0,!!M):{low:this.lo|0,high:this.hi|0,unsigned:!!M}};var P=String.prototype.charCodeAt;return T.fromHash=function(M){return M===O?A:new T((P.call(M,0)|P.call(M,1)<<8|P.call(M,2)<<16|P.call(M,3)<<24)>>>0,(P.call(M,4)|P.call(M,5)<<8|P.call(M,6)<<16|P.call(M,7)<<24)>>>0)},T.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)},T.prototype.zzEncode=function(){var M=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^M)>>>0,this.lo=(this.lo<<1^M)>>>0,this},T.prototype.zzDecode=function(){var M=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^M)>>>0,this.hi=(this.hi>>>1^M)>>>0,this},T.prototype.length=function(){var M=this.lo,D=(this.lo>>>28|this.hi<<4)>>>0,U=this.hi>>>24;return U===0?D===0?M<16384?M<128?1:2:M<2097152?3:4:D<16384?D<128?5:6:D<2097152?7:8:U<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,(function(S){var T=S;T.asPromise=requireAspromise(),T.base64=requireBase64(),T.EventEmitter=requireEventemitter(),T.float=requireFloat(),T.inquire=requireInquire(),T.utf8=requireUtf8(),T.pool=requirePool(),T.LongBits=requireLongbits(),T.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),T.global=T.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,T.emptyArray=Object.freeze?Object.freeze([]):[],T.emptyObject=Object.freeze?Object.freeze({}):{},T.isInteger=Number.isInteger||function(R){return typeof R=="number"&&isFinite(R)&&Math.floor(R)===R},T.isString=function(R){return typeof R=="string"||R instanceof String},T.isObject=function(R){return R&&typeof R=="object"},T.isset=T.isSet=function(R,M){var D=R[M];return D!=null&&R.hasOwnProperty(M)?typeof D!="object"||(Array.isArray(D)?D.length:Object.keys(D).length)>0:!1},T.Buffer=(function(){try{var P=T.inquire("buffer").Buffer;return P.prototype.utf8Write?P:null}catch{return null}})(),T._Buffer_from=null,T._Buffer_allocUnsafe=null,T.newBuffer=function(R){return typeof R=="number"?T.Buffer?T._Buffer_allocUnsafe(R):new T.Array(R):T.Buffer?T._Buffer_from(R):typeof Uint8Array>"u"?R:new Uint8Array(R)},T.Array=typeof Uint8Array<"u"?Uint8Array:Array,T.Long=T.global.dcodeIO&&T.global.dcodeIO.Long||T.global.Long||T.inquire("long"),T.key2Re=/^true|false|0|1$/,T.key32Re=/^-?(?:0|[1-9][0-9]*)$/,T.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,T.longToHash=function(R){return R?T.LongBits.from(R).toHash():T.LongBits.zeroHash},T.longFromHash=function(R,M){var D=T.LongBits.fromHash(R);return T.Long?T.Long.fromBits(D.lo,D.hi,M):D.toNumber(!!M)};function A(P,R,M){for(var D=Object.keys(R),U=0;U<D.length;++U)(P[D[U]]===void 0||!M)&&(P[D[U]]=R[D[U]]);return P}T.merge=A,T.lcFirst=function(R){return R.charAt(0).toLowerCase()+R.substring(1)};function O(P){function R(M,D){if(!(this instanceof R))return new R(M,D);Object.defineProperty(this,"message",{get:function(){return M}}),Error.captureStackTrace?Error.captureStackTrace(this,R):Object.defineProperty(this,"stack",{value:new Error().stack||""}),D&&A(this,D)}return R.prototype=Object.create(Error.prototype,{constructor:{value:R,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return P},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),R}T.newError=O,T.ProtocolError=O("ProtocolError"),T.oneOfGetter=function(R){for(var M={},D=0;D<R.length;++D)M[R[D]]=1;return function(){for(var U=Object.keys(this),C=U.length-1;C>-1;--C)if(M[U[C]]===1&&this[U[C]]!==void 0&&this[U[C]]!==null)return U[C]}},T.oneOfSetter=function(R){return function(M){for(var D=0;D<R.length;++D)R[D]!==M&&delete this[R[D]]}},T.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},T._configure=function(){var P=T.Buffer;if(!P){T._Buffer_from=T._Buffer_allocUnsafe=null;return}T._Buffer_from=P.from!==Uint8Array.from&&P.from||function(M,D){return new P(M,D)},T._Buffer_allocUnsafe=P.allocUnsafe||function(M){return new P(M)}}})(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=U;var S=requireMinimal$1(),T,A=S.LongBits,O=S.base64,P=S.utf8;function R(V,k,B){this.fn=V,this.len=k,this.next=void 0,this.val=B}function M(){}function D(V){this.head=V.head,this.tail=V.tail,this.len=V.len,this.next=V.states}function U(){this.len=0,this.head=new R(M,0,0),this.tail=this.head,this.states=null}var C=function(){return S.Buffer?function(){return(U.create=function(){return new T})()}:function(){return new U}};U.create=C(),U.alloc=function(k){return new S.Array(k)},S.Array!==Array&&(U.alloc=S.pool(U.alloc,S.Array.prototype.subarray)),U.prototype._push=function(k,B,W){return this.tail=this.tail.next=new R(k,B,W),this.len+=B,this};function L(V,k,B){k[B]=V&255}function y(V,k,B){for(;V>127;)k[B++]=V&127|128,V>>>=7;k[B]=V}function _(V,k){this.len=V,this.next=void 0,this.val=k}_.prototype=Object.create(R.prototype),_.prototype.fn=y,U.prototype.uint32=function(k){return this.len+=(this.tail=this.tail.next=new _((k=k>>>0)<128?1:k<16384?2:k<2097152?3:k<268435456?4:5,k)).len,this},U.prototype.int32=function(k){return k<0?this._push(N,10,A.fromNumber(k)):this.uint32(k)},U.prototype.sint32=function(k){return this.uint32((k<<1^k>>31)>>>0)};function N(V,k,B){for(;V.hi;)k[B++]=V.lo&127|128,V.lo=(V.lo>>>7|V.hi<<25)>>>0,V.hi>>>=7;for(;V.lo>127;)k[B++]=V.lo&127|128,V.lo=V.lo>>>7;k[B++]=V.lo}U.prototype.uint64=function(k){var B=A.from(k);return this._push(N,B.length(),B)},U.prototype.int64=U.prototype.uint64,U.prototype.sint64=function(k){var B=A.from(k).zzEncode();return this._push(N,B.length(),B)},U.prototype.bool=function(k){return this._push(L,1,k?1:0)};function I(V,k,B){k[B]=V&255,k[B+1]=V>>>8&255,k[B+2]=V>>>16&255,k[B+3]=V>>>24}U.prototype.fixed32=function(k){return this._push(I,4,k>>>0)},U.prototype.sfixed32=U.prototype.fixed32,U.prototype.fixed64=function(k){var B=A.from(k);return this._push(I,4,B.lo)._push(I,4,B.hi)},U.prototype.sfixed64=U.prototype.fixed64,U.prototype.float=function(k){return this._push(S.float.writeFloatLE,4,k)},U.prototype.double=function(k){return this._push(S.float.writeDoubleLE,8,k)};var x=S.Array.prototype.set?function(k,B,W){B.set(k,W)}:function(k,B,W){for(var oe=0;oe<k.length;++oe)B[W+oe]=k[oe]};return U.prototype.bytes=function(k){var B=k.length>>>0;if(!B)return this._push(L,1,0);if(S.isString(k)){var W=U.alloc(B=O.length(k));O.decode(k,W,0),k=W}return this.uint32(B)._push(x,B,k)},U.prototype.string=function(k){var B=P.length(k);return B?this.uint32(B)._push(P.write,B,k):this._push(L,1,0)},U.prototype.fork=function(){return this.states=new D(this),this.head=this.tail=new R(M,0,0),this.len=0,this},U.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 R(M,0,0),this.len=0),this},U.prototype.ldelim=function(){var k=this.head,B=this.tail,W=this.len;return this.reset().uint32(W),W&&(this.tail.next=k.next,this.tail=B,this.len+=W),this},U.prototype.finish=function(){for(var k=this.head.next,B=this.constructor.alloc(this.len),W=0;k;)k.fn(k.val,B,W),W+=k.len,k=k.next;return B},U._configure=function(V){T=V,U.create=C(),T._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=A;var S=requireWriter();(A.prototype=Object.create(S.prototype)).constructor=A;var T=requireMinimal$1();function A(){S.call(this)}A._configure=function(){A.alloc=T._Buffer_allocUnsafe,A.writeBytesBuffer=T.Buffer&&T.Buffer.prototype instanceof Uint8Array&&T.Buffer.prototype.set.name==="set"?function(R,M,D){M.set(R,D)}:function(R,M,D){if(R.copy)R.copy(M,D,0,R.length);else for(var U=0;U<R.length;)M[D++]=R[U++]}},A.prototype.bytes=function(R){T.isString(R)&&(R=T._Buffer_from(R,"base64"));var M=R.length>>>0;return this.uint32(M),M&&this._push(A.writeBytesBuffer,M,R),this};function O(P,R,M){P.length<40?T.utf8.write(P,R,M):R.utf8Write?R.utf8Write(P,M):R.write(P,M)}return A.prototype.string=function(R){var M=T.Buffer.byteLength(R);return this.uint32(M),M&&this._push(O,M,R),this},A._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=R;var S=requireMinimal$1(),T,A=S.LongBits,O=S.utf8;function P(y,_){return RangeError("index out of range: "+y.pos+" + "+(_||1)+" > "+y.len)}function R(y){this.buf=y,this.pos=0,this.len=y.length}var M=typeof Uint8Array<"u"?function(_){if(_ instanceof Uint8Array||Array.isArray(_))return new R(_);throw Error("illegal buffer")}:function(_){if(Array.isArray(_))return new R(_);throw Error("illegal buffer")},D=function(){return S.Buffer?function(N){return(R.create=function(x){return S.Buffer.isBuffer(x)?new T(x):M(x)})(N)}:M};R.create=D(),R.prototype._slice=S.Array.prototype.subarray||S.Array.prototype.slice,R.prototype.uint32=(function(){var _=4294967295;return function(){if(_=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(_=(_|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(_=(_|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(_=(_|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(_=(_|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return _;if((this.pos+=5)>this.len)throw this.pos=this.len,P(this,10);return _}})(),R.prototype.int32=function(){return this.uint32()|0},R.prototype.sint32=function(){var _=this.uint32();return _>>>1^-(_&1)|0};function U(){var y=new A(0,0),_=0;if(this.len-this.pos>4){for(;_<4;++_)if(y.lo=(y.lo|(this.buf[this.pos]&127)<<_*7)>>>0,this.buf[this.pos++]<128)return y;if(y.lo=(y.lo|(this.buf[this.pos]&127)<<28)>>>0,y.hi=(y.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return y;_=0}else{for(;_<3;++_){if(this.pos>=this.len)throw P(this);if(y.lo=(y.lo|(this.buf[this.pos]&127)<<_*7)>>>0,this.buf[this.pos++]<128)return y}return y.lo=(y.lo|(this.buf[this.pos++]&127)<<_*7)>>>0,y}if(this.len-this.pos>4){for(;_<5;++_)if(y.hi=(y.hi|(this.buf[this.pos]&127)<<_*7+3)>>>0,this.buf[this.pos++]<128)return y}else for(;_<5;++_){if(this.pos>=this.len)throw P(this);if(y.hi=(y.hi|(this.buf[this.pos]&127)<<_*7+3)>>>0,this.buf[this.pos++]<128)return y}throw Error("invalid varint encoding")}R.prototype.bool=function(){return this.uint32()!==0};function C(y,_){return(y[_-4]|y[_-3]<<8|y[_-2]<<16|y[_-1]<<24)>>>0}R.prototype.fixed32=function(){if(this.pos+4>this.len)throw P(this,4);return C(this.buf,this.pos+=4)},R.prototype.sfixed32=function(){if(this.pos+4>this.len)throw P(this,4);return C(this.buf,this.pos+=4)|0};function L(){if(this.pos+8>this.len)throw P(this,8);return new A(C(this.buf,this.pos+=4),C(this.buf,this.pos+=4))}return R.prototype.float=function(){if(this.pos+4>this.len)throw P(this,4);var _=S.float.readFloatLE(this.buf,this.pos);return this.pos+=4,_},R.prototype.double=function(){if(this.pos+8>this.len)throw P(this,4);var _=S.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,_},R.prototype.bytes=function(){var _=this.uint32(),N=this.pos,I=this.pos+_;if(I>this.len)throw P(this,_);if(this.pos+=_,Array.isArray(this.buf))return this.buf.slice(N,I);if(N===I){var x=S.Buffer;return x?x.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,N,I)},R.prototype.string=function(){var _=this.bytes();return O.read(_,0,_.length)},R.prototype.skip=function(_){if(typeof _=="number"){if(this.pos+_>this.len)throw P(this,_);this.pos+=_}else do if(this.pos>=this.len)throw P(this);while(this.buf[this.pos++]&128);return this},R.prototype.skipType=function(y){switch(y){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(y=this.uint32()&7)!==4;)this.skipType(y);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+y+" at offset "+this.pos)}return this},R._configure=function(y){T=y,R.create=D(),T._configure();var _=S.Long?"toLong":"toNumber";S.merge(R.prototype,{int64:function(){return U.call(this)[_](!1)},uint64:function(){return U.call(this)[_](!0)},sint64:function(){return U.call(this).zzDecode()[_](!1)},fixed64:function(){return L.call(this)[_](!0)},sfixed64:function(){return L.call(this)[_](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=A;var S=requireReader();(A.prototype=Object.create(S.prototype)).constructor=A;var T=requireMinimal$1();function A(O){S.call(this,O)}return A._configure=function(){T.Buffer&&(A.prototype._slice=T.Buffer.prototype.slice)},A.prototype.string=function(){var P=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+P,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+P,this.len))},A._configure(),reader_buffer}var rpc={},service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=T;var S=requireMinimal$1();(T.prototype=Object.create(S.EventEmitter.prototype)).constructor=T;function T(A,O,P){if(typeof A!="function")throw TypeError("rpcImpl must be a function");S.EventEmitter.call(this),this.rpcImpl=A,this.requestDelimited=!!O,this.responseDelimited=!!P}return T.prototype.rpcCall=function A(O,P,R,M,D){if(!M)throw TypeError("request must be specified");var U=this;if(!D)return S.asPromise(A,U,O,P,R,M);if(!U.rpcImpl){setTimeout(function(){D(Error("already ended"))},0);return}try{return U.rpcImpl(O,P[U.requestDelimited?"encodeDelimited":"encode"](M).finish(),function(L,y){if(L)return U.emit("error",L,O),D(L);if(y===null){U.end(!0);return}if(!(y instanceof R))try{y=R[U.responseDelimited?"decodeDelimited":"decode"](y)}catch(_){return U.emit("error",_,O),D(_)}return U.emit("data",y,O),D(null,y)})}catch(C){U.emit("error",C,O),setTimeout(function(){D(C)},0);return}},T.prototype.end=function(O){return this.rpcImpl&&(O||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,(function(S){var T=S;T.Service=requireService()})(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,(function(S){var T=S;T.build="minimal",T.Writer=requireWriter(),T.BufferWriter=requireWriter_buffer(),T.Reader=requireReader(),T.BufferReader=requireReader_buffer(),T.util=requireMinimal$1(),T.rpc=requireRpc(),T.roots=requireRoots(),T.configure=A;function A(){T.util._configure(),T.Writer._configure(T.BufferWriter),T.Reader._configure(T.BufferReader)}A()})(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1;var S=requireMinimal(),T=S.Reader,A=S.Writer,O=S.util,P=S.roots.default||(S.roots.default={});return P.opentelemetry=(function(){var R={};return R.proto=(function(){var M={};return M.common=(function(){var D={};return D.v1=(function(){var U={};return U.AnyValue=(function(){function C(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.stringValue=null,C.prototype.boolValue=null,C.prototype.intValue=null,C.prototype.doubleValue=null,C.prototype.arrayValue=null,C.prototype.kvlistValue=null,C.prototype.bytesValue=null;var L;return Object.defineProperty(C.prototype,"value",{get:O.oneOfGetter(L=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){return N||(N=A.create()),_.stringValue!=null&&Object.hasOwnProperty.call(_,"stringValue")&&N.uint32(10).string(_.stringValue),_.boolValue!=null&&Object.hasOwnProperty.call(_,"boolValue")&&N.uint32(16).bool(_.boolValue),_.intValue!=null&&Object.hasOwnProperty.call(_,"intValue")&&N.uint32(24).int64(_.intValue),_.doubleValue!=null&&Object.hasOwnProperty.call(_,"doubleValue")&&N.uint32(33).double(_.doubleValue),_.arrayValue!=null&&Object.hasOwnProperty.call(_,"arrayValue")&&P.opentelemetry.proto.common.v1.ArrayValue.encode(_.arrayValue,N.uint32(42).fork()).ldelim(),_.kvlistValue!=null&&Object.hasOwnProperty.call(_,"kvlistValue")&&P.opentelemetry.proto.common.v1.KeyValueList.encode(_.kvlistValue,N.uint32(50).fork()).ldelim(),_.bytesValue!=null&&Object.hasOwnProperty.call(_,"bytesValue")&&N.uint32(58).bytes(_.bytesValue),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.common.v1.AnyValue;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.stringValue=_.string();break}case 2:{x.boolValue=_.bool();break}case 3:{x.intValue=_.int64();break}case 4:{x.doubleValue=_.double();break}case 5:{x.arrayValue=P.opentelemetry.proto.common.v1.ArrayValue.decode(_,_.uint32());break}case 6:{x.kvlistValue=P.opentelemetry.proto.common.v1.KeyValueList.decode(_,_.uint32());break}case 7:{x.bytesValue=_.bytes();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.stringValue!=null&&_.hasOwnProperty("stringValue")&&(N.value=1,!O.isString(_.stringValue)))return"stringValue: string expected";if(_.boolValue!=null&&_.hasOwnProperty("boolValue")){if(N.value===1)return"value: multiple values";if(N.value=1,typeof _.boolValue!="boolean")return"boolValue: boolean expected"}if(_.intValue!=null&&_.hasOwnProperty("intValue")){if(N.value===1)return"value: multiple values";if(N.value=1,!O.isInteger(_.intValue)&&!(_.intValue&&O.isInteger(_.intValue.low)&&O.isInteger(_.intValue.high)))return"intValue: integer|Long expected"}if(_.doubleValue!=null&&_.hasOwnProperty("doubleValue")){if(N.value===1)return"value: multiple values";if(N.value=1,typeof _.doubleValue!="number")return"doubleValue: number expected"}if(_.arrayValue!=null&&_.hasOwnProperty("arrayValue")){if(N.value===1)return"value: multiple values";N.value=1;{var I=P.opentelemetry.proto.common.v1.ArrayValue.verify(_.arrayValue);if(I)return"arrayValue."+I}}if(_.kvlistValue!=null&&_.hasOwnProperty("kvlistValue")){if(N.value===1)return"value: multiple values";N.value=1;{var I=P.opentelemetry.proto.common.v1.KeyValueList.verify(_.kvlistValue);if(I)return"kvlistValue."+I}}if(_.bytesValue!=null&&_.hasOwnProperty("bytesValue")){if(N.value===1)return"value: multiple values";if(N.value=1,!(_.bytesValue&&typeof _.bytesValue.length=="number"||O.isString(_.bytesValue)))return"bytesValue: buffer expected"}return null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.common.v1.AnyValue)return _;var N=new P.opentelemetry.proto.common.v1.AnyValue;if(_.stringValue!=null&&(N.stringValue=String(_.stringValue)),_.boolValue!=null&&(N.boolValue=!!_.boolValue),_.intValue!=null&&(O.Long?(N.intValue=O.Long.fromValue(_.intValue)).unsigned=!1:typeof _.intValue=="string"?N.intValue=parseInt(_.intValue,10):typeof _.intValue=="number"?N.intValue=_.intValue:typeof _.intValue=="object"&&(N.intValue=new O.LongBits(_.intValue.low>>>0,_.intValue.high>>>0).toNumber())),_.doubleValue!=null&&(N.doubleValue=Number(_.doubleValue)),_.arrayValue!=null){if(typeof _.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");N.arrayValue=P.opentelemetry.proto.common.v1.ArrayValue.fromObject(_.arrayValue)}if(_.kvlistValue!=null){if(typeof _.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");N.kvlistValue=P.opentelemetry.proto.common.v1.KeyValueList.fromObject(_.kvlistValue)}return _.bytesValue!=null&&(typeof _.bytesValue=="string"?O.base64.decode(_.bytesValue,N.bytesValue=O.newBuffer(O.base64.length(_.bytesValue)),0):_.bytesValue.length>=0&&(N.bytesValue=_.bytesValue)),N},C.toObject=function(_,N){N||(N={});var I={};return _.stringValue!=null&&_.hasOwnProperty("stringValue")&&(I.stringValue=_.stringValue,N.oneofs&&(I.value="stringValue")),_.boolValue!=null&&_.hasOwnProperty("boolValue")&&(I.boolValue=_.boolValue,N.oneofs&&(I.value="boolValue")),_.intValue!=null&&_.hasOwnProperty("intValue")&&(typeof _.intValue=="number"?I.intValue=N.longs===String?String(_.intValue):_.intValue:I.intValue=N.longs===String?O.Long.prototype.toString.call(_.intValue):N.longs===Number?new O.LongBits(_.intValue.low>>>0,_.intValue.high>>>0).toNumber():_.intValue,N.oneofs&&(I.value="intValue")),_.doubleValue!=null&&_.hasOwnProperty("doubleValue")&&(I.doubleValue=N.json&&!isFinite(_.doubleValue)?String(_.doubleValue):_.doubleValue,N.oneofs&&(I.value="doubleValue")),_.arrayValue!=null&&_.hasOwnProperty("arrayValue")&&(I.arrayValue=P.opentelemetry.proto.common.v1.ArrayValue.toObject(_.arrayValue,N),N.oneofs&&(I.value="arrayValue")),_.kvlistValue!=null&&_.hasOwnProperty("kvlistValue")&&(I.kvlistValue=P.opentelemetry.proto.common.v1.KeyValueList.toObject(_.kvlistValue,N),N.oneofs&&(I.value="kvlistValue")),_.bytesValue!=null&&_.hasOwnProperty("bytesValue")&&(I.bytesValue=N.bytes===String?O.base64.encode(_.bytesValue,0,_.bytesValue.length):N.bytes===Array?Array.prototype.slice.call(_.bytesValue):_.bytesValue,N.oneofs&&(I.value="bytesValue")),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.common.v1.AnyValue"},C})(),U.ArrayValue=(function(){function C(L){if(this.values=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.values=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.values!=null&&y.values.length)for(var N=0;N<y.values.length;++N)P.opentelemetry.proto.common.v1.AnyValue.encode(y.values[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.ArrayValue;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.values&&I.values.length||(I.values=[]),I.values.push(P.opentelemetry.proto.common.v1.AnyValue.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.values!=null&&y.hasOwnProperty("values")){if(!Array.isArray(y.values))return"values: array expected";for(var _=0;_<y.values.length;++_){var N=P.opentelemetry.proto.common.v1.AnyValue.verify(y.values[_]);if(N)return"values."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.ArrayValue)return y;var _=new P.opentelemetry.proto.common.v1.ArrayValue;if(y.values){if(!Array.isArray(y.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");_.values=[];for(var N=0;N<y.values.length;++N){if(typeof y.values[N]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");_.values[N]=P.opentelemetry.proto.common.v1.AnyValue.fromObject(y.values[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.values=[]),y.values&&y.values.length){N.values=[];for(var I=0;I<y.values.length;++I)N.values[I]=P.opentelemetry.proto.common.v1.AnyValue.toObject(y.values[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.ArrayValue"},C})(),U.KeyValueList=(function(){function C(L){if(this.values=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.values=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.values!=null&&y.values.length)for(var N=0;N<y.values.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.values[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.KeyValueList;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.values&&I.values.length||(I.values=[]),I.values.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.values!=null&&y.hasOwnProperty("values")){if(!Array.isArray(y.values))return"values: array expected";for(var _=0;_<y.values.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.values[_]);if(N)return"values."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.KeyValueList)return y;var _=new P.opentelemetry.proto.common.v1.KeyValueList;if(y.values){if(!Array.isArray(y.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");_.values=[];for(var N=0;N<y.values.length;++N){if(typeof y.values[N]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");_.values[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.values[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.values=[]),y.values&&y.values.length){N.values=[];for(var I=0;I<y.values.length;++I)N.values[I]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.values[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.KeyValueList"},C})(),U.KeyValue=(function(){function C(L){if(L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.key=null,C.prototype.value=null,C.create=function(y){return new C(y)},C.encode=function(y,_){return _||(_=A.create()),y.key!=null&&Object.hasOwnProperty.call(y,"key")&&_.uint32(10).string(y.key),y.value!=null&&Object.hasOwnProperty.call(y,"value")&&P.opentelemetry.proto.common.v1.AnyValue.encode(y.value,_.uint32(18).fork()).ldelim(),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.KeyValue;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.key=y.string();break}case 2:{I.value=P.opentelemetry.proto.common.v1.AnyValue.decode(y,y.uint32());break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.key!=null&&y.hasOwnProperty("key")&&!O.isString(y.key))return"key: string expected";if(y.value!=null&&y.hasOwnProperty("value")){var _=P.opentelemetry.proto.common.v1.AnyValue.verify(y.value);if(_)return"value."+_}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.KeyValue)return y;var _=new P.opentelemetry.proto.common.v1.KeyValue;if(y.key!=null&&(_.key=String(y.key)),y.value!=null){if(typeof y.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");_.value=P.opentelemetry.proto.common.v1.AnyValue.fromObject(y.value)}return _},C.toObject=function(y,_){_||(_={});var N={};return _.defaults&&(N.key="",N.value=null),y.key!=null&&y.hasOwnProperty("key")&&(N.key=y.key),y.value!=null&&y.hasOwnProperty("value")&&(N.value=P.opentelemetry.proto.common.v1.AnyValue.toObject(y.value,_)),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.KeyValue"},C})(),U.InstrumentationScope=(function(){function C(L){if(this.attributes=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.name=null,C.prototype.version=null,C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.name!=null&&Object.hasOwnProperty.call(y,"name")&&_.uint32(10).string(y.name),y.version!=null&&Object.hasOwnProperty.call(y,"version")&&_.uint32(18).string(y.version),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(26).fork()).ldelim();return y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(32).uint32(y.droppedAttributesCount),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.InstrumentationScope;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.name=y.string();break}case 2:{I.version=y.string();break}case 3:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 4:{I.droppedAttributesCount=y.uint32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.name!=null&&y.hasOwnProperty("name")&&!O.isString(y.name))return"name: string expected";if(y.version!=null&&y.hasOwnProperty("version")&&!O.isString(y.version))return"version: string expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.InstrumentationScope)return y;var _=new P.opentelemetry.proto.common.v1.InstrumentationScope;if(y.name!=null&&(_.name=String(y.name)),y.version!=null&&(_.version=String(y.version)),y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}return y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[]),_.defaults&&(N.name="",N.version="",N.droppedAttributesCount=0),y.name!=null&&y.hasOwnProperty("name")&&(N.name=y.name),y.version!=null&&y.hasOwnProperty("version")&&(N.version=y.version),y.attributes&&y.attributes.length){N.attributes=[];for(var I=0;I<y.attributes.length;++I)N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[I],_)}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.InstrumentationScope"},C})(),U})(),D})(),M.resource=(function(){var D={};return D.v1=(function(){var U={};return U.Resource=(function(){function C(L){if(this.attributes=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(10).fork()).ldelim();return y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(16).uint32(y.droppedAttributesCount),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.resource.v1.Resource;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 2:{I.droppedAttributesCount=y.uint32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.resource.v1.Resource)return y;var _=new P.opentelemetry.proto.resource.v1.Resource;if(y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}return y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[]),_.defaults&&(N.droppedAttributesCount=0),y.attributes&&y.attributes.length){N.attributes=[];for(var I=0;I<y.attributes.length;++I)N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[I],_)}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.resource.v1.Resource"},C})(),U})(),D})(),M.trace=(function(){var D={};return D.v1=(function(){var U={};return U.TracesData=(function(){function C(L){if(this.resourceSpans=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resourceSpans=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resourceSpans!=null&&y.resourceSpans.length)for(var N=0;N<y.resourceSpans.length;++N)P.opentelemetry.proto.trace.v1.ResourceSpans.encode(y.resourceSpans[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.TracesData;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resourceSpans&&I.resourceSpans.length||(I.resourceSpans=[]),I.resourceSpans.push(P.opentelemetry.proto.trace.v1.ResourceSpans.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resourceSpans!=null&&y.hasOwnProperty("resourceSpans")){if(!Array.isArray(y.resourceSpans))return"resourceSpans: array expected";for(var _=0;_<y.resourceSpans.length;++_){var N=P.opentelemetry.proto.trace.v1.ResourceSpans.verify(y.resourceSpans[_]);if(N)return"resourceSpans."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.TracesData)return y;var _=new P.opentelemetry.proto.trace.v1.TracesData;if(y.resourceSpans){if(!Array.isArray(y.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");_.resourceSpans=[];for(var N=0;N<y.resourceSpans.length;++N){if(typeof y.resourceSpans[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");_.resourceSpans[N]=P.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(y.resourceSpans[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.resourceSpans=[]),y.resourceSpans&&y.resourceSpans.length){N.resourceSpans=[];for(var I=0;I<y.resourceSpans.length;++I)N.resourceSpans[I]=P.opentelemetry.proto.trace.v1.ResourceSpans.toObject(y.resourceSpans[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.TracesData"},C})(),U.ResourceSpans=(function(){function C(L){if(this.scopeSpans=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resource=null,C.prototype.scopeSpans=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resource!=null&&Object.hasOwnProperty.call(y,"resource")&&P.opentelemetry.proto.resource.v1.Resource.encode(y.resource,_.uint32(10).fork()).ldelim(),y.scopeSpans!=null&&y.scopeSpans.length)for(var N=0;N<y.scopeSpans.length;++N)P.opentelemetry.proto.trace.v1.ScopeSpans.encode(y.scopeSpans[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.ResourceSpans;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resource=P.opentelemetry.proto.resource.v1.Resource.decode(y,y.uint32());break}case 2:{I.scopeSpans&&I.scopeSpans.length||(I.scopeSpans=[]),I.scopeSpans.push(P.opentelemetry.proto.trace.v1.ScopeSpans.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resource!=null&&y.hasOwnProperty("resource")){var _=P.opentelemetry.proto.resource.v1.Resource.verify(y.resource);if(_)return"resource."+_}if(y.scopeSpans!=null&&y.hasOwnProperty("scopeSpans")){if(!Array.isArray(y.scopeSpans))return"scopeSpans: array expected";for(var N=0;N<y.scopeSpans.length;++N){var _=P.opentelemetry.proto.trace.v1.ScopeSpans.verify(y.scopeSpans[N]);if(_)return"scopeSpans."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.ResourceSpans)return y;var _=new P.opentelemetry.proto.trace.v1.ResourceSpans;if(y.resource!=null){if(typeof y.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");_.resource=P.opentelemetry.proto.resource.v1.Resource.fromObject(y.resource)}if(y.scopeSpans){if(!Array.isArray(y.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");_.scopeSpans=[];for(var N=0;N<y.scopeSpans.length;++N){if(typeof y.scopeSpans[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");_.scopeSpans[N]=P.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(y.scopeSpans[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.scopeSpans=[]),_.defaults&&(N.resource=null,N.schemaUrl=""),y.resource!=null&&y.hasOwnProperty("resource")&&(N.resource=P.opentelemetry.proto.resource.v1.Resource.toObject(y.resource,_)),y.scopeSpans&&y.scopeSpans.length){N.scopeSpans=[];for(var I=0;I<y.scopeSpans.length;++I)N.scopeSpans[I]=P.opentelemetry.proto.trace.v1.ScopeSpans.toObject(y.scopeSpans[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.ResourceSpans"},C})(),U.ScopeSpans=(function(){function C(L){if(this.spans=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.scope=null,C.prototype.spans=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.scope!=null&&Object.hasOwnProperty.call(y,"scope")&&P.opentelemetry.proto.common.v1.InstrumentationScope.encode(y.scope,_.uint32(10).fork()).ldelim(),y.spans!=null&&y.spans.length)for(var N=0;N<y.spans.length;++N)P.opentelemetry.proto.trace.v1.Span.encode(y.spans[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.ScopeSpans;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.decode(y,y.uint32());break}case 2:{I.spans&&I.spans.length||(I.spans=[]),I.spans.push(P.opentelemetry.proto.trace.v1.Span.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.scope!=null&&y.hasOwnProperty("scope")){var _=P.opentelemetry.proto.common.v1.InstrumentationScope.verify(y.scope);if(_)return"scope."+_}if(y.spans!=null&&y.hasOwnProperty("spans")){if(!Array.isArray(y.spans))return"spans: array expected";for(var N=0;N<y.spans.length;++N){var _=P.opentelemetry.proto.trace.v1.Span.verify(y.spans[N]);if(_)return"spans."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.ScopeSpans)return y;var _=new P.opentelemetry.proto.trace.v1.ScopeSpans;if(y.scope!=null){if(typeof y.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");_.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(y.scope)}if(y.spans){if(!Array.isArray(y.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");_.spans=[];for(var N=0;N<y.spans.length;++N){if(typeof y.spans[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");_.spans[N]=P.opentelemetry.proto.trace.v1.Span.fromObject(y.spans[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.spans=[]),_.defaults&&(N.scope=null,N.schemaUrl=""),y.scope!=null&&y.hasOwnProperty("scope")&&(N.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.toObject(y.scope,_)),y.spans&&y.spans.length){N.spans=[];for(var I=0;I<y.spans.length;++I)N.spans[I]=P.opentelemetry.proto.trace.v1.Span.toObject(y.spans[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.ScopeSpans"},C})(),U.Span=(function(){function C(L){if(this.attributes=[],this.events=[],this.links=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.traceId=null,C.prototype.spanId=null,C.prototype.traceState=null,C.prototype.parentSpanId=null,C.prototype.name=null,C.prototype.kind=null,C.prototype.startTimeUnixNano=null,C.prototype.endTimeUnixNano=null,C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.prototype.events=O.emptyArray,C.prototype.droppedEventsCount=null,C.prototype.links=O.emptyArray,C.prototype.droppedLinksCount=null,C.prototype.status=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.traceId!=null&&Object.hasOwnProperty.call(y,"traceId")&&_.uint32(10).bytes(y.traceId),y.spanId!=null&&Object.hasOwnProperty.call(y,"spanId")&&_.uint32(18).bytes(y.spanId),y.traceState!=null&&Object.hasOwnProperty.call(y,"traceState")&&_.uint32(26).string(y.traceState),y.parentSpanId!=null&&Object.hasOwnProperty.call(y,"parentSpanId")&&_.uint32(34).bytes(y.parentSpanId),y.name!=null&&Object.hasOwnProperty.call(y,"name")&&_.uint32(42).string(y.name),y.kind!=null&&Object.hasOwnProperty.call(y,"kind")&&_.uint32(48).int32(y.kind),y.startTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"startTimeUnixNano")&&_.uint32(57).fixed64(y.startTimeUnixNano),y.endTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"endTimeUnixNano")&&_.uint32(65).fixed64(y.endTimeUnixNano),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(74).fork()).ldelim();if(y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(80).uint32(y.droppedAttributesCount),y.events!=null&&y.events.length)for(var N=0;N<y.events.length;++N)P.opentelemetry.proto.trace.v1.Span.Event.encode(y.events[N],_.uint32(90).fork()).ldelim();if(y.droppedEventsCount!=null&&Object.hasOwnProperty.call(y,"droppedEventsCount")&&_.uint32(96).uint32(y.droppedEventsCount),y.links!=null&&y.links.length)for(var N=0;N<y.links.length;++N)P.opentelemetry.proto.trace.v1.Span.Link.encode(y.links[N],_.uint32(106).fork()).ldelim();return y.droppedLinksCount!=null&&Object.hasOwnProperty.call(y,"droppedLinksCount")&&_.uint32(112).uint32(y.droppedLinksCount),y.status!=null&&Object.hasOwnProperty.call(y,"status")&&P.opentelemetry.proto.trace.v1.Status.encode(y.status,_.uint32(122).fork()).ldelim(),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.Span;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.traceId=y.bytes();break}case 2:{I.spanId=y.bytes();break}case 3:{I.traceState=y.string();break}case 4:{I.parentSpanId=y.bytes();break}case 5:{I.name=y.string();break}case 6:{I.kind=y.int32();break}case 7:{I.startTimeUnixNano=y.fixed64();break}case 8:{I.endTimeUnixNano=y.fixed64();break}case 9:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 10:{I.droppedAttributesCount=y.uint32();break}case 11:{I.events&&I.events.length||(I.events=[]),I.events.push(P.opentelemetry.proto.trace.v1.Span.Event.decode(y,y.uint32()));break}case 12:{I.droppedEventsCount=y.uint32();break}case 13:{I.links&&I.links.length||(I.links=[]),I.links.push(P.opentelemetry.proto.trace.v1.Span.Link.decode(y,y.uint32()));break}case 14:{I.droppedLinksCount=y.uint32();break}case 15:{I.status=P.opentelemetry.proto.trace.v1.Status.decode(y,y.uint32());break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.traceId!=null&&y.hasOwnProperty("traceId")&&!(y.traceId&&typeof y.traceId.length=="number"||O.isString(y.traceId)))return"traceId: buffer expected";if(y.spanId!=null&&y.hasOwnProperty("spanId")&&!(y.spanId&&typeof y.spanId.length=="number"||O.isString(y.spanId)))return"spanId: buffer expected";if(y.traceState!=null&&y.hasOwnProperty("traceState")&&!O.isString(y.traceState))return"traceState: string expected";if(y.parentSpanId!=null&&y.hasOwnProperty("parentSpanId")&&!(y.parentSpanId&&typeof y.parentSpanId.length=="number"||O.isString(y.parentSpanId)))return"parentSpanId: buffer expected";if(y.name!=null&&y.hasOwnProperty("name")&&!O.isString(y.name))return"name: string expected";if(y.kind!=null&&y.hasOwnProperty("kind"))switch(y.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(y.startTimeUnixNano)&&!(y.startTimeUnixNano&&O.isInteger(y.startTimeUnixNano.low)&&O.isInteger(y.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(y.endTimeUnixNano!=null&&y.hasOwnProperty("endTimeUnixNano")&&!O.isInteger(y.endTimeUnixNano)&&!(y.endTimeUnixNano&&O.isInteger(y.endTimeUnixNano.low)&&O.isInteger(y.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}if(y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(y.events!=null&&y.hasOwnProperty("events")){if(!Array.isArray(y.events))return"events: array expected";for(var _=0;_<y.events.length;++_){var N=P.opentelemetry.proto.trace.v1.Span.Event.verify(y.events[_]);if(N)return"events."+N}}if(y.droppedEventsCount!=null&&y.hasOwnProperty("droppedEventsCount")&&!O.isInteger(y.droppedEventsCount))return"droppedEventsCount: integer expected";if(y.links!=null&&y.hasOwnProperty("links")){if(!Array.isArray(y.links))return"links: array expected";for(var _=0;_<y.links.length;++_){var N=P.opentelemetry.proto.trace.v1.Span.Link.verify(y.links[_]);if(N)return"links."+N}}if(y.droppedLinksCount!=null&&y.hasOwnProperty("droppedLinksCount")&&!O.isInteger(y.droppedLinksCount))return"droppedLinksCount: integer expected";if(y.status!=null&&y.hasOwnProperty("status")){var N=P.opentelemetry.proto.trace.v1.Status.verify(y.status);if(N)return"status."+N}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.Span)return y;var _=new P.opentelemetry.proto.trace.v1.Span;switch(y.traceId!=null&&(typeof y.traceId=="string"?O.base64.decode(y.traceId,_.traceId=O.newBuffer(O.base64.length(y.traceId)),0):y.traceId.length>=0&&(_.traceId=y.traceId)),y.spanId!=null&&(typeof y.spanId=="string"?O.base64.decode(y.spanId,_.spanId=O.newBuffer(O.base64.length(y.spanId)),0):y.spanId.length>=0&&(_.spanId=y.spanId)),y.traceState!=null&&(_.traceState=String(y.traceState)),y.parentSpanId!=null&&(typeof y.parentSpanId=="string"?O.base64.decode(y.parentSpanId,_.parentSpanId=O.newBuffer(O.base64.length(y.parentSpanId)),0):y.parentSpanId.length>=0&&(_.parentSpanId=y.parentSpanId)),y.name!=null&&(_.name=String(y.name)),y.kind){default:if(typeof y.kind=="number"){_.kind=y.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:_.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:_.kind=1;break;case"SPAN_KIND_SERVER":case 2:_.kind=2;break;case"SPAN_KIND_CLIENT":case 3:_.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:_.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:_.kind=5;break}if(y.startTimeUnixNano!=null&&(O.Long?(_.startTimeUnixNano=O.Long.fromValue(y.startTimeUnixNano)).unsigned=!1:typeof y.startTimeUnixNano=="string"?_.startTimeUnixNano=parseInt(y.startTimeUnixNano,10):typeof y.startTimeUnixNano=="number"?_.startTimeUnixNano=y.startTimeUnixNano:typeof y.startTimeUnixNano=="object"&&(_.startTimeUnixNano=new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber())),y.endTimeUnixNano!=null&&(O.Long?(_.endTimeUnixNano=O.Long.fromValue(y.endTimeUnixNano)).unsigned=!1:typeof y.endTimeUnixNano=="string"?_.endTimeUnixNano=parseInt(y.endTimeUnixNano,10):typeof y.endTimeUnixNano=="number"?_.endTimeUnixNano=y.endTimeUnixNano:typeof y.endTimeUnixNano=="object"&&(_.endTimeUnixNano=new O.LongBits(y.endTimeUnixNano.low>>>0,y.endTimeUnixNano.high>>>0).toNumber())),y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}if(y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),y.events){if(!Array.isArray(y.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");_.events=[];for(var N=0;N<y.events.length;++N){if(typeof y.events[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");_.events[N]=P.opentelemetry.proto.trace.v1.Span.Event.fromObject(y.events[N])}}if(y.droppedEventsCount!=null&&(_.droppedEventsCount=y.droppedEventsCount>>>0),y.links){if(!Array.isArray(y.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");_.links=[];for(var N=0;N<y.links.length;++N){if(typeof y.links[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");_.links[N]=P.opentelemetry.proto.trace.v1.Span.Link.fromObject(y.links[N])}}if(y.droppedLinksCount!=null&&(_.droppedLinksCount=y.droppedLinksCount>>>0),y.status!=null){if(typeof y.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");_.status=P.opentelemetry.proto.trace.v1.Status.fromObject(y.status)}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[],N.events=[],N.links=[]),_.defaults){if(_.bytes===String?N.traceId="":(N.traceId=[],_.bytes!==Array&&(N.traceId=O.newBuffer(N.traceId))),_.bytes===String?N.spanId="":(N.spanId=[],_.bytes!==Array&&(N.spanId=O.newBuffer(N.spanId))),N.traceState="",_.bytes===String?N.parentSpanId="":(N.parentSpanId=[],_.bytes!==Array&&(N.parentSpanId=O.newBuffer(N.parentSpanId))),N.name="",N.kind=_.enums===String?"SPAN_KIND_UNSPECIFIED":0,O.Long){var I=new O.Long(0,0,!1);N.startTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.startTimeUnixNano=_.longs===String?"0":0;if(O.Long){var I=new O.Long(0,0,!1);N.endTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.endTimeUnixNano=_.longs===String?"0":0;N.droppedAttributesCount=0,N.droppedEventsCount=0,N.droppedLinksCount=0,N.status=null}if(y.traceId!=null&&y.hasOwnProperty("traceId")&&(N.traceId=_.bytes===String?O.base64.encode(y.traceId,0,y.traceId.length):_.bytes===Array?Array.prototype.slice.call(y.traceId):y.traceId),y.spanId!=null&&y.hasOwnProperty("spanId")&&(N.spanId=_.bytes===String?O.base64.encode(y.spanId,0,y.spanId.length):_.bytes===Array?Array.prototype.slice.call(y.spanId):y.spanId),y.traceState!=null&&y.hasOwnProperty("traceState")&&(N.traceState=y.traceState),y.parentSpanId!=null&&y.hasOwnProperty("parentSpanId")&&(N.parentSpanId=_.bytes===String?O.base64.encode(y.parentSpanId,0,y.parentSpanId.length):_.bytes===Array?Array.prototype.slice.call(y.parentSpanId):y.parentSpanId),y.name!=null&&y.hasOwnProperty("name")&&(N.name=y.name),y.kind!=null&&y.hasOwnProperty("kind")&&(N.kind=_.enums===String?P.opentelemetry.proto.trace.v1.Span.SpanKind[y.kind]===void 0?y.kind:P.opentelemetry.proto.trace.v1.Span.SpanKind[y.kind]:y.kind),y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&(typeof y.startTimeUnixNano=="number"?N.startTimeUnixNano=_.longs===String?String(y.startTimeUnixNano):y.startTimeUnixNano:N.startTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.startTimeUnixNano):_.longs===Number?new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber():y.startTimeUnixNano),y.endTimeUnixNano!=null&&y.hasOwnProperty("endTimeUnixNano")&&(typeof y.endTimeUnixNano=="number"?N.endTimeUnixNano=_.longs===String?String(y.endTimeUnixNano):y.endTimeUnixNano:N.endTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.endTimeUnixNano):_.longs===Number?new O.LongBits(y.endTimeUnixNano.low>>>0,y.endTimeUnixNano.high>>>0).toNumber():y.endTimeUnixNano),y.attributes&&y.attributes.length){N.attributes=[];for(var x=0;x<y.attributes.length;++x)N.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[x],_)}if(y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),y.events&&y.events.length){N.events=[];for(var x=0;x<y.events.length;++x)N.events[x]=P.opentelemetry.proto.trace.v1.Span.Event.toObject(y.events[x],_)}if(y.droppedEventsCount!=null&&y.hasOwnProperty("droppedEventsCount")&&(N.droppedEventsCount=y.droppedEventsCount),y.links&&y.links.length){N.links=[];for(var x=0;x<y.links.length;++x)N.links[x]=P.opentelemetry.proto.trace.v1.Span.Link.toObject(y.links[x],_)}return y.droppedLinksCount!=null&&y.hasOwnProperty("droppedLinksCount")&&(N.droppedLinksCount=y.droppedLinksCount),y.status!=null&&y.hasOwnProperty("status")&&(N.status=P.opentelemetry.proto.trace.v1.Status.toObject(y.status,_)),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.Span"},C.SpanKind=(function(){var L={},y=Object.create(L);return y[L[0]="SPAN_KIND_UNSPECIFIED"]=0,y[L[1]="SPAN_KIND_INTERNAL"]=1,y[L[2]="SPAN_KIND_SERVER"]=2,y[L[3]="SPAN_KIND_CLIENT"]=3,y[L[4]="SPAN_KIND_PRODUCER"]=4,y[L[5]="SPAN_KIND_CONSUMER"]=5,y})(),C.Event=(function(){function L(y){if(this.attributes=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.timeUnixNano=null,L.prototype.name=null,L.prototype.attributes=O.emptyArray,L.prototype.droppedAttributesCount=null,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(9).fixed64(_.timeUnixNano),_.name!=null&&Object.hasOwnProperty.call(_,"name")&&N.uint32(18).string(_.name),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(26).fork()).ldelim();return _.droppedAttributesCount!=null&&Object.hasOwnProperty.call(_,"droppedAttributesCount")&&N.uint32(32).uint32(_.droppedAttributesCount),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.trace.v1.Span.Event;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.timeUnixNano=_.fixed64();break}case 2:{x.name=_.string();break}case 3:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 4:{x.droppedAttributesCount=_.uint32();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.name!=null&&_.hasOwnProperty("name")&&!O.isString(_.name))return"name: string expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(_.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.trace.v1.Span.Event)return _;var N=new P.opentelemetry.proto.trace.v1.Span.Event;if(_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.name!=null&&(N.name=String(_.name)),_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}return _.droppedAttributesCount!=null&&(N.droppedAttributesCount=_.droppedAttributesCount>>>0),N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.attributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;I.name="",I.droppedAttributesCount=0}if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.name!=null&&_.hasOwnProperty("name")&&(I.name=_.name),_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&(I.droppedAttributesCount=_.droppedAttributesCount),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.trace.v1.Span.Event"},L})(),C.Link=(function(){function L(y){if(this.attributes=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.traceId=null,L.prototype.spanId=null,L.prototype.traceState=null,L.prototype.attributes=O.emptyArray,L.prototype.droppedAttributesCount=null,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.traceId!=null&&Object.hasOwnProperty.call(_,"traceId")&&N.uint32(10).bytes(_.traceId),_.spanId!=null&&Object.hasOwnProperty.call(_,"spanId")&&N.uint32(18).bytes(_.spanId),_.traceState!=null&&Object.hasOwnProperty.call(_,"traceState")&&N.uint32(26).string(_.traceState),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(34).fork()).ldelim();return _.droppedAttributesCount!=null&&Object.hasOwnProperty.call(_,"droppedAttributesCount")&&N.uint32(40).uint32(_.droppedAttributesCount),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.trace.v1.Span.Link;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.traceId=_.bytes();break}case 2:{x.spanId=_.bytes();break}case 3:{x.traceState=_.string();break}case 4:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 5:{x.droppedAttributesCount=_.uint32();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.traceId!=null&&_.hasOwnProperty("traceId")&&!(_.traceId&&typeof _.traceId.length=="number"||O.isString(_.traceId)))return"traceId: buffer expected";if(_.spanId!=null&&_.hasOwnProperty("spanId")&&!(_.spanId&&typeof _.spanId.length=="number"||O.isString(_.spanId)))return"spanId: buffer expected";if(_.traceState!=null&&_.hasOwnProperty("traceState")&&!O.isString(_.traceState))return"traceState: string expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(_.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.trace.v1.Span.Link)return _;var N=new P.opentelemetry.proto.trace.v1.Span.Link;if(_.traceId!=null&&(typeof _.traceId=="string"?O.base64.decode(_.traceId,N.traceId=O.newBuffer(O.base64.length(_.traceId)),0):_.traceId.length>=0&&(N.traceId=_.traceId)),_.spanId!=null&&(typeof _.spanId=="string"?O.base64.decode(_.spanId,N.spanId=O.newBuffer(O.base64.length(_.spanId)),0):_.spanId.length>=0&&(N.spanId=_.spanId)),_.traceState!=null&&(N.traceState=String(_.traceState)),_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}return _.droppedAttributesCount!=null&&(N.droppedAttributesCount=_.droppedAttributesCount>>>0),N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.attributes=[]),N.defaults&&(N.bytes===String?I.traceId="":(I.traceId=[],N.bytes!==Array&&(I.traceId=O.newBuffer(I.traceId))),N.bytes===String?I.spanId="":(I.spanId=[],N.bytes!==Array&&(I.spanId=O.newBuffer(I.spanId))),I.traceState="",I.droppedAttributesCount=0),_.traceId!=null&&_.hasOwnProperty("traceId")&&(I.traceId=N.bytes===String?O.base64.encode(_.traceId,0,_.traceId.length):N.bytes===Array?Array.prototype.slice.call(_.traceId):_.traceId),_.spanId!=null&&_.hasOwnProperty("spanId")&&(I.spanId=N.bytes===String?O.base64.encode(_.spanId,0,_.spanId.length):N.bytes===Array?Array.prototype.slice.call(_.spanId):_.spanId),_.traceState!=null&&_.hasOwnProperty("traceState")&&(I.traceState=_.traceState),_.attributes&&_.attributes.length){I.attributes=[];for(var x=0;x<_.attributes.length;++x)I.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[x],N)}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&(I.droppedAttributesCount=_.droppedAttributesCount),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.trace.v1.Span.Link"},L})(),C})(),U.Status=(function(){function C(L){if(L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.message=null,C.prototype.code=null,C.create=function(y){return new C(y)},C.encode=function(y,_){return _||(_=A.create()),y.message!=null&&Object.hasOwnProperty.call(y,"message")&&_.uint32(18).string(y.message),y.code!=null&&Object.hasOwnProperty.call(y,"code")&&_.uint32(24).int32(y.code),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.Status;y.pos<N;){var x=y.uint32();switch(x>>>3){case 2:{I.message=y.string();break}case 3:{I.code=y.int32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.message!=null&&y.hasOwnProperty("message")&&!O.isString(y.message))return"message: string expected";if(y.code!=null&&y.hasOwnProperty("code"))switch(y.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.Status)return y;var _=new P.opentelemetry.proto.trace.v1.Status;switch(y.message!=null&&(_.message=String(y.message)),y.code){default:if(typeof y.code=="number"){_.code=y.code;break}break;case"STATUS_CODE_UNSET":case 0:_.code=0;break;case"STATUS_CODE_OK":case 1:_.code=1;break;case"STATUS_CODE_ERROR":case 2:_.code=2;break}return _},C.toObject=function(y,_){_||(_={});var N={};return _.defaults&&(N.message="",N.code=_.enums===String?"STATUS_CODE_UNSET":0),y.message!=null&&y.hasOwnProperty("message")&&(N.message=y.message),y.code!=null&&y.hasOwnProperty("code")&&(N.code=_.enums===String?P.opentelemetry.proto.trace.v1.Status.StatusCode[y.code]===void 0?y.code:P.opentelemetry.proto.trace.v1.Status.StatusCode[y.code]:y.code),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.Status"},C.StatusCode=(function(){var L={},y=Object.create(L);return y[L[0]="STATUS_CODE_UNSET"]=0,y[L[1]="STATUS_CODE_OK"]=1,y[L[2]="STATUS_CODE_ERROR"]=2,y})(),C})(),U})(),D})(),M.collector=(function(){var D={};return D.trace=(function(){var U={};return U.v1=(function(){var C={};return C.TraceService=(function(){function L(y,_,N){S.rpc.Service.call(this,y,_,N)}return(L.prototype=Object.create(S.rpc.Service.prototype)).constructor=L,L.create=function(_,N,I){return new this(_,N,I)},Object.defineProperty(L.prototype.export=function y(_,N){return this.rpcCall(y,P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,_,N)},"name",{value:"Export"}),L})(),C.ExportTraceServiceRequest=(function(){function L(y){if(this.resourceSpans=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.resourceSpans=O.emptyArray,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.resourceSpans!=null&&_.resourceSpans.length)for(var I=0;I<_.resourceSpans.length;++I)P.opentelemetry.proto.trace.v1.ResourceSpans.encode(_.resourceSpans[I],N.uint32(10).fork()).ldelim();return N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.resourceSpans&&x.resourceSpans.length||(x.resourceSpans=[]),x.resourceSpans.push(P.opentelemetry.proto.trace.v1.ResourceSpans.decode(_,_.uint32()));break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.resourceSpans!=null&&_.hasOwnProperty("resourceSpans")){if(!Array.isArray(_.resourceSpans))return"resourceSpans: array expected";for(var N=0;N<_.resourceSpans.length;++N){var I=P.opentelemetry.proto.trace.v1.ResourceSpans.verify(_.resourceSpans[N]);if(I)return"resourceSpans."+I}}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return _;var N=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(_.resourceSpans){if(!Array.isArray(_.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");N.resourceSpans=[];for(var I=0;I<_.resourceSpans.length;++I){if(typeof _.resourceSpans[I]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");N.resourceSpans[I]=P.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(_.resourceSpans[I])}}return N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.resourceSpans=[]),_.resourceSpans&&_.resourceSpans.length){I.resourceSpans=[];for(var x=0;x<_.resourceSpans.length;++x)I.resourceSpans[x]=P.opentelemetry.proto.trace.v1.ResourceSpans.toObject(_.resourceSpans[x],N)}return I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},L})(),C.ExportTraceServiceResponse=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.partialSuccess=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.partialSuccess!=null&&Object.hasOwnProperty.call(_,"partialSuccess")&&P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(_.partialSuccess,N.uint32(10).fork()).ldelim(),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.partialSuccess=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")){var N=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(_.partialSuccess);if(N)return"partialSuccess."+N}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return _;var N=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(_.partialSuccess!=null){if(typeof _.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");N.partialSuccess=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(_.partialSuccess)}return N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.partialSuccess=null),_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")&&(I.partialSuccess=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(_.partialSuccess,N)),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},L})(),C.ExportTracePartialSuccess=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.rejectedSpans=null,L.prototype.errorMessage=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.rejectedSpans!=null&&Object.hasOwnProperty.call(_,"rejectedSpans")&&N.uint32(8).int64(_.rejectedSpans),_.errorMessage!=null&&Object.hasOwnProperty.call(_,"errorMessage")&&N.uint32(18).string(_.errorMessage),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.rejectedSpans=_.int64();break}case 2:{x.errorMessage=_.string();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.rejectedSpans!=null&&_.hasOwnProperty("rejectedSpans")&&!O.isInteger(_.rejectedSpans)&&!(_.rejectedSpans&&O.isInteger(_.rejectedSpans.low)&&O.isInteger(_.rejectedSpans.high))?"rejectedSpans: integer|Long expected":_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&!O.isString(_.errorMessage)?"errorMessage: string expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return _;var N=new P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return _.rejectedSpans!=null&&(O.Long?(N.rejectedSpans=O.Long.fromValue(_.rejectedSpans)).unsigned=!1:typeof _.rejectedSpans=="string"?N.rejectedSpans=parseInt(_.rejectedSpans,10):typeof _.rejectedSpans=="number"?N.rejectedSpans=_.rejectedSpans:typeof _.rejectedSpans=="object"&&(N.rejectedSpans=new O.LongBits(_.rejectedSpans.low>>>0,_.rejectedSpans.high>>>0).toNumber())),_.errorMessage!=null&&(N.errorMessage=String(_.errorMessage)),N},L.toObject=function(_,N){N||(N={});var I={};if(N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.rejectedSpans=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.rejectedSpans=N.longs===String?"0":0;I.errorMessage=""}return _.rejectedSpans!=null&&_.hasOwnProperty("rejectedSpans")&&(typeof _.rejectedSpans=="number"?I.rejectedSpans=N.longs===String?String(_.rejectedSpans):_.rejectedSpans:I.rejectedSpans=N.longs===String?O.Long.prototype.toString.call(_.rejectedSpans):N.longs===Number?new O.LongBits(_.rejectedSpans.low>>>0,_.rejectedSpans.high>>>0).toNumber():_.rejectedSpans),_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&(I.errorMessage=_.errorMessage),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},L})(),C})(),U})(),D.metrics=(function(){var U={};return U.v1=(function(){var C={};return C.MetricsService=(function(){function L(y,_,N){S.rpc.Service.call(this,y,_,N)}return(L.prototype=Object.create(S.rpc.Service.prototype)).constructor=L,L.create=function(_,N,I){return new this(_,N,I)},Object.defineProperty(L.prototype.export=function y(_,N){return this.rpcCall(y,P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,_,N)},"name",{value:"Export"}),L})(),C.ExportMetricsServiceRequest=(function(){function L(y){if(this.resourceMetrics=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.resourceMetrics=O.emptyArray,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.resourceMetrics!=null&&_.resourceMetrics.length)for(var I=0;I<_.resourceMetrics.length;++I)P.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(_.resourceMetrics[I],N.uint32(10).fork()).ldelim();return N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.resourceMetrics&&x.resourceMetrics.length||(x.resourceMetrics=[]),x.resourceMetrics.push(P.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(_,_.uint32()));break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.resourceMetrics!=null&&_.hasOwnProperty("resourceMetrics")){if(!Array.isArray(_.resourceMetrics))return"resourceMetrics: array expected";for(var N=0;N<_.resourceMetrics.length;++N){var I=P.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(_.resourceMetrics[N]);if(I)return"resourceMetrics."+I}}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return _;var N=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(_.resourceMetrics){if(!Array.isArray(_.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");N.resourceMetrics=[];for(var I=0;I<_.resourceMetrics.length;++I){if(typeof _.resourceMetrics[I]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");N.resourceMetrics[I]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(_.resourceMetrics[I])}}return N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.resourceMetrics=[]),_.resourceMetrics&&_.resourceMetrics.length){I.resourceMetrics=[];for(var x=0;x<_.resourceMetrics.length;++x)I.resourceMetrics[x]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(_.resourceMetrics[x],N)}return I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},L})(),C.ExportMetricsServiceResponse=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.partialSuccess=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.partialSuccess!=null&&Object.hasOwnProperty.call(_,"partialSuccess")&&P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(_.partialSuccess,N.uint32(10).fork()).ldelim(),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.partialSuccess=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")){var N=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(_.partialSuccess);if(N)return"partialSuccess."+N}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return _;var N=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(_.partialSuccess!=null){if(typeof _.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");N.partialSuccess=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(_.partialSuccess)}return N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.partialSuccess=null),_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")&&(I.partialSuccess=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(_.partialSuccess,N)),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},L})(),C.ExportMetricsPartialSuccess=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.rejectedDataPoints=null,L.prototype.errorMessage=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.rejectedDataPoints!=null&&Object.hasOwnProperty.call(_,"rejectedDataPoints")&&N.uint32(8).int64(_.rejectedDataPoints),_.errorMessage!=null&&Object.hasOwnProperty.call(_,"errorMessage")&&N.uint32(18).string(_.errorMessage),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.rejectedDataPoints=_.int64();break}case 2:{x.errorMessage=_.string();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.rejectedDataPoints!=null&&_.hasOwnProperty("rejectedDataPoints")&&!O.isInteger(_.rejectedDataPoints)&&!(_.rejectedDataPoints&&O.isInteger(_.rejectedDataPoints.low)&&O.isInteger(_.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&!O.isString(_.errorMessage)?"errorMessage: string expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return _;var N=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return _.rejectedDataPoints!=null&&(O.Long?(N.rejectedDataPoints=O.Long.fromValue(_.rejectedDataPoints)).unsigned=!1:typeof _.rejectedDataPoints=="string"?N.rejectedDataPoints=parseInt(_.rejectedDataPoints,10):typeof _.rejectedDataPoints=="number"?N.rejectedDataPoints=_.rejectedDataPoints:typeof _.rejectedDataPoints=="object"&&(N.rejectedDataPoints=new O.LongBits(_.rejectedDataPoints.low>>>0,_.rejectedDataPoints.high>>>0).toNumber())),_.errorMessage!=null&&(N.errorMessage=String(_.errorMessage)),N},L.toObject=function(_,N){N||(N={});var I={};if(N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.rejectedDataPoints=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.rejectedDataPoints=N.longs===String?"0":0;I.errorMessage=""}return _.rejectedDataPoints!=null&&_.hasOwnProperty("rejectedDataPoints")&&(typeof _.rejectedDataPoints=="number"?I.rejectedDataPoints=N.longs===String?String(_.rejectedDataPoints):_.rejectedDataPoints:I.rejectedDataPoints=N.longs===String?O.Long.prototype.toString.call(_.rejectedDataPoints):N.longs===Number?new O.LongBits(_.rejectedDataPoints.low>>>0,_.rejectedDataPoints.high>>>0).toNumber():_.rejectedDataPoints),_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&(I.errorMessage=_.errorMessage),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},L})(),C})(),U})(),D.logs=(function(){var U={};return U.v1=(function(){var C={};return C.LogsService=(function(){function L(y,_,N){S.rpc.Service.call(this,y,_,N)}return(L.prototype=Object.create(S.rpc.Service.prototype)).constructor=L,L.create=function(_,N,I){return new this(_,N,I)},Object.defineProperty(L.prototype.export=function y(_,N){return this.rpcCall(y,P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,_,N)},"name",{value:"Export"}),L})(),C.ExportLogsServiceRequest=(function(){function L(y){if(this.resourceLogs=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.resourceLogs=O.emptyArray,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.resourceLogs!=null&&_.resourceLogs.length)for(var I=0;I<_.resourceLogs.length;++I)P.opentelemetry.proto.logs.v1.ResourceLogs.encode(_.resourceLogs[I],N.uint32(10).fork()).ldelim();return N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.resourceLogs&&x.resourceLogs.length||(x.resourceLogs=[]),x.resourceLogs.push(P.opentelemetry.proto.logs.v1.ResourceLogs.decode(_,_.uint32()));break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.resourceLogs!=null&&_.hasOwnProperty("resourceLogs")){if(!Array.isArray(_.resourceLogs))return"resourceLogs: array expected";for(var N=0;N<_.resourceLogs.length;++N){var I=P.opentelemetry.proto.logs.v1.ResourceLogs.verify(_.resourceLogs[N]);if(I)return"resourceLogs."+I}}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return _;var N=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(_.resourceLogs){if(!Array.isArray(_.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");N.resourceLogs=[];for(var I=0;I<_.resourceLogs.length;++I){if(typeof _.resourceLogs[I]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");N.resourceLogs[I]=P.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(_.resourceLogs[I])}}return N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.resourceLogs=[]),_.resourceLogs&&_.resourceLogs.length){I.resourceLogs=[];for(var x=0;x<_.resourceLogs.length;++x)I.resourceLogs[x]=P.opentelemetry.proto.logs.v1.ResourceLogs.toObject(_.resourceLogs[x],N)}return I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},L})(),C.ExportLogsServiceResponse=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.partialSuccess=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.partialSuccess!=null&&Object.hasOwnProperty.call(_,"partialSuccess")&&P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(_.partialSuccess,N.uint32(10).fork()).ldelim(),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.partialSuccess=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")){var N=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(_.partialSuccess);if(N)return"partialSuccess."+N}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return _;var N=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(_.partialSuccess!=null){if(typeof _.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");N.partialSuccess=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(_.partialSuccess)}return N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.partialSuccess=null),_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")&&(I.partialSuccess=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(_.partialSuccess,N)),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},L})(),C.ExportLogsPartialSuccess=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.rejectedLogRecords=null,L.prototype.errorMessage=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.rejectedLogRecords!=null&&Object.hasOwnProperty.call(_,"rejectedLogRecords")&&N.uint32(8).int64(_.rejectedLogRecords),_.errorMessage!=null&&Object.hasOwnProperty.call(_,"errorMessage")&&N.uint32(18).string(_.errorMessage),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.rejectedLogRecords=_.int64();break}case 2:{x.errorMessage=_.string();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.rejectedLogRecords!=null&&_.hasOwnProperty("rejectedLogRecords")&&!O.isInteger(_.rejectedLogRecords)&&!(_.rejectedLogRecords&&O.isInteger(_.rejectedLogRecords.low)&&O.isInteger(_.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&!O.isString(_.errorMessage)?"errorMessage: string expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return _;var N=new P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return _.rejectedLogRecords!=null&&(O.Long?(N.rejectedLogRecords=O.Long.fromValue(_.rejectedLogRecords)).unsigned=!1:typeof _.rejectedLogRecords=="string"?N.rejectedLogRecords=parseInt(_.rejectedLogRecords,10):typeof _.rejectedLogRecords=="number"?N.rejectedLogRecords=_.rejectedLogRecords:typeof _.rejectedLogRecords=="object"&&(N.rejectedLogRecords=new O.LongBits(_.rejectedLogRecords.low>>>0,_.rejectedLogRecords.high>>>0).toNumber())),_.errorMessage!=null&&(N.errorMessage=String(_.errorMessage)),N},L.toObject=function(_,N){N||(N={});var I={};if(N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.rejectedLogRecords=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.rejectedLogRecords=N.longs===String?"0":0;I.errorMessage=""}return _.rejectedLogRecords!=null&&_.hasOwnProperty("rejectedLogRecords")&&(typeof _.rejectedLogRecords=="number"?I.rejectedLogRecords=N.longs===String?String(_.rejectedLogRecords):_.rejectedLogRecords:I.rejectedLogRecords=N.longs===String?O.Long.prototype.toString.call(_.rejectedLogRecords):N.longs===Number?new O.LongBits(_.rejectedLogRecords.low>>>0,_.rejectedLogRecords.high>>>0).toNumber():_.rejectedLogRecords),_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&(I.errorMessage=_.errorMessage),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},L})(),C})(),U})(),D})(),M.metrics=(function(){var D={};return D.v1=(function(){var U={};return U.MetricsData=(function(){function C(L){if(this.resourceMetrics=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resourceMetrics=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resourceMetrics!=null&&y.resourceMetrics.length)for(var N=0;N<y.resourceMetrics.length;++N)P.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(y.resourceMetrics[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.MetricsData;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resourceMetrics&&I.resourceMetrics.length||(I.resourceMetrics=[]),I.resourceMetrics.push(P.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resourceMetrics!=null&&y.hasOwnProperty("resourceMetrics")){if(!Array.isArray(y.resourceMetrics))return"resourceMetrics: array expected";for(var _=0;_<y.resourceMetrics.length;++_){var N=P.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(y.resourceMetrics[_]);if(N)return"resourceMetrics."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.MetricsData)return y;var _=new P.opentelemetry.proto.metrics.v1.MetricsData;if(y.resourceMetrics){if(!Array.isArray(y.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");_.resourceMetrics=[];for(var N=0;N<y.resourceMetrics.length;++N){if(typeof y.resourceMetrics[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");_.resourceMetrics[N]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(y.resourceMetrics[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.resourceMetrics=[]),y.resourceMetrics&&y.resourceMetrics.length){N.resourceMetrics=[];for(var I=0;I<y.resourceMetrics.length;++I)N.resourceMetrics[I]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(y.resourceMetrics[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.MetricsData"},C})(),U.ResourceMetrics=(function(){function C(L){if(this.scopeMetrics=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resource=null,C.prototype.scopeMetrics=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resource!=null&&Object.hasOwnProperty.call(y,"resource")&&P.opentelemetry.proto.resource.v1.Resource.encode(y.resource,_.uint32(10).fork()).ldelim(),y.scopeMetrics!=null&&y.scopeMetrics.length)for(var N=0;N<y.scopeMetrics.length;++N)P.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(y.scopeMetrics[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.ResourceMetrics;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resource=P.opentelemetry.proto.resource.v1.Resource.decode(y,y.uint32());break}case 2:{I.scopeMetrics&&I.scopeMetrics.length||(I.scopeMetrics=[]),I.scopeMetrics.push(P.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resource!=null&&y.hasOwnProperty("resource")){var _=P.opentelemetry.proto.resource.v1.Resource.verify(y.resource);if(_)return"resource."+_}if(y.scopeMetrics!=null&&y.hasOwnProperty("scopeMetrics")){if(!Array.isArray(y.scopeMetrics))return"scopeMetrics: array expected";for(var N=0;N<y.scopeMetrics.length;++N){var _=P.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(y.scopeMetrics[N]);if(_)return"scopeMetrics."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.ResourceMetrics)return y;var _=new P.opentelemetry.proto.metrics.v1.ResourceMetrics;if(y.resource!=null){if(typeof y.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");_.resource=P.opentelemetry.proto.resource.v1.Resource.fromObject(y.resource)}if(y.scopeMetrics){if(!Array.isArray(y.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");_.scopeMetrics=[];for(var N=0;N<y.scopeMetrics.length;++N){if(typeof y.scopeMetrics[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");_.scopeMetrics[N]=P.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(y.scopeMetrics[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.scopeMetrics=[]),_.defaults&&(N.resource=null,N.schemaUrl=""),y.resource!=null&&y.hasOwnProperty("resource")&&(N.resource=P.opentelemetry.proto.resource.v1.Resource.toObject(y.resource,_)),y.scopeMetrics&&y.scopeMetrics.length){N.scopeMetrics=[];for(var I=0;I<y.scopeMetrics.length;++I)N.scopeMetrics[I]=P.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(y.scopeMetrics[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},C})(),U.ScopeMetrics=(function(){function C(L){if(this.metrics=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.scope=null,C.prototype.metrics=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.scope!=null&&Object.hasOwnProperty.call(y,"scope")&&P.opentelemetry.proto.common.v1.InstrumentationScope.encode(y.scope,_.uint32(10).fork()).ldelim(),y.metrics!=null&&y.metrics.length)for(var N=0;N<y.metrics.length;++N)P.opentelemetry.proto.metrics.v1.Metric.encode(y.metrics[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.ScopeMetrics;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.decode(y,y.uint32());break}case 2:{I.metrics&&I.metrics.length||(I.metrics=[]),I.metrics.push(P.opentelemetry.proto.metrics.v1.Metric.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.scope!=null&&y.hasOwnProperty("scope")){var _=P.opentelemetry.proto.common.v1.InstrumentationScope.verify(y.scope);if(_)return"scope."+_}if(y.metrics!=null&&y.hasOwnProperty("metrics")){if(!Array.isArray(y.metrics))return"metrics: array expected";for(var N=0;N<y.metrics.length;++N){var _=P.opentelemetry.proto.metrics.v1.Metric.verify(y.metrics[N]);if(_)return"metrics."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.ScopeMetrics)return y;var _=new P.opentelemetry.proto.metrics.v1.ScopeMetrics;if(y.scope!=null){if(typeof y.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");_.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(y.scope)}if(y.metrics){if(!Array.isArray(y.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");_.metrics=[];for(var N=0;N<y.metrics.length;++N){if(typeof y.metrics[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");_.metrics[N]=P.opentelemetry.proto.metrics.v1.Metric.fromObject(y.metrics[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.metrics=[]),_.defaults&&(N.scope=null,N.schemaUrl=""),y.scope!=null&&y.hasOwnProperty("scope")&&(N.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.toObject(y.scope,_)),y.metrics&&y.metrics.length){N.metrics=[];for(var I=0;I<y.metrics.length;++I)N.metrics[I]=P.opentelemetry.proto.metrics.v1.Metric.toObject(y.metrics[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},C})(),U.Metric=(function(){function C(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.name=null,C.prototype.description=null,C.prototype.unit=null,C.prototype.gauge=null,C.prototype.sum=null,C.prototype.histogram=null,C.prototype.exponentialHistogram=null,C.prototype.summary=null;var L;return Object.defineProperty(C.prototype,"data",{get:O.oneOfGetter(L=["gauge","sum","histogram","exponentialHistogram","summary"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){return N||(N=A.create()),_.name!=null&&Object.hasOwnProperty.call(_,"name")&&N.uint32(10).string(_.name),_.description!=null&&Object.hasOwnProperty.call(_,"description")&&N.uint32(18).string(_.description),_.unit!=null&&Object.hasOwnProperty.call(_,"unit")&&N.uint32(26).string(_.unit),_.gauge!=null&&Object.hasOwnProperty.call(_,"gauge")&&P.opentelemetry.proto.metrics.v1.Gauge.encode(_.gauge,N.uint32(42).fork()).ldelim(),_.sum!=null&&Object.hasOwnProperty.call(_,"sum")&&P.opentelemetry.proto.metrics.v1.Sum.encode(_.sum,N.uint32(58).fork()).ldelim(),_.histogram!=null&&Object.hasOwnProperty.call(_,"histogram")&&P.opentelemetry.proto.metrics.v1.Histogram.encode(_.histogram,N.uint32(74).fork()).ldelim(),_.exponentialHistogram!=null&&Object.hasOwnProperty.call(_,"exponentialHistogram")&&P.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(_.exponentialHistogram,N.uint32(82).fork()).ldelim(),_.summary!=null&&Object.hasOwnProperty.call(_,"summary")&&P.opentelemetry.proto.metrics.v1.Summary.encode(_.summary,N.uint32(90).fork()).ldelim(),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.Metric;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.name=_.string();break}case 2:{x.description=_.string();break}case 3:{x.unit=_.string();break}case 5:{x.gauge=P.opentelemetry.proto.metrics.v1.Gauge.decode(_,_.uint32());break}case 7:{x.sum=P.opentelemetry.proto.metrics.v1.Sum.decode(_,_.uint32());break}case 9:{x.histogram=P.opentelemetry.proto.metrics.v1.Histogram.decode(_,_.uint32());break}case 10:{x.exponentialHistogram=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(_,_.uint32());break}case 11:{x.summary=P.opentelemetry.proto.metrics.v1.Summary.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.name!=null&&_.hasOwnProperty("name")&&!O.isString(_.name))return"name: string expected";if(_.description!=null&&_.hasOwnProperty("description")&&!O.isString(_.description))return"description: string expected";if(_.unit!=null&&_.hasOwnProperty("unit")&&!O.isString(_.unit))return"unit: string expected";if(_.gauge!=null&&_.hasOwnProperty("gauge")){N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Gauge.verify(_.gauge);if(I)return"gauge."+I}}if(_.sum!=null&&_.hasOwnProperty("sum")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Sum.verify(_.sum);if(I)return"sum."+I}}if(_.histogram!=null&&_.hasOwnProperty("histogram")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Histogram.verify(_.histogram);if(I)return"histogram."+I}}if(_.exponentialHistogram!=null&&_.hasOwnProperty("exponentialHistogram")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(_.exponentialHistogram);if(I)return"exponentialHistogram."+I}}if(_.summary!=null&&_.hasOwnProperty("summary")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Summary.verify(_.summary);if(I)return"summary."+I}}return null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.Metric)return _;var N=new P.opentelemetry.proto.metrics.v1.Metric;if(_.name!=null&&(N.name=String(_.name)),_.description!=null&&(N.description=String(_.description)),_.unit!=null&&(N.unit=String(_.unit)),_.gauge!=null){if(typeof _.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");N.gauge=P.opentelemetry.proto.metrics.v1.Gauge.fromObject(_.gauge)}if(_.sum!=null){if(typeof _.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");N.sum=P.opentelemetry.proto.metrics.v1.Sum.fromObject(_.sum)}if(_.histogram!=null){if(typeof _.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");N.histogram=P.opentelemetry.proto.metrics.v1.Histogram.fromObject(_.histogram)}if(_.exponentialHistogram!=null){if(typeof _.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");N.exponentialHistogram=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(_.exponentialHistogram)}if(_.summary!=null){if(typeof _.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");N.summary=P.opentelemetry.proto.metrics.v1.Summary.fromObject(_.summary)}return N},C.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.name="",I.description="",I.unit=""),_.name!=null&&_.hasOwnProperty("name")&&(I.name=_.name),_.description!=null&&_.hasOwnProperty("description")&&(I.description=_.description),_.unit!=null&&_.hasOwnProperty("unit")&&(I.unit=_.unit),_.gauge!=null&&_.hasOwnProperty("gauge")&&(I.gauge=P.opentelemetry.proto.metrics.v1.Gauge.toObject(_.gauge,N),N.oneofs&&(I.data="gauge")),_.sum!=null&&_.hasOwnProperty("sum")&&(I.sum=P.opentelemetry.proto.metrics.v1.Sum.toObject(_.sum,N),N.oneofs&&(I.data="sum")),_.histogram!=null&&_.hasOwnProperty("histogram")&&(I.histogram=P.opentelemetry.proto.metrics.v1.Histogram.toObject(_.histogram,N),N.oneofs&&(I.data="histogram")),_.exponentialHistogram!=null&&_.hasOwnProperty("exponentialHistogram")&&(I.exponentialHistogram=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(_.exponentialHistogram,N),N.oneofs&&(I.data="exponentialHistogram")),_.summary!=null&&_.hasOwnProperty("summary")&&(I.summary=P.opentelemetry.proto.metrics.v1.Summary.toObject(_.summary,N),N.oneofs&&(I.data="summary")),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.Metric"},C})(),U.Gauge=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Gauge;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Gauge)return y;var _=new P.opentelemetry.proto.metrics.v1.Gauge;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(y.dataPoints[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(y.dataPoints[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Gauge"},C})(),U.Sum=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.prototype.aggregationTemporality=null,C.prototype.isMonotonic=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return y.aggregationTemporality!=null&&Object.hasOwnProperty.call(y,"aggregationTemporality")&&_.uint32(16).int32(y.aggregationTemporality),y.isMonotonic!=null&&Object.hasOwnProperty.call(y,"isMonotonic")&&_.uint32(24).bool(y.isMonotonic),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Sum;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(y,y.uint32()));break}case 2:{I.aggregationTemporality=y.int32();break}case 3:{I.isMonotonic=y.bool();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}if(y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality"))switch(y.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return y.isMonotonic!=null&&y.hasOwnProperty("isMonotonic")&&typeof y.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Sum)return y;var _=new P.opentelemetry.proto.metrics.v1.Sum;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(y.dataPoints[N])}}switch(y.aggregationTemporality){default:if(typeof y.aggregationTemporality=="number"){_.aggregationTemporality=y.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:_.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:_.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:_.aggregationTemporality=2;break}return y.isMonotonic!=null&&(_.isMonotonic=!!y.isMonotonic),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),_.defaults&&(N.aggregationTemporality=_.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,N.isMonotonic=!1),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(y.dataPoints[I],_)}return y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality")&&(N.aggregationTemporality=_.enums===String?P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]===void 0?y.aggregationTemporality:P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]:y.aggregationTemporality),y.isMonotonic!=null&&y.hasOwnProperty("isMonotonic")&&(N.isMonotonic=y.isMonotonic),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Sum"},C})(),U.Histogram=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.prototype.aggregationTemporality=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return y.aggregationTemporality!=null&&Object.hasOwnProperty.call(y,"aggregationTemporality")&&_.uint32(16).int32(y.aggregationTemporality),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Histogram;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(y,y.uint32()));break}case 2:{I.aggregationTemporality=y.int32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}if(y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality"))switch(y.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Histogram)return y;var _=new P.opentelemetry.proto.metrics.v1.Histogram;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(y.dataPoints[N])}}switch(y.aggregationTemporality){default:if(typeof y.aggregationTemporality=="number"){_.aggregationTemporality=y.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:_.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:_.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:_.aggregationTemporality=2;break}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),_.defaults&&(N.aggregationTemporality=_.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(y.dataPoints[I],_)}return y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality")&&(N.aggregationTemporality=_.enums===String?P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]===void 0?y.aggregationTemporality:P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]:y.aggregationTemporality),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Histogram"},C})(),U.ExponentialHistogram=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.prototype.aggregationTemporality=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return y.aggregationTemporality!=null&&Object.hasOwnProperty.call(y,"aggregationTemporality")&&_.uint32(16).int32(y.aggregationTemporality),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.ExponentialHistogram;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(y,y.uint32()));break}case 2:{I.aggregationTemporality=y.int32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}if(y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality"))switch(y.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.ExponentialHistogram)return y;var _=new P.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(y.dataPoints[N])}}switch(y.aggregationTemporality){default:if(typeof y.aggregationTemporality=="number"){_.aggregationTemporality=y.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:_.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:_.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:_.aggregationTemporality=2;break}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),_.defaults&&(N.aggregationTemporality=_.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(y.dataPoints[I],_)}return y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality")&&(N.aggregationTemporality=_.enums===String?P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]===void 0?y.aggregationTemporality:P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]:y.aggregationTemporality),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},C})(),U.Summary=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Summary;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Summary)return y;var _=new P.opentelemetry.proto.metrics.v1.Summary;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(y.dataPoints[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(y.dataPoints[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Summary"},C})(),U.AggregationTemporality=(function(){var C={},L=Object.create(C);return L[C[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,L[C[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,L[C[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,L})(),U.DataPointFlags=(function(){var C={},L=Object.create(C);return L[C[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,L[C[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,L})(),U.NumberDataPoint=(function(){function C(y){if(this.attributes=[],this.exemplars=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.asDouble=null,C.prototype.asInt=null,C.prototype.exemplars=O.emptyArray,C.prototype.flags=null;var L;return Object.defineProperty(C.prototype,"value",{get:O.oneOfGetter(L=["asDouble","asInt"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.startTimeUnixNano!=null&&Object.hasOwnProperty.call(_,"startTimeUnixNano")&&N.uint32(17).fixed64(_.startTimeUnixNano),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(25).fixed64(_.timeUnixNano),_.asDouble!=null&&Object.hasOwnProperty.call(_,"asDouble")&&N.uint32(33).double(_.asDouble),_.exemplars!=null&&_.exemplars.length)for(var I=0;I<_.exemplars.length;++I)P.opentelemetry.proto.metrics.v1.Exemplar.encode(_.exemplars[I],N.uint32(42).fork()).ldelim();if(_.asInt!=null&&Object.hasOwnProperty.call(_,"asInt")&&N.uint32(49).sfixed64(_.asInt),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(58).fork()).ldelim();return _.flags!=null&&Object.hasOwnProperty.call(_,"flags")&&N.uint32(64).uint32(_.flags),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.NumberDataPoint;_.pos<I;){var V=_.uint32();switch(V>>>3){case 7:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.startTimeUnixNano=_.fixed64();break}case 3:{x.timeUnixNano=_.fixed64();break}case 4:{x.asDouble=_.double();break}case 6:{x.asInt=_.sfixed64();break}case 5:{x.exemplars&&x.exemplars.length||(x.exemplars=[]),x.exemplars.push(P.opentelemetry.proto.metrics.v1.Exemplar.decode(_,_.uint32()));break}case 8:{x.flags=_.uint32();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var I=0;I<_.attributes.length;++I){var x=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[I]);if(x)return"attributes."+x}}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(_.startTimeUnixNano)&&!(_.startTimeUnixNano&&O.isInteger(_.startTimeUnixNano.low)&&O.isInteger(_.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(N.value=1,typeof _.asDouble!="number"))return"asDouble: number expected";if(_.asInt!=null&&_.hasOwnProperty("asInt")){if(N.value===1)return"value: multiple values";if(N.value=1,!O.isInteger(_.asInt)&&!(_.asInt&&O.isInteger(_.asInt.low)&&O.isInteger(_.asInt.high)))return"asInt: integer|Long expected"}if(_.exemplars!=null&&_.hasOwnProperty("exemplars")){if(!Array.isArray(_.exemplars))return"exemplars: array expected";for(var I=0;I<_.exemplars.length;++I){var x=P.opentelemetry.proto.metrics.v1.Exemplar.verify(_.exemplars[I]);if(x)return"exemplars."+x}}return _.flags!=null&&_.hasOwnProperty("flags")&&!O.isInteger(_.flags)?"flags: integer expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.NumberDataPoint)return _;var N=new P.opentelemetry.proto.metrics.v1.NumberDataPoint;if(_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}if(_.startTimeUnixNano!=null&&(O.Long?(N.startTimeUnixNano=O.Long.fromValue(_.startTimeUnixNano)).unsigned=!1:typeof _.startTimeUnixNano=="string"?N.startTimeUnixNano=parseInt(_.startTimeUnixNano,10):typeof _.startTimeUnixNano=="number"?N.startTimeUnixNano=_.startTimeUnixNano:typeof _.startTimeUnixNano=="object"&&(N.startTimeUnixNano=new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber())),_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.asDouble!=null&&(N.asDouble=Number(_.asDouble)),_.asInt!=null&&(O.Long?(N.asInt=O.Long.fromValue(_.asInt)).unsigned=!1:typeof _.asInt=="string"?N.asInt=parseInt(_.asInt,10):typeof _.asInt=="number"?N.asInt=_.asInt:typeof _.asInt=="object"&&(N.asInt=new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber())),_.exemplars){if(!Array.isArray(_.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");N.exemplars=[];for(var I=0;I<_.exemplars.length;++I){if(typeof _.exemplars[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");N.exemplars[I]=P.opentelemetry.proto.metrics.v1.Exemplar.fromObject(_.exemplars[I])}}return _.flags!=null&&(N.flags=_.flags>>>0),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.exemplars=[],I.attributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.startTimeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.startTimeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;I.flags=0}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&(typeof _.startTimeUnixNano=="number"?I.startTimeUnixNano=N.longs===String?String(_.startTimeUnixNano):_.startTimeUnixNano:I.startTimeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.startTimeUnixNano):N.longs===Number?new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber():_.startTimeUnixNano),_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(I.asDouble=N.json&&!isFinite(_.asDouble)?String(_.asDouble):_.asDouble,N.oneofs&&(I.value="asDouble")),_.exemplars&&_.exemplars.length){I.exemplars=[];for(var V=0;V<_.exemplars.length;++V)I.exemplars[V]=P.opentelemetry.proto.metrics.v1.Exemplar.toObject(_.exemplars[V],N)}if(_.asInt!=null&&_.hasOwnProperty("asInt")&&(typeof _.asInt=="number"?I.asInt=N.longs===String?String(_.asInt):_.asInt:I.asInt=N.longs===String?O.Long.prototype.toString.call(_.asInt):N.longs===Number?new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber():_.asInt,N.oneofs&&(I.value="asInt")),_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}return _.flags!=null&&_.hasOwnProperty("flags")&&(I.flags=_.flags),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},C})(),U.HistogramDataPoint=(function(){function C(y){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.count=null,C.prototype.sum=null,C.prototype.bucketCounts=O.emptyArray,C.prototype.explicitBounds=O.emptyArray,C.prototype.exemplars=O.emptyArray,C.prototype.flags=null,C.prototype.min=null,C.prototype.max=null;var L;return Object.defineProperty(C.prototype,"_sum",{get:O.oneOfGetter(L=["sum"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_min",{get:O.oneOfGetter(L=["min"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_max",{get:O.oneOfGetter(L=["max"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.startTimeUnixNano!=null&&Object.hasOwnProperty.call(_,"startTimeUnixNano")&&N.uint32(17).fixed64(_.startTimeUnixNano),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(25).fixed64(_.timeUnixNano),_.count!=null&&Object.hasOwnProperty.call(_,"count")&&N.uint32(33).fixed64(_.count),_.sum!=null&&Object.hasOwnProperty.call(_,"sum")&&N.uint32(41).double(_.sum),_.bucketCounts!=null&&_.bucketCounts.length){N.uint32(50).fork();for(var I=0;I<_.bucketCounts.length;++I)N.fixed64(_.bucketCounts[I]);N.ldelim()}if(_.explicitBounds!=null&&_.explicitBounds.length){N.uint32(58).fork();for(var I=0;I<_.explicitBounds.length;++I)N.double(_.explicitBounds[I]);N.ldelim()}if(_.exemplars!=null&&_.exemplars.length)for(var I=0;I<_.exemplars.length;++I)P.opentelemetry.proto.metrics.v1.Exemplar.encode(_.exemplars[I],N.uint32(66).fork()).ldelim();if(_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(74).fork()).ldelim();return _.flags!=null&&Object.hasOwnProperty.call(_,"flags")&&N.uint32(80).uint32(_.flags),_.min!=null&&Object.hasOwnProperty.call(_,"min")&&N.uint32(89).double(_.min),_.max!=null&&Object.hasOwnProperty.call(_,"max")&&N.uint32(97).double(_.max),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.HistogramDataPoint;_.pos<I;){var V=_.uint32();switch(V>>>3){case 9:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.startTimeUnixNano=_.fixed64();break}case 3:{x.timeUnixNano=_.fixed64();break}case 4:{x.count=_.fixed64();break}case 5:{x.sum=_.double();break}case 6:{if(x.bucketCounts&&x.bucketCounts.length||(x.bucketCounts=[]),(V&7)===2)for(var k=_.uint32()+_.pos;_.pos<k;)x.bucketCounts.push(_.fixed64());else x.bucketCounts.push(_.fixed64());break}case 7:{if(x.explicitBounds&&x.explicitBounds.length||(x.explicitBounds=[]),(V&7)===2)for(var k=_.uint32()+_.pos;_.pos<k;)x.explicitBounds.push(_.double());else x.explicitBounds.push(_.double());break}case 8:{x.exemplars&&x.exemplars.length||(x.exemplars=[]),x.exemplars.push(P.opentelemetry.proto.metrics.v1.Exemplar.decode(_,_.uint32()));break}case 10:{x.flags=_.uint32();break}case 11:{x.min=_.double();break}case 12:{x.max=_.double();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(_.startTimeUnixNano)&&!(_.startTimeUnixNano&&O.isInteger(_.startTimeUnixNano.low)&&O.isInteger(_.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.count!=null&&_.hasOwnProperty("count")&&!O.isInteger(_.count)&&!(_.count&&O.isInteger(_.count.low)&&O.isInteger(_.count.high)))return"count: integer|Long expected";if(_.sum!=null&&_.hasOwnProperty("sum")&&typeof _.sum!="number")return"sum: number expected";if(_.bucketCounts!=null&&_.hasOwnProperty("bucketCounts")){if(!Array.isArray(_.bucketCounts))return"bucketCounts: array expected";for(var N=0;N<_.bucketCounts.length;++N)if(!O.isInteger(_.bucketCounts[N])&&!(_.bucketCounts[N]&&O.isInteger(_.bucketCounts[N].low)&&O.isInteger(_.bucketCounts[N].high)))return"bucketCounts: integer|Long[] expected"}if(_.explicitBounds!=null&&_.hasOwnProperty("explicitBounds")){if(!Array.isArray(_.explicitBounds))return"explicitBounds: array expected";for(var N=0;N<_.explicitBounds.length;++N)if(typeof _.explicitBounds[N]!="number")return"explicitBounds: number[] expected"}if(_.exemplars!=null&&_.hasOwnProperty("exemplars")){if(!Array.isArray(_.exemplars))return"exemplars: array expected";for(var N=0;N<_.exemplars.length;++N){var I=P.opentelemetry.proto.metrics.v1.Exemplar.verify(_.exemplars[N]);if(I)return"exemplars."+I}}return _.flags!=null&&_.hasOwnProperty("flags")&&!O.isInteger(_.flags)?"flags: integer expected":_.min!=null&&_.hasOwnProperty("min")&&typeof _.min!="number"?"min: number expected":_.max!=null&&_.hasOwnProperty("max")&&typeof _.max!="number"?"max: number expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.HistogramDataPoint)return _;var N=new P.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}if(_.startTimeUnixNano!=null&&(O.Long?(N.startTimeUnixNano=O.Long.fromValue(_.startTimeUnixNano)).unsigned=!1:typeof _.startTimeUnixNano=="string"?N.startTimeUnixNano=parseInt(_.startTimeUnixNano,10):typeof _.startTimeUnixNano=="number"?N.startTimeUnixNano=_.startTimeUnixNano:typeof _.startTimeUnixNano=="object"&&(N.startTimeUnixNano=new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber())),_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.count!=null&&(O.Long?(N.count=O.Long.fromValue(_.count)).unsigned=!1:typeof _.count=="string"?N.count=parseInt(_.count,10):typeof _.count=="number"?N.count=_.count:typeof _.count=="object"&&(N.count=new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber())),_.sum!=null&&(N.sum=Number(_.sum)),_.bucketCounts){if(!Array.isArray(_.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");N.bucketCounts=[];for(var I=0;I<_.bucketCounts.length;++I)O.Long?(N.bucketCounts[I]=O.Long.fromValue(_.bucketCounts[I])).unsigned=!1:typeof _.bucketCounts[I]=="string"?N.bucketCounts[I]=parseInt(_.bucketCounts[I],10):typeof _.bucketCounts[I]=="number"?N.bucketCounts[I]=_.bucketCounts[I]:typeof _.bucketCounts[I]=="object"&&(N.bucketCounts[I]=new O.LongBits(_.bucketCounts[I].low>>>0,_.bucketCounts[I].high>>>0).toNumber())}if(_.explicitBounds){if(!Array.isArray(_.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");N.explicitBounds=[];for(var I=0;I<_.explicitBounds.length;++I)N.explicitBounds[I]=Number(_.explicitBounds[I])}if(_.exemplars){if(!Array.isArray(_.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");N.exemplars=[];for(var I=0;I<_.exemplars.length;++I){if(typeof _.exemplars[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");N.exemplars[I]=P.opentelemetry.proto.metrics.v1.Exemplar.fromObject(_.exemplars[I])}}return _.flags!=null&&(N.flags=_.flags>>>0),_.min!=null&&(N.min=Number(_.min)),_.max!=null&&(N.max=Number(_.max)),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.bucketCounts=[],I.explicitBounds=[],I.exemplars=[],I.attributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.startTimeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.startTimeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.count=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.count=N.longs===String?"0":0;I.flags=0}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&(typeof _.startTimeUnixNano=="number"?I.startTimeUnixNano=N.longs===String?String(_.startTimeUnixNano):_.startTimeUnixNano:I.startTimeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.startTimeUnixNano):N.longs===Number?new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber():_.startTimeUnixNano),_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.count!=null&&_.hasOwnProperty("count")&&(typeof _.count=="number"?I.count=N.longs===String?String(_.count):_.count:I.count=N.longs===String?O.Long.prototype.toString.call(_.count):N.longs===Number?new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber():_.count),_.sum!=null&&_.hasOwnProperty("sum")&&(I.sum=N.json&&!isFinite(_.sum)?String(_.sum):_.sum,N.oneofs&&(I._sum="sum")),_.bucketCounts&&_.bucketCounts.length){I.bucketCounts=[];for(var V=0;V<_.bucketCounts.length;++V)typeof _.bucketCounts[V]=="number"?I.bucketCounts[V]=N.longs===String?String(_.bucketCounts[V]):_.bucketCounts[V]:I.bucketCounts[V]=N.longs===String?O.Long.prototype.toString.call(_.bucketCounts[V]):N.longs===Number?new O.LongBits(_.bucketCounts[V].low>>>0,_.bucketCounts[V].high>>>0).toNumber():_.bucketCounts[V]}if(_.explicitBounds&&_.explicitBounds.length){I.explicitBounds=[];for(var V=0;V<_.explicitBounds.length;++V)I.explicitBounds[V]=N.json&&!isFinite(_.explicitBounds[V])?String(_.explicitBounds[V]):_.explicitBounds[V]}if(_.exemplars&&_.exemplars.length){I.exemplars=[];for(var V=0;V<_.exemplars.length;++V)I.exemplars[V]=P.opentelemetry.proto.metrics.v1.Exemplar.toObject(_.exemplars[V],N)}if(_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}return _.flags!=null&&_.hasOwnProperty("flags")&&(I.flags=_.flags),_.min!=null&&_.hasOwnProperty("min")&&(I.min=N.json&&!isFinite(_.min)?String(_.min):_.min,N.oneofs&&(I._min="min")),_.max!=null&&_.hasOwnProperty("max")&&(I.max=N.json&&!isFinite(_.max)?String(_.max):_.max,N.oneofs&&(I._max="max")),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},C})(),U.ExponentialHistogramDataPoint=(function(){function C(y){if(this.attributes=[],this.exemplars=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.count=null,C.prototype.sum=null,C.prototype.scale=null,C.prototype.zeroCount=null,C.prototype.positive=null,C.prototype.negative=null,C.prototype.flags=null,C.prototype.exemplars=O.emptyArray,C.prototype.min=null,C.prototype.max=null,C.prototype.zeroThreshold=null;var L;return Object.defineProperty(C.prototype,"_sum",{get:O.oneOfGetter(L=["sum"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_min",{get:O.oneOfGetter(L=["min"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_max",{get:O.oneOfGetter(L=["max"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(10).fork()).ldelim();if(_.startTimeUnixNano!=null&&Object.hasOwnProperty.call(_,"startTimeUnixNano")&&N.uint32(17).fixed64(_.startTimeUnixNano),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(25).fixed64(_.timeUnixNano),_.count!=null&&Object.hasOwnProperty.call(_,"count")&&N.uint32(33).fixed64(_.count),_.sum!=null&&Object.hasOwnProperty.call(_,"sum")&&N.uint32(41).double(_.sum),_.scale!=null&&Object.hasOwnProperty.call(_,"scale")&&N.uint32(48).sint32(_.scale),_.zeroCount!=null&&Object.hasOwnProperty.call(_,"zeroCount")&&N.uint32(57).fixed64(_.zeroCount),_.positive!=null&&Object.hasOwnProperty.call(_,"positive")&&P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(_.positive,N.uint32(66).fork()).ldelim(),_.negative!=null&&Object.hasOwnProperty.call(_,"negative")&&P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(_.negative,N.uint32(74).fork()).ldelim(),_.flags!=null&&Object.hasOwnProperty.call(_,"flags")&&N.uint32(80).uint32(_.flags),_.exemplars!=null&&_.exemplars.length)for(var I=0;I<_.exemplars.length;++I)P.opentelemetry.proto.metrics.v1.Exemplar.encode(_.exemplars[I],N.uint32(90).fork()).ldelim();return _.min!=null&&Object.hasOwnProperty.call(_,"min")&&N.uint32(97).double(_.min),_.max!=null&&Object.hasOwnProperty.call(_,"max")&&N.uint32(105).double(_.max),_.zeroThreshold!=null&&Object.hasOwnProperty.call(_,"zeroThreshold")&&N.uint32(113).double(_.zeroThreshold),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.startTimeUnixNano=_.fixed64();break}case 3:{x.timeUnixNano=_.fixed64();break}case 4:{x.count=_.fixed64();break}case 5:{x.sum=_.double();break}case 6:{x.scale=_.sint32();break}case 7:{x.zeroCount=_.fixed64();break}case 8:{x.positive=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(_,_.uint32());break}case 9:{x.negative=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(_,_.uint32());break}case 10:{x.flags=_.uint32();break}case 11:{x.exemplars&&x.exemplars.length||(x.exemplars=[]),x.exemplars.push(P.opentelemetry.proto.metrics.v1.Exemplar.decode(_,_.uint32()));break}case 12:{x.min=_.double();break}case 13:{x.max=_.double();break}case 14:{x.zeroThreshold=_.double();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(_.startTimeUnixNano)&&!(_.startTimeUnixNano&&O.isInteger(_.startTimeUnixNano.low)&&O.isInteger(_.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.count!=null&&_.hasOwnProperty("count")&&!O.isInteger(_.count)&&!(_.count&&O.isInteger(_.count.low)&&O.isInteger(_.count.high)))return"count: integer|Long expected";if(_.sum!=null&&_.hasOwnProperty("sum")&&typeof _.sum!="number")return"sum: number expected";if(_.scale!=null&&_.hasOwnProperty("scale")&&!O.isInteger(_.scale))return"scale: integer expected";if(_.zeroCount!=null&&_.hasOwnProperty("zeroCount")&&!O.isInteger(_.zeroCount)&&!(_.zeroCount&&O.isInteger(_.zeroCount.low)&&O.isInteger(_.zeroCount.high)))return"zeroCount: integer|Long expected";if(_.positive!=null&&_.hasOwnProperty("positive")){var I=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(_.positive);if(I)return"positive."+I}if(_.negative!=null&&_.hasOwnProperty("negative")){var I=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(_.negative);if(I)return"negative."+I}if(_.flags!=null&&_.hasOwnProperty("flags")&&!O.isInteger(_.flags))return"flags: integer expected";if(_.exemplars!=null&&_.hasOwnProperty("exemplars")){if(!Array.isArray(_.exemplars))return"exemplars: array expected";for(var N=0;N<_.exemplars.length;++N){var I=P.opentelemetry.proto.metrics.v1.Exemplar.verify(_.exemplars[N]);if(I)return"exemplars."+I}}return _.min!=null&&_.hasOwnProperty("min")&&typeof _.min!="number"?"min: number expected":_.max!=null&&_.hasOwnProperty("max")&&typeof _.max!="number"?"max: number expected":_.zeroThreshold!=null&&_.hasOwnProperty("zeroThreshold")&&typeof _.zeroThreshold!="number"?"zeroThreshold: number expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return _;var N=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}if(_.startTimeUnixNano!=null&&(O.Long?(N.startTimeUnixNano=O.Long.fromValue(_.startTimeUnixNano)).unsigned=!1:typeof _.startTimeUnixNano=="string"?N.startTimeUnixNano=parseInt(_.startTimeUnixNano,10):typeof _.startTimeUnixNano=="number"?N.startTimeUnixNano=_.startTimeUnixNano:typeof _.startTimeUnixNano=="object"&&(N.startTimeUnixNano=new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber())),_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.count!=null&&(O.Long?(N.count=O.Long.fromValue(_.count)).unsigned=!1:typeof _.count=="string"?N.count=parseInt(_.count,10):typeof _.count=="number"?N.count=_.count:typeof _.count=="object"&&(N.count=new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber())),_.sum!=null&&(N.sum=Number(_.sum)),_.scale!=null&&(N.scale=_.scale|0),_.zeroCount!=null&&(O.Long?(N.zeroCount=O.Long.fromValue(_.zeroCount)).unsigned=!1:typeof _.zeroCount=="string"?N.zeroCount=parseInt(_.zeroCount,10):typeof _.zeroCount=="number"?N.zeroCount=_.zeroCount:typeof _.zeroCount=="object"&&(N.zeroCount=new O.LongBits(_.zeroCount.low>>>0,_.zeroCount.high>>>0).toNumber())),_.positive!=null){if(typeof _.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");N.positive=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(_.positive)}if(_.negative!=null){if(typeof _.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");N.negative=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(_.negative)}if(_.flags!=null&&(N.flags=_.flags>>>0),_.exemplars){if(!Array.isArray(_.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");N.exemplars=[];for(var I=0;I<_.exemplars.length;++I){if(typeof _.exemplars[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");N.exemplars[I]=P.opentelemetry.proto.metrics.v1.Exemplar.fromObject(_.exemplars[I])}}return _.min!=null&&(N.min=Number(_.min)),_.max!=null&&(N.max=Number(_.max)),_.zeroThreshold!=null&&(N.zeroThreshold=Number(_.zeroThreshold)),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.attributes=[],I.exemplars=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.startTimeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.startTimeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.count=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.count=N.longs===String?"0":0;if(I.scale=0,O.Long){var x=new O.Long(0,0,!1);I.zeroCount=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.zeroCount=N.longs===String?"0":0;I.positive=null,I.negative=null,I.flags=0,I.zeroThreshold=0}if(_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&(typeof _.startTimeUnixNano=="number"?I.startTimeUnixNano=N.longs===String?String(_.startTimeUnixNano):_.startTimeUnixNano:I.startTimeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.startTimeUnixNano):N.longs===Number?new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber():_.startTimeUnixNano),_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.count!=null&&_.hasOwnProperty("count")&&(typeof _.count=="number"?I.count=N.longs===String?String(_.count):_.count:I.count=N.longs===String?O.Long.prototype.toString.call(_.count):N.longs===Number?new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber():_.count),_.sum!=null&&_.hasOwnProperty("sum")&&(I.sum=N.json&&!isFinite(_.sum)?String(_.sum):_.sum,N.oneofs&&(I._sum="sum")),_.scale!=null&&_.hasOwnProperty("scale")&&(I.scale=_.scale),_.zeroCount!=null&&_.hasOwnProperty("zeroCount")&&(typeof _.zeroCount=="number"?I.zeroCount=N.longs===String?String(_.zeroCount):_.zeroCount:I.zeroCount=N.longs===String?O.Long.prototype.toString.call(_.zeroCount):N.longs===Number?new O.LongBits(_.zeroCount.low>>>0,_.zeroCount.high>>>0).toNumber():_.zeroCount),_.positive!=null&&_.hasOwnProperty("positive")&&(I.positive=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(_.positive,N)),_.negative!=null&&_.hasOwnProperty("negative")&&(I.negative=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(_.negative,N)),_.flags!=null&&_.hasOwnProperty("flags")&&(I.flags=_.flags),_.exemplars&&_.exemplars.length){I.exemplars=[];for(var V=0;V<_.exemplars.length;++V)I.exemplars[V]=P.opentelemetry.proto.metrics.v1.Exemplar.toObject(_.exemplars[V],N)}return _.min!=null&&_.hasOwnProperty("min")&&(I.min=N.json&&!isFinite(_.min)?String(_.min):_.min,N.oneofs&&(I._min="min")),_.max!=null&&_.hasOwnProperty("max")&&(I.max=N.json&&!isFinite(_.max)?String(_.max):_.max,N.oneofs&&(I._max="max")),_.zeroThreshold!=null&&_.hasOwnProperty("zeroThreshold")&&(I.zeroThreshold=N.json&&!isFinite(_.zeroThreshold)?String(_.zeroThreshold):_.zeroThreshold),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},C.Buckets=(function(){function y(_){if(this.bucketCounts=[],_)for(var N=Object.keys(_),I=0;I<N.length;++I)_[N[I]]!=null&&(this[N[I]]=_[N[I]])}return y.prototype.offset=null,y.prototype.bucketCounts=O.emptyArray,y.create=function(N){return new y(N)},y.encode=function(N,I){if(I||(I=A.create()),N.offset!=null&&Object.hasOwnProperty.call(N,"offset")&&I.uint32(8).sint32(N.offset),N.bucketCounts!=null&&N.bucketCounts.length){I.uint32(18).fork();for(var x=0;x<N.bucketCounts.length;++x)I.uint64(N.bucketCounts[x]);I.ldelim()}return I},y.encodeDelimited=function(N,I){return this.encode(N,I).ldelim()},y.decode=function(N,I){N instanceof T||(N=T.create(N));for(var x=I===void 0?N.len:N.pos+I,V=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;N.pos<x;){var k=N.uint32();switch(k>>>3){case 1:{V.offset=N.sint32();break}case 2:{if(V.bucketCounts&&V.bucketCounts.length||(V.bucketCounts=[]),(k&7)===2)for(var B=N.uint32()+N.pos;N.pos<B;)V.bucketCounts.push(N.uint64());else V.bucketCounts.push(N.uint64());break}default:N.skipType(k&7);break}}return V},y.decodeDelimited=function(N){return N instanceof T||(N=new T(N)),this.decode(N,N.uint32())},y.verify=function(N){if(typeof N!="object"||N===null)return"object expected";if(N.offset!=null&&N.hasOwnProperty("offset")&&!O.isInteger(N.offset))return"offset: integer expected";if(N.bucketCounts!=null&&N.hasOwnProperty("bucketCounts")){if(!Array.isArray(N.bucketCounts))return"bucketCounts: array expected";for(var I=0;I<N.bucketCounts.length;++I)if(!O.isInteger(N.bucketCounts[I])&&!(N.bucketCounts[I]&&O.isInteger(N.bucketCounts[I].low)&&O.isInteger(N.bucketCounts[I].high)))return"bucketCounts: integer|Long[] expected"}return null},y.fromObject=function(N){if(N instanceof P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return N;var I=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(N.offset!=null&&(I.offset=N.offset|0),N.bucketCounts){if(!Array.isArray(N.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");I.bucketCounts=[];for(var x=0;x<N.bucketCounts.length;++x)O.Long?(I.bucketCounts[x]=O.Long.fromValue(N.bucketCounts[x])).unsigned=!0:typeof N.bucketCounts[x]=="string"?I.bucketCounts[x]=parseInt(N.bucketCounts[x],10):typeof N.bucketCounts[x]=="number"?I.bucketCounts[x]=N.bucketCounts[x]:typeof N.bucketCounts[x]=="object"&&(I.bucketCounts[x]=new O.LongBits(N.bucketCounts[x].low>>>0,N.bucketCounts[x].high>>>0).toNumber(!0))}return I},y.toObject=function(N,I){I||(I={});var x={};if((I.arrays||I.defaults)&&(x.bucketCounts=[]),I.defaults&&(x.offset=0),N.offset!=null&&N.hasOwnProperty("offset")&&(x.offset=N.offset),N.bucketCounts&&N.bucketCounts.length){x.bucketCounts=[];for(var V=0;V<N.bucketCounts.length;++V)typeof N.bucketCounts[V]=="number"?x.bucketCounts[V]=I.longs===String?String(N.bucketCounts[V]):N.bucketCounts[V]:x.bucketCounts[V]=I.longs===String?O.Long.prototype.toString.call(N.bucketCounts[V]):I.longs===Number?new O.LongBits(N.bucketCounts[V].low>>>0,N.bucketCounts[V].high>>>0).toNumber(!0):N.bucketCounts[V]}return x},y.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},y.getTypeUrl=function(N){return N===void 0&&(N="type.googleapis.com"),N+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},y})(),C})(),U.SummaryDataPoint=(function(){function C(L){if(this.attributes=[],this.quantileValues=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.count=null,C.prototype.sum=null,C.prototype.quantileValues=O.emptyArray,C.prototype.flags=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.startTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"startTimeUnixNano")&&_.uint32(17).fixed64(y.startTimeUnixNano),y.timeUnixNano!=null&&Object.hasOwnProperty.call(y,"timeUnixNano")&&_.uint32(25).fixed64(y.timeUnixNano),y.count!=null&&Object.hasOwnProperty.call(y,"count")&&_.uint32(33).fixed64(y.count),y.sum!=null&&Object.hasOwnProperty.call(y,"sum")&&_.uint32(41).double(y.sum),y.quantileValues!=null&&y.quantileValues.length)for(var N=0;N<y.quantileValues.length;++N)P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(y.quantileValues[N],_.uint32(50).fork()).ldelim();if(y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(58).fork()).ldelim();return y.flags!=null&&Object.hasOwnProperty.call(y,"flags")&&_.uint32(64).uint32(y.flags),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint;y.pos<N;){var x=y.uint32();switch(x>>>3){case 7:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 2:{I.startTimeUnixNano=y.fixed64();break}case 3:{I.timeUnixNano=y.fixed64();break}case 4:{I.count=y.fixed64();break}case 5:{I.sum=y.double();break}case 6:{I.quantileValues&&I.quantileValues.length||(I.quantileValues=[]),I.quantileValues.push(P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(y,y.uint32()));break}case 8:{I.flags=y.uint32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}if(y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(y.startTimeUnixNano)&&!(y.startTimeUnixNano&&O.isInteger(y.startTimeUnixNano.low)&&O.isInteger(y.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&!O.isInteger(y.timeUnixNano)&&!(y.timeUnixNano&&O.isInteger(y.timeUnixNano.low)&&O.isInteger(y.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(y.count!=null&&y.hasOwnProperty("count")&&!O.isInteger(y.count)&&!(y.count&&O.isInteger(y.count.low)&&O.isInteger(y.count.high)))return"count: integer|Long expected";if(y.sum!=null&&y.hasOwnProperty("sum")&&typeof y.sum!="number")return"sum: number expected";if(y.quantileValues!=null&&y.hasOwnProperty("quantileValues")){if(!Array.isArray(y.quantileValues))return"quantileValues: array expected";for(var _=0;_<y.quantileValues.length;++_){var N=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(y.quantileValues[_]);if(N)return"quantileValues."+N}}return y.flags!=null&&y.hasOwnProperty("flags")&&!O.isInteger(y.flags)?"flags: integer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.SummaryDataPoint)return y;var _=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}if(y.startTimeUnixNano!=null&&(O.Long?(_.startTimeUnixNano=O.Long.fromValue(y.startTimeUnixNano)).unsigned=!1:typeof y.startTimeUnixNano=="string"?_.startTimeUnixNano=parseInt(y.startTimeUnixNano,10):typeof y.startTimeUnixNano=="number"?_.startTimeUnixNano=y.startTimeUnixNano:typeof y.startTimeUnixNano=="object"&&(_.startTimeUnixNano=new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber())),y.timeUnixNano!=null&&(O.Long?(_.timeUnixNano=O.Long.fromValue(y.timeUnixNano)).unsigned=!1:typeof y.timeUnixNano=="string"?_.timeUnixNano=parseInt(y.timeUnixNano,10):typeof y.timeUnixNano=="number"?_.timeUnixNano=y.timeUnixNano:typeof y.timeUnixNano=="object"&&(_.timeUnixNano=new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber())),y.count!=null&&(O.Long?(_.count=O.Long.fromValue(y.count)).unsigned=!1:typeof y.count=="string"?_.count=parseInt(y.count,10):typeof y.count=="number"?_.count=y.count:typeof y.count=="object"&&(_.count=new O.LongBits(y.count.low>>>0,y.count.high>>>0).toNumber())),y.sum!=null&&(_.sum=Number(y.sum)),y.quantileValues){if(!Array.isArray(y.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");_.quantileValues=[];for(var N=0;N<y.quantileValues.length;++N){if(typeof y.quantileValues[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");_.quantileValues[N]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(y.quantileValues[N])}}return y.flags!=null&&(_.flags=y.flags>>>0),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.quantileValues=[],N.attributes=[]),_.defaults){if(O.Long){var I=new O.Long(0,0,!1);N.startTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.startTimeUnixNano=_.longs===String?"0":0;if(O.Long){var I=new O.Long(0,0,!1);N.timeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.timeUnixNano=_.longs===String?"0":0;if(O.Long){var I=new O.Long(0,0,!1);N.count=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.count=_.longs===String?"0":0;N.sum=0,N.flags=0}if(y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&(typeof y.startTimeUnixNano=="number"?N.startTimeUnixNano=_.longs===String?String(y.startTimeUnixNano):y.startTimeUnixNano:N.startTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.startTimeUnixNano):_.longs===Number?new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber():y.startTimeUnixNano),y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&(typeof y.timeUnixNano=="number"?N.timeUnixNano=_.longs===String?String(y.timeUnixNano):y.timeUnixNano:N.timeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.timeUnixNano):_.longs===Number?new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber():y.timeUnixNano),y.count!=null&&y.hasOwnProperty("count")&&(typeof y.count=="number"?N.count=_.longs===String?String(y.count):y.count:N.count=_.longs===String?O.Long.prototype.toString.call(y.count):_.longs===Number?new O.LongBits(y.count.low>>>0,y.count.high>>>0).toNumber():y.count),y.sum!=null&&y.hasOwnProperty("sum")&&(N.sum=_.json&&!isFinite(y.sum)?String(y.sum):y.sum),y.quantileValues&&y.quantileValues.length){N.quantileValues=[];for(var x=0;x<y.quantileValues.length;++x)N.quantileValues[x]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(y.quantileValues[x],_)}if(y.attributes&&y.attributes.length){N.attributes=[];for(var x=0;x<y.attributes.length;++x)N.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[x],_)}return y.flags!=null&&y.hasOwnProperty("flags")&&(N.flags=y.flags),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},C.ValueAtQuantile=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.quantile=null,L.prototype.value=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.quantile!=null&&Object.hasOwnProperty.call(_,"quantile")&&N.uint32(9).double(_.quantile),_.value!=null&&Object.hasOwnProperty.call(_,"value")&&N.uint32(17).double(_.value),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.quantile=_.double();break}case 2:{x.value=_.double();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.quantile!=null&&_.hasOwnProperty("quantile")&&typeof _.quantile!="number"?"quantile: number expected":_.value!=null&&_.hasOwnProperty("value")&&typeof _.value!="number"?"value: number expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return _;var N=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return _.quantile!=null&&(N.quantile=Number(_.quantile)),_.value!=null&&(N.value=Number(_.value)),N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.quantile=0,I.value=0),_.quantile!=null&&_.hasOwnProperty("quantile")&&(I.quantile=N.json&&!isFinite(_.quantile)?String(_.quantile):_.quantile),_.value!=null&&_.hasOwnProperty("value")&&(I.value=N.json&&!isFinite(_.value)?String(_.value):_.value),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},L})(),C})(),U.Exemplar=(function(){function C(y){if(this.filteredAttributes=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.filteredAttributes=O.emptyArray,C.prototype.timeUnixNano=null,C.prototype.asDouble=null,C.prototype.asInt=null,C.prototype.spanId=null,C.prototype.traceId=null;var L;return Object.defineProperty(C.prototype,"value",{get:O.oneOfGetter(L=["asDouble","asInt"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(17).fixed64(_.timeUnixNano),_.asDouble!=null&&Object.hasOwnProperty.call(_,"asDouble")&&N.uint32(25).double(_.asDouble),_.spanId!=null&&Object.hasOwnProperty.call(_,"spanId")&&N.uint32(34).bytes(_.spanId),_.traceId!=null&&Object.hasOwnProperty.call(_,"traceId")&&N.uint32(42).bytes(_.traceId),_.asInt!=null&&Object.hasOwnProperty.call(_,"asInt")&&N.uint32(49).sfixed64(_.asInt),_.filteredAttributes!=null&&_.filteredAttributes.length)for(var I=0;I<_.filteredAttributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.filteredAttributes[I],N.uint32(58).fork()).ldelim();return N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.Exemplar;_.pos<I;){var V=_.uint32();switch(V>>>3){case 7:{x.filteredAttributes&&x.filteredAttributes.length||(x.filteredAttributes=[]),x.filteredAttributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.timeUnixNano=_.fixed64();break}case 3:{x.asDouble=_.double();break}case 6:{x.asInt=_.sfixed64();break}case 4:{x.spanId=_.bytes();break}case 5:{x.traceId=_.bytes();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.filteredAttributes!=null&&_.hasOwnProperty("filteredAttributes")){if(!Array.isArray(_.filteredAttributes))return"filteredAttributes: array expected";for(var I=0;I<_.filteredAttributes.length;++I){var x=P.opentelemetry.proto.common.v1.KeyValue.verify(_.filteredAttributes[I]);if(x)return"filteredAttributes."+x}}if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(N.value=1,typeof _.asDouble!="number"))return"asDouble: number expected";if(_.asInt!=null&&_.hasOwnProperty("asInt")){if(N.value===1)return"value: multiple values";if(N.value=1,!O.isInteger(_.asInt)&&!(_.asInt&&O.isInteger(_.asInt.low)&&O.isInteger(_.asInt.high)))return"asInt: integer|Long expected"}return _.spanId!=null&&_.hasOwnProperty("spanId")&&!(_.spanId&&typeof _.spanId.length=="number"||O.isString(_.spanId))?"spanId: buffer expected":_.traceId!=null&&_.hasOwnProperty("traceId")&&!(_.traceId&&typeof _.traceId.length=="number"||O.isString(_.traceId))?"traceId: buffer expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.Exemplar)return _;var N=new P.opentelemetry.proto.metrics.v1.Exemplar;if(_.filteredAttributes){if(!Array.isArray(_.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");N.filteredAttributes=[];for(var I=0;I<_.filteredAttributes.length;++I){if(typeof _.filteredAttributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");N.filteredAttributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.filteredAttributes[I])}}return _.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.asDouble!=null&&(N.asDouble=Number(_.asDouble)),_.asInt!=null&&(O.Long?(N.asInt=O.Long.fromValue(_.asInt)).unsigned=!1:typeof _.asInt=="string"?N.asInt=parseInt(_.asInt,10):typeof _.asInt=="number"?N.asInt=_.asInt:typeof _.asInt=="object"&&(N.asInt=new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber())),_.spanId!=null&&(typeof _.spanId=="string"?O.base64.decode(_.spanId,N.spanId=O.newBuffer(O.base64.length(_.spanId)),0):_.spanId.length>=0&&(N.spanId=_.spanId)),_.traceId!=null&&(typeof _.traceId=="string"?O.base64.decode(_.traceId,N.traceId=O.newBuffer(O.base64.length(_.traceId)),0):_.traceId.length>=0&&(N.traceId=_.traceId)),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.filteredAttributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;N.bytes===String?I.spanId="":(I.spanId=[],N.bytes!==Array&&(I.spanId=O.newBuffer(I.spanId))),N.bytes===String?I.traceId="":(I.traceId=[],N.bytes!==Array&&(I.traceId=O.newBuffer(I.traceId)))}if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(I.asDouble=N.json&&!isFinite(_.asDouble)?String(_.asDouble):_.asDouble,N.oneofs&&(I.value="asDouble")),_.spanId!=null&&_.hasOwnProperty("spanId")&&(I.spanId=N.bytes===String?O.base64.encode(_.spanId,0,_.spanId.length):N.bytes===Array?Array.prototype.slice.call(_.spanId):_.spanId),_.traceId!=null&&_.hasOwnProperty("traceId")&&(I.traceId=N.bytes===String?O.base64.encode(_.traceId,0,_.traceId.length):N.bytes===Array?Array.prototype.slice.call(_.traceId):_.traceId),_.asInt!=null&&_.hasOwnProperty("asInt")&&(typeof _.asInt=="number"?I.asInt=N.longs===String?String(_.asInt):_.asInt:I.asInt=N.longs===String?O.Long.prototype.toString.call(_.asInt):N.longs===Number?new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber():_.asInt,N.oneofs&&(I.value="asInt")),_.filteredAttributes&&_.filteredAttributes.length){I.filteredAttributes=[];for(var V=0;V<_.filteredAttributes.length;++V)I.filteredAttributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.filteredAttributes[V],N)}return I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.Exemplar"},C})(),U})(),D})(),M.logs=(function(){var D={};return D.v1=(function(){var U={};return U.LogsData=(function(){function C(L){if(this.resourceLogs=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resourceLogs=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resourceLogs!=null&&y.resourceLogs.length)for(var N=0;N<y.resourceLogs.length;++N)P.opentelemetry.proto.logs.v1.ResourceLogs.encode(y.resourceLogs[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.LogsData;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resourceLogs&&I.resourceLogs.length||(I.resourceLogs=[]),I.resourceLogs.push(P.opentelemetry.proto.logs.v1.ResourceLogs.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resourceLogs!=null&&y.hasOwnProperty("resourceLogs")){if(!Array.isArray(y.resourceLogs))return"resourceLogs: array expected";for(var _=0;_<y.resourceLogs.length;++_){var N=P.opentelemetry.proto.logs.v1.ResourceLogs.verify(y.resourceLogs[_]);if(N)return"resourceLogs."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.LogsData)return y;var _=new P.opentelemetry.proto.logs.v1.LogsData;if(y.resourceLogs){if(!Array.isArray(y.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");_.resourceLogs=[];for(var N=0;N<y.resourceLogs.length;++N){if(typeof y.resourceLogs[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");_.resourceLogs[N]=P.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(y.resourceLogs[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.resourceLogs=[]),y.resourceLogs&&y.resourceLogs.length){N.resourceLogs=[];for(var I=0;I<y.resourceLogs.length;++I)N.resourceLogs[I]=P.opentelemetry.proto.logs.v1.ResourceLogs.toObject(y.resourceLogs[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.LogsData"},C})(),U.ResourceLogs=(function(){function C(L){if(this.scopeLogs=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resource=null,C.prototype.scopeLogs=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resource!=null&&Object.hasOwnProperty.call(y,"resource")&&P.opentelemetry.proto.resource.v1.Resource.encode(y.resource,_.uint32(10).fork()).ldelim(),y.scopeLogs!=null&&y.scopeLogs.length)for(var N=0;N<y.scopeLogs.length;++N)P.opentelemetry.proto.logs.v1.ScopeLogs.encode(y.scopeLogs[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.ResourceLogs;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resource=P.opentelemetry.proto.resource.v1.Resource.decode(y,y.uint32());break}case 2:{I.scopeLogs&&I.scopeLogs.length||(I.scopeLogs=[]),I.scopeLogs.push(P.opentelemetry.proto.logs.v1.ScopeLogs.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resource!=null&&y.hasOwnProperty("resource")){var _=P.opentelemetry.proto.resource.v1.Resource.verify(y.resource);if(_)return"resource."+_}if(y.scopeLogs!=null&&y.hasOwnProperty("scopeLogs")){if(!Array.isArray(y.scopeLogs))return"scopeLogs: array expected";for(var N=0;N<y.scopeLogs.length;++N){var _=P.opentelemetry.proto.logs.v1.ScopeLogs.verify(y.scopeLogs[N]);if(_)return"scopeLogs."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.ResourceLogs)return y;var _=new P.opentelemetry.proto.logs.v1.ResourceLogs;if(y.resource!=null){if(typeof y.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");_.resource=P.opentelemetry.proto.resource.v1.Resource.fromObject(y.resource)}if(y.scopeLogs){if(!Array.isArray(y.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");_.scopeLogs=[];for(var N=0;N<y.scopeLogs.length;++N){if(typeof y.scopeLogs[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");_.scopeLogs[N]=P.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(y.scopeLogs[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.scopeLogs=[]),_.defaults&&(N.resource=null,N.schemaUrl=""),y.resource!=null&&y.hasOwnProperty("resource")&&(N.resource=P.opentelemetry.proto.resource.v1.Resource.toObject(y.resource,_)),y.scopeLogs&&y.scopeLogs.length){N.scopeLogs=[];for(var I=0;I<y.scopeLogs.length;++I)N.scopeLogs[I]=P.opentelemetry.proto.logs.v1.ScopeLogs.toObject(y.scopeLogs[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.ResourceLogs"},C})(),U.ScopeLogs=(function(){function C(L){if(this.logRecords=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.scope=null,C.prototype.logRecords=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.scope!=null&&Object.hasOwnProperty.call(y,"scope")&&P.opentelemetry.proto.common.v1.InstrumentationScope.encode(y.scope,_.uint32(10).fork()).ldelim(),y.logRecords!=null&&y.logRecords.length)for(var N=0;N<y.logRecords.length;++N)P.opentelemetry.proto.logs.v1.LogRecord.encode(y.logRecords[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.ScopeLogs;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.decode(y,y.uint32());break}case 2:{I.logRecords&&I.logRecords.length||(I.logRecords=[]),I.logRecords.push(P.opentelemetry.proto.logs.v1.LogRecord.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.scope!=null&&y.hasOwnProperty("scope")){var _=P.opentelemetry.proto.common.v1.InstrumentationScope.verify(y.scope);if(_)return"scope."+_}if(y.logRecords!=null&&y.hasOwnProperty("logRecords")){if(!Array.isArray(y.logRecords))return"logRecords: array expected";for(var N=0;N<y.logRecords.length;++N){var _=P.opentelemetry.proto.logs.v1.LogRecord.verify(y.logRecords[N]);if(_)return"logRecords."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.ScopeLogs)return y;var _=new P.opentelemetry.proto.logs.v1.ScopeLogs;if(y.scope!=null){if(typeof y.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");_.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(y.scope)}if(y.logRecords){if(!Array.isArray(y.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");_.logRecords=[];for(var N=0;N<y.logRecords.length;++N){if(typeof y.logRecords[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");_.logRecords[N]=P.opentelemetry.proto.logs.v1.LogRecord.fromObject(y.logRecords[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.logRecords=[]),_.defaults&&(N.scope=null,N.schemaUrl=""),y.scope!=null&&y.hasOwnProperty("scope")&&(N.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.toObject(y.scope,_)),y.logRecords&&y.logRecords.length){N.logRecords=[];for(var I=0;I<y.logRecords.length;++I)N.logRecords[I]=P.opentelemetry.proto.logs.v1.LogRecord.toObject(y.logRecords[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.ScopeLogs"},C})(),U.SeverityNumber=(function(){var C={},L=Object.create(C);return L[C[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,L[C[1]="SEVERITY_NUMBER_TRACE"]=1,L[C[2]="SEVERITY_NUMBER_TRACE2"]=2,L[C[3]="SEVERITY_NUMBER_TRACE3"]=3,L[C[4]="SEVERITY_NUMBER_TRACE4"]=4,L[C[5]="SEVERITY_NUMBER_DEBUG"]=5,L[C[6]="SEVERITY_NUMBER_DEBUG2"]=6,L[C[7]="SEVERITY_NUMBER_DEBUG3"]=7,L[C[8]="SEVERITY_NUMBER_DEBUG4"]=8,L[C[9]="SEVERITY_NUMBER_INFO"]=9,L[C[10]="SEVERITY_NUMBER_INFO2"]=10,L[C[11]="SEVERITY_NUMBER_INFO3"]=11,L[C[12]="SEVERITY_NUMBER_INFO4"]=12,L[C[13]="SEVERITY_NUMBER_WARN"]=13,L[C[14]="SEVERITY_NUMBER_WARN2"]=14,L[C[15]="SEVERITY_NUMBER_WARN3"]=15,L[C[16]="SEVERITY_NUMBER_WARN4"]=16,L[C[17]="SEVERITY_NUMBER_ERROR"]=17,L[C[18]="SEVERITY_NUMBER_ERROR2"]=18,L[C[19]="SEVERITY_NUMBER_ERROR3"]=19,L[C[20]="SEVERITY_NUMBER_ERROR4"]=20,L[C[21]="SEVERITY_NUMBER_FATAL"]=21,L[C[22]="SEVERITY_NUMBER_FATAL2"]=22,L[C[23]="SEVERITY_NUMBER_FATAL3"]=23,L[C[24]="SEVERITY_NUMBER_FATAL4"]=24,L})(),U.LogRecordFlags=(function(){var C={},L=Object.create(C);return L[C[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,L[C[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,L})(),U.LogRecord=(function(){function C(L){if(this.attributes=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.timeUnixNano=null,C.prototype.observedTimeUnixNano=null,C.prototype.severityNumber=null,C.prototype.severityText=null,C.prototype.body=null,C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.prototype.flags=null,C.prototype.traceId=null,C.prototype.spanId=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.timeUnixNano!=null&&Object.hasOwnProperty.call(y,"timeUnixNano")&&_.uint32(9).fixed64(y.timeUnixNano),y.severityNumber!=null&&Object.hasOwnProperty.call(y,"severityNumber")&&_.uint32(16).int32(y.severityNumber),y.severityText!=null&&Object.hasOwnProperty.call(y,"severityText")&&_.uint32(26).string(y.severityText),y.body!=null&&Object.hasOwnProperty.call(y,"body")&&P.opentelemetry.proto.common.v1.AnyValue.encode(y.body,_.uint32(42).fork()).ldelim(),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(50).fork()).ldelim();return y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(56).uint32(y.droppedAttributesCount),y.flags!=null&&Object.hasOwnProperty.call(y,"flags")&&_.uint32(69).fixed32(y.flags),y.traceId!=null&&Object.hasOwnProperty.call(y,"traceId")&&_.uint32(74).bytes(y.traceId),y.spanId!=null&&Object.hasOwnProperty.call(y,"spanId")&&_.uint32(82).bytes(y.spanId),y.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"observedTimeUnixNano")&&_.uint32(89).fixed64(y.observedTimeUnixNano),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.LogRecord;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.timeUnixNano=y.fixed64();break}case 11:{I.observedTimeUnixNano=y.fixed64();break}case 2:{I.severityNumber=y.int32();break}case 3:{I.severityText=y.string();break}case 5:{I.body=P.opentelemetry.proto.common.v1.AnyValue.decode(y,y.uint32());break}case 6:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 7:{I.droppedAttributesCount=y.uint32();break}case 8:{I.flags=y.fixed32();break}case 9:{I.traceId=y.bytes();break}case 10:{I.spanId=y.bytes();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&!O.isInteger(y.timeUnixNano)&&!(y.timeUnixNano&&O.isInteger(y.timeUnixNano.low)&&O.isInteger(y.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(y.observedTimeUnixNano!=null&&y.hasOwnProperty("observedTimeUnixNano")&&!O.isInteger(y.observedTimeUnixNano)&&!(y.observedTimeUnixNano&&O.isInteger(y.observedTimeUnixNano.low)&&O.isInteger(y.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(y.severityNumber!=null&&y.hasOwnProperty("severityNumber"))switch(y.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(y.severityText!=null&&y.hasOwnProperty("severityText")&&!O.isString(y.severityText))return"severityText: string expected";if(y.body!=null&&y.hasOwnProperty("body")){var _=P.opentelemetry.proto.common.v1.AnyValue.verify(y.body);if(_)return"body."+_}if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var N=0;N<y.attributes.length;++N){var _=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[N]);if(_)return"attributes."+_}}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount)?"droppedAttributesCount: integer expected":y.flags!=null&&y.hasOwnProperty("flags")&&!O.isInteger(y.flags)?"flags: integer expected":y.traceId!=null&&y.hasOwnProperty("traceId")&&!(y.traceId&&typeof y.traceId.length=="number"||O.isString(y.traceId))?"traceId: buffer expected":y.spanId!=null&&y.hasOwnProperty("spanId")&&!(y.spanId&&typeof y.spanId.length=="number"||O.isString(y.spanId))?"spanId: buffer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.LogRecord)return y;var _=new P.opentelemetry.proto.logs.v1.LogRecord;switch(y.timeUnixNano!=null&&(O.Long?(_.timeUnixNano=O.Long.fromValue(y.timeUnixNano)).unsigned=!1:typeof y.timeUnixNano=="string"?_.timeUnixNano=parseInt(y.timeUnixNano,10):typeof y.timeUnixNano=="number"?_.timeUnixNano=y.timeUnixNano:typeof y.timeUnixNano=="object"&&(_.timeUnixNano=new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber())),y.observedTimeUnixNano!=null&&(O.Long?(_.observedTimeUnixNano=O.Long.fromValue(y.observedTimeUnixNano)).unsigned=!1:typeof y.observedTimeUnixNano=="string"?_.observedTimeUnixNano=parseInt(y.observedTimeUnixNano,10):typeof y.observedTimeUnixNano=="number"?_.observedTimeUnixNano=y.observedTimeUnixNano:typeof y.observedTimeUnixNano=="object"&&(_.observedTimeUnixNano=new O.LongBits(y.observedTimeUnixNano.low>>>0,y.observedTimeUnixNano.high>>>0).toNumber())),y.severityNumber){default:if(typeof y.severityNumber=="number"){_.severityNumber=y.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:_.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:_.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:_.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:_.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:_.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:_.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:_.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:_.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:_.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:_.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:_.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:_.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:_.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:_.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:_.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:_.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:_.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:_.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:_.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:_.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:_.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:_.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:_.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:_.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:_.severityNumber=24;break}if(y.severityText!=null&&(_.severityText=String(y.severityText)),y.body!=null){if(typeof y.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");_.body=P.opentelemetry.proto.common.v1.AnyValue.fromObject(y.body)}if(y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}return y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),y.flags!=null&&(_.flags=y.flags>>>0),y.traceId!=null&&(typeof y.traceId=="string"?O.base64.decode(y.traceId,_.traceId=O.newBuffer(O.base64.length(y.traceId)),0):y.traceId.length>=0&&(_.traceId=y.traceId)),y.spanId!=null&&(typeof y.spanId=="string"?O.base64.decode(y.spanId,_.spanId=O.newBuffer(O.base64.length(y.spanId)),0):y.spanId.length>=0&&(_.spanId=y.spanId)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[]),_.defaults){if(O.Long){var I=new O.Long(0,0,!1);N.timeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.timeUnixNano=_.longs===String?"0":0;if(N.severityNumber=_.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,N.severityText="",N.body=null,N.droppedAttributesCount=0,N.flags=0,_.bytes===String?N.traceId="":(N.traceId=[],_.bytes!==Array&&(N.traceId=O.newBuffer(N.traceId))),_.bytes===String?N.spanId="":(N.spanId=[],_.bytes!==Array&&(N.spanId=O.newBuffer(N.spanId))),O.Long){var I=new O.Long(0,0,!1);N.observedTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.observedTimeUnixNano=_.longs===String?"0":0}if(y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&(typeof y.timeUnixNano=="number"?N.timeUnixNano=_.longs===String?String(y.timeUnixNano):y.timeUnixNano:N.timeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.timeUnixNano):_.longs===Number?new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber():y.timeUnixNano),y.severityNumber!=null&&y.hasOwnProperty("severityNumber")&&(N.severityNumber=_.enums===String?P.opentelemetry.proto.logs.v1.SeverityNumber[y.severityNumber]===void 0?y.severityNumber:P.opentelemetry.proto.logs.v1.SeverityNumber[y.severityNumber]:y.severityNumber),y.severityText!=null&&y.hasOwnProperty("severityText")&&(N.severityText=y.severityText),y.body!=null&&y.hasOwnProperty("body")&&(N.body=P.opentelemetry.proto.common.v1.AnyValue.toObject(y.body,_)),y.attributes&&y.attributes.length){N.attributes=[];for(var x=0;x<y.attributes.length;++x)N.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[x],_)}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),y.flags!=null&&y.hasOwnProperty("flags")&&(N.flags=y.flags),y.traceId!=null&&y.hasOwnProperty("traceId")&&(N.traceId=_.bytes===String?O.base64.encode(y.traceId,0,y.traceId.length):_.bytes===Array?Array.prototype.slice.call(y.traceId):y.traceId),y.spanId!=null&&y.hasOwnProperty("spanId")&&(N.spanId=_.bytes===String?O.base64.encode(y.spanId,0,y.spanId.length):_.bytes===Array?Array.prototype.slice.call(y.spanId):y.spanId),y.observedTimeUnixNano!=null&&y.hasOwnProperty("observedTimeUnixNano")&&(typeof y.observedTimeUnixNano=="number"?N.observedTimeUnixNano=_.longs===String?String(y.observedTimeUnixNano):y.observedTimeUnixNano:N.observedTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.observedTimeUnixNano):_.longs===Number?new O.LongBits(y.observedTimeUnixNano.low>>>0,y.observedTimeUnixNano.high>>>0).toNumber():y.observedTimeUnixNano),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.LogRecord"},C})(),U})(),D})(),M})(),R})(),root=P,root}var rootExports=requireRoot();function hrTimeToNanos(S){var T=BigInt(1e9);return BigInt(S[0])*T+BigInt(S[1])}function toLongBits(S){var T=Number(BigInt.asUintN(32,S)),A=Number(BigInt.asUintN(32,S>>BigInt(32)));return{low:T,high:A}}function encodeAsLongBits(S){var T=hrTimeToNanos(S);return toLongBits(T)}function optionalHexToBinary(S){if(S!==void 0)return hexToBinary(S)}var DEFAULT_ENCODER={encodeHrTime:encodeAsLongBits,encodeSpanContext:hexToBinary,encodeOptionalSpanContext:optionalHexToBinary};function getOtlpEncoder(S){return DEFAULT_ENCODER}var __read$4=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function createResource(S){return{attributes:toAttributes(S.attributes),droppedAttributesCount:0}}function createInstrumentationScope(S){return{name:S.name,version:S.version}}function toAttributes(S){return Object.keys(S).map(function(T){return toKeyValue(T,S[T])})}function toKeyValue(S,T){return{key:S,value:toAnyValue(T)}}function toAnyValue(S){var T=typeof S;return T==="string"?{stringValue:S}:T==="number"?Number.isInteger(S)?{intValue:S}:{doubleValue:S}:T==="boolean"?{boolValue:S}:S instanceof Uint8Array?{bytesValue:S}:Array.isArray(S)?{arrayValue:{values:S.map(toAnyValue)}}:T==="object"&&S!=null?{kvlistValue:{values:Object.entries(S).map(function(A){var O=__read$4(A,2),P=O[0],R=O[1];return toKeyValue(P,R)})}}:{}}var __values=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$3=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function sdkSpanToOtlpSpan(S,T){var A,O=S.spanContext(),P=S.status;return{traceId:T.encodeSpanContext(O.traceId),spanId:T.encodeSpanContext(O.spanId),parentSpanId:T.encodeOptionalSpanContext(S.parentSpanId),traceState:(A=O.traceState)===null||A===void 0?void 0:A.serialize(),name:S.name,kind:S.kind==null?0:S.kind+1,startTimeUnixNano:T.encodeHrTime(S.startTime),endTimeUnixNano:T.encodeHrTime(S.endTime),attributes:toAttributes(S.attributes),droppedAttributesCount:S.droppedAttributesCount,events:S.events.map(function(R){return toOtlpSpanEvent(R,T)}),droppedEventsCount:S.droppedEventsCount,status:{code:P.code,message:P.message},links:S.links.map(function(R){return toOtlpLink(R,T)}),droppedLinksCount:S.droppedLinksCount}}function toOtlpLink(S,T){var A;return{attributes:S.attributes?toAttributes(S.attributes):[],spanId:T.encodeSpanContext(S.context.spanId),traceId:T.encodeSpanContext(S.context.traceId),traceState:(A=S.context.traceState)===null||A===void 0?void 0:A.serialize(),droppedAttributesCount:S.droppedAttributesCount||0}}function toOtlpSpanEvent(S,T){return{attributes:S.attributes?toAttributes(S.attributes):[],name:S.name,timeUnixNano:T.encodeHrTime(S.time),droppedAttributesCount:S.droppedAttributesCount||0}}function createExportTraceServiceRequest(S,T){var A=getOtlpEncoder();return{resourceSpans:spanRecordsToResourceSpans(S,A)}}function createResourceMap(S){var T,A,O=new Map;try{for(var P=__values(S),R=P.next();!R.done;R=P.next()){var M=R.value,D=O.get(M.resource);D||(D=new Map,O.set(M.resource,D));var U=M.instrumentationLibrary.name+"@"+(M.instrumentationLibrary.version||"")+":"+(M.instrumentationLibrary.schemaUrl||""),C=D.get(U);C||(C=[],D.set(U,C)),C.push(M)}}catch(L){T={error:L}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return O}function spanRecordsToResourceSpans(S,T){for(var A=createResourceMap(S),O=[],P=A.entries(),R=P.next();!R.done;){for(var M=__read$3(R.value,2),D=M[0],U=M[1],C=[],L=U.values(),y=L.next();!y.done;){var _=y.value;if(_.length>0){var N=_.map(function(x){return sdkSpanToOtlpSpan(x,T)});C.push({scope:createInstrumentationScope(_[0].instrumentationLibrary),spans:N,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}y=L.next()}var I={resource:createResource(D),scopeSpans:C,schemaUrl:void 0};O.push(I),R=P.next()}return O}var traceResponseType=rootExports.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,traceRequestType=rootExports.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,ProtobufTraceSerializer={serializeRequest:function(S){var T=createExportTraceServiceRequest(S);return traceRequestType.encode(T).finish()},deserializeResponse:function(S){return traceResponseType.decode(S)}},__awaiter=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},MAX_ATTEMPTS=5,INITIAL_BACKOFF=1e3,MAX_BACKOFF=5e3,BACKOFF_MULTIPLIER=1.5,JITTER=.2;function getJitter(){return Math.random()*(2*JITTER)-JITTER}var RetryingTransport=(function(){function S(T){this._transport=T}return S.prototype.retry=function(T,A,O){var P=this;return new Promise(function(R,M){setTimeout(function(){P._transport.send(T,A).then(R,M)},O)})},S.prototype.send=function(T,A){var O;return __awaiter(this,void 0,void 0,function(){var P,R,M,D,U,C,L;return __generator(this,function(y){switch(y.label){case 0:return P=Date.now()+A,[4,this._transport.send(T,A)];case 1:R=y.sent(),M=MAX_ATTEMPTS,D=INITIAL_BACKOFF,y.label=2;case 2:return R.status==="retryable"&&M>0?(M--,U=Math.max(Math.min(D,MAX_BACKOFF)+getJitter(),0),D=D*BACKOFF_MULTIPLIER,C=(O=R.retryInMillis)!==null&&O!==void 0?O:U,L=P-Date.now(),C>L?[2,R]:[4,this.retry(T,L,C)]):[3,4];case 3:return R=y.sent(),[3,2];case 4:return[2,R]}})})},S.prototype.shutdown=function(){return this._transport.shutdown()},S})();function createRetryingTransport(S){return new RetryingTransport(S.transport)}function isExportRetryable(S){var T=[429,502,503,504];return T.includes(S)}function parseRetryAfterToMills(S){if(S!=null){var T=Number.parseInt(S,10);if(Number.isInteger(T))return T>0?T*1e3:-1;var A=new Date(S).getTime()-Date.now();return A>=0?A:0}}var __read$2=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},XhrTransport=(function(){function S(T){this._parameters=T}return S.prototype.send=function(T,A){var O=this;return new Promise(function(P){var R=new XMLHttpRequest;R.timeout=A,R.open("POST",O._parameters.url);var M=O._parameters.headers();Object.entries(M).forEach(function(D){var U=__read$2(D,2),C=U[0],L=U[1];R.setRequestHeader(C,L)}),R.ontimeout=function(D){P({status:"failure",error:new Error("XHR request timed out")})},R.onreadystatechange=function(){R.status>=200&&R.status<=299?(diag.debug("XHR success"),P({status:"success"})):R.status&&isExportRetryable(R.status)?P({status:"retryable",retryInMillis:parseRetryAfterToMills(R.getResponseHeader("Retry-After"))}):R.status!==0&&P({status:"failure",error:new Error("XHR request failed with non-retryable status")})},R.onabort=function(){P({status:"failure",error:new Error("XHR request aborted")})},R.onerror=function(){P({status:"failure",error:new Error("XHR request errored")})},R.send(T)})},S.prototype.shutdown=function(){},S})();function createXhrTransport(S){return new XhrTransport(S)}var SendBeaconTransport=(function(){function S(T){this._params=T}return S.prototype.send=function(T){var A=this;return new Promise(function(O){navigator.sendBeacon(A._params.url,new Blob([T],{type:A._params.blobType}))?(diag.debug("SendBeacon success"),O({status:"success"})):O({status:"failure",error:new Error("SendBeacon failed")})})},S.prototype.shutdown=function(){},S})();function createSendBeaconTransport(S){return new SendBeaconTransport(S)}function createOtlpXhrExportDelegate(S,T){return createOtlpNetworkExportDelegate(S,T,createRetryingTransport({transport:createXhrTransport(S)}))}function createOtlpSendBeaconExportDelegate(S,T){return createOtlpNetworkExportDelegate(S,T,createRetryingTransport({transport:createSendBeaconTransport({url:S.url,blobType:S.headers()["Content-Type"]})}))}var __read$1=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function validateAndNormalizeHeaders(S){return function(){var T,A={};return Object.entries((T=S?.())!==null&&T!==void 0?T:{}).forEach(function(O){var P=__read$1(O,2),R=P[0],M=P[1];typeof M<"u"?A[R]=String(M):diag.warn('Header "'+R+'" has invalid value ('+M+") and will be ignored")}),A}}var __assign=function(){return __assign=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign.apply(this,arguments)};function mergeHeaders(S,T,A){var O=__assign({},A()),P={};return function(){return T!=null&&Object.assign(P,T()),S!=null&&Object.assign(P,S()),Object.assign(P,O)}}function validateUserProvidedUrl(S){if(S!=null)try{return new URL(S),S}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+S+"'")}}function mergeOtlpHttpConfigurationWithDefaults(S,T,A){var O,P,R,M;return __assign(__assign({},mergeOtlpSharedConfigurationWithDefaults(S,T,A)),{headers:mergeHeaders(validateAndNormalizeHeaders(S.headers),T.headers,A.headers),url:(P=(O=validateUserProvidedUrl(S.url))!==null&&O!==void 0?O:T.url)!==null&&P!==void 0?P:A.url,agentOptions:(M=(R=S.agentOptions)!==null&&R!==void 0?R:T.agentOptions)!==null&&M!==void 0?M:A.agentOptions})}function getHttpConfigurationDefaults(S,T){return __assign(__assign({},getSharedConfigurationDefaults()),{headers:function(){return S},url:"http://localhost:4318/"+T,agentOptions:{keepAlive:!0}})}function convertLegacyBrowserHttpOptions(S,T,A){return mergeOtlpHttpConfigurationWithDefaults({url:S.url,timeoutMillis:S.timeoutMillis,headers:wrapStaticHeadersInFunction(S.headers),concurrencyLimit:S.concurrencyLimit},{},getHttpConfigurationDefaults(A,T))}function createLegacyOtlpBrowserExportDelegate(S,T,A,O){var P=!!S.headers||typeof navigator.sendBeacon!="function",R=convertLegacyBrowserHttpOptions(S,A,O);return P?createOtlpXhrExportDelegate(R,T):createOtlpSendBeaconExportDelegate(R,T)}var __extends=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),DEFAULT_COLLECTOR_RESOURCE_PATH="v1/traces",OTLPTraceExporter=(function(S){__extends(T,S);function T(A){return A===void 0&&(A={}),S.call(this,createLegacyOtlpBrowserExportDelegate(A,ProtobufTraceSerializer,DEFAULT_COLLECTOR_RESOURCE_PATH,{"Content-Type":"application/x-protobuf"}))||this}return T})(OTLPExporterBase);const index$1=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter},Symbol.toStringTag,{value:"Module"}));var B3_DEBUG_FLAG_KEY=createContextKey("OpenTelemetry Context Key B3 Debug Flag"),B3_CONTEXT_HEADER="b3",X_B3_TRACE_ID="x-b3-traceid",X_B3_SPAN_ID="x-b3-spanid",X_B3_SAMPLED="x-b3-sampled",X_B3_PARENT_SPAN_ID="x-b3-parentspanid",X_B3_FLAGS="x-b3-flags",VALID_SAMPLED_VALUES=new Set([!0,"true","True","1",1]),VALID_UNSAMPLED_VALUES=new Set([!1,"false","False","0",0]);function isValidSampledValue(S){return S===TraceFlags.SAMPLED||S===TraceFlags.NONE}function parseHeader(S){return Array.isArray(S)?S[0]:S}function getHeaderValue(S,T,A){var O=T.get(S,A);return parseHeader(O)}function getTraceId(S,T){var A=getHeaderValue(S,T,X_B3_TRACE_ID);return typeof A=="string"?A.padStart(32,"0"):""}function getSpanId(S,T){var A=getHeaderValue(S,T,X_B3_SPAN_ID);return typeof A=="string"?A:""}function getDebug(S,T){var A=getHeaderValue(S,T,X_B3_FLAGS);return A==="1"?"1":void 0}function getTraceFlags(S,T){var A=getHeaderValue(S,T,X_B3_SAMPLED),O=getDebug(S,T);if(O==="1"||VALID_SAMPLED_VALUES.has(A))return TraceFlags.SAMPLED;if(A===void 0||VALID_UNSAMPLED_VALUES.has(A))return TraceFlags.NONE}var B3MultiPropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=trace.getSpanContext(T);if(!(!P||!isSpanContextValid(P)||isTracingSuppressed(T))){var R=T.getValue(B3_DEBUG_FLAG_KEY);O.set(A,X_B3_TRACE_ID,P.traceId),O.set(A,X_B3_SPAN_ID,P.spanId),R==="1"?O.set(A,X_B3_FLAGS,R):P.traceFlags!==void 0&&O.set(A,X_B3_SAMPLED,(TraceFlags.SAMPLED&P.traceFlags)===TraceFlags.SAMPLED?"1":"0")}},S.prototype.extract=function(T,A,O){var P=getTraceId(A,O),R=getSpanId(A,O),M=getTraceFlags(A,O),D=getDebug(A,O);return isValidTraceId(P)&&isValidSpanId(R)&&isValidSampledValue(M)?(T=T.setValue(B3_DEBUG_FLAG_KEY,D),trace.setSpanContext(T,{traceId:P,spanId:R,isRemote:!0,traceFlags:M})):T},S.prototype.fields=function(){return[X_B3_TRACE_ID,X_B3_SPAN_ID,X_B3_FLAGS,X_B3_SAMPLED,X_B3_PARENT_SPAN_ID]},S})(),__read=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},B3_CONTEXT_REGEX=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,PADDING="0".repeat(16),SAMPLED_VALUES=new Set(["d","1"]),DEBUG_STATE="d";function convertToTraceId128(S){return S.length===32?S:""+PADDING+S}function convertToTraceFlags(S){return S&&SAMPLED_VALUES.has(S)?TraceFlags.SAMPLED:TraceFlags.NONE}var B3SinglePropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=trace.getSpanContext(T);if(!(!P||!isSpanContextValid(P)||isTracingSuppressed(T))){var R=T.getValue(B3_DEBUG_FLAG_KEY)||P.traceFlags&1,M=P.traceId+"-"+P.spanId+"-"+R;O.set(A,B3_CONTEXT_HEADER,M)}},S.prototype.extract=function(T,A,O){var P=O.get(A,B3_CONTEXT_HEADER),R=Array.isArray(P)?P[0]:P;if(typeof R!="string")return T;var M=R.match(B3_CONTEXT_REGEX);if(!M)return T;var D=__read(M,4),U=D[1],C=D[2],L=D[3],y=convertToTraceId128(U);if(!isValidTraceId(y)||!isValidSpanId(C))return T;var _=convertToTraceFlags(L);return L===DEBUG_STATE&&(T=T.setValue(B3_DEBUG_FLAG_KEY,L)),trace.setSpanContext(T,{traceId:y,spanId:C,isRemote:!0,traceFlags:_})},S.prototype.fields=function(){return[B3_CONTEXT_HEADER]},S})(),B3InjectEncoding;(function(S){S[S.SINGLE_HEADER=0]="SINGLE_HEADER",S[S.MULTI_HEADER=1]="MULTI_HEADER"})(B3InjectEncoding||(B3InjectEncoding={}));var B3Propagator=(function(){function S(T){T===void 0&&(T={}),this._b3MultiPropagator=new B3MultiPropagator,this._b3SinglePropagator=new B3SinglePropagator,T.injectEncoding===B3InjectEncoding.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return S.prototype.inject=function(T,A,O){isTracingSuppressed(T)||this._inject(T,A,O)},S.prototype.extract=function(T,A,O){var P=O.get(A,B3_CONTEXT_HEADER),R=Array.isArray(P)?P[0]:P;return R?this._b3SinglePropagator.extract(T,A,O):this._b3MultiPropagator.extract(T,A,O)},S.prototype.fields=function(){return this._fields},S})();const index=Object.freeze(Object.defineProperty({__proto__:null,get B3InjectEncoding(){return B3InjectEncoding},B3Propagator,B3_CONTEXT_HEADER,X_B3_FLAGS,X_B3_PARENT_SPAN_ID,X_B3_SAMPLED,X_B3_SPAN_ID,X_B3_TRACE_ID},Symbol.toStringTag,{value:"Module"}));exports.ElementTypeEnum=ElementTypeEnum,exports.FieldName=FieldName,exports.OpenPayForm=OpenPayForm,exports.SubmitMethods=SubmitMethods,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
|
|
243
|
+
*/const S=globalThis;function T(G){return(S.__Zone_symbol_prefix||"__zone_symbol__")+G}function A(){const G=S.performance;function H(ge){G&&G.mark&&G.mark(ge)}function q(ge,j){G&&G.measure&&G.measure(ge,j)}H("Zone");class F{static __symbol__=T;static assertZonePatched(){if(S.Promise!==Ae.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let j=F.current;for(;j.parent;)j=j.parent;return j}static get current(){return pe.zone}static get currentTask(){return he}static __load_patch(j,K,Y=!1){if(Ae.hasOwnProperty(j)){const ae=S[T("forceDuplicateZoneCheck")]===!0;if(!Y&&ae)throw Error("Already loaded patch: "+j)}else if(!S["__Zone_disable_"+j]){const ae="Zone:"+j;H(ae),Ae[j]=K(S,F,Te),q(ae,ae)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(j,K){this._parent=j,this._name=K?K.name||"unnamed":"<root>",this._properties=K&&K.properties||{},this._zoneDelegate=new J(this,this._parent&&this._parent._zoneDelegate,K)}get(j){const K=this.getZoneWith(j);if(K)return K._properties[j]}getZoneWith(j){let K=this;for(;K;){if(K._properties.hasOwnProperty(j))return K;K=K._parent}return null}fork(j){if(!j)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,j)}wrap(j,K){if(typeof j!="function")throw new Error("Expecting function got: "+j);const Y=this._zoneDelegate.intercept(this,j,K),ae=this;return function(){return ae.runGuarded(Y,this,arguments,K)}}run(j,K,Y,ae){pe={parent:pe,zone:this};try{return this._zoneDelegate.invoke(this,j,K,Y,ae)}finally{pe=pe.parent}}runGuarded(j,K=null,Y,ae){pe={parent:pe,zone:this};try{try{return this._zoneDelegate.invoke(this,j,K,Y,ae)}catch(Ie){if(this._zoneDelegate.handleError(this,Ie))throw Ie}}finally{pe=pe.parent}}runTask(j,K,Y){if(j.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(j.zone||Ge).name+"; Execution: "+this.name+")");const ae=j,{type:Ie,data:{isPeriodic:Ke=!1,isRefreshable:Ne=!1}={}}=j;if(j.state===Ve&&(Ie===we||Ie===ce))return;const rt=j.state!=Re;rt&&ae._transitionTo(Re,ee);const ot=he;he=ae,pe={parent:pe,zone:this};try{Ie==ce&&j.data&&!Ke&&!Ne&&(j.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ae,K,Y)}catch(je){if(this._zoneDelegate.handleError(this,je))throw je}}finally{const je=j.state;if(je!==Ve&&je!==ke)if(Ie==we||Ke||Ne&&je===_e)rt&&ae._transitionTo(ee,Re,_e);else{const at=ae._zoneDelegates;this._updateTaskCount(ae,-1),rt&&ae._transitionTo(Ve,Re,Ve),Ne&&(ae._zoneDelegates=at)}pe=pe.parent,he=ot}}scheduleTask(j){if(j.zone&&j.zone!==this){let Y=this;for(;Y;){if(Y===j.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${j.zone.name}`);Y=Y.parent}}j._transitionTo(_e,Ve);const K=[];j._zoneDelegates=K,j._zone=this;try{j=this._zoneDelegate.scheduleTask(this,j)}catch(Y){throw j._transitionTo(ke,_e,Ve),this._zoneDelegate.handleError(this,Y),Y}return j._zoneDelegates===K&&this._updateTaskCount(j,1),j.state==_e&&j._transitionTo(ee,_e),j}scheduleMicroTask(j,K,Y,ae){return this.scheduleTask(new se(Le,j,K,Y,ae,void 0))}scheduleMacroTask(j,K,Y,ae,Ie){return this.scheduleTask(new se(ce,j,K,Y,ae,Ie))}scheduleEventTask(j,K,Y,ae,Ie){return this.scheduleTask(new se(we,j,K,Y,ae,Ie))}cancelTask(j){if(j.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(j.zone||Ge).name+"; Execution: "+this.name+")");if(!(j.state!==ee&&j.state!==Re)){j._transitionTo(Me,ee,Re);try{this._zoneDelegate.cancelTask(this,j)}catch(K){throw j._transitionTo(ke,Me),this._zoneDelegate.handleError(this,K),K}return this._updateTaskCount(j,-1),j._transitionTo(Ve,Me),j.runCount=-1,j}}_updateTaskCount(j,K){const Y=j._zoneDelegates;K==-1&&(j._zoneDelegates=null);for(let ae=0;ae<Y.length;ae++)Y[ae]._updateTaskCount(j.type,K)}}const Z={name:"",onHasTask:(ge,j,K,Y)=>ge.hasTask(K,Y),onScheduleTask:(ge,j,K,Y)=>ge.scheduleTask(K,Y),onInvokeTask:(ge,j,K,Y,ae,Ie)=>ge.invokeTask(K,Y,ae,Ie),onCancelTask:(ge,j,K,Y)=>ge.cancelTask(K,Y)};class J{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(j,K,Y){this._zone=j,this._parentDelegate=K,this._forkZS=Y&&(Y&&Y.onFork?Y:K._forkZS),this._forkDlgt=Y&&(Y.onFork?K:K._forkDlgt),this._forkCurrZone=Y&&(Y.onFork?this._zone:K._forkCurrZone),this._interceptZS=Y&&(Y.onIntercept?Y:K._interceptZS),this._interceptDlgt=Y&&(Y.onIntercept?K:K._interceptDlgt),this._interceptCurrZone=Y&&(Y.onIntercept?this._zone:K._interceptCurrZone),this._invokeZS=Y&&(Y.onInvoke?Y:K._invokeZS),this._invokeDlgt=Y&&(Y.onInvoke?K:K._invokeDlgt),this._invokeCurrZone=Y&&(Y.onInvoke?this._zone:K._invokeCurrZone),this._handleErrorZS=Y&&(Y.onHandleError?Y:K._handleErrorZS),this._handleErrorDlgt=Y&&(Y.onHandleError?K:K._handleErrorDlgt),this._handleErrorCurrZone=Y&&(Y.onHandleError?this._zone:K._handleErrorCurrZone),this._scheduleTaskZS=Y&&(Y.onScheduleTask?Y:K._scheduleTaskZS),this._scheduleTaskDlgt=Y&&(Y.onScheduleTask?K:K._scheduleTaskDlgt),this._scheduleTaskCurrZone=Y&&(Y.onScheduleTask?this._zone:K._scheduleTaskCurrZone),this._invokeTaskZS=Y&&(Y.onInvokeTask?Y:K._invokeTaskZS),this._invokeTaskDlgt=Y&&(Y.onInvokeTask?K:K._invokeTaskDlgt),this._invokeTaskCurrZone=Y&&(Y.onInvokeTask?this._zone:K._invokeTaskCurrZone),this._cancelTaskZS=Y&&(Y.onCancelTask?Y:K._cancelTaskZS),this._cancelTaskDlgt=Y&&(Y.onCancelTask?K:K._cancelTaskDlgt),this._cancelTaskCurrZone=Y&&(Y.onCancelTask?this._zone:K._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const ae=Y&&Y.onHasTask,Ie=K&&K._hasTaskZS;(ae||Ie)&&(this._hasTaskZS=ae?Y:Z,this._hasTaskDlgt=K,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,Y.onScheduleTask||(this._scheduleTaskZS=Z,this._scheduleTaskDlgt=K,this._scheduleTaskCurrZone=this._zone),Y.onInvokeTask||(this._invokeTaskZS=Z,this._invokeTaskDlgt=K,this._invokeTaskCurrZone=this._zone),Y.onCancelTask||(this._cancelTaskZS=Z,this._cancelTaskDlgt=K,this._cancelTaskCurrZone=this._zone))}fork(j,K){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,j,K):new F(j,K)}intercept(j,K,Y){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,j,K,Y):K}invoke(j,K,Y,ae,Ie){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,j,K,Y,ae,Ie):K.apply(Y,ae)}handleError(j,K){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,j,K):!0}scheduleTask(j,K){let Y=K;if(this._scheduleTaskZS)this._hasTaskZS&&Y._zoneDelegates.push(this._hasTaskDlgtOwner),Y=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,j,K),Y||(Y=K);else if(K.scheduleFn)K.scheduleFn(K);else if(K.type==Le)Ue(K);else throw new Error("Task is missing scheduleFn.");return Y}invokeTask(j,K,Y,ae){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,j,K,Y,ae):K.callback.apply(Y,ae)}cancelTask(j,K){let Y;if(this._cancelTaskZS)Y=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,j,K);else{if(!K.cancelFn)throw Error("Task is not cancelable");Y=K.cancelFn(K)}return Y}hasTask(j,K){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,j,K)}catch(Y){this.handleError(j,Y)}}_updateTaskCount(j,K){const Y=this._taskCounts,ae=Y[j],Ie=Y[j]=ae+K;if(Ie<0)throw new Error("More tasks executed then were scheduled.");if(ae==0||Ie==0){const Ke={microTask:Y.microTask>0,macroTask:Y.macroTask>0,eventTask:Y.eventTask>0,change:j};this.hasTask(this._zone,Ke)}}}class se{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(j,K,Y,ae,Ie,Ke){if(this.type=j,this.source=K,this.data=ae,this.scheduleFn=Ie,this.cancelFn=Ke,!Y)throw new Error("callback is not defined");this.callback=Y;const Ne=this;j===we&&ae&&ae.useG?this.invoke=se.invokeTask:this.invoke=function(){return se.invokeTask.call(S,Ne,this,arguments)}}static invokeTask(j,K,Y){j||(j=this),He++;try{return j.runCount++,j.zone.runTask(j,K,Y)}finally{He==1&&Be(),He--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ve,_e)}_transitionTo(j,K,Y){if(this._state===K||this._state===Y)this._state=j,j==Ve&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${j}', expecting state '${K}'${Y?" or '"+Y+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const ie=T("setTimeout"),ue=T("Promise"),ye=T("then");let ne=[],Ee=!1,Pe;function Ce(ge){if(Pe||S[ue]&&(Pe=S[ue].resolve(0)),Pe){let j=Pe[ye];j||(j=Pe.then),j.call(Pe,ge)}else S[ie](ge,0)}function Ue(ge){He===0&&ne.length===0&&Ce(Be),ge&&ne.push(ge)}function Be(){if(!Ee){for(Ee=!0;ne.length;){const ge=ne;ne=[];for(let j=0;j<ge.length;j++){const K=ge[j];try{K.zone.runTask(K,null,null)}catch(Y){Te.onUnhandledError(Y)}}}Te.microtaskDrainDone(),Ee=!1}}const Ge={name:"NO ZONE"},Ve="notScheduled",_e="scheduling",ee="scheduled",Re="running",Me="canceling",ke="unknown",Le="microTask",ce="macroTask",we="eventTask",Ae={},Te={symbol:T,currentZoneFrame:()=>pe,onUnhandledError:xe,microtaskDrainDone:xe,scheduleMicroTask:Ue,showUncaughtError:()=>!F[T("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:xe,patchMethod:()=>xe,bindArguments:()=>[],patchThen:()=>xe,patchMacroTask:()=>xe,patchEventPrototype:()=>xe,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>xe,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>xe,wrapWithCurrentZone:()=>xe,filterProperties:()=>[],attachOriginToPatched:()=>xe,_redefineProperty:()=>xe,patchCallbacks:()=>xe,nativeScheduleMicroTask:Ce};let pe={parent:null,zone:new F(null,null)},he=null,He=0;function xe(){}return q("Zone","Zone"),F}function O(){const G=globalThis,H=G[T("forceDuplicateZoneCheck")]===!0;if(G.Zone&&(H||typeof G.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return G.Zone??=A(),G.Zone}const P=Object.getOwnPropertyDescriptor,R=Object.defineProperty,M=Object.getPrototypeOf,D=Object.create,U=Array.prototype.slice,C="addEventListener",L="removeEventListener",y=T(C),_=T(L),N="true",I="false",x=T("");function V(G,H){return Zone.current.wrap(G,H)}function k(G,H,q,F,Z){return Zone.current.scheduleMacroTask(G,H,q,F,Z)}const B=T,W=typeof window<"u",oe=W?window:void 0,te=W&&oe||globalThis,fe="removeAttribute";function Fe(G,H){for(let q=G.length-1;q>=0;q--)typeof G[q]=="function"&&(G[q]=V(G[q],H+"_"+q));return G}function et(G,H){const q=G.constructor.name;for(let F=0;F<H.length;F++){const Z=H[F],J=G[Z];if(J){const se=P(G,Z);if(!tt(se))continue;G[Z]=(ie=>{const ue=function(){return ie.apply(this,Fe(arguments,q+"."+Z))};return Qe(ue,ie),ue})(J)}}}function tt(G){return G?G.writable===!1?!1:!(typeof G.get=="function"&&typeof G.set>"u"):!0}const lt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,pt=!("nw"in te)&&typeof te.process<"u"&&te.process.toString()==="[object process]",St=!pt&&!lt&&!!(W&&oe.HTMLElement),vt=typeof te.process<"u"&&te.process.toString()==="[object process]"&&!lt&&!!(W&&oe.HTMLElement),ft={},Ht=B("enable_beforeunload"),Ot=function(G){if(G=G||te.event,!G)return;let H=ft[G.type];H||(H=ft[G.type]=B("ON_PROPERTY"+G.type));const q=this||G.target||te,F=q[H];let Z;if(St&&q===oe&&G.type==="error"){const J=G;Z=F&&F.call(this,J.message,J.filename,J.lineno,J.colno,J.error),Z===!0&&G.preventDefault()}else Z=F&&F.apply(this,arguments),G.type==="beforeunload"&&te[Ht]&&typeof Z=="string"?G.returnValue=Z:Z!=null&&!Z&&G.preventDefault();return Z};function Pt(G,H,q){let F=P(G,H);if(!F&&q&&P(q,H)&&(F={enumerable:!0,configurable:!0}),!F||!F.configurable)return;const Z=B("on"+H+"patched");if(G.hasOwnProperty(Z)&&G[Z])return;delete F.writable,delete F.value;const J=F.get,se=F.set,ie=H.slice(2);let ue=ft[ie];ue||(ue=ft[ie]=B("ON_PROPERTY"+ie)),F.set=function(ye){let ne=this;if(!ne&&G===te&&(ne=te),!ne)return;typeof ne[ue]=="function"&&ne.removeEventListener(ie,Ot),se?.call(ne,null),ne[ue]=ye,typeof ye=="function"&&ne.addEventListener(ie,Ot,!1)},F.get=function(){let ye=this;if(!ye&&G===te&&(ye=te),!ye)return null;const ne=ye[ue];if(ne)return ne;if(J){let Ee=J.call(this);if(Ee)return F.set.call(this,Ee),typeof ye[fe]=="function"&&ye.removeAttribute(H),Ee}return null},R(G,H,F),G[Z]=!0}function gt(G,H,q){if(H)for(let F=0;F<H.length;F++)Pt(G,"on"+H[F],q);else{const F=[];for(const Z in G)Z.slice(0,2)=="on"&&F.push(Z);for(let Z=0;Z<F.length;Z++)Pt(G,F[Z],q)}}const qe=B("originalInstance");function ut(G){const H=te[G];if(!H)return;te[B(G)]=H,te[G]=function(){const Z=Fe(arguments,G);switch(Z.length){case 0:this[qe]=new H;break;case 1:this[qe]=new H(Z[0]);break;case 2:this[qe]=new H(Z[0],Z[1]);break;case 3:this[qe]=new H(Z[0],Z[1],Z[2]);break;case 4:this[qe]=new H(Z[0],Z[1],Z[2],Z[3]);break;default:throw new Error("Arg list too long.")}},Qe(te[G],H);const q=new H(function(){});let F;for(F in q)G==="XMLHttpRequest"&&F==="responseBlob"||(function(Z){typeof q[Z]=="function"?te[G].prototype[Z]=function(){return this[qe][Z].apply(this[qe],arguments)}:R(te[G].prototype,Z,{set:function(J){typeof J=="function"?(this[qe][Z]=V(J,G+"."+Z),Qe(this[qe][Z],J)):this[qe][Z]=J},get:function(){return this[qe][Z]}})})(F);for(F in H)F!=="prototype"&&H.hasOwnProperty(F)&&(te[G][F]=H[F])}function Je(G,H,q){let F=G;for(;F&&!F.hasOwnProperty(H);)F=M(F);!F&&G[H]&&(F=G);const Z=B(H);let J=null;if(F&&(!(J=F[Z])||!F.hasOwnProperty(Z))){J=F[Z]=F[H];const se=F&&P(F,H);if(tt(se)){const ie=q(J,Z,H);F[H]=function(){return ie(this,arguments)},Qe(F[H],J)}}return J}function Yt(G,H,q){let F=null;function Z(J){const se=J.data;return se.args[se.cbIdx]=function(){J.invoke.apply(this,arguments)},F.apply(se.target,se.args),J}F=Je(G,H,J=>function(se,ie){const ue=q(se,ie);return ue.cbIdx>=0&&typeof ie[ue.cbIdx]=="function"?k(ue.name,ie[ue.cbIdx],ue,Z):J.apply(se,ie)})}function Qe(G,H){G[B("OriginalDelegate")]=H}let Nt=!1,yt=!1;function $t(){if(Nt)return yt;Nt=!0;try{const G=oe.navigator.userAgent;(G.indexOf("MSIE ")!==-1||G.indexOf("Trident/")!==-1||G.indexOf("Edge/")!==-1)&&(yt=!0)}catch{}return yt}function Rt(G){return typeof G=="function"}function Ct(G){return typeof G=="number"}const jt={useG:!0},Ze={},Mt={},It=new RegExp("^"+x+"(\\w+)(true|false)$"),Lt=B("propagationStopped");function bt(G,H){const q=(H?H(G):G)+I,F=(H?H(G):G)+N,Z=x+q,J=x+F;Ze[G]={},Ze[G][I]=Z,Ze[G][N]=J}function Kt(G,H,q,F){const Z=F&&F.add||C,J=F&&F.rm||L,se=F&&F.listeners||"eventListeners",ie=F&&F.rmAll||"removeAllListeners",ue=B(Z),ye="."+Z+":",ne="prependListener",Ee="."+ne+":",Pe=function(_e,ee,Re){if(_e.isRemoved)return;const Me=_e.callback;typeof Me=="object"&&Me.handleEvent&&(_e.callback=ce=>Me.handleEvent(ce),_e.originalDelegate=Me);let ke;try{_e.invoke(_e,ee,[Re])}catch(ce){ke=ce}const Le=_e.options;if(Le&&typeof Le=="object"&&Le.once){const ce=_e.originalDelegate?_e.originalDelegate:_e.callback;ee[J].call(ee,Re.type,ce,Le)}return ke};function Ce(_e,ee,Re){if(ee=ee||G.event,!ee)return;const Me=_e||ee.target||G,ke=Me[Ze[ee.type][Re?N:I]];if(ke){const Le=[];if(ke.length===1){const ce=Pe(ke[0],Me,ee);ce&&Le.push(ce)}else{const ce=ke.slice();for(let we=0;we<ce.length&&!(ee&&ee[Lt]===!0);we++){const Ae=Pe(ce[we],Me,ee);Ae&&Le.push(Ae)}}if(Le.length===1)throw Le[0];for(let ce=0;ce<Le.length;ce++){const we=Le[ce];H.nativeScheduleMicroTask(()=>{throw we})}}}const Ue=function(_e){return Ce(this,_e,!1)},Be=function(_e){return Ce(this,_e,!0)};function Ge(_e,ee){if(!_e)return!1;let Re=!0;ee&&ee.useG!==void 0&&(Re=ee.useG);const Me=ee&&ee.vh;let ke=!0;ee&&ee.chkDup!==void 0&&(ke=ee.chkDup);let Le=!1;ee&&ee.rt!==void 0&&(Le=ee.rt);let ce=_e;for(;ce&&!ce.hasOwnProperty(Z);)ce=M(ce);if(!ce&&_e[Z]&&(ce=_e),!ce||ce[ue])return!1;const we=ee&&ee.eventNameToString,Ae={},Te=ce[ue]=ce[Z],pe=ce[B(J)]=ce[J],he=ce[B(se)]=ce[se],He=ce[B(ie)]=ce[ie];let xe;ee&&ee.prepend&&(xe=ce[B(ee.prepend)]=ce[ee.prepend]);function ge($,X){return X?typeof $=="boolean"?{capture:$,passive:!0}:$?typeof $=="object"&&$.passive!==!1?{...$,passive:!0}:$:{passive:!0}:$}const j=function($){if(!Ae.isExisting)return Te.call(Ae.target,Ae.eventName,Ae.capture?Be:Ue,Ae.options)},K=function($){if(!$.isRemoved){const X=Ze[$.eventName];let de;X&&(de=X[$.capture?N:I]);const Se=de&&$.target[de];if(Se){for(let le=0;le<Se.length;le++)if(Se[le]===$){Se.splice(le,1),$.isRemoved=!0,$.removeAbortListener&&($.removeAbortListener(),$.removeAbortListener=null),Se.length===0&&($.allRemoved=!0,$.target[de]=null);break}}}if($.allRemoved)return pe.call($.target,$.eventName,$.capture?Be:Ue,$.options)},Y=function($){return Te.call(Ae.target,Ae.eventName,$.invoke,Ae.options)},ae=function($){return xe.call(Ae.target,Ae.eventName,$.invoke,Ae.options)},Ie=function($){return pe.call($.target,$.eventName,$.invoke,$.options)},Ke=Re?j:Y,Ne=Re?K:Ie,rt=function($,X){const de=typeof X;return de==="function"&&$.callback===X||de==="object"&&$.originalDelegate===X},ot=ee?.diff||rt,je=Zone[B("UNPATCHED_EVENTS")],at=G[B("PASSIVE_EVENTS")];function Q($){if(typeof $=="object"&&$!==null){const X={...$};return $.signal&&(X.signal=$.signal),X}return $}const z=function($,X,de,Se,le=!1,me=!1){return function(){const ve=this||G;let Oe=arguments[0];ee&&ee.transferEventName&&(Oe=ee.transferEventName(Oe));let be=arguments[1];if(!be)return $.apply(this,arguments);if(pt&&Oe==="uncaughtException")return $.apply(this,arguments);let De=!1;if(typeof be!="function"){if(!be.handleEvent)return $.apply(this,arguments);De=!0}if(Me&&!Me($,be,ve,arguments))return;const nt=!!at&&at.indexOf(Oe)!==-1,ze=Q(ge(arguments[2],nt)),st=ze?.signal;if(st?.aborted)return;if(je){for(let Xe=0;Xe<je.length;Xe++)if(Oe===je[Xe])return nt?$.call(ve,Oe,be,ze):$.apply(this,arguments)}const At=ze?typeof ze=="boolean"?!0:ze.capture:!1,Vt=ze&&typeof ze=="object"?ze.once:!1,ir=Zone.current;let mt=Ze[Oe];mt||(bt(Oe,we),mt=Ze[Oe]);const kt=mt[At?N:I];let ct=ve[kt],Ft=!1;if(ct){if(Ft=!0,ke){for(let Xe=0;Xe<ct.length;Xe++)if(ot(ct[Xe],be))return}}else ct=ve[kt]=[];let Tt;const Bt=ve.constructor.name,Gt=Mt[Bt];Gt&&(Tt=Gt[Oe]),Tt||(Tt=Bt+X+(we?we(Oe):Oe)),Ae.options=ze,Vt&&(Ae.options.once=!1),Ae.target=ve,Ae.capture=At,Ae.eventName=Oe,Ae.isExisting=Ft;const _t=Re?jt:void 0;_t&&(_t.taskData=Ae),st&&(Ae.options.signal=void 0);const We=ir.scheduleEventTask(Tt,be,_t,de,Se);if(st){Ae.options.signal=st;const Xe=()=>We.zone.cancelTask(We);$.call(st,"abort",Xe,{once:!0}),We.removeAbortListener=()=>st.removeEventListener("abort",Xe)}if(Ae.target=null,_t&&(_t.taskData=null),Vt&&(Ae.options.once=!0),typeof We.options!="boolean"&&(We.options=ze),We.target=ve,We.capture=At,We.eventName=Oe,De&&(We.originalDelegate=be),me?ct.unshift(We):ct.push(We),le)return ve}};return ce[Z]=z(Te,ye,Ke,Ne,Le),xe&&(ce[ne]=z(xe,Ee,ae,Ne,Le,!0)),ce[J]=function(){const $=this||G;let X=arguments[0];ee&&ee.transferEventName&&(X=ee.transferEventName(X));const de=arguments[2],Se=de?typeof de=="boolean"?!0:de.capture:!1,le=arguments[1];if(!le)return pe.apply(this,arguments);if(Me&&!Me(pe,le,$,arguments))return;const me=Ze[X];let ve;me&&(ve=me[Se?N:I]);const Oe=ve&&$[ve];if(Oe)for(let be=0;be<Oe.length;be++){const De=Oe[be];if(ot(De,le)){if(Oe.splice(be,1),De.isRemoved=!0,Oe.length===0&&(De.allRemoved=!0,$[ve]=null,!Se&&typeof X=="string")){const nt=x+"ON_PROPERTY"+X;$[nt]=null}return De.zone.cancelTask(De),Le?$:void 0}}return pe.apply(this,arguments)},ce[se]=function(){const $=this||G;let X=arguments[0];ee&&ee.transferEventName&&(X=ee.transferEventName(X));const de=[],Se=Dt($,we?we(X):X);for(let le=0;le<Se.length;le++){const me=Se[le];let ve=me.originalDelegate?me.originalDelegate:me.callback;de.push(ve)}return de},ce[ie]=function(){const $=this||G;let X=arguments[0];if(X){ee&&ee.transferEventName&&(X=ee.transferEventName(X));const de=Ze[X];if(de){const Se=de[I],le=de[N],me=$[Se],ve=$[le];if(me){const Oe=me.slice();for(let be=0;be<Oe.length;be++){const De=Oe[be];let nt=De.originalDelegate?De.originalDelegate:De.callback;this[J].call(this,X,nt,De.options)}}if(ve){const Oe=ve.slice();for(let be=0;be<Oe.length;be++){const De=Oe[be];let nt=De.originalDelegate?De.originalDelegate:De.callback;this[J].call(this,X,nt,De.options)}}}}else{const de=Object.keys($);for(let Se=0;Se<de.length;Se++){const le=de[Se],me=It.exec(le);let ve=me&&me[1];ve&&ve!=="removeListener"&&this[ie].call(this,ve)}this[ie].call(this,"removeListener")}if(Le)return this},Qe(ce[Z],Te),Qe(ce[J],pe),He&&Qe(ce[ie],He),he&&Qe(ce[se],he),!0}let Ve=[];for(let _e=0;_e<q.length;_e++)Ve[_e]=Ge(q[_e],F);return Ve}function Dt(G,H){if(!H){const J=[];for(let se in G){const ie=It.exec(se);let ue=ie&&ie[1];if(ue&&(!H||ue===H)){const ye=G[se];if(ye)for(let ne=0;ne<ye.length;ne++)J.push(ye[ne])}}return J}let q=Ze[H];q||(bt(H),q=Ze[H]);const F=G[q[I]],Z=G[q[N]];return F?Z?F.concat(Z):F.slice():Z?Z.slice():[]}function Zt(G,H){const q=G.Event;q&&q.prototype&&H.patchMethod(q.prototype,"stopImmediatePropagation",F=>function(Z,J){Z[Lt]=!0,F&&F.apply(Z,J)})}function qt(G,H){H.patchMethod(G,"queueMicrotask",q=>function(F,Z){Zone.current.scheduleMicroTask("queueMicrotask",Z[0])})}const Et=B("zoneTask");function it(G,H,q,F){let Z=null,J=null;H+=F,q+=F;const se={};function ie(ye){const ne=ye.data;ne.args[0]=function(){return ye.invoke.apply(this,arguments)};const Ee=Z.apply(G,ne.args);return Ct(Ee)?ne.handleId=Ee:(ne.handle=Ee,ne.isRefreshable=Rt(Ee.refresh)),ye}function ue(ye){const{handle:ne,handleId:Ee}=ye.data;return J.call(G,ne??Ee)}Z=Je(G,H,ye=>function(ne,Ee){if(Rt(Ee[0])){const Pe={isRefreshable:!1,isPeriodic:F==="Interval",delay:F==="Timeout"||F==="Interval"?Ee[1]||0:void 0,args:Ee},Ce=Ee[0];Ee[0]=function(){try{return Ce.apply(this,arguments)}finally{const{handle:Re,handleId:Me,isPeriodic:ke,isRefreshable:Le}=Pe;!ke&&!Le&&(Me?delete se[Me]:Re&&(Re[Et]=null))}};const Ue=k(H,Ee[0],Pe,ie,ue);if(!Ue)return Ue;const{handleId:Be,handle:Ge,isRefreshable:Ve,isPeriodic:_e}=Ue.data;if(Be)se[Be]=Ue;else if(Ge&&(Ge[Et]=Ue,Ve&&!_e)){const ee=Ge.refresh;Ge.refresh=function(){const{zone:Re,state:Me}=Ue;return Me==="notScheduled"?(Ue._state="scheduled",Re._updateTaskCount(Ue,1)):Me==="running"&&(Ue._state="scheduling"),ee.call(this)}}return Ge??Be??Ue}else return ye.apply(G,Ee)}),J=Je(G,q,ye=>function(ne,Ee){const Pe=Ee[0];let Ce;Ct(Pe)?(Ce=se[Pe],delete se[Pe]):(Ce=Pe?.[Et],Ce?Pe[Et]=null:Ce=Pe),Ce?.type?Ce.cancelFn&&Ce.zone.cancelTask(Ce):ye.apply(G,Ee)})}function Wt(G,H){const{isBrowser:q,isMix:F}=H.getGlobalObjects();if(!q&&!F||!G.customElements||!("customElements"in G))return;const Z=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];H.patchCallbacks(H,G.customElements,"customElements","define",Z)}function zt(G,H){if(Zone[H.symbol("patchEventTarget")])return;const{eventNames:q,zoneSymbolEventNames:F,TRUE_STR:Z,FALSE_STR:J,ZONE_SYMBOL_PREFIX:se}=H.getGlobalObjects();for(let ue=0;ue<q.length;ue++){const ye=q[ue],ne=ye+J,Ee=ye+Z,Pe=se+ne,Ce=se+Ee;F[ye]={},F[ye][J]=Pe,F[ye][Z]=Ce}const ie=G.EventTarget;if(!(!ie||!ie.prototype))return H.patchEventTarget(G,H,[ie&&ie.prototype]),!0}function Xt(G,H){H.patchEventPrototype(G,H)}function Ut(G,H,q){if(!q||q.length===0)return H;const F=q.filter(J=>J.target===G);if(F.length===0)return H;const Z=F[0].ignoreProperties;return H.filter(J=>Z.indexOf(J)===-1)}function wt(G,H,q,F){if(!G)return;const Z=Ut(G,H,q);gt(G,Z,F)}function ht(G){return Object.getOwnPropertyNames(G).filter(H=>H.startsWith("on")&&H.length>2).map(H=>H.substring(2))}function Jt(G,H){if(pt&&!vt||Zone[G.symbol("patchEvents")])return;const q=H.__Zone_ignore_on_properties;let F=[];if(St){const Z=window;F=F.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const J=[];wt(Z,ht(Z),q&&q.concat(J),M(Z))}F=F.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let Z=0;Z<F.length;Z++){const J=H[F[Z]];J?.prototype&&wt(J.prototype,ht(J.prototype),q)}}function Qt(G){G.__load_patch("legacy",H=>{const q=H[G.__symbol__("legacyPatch")];q&&q()}),G.__load_patch("timers",H=>{const F="clear";it(H,"set",F,"Timeout"),it(H,"set",F,"Interval"),it(H,"set",F,"Immediate")}),G.__load_patch("requestAnimationFrame",H=>{it(H,"request","cancel","AnimationFrame"),it(H,"mozRequest","mozCancel","AnimationFrame"),it(H,"webkitRequest","webkitCancel","AnimationFrame")}),G.__load_patch("blocking",(H,q)=>{const F=["alert","prompt","confirm"];for(let Z=0;Z<F.length;Z++){const J=F[Z];Je(H,J,(se,ie,ue)=>function(ye,ne){return q.current.run(se,H,ne,ue)})}}),G.__load_patch("EventTarget",(H,q,F)=>{Xt(H,F),zt(H,F);const Z=H.XMLHttpRequestEventTarget;Z&&Z.prototype&&F.patchEventTarget(H,F,[Z.prototype])}),G.__load_patch("MutationObserver",(H,q,F)=>{ut("MutationObserver"),ut("WebKitMutationObserver")}),G.__load_patch("IntersectionObserver",(H,q,F)=>{ut("IntersectionObserver")}),G.__load_patch("FileReader",(H,q,F)=>{ut("FileReader")}),G.__load_patch("on_property",(H,q,F)=>{Jt(F,H)}),G.__load_patch("customElements",(H,q,F)=>{Wt(H,F)}),G.__load_patch("XHR",(H,q)=>{ye(H);const F=B("xhrTask"),Z=B("xhrSync"),J=B("xhrListener"),se=B("xhrScheduled"),ie=B("xhrURL"),ue=B("xhrErrorBeforeScheduled");function ye(ne){const Ee=ne.XMLHttpRequest;if(!Ee)return;const Pe=Ee.prototype;function Ce(Te){return Te[F]}let Ue=Pe[y],Be=Pe[_];if(!Ue){const Te=ne.XMLHttpRequestEventTarget;if(Te){const pe=Te.prototype;Ue=pe[y],Be=pe[_]}}const Ge="readystatechange",Ve="scheduled";function _e(Te){const pe=Te.data,he=pe.target;he[se]=!1,he[ue]=!1;const He=he[J];Ue||(Ue=he[y],Be=he[_]),He&&Be.call(he,Ge,He);const xe=he[J]=()=>{if(he.readyState===he.DONE)if(!pe.aborted&&he[se]&&Te.state===Ve){const j=he[q.__symbol__("loadfalse")];if(he.status!==0&&j&&j.length>0){const K=Te.invoke;Te.invoke=function(){const Y=he[q.__symbol__("loadfalse")];for(let ae=0;ae<Y.length;ae++)Y[ae]===Te&&Y.splice(ae,1);!pe.aborted&&Te.state===Ve&&K.call(Te)},j.push(Te)}else Te.invoke()}else!pe.aborted&&he[se]===!1&&(he[ue]=!0)};return Ue.call(he,Ge,xe),he[F]||(he[F]=Te),we.apply(he,pe.args),he[se]=!0,Te}function ee(){}function Re(Te){const pe=Te.data;return pe.aborted=!0,Ae.apply(pe.target,pe.args)}const Me=Je(Pe,"open",()=>function(Te,pe){return Te[Z]=pe[2]==!1,Te[ie]=pe[1],Me.apply(Te,pe)}),ke="XMLHttpRequest.send",Le=B("fetchTaskAborting"),ce=B("fetchTaskScheduling"),we=Je(Pe,"send",()=>function(Te,pe){if(q.current[ce]===!0||Te[Z])return we.apply(Te,pe);{const he={target:Te,url:Te[ie],isPeriodic:!1,args:pe,aborted:!1},He=k(ke,ee,he,_e,Re);Te&&Te[ue]===!0&&!he.aborted&&He.state===Ve&&He.invoke()}}),Ae=Je(Pe,"abort",()=>function(Te,pe){const he=Ce(Te);if(he&&typeof he.type=="string"){if(he.cancelFn==null||he.data&&he.data.aborted)return;he.zone.cancelTask(he)}else if(q.current[Le]===!0)return Ae.apply(Te,pe)})}}),G.__load_patch("geolocation",H=>{H.navigator&&H.navigator.geolocation&&et(H.navigator.geolocation,["getCurrentPosition","watchPosition"])}),G.__load_patch("PromiseRejectionEvent",(H,q)=>{function F(Z){return function(J){Dt(H,Z).forEach(ie=>{const ue=H.PromiseRejectionEvent;if(ue){const ye=new ue(Z,{promise:J.promise,reason:J.rejection});ie.invoke(ye)}})}}H.PromiseRejectionEvent&&(q[B("unhandledPromiseRejectionHandler")]=F("unhandledrejection"),q[B("rejectionHandledHandler")]=F("rejectionhandled"))}),G.__load_patch("queueMicrotask",(H,q,F)=>{qt(H,F)})}function er(G){G.__load_patch("ZoneAwarePromise",(H,q,F)=>{const Z=Object.getOwnPropertyDescriptor,J=Object.defineProperty;function se(Q){if(Q&&Q.toString===Object.prototype.toString){const z=Q.constructor&&Q.constructor.name;return(z||"")+": "+JSON.stringify(Q)}return Q?Q.toString():Object.prototype.toString.call(Q)}const ie=F.symbol,ue=[],ye=H[ie("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,ne=ie("Promise"),Ee=ie("then"),Pe="__creationTrace__";F.onUnhandledError=Q=>{if(F.showUncaughtError()){const z=Q&&Q.rejection;z?console.error("Unhandled Promise rejection:",z instanceof Error?z.message:z,"; Zone:",Q.zone.name,"; Task:",Q.task&&Q.task.source,"; Value:",z,z instanceof Error?z.stack:void 0):console.error(Q)}},F.microtaskDrainDone=()=>{for(;ue.length;){const Q=ue.shift();try{Q.zone.runGuarded(()=>{throw Q.throwOriginal?Q.rejection:Q})}catch(z){Ue(z)}}};const Ce=ie("unhandledPromiseRejectionHandler");function Ue(Q){F.onUnhandledError(Q);try{const z=q[Ce];typeof z=="function"&&z.call(this,Q)}catch{}}function Be(Q){return Q&&typeof Q.then=="function"}function Ge(Q){return Q}function Ve(Q){return Ne.reject(Q)}const _e=ie("state"),ee=ie("value"),Re=ie("finally"),Me=ie("parentPromiseValue"),ke=ie("parentPromiseState"),Le="Promise.then",ce=null,we=!0,Ae=!1,Te=0;function pe(Q,z){return $=>{try{ge(Q,z,$)}catch(X){ge(Q,!1,X)}}}const he=function(){let Q=!1;return function($){return function(){Q||(Q=!0,$.apply(null,arguments))}}},He="Promise resolved with itself",xe=ie("currentTaskTrace");function ge(Q,z,$){const X=he();if(Q===$)throw new TypeError(He);if(Q[_e]===ce){let de=null;try{(typeof $=="object"||typeof $=="function")&&(de=$&&$.then)}catch(Se){return X(()=>{ge(Q,!1,Se)})(),Q}if(z!==Ae&&$ instanceof Ne&&$.hasOwnProperty(_e)&&$.hasOwnProperty(ee)&&$[_e]!==ce)K($),ge(Q,$[_e],$[ee]);else if(z!==Ae&&typeof de=="function")try{de.call($,X(pe(Q,z)),X(pe(Q,!1)))}catch(Se){X(()=>{ge(Q,!1,Se)})()}else{Q[_e]=z;const Se=Q[ee];if(Q[ee]=$,Q[Re]===Re&&z===we&&(Q[_e]=Q[ke],Q[ee]=Q[Me]),z===Ae&&$ instanceof Error){const le=q.currentTask&&q.currentTask.data&&q.currentTask.data[Pe];le&&J($,xe,{configurable:!0,enumerable:!1,writable:!0,value:le})}for(let le=0;le<Se.length;)Y(Q,Se[le++],Se[le++],Se[le++],Se[le++]);if(Se.length==0&&z==Ae){Q[_e]=Te;let le=$;try{throw new Error("Uncaught (in promise): "+se($)+($&&$.stack?`
|
|
244
|
+
`+$.stack:""))}catch(me){le=me}ye&&(le.throwOriginal=!0),le.rejection=$,le.promise=Q,le.zone=q.current,le.task=q.currentTask,ue.push(le),F.scheduleMicroTask()}}}return Q}const j=ie("rejectionHandledHandler");function K(Q){if(Q[_e]===Te){try{const z=q[j];z&&typeof z=="function"&&z.call(this,{rejection:Q[ee],promise:Q})}catch{}Q[_e]=Ae;for(let z=0;z<ue.length;z++)Q===ue[z].promise&&ue.splice(z,1)}}function Y(Q,z,$,X,de){K(Q);const Se=Q[_e],le=Se?typeof X=="function"?X:Ge:typeof de=="function"?de:Ve;z.scheduleMicroTask(Le,()=>{try{const me=Q[ee],ve=!!$&&Re===$[Re];ve&&($[Me]=me,$[ke]=Se);const Oe=z.run(le,void 0,ve&&le!==Ve&&le!==Ge?[]:[me]);ge($,!0,Oe)}catch(me){ge($,!1,me)}},$)}const ae="function ZoneAwarePromise() { [native code] }",Ie=function(){},Ke=H.AggregateError;class Ne{static toString(){return ae}static resolve(z){return z instanceof Ne?z:ge(new this(null),we,z)}static reject(z){return ge(new this(null),Ae,z)}static withResolvers(){const z={};return z.promise=new Ne(($,X)=>{z.resolve=$,z.reject=X}),z}static any(z){if(!z||typeof z[Symbol.iterator]!="function")return Promise.reject(new Ke([],"All promises were rejected"));const $=[];let X=0;try{for(let le of z)X++,$.push(Ne.resolve(le))}catch{return Promise.reject(new Ke([],"All promises were rejected"))}if(X===0)return Promise.reject(new Ke([],"All promises were rejected"));let de=!1;const Se=[];return new Ne((le,me)=>{for(let ve=0;ve<$.length;ve++)$[ve].then(Oe=>{de||(de=!0,le(Oe))},Oe=>{Se.push(Oe),X--,X===0&&(de=!0,me(new Ke(Se,"All promises were rejected")))})})}static race(z){let $,X,de=new this((me,ve)=>{$=me,X=ve});function Se(me){$(me)}function le(me){X(me)}for(let me of z)Be(me)||(me=this.resolve(me)),me.then(Se,le);return de}static all(z){return Ne.allWithCallback(z)}static allSettled(z){return(this&&this.prototype instanceof Ne?this:Ne).allWithCallback(z,{thenCallback:X=>({status:"fulfilled",value:X}),errorCallback:X=>({status:"rejected",reason:X})})}static allWithCallback(z,$){let X,de,Se=new this((Oe,be)=>{X=Oe,de=be}),le=2,me=0;const ve=[];for(let Oe of z){Be(Oe)||(Oe=this.resolve(Oe));const be=me;try{Oe.then(De=>{ve[be]=$?$.thenCallback(De):De,le--,le===0&&X(ve)},De=>{$?(ve[be]=$.errorCallback(De),le--,le===0&&X(ve)):de(De)})}catch(De){de(De)}le++,me++}return le-=2,le===0&&X(ve),Se}constructor(z){const $=this;if(!($ instanceof Ne))throw new Error("Must be an instanceof Promise.");$[_e]=ce,$[ee]=[];try{const X=he();z&&z(X(pe($,we)),X(pe($,Ae)))}catch(X){ge($,!1,X)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Ne}then(z,$){let X=this.constructor?.[Symbol.species];(!X||typeof X!="function")&&(X=this.constructor||Ne);const de=new X(Ie),Se=q.current;return this[_e]==ce?this[ee].push(Se,de,z,$):Y(this,Se,de,z,$),de}catch(z){return this.then(null,z)}finally(z){let $=this.constructor?.[Symbol.species];(!$||typeof $!="function")&&($=Ne);const X=new $(Ie);X[Re]=Re;const de=q.current;return this[_e]==ce?this[ee].push(de,X,z,z):Y(this,de,X,z,z),X}}Ne.resolve=Ne.resolve,Ne.reject=Ne.reject,Ne.race=Ne.race,Ne.all=Ne.all;const rt=H[ne]=H.Promise;H.Promise=Ne;const ot=ie("thenPatched");function je(Q){const z=Q.prototype,$=Z(z,"then");if($&&($.writable===!1||!$.configurable))return;const X=z.then;z[Ee]=X,Q.prototype.then=function(de,Se){return new Ne((me,ve)=>{X.call(this,me,ve)}).then(de,Se)},Q[ot]=!0}F.patchThen=je;function at(Q){return function(z,$){let X=Q.apply(z,$);if(X instanceof Ne)return X;let de=X.constructor;return de[ot]||je(de),X}}return rt&&(je(rt),Je(H,"fetch",Q=>at(Q))),Promise[q.__symbol__("uncaughtPromiseErrors")]=ue,Ne})}function tr(G){G.__load_patch("toString",H=>{const q=Function.prototype.toString,F=B("OriginalDelegate"),Z=B("Promise"),J=B("Error"),se=function(){if(typeof this=="function"){const ne=this[F];if(ne)return typeof ne=="function"?q.call(ne):Object.prototype.toString.call(ne);if(this===Promise){const Ee=H[Z];if(Ee)return q.call(Ee)}if(this===Error){const Ee=H[J];if(Ee)return q.call(Ee)}}return q.call(this)};se[F]=q,Function.prototype.toString=se;const ie=Object.prototype.toString,ue="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?ue:ie.call(this)}})}function rr(G,H,q,F,Z){const J=Zone.__symbol__(F);if(H[J])return;const se=H[J]=H[F];H[F]=function(ie,ue,ye){return ue&&ue.prototype&&Z.forEach(function(ne){const Ee=`${q}.${F}::`+ne,Pe=ue.prototype;try{if(Pe.hasOwnProperty(ne)){const Ce=G.ObjectGetOwnPropertyDescriptor(Pe,ne);Ce&&Ce.value?(Ce.value=G.wrapWithCurrentZone(Ce.value,Ee),G._redefineProperty(ue.prototype,ne,Ce)):Pe[ne]&&(Pe[ne]=G.wrapWithCurrentZone(Pe[ne],Ee))}else Pe[ne]&&(Pe[ne]=G.wrapWithCurrentZone(Pe[ne],Ee))}catch{}}),se.call(H,ie,ue,ye)},G.attachOriginToPatched(H[F],se)}function nr(G){G.__load_patch("util",(H,q,F)=>{const Z=ht(H);F.patchOnProperties=gt,F.patchMethod=Je,F.bindArguments=Fe,F.patchMacroTask=Yt;const J=q.__symbol__("BLACK_LISTED_EVENTS"),se=q.__symbol__("UNPATCHED_EVENTS");H[se]&&(H[J]=H[se]),H[J]&&(q[J]=q[se]=H[J]),F.patchEventPrototype=Zt,F.patchEventTarget=Kt,F.isIEOrEdge=$t,F.ObjectDefineProperty=R,F.ObjectGetOwnPropertyDescriptor=P,F.ObjectCreate=D,F.ArraySlice=U,F.patchClass=ut,F.wrapWithCurrentZone=V,F.filterProperties=Ut,F.attachOriginToPatched=Qe,F._redefineProperty=Object.defineProperty,F.patchCallbacks=rr,F.getGlobalObjects=()=>({globalSources:Mt,zoneSymbolEventNames:Ze,eventNames:Z,isBrowser:St,isMix:vt,isNode:pt,TRUE_STR:N,FALSE_STR:I,ZONE_SYMBOL_PREFIX:x,ADD_EVENT_LISTENER_STR:C,REMOVE_EVENT_LISTENER_STR:L})})}function or(G){er(G),tr(G),nr(G)}const xt=O();return or(xt),Qt(xt),zone}requireZone();const index$2=Object.freeze(Object.defineProperty({__proto__:null,ZoneContextManager},Symbol.toStringTag,{value:"Module"}));var detectResources$1={},Resource={};const require$$1$1=getAugmentedNamespace(esm$2),require$$1=getAugmentedNamespace(esm$1),require$$2=getAugmentedNamespace(esm);var browser={},defaultServiceName={},hasRequiredDefaultServiceName;function requireDefaultServiceName(){if(hasRequiredDefaultServiceName)return defaultServiceName;hasRequiredDefaultServiceName=1,Object.defineProperty(defaultServiceName,"__esModule",{value:!0}),defaultServiceName.defaultServiceName=void 0;function S(){return"unknown_service"}return defaultServiceName.defaultServiceName=S,defaultServiceName}var hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,(function(S){Object.defineProperty(S,"__esModule",{value:!0}),S.defaultServiceName=void 0;var T=requireDefaultServiceName();Object.defineProperty(S,"defaultServiceName",{enumerable:!0,get:function(){return T.defaultServiceName}})})(browser)),browser}var hasRequiredResource;function requireResource(){if(hasRequiredResource)return Resource;hasRequiredResource=1,Object.defineProperty(Resource,"__esModule",{value:!0}),Resource.Resource=void 0;const S=require$$1$1,T=require$$1,A=require$$2,O=requireBrowser();let P=class dt{constructor(M,D){var U;this._attributes=M,this.asyncAttributesPending=D!=null,this._syncAttributes=(U=this._attributes)!==null&&U!==void 0?U:{},this._asyncAttributesPromise=D?.then(C=>(this._attributes=Object.assign({},this._attributes,C),this.asyncAttributesPending=!1,C),C=>(S.diag.debug("a resource's async attributes promise rejected: %s",C),this.asyncAttributesPending=!1,{}))}static empty(){return dt.EMPTY}static default(){return new dt({[T.SEMRESATTRS_SERVICE_NAME]:(0,O.defaultServiceName)(),[T.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:A.SDK_INFO[T.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[T.SEMRESATTRS_TELEMETRY_SDK_NAME]:A.SDK_INFO[T.SEMRESATTRS_TELEMETRY_SDK_NAME],[T.SEMRESATTRS_TELEMETRY_SDK_VERSION]:A.SDK_INFO[T.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var M;return this.asyncAttributesPending&&S.diag.error("Accessing resource attributes before async attributes settled"),(M=this._attributes)!==null&&M!==void 0?M:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(M){var D;if(!M)return this;const U=Object.assign(Object.assign({},this._syncAttributes),(D=M._syncAttributes)!==null&&D!==void 0?D:M.attributes);if(!this._asyncAttributesPromise&&!M._asyncAttributesPromise)return new dt(U);const C=Promise.all([this._asyncAttributesPromise,M._asyncAttributesPromise]).then(([L,y])=>{var _;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),L),(_=M._syncAttributes)!==null&&_!==void 0?_:M.attributes),y)});return new dt(U,C)}};return Resource.Resource=P,P.EMPTY=new P({}),Resource}var utils={},hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1,Object.defineProperty(utils,"__esModule",{value:!0}),utils.isPromiseLike=void 0;const S=T=>T!==null&&typeof T=="object"&&typeof T.then=="function";return utils.isPromiseLike=S,utils}var hasRequiredDetectResources;function requireDetectResources(){if(hasRequiredDetectResources)return detectResources$1;hasRequiredDetectResources=1,Object.defineProperty(detectResources$1,"__esModule",{value:!0}),detectResources$1.detectResourcesSync=detectResources$1.detectResources=void 0;const S=requireResource(),T=require$$1$1,A=requireUtils(),O=async(M={})=>{const D=await Promise.all((M.detectors||[]).map(async U=>{try{const C=await U.detect(M);return T.diag.debug(`${U.constructor.name} found resource.`,C),C}catch(C){return T.diag.debug(`${U.constructor.name} failed: ${C.message}`),S.Resource.empty()}}));return R(D),D.reduce((U,C)=>U.merge(C),S.Resource.empty())};detectResources$1.detectResources=O;const P=(M={})=>{var D;const U=((D=M.detectors)!==null&&D!==void 0?D:[]).map(L=>{try{const y=L.detect(M);let _;if((0,A.isPromiseLike)(y)){const N=async()=>{var I;const x=await y;return await((I=x.waitForAsyncAttributes)===null||I===void 0?void 0:I.call(x)),x.attributes};_=new S.Resource({},N())}else _=y;return _.waitForAsyncAttributes?_.waitForAsyncAttributes().then(()=>T.diag.debug(`${L.constructor.name} found resource.`,_)):T.diag.debug(`${L.constructor.name} found resource.`,_),_}catch(y){return T.diag.error(`${L.constructor.name} failed: ${y.message}`),S.Resource.empty()}}),C=U.reduce((L,y)=>L.merge(y),S.Resource.empty());return C.waitForAsyncAttributes&&C.waitForAsyncAttributes().then(()=>{R(U)}),C};detectResources$1.detectResourcesSync=P;const R=M=>{M.forEach(D=>{if(Object.keys(D.attributes).length>0){const U=JSON.stringify(D.attributes,null,4);T.diag.verbose(U)}})};return detectResources$1}var detectResourcesExports=requireDetectResources();const detectResources=_mergeNamespaces({__proto__:null},[detectResourcesExports]);var OTLPExporterBase=(function(){function S(T){this._delegate=T}return S.prototype.export=function(T,A){this._delegate.export(T,A)},S.prototype.forceFlush=function(){return this._delegate.forceFlush()},S.prototype.shutdown=function(){return this._delegate.shutdown()},S})(),__extends$1=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),OTLPExporterError=(function(S){__extends$1(T,S);function T(A,O,P){var R=S.call(this,A)||this;return R.name="OTLPExporterError",R.data=P,R.code=O,R}return T})(Error);function validateTimeoutMillis(S){if(!Number.isNaN(S)&&Number.isFinite(S)&&S>0)return S;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+S+"')")}function wrapStaticHeadersInFunction(S){if(S!=null)return function(){return S}}function mergeOtlpSharedConfigurationWithDefaults(S,T,A){var O,P,R,M,D,U;return{timeoutMillis:validateTimeoutMillis((P=(O=S.timeoutMillis)!==null&&O!==void 0?O:T.timeoutMillis)!==null&&P!==void 0?P:A.timeoutMillis),concurrencyLimit:(M=(R=S.concurrencyLimit)!==null&&R!==void 0?R:T.concurrencyLimit)!==null&&M!==void 0?M:A.concurrencyLimit,compression:(U=(D=S.compression)!==null&&D!==void 0?D:T.compression)!==null&&U!==void 0?U:A.compression}}function getSharedConfigurationDefaults(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var __awaiter$2=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$2=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},BoundedQueueExportPromiseHandler=(function(){function S(T){this._sendingPromises=[],this._concurrencyLimit=T}return S.prototype.pushPromise=function(T){var A=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(T);var O=function(){var P=A._sendingPromises.indexOf(T);A._sendingPromises.splice(P,1)};T.then(O,O)},S.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},S.prototype.awaitAll=function(){return __awaiter$2(this,void 0,void 0,function(){return __generator$2(this,function(T){switch(T.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return T.sent(),[2]}})})},S})();function createBoundedQueueExportPromiseHandler(S){return new BoundedQueueExportPromiseHandler(S.concurrencyLimit)}function isPartialSuccessResponse(S){return Object.prototype.hasOwnProperty.call(S,"partialSuccess")}function createLoggingPartialSuccessResponseHandler(){return{handleResponse:function(S){S==null||!isPartialSuccessResponse(S)||S.partialSuccess==null||Object.keys(S.partialSuccess).length===0||diag.warn("Received Partial Success response:",JSON.stringify(S.partialSuccess))}}}var __awaiter$1=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator$1=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},OTLPExportDelegate=(function(){function S(T,A,O,P,R){this._transport=T,this._serializer=A,this._responseHandler=O,this._promiseQueue=P,this._timeout=R,this._diagLogger=diag.createComponentLogger({namespace:"OTLPExportDelegate"})}return S.prototype.export=function(T,A){var O=this;if(this._diagLogger.debug("items to be sent",T),this._promiseQueue.hasReachedLimit()){A({code:ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}var P=this._serializer.serializeRequest(T);if(P==null){A({code:ExportResultCode.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(P,this._timeout).then(function(R){if(R.status==="success"){if(R.data!=null)try{O._responseHandler.handleResponse(O._serializer.deserializeResponse(R.data))}catch(M){O._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",M,R.data)}A({code:ExportResultCode.SUCCESS});return}else if(R.status==="failure"&&R.error){A({code:ExportResultCode.FAILED,error:R.error});return}else R.status==="retryable"?A({code:ExportResultCode.FAILED,error:new OTLPExporterError("Export failed with retryable status")}):A({code:ExportResultCode.FAILED,error:new OTLPExporterError("Export failed with unknown error")})},function(R){return A({code:ExportResultCode.FAILED,error:R})}))},S.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},S.prototype.shutdown=function(){return __awaiter$1(this,void 0,void 0,function(){return __generator$1(this,function(T){switch(T.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return T.sent(),this._transport.shutdown(),[2]}})})},S})();function createOtlpExportDelegate(S,T){return new OTLPExportDelegate(S.transport,S.serializer,createLoggingPartialSuccessResponseHandler(),S.promiseHandler,T.timeout)}function createOtlpNetworkExportDelegate(S,T,A){return createOtlpExportDelegate({transport:A,serializer:T,promiseHandler:createBoundedQueueExportPromiseHandler(S)},{timeout:S.timeoutMillis})}var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=S;function S(T,A){for(var O=new Array(arguments.length-1),P=0,R=2,M=!0;R<arguments.length;)O[P++]=arguments[R++];return new Promise(function(U,C){O[P]=function(y){if(M)if(M=!1,y)C(y);else{for(var _=new Array(arguments.length-1),N=0;N<_.length;)_[N++]=arguments[N];U.apply(null,_)}};try{T.apply(A||null,O)}catch(L){M&&(M=!1,C(L))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,(function(S){var T=S;T.length=function(D){var U=D.length;if(!U)return 0;for(var C=0;--U%4>1&&D.charAt(U)==="=";)++C;return Math.ceil(D.length*3)/4-C};for(var A=new Array(64),O=new Array(123),P=0;P<64;)O[A[P]=P<26?P+65:P<52?P+71:P<62?P-4:P-59|43]=P++;T.encode=function(D,U,C){for(var L=null,y=[],_=0,N=0,I;U<C;){var x=D[U++];switch(N){case 0:y[_++]=A[x>>2],I=(x&3)<<4,N=1;break;case 1:y[_++]=A[I|x>>4],I=(x&15)<<2,N=2;break;case 2:y[_++]=A[I|x>>6],y[_++]=A[x&63],N=0;break}_>8191&&((L||(L=[])).push(String.fromCharCode.apply(String,y)),_=0)}return N&&(y[_++]=A[I],y[_++]=61,N===1&&(y[_++]=61)),L?(_&&L.push(String.fromCharCode.apply(String,y.slice(0,_))),L.join("")):String.fromCharCode.apply(String,y.slice(0,_))};var R="invalid encoding";T.decode=function(D,U,C){for(var L=C,y=0,_,N=0;N<D.length;){var I=D.charCodeAt(N++);if(I===61&&y>1)break;if((I=O[I])===void 0)throw Error(R);switch(y){case 0:_=I,y=1;break;case 1:U[C++]=_<<2|(I&48)>>4,_=I,y=2;break;case 2:U[C++]=(_&15)<<4|(I&60)>>2,_=I,y=3;break;case 3:U[C++]=(_&3)<<6|I,y=0;break}}if(y===1)throw Error(R);return C-L},T.test=function(D){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(D)}})(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=S;function S(){this._listeners={}}return S.prototype.on=function(A,O,P){return(this._listeners[A]||(this._listeners[A]=[])).push({fn:O,ctx:P||this}),this},S.prototype.off=function(A,O){if(A===void 0)this._listeners={};else if(O===void 0)this._listeners[A]=[];else for(var P=this._listeners[A],R=0;R<P.length;)P[R].fn===O?P.splice(R,1):++R;return this},S.prototype.emit=function(A){var O=this._listeners[A];if(O){for(var P=[],R=1;R<arguments.length;)P.push(arguments[R++]);for(R=0;R<O.length;)O[R].fn.apply(O[R++].ctx,P)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=S(S);function S(R){return typeof Float32Array<"u"?(function(){var M=new Float32Array([-0]),D=new Uint8Array(M.buffer),U=D[3]===128;function C(N,I,x){M[0]=N,I[x]=D[0],I[x+1]=D[1],I[x+2]=D[2],I[x+3]=D[3]}function L(N,I,x){M[0]=N,I[x]=D[3],I[x+1]=D[2],I[x+2]=D[1],I[x+3]=D[0]}R.writeFloatLE=U?C:L,R.writeFloatBE=U?L:C;function y(N,I){return D[0]=N[I],D[1]=N[I+1],D[2]=N[I+2],D[3]=N[I+3],M[0]}function _(N,I){return D[3]=N[I],D[2]=N[I+1],D[1]=N[I+2],D[0]=N[I+3],M[0]}R.readFloatLE=U?y:_,R.readFloatBE=U?_:y})():(function(){function M(U,C,L,y){var _=C<0?1:0;if(_&&(C=-C),C===0)U(1/C>0?0:2147483648,L,y);else if(isNaN(C))U(2143289344,L,y);else if(C>34028234663852886e22)U((_<<31|2139095040)>>>0,L,y);else if(C<11754943508222875e-54)U((_<<31|Math.round(C/1401298464324817e-60))>>>0,L,y);else{var N=Math.floor(Math.log(C)/Math.LN2),I=Math.round(C*Math.pow(2,-N)*8388608)&8388607;U((_<<31|N+127<<23|I)>>>0,L,y)}}R.writeFloatLE=M.bind(null,T),R.writeFloatBE=M.bind(null,A);function D(U,C,L){var y=U(C,L),_=(y>>31)*2+1,N=y>>>23&255,I=y&8388607;return N===255?I?NaN:_*(1/0):N===0?_*1401298464324817e-60*I:_*Math.pow(2,N-150)*(I+8388608)}R.readFloatLE=D.bind(null,O),R.readFloatBE=D.bind(null,P)})(),typeof Float64Array<"u"?(function(){var M=new Float64Array([-0]),D=new Uint8Array(M.buffer),U=D[7]===128;function C(N,I,x){M[0]=N,I[x]=D[0],I[x+1]=D[1],I[x+2]=D[2],I[x+3]=D[3],I[x+4]=D[4],I[x+5]=D[5],I[x+6]=D[6],I[x+7]=D[7]}function L(N,I,x){M[0]=N,I[x]=D[7],I[x+1]=D[6],I[x+2]=D[5],I[x+3]=D[4],I[x+4]=D[3],I[x+5]=D[2],I[x+6]=D[1],I[x+7]=D[0]}R.writeDoubleLE=U?C:L,R.writeDoubleBE=U?L:C;function y(N,I){return D[0]=N[I],D[1]=N[I+1],D[2]=N[I+2],D[3]=N[I+3],D[4]=N[I+4],D[5]=N[I+5],D[6]=N[I+6],D[7]=N[I+7],M[0]}function _(N,I){return D[7]=N[I],D[6]=N[I+1],D[5]=N[I+2],D[4]=N[I+3],D[3]=N[I+4],D[2]=N[I+5],D[1]=N[I+6],D[0]=N[I+7],M[0]}R.readDoubleLE=U?y:_,R.readDoubleBE=U?_:y})():(function(){function M(U,C,L,y,_,N){var I=y<0?1:0;if(I&&(y=-y),y===0)U(0,_,N+C),U(1/y>0?0:2147483648,_,N+L);else if(isNaN(y))U(0,_,N+C),U(2146959360,_,N+L);else if(y>17976931348623157e292)U(0,_,N+C),U((I<<31|2146435072)>>>0,_,N+L);else{var x;if(y<22250738585072014e-324)x=y/5e-324,U(x>>>0,_,N+C),U((I<<31|x/4294967296)>>>0,_,N+L);else{var V=Math.floor(Math.log(y)/Math.LN2);V===1024&&(V=1023),x=y*Math.pow(2,-V),U(x*4503599627370496>>>0,_,N+C),U((I<<31|V+1023<<20|x*1048576&1048575)>>>0,_,N+L)}}}R.writeDoubleLE=M.bind(null,T,0,4),R.writeDoubleBE=M.bind(null,A,4,0);function D(U,C,L,y,_){var N=U(y,_+C),I=U(y,_+L),x=(I>>31)*2+1,V=I>>>20&2047,k=4294967296*(I&1048575)+N;return V===2047?k?NaN:x*(1/0):V===0?x*5e-324*k:x*Math.pow(2,V-1075)*(k+4503599627370496)}R.readDoubleLE=D.bind(null,O,0,4),R.readDoubleBE=D.bind(null,P,4,0)})(),R}function T(R,M,D){M[D]=R&255,M[D+1]=R>>>8&255,M[D+2]=R>>>16&255,M[D+3]=R>>>24}function A(R,M,D){M[D]=R>>>24,M[D+1]=R>>>16&255,M[D+2]=R>>>8&255,M[D+3]=R&255}function O(R,M){return(R[M]|R[M+1]<<8|R[M+2]<<16|R[M+3]<<24)>>>0}function P(R,M){return(R[M]<<24|R[M+1]<<16|R[M+2]<<8|R[M+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(S){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,(function(S){var T=S;T.length=function(O){for(var P=0,R=0,M=0;M<O.length;++M)R=O.charCodeAt(M),R<128?P+=1:R<2048?P+=2:(R&64512)===55296&&(O.charCodeAt(M+1)&64512)===56320?(++M,P+=4):P+=3;return P},T.read=function(O,P,R){var M=R-P;if(M<1)return"";for(var D=null,U=[],C=0,L;P<R;)L=O[P++],L<128?U[C++]=L:L>191&&L<224?U[C++]=(L&31)<<6|O[P++]&63:L>239&&L<365?(L=((L&7)<<18|(O[P++]&63)<<12|(O[P++]&63)<<6|O[P++]&63)-65536,U[C++]=55296+(L>>10),U[C++]=56320+(L&1023)):U[C++]=(L&15)<<12|(O[P++]&63)<<6|O[P++]&63,C>8191&&((D||(D=[])).push(String.fromCharCode.apply(String,U)),C=0);return D?(C&&D.push(String.fromCharCode.apply(String,U.slice(0,C))),D.join("")):String.fromCharCode.apply(String,U.slice(0,C))},T.write=function(O,P,R){for(var M=R,D,U,C=0;C<O.length;++C)D=O.charCodeAt(C),D<128?P[R++]=D:D<2048?(P[R++]=D>>6|192,P[R++]=D&63|128):(D&64512)===55296&&((U=O.charCodeAt(C+1))&64512)===56320?(D=65536+((D&1023)<<10)+(U&1023),++C,P[R++]=D>>18|240,P[R++]=D>>12&63|128,P[R++]=D>>6&63|128,P[R++]=D&63|128):(P[R++]=D>>12|224,P[R++]=D>>6&63|128,P[R++]=D&63|128);return R-M}})(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=S;function S(T,A,O){var P=O||8192,R=P>>>1,M=null,D=P;return function(C){if(C<1||C>R)return T(C);D+C>P&&(M=T(P),D=0);var L=A.call(M,D,D+=C);return D&7&&(D=(D|7)+1),L}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=T;var S=requireMinimal$1();function T(R,M){this.lo=R>>>0,this.hi=M>>>0}var A=T.zero=new T(0,0);A.toNumber=function(){return 0},A.zzEncode=A.zzDecode=function(){return this},A.length=function(){return 1};var O=T.zeroHash="\0\0\0\0\0\0\0\0";T.fromNumber=function(M){if(M===0)return A;var D=M<0;D&&(M=-M);var U=M>>>0,C=(M-U)/4294967296>>>0;return D&&(C=~C>>>0,U=~U>>>0,++U>4294967295&&(U=0,++C>4294967295&&(C=0))),new T(U,C)},T.from=function(M){if(typeof M=="number")return T.fromNumber(M);if(S.isString(M))if(S.Long)M=S.Long.fromString(M);else return T.fromNumber(parseInt(M,10));return M.low||M.high?new T(M.low>>>0,M.high>>>0):A},T.prototype.toNumber=function(M){if(!M&&this.hi>>>31){var D=~this.lo+1>>>0,U=~this.hi>>>0;return D||(U=U+1>>>0),-(D+U*4294967296)}return this.lo+this.hi*4294967296},T.prototype.toLong=function(M){return S.Long?new S.Long(this.lo|0,this.hi|0,!!M):{low:this.lo|0,high:this.hi|0,unsigned:!!M}};var P=String.prototype.charCodeAt;return T.fromHash=function(M){return M===O?A:new T((P.call(M,0)|P.call(M,1)<<8|P.call(M,2)<<16|P.call(M,3)<<24)>>>0,(P.call(M,4)|P.call(M,5)<<8|P.call(M,6)<<16|P.call(M,7)<<24)>>>0)},T.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)},T.prototype.zzEncode=function(){var M=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^M)>>>0,this.lo=(this.lo<<1^M)>>>0,this},T.prototype.zzDecode=function(){var M=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^M)>>>0,this.hi=(this.hi>>>1^M)>>>0,this},T.prototype.length=function(){var M=this.lo,D=(this.lo>>>28|this.hi<<4)>>>0,U=this.hi>>>24;return U===0?D===0?M<16384?M<128?1:2:M<2097152?3:4:D<16384?D<128?5:6:D<2097152?7:8:U<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,(function(S){var T=S;T.asPromise=requireAspromise(),T.base64=requireBase64(),T.EventEmitter=requireEventemitter(),T.float=requireFloat(),T.inquire=requireInquire(),T.utf8=requireUtf8(),T.pool=requirePool(),T.LongBits=requireLongbits(),T.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),T.global=T.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,T.emptyArray=Object.freeze?Object.freeze([]):[],T.emptyObject=Object.freeze?Object.freeze({}):{},T.isInteger=Number.isInteger||function(R){return typeof R=="number"&&isFinite(R)&&Math.floor(R)===R},T.isString=function(R){return typeof R=="string"||R instanceof String},T.isObject=function(R){return R&&typeof R=="object"},T.isset=T.isSet=function(R,M){var D=R[M];return D!=null&&R.hasOwnProperty(M)?typeof D!="object"||(Array.isArray(D)?D.length:Object.keys(D).length)>0:!1},T.Buffer=(function(){try{var P=T.inquire("buffer").Buffer;return P.prototype.utf8Write?P:null}catch{return null}})(),T._Buffer_from=null,T._Buffer_allocUnsafe=null,T.newBuffer=function(R){return typeof R=="number"?T.Buffer?T._Buffer_allocUnsafe(R):new T.Array(R):T.Buffer?T._Buffer_from(R):typeof Uint8Array>"u"?R:new Uint8Array(R)},T.Array=typeof Uint8Array<"u"?Uint8Array:Array,T.Long=T.global.dcodeIO&&T.global.dcodeIO.Long||T.global.Long||T.inquire("long"),T.key2Re=/^true|false|0|1$/,T.key32Re=/^-?(?:0|[1-9][0-9]*)$/,T.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,T.longToHash=function(R){return R?T.LongBits.from(R).toHash():T.LongBits.zeroHash},T.longFromHash=function(R,M){var D=T.LongBits.fromHash(R);return T.Long?T.Long.fromBits(D.lo,D.hi,M):D.toNumber(!!M)};function A(P,R,M){for(var D=Object.keys(R),U=0;U<D.length;++U)(P[D[U]]===void 0||!M)&&(P[D[U]]=R[D[U]]);return P}T.merge=A,T.lcFirst=function(R){return R.charAt(0).toLowerCase()+R.substring(1)};function O(P){function R(M,D){if(!(this instanceof R))return new R(M,D);Object.defineProperty(this,"message",{get:function(){return M}}),Error.captureStackTrace?Error.captureStackTrace(this,R):Object.defineProperty(this,"stack",{value:new Error().stack||""}),D&&A(this,D)}return R.prototype=Object.create(Error.prototype,{constructor:{value:R,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return P},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),R}T.newError=O,T.ProtocolError=O("ProtocolError"),T.oneOfGetter=function(R){for(var M={},D=0;D<R.length;++D)M[R[D]]=1;return function(){for(var U=Object.keys(this),C=U.length-1;C>-1;--C)if(M[U[C]]===1&&this[U[C]]!==void 0&&this[U[C]]!==null)return U[C]}},T.oneOfSetter=function(R){return function(M){for(var D=0;D<R.length;++D)R[D]!==M&&delete this[R[D]]}},T.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},T._configure=function(){var P=T.Buffer;if(!P){T._Buffer_from=T._Buffer_allocUnsafe=null;return}T._Buffer_from=P.from!==Uint8Array.from&&P.from||function(M,D){return new P(M,D)},T._Buffer_allocUnsafe=P.allocUnsafe||function(M){return new P(M)}}})(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=U;var S=requireMinimal$1(),T,A=S.LongBits,O=S.base64,P=S.utf8;function R(V,k,B){this.fn=V,this.len=k,this.next=void 0,this.val=B}function M(){}function D(V){this.head=V.head,this.tail=V.tail,this.len=V.len,this.next=V.states}function U(){this.len=0,this.head=new R(M,0,0),this.tail=this.head,this.states=null}var C=function(){return S.Buffer?function(){return(U.create=function(){return new T})()}:function(){return new U}};U.create=C(),U.alloc=function(k){return new S.Array(k)},S.Array!==Array&&(U.alloc=S.pool(U.alloc,S.Array.prototype.subarray)),U.prototype._push=function(k,B,W){return this.tail=this.tail.next=new R(k,B,W),this.len+=B,this};function L(V,k,B){k[B]=V&255}function y(V,k,B){for(;V>127;)k[B++]=V&127|128,V>>>=7;k[B]=V}function _(V,k){this.len=V,this.next=void 0,this.val=k}_.prototype=Object.create(R.prototype),_.prototype.fn=y,U.prototype.uint32=function(k){return this.len+=(this.tail=this.tail.next=new _((k=k>>>0)<128?1:k<16384?2:k<2097152?3:k<268435456?4:5,k)).len,this},U.prototype.int32=function(k){return k<0?this._push(N,10,A.fromNumber(k)):this.uint32(k)},U.prototype.sint32=function(k){return this.uint32((k<<1^k>>31)>>>0)};function N(V,k,B){for(;V.hi;)k[B++]=V.lo&127|128,V.lo=(V.lo>>>7|V.hi<<25)>>>0,V.hi>>>=7;for(;V.lo>127;)k[B++]=V.lo&127|128,V.lo=V.lo>>>7;k[B++]=V.lo}U.prototype.uint64=function(k){var B=A.from(k);return this._push(N,B.length(),B)},U.prototype.int64=U.prototype.uint64,U.prototype.sint64=function(k){var B=A.from(k).zzEncode();return this._push(N,B.length(),B)},U.prototype.bool=function(k){return this._push(L,1,k?1:0)};function I(V,k,B){k[B]=V&255,k[B+1]=V>>>8&255,k[B+2]=V>>>16&255,k[B+3]=V>>>24}U.prototype.fixed32=function(k){return this._push(I,4,k>>>0)},U.prototype.sfixed32=U.prototype.fixed32,U.prototype.fixed64=function(k){var B=A.from(k);return this._push(I,4,B.lo)._push(I,4,B.hi)},U.prototype.sfixed64=U.prototype.fixed64,U.prototype.float=function(k){return this._push(S.float.writeFloatLE,4,k)},U.prototype.double=function(k){return this._push(S.float.writeDoubleLE,8,k)};var x=S.Array.prototype.set?function(k,B,W){B.set(k,W)}:function(k,B,W){for(var oe=0;oe<k.length;++oe)B[W+oe]=k[oe]};return U.prototype.bytes=function(k){var B=k.length>>>0;if(!B)return this._push(L,1,0);if(S.isString(k)){var W=U.alloc(B=O.length(k));O.decode(k,W,0),k=W}return this.uint32(B)._push(x,B,k)},U.prototype.string=function(k){var B=P.length(k);return B?this.uint32(B)._push(P.write,B,k):this._push(L,1,0)},U.prototype.fork=function(){return this.states=new D(this),this.head=this.tail=new R(M,0,0),this.len=0,this},U.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 R(M,0,0),this.len=0),this},U.prototype.ldelim=function(){var k=this.head,B=this.tail,W=this.len;return this.reset().uint32(W),W&&(this.tail.next=k.next,this.tail=B,this.len+=W),this},U.prototype.finish=function(){for(var k=this.head.next,B=this.constructor.alloc(this.len),W=0;k;)k.fn(k.val,B,W),W+=k.len,k=k.next;return B},U._configure=function(V){T=V,U.create=C(),T._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=A;var S=requireWriter();(A.prototype=Object.create(S.prototype)).constructor=A;var T=requireMinimal$1();function A(){S.call(this)}A._configure=function(){A.alloc=T._Buffer_allocUnsafe,A.writeBytesBuffer=T.Buffer&&T.Buffer.prototype instanceof Uint8Array&&T.Buffer.prototype.set.name==="set"?function(R,M,D){M.set(R,D)}:function(R,M,D){if(R.copy)R.copy(M,D,0,R.length);else for(var U=0;U<R.length;)M[D++]=R[U++]}},A.prototype.bytes=function(R){T.isString(R)&&(R=T._Buffer_from(R,"base64"));var M=R.length>>>0;return this.uint32(M),M&&this._push(A.writeBytesBuffer,M,R),this};function O(P,R,M){P.length<40?T.utf8.write(P,R,M):R.utf8Write?R.utf8Write(P,M):R.write(P,M)}return A.prototype.string=function(R){var M=T.Buffer.byteLength(R);return this.uint32(M),M&&this._push(O,M,R),this},A._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=R;var S=requireMinimal$1(),T,A=S.LongBits,O=S.utf8;function P(y,_){return RangeError("index out of range: "+y.pos+" + "+(_||1)+" > "+y.len)}function R(y){this.buf=y,this.pos=0,this.len=y.length}var M=typeof Uint8Array<"u"?function(_){if(_ instanceof Uint8Array||Array.isArray(_))return new R(_);throw Error("illegal buffer")}:function(_){if(Array.isArray(_))return new R(_);throw Error("illegal buffer")},D=function(){return S.Buffer?function(N){return(R.create=function(x){return S.Buffer.isBuffer(x)?new T(x):M(x)})(N)}:M};R.create=D(),R.prototype._slice=S.Array.prototype.subarray||S.Array.prototype.slice,R.prototype.uint32=(function(){var _=4294967295;return function(){if(_=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(_=(_|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(_=(_|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(_=(_|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(_=(_|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return _;if((this.pos+=5)>this.len)throw this.pos=this.len,P(this,10);return _}})(),R.prototype.int32=function(){return this.uint32()|0},R.prototype.sint32=function(){var _=this.uint32();return _>>>1^-(_&1)|0};function U(){var y=new A(0,0),_=0;if(this.len-this.pos>4){for(;_<4;++_)if(y.lo=(y.lo|(this.buf[this.pos]&127)<<_*7)>>>0,this.buf[this.pos++]<128)return y;if(y.lo=(y.lo|(this.buf[this.pos]&127)<<28)>>>0,y.hi=(y.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return y;_=0}else{for(;_<3;++_){if(this.pos>=this.len)throw P(this);if(y.lo=(y.lo|(this.buf[this.pos]&127)<<_*7)>>>0,this.buf[this.pos++]<128)return y}return y.lo=(y.lo|(this.buf[this.pos++]&127)<<_*7)>>>0,y}if(this.len-this.pos>4){for(;_<5;++_)if(y.hi=(y.hi|(this.buf[this.pos]&127)<<_*7+3)>>>0,this.buf[this.pos++]<128)return y}else for(;_<5;++_){if(this.pos>=this.len)throw P(this);if(y.hi=(y.hi|(this.buf[this.pos]&127)<<_*7+3)>>>0,this.buf[this.pos++]<128)return y}throw Error("invalid varint encoding")}R.prototype.bool=function(){return this.uint32()!==0};function C(y,_){return(y[_-4]|y[_-3]<<8|y[_-2]<<16|y[_-1]<<24)>>>0}R.prototype.fixed32=function(){if(this.pos+4>this.len)throw P(this,4);return C(this.buf,this.pos+=4)},R.prototype.sfixed32=function(){if(this.pos+4>this.len)throw P(this,4);return C(this.buf,this.pos+=4)|0};function L(){if(this.pos+8>this.len)throw P(this,8);return new A(C(this.buf,this.pos+=4),C(this.buf,this.pos+=4))}return R.prototype.float=function(){if(this.pos+4>this.len)throw P(this,4);var _=S.float.readFloatLE(this.buf,this.pos);return this.pos+=4,_},R.prototype.double=function(){if(this.pos+8>this.len)throw P(this,4);var _=S.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,_},R.prototype.bytes=function(){var _=this.uint32(),N=this.pos,I=this.pos+_;if(I>this.len)throw P(this,_);if(this.pos+=_,Array.isArray(this.buf))return this.buf.slice(N,I);if(N===I){var x=S.Buffer;return x?x.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,N,I)},R.prototype.string=function(){var _=this.bytes();return O.read(_,0,_.length)},R.prototype.skip=function(_){if(typeof _=="number"){if(this.pos+_>this.len)throw P(this,_);this.pos+=_}else do if(this.pos>=this.len)throw P(this);while(this.buf[this.pos++]&128);return this},R.prototype.skipType=function(y){switch(y){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(y=this.uint32()&7)!==4;)this.skipType(y);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+y+" at offset "+this.pos)}return this},R._configure=function(y){T=y,R.create=D(),T._configure();var _=S.Long?"toLong":"toNumber";S.merge(R.prototype,{int64:function(){return U.call(this)[_](!1)},uint64:function(){return U.call(this)[_](!0)},sint64:function(){return U.call(this).zzDecode()[_](!1)},fixed64:function(){return L.call(this)[_](!0)},sfixed64:function(){return L.call(this)[_](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=A;var S=requireReader();(A.prototype=Object.create(S.prototype)).constructor=A;var T=requireMinimal$1();function A(O){S.call(this,O)}return A._configure=function(){T.Buffer&&(A.prototype._slice=T.Buffer.prototype.slice)},A.prototype.string=function(){var P=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+P,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+P,this.len))},A._configure(),reader_buffer}var rpc={},service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=T;var S=requireMinimal$1();(T.prototype=Object.create(S.EventEmitter.prototype)).constructor=T;function T(A,O,P){if(typeof A!="function")throw TypeError("rpcImpl must be a function");S.EventEmitter.call(this),this.rpcImpl=A,this.requestDelimited=!!O,this.responseDelimited=!!P}return T.prototype.rpcCall=function A(O,P,R,M,D){if(!M)throw TypeError("request must be specified");var U=this;if(!D)return S.asPromise(A,U,O,P,R,M);if(!U.rpcImpl){setTimeout(function(){D(Error("already ended"))},0);return}try{return U.rpcImpl(O,P[U.requestDelimited?"encodeDelimited":"encode"](M).finish(),function(L,y){if(L)return U.emit("error",L,O),D(L);if(y===null){U.end(!0);return}if(!(y instanceof R))try{y=R[U.responseDelimited?"decodeDelimited":"decode"](y)}catch(_){return U.emit("error",_,O),D(_)}return U.emit("data",y,O),D(null,y)})}catch(C){U.emit("error",C,O),setTimeout(function(){D(C)},0);return}},T.prototype.end=function(O){return this.rpcImpl&&(O||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,(function(S){var T=S;T.Service=requireService()})(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,(function(S){var T=S;T.build="minimal",T.Writer=requireWriter(),T.BufferWriter=requireWriter_buffer(),T.Reader=requireReader(),T.BufferReader=requireReader_buffer(),T.util=requireMinimal$1(),T.rpc=requireRpc(),T.roots=requireRoots(),T.configure=A;function A(){T.util._configure(),T.Writer._configure(T.BufferWriter),T.Reader._configure(T.BufferReader)}A()})(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1;var S=requireMinimal(),T=S.Reader,A=S.Writer,O=S.util,P=S.roots.default||(S.roots.default={});return P.opentelemetry=(function(){var R={};return R.proto=(function(){var M={};return M.common=(function(){var D={};return D.v1=(function(){var U={};return U.AnyValue=(function(){function C(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.stringValue=null,C.prototype.boolValue=null,C.prototype.intValue=null,C.prototype.doubleValue=null,C.prototype.arrayValue=null,C.prototype.kvlistValue=null,C.prototype.bytesValue=null;var L;return Object.defineProperty(C.prototype,"value",{get:O.oneOfGetter(L=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){return N||(N=A.create()),_.stringValue!=null&&Object.hasOwnProperty.call(_,"stringValue")&&N.uint32(10).string(_.stringValue),_.boolValue!=null&&Object.hasOwnProperty.call(_,"boolValue")&&N.uint32(16).bool(_.boolValue),_.intValue!=null&&Object.hasOwnProperty.call(_,"intValue")&&N.uint32(24).int64(_.intValue),_.doubleValue!=null&&Object.hasOwnProperty.call(_,"doubleValue")&&N.uint32(33).double(_.doubleValue),_.arrayValue!=null&&Object.hasOwnProperty.call(_,"arrayValue")&&P.opentelemetry.proto.common.v1.ArrayValue.encode(_.arrayValue,N.uint32(42).fork()).ldelim(),_.kvlistValue!=null&&Object.hasOwnProperty.call(_,"kvlistValue")&&P.opentelemetry.proto.common.v1.KeyValueList.encode(_.kvlistValue,N.uint32(50).fork()).ldelim(),_.bytesValue!=null&&Object.hasOwnProperty.call(_,"bytesValue")&&N.uint32(58).bytes(_.bytesValue),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.common.v1.AnyValue;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.stringValue=_.string();break}case 2:{x.boolValue=_.bool();break}case 3:{x.intValue=_.int64();break}case 4:{x.doubleValue=_.double();break}case 5:{x.arrayValue=P.opentelemetry.proto.common.v1.ArrayValue.decode(_,_.uint32());break}case 6:{x.kvlistValue=P.opentelemetry.proto.common.v1.KeyValueList.decode(_,_.uint32());break}case 7:{x.bytesValue=_.bytes();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.stringValue!=null&&_.hasOwnProperty("stringValue")&&(N.value=1,!O.isString(_.stringValue)))return"stringValue: string expected";if(_.boolValue!=null&&_.hasOwnProperty("boolValue")){if(N.value===1)return"value: multiple values";if(N.value=1,typeof _.boolValue!="boolean")return"boolValue: boolean expected"}if(_.intValue!=null&&_.hasOwnProperty("intValue")){if(N.value===1)return"value: multiple values";if(N.value=1,!O.isInteger(_.intValue)&&!(_.intValue&&O.isInteger(_.intValue.low)&&O.isInteger(_.intValue.high)))return"intValue: integer|Long expected"}if(_.doubleValue!=null&&_.hasOwnProperty("doubleValue")){if(N.value===1)return"value: multiple values";if(N.value=1,typeof _.doubleValue!="number")return"doubleValue: number expected"}if(_.arrayValue!=null&&_.hasOwnProperty("arrayValue")){if(N.value===1)return"value: multiple values";N.value=1;{var I=P.opentelemetry.proto.common.v1.ArrayValue.verify(_.arrayValue);if(I)return"arrayValue."+I}}if(_.kvlistValue!=null&&_.hasOwnProperty("kvlistValue")){if(N.value===1)return"value: multiple values";N.value=1;{var I=P.opentelemetry.proto.common.v1.KeyValueList.verify(_.kvlistValue);if(I)return"kvlistValue."+I}}if(_.bytesValue!=null&&_.hasOwnProperty("bytesValue")){if(N.value===1)return"value: multiple values";if(N.value=1,!(_.bytesValue&&typeof _.bytesValue.length=="number"||O.isString(_.bytesValue)))return"bytesValue: buffer expected"}return null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.common.v1.AnyValue)return _;var N=new P.opentelemetry.proto.common.v1.AnyValue;if(_.stringValue!=null&&(N.stringValue=String(_.stringValue)),_.boolValue!=null&&(N.boolValue=!!_.boolValue),_.intValue!=null&&(O.Long?(N.intValue=O.Long.fromValue(_.intValue)).unsigned=!1:typeof _.intValue=="string"?N.intValue=parseInt(_.intValue,10):typeof _.intValue=="number"?N.intValue=_.intValue:typeof _.intValue=="object"&&(N.intValue=new O.LongBits(_.intValue.low>>>0,_.intValue.high>>>0).toNumber())),_.doubleValue!=null&&(N.doubleValue=Number(_.doubleValue)),_.arrayValue!=null){if(typeof _.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");N.arrayValue=P.opentelemetry.proto.common.v1.ArrayValue.fromObject(_.arrayValue)}if(_.kvlistValue!=null){if(typeof _.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");N.kvlistValue=P.opentelemetry.proto.common.v1.KeyValueList.fromObject(_.kvlistValue)}return _.bytesValue!=null&&(typeof _.bytesValue=="string"?O.base64.decode(_.bytesValue,N.bytesValue=O.newBuffer(O.base64.length(_.bytesValue)),0):_.bytesValue.length>=0&&(N.bytesValue=_.bytesValue)),N},C.toObject=function(_,N){N||(N={});var I={};return _.stringValue!=null&&_.hasOwnProperty("stringValue")&&(I.stringValue=_.stringValue,N.oneofs&&(I.value="stringValue")),_.boolValue!=null&&_.hasOwnProperty("boolValue")&&(I.boolValue=_.boolValue,N.oneofs&&(I.value="boolValue")),_.intValue!=null&&_.hasOwnProperty("intValue")&&(typeof _.intValue=="number"?I.intValue=N.longs===String?String(_.intValue):_.intValue:I.intValue=N.longs===String?O.Long.prototype.toString.call(_.intValue):N.longs===Number?new O.LongBits(_.intValue.low>>>0,_.intValue.high>>>0).toNumber():_.intValue,N.oneofs&&(I.value="intValue")),_.doubleValue!=null&&_.hasOwnProperty("doubleValue")&&(I.doubleValue=N.json&&!isFinite(_.doubleValue)?String(_.doubleValue):_.doubleValue,N.oneofs&&(I.value="doubleValue")),_.arrayValue!=null&&_.hasOwnProperty("arrayValue")&&(I.arrayValue=P.opentelemetry.proto.common.v1.ArrayValue.toObject(_.arrayValue,N),N.oneofs&&(I.value="arrayValue")),_.kvlistValue!=null&&_.hasOwnProperty("kvlistValue")&&(I.kvlistValue=P.opentelemetry.proto.common.v1.KeyValueList.toObject(_.kvlistValue,N),N.oneofs&&(I.value="kvlistValue")),_.bytesValue!=null&&_.hasOwnProperty("bytesValue")&&(I.bytesValue=N.bytes===String?O.base64.encode(_.bytesValue,0,_.bytesValue.length):N.bytes===Array?Array.prototype.slice.call(_.bytesValue):_.bytesValue,N.oneofs&&(I.value="bytesValue")),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.common.v1.AnyValue"},C})(),U.ArrayValue=(function(){function C(L){if(this.values=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.values=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.values!=null&&y.values.length)for(var N=0;N<y.values.length;++N)P.opentelemetry.proto.common.v1.AnyValue.encode(y.values[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.ArrayValue;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.values&&I.values.length||(I.values=[]),I.values.push(P.opentelemetry.proto.common.v1.AnyValue.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.values!=null&&y.hasOwnProperty("values")){if(!Array.isArray(y.values))return"values: array expected";for(var _=0;_<y.values.length;++_){var N=P.opentelemetry.proto.common.v1.AnyValue.verify(y.values[_]);if(N)return"values."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.ArrayValue)return y;var _=new P.opentelemetry.proto.common.v1.ArrayValue;if(y.values){if(!Array.isArray(y.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");_.values=[];for(var N=0;N<y.values.length;++N){if(typeof y.values[N]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");_.values[N]=P.opentelemetry.proto.common.v1.AnyValue.fromObject(y.values[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.values=[]),y.values&&y.values.length){N.values=[];for(var I=0;I<y.values.length;++I)N.values[I]=P.opentelemetry.proto.common.v1.AnyValue.toObject(y.values[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.ArrayValue"},C})(),U.KeyValueList=(function(){function C(L){if(this.values=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.values=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.values!=null&&y.values.length)for(var N=0;N<y.values.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.values[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.KeyValueList;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.values&&I.values.length||(I.values=[]),I.values.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.values!=null&&y.hasOwnProperty("values")){if(!Array.isArray(y.values))return"values: array expected";for(var _=0;_<y.values.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.values[_]);if(N)return"values."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.KeyValueList)return y;var _=new P.opentelemetry.proto.common.v1.KeyValueList;if(y.values){if(!Array.isArray(y.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");_.values=[];for(var N=0;N<y.values.length;++N){if(typeof y.values[N]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");_.values[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.values[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.values=[]),y.values&&y.values.length){N.values=[];for(var I=0;I<y.values.length;++I)N.values[I]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.values[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.KeyValueList"},C})(),U.KeyValue=(function(){function C(L){if(L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.key=null,C.prototype.value=null,C.create=function(y){return new C(y)},C.encode=function(y,_){return _||(_=A.create()),y.key!=null&&Object.hasOwnProperty.call(y,"key")&&_.uint32(10).string(y.key),y.value!=null&&Object.hasOwnProperty.call(y,"value")&&P.opentelemetry.proto.common.v1.AnyValue.encode(y.value,_.uint32(18).fork()).ldelim(),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.KeyValue;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.key=y.string();break}case 2:{I.value=P.opentelemetry.proto.common.v1.AnyValue.decode(y,y.uint32());break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.key!=null&&y.hasOwnProperty("key")&&!O.isString(y.key))return"key: string expected";if(y.value!=null&&y.hasOwnProperty("value")){var _=P.opentelemetry.proto.common.v1.AnyValue.verify(y.value);if(_)return"value."+_}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.KeyValue)return y;var _=new P.opentelemetry.proto.common.v1.KeyValue;if(y.key!=null&&(_.key=String(y.key)),y.value!=null){if(typeof y.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");_.value=P.opentelemetry.proto.common.v1.AnyValue.fromObject(y.value)}return _},C.toObject=function(y,_){_||(_={});var N={};return _.defaults&&(N.key="",N.value=null),y.key!=null&&y.hasOwnProperty("key")&&(N.key=y.key),y.value!=null&&y.hasOwnProperty("value")&&(N.value=P.opentelemetry.proto.common.v1.AnyValue.toObject(y.value,_)),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.KeyValue"},C})(),U.InstrumentationScope=(function(){function C(L){if(this.attributes=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.name=null,C.prototype.version=null,C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.name!=null&&Object.hasOwnProperty.call(y,"name")&&_.uint32(10).string(y.name),y.version!=null&&Object.hasOwnProperty.call(y,"version")&&_.uint32(18).string(y.version),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(26).fork()).ldelim();return y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(32).uint32(y.droppedAttributesCount),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.common.v1.InstrumentationScope;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.name=y.string();break}case 2:{I.version=y.string();break}case 3:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 4:{I.droppedAttributesCount=y.uint32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.name!=null&&y.hasOwnProperty("name")&&!O.isString(y.name))return"name: string expected";if(y.version!=null&&y.hasOwnProperty("version")&&!O.isString(y.version))return"version: string expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.common.v1.InstrumentationScope)return y;var _=new P.opentelemetry.proto.common.v1.InstrumentationScope;if(y.name!=null&&(_.name=String(y.name)),y.version!=null&&(_.version=String(y.version)),y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}return y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[]),_.defaults&&(N.name="",N.version="",N.droppedAttributesCount=0),y.name!=null&&y.hasOwnProperty("name")&&(N.name=y.name),y.version!=null&&y.hasOwnProperty("version")&&(N.version=y.version),y.attributes&&y.attributes.length){N.attributes=[];for(var I=0;I<y.attributes.length;++I)N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[I],_)}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.common.v1.InstrumentationScope"},C})(),U})(),D})(),M.resource=(function(){var D={};return D.v1=(function(){var U={};return U.Resource=(function(){function C(L){if(this.attributes=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(10).fork()).ldelim();return y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(16).uint32(y.droppedAttributesCount),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.resource.v1.Resource;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 2:{I.droppedAttributesCount=y.uint32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.resource.v1.Resource)return y;var _=new P.opentelemetry.proto.resource.v1.Resource;if(y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}return y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[]),_.defaults&&(N.droppedAttributesCount=0),y.attributes&&y.attributes.length){N.attributes=[];for(var I=0;I<y.attributes.length;++I)N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[I],_)}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.resource.v1.Resource"},C})(),U})(),D})(),M.trace=(function(){var D={};return D.v1=(function(){var U={};return U.TracesData=(function(){function C(L){if(this.resourceSpans=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resourceSpans=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resourceSpans!=null&&y.resourceSpans.length)for(var N=0;N<y.resourceSpans.length;++N)P.opentelemetry.proto.trace.v1.ResourceSpans.encode(y.resourceSpans[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.TracesData;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resourceSpans&&I.resourceSpans.length||(I.resourceSpans=[]),I.resourceSpans.push(P.opentelemetry.proto.trace.v1.ResourceSpans.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resourceSpans!=null&&y.hasOwnProperty("resourceSpans")){if(!Array.isArray(y.resourceSpans))return"resourceSpans: array expected";for(var _=0;_<y.resourceSpans.length;++_){var N=P.opentelemetry.proto.trace.v1.ResourceSpans.verify(y.resourceSpans[_]);if(N)return"resourceSpans."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.TracesData)return y;var _=new P.opentelemetry.proto.trace.v1.TracesData;if(y.resourceSpans){if(!Array.isArray(y.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");_.resourceSpans=[];for(var N=0;N<y.resourceSpans.length;++N){if(typeof y.resourceSpans[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");_.resourceSpans[N]=P.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(y.resourceSpans[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.resourceSpans=[]),y.resourceSpans&&y.resourceSpans.length){N.resourceSpans=[];for(var I=0;I<y.resourceSpans.length;++I)N.resourceSpans[I]=P.opentelemetry.proto.trace.v1.ResourceSpans.toObject(y.resourceSpans[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.TracesData"},C})(),U.ResourceSpans=(function(){function C(L){if(this.scopeSpans=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resource=null,C.prototype.scopeSpans=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resource!=null&&Object.hasOwnProperty.call(y,"resource")&&P.opentelemetry.proto.resource.v1.Resource.encode(y.resource,_.uint32(10).fork()).ldelim(),y.scopeSpans!=null&&y.scopeSpans.length)for(var N=0;N<y.scopeSpans.length;++N)P.opentelemetry.proto.trace.v1.ScopeSpans.encode(y.scopeSpans[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.ResourceSpans;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resource=P.opentelemetry.proto.resource.v1.Resource.decode(y,y.uint32());break}case 2:{I.scopeSpans&&I.scopeSpans.length||(I.scopeSpans=[]),I.scopeSpans.push(P.opentelemetry.proto.trace.v1.ScopeSpans.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resource!=null&&y.hasOwnProperty("resource")){var _=P.opentelemetry.proto.resource.v1.Resource.verify(y.resource);if(_)return"resource."+_}if(y.scopeSpans!=null&&y.hasOwnProperty("scopeSpans")){if(!Array.isArray(y.scopeSpans))return"scopeSpans: array expected";for(var N=0;N<y.scopeSpans.length;++N){var _=P.opentelemetry.proto.trace.v1.ScopeSpans.verify(y.scopeSpans[N]);if(_)return"scopeSpans."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.ResourceSpans)return y;var _=new P.opentelemetry.proto.trace.v1.ResourceSpans;if(y.resource!=null){if(typeof y.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");_.resource=P.opentelemetry.proto.resource.v1.Resource.fromObject(y.resource)}if(y.scopeSpans){if(!Array.isArray(y.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");_.scopeSpans=[];for(var N=0;N<y.scopeSpans.length;++N){if(typeof y.scopeSpans[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");_.scopeSpans[N]=P.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(y.scopeSpans[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.scopeSpans=[]),_.defaults&&(N.resource=null,N.schemaUrl=""),y.resource!=null&&y.hasOwnProperty("resource")&&(N.resource=P.opentelemetry.proto.resource.v1.Resource.toObject(y.resource,_)),y.scopeSpans&&y.scopeSpans.length){N.scopeSpans=[];for(var I=0;I<y.scopeSpans.length;++I)N.scopeSpans[I]=P.opentelemetry.proto.trace.v1.ScopeSpans.toObject(y.scopeSpans[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.ResourceSpans"},C})(),U.ScopeSpans=(function(){function C(L){if(this.spans=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.scope=null,C.prototype.spans=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.scope!=null&&Object.hasOwnProperty.call(y,"scope")&&P.opentelemetry.proto.common.v1.InstrumentationScope.encode(y.scope,_.uint32(10).fork()).ldelim(),y.spans!=null&&y.spans.length)for(var N=0;N<y.spans.length;++N)P.opentelemetry.proto.trace.v1.Span.encode(y.spans[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.ScopeSpans;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.decode(y,y.uint32());break}case 2:{I.spans&&I.spans.length||(I.spans=[]),I.spans.push(P.opentelemetry.proto.trace.v1.Span.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.scope!=null&&y.hasOwnProperty("scope")){var _=P.opentelemetry.proto.common.v1.InstrumentationScope.verify(y.scope);if(_)return"scope."+_}if(y.spans!=null&&y.hasOwnProperty("spans")){if(!Array.isArray(y.spans))return"spans: array expected";for(var N=0;N<y.spans.length;++N){var _=P.opentelemetry.proto.trace.v1.Span.verify(y.spans[N]);if(_)return"spans."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.ScopeSpans)return y;var _=new P.opentelemetry.proto.trace.v1.ScopeSpans;if(y.scope!=null){if(typeof y.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");_.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(y.scope)}if(y.spans){if(!Array.isArray(y.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");_.spans=[];for(var N=0;N<y.spans.length;++N){if(typeof y.spans[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");_.spans[N]=P.opentelemetry.proto.trace.v1.Span.fromObject(y.spans[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.spans=[]),_.defaults&&(N.scope=null,N.schemaUrl=""),y.scope!=null&&y.hasOwnProperty("scope")&&(N.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.toObject(y.scope,_)),y.spans&&y.spans.length){N.spans=[];for(var I=0;I<y.spans.length;++I)N.spans[I]=P.opentelemetry.proto.trace.v1.Span.toObject(y.spans[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.ScopeSpans"},C})(),U.Span=(function(){function C(L){if(this.attributes=[],this.events=[],this.links=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.traceId=null,C.prototype.spanId=null,C.prototype.traceState=null,C.prototype.parentSpanId=null,C.prototype.name=null,C.prototype.kind=null,C.prototype.startTimeUnixNano=null,C.prototype.endTimeUnixNano=null,C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.prototype.events=O.emptyArray,C.prototype.droppedEventsCount=null,C.prototype.links=O.emptyArray,C.prototype.droppedLinksCount=null,C.prototype.status=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.traceId!=null&&Object.hasOwnProperty.call(y,"traceId")&&_.uint32(10).bytes(y.traceId),y.spanId!=null&&Object.hasOwnProperty.call(y,"spanId")&&_.uint32(18).bytes(y.spanId),y.traceState!=null&&Object.hasOwnProperty.call(y,"traceState")&&_.uint32(26).string(y.traceState),y.parentSpanId!=null&&Object.hasOwnProperty.call(y,"parentSpanId")&&_.uint32(34).bytes(y.parentSpanId),y.name!=null&&Object.hasOwnProperty.call(y,"name")&&_.uint32(42).string(y.name),y.kind!=null&&Object.hasOwnProperty.call(y,"kind")&&_.uint32(48).int32(y.kind),y.startTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"startTimeUnixNano")&&_.uint32(57).fixed64(y.startTimeUnixNano),y.endTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"endTimeUnixNano")&&_.uint32(65).fixed64(y.endTimeUnixNano),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(74).fork()).ldelim();if(y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(80).uint32(y.droppedAttributesCount),y.events!=null&&y.events.length)for(var N=0;N<y.events.length;++N)P.opentelemetry.proto.trace.v1.Span.Event.encode(y.events[N],_.uint32(90).fork()).ldelim();if(y.droppedEventsCount!=null&&Object.hasOwnProperty.call(y,"droppedEventsCount")&&_.uint32(96).uint32(y.droppedEventsCount),y.links!=null&&y.links.length)for(var N=0;N<y.links.length;++N)P.opentelemetry.proto.trace.v1.Span.Link.encode(y.links[N],_.uint32(106).fork()).ldelim();return y.droppedLinksCount!=null&&Object.hasOwnProperty.call(y,"droppedLinksCount")&&_.uint32(112).uint32(y.droppedLinksCount),y.status!=null&&Object.hasOwnProperty.call(y,"status")&&P.opentelemetry.proto.trace.v1.Status.encode(y.status,_.uint32(122).fork()).ldelim(),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.Span;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.traceId=y.bytes();break}case 2:{I.spanId=y.bytes();break}case 3:{I.traceState=y.string();break}case 4:{I.parentSpanId=y.bytes();break}case 5:{I.name=y.string();break}case 6:{I.kind=y.int32();break}case 7:{I.startTimeUnixNano=y.fixed64();break}case 8:{I.endTimeUnixNano=y.fixed64();break}case 9:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 10:{I.droppedAttributesCount=y.uint32();break}case 11:{I.events&&I.events.length||(I.events=[]),I.events.push(P.opentelemetry.proto.trace.v1.Span.Event.decode(y,y.uint32()));break}case 12:{I.droppedEventsCount=y.uint32();break}case 13:{I.links&&I.links.length||(I.links=[]),I.links.push(P.opentelemetry.proto.trace.v1.Span.Link.decode(y,y.uint32()));break}case 14:{I.droppedLinksCount=y.uint32();break}case 15:{I.status=P.opentelemetry.proto.trace.v1.Status.decode(y,y.uint32());break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.traceId!=null&&y.hasOwnProperty("traceId")&&!(y.traceId&&typeof y.traceId.length=="number"||O.isString(y.traceId)))return"traceId: buffer expected";if(y.spanId!=null&&y.hasOwnProperty("spanId")&&!(y.spanId&&typeof y.spanId.length=="number"||O.isString(y.spanId)))return"spanId: buffer expected";if(y.traceState!=null&&y.hasOwnProperty("traceState")&&!O.isString(y.traceState))return"traceState: string expected";if(y.parentSpanId!=null&&y.hasOwnProperty("parentSpanId")&&!(y.parentSpanId&&typeof y.parentSpanId.length=="number"||O.isString(y.parentSpanId)))return"parentSpanId: buffer expected";if(y.name!=null&&y.hasOwnProperty("name")&&!O.isString(y.name))return"name: string expected";if(y.kind!=null&&y.hasOwnProperty("kind"))switch(y.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(y.startTimeUnixNano)&&!(y.startTimeUnixNano&&O.isInteger(y.startTimeUnixNano.low)&&O.isInteger(y.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(y.endTimeUnixNano!=null&&y.hasOwnProperty("endTimeUnixNano")&&!O.isInteger(y.endTimeUnixNano)&&!(y.endTimeUnixNano&&O.isInteger(y.endTimeUnixNano.low)&&O.isInteger(y.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}if(y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(y.events!=null&&y.hasOwnProperty("events")){if(!Array.isArray(y.events))return"events: array expected";for(var _=0;_<y.events.length;++_){var N=P.opentelemetry.proto.trace.v1.Span.Event.verify(y.events[_]);if(N)return"events."+N}}if(y.droppedEventsCount!=null&&y.hasOwnProperty("droppedEventsCount")&&!O.isInteger(y.droppedEventsCount))return"droppedEventsCount: integer expected";if(y.links!=null&&y.hasOwnProperty("links")){if(!Array.isArray(y.links))return"links: array expected";for(var _=0;_<y.links.length;++_){var N=P.opentelemetry.proto.trace.v1.Span.Link.verify(y.links[_]);if(N)return"links."+N}}if(y.droppedLinksCount!=null&&y.hasOwnProperty("droppedLinksCount")&&!O.isInteger(y.droppedLinksCount))return"droppedLinksCount: integer expected";if(y.status!=null&&y.hasOwnProperty("status")){var N=P.opentelemetry.proto.trace.v1.Status.verify(y.status);if(N)return"status."+N}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.Span)return y;var _=new P.opentelemetry.proto.trace.v1.Span;switch(y.traceId!=null&&(typeof y.traceId=="string"?O.base64.decode(y.traceId,_.traceId=O.newBuffer(O.base64.length(y.traceId)),0):y.traceId.length>=0&&(_.traceId=y.traceId)),y.spanId!=null&&(typeof y.spanId=="string"?O.base64.decode(y.spanId,_.spanId=O.newBuffer(O.base64.length(y.spanId)),0):y.spanId.length>=0&&(_.spanId=y.spanId)),y.traceState!=null&&(_.traceState=String(y.traceState)),y.parentSpanId!=null&&(typeof y.parentSpanId=="string"?O.base64.decode(y.parentSpanId,_.parentSpanId=O.newBuffer(O.base64.length(y.parentSpanId)),0):y.parentSpanId.length>=0&&(_.parentSpanId=y.parentSpanId)),y.name!=null&&(_.name=String(y.name)),y.kind){default:if(typeof y.kind=="number"){_.kind=y.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:_.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:_.kind=1;break;case"SPAN_KIND_SERVER":case 2:_.kind=2;break;case"SPAN_KIND_CLIENT":case 3:_.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:_.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:_.kind=5;break}if(y.startTimeUnixNano!=null&&(O.Long?(_.startTimeUnixNano=O.Long.fromValue(y.startTimeUnixNano)).unsigned=!1:typeof y.startTimeUnixNano=="string"?_.startTimeUnixNano=parseInt(y.startTimeUnixNano,10):typeof y.startTimeUnixNano=="number"?_.startTimeUnixNano=y.startTimeUnixNano:typeof y.startTimeUnixNano=="object"&&(_.startTimeUnixNano=new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber())),y.endTimeUnixNano!=null&&(O.Long?(_.endTimeUnixNano=O.Long.fromValue(y.endTimeUnixNano)).unsigned=!1:typeof y.endTimeUnixNano=="string"?_.endTimeUnixNano=parseInt(y.endTimeUnixNano,10):typeof y.endTimeUnixNano=="number"?_.endTimeUnixNano=y.endTimeUnixNano:typeof y.endTimeUnixNano=="object"&&(_.endTimeUnixNano=new O.LongBits(y.endTimeUnixNano.low>>>0,y.endTimeUnixNano.high>>>0).toNumber())),y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}if(y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),y.events){if(!Array.isArray(y.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");_.events=[];for(var N=0;N<y.events.length;++N){if(typeof y.events[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");_.events[N]=P.opentelemetry.proto.trace.v1.Span.Event.fromObject(y.events[N])}}if(y.droppedEventsCount!=null&&(_.droppedEventsCount=y.droppedEventsCount>>>0),y.links){if(!Array.isArray(y.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");_.links=[];for(var N=0;N<y.links.length;++N){if(typeof y.links[N]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");_.links[N]=P.opentelemetry.proto.trace.v1.Span.Link.fromObject(y.links[N])}}if(y.droppedLinksCount!=null&&(_.droppedLinksCount=y.droppedLinksCount>>>0),y.status!=null){if(typeof y.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");_.status=P.opentelemetry.proto.trace.v1.Status.fromObject(y.status)}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[],N.events=[],N.links=[]),_.defaults){if(_.bytes===String?N.traceId="":(N.traceId=[],_.bytes!==Array&&(N.traceId=O.newBuffer(N.traceId))),_.bytes===String?N.spanId="":(N.spanId=[],_.bytes!==Array&&(N.spanId=O.newBuffer(N.spanId))),N.traceState="",_.bytes===String?N.parentSpanId="":(N.parentSpanId=[],_.bytes!==Array&&(N.parentSpanId=O.newBuffer(N.parentSpanId))),N.name="",N.kind=_.enums===String?"SPAN_KIND_UNSPECIFIED":0,O.Long){var I=new O.Long(0,0,!1);N.startTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.startTimeUnixNano=_.longs===String?"0":0;if(O.Long){var I=new O.Long(0,0,!1);N.endTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.endTimeUnixNano=_.longs===String?"0":0;N.droppedAttributesCount=0,N.droppedEventsCount=0,N.droppedLinksCount=0,N.status=null}if(y.traceId!=null&&y.hasOwnProperty("traceId")&&(N.traceId=_.bytes===String?O.base64.encode(y.traceId,0,y.traceId.length):_.bytes===Array?Array.prototype.slice.call(y.traceId):y.traceId),y.spanId!=null&&y.hasOwnProperty("spanId")&&(N.spanId=_.bytes===String?O.base64.encode(y.spanId,0,y.spanId.length):_.bytes===Array?Array.prototype.slice.call(y.spanId):y.spanId),y.traceState!=null&&y.hasOwnProperty("traceState")&&(N.traceState=y.traceState),y.parentSpanId!=null&&y.hasOwnProperty("parentSpanId")&&(N.parentSpanId=_.bytes===String?O.base64.encode(y.parentSpanId,0,y.parentSpanId.length):_.bytes===Array?Array.prototype.slice.call(y.parentSpanId):y.parentSpanId),y.name!=null&&y.hasOwnProperty("name")&&(N.name=y.name),y.kind!=null&&y.hasOwnProperty("kind")&&(N.kind=_.enums===String?P.opentelemetry.proto.trace.v1.Span.SpanKind[y.kind]===void 0?y.kind:P.opentelemetry.proto.trace.v1.Span.SpanKind[y.kind]:y.kind),y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&(typeof y.startTimeUnixNano=="number"?N.startTimeUnixNano=_.longs===String?String(y.startTimeUnixNano):y.startTimeUnixNano:N.startTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.startTimeUnixNano):_.longs===Number?new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber():y.startTimeUnixNano),y.endTimeUnixNano!=null&&y.hasOwnProperty("endTimeUnixNano")&&(typeof y.endTimeUnixNano=="number"?N.endTimeUnixNano=_.longs===String?String(y.endTimeUnixNano):y.endTimeUnixNano:N.endTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.endTimeUnixNano):_.longs===Number?new O.LongBits(y.endTimeUnixNano.low>>>0,y.endTimeUnixNano.high>>>0).toNumber():y.endTimeUnixNano),y.attributes&&y.attributes.length){N.attributes=[];for(var x=0;x<y.attributes.length;++x)N.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[x],_)}if(y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),y.events&&y.events.length){N.events=[];for(var x=0;x<y.events.length;++x)N.events[x]=P.opentelemetry.proto.trace.v1.Span.Event.toObject(y.events[x],_)}if(y.droppedEventsCount!=null&&y.hasOwnProperty("droppedEventsCount")&&(N.droppedEventsCount=y.droppedEventsCount),y.links&&y.links.length){N.links=[];for(var x=0;x<y.links.length;++x)N.links[x]=P.opentelemetry.proto.trace.v1.Span.Link.toObject(y.links[x],_)}return y.droppedLinksCount!=null&&y.hasOwnProperty("droppedLinksCount")&&(N.droppedLinksCount=y.droppedLinksCount),y.status!=null&&y.hasOwnProperty("status")&&(N.status=P.opentelemetry.proto.trace.v1.Status.toObject(y.status,_)),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.Span"},C.SpanKind=(function(){var L={},y=Object.create(L);return y[L[0]="SPAN_KIND_UNSPECIFIED"]=0,y[L[1]="SPAN_KIND_INTERNAL"]=1,y[L[2]="SPAN_KIND_SERVER"]=2,y[L[3]="SPAN_KIND_CLIENT"]=3,y[L[4]="SPAN_KIND_PRODUCER"]=4,y[L[5]="SPAN_KIND_CONSUMER"]=5,y})(),C.Event=(function(){function L(y){if(this.attributes=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.timeUnixNano=null,L.prototype.name=null,L.prototype.attributes=O.emptyArray,L.prototype.droppedAttributesCount=null,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(9).fixed64(_.timeUnixNano),_.name!=null&&Object.hasOwnProperty.call(_,"name")&&N.uint32(18).string(_.name),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(26).fork()).ldelim();return _.droppedAttributesCount!=null&&Object.hasOwnProperty.call(_,"droppedAttributesCount")&&N.uint32(32).uint32(_.droppedAttributesCount),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.trace.v1.Span.Event;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.timeUnixNano=_.fixed64();break}case 2:{x.name=_.string();break}case 3:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 4:{x.droppedAttributesCount=_.uint32();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.name!=null&&_.hasOwnProperty("name")&&!O.isString(_.name))return"name: string expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(_.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.trace.v1.Span.Event)return _;var N=new P.opentelemetry.proto.trace.v1.Span.Event;if(_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.name!=null&&(N.name=String(_.name)),_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}return _.droppedAttributesCount!=null&&(N.droppedAttributesCount=_.droppedAttributesCount>>>0),N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.attributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;I.name="",I.droppedAttributesCount=0}if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.name!=null&&_.hasOwnProperty("name")&&(I.name=_.name),_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&(I.droppedAttributesCount=_.droppedAttributesCount),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.trace.v1.Span.Event"},L})(),C.Link=(function(){function L(y){if(this.attributes=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.traceId=null,L.prototype.spanId=null,L.prototype.traceState=null,L.prototype.attributes=O.emptyArray,L.prototype.droppedAttributesCount=null,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.traceId!=null&&Object.hasOwnProperty.call(_,"traceId")&&N.uint32(10).bytes(_.traceId),_.spanId!=null&&Object.hasOwnProperty.call(_,"spanId")&&N.uint32(18).bytes(_.spanId),_.traceState!=null&&Object.hasOwnProperty.call(_,"traceState")&&N.uint32(26).string(_.traceState),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(34).fork()).ldelim();return _.droppedAttributesCount!=null&&Object.hasOwnProperty.call(_,"droppedAttributesCount")&&N.uint32(40).uint32(_.droppedAttributesCount),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.trace.v1.Span.Link;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.traceId=_.bytes();break}case 2:{x.spanId=_.bytes();break}case 3:{x.traceState=_.string();break}case 4:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 5:{x.droppedAttributesCount=_.uint32();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.traceId!=null&&_.hasOwnProperty("traceId")&&!(_.traceId&&typeof _.traceId.length=="number"||O.isString(_.traceId)))return"traceId: buffer expected";if(_.spanId!=null&&_.hasOwnProperty("spanId")&&!(_.spanId&&typeof _.spanId.length=="number"||O.isString(_.spanId)))return"spanId: buffer expected";if(_.traceState!=null&&_.hasOwnProperty("traceState")&&!O.isString(_.traceState))return"traceState: string expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(_.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.trace.v1.Span.Link)return _;var N=new P.opentelemetry.proto.trace.v1.Span.Link;if(_.traceId!=null&&(typeof _.traceId=="string"?O.base64.decode(_.traceId,N.traceId=O.newBuffer(O.base64.length(_.traceId)),0):_.traceId.length>=0&&(N.traceId=_.traceId)),_.spanId!=null&&(typeof _.spanId=="string"?O.base64.decode(_.spanId,N.spanId=O.newBuffer(O.base64.length(_.spanId)),0):_.spanId.length>=0&&(N.spanId=_.spanId)),_.traceState!=null&&(N.traceState=String(_.traceState)),_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}return _.droppedAttributesCount!=null&&(N.droppedAttributesCount=_.droppedAttributesCount>>>0),N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.attributes=[]),N.defaults&&(N.bytes===String?I.traceId="":(I.traceId=[],N.bytes!==Array&&(I.traceId=O.newBuffer(I.traceId))),N.bytes===String?I.spanId="":(I.spanId=[],N.bytes!==Array&&(I.spanId=O.newBuffer(I.spanId))),I.traceState="",I.droppedAttributesCount=0),_.traceId!=null&&_.hasOwnProperty("traceId")&&(I.traceId=N.bytes===String?O.base64.encode(_.traceId,0,_.traceId.length):N.bytes===Array?Array.prototype.slice.call(_.traceId):_.traceId),_.spanId!=null&&_.hasOwnProperty("spanId")&&(I.spanId=N.bytes===String?O.base64.encode(_.spanId,0,_.spanId.length):N.bytes===Array?Array.prototype.slice.call(_.spanId):_.spanId),_.traceState!=null&&_.hasOwnProperty("traceState")&&(I.traceState=_.traceState),_.attributes&&_.attributes.length){I.attributes=[];for(var x=0;x<_.attributes.length;++x)I.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[x],N)}return _.droppedAttributesCount!=null&&_.hasOwnProperty("droppedAttributesCount")&&(I.droppedAttributesCount=_.droppedAttributesCount),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.trace.v1.Span.Link"},L})(),C})(),U.Status=(function(){function C(L){if(L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.message=null,C.prototype.code=null,C.create=function(y){return new C(y)},C.encode=function(y,_){return _||(_=A.create()),y.message!=null&&Object.hasOwnProperty.call(y,"message")&&_.uint32(18).string(y.message),y.code!=null&&Object.hasOwnProperty.call(y,"code")&&_.uint32(24).int32(y.code),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.trace.v1.Status;y.pos<N;){var x=y.uint32();switch(x>>>3){case 2:{I.message=y.string();break}case 3:{I.code=y.int32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.message!=null&&y.hasOwnProperty("message")&&!O.isString(y.message))return"message: string expected";if(y.code!=null&&y.hasOwnProperty("code"))switch(y.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.trace.v1.Status)return y;var _=new P.opentelemetry.proto.trace.v1.Status;switch(y.message!=null&&(_.message=String(y.message)),y.code){default:if(typeof y.code=="number"){_.code=y.code;break}break;case"STATUS_CODE_UNSET":case 0:_.code=0;break;case"STATUS_CODE_OK":case 1:_.code=1;break;case"STATUS_CODE_ERROR":case 2:_.code=2;break}return _},C.toObject=function(y,_){_||(_={});var N={};return _.defaults&&(N.message="",N.code=_.enums===String?"STATUS_CODE_UNSET":0),y.message!=null&&y.hasOwnProperty("message")&&(N.message=y.message),y.code!=null&&y.hasOwnProperty("code")&&(N.code=_.enums===String?P.opentelemetry.proto.trace.v1.Status.StatusCode[y.code]===void 0?y.code:P.opentelemetry.proto.trace.v1.Status.StatusCode[y.code]:y.code),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.trace.v1.Status"},C.StatusCode=(function(){var L={},y=Object.create(L);return y[L[0]="STATUS_CODE_UNSET"]=0,y[L[1]="STATUS_CODE_OK"]=1,y[L[2]="STATUS_CODE_ERROR"]=2,y})(),C})(),U})(),D})(),M.collector=(function(){var D={};return D.trace=(function(){var U={};return U.v1=(function(){var C={};return C.TraceService=(function(){function L(y,_,N){S.rpc.Service.call(this,y,_,N)}return(L.prototype=Object.create(S.rpc.Service.prototype)).constructor=L,L.create=function(_,N,I){return new this(_,N,I)},Object.defineProperty(L.prototype.export=function y(_,N){return this.rpcCall(y,P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,_,N)},"name",{value:"Export"}),L})(),C.ExportTraceServiceRequest=(function(){function L(y){if(this.resourceSpans=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.resourceSpans=O.emptyArray,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.resourceSpans!=null&&_.resourceSpans.length)for(var I=0;I<_.resourceSpans.length;++I)P.opentelemetry.proto.trace.v1.ResourceSpans.encode(_.resourceSpans[I],N.uint32(10).fork()).ldelim();return N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.resourceSpans&&x.resourceSpans.length||(x.resourceSpans=[]),x.resourceSpans.push(P.opentelemetry.proto.trace.v1.ResourceSpans.decode(_,_.uint32()));break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.resourceSpans!=null&&_.hasOwnProperty("resourceSpans")){if(!Array.isArray(_.resourceSpans))return"resourceSpans: array expected";for(var N=0;N<_.resourceSpans.length;++N){var I=P.opentelemetry.proto.trace.v1.ResourceSpans.verify(_.resourceSpans[N]);if(I)return"resourceSpans."+I}}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return _;var N=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(_.resourceSpans){if(!Array.isArray(_.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");N.resourceSpans=[];for(var I=0;I<_.resourceSpans.length;++I){if(typeof _.resourceSpans[I]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");N.resourceSpans[I]=P.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(_.resourceSpans[I])}}return N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.resourceSpans=[]),_.resourceSpans&&_.resourceSpans.length){I.resourceSpans=[];for(var x=0;x<_.resourceSpans.length;++x)I.resourceSpans[x]=P.opentelemetry.proto.trace.v1.ResourceSpans.toObject(_.resourceSpans[x],N)}return I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},L})(),C.ExportTraceServiceResponse=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.partialSuccess=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.partialSuccess!=null&&Object.hasOwnProperty.call(_,"partialSuccess")&&P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(_.partialSuccess,N.uint32(10).fork()).ldelim(),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.partialSuccess=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")){var N=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(_.partialSuccess);if(N)return"partialSuccess."+N}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return _;var N=new P.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(_.partialSuccess!=null){if(typeof _.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");N.partialSuccess=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(_.partialSuccess)}return N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.partialSuccess=null),_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")&&(I.partialSuccess=P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(_.partialSuccess,N)),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},L})(),C.ExportTracePartialSuccess=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.rejectedSpans=null,L.prototype.errorMessage=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.rejectedSpans!=null&&Object.hasOwnProperty.call(_,"rejectedSpans")&&N.uint32(8).int64(_.rejectedSpans),_.errorMessage!=null&&Object.hasOwnProperty.call(_,"errorMessage")&&N.uint32(18).string(_.errorMessage),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.rejectedSpans=_.int64();break}case 2:{x.errorMessage=_.string();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.rejectedSpans!=null&&_.hasOwnProperty("rejectedSpans")&&!O.isInteger(_.rejectedSpans)&&!(_.rejectedSpans&&O.isInteger(_.rejectedSpans.low)&&O.isInteger(_.rejectedSpans.high))?"rejectedSpans: integer|Long expected":_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&!O.isString(_.errorMessage)?"errorMessage: string expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return _;var N=new P.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return _.rejectedSpans!=null&&(O.Long?(N.rejectedSpans=O.Long.fromValue(_.rejectedSpans)).unsigned=!1:typeof _.rejectedSpans=="string"?N.rejectedSpans=parseInt(_.rejectedSpans,10):typeof _.rejectedSpans=="number"?N.rejectedSpans=_.rejectedSpans:typeof _.rejectedSpans=="object"&&(N.rejectedSpans=new O.LongBits(_.rejectedSpans.low>>>0,_.rejectedSpans.high>>>0).toNumber())),_.errorMessage!=null&&(N.errorMessage=String(_.errorMessage)),N},L.toObject=function(_,N){N||(N={});var I={};if(N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.rejectedSpans=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.rejectedSpans=N.longs===String?"0":0;I.errorMessage=""}return _.rejectedSpans!=null&&_.hasOwnProperty("rejectedSpans")&&(typeof _.rejectedSpans=="number"?I.rejectedSpans=N.longs===String?String(_.rejectedSpans):_.rejectedSpans:I.rejectedSpans=N.longs===String?O.Long.prototype.toString.call(_.rejectedSpans):N.longs===Number?new O.LongBits(_.rejectedSpans.low>>>0,_.rejectedSpans.high>>>0).toNumber():_.rejectedSpans),_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&(I.errorMessage=_.errorMessage),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},L})(),C})(),U})(),D.metrics=(function(){var U={};return U.v1=(function(){var C={};return C.MetricsService=(function(){function L(y,_,N){S.rpc.Service.call(this,y,_,N)}return(L.prototype=Object.create(S.rpc.Service.prototype)).constructor=L,L.create=function(_,N,I){return new this(_,N,I)},Object.defineProperty(L.prototype.export=function y(_,N){return this.rpcCall(y,P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,_,N)},"name",{value:"Export"}),L})(),C.ExportMetricsServiceRequest=(function(){function L(y){if(this.resourceMetrics=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.resourceMetrics=O.emptyArray,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.resourceMetrics!=null&&_.resourceMetrics.length)for(var I=0;I<_.resourceMetrics.length;++I)P.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(_.resourceMetrics[I],N.uint32(10).fork()).ldelim();return N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.resourceMetrics&&x.resourceMetrics.length||(x.resourceMetrics=[]),x.resourceMetrics.push(P.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(_,_.uint32()));break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.resourceMetrics!=null&&_.hasOwnProperty("resourceMetrics")){if(!Array.isArray(_.resourceMetrics))return"resourceMetrics: array expected";for(var N=0;N<_.resourceMetrics.length;++N){var I=P.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(_.resourceMetrics[N]);if(I)return"resourceMetrics."+I}}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return _;var N=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(_.resourceMetrics){if(!Array.isArray(_.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");N.resourceMetrics=[];for(var I=0;I<_.resourceMetrics.length;++I){if(typeof _.resourceMetrics[I]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");N.resourceMetrics[I]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(_.resourceMetrics[I])}}return N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.resourceMetrics=[]),_.resourceMetrics&&_.resourceMetrics.length){I.resourceMetrics=[];for(var x=0;x<_.resourceMetrics.length;++x)I.resourceMetrics[x]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(_.resourceMetrics[x],N)}return I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},L})(),C.ExportMetricsServiceResponse=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.partialSuccess=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.partialSuccess!=null&&Object.hasOwnProperty.call(_,"partialSuccess")&&P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(_.partialSuccess,N.uint32(10).fork()).ldelim(),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.partialSuccess=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")){var N=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(_.partialSuccess);if(N)return"partialSuccess."+N}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return _;var N=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(_.partialSuccess!=null){if(typeof _.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");N.partialSuccess=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(_.partialSuccess)}return N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.partialSuccess=null),_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")&&(I.partialSuccess=P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(_.partialSuccess,N)),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},L})(),C.ExportMetricsPartialSuccess=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.rejectedDataPoints=null,L.prototype.errorMessage=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.rejectedDataPoints!=null&&Object.hasOwnProperty.call(_,"rejectedDataPoints")&&N.uint32(8).int64(_.rejectedDataPoints),_.errorMessage!=null&&Object.hasOwnProperty.call(_,"errorMessage")&&N.uint32(18).string(_.errorMessage),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.rejectedDataPoints=_.int64();break}case 2:{x.errorMessage=_.string();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.rejectedDataPoints!=null&&_.hasOwnProperty("rejectedDataPoints")&&!O.isInteger(_.rejectedDataPoints)&&!(_.rejectedDataPoints&&O.isInteger(_.rejectedDataPoints.low)&&O.isInteger(_.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&!O.isString(_.errorMessage)?"errorMessage: string expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return _;var N=new P.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return _.rejectedDataPoints!=null&&(O.Long?(N.rejectedDataPoints=O.Long.fromValue(_.rejectedDataPoints)).unsigned=!1:typeof _.rejectedDataPoints=="string"?N.rejectedDataPoints=parseInt(_.rejectedDataPoints,10):typeof _.rejectedDataPoints=="number"?N.rejectedDataPoints=_.rejectedDataPoints:typeof _.rejectedDataPoints=="object"&&(N.rejectedDataPoints=new O.LongBits(_.rejectedDataPoints.low>>>0,_.rejectedDataPoints.high>>>0).toNumber())),_.errorMessage!=null&&(N.errorMessage=String(_.errorMessage)),N},L.toObject=function(_,N){N||(N={});var I={};if(N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.rejectedDataPoints=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.rejectedDataPoints=N.longs===String?"0":0;I.errorMessage=""}return _.rejectedDataPoints!=null&&_.hasOwnProperty("rejectedDataPoints")&&(typeof _.rejectedDataPoints=="number"?I.rejectedDataPoints=N.longs===String?String(_.rejectedDataPoints):_.rejectedDataPoints:I.rejectedDataPoints=N.longs===String?O.Long.prototype.toString.call(_.rejectedDataPoints):N.longs===Number?new O.LongBits(_.rejectedDataPoints.low>>>0,_.rejectedDataPoints.high>>>0).toNumber():_.rejectedDataPoints),_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&(I.errorMessage=_.errorMessage),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},L})(),C})(),U})(),D.logs=(function(){var U={};return U.v1=(function(){var C={};return C.LogsService=(function(){function L(y,_,N){S.rpc.Service.call(this,y,_,N)}return(L.prototype=Object.create(S.rpc.Service.prototype)).constructor=L,L.create=function(_,N,I){return new this(_,N,I)},Object.defineProperty(L.prototype.export=function y(_,N){return this.rpcCall(y,P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,_,N)},"name",{value:"Export"}),L})(),C.ExportLogsServiceRequest=(function(){function L(y){if(this.resourceLogs=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.resourceLogs=O.emptyArray,L.create=function(_){return new L(_)},L.encode=function(_,N){if(N||(N=A.create()),_.resourceLogs!=null&&_.resourceLogs.length)for(var I=0;I<_.resourceLogs.length;++I)P.opentelemetry.proto.logs.v1.ResourceLogs.encode(_.resourceLogs[I],N.uint32(10).fork()).ldelim();return N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.resourceLogs&&x.resourceLogs.length||(x.resourceLogs=[]),x.resourceLogs.push(P.opentelemetry.proto.logs.v1.ResourceLogs.decode(_,_.uint32()));break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.resourceLogs!=null&&_.hasOwnProperty("resourceLogs")){if(!Array.isArray(_.resourceLogs))return"resourceLogs: array expected";for(var N=0;N<_.resourceLogs.length;++N){var I=P.opentelemetry.proto.logs.v1.ResourceLogs.verify(_.resourceLogs[N]);if(I)return"resourceLogs."+I}}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return _;var N=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(_.resourceLogs){if(!Array.isArray(_.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");N.resourceLogs=[];for(var I=0;I<_.resourceLogs.length;++I){if(typeof _.resourceLogs[I]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");N.resourceLogs[I]=P.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(_.resourceLogs[I])}}return N},L.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.resourceLogs=[]),_.resourceLogs&&_.resourceLogs.length){I.resourceLogs=[];for(var x=0;x<_.resourceLogs.length;++x)I.resourceLogs[x]=P.opentelemetry.proto.logs.v1.ResourceLogs.toObject(_.resourceLogs[x],N)}return I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},L})(),C.ExportLogsServiceResponse=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.partialSuccess=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.partialSuccess!=null&&Object.hasOwnProperty.call(_,"partialSuccess")&&P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(_.partialSuccess,N.uint32(10).fork()).ldelim(),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.partialSuccess=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")){var N=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(_.partialSuccess);if(N)return"partialSuccess."+N}return null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return _;var N=new P.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(_.partialSuccess!=null){if(typeof _.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");N.partialSuccess=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(_.partialSuccess)}return N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.partialSuccess=null),_.partialSuccess!=null&&_.hasOwnProperty("partialSuccess")&&(I.partialSuccess=P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(_.partialSuccess,N)),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},L})(),C.ExportLogsPartialSuccess=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.rejectedLogRecords=null,L.prototype.errorMessage=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.rejectedLogRecords!=null&&Object.hasOwnProperty.call(_,"rejectedLogRecords")&&N.uint32(8).int64(_.rejectedLogRecords),_.errorMessage!=null&&Object.hasOwnProperty.call(_,"errorMessage")&&N.uint32(18).string(_.errorMessage),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.rejectedLogRecords=_.int64();break}case 2:{x.errorMessage=_.string();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.rejectedLogRecords!=null&&_.hasOwnProperty("rejectedLogRecords")&&!O.isInteger(_.rejectedLogRecords)&&!(_.rejectedLogRecords&&O.isInteger(_.rejectedLogRecords.low)&&O.isInteger(_.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&!O.isString(_.errorMessage)?"errorMessage: string expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return _;var N=new P.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return _.rejectedLogRecords!=null&&(O.Long?(N.rejectedLogRecords=O.Long.fromValue(_.rejectedLogRecords)).unsigned=!1:typeof _.rejectedLogRecords=="string"?N.rejectedLogRecords=parseInt(_.rejectedLogRecords,10):typeof _.rejectedLogRecords=="number"?N.rejectedLogRecords=_.rejectedLogRecords:typeof _.rejectedLogRecords=="object"&&(N.rejectedLogRecords=new O.LongBits(_.rejectedLogRecords.low>>>0,_.rejectedLogRecords.high>>>0).toNumber())),_.errorMessage!=null&&(N.errorMessage=String(_.errorMessage)),N},L.toObject=function(_,N){N||(N={});var I={};if(N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.rejectedLogRecords=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.rejectedLogRecords=N.longs===String?"0":0;I.errorMessage=""}return _.rejectedLogRecords!=null&&_.hasOwnProperty("rejectedLogRecords")&&(typeof _.rejectedLogRecords=="number"?I.rejectedLogRecords=N.longs===String?String(_.rejectedLogRecords):_.rejectedLogRecords:I.rejectedLogRecords=N.longs===String?O.Long.prototype.toString.call(_.rejectedLogRecords):N.longs===Number?new O.LongBits(_.rejectedLogRecords.low>>>0,_.rejectedLogRecords.high>>>0).toNumber():_.rejectedLogRecords),_.errorMessage!=null&&_.hasOwnProperty("errorMessage")&&(I.errorMessage=_.errorMessage),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},L})(),C})(),U})(),D})(),M.metrics=(function(){var D={};return D.v1=(function(){var U={};return U.MetricsData=(function(){function C(L){if(this.resourceMetrics=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resourceMetrics=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resourceMetrics!=null&&y.resourceMetrics.length)for(var N=0;N<y.resourceMetrics.length;++N)P.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(y.resourceMetrics[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.MetricsData;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resourceMetrics&&I.resourceMetrics.length||(I.resourceMetrics=[]),I.resourceMetrics.push(P.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resourceMetrics!=null&&y.hasOwnProperty("resourceMetrics")){if(!Array.isArray(y.resourceMetrics))return"resourceMetrics: array expected";for(var _=0;_<y.resourceMetrics.length;++_){var N=P.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(y.resourceMetrics[_]);if(N)return"resourceMetrics."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.MetricsData)return y;var _=new P.opentelemetry.proto.metrics.v1.MetricsData;if(y.resourceMetrics){if(!Array.isArray(y.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");_.resourceMetrics=[];for(var N=0;N<y.resourceMetrics.length;++N){if(typeof y.resourceMetrics[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");_.resourceMetrics[N]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(y.resourceMetrics[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.resourceMetrics=[]),y.resourceMetrics&&y.resourceMetrics.length){N.resourceMetrics=[];for(var I=0;I<y.resourceMetrics.length;++I)N.resourceMetrics[I]=P.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(y.resourceMetrics[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.MetricsData"},C})(),U.ResourceMetrics=(function(){function C(L){if(this.scopeMetrics=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resource=null,C.prototype.scopeMetrics=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resource!=null&&Object.hasOwnProperty.call(y,"resource")&&P.opentelemetry.proto.resource.v1.Resource.encode(y.resource,_.uint32(10).fork()).ldelim(),y.scopeMetrics!=null&&y.scopeMetrics.length)for(var N=0;N<y.scopeMetrics.length;++N)P.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(y.scopeMetrics[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.ResourceMetrics;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resource=P.opentelemetry.proto.resource.v1.Resource.decode(y,y.uint32());break}case 2:{I.scopeMetrics&&I.scopeMetrics.length||(I.scopeMetrics=[]),I.scopeMetrics.push(P.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resource!=null&&y.hasOwnProperty("resource")){var _=P.opentelemetry.proto.resource.v1.Resource.verify(y.resource);if(_)return"resource."+_}if(y.scopeMetrics!=null&&y.hasOwnProperty("scopeMetrics")){if(!Array.isArray(y.scopeMetrics))return"scopeMetrics: array expected";for(var N=0;N<y.scopeMetrics.length;++N){var _=P.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(y.scopeMetrics[N]);if(_)return"scopeMetrics."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.ResourceMetrics)return y;var _=new P.opentelemetry.proto.metrics.v1.ResourceMetrics;if(y.resource!=null){if(typeof y.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");_.resource=P.opentelemetry.proto.resource.v1.Resource.fromObject(y.resource)}if(y.scopeMetrics){if(!Array.isArray(y.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");_.scopeMetrics=[];for(var N=0;N<y.scopeMetrics.length;++N){if(typeof y.scopeMetrics[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");_.scopeMetrics[N]=P.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(y.scopeMetrics[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.scopeMetrics=[]),_.defaults&&(N.resource=null,N.schemaUrl=""),y.resource!=null&&y.hasOwnProperty("resource")&&(N.resource=P.opentelemetry.proto.resource.v1.Resource.toObject(y.resource,_)),y.scopeMetrics&&y.scopeMetrics.length){N.scopeMetrics=[];for(var I=0;I<y.scopeMetrics.length;++I)N.scopeMetrics[I]=P.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(y.scopeMetrics[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},C})(),U.ScopeMetrics=(function(){function C(L){if(this.metrics=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.scope=null,C.prototype.metrics=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.scope!=null&&Object.hasOwnProperty.call(y,"scope")&&P.opentelemetry.proto.common.v1.InstrumentationScope.encode(y.scope,_.uint32(10).fork()).ldelim(),y.metrics!=null&&y.metrics.length)for(var N=0;N<y.metrics.length;++N)P.opentelemetry.proto.metrics.v1.Metric.encode(y.metrics[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.ScopeMetrics;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.decode(y,y.uint32());break}case 2:{I.metrics&&I.metrics.length||(I.metrics=[]),I.metrics.push(P.opentelemetry.proto.metrics.v1.Metric.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.scope!=null&&y.hasOwnProperty("scope")){var _=P.opentelemetry.proto.common.v1.InstrumentationScope.verify(y.scope);if(_)return"scope."+_}if(y.metrics!=null&&y.hasOwnProperty("metrics")){if(!Array.isArray(y.metrics))return"metrics: array expected";for(var N=0;N<y.metrics.length;++N){var _=P.opentelemetry.proto.metrics.v1.Metric.verify(y.metrics[N]);if(_)return"metrics."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.ScopeMetrics)return y;var _=new P.opentelemetry.proto.metrics.v1.ScopeMetrics;if(y.scope!=null){if(typeof y.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");_.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(y.scope)}if(y.metrics){if(!Array.isArray(y.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");_.metrics=[];for(var N=0;N<y.metrics.length;++N){if(typeof y.metrics[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");_.metrics[N]=P.opentelemetry.proto.metrics.v1.Metric.fromObject(y.metrics[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.metrics=[]),_.defaults&&(N.scope=null,N.schemaUrl=""),y.scope!=null&&y.hasOwnProperty("scope")&&(N.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.toObject(y.scope,_)),y.metrics&&y.metrics.length){N.metrics=[];for(var I=0;I<y.metrics.length;++I)N.metrics[I]=P.opentelemetry.proto.metrics.v1.Metric.toObject(y.metrics[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},C})(),U.Metric=(function(){function C(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.name=null,C.prototype.description=null,C.prototype.unit=null,C.prototype.gauge=null,C.prototype.sum=null,C.prototype.histogram=null,C.prototype.exponentialHistogram=null,C.prototype.summary=null;var L;return Object.defineProperty(C.prototype,"data",{get:O.oneOfGetter(L=["gauge","sum","histogram","exponentialHistogram","summary"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){return N||(N=A.create()),_.name!=null&&Object.hasOwnProperty.call(_,"name")&&N.uint32(10).string(_.name),_.description!=null&&Object.hasOwnProperty.call(_,"description")&&N.uint32(18).string(_.description),_.unit!=null&&Object.hasOwnProperty.call(_,"unit")&&N.uint32(26).string(_.unit),_.gauge!=null&&Object.hasOwnProperty.call(_,"gauge")&&P.opentelemetry.proto.metrics.v1.Gauge.encode(_.gauge,N.uint32(42).fork()).ldelim(),_.sum!=null&&Object.hasOwnProperty.call(_,"sum")&&P.opentelemetry.proto.metrics.v1.Sum.encode(_.sum,N.uint32(58).fork()).ldelim(),_.histogram!=null&&Object.hasOwnProperty.call(_,"histogram")&&P.opentelemetry.proto.metrics.v1.Histogram.encode(_.histogram,N.uint32(74).fork()).ldelim(),_.exponentialHistogram!=null&&Object.hasOwnProperty.call(_,"exponentialHistogram")&&P.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(_.exponentialHistogram,N.uint32(82).fork()).ldelim(),_.summary!=null&&Object.hasOwnProperty.call(_,"summary")&&P.opentelemetry.proto.metrics.v1.Summary.encode(_.summary,N.uint32(90).fork()).ldelim(),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.Metric;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.name=_.string();break}case 2:{x.description=_.string();break}case 3:{x.unit=_.string();break}case 5:{x.gauge=P.opentelemetry.proto.metrics.v1.Gauge.decode(_,_.uint32());break}case 7:{x.sum=P.opentelemetry.proto.metrics.v1.Sum.decode(_,_.uint32());break}case 9:{x.histogram=P.opentelemetry.proto.metrics.v1.Histogram.decode(_,_.uint32());break}case 10:{x.exponentialHistogram=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(_,_.uint32());break}case 11:{x.summary=P.opentelemetry.proto.metrics.v1.Summary.decode(_,_.uint32());break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.name!=null&&_.hasOwnProperty("name")&&!O.isString(_.name))return"name: string expected";if(_.description!=null&&_.hasOwnProperty("description")&&!O.isString(_.description))return"description: string expected";if(_.unit!=null&&_.hasOwnProperty("unit")&&!O.isString(_.unit))return"unit: string expected";if(_.gauge!=null&&_.hasOwnProperty("gauge")){N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Gauge.verify(_.gauge);if(I)return"gauge."+I}}if(_.sum!=null&&_.hasOwnProperty("sum")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Sum.verify(_.sum);if(I)return"sum."+I}}if(_.histogram!=null&&_.hasOwnProperty("histogram")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Histogram.verify(_.histogram);if(I)return"histogram."+I}}if(_.exponentialHistogram!=null&&_.hasOwnProperty("exponentialHistogram")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(_.exponentialHistogram);if(I)return"exponentialHistogram."+I}}if(_.summary!=null&&_.hasOwnProperty("summary")){if(N.data===1)return"data: multiple values";N.data=1;{var I=P.opentelemetry.proto.metrics.v1.Summary.verify(_.summary);if(I)return"summary."+I}}return null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.Metric)return _;var N=new P.opentelemetry.proto.metrics.v1.Metric;if(_.name!=null&&(N.name=String(_.name)),_.description!=null&&(N.description=String(_.description)),_.unit!=null&&(N.unit=String(_.unit)),_.gauge!=null){if(typeof _.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");N.gauge=P.opentelemetry.proto.metrics.v1.Gauge.fromObject(_.gauge)}if(_.sum!=null){if(typeof _.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");N.sum=P.opentelemetry.proto.metrics.v1.Sum.fromObject(_.sum)}if(_.histogram!=null){if(typeof _.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");N.histogram=P.opentelemetry.proto.metrics.v1.Histogram.fromObject(_.histogram)}if(_.exponentialHistogram!=null){if(typeof _.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");N.exponentialHistogram=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(_.exponentialHistogram)}if(_.summary!=null){if(typeof _.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");N.summary=P.opentelemetry.proto.metrics.v1.Summary.fromObject(_.summary)}return N},C.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.name="",I.description="",I.unit=""),_.name!=null&&_.hasOwnProperty("name")&&(I.name=_.name),_.description!=null&&_.hasOwnProperty("description")&&(I.description=_.description),_.unit!=null&&_.hasOwnProperty("unit")&&(I.unit=_.unit),_.gauge!=null&&_.hasOwnProperty("gauge")&&(I.gauge=P.opentelemetry.proto.metrics.v1.Gauge.toObject(_.gauge,N),N.oneofs&&(I.data="gauge")),_.sum!=null&&_.hasOwnProperty("sum")&&(I.sum=P.opentelemetry.proto.metrics.v1.Sum.toObject(_.sum,N),N.oneofs&&(I.data="sum")),_.histogram!=null&&_.hasOwnProperty("histogram")&&(I.histogram=P.opentelemetry.proto.metrics.v1.Histogram.toObject(_.histogram,N),N.oneofs&&(I.data="histogram")),_.exponentialHistogram!=null&&_.hasOwnProperty("exponentialHistogram")&&(I.exponentialHistogram=P.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(_.exponentialHistogram,N),N.oneofs&&(I.data="exponentialHistogram")),_.summary!=null&&_.hasOwnProperty("summary")&&(I.summary=P.opentelemetry.proto.metrics.v1.Summary.toObject(_.summary,N),N.oneofs&&(I.data="summary")),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.Metric"},C})(),U.Gauge=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Gauge;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Gauge)return y;var _=new P.opentelemetry.proto.metrics.v1.Gauge;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(y.dataPoints[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(y.dataPoints[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Gauge"},C})(),U.Sum=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.prototype.aggregationTemporality=null,C.prototype.isMonotonic=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return y.aggregationTemporality!=null&&Object.hasOwnProperty.call(y,"aggregationTemporality")&&_.uint32(16).int32(y.aggregationTemporality),y.isMonotonic!=null&&Object.hasOwnProperty.call(y,"isMonotonic")&&_.uint32(24).bool(y.isMonotonic),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Sum;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(y,y.uint32()));break}case 2:{I.aggregationTemporality=y.int32();break}case 3:{I.isMonotonic=y.bool();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}if(y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality"))switch(y.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return y.isMonotonic!=null&&y.hasOwnProperty("isMonotonic")&&typeof y.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Sum)return y;var _=new P.opentelemetry.proto.metrics.v1.Sum;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(y.dataPoints[N])}}switch(y.aggregationTemporality){default:if(typeof y.aggregationTemporality=="number"){_.aggregationTemporality=y.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:_.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:_.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:_.aggregationTemporality=2;break}return y.isMonotonic!=null&&(_.isMonotonic=!!y.isMonotonic),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),_.defaults&&(N.aggregationTemporality=_.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,N.isMonotonic=!1),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(y.dataPoints[I],_)}return y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality")&&(N.aggregationTemporality=_.enums===String?P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]===void 0?y.aggregationTemporality:P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]:y.aggregationTemporality),y.isMonotonic!=null&&y.hasOwnProperty("isMonotonic")&&(N.isMonotonic=y.isMonotonic),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Sum"},C})(),U.Histogram=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.prototype.aggregationTemporality=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return y.aggregationTemporality!=null&&Object.hasOwnProperty.call(y,"aggregationTemporality")&&_.uint32(16).int32(y.aggregationTemporality),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Histogram;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(y,y.uint32()));break}case 2:{I.aggregationTemporality=y.int32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}if(y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality"))switch(y.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Histogram)return y;var _=new P.opentelemetry.proto.metrics.v1.Histogram;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(y.dataPoints[N])}}switch(y.aggregationTemporality){default:if(typeof y.aggregationTemporality=="number"){_.aggregationTemporality=y.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:_.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:_.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:_.aggregationTemporality=2;break}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),_.defaults&&(N.aggregationTemporality=_.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(y.dataPoints[I],_)}return y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality")&&(N.aggregationTemporality=_.enums===String?P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]===void 0?y.aggregationTemporality:P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]:y.aggregationTemporality),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Histogram"},C})(),U.ExponentialHistogram=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.prototype.aggregationTemporality=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return y.aggregationTemporality!=null&&Object.hasOwnProperty.call(y,"aggregationTemporality")&&_.uint32(16).int32(y.aggregationTemporality),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.ExponentialHistogram;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(y,y.uint32()));break}case 2:{I.aggregationTemporality=y.int32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}if(y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality"))switch(y.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.ExponentialHistogram)return y;var _=new P.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(y.dataPoints[N])}}switch(y.aggregationTemporality){default:if(typeof y.aggregationTemporality=="number"){_.aggregationTemporality=y.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:_.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:_.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:_.aggregationTemporality=2;break}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),_.defaults&&(N.aggregationTemporality=_.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(y.dataPoints[I],_)}return y.aggregationTemporality!=null&&y.hasOwnProperty("aggregationTemporality")&&(N.aggregationTemporality=_.enums===String?P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]===void 0?y.aggregationTemporality:P.opentelemetry.proto.metrics.v1.AggregationTemporality[y.aggregationTemporality]:y.aggregationTemporality),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},C})(),U.Summary=(function(){function C(L){if(this.dataPoints=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.dataPoints=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.dataPoints!=null&&y.dataPoints.length)for(var N=0;N<y.dataPoints.length;++N)P.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(y.dataPoints[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.Summary;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.dataPoints&&I.dataPoints.length||(I.dataPoints=[]),I.dataPoints.push(P.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.dataPoints!=null&&y.hasOwnProperty("dataPoints")){if(!Array.isArray(y.dataPoints))return"dataPoints: array expected";for(var _=0;_<y.dataPoints.length;++_){var N=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(y.dataPoints[_]);if(N)return"dataPoints."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.Summary)return y;var _=new P.opentelemetry.proto.metrics.v1.Summary;if(y.dataPoints){if(!Array.isArray(y.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");_.dataPoints=[];for(var N=0;N<y.dataPoints.length;++N){if(typeof y.dataPoints[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");_.dataPoints[N]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(y.dataPoints[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.dataPoints=[]),y.dataPoints&&y.dataPoints.length){N.dataPoints=[];for(var I=0;I<y.dataPoints.length;++I)N.dataPoints[I]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(y.dataPoints[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.Summary"},C})(),U.AggregationTemporality=(function(){var C={},L=Object.create(C);return L[C[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,L[C[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,L[C[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,L})(),U.DataPointFlags=(function(){var C={},L=Object.create(C);return L[C[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,L[C[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,L})(),U.NumberDataPoint=(function(){function C(y){if(this.attributes=[],this.exemplars=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.asDouble=null,C.prototype.asInt=null,C.prototype.exemplars=O.emptyArray,C.prototype.flags=null;var L;return Object.defineProperty(C.prototype,"value",{get:O.oneOfGetter(L=["asDouble","asInt"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.startTimeUnixNano!=null&&Object.hasOwnProperty.call(_,"startTimeUnixNano")&&N.uint32(17).fixed64(_.startTimeUnixNano),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(25).fixed64(_.timeUnixNano),_.asDouble!=null&&Object.hasOwnProperty.call(_,"asDouble")&&N.uint32(33).double(_.asDouble),_.exemplars!=null&&_.exemplars.length)for(var I=0;I<_.exemplars.length;++I)P.opentelemetry.proto.metrics.v1.Exemplar.encode(_.exemplars[I],N.uint32(42).fork()).ldelim();if(_.asInt!=null&&Object.hasOwnProperty.call(_,"asInt")&&N.uint32(49).sfixed64(_.asInt),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(58).fork()).ldelim();return _.flags!=null&&Object.hasOwnProperty.call(_,"flags")&&N.uint32(64).uint32(_.flags),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.NumberDataPoint;_.pos<I;){var V=_.uint32();switch(V>>>3){case 7:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.startTimeUnixNano=_.fixed64();break}case 3:{x.timeUnixNano=_.fixed64();break}case 4:{x.asDouble=_.double();break}case 6:{x.asInt=_.sfixed64();break}case 5:{x.exemplars&&x.exemplars.length||(x.exemplars=[]),x.exemplars.push(P.opentelemetry.proto.metrics.v1.Exemplar.decode(_,_.uint32()));break}case 8:{x.flags=_.uint32();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var I=0;I<_.attributes.length;++I){var x=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[I]);if(x)return"attributes."+x}}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(_.startTimeUnixNano)&&!(_.startTimeUnixNano&&O.isInteger(_.startTimeUnixNano.low)&&O.isInteger(_.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(N.value=1,typeof _.asDouble!="number"))return"asDouble: number expected";if(_.asInt!=null&&_.hasOwnProperty("asInt")){if(N.value===1)return"value: multiple values";if(N.value=1,!O.isInteger(_.asInt)&&!(_.asInt&&O.isInteger(_.asInt.low)&&O.isInteger(_.asInt.high)))return"asInt: integer|Long expected"}if(_.exemplars!=null&&_.hasOwnProperty("exemplars")){if(!Array.isArray(_.exemplars))return"exemplars: array expected";for(var I=0;I<_.exemplars.length;++I){var x=P.opentelemetry.proto.metrics.v1.Exemplar.verify(_.exemplars[I]);if(x)return"exemplars."+x}}return _.flags!=null&&_.hasOwnProperty("flags")&&!O.isInteger(_.flags)?"flags: integer expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.NumberDataPoint)return _;var N=new P.opentelemetry.proto.metrics.v1.NumberDataPoint;if(_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}if(_.startTimeUnixNano!=null&&(O.Long?(N.startTimeUnixNano=O.Long.fromValue(_.startTimeUnixNano)).unsigned=!1:typeof _.startTimeUnixNano=="string"?N.startTimeUnixNano=parseInt(_.startTimeUnixNano,10):typeof _.startTimeUnixNano=="number"?N.startTimeUnixNano=_.startTimeUnixNano:typeof _.startTimeUnixNano=="object"&&(N.startTimeUnixNano=new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber())),_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.asDouble!=null&&(N.asDouble=Number(_.asDouble)),_.asInt!=null&&(O.Long?(N.asInt=O.Long.fromValue(_.asInt)).unsigned=!1:typeof _.asInt=="string"?N.asInt=parseInt(_.asInt,10):typeof _.asInt=="number"?N.asInt=_.asInt:typeof _.asInt=="object"&&(N.asInt=new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber())),_.exemplars){if(!Array.isArray(_.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");N.exemplars=[];for(var I=0;I<_.exemplars.length;++I){if(typeof _.exemplars[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");N.exemplars[I]=P.opentelemetry.proto.metrics.v1.Exemplar.fromObject(_.exemplars[I])}}return _.flags!=null&&(N.flags=_.flags>>>0),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.exemplars=[],I.attributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.startTimeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.startTimeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;I.flags=0}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&(typeof _.startTimeUnixNano=="number"?I.startTimeUnixNano=N.longs===String?String(_.startTimeUnixNano):_.startTimeUnixNano:I.startTimeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.startTimeUnixNano):N.longs===Number?new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber():_.startTimeUnixNano),_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(I.asDouble=N.json&&!isFinite(_.asDouble)?String(_.asDouble):_.asDouble,N.oneofs&&(I.value="asDouble")),_.exemplars&&_.exemplars.length){I.exemplars=[];for(var V=0;V<_.exemplars.length;++V)I.exemplars[V]=P.opentelemetry.proto.metrics.v1.Exemplar.toObject(_.exemplars[V],N)}if(_.asInt!=null&&_.hasOwnProperty("asInt")&&(typeof _.asInt=="number"?I.asInt=N.longs===String?String(_.asInt):_.asInt:I.asInt=N.longs===String?O.Long.prototype.toString.call(_.asInt):N.longs===Number?new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber():_.asInt,N.oneofs&&(I.value="asInt")),_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}return _.flags!=null&&_.hasOwnProperty("flags")&&(I.flags=_.flags),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},C})(),U.HistogramDataPoint=(function(){function C(y){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.count=null,C.prototype.sum=null,C.prototype.bucketCounts=O.emptyArray,C.prototype.explicitBounds=O.emptyArray,C.prototype.exemplars=O.emptyArray,C.prototype.flags=null,C.prototype.min=null,C.prototype.max=null;var L;return Object.defineProperty(C.prototype,"_sum",{get:O.oneOfGetter(L=["sum"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_min",{get:O.oneOfGetter(L=["min"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_max",{get:O.oneOfGetter(L=["max"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.startTimeUnixNano!=null&&Object.hasOwnProperty.call(_,"startTimeUnixNano")&&N.uint32(17).fixed64(_.startTimeUnixNano),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(25).fixed64(_.timeUnixNano),_.count!=null&&Object.hasOwnProperty.call(_,"count")&&N.uint32(33).fixed64(_.count),_.sum!=null&&Object.hasOwnProperty.call(_,"sum")&&N.uint32(41).double(_.sum),_.bucketCounts!=null&&_.bucketCounts.length){N.uint32(50).fork();for(var I=0;I<_.bucketCounts.length;++I)N.fixed64(_.bucketCounts[I]);N.ldelim()}if(_.explicitBounds!=null&&_.explicitBounds.length){N.uint32(58).fork();for(var I=0;I<_.explicitBounds.length;++I)N.double(_.explicitBounds[I]);N.ldelim()}if(_.exemplars!=null&&_.exemplars.length)for(var I=0;I<_.exemplars.length;++I)P.opentelemetry.proto.metrics.v1.Exemplar.encode(_.exemplars[I],N.uint32(66).fork()).ldelim();if(_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(74).fork()).ldelim();return _.flags!=null&&Object.hasOwnProperty.call(_,"flags")&&N.uint32(80).uint32(_.flags),_.min!=null&&Object.hasOwnProperty.call(_,"min")&&N.uint32(89).double(_.min),_.max!=null&&Object.hasOwnProperty.call(_,"max")&&N.uint32(97).double(_.max),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.HistogramDataPoint;_.pos<I;){var V=_.uint32();switch(V>>>3){case 9:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.startTimeUnixNano=_.fixed64();break}case 3:{x.timeUnixNano=_.fixed64();break}case 4:{x.count=_.fixed64();break}case 5:{x.sum=_.double();break}case 6:{if(x.bucketCounts&&x.bucketCounts.length||(x.bucketCounts=[]),(V&7)===2)for(var k=_.uint32()+_.pos;_.pos<k;)x.bucketCounts.push(_.fixed64());else x.bucketCounts.push(_.fixed64());break}case 7:{if(x.explicitBounds&&x.explicitBounds.length||(x.explicitBounds=[]),(V&7)===2)for(var k=_.uint32()+_.pos;_.pos<k;)x.explicitBounds.push(_.double());else x.explicitBounds.push(_.double());break}case 8:{x.exemplars&&x.exemplars.length||(x.exemplars=[]),x.exemplars.push(P.opentelemetry.proto.metrics.v1.Exemplar.decode(_,_.uint32()));break}case 10:{x.flags=_.uint32();break}case 11:{x.min=_.double();break}case 12:{x.max=_.double();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(_.startTimeUnixNano)&&!(_.startTimeUnixNano&&O.isInteger(_.startTimeUnixNano.low)&&O.isInteger(_.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.count!=null&&_.hasOwnProperty("count")&&!O.isInteger(_.count)&&!(_.count&&O.isInteger(_.count.low)&&O.isInteger(_.count.high)))return"count: integer|Long expected";if(_.sum!=null&&_.hasOwnProperty("sum")&&typeof _.sum!="number")return"sum: number expected";if(_.bucketCounts!=null&&_.hasOwnProperty("bucketCounts")){if(!Array.isArray(_.bucketCounts))return"bucketCounts: array expected";for(var N=0;N<_.bucketCounts.length;++N)if(!O.isInteger(_.bucketCounts[N])&&!(_.bucketCounts[N]&&O.isInteger(_.bucketCounts[N].low)&&O.isInteger(_.bucketCounts[N].high)))return"bucketCounts: integer|Long[] expected"}if(_.explicitBounds!=null&&_.hasOwnProperty("explicitBounds")){if(!Array.isArray(_.explicitBounds))return"explicitBounds: array expected";for(var N=0;N<_.explicitBounds.length;++N)if(typeof _.explicitBounds[N]!="number")return"explicitBounds: number[] expected"}if(_.exemplars!=null&&_.hasOwnProperty("exemplars")){if(!Array.isArray(_.exemplars))return"exemplars: array expected";for(var N=0;N<_.exemplars.length;++N){var I=P.opentelemetry.proto.metrics.v1.Exemplar.verify(_.exemplars[N]);if(I)return"exemplars."+I}}return _.flags!=null&&_.hasOwnProperty("flags")&&!O.isInteger(_.flags)?"flags: integer expected":_.min!=null&&_.hasOwnProperty("min")&&typeof _.min!="number"?"min: number expected":_.max!=null&&_.hasOwnProperty("max")&&typeof _.max!="number"?"max: number expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.HistogramDataPoint)return _;var N=new P.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}if(_.startTimeUnixNano!=null&&(O.Long?(N.startTimeUnixNano=O.Long.fromValue(_.startTimeUnixNano)).unsigned=!1:typeof _.startTimeUnixNano=="string"?N.startTimeUnixNano=parseInt(_.startTimeUnixNano,10):typeof _.startTimeUnixNano=="number"?N.startTimeUnixNano=_.startTimeUnixNano:typeof _.startTimeUnixNano=="object"&&(N.startTimeUnixNano=new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber())),_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.count!=null&&(O.Long?(N.count=O.Long.fromValue(_.count)).unsigned=!1:typeof _.count=="string"?N.count=parseInt(_.count,10):typeof _.count=="number"?N.count=_.count:typeof _.count=="object"&&(N.count=new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber())),_.sum!=null&&(N.sum=Number(_.sum)),_.bucketCounts){if(!Array.isArray(_.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");N.bucketCounts=[];for(var I=0;I<_.bucketCounts.length;++I)O.Long?(N.bucketCounts[I]=O.Long.fromValue(_.bucketCounts[I])).unsigned=!1:typeof _.bucketCounts[I]=="string"?N.bucketCounts[I]=parseInt(_.bucketCounts[I],10):typeof _.bucketCounts[I]=="number"?N.bucketCounts[I]=_.bucketCounts[I]:typeof _.bucketCounts[I]=="object"&&(N.bucketCounts[I]=new O.LongBits(_.bucketCounts[I].low>>>0,_.bucketCounts[I].high>>>0).toNumber())}if(_.explicitBounds){if(!Array.isArray(_.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");N.explicitBounds=[];for(var I=0;I<_.explicitBounds.length;++I)N.explicitBounds[I]=Number(_.explicitBounds[I])}if(_.exemplars){if(!Array.isArray(_.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");N.exemplars=[];for(var I=0;I<_.exemplars.length;++I){if(typeof _.exemplars[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");N.exemplars[I]=P.opentelemetry.proto.metrics.v1.Exemplar.fromObject(_.exemplars[I])}}return _.flags!=null&&(N.flags=_.flags>>>0),_.min!=null&&(N.min=Number(_.min)),_.max!=null&&(N.max=Number(_.max)),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.bucketCounts=[],I.explicitBounds=[],I.exemplars=[],I.attributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.startTimeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.startTimeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.count=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.count=N.longs===String?"0":0;I.flags=0}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&(typeof _.startTimeUnixNano=="number"?I.startTimeUnixNano=N.longs===String?String(_.startTimeUnixNano):_.startTimeUnixNano:I.startTimeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.startTimeUnixNano):N.longs===Number?new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber():_.startTimeUnixNano),_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.count!=null&&_.hasOwnProperty("count")&&(typeof _.count=="number"?I.count=N.longs===String?String(_.count):_.count:I.count=N.longs===String?O.Long.prototype.toString.call(_.count):N.longs===Number?new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber():_.count),_.sum!=null&&_.hasOwnProperty("sum")&&(I.sum=N.json&&!isFinite(_.sum)?String(_.sum):_.sum,N.oneofs&&(I._sum="sum")),_.bucketCounts&&_.bucketCounts.length){I.bucketCounts=[];for(var V=0;V<_.bucketCounts.length;++V)typeof _.bucketCounts[V]=="number"?I.bucketCounts[V]=N.longs===String?String(_.bucketCounts[V]):_.bucketCounts[V]:I.bucketCounts[V]=N.longs===String?O.Long.prototype.toString.call(_.bucketCounts[V]):N.longs===Number?new O.LongBits(_.bucketCounts[V].low>>>0,_.bucketCounts[V].high>>>0).toNumber():_.bucketCounts[V]}if(_.explicitBounds&&_.explicitBounds.length){I.explicitBounds=[];for(var V=0;V<_.explicitBounds.length;++V)I.explicitBounds[V]=N.json&&!isFinite(_.explicitBounds[V])?String(_.explicitBounds[V]):_.explicitBounds[V]}if(_.exemplars&&_.exemplars.length){I.exemplars=[];for(var V=0;V<_.exemplars.length;++V)I.exemplars[V]=P.opentelemetry.proto.metrics.v1.Exemplar.toObject(_.exemplars[V],N)}if(_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}return _.flags!=null&&_.hasOwnProperty("flags")&&(I.flags=_.flags),_.min!=null&&_.hasOwnProperty("min")&&(I.min=N.json&&!isFinite(_.min)?String(_.min):_.min,N.oneofs&&(I._min="min")),_.max!=null&&_.hasOwnProperty("max")&&(I.max=N.json&&!isFinite(_.max)?String(_.max):_.max,N.oneofs&&(I._max="max")),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},C})(),U.ExponentialHistogramDataPoint=(function(){function C(y){if(this.attributes=[],this.exemplars=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.count=null,C.prototype.sum=null,C.prototype.scale=null,C.prototype.zeroCount=null,C.prototype.positive=null,C.prototype.negative=null,C.prototype.flags=null,C.prototype.exemplars=O.emptyArray,C.prototype.min=null,C.prototype.max=null,C.prototype.zeroThreshold=null;var L;return Object.defineProperty(C.prototype,"_sum",{get:O.oneOfGetter(L=["sum"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_min",{get:O.oneOfGetter(L=["min"]),set:O.oneOfSetter(L)}),Object.defineProperty(C.prototype,"_max",{get:O.oneOfGetter(L=["max"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.attributes!=null&&_.attributes.length)for(var I=0;I<_.attributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.attributes[I],N.uint32(10).fork()).ldelim();if(_.startTimeUnixNano!=null&&Object.hasOwnProperty.call(_,"startTimeUnixNano")&&N.uint32(17).fixed64(_.startTimeUnixNano),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(25).fixed64(_.timeUnixNano),_.count!=null&&Object.hasOwnProperty.call(_,"count")&&N.uint32(33).fixed64(_.count),_.sum!=null&&Object.hasOwnProperty.call(_,"sum")&&N.uint32(41).double(_.sum),_.scale!=null&&Object.hasOwnProperty.call(_,"scale")&&N.uint32(48).sint32(_.scale),_.zeroCount!=null&&Object.hasOwnProperty.call(_,"zeroCount")&&N.uint32(57).fixed64(_.zeroCount),_.positive!=null&&Object.hasOwnProperty.call(_,"positive")&&P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(_.positive,N.uint32(66).fork()).ldelim(),_.negative!=null&&Object.hasOwnProperty.call(_,"negative")&&P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(_.negative,N.uint32(74).fork()).ldelim(),_.flags!=null&&Object.hasOwnProperty.call(_,"flags")&&N.uint32(80).uint32(_.flags),_.exemplars!=null&&_.exemplars.length)for(var I=0;I<_.exemplars.length;++I)P.opentelemetry.proto.metrics.v1.Exemplar.encode(_.exemplars[I],N.uint32(90).fork()).ldelim();return _.min!=null&&Object.hasOwnProperty.call(_,"min")&&N.uint32(97).double(_.min),_.max!=null&&Object.hasOwnProperty.call(_,"max")&&N.uint32(105).double(_.max),_.zeroThreshold!=null&&Object.hasOwnProperty.call(_,"zeroThreshold")&&N.uint32(113).double(_.zeroThreshold),N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.attributes&&x.attributes.length||(x.attributes=[]),x.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.startTimeUnixNano=_.fixed64();break}case 3:{x.timeUnixNano=_.fixed64();break}case 4:{x.count=_.fixed64();break}case 5:{x.sum=_.double();break}case 6:{x.scale=_.sint32();break}case 7:{x.zeroCount=_.fixed64();break}case 8:{x.positive=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(_,_.uint32());break}case 9:{x.negative=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(_,_.uint32());break}case 10:{x.flags=_.uint32();break}case 11:{x.exemplars&&x.exemplars.length||(x.exemplars=[]),x.exemplars.push(P.opentelemetry.proto.metrics.v1.Exemplar.decode(_,_.uint32()));break}case 12:{x.min=_.double();break}case 13:{x.max=_.double();break}case 14:{x.zeroThreshold=_.double();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";if(_.attributes!=null&&_.hasOwnProperty("attributes")){if(!Array.isArray(_.attributes))return"attributes: array expected";for(var N=0;N<_.attributes.length;++N){var I=P.opentelemetry.proto.common.v1.KeyValue.verify(_.attributes[N]);if(I)return"attributes."+I}}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(_.startTimeUnixNano)&&!(_.startTimeUnixNano&&O.isInteger(_.startTimeUnixNano.low)&&O.isInteger(_.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.count!=null&&_.hasOwnProperty("count")&&!O.isInteger(_.count)&&!(_.count&&O.isInteger(_.count.low)&&O.isInteger(_.count.high)))return"count: integer|Long expected";if(_.sum!=null&&_.hasOwnProperty("sum")&&typeof _.sum!="number")return"sum: number expected";if(_.scale!=null&&_.hasOwnProperty("scale")&&!O.isInteger(_.scale))return"scale: integer expected";if(_.zeroCount!=null&&_.hasOwnProperty("zeroCount")&&!O.isInteger(_.zeroCount)&&!(_.zeroCount&&O.isInteger(_.zeroCount.low)&&O.isInteger(_.zeroCount.high)))return"zeroCount: integer|Long expected";if(_.positive!=null&&_.hasOwnProperty("positive")){var I=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(_.positive);if(I)return"positive."+I}if(_.negative!=null&&_.hasOwnProperty("negative")){var I=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(_.negative);if(I)return"negative."+I}if(_.flags!=null&&_.hasOwnProperty("flags")&&!O.isInteger(_.flags))return"flags: integer expected";if(_.exemplars!=null&&_.hasOwnProperty("exemplars")){if(!Array.isArray(_.exemplars))return"exemplars: array expected";for(var N=0;N<_.exemplars.length;++N){var I=P.opentelemetry.proto.metrics.v1.Exemplar.verify(_.exemplars[N]);if(I)return"exemplars."+I}}return _.min!=null&&_.hasOwnProperty("min")&&typeof _.min!="number"?"min: number expected":_.max!=null&&_.hasOwnProperty("max")&&typeof _.max!="number"?"max: number expected":_.zeroThreshold!=null&&_.hasOwnProperty("zeroThreshold")&&typeof _.zeroThreshold!="number"?"zeroThreshold: number expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return _;var N=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(_.attributes){if(!Array.isArray(_.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");N.attributes=[];for(var I=0;I<_.attributes.length;++I){if(typeof _.attributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");N.attributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.attributes[I])}}if(_.startTimeUnixNano!=null&&(O.Long?(N.startTimeUnixNano=O.Long.fromValue(_.startTimeUnixNano)).unsigned=!1:typeof _.startTimeUnixNano=="string"?N.startTimeUnixNano=parseInt(_.startTimeUnixNano,10):typeof _.startTimeUnixNano=="number"?N.startTimeUnixNano=_.startTimeUnixNano:typeof _.startTimeUnixNano=="object"&&(N.startTimeUnixNano=new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber())),_.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.count!=null&&(O.Long?(N.count=O.Long.fromValue(_.count)).unsigned=!1:typeof _.count=="string"?N.count=parseInt(_.count,10):typeof _.count=="number"?N.count=_.count:typeof _.count=="object"&&(N.count=new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber())),_.sum!=null&&(N.sum=Number(_.sum)),_.scale!=null&&(N.scale=_.scale|0),_.zeroCount!=null&&(O.Long?(N.zeroCount=O.Long.fromValue(_.zeroCount)).unsigned=!1:typeof _.zeroCount=="string"?N.zeroCount=parseInt(_.zeroCount,10):typeof _.zeroCount=="number"?N.zeroCount=_.zeroCount:typeof _.zeroCount=="object"&&(N.zeroCount=new O.LongBits(_.zeroCount.low>>>0,_.zeroCount.high>>>0).toNumber())),_.positive!=null){if(typeof _.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");N.positive=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(_.positive)}if(_.negative!=null){if(typeof _.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");N.negative=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(_.negative)}if(_.flags!=null&&(N.flags=_.flags>>>0),_.exemplars){if(!Array.isArray(_.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");N.exemplars=[];for(var I=0;I<_.exemplars.length;++I){if(typeof _.exemplars[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");N.exemplars[I]=P.opentelemetry.proto.metrics.v1.Exemplar.fromObject(_.exemplars[I])}}return _.min!=null&&(N.min=Number(_.min)),_.max!=null&&(N.max=Number(_.max)),_.zeroThreshold!=null&&(N.zeroThreshold=Number(_.zeroThreshold)),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.attributes=[],I.exemplars=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.startTimeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.startTimeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;if(O.Long){var x=new O.Long(0,0,!1);I.count=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.count=N.longs===String?"0":0;if(I.scale=0,O.Long){var x=new O.Long(0,0,!1);I.zeroCount=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.zeroCount=N.longs===String?"0":0;I.positive=null,I.negative=null,I.flags=0,I.zeroThreshold=0}if(_.attributes&&_.attributes.length){I.attributes=[];for(var V=0;V<_.attributes.length;++V)I.attributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.attributes[V],N)}if(_.startTimeUnixNano!=null&&_.hasOwnProperty("startTimeUnixNano")&&(typeof _.startTimeUnixNano=="number"?I.startTimeUnixNano=N.longs===String?String(_.startTimeUnixNano):_.startTimeUnixNano:I.startTimeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.startTimeUnixNano):N.longs===Number?new O.LongBits(_.startTimeUnixNano.low>>>0,_.startTimeUnixNano.high>>>0).toNumber():_.startTimeUnixNano),_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.count!=null&&_.hasOwnProperty("count")&&(typeof _.count=="number"?I.count=N.longs===String?String(_.count):_.count:I.count=N.longs===String?O.Long.prototype.toString.call(_.count):N.longs===Number?new O.LongBits(_.count.low>>>0,_.count.high>>>0).toNumber():_.count),_.sum!=null&&_.hasOwnProperty("sum")&&(I.sum=N.json&&!isFinite(_.sum)?String(_.sum):_.sum,N.oneofs&&(I._sum="sum")),_.scale!=null&&_.hasOwnProperty("scale")&&(I.scale=_.scale),_.zeroCount!=null&&_.hasOwnProperty("zeroCount")&&(typeof _.zeroCount=="number"?I.zeroCount=N.longs===String?String(_.zeroCount):_.zeroCount:I.zeroCount=N.longs===String?O.Long.prototype.toString.call(_.zeroCount):N.longs===Number?new O.LongBits(_.zeroCount.low>>>0,_.zeroCount.high>>>0).toNumber():_.zeroCount),_.positive!=null&&_.hasOwnProperty("positive")&&(I.positive=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(_.positive,N)),_.negative!=null&&_.hasOwnProperty("negative")&&(I.negative=P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(_.negative,N)),_.flags!=null&&_.hasOwnProperty("flags")&&(I.flags=_.flags),_.exemplars&&_.exemplars.length){I.exemplars=[];for(var V=0;V<_.exemplars.length;++V)I.exemplars[V]=P.opentelemetry.proto.metrics.v1.Exemplar.toObject(_.exemplars[V],N)}return _.min!=null&&_.hasOwnProperty("min")&&(I.min=N.json&&!isFinite(_.min)?String(_.min):_.min,N.oneofs&&(I._min="min")),_.max!=null&&_.hasOwnProperty("max")&&(I.max=N.json&&!isFinite(_.max)?String(_.max):_.max,N.oneofs&&(I._max="max")),_.zeroThreshold!=null&&_.hasOwnProperty("zeroThreshold")&&(I.zeroThreshold=N.json&&!isFinite(_.zeroThreshold)?String(_.zeroThreshold):_.zeroThreshold),I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},C.Buckets=(function(){function y(_){if(this.bucketCounts=[],_)for(var N=Object.keys(_),I=0;I<N.length;++I)_[N[I]]!=null&&(this[N[I]]=_[N[I]])}return y.prototype.offset=null,y.prototype.bucketCounts=O.emptyArray,y.create=function(N){return new y(N)},y.encode=function(N,I){if(I||(I=A.create()),N.offset!=null&&Object.hasOwnProperty.call(N,"offset")&&I.uint32(8).sint32(N.offset),N.bucketCounts!=null&&N.bucketCounts.length){I.uint32(18).fork();for(var x=0;x<N.bucketCounts.length;++x)I.uint64(N.bucketCounts[x]);I.ldelim()}return I},y.encodeDelimited=function(N,I){return this.encode(N,I).ldelim()},y.decode=function(N,I){N instanceof T||(N=T.create(N));for(var x=I===void 0?N.len:N.pos+I,V=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;N.pos<x;){var k=N.uint32();switch(k>>>3){case 1:{V.offset=N.sint32();break}case 2:{if(V.bucketCounts&&V.bucketCounts.length||(V.bucketCounts=[]),(k&7)===2)for(var B=N.uint32()+N.pos;N.pos<B;)V.bucketCounts.push(N.uint64());else V.bucketCounts.push(N.uint64());break}default:N.skipType(k&7);break}}return V},y.decodeDelimited=function(N){return N instanceof T||(N=new T(N)),this.decode(N,N.uint32())},y.verify=function(N){if(typeof N!="object"||N===null)return"object expected";if(N.offset!=null&&N.hasOwnProperty("offset")&&!O.isInteger(N.offset))return"offset: integer expected";if(N.bucketCounts!=null&&N.hasOwnProperty("bucketCounts")){if(!Array.isArray(N.bucketCounts))return"bucketCounts: array expected";for(var I=0;I<N.bucketCounts.length;++I)if(!O.isInteger(N.bucketCounts[I])&&!(N.bucketCounts[I]&&O.isInteger(N.bucketCounts[I].low)&&O.isInteger(N.bucketCounts[I].high)))return"bucketCounts: integer|Long[] expected"}return null},y.fromObject=function(N){if(N instanceof P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return N;var I=new P.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(N.offset!=null&&(I.offset=N.offset|0),N.bucketCounts){if(!Array.isArray(N.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");I.bucketCounts=[];for(var x=0;x<N.bucketCounts.length;++x)O.Long?(I.bucketCounts[x]=O.Long.fromValue(N.bucketCounts[x])).unsigned=!0:typeof N.bucketCounts[x]=="string"?I.bucketCounts[x]=parseInt(N.bucketCounts[x],10):typeof N.bucketCounts[x]=="number"?I.bucketCounts[x]=N.bucketCounts[x]:typeof N.bucketCounts[x]=="object"&&(I.bucketCounts[x]=new O.LongBits(N.bucketCounts[x].low>>>0,N.bucketCounts[x].high>>>0).toNumber(!0))}return I},y.toObject=function(N,I){I||(I={});var x={};if((I.arrays||I.defaults)&&(x.bucketCounts=[]),I.defaults&&(x.offset=0),N.offset!=null&&N.hasOwnProperty("offset")&&(x.offset=N.offset),N.bucketCounts&&N.bucketCounts.length){x.bucketCounts=[];for(var V=0;V<N.bucketCounts.length;++V)typeof N.bucketCounts[V]=="number"?x.bucketCounts[V]=I.longs===String?String(N.bucketCounts[V]):N.bucketCounts[V]:x.bucketCounts[V]=I.longs===String?O.Long.prototype.toString.call(N.bucketCounts[V]):I.longs===Number?new O.LongBits(N.bucketCounts[V].low>>>0,N.bucketCounts[V].high>>>0).toNumber(!0):N.bucketCounts[V]}return x},y.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},y.getTypeUrl=function(N){return N===void 0&&(N="type.googleapis.com"),N+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},y})(),C})(),U.SummaryDataPoint=(function(){function C(L){if(this.attributes=[],this.quantileValues=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.attributes=O.emptyArray,C.prototype.startTimeUnixNano=null,C.prototype.timeUnixNano=null,C.prototype.count=null,C.prototype.sum=null,C.prototype.quantileValues=O.emptyArray,C.prototype.flags=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.startTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"startTimeUnixNano")&&_.uint32(17).fixed64(y.startTimeUnixNano),y.timeUnixNano!=null&&Object.hasOwnProperty.call(y,"timeUnixNano")&&_.uint32(25).fixed64(y.timeUnixNano),y.count!=null&&Object.hasOwnProperty.call(y,"count")&&_.uint32(33).fixed64(y.count),y.sum!=null&&Object.hasOwnProperty.call(y,"sum")&&_.uint32(41).double(y.sum),y.quantileValues!=null&&y.quantileValues.length)for(var N=0;N<y.quantileValues.length;++N)P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(y.quantileValues[N],_.uint32(50).fork()).ldelim();if(y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(58).fork()).ldelim();return y.flags!=null&&Object.hasOwnProperty.call(y,"flags")&&_.uint32(64).uint32(y.flags),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint;y.pos<N;){var x=y.uint32();switch(x>>>3){case 7:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 2:{I.startTimeUnixNano=y.fixed64();break}case 3:{I.timeUnixNano=y.fixed64();break}case 4:{I.count=y.fixed64();break}case 5:{I.sum=y.double();break}case 6:{I.quantileValues&&I.quantileValues.length||(I.quantileValues=[]),I.quantileValues.push(P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(y,y.uint32()));break}case 8:{I.flags=y.uint32();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var _=0;_<y.attributes.length;++_){var N=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[_]);if(N)return"attributes."+N}}if(y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&!O.isInteger(y.startTimeUnixNano)&&!(y.startTimeUnixNano&&O.isInteger(y.startTimeUnixNano.low)&&O.isInteger(y.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&!O.isInteger(y.timeUnixNano)&&!(y.timeUnixNano&&O.isInteger(y.timeUnixNano.low)&&O.isInteger(y.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(y.count!=null&&y.hasOwnProperty("count")&&!O.isInteger(y.count)&&!(y.count&&O.isInteger(y.count.low)&&O.isInteger(y.count.high)))return"count: integer|Long expected";if(y.sum!=null&&y.hasOwnProperty("sum")&&typeof y.sum!="number")return"sum: number expected";if(y.quantileValues!=null&&y.hasOwnProperty("quantileValues")){if(!Array.isArray(y.quantileValues))return"quantileValues: array expected";for(var _=0;_<y.quantileValues.length;++_){var N=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(y.quantileValues[_]);if(N)return"quantileValues."+N}}return y.flags!=null&&y.hasOwnProperty("flags")&&!O.isInteger(y.flags)?"flags: integer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.metrics.v1.SummaryDataPoint)return y;var _=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}if(y.startTimeUnixNano!=null&&(O.Long?(_.startTimeUnixNano=O.Long.fromValue(y.startTimeUnixNano)).unsigned=!1:typeof y.startTimeUnixNano=="string"?_.startTimeUnixNano=parseInt(y.startTimeUnixNano,10):typeof y.startTimeUnixNano=="number"?_.startTimeUnixNano=y.startTimeUnixNano:typeof y.startTimeUnixNano=="object"&&(_.startTimeUnixNano=new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber())),y.timeUnixNano!=null&&(O.Long?(_.timeUnixNano=O.Long.fromValue(y.timeUnixNano)).unsigned=!1:typeof y.timeUnixNano=="string"?_.timeUnixNano=parseInt(y.timeUnixNano,10):typeof y.timeUnixNano=="number"?_.timeUnixNano=y.timeUnixNano:typeof y.timeUnixNano=="object"&&(_.timeUnixNano=new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber())),y.count!=null&&(O.Long?(_.count=O.Long.fromValue(y.count)).unsigned=!1:typeof y.count=="string"?_.count=parseInt(y.count,10):typeof y.count=="number"?_.count=y.count:typeof y.count=="object"&&(_.count=new O.LongBits(y.count.low>>>0,y.count.high>>>0).toNumber())),y.sum!=null&&(_.sum=Number(y.sum)),y.quantileValues){if(!Array.isArray(y.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");_.quantileValues=[];for(var N=0;N<y.quantileValues.length;++N){if(typeof y.quantileValues[N]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");_.quantileValues[N]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(y.quantileValues[N])}}return y.flags!=null&&(_.flags=y.flags>>>0),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.quantileValues=[],N.attributes=[]),_.defaults){if(O.Long){var I=new O.Long(0,0,!1);N.startTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.startTimeUnixNano=_.longs===String?"0":0;if(O.Long){var I=new O.Long(0,0,!1);N.timeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.timeUnixNano=_.longs===String?"0":0;if(O.Long){var I=new O.Long(0,0,!1);N.count=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.count=_.longs===String?"0":0;N.sum=0,N.flags=0}if(y.startTimeUnixNano!=null&&y.hasOwnProperty("startTimeUnixNano")&&(typeof y.startTimeUnixNano=="number"?N.startTimeUnixNano=_.longs===String?String(y.startTimeUnixNano):y.startTimeUnixNano:N.startTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.startTimeUnixNano):_.longs===Number?new O.LongBits(y.startTimeUnixNano.low>>>0,y.startTimeUnixNano.high>>>0).toNumber():y.startTimeUnixNano),y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&(typeof y.timeUnixNano=="number"?N.timeUnixNano=_.longs===String?String(y.timeUnixNano):y.timeUnixNano:N.timeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.timeUnixNano):_.longs===Number?new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber():y.timeUnixNano),y.count!=null&&y.hasOwnProperty("count")&&(typeof y.count=="number"?N.count=_.longs===String?String(y.count):y.count:N.count=_.longs===String?O.Long.prototype.toString.call(y.count):_.longs===Number?new O.LongBits(y.count.low>>>0,y.count.high>>>0).toNumber():y.count),y.sum!=null&&y.hasOwnProperty("sum")&&(N.sum=_.json&&!isFinite(y.sum)?String(y.sum):y.sum),y.quantileValues&&y.quantileValues.length){N.quantileValues=[];for(var x=0;x<y.quantileValues.length;++x)N.quantileValues[x]=P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(y.quantileValues[x],_)}if(y.attributes&&y.attributes.length){N.attributes=[];for(var x=0;x<y.attributes.length;++x)N.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[x],_)}return y.flags!=null&&y.hasOwnProperty("flags")&&(N.flags=y.flags),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},C.ValueAtQuantile=(function(){function L(y){if(y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}return L.prototype.quantile=null,L.prototype.value=null,L.create=function(_){return new L(_)},L.encode=function(_,N){return N||(N=A.create()),_.quantile!=null&&Object.hasOwnProperty.call(_,"quantile")&&N.uint32(9).double(_.quantile),_.value!=null&&Object.hasOwnProperty.call(_,"value")&&N.uint32(17).double(_.value),N},L.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},L.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;_.pos<I;){var V=_.uint32();switch(V>>>3){case 1:{x.quantile=_.double();break}case 2:{x.value=_.double();break}default:_.skipType(V&7);break}}return x},L.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},L.verify=function(_){return typeof _!="object"||_===null?"object expected":_.quantile!=null&&_.hasOwnProperty("quantile")&&typeof _.quantile!="number"?"quantile: number expected":_.value!=null&&_.hasOwnProperty("value")&&typeof _.value!="number"?"value: number expected":null},L.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return _;var N=new P.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return _.quantile!=null&&(N.quantile=Number(_.quantile)),_.value!=null&&(N.value=Number(_.value)),N},L.toObject=function(_,N){N||(N={});var I={};return N.defaults&&(I.quantile=0,I.value=0),_.quantile!=null&&_.hasOwnProperty("quantile")&&(I.quantile=N.json&&!isFinite(_.quantile)?String(_.quantile):_.quantile),_.value!=null&&_.hasOwnProperty("value")&&(I.value=N.json&&!isFinite(_.value)?String(_.value):_.value),I},L.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},L.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},L})(),C})(),U.Exemplar=(function(){function C(y){if(this.filteredAttributes=[],y)for(var _=Object.keys(y),N=0;N<_.length;++N)y[_[N]]!=null&&(this[_[N]]=y[_[N]])}C.prototype.filteredAttributes=O.emptyArray,C.prototype.timeUnixNano=null,C.prototype.asDouble=null,C.prototype.asInt=null,C.prototype.spanId=null,C.prototype.traceId=null;var L;return Object.defineProperty(C.prototype,"value",{get:O.oneOfGetter(L=["asDouble","asInt"]),set:O.oneOfSetter(L)}),C.create=function(_){return new C(_)},C.encode=function(_,N){if(N||(N=A.create()),_.timeUnixNano!=null&&Object.hasOwnProperty.call(_,"timeUnixNano")&&N.uint32(17).fixed64(_.timeUnixNano),_.asDouble!=null&&Object.hasOwnProperty.call(_,"asDouble")&&N.uint32(25).double(_.asDouble),_.spanId!=null&&Object.hasOwnProperty.call(_,"spanId")&&N.uint32(34).bytes(_.spanId),_.traceId!=null&&Object.hasOwnProperty.call(_,"traceId")&&N.uint32(42).bytes(_.traceId),_.asInt!=null&&Object.hasOwnProperty.call(_,"asInt")&&N.uint32(49).sfixed64(_.asInt),_.filteredAttributes!=null&&_.filteredAttributes.length)for(var I=0;I<_.filteredAttributes.length;++I)P.opentelemetry.proto.common.v1.KeyValue.encode(_.filteredAttributes[I],N.uint32(58).fork()).ldelim();return N},C.encodeDelimited=function(_,N){return this.encode(_,N).ldelim()},C.decode=function(_,N){_ instanceof T||(_=T.create(_));for(var I=N===void 0?_.len:_.pos+N,x=new P.opentelemetry.proto.metrics.v1.Exemplar;_.pos<I;){var V=_.uint32();switch(V>>>3){case 7:{x.filteredAttributes&&x.filteredAttributes.length||(x.filteredAttributes=[]),x.filteredAttributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(_,_.uint32()));break}case 2:{x.timeUnixNano=_.fixed64();break}case 3:{x.asDouble=_.double();break}case 6:{x.asInt=_.sfixed64();break}case 4:{x.spanId=_.bytes();break}case 5:{x.traceId=_.bytes();break}default:_.skipType(V&7);break}}return x},C.decodeDelimited=function(_){return _ instanceof T||(_=new T(_)),this.decode(_,_.uint32())},C.verify=function(_){if(typeof _!="object"||_===null)return"object expected";var N={};if(_.filteredAttributes!=null&&_.hasOwnProperty("filteredAttributes")){if(!Array.isArray(_.filteredAttributes))return"filteredAttributes: array expected";for(var I=0;I<_.filteredAttributes.length;++I){var x=P.opentelemetry.proto.common.v1.KeyValue.verify(_.filteredAttributes[I]);if(x)return"filteredAttributes."+x}}if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&!O.isInteger(_.timeUnixNano)&&!(_.timeUnixNano&&O.isInteger(_.timeUnixNano.low)&&O.isInteger(_.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(N.value=1,typeof _.asDouble!="number"))return"asDouble: number expected";if(_.asInt!=null&&_.hasOwnProperty("asInt")){if(N.value===1)return"value: multiple values";if(N.value=1,!O.isInteger(_.asInt)&&!(_.asInt&&O.isInteger(_.asInt.low)&&O.isInteger(_.asInt.high)))return"asInt: integer|Long expected"}return _.spanId!=null&&_.hasOwnProperty("spanId")&&!(_.spanId&&typeof _.spanId.length=="number"||O.isString(_.spanId))?"spanId: buffer expected":_.traceId!=null&&_.hasOwnProperty("traceId")&&!(_.traceId&&typeof _.traceId.length=="number"||O.isString(_.traceId))?"traceId: buffer expected":null},C.fromObject=function(_){if(_ instanceof P.opentelemetry.proto.metrics.v1.Exemplar)return _;var N=new P.opentelemetry.proto.metrics.v1.Exemplar;if(_.filteredAttributes){if(!Array.isArray(_.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");N.filteredAttributes=[];for(var I=0;I<_.filteredAttributes.length;++I){if(typeof _.filteredAttributes[I]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");N.filteredAttributes[I]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(_.filteredAttributes[I])}}return _.timeUnixNano!=null&&(O.Long?(N.timeUnixNano=O.Long.fromValue(_.timeUnixNano)).unsigned=!1:typeof _.timeUnixNano=="string"?N.timeUnixNano=parseInt(_.timeUnixNano,10):typeof _.timeUnixNano=="number"?N.timeUnixNano=_.timeUnixNano:typeof _.timeUnixNano=="object"&&(N.timeUnixNano=new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber())),_.asDouble!=null&&(N.asDouble=Number(_.asDouble)),_.asInt!=null&&(O.Long?(N.asInt=O.Long.fromValue(_.asInt)).unsigned=!1:typeof _.asInt=="string"?N.asInt=parseInt(_.asInt,10):typeof _.asInt=="number"?N.asInt=_.asInt:typeof _.asInt=="object"&&(N.asInt=new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber())),_.spanId!=null&&(typeof _.spanId=="string"?O.base64.decode(_.spanId,N.spanId=O.newBuffer(O.base64.length(_.spanId)),0):_.spanId.length>=0&&(N.spanId=_.spanId)),_.traceId!=null&&(typeof _.traceId=="string"?O.base64.decode(_.traceId,N.traceId=O.newBuffer(O.base64.length(_.traceId)),0):_.traceId.length>=0&&(N.traceId=_.traceId)),N},C.toObject=function(_,N){N||(N={});var I={};if((N.arrays||N.defaults)&&(I.filteredAttributes=[]),N.defaults){if(O.Long){var x=new O.Long(0,0,!1);I.timeUnixNano=N.longs===String?x.toString():N.longs===Number?x.toNumber():x}else I.timeUnixNano=N.longs===String?"0":0;N.bytes===String?I.spanId="":(I.spanId=[],N.bytes!==Array&&(I.spanId=O.newBuffer(I.spanId))),N.bytes===String?I.traceId="":(I.traceId=[],N.bytes!==Array&&(I.traceId=O.newBuffer(I.traceId)))}if(_.timeUnixNano!=null&&_.hasOwnProperty("timeUnixNano")&&(typeof _.timeUnixNano=="number"?I.timeUnixNano=N.longs===String?String(_.timeUnixNano):_.timeUnixNano:I.timeUnixNano=N.longs===String?O.Long.prototype.toString.call(_.timeUnixNano):N.longs===Number?new O.LongBits(_.timeUnixNano.low>>>0,_.timeUnixNano.high>>>0).toNumber():_.timeUnixNano),_.asDouble!=null&&_.hasOwnProperty("asDouble")&&(I.asDouble=N.json&&!isFinite(_.asDouble)?String(_.asDouble):_.asDouble,N.oneofs&&(I.value="asDouble")),_.spanId!=null&&_.hasOwnProperty("spanId")&&(I.spanId=N.bytes===String?O.base64.encode(_.spanId,0,_.spanId.length):N.bytes===Array?Array.prototype.slice.call(_.spanId):_.spanId),_.traceId!=null&&_.hasOwnProperty("traceId")&&(I.traceId=N.bytes===String?O.base64.encode(_.traceId,0,_.traceId.length):N.bytes===Array?Array.prototype.slice.call(_.traceId):_.traceId),_.asInt!=null&&_.hasOwnProperty("asInt")&&(typeof _.asInt=="number"?I.asInt=N.longs===String?String(_.asInt):_.asInt:I.asInt=N.longs===String?O.Long.prototype.toString.call(_.asInt):N.longs===Number?new O.LongBits(_.asInt.low>>>0,_.asInt.high>>>0).toNumber():_.asInt,N.oneofs&&(I.value="asInt")),_.filteredAttributes&&_.filteredAttributes.length){I.filteredAttributes=[];for(var V=0;V<_.filteredAttributes.length;++V)I.filteredAttributes[V]=P.opentelemetry.proto.common.v1.KeyValue.toObject(_.filteredAttributes[V],N)}return I},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(_){return _===void 0&&(_="type.googleapis.com"),_+"/opentelemetry.proto.metrics.v1.Exemplar"},C})(),U})(),D})(),M.logs=(function(){var D={};return D.v1=(function(){var U={};return U.LogsData=(function(){function C(L){if(this.resourceLogs=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resourceLogs=O.emptyArray,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resourceLogs!=null&&y.resourceLogs.length)for(var N=0;N<y.resourceLogs.length;++N)P.opentelemetry.proto.logs.v1.ResourceLogs.encode(y.resourceLogs[N],_.uint32(10).fork()).ldelim();return _},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.LogsData;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resourceLogs&&I.resourceLogs.length||(I.resourceLogs=[]),I.resourceLogs.push(P.opentelemetry.proto.logs.v1.ResourceLogs.decode(y,y.uint32()));break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resourceLogs!=null&&y.hasOwnProperty("resourceLogs")){if(!Array.isArray(y.resourceLogs))return"resourceLogs: array expected";for(var _=0;_<y.resourceLogs.length;++_){var N=P.opentelemetry.proto.logs.v1.ResourceLogs.verify(y.resourceLogs[_]);if(N)return"resourceLogs."+N}}return null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.LogsData)return y;var _=new P.opentelemetry.proto.logs.v1.LogsData;if(y.resourceLogs){if(!Array.isArray(y.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");_.resourceLogs=[];for(var N=0;N<y.resourceLogs.length;++N){if(typeof y.resourceLogs[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");_.resourceLogs[N]=P.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(y.resourceLogs[N])}}return _},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.resourceLogs=[]),y.resourceLogs&&y.resourceLogs.length){N.resourceLogs=[];for(var I=0;I<y.resourceLogs.length;++I)N.resourceLogs[I]=P.opentelemetry.proto.logs.v1.ResourceLogs.toObject(y.resourceLogs[I],_)}return N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.LogsData"},C})(),U.ResourceLogs=(function(){function C(L){if(this.scopeLogs=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.resource=null,C.prototype.scopeLogs=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.resource!=null&&Object.hasOwnProperty.call(y,"resource")&&P.opentelemetry.proto.resource.v1.Resource.encode(y.resource,_.uint32(10).fork()).ldelim(),y.scopeLogs!=null&&y.scopeLogs.length)for(var N=0;N<y.scopeLogs.length;++N)P.opentelemetry.proto.logs.v1.ScopeLogs.encode(y.scopeLogs[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.ResourceLogs;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.resource=P.opentelemetry.proto.resource.v1.Resource.decode(y,y.uint32());break}case 2:{I.scopeLogs&&I.scopeLogs.length||(I.scopeLogs=[]),I.scopeLogs.push(P.opentelemetry.proto.logs.v1.ScopeLogs.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.resource!=null&&y.hasOwnProperty("resource")){var _=P.opentelemetry.proto.resource.v1.Resource.verify(y.resource);if(_)return"resource."+_}if(y.scopeLogs!=null&&y.hasOwnProperty("scopeLogs")){if(!Array.isArray(y.scopeLogs))return"scopeLogs: array expected";for(var N=0;N<y.scopeLogs.length;++N){var _=P.opentelemetry.proto.logs.v1.ScopeLogs.verify(y.scopeLogs[N]);if(_)return"scopeLogs."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.ResourceLogs)return y;var _=new P.opentelemetry.proto.logs.v1.ResourceLogs;if(y.resource!=null){if(typeof y.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");_.resource=P.opentelemetry.proto.resource.v1.Resource.fromObject(y.resource)}if(y.scopeLogs){if(!Array.isArray(y.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");_.scopeLogs=[];for(var N=0;N<y.scopeLogs.length;++N){if(typeof y.scopeLogs[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");_.scopeLogs[N]=P.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(y.scopeLogs[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.scopeLogs=[]),_.defaults&&(N.resource=null,N.schemaUrl=""),y.resource!=null&&y.hasOwnProperty("resource")&&(N.resource=P.opentelemetry.proto.resource.v1.Resource.toObject(y.resource,_)),y.scopeLogs&&y.scopeLogs.length){N.scopeLogs=[];for(var I=0;I<y.scopeLogs.length;++I)N.scopeLogs[I]=P.opentelemetry.proto.logs.v1.ScopeLogs.toObject(y.scopeLogs[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.ResourceLogs"},C})(),U.ScopeLogs=(function(){function C(L){if(this.logRecords=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.scope=null,C.prototype.logRecords=O.emptyArray,C.prototype.schemaUrl=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.scope!=null&&Object.hasOwnProperty.call(y,"scope")&&P.opentelemetry.proto.common.v1.InstrumentationScope.encode(y.scope,_.uint32(10).fork()).ldelim(),y.logRecords!=null&&y.logRecords.length)for(var N=0;N<y.logRecords.length;++N)P.opentelemetry.proto.logs.v1.LogRecord.encode(y.logRecords[N],_.uint32(18).fork()).ldelim();return y.schemaUrl!=null&&Object.hasOwnProperty.call(y,"schemaUrl")&&_.uint32(26).string(y.schemaUrl),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.ScopeLogs;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.decode(y,y.uint32());break}case 2:{I.logRecords&&I.logRecords.length||(I.logRecords=[]),I.logRecords.push(P.opentelemetry.proto.logs.v1.LogRecord.decode(y,y.uint32()));break}case 3:{I.schemaUrl=y.string();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.scope!=null&&y.hasOwnProperty("scope")){var _=P.opentelemetry.proto.common.v1.InstrumentationScope.verify(y.scope);if(_)return"scope."+_}if(y.logRecords!=null&&y.hasOwnProperty("logRecords")){if(!Array.isArray(y.logRecords))return"logRecords: array expected";for(var N=0;N<y.logRecords.length;++N){var _=P.opentelemetry.proto.logs.v1.LogRecord.verify(y.logRecords[N]);if(_)return"logRecords."+_}}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&!O.isString(y.schemaUrl)?"schemaUrl: string expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.ScopeLogs)return y;var _=new P.opentelemetry.proto.logs.v1.ScopeLogs;if(y.scope!=null){if(typeof y.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");_.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(y.scope)}if(y.logRecords){if(!Array.isArray(y.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");_.logRecords=[];for(var N=0;N<y.logRecords.length;++N){if(typeof y.logRecords[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");_.logRecords[N]=P.opentelemetry.proto.logs.v1.LogRecord.fromObject(y.logRecords[N])}}return y.schemaUrl!=null&&(_.schemaUrl=String(y.schemaUrl)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.logRecords=[]),_.defaults&&(N.scope=null,N.schemaUrl=""),y.scope!=null&&y.hasOwnProperty("scope")&&(N.scope=P.opentelemetry.proto.common.v1.InstrumentationScope.toObject(y.scope,_)),y.logRecords&&y.logRecords.length){N.logRecords=[];for(var I=0;I<y.logRecords.length;++I)N.logRecords[I]=P.opentelemetry.proto.logs.v1.LogRecord.toObject(y.logRecords[I],_)}return y.schemaUrl!=null&&y.hasOwnProperty("schemaUrl")&&(N.schemaUrl=y.schemaUrl),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.ScopeLogs"},C})(),U.SeverityNumber=(function(){var C={},L=Object.create(C);return L[C[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,L[C[1]="SEVERITY_NUMBER_TRACE"]=1,L[C[2]="SEVERITY_NUMBER_TRACE2"]=2,L[C[3]="SEVERITY_NUMBER_TRACE3"]=3,L[C[4]="SEVERITY_NUMBER_TRACE4"]=4,L[C[5]="SEVERITY_NUMBER_DEBUG"]=5,L[C[6]="SEVERITY_NUMBER_DEBUG2"]=6,L[C[7]="SEVERITY_NUMBER_DEBUG3"]=7,L[C[8]="SEVERITY_NUMBER_DEBUG4"]=8,L[C[9]="SEVERITY_NUMBER_INFO"]=9,L[C[10]="SEVERITY_NUMBER_INFO2"]=10,L[C[11]="SEVERITY_NUMBER_INFO3"]=11,L[C[12]="SEVERITY_NUMBER_INFO4"]=12,L[C[13]="SEVERITY_NUMBER_WARN"]=13,L[C[14]="SEVERITY_NUMBER_WARN2"]=14,L[C[15]="SEVERITY_NUMBER_WARN3"]=15,L[C[16]="SEVERITY_NUMBER_WARN4"]=16,L[C[17]="SEVERITY_NUMBER_ERROR"]=17,L[C[18]="SEVERITY_NUMBER_ERROR2"]=18,L[C[19]="SEVERITY_NUMBER_ERROR3"]=19,L[C[20]="SEVERITY_NUMBER_ERROR4"]=20,L[C[21]="SEVERITY_NUMBER_FATAL"]=21,L[C[22]="SEVERITY_NUMBER_FATAL2"]=22,L[C[23]="SEVERITY_NUMBER_FATAL3"]=23,L[C[24]="SEVERITY_NUMBER_FATAL4"]=24,L})(),U.LogRecordFlags=(function(){var C={},L=Object.create(C);return L[C[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,L[C[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,L})(),U.LogRecord=(function(){function C(L){if(this.attributes=[],L)for(var y=Object.keys(L),_=0;_<y.length;++_)L[y[_]]!=null&&(this[y[_]]=L[y[_]])}return C.prototype.timeUnixNano=null,C.prototype.observedTimeUnixNano=null,C.prototype.severityNumber=null,C.prototype.severityText=null,C.prototype.body=null,C.prototype.attributes=O.emptyArray,C.prototype.droppedAttributesCount=null,C.prototype.flags=null,C.prototype.traceId=null,C.prototype.spanId=null,C.create=function(y){return new C(y)},C.encode=function(y,_){if(_||(_=A.create()),y.timeUnixNano!=null&&Object.hasOwnProperty.call(y,"timeUnixNano")&&_.uint32(9).fixed64(y.timeUnixNano),y.severityNumber!=null&&Object.hasOwnProperty.call(y,"severityNumber")&&_.uint32(16).int32(y.severityNumber),y.severityText!=null&&Object.hasOwnProperty.call(y,"severityText")&&_.uint32(26).string(y.severityText),y.body!=null&&Object.hasOwnProperty.call(y,"body")&&P.opentelemetry.proto.common.v1.AnyValue.encode(y.body,_.uint32(42).fork()).ldelim(),y.attributes!=null&&y.attributes.length)for(var N=0;N<y.attributes.length;++N)P.opentelemetry.proto.common.v1.KeyValue.encode(y.attributes[N],_.uint32(50).fork()).ldelim();return y.droppedAttributesCount!=null&&Object.hasOwnProperty.call(y,"droppedAttributesCount")&&_.uint32(56).uint32(y.droppedAttributesCount),y.flags!=null&&Object.hasOwnProperty.call(y,"flags")&&_.uint32(69).fixed32(y.flags),y.traceId!=null&&Object.hasOwnProperty.call(y,"traceId")&&_.uint32(74).bytes(y.traceId),y.spanId!=null&&Object.hasOwnProperty.call(y,"spanId")&&_.uint32(82).bytes(y.spanId),y.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(y,"observedTimeUnixNano")&&_.uint32(89).fixed64(y.observedTimeUnixNano),_},C.encodeDelimited=function(y,_){return this.encode(y,_).ldelim()},C.decode=function(y,_){y instanceof T||(y=T.create(y));for(var N=_===void 0?y.len:y.pos+_,I=new P.opentelemetry.proto.logs.v1.LogRecord;y.pos<N;){var x=y.uint32();switch(x>>>3){case 1:{I.timeUnixNano=y.fixed64();break}case 11:{I.observedTimeUnixNano=y.fixed64();break}case 2:{I.severityNumber=y.int32();break}case 3:{I.severityText=y.string();break}case 5:{I.body=P.opentelemetry.proto.common.v1.AnyValue.decode(y,y.uint32());break}case 6:{I.attributes&&I.attributes.length||(I.attributes=[]),I.attributes.push(P.opentelemetry.proto.common.v1.KeyValue.decode(y,y.uint32()));break}case 7:{I.droppedAttributesCount=y.uint32();break}case 8:{I.flags=y.fixed32();break}case 9:{I.traceId=y.bytes();break}case 10:{I.spanId=y.bytes();break}default:y.skipType(x&7);break}}return I},C.decodeDelimited=function(y){return y instanceof T||(y=new T(y)),this.decode(y,y.uint32())},C.verify=function(y){if(typeof y!="object"||y===null)return"object expected";if(y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&!O.isInteger(y.timeUnixNano)&&!(y.timeUnixNano&&O.isInteger(y.timeUnixNano.low)&&O.isInteger(y.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(y.observedTimeUnixNano!=null&&y.hasOwnProperty("observedTimeUnixNano")&&!O.isInteger(y.observedTimeUnixNano)&&!(y.observedTimeUnixNano&&O.isInteger(y.observedTimeUnixNano.low)&&O.isInteger(y.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(y.severityNumber!=null&&y.hasOwnProperty("severityNumber"))switch(y.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(y.severityText!=null&&y.hasOwnProperty("severityText")&&!O.isString(y.severityText))return"severityText: string expected";if(y.body!=null&&y.hasOwnProperty("body")){var _=P.opentelemetry.proto.common.v1.AnyValue.verify(y.body);if(_)return"body."+_}if(y.attributes!=null&&y.hasOwnProperty("attributes")){if(!Array.isArray(y.attributes))return"attributes: array expected";for(var N=0;N<y.attributes.length;++N){var _=P.opentelemetry.proto.common.v1.KeyValue.verify(y.attributes[N]);if(_)return"attributes."+_}}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&!O.isInteger(y.droppedAttributesCount)?"droppedAttributesCount: integer expected":y.flags!=null&&y.hasOwnProperty("flags")&&!O.isInteger(y.flags)?"flags: integer expected":y.traceId!=null&&y.hasOwnProperty("traceId")&&!(y.traceId&&typeof y.traceId.length=="number"||O.isString(y.traceId))?"traceId: buffer expected":y.spanId!=null&&y.hasOwnProperty("spanId")&&!(y.spanId&&typeof y.spanId.length=="number"||O.isString(y.spanId))?"spanId: buffer expected":null},C.fromObject=function(y){if(y instanceof P.opentelemetry.proto.logs.v1.LogRecord)return y;var _=new P.opentelemetry.proto.logs.v1.LogRecord;switch(y.timeUnixNano!=null&&(O.Long?(_.timeUnixNano=O.Long.fromValue(y.timeUnixNano)).unsigned=!1:typeof y.timeUnixNano=="string"?_.timeUnixNano=parseInt(y.timeUnixNano,10):typeof y.timeUnixNano=="number"?_.timeUnixNano=y.timeUnixNano:typeof y.timeUnixNano=="object"&&(_.timeUnixNano=new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber())),y.observedTimeUnixNano!=null&&(O.Long?(_.observedTimeUnixNano=O.Long.fromValue(y.observedTimeUnixNano)).unsigned=!1:typeof y.observedTimeUnixNano=="string"?_.observedTimeUnixNano=parseInt(y.observedTimeUnixNano,10):typeof y.observedTimeUnixNano=="number"?_.observedTimeUnixNano=y.observedTimeUnixNano:typeof y.observedTimeUnixNano=="object"&&(_.observedTimeUnixNano=new O.LongBits(y.observedTimeUnixNano.low>>>0,y.observedTimeUnixNano.high>>>0).toNumber())),y.severityNumber){default:if(typeof y.severityNumber=="number"){_.severityNumber=y.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:_.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:_.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:_.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:_.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:_.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:_.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:_.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:_.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:_.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:_.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:_.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:_.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:_.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:_.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:_.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:_.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:_.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:_.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:_.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:_.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:_.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:_.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:_.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:_.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:_.severityNumber=24;break}if(y.severityText!=null&&(_.severityText=String(y.severityText)),y.body!=null){if(typeof y.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");_.body=P.opentelemetry.proto.common.v1.AnyValue.fromObject(y.body)}if(y.attributes){if(!Array.isArray(y.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");_.attributes=[];for(var N=0;N<y.attributes.length;++N){if(typeof y.attributes[N]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");_.attributes[N]=P.opentelemetry.proto.common.v1.KeyValue.fromObject(y.attributes[N])}}return y.droppedAttributesCount!=null&&(_.droppedAttributesCount=y.droppedAttributesCount>>>0),y.flags!=null&&(_.flags=y.flags>>>0),y.traceId!=null&&(typeof y.traceId=="string"?O.base64.decode(y.traceId,_.traceId=O.newBuffer(O.base64.length(y.traceId)),0):y.traceId.length>=0&&(_.traceId=y.traceId)),y.spanId!=null&&(typeof y.spanId=="string"?O.base64.decode(y.spanId,_.spanId=O.newBuffer(O.base64.length(y.spanId)),0):y.spanId.length>=0&&(_.spanId=y.spanId)),_},C.toObject=function(y,_){_||(_={});var N={};if((_.arrays||_.defaults)&&(N.attributes=[]),_.defaults){if(O.Long){var I=new O.Long(0,0,!1);N.timeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.timeUnixNano=_.longs===String?"0":0;if(N.severityNumber=_.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,N.severityText="",N.body=null,N.droppedAttributesCount=0,N.flags=0,_.bytes===String?N.traceId="":(N.traceId=[],_.bytes!==Array&&(N.traceId=O.newBuffer(N.traceId))),_.bytes===String?N.spanId="":(N.spanId=[],_.bytes!==Array&&(N.spanId=O.newBuffer(N.spanId))),O.Long){var I=new O.Long(0,0,!1);N.observedTimeUnixNano=_.longs===String?I.toString():_.longs===Number?I.toNumber():I}else N.observedTimeUnixNano=_.longs===String?"0":0}if(y.timeUnixNano!=null&&y.hasOwnProperty("timeUnixNano")&&(typeof y.timeUnixNano=="number"?N.timeUnixNano=_.longs===String?String(y.timeUnixNano):y.timeUnixNano:N.timeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.timeUnixNano):_.longs===Number?new O.LongBits(y.timeUnixNano.low>>>0,y.timeUnixNano.high>>>0).toNumber():y.timeUnixNano),y.severityNumber!=null&&y.hasOwnProperty("severityNumber")&&(N.severityNumber=_.enums===String?P.opentelemetry.proto.logs.v1.SeverityNumber[y.severityNumber]===void 0?y.severityNumber:P.opentelemetry.proto.logs.v1.SeverityNumber[y.severityNumber]:y.severityNumber),y.severityText!=null&&y.hasOwnProperty("severityText")&&(N.severityText=y.severityText),y.body!=null&&y.hasOwnProperty("body")&&(N.body=P.opentelemetry.proto.common.v1.AnyValue.toObject(y.body,_)),y.attributes&&y.attributes.length){N.attributes=[];for(var x=0;x<y.attributes.length;++x)N.attributes[x]=P.opentelemetry.proto.common.v1.KeyValue.toObject(y.attributes[x],_)}return y.droppedAttributesCount!=null&&y.hasOwnProperty("droppedAttributesCount")&&(N.droppedAttributesCount=y.droppedAttributesCount),y.flags!=null&&y.hasOwnProperty("flags")&&(N.flags=y.flags),y.traceId!=null&&y.hasOwnProperty("traceId")&&(N.traceId=_.bytes===String?O.base64.encode(y.traceId,0,y.traceId.length):_.bytes===Array?Array.prototype.slice.call(y.traceId):y.traceId),y.spanId!=null&&y.hasOwnProperty("spanId")&&(N.spanId=_.bytes===String?O.base64.encode(y.spanId,0,y.spanId.length):_.bytes===Array?Array.prototype.slice.call(y.spanId):y.spanId),y.observedTimeUnixNano!=null&&y.hasOwnProperty("observedTimeUnixNano")&&(typeof y.observedTimeUnixNano=="number"?N.observedTimeUnixNano=_.longs===String?String(y.observedTimeUnixNano):y.observedTimeUnixNano:N.observedTimeUnixNano=_.longs===String?O.Long.prototype.toString.call(y.observedTimeUnixNano):_.longs===Number?new O.LongBits(y.observedTimeUnixNano.low>>>0,y.observedTimeUnixNano.high>>>0).toNumber():y.observedTimeUnixNano),N},C.prototype.toJSON=function(){return this.constructor.toObject(this,S.util.toJSONOptions)},C.getTypeUrl=function(y){return y===void 0&&(y="type.googleapis.com"),y+"/opentelemetry.proto.logs.v1.LogRecord"},C})(),U})(),D})(),M})(),R})(),root=P,root}var rootExports=requireRoot();function hrTimeToNanos(S){var T=BigInt(1e9);return BigInt(S[0])*T+BigInt(S[1])}function toLongBits(S){var T=Number(BigInt.asUintN(32,S)),A=Number(BigInt.asUintN(32,S>>BigInt(32)));return{low:T,high:A}}function encodeAsLongBits(S){var T=hrTimeToNanos(S);return toLongBits(T)}function optionalHexToBinary(S){if(S!==void 0)return hexToBinary(S)}var DEFAULT_ENCODER={encodeHrTime:encodeAsLongBits,encodeSpanContext:hexToBinary,encodeOptionalSpanContext:optionalHexToBinary};function getOtlpEncoder(S){return DEFAULT_ENCODER}var __read$4=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function createResource(S){return{attributes:toAttributes(S.attributes),droppedAttributesCount:0}}function createInstrumentationScope(S){return{name:S.name,version:S.version}}function toAttributes(S){return Object.keys(S).map(function(T){return toKeyValue(T,S[T])})}function toKeyValue(S,T){return{key:S,value:toAnyValue(T)}}function toAnyValue(S){var T=typeof S;return T==="string"?{stringValue:S}:T==="number"?Number.isInteger(S)?{intValue:S}:{doubleValue:S}:T==="boolean"?{boolValue:S}:S instanceof Uint8Array?{bytesValue:S}:Array.isArray(S)?{arrayValue:{values:S.map(toAnyValue)}}:T==="object"&&S!=null?{kvlistValue:{values:Object.entries(S).map(function(A){var O=__read$4(A,2),P=O[0],R=O[1];return toKeyValue(P,R)})}}:{}}var __values=function(S){var T=typeof Symbol=="function"&&Symbol.iterator,A=T&&S[T],O=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&O>=S.length&&(S=void 0),{value:S&&S[O++],done:!S}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},__read$3=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function sdkSpanToOtlpSpan(S,T){var A,O=S.spanContext(),P=S.status;return{traceId:T.encodeSpanContext(O.traceId),spanId:T.encodeSpanContext(O.spanId),parentSpanId:T.encodeOptionalSpanContext(S.parentSpanId),traceState:(A=O.traceState)===null||A===void 0?void 0:A.serialize(),name:S.name,kind:S.kind==null?0:S.kind+1,startTimeUnixNano:T.encodeHrTime(S.startTime),endTimeUnixNano:T.encodeHrTime(S.endTime),attributes:toAttributes(S.attributes),droppedAttributesCount:S.droppedAttributesCount,events:S.events.map(function(R){return toOtlpSpanEvent(R,T)}),droppedEventsCount:S.droppedEventsCount,status:{code:P.code,message:P.message},links:S.links.map(function(R){return toOtlpLink(R,T)}),droppedLinksCount:S.droppedLinksCount}}function toOtlpLink(S,T){var A;return{attributes:S.attributes?toAttributes(S.attributes):[],spanId:T.encodeSpanContext(S.context.spanId),traceId:T.encodeSpanContext(S.context.traceId),traceState:(A=S.context.traceState)===null||A===void 0?void 0:A.serialize(),droppedAttributesCount:S.droppedAttributesCount||0}}function toOtlpSpanEvent(S,T){return{attributes:S.attributes?toAttributes(S.attributes):[],name:S.name,timeUnixNano:T.encodeHrTime(S.time),droppedAttributesCount:S.droppedAttributesCount||0}}function createExportTraceServiceRequest(S,T){var A=getOtlpEncoder();return{resourceSpans:spanRecordsToResourceSpans(S,A)}}function createResourceMap(S){var T,A,O=new Map;try{for(var P=__values(S),R=P.next();!R.done;R=P.next()){var M=R.value,D=O.get(M.resource);D||(D=new Map,O.set(M.resource,D));var U=M.instrumentationLibrary.name+"@"+(M.instrumentationLibrary.version||"")+":"+(M.instrumentationLibrary.schemaUrl||""),C=D.get(U);C||(C=[],D.set(U,C)),C.push(M)}}catch(L){T={error:L}}finally{try{R&&!R.done&&(A=P.return)&&A.call(P)}finally{if(T)throw T.error}}return O}function spanRecordsToResourceSpans(S,T){for(var A=createResourceMap(S),O=[],P=A.entries(),R=P.next();!R.done;){for(var M=__read$3(R.value,2),D=M[0],U=M[1],C=[],L=U.values(),y=L.next();!y.done;){var _=y.value;if(_.length>0){var N=_.map(function(x){return sdkSpanToOtlpSpan(x,T)});C.push({scope:createInstrumentationScope(_[0].instrumentationLibrary),spans:N,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}y=L.next()}var I={resource:createResource(D),scopeSpans:C,schemaUrl:void 0};O.push(I),R=P.next()}return O}var traceResponseType=rootExports.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,traceRequestType=rootExports.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,ProtobufTraceSerializer={serializeRequest:function(S){var T=createExportTraceServiceRequest(S);return traceRequestType.encode(T).finish()},deserializeResponse:function(S){return traceResponseType.decode(S)}},__awaiter=function(S,T,A,O){function P(R){return R instanceof A?R:new A(function(M){M(R)})}return new(A||(A=Promise))(function(R,M){function D(L){try{C(O.next(L))}catch(y){M(y)}}function U(L){try{C(O.throw(L))}catch(y){M(y)}}function C(L){L.done?R(L.value):P(L.value).then(D,U)}C((O=O.apply(S,T||[])).next())})},__generator=function(S,T){var A={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},O,P,R,M;return M={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function D(C){return function(L){return U([C,L])}}function U(C){if(O)throw new TypeError("Generator is already executing.");for(;A;)try{if(O=1,P&&(R=C[0]&2?P.return:C[0]?P.throw||((R=P.return)&&R.call(P),0):P.next)&&!(R=R.call(P,C[1])).done)return R;switch(P=0,R&&(C=[C[0]&2,R.value]),C[0]){case 0:case 1:R=C;break;case 4:return A.label++,{value:C[1],done:!1};case 5:A.label++,P=C[1],C=[0];continue;case 7:C=A.ops.pop(),A.trys.pop();continue;default:if(R=A.trys,!(R=R.length>0&&R[R.length-1])&&(C[0]===6||C[0]===2)){A=0;continue}if(C[0]===3&&(!R||C[1]>R[0]&&C[1]<R[3])){A.label=C[1];break}if(C[0]===6&&A.label<R[1]){A.label=R[1],R=C;break}if(R&&A.label<R[2]){A.label=R[2],A.ops.push(C);break}R[2]&&A.ops.pop(),A.trys.pop();continue}C=T.call(S,A)}catch(L){C=[6,L],P=0}finally{O=R=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},MAX_ATTEMPTS=5,INITIAL_BACKOFF=1e3,MAX_BACKOFF=5e3,BACKOFF_MULTIPLIER=1.5,JITTER=.2;function getJitter(){return Math.random()*(2*JITTER)-JITTER}var RetryingTransport=(function(){function S(T){this._transport=T}return S.prototype.retry=function(T,A,O){var P=this;return new Promise(function(R,M){setTimeout(function(){P._transport.send(T,A).then(R,M)},O)})},S.prototype.send=function(T,A){var O;return __awaiter(this,void 0,void 0,function(){var P,R,M,D,U,C,L;return __generator(this,function(y){switch(y.label){case 0:return P=Date.now()+A,[4,this._transport.send(T,A)];case 1:R=y.sent(),M=MAX_ATTEMPTS,D=INITIAL_BACKOFF,y.label=2;case 2:return R.status==="retryable"&&M>0?(M--,U=Math.max(Math.min(D,MAX_BACKOFF)+getJitter(),0),D=D*BACKOFF_MULTIPLIER,C=(O=R.retryInMillis)!==null&&O!==void 0?O:U,L=P-Date.now(),C>L?[2,R]:[4,this.retry(T,L,C)]):[3,4];case 3:return R=y.sent(),[3,2];case 4:return[2,R]}})})},S.prototype.shutdown=function(){return this._transport.shutdown()},S})();function createRetryingTransport(S){return new RetryingTransport(S.transport)}function isExportRetryable(S){var T=[429,502,503,504];return T.includes(S)}function parseRetryAfterToMills(S){if(S!=null){var T=Number.parseInt(S,10);if(Number.isInteger(T))return T>0?T*1e3:-1;var A=new Date(S).getTime()-Date.now();return A>=0?A:0}}var __read$2=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},XhrTransport=(function(){function S(T){this._parameters=T}return S.prototype.send=function(T,A){var O=this;return new Promise(function(P){var R=new XMLHttpRequest;R.timeout=A,R.open("POST",O._parameters.url);var M=O._parameters.headers();Object.entries(M).forEach(function(D){var U=__read$2(D,2),C=U[0],L=U[1];R.setRequestHeader(C,L)}),R.ontimeout=function(D){P({status:"failure",error:new Error("XHR request timed out")})},R.onreadystatechange=function(){R.status>=200&&R.status<=299?(diag.debug("XHR success"),P({status:"success"})):R.status&&isExportRetryable(R.status)?P({status:"retryable",retryInMillis:parseRetryAfterToMills(R.getResponseHeader("Retry-After"))}):R.status!==0&&P({status:"failure",error:new Error("XHR request failed with non-retryable status")})},R.onabort=function(){P({status:"failure",error:new Error("XHR request aborted")})},R.onerror=function(){P({status:"failure",error:new Error("XHR request errored")})},R.send(T)})},S.prototype.shutdown=function(){},S})();function createXhrTransport(S){return new XhrTransport(S)}var SendBeaconTransport=(function(){function S(T){this._params=T}return S.prototype.send=function(T){var A=this;return new Promise(function(O){navigator.sendBeacon(A._params.url,new Blob([T],{type:A._params.blobType}))?(diag.debug("SendBeacon success"),O({status:"success"})):O({status:"failure",error:new Error("SendBeacon failed")})})},S.prototype.shutdown=function(){},S})();function createSendBeaconTransport(S){return new SendBeaconTransport(S)}function createOtlpXhrExportDelegate(S,T){return createOtlpNetworkExportDelegate(S,T,createRetryingTransport({transport:createXhrTransport(S)}))}function createOtlpSendBeaconExportDelegate(S,T){return createOtlpNetworkExportDelegate(S,T,createRetryingTransport({transport:createSendBeaconTransport({url:S.url,blobType:S.headers()["Content-Type"]})}))}var __read$1=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R};function validateAndNormalizeHeaders(S){return function(){var T,A={};return Object.entries((T=S?.())!==null&&T!==void 0?T:{}).forEach(function(O){var P=__read$1(O,2),R=P[0],M=P[1];typeof M<"u"?A[R]=String(M):diag.warn('Header "'+R+'" has invalid value ('+M+") and will be ignored")}),A}}var __assign=function(){return __assign=Object.assign||function(S){for(var T,A=1,O=arguments.length;A<O;A++){T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(S[P]=T[P])}return S},__assign.apply(this,arguments)};function mergeHeaders(S,T,A){var O=__assign({},A()),P={};return function(){return T!=null&&Object.assign(P,T()),S!=null&&Object.assign(P,S()),Object.assign(P,O)}}function validateUserProvidedUrl(S){if(S!=null)try{return new URL(S),S}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+S+"'")}}function mergeOtlpHttpConfigurationWithDefaults(S,T,A){var O,P,R,M;return __assign(__assign({},mergeOtlpSharedConfigurationWithDefaults(S,T,A)),{headers:mergeHeaders(validateAndNormalizeHeaders(S.headers),T.headers,A.headers),url:(P=(O=validateUserProvidedUrl(S.url))!==null&&O!==void 0?O:T.url)!==null&&P!==void 0?P:A.url,agentOptions:(M=(R=S.agentOptions)!==null&&R!==void 0?R:T.agentOptions)!==null&&M!==void 0?M:A.agentOptions})}function getHttpConfigurationDefaults(S,T){return __assign(__assign({},getSharedConfigurationDefaults()),{headers:function(){return S},url:"http://localhost:4318/"+T,agentOptions:{keepAlive:!0}})}function convertLegacyBrowserHttpOptions(S,T,A){return mergeOtlpHttpConfigurationWithDefaults({url:S.url,timeoutMillis:S.timeoutMillis,headers:wrapStaticHeadersInFunction(S.headers),concurrencyLimit:S.concurrencyLimit},{},getHttpConfigurationDefaults(A,T))}function createLegacyOtlpBrowserExportDelegate(S,T,A,O){var P=!!S.headers||typeof navigator.sendBeacon!="function",R=convertLegacyBrowserHttpOptions(S,A,O);return P?createOtlpXhrExportDelegate(R,T):createOtlpSendBeaconExportDelegate(R,T)}var __extends=(function(){var S=function(T,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(O[R]=P[R])},S(T,A)};return function(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");S(T,A);function O(){this.constructor=T}T.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})(),DEFAULT_COLLECTOR_RESOURCE_PATH="v1/traces",OTLPTraceExporter=(function(S){__extends(T,S);function T(A){return A===void 0&&(A={}),S.call(this,createLegacyOtlpBrowserExportDelegate(A,ProtobufTraceSerializer,DEFAULT_COLLECTOR_RESOURCE_PATH,{"Content-Type":"application/x-protobuf"}))||this}return T})(OTLPExporterBase);const index$1=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter},Symbol.toStringTag,{value:"Module"}));var B3_DEBUG_FLAG_KEY=createContextKey("OpenTelemetry Context Key B3 Debug Flag"),B3_CONTEXT_HEADER="b3",X_B3_TRACE_ID="x-b3-traceid",X_B3_SPAN_ID="x-b3-spanid",X_B3_SAMPLED="x-b3-sampled",X_B3_PARENT_SPAN_ID="x-b3-parentspanid",X_B3_FLAGS="x-b3-flags",VALID_SAMPLED_VALUES=new Set([!0,"true","True","1",1]),VALID_UNSAMPLED_VALUES=new Set([!1,"false","False","0",0]);function isValidSampledValue(S){return S===TraceFlags.SAMPLED||S===TraceFlags.NONE}function parseHeader(S){return Array.isArray(S)?S[0]:S}function getHeaderValue(S,T,A){var O=T.get(S,A);return parseHeader(O)}function getTraceId(S,T){var A=getHeaderValue(S,T,X_B3_TRACE_ID);return typeof A=="string"?A.padStart(32,"0"):""}function getSpanId(S,T){var A=getHeaderValue(S,T,X_B3_SPAN_ID);return typeof A=="string"?A:""}function getDebug(S,T){var A=getHeaderValue(S,T,X_B3_FLAGS);return A==="1"?"1":void 0}function getTraceFlags(S,T){var A=getHeaderValue(S,T,X_B3_SAMPLED),O=getDebug(S,T);if(O==="1"||VALID_SAMPLED_VALUES.has(A))return TraceFlags.SAMPLED;if(A===void 0||VALID_UNSAMPLED_VALUES.has(A))return TraceFlags.NONE}var B3MultiPropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=trace.getSpanContext(T);if(!(!P||!isSpanContextValid(P)||isTracingSuppressed(T))){var R=T.getValue(B3_DEBUG_FLAG_KEY);O.set(A,X_B3_TRACE_ID,P.traceId),O.set(A,X_B3_SPAN_ID,P.spanId),R==="1"?O.set(A,X_B3_FLAGS,R):P.traceFlags!==void 0&&O.set(A,X_B3_SAMPLED,(TraceFlags.SAMPLED&P.traceFlags)===TraceFlags.SAMPLED?"1":"0")}},S.prototype.extract=function(T,A,O){var P=getTraceId(A,O),R=getSpanId(A,O),M=getTraceFlags(A,O),D=getDebug(A,O);return isValidTraceId(P)&&isValidSpanId(R)&&isValidSampledValue(M)?(T=T.setValue(B3_DEBUG_FLAG_KEY,D),trace.setSpanContext(T,{traceId:P,spanId:R,isRemote:!0,traceFlags:M})):T},S.prototype.fields=function(){return[X_B3_TRACE_ID,X_B3_SPAN_ID,X_B3_FLAGS,X_B3_SAMPLED,X_B3_PARENT_SPAN_ID]},S})(),__read=function(S,T){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var O=A.call(S),P,R=[],M;try{for(;(T===void 0||T-- >0)&&!(P=O.next()).done;)R.push(P.value)}catch(D){M={error:D}}finally{try{P&&!P.done&&(A=O.return)&&A.call(O)}finally{if(M)throw M.error}}return R},B3_CONTEXT_REGEX=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,PADDING="0".repeat(16),SAMPLED_VALUES=new Set(["d","1"]),DEBUG_STATE="d";function convertToTraceId128(S){return S.length===32?S:""+PADDING+S}function convertToTraceFlags(S){return S&&SAMPLED_VALUES.has(S)?TraceFlags.SAMPLED:TraceFlags.NONE}var B3SinglePropagator=(function(){function S(){}return S.prototype.inject=function(T,A,O){var P=trace.getSpanContext(T);if(!(!P||!isSpanContextValid(P)||isTracingSuppressed(T))){var R=T.getValue(B3_DEBUG_FLAG_KEY)||P.traceFlags&1,M=P.traceId+"-"+P.spanId+"-"+R;O.set(A,B3_CONTEXT_HEADER,M)}},S.prototype.extract=function(T,A,O){var P=O.get(A,B3_CONTEXT_HEADER),R=Array.isArray(P)?P[0]:P;if(typeof R!="string")return T;var M=R.match(B3_CONTEXT_REGEX);if(!M)return T;var D=__read(M,4),U=D[1],C=D[2],L=D[3],y=convertToTraceId128(U);if(!isValidTraceId(y)||!isValidSpanId(C))return T;var _=convertToTraceFlags(L);return L===DEBUG_STATE&&(T=T.setValue(B3_DEBUG_FLAG_KEY,L)),trace.setSpanContext(T,{traceId:y,spanId:C,isRemote:!0,traceFlags:_})},S.prototype.fields=function(){return[B3_CONTEXT_HEADER]},S})(),B3InjectEncoding;(function(S){S[S.SINGLE_HEADER=0]="SINGLE_HEADER",S[S.MULTI_HEADER=1]="MULTI_HEADER"})(B3InjectEncoding||(B3InjectEncoding={}));var B3Propagator=(function(){function S(T){T===void 0&&(T={}),this._b3MultiPropagator=new B3MultiPropagator,this._b3SinglePropagator=new B3SinglePropagator,T.injectEncoding===B3InjectEncoding.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return S.prototype.inject=function(T,A,O){isTracingSuppressed(T)||this._inject(T,A,O)},S.prototype.extract=function(T,A,O){var P=O.get(A,B3_CONTEXT_HEADER),R=Array.isArray(P)?P[0]:P;return R?this._b3SinglePropagator.extract(T,A,O):this._b3MultiPropagator.extract(T,A,O)},S.prototype.fields=function(){return this._fields},S})();const index=Object.freeze(Object.defineProperty({__proto__:null,get B3InjectEncoding(){return B3InjectEncoding},B3Propagator,B3_CONTEXT_HEADER,X_B3_FLAGS,X_B3_PARENT_SPAN_ID,X_B3_SAMPLED,X_B3_SPAN_ID,X_B3_TRACE_ID},Symbol.toStringTag,{value:"Module"}));exports.ElementTypeEnum=ElementTypeEnum,exports.FieldName=FieldName,exports.OpenPayForm=OpenPayForm,exports.SubmitMethods=SubmitMethods,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));
|