@icanbwell/composite 1.992.3 → 1.993.1
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/870.index.js +2 -2
- package/870.index.js.map +1 -1
- package/index.js +1 -1
- package/native.js +1 -1
- package/package.json +3 -3
package/870.index.js
CHANGED
|
@@ -13054,7 +13054,7 @@ found at http://polymer.github.io/PATENTS.txt
|
|
|
13054
13054
|
>
|
|
13055
13055
|
<slot name="error" slot="error"></slot>
|
|
13056
13056
|
</feature-app-container>
|
|
13057
|
-
`}catch(a){return n.error(a),yf` <slot name="error"></slot> `}}}vh([No({type:String})],r.prototype,"featureAppId",void 0),vh([No({type:String})],r.prototype,"featureAppName",void 0),vh([No({type:String})],r.prototype,"baseUrl",void 0),vh([No({type:String})],r.prototype,"src",void 0),vh([No({type:Object})],r.prototype,"config",void 0),customElements.define(qB,r)}var zne=_(3081),Wne=_(9742),Af,Cf;class Kne{constructor(){Af.set(this,void 0),Cf.set(this,void 0)}onReboot(t){return(0,R.GG)(this,Af,t,"f"),()=>{(0,R.GG)(this,Af,void 0,"f")}}reboot(t,n){const{featureServices:r}=vB((0,Wne.Ak)(),{featureServiceDefinitions:t,featureServiceDependencies:n});return(0,R.GG)(this,Cf,r,"f"),(0,R.gn)(this,Af,"f")&&(0,R.gn)(this,Af,"f").call(this,(0,R.gn)(this,Cf,"f")),(0,R.gn)(this,Cf,"f")}getRebootedServices(){return(0,R.gn)(this,Cf,"f")}}Af=new WeakMap,Cf=new WeakMap;var sE,uE,cE,Eh,BP;class Xne{constructor({initialState:t={},logger:n,globalEventEmitter:r,bwellSdk:i}){sE.add(this),uE.set(this,void 0),cE.set(this,{[vn.apiClient.id]:vn.apiClient.version.one,[vn.bwellSdk.id]:vn.bwellSdk.version.one,[vn.theme.id]:vn.theme.version.one,[vn.analytics.id]:vn.theme.version.one,[vn.auth.id]:vn.auth.version.one,[vn.logging.id]:vn.logging.version.one,[vn.state.id]:vn.state.version.one,[vn.navigation.id]:vn.navigation.version.one,[vn.translation.id]:vn.translation.version.one,[vn.featureFlags.id]:vn.featureFlags.version.one,[vn.identityUtils.id]:vn.apiClient.version.one,[vn.nativeBridge.id]:vn.nativeBridge.version.one,[vn.globalEventEmitter.id]:vn.globalEventEmitter.version.one,[vn.rebootController.id]:vn.rebootController.version.one}),Eh.set(this,void 0),(0,R.GG)(this,uE,r,"f"),(0,R.GG)(this,Eh,new Kne,"f");const{featureAppManager:a,featureServices:c}=vB("orchestrator:integrator",{featureServiceDependencies:(0,R.gn)(this,cE,"f"),featureServiceDefinitions:(0,R.gn)(this,sE,"m",BP).call(this,{initialState:t,bwellSdk:i}),moduleLoader:zne.h,logger:n});this.services=c,Yne(a)}reboot({initialState:t,bwellSdk:n}){this.services=(0,R.gn)(this,Eh,"f").reboot((0,R.gn)(this,sE,"m",BP).call(this,{initialState:t,bwellSdk:n}),(0,R.gn)(this,cE,"f"))}}uE=new WeakMap,cE=new WeakMap,Eh=new WeakMap,sE=new WeakSet,BP=function({initialState:t,bwellSdk:n}){return[vn.apiClient.definition,vn.bwellSdk.define(n.sdk),vn.theme.definition,vn.analytics.definition,vn.auth.define(n.sdk,n.tokenStorage),vn.logging.definition,vn.state.define(t),vn.navigation.definition,vn.translation.definition,vn.featureFlags.definition,vn.identityUtils.definition,vn.nativeBridge.definition,vn.globalEventEmitter.define((0,R.gn)(this,uE,"f")),vn.rebootController.define((0,R.gn)(this,Eh,"f"))]};function Jne(e){try{return JSON.parse(atob(e))}catch{}}function Zne(e){var t,n,r;const i=Jne(e);if(!i?.env)return ne.C;const a={rest:{endpoints:{}}};for(const c in(t=ne.C===null||ne.C===void 0?void 0:ne.C.rest)===null||t===void 0?void 0:t.endpoints){const f=(n=ne.C===null||ne.C===void 0?void 0:ne.C.rest)===null||n===void 0?void 0:n.endpoints[c];typeof f=="string"&&((r=a?.rest)===null||r===void 0?void 0:r.endpoints)&&(a.rest.endpoints[c]=f.replace(".prod.",`.${i.env}.`))}return a}class sa extends Error{constructor(t,n){super(t),this.name="BWellError",n?.cause&&(this.cause=n.cause)}static isBwellError(t){return t instanceof sa}}class Qxe extends sa{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class qxe extends sa{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class Hxe extends sa{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class ere extends sa{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class kP extends sa{constructor(t,n){super(t),this.credentials=n,this.name="InvalidCredentialsTypeError"}}class bf extends sa{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class tre extends sa{constructor(t,n){super(t),this.status=n,this.name="NetworkError"}}class nre extends sa{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class jP extends sa{constructor(t,n){super(t),this.data=n,this.name="UnknownError"}}class rre extends sa{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class Zt{constructor(t,n){this.data=t,n!==null&&(this.error=n)}hasError(){return this.error!==void 0}static error(t){return new Zt(void 0,t)}}var HB=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},lE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},yh,Th;class en{static success(t){return new ire(t)}static failure(t){return new dE(t)}}class ire extends en{constructor(t){super(),yh.set(this,void 0),HB(this,yh,t,"f")}data(){return lE(this,yh,"f")}error(){throw lE(this,yh,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new Zt(this.data())}}yh=new WeakMap;class dE extends en{constructor(t){super(),Th.set(this,void 0),HB(this,Th,t,"f")}data(){throw lE(this,Th,"f")}error(){return lE(this,Th,"f")}success(){return!1}failure(){return!0}intoFailure(){return en.failure(this.error())}toQueryResult(){return new Zt(void 0,this.error())}}Th=new WeakMap;var QP=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ah;class YB{constructor(){Ah.set(this,[])}add(t){QP(this,Ah,"f").push(t)}errors(){return QP(this,Ah,"f")}hasErrors(){return QP(this,Ah,"f").length>0}}Ah=new WeakMap;var zB=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},qP=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ch,fE;class are{constructor(t){Ch.set(this,void 0),fE.set(this,void 0),zB(this,fE,t,"f"),zB(this,Ch,this.transformInput(t),"f")}validate(){return en.success(null)}data(){return qP(this,Ch,"f")}toJSON(){return qP(this,Ch,"f")}transformInput(t){return t}input(){return qP(this,fE,"f")}}Ch=new WeakMap,fE=new WeakMap;class qr extends are{validate(){const t=new YB;return this.validator.validate(this.input(),t),t.hasErrors()?en.failure(new rre(t.errors())):en.success(null)}}var WB=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},_E,KB,XB;const JB=100,HP=20;class Qi{constructor(){_E.add(this)}validate(t,n){WB(this,_E,"m",KB).call(this,t.page,n),WB(this,_E,"m",XB).call(this,t.pageSize,n)}}_E=new WeakSet,KB=function(t,n){t<0&&n.add("page must be a positive number")},XB=function(t,n){t!==void 0&&(t<=0&&n.add("Page size must be greater than 0"),t>JB&&n.add(`Page size must not exceed ${JB}`))};class qi extends qr{constructor(){super(...arguments),this.validator=new Qi}transformInput(t){return Object.assign({pageSize:HP},t)}}function YP(){return new Date().toISOString()}function ore(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function sre(){return typeof window<"u"}function ZB(){if(sre())return"browser";if(ore())return"node";throw new Error("Invalid runtime")}function ure(e){switch(ZB()){case"browser":return e.browser();case"node":return e.node()}}function ek(e){switch(ZB()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function jn(e){return e!=null}function Pa(e){return e==null}function Yxe(e){return jn(e)&&e!==""}function Ma(e){return e==null||e===""}function Wa(e){return e===void 0}function yr(e){return e!==void 0}function cre(e){return JSON.parse(ek(e)).env}const lre=3;function tk(e){const t=e.split("."),n=t[1];if(n===void 0||t.length!==lre)throw new bf("Token is missing data and may be corrupted");try{return JSON.parse(ek(n))}catch(r){const i=r;throw new bf(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function dre(e){const n=tk(e).exp;if(typeof n!="number")throw new bf("The access token is missing an expiration date and is most likely corrupted.");return n*1e3}const fre="custom:clientFhirPersonId",_re="custom:bwellFhirPatientId";function pre(e){const t=tk(e),n=t[_re],r=t[fre];return jn(n)&&jn(r)?{bwellFhirPersonId:n,clientFhirPersonId:r}:null}function ga(e){return e.trim()===""}const hre="1.68.0-rc.1772835288";function Sre(){return hre}var zP;(function(e){e.Arrived="ARRIVED",e.Booked="BOOKED",e.Cancelled="CANCELLED",e.CheckedIn="CHECKED_IN",e.EnteredInError="ENTERED_IN_ERROR",e.Fulfilled="FULFILLED",e.Noshow="NOSHOW",e.Pending="PENDING",e.Proposed="PROPOSED",e.Waitlist="WAITLIST"})(zP||(zP={}));var nk;(function(e){e.Guest="GUEST"})(nk||(nk={}));var pE;(function(e){e.CommunicationPreferencesPhi="COMMUNICATION_PREFERENCES_PHI",e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.HealthMatch="HEALTH_MATCH",e.IasImportRecords="IAS_IMPORT_RECORDS",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(pE||(pE={}));var rk;(function(e){e.Complete="COMPLETE",e.Error="ERROR",e.Partial="PARTIAL",e.Queued="QUEUED"})(rk||(rk={}));var ik;(function(e){e.Institutional="INSTITUTIONAL",e.Oral="ORAL",e.Pharmacy="PHARMACY",e.Professional="PROFESSIONAL",e.Vision="VISION"})(ik||(ik={}));var ak;(function(e){e.Bwell="bwell"})(ak||(ak={}));var ok;(function(e){e.Bwell="BWELL"})(ok||(ok={}));var sk;(function(e){e.Basic="BASIC",e.Identity="IDENTITY",e.Oauth="OAUTH"})(sk||(sk={}));var WP;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(WP||(WP={}));var KP;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(KP||(KP={}));var uk;(function(e){e.Usd="USD"})(uk||(uk={}));var ck;(function(e){e.Accepted="ACCEPTED",e.Rejected="REJECTED"})(ck||(ck={}));var lk;(function(e){e.Active="ACTIVE",e.Pending="PENDING"})(lk||(lk={}));var dk;(function(e){e.AccessEnded="ACCESS_ENDED",e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(dk||(dk={}));var fk;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Pharmacy="PHARMACY",e.Practitioner="PRACTITIONER"})(fk||(fk={}));var hE;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(hE||(hE={}));var _k;(function(e){e.Connecthub="CONNECTHUB",e.Nppes="NPPES"})(_k||(_k={}));var pk;(function(e){e.Fri="FRI",e.Mon="MON",e.Sat="SAT",e.Sun="SUN",e.Thu="THU",e.Tue="TUE",e.Wed="WED"})(pk||(pk={}));var hk;(function(e){e.Deleted="DELETED"})(hk||(hk={}));var Sk;(function(e){e.Kilometers="KILOMETERS",e.Meters="METERS",e.Miles="MILES"})(Sk||(Sk={}));var gk;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(gk||(gk={}));var mk;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(mk||(mk={}));var vk;(function(e){e.Active="ACTIVE",e.EnteredInError="ENTERED_IN_ERROR",e.Error="ERROR",e.Off="OFF",e.Suspended="SUSPENDED",e.Test="TEST"})(vk||(vk={}));var XP;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(XP||(XP={}));var JP;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(JP||(JP={}));var ZP;(function(e){e.Person="Person"})(ZP||(ZP={}));var eM;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(eM||(eM={}));var Ek;(function(e){e.Characteristic="CHARACTERISTIC",e.Communication="COMMUNICATION",e.Gender="GENDER",e.Specialty="SPECIALTY"})(Ek||(Ek={}));var yk;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(yk||(yk={}));var Tk;(function(e){e.Female="FEMALE",e.Male="MALE",e.Other="OTHER",e.Unknown="UNKNOWN"})(Tk||(Tk={}));var Ak;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(Ak||(Ak={}));var Ck;(function(e){e.Official="_official",e.Old="_old",e.Secondary="_secondary",e.Temp="_temp",e.Usual="_usual"})(Ck||(Ck={}));var bk;(function(e){e.Cognito="COGNITO",e.Descope="DESCOPE"})(bk||(bk={}));var Ok;(function(e){e.Clicked="clicked"})(Ok||(Ok={}));var Rk;(function(e){e.Clicked="CLICKED"})(Rk||(Rk={}));var tM;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(tM||(tM={}));var bh;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(bh||(bh={}));var Pk;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.DeletionInProgress="DELETION_IN_PROGRESS",e.ImmediateExecution="IMMEDIATE_EXECUTION",e.RequestDelete="REQUEST_DELETE"})(Pk||(Pk={}));var nM;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(nM||(nM={}));var Mk;(function(e){e.Bus="BUS",e.C19Vaccine="C19VACCINE",e.Cg="CG",e.Crs="CRS",e.Dept="DEPT",e.Device="DEVICE",e.Edu="EDU",e.Govt="GOVT",e.Ins="INS",e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Other="OTHER",e.Pay="PAY",e.Pharmacy="PHARMACY",e.Prov="PROV",e.Provider="PROVIDER",e.Reli="RELI",e.Team="TEAM"})(Mk||(Mk={}));var Ik;(function(e){e.Add="add",e.Copy="copy",e.Move="move",e.Remove="remove",e.Replace="replace",e.Test="test"})(Ik||(Ik={}));var Nk;(function(e){e.ExistingPatients="EXISTING_PATIENTS",e.NewPatients="NEW_PATIENTS"})(Nk||(Nk={}));var Lk;(function(e){e.Patient="Patient",e.Person="Person"})(Lk||(Lk={}));var Dk;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(Dk||(Dk={}));var wk;(function(e){e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(wk||(wk={}));var Uk;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(Uk||(Uk={}));var $k;(function(e){e.Closed="CLOSED",e.Hold="HOLD",e.New="NEW",e.Open="OPEN",e.Pending="PENDING",e.Solved="SOLVED"})($k||($k={}));var Gk;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.MedicationDispense="MEDICATION_DISPENSE",e.MedicationRequest="MEDICATION_REQUEST",e.MedicationStatement="MEDICATION_STATEMENT",e.Observation="OBSERVATION",e.Procedure="PROCEDURE"})(Gk||(Gk={}));var Fk;(function(e){e.DataConnections="DATA_CONNECTIONS",e.FindCare="FIND_CARE"})(Fk||(Fk={}));var xk;(function(e){e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Pharmacy="PHARMACY",e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(xk||(xk={}));var Vk;(function(e){e.UpdatedAt="UPDATED_AT"})(Vk||(Vk={}));var rM;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(rM||(rM={}));var Bk;(function(e){e.Content="CONTENT",e.DataSourceRank="DATA_SOURCE_RANK",e.Distance="DISTANCE",e.Name="NAME",e.NextAvailable="NEXT_AVAILABLE",e.OnlineBookingAvailable="ONLINE_BOOKING_AVAILABLE",e.Relevance="RELEVANCE"})(Bk||(Bk={}));var SE;(function(e){e.Asc="asc",e.Desc="desc"})(SE||(SE={}));var kk;(function(e){e.Asc="ASC",e.Desc="DESC"})(kk||(kk={}));var jk;(function(e){e.CareSearch="CARE_SEARCH",e.Proa="PROA",e.ProviderDetails="PROVIDER_DETAILS",e.Sayt="SAYT",e.Unspecified="UNSPECIFIED"})(jk||(jk={}));var Qk;(function(e){e.DataDeleted="DATA_DELETED",e.Deleting="DELETING",e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(Qk||(Qk={}));var iM;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(iM||(iM={}));var gE;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(gE||(gE={}));var qk;(function(e){e.Active="ACTIVE",e.Completed="COMPLETED"})(qk||(qk={}));var Hk;(function(e){e.PersonMatchError="PERSON_MATCH_ERROR",e.ServerError="SERVER_ERROR"})(Hk||(Hk={}));const gre=new Set(Object.values(JP));function Yk(e){return gre.has(e)}const mre=new Set(Object.values(KP));function vre(e){return mre.has(e)}const Ere=new Set(Object.values(pE));function zk(e){return Ere.has(e)}const yre=new Set(Object.values(WP));function Tre(e){return yre.has(e)}class Are{validate(t,n){!Wa(t.gender)&&!Yk(t.gender)&&n.add(`Invalid gender value: "${t.gender}"`)}}class zxe extends qr{constructor(){super(...arguments),this.validator=new Are}}class Cre{validate(t,n){zk(t.category)||n.add(`Invalid consent category code: "${t.category}"`)}}class Wxe extends qr{constructor(){super(...arguments),this.validator=new Cre}}class bre{validate(t,n){vre(t.status)||n.add(`Invalid consent status: "${t.status}"`),Tre(t.provision)||n.add(`Invalid consent provision type: "${t.provision}"`),zk(t.category)||n.add(`Invalid consent category code: "${t.category}"`),!Wa(t.organizationId)&&ga(t.organizationId)&&n.add("organizationId cannot be empty"),t.category===pE.ProaAttestation&&Wa(t.organizationId)&&n.add("organizationId must be provided when category is PROA_ATTESTATION")}}class Kxe extends qr{constructor(){super(...arguments),this.validator=new bre}}class Ore{validate(t,n){Ma(t.exportId)&&n.add("exportId is required"),Ma(t.password)&&n.add("password is required")}}class Xxe extends qr{constructor(){super(...arguments),this.validator=new Ore}}class Jxe extends null{}var co=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ia,Xu,Wk,Kk,Xk,Jk,Zk,ej;class yl{constructor(){Ia.add(this)}validate(t,n){if(!t.values||t.values.length===0){n.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const r of t.values)co(this,Ia,"m",Wk).call(this,r,n)}}Ia=new WeakSet,Xu=function(t,n){t&&t!==null&&isNaN(t.getTime())&&n.add("The date is not valid")},Wk=function(t,n){const{equals:r,notEquals:i,greaterThan:a,greaterThanOrEqualTo:c,lessThan:f,lessThanOrEqualTo:y,approximately:h}=t,F=[r,i,a,c,f,y,h].filter(W=>W!=null).length;if(F===0){n.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}co(this,Ia,"m",Kk).call(this,t,F,n),co(this,Ia,"m",Zk).call(this,t,n),co(this,Ia,"m",ej).call(this,t,n)},Kk=function(t,n,r){const{equals:i,notEquals:a,approximately:c}=t;if(i&&n>1){r.add("The equals value cannot be set with any other values");return}if(a&&n>1){r.add("The notEquals value cannot be set with any other values");return}if(c&&n>1){r.add("The approximately value cannot be set with any other values");return}co(this,Ia,"m",Xk).call(this,t,r),co(this,Ia,"m",Jk).call(this,t,r)},Xk=function(t,n){t.greaterThan&&t.greaterThanOrEqualTo&&n.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},Jk=function(t,n){t.lessThan&&t.lessThanOrEqualTo&&n.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},Zk=function(t,n){const{equals:r,notEquals:i,greaterThan:a,greaterThanOrEqualTo:c,lessThan:f,lessThanOrEqualTo:y,approximately:h}=t;r&&co(this,Ia,"m",Xu).call(this,r,n),i&&co(this,Ia,"m",Xu).call(this,i,n),a&&co(this,Ia,"m",Xu).call(this,a,n),c&&co(this,Ia,"m",Xu).call(this,c,n),f&&co(this,Ia,"m",Xu).call(this,f,n),y&&co(this,Ia,"m",Xu).call(this,y,n),h&&co(this,Ia,"m",Xu).call(this,h,n)},ej=function(t,n){const{greaterThan:r,greaterThanOrEqualTo:i,lessThan:a,lessThanOrEqualTo:c}=t;r&&c&&r>=c&&n.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&a&&i>=a&&n.add("The greaterThanOrEqualTo value must be less than the lessThan value"),r&&a&&r>=a&&n.add("The greaterThan value must be less than the lessThan value"),i&&c&&i>=c&&n.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var aM=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Oh;class Tl{constructor(){Oh.set(this,new Rre)}validate(t,n){var r;if(t.value===void 0&&t.values===void 0&&t.notEquals===void 0){n.add("Either SearchToken value or values or notEquals must be provided");return}if(t.value!==void 0&&aM(this,Oh,"f").validate(t.value,n),t.values!==void 0&&t.values.length===0){n.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(r=t.values)!==null&&r!==void 0?r:[])aM(this,Oh,"f").validate(i,n);if(t.notEquals!==void 0){if(t.notEquals.values!==void 0){if(t.notEquals.values.length===0){n.add("If notEquals values are provided, at least one Coding must be set");return}for(const i of t.notEquals.values)aM(this,Oh,"f").validate(i,n)}t.notEquals.code===void 0&&t.notEquals.value===void 0&&t.notEquals.system===void 0&&t.notEquals.values===void 0&&n.add("NotEquals must have at least one non-null property (code, value, system, or values)")}}}Oh=new WeakMap;class Rre{validate(t,n){!t.system&&!t.code&&n.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var Of=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},oM,sM,uM,cM,lM,dM;class tj extends Qi{constructor(){super(...arguments),oM.set(this,new Tl),sM.set(this,new yl)}validate(t,n){super.validate(t,n),t.groupCode&&Of(this,oM,"f").validate(t.groupCode,n),t.lastUpdated&&Of(this,sM,"f").validate(t.lastUpdated,n)}}oM=new WeakMap,sM=new WeakMap;class Pre{validate(t,n){t.length===0&&n.add("Prescription array must not be empty.")}}class nj extends Qi{constructor(){super(...arguments),uM.set(this,new Pre),cM.set(this,new yl)}validate(t,n){super.validate(t,n),t.lastUpdated!==void 0&&Of(this,cM,"f").validate(t.lastUpdated,n),t.prescription!==void 0&&Of(this,uM,"f").validate(t.prescription,n)}}uM=new WeakMap,cM=new WeakMap;class Mre extends Qi{validate(t,n){var r;super.validate(t,n),!((r=t?.ids)===null||r===void 0)&&r.length||n.add("ids must not be empty")}}class Ire extends qi{constructor(){super(...arguments),this.validator=new tj}}class Zxe extends null{}class eVe extends null{}class tVe extends null{}class nVe extends null{}class rVe extends null{}class iVe extends null{}class aVe extends null{}class oVe extends null{}class sVe extends null{}class uVe extends null{}class cVe extends null{}class lVe extends null{}class dVe extends null{}class fVe extends null{}class _Ve extends null{}class pVe extends null{}class hVe extends null{}class SVe extends null{}class gVe extends null{}class mVe extends null{}class Nre extends nj{constructor(){super(...arguments),lM.set(this,new Tl)}validate(t,n){super.validate(t,n),t.medicationCode!==void 0&&Of(this,lM,"f").validate(t.medicationCode,n)}}lM=new WeakMap;class vVe extends qi{constructor(){super(...arguments),this.validator=new nj}}class EVe extends qi{constructor(){super(...arguments),this.validator=new Nre}}class Lre extends tj{constructor(){super(...arguments),dM.set(this,new Tl)}validate(t,n){super.validate(t,n),t.medicationCode!==void 0&&Of(this,dM,"f").validate(t.medicationCode,n)}}dM=new WeakMap;class yVe extends Ire{constructor(){super(...arguments),this.validator=new Lre}}class TVe extends null{}class AVe extends null{}class CVe extends qi{constructor(){super(...arguments),this.validator=new Mre}}class Dre{validate(t,n){ga(t.medicationStatementId)&&n.add("The medication pricing request must possess a medication statement id.")}}class bVe extends qr{constructor(){super(...arguments),this.validator=new Dre}}class wre extends Qi{validate(t,n){ga(t.medicationStatementId)&&n.add("The medication knowledge request must possess a medication statement id."),super.validate(t,n)}}class OVe extends qi{constructor(){super(...arguments),this.validator=new wre}}class Ure extends Qi{validate(t,n){ga(t.labId)&&n.add("The lab knowledge request must contain a lab id."),super.validate(t,n)}}class RVe extends qi{constructor(){super(...arguments),this.validator=new Ure}}var rj;(function(e){e.Active="ACTIVE",e.Completed="COMPLETED"})(rj||(rj={}));class $re{validate(t,n){Pa(t)&&n.add("input must be provided."),Ma(t.id)&&n.add("id must be a non-empty string."),Pa(t.status)&&n.add("status is required.")}}class PVe extends qr{constructor(){super(...arguments),this.validator=new $re}}const Gre=new Set(Object.values(iM));function ij(e){return Gre.has(e)}var Fre=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},fM,aj;class xre extends Qi{constructor(){super(...arguments),fM.add(this)}validate(t,n){if(super.validate(t,n),!Wa(t.status)){const r=Array.isArray(t.status)?t.status:[t.status];for(const i of r)Fre(this,fM,"m",aj).call(this,i,n)}}}fM=new WeakSet,aj=function(t,n){ij(t)||n.add(`Invalid task status: "${t}"`)};class MVe extends qi{constructor(){super(...arguments),this.validator=new xre}}class Vre{validate(t,n){ij(t.newStatus)||n.add(`Invalid task status: "${t.newStatus}"`)}}class IVe extends qr{constructor(){super(...arguments),this.validator=new Vre}}var mE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Rf,oj,sj,uj,cj;class NVe extends qi{constructor(){super(...arguments),this.validator=new Bre}}class Bre extends Qi{constructor(){super(...arguments),Rf.add(this)}validate(t,n){super.validate(t,n),yr(t.organizationTypeFilters)&&mE(this,Rf,"m",oj).call(this,t.organizationTypeFilters,n),yr(t.sortBy)&&mE(this,Rf,"m",sj).call(this,t.sortBy,n),yr(t.filterFields)&&mE(this,Rf,"m",uj).call(this,t.filterFields,n),yr(t.gender)&&mE(this,Rf,"m",cj).call(this,t.gender,n)}}Rf=new WeakSet,oj=function(t,n){for(const r of t)jre(r)||n.add(`Invalid organizationTypeFilters value: "${r}"`)},sj=function(t,n){yr(t.field)&&!qre(t.field)&&n.add(`Invalid sortBy.field value: "${t.field}"`),yr(t.order)&&!Yre(t.order)&&n.add(`Invalid sortBy.order value: "${t.order}"`)},uj=function(t,n){for(const r of t)Wre(r)||n.add(`Invalid filterField value: "${r}"`)},cj=function(t,n){Yk(t)||n.add(`Invalid gender value: "${t}"`)};const kre=new Set(Object.values(nM));function jre(e){return kre.has(e)}const Qre=new Set(Object.values(rM));function qre(e){return Qre.has(e)}const Hre=new Set(Object.values(SE));function Yre(e){return Hre.has(e)}const zre=new Set(Object.values(eM));function Wre(e){return zre.has(e)}class LVe extends null{}class DVe extends qi{constructor(){super(...arguments),this.validator=new Kre}}class Kre extends Qi{validate(t,n){super.validate(t,n)}}const Xre="data-connection-status";var Jre=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},_M;const Zre="connectionId cannot be null or empty",eie="username cannot be null or empty",tie="password cannot be null or empty",nie="integrationType array cannot be empty",rie="integrationType array cannot contain blank or empty strings";class lj{validate(t,n){t.connectionId===""&&n.add(Zre)}}class iie{constructor(){_M.set(this,new lj)}validate(t,n){Jre(this,_M,"f").validate(t,n),t.username===""&&n.add(eie),t.password===""&&n.add(tie)}}_M=new WeakMap;class aie extends qr{constructor(){super(...arguments),this.validator=new lj}}class wVe extends null{}class UVe extends aie{constructor(){super(...arguments),this.validator=new iie}}class $Ve extends qr{constructor(){super(...arguments),this.validator={validate:(t,n)=>{t.integrationType!==void 0&&t.integrationType!==null&&(t.integrationType.length===0&&n.add(nie),t.integrationType.some(r=>r===""||r.trim()==="")&&n.add(rie))}}}data(){return this.input()}}const oie="deviceToken is required",sie="platformName must be a valid DevicePlatform value",uie="applicationName is required";var pM;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(pM||(pM={}));const cie=new Set(Object.values(pM));function lie(e){return cie.has(e)}function die(e){return!lie(e)}class dj{validate(t,n){ga(t.deviceToken)&&n.add(oie)}}class fie extends dj{validate(t,n){super.validate(t,n),die(t.platformName.toUpperCase())&&n.add(sie),ga(t.applicationName)&&n.add(uie)}}class GVe extends qr{constructor(){super(...arguments),this.validator=new fie}}class FVe extends qr{constructor(){super(...arguments),this.validator=new dj}}const _ie="string parameter serializedNotification must be provided",pie="serialized notification must have a non-empty notification_id field of type string",fj="serialized notification must have an itbl object containing a non-empty messageId field of type string",hie="parsed notification must be a non-null object.",Sie="serialized notification is not valid JSON.";class gie{validate(t,n){if(Wa(t.serializedNotification)||typeof t.serializedNotification!="string"||ga(t.serializedNotification)){n.add(_ie);return}let r=null;try{r=JSON.parse(t.serializedNotification)}catch{n.add(Sie);return}if(typeof r!="object"||r===null){n.add(hie);return}const{itbl:i,notification_id:a}=r;if((Wa(a)||typeof a!="string"||ga(a))&&n.add(pie),typeof i!="object"||Pa(i)){n.add(fj);return}(Wa(i.messageId)||typeof i.messageId!="string"||ga(i.messageId))&&n.add(fj)}}class xVe extends qr{constructor(){super(...arguments),this.validator=new gie}}var hM=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Rh;class mie extends Qi{constructor(){super(...arguments),Rh.set(this,new yl)}validate(t,n){(Wa(t.coverage)||ga(t.coverage))&&n.add("The claim summary request must contain a coverage ID."),yr(t.dateReceived)&&hM(this,Rh,"f").validate(t.dateReceived,n),yr(t.servicePeriod)&&hM(this,Rh,"f").validate(t.servicePeriod,n),yr(t.dateProcessed)&&hM(this,Rh,"f").validate(t.dateProcessed,n),super.validate(t,n)}}Rh=new WeakMap;class VVe extends qi{constructor(){super(...arguments),this.validator=new mie}}const vie="SearchReference value should be a non-empty string";class _j{validate(t,n){Pa(t.value)||(typeof t.value!="string"||ga(t.value))&&n.add(vie)}}const Eie="SearchStringValue should be a non-empty string";class Ph{validate(t,n){if(Pa(t.values))return;let r=!1;for(const i of t.values)ga(i)&&(r=!0);r&&n.add(Eie)}}var vE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},SM,gM,EE;class yie extends Qi{constructor(){super(...arguments),SM.set(this,new Ph),gM.set(this,new yl),EE.set(this,new _j)}validate(t,n){super.validate(t,n),yr(t.id)&&vE(this,SM,"f").validate(t.id,n),yr(t.lastUpdated)&&vE(this,gM,"f").validate(t.lastUpdated,n),yr(t.beneficiary)&&vE(this,EE,"f").validate(t.beneficiary,n),yr(t.patient)&&vE(this,EE,"f").validate(t.patient,n)}}SM=new WeakMap,gM=new WeakMap,EE=new WeakMap;class BVe extends qi{constructor(){super(...arguments),this.validator=new yie}}class Tie extends Qi{validate(t,n){super.validate(t,n)}}class kVe extends qi{constructor(){super(...arguments),this.validator=new Tie}}var Al=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},mM,yE,Mh,vM;class Aie extends Qi{constructor(){super(...arguments),mM.set(this,new Ph),yE.set(this,new yl),Mh.set(this,new _j),vM.set(this,new Tl)}validate(t,n){super.validate(t,n),yr(t.id)&&Al(this,mM,"f").validate(t.id,n),yr(t.lastUpdated)&&Al(this,yE,"f").validate(t.lastUpdated,n),yr(t.created)&&Al(this,yE,"f").validate(t.created,n),yr(t.patient)&&Al(this,Mh,"f").validate(t.patient,n),yr(t.provider)&&Al(this,Mh,"f").validate(t.provider,n),yr(t.coverage)&&Al(this,Mh,"f").validate(t.coverage,n),yr(t.status)&&Al(this,vM,"f").validate(t.status,n)}}mM=new WeakMap,yE=new WeakMap,Mh=new WeakMap,vM=new WeakMap;class jVe extends qi{constructor(){super(...arguments),this.validator=new Aie}}var EM=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},yM,TM,AM;class Cie{constructor(){yM.set(this,new yl),TM.set(this,new Ph),AM.set(this,new Tl)}validate(t,n){var r;jn(t._source)&&EM(this,TM,"f").validate(t._source,n),jn(t.date)&&EM(this,yM,"f").validate(t.date,n),jn(t._count)&&t._count<0&&n.add("Value of count cannot be less than 0"),jn(t._getpagesoffset)&&t._getpagesoffset<0&&n.add("Value of getpagesoffset cannot be less than 0"),jn((r=t.supporting_info)===null||r===void 0?void 0:r.value)&&ga(t.supporting_info.value)&&n.add("Supporting Information must have a non-empty value."),jn(t.status)&&EM(this,AM,"f").validate(t.status,n)}}yM=new WeakMap,TM=new WeakMap,AM=new WeakMap;class QVe extends qr{constructor(){super(...arguments),this.validator=new Cie}}class bie{validate(t,n){if(!Pa(t.cancelationReason)){if(Pa(t.cancelationReason.coding)||t.cancelationReason.coding.length===0){n.add("cancelationReason must have at least one coding");return}for(const r of t.cancelationReason.coding)(Pa(r?.code)||Pa(r?.system))&&n.add("cancelationReason.coding must have a code and a system")}}}class qVe extends qr{constructor(){super(...arguments),this.validator=new bie}}class Oie{validate(t,n){var r;Ma((r=t.organization.value)===null||r===void 0?void 0:r.trim())&&n.add("Organization reference is required and must have a non-empty value.")}}class HVe extends qr{constructor(){super(...arguments),this.validator=new Oie}}class TE{validate(t,n,r={}){const{requireRole:i=!0}=r;jn(t.id)?ga(t.id)?n.add("Member id cannot be empty"):t.id.length>255&&n.add("Member id cannot exceed 255 characters"):n.add("Member id is required"),jn(t.type)?ga(t.type)&&n.add("Member type cannot be empty"):n.add("Member type is required");const a=jn(t.role);if(i&&!a&&n.add("Member role is required"),a&&t.role)for(let c=0;c<t.role.length;c++){const f=t.role[c];jn(f)?ga(f)&&n.add(`Role ${c}: Cannot be blank`):n.add(`Role ${c}: Cannot be null or undefined`)}}}class YVe extends qr{constructor(){super(...arguments),this.validator=new TE}}class Rie{constructor(){this.updateValidator=new TE}validate(t,n){this.updateValidator.validate(t,n,{requireRole:!1})}}class zVe extends qr{constructor(){super(...arguments),this.validator=new Rie}}class Pie{constructor(){this.updateValidator=new TE}validate(t,n){this.updateValidator.validate(t,n,{requireRole:!0})}}class WVe extends qr{constructor(){super(...arguments),this.validator=new Pie}}class Mie{constructor(){this.updateValidator=new TE}validate(t,n){if(!jn(t.members)){n.add("Members array is required");return}if(t.members.length===0){n.add("Members array cannot be empty");return}for(let r=0;r<t.members.length;r++){const i=t.members[r];if(!jn(i)){n.add(`Member ${r}: Cannot be null or undefined`);continue}const a=new YB;this.updateValidator.validate(i,a,{requireRole:!0});for(const c of a.errors())n.add(`Member ${r}: ${c}`)}}}class KVe extends qr{constructor(){super(...arguments),this.validator=new Mie}}class Iie extends Qi{validate(t,n){super.validate(t,n)}}class Nie extends qi{constructor(){super(...arguments),this.validator=new Iie}}class Lie{validate(t,n){const r=t.questionnaireResponse;if(Pa(r)){n.add("questionnaireResponse is required");return}if((Ma(r.resourceType)||r.resourceType!=="QuestionnaireResponse")&&n.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Ma(r.status)&&n.add("questionnaireResponse.status is required"),Ma(r.questionnaire)&&n.add("questionnaireResponse.questionnaire is required"),Pa(r.contained)||r.contained.length===0)n.add("questionnaireResponse.contained must have at least one item");else{let i=null;for(const a of r.contained){if(Pa(a)){n.add("questionnaireResponse.contained item cannot be null or undefined");break}if(a.resourceType==="Questionnaire"){i=a;break}}if(Pa(i)){n.add("questionnaireResponse.contained must contain a Questionnaire resource");return}Ma(i.id)&&n.add("questionnaireResponse.contained Questionnaire resource must have an id")}}}class XVe extends qr{constructor(){super(...arguments),this.validator=new Lie}}class Die{validate(t,n){const r=t.questionnaireResponse;if(Pa(r)){n.add("questionnaireResponse is required");return}(Ma(r.resourceType)||r.resourceType!=="QuestionnaireResponse")&&n.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Ma(r.status)&&n.add("questionnaireResponse.status is required"),Ma(r.questionnaire)&&n.add("questionnaireResponse.questionnaire is required")}}class JVe extends qr{constructor(){super(...arguments),this.validator=new Die}}var AE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},CM,bM,CE;class wie extends Qi{constructor(){super(...arguments),CM.set(this,new yl),bM.set(this,new Ph),CE.set(this,new Tl)}validate(t,n){super.validate(t,n),jn(t.id)&&AE(this,bM,"f").validate(t.id,n),jn(t.lastUpdated)&&AE(this,CM,"f").validate(t.lastUpdated,n),jn(t.status)&&AE(this,CE,"f").validate(t.status,n),jn(t.tag)&&AE(this,CE,"f").validate(t.tag,n)}}CM=new WeakMap,bM=new WeakMap,CE=new WeakMap;class ZVe extends qi{constructor(){super(...arguments),this.validator=new wie}}var Ih=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},OM,Pf;class Uie extends Qi{constructor(){super(...arguments),OM.set(this,new Ph),Pf.set(this,new Tl)}validate(t,n){super.validate(t,n),jn(t.id)&&Ih(this,OM,"f").validate(t.id,n),jn(t.tag)&&Ih(this,Pf,"f").validate(t.tag,n),jn(t.security)&&Ih(this,Pf,"f").validate(t.security,n),jn(t.context)&&Ih(this,Pf,"f").validate(t.context,n),jn(t.identifier)&&Ih(this,Pf,"f").validate(t.identifier,n)}}OM=new WeakMap,Pf=new WeakMap;class e1e extends qi{constructor(){super(...arguments),this.validator=new Uie}}class $ie extends Qi{validate(t,n){super.validate(t,n)}}class t1e extends qi{constructor(){super(...arguments),this.validator=new $ie}}class Gie{constructor(){this.dataURIRegex=/^data:[a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+;base64,([A-Za-z0-9+/]*={0,2})$/}validate(t,n){t.file.trim()||n.add("File content is required"),t.file.trim()&&!this.dataURIRegex.test(t.file)&&n.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)"),t.fileName.trim()||n.add("File name is required")}}class n1e extends qr{constructor(){super(...arguments),this.validator=new Gie}}class Fie{validate(t,n){t.attachmentId.trim()||n.add("Attachment ID is required")}}class r1e extends qr{constructor(){super(...arguments),this.validator=new Fie}}class xie{validate(t,n){t.subject.trim()||n.add("Subject is required"),t.comment.body.trim()||n.add("Comment body is required"),t.fields.category.trim()||n.add("Category is required")}}class i1e extends qr{constructor(){super(...arguments),this.validator=new xie}}class Vie extends Qi{validate(t,n){super.validate(t,n)}}class a1e extends qi{constructor(){super(...arguments),this.validator=new Vie}}class Bie extends Qi{validate(t,n){t.requestId<0&&n.add("requestId must be a non-negative number"),super.validate(t,n)}}class o1e extends qi{constructor(){super(...arguments),this.validator=new Bie}}class kie{validate(t,n){t.requestId<0&&n.add("Request ID must be a non-negative integer"),Ma(t.body.trim())&&n.add("Comment body is required")}}class s1e extends qr{constructor(){super(...arguments),this.validator=new kie}}class jie{validate(t,n){Ma(t.attachmentId.trim())&&n.add("attachmentId must be a non-empty string"),t.requestId<0&&n.add("requestId must be a non-negative number")}}class u1e extends qr{constructor(){super(...arguments),this.validator=new jie}}var RM=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})};class PM{constructor(t=new Map){this.storage=t}get(t){return RM(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,n){return RM(this,void 0,void 0,function*(){this.storage.set(t,n)})}delete(t){return RM(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const Qie={logLevel:tM.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new PM,language:null,overrides:{unauthedApiUrl:null,authedApiUrl:null}};var su;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(su||(su={}));var qie=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},pj=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Nh,Yn;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Yn||(Yn={}));const Hie={[Yn.VERBOSE]:"VERBOSE",[Yn.DEBUG]:"DEBUG",[Yn.INFO]:"INFO",[Yn.WARN]:"WARN",[Yn.ERROR]:"ERROR",[Yn.FATAL]:"FATAL"};class Mf{constructor(t){Nh.set(this,void 0),qie(this,Nh,t,"f")}get severity(){return pj(this,Nh,"f")}shouldLog(t){return t>=pj(this,Nh,"f")}static severityText(t){return Hie[t]}static severityFromText(t){switch(t){case"VERBOSE":return Yn.VERBOSE;case"DEBUG":return Yn.DEBUG;case"INFO":return Yn.INFO;case"WARN":return Yn.WARN;case"ERROR":return Yn.ERROR;case"FATAL":return Yn.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}Nh=new WeakMap;var MM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ws=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ju,hj,bE,Lh,OE,Cl;class Sj{constructor(t,n,r){Ju.add(this),bE.set(this,void 0),Lh.set(this,void 0),OE.set(this,void 0),MM(this,bE,r,"f"),MM(this,Lh,new Mf(t),"f"),MM(this,OE,n,"f")}name(){return ws(this,bE,"f")}severity(){return ws(this,Lh,"f").severity}verbose(t,n){ws(this,Ju,"m",Cl).call(this,Yn.VERBOSE,t,n)}debug(t,n){ws(this,Ju,"m",Cl).call(this,Yn.DEBUG,t,n)}info(t,n){ws(this,Ju,"m",Cl).call(this,Yn.INFO,t,n)}warn(t,n){ws(this,Ju,"m",Cl).call(this,Yn.WARN,t,n)}error(t,n){let r;n instanceof en&&(r={error:n.failure()?n.error().message:n.data()}),n instanceof Error&&(r={error:n.message}),r===void 0&&(r=n),ws(this,Ju,"m",Cl).call(this,Yn.ERROR,t,r)}fatal(t,n){ws(this,Ju,"m",Cl).call(this,Yn.FATAL,t,n)}static otelSeverityNumber(t){switch(t){case Yn.VERBOSE:return su.TRACE;case Yn.DEBUG:return su.DEBUG;case Yn.INFO:return su.INFO;case Yn.WARN:return su.WARN;case Yn.ERROR:return su.ERROR;case Yn.FATAL:return su.FATAL;default:return su.UNSPECIFIED}}}hj=Sj,bE=new WeakMap,Lh=new WeakMap,OE=new WeakMap,Ju=new WeakSet,Cl=function(t,n,r){!ws(this,Lh,"f").shouldLog(t)||ws(this,OE,"f").emit({timestamp:Date.now(),severityNumber:hj.otelSeverityNumber(t),severityText:Mf.severityText(t),body:n,attributes:r??{}})};var gj=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},mj=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},RE,PE;class Yie{constructor(t,n){RE.set(this,void 0),PE.set(this,void 0),gj(this,PE,t,"f"),gj(this,RE,n.loggerProvider(),"f")}getLogger(t){const n=t??"default",r=mj(this,RE,"f").getLogger(n);return new Sj(mj(this,PE,"f"),r,n)}}RE=new WeakMap,PE=new WeakMap;class zie{format(t,n,r,i){let c=`[${new Date().toISOString()}] ${Mf.severityText(t)}`;return r!==void 0&&(c+=` (${r})`),c+=`: ${n}`,i===void 0?[c]:[c,i]}}var IM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Di=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Us,$s,uu;class Wie{constructor(t,n){Us.set(this,void 0),$s.set(this,void 0),uu.set(this,void 0),IM(this,$s,new Mf(t),"f"),IM(this,Us,n,"f"),IM(this,uu,new zie,"f")}name(){return Di(this,Us,"f")}severity(){return Di(this,$s,"f").severity}verbose(t,n){Di(this,$s,"f").shouldLog(Yn.VERBOSE)&&console.debug(...Di(this,uu,"f").format(Yn.VERBOSE,t,Di(this,Us,"f"),n))}debug(t,n){Di(this,$s,"f").shouldLog(Yn.DEBUG)&&console.debug(...Di(this,uu,"f").format(Yn.DEBUG,t,Di(this,Us,"f"),n))}info(t,n){Di(this,$s,"f").shouldLog(Yn.INFO)&&console.info(...Di(this,uu,"f").format(Yn.INFO,t,Di(this,Us,"f"),n))}warn(t,n){Di(this,$s,"f").shouldLog(Yn.WARN)&&console.warn(...Di(this,uu,"f").format(Yn.WARN,t,Di(this,Us,"f"),n))}error(t,n){let r=n;n instanceof en&&(r=n.failure()?n.error():n.data()),Di(this,$s,"f").shouldLog(Yn.ERROR)&&console.error(...Di(this,uu,"f").format(Yn.ERROR,t,Di(this,Us,"f"),r))}fatal(t,n){Di(this,$s,"f").shouldLog(Yn.FATAL)&&console.error(...Di(this,uu,"f").format(Yn.FATAL,t,Di(this,Us,"f"),n))}}Us=new WeakMap,$s=new WeakMap,uu=new WeakMap;var Kie=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Xie=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ME;class Hi{constructor(t=Yn.FATAL){ME.set(this,void 0),Kie(this,ME,t,"f")}getLogger(t){return new Wie(Xie(this,ME,"f"),t)}}ME=new WeakMap;var Jie=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},NM,vj;class Zie{constructor(){NM.add(this)}createLogProvider(t,n){switch(Jie(this,NM,"m",vj).call(this,t)){case"otel":if(n===void 0)throw new Error('telemetry is required for "otel" logging');return new Yie(t.logLevel,n);case"console":return new Hi(t.logLevel)}}}NM=new WeakSet,vj=function(t){return t.telemetry.enabled?"otel":"console"};var Jr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},cu=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Lo,If,Zu,Nf,ec,bl,Ej,yj,Tj,Aj,Cj,bj,Oj,Rj,Pj,Mj;class IE{constructor(t){Lo.add(this),If.set(this,void 0),Zu.set(this,void 0),Nf.set(this,void 0),ec.set(this,void 0),bl.set(this,void 0),this.bwellConfig=Jr(this,Lo,"m",Cj).call(this,t),cu(this,If,Mf.severityFromText(this.bwellConfig.logLevel),"f"),cu(this,bl,Jr(this,Lo,"m",Mj).call(this),"f"),cu(this,Nf,Jr(this,Lo,"m",Oj).call(this),"f"),cu(this,Zu,Jr(this,Lo,"m",Rj).call(this),"f"),cu(this,ec,Jr(this,Lo,"m",Pj).call(this),"f")}static initialize(t){try{const n=new IE(t);return en.success(n)}catch(n){if(sa.isBwellError(n))return en.failure(n);throw n}}get logLevel(){return Jr(this,If,"f")}get graphQL(){return Jr(this,Nf,"f")}get telemetry(){return Jr(this,Zu,"f")}get http(){return Jr(this,ec,"f")}get context(){return Jr(this,bl,"f")}setContextUser(t){Jr(this,bl,"f").user=t}mergeRemoteConfig(t){cu(this,If,Jr(this,Lo,"m",Ej).call(this,t),"f"),cu(this,Nf,Jr(this,Lo,"m",yj).call(this,t),"f"),cu(this,Zu,Object.freeze(Jr(this,Lo,"m",Tj).call(this,t)),"f"),cu(this,ec,Object.freeze(Jr(this,Lo,"m",Aj).call(this,t)),"f")}}If=new WeakMap,Zu=new WeakMap,Nf=new WeakMap,ec=new WeakMap,bl=new WeakMap,Lo=new WeakSet,Ej=function(t){var n;const r=(n=t?.logLevel)!==null&&n!==void 0?n:null;return r===null?Jr(this,If,"f"):Mf.severityFromText(r)},yj=function(t){var n;const r=(n=t?.graphQLClient)!==null&&n!==void 0?n:null;if(r===null)return Jr(this,Nf,"f");const{authedApiUrl:i,unauthedApiUrl:a}=this.bwellConfig.overrides;return{unauthApiUrl:a??r.url,apiUrl:i??r.authUrl}},Tj=function(t){var n,r;const i=(n=t?.telemetry)!==null&&n!==void 0?n:null;if(i===null)return Jr(this,Zu,"f");const a=(r=i.enabled)!==null&&r!==void 0?r:Jr(this,Zu,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let c;try{c=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(c.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},Jr(this,Zu,"f")),{enabled:a,collectorUrl:i.collectorUrl})},Aj=function(t){var n,r,i;const a=(n=t?.httpClient)!==null&&n!==void 0?n:null;return a===null?Jr(this,ec,"f"):{timeout:(r=a.requestTimeout)!==null&&r!==void 0?r:Jr(this,ec,"f").timeout,retryPolicy:(i=a.retry)!==null&&i!==void 0?i:Jr(this,ec,"f").retryPolicy}},Cj=function(t){return Object.assign(Object.assign({},Qie),t)},bj=function(){try{return cre(this.bwellConfig.clientKey)}catch{throw new ere("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},Oj=function(){var t,n;return{apiUrl:(t=this.bwellConfig.overrides.authedApiUrl)!==null&&t!==void 0?t:`https://api-gateway.${Jr(this,bl,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:(n=this.bwellConfig.overrides.unauthedApiUrl)!==null&&n!==void 0?n:`https://api-gateway.${Jr(this,bl,"f").env}.icanbwell.com/federated-graph/graphql`}},Rj=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},Pj=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},Mj=function(){return{clientKey:this.bwellConfig.clientKey,env:Jr(this,Lo,"m",bj).call(this),user:null}};var eae=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},Ij=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},NE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Lf,LE;class tae{constructor(t,n=new Hi){Lf.set(this,void 0),LE.set(this,void 0),Ij(this,LE,t,"f"),Ij(this,Lf,n.getLogger("ConfigManager"),"f")}initialize(t){return eae(this,void 0,void 0,function*(){const n=IE.initialize(t);if(n.failure())return n;const r=n.data();NE(this,Lf,"f").verbose("Initializing SDK Configuration");const i=yield NE(this,LE,"f").initialize(r.context.clientKey);if(i.failure())return i.intoFailure();const a=i.data();try{r.mergeRemoteConfig(a)}catch(c){NE(this,Lf,"f").error("Error merging SDK config with remote config.",c)}return NE(this,Lf,"f").info("Remote SDK Configuration merged with user config"),en.success(r)})}}Lf=new WeakMap,LE=new WeakMap;class tc extends Error{response;request;constructor(t,n){const r=`${tc.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,tc.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,tc)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const Nj=e=>e.toUpperCase(),LM=e=>typeof e=="function"?e():e,Lj=(e,t)=>e.map((n,r)=>[n,t[r]]),Df=e=>{let t={};return e instanceof Headers?t=nae(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):e&&(t=e),t},nae=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},rae=e=>{try{const t=e();return iae(t)?t.catch(n=>Dj(n)):t}catch(t){return Dj(t)}},Dj=e=>e instanceof Error?e:new Error(String(e)),iae=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",DM=e=>{throw new Error(`Unhandled case: ${String(e)}`)},DE=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),c1e=e=>Object.entries(e),l1e=e=>Object.values(e),d1e=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)])),f1e=e=>e.charAt(0).toLowerCase()+e.slice(1);function _1e(e){if(!Array.isArray(e))throw new Error(`Expected array. Got: ${String(e)}`)}function p1e(e){if(e===null||typeof e!="object")throw new Error(`Expected object. Got: ${String(e)}`)}const h1e=e=>e.charAt(0).toUpperCase()+e.slice(1),S1e=e=>{let t=!1,n,r;return{promise:new Promise((a,c)=>{n=a,r=c}),isResolved:()=>t,resolve:a=>{if(t=!0,e?.strict&&t)throw new Error(`Deferred is already resolved. Attempted to resolve with: ${JSON.stringify(a)}`);n(a)},reject:a=>r(a)}},aae=(...e)=>{process.env.DEBUG&&console.log(...e)},g1e=(...e)=>(...t)=>{aae(...e,...t)},m1e=e=>{const t=[],n=[];for(const r of e)r instanceof Error?t.push(r):n.push(r);return[n,t]},v1e=async(...e)=>{const t=oae(e);return new GraphQLClient(t.url).batchRequests(t)},oae=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},sae=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},E1e=async(...e)=>{const[t,n,...r]=e,i=uae(t,n,...r);return new GraphQLClient(i.url).rawRequest({...i})},uae=(e,t,...n)=>{const[r,i]=n;return typeof e=="string"?{url:e,query:t,variables:r,requestHeaders:i,signal:void 0}:e},cae=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0};var lae=_(2455);const wj="Accept",wM="Content-Type",UM="application/json",Uj="application/graphql-response+json",y1e={success:200},$j=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),dae=e=>{const t=e.toLowerCase();return t.includes(Uj)||t.includes(UM)},Gj=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Fj)};if(DE(e))return{_tag:"Single",executionResult:Fj(e)};throw new Error(`Invalid execution result: result is not object or array.
|
|
13057
|
+
`}catch(a){return n.error(a),yf` <slot name="error"></slot> `}}}vh([No({type:String})],r.prototype,"featureAppId",void 0),vh([No({type:String})],r.prototype,"featureAppName",void 0),vh([No({type:String})],r.prototype,"baseUrl",void 0),vh([No({type:String})],r.prototype,"src",void 0),vh([No({type:Object})],r.prototype,"config",void 0),customElements.define(qB,r)}var zne=_(3081),Wne=_(9742),Af,Cf;class Kne{constructor(){Af.set(this,void 0),Cf.set(this,void 0)}onReboot(t){return(0,R.GG)(this,Af,t,"f"),()=>{(0,R.GG)(this,Af,void 0,"f")}}reboot(t,n){const{featureServices:r}=vB((0,Wne.Ak)(),{featureServiceDefinitions:t,featureServiceDependencies:n});return(0,R.GG)(this,Cf,r,"f"),(0,R.gn)(this,Af,"f")&&(0,R.gn)(this,Af,"f").call(this,(0,R.gn)(this,Cf,"f")),(0,R.gn)(this,Cf,"f")}getRebootedServices(){return(0,R.gn)(this,Cf,"f")}}Af=new WeakMap,Cf=new WeakMap;var sE,uE,cE,Eh,BP;class Xne{constructor({initialState:t={},logger:n,globalEventEmitter:r,bwellSdk:i}){sE.add(this),uE.set(this,void 0),cE.set(this,{[vn.apiClient.id]:vn.apiClient.version.one,[vn.bwellSdk.id]:vn.bwellSdk.version.one,[vn.theme.id]:vn.theme.version.one,[vn.analytics.id]:vn.theme.version.one,[vn.auth.id]:vn.auth.version.one,[vn.logging.id]:vn.logging.version.one,[vn.state.id]:vn.state.version.one,[vn.navigation.id]:vn.navigation.version.one,[vn.translation.id]:vn.translation.version.one,[vn.featureFlags.id]:vn.featureFlags.version.one,[vn.identityUtils.id]:vn.apiClient.version.one,[vn.nativeBridge.id]:vn.nativeBridge.version.one,[vn.globalEventEmitter.id]:vn.globalEventEmitter.version.one,[vn.rebootController.id]:vn.rebootController.version.one}),Eh.set(this,void 0),(0,R.GG)(this,uE,r,"f"),(0,R.GG)(this,Eh,new Kne,"f");const{featureAppManager:a,featureServices:c}=vB("orchestrator:integrator",{featureServiceDependencies:(0,R.gn)(this,cE,"f"),featureServiceDefinitions:(0,R.gn)(this,sE,"m",BP).call(this,{initialState:t,bwellSdk:i}),moduleLoader:zne.h,logger:n});this.services=c,Yne(a)}reboot({initialState:t,bwellSdk:n}){this.services=(0,R.gn)(this,Eh,"f").reboot((0,R.gn)(this,sE,"m",BP).call(this,{initialState:t,bwellSdk:n}),(0,R.gn)(this,cE,"f"))}}uE=new WeakMap,cE=new WeakMap,Eh=new WeakMap,sE=new WeakSet,BP=function({initialState:t,bwellSdk:n}){return[vn.apiClient.definition,vn.bwellSdk.define(n.sdk),vn.theme.definition,vn.analytics.definition,vn.auth.define(n.sdk,n.tokenStorage),vn.logging.definition,vn.state.define(t),vn.navigation.definition,vn.translation.definition,vn.featureFlags.definition,vn.identityUtils.definition,vn.nativeBridge.definition,vn.globalEventEmitter.define((0,R.gn)(this,uE,"f")),vn.rebootController.define((0,R.gn)(this,Eh,"f"))]};function Jne(e){try{return JSON.parse(atob(e))}catch{}}function Zne(e){var t,n,r;const i=Jne(e);if(!i?.env)return ne.C;const a={rest:{endpoints:{}}};for(const c in(t=ne.C===null||ne.C===void 0?void 0:ne.C.rest)===null||t===void 0?void 0:t.endpoints){const f=(n=ne.C===null||ne.C===void 0?void 0:ne.C.rest)===null||n===void 0?void 0:n.endpoints[c];typeof f=="string"&&((r=a?.rest)===null||r===void 0?void 0:r.endpoints)&&(a.rest.endpoints[c]=f.replace(".prod.",`.${i.env}.`))}return a}class sa extends Error{constructor(t,n){super(t),this.name="BWellError",n?.cause&&(this.cause=n.cause)}static isBwellError(t){return t instanceof sa}}class Qxe extends sa{constructor(t="Authentication Error"){super(t),this.name="AuthenticationError"}}class qxe extends sa{constructor(t="Illegal Argument Error"){super(t),this.name="IllegalArgumentError"}}class Hxe extends sa{constructor(t="Illegal State Error"){super(t),this.name="IllegalStateError"}}class ere extends sa{constructor(t="Invalid Client Key Error"){super(t),this.name="InvalidClientKeyError"}}class kP extends sa{constructor(t,n){super(t),this.credentials=n,this.name="InvalidCredentialsTypeError"}}class bf extends sa{constructor(t="Invalid Token Error"){super(t),this.name="InvalidTokenError"}}class tre extends sa{constructor(t,n){super(t),this.status=n,this.name="NetworkError"}}class nre extends sa{constructor(t){super(t.message()),this.operationOutcome=t,this.name="OperationOutcomeError"}}class jP extends sa{constructor(t,n){super(t),this.data=n,this.name="UnknownError"}}class rre extends sa{constructor(t){super(t.join(". ")),this.errors=t,this.name="ValidationError"}}class Zt{constructor(t,n){this.data=t,n!==null&&(this.error=n)}hasError(){return this.error!==void 0}static error(t){return new Zt(void 0,t)}}var HB=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},lE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},yh,Th;class en{static success(t){return new ire(t)}static failure(t){return new dE(t)}}class ire extends en{constructor(t){super(),yh.set(this,void 0),HB(this,yh,t,"f")}data(){return lE(this,yh,"f")}error(){throw lE(this,yh,"f")}success(){return!0}failure(){return!1}toQueryResult(){return new Zt(this.data())}}yh=new WeakMap;class dE extends en{constructor(t){super(),Th.set(this,void 0),HB(this,Th,t,"f")}data(){throw lE(this,Th,"f")}error(){return lE(this,Th,"f")}success(){return!1}failure(){return!0}intoFailure(){return en.failure(this.error())}toQueryResult(){return new Zt(void 0,this.error())}}Th=new WeakMap;var QP=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ah;class YB{constructor(){Ah.set(this,[])}add(t){QP(this,Ah,"f").push(t)}errors(){return QP(this,Ah,"f")}hasErrors(){return QP(this,Ah,"f").length>0}}Ah=new WeakMap;var zB=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},qP=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ch,fE;class are{constructor(t){Ch.set(this,void 0),fE.set(this,void 0),zB(this,fE,t,"f"),zB(this,Ch,this.transformInput(t),"f")}validate(){return en.success(null)}data(){return qP(this,Ch,"f")}toJSON(){return qP(this,Ch,"f")}transformInput(t){return t}input(){return qP(this,fE,"f")}}Ch=new WeakMap,fE=new WeakMap;class qr extends are{validate(){const t=new YB;return this.validator.validate(this.input(),t),t.hasErrors()?en.failure(new rre(t.errors())):en.success(null)}}var WB=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},_E,KB,XB;const JB=100,HP=20;class Qi{constructor(){_E.add(this)}validate(t,n){WB(this,_E,"m",KB).call(this,t.page,n),WB(this,_E,"m",XB).call(this,t.pageSize,n)}}_E=new WeakSet,KB=function(t,n){t<0&&n.add("page must be a positive number")},XB=function(t,n){t!==void 0&&(t<=0&&n.add("Page size must be greater than 0"),t>JB&&n.add(`Page size must not exceed ${JB}`))};class qi extends qr{constructor(){super(...arguments),this.validator=new Qi}transformInput(t){return Object.assign({pageSize:HP},t)}}function YP(){return new Date().toISOString()}function ore(){var e;return!(typeof process>"u"||((e=process.versions)===null||e===void 0?void 0:e.node)===void 0)}function sre(){return typeof window<"u"}function ZB(){if(sre())return"browser";if(ore())return"node";throw new Error("Invalid runtime")}function ure(e){switch(ZB()){case"browser":return e.browser();case"node":return e.node()}}function ek(e){switch(ZB()){case"node":return Buffer.from(e,"base64").toString("utf-8");case"browser":return atob(e)}}function jn(e){return e!=null}function Pa(e){return e==null}function Yxe(e){return jn(e)&&e!==""}function Ma(e){return e==null||e===""}function Wa(e){return e===void 0}function yr(e){return e!==void 0}function cre(e){return JSON.parse(ek(e)).env}const lre=3;function tk(e){const t=e.split("."),n=t[1];if(n===void 0||t.length!==lre)throw new bf("Token is missing data and may be corrupted");try{return JSON.parse(ek(n))}catch(r){const i=r;throw new bf(`Unable to parse token payload: ${i.name} - ${i.message}`)}}function dre(e){const n=tk(e).exp;if(typeof n!="number")throw new bf("The access token is missing an expiration date and is most likely corrupted.");return n*1e3}const fre="custom:clientFhirPersonId",_re="custom:bwellFhirPatientId";function pre(e){const t=tk(e),n=t[_re],r=t[fre];return jn(n)&&jn(r)?{bwellFhirPersonId:n,clientFhirPersonId:r}:null}function ga(e){return e.trim()===""}const hre="1.68.3";function Sre(){return hre}var zP;(function(e){e.Arrived="ARRIVED",e.Booked="BOOKED",e.Cancelled="CANCELLED",e.CheckedIn="CHECKED_IN",e.EnteredInError="ENTERED_IN_ERROR",e.Fulfilled="FULFILLED",e.Noshow="NOSHOW",e.Pending="PENDING",e.Proposed="PROPOSED",e.Waitlist="WAITLIST"})(zP||(zP={}));var nk;(function(e){e.Guest="GUEST"})(nk||(nk={}));var pE;(function(e){e.CommunicationPreferencesPhi="COMMUNICATION_PREFERENCES_PHI",e.DataSharing="DATA_SHARING",e.HealthCircleAdolescent="HEALTH_CIRCLE_ADOLESCENT",e.HealthCircleMinor="HEALTH_CIRCLE_MINOR",e.HealthMatch="HEALTH_MATCH",e.IasImportRecords="IAS_IMPORT_RECORDS",e.MobileCommunicationPreferences="MOBILE_COMMUNICATION_PREFERENCES",e.PersonalizedHealthOffersAndAds="PERSONALIZED_HEALTH_OFFERS_AND_ADS",e.ProaAttestation="PROA_ATTESTATION",e.Tos="TOS"})(pE||(pE={}));var rk;(function(e){e.Complete="COMPLETE",e.Error="ERROR",e.Partial="PARTIAL",e.Queued="QUEUED"})(rk||(rk={}));var ik;(function(e){e.Institutional="INSTITUTIONAL",e.Oral="ORAL",e.Pharmacy="PHARMACY",e.Professional="PROFESSIONAL",e.Vision="VISION"})(ik||(ik={}));var ak;(function(e){e.Bwell="bwell"})(ak||(ak={}));var ok;(function(e){e.Bwell="BWELL"})(ok||(ok={}));var sk;(function(e){e.Basic="BASIC",e.Identity="IDENTITY",e.Oauth="OAUTH"})(sk||(sk={}));var WP;(function(e){e.Deny="DENY",e.Permit="PERMIT"})(WP||(WP={}));var KP;(function(e){e.Active="ACTIVE",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Inactive="INACTIVE",e.Proposed="PROPOSED",e.Rejected="REJECTED"})(KP||(KP={}));var uk;(function(e){e.Usd="USD"})(uk||(uk={}));var ck;(function(e){e.Accepted="ACCEPTED",e.Rejected="REJECTED"})(ck||(ck={}));var lk;(function(e){e.Active="ACTIVE",e.Pending="PENDING"})(lk||(lk={}));var dk;(function(e){e.AccessEnded="ACCESS_ENDED",e.Connected="CONNECTED",e.Deleted="DELETED",e.Disconnected="DISCONNECTED",e.Error="ERROR",e.Expired="EXPIRED"})(dk||(dk={}));var fk;(function(e){e.Clinical="CLINICAL",e.Insurance="INSURANCE",e.Lab="LAB",e.Pharmacy="PHARMACY",e.Practitioner="PRACTITIONER"})(fk||(fk={}));var hE;(function(e){e.Connecthub="connecthub",e.Nppes="nppes"})(hE||(hE={}));var _k;(function(e){e.Connecthub="CONNECTHUB",e.Nppes="NPPES"})(_k||(_k={}));var pk;(function(e){e.Fri="FRI",e.Mon="MON",e.Sat="SAT",e.Sun="SUN",e.Thu="THU",e.Tue="TUE",e.Wed="WED"})(pk||(pk={}));var hk;(function(e){e.Deleted="DELETED"})(hk||(hk={}));var Sk;(function(e){e.Kilometers="KILOMETERS",e.Meters="METERS",e.Miles="MILES"})(Sk||(Sk={}));var gk;(function(e){e.BwellPatient="BWELL_PATIENT",e.BwellPerson="BWELL_PERSON",e.ClientPatient="CLIENT_PATIENT",e.ClientPerson="CLIENT_PERSON"})(gk||(gk={}));var mk;(function(e){e.Active="active",e.EnteredInError="entered_in_error",e.Error="error",e.Off="off",e.Suspended="suspended",e.Test="test"})(mk||(mk={}));var vk;(function(e){e.Active="ACTIVE",e.EnteredInError="ENTERED_IN_ERROR",e.Error="ERROR",e.Off="OFF",e.Suspended="SUSPENDED",e.Test="TEST"})(vk||(vk={}));var XP;(function(e){e.CustomEvent="CUSTOM_EVENT",e.MobilePushOpen="MOBILE_PUSH_OPEN"})(XP||(XP={}));var JP;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(JP||(JP={}));var ZP;(function(e){e.Person="Person"})(ZP||(ZP={}));var eM;(function(e){e.Characteristic="characteristic",e.Communication="communication",e.Gender="gender",e.Specialty="specialty"})(eM||(eM={}));var Ek;(function(e){e.Characteristic="CHARACTERISTIC",e.Communication="COMMUNICATION",e.Gender="GENDER",e.Specialty="SPECIALTY"})(Ek||(Ek={}));var yk;(function(e){e.Female="female",e.Male="male",e.Other="other",e.Unknown="unknown"})(yk||(yk={}));var Tk;(function(e){e.Female="FEMALE",e.Male="MALE",e.Other="OTHER",e.Unknown="UNKNOWN"})(Tk||(Tk={}));var Ak;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.Labs="LABS",e.Medications="MEDICATIONS",e.Procedure="PROCEDURE",e.VitalSigns="VITAL_SIGNS"})(Ak||(Ak={}));var Ck;(function(e){e.Official="_official",e.Old="_old",e.Secondary="_secondary",e.Temp="_temp",e.Usual="_usual"})(Ck||(Ck={}));var bk;(function(e){e.Cognito="COGNITO",e.Descope="DESCOPE"})(bk||(bk={}));var Ok;(function(e){e.Clicked="clicked"})(Ok||(Ok={}));var Rk;(function(e){e.Clicked="CLICKED"})(Rk||(Rk={}));var tM;(function(e){e.Debug="DEBUG",e.Error="ERROR",e.Info="INFO",e.Verbose="VERBOSE",e.Warn="WARN"})(tM||(tM={}));var bh;(function(e){e.Activity="ACTIVITY",e.Exam="EXAM",e.Imaging="IMAGING",e.Laboratory="LABORATORY",e.Procedure="PROCEDURE",e.SocialHistory="SOCIAL_HISTORY",e.Survey="SURVEY",e.Therapy="THERAPY",e.VitalSigns="VITAL_SIGNS"})(bh||(bh={}));var Pk;(function(e){e.CancelDelete="CANCEL_DELETE",e.ConfirmDelete="CONFIRM_DELETE",e.DeletionInProgress="DELETION_IN_PROGRESS",e.ImmediateExecution="IMMEDIATE_EXECUTION",e.RequestDelete="REQUEST_DELETE"})(Pk||(Pk={}));var nM;(function(e){e.C19Vaccine="C19Vaccine",e.Device="Device",e.Insurance="Insurance",e.Laboratory="Laboratory",e.Pharmacy="Pharmacy",e.Provider="Provider",e.Bus="bus",e.Cg="cg",e.Crs="crs",e.Dept="dept",e.Edu="edu",e.Govt="govt",e.Ins="ins",e.Other="other",e.Pay="pay",e.Prov="prov",e.Reli="reli",e.Team="team"})(nM||(nM={}));var Mk;(function(e){e.Bus="BUS",e.C19Vaccine="C19VACCINE",e.Cg="CG",e.Crs="CRS",e.Dept="DEPT",e.Device="DEVICE",e.Edu="EDU",e.Govt="GOVT",e.Ins="INS",e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Other="OTHER",e.Pay="PAY",e.Pharmacy="PHARMACY",e.Prov="PROV",e.Provider="PROVIDER",e.Reli="RELI",e.Team="TEAM"})(Mk||(Mk={}));var Ik;(function(e){e.Add="add",e.Copy="copy",e.Move="move",e.Remove="remove",e.Replace="replace",e.Test="test"})(Ik||(Ik={}));var Nk;(function(e){e.ExistingPatients="EXISTING_PATIENTS",e.NewPatients="NEW_PATIENTS"})(Nk||(Nk={}));var Lk;(function(e){e.Patient="Patient",e.Person="Person"})(Lk||(Lk={}));var Dk;(function(e){e.Practice="practice",e.Practitioner="practitioner"})(Dk||(Dk={}));var wk;(function(e){e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(wk||(wk={}));var Uk;(function(e){e.QuestionnaireResponse="QuestionnaireResponse"})(Uk||(Uk={}));var $k;(function(e){e.Closed="CLOSED",e.Hold="HOLD",e.New="NEW",e.Open="OPEN",e.Pending="PENDING",e.Solved="SOLVED"})($k||($k={}));var Gk;(function(e){e.AllergyIntolerance="ALLERGY_INTOLERANCE",e.CarePlan="CARE_PLAN",e.Condition="CONDITION",e.Encounter="ENCOUNTER",e.Immunization="IMMUNIZATION",e.MedicationDispense="MEDICATION_DISPENSE",e.MedicationRequest="MEDICATION_REQUEST",e.MedicationStatement="MEDICATION_STATEMENT",e.Observation="OBSERVATION",e.Procedure="PROCEDURE"})(Gk||(Gk={}));var Fk;(function(e){e.DataConnections="DATA_CONNECTIONS",e.FindCare="FIND_CARE"})(Fk||(Fk={}));var xk;(function(e){e.Insurance="INSURANCE",e.Laboratory="LABORATORY",e.Pharmacy="PHARMACY",e.Practice="PRACTICE",e.Practitioner="PRACTITIONER"})(xk||(xk={}));var Vk;(function(e){e.UpdatedAt="UPDATED_AT"})(Vk||(Vk={}));var rM;(function(e){e.Content="content",e.Distance="distance",e.Relevance="relevance"})(rM||(rM={}));var Bk;(function(e){e.Content="CONTENT",e.DataSourceRank="DATA_SOURCE_RANK",e.Distance="DISTANCE",e.Name="NAME",e.NextAvailable="NEXT_AVAILABLE",e.OnlineBookingAvailable="ONLINE_BOOKING_AVAILABLE",e.Relevance="RELEVANCE"})(Bk||(Bk={}));var SE;(function(e){e.Asc="asc",e.Desc="desc"})(SE||(SE={}));var kk;(function(e){e.Asc="ASC",e.Desc="DESC"})(kk||(kk={}));var jk;(function(e){e.CareSearch="CARE_SEARCH",e.Proa="PROA",e.ProviderDetails="PROVIDER_DETAILS",e.Sayt="SAYT",e.Unspecified="UNSPECIFIED"})(jk||(jk={}));var Qk;(function(e){e.DataDeleted="DATA_DELETED",e.Deleting="DELETING",e.Error="ERROR",e.Pending="PENDING",e.Retrieved="RETRIEVED",e.Retrieving="RETRIEVING"})(Qk||(Qk={}));var iM;(function(e){e.Accepted="ACCEPTED",e.Cancelled="CANCELLED",e.Completed="COMPLETED",e.Draft="DRAFT",e.EnteredInError="ENTERED_IN_ERROR",e.Failed="FAILED",e.InProgress="IN_PROGRESS",e.OnHold="ON_HOLD",e.Ready="READY",e.Received="RECEIVED",e.Rejected="REJECTED",e.Requested="REQUESTED"})(iM||(iM={}));var gE;(function(e){e.Accurate="accurate",e.Estimate="estimate"})(gE||(gE={}));var qk;(function(e){e.Active="ACTIVE",e.Completed="COMPLETED"})(qk||(qk={}));var Hk;(function(e){e.PersonMatchError="PERSON_MATCH_ERROR",e.ServerError="SERVER_ERROR"})(Hk||(Hk={}));const gre=new Set(Object.values(JP));function Yk(e){return gre.has(e)}const mre=new Set(Object.values(KP));function vre(e){return mre.has(e)}const Ere=new Set(Object.values(pE));function zk(e){return Ere.has(e)}const yre=new Set(Object.values(WP));function Tre(e){return yre.has(e)}class Are{validate(t,n){!Wa(t.gender)&&!Yk(t.gender)&&n.add(`Invalid gender value: "${t.gender}"`)}}class zxe extends qr{constructor(){super(...arguments),this.validator=new Are}}class Cre{validate(t,n){zk(t.category)||n.add(`Invalid consent category code: "${t.category}"`)}}class Wxe extends qr{constructor(){super(...arguments),this.validator=new Cre}}class bre{validate(t,n){vre(t.status)||n.add(`Invalid consent status: "${t.status}"`),Tre(t.provision)||n.add(`Invalid consent provision type: "${t.provision}"`),zk(t.category)||n.add(`Invalid consent category code: "${t.category}"`),!Wa(t.organizationId)&&ga(t.organizationId)&&n.add("organizationId cannot be empty"),t.category===pE.ProaAttestation&&Wa(t.organizationId)&&n.add("organizationId must be provided when category is PROA_ATTESTATION")}}class Kxe extends qr{constructor(){super(...arguments),this.validator=new bre}}class Ore{validate(t,n){Ma(t.exportId)&&n.add("exportId is required"),Ma(t.password)&&n.add("password is required")}}class Xxe extends qr{constructor(){super(...arguments),this.validator=new Ore}}class Jxe extends null{}var co=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ia,Xu,Wk,Kk,Xk,Jk,Zk,ej;class yl{constructor(){Ia.add(this)}validate(t,n){if(!t.values||t.values.length===0){n.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}for(const r of t.values)co(this,Ia,"m",Wk).call(this,r,n)}}Ia=new WeakSet,Xu=function(t,n){t&&t!==null&&isNaN(t.getTime())&&n.add("The date is not valid")},Wk=function(t,n){const{equals:r,notEquals:i,greaterThan:a,greaterThanOrEqualTo:c,lessThan:f,lessThanOrEqualTo:y,approximately:h}=t,F=[r,i,a,c,f,y,h].filter(W=>W!=null).length;if(F===0){n.add("At least one SearchDateValue must be set to instantiate a SearchDate");return}co(this,Ia,"m",Kk).call(this,t,F,n),co(this,Ia,"m",Zk).call(this,t,n),co(this,Ia,"m",ej).call(this,t,n)},Kk=function(t,n,r){const{equals:i,notEquals:a,approximately:c}=t;if(i&&n>1){r.add("The equals value cannot be set with any other values");return}if(a&&n>1){r.add("The notEquals value cannot be set with any other values");return}if(c&&n>1){r.add("The approximately value cannot be set with any other values");return}co(this,Ia,"m",Xk).call(this,t,r),co(this,Ia,"m",Jk).call(this,t,r)},Xk=function(t,n){t.greaterThan&&t.greaterThanOrEqualTo&&n.add("The greaterThan/greaterThanOrEqualTo value cannot be set with both values")},Jk=function(t,n){t.lessThan&&t.lessThanOrEqualTo&&n.add("The lessThan/lessThanOrEqualTo value cannot be set with both values")},Zk=function(t,n){const{equals:r,notEquals:i,greaterThan:a,greaterThanOrEqualTo:c,lessThan:f,lessThanOrEqualTo:y,approximately:h}=t;r&&co(this,Ia,"m",Xu).call(this,r,n),i&&co(this,Ia,"m",Xu).call(this,i,n),a&&co(this,Ia,"m",Xu).call(this,a,n),c&&co(this,Ia,"m",Xu).call(this,c,n),f&&co(this,Ia,"m",Xu).call(this,f,n),y&&co(this,Ia,"m",Xu).call(this,y,n),h&&co(this,Ia,"m",Xu).call(this,h,n)},ej=function(t,n){const{greaterThan:r,greaterThanOrEqualTo:i,lessThan:a,lessThanOrEqualTo:c}=t;r&&c&&r>=c&&n.add("The greaterThan value must be less than the lessThanOrEqualTo value"),i&&a&&i>=a&&n.add("The greaterThanOrEqualTo value must be less than the lessThan value"),r&&a&&r>=a&&n.add("The greaterThan value must be less than the lessThan value"),i&&c&&i>=c&&n.add("The greaterThanOrEqualTo value must be less than the lessThanOrEqualTo value")};var aM=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Oh;class Tl{constructor(){Oh.set(this,new Rre)}validate(t,n){var r;if(t.value===void 0&&t.values===void 0&&t.notEquals===void 0){n.add("Either SearchToken value or values or notEquals must be provided");return}if(t.value!==void 0&&aM(this,Oh,"f").validate(t.value,n),t.values!==void 0&&t.values.length===0){n.add("At least one Coding must be set to instantiate a SearchToken");return}for(const i of(r=t.values)!==null&&r!==void 0?r:[])aM(this,Oh,"f").validate(i,n);if(t.notEquals!==void 0){if(t.notEquals.values!==void 0){if(t.notEquals.values.length===0){n.add("If notEquals values are provided, at least one Coding must be set");return}for(const i of t.notEquals.values)aM(this,Oh,"f").validate(i,n)}t.notEquals.code===void 0&&t.notEquals.value===void 0&&t.notEquals.system===void 0&&t.notEquals.values===void 0&&n.add("NotEquals must have at least one non-null property (code, value, system, or values)")}}}Oh=new WeakMap;class Rre{validate(t,n){!t.system&&!t.code&&n.add("Each Coding in the list must have at least one non-null and non-empty value for system or code")}}var Of=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},oM,sM,uM,cM,lM,dM;class tj extends Qi{constructor(){super(...arguments),oM.set(this,new Tl),sM.set(this,new yl)}validate(t,n){super.validate(t,n),t.groupCode&&Of(this,oM,"f").validate(t.groupCode,n),t.lastUpdated&&Of(this,sM,"f").validate(t.lastUpdated,n)}}oM=new WeakMap,sM=new WeakMap;class Pre{validate(t,n){t.length===0&&n.add("Prescription array must not be empty.")}}class nj extends Qi{constructor(){super(...arguments),uM.set(this,new Pre),cM.set(this,new yl)}validate(t,n){super.validate(t,n),t.lastUpdated!==void 0&&Of(this,cM,"f").validate(t.lastUpdated,n),t.prescription!==void 0&&Of(this,uM,"f").validate(t.prescription,n)}}uM=new WeakMap,cM=new WeakMap;class Mre extends Qi{validate(t,n){var r;super.validate(t,n),!((r=t?.ids)===null||r===void 0)&&r.length||n.add("ids must not be empty")}}class Ire extends qi{constructor(){super(...arguments),this.validator=new tj}}class Zxe extends null{}class eVe extends null{}class tVe extends null{}class nVe extends null{}class rVe extends null{}class iVe extends null{}class aVe extends null{}class oVe extends null{}class sVe extends null{}class uVe extends null{}class cVe extends null{}class lVe extends null{}class dVe extends null{}class fVe extends null{}class _Ve extends null{}class pVe extends null{}class hVe extends null{}class SVe extends null{}class gVe extends null{}class mVe extends null{}class Nre extends nj{constructor(){super(...arguments),lM.set(this,new Tl)}validate(t,n){super.validate(t,n),t.medicationCode!==void 0&&Of(this,lM,"f").validate(t.medicationCode,n)}}lM=new WeakMap;class vVe extends qi{constructor(){super(...arguments),this.validator=new nj}}class EVe extends qi{constructor(){super(...arguments),this.validator=new Nre}}class Lre extends tj{constructor(){super(...arguments),dM.set(this,new Tl)}validate(t,n){super.validate(t,n),t.medicationCode!==void 0&&Of(this,dM,"f").validate(t.medicationCode,n)}}dM=new WeakMap;class yVe extends Ire{constructor(){super(...arguments),this.validator=new Lre}}class TVe extends null{}class AVe extends null{}class CVe extends qi{constructor(){super(...arguments),this.validator=new Mre}}class Dre{validate(t,n){ga(t.medicationStatementId)&&n.add("The medication pricing request must possess a medication statement id.")}}class bVe extends qr{constructor(){super(...arguments),this.validator=new Dre}}class wre extends Qi{validate(t,n){ga(t.medicationStatementId)&&n.add("The medication knowledge request must possess a medication statement id."),super.validate(t,n)}}class OVe extends qi{constructor(){super(...arguments),this.validator=new wre}}class Ure extends Qi{validate(t,n){ga(t.labId)&&n.add("The lab knowledge request must contain a lab id."),super.validate(t,n)}}class RVe extends qi{constructor(){super(...arguments),this.validator=new Ure}}var rj;(function(e){e.Active="ACTIVE",e.Completed="COMPLETED"})(rj||(rj={}));class $re{validate(t,n){Pa(t)&&n.add("input must be provided."),Ma(t.id)&&n.add("id must be a non-empty string."),Pa(t.status)&&n.add("status is required.")}}class PVe extends qr{constructor(){super(...arguments),this.validator=new $re}}const Gre=new Set(Object.values(iM));function ij(e){return Gre.has(e)}var Fre=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},fM,aj;class xre extends Qi{constructor(){super(...arguments),fM.add(this)}validate(t,n){if(super.validate(t,n),!Wa(t.status)){const r=Array.isArray(t.status)?t.status:[t.status];for(const i of r)Fre(this,fM,"m",aj).call(this,i,n)}}}fM=new WeakSet,aj=function(t,n){ij(t)||n.add(`Invalid task status: "${t}"`)};class MVe extends qi{constructor(){super(...arguments),this.validator=new xre}}class Vre{validate(t,n){ij(t.newStatus)||n.add(`Invalid task status: "${t.newStatus}"`)}}class IVe extends qr{constructor(){super(...arguments),this.validator=new Vre}}var mE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Rf,oj,sj,uj,cj;class NVe extends qi{constructor(){super(...arguments),this.validator=new Bre}}class Bre extends Qi{constructor(){super(...arguments),Rf.add(this)}validate(t,n){super.validate(t,n),yr(t.organizationTypeFilters)&&mE(this,Rf,"m",oj).call(this,t.organizationTypeFilters,n),yr(t.sortBy)&&mE(this,Rf,"m",sj).call(this,t.sortBy,n),yr(t.filterFields)&&mE(this,Rf,"m",uj).call(this,t.filterFields,n),yr(t.gender)&&mE(this,Rf,"m",cj).call(this,t.gender,n)}}Rf=new WeakSet,oj=function(t,n){for(const r of t)jre(r)||n.add(`Invalid organizationTypeFilters value: "${r}"`)},sj=function(t,n){yr(t.field)&&!qre(t.field)&&n.add(`Invalid sortBy.field value: "${t.field}"`),yr(t.order)&&!Yre(t.order)&&n.add(`Invalid sortBy.order value: "${t.order}"`)},uj=function(t,n){for(const r of t)Wre(r)||n.add(`Invalid filterField value: "${r}"`)},cj=function(t,n){Yk(t)||n.add(`Invalid gender value: "${t}"`)};const kre=new Set(Object.values(nM));function jre(e){return kre.has(e)}const Qre=new Set(Object.values(rM));function qre(e){return Qre.has(e)}const Hre=new Set(Object.values(SE));function Yre(e){return Hre.has(e)}const zre=new Set(Object.values(eM));function Wre(e){return zre.has(e)}class LVe extends null{}class DVe extends qi{constructor(){super(...arguments),this.validator=new Kre}}class Kre extends Qi{validate(t,n){super.validate(t,n)}}const Xre="data-connection-status";var Jre=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},_M;const Zre="connectionId cannot be null or empty",eie="username cannot be null or empty",tie="password cannot be null or empty",nie="integrationType array cannot be empty",rie="integrationType array cannot contain blank or empty strings";class lj{validate(t,n){t.connectionId===""&&n.add(Zre)}}class iie{constructor(){_M.set(this,new lj)}validate(t,n){Jre(this,_M,"f").validate(t,n),t.username===""&&n.add(eie),t.password===""&&n.add(tie)}}_M=new WeakMap;class aie extends qr{constructor(){super(...arguments),this.validator=new lj}}class wVe extends null{}class UVe extends aie{constructor(){super(...arguments),this.validator=new iie}}class $Ve extends qr{constructor(){super(...arguments),this.validator={validate:(t,n)=>{t.integrationType!==void 0&&t.integrationType!==null&&(t.integrationType.length===0&&n.add(nie),t.integrationType.some(r=>r===""||r.trim()==="")&&n.add(rie))}}}data(){return this.input()}}const oie="deviceToken is required",sie="platformName must be a valid DevicePlatform value",uie="applicationName is required";var pM;(function(e){e.IOS="IOS",e.ANDROID="ANDROID"})(pM||(pM={}));const cie=new Set(Object.values(pM));function lie(e){return cie.has(e)}function die(e){return!lie(e)}class dj{validate(t,n){ga(t.deviceToken)&&n.add(oie)}}class fie extends dj{validate(t,n){super.validate(t,n),die(t.platformName.toUpperCase())&&n.add(sie),ga(t.applicationName)&&n.add(uie)}}class GVe extends qr{constructor(){super(...arguments),this.validator=new fie}}class FVe extends qr{constructor(){super(...arguments),this.validator=new dj}}const _ie="string parameter serializedNotification must be provided",pie="serialized notification must have a non-empty notification_id field of type string",fj="serialized notification must have an itbl object containing a non-empty messageId field of type string",hie="parsed notification must be a non-null object.",Sie="serialized notification is not valid JSON.";class gie{validate(t,n){if(Wa(t.serializedNotification)||typeof t.serializedNotification!="string"||ga(t.serializedNotification)){n.add(_ie);return}let r=null;try{r=JSON.parse(t.serializedNotification)}catch{n.add(Sie);return}if(typeof r!="object"||r===null){n.add(hie);return}const{itbl:i,notification_id:a}=r;if((Wa(a)||typeof a!="string"||ga(a))&&n.add(pie),typeof i!="object"||Pa(i)){n.add(fj);return}(Wa(i.messageId)||typeof i.messageId!="string"||ga(i.messageId))&&n.add(fj)}}class xVe extends qr{constructor(){super(...arguments),this.validator=new gie}}var hM=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Rh;class mie extends Qi{constructor(){super(...arguments),Rh.set(this,new yl)}validate(t,n){(Wa(t.coverage)||ga(t.coverage))&&n.add("The claim summary request must contain a coverage ID."),yr(t.dateReceived)&&hM(this,Rh,"f").validate(t.dateReceived,n),yr(t.servicePeriod)&&hM(this,Rh,"f").validate(t.servicePeriod,n),yr(t.dateProcessed)&&hM(this,Rh,"f").validate(t.dateProcessed,n),super.validate(t,n)}}Rh=new WeakMap;class VVe extends qi{constructor(){super(...arguments),this.validator=new mie}}const vie="SearchReference value should be a non-empty string";class _j{validate(t,n){Pa(t.value)||(typeof t.value!="string"||ga(t.value))&&n.add(vie)}}const Eie="SearchStringValue should be a non-empty string";class Ph{validate(t,n){if(Pa(t.values))return;let r=!1;for(const i of t.values)ga(i)&&(r=!0);r&&n.add(Eie)}}var vE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},SM,gM,EE;class yie extends Qi{constructor(){super(...arguments),SM.set(this,new Ph),gM.set(this,new yl),EE.set(this,new _j)}validate(t,n){super.validate(t,n),yr(t.id)&&vE(this,SM,"f").validate(t.id,n),yr(t.lastUpdated)&&vE(this,gM,"f").validate(t.lastUpdated,n),yr(t.beneficiary)&&vE(this,EE,"f").validate(t.beneficiary,n),yr(t.patient)&&vE(this,EE,"f").validate(t.patient,n)}}SM=new WeakMap,gM=new WeakMap,EE=new WeakMap;class BVe extends qi{constructor(){super(...arguments),this.validator=new yie}}class Tie extends Qi{validate(t,n){super.validate(t,n)}}class kVe extends qi{constructor(){super(...arguments),this.validator=new Tie}}var Al=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},mM,yE,Mh,vM;class Aie extends Qi{constructor(){super(...arguments),mM.set(this,new Ph),yE.set(this,new yl),Mh.set(this,new _j),vM.set(this,new Tl)}validate(t,n){super.validate(t,n),yr(t.id)&&Al(this,mM,"f").validate(t.id,n),yr(t.lastUpdated)&&Al(this,yE,"f").validate(t.lastUpdated,n),yr(t.created)&&Al(this,yE,"f").validate(t.created,n),yr(t.patient)&&Al(this,Mh,"f").validate(t.patient,n),yr(t.provider)&&Al(this,Mh,"f").validate(t.provider,n),yr(t.coverage)&&Al(this,Mh,"f").validate(t.coverage,n),yr(t.status)&&Al(this,vM,"f").validate(t.status,n)}}mM=new WeakMap,yE=new WeakMap,Mh=new WeakMap,vM=new WeakMap;class jVe extends qi{constructor(){super(...arguments),this.validator=new Aie}}var EM=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},yM,TM,AM;class Cie{constructor(){yM.set(this,new yl),TM.set(this,new Ph),AM.set(this,new Tl)}validate(t,n){var r;jn(t._source)&&EM(this,TM,"f").validate(t._source,n),jn(t.date)&&EM(this,yM,"f").validate(t.date,n),jn(t._count)&&t._count<0&&n.add("Value of count cannot be less than 0"),jn(t._getpagesoffset)&&t._getpagesoffset<0&&n.add("Value of getpagesoffset cannot be less than 0"),jn((r=t.supporting_info)===null||r===void 0?void 0:r.value)&&ga(t.supporting_info.value)&&n.add("Supporting Information must have a non-empty value."),jn(t.status)&&EM(this,AM,"f").validate(t.status,n)}}yM=new WeakMap,TM=new WeakMap,AM=new WeakMap;class QVe extends qr{constructor(){super(...arguments),this.validator=new Cie}}class bie{validate(t,n){if(!Pa(t.cancelationReason)){if(Pa(t.cancelationReason.coding)||t.cancelationReason.coding.length===0){n.add("cancelationReason must have at least one coding");return}for(const r of t.cancelationReason.coding)(Pa(r?.code)||Pa(r?.system))&&n.add("cancelationReason.coding must have a code and a system")}}}class qVe extends qr{constructor(){super(...arguments),this.validator=new bie}}class Oie{validate(t,n){var r;Ma((r=t.organization.value)===null||r===void 0?void 0:r.trim())&&n.add("Organization reference is required and must have a non-empty value.")}}class HVe extends qr{constructor(){super(...arguments),this.validator=new Oie}}class TE{validate(t,n,r={}){const{requireRole:i=!0}=r;jn(t.id)?ga(t.id)?n.add("Member id cannot be empty"):t.id.length>255&&n.add("Member id cannot exceed 255 characters"):n.add("Member id is required"),jn(t.type)?ga(t.type)&&n.add("Member type cannot be empty"):n.add("Member type is required");const a=jn(t.role);if(i&&!a&&n.add("Member role is required"),a&&t.role)for(let c=0;c<t.role.length;c++){const f=t.role[c];jn(f)?ga(f)&&n.add(`Role ${c}: Cannot be blank`):n.add(`Role ${c}: Cannot be null or undefined`)}}}class YVe extends qr{constructor(){super(...arguments),this.validator=new TE}}class Rie{constructor(){this.updateValidator=new TE}validate(t,n){this.updateValidator.validate(t,n,{requireRole:!1})}}class zVe extends qr{constructor(){super(...arguments),this.validator=new Rie}}class Pie{constructor(){this.updateValidator=new TE}validate(t,n){this.updateValidator.validate(t,n,{requireRole:!0})}}class WVe extends qr{constructor(){super(...arguments),this.validator=new Pie}}class Mie{constructor(){this.updateValidator=new TE}validate(t,n){if(!jn(t.members)){n.add("Members array is required");return}if(t.members.length===0){n.add("Members array cannot be empty");return}for(let r=0;r<t.members.length;r++){const i=t.members[r];if(!jn(i)){n.add(`Member ${r}: Cannot be null or undefined`);continue}const a=new YB;this.updateValidator.validate(i,a,{requireRole:!0});for(const c of a.errors())n.add(`Member ${r}: ${c}`)}}}class KVe extends qr{constructor(){super(...arguments),this.validator=new Mie}}class Iie extends Qi{validate(t,n){super.validate(t,n)}}class Nie extends qi{constructor(){super(...arguments),this.validator=new Iie}}class Lie{validate(t,n){const r=t.questionnaireResponse;if(Pa(r)){n.add("questionnaireResponse is required");return}if((Ma(r.resourceType)||r.resourceType!=="QuestionnaireResponse")&&n.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Ma(r.status)&&n.add("questionnaireResponse.status is required"),Ma(r.questionnaire)&&n.add("questionnaireResponse.questionnaire is required"),Pa(r.contained)||r.contained.length===0)n.add("questionnaireResponse.contained must have at least one item");else{let i=null;for(const a of r.contained){if(Pa(a)){n.add("questionnaireResponse.contained item cannot be null or undefined");break}if(a.resourceType==="Questionnaire"){i=a;break}}if(Pa(i)){n.add("questionnaireResponse.contained must contain a Questionnaire resource");return}Ma(i.id)&&n.add("questionnaireResponse.contained Questionnaire resource must have an id")}}}class XVe extends qr{constructor(){super(...arguments),this.validator=new Lie}}class Die{validate(t,n){const r=t.questionnaireResponse;if(Pa(r)){n.add("questionnaireResponse is required");return}(Ma(r.resourceType)||r.resourceType!=="QuestionnaireResponse")&&n.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"'),Ma(r.status)&&n.add("questionnaireResponse.status is required"),Ma(r.questionnaire)&&n.add("questionnaireResponse.questionnaire is required")}}class JVe extends qr{constructor(){super(...arguments),this.validator=new Die}}var AE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},CM,bM,CE;class wie extends Qi{constructor(){super(...arguments),CM.set(this,new yl),bM.set(this,new Ph),CE.set(this,new Tl)}validate(t,n){super.validate(t,n),jn(t.id)&&AE(this,bM,"f").validate(t.id,n),jn(t.lastUpdated)&&AE(this,CM,"f").validate(t.lastUpdated,n),jn(t.status)&&AE(this,CE,"f").validate(t.status,n),jn(t.tag)&&AE(this,CE,"f").validate(t.tag,n)}}CM=new WeakMap,bM=new WeakMap,CE=new WeakMap;class ZVe extends qi{constructor(){super(...arguments),this.validator=new wie}}var Ih=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},OM,Pf;class Uie extends Qi{constructor(){super(...arguments),OM.set(this,new Ph),Pf.set(this,new Tl)}validate(t,n){super.validate(t,n),jn(t.id)&&Ih(this,OM,"f").validate(t.id,n),jn(t.tag)&&Ih(this,Pf,"f").validate(t.tag,n),jn(t.security)&&Ih(this,Pf,"f").validate(t.security,n),jn(t.context)&&Ih(this,Pf,"f").validate(t.context,n),jn(t.identifier)&&Ih(this,Pf,"f").validate(t.identifier,n)}}OM=new WeakMap,Pf=new WeakMap;class e1e extends qi{constructor(){super(...arguments),this.validator=new Uie}}class $ie extends Qi{validate(t,n){super.validate(t,n)}}class t1e extends qi{constructor(){super(...arguments),this.validator=new $ie}}class Gie{constructor(){this.dataURIRegex=/^data:[a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+;base64,([A-Za-z0-9+/]*={0,2})$/}validate(t,n){t.file.trim()||n.add("File content is required"),t.file.trim()&&!this.dataURIRegex.test(t.file)&&n.add("File must be a valid data URI with base64 encoding (e.g., data:image/png;base64,...)"),t.fileName.trim()||n.add("File name is required")}}class n1e extends qr{constructor(){super(...arguments),this.validator=new Gie}}class Fie{validate(t,n){t.attachmentId.trim()||n.add("Attachment ID is required")}}class r1e extends qr{constructor(){super(...arguments),this.validator=new Fie}}class xie{validate(t,n){t.subject.trim()||n.add("Subject is required"),t.comment.body.trim()||n.add("Comment body is required"),t.fields.category.trim()||n.add("Category is required")}}class i1e extends qr{constructor(){super(...arguments),this.validator=new xie}}class Vie extends Qi{validate(t,n){super.validate(t,n)}}class a1e extends qi{constructor(){super(...arguments),this.validator=new Vie}}class Bie extends Qi{validate(t,n){t.requestId<0&&n.add("requestId must be a non-negative number"),super.validate(t,n)}}class o1e extends qi{constructor(){super(...arguments),this.validator=new Bie}}class kie{validate(t,n){t.requestId<0&&n.add("Request ID must be a non-negative integer"),Ma(t.body.trim())&&n.add("Comment body is required")}}class s1e extends qr{constructor(){super(...arguments),this.validator=new kie}}class jie{validate(t,n){Ma(t.attachmentId.trim())&&n.add("attachmentId must be a non-empty string"),t.requestId<0&&n.add("requestId must be a non-negative number")}}class u1e extends qr{constructor(){super(...arguments),this.validator=new jie}}var RM=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})};class PM{constructor(t=new Map){this.storage=t}get(t){return RM(this,void 0,void 0,function*(){return this.storage.get(t)})}set(t,n){return RM(this,void 0,void 0,function*(){this.storage.set(t,n)})}delete(t){return RM(this,void 0,void 0,function*(){return this.storage.delete(t)})}}const Qie={logLevel:tM.Error,timeout:3e4,retryPolicy:{attempts:3,interval:1e3},telemetryEnabled:!1,tokenStorage:new PM,language:null,overrides:{unauthedApiUrl:null,authedApiUrl:null}};var su;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"})(su||(su={}));var qie=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},pj=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Nh,Yn;(function(e){e[e.VERBOSE=0]="VERBOSE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL"})(Yn||(Yn={}));const Hie={[Yn.VERBOSE]:"VERBOSE",[Yn.DEBUG]:"DEBUG",[Yn.INFO]:"INFO",[Yn.WARN]:"WARN",[Yn.ERROR]:"ERROR",[Yn.FATAL]:"FATAL"};class Mf{constructor(t){Nh.set(this,void 0),qie(this,Nh,t,"f")}get severity(){return pj(this,Nh,"f")}shouldLog(t){return t>=pj(this,Nh,"f")}static severityText(t){return Hie[t]}static severityFromText(t){switch(t){case"VERBOSE":return Yn.VERBOSE;case"DEBUG":return Yn.DEBUG;case"INFO":return Yn.INFO;case"WARN":return Yn.WARN;case"ERROR":return Yn.ERROR;case"FATAL":return Yn.FATAL;default:throw new Error(`Invalid severity text: ${t}`)}}}Nh=new WeakMap;var MM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ws=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Ju,hj,bE,Lh,OE,Cl;class Sj{constructor(t,n,r){Ju.add(this),bE.set(this,void 0),Lh.set(this,void 0),OE.set(this,void 0),MM(this,bE,r,"f"),MM(this,Lh,new Mf(t),"f"),MM(this,OE,n,"f")}name(){return ws(this,bE,"f")}severity(){return ws(this,Lh,"f").severity}verbose(t,n){ws(this,Ju,"m",Cl).call(this,Yn.VERBOSE,t,n)}debug(t,n){ws(this,Ju,"m",Cl).call(this,Yn.DEBUG,t,n)}info(t,n){ws(this,Ju,"m",Cl).call(this,Yn.INFO,t,n)}warn(t,n){ws(this,Ju,"m",Cl).call(this,Yn.WARN,t,n)}error(t,n){let r;n instanceof en&&(r={error:n.failure()?n.error().message:n.data()}),n instanceof Error&&(r={error:n.message}),r===void 0&&(r=n),ws(this,Ju,"m",Cl).call(this,Yn.ERROR,t,r)}fatal(t,n){ws(this,Ju,"m",Cl).call(this,Yn.FATAL,t,n)}static otelSeverityNumber(t){switch(t){case Yn.VERBOSE:return su.TRACE;case Yn.DEBUG:return su.DEBUG;case Yn.INFO:return su.INFO;case Yn.WARN:return su.WARN;case Yn.ERROR:return su.ERROR;case Yn.FATAL:return su.FATAL;default:return su.UNSPECIFIED}}}hj=Sj,bE=new WeakMap,Lh=new WeakMap,OE=new WeakMap,Ju=new WeakSet,Cl=function(t,n,r){!ws(this,Lh,"f").shouldLog(t)||ws(this,OE,"f").emit({timestamp:Date.now(),severityNumber:hj.otelSeverityNumber(t),severityText:Mf.severityText(t),body:n,attributes:r??{}})};var gj=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},mj=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},RE,PE;class Yie{constructor(t,n){RE.set(this,void 0),PE.set(this,void 0),gj(this,PE,t,"f"),gj(this,RE,n.loggerProvider(),"f")}getLogger(t){const n=t??"default",r=mj(this,RE,"f").getLogger(n);return new Sj(mj(this,PE,"f"),r,n)}}RE=new WeakMap,PE=new WeakMap;class zie{format(t,n,r,i){let c=`[${new Date().toISOString()}] ${Mf.severityText(t)}`;return r!==void 0&&(c+=` (${r})`),c+=`: ${n}`,i===void 0?[c]:[c,i]}}var IM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Di=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Us,$s,uu;class Wie{constructor(t,n){Us.set(this,void 0),$s.set(this,void 0),uu.set(this,void 0),IM(this,$s,new Mf(t),"f"),IM(this,Us,n,"f"),IM(this,uu,new zie,"f")}name(){return Di(this,Us,"f")}severity(){return Di(this,$s,"f").severity}verbose(t,n){Di(this,$s,"f").shouldLog(Yn.VERBOSE)&&console.debug(...Di(this,uu,"f").format(Yn.VERBOSE,t,Di(this,Us,"f"),n))}debug(t,n){Di(this,$s,"f").shouldLog(Yn.DEBUG)&&console.debug(...Di(this,uu,"f").format(Yn.DEBUG,t,Di(this,Us,"f"),n))}info(t,n){Di(this,$s,"f").shouldLog(Yn.INFO)&&console.info(...Di(this,uu,"f").format(Yn.INFO,t,Di(this,Us,"f"),n))}warn(t,n){Di(this,$s,"f").shouldLog(Yn.WARN)&&console.warn(...Di(this,uu,"f").format(Yn.WARN,t,Di(this,Us,"f"),n))}error(t,n){let r=n;n instanceof en&&(r=n.failure()?n.error():n.data()),Di(this,$s,"f").shouldLog(Yn.ERROR)&&console.error(...Di(this,uu,"f").format(Yn.ERROR,t,Di(this,Us,"f"),r))}fatal(t,n){Di(this,$s,"f").shouldLog(Yn.FATAL)&&console.error(...Di(this,uu,"f").format(Yn.FATAL,t,Di(this,Us,"f"),n))}}Us=new WeakMap,$s=new WeakMap,uu=new WeakMap;var Kie=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Xie=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ME;class Hi{constructor(t=Yn.FATAL){ME.set(this,void 0),Kie(this,ME,t,"f")}getLogger(t){return new Wie(Xie(this,ME,"f"),t)}}ME=new WeakMap;var Jie=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},NM,vj;class Zie{constructor(){NM.add(this)}createLogProvider(t,n){switch(Jie(this,NM,"m",vj).call(this,t)){case"otel":if(n===void 0)throw new Error('telemetry is required for "otel" logging');return new Yie(t.logLevel,n);case"console":return new Hi(t.logLevel)}}}NM=new WeakSet,vj=function(t){return t.telemetry.enabled?"otel":"console"};var Jr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},cu=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Lo,If,Zu,Nf,ec,bl,Ej,yj,Tj,Aj,Cj,bj,Oj,Rj,Pj,Mj;class IE{constructor(t){Lo.add(this),If.set(this,void 0),Zu.set(this,void 0),Nf.set(this,void 0),ec.set(this,void 0),bl.set(this,void 0),this.bwellConfig=Jr(this,Lo,"m",Cj).call(this,t),cu(this,If,Mf.severityFromText(this.bwellConfig.logLevel),"f"),cu(this,bl,Jr(this,Lo,"m",Mj).call(this),"f"),cu(this,Nf,Jr(this,Lo,"m",Oj).call(this),"f"),cu(this,Zu,Jr(this,Lo,"m",Rj).call(this),"f"),cu(this,ec,Jr(this,Lo,"m",Pj).call(this),"f")}static initialize(t){try{const n=new IE(t);return en.success(n)}catch(n){if(sa.isBwellError(n))return en.failure(n);throw n}}get logLevel(){return Jr(this,If,"f")}get graphQL(){return Jr(this,Nf,"f")}get telemetry(){return Jr(this,Zu,"f")}get http(){return Jr(this,ec,"f")}get context(){return Jr(this,bl,"f")}setContextUser(t){Jr(this,bl,"f").user=t}mergeRemoteConfig(t){cu(this,If,Jr(this,Lo,"m",Ej).call(this,t),"f"),cu(this,Nf,Jr(this,Lo,"m",yj).call(this,t),"f"),cu(this,Zu,Object.freeze(Jr(this,Lo,"m",Tj).call(this,t)),"f"),cu(this,ec,Object.freeze(Jr(this,Lo,"m",Aj).call(this,t)),"f")}}If=new WeakMap,Zu=new WeakMap,Nf=new WeakMap,ec=new WeakMap,bl=new WeakMap,Lo=new WeakSet,Ej=function(t){var n;const r=(n=t?.logLevel)!==null&&n!==void 0?n:null;return r===null?Jr(this,If,"f"):Mf.severityFromText(r)},yj=function(t){var n;const r=(n=t?.graphQLClient)!==null&&n!==void 0?n:null;if(r===null)return Jr(this,Nf,"f");const{authedApiUrl:i,unauthedApiUrl:a}=this.bwellConfig.overrides;return{unauthApiUrl:a??r.url,apiUrl:i??r.authUrl}},Tj=function(t){var n,r;const i=(n=t?.telemetry)!==null&&n!==void 0?n:null;if(i===null)return Jr(this,Zu,"f");const a=(r=i.enabled)!==null&&r!==void 0?r:Jr(this,Zu,"f").enabled;if(i.collectorUrl.endsWith("/"))throw new Error('Telemetry config "collectorUrl" cannot end with a trailing slash.');let c;try{c=new URL(i.collectorUrl)}catch{throw new Error('Telemetry config "collectorUrl" malformed/is not a proper URL.')}if(c.pathname!=="/")throw new Error('Telemetry config "collectorUrl" cannot contain a path.');return Object.assign(Object.assign({},Jr(this,Zu,"f")),{enabled:a,collectorUrl:i.collectorUrl})},Aj=function(t){var n,r,i;const a=(n=t?.httpClient)!==null&&n!==void 0?n:null;return a===null?Jr(this,ec,"f"):{timeout:(r=a.requestTimeout)!==null&&r!==void 0?r:Jr(this,ec,"f").timeout,retryPolicy:(i=a.retry)!==null&&i!==void 0?i:Jr(this,ec,"f").retryPolicy}},Cj=function(t){return Object.assign(Object.assign({},Qie),t)},bj=function(){try{return cre(this.bwellConfig.clientKey)}catch{throw new ere("It appears there is a problem with your Client Key. Contact b.well support for further assistance.")}},Oj=function(){var t,n;return{apiUrl:(t=this.bwellConfig.overrides.authedApiUrl)!==null&&t!==void 0?t:`https://api-gateway.${Jr(this,bl,"f").env}.icanbwell.com/federated-graph-authed/graphql`,unauthApiUrl:(n=this.bwellConfig.overrides.unauthedApiUrl)!==null&&n!==void 0?n:`https://api-gateway.${Jr(this,bl,"f").env}.icanbwell.com/federated-graph/graphql`}},Rj=function(){return{collectorUrl:"https://collector.services.icanbwell.com",enabled:this.bwellConfig.telemetryEnabled,timeout:this.bwellConfig.timeout}},Pj=function(){return{timeout:this.bwellConfig.timeout,retryPolicy:{attempts:this.bwellConfig.retryPolicy.attempts,interval:this.bwellConfig.retryPolicy.interval}}},Mj=function(){return{clientKey:this.bwellConfig.clientKey,env:Jr(this,Lo,"m",bj).call(this),user:null}};var eae=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},Ij=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},NE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Lf,LE;class tae{constructor(t,n=new Hi){Lf.set(this,void 0),LE.set(this,void 0),Ij(this,LE,t,"f"),Ij(this,Lf,n.getLogger("ConfigManager"),"f")}initialize(t){return eae(this,void 0,void 0,function*(){const n=IE.initialize(t);if(n.failure())return n;const r=n.data();NE(this,Lf,"f").verbose("Initializing SDK Configuration");const i=yield NE(this,LE,"f").initialize(r.context.clientKey);if(i.failure())return i.intoFailure();const a=i.data();try{r.mergeRemoteConfig(a)}catch(c){NE(this,Lf,"f").error("Error merging SDK config with remote config.",c)}return NE(this,Lf,"f").info("Remote SDK Configuration merged with user config"),en.success(r)})}}Lf=new WeakMap,LE=new WeakMap;class tc extends Error{response;request;constructor(t,n){const r=`${tc.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,tc.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,tc)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const Nj=e=>e.toUpperCase(),LM=e=>typeof e=="function"?e():e,Lj=(e,t)=>e.map((n,r)=>[n,t[r]]),Df=e=>{let t={};return e instanceof Headers?t=nae(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):e&&(t=e),t},nae=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},rae=e=>{try{const t=e();return iae(t)?t.catch(n=>Dj(n)):t}catch(t){return Dj(t)}},Dj=e=>e instanceof Error?e:new Error(String(e)),iae=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",DM=e=>{throw new Error(`Unhandled case: ${String(e)}`)},DE=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),c1e=e=>Object.entries(e),l1e=e=>Object.values(e),d1e=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)])),f1e=e=>e.charAt(0).toLowerCase()+e.slice(1);function _1e(e){if(!Array.isArray(e))throw new Error(`Expected array. Got: ${String(e)}`)}function p1e(e){if(e===null||typeof e!="object")throw new Error(`Expected object. Got: ${String(e)}`)}const h1e=e=>e.charAt(0).toUpperCase()+e.slice(1),S1e=e=>{let t=!1,n,r;return{promise:new Promise((a,c)=>{n=a,r=c}),isResolved:()=>t,resolve:a=>{if(t=!0,e?.strict&&t)throw new Error(`Deferred is already resolved. Attempted to resolve with: ${JSON.stringify(a)}`);n(a)},reject:a=>r(a)}},aae=(...e)=>{process.env.DEBUG&&console.log(...e)},g1e=(...e)=>(...t)=>{aae(...e,...t)},m1e=e=>{const t=[],n=[];for(const r of e)r instanceof Error?t.push(r):n.push(r);return[n,t]},v1e=async(...e)=>{const t=oae(e);return new GraphQLClient(t.url).batchRequests(t)},oae=e=>e.length===1?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},sae=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},E1e=async(...e)=>{const[t,n,...r]=e,i=uae(t,n,...r);return new GraphQLClient(i.url).rawRequest({...i})},uae=(e,t,...n)=>{const[r,i]=n;return typeof e=="string"?{url:e,query:t,variables:r,requestHeaders:i,signal:void 0}:e},cae=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0};var lae=_(2455);const wj="Accept",wM="Content-Type",UM="application/json",Uj="application/graphql-response+json",y1e={success:200},$j=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),dae=e=>{const t=e.toLowerCase();return t.includes(Uj)||t.includes(UM)},Gj=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Fj)};if(DE(e))return{_tag:"Single",executionResult:Fj(e)};throw new Error(`Invalid execution result: result is not object or array.
|
|
13058
13058
|
Got:
|
|
13059
13059
|
${String(e)}`)}catch(t){return t}},Fj=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,n,r;if("errors"in e){if(!DE(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!DE(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!DE(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");r=e.extensions}return{data:n,errors:t,extensions:r}},fae=e=>e._tag==="Batch"?e.executionResults.some(xj):xj(e.executionResult),xj=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),Vj=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===lae.b.OPERATION_DEFINITION;var _ae=_(5157),pae=_(2704);const hae=e=>{let t;const n=e.definitions.filter(Vj);return n.length===1&&(t=n[0].name?.value),t},Sae=e=>{let t=!1;const n=e.definitions.filter(Vj);return n.length===1&&(t=n[0].operation==="mutation"),t},$M=(e,t)=>{const n=typeof e=="string"||"kind"in e?e:String(e),r=typeof n=="string"?n:(0,pae.y)(n);let i=!1,a;if(t)return{expression:r,isMutation:i,operationName:a};const c=rae(()=>typeof n=="string"?(0,_ae.qg)(n):n);return c instanceof Error?{expression:r,isMutation:i,operationName:a}:(a=hae(c),i=Sae(c),{expression:r,operationName:a,isMutation:i})},GM=JSON,FM=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":Nj(e.method??"post"):e.request.hasMutations?"POST":Nj(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},r=await mae(t.method)(t),i=await r.text();let a;try{a=gae(i,r.headers.get(wM),e.fetchOptions.jsonSerializer??GM)}catch(f){a=f}const c={status:r.status,headers:r.headers,body:i};if(!r.ok){if(a instanceof Error)return new tc({...c},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const f=a._tag==="Batch"?{...a.executionResults,...c}:{...a.executionResult,...c};return new tc(f,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}if(a instanceof Error)throw a;if(fae(a)&&t.fetchOptions.errorPolicy==="none"){const f=a._tag==="Batch"?{...a.executionResults,...c}:{...a.executionResult,...c};return new tc(f,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(a._tag){case"Single":return{...c,...Bj(t)(a.executionResult)};case"Batch":return{...c,data:a.executionResults.map(Bj(t))};default:DM(a)}},Bj=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),gae=(e,t,n)=>t&&dae(t)?Gj(n.parse(e)):Gj(e),mae=e=>async t=>{const n=new Headers(t.headers);let r=null,i;n.has(wj)||n.set(wj,[Uj,UM].join(", ")),e==="POST"?(i=(t.fetchOptions.jsonSerializer??GM).stringify(vae(t)),typeof i=="string"&&!n.has(wM)&&n.set(wM,UM)):r=Eae(t);const a={method:e,headers:n,body:i,...t.fetchOptions};let c=new URL(t.url),f=a;if(t.middleware){const h=await Promise.resolve(t.middleware({...a,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:m,...F}=h;c=new URL(m),f=F}return r&&r.forEach((h,m)=>{c.searchParams.append(m,h)}),await(t.fetch??fetch)(c,f)},vae=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return Lj(e.request.query,e.request.variables??[]).map(([t,n])=>({query:t,variables:n}));default:throw DM(e.request)}},Eae=e=>{const t=e.fetchOptions.jsonSerializer??GM,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",$j(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const r=e.request.variables?.map(c=>t.stringify(c))??[],i=e.request.query.map($j),a=Lj(i,r).map(([c,f])=>({query:c,variables:f}));return n.append("query",t.stringify(a)),n}default:throw DM(e.request)}};class yae{url;requestConfig;constructor(t,n={}){this.url=t,this.requestConfig=n}rawRequest=async(...t)=>{const[n,r,i]=t,a=cae(n,r,i),{headers:c,fetch:f=globalThis.fetch,method:y="POST",requestMiddleware:h,responseMiddleware:m,excludeOperationName:F,...W}=this.requestConfig,{url:ye}=this;a.signal!==void 0&&(W.signal=a.signal);const Te=$M(a.query,F),Re=await FM({url:ye,request:{_tag:"Single",document:Te,variables:a.variables},headers:{...Df(LM(c)),...Df(a.requestHeaders)},fetch:f,method:y,fetchOptions:W,middleware:h});if(m&&await m(Re,{operationName:Te.operationName,variables:r,url:this.url}),Re instanceof Error)throw Re;return Re};async request(t,...n){const[r,i]=n,a=Tae(t,r,i),{headers:c,fetch:f=globalThis.fetch,method:y="POST",requestMiddleware:h,responseMiddleware:m,excludeOperationName:F,...W}=this.requestConfig,{url:ye}=this;a.signal!==void 0&&(W.signal=a.signal);const Te=$M(a.document,F),Re=await FM({url:ye,request:{_tag:"Single",document:Te,variables:a.variables},headers:{...Df(LM(c)),...Df(a.requestHeaders)},fetch:f,method:y,fetchOptions:W,middleware:h});if(m&&await m(Re,{operationName:Te.operationName,variables:a.variables,url:this.url}),Re instanceof Error)throw Re;return Re.data}async batchRequests(t,n){const r=sae(t,n),{headers:i,excludeOperationName:a,...c}=this.requestConfig;r.signal!==void 0&&(c.signal=r.signal);const f=r.documents.map(({document:W})=>$M(W,a)),y=f.map(({expression:W})=>W),h=f.some(({isMutation:W})=>W),m=r.documents.map(({variables:W})=>W),F=await FM({url:this.url,request:{_tag:"Batch",operationName:void 0,query:y,hasMutations:h,variables:m},headers:{...Df(LM(i)),...Df(r.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:c,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(F,{operationName:void 0,variables:m,url:this.url}),F instanceof Error)throw F;return F.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}async function T1e(e,t,...n){const r=Aae(e,t,...n);return new GraphQLClient(r.url).request({...r})}const Tae=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},Aae=(e,t,...n)=>{const[r,i]=n;return typeof e=="string"?{url:e,document:t,variables:r,requestHeaders:i,signal:void 0}:e},A1e=null,Yi=`
|
|
13060
13060
|
fragment CodingFields on Coding {
|
|
@@ -17494,7 +17494,7 @@ ${Zi}`,Pse=`
|
|
|
17494
17494
|
lastPerformed
|
|
17495
17495
|
}
|
|
17496
17496
|
}
|
|
17497
|
-
`,Use=(e,t,n,r)=>e();function $se(e,t=Use){return{getTasks(n,r){return t(i=>e.rawRequest(ioe,n,Object.assign(Object.assign({},r),i)),"getTasks","query",n)},taskUpdateStatus(n,r){return t(i=>e.rawRequest(aoe,n,Object.assign(Object.assign({},r),i)),"taskUpdateStatus","mutation",n)},createConnection(n,r){return t(i=>e.rawRequest(ooe,n,Object.assign(Object.assign({},r),i)),"createConnection","mutation",n)},deleteConnection(n,r){return t(i=>e.rawRequest(soe,n,Object.assign(Object.assign({},r),i)),"deleteConnection","mutation",n)},disconnectConnection(n,r){return t(i=>e.rawRequest(uoe,n,Object.assign(Object.assign({},r),i)),"disconnectConnection","mutation",n)},getDataSource(n,r){return t(i=>e.rawRequest(coe,n,Object.assign(Object.assign({},r),i)),"getDataSource","query",n)},getMemberConnections(n,r){return t(i=>e.rawRequest(loe,n,Object.assign(Object.assign({},r),i)),"getMemberConnections","query",n)},getOauthUrl(n,r){return t(i=>e.rawRequest(doe,n,Object.assign(Object.assign({},r),i)),"getOauthUrl","query",n)},updateDeviceRegistration(n,r){return t(i=>e.rawRequest(foe,n,Object.assign(Object.assign({},r),i)),"updateDeviceRegistration","mutation",n)},publishEvent(n,r){return t(i=>e.rawRequest(_oe,n,Object.assign(Object.assign({},r),i)),"publishEvent","mutation",n)},getClaimSummary(n,r){return t(i=>e.rawRequest(poe,n,Object.assign(Object.assign({},r),i)),"getClaimSummary","query",n)},getCoverageSummary(n,r){return t(i=>e.rawRequest(hoe,n,Object.assign(Object.assign({},r),i)),"getCoverageSummary","query",n)},getCoverages(n,r){return t(i=>e.rawRequest(Soe,n,Object.assign(Object.assign({},r),i)),"getCoverages","query",n)},getExplanationOfBenefits(n,r){return t(i=>e.rawRequest(goe,n,Object.assign(Object.assign({},r),i)),"getExplanationOfBenefits","query",n)},getBinary(n,r){return t(i=>e.rawRequest(moe,n,Object.assign(Object.assign({},r),i)),"getBinary","query",n)},getFHIR(n,r){return t(i=>e.rawRequest(voe,n,Object.assign(Object.assign({},r),i)),"getFHIR","query",n)},getDiagnosticReports(n,r){return t(i=>e.rawRequest(Eoe,n,Object.assign(Object.assign({},r),i)),"getDiagnosticReports","query",n)},getAllergyIntoleranceGroups(n,r){return t(i=>e.rawRequest(yoe,n,Object.assign(Object.assign({},r),i)),"getAllergyIntoleranceGroups","query",n)},getAllergyIntolerances(n,r){return t(i=>e.rawRequest(Toe,n,Object.assign(Object.assign({},r),i)),"getAllergyIntolerances","query",n)},getCarePlanGroups(n,r){return t(i=>e.rawRequest(Aoe,n,Object.assign(Object.assign({},r),i)),"getCarePlanGroups","query",n)},getCarePlans(n,r){return t(i=>e.rawRequest(Coe,n,Object.assign(Object.assign({},r),i)),"getCarePlans","query",n)},getCareTeams(n,r){return t(i=>e.rawRequest(boe,n,Object.assign(Object.assign({},r),i)),"getCareTeams","query",n)},getConditionGroups(n,r){return t(i=>e.rawRequest(Ooe,n,Object.assign(Object.assign({},r),i)),"getConditionGroups","query",n)},getConditions(n,r){return t(i=>e.rawRequest(Roe,n,Object.assign(Object.assign({},r),i)),"getConditions","query",n)},getDiagnosticReportLabGroups(n,r){return t(i=>e.rawRequest(Poe,n,Object.assign(Object.assign({},r),i)),"getDiagnosticReportLabGroups","query",n)},getDocumentReferences(n,r){return t(i=>e.rawRequest(Moe,n,Object.assign(Object.assign({},r),i)),"getDocumentReferences","query",n)},getEncountersGroup(n,r){return t(i=>e.rawRequest(Ioe,n,Object.assign(Object.assign({},r),i)),"getEncountersGroup","query",n)},getEncounterQuery(n,r){return t(i=>e.rawRequest(Noe,n,Object.assign(Object.assign({},r),i)),"getEncounterQuery","query",n)},GetHealthSummary(n,r){return t(i=>e.rawRequest(Loe,n,Object.assign(Object.assign({},r),i)),"GetHealthSummary","query",n)},getImmunizationGroups(n,r){return t(i=>e.rawRequest(Doe,n,Object.assign(Object.assign({},r),i)),"getImmunizationGroups","query",n)},getImmunizations(n,r){return t(i=>e.rawRequest(woe,n,Object.assign(Object.assign({},r),i)),"getImmunizations","query",n)},getObservations(n,r){return t(i=>e.rawRequest(Uoe,n,Object.assign(Object.assign({},r),i)),"getObservations","query",n)},getProcedureGroups(n,r){return t(i=>e.rawRequest($oe,n,Object.assign(Object.assign({},r),i)),"getProcedureGroups","query",n)},GetProcedures(n,r){return t(i=>e.rawRequest(Goe,n,Object.assign(Object.assign({},r),i)),"GetProcedures","query",n)},getVitalSignGroups(n,r){return t(i=>e.rawRequest(Foe,n,Object.assign(Object.assign({},r),i)),"getVitalSignGroups","query",n)},getVitalSigns(n,r){return t(i=>e.rawRequest(xoe,n,Object.assign(Object.assign({},r),i)),"getVitalSigns","query",n)},getLabGroups(n,r){return t(i=>e.rawRequest(Voe,n,Object.assign(Object.assign({},r),i)),"getLabGroups","query",n)},getLabKnowledge(n,r){return t(i=>e.rawRequest(Boe,n,Object.assign(Object.assign({},r),i)),"getLabKnowledge","query",n)},getLabs(n,r){return t(i=>e.rawRequest(koe,n,Object.assign(Object.assign({},r),i)),"getLabs","query",n)},getMedicationDispense(n,r){return t(i=>e.rawRequest(joe,n,Object.assign(Object.assign({},r),i)),"getMedicationDispense","query",n)},getMedicationGroups(n,r){return t(i=>e.rawRequest(Qoe,n,Object.assign(Object.assign({},r),i)),"getMedicationGroups","query",n)},getMedicationKnowledge(n,r){return t(i=>e.rawRequest(qoe,n,Object.assign(Object.assign({},r),i)),"getMedicationKnowledge","query",n)},getMedicationPricing(n,r){return t(i=>e.rawRequest(Hoe,n,Object.assign(Object.assign({},r),i)),"getMedicationPricing","query",n)},getMedicationRequest(n,r){return t(i=>e.rawRequest(Yoe,n,Object.assign(Object.assign({},r),i)),"getMedicationRequest","query",n)},getMedicationStatements(n,r){return t(i=>e.rawRequest(zoe,n,Object.assign(Object.assign({},r),i)),"getMedicationStatements","query",n)},updateMedicationStatement(n,r){return t(i=>e.rawRequest(Woe,n,Object.assign(Object.assign({},r),i)),"updateMedicationStatement","mutation",n)},appointments(n,r){return t(i=>e.rawRequest(Koe,n,Object.assign(Object.assign({},r),i)),"appointments","query",n)},cancelAppointment(n,r){return t(i=>e.rawRequest(Xoe,n,Object.assign(Object.assign({},r),i)),"cancelAppointment","mutation",n)},cancelationReasons(n,r){return t(i=>e.rawRequest(Joe,n,Object.assign(Object.assign({},r),i)),"cancelationReasons","query",n)},addCareTeamMember(n,r){return t(i=>e.rawRequest(Zoe,n,Object.assign(Object.assign({},r),i)),"addCareTeamMember","mutation",n)},addCareTeamMembers(n,r){return t(i=>e.rawRequest(ese,n,Object.assign(Object.assign({},r),i)),"addCareTeamMembers","mutation",n)},CareTeamMembers(n,r){return t(i=>e.rawRequest(tse,n,Object.assign(Object.assign({},r),i)),"CareTeamMembers","query",n)},removeCareTeamMember(n,r){return t(i=>e.rawRequest(nse,n,Object.assign(Object.assign({},r),i)),"removeCareTeamMember","mutation",n)},updateCareTeamMember(n,r){return t(i=>e.rawRequest(rse,n,Object.assign(Object.assign({},r),i)),"updateCareTeamMember","mutation",n)},authenticate(n,r){return t(i=>e.rawRequest(ise,n,Object.assign(Object.assign({},r),i)),"authenticate","query",n)},createGuestAccessToken(n,r){return t(i=>e.rawRequest(ase,n,Object.assign(Object.assign({},r),i)),"createGuestAccessToken","mutation",n)},ExchangeAuthCode(n,r){return t(i=>e.rawRequest(ose,n,Object.assign(Object.assign({},r),i)),"ExchangeAuthCode","mutation",n)},initialize(n,r){return t(i=>e.rawRequest(sse,n,Object.assign(Object.assign({},r),i)),"initialize","query",n)},login(n,r){return t(i=>e.rawRequest(use,n,Object.assign(Object.assign({},r),i)),"login","query",n)},refreshTokens(n,r){return t(i=>e.rawRequest(cse,n,Object.assign(Object.assign({},r),i)),"refreshTokens","query",n)},nextQuestion(n,r){return t(i=>e.rawRequest(lse,n,Object.assign(Object.assign({},r),i)),"nextQuestion","mutation",n)},getQuestionnaireResponseList(n,r){return t(i=>e.rawRequest(dse,n,Object.assign(Object.assign({},r),i)),"getQuestionnaireResponseList","query",n)},getQuestionnaireResponses(n,r){return t(i=>e.rawRequest(fse,n,Object.assign(Object.assign({},r),i)),"getQuestionnaireResponses","query",n)},getQuestionnaires(n,r){return t(i=>e.rawRequest(_se,n,Object.assign(Object.assign({},r),i)),"getQuestionnaires","query",n)},saveQuestionnaireResponse(n,r){return t(i=>e.rawRequest(pse,n,Object.assign(Object.assign({},r),i)),"saveQuestionnaireResponse","mutation",n)},providerSearch(n,r){return t(i=>e.rawRequest(hse,n,Object.assign(Object.assign({},r),i)),"providerSearch","query",n)},requestConnection(n,r){return t(i=>e.rawRequest(Sse,n,Object.assign(Object.assign({},r),i)),"requestConnection","mutation",n)},SearchHealthResources(n,r){return t(i=>e.rawRequest(gse,n,Object.assign(Object.assign({},r),i)),"SearchHealthResources","query",n)},CreateSupportComment(n,r){return t(i=>e.rawRequest(mse,n,Object.assign(Object.assign({},r),i)),"CreateSupportComment","mutation",n)},CreateSupportRequest(n,r){return t(i=>e.rawRequest(vse,n,Object.assign(Object.assign({},r),i)),"CreateSupportRequest","mutation",n)},DeleteSupportAttachment(n,r){return t(i=>e.rawRequest(Ese,n,Object.assign(Object.assign({},r),i)),"DeleteSupportAttachment","mutation",n)},getSupportArticles(n,r){return t(i=>e.rawRequest(yse,n,Object.assign(Object.assign({},r),i)),"getSupportArticles","query",n)},GetSupportAttachment(n,r){return t(i=>e.rawRequest(Tse,n,Object.assign(Object.assign({},r),i)),"GetSupportAttachment","query",n)},GetSupportCategories(n,r){return t(i=>e.rawRequest(Ase,n,Object.assign(Object.assign({},r),i)),"GetSupportCategories","query",n)},getSupportComments(n,r){return t(i=>e.rawRequest(Cse,n,Object.assign(Object.assign({},r),i)),"getSupportComments","query",n)},getSupportRequests(n,r){return t(i=>e.rawRequest(bse,n,Object.assign(Object.assign({},r),i)),"getSupportRequests","query",n)},UploadSupportAttachment(n,r){return t(i=>e.rawRequest(Ose,n,Object.assign(Object.assign({},r),i)),"UploadSupportAttachment","mutation",n)},createConsent(n,r){return t(i=>e.rawRequest(Rse,n,Object.assign(Object.assign({},r),i)),"createConsent","mutation",n)},CreateDataExportDirectDownloadUrl(n,r){return t(i=>e.rawRequest(Pse,n,Object.assign(Object.assign({},r),i)),"CreateDataExportDirectDownloadUrl","mutation",n)},CreateVerificationUrl(n,r){return t(i=>e.rawRequest(Mse,n,Object.assign(Object.assign({},r),i)),"CreateVerificationUrl","mutation",n)},delete(n,r){return t(i=>e.rawRequest(Ise,n,Object.assign(Object.assign({},r),i)),"delete","mutation",n)},getProfile(n,r){return t(i=>e.rawRequest(Nse,n,Object.assign(Object.assign({},r),i)),"getProfile","query",n)},searchConsent(n,r){return t(i=>e.rawRequest(Lse,n,Object.assign(Object.assign({},r),i)),"searchConsent","query",n)},updateUserProfile(n,r){return t(i=>e.rawRequest(Dse,n,Object.assign(Object.assign({},r),i)),"updateUserProfile","mutation",n)},VerificationStatus(n,r){return t(i=>e.rawRequest(wse,n,Object.assign(Object.assign({},r),i)),"VerificationStatus","query",n)}}}var Gse=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})};function Xj(e,t,n){let r;t!==void 0&&(r=Fse(t));const i={};n!=null&&(i["accept-language"]=n);const a=new yae(e,{errorPolicy:"all",mode:"cors",requestMiddleware:r,headers:i});return{client:a,sdk:$se(a)}}function Fse(e){return t=>Gse(this,void 0,void 0,function*(){const r=(yield e.getAccessToken()).data();return Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{Authorization:`Bearer ${r}`})})})}var xse=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Jj=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Gh;const Zj="accept-language";class Vse{constructor(t){Gh.set(this,void 0),xse(this,Gh,t,"f")}setLanguage(t){Jj(this,Gh,"f").setHeader(Zj,t)}getLanguage(){var t;const n=Jj(this,Gh,"f").requestConfig.headers;return(t=n?.[Zj])!==null&&t!==void 0?t:null}}Gh=new WeakMap;const Bse="INFORMATION",I1e="WARNING",eQ="ERROR",kse="FATAL";class xE{constructor(t){this.issue=t}message(){var t,n;const r=[];for(const i of this.issue){const a=(n=(t=i.details)===null||t===void 0?void 0:t.text)===null||n===void 0?void 0:n.trim();a==null||a.length===0||r.push(a)}return r.join(", ")}success(){for(const t of this.issue){const n=t.severity.toUpperCase();if(n===eQ||n===kse)return!1}return!0}static error(t){return new xE([{severity:eQ,code:"EXCEPTION",details:{text:t.message}}])}static success(){return new xE([{severity:Bse,code:"INFORMATIONAL",details:{}}])}}function jse(e){for(const t of e){const n=tQ(t);if(n!==null){if(n.code==="500")return!0;for(const r of n.resource.issue)if(r.code==="exception")return!0}}return!1}function HM(e=[]){const t=[];let n=!1;for(const a of e){const c=tQ(a);if(c!==null){n=!0;for(const f of c.resource.issue)t.push(f)}}if(!n)return null;const r=new xE(t),i=new nre(r);if(Ma(i.message)){const a=e.map(c=>c.message).join(", ");i.message=Ma(a)?"Unknown error. Contact b.well support for further assistance.":a}return i}function tQ(e){const t=e.extensions,n=t?.code,r=t?.resource;return n===void 0||r===void 0||!Qse(r)?null:{code:n,resource:r}}function Qse(e){const t=e.issue;return t===void 0?!1:Array.isArray(t)}var nQ=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},VE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},wf,YM,zM;class Do{constructor(){wf.add(this)}handleTransaction(t){return nQ(this,void 0,void 0,function*(){try{const n=yield t,r=HM(n.errors);return r!==null?en.failure(r):en.success(n.data)}catch(n){if(sa.isBwellError(n))return en.failure(n);if(VE(this,wf,"m",YM).call(this,n))return VE(this,wf,"m",zM).call(this,n);throw n}})}handleQuery(t){return nQ(this,void 0,void 0,function*(){try{const n=yield t,r=HM(n.errors);return new Zt(n.data,r)}catch(n){if(sa.isBwellError(n))return new Zt(void 0,n);if(VE(this,wf,"m",YM).call(this,n)){const r=VE(this,wf,"m",zM).call(this,n);return Zt.error(r.error())}throw n}})}validateRequest(t){return t===void 0?en.success(null):t.validate()}}wf=new WeakSet,YM=function(t){return t instanceof tc},zM=function(t){if(t.response.status>299)return new dE(new tre("Network error",t.response.status));const n=t.response.errors;if(n!==void 0){if(jse(n))return new dE(new jP("Internal server error",n));const r=HM(n);if(r!==null)return en.failure(r)}return new dE(new jP("Unknown error",t))};var rc=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Gs,du,Uf;(function(e){e.ACTIVITY_CONTENT="https://www.icanbwell.com/contentDescription",e.ACTIVITY_ID="https://www.icanbwell.com/activityId",e.ACTIVITY_TOPIC="https://www.icanbwell.com/activityTopic",e.ACTIVITY_TYPE="https://www.icanbwell.com/activityType",e.PERFORMER_TYPE="https://www.icanbwell.com/performerType"})(Uf||(Uf={}));class qse{constructor(){Gs.add(this)}create(t){var n;const r=t.data(),i={page:r.page,pageSize:r.pageSize};return yr(r.id)&&(i.id=rc(this,Gs,"m",du).call(this,r.id)),yr(r.activityId)&&(i.identifier=rc(this,Gs,"m",du).call(this,r.activityId,Uf.ACTIVITY_ID)),yr(r.activityType)&&(i.code=rc(this,Gs,"m",du).call(this,r.activityType,Uf.ACTIVITY_TYPE)),yr(r.activityTopic)&&(i.tag=rc(this,Gs,"m",du).call(this,r.activityTopic,Uf.ACTIVITY_TOPIC)),yr(r.status)&&(i.status=rc(this,Gs,"m",du).call(this,r.status)),yr(r.subject)&&(i.subject=rc(this,Gs,"m",du).call(this,r.subject)),yr(r.performerType)&&(i.performer=rc(this,Gs,"m",du).call(this,r.performerType,Uf.PERFORMER_TYPE)),yr(r.basedOn)&&(i.basedOn=rc(this,Gs,"m",du).call(this,r.basedOn)),i.sortMethod=r.smartSort===!0?"smartSort":"",yr(r.enrichContent)&&(i.enrichContent=r.enrichContent),i.contentLanguage=(n=r.contentLanguage)!==null&&n!==void 0?n:"en",{request:i}}}Gs=new WeakSet,du=function(t,n){const i={value:(Array.isArray(t)?t:[t]).join(",")};return yr(n)&&(i.system=n),{values:[i]}};var rQ=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},iQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},us=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},cs,Fh,WM;class Hse extends Do{constructor(t,n=new Hi){super(),cs.set(this,void 0),Fh.set(this,void 0),WM.set(this,new qse),iQ(this,Fh,t,"f"),iQ(this,cs,n.getLogger("GraphQLActivityManager"),"f")}getTasks(t){return rQ(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();us(this,cs,"f").verbose("calling getTask query...");const i=yield this.handleQuery(us(this,Fh,"f").getTasks(us(this,WM,"f").create(t)));return us(this,cs,"f").verbose("getTask query complete"),i.hasError()?us(this,cs,"f").error("getTask query error",i.error):us(this,cs,"f").info("successfully called getTask query"),new Zt((n=i.data)===null||n===void 0?void 0:n.getTasks,i.error)})}updateTaskStatus(t){return rQ(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n;us(this,cs,"f").verbose("calling taskUpdateStatus mutation");const r=yield this.handleTransaction(us(this,Fh,"f").taskUpdateStatus(t.data()));return us(this,cs,"f").verbose("taskUpdateStatus mutation complete"),r.failure()?(us(this,cs,"f").error("taskUpdateStatus error",r),r.intoFailure()):(us(this,cs,"f").info("taskUpdateStatus mutation success"),en.success(r.data().taskUpdateStatus))})}}cs=new WeakMap,Fh=new WeakMap,WM=new WeakMap;var $f=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},KM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Nr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},fu,Hr,BE;class Yse extends Do{constructor(t,n=new Hi,r=new zse){super(),fu.set(this,void 0),Hr.set(this,void 0),BE.set(this,void 0),KM(this,fu,t,"f"),KM(this,Hr,n.getLogger("GraphQLConnectionManager"),"f"),KM(this,BE,r,"f")}getMemberConnections(t){return $f(this,void 0,void 0,function*(){var n;if(t){const a=this.validateRequest(t);if(a.failure())return a.toQueryResult()}Nr(this,Hr,"f").verbose("calling getMemberConnections...");const r=t?t.data():{},i=yield this.handleQuery(Nr(this,fu,"f").getMemberConnections({integrationType:(n=r.integrationType)!==null&&n!==void 0?n:null}));return Nr(this,Hr,"f").verbose("getMemberConnections complete"),i.hasError()?Nr(this,Hr,"f").error("getMemberConnections failed",i.error):Nr(this,Hr,"f").info("successfully called getMemberConnections"),Nr(this,BE,"f").create(i)})}getDataSource(t){return $f(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();Nr(this,Hr,"f").verbose("calling getDataSources...");const i=yield this.handleQuery(Nr(this,fu,"f").getDataSource(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("getDataSources complete"),i.hasError()?Nr(this,Hr,"f").error("getDataSources failed",i.error):Nr(this,Hr,"f").info("successfully called getDataSources"),new Zt((n=i.data)===null||n===void 0?void 0:n.getDataSource,i.error)})}createConnection(t){return $f(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Nr(this,Hr,"f").verbose("calling createConnection...");const r=yield this.handleTransaction(Nr(this,fu,"f").createConnection(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("createConnection complete"),r.failure()?(Nr(this,Hr,"f").error("createConnection failed",r),r.intoFailure()):(Nr(this,Hr,"f").info("successfully called createConnection"),en.success(r.data().createConnection))})}disconnectConnection(t){return $f(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Nr(this,Hr,"f").verbose("calling disconnectConnection...");const r=yield this.handleTransaction(Nr(this,fu,"f").disconnectConnection(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("disconnectConnection complete"),r.failure()?(Nr(this,Hr,"f").error("disconnectConnection failed",r),r.intoFailure()):(Nr(this,Hr,"f").info("successfully called disconnectConnection"),en.success(r.data().disconnectConnection))})}deleteConnection(t){return $f(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Nr(this,Hr,"f").verbose("calling deleteConnection...");const r=yield this.handleTransaction(Nr(this,fu,"f").deleteConnection(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("deleteConnection complete"),r.failure()?(Nr(this,Hr,"f").error("deleteConnection failed",r),r.intoFailure()):(Nr(this,Hr,"f").info("successfully called deleteConnection"),en.success(r.data().deleteConnection))})}getOauthUrl(t){return $f(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();Nr(this,Hr,"f").verbose("calling getOauthUrl...");const i=yield this.handleQuery(Nr(this,fu,"f").getOauthUrl(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("getOauthUrl complete"),i.hasError()?Nr(this,Hr,"f").error("getOauthUrl failed",i.error):Nr(this,Hr,"f").info("successfully called getOauthUrl"),new Zt((n=i.data)===null||n===void 0?void 0:n.getOauthUrl,i.error)})}}fu=new WeakMap,Hr=new WeakMap,BE=new WeakMap;class zse{create(t){var n,r,i,a,c,f;const y=new Map,h=(i=(r=(n=t.data)===null||n===void 0?void 0:n.subscription_subscription)===null||r===void 0?void 0:r.entry)!==null&&i!==void 0?i:[];for(const F of h)if(jn((a=F?.resource)===null||a===void 0?void 0:a.service_slug)&&jn(F?.resource.subscriptionStatus))for(const W of F.resource.subscriptionStatus)y.set(F.resource.service_slug,{error:W?.error,extension:W?.extension});const m=(f=(c=t.data)===null||c===void 0?void 0:c.getMemberConnections)!==null&&f!==void 0?f:[];return new Zt(m.map(F=>{var W;const ye=y.get(F.id);if(Pa(ye))return Object.assign(Object.assign({},F),{syncErrors:[]});const Te=(W=ye.extension)===null||W===void 0?void 0:W.find(Re=>Re?.id===Xre);return Object.assign(Object.assign({},F),{syncErrors:ye.error,syncStatus:Te?Te.valueString:F.syncStatus})}),t.error)}}class Wse{create(t){return{deviceToken:t.data().deviceToken,platformName:"",applicationName:"",notificationPreference:!1}}}class Kse{create(t){return Object.assign(Object.assign({},t.data()),{notificationPreference:!0})}}var aQ=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},oQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},wo=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},xh,ls,XM,JM;class Xse extends Do{constructor(t,n=new Hi){super(),xh.set(this,void 0),ls.set(this,void 0),XM.set(this,new Wse),JM.set(this,new Kse),oQ(this,xh,t,"f"),oQ(this,ls,n.getLogger("GraphQLDeviceManager"),"f")}registerDevice(t){return aQ(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=wo(this,JM,"f").create(t);wo(this,ls,"f").verbose("calling updateDeviceRegistration to register device...");const i=yield this.handleTransaction(wo(this,xh,"f").updateDeviceRegistration(r));return wo(this,ls,"f").verbose("updateDeviceRegistration complete for registration."),i.failure()?(wo(this,ls,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(wo(this,ls,"f").info("successfully called updateDeviceRegistration for registration."),en.success(i.data().updateDeviceRegistration))})}deregisterDevice(t){return aQ(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();wo(this,ls,"f").verbose("calling updateDeviceRegistration to deregister device...");const r=wo(this,XM,"f").create(t),i=yield this.handleTransaction(wo(this,xh,"f").updateDeviceRegistration(r));return wo(this,ls,"f").verbose("updateDeviceRegistration complete for deregistration."),i.failure()?(wo(this,ls,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(wo(this,ls,"f").info("successfully called updateDeviceRegistration for deregistration."),en.success(i.data().updateDeviceRegistration))})}}xh=new WeakMap,ls=new WeakMap,XM=new WeakMap,JM=new WeakMap;class Jse{create(t){const n=JSON.parse(t.data().serializedNotification);return{notificationId:n.notification_id,messageId:n.itbl.messageId,eventType:XP.MobilePushOpen}}}var Zse=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},ZM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Ol=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},kE,ic,jE;class eue extends Do{constructor(t,n=new Hi,r=new Jse){super(),kE.set(this,void 0),ic.set(this,void 0),jE.set(this,void 0),ZM(this,kE,t,"f"),ZM(this,ic,n.getLogger("GraphQLEventManager"),"f"),ZM(this,jE,r,"f")}handleNotification(t){return Zse(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Ol(this,ic,"f").debug("Calling publishEvent");let r;try{r=Ol(this,jE,"f").create(t)}catch(a){return Ol(this,ic,"f").error("Error creating publishEvent request",a),en.failure(new jP("Error creating publishEvent request"))}const i=yield this.handleTransaction(Ol(this,kE,"f").publishEvent(r));return Ol(this,ic,"f").debug("publishEvent completed"),i.failure()?(Ol(this,ic,"f").error("publishEvent mutation error",i),i.intoFailure()):(Ol(this,ic,"f").info("publishEvent mutation success"),en.success(i.data().publishEvent))})}}kE=new WeakMap,ic=new WeakMap,jE=new WeakMap;class tue{create(t){var n,r,i,a;const c=t.data(),f=(r=(n=c.sortBy)===null||n===void 0?void 0:n.map(y=>y.order===SE.Desc?`-${y.field}`:y.field))!==null&&r!==void 0?r:null;return{request:{coverage:c.coverage,claimType:(i=c.claimType)!==null&&i!==void 0?i:null,claimStatus:(a=c.claimStatus)!==null&&a!==void 0?a:null,dateProcessed:c.dateProcessed,dateReceived:c.dateReceived,servicePeriod:c.servicePeriod,page:c.page,pageSize:c.pageSize,sort:f}}}}class nue{create(t){var n,r,i,a,c,f,y,h;const m=t?.data();return{id:(n=m?.id)!==null&&n!==void 0?n:null,lastUpdated:(r=m?.lastUpdated)!==null&&r!==void 0?r:null,sort:(i=m?.sort)!==null&&i!==void 0?i:null,page:(a=m?.page)!==null&&a!==void 0?a:null,pageSize:(c=m?.pageSize)!==null&&c!==void 0?c:null,patient:(f=m?.patient)!==null&&f!==void 0?f:null,beneficiary:(y=m?.beneficiary)!==null&&y!==void 0?y:null,total:(h=m?.total)!==null&&h!==void 0?h:gE.Accurate}}}class rue{create(t){var n,r,i,a,c,f,y,h,m,F;const W=t?.data();return{page:(n=W?.page)!==null&&n!==void 0?n:null,pageSize:(r=W?.pageSize)!==null&&r!==void 0?r:null,id:(i=W?.id)!==null&&i!==void 0?i:null,lastUpdated:(a=W?.lastUpdated)!==null&&a!==void 0?a:null,patient:(c=W?.patient)!==null&&c!==void 0?c:null,provider:(f=W?.provider)!==null&&f!==void 0?f:null,coverage:(y=W?.coverage)!==null&&y!==void 0?y:null,status:(h=W?.status)!==null&&h!==void 0?h:null,created:(m=W?.created)!==null&&m!==void 0?m:null,sort:(F=W?.sort)!==null&&F!==void 0?F:null,total:gE.Accurate}}}var QE=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},sQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},zi=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Na,Rl,eI,tI,nI;class iue extends Do{constructor(t,n=new Hi){super(),Na.set(this,void 0),Rl.set(this,void 0),eI.set(this,new nue),tI.set(this,new rue),nI.set(this,new tue),sQ(this,Rl,t,"f"),sQ(this,Na,n.getLogger("GraphQLFinancialManager"),"f")}getCoverages(t){return QE(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();zi(this,Na,"f").verbose("calling getCoverages...");const i=yield this.handleQuery(zi(this,Rl,"f").getCoverages(zi(this,eI,"f").create(t)));return zi(this,Na,"f").verbose("getCoverages complete"),i.hasError()&&zi(this,Na,"f").error("getCoverages errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.coverages,i.error)})}getCoverageSummary(t){return QE(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();zi(this,Na,"f").verbose("calling getCoverageSummary...");const a=yield this.handleQuery(zi(this,Rl,"f").getCoverageSummary({request:(n=t?.data())!==null&&n!==void 0?n:null}));return zi(this,Na,"f").verbose("getCoverageSummary complete"),a.hasError()&&zi(this,Na,"f").error("getCoverageSummary errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCoverageSummary,a.error)})}getExplanationOfBenefits(t){return QE(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();zi(this,Na,"f").verbose("calling getExplanationOfBenefits...");const i=yield this.handleQuery(zi(this,Rl,"f").getExplanationOfBenefits(zi(this,tI,"f").create(t)));return zi(this,Na,"f").verbose("getExplanationOfBenefits complete"),i.hasError()&&zi(this,Na,"f").error("getExplanationOfBenefits errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.explanationOfBenefits,i.error)})}getClaimSummary(t){return QE(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();zi(this,Na,"f").verbose("calling getClaimSummary...");const i=yield this.handleQuery(zi(this,Rl,"f").getClaimSummary(zi(this,nI,"f").create(t)));return zi(this,Na,"f").verbose("getClaimSummary complete"),i.hasError()&&zi(this,Na,"f").error("getClaimSummary errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getClaimSummary,i.error)})}}Na=new WeakMap,Rl=new WeakMap,eI=new WeakMap,tI=new WeakMap,nI=new WeakMap;function qE(e,t){const n=(e.role||[]).map(i=>({text:i})),r={id:e.id,member:{reference:`${e.type}/${e.id}`},role:n};return t!==void 0&&(r.period=t),r}class aue{create(t){const n=t.data();return{participant:qE(n,{start:YP(),end:null})}}}class oue{create(t){const n=t.data(),r=YP();return{participant:n.members.map(a=>qE(a,{start:r,end:null}))}}}class sue{create(t){var n,r,i,a,c,f,y,h;const m=t.data();return{source:(n=m._source)!==null&&n!==void 0?n:null,id:(r=m._id)!==null&&r!==void 0?r:null,count:(i=m._count)!==null&&i!==void 0?i:25,getPagesOffset:(a=m._getpagesoffset)!==null&&a!==void 0?a:0,date:(c=m.date)!==null&&c!==void 0?c:null,sort:(f=m._sort)!==null&&f!==void 0?f:null,supportingInformation:(y=m.supporting_info)!==null&&y!==void 0?y:null,status:(h=m.status)!==null&&h!==void 0?h:null}}}class uue{create(t){const n=t.data();return{appointment:{id:n.id,status:zP.Cancelled,cancelationReason:n.cancelationReason}}}}class cue{create(t){var n,r;const i=t.data();return{pageNumber:(n=i.page)!==null&&n!==void 0?n:0,pageSize:(r=i.pageSize)!==null&&r!==void 0?r:HP}}}class lue{create(t){const n=t.data();return{participant:qE(n,{end:YP()})}}}class due{create(t){const n=t.data();return{participant:qE(n)}}}var ac=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},uQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},In=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Tr,ds,rI,iI,aI,oI,sI,uI,cI;class fue extends Do{constructor(t,n=new Hi){super(),Tr.set(this,void 0),ds.set(this,void 0),rI.set(this,new sue),iI.set(this,new uue),aI.set(this,new lue),oI.set(this,new aue),sI.set(this,new oue),uI.set(this,new due),cI.set(this,new cue),uQ(this,ds,t,"f"),uQ(this,Tr,n.getLogger("GraphQLHealthSpaceManager"),"f")}getAppointments(t){return ac(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();In(this,Tr,"f").verbose("calling appointments query...");const i=yield this.handleQuery(In(this,ds,"f").appointments(In(this,rI,"f").create(t)));return In(this,Tr,"f").verbose("appointments query complete"),i.hasError()?In(this,Tr,"f").error("appointments query error",i.error):In(this,Tr,"f").info("successfully called appointments query"),new Zt((n=i.data)===null||n===void 0?void 0:n.appointments,i.error)})}cancelAppointment(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling cancel appointment mutation...");const r=yield this.handleTransaction(In(this,ds,"f").cancelAppointment(In(this,iI,"f").create(t)));return In(this,Tr,"f").verbose("cancel appointment mutation complete"),r.failure()?(In(this,Tr,"f").error("cancel appointment mutation error",r),r.intoFailure()):(In(this,Tr,"f").info("successfully called cancel appointment mutation"),en.success(r.data().updateAppointment))})}getCancelationReasons(t){return ac(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();In(this,Tr,"f").verbose("calling cancelationReasons query...");const i=yield this.handleQuery(In(this,ds,"f").cancelationReasons(t.data()));return In(this,Tr,"f").verbose("cancelationReasons query complete"),i.hasError()?In(this,Tr,"f").error("cancelationReasons query error",i.error):In(this,Tr,"f").info("successfully called cancelationReasons query"),new Zt((n=i.data)===null||n===void 0?void 0:n.cancelationReasons,i.error)})}removeCareTeamMember(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling removeCareTeamMember mutation...");const r=yield this.handleTransaction(In(this,ds,"f").removeCareTeamMember(In(this,aI,"f").create(t)));return In(this,Tr,"f").verbose("removeCareTeamMember mutation completed"),r.failure()?(In(this,Tr,"f").error("removeCareTeamMember mutation error",r),r.intoFailure()):(In(this,Tr,"f").info("successfully called removeCareTeamMember mutation"),en.success(r.data()))})}addCareTeamMember(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling addCareTeamMember mutation...");const r=yield this.handleTransaction(In(this,ds,"f").addCareTeamMember(In(this,oI,"f").create(t)));return In(this,Tr,"f").verbose("addCareTeamMember mutation completed"),r.failure()?(In(this,Tr,"f").error("addCareTeamMember mutation error",r),r.intoFailure()):(In(this,Tr,"f").info("successfully called addCareTeamMember mutation"),en.success(r.data()))})}addCareTeamMembers(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling addCareTeamMembers mutation...");const r=In(this,sI,"f").create(t),i=yield this.handleTransaction(In(this,ds,"f").addCareTeamMembers(r));return In(this,Tr,"f").verbose("addCareTeamMembers mutation completed"),i.failure()?(In(this,Tr,"f").error("addCareTeamMembers mutation error",i),i.intoFailure()):(In(this,Tr,"f").info("successfully called addCareTeamMembers mutation"),en.success(i.data()))})}updateCareTeamMember(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling updateCareTeamMember mutation...");const r=In(this,uI,"f").create(t),i=yield this.handleTransaction(In(this,ds,"f").updateCareTeamMember(r));return In(this,Tr,"f").verbose("updateCareTeamMember mutation completed"),i.failure()?i.intoFailure():en.success(i.data())})}getCareTeamMembers(t){return ac(this,void 0,void 0,function*(){var n;const r=t??new Nie({page:0}),i=this.validateRequest(r);if(i.failure())return i.toQueryResult();In(this,Tr,"f").verbose("calling getCareTeamMembers query...");const a=In(this,cI,"f").create(r),c=yield this.handleQuery(In(this,ds,"f").CareTeamMembers(a));return In(this,Tr,"f").verbose("getCareTeamMembers query complete"),c.hasError()?In(this,Tr,"f").error("getCareTeamMembers query error",c.error):In(this,Tr,"f").info("successfully called getCareTeamMembers query"),new Zt((n=c.data)===null||n===void 0?void 0:n.careTeamMembers,c.error)})}}Tr=new WeakMap,ds=new WeakMap,rI=new WeakMap,iI=new WeakMap,aI=new WeakMap,oI=new WeakMap,sI=new WeakMap,uI=new WeakMap,cI=new WeakMap;class _ue{create(t){var n;const{id:r,page:i,pageSize:a,sort:c}=(n=t?.data())!==null&&n!==void 0?n:{};return{id:r?{values:r}:null,pageSize:a??null,page:i??null,sort:c??null}}}class pue{create(t){var n;const r=(n=t.data)===null||n===void 0?void 0:n.getMedicationDispense;if(!r)return new Zt(void 0,t.error);const i=Object.assign(Object.assign({},r),r?.resources&&{resources:r?.resources.map(a=>{var c,f,y,h,m,F,W;return Object.assign(Object.assign({},a),a.medication&&{medication:Object.assign(Object.assign({},a.medication),((c=a.medication)===null||c===void 0?void 0:c.resource)&&{resource:Object.assign(Object.assign({},(f=a.medication)===null||f===void 0?void 0:f.resource),((h=(y=a.medication)===null||y===void 0?void 0:y.resource)===null||h===void 0?void 0:h.ingredient)&&{ingredient:(W=(F=(m=a.medication)===null||m===void 0?void 0:m.resource)===null||F===void 0?void 0:F.ingredient)===null||W===void 0?void 0:W.map(ye=>{var Te,Re;return Object.assign(Object.assign({},ye),((Te=ye?.itemReference)===null||Te===void 0?void 0:Te.itemReferenceResource)&&{itemReference:{resource:(Re=ye?.itemReference)===null||Re===void 0?void 0:Re.itemReferenceResource}})})})})})})});return new Zt(i,t.error)}}class hue{create(t){var n;const r=(n=t.data)===null||n===void 0?void 0:n.getMedicationRequest;if(!r)return new Zt(void 0,t.error);const i=Object.assign(Object.assign({},r),r?.resources&&{resources:r?.resources.map(a=>{var c,f,y,h,m,F,W;return Object.assign(Object.assign({},a),a.medication&&{medication:Object.assign(Object.assign({},a.medication),((c=a.medication)===null||c===void 0?void 0:c.resource)&&{resource:Object.assign(Object.assign({},(f=a.medication)===null||f===void 0?void 0:f.resource),((h=(y=a.medication)===null||y===void 0?void 0:y.resource)===null||h===void 0?void 0:h.ingredient)&&{ingredient:(W=(F=(m=a.medication)===null||m===void 0?void 0:m.resource)===null||F===void 0?void 0:F.ingredient)===null||W===void 0?void 0:W.map(ye=>{var Te,Re;return Object.assign(Object.assign({},ye),((Te=ye?.itemReference)===null||Te===void 0?void 0:Te.itemReferenceResource)&&{itemReference:{resource:(Re=ye?.itemReference)===null||Re===void 0?void 0:Re.itemReferenceResource}})})})})})})});return new Zt(i,t.error)}}class Sue{create(t){const n=t.data();return{input:{id:n.id,status:n.status}}}}var Or=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},Gf=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ft=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},sr,Lt,HE,YE,zE,WE;class gue extends Do{constructor(t,n=new Hi,r=new hue,i=new pue,a=new _ue,c=new Sue){super(),sr.set(this,void 0),Lt.set(this,void 0),HE.set(this,void 0),YE.set(this,void 0),zE.set(this,void 0),WE.set(this,void 0),Gf(this,sr,t,"f"),Gf(this,Lt,n.getLogger("GraphQLHealthManager"),"f"),Gf(this,HE,r,"f"),Gf(this,YE,i,"f"),Gf(this,zE,a,"f"),Gf(this,WE,c,"f")}getHealthSummary(){return Or(this,void 0,void 0,function*(){var t;ft(this,Lt,"f").verbose("calling getHealthSummary...");const n=yield this.handleQuery(ft(this,sr,"f").GetHealthSummary());return ft(this,Lt,"f").verbose("getHealthSummary complete"),n.hasError()?ft(this,Lt,"f").error("getHealthSummary failed",n.error):ft(this,Lt,"f").info("successfully called getHealthSummary"),new Zt((t=n.data)===null||t===void 0?void 0:t.getHealthSummary,n.error)})}getAllergyIntolerances(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getAllergyIntolerances...");const a=yield this.handleQuery(ft(this,sr,"f").getAllergyIntolerances({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getAllergyIntolerances complete"),a.hasError()&&ft(this,Lt,"f").error("getAllergyIntolerances errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getAllergyIntolerances,a.error)})}getAllergyIntoleranceGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getAllergyIntoleranceGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getAllergyIntoleranceGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getAllergyIntoleranceGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getAllergyIntoleranceGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getAllergyIntoleranceGroups,a.error)})}getConditions(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getConditions...");const a=yield this.handleQuery(ft(this,sr,"f").getConditions({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getConditions complete"),a.hasError()&&ft(this,Lt,"f").error("getConditions errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getConditions,a.error)})}getConditionGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getConditionGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getConditionGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getConditionGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getConditionGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getConditionGroups,a.error)})}getDiagnosticReports(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getDiagnosticReports...");const i=yield this.handleQuery(ft(this,sr,"f").getDiagnosticReports(ft(this,zE,"f").create(t)));return ft(this,Lt,"f").verbose("getDiagnosticReports complete"),i.hasError()&&ft(this,Lt,"f").error("getDiagnosticReports errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.diagnosticReports,i.error)})}getDocumentReferences(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getDocumentReferences...");const a=yield this.handleQuery(ft(this,sr,"f").getDocumentReferences({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getDocumentReferences complete"),a.hasError()&&ft(this,Lt,"f").error("getDocumentReferences errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getDocumentReferences,a.error)})}getBinary(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getBinary...");const i=yield this.handleQuery(ft(this,sr,"f").getBinary({request:t.data()}));return ft(this,Lt,"f").verbose("getBinary complete"),i.hasError()&&ft(this,Lt,"f").error("getBinary errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getBinary,i.error)})}getLabs(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getLabs...");const a=yield this.handleQuery(ft(this,sr,"f").getLabs({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getLabs complete"),a.hasError()&&ft(this,Lt,"f").error("getLabs errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getLabs,a.error)})}getLabGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getLabGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getLabGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getLabGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getLabGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getLabGroups,a.error)})}getCarePlans(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getCarePlans...");const a=yield this.handleQuery(ft(this,sr,"f").getCarePlans({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getCarePlans complete"),a.hasError()&&ft(this,Lt,"f").error("getCarePlans errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCarePlans,a.error)})}getCarePlanGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getCarePlanGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getCarePlanGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getCarePlanGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getCarePlanGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCarePlanGroups,a.error)})}getCareTeams(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getCareTeams");const a=yield this.handleQuery(ft(this,sr,"f").getCareTeams({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getCareTeams complete"),a.hasError()&&ft(this,Lt,"f").error("getCareTeams errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCareTeams,a.error)})}getEncounters(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getEncounters...");const a=yield this.handleQuery(ft(this,sr,"f").getEncounterQuery({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getEncounters complete"),a.hasError()&&ft(this,Lt,"f").error("getEncounters errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getEncounters,a.error)})}getEncounterGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getEncounterGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getEncountersGroup({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getEncounterGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getEncounterGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getEncounterGroups,a.error)})}getImmunizations(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getImmunizations...");const a=yield this.handleQuery(ft(this,sr,"f").getImmunizations({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getImmunizations complete"),a.hasError()&&ft(this,Lt,"f").error("getImmunizations errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getImmunizations,a.error)})}getImmunizationGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getImmunizationGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getImmunizationGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getImmunizationGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getImmunizationGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getImmunizationGroups,a.error)})}getProcedures(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getProcedures...");const a=yield this.handleQuery(ft(this,sr,"f").GetProcedures({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getProcedures complete"),a.hasError()&&ft(this,Lt,"f").error("getProcedures errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getProcedures,a.error)})}getProcedureGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getProcedureGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getProcedureGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getProcedureGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getProcedureGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getProcedureGroups,a.error)})}getVitalSigns(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getVitalSigns...");const i=t?.data(),a=yield this.handleQuery(ft(this,sr,"f").getObservations({request:Object.assign(Object.assign({},i),{category:bh.VitalSigns})}));return ft(this,Lt,"f").verbose("getVitalSigns complete"),a.hasError()&&ft(this,Lt,"f").error("getVitalSigns errors",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getObservations,a.error)})}getVitalSignGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getVitalSignGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getVitalSignGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getVitalSignGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getVitalSignGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getVitalSignGroups,a.error)})}getDeviceMetrics(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getDeviceMetrics...");const i=t?.data(),a=yield this.handleQuery(ft(this,sr,"f").getObservations({request:Object.assign(Object.assign({},i),{category:bh.VitalSigns})}));return ft(this,Lt,"f").verbose("getDeviceMetrics complete"),a.hasError()&&ft(this,Lt,"f").error("getDeviceMetrics errors",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getObservations,a.error)})}getDeviceMetricGroups(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getDeviceMetricGroups...");const i=t?.data(),a=yield this.handleQuery(ft(this,sr,"f").getObservations({request:Object.assign(Object.assign({},i),{category:bh.VitalSigns})}));return ft(this,Lt,"f").verbose("getDeviceMetricGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getDeviceMetricGroups errors",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getObservations,a.error)})}getMedicationDispense(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationDispense...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationDispense({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationDispense complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationDispense errors",i.error),ft(this,YE,"f").create(i)})}getMedicationRequest(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationRequest...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationRequest({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationRequest complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationRequest errors",i.error),ft(this,HE,"f").create(i)})}getMedicationStatements(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationStatements...");const a=yield this.handleQuery(ft(this,sr,"f").getMedicationStatements({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationStatements complete"),a.hasError()&&ft(this,Lt,"f").error("getMedicationStatements errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getMedicationStatements,a.error)})}updateMedicationStatement(t){return Or(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();ft(this,Lt,"f").verbose("calling updateMedicationStatement...");const r=yield this.handleTransaction(ft(this,sr,"f").updateMedicationStatement(ft(this,WE,"f").create(t)));return ft(this,Lt,"f").verbose("updateMedicationStatement complete"),r.failure()?(ft(this,Lt,"f").error("updateMedicationStatement failed",r.error),r.intoFailure()):en.success(r.data().updateMedicationStatement)})}getMedicationGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getMedicationGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getMedicationGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getMedicationGroups,a.error)})}getMedicationKnowledge(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationKnowledge...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationKnowledge({request:t.data()}));return ft(this,Lt,"f").verbose("getMedicationKnowledge complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationKnowledge errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getMedicationKnowledge,i.error)})}getLabKnowledge(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getLabKnowledge...");const i=yield this.handleQuery(ft(this,sr,"f").getLabKnowledge({request:t.data()}));return ft(this,Lt,"f").verbose("getLabKnowledge complete"),i.hasError()&&ft(this,Lt,"f").error("getLabKnowledge errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getLabKnowledge,i.error)})}getMedicationPricing(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationPricing...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationPricing({request:t.data()}));return ft(this,Lt,"f").verbose("getMedicationPricing complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationPricing errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getMedicationPricing,i.error)})}getDiagnosticReportLabGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getDiagnosticReportLabGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getDiagnosticReportLabGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getDiagnosticReportLabGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getDiagnosticReportLabGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getDiagnosticReportLabGroups,a.error)})}}sr=new WeakMap,Lt=new WeakMap,HE=new WeakMap,YE=new WeakMap,zE=new WeakMap,WE=new WeakMap;class cQ{create(t){var n,r,i,a,c,f,y,h,m;const F=t.data();return{id:(n=F.id)!==null&&n!==void 0?n:null,lastUpdated:(r=F.lastUpdated)!==null&&r!==void 0?r:null,sort:(i=F.sort)!==null&&i!==void 0?i:null,pageSize:(a=F.pageSize)!==null&&a!==void 0?a:HP,page:F.page,questionnaire:(c=F.questionnaire)!==null&&c!==void 0?c:null,status:(f=F.status)!==null&&f!==void 0?f:null,patient:(y=F.patient)!==null&&y!==void 0?y:null,tag:(h=F.tag)!==null&&h!==void 0?h:null,total:(m=F.total)!==null&&m!==void 0?m:null}}}class mue{create(t){var n,r,i,a,c,f;const y=t.data();return{page:y.page,pageSize:y.pageSize,id:(n=y.id)!==null&&n!==void 0?n:null,sort:(r=y.sort)!==null&&r!==void 0?r:null,context:(i=y.context)!==null&&i!==void 0?i:null,identifier:(a=y.identifier)!==null&&a!==void 0?a:null,security:(c=y.security)!==null&&c!==void 0?c:null,tag:(f=y.tag)!==null&&f!==void 0?f:null}}}var Vh=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},lQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ei=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},wi,oc,lI,dI,fI;class vue extends Do{constructor(t,n=new Hi){super(),wi.set(this,void 0),oc.set(this,void 0),lI.set(this,new cQ),dI.set(this,new cQ),fI.set(this,new mue),lQ(this,oc,t,"f"),lQ(this,wi,n.getLogger("GraphQLQuestionnaireManager"),"f")}nextQuestion(t){return Vh(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n.intoFailure();ei(this,wi,"f").verbose("calling nextQuestion mutation...");const r=yield this.handleTransaction(ei(this,oc,"f").nextQuestion(t.data()));return ei(this,wi,"f").verbose("nextQuestion mutation complete"),r.failure()?(ei(this,wi,"f").error("nextQuestion mutation failed",r.error()),r.intoFailure()):(ei(this,wi,"f").info("successfully called nextQuestion mutation"),en.success(r.data().nextQuestion))})}saveQuestionnaireResponse(t){return Vh(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n.intoFailure();ei(this,wi,"f").verbose("calling saveQuestionnaireResponse mutation...");const r=yield this.handleTransaction(ei(this,oc,"f").saveQuestionnaireResponse(t.data()));return ei(this,wi,"f").verbose("saveQuestionnaireResponse mutation complete"),r.failure()?(ei(this,wi,"f").error("saveQuestionnaireResponse mutation failed",r.error()),r.intoFailure()):(ei(this,wi,"f").info("successfully called saveQuestionnaireResponse mutation"),en.success(r.data().saveQuestionnaireResponse))})}getQuestionnaireResponses(t){return Vh(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ei(this,wi,"f").verbose("calling getQuestionnaireResponses...");const i=yield this.handleQuery(ei(this,oc,"f").getQuestionnaireResponses(ei(this,lI,"f").create(t)));return ei(this,wi,"f").verbose("getQuestionnaireResponses complete"),i.hasError()&&ei(this,wi,"f").error("getQuestionnaireResponses errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.questionnaireResponses,i.error)})}getQuestionnaireResponseList(t){return Vh(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ei(this,wi,"f").verbose("calling getQuestionnaireResponseList...");const i=yield this.handleQuery(ei(this,oc,"f").getQuestionnaireResponseList(ei(this,dI,"f").create(t)));return ei(this,wi,"f").verbose("getQuestionnaireResponseList complete"),i.hasError()&&ei(this,wi,"f").error("getQuestionnaireResponseList errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.questionnaireResponses,i.error)})}getQuestionnaires(t){return Vh(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ei(this,wi,"f").verbose("calling getQuestionnaires...");const i=yield this.handleQuery(ei(this,oc,"f").getQuestionnaires(ei(this,fI,"f").create(t)));return ei(this,wi,"f").verbose("getQuestionnaires complete"),i.hasError()&&ei(this,wi,"f").error("getQuestionnaires errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.questionnaires,i.error)})}}wi=new WeakMap,oc=new WeakMap,lI=new WeakMap,dI=new WeakMap,fI=new WeakMap;class _I{create(t){var n,r,i,a,c,f,y,h,m;const F=t.data(),W=null,ye=(n=F.searchTerm)!==null&&n!==void 0?n:null,Te=(r=F.specialtyFilters)!==null&&r!==void 0?r:null,Re=(i=F.includePopulatedPROAonly)!==null&&i!==void 0?i:!1,Ye=(a=F.organizationTypeFilters)!==null&&a!==void 0?a:null,qe=(c=F.gender)!==null&&c!==void 0?c:null,Ke=(f=F.location)!==null&&f!==void 0?f:null;let Et=null;yr(F.sortBy)&&(Et={field:(y=F.sortBy.field)!==null&&y!==void 0?y:null,order:(h=F.sortBy.order)!==null&&h!==void 0?h:null});const Ut=(m=F.filterFields)!==null&&m!==void 0?m:null,dn=F.page,$n=F.pageSize;return{client:W,searchTerm:ye,specialtyFilters:Te,includePopulatedPROAonly:Re,organizationTypeFilters:Ye,gender:qe,location:Ke,sortBy:Et,filterFields:Ut,page:dn,pageSize:$n}}}var Eue=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},pI;class yue{constructor(){pI.set(this,new _I)}create(t){const n=Eue(this,pI,"f").create(t);return n.client={data_sets:[hE.Connecthub]},n}}pI=new WeakMap;var Tue=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},hI;class Aue{constructor(){hI.set(this,new _I)}create(t){const n=Tue(this,hI,"f").create(t);return n.client={data_sets:[hE.Nppes]},n}}hI=new WeakMap;class Cue{create(t){var n,r,i,a;const c=t.data();return{institution:(n=c.institution)!==null&&n!==void 0?n:null,provider:(r=c.provider)!==null&&r!==void 0?r:null,city:(i=c.city)!==null&&i!==void 0?i:null,state:(a=c.state)!==null&&a!==void 0?a:null}}}class bue{create(t){var n,r,i,a,c,f,y,h;const m=t.data();return{searchInput:{client:m.client,searchContext:m.searchContext,filters:(n=m.filters)!==null&&n!==void 0?n:null,orderBy:(r=m.orderBy)!==null&&r!==void 0?r:null,paging:{pageNumber:(i=m.page)!==null&&i!==void 0?i:null,pageSize:(a=m.pageSize)!==null&&a!==void 0?a:null},search:(c=m.search)!==null&&c!==void 0?c:null,searchLocation:(f=m.searchLocation)!==null&&f!==void 0?f:null,user:(y=m.user)!==null&&y!==void 0?y:null,filterValues:(h=m.filterValues)!==null&&h!==void 0?h:null}}}}var Bh=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},dQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Dr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},sc,Si,SI,gI,mI,vI,EI;class Oue extends Do{constructor(t,n=new Hi){super(),sc.set(this,void 0),Si.set(this,void 0),SI.set(this,new _I),gI.set(this,new Aue),mI.set(this,new yue),vI.set(this,new Cue),EI.set(this,new bue),dQ(this,sc,t,"f"),dQ(this,Si,n.getLogger("GraphQLSearchManager"),"f")}searchHealthResources(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling searchHealthResources query");const i=yield this.handleQuery(Dr(this,sc,"f").SearchHealthResources(Dr(this,EI,"f").create(t)));return Dr(this,Si,"f").verbose("searchHealthResources query complete"),i.hasError()?Dr(this,Si,"f").error("searchHealthResources query failed",i.error):Dr(this,Si,"f").info("successfully called searchHealthResources query"),new Zt((n=i.data)===null||n===void 0?void 0:n.searchHealthResources,i.error)})}search(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling providerSearch search query");const i=yield this.handleQuery(Dr(this,sc,"f").providerSearch(Dr(this,SI,"f").create(t)));return Dr(this,Si,"f").verbose("providerSearch search query complete"),i.hasError()?Dr(this,Si,"f").error("providerSearch search query failed",i.error):Dr(this,Si,"f").info("successfully called providerSearch search query"),new Zt((n=i.data)===null||n===void 0?void 0:n.providers,i.error)})}searchProviders(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling providerSearch searchProviders query");const i=yield this.handleQuery(Dr(this,sc,"f").providerSearch(Dr(this,gI,"f").create(t)));return Dr(this,Si,"f").verbose("providerSearch searchProviders query complete"),i.hasError()?Dr(this,Si,"f").error("providerSearch searchProviders query failed",i.error):Dr(this,Si,"f").info("successfully called providerSearch searchProviders query"),new Zt((n=i.data)===null||n===void 0?void 0:n.providers,i.error)})}searchConnections(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling providerSearch searchConnections query");const i=yield this.handleQuery(Dr(this,sc,"f").providerSearch(Dr(this,mI,"f").create(t)));return Dr(this,Si,"f").verbose("providerSearch searchConnections query complete"),i.hasError()?Dr(this,Si,"f").error("providerSearch searchConnections query failed",i.error):Dr(this,Si,"f").info("successfully called providerSearch searchConnections query"),new Zt((n=i.data)===null||n===void 0?void 0:n.providers,i.error)})}requestConnection(t){return Bh(this,void 0,void 0,function*(){Dr(this,Si,"f").verbose("calling requestConnection mutation");const n=yield this.handleTransaction(Dr(this,sc,"f").requestConnection(Dr(this,vI,"f").create(t)));return Dr(this,Si,"f").verbose("requestConnection mutation complete"),n.failure()?(Dr(this,Si,"f").error("requestConnection mutation failed",n),n.intoFailure()):(Dr(this,Si,"f").info("requestConnection request success"),en.success(n.data().requestConnection))})}}sc=new WeakMap,Si=new WeakMap,SI=new WeakMap,gI=new WeakMap,mI=new WeakMap,vI=new WeakMap,EI=new WeakMap;class Rue{create(t){const n=t.data();return{input:{requestId:n.requestId,body:n.body,uploads:n.uploads}}}}class Pue{create(t){const n=t.data();return{input:{subject:n.subject,comment:{body:n.comment.body,uploads:n.comment.uploads},fields:{category:n.fields.category},email:n.email,name:n.name}}}}class Mue{create(t){return{input:{attachmentId:t.data().attachmentId}}}}class Iue{create(t){var n,r,i,a,c;const f=t.data();return{input:{page:(n=f?.page)!==null&&n!==void 0?n:null,pageSize:(r=f?.pageSize)!==null&&r!==void 0?r:null,search:(i=f?.search)!==null&&i!==void 0?i:null,labelNames:(a=f?.labelNames)!==null&&a!==void 0?a:null,locale:(c=f?.locale)!==null&&c!==void 0?c:null}}}}class Nue{create(t){const n=t.data();return{input:{requestId:n.requestId,attachmentId:n.attachmentId}}}}class Lue{create(t){var n,r,i;const a=t.data();return{input:{requestId:a.requestId,page:(n=a.page)!==null&&n!==void 0?n:null,pageSize:(r=a.pageSize)!==null&&r!==void 0?r:null,sortOrder:(i=a.sortOrder)!==null&&i!==void 0?i:null}}}}class Due{create(t){var n,r,i,a,c,f;const y=t?.data();return{input:{page:(n=y?.page)!==null&&n!==void 0?n:null,pageSize:(r=y?.pageSize)!==null&&r!==void 0?r:null,search:(i=y?.search)!==null&&i!==void 0?i:null,sortBy:(a=y?.sortBy)!==null&&a!==void 0?a:null,sortOrder:(c=y?.sortOrder)!==null&&c!==void 0?c:null,status:(f=y?.status)!==null&&f!==void 0?f:[],ids:y?.ids}}}}class wue{create(t){const n=t.data();return{input:{file:n.file,fileName:n.fileName}}}}var _u=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},Fs=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Tn=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Uo,gr,KE,XE,JE,ZE,ey,ty,ny,ry;class Uue extends Do{constructor(t,n=new Hi,r=new Due,i=new wue,a=new Mue,c=new Pue,f=new Iue,y=new Lue,h=new Rue,m=new Nue){super(),Uo.set(this,void 0),gr.set(this,void 0),KE.set(this,void 0),XE.set(this,void 0),JE.set(this,void 0),ZE.set(this,void 0),ey.set(this,void 0),ty.set(this,void 0),ny.set(this,void 0),ry.set(this,void 0),Fs(this,Uo,t,"f"),Fs(this,gr,n.getLogger("GraphQLSupportManager"),"f"),Fs(this,KE,r,"f"),Fs(this,XE,i,"f"),Fs(this,JE,a,"f"),Fs(this,ZE,c,"f"),Fs(this,ey,f,"f"),Fs(this,ty,y,"f"),Fs(this,ny,h,"f"),Fs(this,ry,m,"f")}getSupportRequests(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,KE,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportRequests query...");const a=yield this.handleQuery(Tn(this,Uo,"f").getSupportRequests(i));return Tn(this,gr,"f").verbose("getSupportRequests query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportRequests query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportRequests,a.error)})}uploadSupportAttachment(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,XE,"f").create(t);Tn(this,gr,"f").verbose("calling uploadSupportAttachment mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").UploadSupportAttachment(r));return Tn(this,gr,"f").verbose("uploadSupportAttachment mutation complete."),i.failure()?(Tn(this,gr,"f").error("uploadSupportAttachment mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("uploadSupportAttachment mutation success"),en.success(i.data().uploadSupportAttachment))})}deleteSupportAttachment(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,JE,"f").create(t);Tn(this,gr,"f").verbose("calling deleteSupportAttachment mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").DeleteSupportAttachment(r));return Tn(this,gr,"f").verbose("deleteSupportAttachment mutation complete."),i.failure()?(Tn(this,gr,"f").error("deleteSupportAttachment mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("deleteSupportAttachment mutation success"),en.success(i.data().deleteSupportAttachment))})}createSupportRequest(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,ZE,"f").create(t);Tn(this,gr,"f").verbose("calling createSupportRequest mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").CreateSupportRequest(r));return Tn(this,gr,"f").verbose("createSupportRequest mutation complete."),i.failure()?(Tn(this,gr,"f").error("createSupportRequest mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("createSupportRequest mutation success"),en.success(i.data().createSupportRequest))})}getSupportCategories(){return _u(this,void 0,void 0,function*(){var t;Tn(this,gr,"f").verbose("calling getSupportCategories query...");const n=yield this.handleQuery(Tn(this,Uo,"f").GetSupportCategories());return Tn(this,gr,"f").verbose("getSupportCategories query complete."),n.hasError()&&Tn(this,gr,"f").error("getSupportCategories query error",n.error),new Zt((t=n.data)===null||t===void 0?void 0:t.getSupportCategories,n.error)})}getSupportArticles(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,ey,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportArticles query...");const a=yield this.handleQuery(Tn(this,Uo,"f").getSupportArticles(i));return Tn(this,gr,"f").verbose("getSupportArticles query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportArticles query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportArticles,a.error)})}getSupportComments(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,ty,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportComments query...");const a=yield this.handleQuery(Tn(this,Uo,"f").getSupportComments(i));return Tn(this,gr,"f").verbose("getSupportComments query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportComments query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportComments,a.error)})}createSupportComment(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,ny,"f").create(t);Tn(this,gr,"f").verbose("calling createSupportComment mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").CreateSupportComment(r));return Tn(this,gr,"f").verbose("createSupportComment mutation complete."),i.failure()?(Tn(this,gr,"f").error("createSupportComment mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("createSupportComment mutation success"),en.success(i.data().createSupportComment))})}getSupportAttachment(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,ry,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportAttachment query...");const a=yield this.handleQuery(Tn(this,Uo,"f").GetSupportAttachment(i));return Tn(this,gr,"f").verbose("getSupportAttachment query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportAttachment query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportAttachment,a.error)})}}Uo=new WeakMap,gr=new WeakMap,KE=new WeakMap,XE=new WeakMap,JE=new WeakMap,ZE=new WeakMap,ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,ry=new WeakMap;const $ue="http://www.icanbwell.com/consent-category";class Gue{create(t){const n=t.data(),r={status:n.status,provision:{type:n.provision}};return yr(n.organizationId)&&(r.organization=[{type:"Organization",reference:`Organization/${n.organizationId}`}]),yr(n.category)&&(r.category=[{coding:[{system:$ue,code:n.category}]}]),{consentInput:r}}}class Fue{create(t){const n=t.data();return{exportId:n.exportId,password:n.password}}}class xue{create(t){var n,r;const i=t.data();return{callbackURL:(n=i.callbackUrl)!==null&&n!==void 0?n:null,includeAttributeMatchingCheck:(r=i.includeAttributeMatchingCheck)!==null&&r!==void 0?r:null}}}class Vue{create(t){return{categoryCode:t.data().category}}}var Ff=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},uc,yI,fQ,_Q,pQ,hQ;class Bue{constructor(){uc.add(this)}create(t){const n=t.data(),r={resourceType:ZP.Person};return Ff(this,uc,"m",yI).call(this,"id",n.id,r),Ff(this,uc,"m",yI).call(this,"birthDate",n.birthDate,r),Ff(this,uc,"m",fQ).call(this,n,r),Ff(this,uc,"m",pQ).call(this,n,r),Ff(this,uc,"m",_Q).call(this,n,r),Ff(this,uc,"m",hQ).call(this,n,r),{person:r}}}uc=new WeakSet,yI=function(t,n,r){Wa(n)||(r[t]=n)},fQ=function(t,n){let r=!1;const{firstName:i,lastName:a}=t,c={};jn(i)&&(r=!0,c.given=[i]),jn(a)&&(r=!0,c.family=a),r&&(n.name=[c])},_Q=function(t,n){let r=!1;const{addressUnit:i,addressStreet:a,city:c,stateOrProvidence:f,postageOrZipCode:y}=t,h={};if(jn(i)||jn(a)){r=!0;const m=[];jn(a)&&m.push(a),jn(i)&&m.push(i),h.line=m}jn(c)&&(r=!0,h.city=c),jn(f)&&(r=!0,h.state=f),jn(y)&&(r=!0,h.postalCode=y),r&&(n.address=[h])},pQ=function(t,n){const r=t.gender;Wa(r)||(n.gender=r)},hQ=function(t,n){const r=[],{homePhone:i,mobilePhone:a,workPhone:c,email:f}=t;jn(i)&&r.push({system:"phone",use:"home",value:i}),jn(a)&&r.push({system:"phone",use:"mobile",value:a}),jn(c)&&r.push({system:"phone",use:"work",value:c}),jn(f)&&r.push({system:"email",value:f}),r.length!==0&&(n.telecom=r)};var cc=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},SQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Nn=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},fs,ur,TI,AI,CI,bI,OI;class kue extends Do{constructor(t,n=new Hi){super(),fs.set(this,void 0),ur.set(this,void 0),TI.set(this,new Gue),AI.set(this,new Bue),CI.set(this,new Vue),bI.set(this,new Fue),OI.set(this,new xue),SQ(this,fs,t,"f"),SQ(this,ur,n.getLogger("GraphQLUserManager"),"f")}getProfile(){return cc(this,void 0,void 0,function*(){var t;Nn(this,ur,"f").verbose("calling getProfile...");const n=yield this.handleQuery(Nn(this,fs,"f").getProfile());return Nn(this,ur,"f").verbose("getProfile complete"),n.hasError()?Nn(this,ur,"f").error("getProfile failed",n.error):Nn(this,ur,"f").info("successfully called getProfile"),new Zt((t=n.data)===null||t===void 0?void 0:t.userProfile,n.error)})}delete(){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling delete...");const t=yield this.handleTransaction(Nn(this,fs,"f").delete());return Nn(this,ur,"f").verbose("delete complete"),t.failure()?(Nn(this,ur,"f").error("delete failed",t.error),t.intoFailure()):(Nn(this,ur,"f").info("successfully called delete"),en.success(null))})}updateProfile(t){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling updateUserProfile");const n=yield this.handleTransaction(Nn(this,fs,"f").updateUserProfile(Nn(this,AI,"f").create(t)));return Nn(this,ur,"f").verbose("updateUserProfile complete"),n.failure()?(Nn(this,ur,"f").error("updateUserProfile error",n),n.intoFailure()):(Nn(this,ur,"f").info("updateUserProfile success"),en.success(n.data().updateUserProfile))})}getConsents(t){return cc(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();Nn(this,ur,"f").verbose("calling consent search query...");let i;t!==void 0&&(i=Nn(this,CI,"f").create(t));const a=yield this.handleQuery(Nn(this,fs,"f").searchConsent(i));return Nn(this,ur,"f").verbose("consent search query complete"),a.hasError()?Nn(this,ur,"f").error("consent search failed",a.error):Nn(this,ur,"f").info("successfully called consent search query"),new Zt((n=a.data)===null||n===void 0?void 0:n.search,a.error)})}createConsent(t){return cc(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n;Nn(this,ur,"f").verbose("calling createConsent mutation...");const r=yield this.handleTransaction(Nn(this,fs,"f").createConsent(Nn(this,TI,"f").create(t)));return Nn(this,ur,"f").verbose("createConsent mutation complete"),r.failure()?(Nn(this,ur,"f").error("createConsent mutation error",r),r.intoFailure()):(Nn(this,ur,"f").info("createConsent mutation success"),en.success(r.data().createConsent))})}createDataExportDirectDownloadUrl(t){return cc(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n;Nn(this,ur,"f").verbose("calling createDataExportDirectDownloadUrl mutation...");const r=yield this.handleTransaction(Nn(this,fs,"f").CreateDataExportDirectDownloadUrl(Nn(this,bI,"f").create(t)));return Nn(this,ur,"f").verbose("createDataExportDirectDownloadUrl mutation complete"),r.failure()?(Nn(this,ur,"f").error("createDataExportDirectDownloadUrl mutation error",r),r.intoFailure()):(Nn(this,ur,"f").info("createDataExportDirectDownloadUrl mutation success"),en.success(r.data().createDataExportDirectDownloadUrl))})}createVerificationUrl(t){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling createVerificationUrl mutation...");const n=yield this.handleTransaction(Nn(this,fs,"f").CreateVerificationUrl(Nn(this,OI,"f").create(t)));return Nn(this,ur,"f").verbose("createVerificationUrl complete"),n.failure()?(Nn(this,ur,"f").error("createVerificationUrl error",n),n.intoFailure()):(Nn(this,ur,"f").info("createVerificationUrl success"),en.success(n.data().createVerificationUrl))})}getVerificationStatus(){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling getVerificationStatus query...");const t=yield this.handleTransaction(Nn(this,fs,"f").VerificationStatus());return Nn(this,ur,"f").verbose("getVerificationStatus complete"),t.failure()?(Nn(this,ur,"f").error("getVerificationStatus error",t),t.intoFailure()):(Nn(this,ur,"f").info("getVerificationStatus success"),en.success(t.data().verificationStatus))})}}fs=new WeakMap,ur=new WeakMap,TI=new WeakMap,AI=new WeakMap,CI=new WeakMap,bI=new WeakMap,OI=new WeakMap;var gQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},$o=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},iy,Ka;class jue{constructor(t,n,r){iy.set(this,void 0),Ka.set(this,void 0),gQ(this,iy,n.getLogger("GraphQLAPIProvider"),"f"),gQ(this,Ka,t,"f"),$o(this,iy,"f").verbose("initializing GraphQLClient"),this.activity=new Hse($o(this,Ka,"f"),n),this.connection=new Yse($o(this,Ka,"f"),n),this.device=new Xse($o(this,Ka,"f"),n),this.event=new eue($o(this,Ka,"f"),n),this.health=new gue($o(this,Ka,"f"),n),this.financial=new iue($o(this,Ka,"f"),n),this.healthSpace=new fue($o(this,Ka,"f"),n),this.user=new kue($o(this,Ka,"f"),n),this.search=new Oue($o(this,Ka,"f"),n),this.questionnaire=new vue($o(this,Ka,"f"),n),this.support=new Uue($o(this,Ka,"f"),n),this.language=new Vse(r)}}iy=new WeakMap,Ka=new WeakMap;class Que{createApiProvider(t,n,r){const{sdk:i,client:a}=Xj(t.graphQL.apiUrl,n,t.bwellConfig.language);return new jue(i,r,a)}}var xf=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},mQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},wr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},pu,Yr;class que extends Do{constructor(t,n=new Hi){super(),pu.set(this,void 0),Yr.set(this,void 0),mQ(this,pu,t,"f"),mQ(this,Yr,n.getLogger("GraphQLIdentityManager"),"f")}initialize(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing initialize query...",{clientKey:t});const n=yield this.handleTransaction(wr(this,pu,"f").initialize({clientKey:t}));return wr(this,Yr,"f").verbose("initialize query complete",n),n.failure()?(wr(this,Yr,"f").error("initialize failed.",n),n.intoFailure()):(wr(this,Yr,"f").info("successfully called initialize"),en.success(n.data().initSdk))})}authenticateWithOauth(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("exectuting oauth authenticate query...");const n=yield this.handleTransaction(wr(this,pu,"f").authenticate({},{Authorization:t.jweToken,ClientKey:t.clientKey}));if(wr(this,Yr,"f").verbose("oauth authenticate query complete",n),n.failure())return wr(this,Yr,"f").error("oauth authenticate failed",n),n.intoFailure();wr(this,Yr,"f").info("oauth authenticate success");const r=n.data(),i={accessToken:r.getToken.accessToken.jwtToken,idToken:r.getToken.idToken.jwtToken,refreshToken:r.getToken.refreshToken.token};return en.success(i)})}authenticateWithUsernamePassword(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("exectuting username/password authenticate query...");const n=yield this.handleTransaction(wr(this,pu,"f").login({email:t.email,password:t.password},{ClientKey:t.clientKey}));if(wr(this,Yr,"f").verbose("username/password authenticate query complete",n),n.failure())return wr(this,Yr,"f").error("username/password authenticate failed",n),n.intoFailure();wr(this,Yr,"f").info("username/password authenticate success");const r=n.data(),i={accessToken:r.login.accessToken.jwtToken,idToken:r.login.idToken.jwtToken,refreshToken:r.login.refreshToken.token};return en.success(i)})}authenticateWithAuthCode(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing authenticateWithAuthCode query...");const n=yield this.handleTransaction(wr(this,pu,"f").ExchangeAuthCode({authCode:t.authCode}));if(wr(this,Yr,"f").verbose("authenticateWithAuthCode query complete",n),n.failure())return wr(this,Yr,"f").error("authenticateWithAuthCode failed",n),n.intoFailure();wr(this,Yr,"f").info("authenticateWithAuthCode successful");const r=n.data(),i={accessToken:r.exchangeAuthCode.accessToken.jwtToken,idToken:r.exchangeAuthCode.idToken.jwtToken,refreshToken:r.exchangeAuthCode.refreshToken.token};return en.success(i)})}refreshAccessToken(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing refreshAccessToken query...");const n=yield this.handleTransaction(wr(this,pu,"f").refreshTokens({},{refresh_token:t.refreshToken,clientkey:t.clientKey}));return wr(this,Yr,"f").verbose("refreshAccessToken query complete",n),n.failure()?(wr(this,Yr,"f").error("refreshAccessToken failed",n),n.intoFailure()):(wr(this,Yr,"f").info("refreshAccessToken successful"),en.success(n.data().refresh))})}createGuestAccessToken(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing createGuestAccessToken mutation...",t);const n=yield this.handleTransaction(wr(this,pu,"f").createGuestAccessToken(t));if(wr(this,Yr,"f").verbose("createGuestAccessToken mutation complete",n),n.failure())return wr(this,Yr,"f").error("createGuestAccessToken failed",n),n.intoFailure();wr(this,Yr,"f").info("createGuestAccessToken successful");const r=n.data();return en.success(r.createGuestAccessToken)})}}pu=new WeakMap,Yr=new WeakMap;class Hue{createIdentityManager(t,n){const{sdk:r}=Xj(t.graphQL.unauthApiUrl);return new que(r,n)}}function RI(e,t){const n=Object.keys(e);return n.length===t.length&&n.every(r=>t.includes(r))}function vQ(e){return"token"in e&&RI(e,["token"])}function EQ(e){return"email"in e&&"password"in e&&RI(e,["email","password"])}function yQ(e){return"authCode"in e&&RI(e,["authCode"])}var Yue=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},PI=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},kh=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ay,Vf,oy;class zue{constructor(t,n,r=new Hi){ay.set(this,void 0),Vf.set(this,void 0),oy.set(this,void 0),PI(this,ay,n,"f"),PI(this,oy,t,"f"),PI(this,Vf,r.getLogger("OAuthStrategy"),"f")}authenticate(t){return Yue(this,void 0,void 0,function*(){if(!vQ(t))return kh(this,Vf,"f").error("Incorrect credentials type provided to OAuthStrategy"),en.failure(new kP("Expected OAuthCredentials",t));kh(this,Vf,"f").verbose("authenticating via OAuth strategy...");const n=yield kh(this,ay,"f").authenticateWithOauth({jweToken:t.token,clientKey:kh(this,oy,"f").context.clientKey});return kh(this,Vf,"f").verbose("finished OAuth authentication"),n})}}ay=new WeakMap,Vf=new WeakMap,oy=new WeakMap;var Wue=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},MI=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},jh=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},sy,Bf,uy;class Kue{constructor(t,n,r=new Hi){sy.set(this,void 0),Bf.set(this,void 0),uy.set(this,void 0),MI(this,sy,n,"f"),MI(this,uy,t,"f"),MI(this,Bf,r.getLogger("AuthCodeStrategy"),"f")}authenticate(t){return Wue(this,void 0,void 0,function*(){if(!yQ(t))return jh(this,Bf,"f").error("Incorrect credentials type provided to AuthCodeStrategy"),en.failure(new kP("Expected AuthCodeCredentials",t));jh(this,Bf,"f").verbose("authenticating via AuthCode strategy...");const n=yield jh(this,sy,"f").authenticateWithAuthCode({authCode:t.authCode,clientKey:jh(this,uy,"f").context.clientKey});return jh(this,Bf,"f").verbose("finished AuthCode authentication"),n})}}sy=new WeakMap,Bf=new WeakMap,uy=new WeakMap;var Xue=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},II=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Qh=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},cy,kf,ly;class Jue{constructor(t,n,r=new Hi){cy.set(this,void 0),kf.set(this,void 0),ly.set(this,void 0),II(this,cy,n,"f"),II(this,ly,t,"f"),II(this,kf,r.getLogger("UsernamePasswordStrategy"),"f")}authenticate(t){return Xue(this,void 0,void 0,function*(){if(!EQ(t))return Qh(this,kf,"f").error("Invalid credentials type provided to UsernamePasswordStrategy. Please provide username and password."),en.failure(new kP("Expected UserPassCredentials",t));Qh(this,kf,"f").verbose("authenticating via UsernamePassword strategy...");const n=yield Qh(this,cy,"f").authenticateWithUsernamePassword({clientKey:Qh(this,ly,"f").context.clientKey,email:t.email,password:t.password});return Qh(this,kf,"f").verbose("finished OAuth authentication"),n})}}cy=new WeakMap,kf=new WeakMap,ly=new WeakMap;class Zue{createAuthStrategy(t,n,r,i=new Hi){if(EQ(r))return new Jue(t,n,i);if(vQ(r))return new zue(t,n,i);if(yQ(r))return new Kue(t,n,i);throw new Error("Invalid credentials type provided; expected UserPassCredentials, OauthCredentials or AuthCodeCredentials.")}}var ece=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{},Pl="1.9.0",TQ=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function tce(e){var t=new Set([e]),n=new Set,r=e.match(TQ);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(y){return y===e};function a(f){return n.add(f),!1}function c(f){return t.add(f),!0}return function(y){if(t.has(y))return!0;if(n.has(y))return!1;var h=y.match(TQ);if(!h)return a(y);var m={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};return m.prerelease!=null||i.major!==m.major?a(y):i.major===0?i.minor===m.minor&&i.patch<=m.patch?c(y):a(y):i.minor<=m.minor?c(y):a(y)}}var nce=tce(Pl),rce=Pl.split(".")[0],qh=Symbol.for("opentelemetry.js.api."+rce),Hh=ece;function Yh(e,t,n,r){var i;r===void 0&&(r=!1);var a=Hh[qh]=(i=Hh[qh])!==null&&i!==void 0?i:{version:Pl};if(!r&&a[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(a.version!==Pl){var c=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+Pl);return n.error(c.stack||c.message),!1}return a[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+Pl+"."),!0}function Ml(e){var t,n,r=(t=Hh[qh])===null||t===void 0?void 0:t.version;if(!(!r||!nce(r)))return(n=Hh[qh])===null||n===void 0?void 0:n[e]}function zh(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Pl+".");var n=Hh[qh];n&&delete n[e]}function dy(e){return Symbol.for(e)}var ice=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var a=new e(n._currentContext);return a._currentContext.set(r,i),a},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),jf=new ice,ace=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},oce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},sce=function(){function e(){}return e.prototype.active=function(){return jf},e.prototype.with=function(t,n,r){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return n.call.apply(n,oce([r],ace(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),uce=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},cce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},lce=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("verbose",this._namespace,t)},e}();function Wh(e,t,n){var r=Ml("diag");if(!!r)return n.unshift(t),r[e].apply(r,cce([],uce(n),!1))}var xr;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(xr||(xr={}));function dce(e,t){e<xr.NONE?e=xr.NONE:e>xr.ALL&&(e=xr.ALL),t=t||{};function n(r,i){var a=t[r];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:n("error",xr.ERROR),warn:n("warn",xr.WARN),info:n("info",xr.INFO),debug:n("debug",xr.DEBUG),verbose:n("verbose",xr.VERBOSE)}}var fce=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},_ce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},pce="diag",xs=function(){function e(){function t(i){return function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var f=Ml("diag");if(!!f)return f[i].apply(f,_ce([],fce(a),!1))}}var n=this,r=function(i,a){var c,f,y;if(a===void 0&&(a={logLevel:xr.INFO}),i===n){var h=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((c=h.stack)!==null&&c!==void 0?c:h.message),!1}typeof a=="number"&&(a={logLevel:a});var m=Ml("diag"),F=dce((f=a.logLevel)!==null&&f!==void 0?f:xr.INFO,i);if(m&&!a.suppressOverrideMessage){var W=(y=new Error().stack)!==null&&y!==void 0?y:"<failed to generate stacktrace>";m.warn("Current logger will be overwritten from "+W),F.warn("Current logger will overwrite one already registered from "+W)}return Yh("diag",F,n,!0)};n.setLogger=r,n.disable=function(){zh(pce,n)},n.createComponentLogger=function(i){return new lce(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),hce=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Sce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},NI="context",gce=new sce,fy=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Yh(NI,t,xs.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,a=[],c=3;c<arguments.length;c++)a[c-3]=arguments[c];return(i=this._getContextManager()).with.apply(i,Sce([t,n,r],hce(a),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return Ml(NI)||gce},e.prototype.disable=function(){this._getContextManager().disable(),zh(NI,xs.instance())},e}(),Vs;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Vs||(Vs={}));var AQ="0000000000000000",CQ="00000000000000000000000000000000",bQ={traceId:CQ,spanId:AQ,traceFlags:Vs.NONE},Kh=function(){function e(t){t===void 0&&(t=bQ),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),LI=dy("OpenTelemetry Context Key SPAN");function DI(e){return e.getValue(LI)||void 0}function mce(){return DI(fy.getInstance().active())}function wI(e,t){return e.setValue(LI,t)}function vce(e){return e.deleteValue(LI)}function Ece(e,t){return wI(e,new Kh(t))}function OQ(e){var t;return(t=DI(e))===null||t===void 0?void 0:t.spanContext()}var yce=/^([0-9a-f]{32})$/i,Tce=/^[0-9a-f]{16}$/i;function RQ(e){return yce.test(e)&&e!==CQ}function Ace(e){return Tce.test(e)&&e!==AQ}function Qf(e){return RQ(e.traceId)&&Ace(e.spanId)}function Cce(e){return new Kh(e)}var UI=fy.getInstance(),PQ=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=UI.active());var i=Boolean(n?.root);if(i)return new Kh;var a=r&&OQ(r);return bce(a)&&Qf(a)?new Kh(a):new Kh},e.prototype.startActiveSpan=function(t,n,r,i){var a,c,f;if(!(arguments.length<2)){arguments.length===2?f=n:arguments.length===3?(a=n,f=r):(a=n,c=r,f=i);var y=c??UI.active(),h=this.startSpan(t,a,y),m=wI(y,h);return UI.with(m,f,void 0,h)}},e}();function bce(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Oce=new PQ,Rce=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Oce},e}(),Pce=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new PQ},e}(),Mce=new Pce,MQ=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new Rce(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Mce},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),$I="trace",Ice=function(){function e(){this._proxyTracerProvider=new MQ,this.wrapSpanContext=Cce,this.isSpanContextValid=Qf,this.deleteSpan=vce,this.getSpan=DI,this.getActiveSpan=mce,this.getSpanContext=OQ,this.setSpan=wI,this.setSpanContext=Ece}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Yh($I,this._proxyTracerProvider,xs.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return Ml($I)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){zh($I,xs.instance()),this._proxyTracerProvider=new MQ},e}(),Ea=Ice.getInstance(),GI=dy("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Nce(e){return e.setValue(GI,!0)}function N1e(e){return e.deleteValue(GI)}function Lce(e){return e.getValue(GI)===!0}var FI="[_0-9a-z-*/]",Dce="[a-z]"+FI+"{0,255}",wce="[a-z0-9]"+FI+"{0,240}@[a-z]"+FI+"{0,13}",Uce=new RegExp("^(?:"+Dce+"|"+wce+")$"),$ce=/^[ -~]{0,255}[!-~]$/,Gce=/,|=/;function Fce(e){return Uce.test(e)}function xce(e){return $ce.test(e)&&!Gce.test(e)}var IQ=32,Vce=512,NQ=",",LQ="=",Bce=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,n){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r},e.prototype.unset=function(t){var n=this._clone();return n._internalState.delete(t),n},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(n,r){return n.push(r+LQ+t.get(r)),n},[]).join(NQ)},e.prototype._parse=function(t){t.length>Vce||(this._internalState=t.split(NQ).reverse().reduce(function(n,r){var i=r.trim(),a=i.indexOf(LQ);if(a!==-1){var c=i.slice(0,a),f=i.slice(a+1,r.length);Fce(c)&&xce(f)&&n.set(c,f)}return n},new Map),this._internalState.size>IQ&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,IQ))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),xI="traceparent",VI="tracestate",kce="00",jce="(?!ff)[\\da-f]{2}",Qce="(?![0]{32})[\\da-f]{32}",qce="(?![0]{16})[\\da-f]{16}",Hce="[\\da-f]{2}",Yce=new RegExp("^\\s?("+jce+")-("+Qce+")-("+qce+")-("+Hce+")(-.*)?\\s?$");function zce(e){var t=Yce.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Wce=function(){function e(){}return e.prototype.inject=function(t,n,r){var i=Ea.getSpanContext(t);if(!(!i||Lce(t)||!Qf(i))){var a=kce+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Vs.NONE).toString(16);r.set(n,xI,a),i.traceState&&r.set(n,VI,i.traceState.serialize())}},e.prototype.extract=function(t,n,r){var i=r.get(n,xI);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var c=zce(a);if(!c)return t;c.isRemote=!0;var f=r.get(n,VI);if(f){var y=Array.isArray(f)?f.join(","):f;c.traceState=new Bce(typeof y=="string"?y:void 0)}return Ea.setSpanContext(t,c)},e.prototype.fields=function(){return[xI,VI]},e}(),Kce=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{},Il="1.6.0",DQ=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Xce(e){var t=new Set([e]),n=new Set,r=e.match(DQ);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(y){return y===e};function a(f){return n.add(f),!1}function c(f){return t.add(f),!0}return function(y){if(t.has(y))return!0;if(n.has(y))return!1;var h=y.match(DQ);if(!h)return a(y);var m={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};return m.prerelease!=null||i.major!==m.major?a(y):i.major===0?i.minor===m.minor&&i.patch<=m.patch?c(y):a(y):i.minor<=m.minor?c(y):a(y)}}var Jce=Xce(Il),Zce=Il.split(".")[0],Xh=Symbol.for("opentelemetry.js.api."+Zce),Jh=Kce;function ele(e,t,n,r){var i;r===void 0&&(r=!1);var a=Jh[Xh]=(i=Jh[Xh])!==null&&i!==void 0?i:{version:Il};if(!r&&a[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(a.version!==Il){var c=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+Il);return n.error(c.stack||c.message),!1}return a[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+Il+"."),!0}function BI(e){var t,n,r=(t=Jh[Xh])===null||t===void 0?void 0:t.version;if(!(!r||!Jce(r)))return(n=Jh[Xh])===null||n===void 0?void 0:n[e]}function tle(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Il+".");var n=Jh[Xh];n&&delete n[e]}var nle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},rle=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ile=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("verbose",this._namespace,t)},e}();function Zh(e,t,n){var r=BI("diag");if(!!r)return n.unshift(t),r[e].apply(r,rle([],nle(n),!1))}var Ri;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ri||(Ri={}));function ale(e,t){e<Ri.NONE?e=Ri.NONE:e>Ri.ALL&&(e=Ri.ALL),t=t||{};function n(r,i){var a=t[r];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:n("error",Ri.ERROR),warn:n("warn",Ri.WARN),info:n("info",Ri.INFO),debug:n("debug",Ri.DEBUG),verbose:n("verbose",Ri.VERBOSE)}}var ole=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},sle=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ule="diag",wQ=function(){function e(){function t(i){return function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var f=BI("diag");if(!!f)return f[i].apply(f,sle([],ole(a),!1))}}var n=this,r=function(i,a){var c,f,y;if(a===void 0&&(a={logLevel:Ri.INFO}),i===n){var h=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((c=h.stack)!==null&&c!==void 0?c:h.message),!1}typeof a=="number"&&(a={logLevel:a});var m=BI("diag"),F=ale((f=a.logLevel)!==null&&f!==void 0?f:Ri.INFO,i);if(m&&!a.suppressOverrideMessage){var W=(y=new Error().stack)!==null&&y!==void 0?y:"<failed to generate stacktrace>";m.warn("Current logger will be overwritten from "+W),F.warn("Current logger will overwrite one already registered from "+W)}return ele("diag",F,n,!0)};n.setLogger=r,n.disable=function(){tle(ule,n)},n.createComponentLogger=function(i){return new ile(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),lc=wQ.instance(),cle=function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),lle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},dle=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},fle=function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new cle}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,dle([this._that],lle(r),!1))).then(function(a){return n._deferred.resolve(a)},function(a){return n._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),qf;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(qf||(qf={}));var kI;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(kI||(kI={}));var _le=",",ple=["OTEL_SDK_DISABLED"];function hle(e){return ple.indexOf(e)>-1}var Sle=["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 gle(e){return Sle.indexOf(e)>-1}var mle=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function vle(e){return mle.indexOf(e)>-1}var jI=1/0,QI=128,Ele=128,yle=128,UQ={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:Ri.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:jI,OTEL_ATTRIBUTE_COUNT_LIMIT:QI,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:jI,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:QI,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:jI,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:QI,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ele,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:yle,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:kI.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"};function Tle(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function Ale(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function Cle(e,t,n,r){r===void 0&&(r=_le);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(a){return a.trim()}))}var ble={ALL:Ri.ALL,VERBOSE:Ri.VERBOSE,DEBUG:Ri.DEBUG,INFO:Ri.INFO,WARN:Ri.WARN,ERROR:Ri.ERROR,NONE:Ri.NONE};function Ole(e,t,n){var r=n[e];if(typeof r=="string"){var i=ble[r.toUpperCase()];i!=null&&(t[e]=i)}}function Rle(e){var t={};for(var n in UQ){var r=n;switch(r){case"OTEL_LOG_LEVEL":Ole(r,t,e);break;default:if(hle(r))Tle(r,t,e);else if(gle(r))Ale(r,t,e);else if(vle(r))Cle(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var Ple=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{};function hu(){var e=Rle(Ple);return Object.assign({},UQ,e)}function L1e(){return parseEnvironment(_globalThis)}var Mle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},$Q=1e4,Ile=5,Nle=1e3,Lle=5e3,Dle=1.5;function wle(e){e===void 0&&(e={});var t={};return Object.entries(e).forEach(function(n){var r=Mle(n,2),i=r[0],a=r[1];typeof a<"u"?t[i]=String(a):lc.warn('Header "'+i+'" has invalid value ('+a+") and will be ignored")}),t}function Ule(e,t){return e.endsWith("/")||(e=e+"/"),e+t}function $le(e){try{var t=new URL(e);return t.pathname===""&&(t.pathname=t.pathname+"/"),t.toString()}catch{return lc.warn("Could not parse export URL: '"+e+"'"),e}}function Gle(e){return typeof e=="number"?e<=0?GQ(e,$Q):e:Fle()}function Fle(){var e,t=Number((e=hu().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&e!==void 0?e:hu().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?GQ(t,$Q):t}function GQ(e,t){return lc.warn("Timeout must be greater than 0",e),t}function xle(e){var t=[429,502,503,504];return t.includes(e)}function Vle(e){if(e==null)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;var n=new Date(e).getTime()-Date.now();return n>=0?n:0}var Ble=function(){function e(t){t===void 0&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new fle(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=Gle(t.timeoutMillis),this.onInit(t)}return e.prototype.export=function(t,n){if(this._shutdownOnce.isCalled){n({code:qf.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:qf.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(t).then(function(){n({code:qf.SUCCESS})}).catch(function(r){n({code:qf.FAILED,error:r})})},e.prototype._export=function(t){var n=this;return new Promise(function(r,i){try{lc.debug("items to be sent",t),n.send(t,r,i)}catch(a){i(a)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return lc.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),kle=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eS=function(e){kle(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.name="OTLPExporterError",a.data=i,a.code=r,a}return t}(Error),_y=function(){return _y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_y.apply(this,arguments)},jle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Qle(e,t,n,r,i){if(navigator.sendBeacon(t,new Blob([e],n)))lc.debug("sendBeacon - can send",e),r();else{var a=new eS("sendBeacon - cannot send "+e);i(a)}}function qle(e,t,n,r,i,a){var c,f,y=!1,h=setTimeout(function(){if(clearTimeout(c),y=!0,f.readyState===XMLHttpRequest.DONE){var F=new eS("Request Timeout");a(F)}else f.abort()},r),m=function(F,W){F===void 0&&(F=Ile),W===void 0&&(W=Nle),f=new XMLHttpRequest,f.open("POST",t);var ye={Accept:"application/json","Content-Type":"application/json"};Object.entries(_y(_y({},ye),n)).forEach(function(Te){var Re=jle(Te,2),Ye=Re[0],qe=Re[1];f.setRequestHeader(Ye,qe)}),f.send(e),f.onreadystatechange=function(){if(f.readyState===XMLHttpRequest.DONE&&y===!1)if(f.status>=200&&f.status<=299)lc.debug("xhr success",e),i(),clearTimeout(h),clearTimeout(c);else if(f.status&&xle(f.status)&&F>0){var Te=void 0;W=Dle*W,f.getResponseHeader("Retry-After")?Te=Vle(f.getResponseHeader("Retry-After")):Te=Math.round(Math.random()*(Lle-W)+W),c=setTimeout(function(){m(F-1,W)},Te)}else{var Re=new eS("Failed to export with XHR (status: "+f.status+")",f.status);a(Re),clearTimeout(h),clearTimeout(c)}},f.onabort=function(){if(y){var Te=new eS("Request Timeout");a(Te)}clearTimeout(h),clearTimeout(c)},f.onerror=function(){if(y){var Te=new eS("Request Timeout");a(Te)}clearTimeout(h),clearTimeout(c)}};m()}var Hle=Symbol("BaggageEntryMetadata"),Yle=wQ.instance();function D1e(e){return e===void 0&&(e={}),new BaggageImpl(new Map(Object.entries(e)))}function zle(e){return typeof e!="string"&&(Yle.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Hle,toString:function(){return e}}}var Wle="=",FQ=";",Kle=",",w1e="baggage",U1e=180,$1e=4096,G1e=8192,Xle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function F1e(e){return e.reduce(function(t,n){var r=""+t+(t!==""?BAGGAGE_ITEMS_SEPARATOR:"")+n;return r.length>BAGGAGE_MAX_TOTAL_LENGTH?t:r},"")}function x1e(e){return e.getAllEntries().map(function(t){var n=Xle(t,2),r=n[0],i=n[1],a=encodeURIComponent(r)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),a})}function Jle(e){var t=e.split(FQ);if(!(t.length<=0)){var n=t.shift();if(!!n){var r=n.indexOf(Wle);if(!(r<=0)){var i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim()),c;return t.length>0&&(c=zle(t.join(FQ))),{key:i,value:a,metadata:c}}}}}function xQ(e){return typeof e!="string"||e.length===0?{}:e.split(Kle).map(function(t){return Jle(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,n){return t[n.key]=n.value,t},{})}var Zle=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),py=function(){return py=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},py.apply(this,arguments)},ede=function(e){Zle(t,e);function t(n,r,i){n===void 0&&(n={});var a=e.call(this,n)||this;return a._useXHR=!1,a._serializer=r,a._contentType=i,a._useXHR=!!n.headers||typeof navigator.sendBeacon!="function",a._useXHR?a._headers=Object.assign({},wle(n.headers),xQ(hu().OTEL_EXPORTER_OTLP_HEADERS)):a._headers={},a}return t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(n,r,i){var a=this,c;if(this._shutdownOnce.isCalled){lc.debug("Shutdown already started. Cannot send objects");return}var f=(c=this._serializer.serializeRequest(n))!==null&&c!==void 0?c:new Uint8Array,y=new Promise(function(m,F){a._useXHR?qle(f,a.url,py(py({},a._headers),{"Content-Type":a._contentType}),a.timeoutMillis,m,F):Qle(f,a.url,{type:a._contentType},m,F)}).then(r,i);this._sendingPromises.push(y);var h=function(){var m=a._sendingPromises.indexOf(y);a._sendingPromises.splice(m,1)};y.then(h,h)},t}(Ble),tde=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function qI(e){return{name:e.name,version:e.version}}function Nl(e){return Object.keys(e).map(function(t){return HI(t,e[t])})}function HI(e,t){return{key:e,value:YI(t)}}function YI(e){var t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(YI)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(function(n){var r=tde(n,2),i=r[0],a=r[1];return HI(i,a)})}}:{}}function nde(e,t){var n,r=e.spanContext(),i=e.status;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:(n=r.traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Nl(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(a){return ide(a,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(function(a){return rde(a,t)}),droppedLinksCount:e.droppedLinksCount}}function rde(e,t){var n;return{attributes:e.attributes?Nl(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(n=e.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function ide(e,t){return{attributes:e.attributes?Nl(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}var VQ=9,ade=6,ode=Math.pow(10,ade),hy=Math.pow(10,VQ);function Sy(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*ode);return[n,r]}function BQ(){var e=performance.timeOrigin;if(typeof e!="number"){var t=performance;e=t.timing&&t.timing.fetchStart}return e}function sde(e){var t=Sy(BQ()),n=Sy(typeof e=="number"?e:performance.now());return cde(t,n)}function V1e(e){if(kQ(e))return e;if(typeof e=="number")return e<BQ()?sde(e):Sy(e);if(e instanceof Date)return Sy(e.getTime());throw TypeError("Invalid input type")}function B1e(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=hy),[n,r]}function k1e(e){var t=VQ,n=""+"0".repeat(t)+e[1]+"Z",r=n.substr(n.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",r)}function ude(e){return e[0]*hy+e[1]}function j1e(e){return e[0]*1e3+e[1]/1e6}function Q1e(e){return e[0]*1e6+e[1]/1e3}function kQ(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function q1e(e){return kQ(e)||typeof e=="number"||e instanceof Date}function cde(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=hy&&(n[1]-=hy,n[0]+=1),n}function jQ(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function zI(e){for(var t=new Uint8Array(e.length/2),n=0,r=0;r<e.length;r+=2){var i=jQ(e.charCodeAt(r)),a=jQ(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function QQ(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function lde(e){var t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function qQ(e){var t=QQ(e);return lde(t)}function dde(e){var t=QQ(e);return t.toString()}var fde=typeof BigInt<"u"?dde:ude;function HQ(e){return e}function YQ(e){if(e!==void 0)return zI(e)}var _de={encodeHrTime:qQ,encodeSpanContext:zI,encodeOptionalSpanContext:YQ};function WI(e){var t,n;if(e===void 0)return _de;var r=(t=e.useLongBits)!==null&&t!==void 0?t:!0,i=(n=e.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:r?qQ:fde,encodeSpanContext:i?HQ:zI,encodeOptionalSpanContext:i?HQ:YQ}}function KI(e){return{attributes:Nl(e.attributes),droppedAttributesCount:0}}var pde=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},hde=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Sde(e,t){var n=WI(t);return{resourceSpans:mde(e,n)}}function gde(e){var t,n,r=new Map;try{for(var i=pde(e),a=i.next();!a.done;a=i.next()){var c=a.value,f=r.get(c.resource);f||(f=new Map,r.set(c.resource,f));var y=c.instrumentationLibrary.name+"@"+(c.instrumentationLibrary.version||"")+":"+(c.instrumentationLibrary.schemaUrl||""),h=f.get(y);h||(h=[],f.set(y,h)),h.push(c)}}catch(m){t={error:m}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function mde(e,t){for(var n=gde(e),r=[],i=n.entries(),a=i.next();!a.done;){for(var c=hde(a.value,2),f=c[0],y=c[1],h=[],m=y.values(),F=m.next();!F.done;){var W=F.value;if(W.length>0){var ye=W.map(function(Re){return nde(Re,t)});h.push({scope:qI(W[0].instrumentationLibrary),spans:ye,schemaUrl:W[0].instrumentationLibrary.schemaUrl})}F=m.next()}var Te={resource:KI(f),scopeSpans:h,schemaUrl:void 0};r.push(Te),a=i.next()}return r}var gy;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(gy||(gy={}));var Hf;(function(e){e[e.HISTOGRAM=0]="HISTOGRAM",e[e.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",e[e.GAUGE=2]="GAUGE",e[e.SUM=3]="SUM"})(Hf||(Hf={}));var my;(function(e){e[e.DELTA=0]="DELTA",e[e.CUMULATIVE=1]="CUMULATIVE"})(my||(my={}));function vde(e,t){var n=WI(t);return{resource:KI(e.resource),schemaUrl:void 0,scopeMetrics:Ede(e.scopeMetrics,n)}}function Ede(e,t){return Array.from(e.map(function(n){return{scope:qI(n.scope),metrics:n.metrics.map(function(r){return yde(r,t)}),schemaUrl:n.scope.schemaUrl}}))}function yde(e,t){var n={name:e.descriptor.name,description:e.descriptor.description,unit:e.descriptor.unit},r=bde(e.aggregationTemporality);switch(e.dataPointType){case Hf.SUM:n.sum={aggregationTemporality:r,isMonotonic:e.isMonotonic,dataPoints:zQ(e,t)};break;case Hf.GAUGE:n.gauge={dataPoints:zQ(e,t)};break;case Hf.HISTOGRAM:n.histogram={aggregationTemporality:r,dataPoints:Ade(e,t)};break;case Hf.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:r,dataPoints:Cde(e,t)};break}return n}function Tde(e,t,n){var r={attributes:Nl(e.attributes),startTimeUnixNano:n.encodeHrTime(e.startTime),timeUnixNano:n.encodeHrTime(e.endTime)};switch(t){case gy.INT:r.asInt=e.value;break;case gy.DOUBLE:r.asDouble=e.value;break}return r}function zQ(e,t){return e.dataPoints.map(function(n){return Tde(n,e.descriptor.valueType,t)})}function Ade(e,t){return e.dataPoints.map(function(n){var r=n.value;return{attributes:Nl(n.attributes),bucketCounts:r.buckets.counts,explicitBounds:r.buckets.boundaries,count:r.count,sum:r.sum,min:r.min,max:r.max,startTimeUnixNano:t.encodeHrTime(n.startTime),timeUnixNano:t.encodeHrTime(n.endTime)}})}function Cde(e,t){return e.dataPoints.map(function(n){var r=n.value;return{attributes:Nl(n.attributes),count:r.count,min:r.min,max:r.max,sum:r.sum,positive:{offset:r.positive.offset,bucketCounts:r.positive.bucketCounts},negative:{offset:r.negative.offset,bucketCounts:r.negative.bucketCounts},scale:r.scale,zeroCount:r.zeroCount,startTimeUnixNano:t.encodeHrTime(n.startTime),timeUnixNano:t.encodeHrTime(n.endTime)}})}function bde(e){switch(e){case my.DELTA:return 1;case my.CUMULATIVE:return 2}}function Ode(e,t){return{resourceMetrics:e.map(function(n){return vde(n,t)})}}var Rde=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},WQ=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Pde(e,t){var n=WI(t);return{resourceLogs:Ide(e,n)}}function Mde(e){var t,n,r=new Map;try{for(var i=Rde(e),a=i.next();!a.done;a=i.next()){var c=a.value,f=c.resource,y=c.instrumentationScope,h=y.name,m=y.version,F=m===void 0?"":m,W=y.schemaUrl,ye=W===void 0?"":W,Te=r.get(f);Te||(Te=new Map,r.set(f,Te));var Re=h+"@"+F+":"+ye,Ye=Te.get(Re);Ye||(Ye=[],Te.set(Re,Ye)),Ye.push(c)}}catch(qe){t={error:qe}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Ide(e,t){var n=Mde(e);return Array.from(n,function(r){var i=WQ(r,2),a=i[0],c=i[1];return{resource:KI(a),scopeLogs:Array.from(c,function(f){var y=WQ(f,2),h=y[1];return{scope:qI(h[0].instrumentationScope),logRecords:h.map(function(m){return Nde(m,t)}),schemaUrl:h[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function Nde(e,t){var n,r,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:e.severityNumber,severityText:e.severityText,body:YI(e.body),attributes:Lde(e.attributes),droppedAttributesCount:e.droppedAttributesCount,flags:(n=e.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:t.encodeOptionalSpanContext((r=e.spanContext)===null||r===void 0?void 0:r.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)===null||i===void 0?void 0:i.spanId)}}function H1e(e){return e}function Lde(e){return Object.keys(e).map(function(t){return HI(t,e[t])})}var Y1e={serializeRequest:function(e){var t=Sde(e,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},z1e={serializeRequest:function(e){var t=Ode(e,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},Dde={serializeRequest:function(e){var t=Pde(e,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},KQ="v1/logs",wde="http://localhost:4318/"+KQ;function Ude(e){return typeof e.url=="string"?e.url:hu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length>0?$le(hu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT):hu().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?Ule(hu().OTEL_EXPORTER_OTLP_ENDPOINT,KQ):wde}var $de=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tS=function(){return tS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tS.apply(this,arguments)},Gde=function(e){$de(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,tS({timeoutMillis:hu().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT},n),Dde,"application/json")||this;return r._headers=tS(tS({},r._headers),xQ(hu().OTEL_EXPORTER_OTLP_LOGS_HEADERS)),r}return t.prototype.getDefaultUrl=function(n){return Ude(n)},t}(ede),Ln=xs.instance();function Ll(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fde="cloud.provider",xde="cloud.account.id",Vde="cloud.region",Bde="cloud.availability_zone",kde="cloud.platform",jde="aws.ecs.container.arn",Qde="aws.ecs.cluster.arn",qde="aws.ecs.launchtype",Hde="aws.ecs.task.arn",Yde="aws.ecs.task.family",zde="aws.ecs.task.revision",Wde="aws.eks.cluster.arn",Kde="aws.log.group.names",Xde="aws.log.group.arns",Jde="aws.log.stream.names",Zde="aws.log.stream.arns",efe="container.name",tfe="container.id",nfe="container.runtime",rfe="container.image.name",ife="container.image.tag",afe="deployment.environment",ofe="device.id",sfe="device.model.identifier",ufe="device.model.name",cfe="faas.name",lfe="faas.id",dfe="faas.version",ffe="faas.instance",_fe="faas.max_memory",pfe="host.id",hfe="host.name",Sfe="host.type",gfe="host.arch",mfe="host.image.name",vfe="host.image.id",Efe="host.image.version",yfe="k8s.cluster.name",Tfe="k8s.node.name",Afe="k8s.node.uid",Cfe="k8s.namespace.name",bfe="k8s.pod.uid",Ofe="k8s.pod.name",Rfe="k8s.container.name",Pfe="k8s.replicaset.uid",Mfe="k8s.replicaset.name",Ife="k8s.deployment.uid",Nfe="k8s.deployment.name",Lfe="k8s.statefulset.uid",Dfe="k8s.statefulset.name",wfe="k8s.daemonset.uid",Ufe="k8s.daemonset.name",$fe="k8s.job.uid",Gfe="k8s.job.name",Ffe="k8s.cronjob.uid",xfe="k8s.cronjob.name",Vfe="os.type",Bfe="os.description",kfe="os.name",jfe="os.version",Qfe="process.pid",qfe="process.executable.name",Hfe="process.executable.path",Yfe="process.command",zfe="process.command_line",Wfe="process.command_args",Kfe="process.owner",XQ="process.runtime.name",Xfe="process.runtime.version",Jfe="process.runtime.description",JQ="service.name",Zfe="service.namespace",e_e="service.instance.id",t_e="service.version",ZQ="telemetry.sdk.name",eq="telemetry.sdk.language",tq="telemetry.sdk.version",n_e="telemetry.auto.version",r_e="webengine.name",i_e="webengine.version",a_e="webengine.description",W1e=null,K1e=null,X1e=null,J1e=null,Z1e=null,eBe=null,tBe=null,nBe=null,rBe=null,iBe=null,aBe=null,oBe=null,sBe=null,uBe=null,cBe=null,lBe=null,dBe=null,fBe=null,_Be=null,pBe=null,hBe=null,SBe=null,gBe=null,mBe=null,vBe=null,EBe=null,yBe=null,TBe=null,ABe=null,CBe=null,bBe=null,OBe=null,RBe=null,PBe=null,MBe=null,IBe=null,NBe=null,LBe=null,DBe=null,wBe=null,UBe=null,$Be=null,GBe=null,FBe=null,xBe=null,VBe=null,BBe=null,kBe=null,jBe=null,QBe=null,qBe=null,HBe=null,YBe=null,zBe=null,WBe=null,KBe=null,XBe=null,JBe=null,ZBe=null,eke=null,tke=null,nke=null,rke=null,ike=null,ake=null,oke=null,ske=null,o_e=XQ,uke=null,cke=null,s_e=JQ,lke=null,dke=null,fke=null,XI=ZQ,JI=eq,ZI=tq,_ke=null,pke=null,hke=null,Ske=null,gke=Ll([Fde,xde,Vde,Bde,kde,jde,Qde,qde,Hde,Yde,zde,Wde,Kde,Xde,Jde,Zde,efe,tfe,nfe,rfe,ife,afe,ofe,sfe,ufe,cfe,lfe,dfe,ffe,_fe,pfe,hfe,Sfe,gfe,mfe,vfe,Efe,yfe,Tfe,Afe,Cfe,bfe,Ofe,Rfe,Pfe,Mfe,Ife,Nfe,Lfe,Dfe,wfe,Ufe,$fe,Gfe,Ffe,xfe,Vfe,Bfe,kfe,jfe,Qfe,qfe,Hfe,Yfe,zfe,Wfe,Kfe,XQ,Xfe,Jfe,JQ,Zfe,e_e,t_e,ZQ,eq,tq,n_e,r_e,i_e,a_e]),u_e="alibaba_cloud",c_e="aws",l_e="azure",d_e="gcp",mke=null,vke=null,Eke=null,yke=null,Tke=Ll([u_e,c_e,l_e,d_e]),f_e="alibaba_cloud_ecs",__e="alibaba_cloud_fc",p_e="aws_ec2",h_e="aws_ecs",S_e="aws_eks",g_e="aws_lambda",m_e="aws_elastic_beanstalk",v_e="azure_vm",E_e="azure_container_instances",y_e="azure_aks",T_e="azure_functions",A_e="azure_app_service",C_e="gcp_compute_engine",b_e="gcp_cloud_run",O_e="gcp_kubernetes_engine",R_e="gcp_cloud_functions",P_e="gcp_app_engine",Ake=null,Cke=null,bke=null,Oke=null,Rke=null,Pke=null,Mke=null,Ike=null,Nke=null,Lke=null,Dke=null,wke=null,Uke=null,$ke=null,Gke=null,Fke=null,xke=null,Vke=Ll([f_e,__e,p_e,h_e,S_e,g_e,m_e,v_e,E_e,y_e,T_e,A_e,C_e,b_e,O_e,R_e,P_e]),M_e="ec2",I_e="fargate",Bke=null,kke=null,jke=Ll([M_e,I_e]),N_e="amd64",L_e="arm32",D_e="arm64",w_e="ia64",U_e="ppc32",$_e="ppc64",G_e="x86",Qke=null,qke=null,Hke=null,Yke=null,zke=null,Wke=null,Kke=null,Xke=Ll([N_e,L_e,D_e,w_e,U_e,$_e,G_e]),F_e="windows",x_e="linux",V_e="darwin",B_e="freebsd",k_e="netbsd",j_e="openbsd",Q_e="dragonflybsd",q_e="hpux",H_e="aix",Y_e="solaris",z_e="z_os",Jke=null,Zke=null,eje=null,tje=null,nje=null,rje=null,ije=null,aje=null,oje=null,sje=null,uje=null,cje=Ll([F_e,x_e,V_e,B_e,k_e,j_e,Q_e,q_e,H_e,Y_e,z_e]),W_e="cpp",K_e="dotnet",X_e="erlang",J_e="go",Z_e="java",epe="nodejs",tpe="php",npe="python",rpe="ruby",nq="webjs",lje=null,dje=null,fje=null,_je=null,pje=null,hje=null,Sje=null,gje=null,mje=null,ipe=nq,vje=Ll([W_e,K_e,X_e,J_e,Z_e,epe,tpe,npe,rpe,nq]),ape="1.30.1",Yf,eN=(Yf={},Yf[XI]="opentelemetry",Yf[o_e]="browser",Yf[JI]=ipe,Yf[ZI]=ape,Yf);function ope(){return"unknown_service"}var dc=function(){return dc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},dc.apply(this,arguments)},spe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},upe=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},cpe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},vy=function(){function e(t,n){var r=this,i;this._attributes=t,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(function(a){return r._attributes=Object.assign({},r._attributes,a),r.asyncAttributesPending=!1,a},function(a){return Ln.debug("a resource's async attributes promise rejected: %s",a),r.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[s_e]=ope(),t[JI]=eN[JI],t[XI]=eN[XI],t[ZI]=eN[ZI],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&Ln.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return spe(this,void 0,void 0,function(){return upe(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]}})})},e.prototype.merge=function(t){var n=this,r;if(!t)return this;var i=dc(dc({},this._syncAttributes),(r=t._syncAttributes)!==null&&r!==void 0?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(c){var f,y=cpe(c,2),h=y[0],m=y[1];return dc(dc(dc(dc({},n._syncAttributes),h),(f=t._syncAttributes)!==null&&f!==void 0?f:t.attributes),m)});return new e(i,a)},e.EMPTY=new e({}),e}(),rq=function(){function e(){}return e.prototype.emit=function(t){},e}(),lpe=new rq;function Dl(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var dpe="cloud.provider",fpe="cloud.account.id",_pe="cloud.region",ppe="cloud.availability_zone",hpe="cloud.platform",Spe="aws.ecs.container.arn",gpe="aws.ecs.cluster.arn",mpe="aws.ecs.launchtype",vpe="aws.ecs.task.arn",Epe="aws.ecs.task.family",ype="aws.ecs.task.revision",Tpe="aws.eks.cluster.arn",Ape="aws.log.group.names",Cpe="aws.log.group.arns",bpe="aws.log.stream.names",Ope="aws.log.stream.arns",Rpe="container.name",Ppe="container.id",Mpe="container.runtime",Ipe="container.image.name",Npe="container.image.tag",Lpe="deployment.environment",Dpe="device.id",wpe="device.model.identifier",Upe="device.model.name",$pe="faas.name",Gpe="faas.id",Fpe="faas.version",xpe="faas.instance",Vpe="faas.max_memory",Bpe="host.id",kpe="host.name",jpe="host.type",Qpe="host.arch",qpe="host.image.name",Hpe="host.image.id",Ype="host.image.version",zpe="k8s.cluster.name",Wpe="k8s.node.name",Kpe="k8s.node.uid",Xpe="k8s.namespace.name",Jpe="k8s.pod.uid",Zpe="k8s.pod.name",ehe="k8s.container.name",the="k8s.replicaset.uid",nhe="k8s.replicaset.name",rhe="k8s.deployment.uid",ihe="k8s.deployment.name",ahe="k8s.statefulset.uid",ohe="k8s.statefulset.name",she="k8s.daemonset.uid",uhe="k8s.daemonset.name",che="k8s.job.uid",lhe="k8s.job.name",dhe="k8s.cronjob.uid",fhe="k8s.cronjob.name",_he="os.type",phe="os.description",hhe="os.name",She="os.version",ghe="process.pid",mhe="process.executable.name",vhe="process.executable.path",Ehe="process.command",yhe="process.command_line",The="process.command_args",Ahe="process.owner",Che="process.runtime.name",bhe="process.runtime.version",Ohe="process.runtime.description",iq="service.name",Rhe="service.namespace",Phe="service.instance.id",Mhe="service.version",aq="telemetry.sdk.name",oq="telemetry.sdk.language",sq="telemetry.sdk.version",Ihe="telemetry.auto.version",Nhe="webengine.name",Lhe="webengine.version",Dhe="webengine.description",Eje=null,yje=null,Tje=null,Aje=null,Cje=null,bje=null,Oje=null,Rje=null,Pje=null,Mje=null,Ije=null,Nje=null,Lje=null,Dje=null,wje=null,Uje=null,$je=null,Gje=null,Fje=null,xje=null,Vje=null,Bje=null,kje=null,jje=null,Qje=null,qje=null,Hje=null,Yje=null,zje=null,Wje=null,Kje=null,Xje=null,Jje=null,Zje=null,eQe=null,tQe=null,nQe=null,rQe=null,iQe=null,aQe=null,oQe=null,sQe=null,uQe=null,cQe=null,lQe=null,dQe=null,fQe=null,_Qe=null,pQe=null,hQe=null,SQe=null,gQe=null,mQe=null,vQe=null,EQe=null,yQe=null,TQe=null,AQe=null,CQe=null,bQe=null,OQe=null,RQe=null,PQe=null,MQe=null,IQe=null,NQe=null,LQe=null,DQe=null,wQe=null,UQe=null,whe=iq,$Qe=null,GQe=null,FQe=null,uq=aq,cq=oq,lq=sq,xQe=null,VQe=null,BQe=null,kQe=null,jQe=Dl([dpe,fpe,_pe,ppe,hpe,Spe,gpe,mpe,vpe,Epe,ype,Tpe,Ape,Cpe,bpe,Ope,Rpe,Ppe,Mpe,Ipe,Npe,Lpe,Dpe,wpe,Upe,$pe,Gpe,Fpe,xpe,Vpe,Bpe,kpe,jpe,Qpe,qpe,Hpe,Ype,zpe,Wpe,Kpe,Xpe,Jpe,Zpe,ehe,the,nhe,rhe,ihe,ahe,ohe,she,uhe,che,lhe,dhe,fhe,_he,phe,hhe,She,ghe,mhe,vhe,Ehe,yhe,The,Ahe,Che,bhe,Ohe,iq,Rhe,Phe,Mhe,aq,oq,sq,Ihe,Nhe,Lhe,Dhe]),Uhe="alibaba_cloud",$he="aws",Ghe="azure",Fhe="gcp",QQe=null,qQe=null,HQe=null,YQe=null,zQe=Dl([Uhe,$he,Ghe,Fhe]),xhe="alibaba_cloud_ecs",Vhe="alibaba_cloud_fc",Bhe="aws_ec2",khe="aws_ecs",jhe="aws_eks",Qhe="aws_lambda",qhe="aws_elastic_beanstalk",Hhe="azure_vm",Yhe="azure_container_instances",zhe="azure_aks",Whe="azure_functions",Khe="azure_app_service",Xhe="gcp_compute_engine",Jhe="gcp_cloud_run",Zhe="gcp_kubernetes_engine",eSe="gcp_cloud_functions",tSe="gcp_app_engine",WQe=null,KQe=null,XQe=null,JQe=null,ZQe=null,eqe=null,tqe=null,nqe=null,rqe=null,iqe=null,aqe=null,oqe=null,sqe=null,uqe=null,cqe=null,lqe=null,dqe=null,fqe=Dl([xhe,Vhe,Bhe,khe,jhe,Qhe,qhe,Hhe,Yhe,zhe,Whe,Khe,Xhe,Jhe,Zhe,eSe,tSe]),nSe="ec2",rSe="fargate",_qe=null,pqe=null,hqe=Dl([nSe,rSe]),iSe="amd64",aSe="arm32",oSe="arm64",sSe="ia64",uSe="ppc32",cSe="ppc64",lSe="x86",Sqe=null,gqe=null,mqe=null,vqe=null,Eqe=null,yqe=null,Tqe=null,Aqe=Dl([iSe,aSe,oSe,sSe,uSe,cSe,lSe]),dSe="windows",fSe="linux",_Se="darwin",pSe="freebsd",hSe="netbsd",SSe="openbsd",gSe="dragonflybsd",mSe="hpux",vSe="aix",ESe="solaris",ySe="z_os",Cqe=null,bqe=null,Oqe=null,Rqe=null,Pqe=null,Mqe=null,Iqe=null,Nqe=null,Lqe=null,Dqe=null,wqe=null,Uqe=Dl([dSe,fSe,_Se,pSe,hSe,SSe,gSe,mSe,vSe,ESe,ySe]),TSe="cpp",ASe="dotnet",CSe="erlang",bSe="go",OSe="java",RSe="nodejs",PSe="php",MSe="python",ISe="ruby",NSe="webjs",$qe=null,Gqe=null,Fqe=null,xqe=null,Vqe=null,Bqe=null,kqe=null,jqe=null,Qqe=null,qqe=null,Hqe=Dl([TSe,ASe,CSe,bSe,OSe,RSe,PSe,MSe,ISe,NSe]),LSe="1.25.1";function wl(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var DSe="cloud.provider",wSe="cloud.account.id",USe="cloud.region",$Se="cloud.availability_zone",GSe="cloud.platform",FSe="aws.ecs.container.arn",xSe="aws.ecs.cluster.arn",VSe="aws.ecs.launchtype",BSe="aws.ecs.task.arn",kSe="aws.ecs.task.family",jSe="aws.ecs.task.revision",QSe="aws.eks.cluster.arn",qSe="aws.log.group.names",HSe="aws.log.group.arns",YSe="aws.log.stream.names",zSe="aws.log.stream.arns",WSe="container.name",KSe="container.id",XSe="container.runtime",JSe="container.image.name",ZSe="container.image.tag",ege="deployment.environment",tge="device.id",nge="device.model.identifier",rge="device.model.name",ige="faas.name",age="faas.id",oge="faas.version",sge="faas.instance",uge="faas.max_memory",cge="host.id",lge="host.name",dge="host.type",fge="host.arch",_ge="host.image.name",pge="host.image.id",hge="host.image.version",Sge="k8s.cluster.name",gge="k8s.node.name",mge="k8s.node.uid",vge="k8s.namespace.name",Ege="k8s.pod.uid",yge="k8s.pod.name",Tge="k8s.container.name",Age="k8s.replicaset.uid",Cge="k8s.replicaset.name",bge="k8s.deployment.uid",Oge="k8s.deployment.name",Rge="k8s.statefulset.uid",Pge="k8s.statefulset.name",Mge="k8s.daemonset.uid",Ige="k8s.daemonset.name",Nge="k8s.job.uid",Lge="k8s.job.name",Dge="k8s.cronjob.uid",wge="k8s.cronjob.name",Uge="os.type",$ge="os.description",Gge="os.name",Fge="os.version",xge="process.pid",Vge="process.executable.name",Bge="process.executable.path",kge="process.command",jge="process.command_line",Qge="process.command_args",qge="process.owner",dq="process.runtime.name",Hge="process.runtime.version",Yge="process.runtime.description",zge="service.name",Wge="service.namespace",Kge="service.instance.id",Xge="service.version",fq="telemetry.sdk.name",_q="telemetry.sdk.language",pq="telemetry.sdk.version",Jge="telemetry.auto.version",Zge="webengine.name",eme="webengine.version",tme="webengine.description",Yqe=null,zqe=null,Wqe=null,Kqe=null,Xqe=null,Jqe=null,Zqe=null,eHe=null,tHe=null,nHe=null,rHe=null,iHe=null,aHe=null,oHe=null,sHe=null,uHe=null,cHe=null,lHe=null,dHe=null,fHe=null,_He=null,pHe=null,hHe=null,SHe=null,gHe=null,mHe=null,vHe=null,EHe=null,yHe=null,THe=null,AHe=null,CHe=null,bHe=null,OHe=null,RHe=null,PHe=null,MHe=null,IHe=null,NHe=null,LHe=null,DHe=null,wHe=null,UHe=null,$He=null,GHe=null,FHe=null,xHe=null,VHe=null,BHe=null,kHe=null,jHe=null,QHe=null,qHe=null,HHe=null,YHe=null,zHe=null,WHe=null,KHe=null,XHe=null,JHe=null,ZHe=null,eYe=null,tYe=null,nYe=null,rYe=null,iYe=null,aYe=null,nme=dq,oYe=null,sYe=null,uYe=null,cYe=null,lYe=null,dYe=null,rme=fq,ime=_q,ame=pq,fYe=null,_Ye=null,pYe=null,hYe=null,SYe=wl([DSe,wSe,USe,$Se,GSe,FSe,xSe,VSe,BSe,kSe,jSe,QSe,qSe,HSe,YSe,zSe,WSe,KSe,XSe,JSe,ZSe,ege,tge,nge,rge,ige,age,oge,sge,uge,cge,lge,dge,fge,_ge,pge,hge,Sge,gge,mge,vge,Ege,yge,Tge,Age,Cge,bge,Oge,Rge,Pge,Mge,Ige,Nge,Lge,Dge,wge,Uge,$ge,Gge,Fge,xge,Vge,Bge,kge,jge,Qge,qge,dq,Hge,Yge,zge,Wge,Kge,Xge,fq,_q,pq,Jge,Zge,eme,tme]),ome="alibaba_cloud",sme="aws",ume="azure",cme="gcp",gYe=null,mYe=null,vYe=null,EYe=null,yYe=wl([ome,sme,ume,cme]),lme="alibaba_cloud_ecs",dme="alibaba_cloud_fc",fme="aws_ec2",_me="aws_ecs",pme="aws_eks",hme="aws_lambda",Sme="aws_elastic_beanstalk",gme="azure_vm",mme="azure_container_instances",vme="azure_aks",Eme="azure_functions",yme="azure_app_service",Tme="gcp_compute_engine",Ame="gcp_cloud_run",Cme="gcp_kubernetes_engine",bme="gcp_cloud_functions",Ome="gcp_app_engine",TYe=null,AYe=null,CYe=null,bYe=null,OYe=null,RYe=null,PYe=null,MYe=null,IYe=null,NYe=null,LYe=null,DYe=null,wYe=null,UYe=null,$Ye=null,GYe=null,FYe=null,xYe=wl([lme,dme,fme,_me,pme,hme,Sme,gme,mme,vme,Eme,yme,Tme,Ame,Cme,bme,Ome]),Rme="ec2",Pme="fargate",VYe=null,BYe=null,kYe=wl([Rme,Pme]),Mme="amd64",Ime="arm32",Nme="arm64",Lme="ia64",Dme="ppc32",wme="ppc64",Ume="x86",jYe=null,QYe=null,qYe=null,HYe=null,YYe=null,zYe=null,WYe=null,KYe=wl([Mme,Ime,Nme,Lme,Dme,wme,Ume]),$me="windows",Gme="linux",Fme="darwin",xme="freebsd",Vme="netbsd",Bme="openbsd",kme="dragonflybsd",jme="hpux",Qme="aix",qme="solaris",Hme="z_os",XYe=null,JYe=null,ZYe=null,e2e=null,t2e=null,n2e=null,r2e=null,i2e=null,a2e=null,o2e=null,s2e=null,u2e=wl([$me,Gme,Fme,xme,Vme,Bme,kme,jme,Qme,qme,Hme]),Yme="cpp",zme="dotnet",Wme="erlang",Kme="go",Xme="java",Jme="nodejs",Zme="php",eve="python",tve="ruby",hq="webjs",c2e=null,l2e=null,d2e=null,f2e=null,_2e=null,p2e=null,h2e=null,S2e=null,g2e=null,nve=hq,m2e=wl([Yme,zme,Wme,Kme,Xme,Jme,Zme,eve,tve,hq]),zf,tN=(zf={},zf[rme]="opentelemetry",zf[nme]="browser",zf[ime]=nve,zf[ame]=LSe,zf);function rve(){return"unknown_service"}var fc=function(){return fc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fc.apply(this,arguments)},ive=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},ave=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},ove=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Sq=function(){function e(t,n){var r=this,i;this._attributes=t,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(function(a){return r._attributes=Object.assign({},r._attributes,a),r.asyncAttributesPending=!1,a},function(a){return Ln.debug("a resource's async attributes promise rejected: %s",a),r.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[whe]=rve(),t[cq]=tN[cq],t[uq]=tN[uq],t[lq]=tN[lq],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&Ln.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return ive(this,void 0,void 0,function(){return ave(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]}})})},e.prototype.merge=function(t){var n=this,r;if(!t)return this;var i=fc(fc({},this._syncAttributes),(r=t._syncAttributes)!==null&&r!==void 0?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(c){var f,y=ove(c,2),h=y[0],m=y[1];return fc(fc(fc(fc({},n._syncAttributes),h),(f=t._syncAttributes)!==null&&f!==void 0?f:t.attributes),m)});return new e(i,a)},e.EMPTY=new e({}),e}(),sve="[object Object]",uve="[object Null]",cve="[object Undefined]",lve=Function.prototype,gq=lve.toString,dve=gq.call(Object),fve=_ve(Object.getPrototypeOf,Object),mq=Object.prototype,vq=mq.hasOwnProperty,Ul=Symbol?Symbol.toStringTag:void 0,Eq=mq.toString;function _ve(e,t){return function(n){return e(t(n))}}function yq(e){if(!pve(e)||hve(e)!==sve)return!1;var t=fve(e);if(t===null)return!0;var n=vq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gq.call(n)===dve}function pve(e){return e!=null&&typeof e=="object"}function hve(e){return e==null?e===void 0?cve:uve:Ul&&Ul in Object(e)?Sve(e):gve(e)}function Sve(e){var t=vq.call(e,Ul),n=e[Ul],r=!1;try{e[Ul]=void 0,r=!0}catch{}var i=Eq.call(e);return r&&(t?e[Ul]=n:delete e[Ul]),i}function gve(e){return Eq.call(e)}var mve=20;function vve(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=Tq(n,e.shift(),0,r);return n}function nN(e){return Ey(e)?e.slice():e}function Tq(e,t,n,r){n===void 0&&(n=0);var i;if(!(n>mve)){if(n++,yy(e)||yy(t)||Cq(t))i=nN(t);else if(Ey(e)){if(i=e.slice(),Ey(t))for(var a=0,c=t.length;a<c;a++)i.push(nN(t[a]));else if(nS(t))for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a];i[y]=nN(t[y])}}else if(nS(e))if(nS(t)){if(!Eve(e,t))return t;i=Object.assign({},e);for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a],h=t[y];if(yy(h))typeof h>"u"?delete i[y]:i[y]=h;else{var m=i[y],F=h;if(Aq(e,y,r)||Aq(t,y,r))delete i[y];else{if(nS(m)&&nS(F)){var W=r.get(m)||[],ye=r.get(F)||[];W.push({obj:e,key:y}),ye.push({obj:t,key:y}),r.set(m,W),r.set(F,ye)}i[y]=Tq(i[y],h,n,r)}}}}else i=t;return i}}function Aq(e,t,n){for(var r=n.get(e[t])||[],i=0,a=r.length;i<a;i++){var c=r[i];if(c.key===t&&c.obj===e)return!0}return!1}function Ey(e){return Array.isArray(e)}function Cq(e){return typeof e=="function"}function nS(e){return!yy(e)&&!Ey(e)&&!Cq(e)&&typeof e=="object"}function yy(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Eve(e,t){return!(!yq(e)||!yq(t))}var yve=function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),Tve=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Ave=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},bq=function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new yve}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,Ave([this._that],Tve(r),!1))).then(function(a){return n._deferred.resolve(a)},function(a){return n._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),La=fy.getInstance(),rS=performance,Oq=9,Cve=6,bve=Math.pow(10,Cve),Ty=Math.pow(10,Oq);function Ay(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*bve);return[n,r]}function Rq(){var e=rS.timeOrigin;if(typeof e!="number"){var t=rS;e=t.timing&&t.timing.fetchStart}return e}function rN(e){var t=Ay(Rq()),n=Ay(typeof e=="number"?e:rS.now());return Ove(t,n)}function $l(e){if(Pq(e))return e;if(typeof e=="number")return e<Rq()?rN(e):Ay(e);if(e instanceof Date)return Ay(e.getTime());throw TypeError("Invalid input type")}function v2e(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=Ty),[n,r]}function E2e(e){var t=Oq,n=""+"0".repeat(t)+e[1]+"Z",r=n.substr(n.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",r)}function _c(e){return e[0]*Ty+e[1]}function y2e(e){return e[0]*1e3+e[1]/1e6}function T2e(e){return e[0]*1e6+e[1]/1e3}function Pq(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function A2e(e){return Pq(e)||typeof e=="number"||e instanceof Date}function Ove(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Ty&&(n[1]-=Ty,n[0]+=1),n}var Mq=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Rve=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function C2e(e){var t,n,r={};if(typeof e!="object"||e==null)return r;try{for(var i=Mq(Object.entries(e)),a=i.next();!a.done;a=i.next()){var c=Rve(a.value,2),f=c[0],y=c[1];if(!Pve(f)){diag.warn("Invalid attribute key: "+f);continue}if(!iN(y)){diag.warn("Invalid attribute value set for key: "+f);continue}Array.isArray(y)?r[f]=y.slice():r[f]=y}}catch(h){t={error:h}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Pve(e){return typeof e=="string"&&e.length>0}function iN(e){return e==null?!0:Array.isArray(e)?Mve(e):Iq(e)}function Mve(e){var t,n,r;try{for(var i=Mq(e),a=i.next();!a.done;a=i.next()){var c=a.value;if(c!=null){if(!r){if(Iq(c)){r=typeof c;continue}return!1}if(typeof c!==r)return!1}}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0}function Iq(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var Ive=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nve=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Lve=function(){function e(t,n,r){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var i=r.timestamp,a=r.observedTimestamp,c=r.severityNumber,f=r.severityText,y=r.body,h=r.attributes,m=h===void 0?{}:h,F=r.context,W=Date.now();if(this.hrTime=$l(i??W),this.hrTimeObserved=$l(a??W),F){var ye=Ea.getSpanContext(F);ye&&Qf(ye)&&(this.spanContext=ye)}this.severityNumber=c,this.severityText=f,this.body=y,this.resource=t.resource,this.instrumentationScope=n,this._logRecordLimits=t.logRecordLimits,this.setAttributes(m)}return Object.defineProperty(e.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,n){return this._isLogRecordReadonly()?this:n===null?this:t.length===0?(Ln.warn("Invalid attribute key: "+t),this):!iN(n)&&!(typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length>0)?(Ln.warn("Invalid attribute value set for key: "+t),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&Ln.warn("Dropping extra attributes."),this):(iN(n)?this.attributes[t]=this._truncateToSize(n):this.attributes[t]=n,this))},e.prototype.setAttributes=function(t){var n,r;try{for(var i=Ive(Object.entries(t)),a=i.next();!a.done;a=i.next()){var c=Nve(a.value,2),f=c[0],y=c[1];this.setAttribute(f,y)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.setBody=function(t){return this.body=t,this},e.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},e.prototype.setSeverityText=function(t){return this.severityText=t,this},e.prototype._makeReadonly=function(){this._isReadonly=!0},e.prototype._truncateToSize=function(t){var n=this,r=this._logRecordLimits.attributeValueLengthLimit;return r<=0?(Ln.warn("Attribute value limit must be positive, got "+r),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(i){return typeof i=="string"?n._truncateToLimitUtil(i,r):i}):t},e.prototype._truncateToLimitUtil=function(t,n){return t.length<=n?t:t.substring(0,n)},e.prototype._isLogRecordReadonly=function(){return this._isReadonly&&Ln.warn("Can not execute the operation on emitted log record"),this._isReadonly},e}(),aN=function(){return aN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},aN.apply(this,arguments)},Dve=function(){function e(t,n){this.instrumentationScope=t,this._sharedState=n}return e.prototype.emit=function(t){var n=t.context||La.active(),r=new Lve(this._sharedState,this.instrumentationScope,aN({context:n},t));this._sharedState.activeProcessor.onEmit(r,n),r._makeReadonly()},e}(),oN;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(oN||(oN={}));var wve=",",Uve=["OTEL_SDK_DISABLED"];function $ve(e){return Uve.indexOf(e)>-1}var Gve=["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 Fve(e){return Gve.indexOf(e)>-1}var xve=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Vve(e){return xve.indexOf(e)>-1}var Cy=1/0,by=128,Bve=128,kve=128,Nq={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:xr.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cy,OTEL_ATTRIBUTE_COUNT_LIMIT:by,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cy,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:by,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cy,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:by,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Bve,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kve,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:oN.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"};function jve(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function Qve(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function qve(e,t,n,r){r===void 0&&(r=wve);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(a){return a.trim()}))}var Hve={ALL:xr.ALL,VERBOSE:xr.VERBOSE,DEBUG:xr.DEBUG,INFO:xr.INFO,WARN:xr.WARN,ERROR:xr.ERROR,NONE:xr.NONE};function Yve(e,t,n){var r=n[e];if(typeof r=="string"){var i=Hve[r.toUpperCase()];i!=null&&(t[e]=i)}}function Lq(e){var t={};for(var n in Nq){var r=n;switch(r){case"OTEL_LOG_LEVEL":Yve(r,t,e);break;default:if($ve(r))jve(r,t,e);else if(Fve(r))Qve(r,t,e);else if(Vve(r))qve(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var Dq=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{};function sN(){var e=Lq(Dq);return Object.assign({},Nq,e)}function zve(){return Lq(Dq)}function Wve(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:sN().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:sN().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0}}function Kve(e){var t,n,r,i,a,c,f=zve();return{attributeCountLimit:(r=(n=(t=e.attributeCountLimit)!==null&&t!==void 0?t:f.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)!==null&&n!==void 0?n:f.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&r!==void 0?r:by,attributeValueLengthLimit:(c=(a=(i=e.attributeValueLengthLimit)!==null&&i!==void 0?i:f.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&a!==void 0?a:f.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&c!==void 0?c:Cy}}var Xve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jve=function(e){Xve(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return t}(Error);function wq(e,t){var n,r=new Promise(function(a,c){n=setTimeout(function(){c(new Jve("Operation timed out."))},t)});return Promise.race([e,r]).then(function(i){return clearTimeout(n),i},function(i){throw clearTimeout(n),i})}var Uq=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},$q=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Zve=function(){function e(t,n){this.processors=t,this.forceFlushTimeoutMillis=n}return e.prototype.forceFlush=function(){return Uq(this,void 0,void 0,function(){var t;return $q(this,function(n){switch(n.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(r){return wq(r.forceFlush(),t)}))];case 1:return n.sent(),[2]}})})},e.prototype.onEmit=function(t,n){this.processors.forEach(function(r){return r.onEmit(t,n)})},e.prototype.shutdown=function(){return Uq(this,void 0,void 0,function(){return $q(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(n){return n.shutdown()}))];case 1:return t.sent(),[2]}})})},e}(),eEe=function(){function e(){}return e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.onEmit=function(t,n){},e.prototype.shutdown=function(){return Promise.resolve()},e}(),tEe=function(){function e(t,n,r){this.resource=t,this.forceFlushTimeoutMillis=n,this.logRecordLimits=r,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new eEe}return e}(),nEe="unknown",rEe=function(){function e(t){t===void 0&&(t={});var n,r=vve({},Wve(),t),i=Sq.default().merge((n=r.resource)!==null&&n!==void 0?n:Sq.empty());this._sharedState=new tEe(i,r.forceFlushTimeoutMillis,Kve(r.logRecordLimits)),this._shutdownOnce=new bq(this._shutdown,this)}return e.prototype.getLogger=function(t,n,r){if(this._shutdownOnce.isCalled)return Ln.warn("A shutdown LoggerProvider cannot provide a Logger"),lpe;t||Ln.warn("Logger requested without instrumentation scope name.");var i=t||nEe,a=i+"@"+(n||"")+":"+(r?.schemaUrl||"");return this._sharedState.loggers.has(a)||this._sharedState.loggers.set(a,new Dve({name:i,version:n,schemaUrl:r?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(a)},e.prototype.addLogRecordProcessor=function(t){this._sharedState.registeredLogRecordProcessors.length===0&&this._sharedState.activeProcessor.shutdown().catch(function(n){return Ln.error("Error while trying to shutdown current log record processor",n)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new Zve(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(Ln.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},e.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(Ln.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},e}();function iEe(){return function(e){Ln.error(aEe(e))}}function aEe(e){return typeof e=="string"?e:JSON.stringify(oEe(e))}function oEe(e){for(var t={},n=e;n!==null;)Object.getOwnPropertyNames(n).forEach(function(r){if(!t[r]){var i=n[r];i&&(t[r]=String(i))}}),n=Object.getPrototypeOf(n);return t}var Gq=iEe();function b2e(e){Gq=e}function Oy(e){try{Gq(e)}catch{}}function O2e(e){}function sEe(e,t){return new Promise(function(n){La.with(Nce(La.active()),function(){e.export(t,function(r){n(r)})})})}var uEe={_export:sEe},uN;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(uN||(uN={}));var cEe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},lEe=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},dEe=function(){function e(t,n){var r,i,a,c;this._exporter=t,this._finishedLogRecords=[];var f=sN();this._maxExportBatchSize=(r=n?.maxExportBatchSize)!==null&&r!==void 0?r:f.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=(i=n?.maxQueueSize)!==null&&i!==void 0?i:f.OTEL_BLRP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=(a=n?.scheduledDelayMillis)!==null&&a!==void 0?a:f.OTEL_BLRP_SCHEDULE_DELAY,this._exportTimeoutMillis=(c=n?.exportTimeoutMillis)!==null&&c!==void 0?c:f.OTEL_BLRP_EXPORT_TIMEOUT,this._shutdownOnce=new bq(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Ln.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.onEmit=function(t){this._shutdownOnce.isCalled||this._addToBuffer(t)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){return cEe(this,void 0,void 0,function(){return lEe(this,function(t){switch(t.label){case 0:return this.onShutdown(),[4,this._flushAll()];case 1:return t.sent(),[4,this._exporter.shutdown()];case 2:return t.sent(),[2]}})})},e.prototype._addToBuffer=function(t){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(t),this._maybeStartTimer())},e.prototype._flushAll=function(){var t=this;return new Promise(function(n,r){for(var i=[],a=Math.ceil(t._finishedLogRecords.length/t._maxExportBatchSize),c=0;c<a;c++)i.push(t._flushOneBatch());Promise.all(i).then(function(){n()}).catch(r)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedLogRecords.length===0?Promise.resolve():new Promise(function(n,r){wq(t._export(t._finishedLogRecords.splice(0,t._maxExportBatchSize)),t._exportTimeoutMillis).then(function(){return n()}).catch(r)})},e.prototype._maybeStartTimer=function(){var t=this;this._timer===void 0&&(this._timer=setTimeout(function(){t._flushOneBatch().then(function(){t._finishedLogRecords.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){Oy(n)})},this._scheduledDelayMillis),this._timer,void 0)},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e.prototype._export=function(t){var n=this,r=function(){return uEe._export(n._exporter,t).then(function(a){var c;a.code!==uN.SUCCESS&&Oy((c=a.error)!==null&&c!==void 0?c:new Error("BatchLogRecordProcessor: log record export failed (status "+a+")"))}).catch(Oy)},i=t.map(function(a){return a.resource}).filter(function(a){return a.asyncAttributesPending});return i.length===0?r():Promise.all(i.map(function(a){var c;return(c=a.waitForAsyncAttributes)===null||c===void 0?void 0:c.call(a)})).then(r,Oy)},e}(),fEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_Ee=function(e){fEe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i._onInit(r),i}return t.prototype.onShutdown=function(){typeof document>"u"||(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t.prototype._onInit=function(n){var r=this;n?.disableAutoFlushOnDocumentHide===!0||typeof document>"u"||(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&r.forceFlush()},this._pageHideListener=function(){r.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t}(dEe),pEe=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),hEe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},SEe={set:function(e,t,n){e!=null&&(e[t]=n)}},cN=dy("OpenTelemetry Baggage Key");function Fq(e){return e.getValue(cN)||void 0}function gEe(){return Fq(fy.getInstance().active())}function mEe(e,t){return e.setValue(cN,t)}function vEe(e){return e.deleteValue(cN)}var EEe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},yEe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TEe=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(!!n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=EEe(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var c=yEe(r),f=c.next();!f.done;f=c.next()){var y=f.value;a._entries.delete(y)}}catch(h){t={error:h}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),AEe=Symbol("BaggageEntryMetadata"),CEe=xs.instance();function bEe(e){return e===void 0&&(e={}),new TEe(new Map(Object.entries(e)))}function OEe(e){return typeof e!="string"&&(CEe.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:AEe,toString:function(){return e}}}var lN="propagation",REe=new pEe,PEe=function(){function e(){this.createBaggage=bEe,this.getBaggage=Fq,this.getActiveBaggage=gEe,this.setBaggage=mEe,this.deleteBaggage=vEe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Yh(lN,t,xs.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=SEe),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=hEe),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){zh(lN,xs.instance())},e.prototype._getGlobalPropagator=function(){return Ml(lN)||REe},e}(),Wf=PEe.getInstance(),MEe="[object Object]",IEe="[object Null]",NEe="[object Undefined]",LEe=Function.prototype,xq=LEe.toString,DEe=xq.call(Object),wEe=UEe(Object.getPrototypeOf,Object),Vq=Object.prototype,Bq=Vq.hasOwnProperty,Gl=Symbol?Symbol.toStringTag:void 0,kq=Vq.toString;function UEe(e,t){return function(n){return e(t(n))}}function jq(e){if(!$Ee(e)||GEe(e)!==MEe)return!1;var t=wEe(e);if(t===null)return!0;var n=Bq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&xq.call(n)===DEe}function $Ee(e){return e!=null&&typeof e=="object"}function GEe(e){return e==null?e===void 0?NEe:IEe:Gl&&Gl in Object(e)?FEe(e):xEe(e)}function FEe(e){var t=Bq.call(e,Gl),n=e[Gl],r=!1;try{e[Gl]=void 0,r=!0}catch{}var i=kq.call(e);return r&&(t?e[Gl]=n:delete e[Gl]),i}function xEe(e){return kq.call(e)}var VEe=20;function BEe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=Qq(n,e.shift(),0,r);return n}function dN(e){return Ry(e)?e.slice():e}function Qq(e,t,n,r){n===void 0&&(n=0);var i;if(!(n>VEe)){if(n++,Py(e)||Py(t)||Hq(t))i=dN(t);else if(Ry(e)){if(i=e.slice(),Ry(t))for(var a=0,c=t.length;a<c;a++)i.push(dN(t[a]));else if(iS(t))for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a];i[y]=dN(t[y])}}else if(iS(e))if(iS(t)){if(!kEe(e,t))return t;i=Object.assign({},e);for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a],h=t[y];if(Py(h))typeof h>"u"?delete i[y]:i[y]=h;else{var m=i[y],F=h;if(qq(e,y,r)||qq(t,y,r))delete i[y];else{if(iS(m)&&iS(F)){var W=r.get(m)||[],ye=r.get(F)||[];W.push({obj:e,key:y}),ye.push({obj:t,key:y}),r.set(m,W),r.set(F,ye)}i[y]=Qq(i[y],h,n,r)}}}}else i=t;return i}}function qq(e,t,n){for(var r=n.get(e[t])||[],i=0,a=r.length;i<a;i++){var c=r[i];if(c.key===t&&c.obj===e)return!0}return!1}function Ry(e){return Array.isArray(e)}function Hq(e){return typeof e=="function"}function iS(e){return!Py(e)&&!Ry(e)&&!Hq(e)&&typeof e=="object"}function Py(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function kEe(e,t){return!(!jq(e)||!jq(t))}var Bs;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Bs||(Bs={}));var jEe=",",QEe=["OTEL_SDK_DISABLED"];function qEe(e){return QEe.indexOf(e)>-1}var HEe=["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 YEe(e){return HEe.indexOf(e)>-1}var zEe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function WEe(e){return zEe.indexOf(e)>-1}var My=1/0,Iy=128,KEe=128,XEe=128,Yq={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:xr.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:My,OTEL_ATTRIBUTE_COUNT_LIMIT:Iy,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:My,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Iy,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:My,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Iy,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:KEe,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:XEe,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Bs.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 JEe(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function ZEe(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function eye(e,t,n,r){r===void 0&&(r=jEe);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(a){return a.trim()}))}var tye={ALL:xr.ALL,VERBOSE:xr.VERBOSE,DEBUG:xr.DEBUG,INFO:xr.INFO,WARN:xr.WARN,ERROR:xr.ERROR,NONE:xr.NONE};function nye(e,t,n){var r=n[e];if(typeof r=="string"){var i=tye[r.toUpperCase()];i!=null&&(t[e]=i)}}function zq(e){var t={};for(var n in Yq){var r=n;switch(r){case"OTEL_LOG_LEVEL":nye(r,t,e);break;default:if(qEe(r))JEe(r,t,e);else if(YEe(r))ZEe(r,t,e);else if(WEe(r))eye(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var Wq=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{};function aS(){var e=zq(Wq);return Object.assign({},Yq,e)}function rye(){return zq(Wq)}var iye=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},aye=function(){function e(t){t===void 0&&(t={});var n;this._propagators=(n=t.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(r){return typeof r.fields=="function"?r.fields():[]}).reduce(function(r,i){return r.concat(i)},[])))}return e.prototype.inject=function(t,n,r){var i,a;try{for(var c=iye(this._propagators),f=c.next();!f.done;f=c.next()){var y=f.value;try{y.inject(t,n,r)}catch(h){Ln.warn("Failed to inject with "+y.constructor.name+". Err: "+h.message)}}}catch(h){i={error:h}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,n,r){return this._propagators.reduce(function(i,a){try{return a.extract(i,n,r)}catch(c){Ln.warn("Failed to extract with "+a.constructor.name+". Err: "+c.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}(),fN=dy("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function oye(e){return e.setValue(fN,!0)}function R2e(e){return e.deleteValue(fN)}function _N(e){return e.getValue(fN)===!0}var pN="[_0-9a-z-*/]",sye="[a-z]"+pN+"{0,255}",uye="[a-z0-9]"+pN+"{0,240}@[a-z]"+pN+"{0,13}",cye=new RegExp("^(?:"+sye+"|"+uye+")$"),lye=/^[ -~]{0,255}[!-~]$/,dye=/,|=/;function fye(e){return cye.test(e)}function _ye(e){return lye.test(e)&&!dye.test(e)}var Kq=32,pye=512,Xq=",",Jq="=",hye=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,n){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r},e.prototype.unset=function(t){var n=this._clone();return n._internalState.delete(t),n},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(n,r){return n.push(r+Jq+t.get(r)),n},[]).join(Xq)},e.prototype._parse=function(t){t.length>pye||(this._internalState=t.split(Xq).reverse().reduce(function(n,r){var i=r.trim(),a=i.indexOf(Jq);if(a!==-1){var c=i.slice(0,a),f=i.slice(a+1,r.length);fye(c)&&_ye(f)&&n.set(c,f)}return n},new Map),this._internalState.size>Kq&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Kq))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),hN="traceparent",SN="tracestate",Sye="00",gye="(?!ff)[\\da-f]{2}",mye="(?![0]{32})[\\da-f]{32}",vye="(?![0]{16})[\\da-f]{16}",Eye="[\\da-f]{2}",yye=new RegExp("^\\s?("+gye+")-("+mye+")-("+vye+")-("+Eye+")(-.*)?\\s?$");function Tye(e){var t=yye.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Aye=function(){function e(){}return e.prototype.inject=function(t,n,r){var i=Ea.getSpanContext(t);if(!(!i||_N(t)||!Qf(i))){var a=Sye+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Vs.NONE).toString(16);r.set(n,hN,a),i.traceState&&r.set(n,SN,i.traceState.serialize())}},e.prototype.extract=function(t,n,r){var i=r.get(n,hN);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var c=Tye(a);if(!c)return t;c.isRemote=!0;var f=r.get(n,SN);if(f){var y=Array.isArray(f)?f.join(","):f;c.traceState=new hye(typeof y=="string"?y:void 0)}return Ea.setSpanContext(t,c)},e.prototype.fields=function(){return[hN,SN]},e}(),Cye="=",gN=";",mN=",",vN="baggage",bye=180,Oye=4096,Rye=8192,Pye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Mye(e){return e.reduce(function(t,n){var r=""+t+(t!==""?mN:"")+n;return r.length>Rye?t:r},"")}function Iye(e){return e.getAllEntries().map(function(t){var n=Pye(t,2),r=n[0],i=n[1],a=encodeURIComponent(r)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=gN+i.metadata.toString()),a})}function Zq(e){var t=e.split(gN);if(!(t.length<=0)){var n=t.shift();if(!!n){var r=n.indexOf(Cye);if(!(r<=0)){var i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim()),c;return t.length>0&&(c=OEe(t.join(gN))),{key:i,value:a,metadata:c}}}}}function P2e(e){return typeof e!="string"||e.length===0?{}:e.split(BAGGAGE_ITEMS_SEPARATOR).map(function(t){return Zq(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,n){return t[n.key]=n.value,t},{})}var Nye=function(){function e(){}return e.prototype.inject=function(t,n,r){var i=Wf.getBaggage(t);if(!(!i||_N(t))){var a=Iye(i).filter(function(f){return f.length<=Oye}).slice(0,bye),c=Mye(a);c.length>0&&r.set(n,vN,c)}},e.prototype.extract=function(t,n,r){var i=r.get(n,vN),a=Array.isArray(i)?i.join(mN):i;if(!a)return t;var c={};if(a.length===0)return t;var f=a.split(mN);return f.forEach(function(y){var h=Zq(y);if(h){var m={value:h.value};h.metadata&&(m.metadata=h.metadata),c[h.key]=m}}),Object.entries(c).length===0?t:Wf.setBaggage(t,Wf.createBaggage(c))},e.prototype.fields=function(){return[vN]},e}(),Ny;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Ny||(Ny={}));var Ly;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ly||(Ly={}));var eH=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Lye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Dy(e){var t,n,r={};if(typeof e!="object"||e==null)return r;try{for(var i=eH(Object.entries(e)),a=i.next();!a.done;a=i.next()){var c=Lye(a.value,2),f=c[0],y=c[1];if(!Dye(f)){Ln.warn("Invalid attribute key: "+f);continue}if(!tH(y)){Ln.warn("Invalid attribute value set for key: "+f);continue}Array.isArray(y)?r[f]=y.slice():r[f]=y}}catch(h){t={error:h}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Dye(e){return typeof e=="string"&&e.length>0}function tH(e){return e==null?!0:Array.isArray(e)?wye(e):nH(e)}function wye(e){var t,n,r;try{for(var i=eH(e),a=i.next();!a.done;a=i.next()){var c=a.value;if(c!=null){if(!r){if(nH(c)){r=typeof c;continue}return!1}if(typeof c!==r)return!1}}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0}function nH(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var EN;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(EN||(EN={}));var Kf=performance,rH=9,Uye=6,$ye=Math.pow(10,Uye),wy=Math.pow(10,rH);function pc(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*$ye);return[n,r]}function yN(){var e=Kf.timeOrigin;if(typeof e!="number"){var t=Kf;e=t.timing&&t.timing.fetchStart}return e}function iH(e){var t=pc(yN()),n=pc(typeof e=="number"?e:Kf.now());return oH(t,n)}function M2e(e){if(TN(e))return e;if(typeof e=="number")return e<yN()?iH(e):pc(e);if(e instanceof Date)return pc(e.getTime());throw TypeError("Invalid input type")}function Gye(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=wy),[n,r]}function I2e(e){var t=rH,n=""+"0".repeat(t)+e[1]+"Z",r=n.substring(n.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",r)}function N2e(e){return e[0]*wy+e[1]}function L2e(e){return e[0]*1e3+e[1]/1e6}function D2e(e){return e[0]*1e6+e[1]/1e3}function TN(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function aH(e){return TN(e)||typeof e=="number"||e instanceof Date}function oH(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=wy&&(n[1]-=wy,n[0]+=1),n}function Go(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fye="aws.lambda.invoked_arn",xye="db.system",Vye="db.connection_string",Bye="db.user",kye="db.jdbc.driver_classname",jye="db.name",Qye="db.statement",qye="db.operation",Hye="db.mssql.instance_name",Yye="db.cassandra.keyspace",zye="db.cassandra.page_size",Wye="db.cassandra.consistency_level",Kye="db.cassandra.table",Xye="db.cassandra.idempotence",Jye="db.cassandra.speculative_execution_count",Zye="db.cassandra.coordinator.id",eTe="db.cassandra.coordinator.dc",tTe="db.hbase.namespace",nTe="db.redis.database_index",rTe="db.mongodb.collection",iTe="db.sql.table",sH="exception.type",uH="exception.message",cH="exception.stacktrace",aTe="exception.escaped",oTe="faas.trigger",sTe="faas.execution",uTe="faas.document.collection",cTe="faas.document.operation",lTe="faas.document.time",dTe="faas.document.name",fTe="faas.time",_Te="faas.cron",pTe="faas.coldstart",hTe="faas.invoked_name",STe="faas.invoked_provider",gTe="faas.invoked_region",mTe="net.transport",vTe="net.peer.ip",ETe="net.peer.port",yTe="net.peer.name",TTe="net.host.ip",ATe="net.host.port",CTe="net.host.name",bTe="net.host.connection.type",OTe="net.host.connection.subtype",RTe="net.host.carrier.name",PTe="net.host.carrier.mcc",MTe="net.host.carrier.mnc",ITe="net.host.carrier.icc",NTe="peer.service",LTe="enduser.id",DTe="enduser.role",wTe="enduser.scope",UTe="thread.id",$Te="thread.name",GTe="code.function",FTe="code.namespace",xTe="code.filepath",VTe="code.lineno",BTe="http.method",kTe="http.url",jTe="http.target",QTe="http.host",qTe="http.scheme",HTe="http.status_code",YTe="http.flavor",zTe="http.user_agent",WTe="http.request_content_length",KTe="http.request_content_length_uncompressed",XTe="http.response_content_length",JTe="http.response_content_length_uncompressed",ZTe="http.server_name",eAe="http.route",tAe="http.client_ip",nAe="aws.dynamodb.table_names",rAe="aws.dynamodb.consumed_capacity",iAe="aws.dynamodb.item_collection_metrics",aAe="aws.dynamodb.provisioned_read_capacity",oAe="aws.dynamodb.provisioned_write_capacity",sAe="aws.dynamodb.consistent_read",uAe="aws.dynamodb.projection",cAe="aws.dynamodb.limit",lAe="aws.dynamodb.attributes_to_get",dAe="aws.dynamodb.index_name",fAe="aws.dynamodb.select",_Ae="aws.dynamodb.global_secondary_indexes",pAe="aws.dynamodb.local_secondary_indexes",hAe="aws.dynamodb.exclusive_start_table",SAe="aws.dynamodb.table_count",gAe="aws.dynamodb.scan_forward",mAe="aws.dynamodb.segment",vAe="aws.dynamodb.total_segments",EAe="aws.dynamodb.count",yAe="aws.dynamodb.scanned_count",TAe="aws.dynamodb.attribute_definitions",AAe="aws.dynamodb.global_secondary_index_updates",CAe="messaging.system",bAe="messaging.destination",OAe="messaging.destination_kind",RAe="messaging.temp_destination",PAe="messaging.protocol",MAe="messaging.protocol_version",IAe="messaging.url",NAe="messaging.message_id",LAe="messaging.conversation_id",DAe="messaging.message_payload_size_bytes",wAe="messaging.message_payload_compressed_size_bytes",UAe="messaging.operation",$Ae="messaging.consumer_id",GAe="messaging.rabbitmq.routing_key",FAe="messaging.kafka.message_key",xAe="messaging.kafka.consumer_group",VAe="messaging.kafka.client_id",BAe="messaging.kafka.partition",kAe="messaging.kafka.tombstone",jAe="rpc.system",QAe="rpc.service",qAe="rpc.method",HAe="rpc.grpc.status_code",YAe="rpc.jsonrpc.version",zAe="rpc.jsonrpc.request_id",WAe="rpc.jsonrpc.error_code",KAe="rpc.jsonrpc.error_message",XAe="message.type",JAe="message.id",ZAe="message.compressed_size",eCe="message.uncompressed_size",w2e=null,U2e=null,$2e=null,G2e=null,F2e=null,x2e=null,V2e=null,B2e=null,k2e=null,j2e=null,Q2e=null,q2e=null,H2e=null,Y2e=null,z2e=null,W2e=null,K2e=null,X2e=null,J2e=null,Z2e=null,e8e=null,AN=sH,CN=uH,tCe=cH,t8e=null,n8e=null,r8e=null,i8e=null,a8e=null,o8e=null,s8e=null,u8e=null,c8e=null,l8e=null,d8e=null,f8e=null,_8e=null,p8e=null,h8e=null,S8e=null,g8e=null,m8e=null,v8e=null,E8e=null,y8e=null,T8e=null,A8e=null,C8e=null,b8e=null,O8e=null,R8e=null,P8e=null,M8e=null,I8e=null,N8e=null,L8e=null,D8e=null,w8e=null,U8e=null,$8e=null,G8e=null,F8e=null,x8e=null,V8e=null,B8e=null,k8e=null,j8e=null,Q8e=null,q8e=null,H8e=null,Y8e=null,z8e=null,W8e=null,K8e=null,X8e=null,J8e=null,Z8e=null,eze=null,tze=null,nze=null,rze=null,ize=null,aze=null,oze=null,sze=null,uze=null,cze=null,lze=null,dze=null,fze=null,_ze=null,pze=null,hze=null,Sze=null,gze=null,mze=null,vze=null,Eze=null,yze=null,Tze=null,Aze=null,Cze=null,bze=null,Oze=null,Rze=null,Pze=null,Mze=null,Ize=null,Nze=null,Lze=null,Dze=null,wze=null,Uze=null,$ze=null,Gze=null,Fze=null,xze=null,Vze=null,Bze=null,kze=null,jze=null,Qze=null,qze=null,Hze=null,Yze=null,zze=null,Wze=null,Kze=null,Xze=Go([Fye,xye,Vye,Bye,kye,jye,Qye,qye,Hye,Yye,zye,Wye,Kye,Xye,Jye,Zye,eTe,tTe,nTe,rTe,iTe,sH,uH,cH,aTe,oTe,sTe,uTe,cTe,lTe,dTe,fTe,_Te,pTe,hTe,STe,gTe,mTe,vTe,ETe,yTe,TTe,ATe,CTe,bTe,OTe,RTe,PTe,MTe,ITe,NTe,LTe,DTe,wTe,UTe,$Te,GTe,FTe,xTe,VTe,BTe,kTe,jTe,QTe,qTe,HTe,YTe,zTe,WTe,KTe,XTe,JTe,ZTe,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,uAe,cAe,lAe,dAe,fAe,_Ae,pAe,hAe,SAe,gAe,mAe,vAe,EAe,yAe,TAe,AAe,CAe,bAe,OAe,RAe,PAe,MAe,IAe,NAe,LAe,DAe,wAe,UAe,$Ae,GAe,FAe,xAe,VAe,BAe,kAe,jAe,QAe,qAe,HAe,YAe,zAe,WAe,KAe,XAe,JAe,ZAe,eCe]),nCe="other_sql",rCe="mssql",iCe="mysql",aCe="oracle",oCe="db2",sCe="postgresql",uCe="redshift",cCe="hive",lCe="cloudscape",dCe="hsqldb",fCe="progress",_Ce="maxdb",pCe="hanadb",hCe="ingres",SCe="firstsql",gCe="edb",mCe="cache",vCe="adabas",ECe="firebird",yCe="derby",TCe="filemaker",ACe="informix",CCe="instantdb",bCe="interbase",OCe="mariadb",RCe="netezza",PCe="pervasive",MCe="pointbase",ICe="sqlite",NCe="sybase",LCe="teradata",DCe="vertica",wCe="h2",UCe="coldfusion",$Ce="cassandra",GCe="hbase",FCe="mongodb",xCe="redis",VCe="couchbase",BCe="couchdb",kCe="cosmosdb",jCe="dynamodb",QCe="neo4j",qCe="geode",HCe="elasticsearch",YCe="memcached",zCe="cockroachdb",Jze=null,Zze=null,eWe=null,tWe=null,nWe=null,rWe=null,iWe=null,aWe=null,oWe=null,sWe=null,uWe=null,cWe=null,lWe=null,dWe=null,fWe=null,_We=null,pWe=null,hWe=null,SWe=null,gWe=null,mWe=null,vWe=null,EWe=null,yWe=null,TWe=null,AWe=null,CWe=null,bWe=null,OWe=null,RWe=null,PWe=null,MWe=null,IWe=null,NWe=null,LWe=null,DWe=null,wWe=null,UWe=null,$We=null,GWe=null,FWe=null,xWe=null,VWe=null,BWe=null,kWe=null,jWe=null,QWe=null,qWe=Go([nCe,rCe,iCe,aCe,oCe,sCe,uCe,cCe,lCe,dCe,fCe,_Ce,pCe,hCe,SCe,gCe,mCe,vCe,ECe,yCe,TCe,ACe,CCe,bCe,OCe,RCe,PCe,MCe,ICe,NCe,LCe,DCe,wCe,UCe,$Ce,GCe,FCe,xCe,VCe,BCe,kCe,jCe,QCe,qCe,HCe,YCe,zCe]),WCe="all",KCe="each_quorum",XCe="quorum",JCe="local_quorum",ZCe="one",ebe="two",tbe="three",nbe="local_one",rbe="any",ibe="serial",abe="local_serial",HWe=null,YWe=null,zWe=null,WWe=null,KWe=null,XWe=null,JWe=null,ZWe=null,eKe=null,tKe=null,nKe=null,rKe=Go([WCe,KCe,XCe,JCe,ZCe,ebe,tbe,nbe,rbe,ibe,abe]),obe="datasource",sbe="http",ube="pubsub",cbe="timer",lbe="other",iKe=null,aKe=null,oKe=null,sKe=null,uKe=null,cKe=Go([obe,sbe,ube,cbe,lbe]),dbe="insert",fbe="edit",_be="delete",lKe=null,dKe=null,fKe=null,_Ke=Go([dbe,fbe,_be]),pbe="alibaba_cloud",hbe="aws",Sbe="azure",gbe="gcp",pKe=null,hKe=null,SKe=null,gKe=null,mKe=Go([pbe,hbe,Sbe,gbe]),mbe="ip_tcp",vbe="ip_udp",Ebe="ip",ybe="unix",Tbe="pipe",Abe="inproc",Cbe="other",vKe=null,EKe=null,yKe=null,TKe=null,AKe=null,CKe=null,bKe=null,OKe=Go([mbe,vbe,Ebe,ybe,Tbe,Abe,Cbe]),bbe="wifi",Obe="wired",Rbe="cell",Pbe="unavailable",Mbe="unknown",RKe=null,PKe=null,MKe=null,IKe=null,NKe=null,LKe=Go([bbe,Obe,Rbe,Pbe,Mbe]),Ibe="gprs",Nbe="edge",Lbe="umts",Dbe="cdma",wbe="evdo_0",Ube="evdo_a",$be="cdma2000_1xrtt",Gbe="hsdpa",Fbe="hsupa",xbe="hspa",Vbe="iden",Bbe="evdo_b",kbe="lte",jbe="ehrpd",Qbe="hspap",qbe="gsm",Hbe="td_scdma",Ybe="iwlan",zbe="nr",Wbe="nrnsa",Kbe="lte_ca",DKe=null,wKe=null,UKe=null,$Ke=null,GKe=null,FKe=null,xKe=null,VKe=null,BKe=null,kKe=null,jKe=null,QKe=null,qKe=null,HKe=null,YKe=null,zKe=null,WKe=null,KKe=null,XKe=null,JKe=null,ZKe=null,e3e=Go([Ibe,Nbe,Lbe,Dbe,wbe,Ube,$be,Gbe,Fbe,xbe,Vbe,Bbe,kbe,jbe,Qbe,qbe,Hbe,Ybe,zbe,Wbe,Kbe]),Xbe="1.0",Jbe="1.1",Zbe="2.0",eOe="SPDY",tOe="QUIC",t3e=null,n3e=null,r3e=null,i3e=null,a3e=null,o3e={HTTP_1_0:Xbe,HTTP_1_1:Jbe,HTTP_2_0:Zbe,SPDY:eOe,QUIC:tOe},nOe="queue",rOe="topic",s3e=null,u3e=null,c3e=Go([nOe,rOe]),iOe="receive",aOe="process",l3e=null,d3e=null,f3e=Go([iOe,aOe]),oOe=0,sOe=1,uOe=2,cOe=3,lOe=4,dOe=5,fOe=6,_Oe=7,pOe=8,hOe=9,SOe=10,gOe=11,mOe=12,vOe=13,EOe=14,yOe=15,TOe=16,_3e=null,p3e=null,h3e=null,S3e=null,g3e=null,m3e=null,v3e=null,E3e=null,y3e=null,T3e=null,A3e=null,C3e=null,b3e=null,O3e=null,R3e=null,P3e=null,M3e=null,I3e={OK:oOe,CANCELLED:sOe,UNKNOWN:uOe,INVALID_ARGUMENT:cOe,DEADLINE_EXCEEDED:lOe,NOT_FOUND:dOe,ALREADY_EXISTS:fOe,PERMISSION_DENIED:_Oe,RESOURCE_EXHAUSTED:pOe,FAILED_PRECONDITION:hOe,ABORTED:SOe,OUT_OF_RANGE:gOe,UNIMPLEMENTED:mOe,INTERNAL:vOe,UNAVAILABLE:EOe,DATA_LOSS:yOe,UNAUTHENTICATED:TOe},AOe="SENT",COe="RECEIVED",N3e=null,L3e=null,D3e=Go([AOe,COe]),bOe="exception",bN=function(){return bN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},bN.apply(this,arguments)},OOe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lH=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},ROe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},POe=function(){function e(t,n,r,i,a,c,f,y,h,m){f===void 0&&(f=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:EN.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=i,this.parentSpanId=c,this.kind=a,this.links=f;var F=Date.now();this._performanceStartTime=Kf.now(),this._performanceOffset=F-(this._performanceStartTime+yN()),this._startTimeProvided=y!=null,this.startTime=this._getTime(y??F),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,m!=null&&this.setAttributes(m),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return n==null||this._isSpanEnded()?this:t.length===0?(Ln.warn("Invalid attribute key: "+t),this):tH(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this):(Ln.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var n,r;try{for(var i=OOe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var c=lH(a.value,2),f=c[0],y=c[1];this.setAttribute(f,y)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.addEvent=function(t,n,r){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return Ln.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&Ln.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),aH(n)&&(aH(r)||(r=n),n=void 0);var i=Dy(n);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var n;return(n=this.links).push.apply(n,ROe([],lH(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=bN({},t),this.status.message!=null&&typeof t.message!="string"&&(Ln.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message),this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){Ln.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=Gye(this.startTime,this.endTime),this._duration[0]<0&&(Ln.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&&Ln.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<=Kf.now())return iH(t+this._performanceOffset);if(typeof t=="number")return pc(t);if(t instanceof Date)return pc(t.getTime());if(TN(t))return t;if(this._startTimeProvided)return pc(Date.now());var n=Kf.now()-this._performanceStartTime;return oH(this.startTime,pc(n))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,n){var r={};typeof t=="string"?r[CN]=t:t&&(t.code?r[AN]=t.code.toString():t.name&&(r[AN]=t.name),t.message&&(r[CN]=t.message),t.stack&&(r[tCe]=t.stack)),r[AN]||r[CN]?this.addEvent(bOe,r,n):Ln.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&Ln.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,n){return t.length<=n?t:t.substring(0,n)},e.prototype._truncateToSize=function(t){var n=this,r=this._attributeValueLengthLimit;return r<=0?(Ln.warn("Attribute value limit must be positive, got "+r),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(i){return typeof i=="string"?n._truncateToLimitUtil(i,r):i}):t},e}(),Xf;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Xf||(Xf={}));var Uy=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Xf.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Jf=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Xf.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}();function MOe(){return function(e){Ln.error(IOe(e))}}function IOe(e){return typeof e=="string"?e:JSON.stringify(NOe(e))}function NOe(e){for(var t={},n=e;n!==null;)Object.getOwnPropertyNames(n).forEach(function(r){if(!t[r]){var i=n[r];i&&(t[r]=String(i))}}),n=Object.getPrototypeOf(n);return t}var dH=MOe();function w3e(e){dH=e}function Zf(e){try{dH(e)}catch{}}var ON=function(){function e(t){var n,r,i,a;this._root=t.root,this._root||(Zf(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Jf),this._remoteParentSampled=(n=t.remoteParentSampled)!==null&&n!==void 0?n:new Jf,this._remoteParentNotSampled=(r=t.remoteParentNotSampled)!==null&&r!==void 0?r:new Uy,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new Jf,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new Uy}return e.prototype.shouldSample=function(t,n,r,i,a,c){var f=Ea.getSpanContext(t);return!f||!Qf(f)?this._root.shouldSample(t,n,r,i,a,c):f.isRemote?f.traceFlags&Vs.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,a,c):this._remoteParentNotSampled.shouldSample(t,n,r,i,a,c):f.traceFlags&Vs.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,a,c):this._localParentNotSampled.shouldSample(t,n,r,i,a,c)},e.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()+"}"},e}(),fH=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,n){return{decision:RQ(n)&&this._accumulate(n)<this._upperBound?Xf.RECORD_AND_SAMPLED:Xf.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var n=0,r=0;r<t.length/8;r++){var i=r*8,a=parseInt(t.slice(i,i+8),16);n=(n^a)>>>0}return n},e}(),LOe=Bs.AlwaysOn,e_=1;function _H(){var e=aS();return{sampler:pH(e),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function pH(e){switch(e===void 0&&(e=aS()),e.OTEL_TRACES_SAMPLER){case Bs.AlwaysOn:return new Jf;case Bs.AlwaysOff:return new Uy;case Bs.ParentBasedAlwaysOn:return new ON({root:new Jf});case Bs.ParentBasedAlwaysOff:return new ON({root:new Uy});case Bs.TraceIdRatio:return new fH(hH(e));case Bs.ParentBasedTraceIdRatio:return new ON({root:new fH(hH(e))});default:return Ln.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+LOe+'".'),new Jf}}function hH(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return Ln.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+e_+"."),e_;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(Ln.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+e_+"."),e_):t<0||t>1?(Ln.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+e_+"."),e_):t}function DOe(e){var t={sampler:pH()},n=_H(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function wOe(e){var t,n,r,i,a,c,f,y,h,m,F,W,ye=Object.assign({},e.spanLimits),Te=rye();return ye.attributeCountLimit=(c=(a=(i=(n=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&n!==void 0?n:(r=e.generalLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:Te.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:Te.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&c!==void 0?c:Iy,ye.attributeValueLengthLimit=(W=(F=(m=(y=(f=e.spanLimits)===null||f===void 0?void 0:f.attributeValueLengthLimit)!==null&&y!==void 0?y:(h=e.generalLimits)===null||h===void 0?void 0:h.attributeValueLengthLimit)!==null&&m!==void 0?m:Te.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&F!==void 0?F:Te.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&W!==void 0?W:My,Object.assign({},e,{spanLimits:ye})}var UOe=8,$Oe=16,GOe=function(){function e(){this.generateTraceId=SH($Oe),this.generateSpanId=SH(UOe)}return e}(),$y=Array(32);function SH(e){return function(){for(var n=0;n<e*2;n++)$y[n]=Math.floor(Math.random()*16)+48,$y[n]>=58&&($y[n]+=39);return String.fromCharCode.apply(null,$y.slice(0,e*2))}}var FOe=function(){function e(t,n,r){this._tracerProvider=r;var i=DOe(n);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=n.idGenerator||new GOe,this.resource=r.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,n,r){var i,a,c;n===void 0&&(n={}),r===void 0&&(r=La.active()),n.root&&(r=Ea.deleteSpan(r));var f=Ea.getSpan(r);if(_N(r)){Ln.debug("Instrumentation suppressed, returning Noop Span");var y=Ea.wrapSpanContext(bQ);return y}var h=f?.spanContext(),m=this._idGenerator.generateSpanId(),F,W,ye;!h||!Ea.isSpanContextValid(h)?F=this._idGenerator.generateTraceId():(F=h.traceId,W=h.traceState,ye=h.spanId);var Te=(i=n.kind)!==null&&i!==void 0?i:Ny.INTERNAL,Re=((a=n.links)!==null&&a!==void 0?a:[]).map(function($n){return{context:$n.context,attributes:Dy($n.attributes)}}),Ye=Dy(n.attributes),qe=this._sampler.shouldSample(r,F,t,Te,Ye,Re);W=(c=qe.traceState)!==null&&c!==void 0?c:W;var Ke=qe.decision===Ly.RECORD_AND_SAMPLED?Vs.SAMPLED:Vs.NONE,Et={traceId:F,spanId:m,traceFlags:Ke,traceState:W};if(qe.decision===Ly.NOT_RECORD){Ln.debug("Recording is off, propagating context in a non-recording span");var y=Ea.wrapSpanContext(Et);return y}var Ut=Dy(Object.assign(Ye,qe.attributes)),dn=new POe(this,r,t,Et,Te,ye,Re,n.startTime,void 0,Ut);return dn},e.prototype.startActiveSpan=function(t,n,r,i){var a,c,f;if(!(arguments.length<2)){arguments.length===2?f=n:arguments.length===3?(a=n,f=r):(a=n,c=r,f=i);var y=c??La.active(),h=this.startSpan(t,a,y),m=Ea.setSpan(y,h);return La.with(m,f,void 0,h)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),Gy=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gH=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,n,r=[];try{for(var i=Gy(this._spanProcessors),a=i.next();!a.done;a=i.next()){var c=a.value;r.push(c.forceFlush())}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return new Promise(function(f){Promise.all(r).then(function(){f()}).catch(function(y){Zf(y||new Error("MultiSpanProcessor: forceFlush failed")),f()})})},e.prototype.onStart=function(t,n){var r,i;try{for(var a=Gy(this._spanProcessors),c=a.next();!c.done;c=a.next()){var f=c.value;f.onStart(t,n)}}catch(y){r={error:y}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.onEnd=function(t){var n,r;try{for(var i=Gy(this._spanProcessors),a=i.next();!a.done;a=i.next()){var c=a.value;c.onEnd(t)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.shutdown=function(){var t,n,r=[];try{for(var i=Gy(this._spanProcessors),a=i.next();!a.done;a=i.next()){var c=a.value;r.push(c.shutdown())}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return new Promise(function(f,y){Promise.all(r).then(function(){f()},y)})},e}(),xOe=function(){function e(){}return e.prototype.onStart=function(t,n){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),VOe=function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),BOe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},kOe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},jOe=function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new VOe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,kOe([this._that],BOe(r),!1))).then(function(a){return n._deferred.resolve(a)},function(a){return n._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),RN;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(RN||(RN={}));function U3e(e){}var QOe=function(){function e(t,n){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var r=aS();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new jOe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Ln.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,n){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Vs.SAMPLED)!==0&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.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()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Ln.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Ln.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(n,r){for(var i=[],a=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),c=0,f=a;c<f;c++)i.push(t._flushOneBatch());Promise.all(i).then(function(){n()}).catch(r)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,r){var i=setTimeout(function(){r(new Error("Timeout"))},t._exportTimeoutMillis);La.with(oye(La.active()),function(){var a;t._finishedSpans.length<=t._maxExportBatchSize?(a=t._finishedSpans,t._finishedSpans=[]):a=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var c=function(){return t._exporter.export(a,function(F){var W;clearTimeout(i),F.code===RN.SUCCESS?n():r((W=F.error)!==null&&W!==void 0?W:new Error("BatchSpanProcessor: span export failed"))})},f=null,y=0,h=a.length;y<h;y++){var m=a[y];m.resource.asyncAttributesPending&&m.resource.waitForAsyncAttributes&&(f??(f=[]),f.push(m.resource.waitForAsyncAttributes()))}f===null?c():Promise.all(f).then(c,function(F){Zf(F),r(F)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var n=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){t._isExporting=!1,Zf(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),this._timer,void 0)}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),qOe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HOe=function(e){qOe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.onInit(r),i}return t.prototype.onInit=function(n){var r=this;n?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&r.forceFlush().catch(function(i){Zf(i)})},this._pageHideListener=function(){r.forceFlush().catch(function(i){Zf(i)})},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}(QOe),YOe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},zOe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Fl;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Fl||(Fl={}));var WOe=function(){function e(t){t===void 0&&(t={});var n,r;this._registeredSpanProcessors=[],this._tracers=new Map;var i=BEe({},_H(),wOe(t));if(this.resource=(n=i.resource)!==null&&n!==void 0?n:vy.empty(),i.mergeResourceWithDefaults&&(this.resource=vy.default().merge(this.resource)),this._config=Object.assign({},i,{resource:this.resource}),!((r=t.spanProcessors)===null||r===void 0)&&r.length)this._registeredSpanProcessors=zOe([],YOe(t.spanProcessors),!1),this.activeSpanProcessor=new gH(this._registeredSpanProcessors);else{var a=this._buildExporterFromEnv();if(a!==void 0){var c=new HOe(a);this.activeSpanProcessor=c}else this.activeSpanProcessor=new xOe}}return e.prototype.getTracer=function(t,n,r){var i=t+"@"+(n||"")+":"+(r?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new FOe({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return Ln.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new gH(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),Ea.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&La.setGlobalContextManager(t.contextManager),t.propagator&&Wf.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(r){return new Promise(function(i){var a,c=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),a=Fl.timeout},t);r.forceFlush().then(function(){clearTimeout(c),a!==Fl.timeout&&(a=Fl.resolved,i(a))}).catch(function(f){clearTimeout(c),a=Fl.error,i(f)})})});return new Promise(function(r,i){Promise.all(n).then(function(a){var c=a.filter(function(f){return f!==Fl.resolved});c.length>0?i(c):r()}).catch(function(a){return i([a])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var n;return(n=this.constructor._registeredPropagators.get(t))===null||n===void 0?void 0:n()},e.prototype._getSpanExporter=function(t){var n;return(n=this.constructor._registeredExporters.get(t))===null||n===void 0?void 0:n()},e.prototype._buildPropagatorFromEnv=function(){var t=this,n=Array.from(new Set(aS().OTEL_PROPAGATORS)),r=n.map(function(a){var c=t._getPropagator(a);return c||Ln.warn('Propagator "'+a+'" requested through environment variable is unavailable.'),c}),i=r.reduce(function(a,c){return c&&a.push(c),a},[]);if(i.length!==0)return n.length===1?i[0]:new aye({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=aS().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var n=this._getSpanExporter(t);return n||Ln.error('Exporter "'+t+'" requested through environment variable is unavailable.'),n}},e._registeredPropagators=new Map([["tracecontext",function(){return new Aye}],["baggage",function(){return new Nye}]]),e._registeredExporters=new Map,e}(),KOe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},XOe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},JOe=function(){function e(){this._enabled=!1,this._currentContext=jf}return e.prototype._bindFunction=function(t,n){t===void 0&&(t=jf);var r=this,i=function(){for(var a=this,c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return r.with(t,function(){return n.apply(a,c)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n},e.prototype.disable=function(){return this._currentContext=jf,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=jf,this)},e.prototype.with=function(t,n,r){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var c=this._currentContext;this._currentContext=t||jf;try{return n.call.apply(n,XOe([r],KOe(i),!1))}finally{this._currentContext=c}},e}(),ZOe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eRe=function(e){ZOe(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,n)||this;if(n.contextManager)throw"contextManager should be defined in register method not in constructor";if(n.propagator)throw"propagator should be defined in register method not in constructor";return r}return t.prototype.register=function(n){n===void 0&&(n={}),n.contextManager===void 0&&(n.contextManager=new JOe),n.contextManager&&n.contextManager.enable(),e.prototype.register.call(this,n)},t}(WOe);function xl(e){let t={};const n=e.length;for(let r=0;r<n;r++){const i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}const tRe="cloud.provider",nRe="cloud.account.id",rRe="cloud.region",iRe="cloud.availability_zone",aRe="cloud.platform",oRe="aws.ecs.container.arn",sRe="aws.ecs.cluster.arn",uRe="aws.ecs.launchtype",cRe="aws.ecs.task.arn",lRe="aws.ecs.task.family",dRe="aws.ecs.task.revision",fRe="aws.eks.cluster.arn",_Re="aws.log.group.names",pRe="aws.log.group.arns",hRe="aws.log.stream.names",SRe="aws.log.stream.arns",gRe="container.name",mRe="container.id",vRe="container.runtime",ERe="container.image.name",yRe="container.image.tag",mH="deployment.environment",TRe="device.id",ARe="device.model.identifier",CRe="device.model.name",bRe="faas.name",ORe="faas.id",RRe="faas.version",PRe="faas.instance",MRe="faas.max_memory",IRe="host.id",NRe="host.name",LRe="host.type",DRe="host.arch",wRe="host.image.name",URe="host.image.id",$Re="host.image.version",GRe="k8s.cluster.name",FRe="k8s.node.name",xRe="k8s.node.uid",VRe="k8s.namespace.name",BRe="k8s.pod.uid",kRe="k8s.pod.name",jRe="k8s.container.name",QRe="k8s.replicaset.uid",qRe="k8s.replicaset.name",HRe="k8s.deployment.uid",YRe="k8s.deployment.name",zRe="k8s.statefulset.uid",WRe="k8s.statefulset.name",KRe="k8s.daemonset.uid",XRe="k8s.daemonset.name",JRe="k8s.job.uid",ZRe="k8s.job.name",ePe="k8s.cronjob.uid",tPe="k8s.cronjob.name",nPe="os.type",rPe="os.description",iPe="os.name",aPe="os.version",oPe="process.pid",sPe="process.executable.name",uPe="process.executable.path",cPe="process.command",lPe="process.command_line",dPe="process.command_args",fPe="process.owner",_Pe="process.runtime.name",pPe="process.runtime.version",hPe="process.runtime.description",vH="service.name",EH="service.namespace",SPe="service.instance.id",yH="service.version",gPe="telemetry.sdk.name",TH="telemetry.sdk.language",mPe="telemetry.sdk.version",vPe="telemetry.auto.version",EPe="webengine.name",yPe="webengine.version",TPe="webengine.description",$3e=null,G3e=null,F3e=null,x3e=null,V3e=null,B3e=null,k3e=null,j3e=null,Q3e=null,q3e=null,H3e=null,Y3e=null,z3e=null,W3e=null,K3e=null,X3e=null,J3e=null,Z3e=null,e6e=null,t6e=null,n6e=null,APe=mH,r6e=null,i6e=null,a6e=null,o6e=null,s6e=null,u6e=null,c6e=null,l6e=null,d6e=null,f6e=null,_6e=null,p6e=null,h6e=null,S6e=null,g6e=null,m6e=null,v6e=null,E6e=null,y6e=null,T6e=null,A6e=null,C6e=null,b6e=null,O6e=null,R6e=null,P6e=null,M6e=null,I6e=null,N6e=null,L6e=null,D6e=null,w6e=null,U6e=null,$6e=null,G6e=null,F6e=null,x6e=null,V6e=null,B6e=null,k6e=null,j6e=null,Q6e=null,q6e=null,H6e=null,Y6e=null,z6e=null,W6e=null,K6e=null,CPe=vH,bPe=EH,X6e=null,OPe=yH,J6e=null,RPe=TH,Z6e=null,e4e=null,t4e=null,n4e=null,r4e=null,i4e=xl([tRe,nRe,rRe,iRe,aRe,oRe,sRe,uRe,cRe,lRe,dRe,fRe,_Re,pRe,hRe,SRe,gRe,mRe,vRe,ERe,yRe,mH,TRe,ARe,CRe,bRe,ORe,RRe,PRe,MRe,IRe,NRe,LRe,DRe,wRe,URe,$Re,GRe,FRe,xRe,VRe,BRe,kRe,jRe,QRe,qRe,HRe,YRe,zRe,WRe,KRe,XRe,JRe,ZRe,ePe,tPe,nPe,rPe,iPe,aPe,oPe,sPe,uPe,cPe,lPe,dPe,fPe,_Pe,pPe,hPe,vH,EH,SPe,yH,gPe,TH,mPe,vPe,EPe,yPe,TPe]),PPe="alibaba_cloud",MPe="aws",IPe="azure",NPe="gcp",a4e=null,o4e=null,s4e=null,u4e=null,c4e=xl([PPe,MPe,IPe,NPe]),LPe="alibaba_cloud_ecs",DPe="alibaba_cloud_fc",wPe="aws_ec2",UPe="aws_ecs",$Pe="aws_eks",GPe="aws_lambda",FPe="aws_elastic_beanstalk",xPe="azure_vm",VPe="azure_container_instances",BPe="azure_aks",kPe="azure_functions",jPe="azure_app_service",QPe="gcp_compute_engine",qPe="gcp_cloud_run",HPe="gcp_kubernetes_engine",YPe="gcp_cloud_functions",zPe="gcp_app_engine",l4e=null,d4e=null,f4e=null,_4e=null,p4e=null,h4e=null,S4e=null,g4e=null,m4e=null,v4e=null,E4e=null,y4e=null,T4e=null,A4e=null,C4e=null,b4e=null,O4e=null,R4e=xl([LPe,DPe,wPe,UPe,$Pe,GPe,FPe,xPe,VPe,BPe,kPe,jPe,QPe,qPe,HPe,YPe,zPe]),WPe="ec2",KPe="fargate",P4e=null,M4e=null,I4e=xl([WPe,KPe]),XPe="amd64",JPe="arm32",ZPe="arm64",eMe="ia64",tMe="ppc32",nMe="ppc64",rMe="x86",N4e=null,L4e=null,D4e=null,w4e=null,U4e=null,$4e=null,G4e=null,F4e=xl([XPe,JPe,ZPe,eMe,tMe,nMe,rMe]),iMe="windows",aMe="linux",oMe="darwin",sMe="freebsd",uMe="netbsd",cMe="openbsd",lMe="dragonflybsd",dMe="hpux",fMe="aix",_Me="solaris",pMe="z_os",x4e=null,V4e=null,B4e=null,k4e=null,j4e=null,Q4e=null,q4e=null,H4e=null,Y4e=null,z4e=null,W4e=null,K4e=xl([iMe,aMe,oMe,sMe,uMe,cMe,lMe,dMe,fMe,_Me,pMe]),hMe="cpp",SMe="dotnet",gMe="erlang",mMe="go",vMe="java",EMe="nodejs",yMe="php",TMe="python",AMe="ruby",CMe="webjs",X4e=null,J4e=null,Z4e=null,e5e=null,t5e=null,n5e=null,r5e=null,i5e=null,a5e=null,o5e=null,s5e=xl([hMe,SMe,gMe,mMe,vMe,EMe,yMe,TMe,AMe,CMe]);var bMe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},OMe=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};function RMe(e,t,n){var r,i;try{i=e()}catch(a){r=a}finally{if(t(r,i),r&&!n)throw r;return i}}function u5e(e,t,n){return bMe(this,void 0,void 0,function(){var r,i,a;return OMe(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),[4,e()];case 1:return i=c.sent(),[3,4];case 2:return a=c.sent(),r=a,[3,4];case 3:if(t(r,i),r&&!n)throw r;return[2,i];case 4:return[2]}})})}function AH(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Vl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),PMe=function(){function e(){}return e.prototype.createGauge=function(t,n){return GMe},e.prototype.createHistogram=function(t,n){return FMe},e.prototype.createCounter=function(t,n){return $Me},e.prototype.createUpDownCounter=function(t,n){return xMe},e.prototype.createObservableGauge=function(t,n){return BMe},e.prototype.createObservableCounter=function(t,n){return VMe},e.prototype.createObservableUpDownCounter=function(t,n){return kMe},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),Fy=function(){function e(){}return e}(),MMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Fy),IMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Fy),NMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Fy),LMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Fy),PN=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),DMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(PN),wMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(PN),UMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(PN),CH=new PMe,$Me=new MMe,GMe=new NMe,FMe=new LMe,xMe=new IMe,VMe=new DMe,BMe=new wMe,kMe=new UMe;function c5e(){return CH}var jMe=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return CH},e}(),QMe=new jMe,MN="metrics",qMe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Yh(MN,t,xs.instance())},e.prototype.getMeterProvider=function(){return Ml(MN)||QMe},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){zh(MN,xs.instance())},e}(),HMe=qMe.getInstance(),YMe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{},xy=Symbol.for("io.opentelemetry.js.api.logs"),oS=YMe;function zMe(e,t,n){return function(r){return r===e?t:n}}var bH=1,WMe=function(){function e(){}return e.prototype.getLogger=function(t,n,r){return new rq},e}(),OH=new WMe,KMe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return oS[xy]?this.getLoggerProvider():(oS[xy]=zMe(bH,t,OH),t)},e.prototype.getLoggerProvider=function(){var t,n;return(n=(t=oS[xy])===null||t===void 0?void 0:t.call(oS,bH))!==null&&n!==void 0?n:OH},e.prototype.getLogger=function(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)},e.prototype.disable=function(){delete oS[xy]},e}(),XMe=KMe.getInstance(),Vy=_(8821),By=function(){return By=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},By.apply(this,arguments)},JMe=function(){function e(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this._wrap=Vy.wrap,this._unwrap=Vy.unwrap,this._massWrap=Vy.massWrap,this._massUnwrap=Vy.massUnwrap,this._config=By({enabled:!0},r),this._diag=Ln.createComponentLogger({namespace:t}),this._tracer=Ea.getTracer(t,n),this._meter=HMe.getMeter(t,n),this._logger=XMe.getLogger(t,n),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,n=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(n)?n:[n]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){this._config=By({},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(t,n,r,i){if(!!t)try{t(r,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},a)}},e}(),ZMe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eIe=function(e){ZMe(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return a._config.enabled&&a.enable(),a}return t}(JMe),tIe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function RH(e,t){return typeof t=="string"?e===t:!!e.match(t)}function nIe(e,t){var n,r;if(!t)return!1;try{for(var i=tIe(t),a=i.next();!a.done;a=i.next()){var c=a.value;if(RH(e,c))return!0}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}function Fo(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var rIe="aws.lambda.invoked_arn",iIe="db.system",aIe="db.connection_string",oIe="db.user",sIe="db.jdbc.driver_classname",uIe="db.name",cIe="db.statement",lIe="db.operation",dIe="db.mssql.instance_name",fIe="db.cassandra.keyspace",_Ie="db.cassandra.page_size",pIe="db.cassandra.consistency_level",hIe="db.cassandra.table",SIe="db.cassandra.idempotence",gIe="db.cassandra.speculative_execution_count",mIe="db.cassandra.coordinator.id",vIe="db.cassandra.coordinator.dc",EIe="db.hbase.namespace",yIe="db.redis.database_index",TIe="db.mongodb.collection",AIe="db.sql.table",CIe="exception.type",bIe="exception.message",OIe="exception.stacktrace",RIe="exception.escaped",PIe="faas.trigger",MIe="faas.execution",IIe="faas.document.collection",NIe="faas.document.operation",LIe="faas.document.time",DIe="faas.document.name",wIe="faas.time",UIe="faas.cron",$Ie="faas.coldstart",GIe="faas.invoked_name",FIe="faas.invoked_provider",xIe="faas.invoked_region",VIe="net.transport",BIe="net.peer.ip",kIe="net.peer.port",jIe="net.peer.name",QIe="net.host.ip",qIe="net.host.port",HIe="net.host.name",YIe="net.host.connection.type",zIe="net.host.connection.subtype",WIe="net.host.carrier.name",KIe="net.host.carrier.mcc",XIe="net.host.carrier.mnc",JIe="net.host.carrier.icc",ZIe="peer.service",eNe="enduser.id",tNe="enduser.role",nNe="enduser.scope",rNe="thread.id",iNe="thread.name",aNe="code.function",oNe="code.namespace",sNe="code.filepath",uNe="code.lineno",PH="http.method",MH="http.url",cNe="http.target",IH="http.host",NH="http.scheme",LH="http.status_code",lNe="http.flavor",DH="http.user_agent",dNe="http.request_content_length",fNe="http.request_content_length_uncompressed",wH="http.response_content_length",UH="http.response_content_length_uncompressed",_Ne="http.server_name",pNe="http.route",hNe="http.client_ip",SNe="aws.dynamodb.table_names",gNe="aws.dynamodb.consumed_capacity",mNe="aws.dynamodb.item_collection_metrics",vNe="aws.dynamodb.provisioned_read_capacity",ENe="aws.dynamodb.provisioned_write_capacity",yNe="aws.dynamodb.consistent_read",TNe="aws.dynamodb.projection",ANe="aws.dynamodb.limit",CNe="aws.dynamodb.attributes_to_get",bNe="aws.dynamodb.index_name",ONe="aws.dynamodb.select",RNe="aws.dynamodb.global_secondary_indexes",PNe="aws.dynamodb.local_secondary_indexes",MNe="aws.dynamodb.exclusive_start_table",INe="aws.dynamodb.table_count",NNe="aws.dynamodb.scan_forward",LNe="aws.dynamodb.segment",DNe="aws.dynamodb.total_segments",wNe="aws.dynamodb.count",UNe="aws.dynamodb.scanned_count",$Ne="aws.dynamodb.attribute_definitions",GNe="aws.dynamodb.global_secondary_index_updates",FNe="messaging.system",xNe="messaging.destination",VNe="messaging.destination_kind",BNe="messaging.temp_destination",kNe="messaging.protocol",jNe="messaging.protocol_version",QNe="messaging.url",qNe="messaging.message_id",HNe="messaging.conversation_id",YNe="messaging.message_payload_size_bytes",zNe="messaging.message_payload_compressed_size_bytes",WNe="messaging.operation",KNe="messaging.consumer_id",XNe="messaging.rabbitmq.routing_key",JNe="messaging.kafka.message_key",ZNe="messaging.kafka.consumer_group",eLe="messaging.kafka.client_id",tLe="messaging.kafka.partition",nLe="messaging.kafka.tombstone",rLe="rpc.system",iLe="rpc.service",aLe="rpc.method",oLe="rpc.grpc.status_code",sLe="rpc.jsonrpc.version",uLe="rpc.jsonrpc.request_id",cLe="rpc.jsonrpc.error_code",lLe="rpc.jsonrpc.error_message",dLe="message.type",fLe="message.id",_Le="message.compressed_size",pLe="message.uncompressed_size",l5e=null,d5e=null,f5e=null,_5e=null,p5e=null,h5e=null,S5e=null,g5e=null,m5e=null,v5e=null,E5e=null,y5e=null,T5e=null,A5e=null,C5e=null,b5e=null,O5e=null,R5e=null,P5e=null,M5e=null,I5e=null,N5e=null,L5e=null,D5e=null,w5e=null,U5e=null,$5e=null,G5e=null,F5e=null,x5e=null,V5e=null,B5e=null,k5e=null,j5e=null,Q5e=null,q5e=null,H5e=null,Y5e=null,z5e=null,W5e=null,K5e=null,X5e=null,J5e=null,Z5e=null,eXe=null,tXe=null,nXe=null,rXe=null,iXe=null,aXe=null,oXe=null,sXe=null,uXe=null,cXe=null,lXe=null,dXe=null,fXe=null,_Xe=null,pXe=null,hXe=null,hLe=PH,SLe=MH,SXe=null,gLe=IH,mLe=NH,vLe=LH,gXe=null,ELe=DH,mXe=null,vXe=null,yLe=wH,TLe=UH,EXe=null,yXe=null,TXe=null,AXe=null,CXe=null,bXe=null,OXe=null,RXe=null,PXe=null,MXe=null,IXe=null,NXe=null,LXe=null,DXe=null,wXe=null,UXe=null,$Xe=null,GXe=null,FXe=null,xXe=null,VXe=null,BXe=null,kXe=null,jXe=null,QXe=null,qXe=null,HXe=null,YXe=null,zXe=null,WXe=null,KXe=null,XXe=null,JXe=null,ZXe=null,e7e=null,t7e=null,n7e=null,r7e=null,i7e=null,a7e=null,o7e=null,s7e=null,u7e=null,c7e=null,l7e=null,d7e=null,f7e=null,_7e=null,p7e=null,h7e=null,S7e=null,g7e=null,m7e=null,v7e=null,E7e=null,y7e=null,T7e=Fo([rIe,iIe,aIe,oIe,sIe,uIe,cIe,lIe,dIe,fIe,_Ie,pIe,hIe,SIe,gIe,mIe,vIe,EIe,yIe,TIe,AIe,CIe,bIe,OIe,RIe,PIe,MIe,IIe,NIe,LIe,DIe,wIe,UIe,$Ie,GIe,FIe,xIe,VIe,BIe,kIe,jIe,QIe,qIe,HIe,YIe,zIe,WIe,KIe,XIe,JIe,ZIe,eNe,tNe,nNe,rNe,iNe,aNe,oNe,sNe,uNe,PH,MH,cNe,IH,NH,LH,lNe,DH,dNe,fNe,wH,UH,_Ne,pNe,hNe,SNe,gNe,mNe,vNe,ENe,yNe,TNe,ANe,CNe,bNe,ONe,RNe,PNe,MNe,INe,NNe,LNe,DNe,wNe,UNe,$Ne,GNe,FNe,xNe,VNe,BNe,kNe,jNe,QNe,qNe,HNe,YNe,zNe,WNe,KNe,XNe,JNe,ZNe,eLe,tLe,nLe,rLe,iLe,aLe,oLe,sLe,uLe,cLe,lLe,dLe,fLe,_Le,pLe]),ALe="other_sql",CLe="mssql",bLe="mysql",OLe="oracle",RLe="db2",PLe="postgresql",MLe="redshift",ILe="hive",NLe="cloudscape",LLe="hsqldb",DLe="progress",wLe="maxdb",ULe="hanadb",$Le="ingres",GLe="firstsql",FLe="edb",xLe="cache",VLe="adabas",BLe="firebird",kLe="derby",jLe="filemaker",QLe="informix",qLe="instantdb",HLe="interbase",YLe="mariadb",zLe="netezza",WLe="pervasive",KLe="pointbase",XLe="sqlite",JLe="sybase",ZLe="teradata",eDe="vertica",tDe="h2",nDe="coldfusion",rDe="cassandra",iDe="hbase",aDe="mongodb",oDe="redis",sDe="couchbase",uDe="couchdb",cDe="cosmosdb",lDe="dynamodb",dDe="neo4j",fDe="geode",_De="elasticsearch",pDe="memcached",hDe="cockroachdb",A7e=null,C7e=null,b7e=null,O7e=null,R7e=null,P7e=null,M7e=null,I7e=null,N7e=null,L7e=null,D7e=null,w7e=null,U7e=null,$7e=null,G7e=null,F7e=null,x7e=null,V7e=null,B7e=null,k7e=null,j7e=null,Q7e=null,q7e=null,H7e=null,Y7e=null,z7e=null,W7e=null,K7e=null,X7e=null,J7e=null,Z7e=null,e9e=null,t9e=null,n9e=null,r9e=null,i9e=null,a9e=null,o9e=null,s9e=null,u9e=null,c9e=null,l9e=null,d9e=null,f9e=null,_9e=null,p9e=null,h9e=null,S9e=Fo([ALe,CLe,bLe,OLe,RLe,PLe,MLe,ILe,NLe,LLe,DLe,wLe,ULe,$Le,GLe,FLe,xLe,VLe,BLe,kLe,jLe,QLe,qLe,HLe,YLe,zLe,WLe,KLe,XLe,JLe,ZLe,eDe,tDe,nDe,rDe,iDe,aDe,oDe,sDe,uDe,cDe,lDe,dDe,fDe,_De,pDe,hDe]),SDe="all",gDe="each_quorum",mDe="quorum",vDe="local_quorum",EDe="one",yDe="two",TDe="three",ADe="local_one",CDe="any",bDe="serial",ODe="local_serial",g9e=null,m9e=null,v9e=null,E9e=null,y9e=null,T9e=null,A9e=null,C9e=null,b9e=null,O9e=null,R9e=null,P9e=Fo([SDe,gDe,mDe,vDe,EDe,yDe,TDe,ADe,CDe,bDe,ODe]),RDe="datasource",PDe="http",MDe="pubsub",IDe="timer",NDe="other",M9e=null,I9e=null,N9e=null,L9e=null,D9e=null,w9e=Fo([RDe,PDe,MDe,IDe,NDe]),LDe="insert",DDe="edit",wDe="delete",U9e=null,$9e=null,G9e=null,F9e=Fo([LDe,DDe,wDe]),UDe="alibaba_cloud",$De="aws",GDe="azure",FDe="gcp",x9e=null,V9e=null,B9e=null,k9e=null,j9e=Fo([UDe,$De,GDe,FDe]),xDe="ip_tcp",VDe="ip_udp",BDe="ip",kDe="unix",jDe="pipe",QDe="inproc",qDe="other",Q9e=null,q9e=null,H9e=null,Y9e=null,z9e=null,W9e=null,K9e=null,X9e=Fo([xDe,VDe,BDe,kDe,jDe,QDe,qDe]),HDe="wifi",YDe="wired",zDe="cell",WDe="unavailable",KDe="unknown",J9e=null,Z9e=null,eJe=null,tJe=null,nJe=null,rJe=Fo([HDe,YDe,zDe,WDe,KDe]),XDe="gprs",JDe="edge",ZDe="umts",e0e="cdma",t0e="evdo_0",n0e="evdo_a",r0e="cdma2000_1xrtt",i0e="hsdpa",a0e="hsupa",o0e="hspa",s0e="iden",u0e="evdo_b",c0e="lte",l0e="ehrpd",d0e="hspap",f0e="gsm",_0e="td_scdma",p0e="iwlan",h0e="nr",S0e="nrnsa",g0e="lte_ca",iJe=null,aJe=null,oJe=null,sJe=null,uJe=null,cJe=null,lJe=null,dJe=null,fJe=null,_Je=null,pJe=null,hJe=null,SJe=null,gJe=null,mJe=null,vJe=null,EJe=null,yJe=null,TJe=null,AJe=null,CJe=null,bJe=Fo([XDe,JDe,ZDe,e0e,t0e,n0e,r0e,i0e,a0e,o0e,s0e,u0e,c0e,l0e,d0e,f0e,_0e,p0e,h0e,S0e,g0e]),m0e="1.0",v0e="1.1",E0e="2.0",y0e="SPDY",T0e="QUIC",OJe=null,RJe=null,PJe=null,MJe=null,IJe=null,NJe={HTTP_1_0:m0e,HTTP_1_1:v0e,HTTP_2_0:E0e,SPDY:y0e,QUIC:T0e},A0e="queue",C0e="topic",LJe=null,DJe=null,wJe=Fo([A0e,C0e]),b0e="receive",O0e="process",UJe=null,$Je=null,GJe=Fo([b0e,O0e]),R0e=0,P0e=1,M0e=2,I0e=3,N0e=4,L0e=5,D0e=6,w0e=7,U0e=8,$0e=9,G0e=10,F0e=11,x0e=12,V0e=13,B0e=14,k0e=15,j0e=16,FJe=null,xJe=null,VJe=null,BJe=null,kJe=null,jJe=null,QJe=null,qJe=null,HJe=null,YJe=null,zJe=null,WJe=null,KJe=null,XJe=null,JJe=null,ZJe=null,eZe=null,tZe={OK:R0e,CANCELLED:P0e,UNKNOWN:M0e,INVALID_ARGUMENT:I0e,DEADLINE_EXCEEDED:N0e,NOT_FOUND:L0e,ALREADY_EXISTS:D0e,PERMISSION_DENIED:w0e,RESOURCE_EXHAUSTED:U0e,FAILED_PRECONDITION:$0e,ABORTED:G0e,OUT_OF_RANGE:F0e,UNIMPLEMENTED:x0e,INTERNAL:V0e,UNAVAILABLE:B0e,DATA_LOSS:k0e,UNAUTHENTICATED:j0e},Q0e="SENT",q0e="RECEIVED",nZe=null,rZe=null,iZe=Fo([Q0e,q0e]),ti;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(ti||(ti={}));var IN;function H0e(){return IN||(IN=document.createElement("a")),IN}function NN(e,t){return t in e}function Su(e,t,n,r){var i=void 0,a=void 0;NN(n,t)&&typeof n[t]=="number"&&(i=n[t]);var c=r||ti.FETCH_START;if(NN(n,c)&&typeof n[c]=="number"&&(a=n[c]),i!==void 0&&a!==void 0&&i>=a)return e.addEvent(t,i),e}function $H(e,t){Su(e,ti.FETCH_START,t),Su(e,ti.DOMAIN_LOOKUP_START,t),Su(e,ti.DOMAIN_LOOKUP_END,t),Su(e,ti.CONNECT_START,t),NN(t,"name")&&t.name.startsWith("https:")&&Su(e,ti.SECURE_CONNECTION_START,t),Su(e,ti.CONNECT_END,t),Su(e,ti.REQUEST_START,t),Su(e,ti.RESPONSE_START,t),Su(e,ti.RESPONSE_END,t);var n=t[ti.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(yLe,n);var r=t[ti.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(TLe,r)}function Y0e(e){return e.slice().sort(function(t,n){var r=t[ti.FETCH_START],i=n[ti.FETCH_START];return r>i?1:r<i?-1:0})}function GH(){return typeof location<"u"?location.origin:void 0}function z0e(e,t,n,r,i,a){i===void 0&&(i=new WeakSet);var c=hc(e);e=c.toString();var f=K0e(e,t,n,r,i,a);if(f.length===0)return{mainRequest:void 0};if(f.length===1)return{mainRequest:f[0]};var y=Y0e(f);if(c.origin!==GH()&&y.length>1){var h=y[0],m=W0e(y,h[ti.RESPONSE_END],n),F=h[ti.RESPONSE_END],W=m[ti.FETCH_START];return W<F&&(m=h,h=void 0),{corsPreFlightRequest:h,mainRequest:m}}else return{mainRequest:f[0]}}function W0e(e,t,n){for(var r=_c(n),i=_c($l(t)),a=e[1],c,f=e.length,y=1;y<f;y++){var h=e[y],m=_c($l(h[ti.FETCH_START])),F=_c($l(h[ti.RESPONSE_END])),W=r-F;m>=i&&(!c||W<c)&&(c=W,a=h)}return a}function K0e(e,t,n,r,i,a){var c=_c(t),f=_c(n),y=r.filter(function(h){var m=_c($l(h[ti.FETCH_START])),F=_c($l(h[ti.RESPONSE_END]));return h.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&h.name===e&&m>=c&&F<=f});return y.length>0&&(y=y.filter(function(h){return!i.has(h)})),y}function hc(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=H0e();return t.href=e,t}function aZe(e){var t=hc(e);return t.href}function X0e(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var n=Z0e(e,t);if(t&&n.indexOf("@id")>0)return n;var r="";return e.parentNode&&(r+=X0e(e.parentNode,!1)),r+=n,r}function J0e(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var n=Array.from(e.parentNode.childNodes);return n=n.filter(function(r){var i=r.localName;return t.indexOf(r.nodeType)>=0&&i===e.localName}),n.length>=1?n.indexOf(e)+1:0}function Z0e(e,t){var n=e.nodeType,r=J0e(e),i="";if(n===Node.ELEMENT_NODE){var a=e.getAttribute("id");if(t&&a)return'//*[@id="'+a+'"]';i=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)i="text()";else if(n===Node.COMMENT_NODE)i="comment()";else return"";return i&&r>1?"/"+i+"["+r+"]":"/"+i}function ewe(e,t){var n=t||[];(typeof n=="string"||n instanceof RegExp)&&(n=[n]);var r=hc(e);return r.origin===GH()?!0:n.some(function(i){return RH(e,i)})}var gu;(function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"})(gu||(gu={}));var FH="0.52.1",LN;(function(e){e.HTTP_STATUS_TEXT="http.status_text"})(LN||(LN={}));var twe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nwe=300,rwe=function(e){twe(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,"@opentelemetry/instrumentation-xml-http-request",FH,n)||this;return r.component="xml-http-request",r.version=FH,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return t.prototype.init=function(){},t.prototype._addHeaders=function(n,r){var i=hc(r).href;if(!ewe(i,this.getConfig().propagateTraceHeaderCorsUrls)){var a={};Wf.inject(La.active(),a),Object.keys(a).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var c={};Wf.inject(La.active(),c),Object.keys(c).forEach(function(f){n.setRequestHeader(f,String(c[f]))})},t.prototype._addChildSpan=function(n,r){var i=this;La.with(Ea.setSpan(La.active(),n),function(){var a=i.tracer.startSpan("CORS Preflight",{startTime:r[ti.FETCH_START]});i.getConfig().ignoreNetworkEvents||$H(a,r),a.end(r[ti.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(n,r,i){if(typeof i=="string"){var a=hc(i);r.status!==void 0&&n.setAttribute(vLe,r.status),r.statusText!==void 0&&n.setAttribute(LN.HTTP_STATUS_TEXT,r.statusText),n.setAttribute(gLe,a.host),n.setAttribute(mLe,a.protocol.replace(":","")),n.setAttribute(ELe,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(n,r){var i=this,a=this.getConfig().applyCustomAttributesOnSpan;typeof a=="function"&&RMe(function(){return a(n,r)},function(c){!c||i._diag.error("applyCustomAttributesOnSpan",c)},!0)},t.prototype._addResourceObserver=function(n,r){var i=this._xhrMem.get(n);!i||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(i.createdResources={observer:new PerformanceObserver(function(a){var c=a.getEntries(),f=hc(r);c.forEach(function(y){y.initiatorType==="xmlhttprequest"&&y.name===f.href&&i.createdResources&&i.createdResources.entries.push(y)})}),entries:[]},i.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(rS.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(n,r,i,a,c){if(!(!i||!a||!c||!n.createdResources)){var f=n.createdResources.entries;(!f||!f.length)&&(f=rS.getEntriesByType("resource"));var y=z0e(hc(i).href,a,c,f,this._usedResources);if(y.mainRequest){var h=y.mainRequest;this._markResourceAsUsed(h);var m=y.corsPreFlightRequest;m&&(this._addChildSpan(r,m),this._markResourceAsUsed(m)),this.getConfig().ignoreNetworkEvents||$H(r,h)}}},t.prototype._cleanPreviousSpanInformation=function(n){var r=this._xhrMem.get(n);if(r){var i=r.callbackToRemoveEvents;i&&i(),this._xhrMem.delete(n)}},t.prototype._createSpan=function(n,r,i){var a;if(nIe(r,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var c=i.toUpperCase(),f=this.tracer.startSpan(c,{kind:Ny.CLIENT,attributes:(a={},a[hLe]=i,a[SLe]=hc(r).toString(),a)});return f.addEvent(gu.METHOD_OPEN),this._cleanPreviousSpanInformation(n),this._xhrMem.set(n,{span:f,spanUrl:r}),f},t.prototype._markResourceAsUsed=function(n){this._usedResources.add(n)},t.prototype._patchOpen=function(){var n=this;return function(r){var i=n;return function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var y=c[0],h=c[1];return i._createSpan(this,h,y),r.apply(this,c)}}},t.prototype._patchSend=function(){var n=this;function r(m,F,W,ye){var Te=F.callbackToRemoveEvents;typeof Te=="function"&&Te();var Re=F.span,Ye=F.spanUrl,qe=F.sendStartTime;Re&&(n._findResourceAndAddNetworkEvents(F,Re,Ye,qe,W),Re.addEvent(m,ye),n._addFinalSpanAttributes(Re,F,Ye),Re.end(ye),n._tasksCount--),n._clearResources()}function i(m,F){var W=n._xhrMem.get(F);if(!!W){W.status=F.status,W.statusText=F.statusText,n._xhrMem.delete(F),W.span&&n._applyAttributesAfterXHR(W.span,F);var ye=rN(),Te=Date.now();setTimeout(function(){r(m,W,ye,Te)},nwe)}}function a(){i(gu.EVENT_ERROR,this)}function c(){i(gu.EVENT_ABORT,this)}function f(){i(gu.EVENT_TIMEOUT,this)}function y(){this.status<299?i(gu.EVENT_LOAD,this):i(gu.EVENT_ERROR,this)}function h(m){m.removeEventListener("abort",c),m.removeEventListener("error",a),m.removeEventListener("load",y),m.removeEventListener("timeout",f);var F=n._xhrMem.get(m);F&&(F.callbackToRemoveEvents=void 0)}return function(m){return function(){for(var W=this,ye=[],Te=0;Te<arguments.length;Te++)ye[Te]=arguments[Te];var Re=n._xhrMem.get(this);if(!Re)return m.apply(this,ye);var Ye=Re.span,qe=Re.spanUrl;return Ye&&qe&&La.with(Ea.setSpan(La.active(),Ye),function(){n._tasksCount++,Re.sendStartTime=rN(),Ye.addEvent(gu.METHOD_SEND),W.addEventListener("abort",c),W.addEventListener("error",a),W.addEventListener("load",y),W.addEventListener("timeout",f),Re.callbackToRemoveEvents=function(){h(W),Re.createdResources&&Re.createdResources.observer.disconnect()},n._addHeaders(W,qe),n._addResourceObserver(W,qe)}),m.apply(this,ye)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),AH(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),AH(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t}(eIe);const iwe="https?://api-gateway.[a-zA-Z]+.icanbwell.com",xH=new RegExp(`^(?!${iwe})`);function oZe(e){return xH.test(e)}function awe(e){return ure({node:()=>null,browser:()=>new rwe({ignoreUrls:[xH],propagateTraceHeaderCorsUrls:[e.graphQL.apiUrl,e.graphQL.unauthApiUrl]})})}var ks=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},DN=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},t_,n_,sS,ky,VH,BH,kH,jH;class owe{constructor(t){t_.add(this),n_.set(this,void 0),sS.set(this,void 0),ky.set(this,void 0),DN(this,n_,ks(this,t_,"m",VH).call(this,t),"f"),DN(this,sS,ks(this,t_,"m",BH).call(this),"f"),DN(this,ky,ks(this,t_,"m",kH).call(this,t),"f"),this.fetchInstrumentation=ks(this,t_,"m",jH).call(this,t)}loggerProvider(){return ks(this,ky,"f")}resource(){return ks(this,n_,"f")}tracerProvider(){return ks(this,sS,"f")}}n_=new WeakMap,sS=new WeakMap,ky=new WeakMap,t_=new WeakSet,VH=function(t){var n,r,i,a;return vy.default().merge(new vy({[CPe]:"bwell-sdk-typescript",[OPe]:Sre(),[RPe]:"typescript",[bPe]:"com.bwell",[APe]:t.context.env,"client.key":t.context.clientKey,"user.id":(r=(n=t.context.user)===null||n===void 0?void 0:n.clientFhirPersonId)!==null&&r!==void 0?r:"","user.bwell-person-id":(a=(i=t.context.user)===null||i===void 0?void 0:i.bwellFhirPersonId)!==null&&a!==void 0?a:""}))},BH=function(){const t=new eRe({resource:ks(this,n_,"f")});return t.register({propagator:new Wce}),t},kH=function(t){const n=new rEe({resource:ks(this,n_,"f")}),r=new Gde({url:`${t.telemetry.collectorUrl}/otlp-http/v1/logs`}),i=new _Ee(r);return n.addLogRecordProcessor(i),n},jH=function(t){const n=awe(t);return n===null?null:(n.setTracerProvider(ks(this,sS,"f")),n)};var Bl=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},wN=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ua=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},r_,Sc,jy,uS,_s,UN,QH,qH,$N;class HH{constructor(t,n,r,i){r_.add(this),jy.set(this,void 0),uS.set(this,void 0),_s.set(this,void 0),wN(this,jy,n,"f"),wN(this,uS,r.getLogger("TokenManager"),"f"),wN(this,_s,i,"f")}static initialize(t,n){return Bl(this,arguments,void 0,function*(r,i,a=new Hi,c=new PM){const f=ua(Sc,Sc,"m",UN).call(Sc,r.accessToken);if(f.failure())return f.intoFailure();const y=new Sc(Object.assign(Object.assign({},r),{expiration:f.data()}),i,a,c);try{yield Promise.all([c.set("idToken",r.idToken),c.set("clientKey",r.clientKey),c.set("accessToken",r.accessToken),c.set("refreshToken",r.refreshToken),c.set("expiration",f.data().toISOString())])}catch{return en.failure(new bf("Failed to set tokens in token storage"))}return en.success(y)})}getAccessToken(){return Bl(this,void 0,void 0,function*(){if(yield ua(this,r_,"m",qH).call(this)){const r=yield ua(this,r_,"m",$N).call(this);if(r.failure())return r.intoFailure()}const n=yield ua(this,_s,"f").get("accessToken");return Wa(n)?en.failure(new bf("accessToken not found in token storage")):en.success(n)})}getIdToken(){return Bl(this,void 0,void 0,function*(){return yield ua(this,_s,"f").get("idToken")})}refreshAccessToken(){return Bl(this,void 0,void 0,function*(){return ua(this,r_,"m",$N).call(this)})}}Sc=HH,jy=new WeakMap,uS=new WeakMap,_s=new WeakMap,r_=new WeakSet,UN=function(t){try{const n=dre(t);return en.success(new Date(n))}catch(n){if(!sa.isBwellError(n))throw n;return en.failure(n)}},QH=function(){return Bl(this,void 0,void 0,function*(){const t=yield ua(this,_s,"f").get("expiration");if(Wa(t))throw new Error("expiration not found in token storage");return new Date(t)})},qH=function(){return Bl(this,void 0,void 0,function*(){const n=(yield ua(this,r_,"m",QH).call(this)).getTime(),r=Date.now();return n<r})},$N=function(){return Bl(this,void 0,void 0,function*(){ua(this,uS,"f").verbose("refreshing access token...");const[t,n]=yield Promise.all([ua(this,_s,"f").get("refreshToken"),ua(this,_s,"f").get("clientKey")]);if(Wa(t)||Wa(n))return en.failure(new bf("refreshToken or clientKey not found in token storage"));const r=yield ua(this,jy,"f").refreshAccessToken({refreshToken:t,clientKey:n});if(ua(this,uS,"f").verbose("refreshing access token complete"),r.failure())return r.intoFailure();const i=r.data();yield ua(this,_s,"f").set("accessToken",i.accessToken),yield ua(this,_s,"f").set("idToken",i.idToken);const a=ua(Sc,Sc,"m",UN).call(Sc,i.accessToken);return a.failure()?a.intoFailure():(yield ua(this,_s,"f").set("expiration",a.data().toISOString()),en.success(null))})};var cS=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},lo=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},sn=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},gi,i_,fo,lS,GN,FN,xN,VN,js,dS,kl,jl,Qy,a_,BN,_o,kN,jN,QN,YH;class swe{constructor(t){gi.add(this),i_.set(this,void 0),fo.set(this,void 0),lS.set(this,void 0),GN.set(this,new Zie),FN.set(this,new Que),xN.set(this,new Hue),VN.set(this,new Zue),js.set(this,void 0),dS.set(this,void 0),kl.set(this,void 0),jl.set(this,void 0),Qy.set(this,void 0),a_.set(this,void 0),lo(this,i_,t,"f"),lo(this,fo,IE.initialize(sn(this,i_,"f")).data(),"f"),lo(this,lS,sn(this,gi,"m",QN).call(this),"f"),lo(this,js,sn(this,gi,"m",jN).call(this),"f"),lo(this,kl,sn(this,js,"f").getLogger("BWellSDK"),"f"),lo(this,jl,sn(this,xN,"f").createIdentityManager(sn(this,fo,"f"),sn(this,js,"f")),"f"),lo(this,Qy,new tae(sn(this,jl,"f")),"f")}initialize(){return cS(this,void 0,void 0,function*(){sn(this,kl,"f").verbose("initializing SDKConfig...");const t=yield sn(this,Qy,"f").initialize(sn(this,i_,"f"));return t.failure()?t.intoFailure():(sn(this,kl,"f").verbose("SDK Config initialized successfully"),lo(this,fo,t.data(),"f"),sn(this,gi,"m",kN).call(this),en.success(null))})}authenticate(t){return cS(this,void 0,void 0,function*(){const r=yield sn(this,VN,"f").createAuthStrategy(sn(this,fo,"f"),sn(this,jl,"f"),t,sn(this,js,"f")).authenticate(t);if(r.failure())return r.intoFailure();const i=r.data();return sn(this,gi,"m",BN).call(this,i)})}setAuthTokens(t){return cS(this,void 0,void 0,function*(){const n=yield sn(this,gi,"m",BN).call(this,t);if(n.failure())return n.intoFailure();if(sn(this,a_,"f")===void 0)throw new Error("TokenManager not set");const r=yield sn(this,a_,"f").refreshAccessToken();return r.failure()?r.intoFailure():en.success(null)})}createGuestAccessToken(){return cS(this,void 0,void 0,function*(){return sn(this,jl,"f").createGuestAccessToken({clientKey:sn(this,fo,"f").context.clientKey})})}get health(){return sn(this,gi,"m",_o).call(this).health}get healthSpace(){return sn(this,gi,"m",_o).call(this).healthSpace}get user(){return sn(this,gi,"m",_o).call(this).user}get connection(){return sn(this,gi,"m",_o).call(this).connection}get activity(){return sn(this,gi,"m",_o).call(this).activity}get device(){return sn(this,gi,"m",_o).call(this).device}get event(){return sn(this,gi,"m",_o).call(this).event}get search(){return sn(this,gi,"m",_o).call(this).search}get financial(){return sn(this,gi,"m",_o).call(this).financial}get language(){return sn(this,gi,"m",_o).call(this).language}get questionnaire(){return sn(this,gi,"m",_o).call(this).questionnaire}get support(){return sn(this,gi,"m",_o).call(this).support}}i_=new WeakMap,fo=new WeakMap,lS=new WeakMap,GN=new WeakMap,FN=new WeakMap,xN=new WeakMap,VN=new WeakMap,js=new WeakMap,dS=new WeakMap,kl=new WeakMap,jl=new WeakMap,Qy=new WeakMap,a_=new WeakMap,gi=new WeakSet,BN=function(t){return cS(this,void 0,void 0,function*(){try{const i=pre(t.idToken);jn(i)&&sn(this,fo,"f").setContextUser(i)}catch(i){if(sa.isBwellError(i))return en.failure(i);throw i}const n=Object.assign(Object.assign({},t),{clientKey:sn(this,fo,"f").context.clientKey}),r=yield HH.initialize(n,sn(this,jl,"f"),sn(this,js,"f"),sn(this,i_,"f").tokenStorage);return r.failure()?r.intoFailure():(lo(this,a_,r.data(),"f"),sn(this,gi,"m",kN).call(this),lo(this,dS,sn(this,gi,"m",YH).call(this,sn(this,a_,"f")),"f"),en.success(null))})},_o=function(){if(sn(this,dS,"f")===void 0)throw new Error("Unintialized");return sn(this,dS,"f")},kN=function(){sn(this,kl,"f").verbose("reinitializing SDK dependencies"),lo(this,lS,sn(this,gi,"m",QN).call(this),"f"),lo(this,js,sn(this,gi,"m",jN).call(this),"f"),lo(this,kl,sn(this,js,"f").getLogger("BwellSDK"),"f")},jN=function(){return sn(this,GN,"f").createLogProvider(sn(this,fo,"f"),sn(this,lS,"f"))},QN=function(){if(!!sn(this,fo,"f").telemetry.enabled)return new owe(sn(this,fo,"f"))},YH=function(t){return sn(this,FN,"f").createApiProvider(sn(this,fo,"f"),t,sn(this,js,"f"))};var o_,fS,s_,qN,mu,xo,ea,_S,Ql,pS,gc,mc,zH,qy;const uwe=6e4;class cwe{constructor(t,n){o_.add(this),fS.set(this,void 0),s_.set(this,void 0),qN.set(this,Ute.EventBus.getInstance(ne.mO).mainChannel()),mu.set(this,new uB),xo.set(this,void 0),ea.set(this,void 0),_S.set(this,void 0),Ql.set(this,void 0),pS.set(this,void 0),gc.set(this,void 0),mc.set(this,void 0),this.isInitialized=!1,(0,R.GG)(this,fS,t.metadata.version,"f"),(0,R.GG)(this,_S,n,"f"),(0,R.gn)(this,qN,"f").addListener(r=>{var{channel:i,topic:a}=r,c=r.payload,{name:f}=c,y=(0,R.Tt)(c,["name"]);(0,R.gn)(this,mu,"f").emit("embeddable",{id:i,name:f,type:a,payload:y})})}init(t){return(0,R.sH)(this,void 0,void 0,function*(){const{clientKey:n,initialUserToken:r,telemetry:i={},variant:a=z.DEFAULT}=typeof t=="string"?{clientKey:t,initialUserToken:void 0}:t;(0,R.GG)(this,pS,typeof i=="boolean"?{logging:i,tracing:i,rum:i}:Object.assign({logging:!0,tracing:!0,rum:!0},i),"f"),(0,R.GG)(this,xo,(0,zN.default)({telemetry:(0,R.gn)(this,pS,"f"),appVersion:(0,R.gn)(this,fS,"f")}),"f"),(0,R.GG)(this,mc,new PM,"f"),(0,R.GG)(this,gc,new swe({clientKey:n,tokenStorage:(0,R.gn)(this,mc,"f")}),"f");try{yield(0,R.gn)(this,o_,"m",zH).call(this,n,a),r&&(yield this.setUserToken(r))}catch(c){throw(0,R.gn)(this,mu,"f").emit("error"),(0,R.gn)(this,xo,"f").error(c,"initialization error"),c instanceof ns.b&&c?.emitToNativeComponent()&&TP.b.events.emit("error",c.toJSON()),c}})}setUserToken(t){var n;return(0,R.sH)(this,void 0,void 0,function*(){if(!(!((n=(0,R.gn)(this,ea,"f"))===null||n===void 0)&&n.services))throw new ns.b('"setUserToken" method called before bwell initialized.',{errorCode:Ms.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const r=(0,R.gn)(this,ea,"f").services[vn.apiClient.id],i=(0,R.gn)(this,ea,"f").services[vn.auth.id],a=(0,R.gn)(this,ea,"f").services[vn.state.id];try{(0,R.gn)(this,s_,"f")&&(0,R.gn)(this,s_,"f")!==t&&(r.clearAuth(),yield r.clearStore(),a.logoutUser());const c=yield i.getTokenData(t);(0,R.GG)(this,s_,t,"f");const{accessToken:{jwtToken:f},idToken:{jwtToken:y},refreshToken:{token:h}}=c,{apiMap:m,key:F}=a.getClientContext();r.enableAuth({tokens:{accessToken:f,idToken:y},onRefresh:()=>(0,R.sH)(this,void 0,void 0,function*(){var W;let ye;const Te=new hR.Auth(new Z.ApiClient(m),(0,R.gn)(this,gc,"f"),(0,R.gn)(this,mc,"f"));try{ye=yield Te.refreshTokens(h,F)}catch(Re){(W=(0,R.gn)(this,xo,"f"))===null||W===void 0||W.error(Re,"Error refreshing user token. Attempting fresh token exchange.");const{accessToken:{jwtToken:Ye},idToken:{jwtToken:qe},refreshToken:{token:Ke}}=yield Te.getTokenData(t);ye={accessToken:Ye,idToken:qe,refreshToken:Ke}}return a.updateTokens(ye),ye})}),a.setUser({tokenData:c}),TP.b.events.emit("onauthsuccess",{user:{id:this.getUserId()}})}catch(c){throw new ns.b("There was an error during the token exchange process.",{errorCode:Ms.ErrorCode.TOKEN_EXCHANGE,cause:c})}})}getUser(){return(0,R.gn)(this,o_,"m",qy).call(this,"getUser")}getToken(){const{idToken:{jwtToken:t},refreshToken:{token:n},accessToken:{jwtToken:r}}=(0,R.gn)(this,o_,"m",qy).call(this,"getUserTokenData");return{idToken:t,refreshToken:n,accessToken:r}}getUserId(){const{idToken:{payload:{"custom:clientFhirPatientId":t}}}=(0,R.gn)(this,o_,"m",qy).call(this,"getUserTokenData");if(!t)throw new ns.b("bwell Global object must be authenticated with an actual user.",{errorCode:Ms.ErrorCode.UNKNOWN});return t}on(t,n){(0,R.gn)(this,mu,"f").on(t,n)}once(t,n){(0,R.gn)(this,mu,"f").once(t,n)}off(t,n){(0,R.gn)(this,mu,"f").off(t,n)}_registerEmbeddableContent(t){(0,R.GG)(this,Ql,t,"f")}focusEmbeddableContent(){return(0,R.sH)(this,void 0,void 0,function*(){return new Promise((t,n)=>{if((0,R.gn)(this,Ql,"f"))(0,R.gn)(this,Ql,"f").focus(),t();else{let r=0;const i=setInterval(()=>{r+=1,(0,R.gn)(this,Ql,"f")?(clearInterval(i),(0,R.gn)(this,Ql,"f").focus(),t()):r===uwe/500&&(clearInterval(i),n(new Error("Embeddable content not found.")))},500)}})})}}fS=new WeakMap,s_=new WeakMap,qN=new WeakMap,mu=new WeakMap,xo=new WeakMap,ea=new WeakMap,_S=new WeakMap,Ql=new WeakMap,pS=new WeakMap,gc=new WeakMap,mc=new WeakMap,o_=new WeakSet,zH=function(t,n){var r,i,a,c,f,y;return(0,R.sH)(this,void 0,void 0,function*(){const h=Zne(t),{identityGateway:m}=kee(new Z.ApiClient(h));let F;try{const[qe,Ke]=yield Promise.all([(r=(0,R.gn)(this,gc,"f"))===null||r===void 0?void 0:r.initialize(),m.getClientRecord({context:{headers:{ClientKey:t,variant:n}}})]),Et=Ke.clientRecord,{clientSlug:Ut}=Et,dn=(0,R.Tt)(Et,["clientSlug"]);if(F=Object.assign({key:t,slug:Ut,variant:n},dn),qe?.success()&&((i=(0,R.gn)(this,xo,"f"))===null||i===void 0||i.info({},"Successfully initialized BWellSDK")),qe?.failure())throw(a=(0,R.gn)(this,xo,"f"))===null||a===void 0||a.error(qe.error(),"Error initializing BWellSDK"),qe.error()}catch(qe){throw new ns.b("Failed to initialize embeddable",{errorCode:Ms.ErrorCode.CLIENT_UNKNOWN,cause:qe})}const W={client:F,telemetry:(0,R.gn)(this,pS,"f"),metadata:{version:(0,R.gn)(this,fS,"f")}};if(this.isInitialized){if(this.isInitialized&&(0,R.gn)(this,ea,"f")){const qe=(0,R.gn)(this,ea,"f").services[vn.state.id];if(F.key!==qe.getClientContext().key||F.variant!==qe.getClientContext().variant)(0,R.GG)(this,s_,void 0,"f"),(0,R.gn)(this,ea,"f").reboot({initialState:W,bwellSdk:{sdk:(0,R.gn)(this,gc,"f"),tokenStorage:(0,R.gn)(this,mc,"f")}});else return}}else{const qe={globalEventEmitter:(0,R.gn)(this,mu,"f"),initialState:W,bwellSdk:{sdk:(0,R.gn)(this,gc,"f"),tokenStorage:(0,R.gn)(this,mc,"f")}};(0,R.gn)(this,_S,"f")?(0,R.GG)(this,ea,(0,R.gn)(this,_S,"f").create(qe),"f"):(0,R.GG)(this,ea,new Xne(qe),"f")}if((0,R.gn)(this,ea,"f")===void 0)throw(0,R.gn)(this,xo,"f")&&(0,R.gn)(this,xo,"f").fatal("`bwell.init` called when already initialized and no orchestrator found."),new ns.b("Unexpected error",{errorCode:Ms.ErrorCode.UNKNOWN});const ye=(0,R.gn)(this,ea,"f").services[vn.identityUtils.id],Te=(0,R.gn)(this,ea,"f").services[vn.apiClient.id],Re=(0,R.gn)(this,ea,"f").services[vn.bwellSdk.id];let Ye=ye.getStoredTokens();if(!Ye&&n===z.GUEST){const qe=(yield Re.createGuestAccessToken()).data();Ye={accessToken:{jwtToken:qe.accessToken,payload:{}},idToken:{jwtToken:qe.identityToken,payload:{}},refreshToken:{token:qe.refreshToken}},ye.storeTokens(Ye)}if(Ye){const qe=(0,R.gn)(this,ea,"f").services[vn.state.id],{refreshToken:Ke,accessToken:{jwtToken:Et},idToken:{jwtToken:Ut}}=Ye;Te.enableAuth({tokens:{accessToken:Et,idToken:Ut},onRefresh:()=>(0,R.sH)(this,void 0,void 0,function*(){const $n=new hR.Auth(new Z.ApiClient(h),(0,R.gn)(this,gc,"f"),(0,R.gn)(this,mc,"f"));try{const Fn=yield $n.refreshTokens(Ke.token,t);return qe.updateTokens(Fn),Fn}catch{throw yield ye.logout(),new ns.b("Refresh token failed in credential auth strategy.",{errorCode:Ms.ErrorCode.TOKEN_EXCHANGE})}})}),(c=(0,R.gn)(this,xo,"f"))===null||c===void 0||c.debug("Setting auth tokens for SDK");const dn=yield Re.setAuthTokens({accessToken:Et,idToken:Ut,refreshToken:Ke.token});if(dn.failure())throw(f=(0,R.gn)(this,xo,"f"))===null||f===void 0||f.error(dn.error(),"BWell SDK set auth tokens error"),new ns.b(dn.error().message,{errorCode:Ms.ErrorCode.TOKEN_EXCHANGE});(y=(0,R.gn)(this,xo,"f"))===null||y===void 0||y.info("BWell SDK set auth tokens successful"),qe.setUser({tokenData:Ye})}(0,R.gn)(this,mu,"f").emit("initialized"),this.isInitialized=!0})},qy=function(t){var n;if(!(!((n=(0,R.gn)(this,ea,"f"))===null||n===void 0)&&n.services))throw new ns.b('"#getStateSafe" method called before bwell initialized.',{errorCode:Ms.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const i=(0,R.gn)(this,ea,"f").services[vn.state.id][t]();if(!i)throw new ns.b("User token must be set before data can be retrieved.",{errorCode:Ms.ErrorCode.UNKNOWN});return i}},5888:(ce,u,_)=>{"use strict";_.d(u,{L:()=>P});const{toString:d,hasOwnProperty:l}=Object.prototype,g=Function.prototype.toString,b=new Map;function P(w,k){try{return O(w,k)}finally{b.clear()}}var T=null;function O(w,k){if(w===k)return!0;const R=d.call(w),z=d.call(k);if(R!==z)return!1;switch(R){case"[object Array]":if(w.length!==k.length)return!1;case"[object Object]":{if(N(w,k))return!0;const ne=A(w),Z=A(k),q=ne.length;if(q!==Z.length)return!1;for(let M=0;M<q;++M)if(!l.call(k,ne[M]))return!1;for(let M=0;M<q;++M){const ee=ne[M];if(!O(w[ee],k[ee]))return!1}return!0}case"[object Error]":return w.name===k.name&&w.message===k.message;case"[object Number]":if(w!==w)return k!==k;case"[object Boolean]":case"[object Date]":return+w==+k;case"[object RegExp]":case"[object String]":return w==`${k}`;case"[object Map]":case"[object Set]":{if(w.size!==k.size)return!1;if(N(w,k))return!0;const ne=w.entries(),Z=R==="[object Map]";for(;;){const q=ne.next();if(q.done)break;const[M,ee]=q.value;if(!k.has(M)||Z&&!O(ee,k.get(M)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":w=new Uint8Array(w),k=new Uint8Array(k);case"[object DataView]":{let ne=w.byteLength;if(ne===k.byteLength)for(;ne--&&w[ne]===k[ne];);return ne===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const ne=g.call(w);return ne!==g.call(k)?!1:!D(ne,C)}}return!1}function A(w){return Object.keys(w).filter(L,w)}function L(w){return this[w]!==void 0}const C="{ [native code] }";function D(w,k){const R=w.length-k.length;return R>=0&&w.indexOf(k,R)===R}function N(w,k){let R=b.get(w);if(R){if(R.has(k))return!0}else b.set(w,R=new Set);return R.add(k),!1}},3217:(ce,u,_)=>{"use strict";_.d(u,{U:()=>d});function d(l,g){if(!Boolean(l))throw new Error(g)}},5198:(ce,u,_)=>{"use strict";_.d(u,{N:()=>g});const d=10,l=2;function g(C){return b(C,[])}function b(C,D){switch(typeof C){case"string":return JSON.stringify(C);case"function":return C.name?`[function ${C.name}]`:"[function]";case"object":return P(C,D);default:return String(C)}}function P(C,D){if(C===null)return"null";if(D.includes(C))return"[Circular]";const N=[...D,C];if(T(C)){const w=C.toJSON();if(w!==C)return typeof w=="string"?w:b(w,N)}else if(Array.isArray(C))return A(C,N);return O(C,N)}function T(C){return typeof C.toJSON=="function"}function O(C,D){const N=Object.entries(C);if(N.length===0)return"{}";if(D.length>l)return"["+L(C)+"]";const w=N.map(([k,R])=>k+": "+b(R,D));return"{ "+w.join(", ")+" }"}function A(C,D){if(C.length===0)return"[]";if(D.length>l)return"[Array]";const N=Math.min(d,C.length),w=C.length-N,k=[];for(let R=0;R<N;++R)k.push(b(C[R],D));return w===1?k.push("... 1 more item"):w>1&&k.push(`... ${w} more items`),"["+k.join(", ")+"]"}function L(C){const D=Object.prototype.toString.call(C).replace(/^\[object /,"").replace(/]$/,"");if(D==="Object"&&typeof C.constructor=="function"){const N=C.constructor.name;if(typeof N=="string"&&N!=="")return N}return D}},9762:(ce,u,_)=>{"use strict";_.d(u,{Ll:()=>P,aD:()=>g,aZ:()=>d,cE:()=>T,ou:()=>l});class d{constructor(A,L,C){this.start=A.start,this.end=L.end,this.startToken=A,this.endToken=L,this.source=C}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class l{constructor(A,L,C,D,N,w){this.kind=A,this.start=L,this.end=C,this.line=D,this.column=N,this.value=w,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const g={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},b=new Set(Object.keys(g));function P(O){const A=O?.kind;return typeof A=="string"&&b.has(A)}var T;(function(O){O.QUERY="query",O.MUTATION="mutation",O.SUBSCRIPTION="subscription"})(T||(T={}))},7714:(ce,u,_)=>{"use strict";_.d(u,{OC:()=>l,yo:()=>P});var d=_(5881);function l(T){var O;let A=Number.MAX_SAFE_INTEGER,L=null,C=-1;for(let N=0;N<T.length;++N){var D;const w=T[N],k=g(w);k!==w.length&&(L=(D=L)!==null&&D!==void 0?D:N,C=N,N!==0&&k<A&&(A=k))}return T.map((N,w)=>w===0?N:N.slice(A)).slice((O=L)!==null&&O!==void 0?O:0,C+1)}function g(T){let O=0;for(;O<T.length&&(0,d.i0)(T.charCodeAt(O));)++O;return O}function b(T){if(T==="")return!0;let O=!0,A=!1,L=!0,C=!1;for(let D=0;D<T.length;++D)switch(T.codePointAt(D)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(O&&!C)return!1;C=!0,O=!0,A=!1;break;case 9:case 32:A||(A=O);break;default:L&&(L=A),O=!1}return!(O||L&&C)}function P(T,O){const A=T.replace(/"""/g,'\\"""'),L=A.split(/\r\n|[\n\r]/g),C=L.length===1,D=L.length>1&&L.slice(1).every(q=>q.length===0||(0,d.i0)(q.charCodeAt(0))),N=A.endsWith('\\"""'),w=T.endsWith('"')&&!N,k=T.endsWith("\\"),R=w||k,z=!(O!=null&&O.minimize)&&(!C||T.length>70||R||D||N);let ne="";const Z=C&&(0,d.i0)(T.charCodeAt(0));return(z&&!Z||D)&&(ne+=`
|
|
17497
|
+
`,Use=(e,t,n,r)=>e();function $se(e,t=Use){return{getTasks(n,r){return t(i=>e.rawRequest(ioe,n,Object.assign(Object.assign({},r),i)),"getTasks","query",n)},taskUpdateStatus(n,r){return t(i=>e.rawRequest(aoe,n,Object.assign(Object.assign({},r),i)),"taskUpdateStatus","mutation",n)},createConnection(n,r){return t(i=>e.rawRequest(ooe,n,Object.assign(Object.assign({},r),i)),"createConnection","mutation",n)},deleteConnection(n,r){return t(i=>e.rawRequest(soe,n,Object.assign(Object.assign({},r),i)),"deleteConnection","mutation",n)},disconnectConnection(n,r){return t(i=>e.rawRequest(uoe,n,Object.assign(Object.assign({},r),i)),"disconnectConnection","mutation",n)},getDataSource(n,r){return t(i=>e.rawRequest(coe,n,Object.assign(Object.assign({},r),i)),"getDataSource","query",n)},getMemberConnections(n,r){return t(i=>e.rawRequest(loe,n,Object.assign(Object.assign({},r),i)),"getMemberConnections","query",n)},getOauthUrl(n,r){return t(i=>e.rawRequest(doe,n,Object.assign(Object.assign({},r),i)),"getOauthUrl","query",n)},updateDeviceRegistration(n,r){return t(i=>e.rawRequest(foe,n,Object.assign(Object.assign({},r),i)),"updateDeviceRegistration","mutation",n)},publishEvent(n,r){return t(i=>e.rawRequest(_oe,n,Object.assign(Object.assign({},r),i)),"publishEvent","mutation",n)},getClaimSummary(n,r){return t(i=>e.rawRequest(poe,n,Object.assign(Object.assign({},r),i)),"getClaimSummary","query",n)},getCoverageSummary(n,r){return t(i=>e.rawRequest(hoe,n,Object.assign(Object.assign({},r),i)),"getCoverageSummary","query",n)},getCoverages(n,r){return t(i=>e.rawRequest(Soe,n,Object.assign(Object.assign({},r),i)),"getCoverages","query",n)},getExplanationOfBenefits(n,r){return t(i=>e.rawRequest(goe,n,Object.assign(Object.assign({},r),i)),"getExplanationOfBenefits","query",n)},getBinary(n,r){return t(i=>e.rawRequest(moe,n,Object.assign(Object.assign({},r),i)),"getBinary","query",n)},getFHIR(n,r){return t(i=>e.rawRequest(voe,n,Object.assign(Object.assign({},r),i)),"getFHIR","query",n)},getDiagnosticReports(n,r){return t(i=>e.rawRequest(Eoe,n,Object.assign(Object.assign({},r),i)),"getDiagnosticReports","query",n)},getAllergyIntoleranceGroups(n,r){return t(i=>e.rawRequest(yoe,n,Object.assign(Object.assign({},r),i)),"getAllergyIntoleranceGroups","query",n)},getAllergyIntolerances(n,r){return t(i=>e.rawRequest(Toe,n,Object.assign(Object.assign({},r),i)),"getAllergyIntolerances","query",n)},getCarePlanGroups(n,r){return t(i=>e.rawRequest(Aoe,n,Object.assign(Object.assign({},r),i)),"getCarePlanGroups","query",n)},getCarePlans(n,r){return t(i=>e.rawRequest(Coe,n,Object.assign(Object.assign({},r),i)),"getCarePlans","query",n)},getCareTeams(n,r){return t(i=>e.rawRequest(boe,n,Object.assign(Object.assign({},r),i)),"getCareTeams","query",n)},getConditionGroups(n,r){return t(i=>e.rawRequest(Ooe,n,Object.assign(Object.assign({},r),i)),"getConditionGroups","query",n)},getConditions(n,r){return t(i=>e.rawRequest(Roe,n,Object.assign(Object.assign({},r),i)),"getConditions","query",n)},getDiagnosticReportLabGroups(n,r){return t(i=>e.rawRequest(Poe,n,Object.assign(Object.assign({},r),i)),"getDiagnosticReportLabGroups","query",n)},getDocumentReferences(n,r){return t(i=>e.rawRequest(Moe,n,Object.assign(Object.assign({},r),i)),"getDocumentReferences","query",n)},getEncountersGroup(n,r){return t(i=>e.rawRequest(Ioe,n,Object.assign(Object.assign({},r),i)),"getEncountersGroup","query",n)},getEncounterQuery(n,r){return t(i=>e.rawRequest(Noe,n,Object.assign(Object.assign({},r),i)),"getEncounterQuery","query",n)},GetHealthSummary(n,r){return t(i=>e.rawRequest(Loe,n,Object.assign(Object.assign({},r),i)),"GetHealthSummary","query",n)},getImmunizationGroups(n,r){return t(i=>e.rawRequest(Doe,n,Object.assign(Object.assign({},r),i)),"getImmunizationGroups","query",n)},getImmunizations(n,r){return t(i=>e.rawRequest(woe,n,Object.assign(Object.assign({},r),i)),"getImmunizations","query",n)},getObservations(n,r){return t(i=>e.rawRequest(Uoe,n,Object.assign(Object.assign({},r),i)),"getObservations","query",n)},getProcedureGroups(n,r){return t(i=>e.rawRequest($oe,n,Object.assign(Object.assign({},r),i)),"getProcedureGroups","query",n)},GetProcedures(n,r){return t(i=>e.rawRequest(Goe,n,Object.assign(Object.assign({},r),i)),"GetProcedures","query",n)},getVitalSignGroups(n,r){return t(i=>e.rawRequest(Foe,n,Object.assign(Object.assign({},r),i)),"getVitalSignGroups","query",n)},getVitalSigns(n,r){return t(i=>e.rawRequest(xoe,n,Object.assign(Object.assign({},r),i)),"getVitalSigns","query",n)},getLabGroups(n,r){return t(i=>e.rawRequest(Voe,n,Object.assign(Object.assign({},r),i)),"getLabGroups","query",n)},getLabKnowledge(n,r){return t(i=>e.rawRequest(Boe,n,Object.assign(Object.assign({},r),i)),"getLabKnowledge","query",n)},getLabs(n,r){return t(i=>e.rawRequest(koe,n,Object.assign(Object.assign({},r),i)),"getLabs","query",n)},getMedicationDispense(n,r){return t(i=>e.rawRequest(joe,n,Object.assign(Object.assign({},r),i)),"getMedicationDispense","query",n)},getMedicationGroups(n,r){return t(i=>e.rawRequest(Qoe,n,Object.assign(Object.assign({},r),i)),"getMedicationGroups","query",n)},getMedicationKnowledge(n,r){return t(i=>e.rawRequest(qoe,n,Object.assign(Object.assign({},r),i)),"getMedicationKnowledge","query",n)},getMedicationPricing(n,r){return t(i=>e.rawRequest(Hoe,n,Object.assign(Object.assign({},r),i)),"getMedicationPricing","query",n)},getMedicationRequest(n,r){return t(i=>e.rawRequest(Yoe,n,Object.assign(Object.assign({},r),i)),"getMedicationRequest","query",n)},getMedicationStatements(n,r){return t(i=>e.rawRequest(zoe,n,Object.assign(Object.assign({},r),i)),"getMedicationStatements","query",n)},updateMedicationStatement(n,r){return t(i=>e.rawRequest(Woe,n,Object.assign(Object.assign({},r),i)),"updateMedicationStatement","mutation",n)},appointments(n,r){return t(i=>e.rawRequest(Koe,n,Object.assign(Object.assign({},r),i)),"appointments","query",n)},cancelAppointment(n,r){return t(i=>e.rawRequest(Xoe,n,Object.assign(Object.assign({},r),i)),"cancelAppointment","mutation",n)},cancelationReasons(n,r){return t(i=>e.rawRequest(Joe,n,Object.assign(Object.assign({},r),i)),"cancelationReasons","query",n)},addCareTeamMember(n,r){return t(i=>e.rawRequest(Zoe,n,Object.assign(Object.assign({},r),i)),"addCareTeamMember","mutation",n)},addCareTeamMembers(n,r){return t(i=>e.rawRequest(ese,n,Object.assign(Object.assign({},r),i)),"addCareTeamMembers","mutation",n)},CareTeamMembers(n,r){return t(i=>e.rawRequest(tse,n,Object.assign(Object.assign({},r),i)),"CareTeamMembers","query",n)},removeCareTeamMember(n,r){return t(i=>e.rawRequest(nse,n,Object.assign(Object.assign({},r),i)),"removeCareTeamMember","mutation",n)},updateCareTeamMember(n,r){return t(i=>e.rawRequest(rse,n,Object.assign(Object.assign({},r),i)),"updateCareTeamMember","mutation",n)},authenticate(n,r){return t(i=>e.rawRequest(ise,n,Object.assign(Object.assign({},r),i)),"authenticate","query",n)},createGuestAccessToken(n,r){return t(i=>e.rawRequest(ase,n,Object.assign(Object.assign({},r),i)),"createGuestAccessToken","mutation",n)},ExchangeAuthCode(n,r){return t(i=>e.rawRequest(ose,n,Object.assign(Object.assign({},r),i)),"ExchangeAuthCode","mutation",n)},initialize(n,r){return t(i=>e.rawRequest(sse,n,Object.assign(Object.assign({},r),i)),"initialize","query",n)},login(n,r){return t(i=>e.rawRequest(use,n,Object.assign(Object.assign({},r),i)),"login","query",n)},refreshTokens(n,r){return t(i=>e.rawRequest(cse,n,Object.assign(Object.assign({},r),i)),"refreshTokens","query",n)},nextQuestion(n,r){return t(i=>e.rawRequest(lse,n,Object.assign(Object.assign({},r),i)),"nextQuestion","mutation",n)},getQuestionnaireResponseList(n,r){return t(i=>e.rawRequest(dse,n,Object.assign(Object.assign({},r),i)),"getQuestionnaireResponseList","query",n)},getQuestionnaireResponses(n,r){return t(i=>e.rawRequest(fse,n,Object.assign(Object.assign({},r),i)),"getQuestionnaireResponses","query",n)},getQuestionnaires(n,r){return t(i=>e.rawRequest(_se,n,Object.assign(Object.assign({},r),i)),"getQuestionnaires","query",n)},saveQuestionnaireResponse(n,r){return t(i=>e.rawRequest(pse,n,Object.assign(Object.assign({},r),i)),"saveQuestionnaireResponse","mutation",n)},providerSearch(n,r){return t(i=>e.rawRequest(hse,n,Object.assign(Object.assign({},r),i)),"providerSearch","query",n)},requestConnection(n,r){return t(i=>e.rawRequest(Sse,n,Object.assign(Object.assign({},r),i)),"requestConnection","mutation",n)},SearchHealthResources(n,r){return t(i=>e.rawRequest(gse,n,Object.assign(Object.assign({},r),i)),"SearchHealthResources","query",n)},CreateSupportComment(n,r){return t(i=>e.rawRequest(mse,n,Object.assign(Object.assign({},r),i)),"CreateSupportComment","mutation",n)},CreateSupportRequest(n,r){return t(i=>e.rawRequest(vse,n,Object.assign(Object.assign({},r),i)),"CreateSupportRequest","mutation",n)},DeleteSupportAttachment(n,r){return t(i=>e.rawRequest(Ese,n,Object.assign(Object.assign({},r),i)),"DeleteSupportAttachment","mutation",n)},getSupportArticles(n,r){return t(i=>e.rawRequest(yse,n,Object.assign(Object.assign({},r),i)),"getSupportArticles","query",n)},GetSupportAttachment(n,r){return t(i=>e.rawRequest(Tse,n,Object.assign(Object.assign({},r),i)),"GetSupportAttachment","query",n)},GetSupportCategories(n,r){return t(i=>e.rawRequest(Ase,n,Object.assign(Object.assign({},r),i)),"GetSupportCategories","query",n)},getSupportComments(n,r){return t(i=>e.rawRequest(Cse,n,Object.assign(Object.assign({},r),i)),"getSupportComments","query",n)},getSupportRequests(n,r){return t(i=>e.rawRequest(bse,n,Object.assign(Object.assign({},r),i)),"getSupportRequests","query",n)},UploadSupportAttachment(n,r){return t(i=>e.rawRequest(Ose,n,Object.assign(Object.assign({},r),i)),"UploadSupportAttachment","mutation",n)},createConsent(n,r){return t(i=>e.rawRequest(Rse,n,Object.assign(Object.assign({},r),i)),"createConsent","mutation",n)},CreateDataExportDirectDownloadUrl(n,r){return t(i=>e.rawRequest(Pse,n,Object.assign(Object.assign({},r),i)),"CreateDataExportDirectDownloadUrl","mutation",n)},CreateVerificationUrl(n,r){return t(i=>e.rawRequest(Mse,n,Object.assign(Object.assign({},r),i)),"CreateVerificationUrl","mutation",n)},delete(n,r){return t(i=>e.rawRequest(Ise,n,Object.assign(Object.assign({},r),i)),"delete","mutation",n)},getProfile(n,r){return t(i=>e.rawRequest(Nse,n,Object.assign(Object.assign({},r),i)),"getProfile","query",n)},searchConsent(n,r){return t(i=>e.rawRequest(Lse,n,Object.assign(Object.assign({},r),i)),"searchConsent","query",n)},updateUserProfile(n,r){return t(i=>e.rawRequest(Dse,n,Object.assign(Object.assign({},r),i)),"updateUserProfile","mutation",n)},VerificationStatus(n,r){return t(i=>e.rawRequest(wse,n,Object.assign(Object.assign({},r),i)),"VerificationStatus","query",n)}}}var Gse=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})};function Xj(e,t,n){let r;t!==void 0&&(r=Fse(t));const i={};n!=null&&(i["accept-language"]=n);const a=new yae(e,{errorPolicy:"all",mode:"cors",requestMiddleware:r,headers:i});return{client:a,sdk:$se(a)}}function Fse(e){return t=>Gse(this,void 0,void 0,function*(){const r=(yield e.getAccessToken()).data();return Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),{Authorization:`Bearer ${r}`})})})}var xse=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Jj=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Gh;const Zj="accept-language";class Vse{constructor(t){Gh.set(this,void 0),xse(this,Gh,t,"f")}setLanguage(t){Jj(this,Gh,"f").setHeader(Zj,t)}getLanguage(){var t;const n=Jj(this,Gh,"f").requestConfig.headers;return(t=n?.[Zj])!==null&&t!==void 0?t:null}}Gh=new WeakMap;const Bse="INFORMATION",I1e="WARNING",eQ="ERROR",kse="FATAL";class xE{constructor(t){this.issue=t}message(){var t,n;const r=[];for(const i of this.issue){const a=(n=(t=i.details)===null||t===void 0?void 0:t.text)===null||n===void 0?void 0:n.trim();a==null||a.length===0||r.push(a)}return r.join(", ")}success(){for(const t of this.issue){const n=t.severity.toUpperCase();if(n===eQ||n===kse)return!1}return!0}static error(t){return new xE([{severity:eQ,code:"EXCEPTION",details:{text:t.message}}])}static success(){return new xE([{severity:Bse,code:"INFORMATIONAL",details:{}}])}}function jse(e){for(const t of e){const n=tQ(t);if(n!==null){if(n.code==="500")return!0;for(const r of n.resource.issue)if(r.code==="exception")return!0}}return!1}function HM(e=[]){const t=[];let n=!1;for(const a of e){const c=tQ(a);if(c!==null){n=!0;for(const f of c.resource.issue)t.push(f)}}if(!n)return null;const r=new xE(t),i=new nre(r);if(Ma(i.message)){const a=e.map(c=>c.message).join(", ");i.message=Ma(a)?"Unknown error. Contact b.well support for further assistance.":a}return i}function tQ(e){const t=e.extensions,n=t?.code,r=t?.resource;return n===void 0||r===void 0||!Qse(r)?null:{code:n,resource:r}}function Qse(e){const t=e.issue;return t===void 0?!1:Array.isArray(t)}var nQ=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},VE=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},wf,YM,zM;class Do{constructor(){wf.add(this)}handleTransaction(t){return nQ(this,void 0,void 0,function*(){try{const n=yield t,r=HM(n.errors);return r!==null?en.failure(r):en.success(n.data)}catch(n){if(sa.isBwellError(n))return en.failure(n);if(VE(this,wf,"m",YM).call(this,n))return VE(this,wf,"m",zM).call(this,n);throw n}})}handleQuery(t){return nQ(this,void 0,void 0,function*(){try{const n=yield t,r=HM(n.errors);return new Zt(n.data,r)}catch(n){if(sa.isBwellError(n))return new Zt(void 0,n);if(VE(this,wf,"m",YM).call(this,n)){const r=VE(this,wf,"m",zM).call(this,n);return Zt.error(r.error())}throw n}})}validateRequest(t){return t===void 0?en.success(null):t.validate()}}wf=new WeakSet,YM=function(t){return t instanceof tc},zM=function(t){if(t.response.status>299)return new dE(new tre("Network error",t.response.status));const n=t.response.errors;if(n!==void 0){if(jse(n))return new dE(new jP("Internal server error",n));const r=HM(n);if(r!==null)return en.failure(r)}return new dE(new jP("Unknown error",t))};var rc=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Gs,du,Uf;(function(e){e.ACTIVITY_CONTENT="https://www.icanbwell.com/contentDescription",e.ACTIVITY_ID="https://www.icanbwell.com/activityId",e.ACTIVITY_TOPIC="https://www.icanbwell.com/activityTopic",e.ACTIVITY_TYPE="https://www.icanbwell.com/activityType",e.PERFORMER_TYPE="https://www.icanbwell.com/performerType"})(Uf||(Uf={}));class qse{constructor(){Gs.add(this)}create(t){var n;const r=t.data(),i={page:r.page,pageSize:r.pageSize};return yr(r.id)&&(i.id=rc(this,Gs,"m",du).call(this,r.id)),yr(r.activityId)&&(i.identifier=rc(this,Gs,"m",du).call(this,r.activityId,Uf.ACTIVITY_ID)),yr(r.activityType)&&(i.code=rc(this,Gs,"m",du).call(this,r.activityType,Uf.ACTIVITY_TYPE)),yr(r.activityTopic)&&(i.tag=rc(this,Gs,"m",du).call(this,r.activityTopic,Uf.ACTIVITY_TOPIC)),yr(r.status)&&(i.status=rc(this,Gs,"m",du).call(this,r.status)),yr(r.subject)&&(i.subject=rc(this,Gs,"m",du).call(this,r.subject)),yr(r.performerType)&&(i.performer=rc(this,Gs,"m",du).call(this,r.performerType,Uf.PERFORMER_TYPE)),yr(r.basedOn)&&(i.basedOn=rc(this,Gs,"m",du).call(this,r.basedOn)),i.sortMethod=r.smartSort===!0?"smartSort":"",yr(r.enrichContent)&&(i.enrichContent=r.enrichContent),i.contentLanguage=(n=r.contentLanguage)!==null&&n!==void 0?n:"en",{request:i}}}Gs=new WeakSet,du=function(t,n){const i={value:(Array.isArray(t)?t:[t]).join(",")};return yr(n)&&(i.system=n),{values:[i]}};var rQ=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},iQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},us=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},cs,Fh,WM;class Hse extends Do{constructor(t,n=new Hi){super(),cs.set(this,void 0),Fh.set(this,void 0),WM.set(this,new qse),iQ(this,Fh,t,"f"),iQ(this,cs,n.getLogger("GraphQLActivityManager"),"f")}getTasks(t){return rQ(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();us(this,cs,"f").verbose("calling getTask query...");const i=yield this.handleQuery(us(this,Fh,"f").getTasks(us(this,WM,"f").create(t)));return us(this,cs,"f").verbose("getTask query complete"),i.hasError()?us(this,cs,"f").error("getTask query error",i.error):us(this,cs,"f").info("successfully called getTask query"),new Zt((n=i.data)===null||n===void 0?void 0:n.getTasks,i.error)})}updateTaskStatus(t){return rQ(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n;us(this,cs,"f").verbose("calling taskUpdateStatus mutation");const r=yield this.handleTransaction(us(this,Fh,"f").taskUpdateStatus(t.data()));return us(this,cs,"f").verbose("taskUpdateStatus mutation complete"),r.failure()?(us(this,cs,"f").error("taskUpdateStatus error",r),r.intoFailure()):(us(this,cs,"f").info("taskUpdateStatus mutation success"),en.success(r.data().taskUpdateStatus))})}}cs=new WeakMap,Fh=new WeakMap,WM=new WeakMap;var $f=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},KM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Nr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},fu,Hr,BE;class Yse extends Do{constructor(t,n=new Hi,r=new zse){super(),fu.set(this,void 0),Hr.set(this,void 0),BE.set(this,void 0),KM(this,fu,t,"f"),KM(this,Hr,n.getLogger("GraphQLConnectionManager"),"f"),KM(this,BE,r,"f")}getMemberConnections(t){return $f(this,void 0,void 0,function*(){var n;if(t){const a=this.validateRequest(t);if(a.failure())return a.toQueryResult()}Nr(this,Hr,"f").verbose("calling getMemberConnections...");const r=t?t.data():{},i=yield this.handleQuery(Nr(this,fu,"f").getMemberConnections({integrationType:(n=r.integrationType)!==null&&n!==void 0?n:null}));return Nr(this,Hr,"f").verbose("getMemberConnections complete"),i.hasError()?Nr(this,Hr,"f").error("getMemberConnections failed",i.error):Nr(this,Hr,"f").info("successfully called getMemberConnections"),Nr(this,BE,"f").create(i)})}getDataSource(t){return $f(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();Nr(this,Hr,"f").verbose("calling getDataSources...");const i=yield this.handleQuery(Nr(this,fu,"f").getDataSource(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("getDataSources complete"),i.hasError()?Nr(this,Hr,"f").error("getDataSources failed",i.error):Nr(this,Hr,"f").info("successfully called getDataSources"),new Zt((n=i.data)===null||n===void 0?void 0:n.getDataSource,i.error)})}createConnection(t){return $f(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Nr(this,Hr,"f").verbose("calling createConnection...");const r=yield this.handleTransaction(Nr(this,fu,"f").createConnection(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("createConnection complete"),r.failure()?(Nr(this,Hr,"f").error("createConnection failed",r),r.intoFailure()):(Nr(this,Hr,"f").info("successfully called createConnection"),en.success(r.data().createConnection))})}disconnectConnection(t){return $f(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Nr(this,Hr,"f").verbose("calling disconnectConnection...");const r=yield this.handleTransaction(Nr(this,fu,"f").disconnectConnection(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("disconnectConnection complete"),r.failure()?(Nr(this,Hr,"f").error("disconnectConnection failed",r),r.intoFailure()):(Nr(this,Hr,"f").info("successfully called disconnectConnection"),en.success(r.data().disconnectConnection))})}deleteConnection(t){return $f(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Nr(this,Hr,"f").verbose("calling deleteConnection...");const r=yield this.handleTransaction(Nr(this,fu,"f").deleteConnection(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("deleteConnection complete"),r.failure()?(Nr(this,Hr,"f").error("deleteConnection failed",r),r.intoFailure()):(Nr(this,Hr,"f").info("successfully called deleteConnection"),en.success(r.data().deleteConnection))})}getOauthUrl(t){return $f(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();Nr(this,Hr,"f").verbose("calling getOauthUrl...");const i=yield this.handleQuery(Nr(this,fu,"f").getOauthUrl(Object.assign({},t.data())));return Nr(this,Hr,"f").verbose("getOauthUrl complete"),i.hasError()?Nr(this,Hr,"f").error("getOauthUrl failed",i.error):Nr(this,Hr,"f").info("successfully called getOauthUrl"),new Zt((n=i.data)===null||n===void 0?void 0:n.getOauthUrl,i.error)})}}fu=new WeakMap,Hr=new WeakMap,BE=new WeakMap;class zse{create(t){var n,r,i,a,c,f;const y=new Map,h=(i=(r=(n=t.data)===null||n===void 0?void 0:n.subscription_subscription)===null||r===void 0?void 0:r.entry)!==null&&i!==void 0?i:[];for(const F of h)if(jn((a=F?.resource)===null||a===void 0?void 0:a.service_slug)&&jn(F?.resource.subscriptionStatus))for(const W of F.resource.subscriptionStatus)y.set(F.resource.service_slug,{error:W?.error,extension:W?.extension});const m=(f=(c=t.data)===null||c===void 0?void 0:c.getMemberConnections)!==null&&f!==void 0?f:[];return new Zt(m.map(F=>{var W;const ye=y.get(F.id);if(Pa(ye))return Object.assign(Object.assign({},F),{syncErrors:[]});const Te=(W=ye.extension)===null||W===void 0?void 0:W.find(Re=>Re?.id===Xre);return Object.assign(Object.assign({},F),{syncErrors:ye.error,syncStatus:Te?Te.valueString:F.syncStatus})}),t.error)}}class Wse{create(t){return{deviceToken:t.data().deviceToken,platformName:"",applicationName:"",notificationPreference:!1}}}class Kse{create(t){return Object.assign(Object.assign({},t.data()),{notificationPreference:!0})}}var aQ=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},oQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},wo=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},xh,ls,XM,JM;class Xse extends Do{constructor(t,n=new Hi){super(),xh.set(this,void 0),ls.set(this,void 0),XM.set(this,new Wse),JM.set(this,new Kse),oQ(this,xh,t,"f"),oQ(this,ls,n.getLogger("GraphQLDeviceManager"),"f")}registerDevice(t){return aQ(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=wo(this,JM,"f").create(t);wo(this,ls,"f").verbose("calling updateDeviceRegistration to register device...");const i=yield this.handleTransaction(wo(this,xh,"f").updateDeviceRegistration(r));return wo(this,ls,"f").verbose("updateDeviceRegistration complete for registration."),i.failure()?(wo(this,ls,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(wo(this,ls,"f").info("successfully called updateDeviceRegistration for registration."),en.success(i.data().updateDeviceRegistration))})}deregisterDevice(t){return aQ(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();wo(this,ls,"f").verbose("calling updateDeviceRegistration to deregister device...");const r=wo(this,XM,"f").create(t),i=yield this.handleTransaction(wo(this,xh,"f").updateDeviceRegistration(r));return wo(this,ls,"f").verbose("updateDeviceRegistration complete for deregistration."),i.failure()?(wo(this,ls,"f").error("updateDeviceRegistration failed",i),i.intoFailure()):(wo(this,ls,"f").info("successfully called updateDeviceRegistration for deregistration."),en.success(i.data().updateDeviceRegistration))})}}xh=new WeakMap,ls=new WeakMap,XM=new WeakMap,JM=new WeakMap;class Jse{create(t){const n=JSON.parse(t.data().serializedNotification);return{notificationId:n.notification_id,messageId:n.itbl.messageId,eventType:XP.MobilePushOpen}}}var Zse=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},ZM=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Ol=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},kE,ic,jE;class eue extends Do{constructor(t,n=new Hi,r=new Jse){super(),kE.set(this,void 0),ic.set(this,void 0),jE.set(this,void 0),ZM(this,kE,t,"f"),ZM(this,ic,n.getLogger("GraphQLEventManager"),"f"),ZM(this,jE,r,"f")}handleNotification(t){return Zse(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();Ol(this,ic,"f").debug("Calling publishEvent");let r;try{r=Ol(this,jE,"f").create(t)}catch(a){return Ol(this,ic,"f").error("Error creating publishEvent request",a),en.failure(new jP("Error creating publishEvent request"))}const i=yield this.handleTransaction(Ol(this,kE,"f").publishEvent(r));return Ol(this,ic,"f").debug("publishEvent completed"),i.failure()?(Ol(this,ic,"f").error("publishEvent mutation error",i),i.intoFailure()):(Ol(this,ic,"f").info("publishEvent mutation success"),en.success(i.data().publishEvent))})}}kE=new WeakMap,ic=new WeakMap,jE=new WeakMap;class tue{create(t){var n,r,i,a;const c=t.data(),f=(r=(n=c.sortBy)===null||n===void 0?void 0:n.map(y=>y.order===SE.Desc?`-${y.field}`:y.field))!==null&&r!==void 0?r:null;return{request:{coverage:c.coverage,claimType:(i=c.claimType)!==null&&i!==void 0?i:null,claimStatus:(a=c.claimStatus)!==null&&a!==void 0?a:null,dateProcessed:c.dateProcessed,dateReceived:c.dateReceived,servicePeriod:c.servicePeriod,page:c.page,pageSize:c.pageSize,sort:f}}}}class nue{create(t){var n,r,i,a,c,f,y,h;const m=t?.data();return{id:(n=m?.id)!==null&&n!==void 0?n:null,lastUpdated:(r=m?.lastUpdated)!==null&&r!==void 0?r:null,sort:(i=m?.sort)!==null&&i!==void 0?i:null,page:(a=m?.page)!==null&&a!==void 0?a:null,pageSize:(c=m?.pageSize)!==null&&c!==void 0?c:null,patient:(f=m?.patient)!==null&&f!==void 0?f:null,beneficiary:(y=m?.beneficiary)!==null&&y!==void 0?y:null,total:(h=m?.total)!==null&&h!==void 0?h:gE.Accurate}}}class rue{create(t){var n,r,i,a,c,f,y,h,m,F;const W=t?.data();return{page:(n=W?.page)!==null&&n!==void 0?n:null,pageSize:(r=W?.pageSize)!==null&&r!==void 0?r:null,id:(i=W?.id)!==null&&i!==void 0?i:null,lastUpdated:(a=W?.lastUpdated)!==null&&a!==void 0?a:null,patient:(c=W?.patient)!==null&&c!==void 0?c:null,provider:(f=W?.provider)!==null&&f!==void 0?f:null,coverage:(y=W?.coverage)!==null&&y!==void 0?y:null,status:(h=W?.status)!==null&&h!==void 0?h:null,created:(m=W?.created)!==null&&m!==void 0?m:null,sort:(F=W?.sort)!==null&&F!==void 0?F:null,total:gE.Accurate}}}var QE=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},sQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},zi=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Na,Rl,eI,tI,nI;class iue extends Do{constructor(t,n=new Hi){super(),Na.set(this,void 0),Rl.set(this,void 0),eI.set(this,new nue),tI.set(this,new rue),nI.set(this,new tue),sQ(this,Rl,t,"f"),sQ(this,Na,n.getLogger("GraphQLFinancialManager"),"f")}getCoverages(t){return QE(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();zi(this,Na,"f").verbose("calling getCoverages...");const i=yield this.handleQuery(zi(this,Rl,"f").getCoverages(zi(this,eI,"f").create(t)));return zi(this,Na,"f").verbose("getCoverages complete"),i.hasError()&&zi(this,Na,"f").error("getCoverages errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.coverages,i.error)})}getCoverageSummary(t){return QE(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();zi(this,Na,"f").verbose("calling getCoverageSummary...");const a=yield this.handleQuery(zi(this,Rl,"f").getCoverageSummary({request:(n=t?.data())!==null&&n!==void 0?n:null}));return zi(this,Na,"f").verbose("getCoverageSummary complete"),a.hasError()&&zi(this,Na,"f").error("getCoverageSummary errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCoverageSummary,a.error)})}getExplanationOfBenefits(t){return QE(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();zi(this,Na,"f").verbose("calling getExplanationOfBenefits...");const i=yield this.handleQuery(zi(this,Rl,"f").getExplanationOfBenefits(zi(this,tI,"f").create(t)));return zi(this,Na,"f").verbose("getExplanationOfBenefits complete"),i.hasError()&&zi(this,Na,"f").error("getExplanationOfBenefits errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.explanationOfBenefits,i.error)})}getClaimSummary(t){return QE(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();zi(this,Na,"f").verbose("calling getClaimSummary...");const i=yield this.handleQuery(zi(this,Rl,"f").getClaimSummary(zi(this,nI,"f").create(t)));return zi(this,Na,"f").verbose("getClaimSummary complete"),i.hasError()&&zi(this,Na,"f").error("getClaimSummary errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getClaimSummary,i.error)})}}Na=new WeakMap,Rl=new WeakMap,eI=new WeakMap,tI=new WeakMap,nI=new WeakMap;function qE(e,t){const n=(e.role||[]).map(i=>({text:i})),r={id:e.id,member:{reference:`${e.type}/${e.id}`},role:n};return t!==void 0&&(r.period=t),r}class aue{create(t){const n=t.data();return{participant:qE(n,{start:YP(),end:null})}}}class oue{create(t){const n=t.data(),r=YP();return{participant:n.members.map(a=>qE(a,{start:r,end:null}))}}}class sue{create(t){var n,r,i,a,c,f,y,h;const m=t.data();return{source:(n=m._source)!==null&&n!==void 0?n:null,id:(r=m._id)!==null&&r!==void 0?r:null,count:(i=m._count)!==null&&i!==void 0?i:25,getPagesOffset:(a=m._getpagesoffset)!==null&&a!==void 0?a:0,date:(c=m.date)!==null&&c!==void 0?c:null,sort:(f=m._sort)!==null&&f!==void 0?f:null,supportingInformation:(y=m.supporting_info)!==null&&y!==void 0?y:null,status:(h=m.status)!==null&&h!==void 0?h:null}}}class uue{create(t){const n=t.data();return{appointment:{id:n.id,status:zP.Cancelled,cancelationReason:n.cancelationReason}}}}class cue{create(t){var n,r;const i=t.data();return{pageNumber:(n=i.page)!==null&&n!==void 0?n:0,pageSize:(r=i.pageSize)!==null&&r!==void 0?r:HP}}}class lue{create(t){const n=t.data();return{participant:qE(n,{end:YP()})}}}class due{create(t){const n=t.data();return{participant:qE(n)}}}var ac=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},uQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},In=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Tr,ds,rI,iI,aI,oI,sI,uI,cI;class fue extends Do{constructor(t,n=new Hi){super(),Tr.set(this,void 0),ds.set(this,void 0),rI.set(this,new sue),iI.set(this,new uue),aI.set(this,new lue),oI.set(this,new aue),sI.set(this,new oue),uI.set(this,new due),cI.set(this,new cue),uQ(this,ds,t,"f"),uQ(this,Tr,n.getLogger("GraphQLHealthSpaceManager"),"f")}getAppointments(t){return ac(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();In(this,Tr,"f").verbose("calling appointments query...");const i=yield this.handleQuery(In(this,ds,"f").appointments(In(this,rI,"f").create(t)));return In(this,Tr,"f").verbose("appointments query complete"),i.hasError()?In(this,Tr,"f").error("appointments query error",i.error):In(this,Tr,"f").info("successfully called appointments query"),new Zt((n=i.data)===null||n===void 0?void 0:n.appointments,i.error)})}cancelAppointment(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling cancel appointment mutation...");const r=yield this.handleTransaction(In(this,ds,"f").cancelAppointment(In(this,iI,"f").create(t)));return In(this,Tr,"f").verbose("cancel appointment mutation complete"),r.failure()?(In(this,Tr,"f").error("cancel appointment mutation error",r),r.intoFailure()):(In(this,Tr,"f").info("successfully called cancel appointment mutation"),en.success(r.data().updateAppointment))})}getCancelationReasons(t){return ac(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();In(this,Tr,"f").verbose("calling cancelationReasons query...");const i=yield this.handleQuery(In(this,ds,"f").cancelationReasons(t.data()));return In(this,Tr,"f").verbose("cancelationReasons query complete"),i.hasError()?In(this,Tr,"f").error("cancelationReasons query error",i.error):In(this,Tr,"f").info("successfully called cancelationReasons query"),new Zt((n=i.data)===null||n===void 0?void 0:n.cancelationReasons,i.error)})}removeCareTeamMember(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling removeCareTeamMember mutation...");const r=yield this.handleTransaction(In(this,ds,"f").removeCareTeamMember(In(this,aI,"f").create(t)));return In(this,Tr,"f").verbose("removeCareTeamMember mutation completed"),r.failure()?(In(this,Tr,"f").error("removeCareTeamMember mutation error",r),r.intoFailure()):(In(this,Tr,"f").info("successfully called removeCareTeamMember mutation"),en.success(r.data()))})}addCareTeamMember(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling addCareTeamMember mutation...");const r=yield this.handleTransaction(In(this,ds,"f").addCareTeamMember(In(this,oI,"f").create(t)));return In(this,Tr,"f").verbose("addCareTeamMember mutation completed"),r.failure()?(In(this,Tr,"f").error("addCareTeamMember mutation error",r),r.intoFailure()):(In(this,Tr,"f").info("successfully called addCareTeamMember mutation"),en.success(r.data()))})}addCareTeamMembers(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling addCareTeamMembers mutation...");const r=In(this,sI,"f").create(t),i=yield this.handleTransaction(In(this,ds,"f").addCareTeamMembers(r));return In(this,Tr,"f").verbose("addCareTeamMembers mutation completed"),i.failure()?(In(this,Tr,"f").error("addCareTeamMembers mutation error",i),i.intoFailure()):(In(this,Tr,"f").info("successfully called addCareTeamMembers mutation"),en.success(i.data()))})}updateCareTeamMember(t){return ac(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();In(this,Tr,"f").verbose("calling updateCareTeamMember mutation...");const r=In(this,uI,"f").create(t),i=yield this.handleTransaction(In(this,ds,"f").updateCareTeamMember(r));return In(this,Tr,"f").verbose("updateCareTeamMember mutation completed"),i.failure()?i.intoFailure():en.success(i.data())})}getCareTeamMembers(t){return ac(this,void 0,void 0,function*(){var n;const r=t??new Nie({page:0}),i=this.validateRequest(r);if(i.failure())return i.toQueryResult();In(this,Tr,"f").verbose("calling getCareTeamMembers query...");const a=In(this,cI,"f").create(r),c=yield this.handleQuery(In(this,ds,"f").CareTeamMembers(a));return In(this,Tr,"f").verbose("getCareTeamMembers query complete"),c.hasError()?In(this,Tr,"f").error("getCareTeamMembers query error",c.error):In(this,Tr,"f").info("successfully called getCareTeamMembers query"),new Zt((n=c.data)===null||n===void 0?void 0:n.careTeamMembers,c.error)})}}Tr=new WeakMap,ds=new WeakMap,rI=new WeakMap,iI=new WeakMap,aI=new WeakMap,oI=new WeakMap,sI=new WeakMap,uI=new WeakMap,cI=new WeakMap;class _ue{create(t){var n;const{id:r,page:i,pageSize:a,sort:c}=(n=t?.data())!==null&&n!==void 0?n:{};return{id:r?{values:r}:null,pageSize:a??null,page:i??null,sort:c??null}}}class pue{create(t){var n;const r=(n=t.data)===null||n===void 0?void 0:n.getMedicationDispense;if(!r)return new Zt(void 0,t.error);const i=Object.assign(Object.assign({},r),r?.resources&&{resources:r?.resources.map(a=>{var c,f,y,h,m,F,W;return Object.assign(Object.assign({},a),a.medication&&{medication:Object.assign(Object.assign({},a.medication),((c=a.medication)===null||c===void 0?void 0:c.resource)&&{resource:Object.assign(Object.assign({},(f=a.medication)===null||f===void 0?void 0:f.resource),((h=(y=a.medication)===null||y===void 0?void 0:y.resource)===null||h===void 0?void 0:h.ingredient)&&{ingredient:(W=(F=(m=a.medication)===null||m===void 0?void 0:m.resource)===null||F===void 0?void 0:F.ingredient)===null||W===void 0?void 0:W.map(ye=>{var Te,Re;return Object.assign(Object.assign({},ye),((Te=ye?.itemReference)===null||Te===void 0?void 0:Te.itemReferenceResource)&&{itemReference:{resource:(Re=ye?.itemReference)===null||Re===void 0?void 0:Re.itemReferenceResource}})})})})})})});return new Zt(i,t.error)}}class hue{create(t){var n;const r=(n=t.data)===null||n===void 0?void 0:n.getMedicationRequest;if(!r)return new Zt(void 0,t.error);const i=Object.assign(Object.assign({},r),r?.resources&&{resources:r?.resources.map(a=>{var c,f,y,h,m,F,W;return Object.assign(Object.assign({},a),a.medication&&{medication:Object.assign(Object.assign({},a.medication),((c=a.medication)===null||c===void 0?void 0:c.resource)&&{resource:Object.assign(Object.assign({},(f=a.medication)===null||f===void 0?void 0:f.resource),((h=(y=a.medication)===null||y===void 0?void 0:y.resource)===null||h===void 0?void 0:h.ingredient)&&{ingredient:(W=(F=(m=a.medication)===null||m===void 0?void 0:m.resource)===null||F===void 0?void 0:F.ingredient)===null||W===void 0?void 0:W.map(ye=>{var Te,Re;return Object.assign(Object.assign({},ye),((Te=ye?.itemReference)===null||Te===void 0?void 0:Te.itemReferenceResource)&&{itemReference:{resource:(Re=ye?.itemReference)===null||Re===void 0?void 0:Re.itemReferenceResource}})})})})})})});return new Zt(i,t.error)}}class Sue{create(t){const n=t.data();return{input:{id:n.id,status:n.status}}}}var Or=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},Gf=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ft=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},sr,Lt,HE,YE,zE,WE;class gue extends Do{constructor(t,n=new Hi,r=new hue,i=new pue,a=new _ue,c=new Sue){super(),sr.set(this,void 0),Lt.set(this,void 0),HE.set(this,void 0),YE.set(this,void 0),zE.set(this,void 0),WE.set(this,void 0),Gf(this,sr,t,"f"),Gf(this,Lt,n.getLogger("GraphQLHealthManager"),"f"),Gf(this,HE,r,"f"),Gf(this,YE,i,"f"),Gf(this,zE,a,"f"),Gf(this,WE,c,"f")}getHealthSummary(){return Or(this,void 0,void 0,function*(){var t;ft(this,Lt,"f").verbose("calling getHealthSummary...");const n=yield this.handleQuery(ft(this,sr,"f").GetHealthSummary());return ft(this,Lt,"f").verbose("getHealthSummary complete"),n.hasError()?ft(this,Lt,"f").error("getHealthSummary failed",n.error):ft(this,Lt,"f").info("successfully called getHealthSummary"),new Zt((t=n.data)===null||t===void 0?void 0:t.getHealthSummary,n.error)})}getAllergyIntolerances(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getAllergyIntolerances...");const a=yield this.handleQuery(ft(this,sr,"f").getAllergyIntolerances({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getAllergyIntolerances complete"),a.hasError()&&ft(this,Lt,"f").error("getAllergyIntolerances errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getAllergyIntolerances,a.error)})}getAllergyIntoleranceGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getAllergyIntoleranceGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getAllergyIntoleranceGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getAllergyIntoleranceGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getAllergyIntoleranceGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getAllergyIntoleranceGroups,a.error)})}getConditions(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getConditions...");const a=yield this.handleQuery(ft(this,sr,"f").getConditions({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getConditions complete"),a.hasError()&&ft(this,Lt,"f").error("getConditions errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getConditions,a.error)})}getConditionGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getConditionGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getConditionGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getConditionGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getConditionGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getConditionGroups,a.error)})}getDiagnosticReports(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getDiagnosticReports...");const i=yield this.handleQuery(ft(this,sr,"f").getDiagnosticReports(ft(this,zE,"f").create(t)));return ft(this,Lt,"f").verbose("getDiagnosticReports complete"),i.hasError()&&ft(this,Lt,"f").error("getDiagnosticReports errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.diagnosticReports,i.error)})}getDocumentReferences(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getDocumentReferences...");const a=yield this.handleQuery(ft(this,sr,"f").getDocumentReferences({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getDocumentReferences complete"),a.hasError()&&ft(this,Lt,"f").error("getDocumentReferences errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getDocumentReferences,a.error)})}getBinary(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getBinary...");const i=yield this.handleQuery(ft(this,sr,"f").getBinary({request:t.data()}));return ft(this,Lt,"f").verbose("getBinary complete"),i.hasError()&&ft(this,Lt,"f").error("getBinary errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getBinary,i.error)})}getLabs(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getLabs...");const a=yield this.handleQuery(ft(this,sr,"f").getLabs({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getLabs complete"),a.hasError()&&ft(this,Lt,"f").error("getLabs errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getLabs,a.error)})}getLabGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getLabGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getLabGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getLabGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getLabGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getLabGroups,a.error)})}getCarePlans(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getCarePlans...");const a=yield this.handleQuery(ft(this,sr,"f").getCarePlans({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getCarePlans complete"),a.hasError()&&ft(this,Lt,"f").error("getCarePlans errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCarePlans,a.error)})}getCarePlanGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getCarePlanGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getCarePlanGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getCarePlanGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getCarePlanGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCarePlanGroups,a.error)})}getCareTeams(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getCareTeams");const a=yield this.handleQuery(ft(this,sr,"f").getCareTeams({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getCareTeams complete"),a.hasError()&&ft(this,Lt,"f").error("getCareTeams errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getCareTeams,a.error)})}getEncounters(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getEncounters...");const a=yield this.handleQuery(ft(this,sr,"f").getEncounterQuery({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getEncounters complete"),a.hasError()&&ft(this,Lt,"f").error("getEncounters errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getEncounters,a.error)})}getEncounterGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getEncounterGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getEncountersGroup({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getEncounterGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getEncounterGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getEncounterGroups,a.error)})}getImmunizations(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getImmunizations...");const a=yield this.handleQuery(ft(this,sr,"f").getImmunizations({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getImmunizations complete"),a.hasError()&&ft(this,Lt,"f").error("getImmunizations errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getImmunizations,a.error)})}getImmunizationGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getImmunizationGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getImmunizationGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getImmunizationGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getImmunizationGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getImmunizationGroups,a.error)})}getProcedures(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getProcedures...");const a=yield this.handleQuery(ft(this,sr,"f").GetProcedures({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getProcedures complete"),a.hasError()&&ft(this,Lt,"f").error("getProcedures errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getProcedures,a.error)})}getProcedureGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getProcedureGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getProcedureGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getProcedureGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getProcedureGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getProcedureGroups,a.error)})}getVitalSigns(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getVitalSigns...");const i=t?.data(),a=yield this.handleQuery(ft(this,sr,"f").getObservations({request:Object.assign(Object.assign({},i),{category:bh.VitalSigns})}));return ft(this,Lt,"f").verbose("getVitalSigns complete"),a.hasError()&&ft(this,Lt,"f").error("getVitalSigns errors",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getObservations,a.error)})}getVitalSignGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getVitalSignGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getVitalSignGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getVitalSignGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getVitalSignGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getVitalSignGroups,a.error)})}getDeviceMetrics(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getDeviceMetrics...");const i=t?.data(),a=yield this.handleQuery(ft(this,sr,"f").getObservations({request:Object.assign(Object.assign({},i),{category:bh.Activity})}));return ft(this,Lt,"f").verbose("getDeviceMetrics complete"),a.hasError()&&ft(this,Lt,"f").error("getDeviceMetrics errors",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getObservations,a.error)})}getDeviceMetricGroups(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getDeviceMetricGroups...");const i=t?.data(),a=yield this.handleQuery(ft(this,sr,"f").getObservations({request:Object.assign(Object.assign({},i),{category:bh.Activity})}));return ft(this,Lt,"f").verbose("getDeviceMetricGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getDeviceMetricGroups errors",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getObservations,a.error)})}getMedicationDispense(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationDispense...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationDispense({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationDispense complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationDispense errors",i.error),ft(this,YE,"f").create(i)})}getMedicationRequest(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationRequest...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationRequest({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationRequest complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationRequest errors",i.error),ft(this,HE,"f").create(i)})}getMedicationStatements(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationStatements...");const a=yield this.handleQuery(ft(this,sr,"f").getMedicationStatements({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationStatements complete"),a.hasError()&&ft(this,Lt,"f").error("getMedicationStatements errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getMedicationStatements,a.error)})}updateMedicationStatement(t){return Or(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();ft(this,Lt,"f").verbose("calling updateMedicationStatement...");const r=yield this.handleTransaction(ft(this,sr,"f").updateMedicationStatement(ft(this,WE,"f").create(t)));return ft(this,Lt,"f").verbose("updateMedicationStatement complete"),r.failure()?(ft(this,Lt,"f").error("updateMedicationStatement failed",r.error),r.intoFailure()):en.success(r.data().updateMedicationStatement)})}getMedicationGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getMedicationGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getMedicationGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getMedicationGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getMedicationGroups,a.error)})}getMedicationKnowledge(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationKnowledge...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationKnowledge({request:t.data()}));return ft(this,Lt,"f").verbose("getMedicationKnowledge complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationKnowledge errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getMedicationKnowledge,i.error)})}getLabKnowledge(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getLabKnowledge...");const i=yield this.handleQuery(ft(this,sr,"f").getLabKnowledge({request:t.data()}));return ft(this,Lt,"f").verbose("getLabKnowledge complete"),i.hasError()&&ft(this,Lt,"f").error("getLabKnowledge errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getLabKnowledge,i.error)})}getMedicationPricing(t){return Or(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ft(this,Lt,"f").verbose("calling getMedicationPricing...");const i=yield this.handleQuery(ft(this,sr,"f").getMedicationPricing({request:t.data()}));return ft(this,Lt,"f").verbose("getMedicationPricing complete"),i.hasError()&&ft(this,Lt,"f").error("getMedicationPricing errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.getMedicationPricing,i.error)})}getDiagnosticReportLabGroups(t){return Or(this,void 0,void 0,function*(){var n,r;const i=this.validateRequest(t);if(i.failure())return i.toQueryResult();ft(this,Lt,"f").verbose("calling getDiagnosticReportLabGroups...");const a=yield this.handleQuery(ft(this,sr,"f").getDiagnosticReportLabGroups({request:(n=t?.data())!==null&&n!==void 0?n:null}));return ft(this,Lt,"f").verbose("getDiagnosticReportLabGroups complete"),a.hasError()&&ft(this,Lt,"f").error("getDiagnosticReportLabGroups errors",a.error),new Zt((r=a.data)===null||r===void 0?void 0:r.getDiagnosticReportLabGroups,a.error)})}}sr=new WeakMap,Lt=new WeakMap,HE=new WeakMap,YE=new WeakMap,zE=new WeakMap,WE=new WeakMap;class cQ{create(t){var n,r,i,a,c,f,y,h,m;const F=t.data();return{id:(n=F.id)!==null&&n!==void 0?n:null,lastUpdated:(r=F.lastUpdated)!==null&&r!==void 0?r:null,sort:(i=F.sort)!==null&&i!==void 0?i:null,pageSize:(a=F.pageSize)!==null&&a!==void 0?a:HP,page:F.page,questionnaire:(c=F.questionnaire)!==null&&c!==void 0?c:null,status:(f=F.status)!==null&&f!==void 0?f:null,patient:(y=F.patient)!==null&&y!==void 0?y:null,tag:(h=F.tag)!==null&&h!==void 0?h:null,total:(m=F.total)!==null&&m!==void 0?m:null}}}class mue{create(t){var n,r,i,a,c,f;const y=t.data();return{page:y.page,pageSize:y.pageSize,id:(n=y.id)!==null&&n!==void 0?n:null,sort:(r=y.sort)!==null&&r!==void 0?r:null,context:(i=y.context)!==null&&i!==void 0?i:null,identifier:(a=y.identifier)!==null&&a!==void 0?a:null,security:(c=y.security)!==null&&c!==void 0?c:null,tag:(f=y.tag)!==null&&f!==void 0?f:null}}}var Vh=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},lQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ei=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},wi,oc,lI,dI,fI;class vue extends Do{constructor(t,n=new Hi){super(),wi.set(this,void 0),oc.set(this,void 0),lI.set(this,new cQ),dI.set(this,new cQ),fI.set(this,new mue),lQ(this,oc,t,"f"),lQ(this,wi,n.getLogger("GraphQLQuestionnaireManager"),"f")}nextQuestion(t){return Vh(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n.intoFailure();ei(this,wi,"f").verbose("calling nextQuestion mutation...");const r=yield this.handleTransaction(ei(this,oc,"f").nextQuestion(t.data()));return ei(this,wi,"f").verbose("nextQuestion mutation complete"),r.failure()?(ei(this,wi,"f").error("nextQuestion mutation failed",r.error()),r.intoFailure()):(ei(this,wi,"f").info("successfully called nextQuestion mutation"),en.success(r.data().nextQuestion))})}saveQuestionnaireResponse(t){return Vh(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n.intoFailure();ei(this,wi,"f").verbose("calling saveQuestionnaireResponse mutation...");const r=yield this.handleTransaction(ei(this,oc,"f").saveQuestionnaireResponse(t.data()));return ei(this,wi,"f").verbose("saveQuestionnaireResponse mutation complete"),r.failure()?(ei(this,wi,"f").error("saveQuestionnaireResponse mutation failed",r.error()),r.intoFailure()):(ei(this,wi,"f").info("successfully called saveQuestionnaireResponse mutation"),en.success(r.data().saveQuestionnaireResponse))})}getQuestionnaireResponses(t){return Vh(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ei(this,wi,"f").verbose("calling getQuestionnaireResponses...");const i=yield this.handleQuery(ei(this,oc,"f").getQuestionnaireResponses(ei(this,lI,"f").create(t)));return ei(this,wi,"f").verbose("getQuestionnaireResponses complete"),i.hasError()&&ei(this,wi,"f").error("getQuestionnaireResponses errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.questionnaireResponses,i.error)})}getQuestionnaireResponseList(t){return Vh(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ei(this,wi,"f").verbose("calling getQuestionnaireResponseList...");const i=yield this.handleQuery(ei(this,oc,"f").getQuestionnaireResponseList(ei(this,dI,"f").create(t)));return ei(this,wi,"f").verbose("getQuestionnaireResponseList complete"),i.hasError()&&ei(this,wi,"f").error("getQuestionnaireResponseList errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.questionnaireResponses,i.error)})}getQuestionnaires(t){return Vh(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();ei(this,wi,"f").verbose("calling getQuestionnaires...");const i=yield this.handleQuery(ei(this,oc,"f").getQuestionnaires(ei(this,fI,"f").create(t)));return ei(this,wi,"f").verbose("getQuestionnaires complete"),i.hasError()&&ei(this,wi,"f").error("getQuestionnaires errors",i.error),new Zt((n=i.data)===null||n===void 0?void 0:n.questionnaires,i.error)})}}wi=new WeakMap,oc=new WeakMap,lI=new WeakMap,dI=new WeakMap,fI=new WeakMap;class _I{create(t){var n,r,i,a,c,f,y,h,m;const F=t.data(),W=null,ye=(n=F.searchTerm)!==null&&n!==void 0?n:null,Te=(r=F.specialtyFilters)!==null&&r!==void 0?r:null,Re=(i=F.includePopulatedPROAonly)!==null&&i!==void 0?i:!1,Ye=(a=F.organizationTypeFilters)!==null&&a!==void 0?a:null,qe=(c=F.gender)!==null&&c!==void 0?c:null,Ke=(f=F.location)!==null&&f!==void 0?f:null;let Et=null;yr(F.sortBy)&&(Et={field:(y=F.sortBy.field)!==null&&y!==void 0?y:null,order:(h=F.sortBy.order)!==null&&h!==void 0?h:null});const Ut=(m=F.filterFields)!==null&&m!==void 0?m:null,dn=F.page,$n=F.pageSize;return{client:W,searchTerm:ye,specialtyFilters:Te,includePopulatedPROAonly:Re,organizationTypeFilters:Ye,gender:qe,location:Ke,sortBy:Et,filterFields:Ut,page:dn,pageSize:$n}}}var Eue=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},pI;class yue{constructor(){pI.set(this,new _I)}create(t){const n=Eue(this,pI,"f").create(t);return n.client={data_sets:[hE.Connecthub]},n}}pI=new WeakMap;var Tue=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},hI;class Aue{constructor(){hI.set(this,new _I)}create(t){const n=Tue(this,hI,"f").create(t);return n.client={data_sets:[hE.Nppes]},n}}hI=new WeakMap;class Cue{create(t){var n,r,i,a;const c=t.data();return{institution:(n=c.institution)!==null&&n!==void 0?n:null,provider:(r=c.provider)!==null&&r!==void 0?r:null,city:(i=c.city)!==null&&i!==void 0?i:null,state:(a=c.state)!==null&&a!==void 0?a:null}}}class bue{create(t){var n,r,i,a,c,f,y,h;const m=t.data();return{searchInput:{client:m.client,searchContext:m.searchContext,filters:(n=m.filters)!==null&&n!==void 0?n:null,orderBy:(r=m.orderBy)!==null&&r!==void 0?r:null,paging:{pageNumber:(i=m.page)!==null&&i!==void 0?i:null,pageSize:(a=m.pageSize)!==null&&a!==void 0?a:null},search:(c=m.search)!==null&&c!==void 0?c:null,searchLocation:(f=m.searchLocation)!==null&&f!==void 0?f:null,user:(y=m.user)!==null&&y!==void 0?y:null,filterValues:(h=m.filterValues)!==null&&h!==void 0?h:null}}}}var Bh=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},dQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Dr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},sc,Si,SI,gI,mI,vI,EI;class Oue extends Do{constructor(t,n=new Hi){super(),sc.set(this,void 0),Si.set(this,void 0),SI.set(this,new _I),gI.set(this,new Aue),mI.set(this,new yue),vI.set(this,new Cue),EI.set(this,new bue),dQ(this,sc,t,"f"),dQ(this,Si,n.getLogger("GraphQLSearchManager"),"f")}searchHealthResources(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling searchHealthResources query");const i=yield this.handleQuery(Dr(this,sc,"f").SearchHealthResources(Dr(this,EI,"f").create(t)));return Dr(this,Si,"f").verbose("searchHealthResources query complete"),i.hasError()?Dr(this,Si,"f").error("searchHealthResources query failed",i.error):Dr(this,Si,"f").info("successfully called searchHealthResources query"),new Zt((n=i.data)===null||n===void 0?void 0:n.searchHealthResources,i.error)})}search(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling providerSearch search query");const i=yield this.handleQuery(Dr(this,sc,"f").providerSearch(Dr(this,SI,"f").create(t)));return Dr(this,Si,"f").verbose("providerSearch search query complete"),i.hasError()?Dr(this,Si,"f").error("providerSearch search query failed",i.error):Dr(this,Si,"f").info("successfully called providerSearch search query"),new Zt((n=i.data)===null||n===void 0?void 0:n.providers,i.error)})}searchProviders(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling providerSearch searchProviders query");const i=yield this.handleQuery(Dr(this,sc,"f").providerSearch(Dr(this,gI,"f").create(t)));return Dr(this,Si,"f").verbose("providerSearch searchProviders query complete"),i.hasError()?Dr(this,Si,"f").error("providerSearch searchProviders query failed",i.error):Dr(this,Si,"f").info("successfully called providerSearch searchProviders query"),new Zt((n=i.data)===null||n===void 0?void 0:n.providers,i.error)})}searchConnections(t){return Bh(this,void 0,void 0,function*(){var n;const r=t.validate();if(r.failure())return r.toQueryResult();Dr(this,Si,"f").verbose("calling providerSearch searchConnections query");const i=yield this.handleQuery(Dr(this,sc,"f").providerSearch(Dr(this,mI,"f").create(t)));return Dr(this,Si,"f").verbose("providerSearch searchConnections query complete"),i.hasError()?Dr(this,Si,"f").error("providerSearch searchConnections query failed",i.error):Dr(this,Si,"f").info("successfully called providerSearch searchConnections query"),new Zt((n=i.data)===null||n===void 0?void 0:n.providers,i.error)})}requestConnection(t){return Bh(this,void 0,void 0,function*(){Dr(this,Si,"f").verbose("calling requestConnection mutation");const n=yield this.handleTransaction(Dr(this,sc,"f").requestConnection(Dr(this,vI,"f").create(t)));return Dr(this,Si,"f").verbose("requestConnection mutation complete"),n.failure()?(Dr(this,Si,"f").error("requestConnection mutation failed",n),n.intoFailure()):(Dr(this,Si,"f").info("requestConnection request success"),en.success(n.data().requestConnection))})}}sc=new WeakMap,Si=new WeakMap,SI=new WeakMap,gI=new WeakMap,mI=new WeakMap,vI=new WeakMap,EI=new WeakMap;class Rue{create(t){const n=t.data();return{input:{requestId:n.requestId,body:n.body,uploads:n.uploads}}}}class Pue{create(t){const n=t.data();return{input:{subject:n.subject,comment:{body:n.comment.body,uploads:n.comment.uploads},fields:{category:n.fields.category},email:n.email,name:n.name}}}}class Mue{create(t){return{input:{attachmentId:t.data().attachmentId}}}}class Iue{create(t){var n,r,i,a,c;const f=t.data();return{input:{page:(n=f?.page)!==null&&n!==void 0?n:null,pageSize:(r=f?.pageSize)!==null&&r!==void 0?r:null,search:(i=f?.search)!==null&&i!==void 0?i:null,labelNames:(a=f?.labelNames)!==null&&a!==void 0?a:null,locale:(c=f?.locale)!==null&&c!==void 0?c:null}}}}class Nue{create(t){const n=t.data();return{input:{requestId:n.requestId,attachmentId:n.attachmentId}}}}class Lue{create(t){var n,r,i;const a=t.data();return{input:{requestId:a.requestId,page:(n=a.page)!==null&&n!==void 0?n:null,pageSize:(r=a.pageSize)!==null&&r!==void 0?r:null,sortOrder:(i=a.sortOrder)!==null&&i!==void 0?i:null}}}}class Due{create(t){var n,r,i,a,c,f;const y=t?.data();return{input:{page:(n=y?.page)!==null&&n!==void 0?n:null,pageSize:(r=y?.pageSize)!==null&&r!==void 0?r:null,search:(i=y?.search)!==null&&i!==void 0?i:null,sortBy:(a=y?.sortBy)!==null&&a!==void 0?a:null,sortOrder:(c=y?.sortOrder)!==null&&c!==void 0?c:null,status:(f=y?.status)!==null&&f!==void 0?f:[],ids:y?.ids}}}}class wue{create(t){const n=t.data();return{input:{file:n.file,fileName:n.fileName}}}}var _u=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},Fs=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Tn=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Uo,gr,KE,XE,JE,ZE,ey,ty,ny,ry;class Uue extends Do{constructor(t,n=new Hi,r=new Due,i=new wue,a=new Mue,c=new Pue,f=new Iue,y=new Lue,h=new Rue,m=new Nue){super(),Uo.set(this,void 0),gr.set(this,void 0),KE.set(this,void 0),XE.set(this,void 0),JE.set(this,void 0),ZE.set(this,void 0),ey.set(this,void 0),ty.set(this,void 0),ny.set(this,void 0),ry.set(this,void 0),Fs(this,Uo,t,"f"),Fs(this,gr,n.getLogger("GraphQLSupportManager"),"f"),Fs(this,KE,r,"f"),Fs(this,XE,i,"f"),Fs(this,JE,a,"f"),Fs(this,ZE,c,"f"),Fs(this,ey,f,"f"),Fs(this,ty,y,"f"),Fs(this,ny,h,"f"),Fs(this,ry,m,"f")}getSupportRequests(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,KE,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportRequests query...");const a=yield this.handleQuery(Tn(this,Uo,"f").getSupportRequests(i));return Tn(this,gr,"f").verbose("getSupportRequests query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportRequests query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportRequests,a.error)})}uploadSupportAttachment(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,XE,"f").create(t);Tn(this,gr,"f").verbose("calling uploadSupportAttachment mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").UploadSupportAttachment(r));return Tn(this,gr,"f").verbose("uploadSupportAttachment mutation complete."),i.failure()?(Tn(this,gr,"f").error("uploadSupportAttachment mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("uploadSupportAttachment mutation success"),en.success(i.data().uploadSupportAttachment))})}deleteSupportAttachment(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,JE,"f").create(t);Tn(this,gr,"f").verbose("calling deleteSupportAttachment mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").DeleteSupportAttachment(r));return Tn(this,gr,"f").verbose("deleteSupportAttachment mutation complete."),i.failure()?(Tn(this,gr,"f").error("deleteSupportAttachment mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("deleteSupportAttachment mutation success"),en.success(i.data().deleteSupportAttachment))})}createSupportRequest(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,ZE,"f").create(t);Tn(this,gr,"f").verbose("calling createSupportRequest mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").CreateSupportRequest(r));return Tn(this,gr,"f").verbose("createSupportRequest mutation complete."),i.failure()?(Tn(this,gr,"f").error("createSupportRequest mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("createSupportRequest mutation success"),en.success(i.data().createSupportRequest))})}getSupportCategories(){return _u(this,void 0,void 0,function*(){var t;Tn(this,gr,"f").verbose("calling getSupportCategories query...");const n=yield this.handleQuery(Tn(this,Uo,"f").GetSupportCategories());return Tn(this,gr,"f").verbose("getSupportCategories query complete."),n.hasError()&&Tn(this,gr,"f").error("getSupportCategories query error",n.error),new Zt((t=n.data)===null||t===void 0?void 0:t.getSupportCategories,n.error)})}getSupportArticles(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,ey,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportArticles query...");const a=yield this.handleQuery(Tn(this,Uo,"f").getSupportArticles(i));return Tn(this,gr,"f").verbose("getSupportArticles query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportArticles query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportArticles,a.error)})}getSupportComments(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,ty,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportComments query...");const a=yield this.handleQuery(Tn(this,Uo,"f").getSupportComments(i));return Tn(this,gr,"f").verbose("getSupportComments query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportComments query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportComments,a.error)})}createSupportComment(t){return _u(this,void 0,void 0,function*(){const n=this.validateRequest(t);if(n.failure())return n.intoFailure();const r=Tn(this,ny,"f").create(t);Tn(this,gr,"f").verbose("calling createSupportComment mutation...");const i=yield this.handleTransaction(Tn(this,Uo,"f").CreateSupportComment(r));return Tn(this,gr,"f").verbose("createSupportComment mutation complete."),i.failure()?(Tn(this,gr,"f").error("createSupportComment mutation error",i),i.intoFailure()):(Tn(this,gr,"f").info("createSupportComment mutation success"),en.success(i.data().createSupportComment))})}getSupportAttachment(t){return _u(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();const i=Tn(this,ry,"f").create(t);Tn(this,gr,"f").verbose("calling getSupportAttachment query...");const a=yield this.handleQuery(Tn(this,Uo,"f").GetSupportAttachment(i));return Tn(this,gr,"f").verbose("getSupportAttachment query complete."),a.hasError()&&Tn(this,gr,"f").error("getSupportAttachment query error",a.error),new Zt((n=a.data)===null||n===void 0?void 0:n.getSupportAttachment,a.error)})}}Uo=new WeakMap,gr=new WeakMap,KE=new WeakMap,XE=new WeakMap,JE=new WeakMap,ZE=new WeakMap,ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,ry=new WeakMap;const $ue="http://www.icanbwell.com/consent-category";class Gue{create(t){const n=t.data(),r={status:n.status,provision:{type:n.provision}};return yr(n.organizationId)&&(r.organization=[{type:"Organization",reference:`Organization/${n.organizationId}`}]),yr(n.category)&&(r.category=[{coding:[{system:$ue,code:n.category}]}]),{consentInput:r}}}class Fue{create(t){const n=t.data();return{exportId:n.exportId,password:n.password}}}class xue{create(t){var n,r;const i=t.data();return{callbackURL:(n=i.callbackUrl)!==null&&n!==void 0?n:null,includeAttributeMatchingCheck:(r=i.includeAttributeMatchingCheck)!==null&&r!==void 0?r:null}}}class Vue{create(t){return{categoryCode:t.data().category}}}var Ff=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},uc,yI,fQ,_Q,pQ,hQ;class Bue{constructor(){uc.add(this)}create(t){const n=t.data(),r={resourceType:ZP.Person};return Ff(this,uc,"m",yI).call(this,"id",n.id,r),Ff(this,uc,"m",yI).call(this,"birthDate",n.birthDate,r),Ff(this,uc,"m",fQ).call(this,n,r),Ff(this,uc,"m",pQ).call(this,n,r),Ff(this,uc,"m",_Q).call(this,n,r),Ff(this,uc,"m",hQ).call(this,n,r),{person:r}}}uc=new WeakSet,yI=function(t,n,r){Wa(n)||(r[t]=n)},fQ=function(t,n){let r=!1;const{firstName:i,lastName:a}=t,c={};jn(i)&&(r=!0,c.given=[i]),jn(a)&&(r=!0,c.family=a),r&&(n.name=[c])},_Q=function(t,n){let r=!1;const{addressUnit:i,addressStreet:a,city:c,stateOrProvidence:f,postageOrZipCode:y}=t,h={};if(jn(i)||jn(a)){r=!0;const m=[];jn(a)&&m.push(a),jn(i)&&m.push(i),h.line=m}jn(c)&&(r=!0,h.city=c),jn(f)&&(r=!0,h.state=f),jn(y)&&(r=!0,h.postalCode=y),r&&(n.address=[h])},pQ=function(t,n){const r=t.gender;Wa(r)||(n.gender=r)},hQ=function(t,n){const r=[],{homePhone:i,mobilePhone:a,workPhone:c,email:f}=t;jn(i)&&r.push({system:"phone",use:"home",value:i}),jn(a)&&r.push({system:"phone",use:"mobile",value:a}),jn(c)&&r.push({system:"phone",use:"work",value:c}),jn(f)&&r.push({system:"email",value:f}),r.length!==0&&(n.telecom=r)};var cc=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},SQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Nn=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},fs,ur,TI,AI,CI,bI,OI;class kue extends Do{constructor(t,n=new Hi){super(),fs.set(this,void 0),ur.set(this,void 0),TI.set(this,new Gue),AI.set(this,new Bue),CI.set(this,new Vue),bI.set(this,new Fue),OI.set(this,new xue),SQ(this,fs,t,"f"),SQ(this,ur,n.getLogger("GraphQLUserManager"),"f")}getProfile(){return cc(this,void 0,void 0,function*(){var t;Nn(this,ur,"f").verbose("calling getProfile...");const n=yield this.handleQuery(Nn(this,fs,"f").getProfile());return Nn(this,ur,"f").verbose("getProfile complete"),n.hasError()?Nn(this,ur,"f").error("getProfile failed",n.error):Nn(this,ur,"f").info("successfully called getProfile"),new Zt((t=n.data)===null||t===void 0?void 0:t.userProfile,n.error)})}delete(){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling delete...");const t=yield this.handleTransaction(Nn(this,fs,"f").delete());return Nn(this,ur,"f").verbose("delete complete"),t.failure()?(Nn(this,ur,"f").error("delete failed",t.error),t.intoFailure()):(Nn(this,ur,"f").info("successfully called delete"),en.success(null))})}updateProfile(t){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling updateUserProfile");const n=yield this.handleTransaction(Nn(this,fs,"f").updateUserProfile(Nn(this,AI,"f").create(t)));return Nn(this,ur,"f").verbose("updateUserProfile complete"),n.failure()?(Nn(this,ur,"f").error("updateUserProfile error",n),n.intoFailure()):(Nn(this,ur,"f").info("updateUserProfile success"),en.success(n.data().updateUserProfile))})}getConsents(t){return cc(this,void 0,void 0,function*(){var n;const r=this.validateRequest(t);if(r.failure())return r.toQueryResult();Nn(this,ur,"f").verbose("calling consent search query...");let i;t!==void 0&&(i=Nn(this,CI,"f").create(t));const a=yield this.handleQuery(Nn(this,fs,"f").searchConsent(i));return Nn(this,ur,"f").verbose("consent search query complete"),a.hasError()?Nn(this,ur,"f").error("consent search failed",a.error):Nn(this,ur,"f").info("successfully called consent search query"),new Zt((n=a.data)===null||n===void 0?void 0:n.search,a.error)})}createConsent(t){return cc(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n;Nn(this,ur,"f").verbose("calling createConsent mutation...");const r=yield this.handleTransaction(Nn(this,fs,"f").createConsent(Nn(this,TI,"f").create(t)));return Nn(this,ur,"f").verbose("createConsent mutation complete"),r.failure()?(Nn(this,ur,"f").error("createConsent mutation error",r),r.intoFailure()):(Nn(this,ur,"f").info("createConsent mutation success"),en.success(r.data().createConsent))})}createDataExportDirectDownloadUrl(t){return cc(this,void 0,void 0,function*(){const n=t.validate();if(n.failure())return n;Nn(this,ur,"f").verbose("calling createDataExportDirectDownloadUrl mutation...");const r=yield this.handleTransaction(Nn(this,fs,"f").CreateDataExportDirectDownloadUrl(Nn(this,bI,"f").create(t)));return Nn(this,ur,"f").verbose("createDataExportDirectDownloadUrl mutation complete"),r.failure()?(Nn(this,ur,"f").error("createDataExportDirectDownloadUrl mutation error",r),r.intoFailure()):(Nn(this,ur,"f").info("createDataExportDirectDownloadUrl mutation success"),en.success(r.data().createDataExportDirectDownloadUrl))})}createVerificationUrl(t){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling createVerificationUrl mutation...");const n=yield this.handleTransaction(Nn(this,fs,"f").CreateVerificationUrl(Nn(this,OI,"f").create(t)));return Nn(this,ur,"f").verbose("createVerificationUrl complete"),n.failure()?(Nn(this,ur,"f").error("createVerificationUrl error",n),n.intoFailure()):(Nn(this,ur,"f").info("createVerificationUrl success"),en.success(n.data().createVerificationUrl))})}getVerificationStatus(){return cc(this,void 0,void 0,function*(){Nn(this,ur,"f").verbose("calling getVerificationStatus query...");const t=yield this.handleTransaction(Nn(this,fs,"f").VerificationStatus());return Nn(this,ur,"f").verbose("getVerificationStatus complete"),t.failure()?(Nn(this,ur,"f").error("getVerificationStatus error",t),t.intoFailure()):(Nn(this,ur,"f").info("getVerificationStatus success"),en.success(t.data().verificationStatus))})}}fs=new WeakMap,ur=new WeakMap,TI=new WeakMap,AI=new WeakMap,CI=new WeakMap,bI=new WeakMap,OI=new WeakMap;var gQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},$o=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},iy,Ka;class jue{constructor(t,n,r){iy.set(this,void 0),Ka.set(this,void 0),gQ(this,iy,n.getLogger("GraphQLAPIProvider"),"f"),gQ(this,Ka,t,"f"),$o(this,iy,"f").verbose("initializing GraphQLClient"),this.activity=new Hse($o(this,Ka,"f"),n),this.connection=new Yse($o(this,Ka,"f"),n),this.device=new Xse($o(this,Ka,"f"),n),this.event=new eue($o(this,Ka,"f"),n),this.health=new gue($o(this,Ka,"f"),n),this.financial=new iue($o(this,Ka,"f"),n),this.healthSpace=new fue($o(this,Ka,"f"),n),this.user=new kue($o(this,Ka,"f"),n),this.search=new Oue($o(this,Ka,"f"),n),this.questionnaire=new vue($o(this,Ka,"f"),n),this.support=new Uue($o(this,Ka,"f"),n),this.language=new Vse(r)}}iy=new WeakMap,Ka=new WeakMap;class Que{createApiProvider(t,n,r){const{sdk:i,client:a}=Xj(t.graphQL.apiUrl,n,t.bwellConfig.language);return new jue(i,r,a)}}var xf=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},mQ=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},wr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},pu,Yr;class que extends Do{constructor(t,n=new Hi){super(),pu.set(this,void 0),Yr.set(this,void 0),mQ(this,pu,t,"f"),mQ(this,Yr,n.getLogger("GraphQLIdentityManager"),"f")}initialize(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing initialize query...",{clientKey:t});const n=yield this.handleTransaction(wr(this,pu,"f").initialize({clientKey:t}));return wr(this,Yr,"f").verbose("initialize query complete",n),n.failure()?(wr(this,Yr,"f").error("initialize failed.",n),n.intoFailure()):(wr(this,Yr,"f").info("successfully called initialize"),en.success(n.data().initSdk))})}authenticateWithOauth(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("exectuting oauth authenticate query...");const n=yield this.handleTransaction(wr(this,pu,"f").authenticate({},{Authorization:t.jweToken,ClientKey:t.clientKey}));if(wr(this,Yr,"f").verbose("oauth authenticate query complete",n),n.failure())return wr(this,Yr,"f").error("oauth authenticate failed",n),n.intoFailure();wr(this,Yr,"f").info("oauth authenticate success");const r=n.data(),i={accessToken:r.getToken.accessToken.jwtToken,idToken:r.getToken.idToken.jwtToken,refreshToken:r.getToken.refreshToken.token};return en.success(i)})}authenticateWithUsernamePassword(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("exectuting username/password authenticate query...");const n=yield this.handleTransaction(wr(this,pu,"f").login({email:t.email,password:t.password},{ClientKey:t.clientKey}));if(wr(this,Yr,"f").verbose("username/password authenticate query complete",n),n.failure())return wr(this,Yr,"f").error("username/password authenticate failed",n),n.intoFailure();wr(this,Yr,"f").info("username/password authenticate success");const r=n.data(),i={accessToken:r.login.accessToken.jwtToken,idToken:r.login.idToken.jwtToken,refreshToken:r.login.refreshToken.token};return en.success(i)})}authenticateWithAuthCode(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing authenticateWithAuthCode query...");const n=yield this.handleTransaction(wr(this,pu,"f").ExchangeAuthCode({authCode:t.authCode}));if(wr(this,Yr,"f").verbose("authenticateWithAuthCode query complete",n),n.failure())return wr(this,Yr,"f").error("authenticateWithAuthCode failed",n),n.intoFailure();wr(this,Yr,"f").info("authenticateWithAuthCode successful");const r=n.data(),i={accessToken:r.exchangeAuthCode.accessToken.jwtToken,idToken:r.exchangeAuthCode.idToken.jwtToken,refreshToken:r.exchangeAuthCode.refreshToken.token};return en.success(i)})}refreshAccessToken(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing refreshAccessToken query...");const n=yield this.handleTransaction(wr(this,pu,"f").refreshTokens({},{refresh_token:t.refreshToken,clientkey:t.clientKey}));return wr(this,Yr,"f").verbose("refreshAccessToken query complete",n),n.failure()?(wr(this,Yr,"f").error("refreshAccessToken failed",n),n.intoFailure()):(wr(this,Yr,"f").info("refreshAccessToken successful"),en.success(n.data().refresh))})}createGuestAccessToken(t){return xf(this,void 0,void 0,function*(){wr(this,Yr,"f").verbose("executing createGuestAccessToken mutation...",t);const n=yield this.handleTransaction(wr(this,pu,"f").createGuestAccessToken(t));if(wr(this,Yr,"f").verbose("createGuestAccessToken mutation complete",n),n.failure())return wr(this,Yr,"f").error("createGuestAccessToken failed",n),n.intoFailure();wr(this,Yr,"f").info("createGuestAccessToken successful");const r=n.data();return en.success(r.createGuestAccessToken)})}}pu=new WeakMap,Yr=new WeakMap;class Hue{createIdentityManager(t,n){const{sdk:r}=Xj(t.graphQL.unauthApiUrl);return new que(r,n)}}function RI(e,t){const n=Object.keys(e);return n.length===t.length&&n.every(r=>t.includes(r))}function vQ(e){return"token"in e&&RI(e,["token"])}function EQ(e){return"email"in e&&"password"in e&&RI(e,["email","password"])}function yQ(e){return"authCode"in e&&RI(e,["authCode"])}var Yue=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},PI=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},kh=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ay,Vf,oy;class zue{constructor(t,n,r=new Hi){ay.set(this,void 0),Vf.set(this,void 0),oy.set(this,void 0),PI(this,ay,n,"f"),PI(this,oy,t,"f"),PI(this,Vf,r.getLogger("OAuthStrategy"),"f")}authenticate(t){return Yue(this,void 0,void 0,function*(){if(!vQ(t))return kh(this,Vf,"f").error("Incorrect credentials type provided to OAuthStrategy"),en.failure(new kP("Expected OAuthCredentials",t));kh(this,Vf,"f").verbose("authenticating via OAuth strategy...");const n=yield kh(this,ay,"f").authenticateWithOauth({jweToken:t.token,clientKey:kh(this,oy,"f").context.clientKey});return kh(this,Vf,"f").verbose("finished OAuth authentication"),n})}}ay=new WeakMap,Vf=new WeakMap,oy=new WeakMap;var Wue=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},MI=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},jh=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},sy,Bf,uy;class Kue{constructor(t,n,r=new Hi){sy.set(this,void 0),Bf.set(this,void 0),uy.set(this,void 0),MI(this,sy,n,"f"),MI(this,uy,t,"f"),MI(this,Bf,r.getLogger("AuthCodeStrategy"),"f")}authenticate(t){return Wue(this,void 0,void 0,function*(){if(!yQ(t))return jh(this,Bf,"f").error("Incorrect credentials type provided to AuthCodeStrategy"),en.failure(new kP("Expected AuthCodeCredentials",t));jh(this,Bf,"f").verbose("authenticating via AuthCode strategy...");const n=yield jh(this,sy,"f").authenticateWithAuthCode({authCode:t.authCode,clientKey:jh(this,uy,"f").context.clientKey});return jh(this,Bf,"f").verbose("finished AuthCode authentication"),n})}}sy=new WeakMap,Bf=new WeakMap,uy=new WeakMap;var Xue=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},II=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},Qh=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},cy,kf,ly;class Jue{constructor(t,n,r=new Hi){cy.set(this,void 0),kf.set(this,void 0),ly.set(this,void 0),II(this,cy,n,"f"),II(this,ly,t,"f"),II(this,kf,r.getLogger("UsernamePasswordStrategy"),"f")}authenticate(t){return Xue(this,void 0,void 0,function*(){if(!EQ(t))return Qh(this,kf,"f").error("Invalid credentials type provided to UsernamePasswordStrategy. Please provide username and password."),en.failure(new kP("Expected UserPassCredentials",t));Qh(this,kf,"f").verbose("authenticating via UsernamePassword strategy...");const n=yield Qh(this,cy,"f").authenticateWithUsernamePassword({clientKey:Qh(this,ly,"f").context.clientKey,email:t.email,password:t.password});return Qh(this,kf,"f").verbose("finished OAuth authentication"),n})}}cy=new WeakMap,kf=new WeakMap,ly=new WeakMap;class Zue{createAuthStrategy(t,n,r,i=new Hi){if(EQ(r))return new Jue(t,n,i);if(vQ(r))return new zue(t,n,i);if(yQ(r))return new Kue(t,n,i);throw new Error("Invalid credentials type provided; expected UserPassCredentials, OauthCredentials or AuthCodeCredentials.")}}var ece=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{},Pl="1.9.0",TQ=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function tce(e){var t=new Set([e]),n=new Set,r=e.match(TQ);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(y){return y===e};function a(f){return n.add(f),!1}function c(f){return t.add(f),!0}return function(y){if(t.has(y))return!0;if(n.has(y))return!1;var h=y.match(TQ);if(!h)return a(y);var m={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};return m.prerelease!=null||i.major!==m.major?a(y):i.major===0?i.minor===m.minor&&i.patch<=m.patch?c(y):a(y):i.minor<=m.minor?c(y):a(y)}}var nce=tce(Pl),rce=Pl.split(".")[0],qh=Symbol.for("opentelemetry.js.api."+rce),Hh=ece;function Yh(e,t,n,r){var i;r===void 0&&(r=!1);var a=Hh[qh]=(i=Hh[qh])!==null&&i!==void 0?i:{version:Pl};if(!r&&a[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(a.version!==Pl){var c=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+Pl);return n.error(c.stack||c.message),!1}return a[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+Pl+"."),!0}function Ml(e){var t,n,r=(t=Hh[qh])===null||t===void 0?void 0:t.version;if(!(!r||!nce(r)))return(n=Hh[qh])===null||n===void 0?void 0:n[e]}function zh(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Pl+".");var n=Hh[qh];n&&delete n[e]}function dy(e){return Symbol.for(e)}var ice=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var a=new e(n._currentContext);return a._currentContext.set(r,i),a},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),jf=new ice,ace=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},oce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},sce=function(){function e(){}return e.prototype.active=function(){return jf},e.prototype.with=function(t,n,r){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return n.call.apply(n,oce([r],ace(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),uce=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},cce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},lce=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wh("verbose",this._namespace,t)},e}();function Wh(e,t,n){var r=Ml("diag");if(!!r)return n.unshift(t),r[e].apply(r,cce([],uce(n),!1))}var xr;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(xr||(xr={}));function dce(e,t){e<xr.NONE?e=xr.NONE:e>xr.ALL&&(e=xr.ALL),t=t||{};function n(r,i){var a=t[r];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:n("error",xr.ERROR),warn:n("warn",xr.WARN),info:n("info",xr.INFO),debug:n("debug",xr.DEBUG),verbose:n("verbose",xr.VERBOSE)}}var fce=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},_ce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},pce="diag",xs=function(){function e(){function t(i){return function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var f=Ml("diag");if(!!f)return f[i].apply(f,_ce([],fce(a),!1))}}var n=this,r=function(i,a){var c,f,y;if(a===void 0&&(a={logLevel:xr.INFO}),i===n){var h=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((c=h.stack)!==null&&c!==void 0?c:h.message),!1}typeof a=="number"&&(a={logLevel:a});var m=Ml("diag"),F=dce((f=a.logLevel)!==null&&f!==void 0?f:xr.INFO,i);if(m&&!a.suppressOverrideMessage){var W=(y=new Error().stack)!==null&&y!==void 0?y:"<failed to generate stacktrace>";m.warn("Current logger will be overwritten from "+W),F.warn("Current logger will overwrite one already registered from "+W)}return Yh("diag",F,n,!0)};n.setLogger=r,n.disable=function(){zh(pce,n)},n.createComponentLogger=function(i){return new lce(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),hce=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Sce=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},NI="context",gce=new sce,fy=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Yh(NI,t,xs.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,a=[],c=3;c<arguments.length;c++)a[c-3]=arguments[c];return(i=this._getContextManager()).with.apply(i,Sce([t,n,r],hce(a),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return Ml(NI)||gce},e.prototype.disable=function(){this._getContextManager().disable(),zh(NI,xs.instance())},e}(),Vs;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Vs||(Vs={}));var AQ="0000000000000000",CQ="00000000000000000000000000000000",bQ={traceId:CQ,spanId:AQ,traceFlags:Vs.NONE},Kh=function(){function e(t){t===void 0&&(t=bQ),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),LI=dy("OpenTelemetry Context Key SPAN");function DI(e){return e.getValue(LI)||void 0}function mce(){return DI(fy.getInstance().active())}function wI(e,t){return e.setValue(LI,t)}function vce(e){return e.deleteValue(LI)}function Ece(e,t){return wI(e,new Kh(t))}function OQ(e){var t;return(t=DI(e))===null||t===void 0?void 0:t.spanContext()}var yce=/^([0-9a-f]{32})$/i,Tce=/^[0-9a-f]{16}$/i;function RQ(e){return yce.test(e)&&e!==CQ}function Ace(e){return Tce.test(e)&&e!==AQ}function Qf(e){return RQ(e.traceId)&&Ace(e.spanId)}function Cce(e){return new Kh(e)}var UI=fy.getInstance(),PQ=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=UI.active());var i=Boolean(n?.root);if(i)return new Kh;var a=r&&OQ(r);return bce(a)&&Qf(a)?new Kh(a):new Kh},e.prototype.startActiveSpan=function(t,n,r,i){var a,c,f;if(!(arguments.length<2)){arguments.length===2?f=n:arguments.length===3?(a=n,f=r):(a=n,c=r,f=i);var y=c??UI.active(),h=this.startSpan(t,a,y),m=wI(y,h);return UI.with(m,f,void 0,h)}},e}();function bce(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Oce=new PQ,Rce=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Oce},e}(),Pce=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new PQ},e}(),Mce=new Pce,MQ=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new Rce(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Mce},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),$I="trace",Ice=function(){function e(){this._proxyTracerProvider=new MQ,this.wrapSpanContext=Cce,this.isSpanContextValid=Qf,this.deleteSpan=vce,this.getSpan=DI,this.getActiveSpan=mce,this.getSpanContext=OQ,this.setSpan=wI,this.setSpanContext=Ece}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Yh($I,this._proxyTracerProvider,xs.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return Ml($I)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){zh($I,xs.instance()),this._proxyTracerProvider=new MQ},e}(),Ea=Ice.getInstance(),GI=dy("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Nce(e){return e.setValue(GI,!0)}function N1e(e){return e.deleteValue(GI)}function Lce(e){return e.getValue(GI)===!0}var FI="[_0-9a-z-*/]",Dce="[a-z]"+FI+"{0,255}",wce="[a-z0-9]"+FI+"{0,240}@[a-z]"+FI+"{0,13}",Uce=new RegExp("^(?:"+Dce+"|"+wce+")$"),$ce=/^[ -~]{0,255}[!-~]$/,Gce=/,|=/;function Fce(e){return Uce.test(e)}function xce(e){return $ce.test(e)&&!Gce.test(e)}var IQ=32,Vce=512,NQ=",",LQ="=",Bce=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,n){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r},e.prototype.unset=function(t){var n=this._clone();return n._internalState.delete(t),n},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(n,r){return n.push(r+LQ+t.get(r)),n},[]).join(NQ)},e.prototype._parse=function(t){t.length>Vce||(this._internalState=t.split(NQ).reverse().reduce(function(n,r){var i=r.trim(),a=i.indexOf(LQ);if(a!==-1){var c=i.slice(0,a),f=i.slice(a+1,r.length);Fce(c)&&xce(f)&&n.set(c,f)}return n},new Map),this._internalState.size>IQ&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,IQ))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),xI="traceparent",VI="tracestate",kce="00",jce="(?!ff)[\\da-f]{2}",Qce="(?![0]{32})[\\da-f]{32}",qce="(?![0]{16})[\\da-f]{16}",Hce="[\\da-f]{2}",Yce=new RegExp("^\\s?("+jce+")-("+Qce+")-("+qce+")-("+Hce+")(-.*)?\\s?$");function zce(e){var t=Yce.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Wce=function(){function e(){}return e.prototype.inject=function(t,n,r){var i=Ea.getSpanContext(t);if(!(!i||Lce(t)||!Qf(i))){var a=kce+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Vs.NONE).toString(16);r.set(n,xI,a),i.traceState&&r.set(n,VI,i.traceState.serialize())}},e.prototype.extract=function(t,n,r){var i=r.get(n,xI);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var c=zce(a);if(!c)return t;c.isRemote=!0;var f=r.get(n,VI);if(f){var y=Array.isArray(f)?f.join(","):f;c.traceState=new Bce(typeof y=="string"?y:void 0)}return Ea.setSpanContext(t,c)},e.prototype.fields=function(){return[xI,VI]},e}(),Kce=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{},Il="1.6.0",DQ=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Xce(e){var t=new Set([e]),n=new Set,r=e.match(DQ);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(y){return y===e};function a(f){return n.add(f),!1}function c(f){return t.add(f),!0}return function(y){if(t.has(y))return!0;if(n.has(y))return!1;var h=y.match(DQ);if(!h)return a(y);var m={major:+h[1],minor:+h[2],patch:+h[3],prerelease:h[4]};return m.prerelease!=null||i.major!==m.major?a(y):i.major===0?i.minor===m.minor&&i.patch<=m.patch?c(y):a(y):i.minor<=m.minor?c(y):a(y)}}var Jce=Xce(Il),Zce=Il.split(".")[0],Xh=Symbol.for("opentelemetry.js.api."+Zce),Jh=Kce;function ele(e,t,n,r){var i;r===void 0&&(r=!1);var a=Jh[Xh]=(i=Jh[Xh])!==null&&i!==void 0?i:{version:Il};if(!r&&a[e]){var c=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(c.stack||c.message),!1}if(a.version!==Il){var c=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+Il);return n.error(c.stack||c.message),!1}return a[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+Il+"."),!0}function BI(e){var t,n,r=(t=Jh[Xh])===null||t===void 0?void 0:t.version;if(!(!r||!Jce(r)))return(n=Jh[Xh])===null||n===void 0?void 0:n[e]}function tle(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Il+".");var n=Jh[Xh];n&&delete n[e]}var nle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},rle=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ile=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Zh("verbose",this._namespace,t)},e}();function Zh(e,t,n){var r=BI("diag");if(!!r)return n.unshift(t),r[e].apply(r,rle([],nle(n),!1))}var Ri;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ri||(Ri={}));function ale(e,t){e<Ri.NONE?e=Ri.NONE:e>Ri.ALL&&(e=Ri.ALL),t=t||{};function n(r,i){var a=t[r];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:n("error",Ri.ERROR),warn:n("warn",Ri.WARN),info:n("info",Ri.INFO),debug:n("debug",Ri.DEBUG),verbose:n("verbose",Ri.VERBOSE)}}var ole=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},sle=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},ule="diag",wQ=function(){function e(){function t(i){return function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];var f=BI("diag");if(!!f)return f[i].apply(f,sle([],ole(a),!1))}}var n=this,r=function(i,a){var c,f,y;if(a===void 0&&(a={logLevel:Ri.INFO}),i===n){var h=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((c=h.stack)!==null&&c!==void 0?c:h.message),!1}typeof a=="number"&&(a={logLevel:a});var m=BI("diag"),F=ale((f=a.logLevel)!==null&&f!==void 0?f:Ri.INFO,i);if(m&&!a.suppressOverrideMessage){var W=(y=new Error().stack)!==null&&y!==void 0?y:"<failed to generate stacktrace>";m.warn("Current logger will be overwritten from "+W),F.warn("Current logger will overwrite one already registered from "+W)}return ele("diag",F,n,!0)};n.setLogger=r,n.disable=function(){tle(ule,n)},n.createComponentLogger=function(i){return new ile(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),lc=wQ.instance(),cle=function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),lle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},dle=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},fle=function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new cle}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,dle([this._that],lle(r),!1))).then(function(a){return n._deferred.resolve(a)},function(a){return n._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),qf;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(qf||(qf={}));var kI;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(kI||(kI={}));var _le=",",ple=["OTEL_SDK_DISABLED"];function hle(e){return ple.indexOf(e)>-1}var Sle=["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 gle(e){return Sle.indexOf(e)>-1}var mle=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function vle(e){return mle.indexOf(e)>-1}var jI=1/0,QI=128,Ele=128,yle=128,UQ={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:Ri.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:jI,OTEL_ATTRIBUTE_COUNT_LIMIT:QI,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:jI,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:QI,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:jI,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:QI,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ele,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:yle,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:kI.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"};function Tle(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function Ale(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function Cle(e,t,n,r){r===void 0&&(r=_le);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(a){return a.trim()}))}var ble={ALL:Ri.ALL,VERBOSE:Ri.VERBOSE,DEBUG:Ri.DEBUG,INFO:Ri.INFO,WARN:Ri.WARN,ERROR:Ri.ERROR,NONE:Ri.NONE};function Ole(e,t,n){var r=n[e];if(typeof r=="string"){var i=ble[r.toUpperCase()];i!=null&&(t[e]=i)}}function Rle(e){var t={};for(var n in UQ){var r=n;switch(r){case"OTEL_LOG_LEVEL":Ole(r,t,e);break;default:if(hle(r))Tle(r,t,e);else if(gle(r))Ale(r,t,e);else if(vle(r))Cle(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var Ple=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{};function hu(){var e=Rle(Ple);return Object.assign({},UQ,e)}function L1e(){return parseEnvironment(_globalThis)}var Mle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},$Q=1e4,Ile=5,Nle=1e3,Lle=5e3,Dle=1.5;function wle(e){e===void 0&&(e={});var t={};return Object.entries(e).forEach(function(n){var r=Mle(n,2),i=r[0],a=r[1];typeof a<"u"?t[i]=String(a):lc.warn('Header "'+i+'" has invalid value ('+a+") and will be ignored")}),t}function Ule(e,t){return e.endsWith("/")||(e=e+"/"),e+t}function $le(e){try{var t=new URL(e);return t.pathname===""&&(t.pathname=t.pathname+"/"),t.toString()}catch{return lc.warn("Could not parse export URL: '"+e+"'"),e}}function Gle(e){return typeof e=="number"?e<=0?GQ(e,$Q):e:Fle()}function Fle(){var e,t=Number((e=hu().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&e!==void 0?e:hu().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?GQ(t,$Q):t}function GQ(e,t){return lc.warn("Timeout must be greater than 0",e),t}function xle(e){var t=[429,502,503,504];return t.includes(e)}function Vle(e){if(e==null)return-1;var t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;var n=new Date(e).getTime()-Date.now();return n>=0?n:0}var Ble=function(){function e(t){t===void 0&&(t={}),this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new fle(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=Gle(t.timeoutMillis),this.onInit(t)}return e.prototype.export=function(t,n){if(this._shutdownOnce.isCalled){n({code:qf.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:qf.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(t).then(function(){n({code:qf.SUCCESS})}).catch(function(r){n({code:qf.FAILED,error:r})})},e.prototype._export=function(t){var n=this;return new Promise(function(r,i){try{lc.debug("items to be sent",t),n.send(t,r,i)}catch(a){i(a)}})},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},e.prototype._shutdown=function(){return lc.debug("shutdown started"),this.onShutdown(),this.forceFlush()},e}(),kle=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eS=function(e){kle(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.name="OTLPExporterError",a.data=i,a.code=r,a}return t}(Error),_y=function(){return _y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_y.apply(this,arguments)},jle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Qle(e,t,n,r,i){if(navigator.sendBeacon(t,new Blob([e],n)))lc.debug("sendBeacon - can send",e),r();else{var a=new eS("sendBeacon - cannot send "+e);i(a)}}function qle(e,t,n,r,i,a){var c,f,y=!1,h=setTimeout(function(){if(clearTimeout(c),y=!0,f.readyState===XMLHttpRequest.DONE){var F=new eS("Request Timeout");a(F)}else f.abort()},r),m=function(F,W){F===void 0&&(F=Ile),W===void 0&&(W=Nle),f=new XMLHttpRequest,f.open("POST",t);var ye={Accept:"application/json","Content-Type":"application/json"};Object.entries(_y(_y({},ye),n)).forEach(function(Te){var Re=jle(Te,2),Ye=Re[0],qe=Re[1];f.setRequestHeader(Ye,qe)}),f.send(e),f.onreadystatechange=function(){if(f.readyState===XMLHttpRequest.DONE&&y===!1)if(f.status>=200&&f.status<=299)lc.debug("xhr success",e),i(),clearTimeout(h),clearTimeout(c);else if(f.status&&xle(f.status)&&F>0){var Te=void 0;W=Dle*W,f.getResponseHeader("Retry-After")?Te=Vle(f.getResponseHeader("Retry-After")):Te=Math.round(Math.random()*(Lle-W)+W),c=setTimeout(function(){m(F-1,W)},Te)}else{var Re=new eS("Failed to export with XHR (status: "+f.status+")",f.status);a(Re),clearTimeout(h),clearTimeout(c)}},f.onabort=function(){if(y){var Te=new eS("Request Timeout");a(Te)}clearTimeout(h),clearTimeout(c)},f.onerror=function(){if(y){var Te=new eS("Request Timeout");a(Te)}clearTimeout(h),clearTimeout(c)}};m()}var Hle=Symbol("BaggageEntryMetadata"),Yle=wQ.instance();function D1e(e){return e===void 0&&(e={}),new BaggageImpl(new Map(Object.entries(e)))}function zle(e){return typeof e!="string"&&(Yle.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Hle,toString:function(){return e}}}var Wle="=",FQ=";",Kle=",",w1e="baggage",U1e=180,$1e=4096,G1e=8192,Xle=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function F1e(e){return e.reduce(function(t,n){var r=""+t+(t!==""?BAGGAGE_ITEMS_SEPARATOR:"")+n;return r.length>BAGGAGE_MAX_TOTAL_LENGTH?t:r},"")}function x1e(e){return e.getAllEntries().map(function(t){var n=Xle(t,2),r=n[0],i=n[1],a=encodeURIComponent(r)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=BAGGAGE_PROPERTIES_SEPARATOR+i.metadata.toString()),a})}function Jle(e){var t=e.split(FQ);if(!(t.length<=0)){var n=t.shift();if(!!n){var r=n.indexOf(Wle);if(!(r<=0)){var i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim()),c;return t.length>0&&(c=zle(t.join(FQ))),{key:i,value:a,metadata:c}}}}}function xQ(e){return typeof e!="string"||e.length===0?{}:e.split(Kle).map(function(t){return Jle(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,n){return t[n.key]=n.value,t},{})}var Zle=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),py=function(){return py=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},py.apply(this,arguments)},ede=function(e){Zle(t,e);function t(n,r,i){n===void 0&&(n={});var a=e.call(this,n)||this;return a._useXHR=!1,a._serializer=r,a._contentType=i,a._useXHR=!!n.headers||typeof navigator.sendBeacon!="function",a._useXHR?a._headers=Object.assign({},wle(n.headers),xQ(hu().OTEL_EXPORTER_OTLP_HEADERS)):a._headers={},a}return t.prototype.onInit=function(){},t.prototype.onShutdown=function(){},t.prototype.send=function(n,r,i){var a=this,c;if(this._shutdownOnce.isCalled){lc.debug("Shutdown already started. Cannot send objects");return}var f=(c=this._serializer.serializeRequest(n))!==null&&c!==void 0?c:new Uint8Array,y=new Promise(function(m,F){a._useXHR?qle(f,a.url,py(py({},a._headers),{"Content-Type":a._contentType}),a.timeoutMillis,m,F):Qle(f,a.url,{type:a._contentType},m,F)}).then(r,i);this._sendingPromises.push(y);var h=function(){var m=a._sendingPromises.indexOf(y);a._sendingPromises.splice(m,1)};y.then(h,h)},t}(Ble),tde=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function qI(e){return{name:e.name,version:e.version}}function Nl(e){return Object.keys(e).map(function(t){return HI(t,e[t])})}function HI(e,t){return{key:e,value:YI(t)}}function YI(e){var t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(YI)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(function(n){var r=tde(n,2),i=r[0],a=r[1];return HI(i,a)})}}:{}}function nde(e,t){var n,r=e.spanContext(),i=e.status;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:(n=r.traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Nl(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(a){return ide(a,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:i.code,message:i.message},links:e.links.map(function(a){return rde(a,t)}),droppedLinksCount:e.droppedLinksCount}}function rde(e,t){var n;return{attributes:e.attributes?Nl(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(n=e.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function ide(e,t){return{attributes:e.attributes?Nl(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}var VQ=9,ade=6,ode=Math.pow(10,ade),hy=Math.pow(10,VQ);function Sy(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*ode);return[n,r]}function BQ(){var e=performance.timeOrigin;if(typeof e!="number"){var t=performance;e=t.timing&&t.timing.fetchStart}return e}function sde(e){var t=Sy(BQ()),n=Sy(typeof e=="number"?e:performance.now());return cde(t,n)}function V1e(e){if(kQ(e))return e;if(typeof e=="number")return e<BQ()?sde(e):Sy(e);if(e instanceof Date)return Sy(e.getTime());throw TypeError("Invalid input type")}function B1e(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=hy),[n,r]}function k1e(e){var t=VQ,n=""+"0".repeat(t)+e[1]+"Z",r=n.substr(n.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",r)}function ude(e){return e[0]*hy+e[1]}function j1e(e){return e[0]*1e3+e[1]/1e6}function Q1e(e){return e[0]*1e6+e[1]/1e3}function kQ(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function q1e(e){return kQ(e)||typeof e=="number"||e instanceof Date}function cde(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=hy&&(n[1]-=hy,n[0]+=1),n}function jQ(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function zI(e){for(var t=new Uint8Array(e.length/2),n=0,r=0;r<e.length;r+=2){var i=jQ(e.charCodeAt(r)),a=jQ(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function QQ(e){var t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function lde(e){var t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function qQ(e){var t=QQ(e);return lde(t)}function dde(e){var t=QQ(e);return t.toString()}var fde=typeof BigInt<"u"?dde:ude;function HQ(e){return e}function YQ(e){if(e!==void 0)return zI(e)}var _de={encodeHrTime:qQ,encodeSpanContext:zI,encodeOptionalSpanContext:YQ};function WI(e){var t,n;if(e===void 0)return _de;var r=(t=e.useLongBits)!==null&&t!==void 0?t:!0,i=(n=e.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:r?qQ:fde,encodeSpanContext:i?HQ:zI,encodeOptionalSpanContext:i?HQ:YQ}}function KI(e){return{attributes:Nl(e.attributes),droppedAttributesCount:0}}var pde=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},hde=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Sde(e,t){var n=WI(t);return{resourceSpans:mde(e,n)}}function gde(e){var t,n,r=new Map;try{for(var i=pde(e),a=i.next();!a.done;a=i.next()){var c=a.value,f=r.get(c.resource);f||(f=new Map,r.set(c.resource,f));var y=c.instrumentationLibrary.name+"@"+(c.instrumentationLibrary.version||"")+":"+(c.instrumentationLibrary.schemaUrl||""),h=f.get(y);h||(h=[],f.set(y,h)),h.push(c)}}catch(m){t={error:m}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function mde(e,t){for(var n=gde(e),r=[],i=n.entries(),a=i.next();!a.done;){for(var c=hde(a.value,2),f=c[0],y=c[1],h=[],m=y.values(),F=m.next();!F.done;){var W=F.value;if(W.length>0){var ye=W.map(function(Re){return nde(Re,t)});h.push({scope:qI(W[0].instrumentationLibrary),spans:ye,schemaUrl:W[0].instrumentationLibrary.schemaUrl})}F=m.next()}var Te={resource:KI(f),scopeSpans:h,schemaUrl:void 0};r.push(Te),a=i.next()}return r}var gy;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(gy||(gy={}));var Hf;(function(e){e[e.HISTOGRAM=0]="HISTOGRAM",e[e.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",e[e.GAUGE=2]="GAUGE",e[e.SUM=3]="SUM"})(Hf||(Hf={}));var my;(function(e){e[e.DELTA=0]="DELTA",e[e.CUMULATIVE=1]="CUMULATIVE"})(my||(my={}));function vde(e,t){var n=WI(t);return{resource:KI(e.resource),schemaUrl:void 0,scopeMetrics:Ede(e.scopeMetrics,n)}}function Ede(e,t){return Array.from(e.map(function(n){return{scope:qI(n.scope),metrics:n.metrics.map(function(r){return yde(r,t)}),schemaUrl:n.scope.schemaUrl}}))}function yde(e,t){var n={name:e.descriptor.name,description:e.descriptor.description,unit:e.descriptor.unit},r=bde(e.aggregationTemporality);switch(e.dataPointType){case Hf.SUM:n.sum={aggregationTemporality:r,isMonotonic:e.isMonotonic,dataPoints:zQ(e,t)};break;case Hf.GAUGE:n.gauge={dataPoints:zQ(e,t)};break;case Hf.HISTOGRAM:n.histogram={aggregationTemporality:r,dataPoints:Ade(e,t)};break;case Hf.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:r,dataPoints:Cde(e,t)};break}return n}function Tde(e,t,n){var r={attributes:Nl(e.attributes),startTimeUnixNano:n.encodeHrTime(e.startTime),timeUnixNano:n.encodeHrTime(e.endTime)};switch(t){case gy.INT:r.asInt=e.value;break;case gy.DOUBLE:r.asDouble=e.value;break}return r}function zQ(e,t){return e.dataPoints.map(function(n){return Tde(n,e.descriptor.valueType,t)})}function Ade(e,t){return e.dataPoints.map(function(n){var r=n.value;return{attributes:Nl(n.attributes),bucketCounts:r.buckets.counts,explicitBounds:r.buckets.boundaries,count:r.count,sum:r.sum,min:r.min,max:r.max,startTimeUnixNano:t.encodeHrTime(n.startTime),timeUnixNano:t.encodeHrTime(n.endTime)}})}function Cde(e,t){return e.dataPoints.map(function(n){var r=n.value;return{attributes:Nl(n.attributes),count:r.count,min:r.min,max:r.max,sum:r.sum,positive:{offset:r.positive.offset,bucketCounts:r.positive.bucketCounts},negative:{offset:r.negative.offset,bucketCounts:r.negative.bucketCounts},scale:r.scale,zeroCount:r.zeroCount,startTimeUnixNano:t.encodeHrTime(n.startTime),timeUnixNano:t.encodeHrTime(n.endTime)}})}function bde(e){switch(e){case my.DELTA:return 1;case my.CUMULATIVE:return 2}}function Ode(e,t){return{resourceMetrics:e.map(function(n){return vde(n,t)})}}var Rde=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},WQ=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Pde(e,t){var n=WI(t);return{resourceLogs:Ide(e,n)}}function Mde(e){var t,n,r=new Map;try{for(var i=Rde(e),a=i.next();!a.done;a=i.next()){var c=a.value,f=c.resource,y=c.instrumentationScope,h=y.name,m=y.version,F=m===void 0?"":m,W=y.schemaUrl,ye=W===void 0?"":W,Te=r.get(f);Te||(Te=new Map,r.set(f,Te));var Re=h+"@"+F+":"+ye,Ye=Te.get(Re);Ye||(Ye=[],Te.set(Re,Ye)),Ye.push(c)}}catch(qe){t={error:qe}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Ide(e,t){var n=Mde(e);return Array.from(n,function(r){var i=WQ(r,2),a=i[0],c=i[1];return{resource:KI(a),scopeLogs:Array.from(c,function(f){var y=WQ(f,2),h=y[1];return{scope:qI(h[0].instrumentationScope),logRecords:h.map(function(m){return Nde(m,t)}),schemaUrl:h[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function Nde(e,t){var n,r,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:e.severityNumber,severityText:e.severityText,body:YI(e.body),attributes:Lde(e.attributes),droppedAttributesCount:e.droppedAttributesCount,flags:(n=e.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:t.encodeOptionalSpanContext((r=e.spanContext)===null||r===void 0?void 0:r.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)===null||i===void 0?void 0:i.spanId)}}function H1e(e){return e}function Lde(e){return Object.keys(e).map(function(t){return HI(t,e[t])})}var Y1e={serializeRequest:function(e){var t=Sde(e,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},z1e={serializeRequest:function(e){var t=Ode(e,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},Dde={serializeRequest:function(e){var t=Pde(e,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(t))},deserializeResponse:function(e){var t=new TextDecoder;return JSON.parse(t.decode(e))}},KQ="v1/logs",wde="http://localhost:4318/"+KQ;function Ude(e){return typeof e.url=="string"?e.url:hu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length>0?$le(hu().OTEL_EXPORTER_OTLP_LOGS_ENDPOINT):hu().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?Ule(hu().OTEL_EXPORTER_OTLP_ENDPOINT,KQ):wde}var $de=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tS=function(){return tS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tS.apply(this,arguments)},Gde=function(e){$de(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,tS({timeoutMillis:hu().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT},n),Dde,"application/json")||this;return r._headers=tS(tS({},r._headers),xQ(hu().OTEL_EXPORTER_OTLP_LOGS_HEADERS)),r}return t.prototype.getDefaultUrl=function(n){return Ude(n)},t}(ede),Ln=xs.instance();function Ll(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fde="cloud.provider",xde="cloud.account.id",Vde="cloud.region",Bde="cloud.availability_zone",kde="cloud.platform",jde="aws.ecs.container.arn",Qde="aws.ecs.cluster.arn",qde="aws.ecs.launchtype",Hde="aws.ecs.task.arn",Yde="aws.ecs.task.family",zde="aws.ecs.task.revision",Wde="aws.eks.cluster.arn",Kde="aws.log.group.names",Xde="aws.log.group.arns",Jde="aws.log.stream.names",Zde="aws.log.stream.arns",efe="container.name",tfe="container.id",nfe="container.runtime",rfe="container.image.name",ife="container.image.tag",afe="deployment.environment",ofe="device.id",sfe="device.model.identifier",ufe="device.model.name",cfe="faas.name",lfe="faas.id",dfe="faas.version",ffe="faas.instance",_fe="faas.max_memory",pfe="host.id",hfe="host.name",Sfe="host.type",gfe="host.arch",mfe="host.image.name",vfe="host.image.id",Efe="host.image.version",yfe="k8s.cluster.name",Tfe="k8s.node.name",Afe="k8s.node.uid",Cfe="k8s.namespace.name",bfe="k8s.pod.uid",Ofe="k8s.pod.name",Rfe="k8s.container.name",Pfe="k8s.replicaset.uid",Mfe="k8s.replicaset.name",Ife="k8s.deployment.uid",Nfe="k8s.deployment.name",Lfe="k8s.statefulset.uid",Dfe="k8s.statefulset.name",wfe="k8s.daemonset.uid",Ufe="k8s.daemonset.name",$fe="k8s.job.uid",Gfe="k8s.job.name",Ffe="k8s.cronjob.uid",xfe="k8s.cronjob.name",Vfe="os.type",Bfe="os.description",kfe="os.name",jfe="os.version",Qfe="process.pid",qfe="process.executable.name",Hfe="process.executable.path",Yfe="process.command",zfe="process.command_line",Wfe="process.command_args",Kfe="process.owner",XQ="process.runtime.name",Xfe="process.runtime.version",Jfe="process.runtime.description",JQ="service.name",Zfe="service.namespace",e_e="service.instance.id",t_e="service.version",ZQ="telemetry.sdk.name",eq="telemetry.sdk.language",tq="telemetry.sdk.version",n_e="telemetry.auto.version",r_e="webengine.name",i_e="webengine.version",a_e="webengine.description",W1e=null,K1e=null,X1e=null,J1e=null,Z1e=null,eBe=null,tBe=null,nBe=null,rBe=null,iBe=null,aBe=null,oBe=null,sBe=null,uBe=null,cBe=null,lBe=null,dBe=null,fBe=null,_Be=null,pBe=null,hBe=null,SBe=null,gBe=null,mBe=null,vBe=null,EBe=null,yBe=null,TBe=null,ABe=null,CBe=null,bBe=null,OBe=null,RBe=null,PBe=null,MBe=null,IBe=null,NBe=null,LBe=null,DBe=null,wBe=null,UBe=null,$Be=null,GBe=null,FBe=null,xBe=null,VBe=null,BBe=null,kBe=null,jBe=null,QBe=null,qBe=null,HBe=null,YBe=null,zBe=null,WBe=null,KBe=null,XBe=null,JBe=null,ZBe=null,eke=null,tke=null,nke=null,rke=null,ike=null,ake=null,oke=null,ske=null,o_e=XQ,uke=null,cke=null,s_e=JQ,lke=null,dke=null,fke=null,XI=ZQ,JI=eq,ZI=tq,_ke=null,pke=null,hke=null,Ske=null,gke=Ll([Fde,xde,Vde,Bde,kde,jde,Qde,qde,Hde,Yde,zde,Wde,Kde,Xde,Jde,Zde,efe,tfe,nfe,rfe,ife,afe,ofe,sfe,ufe,cfe,lfe,dfe,ffe,_fe,pfe,hfe,Sfe,gfe,mfe,vfe,Efe,yfe,Tfe,Afe,Cfe,bfe,Ofe,Rfe,Pfe,Mfe,Ife,Nfe,Lfe,Dfe,wfe,Ufe,$fe,Gfe,Ffe,xfe,Vfe,Bfe,kfe,jfe,Qfe,qfe,Hfe,Yfe,zfe,Wfe,Kfe,XQ,Xfe,Jfe,JQ,Zfe,e_e,t_e,ZQ,eq,tq,n_e,r_e,i_e,a_e]),u_e="alibaba_cloud",c_e="aws",l_e="azure",d_e="gcp",mke=null,vke=null,Eke=null,yke=null,Tke=Ll([u_e,c_e,l_e,d_e]),f_e="alibaba_cloud_ecs",__e="alibaba_cloud_fc",p_e="aws_ec2",h_e="aws_ecs",S_e="aws_eks",g_e="aws_lambda",m_e="aws_elastic_beanstalk",v_e="azure_vm",E_e="azure_container_instances",y_e="azure_aks",T_e="azure_functions",A_e="azure_app_service",C_e="gcp_compute_engine",b_e="gcp_cloud_run",O_e="gcp_kubernetes_engine",R_e="gcp_cloud_functions",P_e="gcp_app_engine",Ake=null,Cke=null,bke=null,Oke=null,Rke=null,Pke=null,Mke=null,Ike=null,Nke=null,Lke=null,Dke=null,wke=null,Uke=null,$ke=null,Gke=null,Fke=null,xke=null,Vke=Ll([f_e,__e,p_e,h_e,S_e,g_e,m_e,v_e,E_e,y_e,T_e,A_e,C_e,b_e,O_e,R_e,P_e]),M_e="ec2",I_e="fargate",Bke=null,kke=null,jke=Ll([M_e,I_e]),N_e="amd64",L_e="arm32",D_e="arm64",w_e="ia64",U_e="ppc32",$_e="ppc64",G_e="x86",Qke=null,qke=null,Hke=null,Yke=null,zke=null,Wke=null,Kke=null,Xke=Ll([N_e,L_e,D_e,w_e,U_e,$_e,G_e]),F_e="windows",x_e="linux",V_e="darwin",B_e="freebsd",k_e="netbsd",j_e="openbsd",Q_e="dragonflybsd",q_e="hpux",H_e="aix",Y_e="solaris",z_e="z_os",Jke=null,Zke=null,eje=null,tje=null,nje=null,rje=null,ije=null,aje=null,oje=null,sje=null,uje=null,cje=Ll([F_e,x_e,V_e,B_e,k_e,j_e,Q_e,q_e,H_e,Y_e,z_e]),W_e="cpp",K_e="dotnet",X_e="erlang",J_e="go",Z_e="java",epe="nodejs",tpe="php",npe="python",rpe="ruby",nq="webjs",lje=null,dje=null,fje=null,_je=null,pje=null,hje=null,Sje=null,gje=null,mje=null,ipe=nq,vje=Ll([W_e,K_e,X_e,J_e,Z_e,epe,tpe,npe,rpe,nq]),ape="1.30.1",Yf,eN=(Yf={},Yf[XI]="opentelemetry",Yf[o_e]="browser",Yf[JI]=ipe,Yf[ZI]=ape,Yf);function ope(){return"unknown_service"}var dc=function(){return dc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},dc.apply(this,arguments)},spe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},upe=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},cpe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},vy=function(){function e(t,n){var r=this,i;this._attributes=t,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(function(a){return r._attributes=Object.assign({},r._attributes,a),r.asyncAttributesPending=!1,a},function(a){return Ln.debug("a resource's async attributes promise rejected: %s",a),r.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[s_e]=ope(),t[JI]=eN[JI],t[XI]=eN[XI],t[ZI]=eN[ZI],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&Ln.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return spe(this,void 0,void 0,function(){return upe(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]}})})},e.prototype.merge=function(t){var n=this,r;if(!t)return this;var i=dc(dc({},this._syncAttributes),(r=t._syncAttributes)!==null&&r!==void 0?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(c){var f,y=cpe(c,2),h=y[0],m=y[1];return dc(dc(dc(dc({},n._syncAttributes),h),(f=t._syncAttributes)!==null&&f!==void 0?f:t.attributes),m)});return new e(i,a)},e.EMPTY=new e({}),e}(),rq=function(){function e(){}return e.prototype.emit=function(t){},e}(),lpe=new rq;function Dl(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var dpe="cloud.provider",fpe="cloud.account.id",_pe="cloud.region",ppe="cloud.availability_zone",hpe="cloud.platform",Spe="aws.ecs.container.arn",gpe="aws.ecs.cluster.arn",mpe="aws.ecs.launchtype",vpe="aws.ecs.task.arn",Epe="aws.ecs.task.family",ype="aws.ecs.task.revision",Tpe="aws.eks.cluster.arn",Ape="aws.log.group.names",Cpe="aws.log.group.arns",bpe="aws.log.stream.names",Ope="aws.log.stream.arns",Rpe="container.name",Ppe="container.id",Mpe="container.runtime",Ipe="container.image.name",Npe="container.image.tag",Lpe="deployment.environment",Dpe="device.id",wpe="device.model.identifier",Upe="device.model.name",$pe="faas.name",Gpe="faas.id",Fpe="faas.version",xpe="faas.instance",Vpe="faas.max_memory",Bpe="host.id",kpe="host.name",jpe="host.type",Qpe="host.arch",qpe="host.image.name",Hpe="host.image.id",Ype="host.image.version",zpe="k8s.cluster.name",Wpe="k8s.node.name",Kpe="k8s.node.uid",Xpe="k8s.namespace.name",Jpe="k8s.pod.uid",Zpe="k8s.pod.name",ehe="k8s.container.name",the="k8s.replicaset.uid",nhe="k8s.replicaset.name",rhe="k8s.deployment.uid",ihe="k8s.deployment.name",ahe="k8s.statefulset.uid",ohe="k8s.statefulset.name",she="k8s.daemonset.uid",uhe="k8s.daemonset.name",che="k8s.job.uid",lhe="k8s.job.name",dhe="k8s.cronjob.uid",fhe="k8s.cronjob.name",_he="os.type",phe="os.description",hhe="os.name",She="os.version",ghe="process.pid",mhe="process.executable.name",vhe="process.executable.path",Ehe="process.command",yhe="process.command_line",The="process.command_args",Ahe="process.owner",Che="process.runtime.name",bhe="process.runtime.version",Ohe="process.runtime.description",iq="service.name",Rhe="service.namespace",Phe="service.instance.id",Mhe="service.version",aq="telemetry.sdk.name",oq="telemetry.sdk.language",sq="telemetry.sdk.version",Ihe="telemetry.auto.version",Nhe="webengine.name",Lhe="webengine.version",Dhe="webengine.description",Eje=null,yje=null,Tje=null,Aje=null,Cje=null,bje=null,Oje=null,Rje=null,Pje=null,Mje=null,Ije=null,Nje=null,Lje=null,Dje=null,wje=null,Uje=null,$je=null,Gje=null,Fje=null,xje=null,Vje=null,Bje=null,kje=null,jje=null,Qje=null,qje=null,Hje=null,Yje=null,zje=null,Wje=null,Kje=null,Xje=null,Jje=null,Zje=null,eQe=null,tQe=null,nQe=null,rQe=null,iQe=null,aQe=null,oQe=null,sQe=null,uQe=null,cQe=null,lQe=null,dQe=null,fQe=null,_Qe=null,pQe=null,hQe=null,SQe=null,gQe=null,mQe=null,vQe=null,EQe=null,yQe=null,TQe=null,AQe=null,CQe=null,bQe=null,OQe=null,RQe=null,PQe=null,MQe=null,IQe=null,NQe=null,LQe=null,DQe=null,wQe=null,UQe=null,whe=iq,$Qe=null,GQe=null,FQe=null,uq=aq,cq=oq,lq=sq,xQe=null,VQe=null,BQe=null,kQe=null,jQe=Dl([dpe,fpe,_pe,ppe,hpe,Spe,gpe,mpe,vpe,Epe,ype,Tpe,Ape,Cpe,bpe,Ope,Rpe,Ppe,Mpe,Ipe,Npe,Lpe,Dpe,wpe,Upe,$pe,Gpe,Fpe,xpe,Vpe,Bpe,kpe,jpe,Qpe,qpe,Hpe,Ype,zpe,Wpe,Kpe,Xpe,Jpe,Zpe,ehe,the,nhe,rhe,ihe,ahe,ohe,she,uhe,che,lhe,dhe,fhe,_he,phe,hhe,She,ghe,mhe,vhe,Ehe,yhe,The,Ahe,Che,bhe,Ohe,iq,Rhe,Phe,Mhe,aq,oq,sq,Ihe,Nhe,Lhe,Dhe]),Uhe="alibaba_cloud",$he="aws",Ghe="azure",Fhe="gcp",QQe=null,qQe=null,HQe=null,YQe=null,zQe=Dl([Uhe,$he,Ghe,Fhe]),xhe="alibaba_cloud_ecs",Vhe="alibaba_cloud_fc",Bhe="aws_ec2",khe="aws_ecs",jhe="aws_eks",Qhe="aws_lambda",qhe="aws_elastic_beanstalk",Hhe="azure_vm",Yhe="azure_container_instances",zhe="azure_aks",Whe="azure_functions",Khe="azure_app_service",Xhe="gcp_compute_engine",Jhe="gcp_cloud_run",Zhe="gcp_kubernetes_engine",eSe="gcp_cloud_functions",tSe="gcp_app_engine",WQe=null,KQe=null,XQe=null,JQe=null,ZQe=null,eqe=null,tqe=null,nqe=null,rqe=null,iqe=null,aqe=null,oqe=null,sqe=null,uqe=null,cqe=null,lqe=null,dqe=null,fqe=Dl([xhe,Vhe,Bhe,khe,jhe,Qhe,qhe,Hhe,Yhe,zhe,Whe,Khe,Xhe,Jhe,Zhe,eSe,tSe]),nSe="ec2",rSe="fargate",_qe=null,pqe=null,hqe=Dl([nSe,rSe]),iSe="amd64",aSe="arm32",oSe="arm64",sSe="ia64",uSe="ppc32",cSe="ppc64",lSe="x86",Sqe=null,gqe=null,mqe=null,vqe=null,Eqe=null,yqe=null,Tqe=null,Aqe=Dl([iSe,aSe,oSe,sSe,uSe,cSe,lSe]),dSe="windows",fSe="linux",_Se="darwin",pSe="freebsd",hSe="netbsd",SSe="openbsd",gSe="dragonflybsd",mSe="hpux",vSe="aix",ESe="solaris",ySe="z_os",Cqe=null,bqe=null,Oqe=null,Rqe=null,Pqe=null,Mqe=null,Iqe=null,Nqe=null,Lqe=null,Dqe=null,wqe=null,Uqe=Dl([dSe,fSe,_Se,pSe,hSe,SSe,gSe,mSe,vSe,ESe,ySe]),TSe="cpp",ASe="dotnet",CSe="erlang",bSe="go",OSe="java",RSe="nodejs",PSe="php",MSe="python",ISe="ruby",NSe="webjs",$qe=null,Gqe=null,Fqe=null,xqe=null,Vqe=null,Bqe=null,kqe=null,jqe=null,Qqe=null,qqe=null,Hqe=Dl([TSe,ASe,CSe,bSe,OSe,RSe,PSe,MSe,ISe,NSe]),LSe="1.25.1";function wl(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var DSe="cloud.provider",wSe="cloud.account.id",USe="cloud.region",$Se="cloud.availability_zone",GSe="cloud.platform",FSe="aws.ecs.container.arn",xSe="aws.ecs.cluster.arn",VSe="aws.ecs.launchtype",BSe="aws.ecs.task.arn",kSe="aws.ecs.task.family",jSe="aws.ecs.task.revision",QSe="aws.eks.cluster.arn",qSe="aws.log.group.names",HSe="aws.log.group.arns",YSe="aws.log.stream.names",zSe="aws.log.stream.arns",WSe="container.name",KSe="container.id",XSe="container.runtime",JSe="container.image.name",ZSe="container.image.tag",ege="deployment.environment",tge="device.id",nge="device.model.identifier",rge="device.model.name",ige="faas.name",age="faas.id",oge="faas.version",sge="faas.instance",uge="faas.max_memory",cge="host.id",lge="host.name",dge="host.type",fge="host.arch",_ge="host.image.name",pge="host.image.id",hge="host.image.version",Sge="k8s.cluster.name",gge="k8s.node.name",mge="k8s.node.uid",vge="k8s.namespace.name",Ege="k8s.pod.uid",yge="k8s.pod.name",Tge="k8s.container.name",Age="k8s.replicaset.uid",Cge="k8s.replicaset.name",bge="k8s.deployment.uid",Oge="k8s.deployment.name",Rge="k8s.statefulset.uid",Pge="k8s.statefulset.name",Mge="k8s.daemonset.uid",Ige="k8s.daemonset.name",Nge="k8s.job.uid",Lge="k8s.job.name",Dge="k8s.cronjob.uid",wge="k8s.cronjob.name",Uge="os.type",$ge="os.description",Gge="os.name",Fge="os.version",xge="process.pid",Vge="process.executable.name",Bge="process.executable.path",kge="process.command",jge="process.command_line",Qge="process.command_args",qge="process.owner",dq="process.runtime.name",Hge="process.runtime.version",Yge="process.runtime.description",zge="service.name",Wge="service.namespace",Kge="service.instance.id",Xge="service.version",fq="telemetry.sdk.name",_q="telemetry.sdk.language",pq="telemetry.sdk.version",Jge="telemetry.auto.version",Zge="webengine.name",eme="webengine.version",tme="webengine.description",Yqe=null,zqe=null,Wqe=null,Kqe=null,Xqe=null,Jqe=null,Zqe=null,eHe=null,tHe=null,nHe=null,rHe=null,iHe=null,aHe=null,oHe=null,sHe=null,uHe=null,cHe=null,lHe=null,dHe=null,fHe=null,_He=null,pHe=null,hHe=null,SHe=null,gHe=null,mHe=null,vHe=null,EHe=null,yHe=null,THe=null,AHe=null,CHe=null,bHe=null,OHe=null,RHe=null,PHe=null,MHe=null,IHe=null,NHe=null,LHe=null,DHe=null,wHe=null,UHe=null,$He=null,GHe=null,FHe=null,xHe=null,VHe=null,BHe=null,kHe=null,jHe=null,QHe=null,qHe=null,HHe=null,YHe=null,zHe=null,WHe=null,KHe=null,XHe=null,JHe=null,ZHe=null,eYe=null,tYe=null,nYe=null,rYe=null,iYe=null,aYe=null,nme=dq,oYe=null,sYe=null,uYe=null,cYe=null,lYe=null,dYe=null,rme=fq,ime=_q,ame=pq,fYe=null,_Ye=null,pYe=null,hYe=null,SYe=wl([DSe,wSe,USe,$Se,GSe,FSe,xSe,VSe,BSe,kSe,jSe,QSe,qSe,HSe,YSe,zSe,WSe,KSe,XSe,JSe,ZSe,ege,tge,nge,rge,ige,age,oge,sge,uge,cge,lge,dge,fge,_ge,pge,hge,Sge,gge,mge,vge,Ege,yge,Tge,Age,Cge,bge,Oge,Rge,Pge,Mge,Ige,Nge,Lge,Dge,wge,Uge,$ge,Gge,Fge,xge,Vge,Bge,kge,jge,Qge,qge,dq,Hge,Yge,zge,Wge,Kge,Xge,fq,_q,pq,Jge,Zge,eme,tme]),ome="alibaba_cloud",sme="aws",ume="azure",cme="gcp",gYe=null,mYe=null,vYe=null,EYe=null,yYe=wl([ome,sme,ume,cme]),lme="alibaba_cloud_ecs",dme="alibaba_cloud_fc",fme="aws_ec2",_me="aws_ecs",pme="aws_eks",hme="aws_lambda",Sme="aws_elastic_beanstalk",gme="azure_vm",mme="azure_container_instances",vme="azure_aks",Eme="azure_functions",yme="azure_app_service",Tme="gcp_compute_engine",Ame="gcp_cloud_run",Cme="gcp_kubernetes_engine",bme="gcp_cloud_functions",Ome="gcp_app_engine",TYe=null,AYe=null,CYe=null,bYe=null,OYe=null,RYe=null,PYe=null,MYe=null,IYe=null,NYe=null,LYe=null,DYe=null,wYe=null,UYe=null,$Ye=null,GYe=null,FYe=null,xYe=wl([lme,dme,fme,_me,pme,hme,Sme,gme,mme,vme,Eme,yme,Tme,Ame,Cme,bme,Ome]),Rme="ec2",Pme="fargate",VYe=null,BYe=null,kYe=wl([Rme,Pme]),Mme="amd64",Ime="arm32",Nme="arm64",Lme="ia64",Dme="ppc32",wme="ppc64",Ume="x86",jYe=null,QYe=null,qYe=null,HYe=null,YYe=null,zYe=null,WYe=null,KYe=wl([Mme,Ime,Nme,Lme,Dme,wme,Ume]),$me="windows",Gme="linux",Fme="darwin",xme="freebsd",Vme="netbsd",Bme="openbsd",kme="dragonflybsd",jme="hpux",Qme="aix",qme="solaris",Hme="z_os",XYe=null,JYe=null,ZYe=null,e2e=null,t2e=null,n2e=null,r2e=null,i2e=null,a2e=null,o2e=null,s2e=null,u2e=wl([$me,Gme,Fme,xme,Vme,Bme,kme,jme,Qme,qme,Hme]),Yme="cpp",zme="dotnet",Wme="erlang",Kme="go",Xme="java",Jme="nodejs",Zme="php",eve="python",tve="ruby",hq="webjs",c2e=null,l2e=null,d2e=null,f2e=null,_2e=null,p2e=null,h2e=null,S2e=null,g2e=null,nve=hq,m2e=wl([Yme,zme,Wme,Kme,Xme,Jme,Zme,eve,tve,hq]),zf,tN=(zf={},zf[rme]="opentelemetry",zf[nme]="browser",zf[ime]=nve,zf[ame]=LSe,zf);function rve(){return"unknown_service"}var fc=function(){return fc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fc.apply(this,arguments)},ive=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},ave=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},ove=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Sq=function(){function e(t,n){var r=this,i;this._attributes=t,this.asyncAttributesPending=n!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=n?.then(function(a){return r._attributes=Object.assign({},r._attributes,a),r.asyncAttributesPending=!1,a},function(a){return Ln.debug("a resource's async attributes promise rejected: %s",a),r.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[whe]=rve(),t[cq]=tN[cq],t[uq]=tN[uq],t[lq]=tN[lq],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&Ln.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return ive(this,void 0,void 0,function(){return ave(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]}})})},e.prototype.merge=function(t){var n=this,r;if(!t)return this;var i=fc(fc({},this._syncAttributes),(r=t._syncAttributes)!==null&&r!==void 0?r:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var a=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(c){var f,y=ove(c,2),h=y[0],m=y[1];return fc(fc(fc(fc({},n._syncAttributes),h),(f=t._syncAttributes)!==null&&f!==void 0?f:t.attributes),m)});return new e(i,a)},e.EMPTY=new e({}),e}(),sve="[object Object]",uve="[object Null]",cve="[object Undefined]",lve=Function.prototype,gq=lve.toString,dve=gq.call(Object),fve=_ve(Object.getPrototypeOf,Object),mq=Object.prototype,vq=mq.hasOwnProperty,Ul=Symbol?Symbol.toStringTag:void 0,Eq=mq.toString;function _ve(e,t){return function(n){return e(t(n))}}function yq(e){if(!pve(e)||hve(e)!==sve)return!1;var t=fve(e);if(t===null)return!0;var n=vq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gq.call(n)===dve}function pve(e){return e!=null&&typeof e=="object"}function hve(e){return e==null?e===void 0?cve:uve:Ul&&Ul in Object(e)?Sve(e):gve(e)}function Sve(e){var t=vq.call(e,Ul),n=e[Ul],r=!1;try{e[Ul]=void 0,r=!0}catch{}var i=Eq.call(e);return r&&(t?e[Ul]=n:delete e[Ul]),i}function gve(e){return Eq.call(e)}var mve=20;function vve(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=Tq(n,e.shift(),0,r);return n}function nN(e){return Ey(e)?e.slice():e}function Tq(e,t,n,r){n===void 0&&(n=0);var i;if(!(n>mve)){if(n++,yy(e)||yy(t)||Cq(t))i=nN(t);else if(Ey(e)){if(i=e.slice(),Ey(t))for(var a=0,c=t.length;a<c;a++)i.push(nN(t[a]));else if(nS(t))for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a];i[y]=nN(t[y])}}else if(nS(e))if(nS(t)){if(!Eve(e,t))return t;i=Object.assign({},e);for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a],h=t[y];if(yy(h))typeof h>"u"?delete i[y]:i[y]=h;else{var m=i[y],F=h;if(Aq(e,y,r)||Aq(t,y,r))delete i[y];else{if(nS(m)&&nS(F)){var W=r.get(m)||[],ye=r.get(F)||[];W.push({obj:e,key:y}),ye.push({obj:t,key:y}),r.set(m,W),r.set(F,ye)}i[y]=Tq(i[y],h,n,r)}}}}else i=t;return i}}function Aq(e,t,n){for(var r=n.get(e[t])||[],i=0,a=r.length;i<a;i++){var c=r[i];if(c.key===t&&c.obj===e)return!0}return!1}function Ey(e){return Array.isArray(e)}function Cq(e){return typeof e=="function"}function nS(e){return!yy(e)&&!Ey(e)&&!Cq(e)&&typeof e=="object"}function yy(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Eve(e,t){return!(!yq(e)||!yq(t))}var yve=function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),Tve=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Ave=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},bq=function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new yve}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,Ave([this._that],Tve(r),!1))).then(function(a){return n._deferred.resolve(a)},function(a){return n._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),La=fy.getInstance(),rS=performance,Oq=9,Cve=6,bve=Math.pow(10,Cve),Ty=Math.pow(10,Oq);function Ay(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*bve);return[n,r]}function Rq(){var e=rS.timeOrigin;if(typeof e!="number"){var t=rS;e=t.timing&&t.timing.fetchStart}return e}function rN(e){var t=Ay(Rq()),n=Ay(typeof e=="number"?e:rS.now());return Ove(t,n)}function $l(e){if(Pq(e))return e;if(typeof e=="number")return e<Rq()?rN(e):Ay(e);if(e instanceof Date)return Ay(e.getTime());throw TypeError("Invalid input type")}function v2e(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=Ty),[n,r]}function E2e(e){var t=Oq,n=""+"0".repeat(t)+e[1]+"Z",r=n.substr(n.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",r)}function _c(e){return e[0]*Ty+e[1]}function y2e(e){return e[0]*1e3+e[1]/1e6}function T2e(e){return e[0]*1e6+e[1]/1e3}function Pq(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function A2e(e){return Pq(e)||typeof e=="number"||e instanceof Date}function Ove(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Ty&&(n[1]-=Ty,n[0]+=1),n}var Mq=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Rve=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function C2e(e){var t,n,r={};if(typeof e!="object"||e==null)return r;try{for(var i=Mq(Object.entries(e)),a=i.next();!a.done;a=i.next()){var c=Rve(a.value,2),f=c[0],y=c[1];if(!Pve(f)){diag.warn("Invalid attribute key: "+f);continue}if(!iN(y)){diag.warn("Invalid attribute value set for key: "+f);continue}Array.isArray(y)?r[f]=y.slice():r[f]=y}}catch(h){t={error:h}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Pve(e){return typeof e=="string"&&e.length>0}function iN(e){return e==null?!0:Array.isArray(e)?Mve(e):Iq(e)}function Mve(e){var t,n,r;try{for(var i=Mq(e),a=i.next();!a.done;a=i.next()){var c=a.value;if(c!=null){if(!r){if(Iq(c)){r=typeof c;continue}return!1}if(typeof c!==r)return!1}}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0}function Iq(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var Ive=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nve=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},Lve=function(){function e(t,n,r){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var i=r.timestamp,a=r.observedTimestamp,c=r.severityNumber,f=r.severityText,y=r.body,h=r.attributes,m=h===void 0?{}:h,F=r.context,W=Date.now();if(this.hrTime=$l(i??W),this.hrTimeObserved=$l(a??W),F){var ye=Ea.getSpanContext(F);ye&&Qf(ye)&&(this.spanContext=ye)}this.severityNumber=c,this.severityText=f,this.body=y,this.resource=t.resource,this.instrumentationScope=n,this._logRecordLimits=t.logRecordLimits,this.setAttributes(m)}return Object.defineProperty(e.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,n){return this._isLogRecordReadonly()?this:n===null?this:t.length===0?(Ln.warn("Invalid attribute key: "+t),this):!iN(n)&&!(typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length>0)?(Ln.warn("Invalid attribute value set for key: "+t),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&Ln.warn("Dropping extra attributes."),this):(iN(n)?this.attributes[t]=this._truncateToSize(n):this.attributes[t]=n,this))},e.prototype.setAttributes=function(t){var n,r;try{for(var i=Ive(Object.entries(t)),a=i.next();!a.done;a=i.next()){var c=Nve(a.value,2),f=c[0],y=c[1];this.setAttribute(f,y)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.setBody=function(t){return this.body=t,this},e.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},e.prototype.setSeverityText=function(t){return this.severityText=t,this},e.prototype._makeReadonly=function(){this._isReadonly=!0},e.prototype._truncateToSize=function(t){var n=this,r=this._logRecordLimits.attributeValueLengthLimit;return r<=0?(Ln.warn("Attribute value limit must be positive, got "+r),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(i){return typeof i=="string"?n._truncateToLimitUtil(i,r):i}):t},e.prototype._truncateToLimitUtil=function(t,n){return t.length<=n?t:t.substring(0,n)},e.prototype._isLogRecordReadonly=function(){return this._isReadonly&&Ln.warn("Can not execute the operation on emitted log record"),this._isReadonly},e}(),aN=function(){return aN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},aN.apply(this,arguments)},Dve=function(){function e(t,n){this.instrumentationScope=t,this._sharedState=n}return e.prototype.emit=function(t){var n=t.context||La.active(),r=new Lve(this._sharedState,this.instrumentationScope,aN({context:n},t));this._sharedState.activeProcessor.onEmit(r,n),r._makeReadonly()},e}(),oN;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(oN||(oN={}));var wve=",",Uve=["OTEL_SDK_DISABLED"];function $ve(e){return Uve.indexOf(e)>-1}var Gve=["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 Fve(e){return Gve.indexOf(e)>-1}var xve=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Vve(e){return xve.indexOf(e)>-1}var Cy=1/0,by=128,Bve=128,kve=128,Nq={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:xr.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cy,OTEL_ATTRIBUTE_COUNT_LIMIT:by,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cy,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:by,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cy,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:by,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Bve,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kve,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:oN.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"};function jve(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function Qve(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function qve(e,t,n,r){r===void 0&&(r=wve);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(a){return a.trim()}))}var Hve={ALL:xr.ALL,VERBOSE:xr.VERBOSE,DEBUG:xr.DEBUG,INFO:xr.INFO,WARN:xr.WARN,ERROR:xr.ERROR,NONE:xr.NONE};function Yve(e,t,n){var r=n[e];if(typeof r=="string"){var i=Hve[r.toUpperCase()];i!=null&&(t[e]=i)}}function Lq(e){var t={};for(var n in Nq){var r=n;switch(r){case"OTEL_LOG_LEVEL":Yve(r,t,e);break;default:if($ve(r))jve(r,t,e);else if(Fve(r))Qve(r,t,e);else if(Vve(r))qve(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var Dq=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{};function sN(){var e=Lq(Dq);return Object.assign({},Nq,e)}function zve(){return Lq(Dq)}function Wve(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:sN().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:sN().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0}}function Kve(e){var t,n,r,i,a,c,f=zve();return{attributeCountLimit:(r=(n=(t=e.attributeCountLimit)!==null&&t!==void 0?t:f.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)!==null&&n!==void 0?n:f.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&r!==void 0?r:by,attributeValueLengthLimit:(c=(a=(i=e.attributeValueLengthLimit)!==null&&i!==void 0?i:f.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&a!==void 0?a:f.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&c!==void 0?c:Cy}}var Xve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jve=function(e){Xve(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return t}(Error);function wq(e,t){var n,r=new Promise(function(a,c){n=setTimeout(function(){c(new Jve("Operation timed out."))},t)});return Promise.race([e,r]).then(function(i){return clearTimeout(n),i},function(i){throw clearTimeout(n),i})}var Uq=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},$q=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Zve=function(){function e(t,n){this.processors=t,this.forceFlushTimeoutMillis=n}return e.prototype.forceFlush=function(){return Uq(this,void 0,void 0,function(){var t;return $q(this,function(n){switch(n.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(r){return wq(r.forceFlush(),t)}))];case 1:return n.sent(),[2]}})})},e.prototype.onEmit=function(t,n){this.processors.forEach(function(r){return r.onEmit(t,n)})},e.prototype.shutdown=function(){return Uq(this,void 0,void 0,function(){return $q(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(n){return n.shutdown()}))];case 1:return t.sent(),[2]}})})},e}(),eEe=function(){function e(){}return e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.onEmit=function(t,n){},e.prototype.shutdown=function(){return Promise.resolve()},e}(),tEe=function(){function e(t,n,r){this.resource=t,this.forceFlushTimeoutMillis=n,this.logRecordLimits=r,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new eEe}return e}(),nEe="unknown",rEe=function(){function e(t){t===void 0&&(t={});var n,r=vve({},Wve(),t),i=Sq.default().merge((n=r.resource)!==null&&n!==void 0?n:Sq.empty());this._sharedState=new tEe(i,r.forceFlushTimeoutMillis,Kve(r.logRecordLimits)),this._shutdownOnce=new bq(this._shutdown,this)}return e.prototype.getLogger=function(t,n,r){if(this._shutdownOnce.isCalled)return Ln.warn("A shutdown LoggerProvider cannot provide a Logger"),lpe;t||Ln.warn("Logger requested without instrumentation scope name.");var i=t||nEe,a=i+"@"+(n||"")+":"+(r?.schemaUrl||"");return this._sharedState.loggers.has(a)||this._sharedState.loggers.set(a,new Dve({name:i,version:n,schemaUrl:r?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(a)},e.prototype.addLogRecordProcessor=function(t){this._sharedState.registeredLogRecordProcessors.length===0&&this._sharedState.activeProcessor.shutdown().catch(function(n){return Ln.error("Error while trying to shutdown current log record processor",n)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new Zve(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(Ln.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},e.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(Ln.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},e}();function iEe(){return function(e){Ln.error(aEe(e))}}function aEe(e){return typeof e=="string"?e:JSON.stringify(oEe(e))}function oEe(e){for(var t={},n=e;n!==null;)Object.getOwnPropertyNames(n).forEach(function(r){if(!t[r]){var i=n[r];i&&(t[r]=String(i))}}),n=Object.getPrototypeOf(n);return t}var Gq=iEe();function b2e(e){Gq=e}function Oy(e){try{Gq(e)}catch{}}function O2e(e){}function sEe(e,t){return new Promise(function(n){La.with(Nce(La.active()),function(){e.export(t,function(r){n(r)})})})}var uEe={_export:sEe},uN;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(uN||(uN={}));var cEe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},lEe=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},dEe=function(){function e(t,n){var r,i,a,c;this._exporter=t,this._finishedLogRecords=[];var f=sN();this._maxExportBatchSize=(r=n?.maxExportBatchSize)!==null&&r!==void 0?r:f.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=(i=n?.maxQueueSize)!==null&&i!==void 0?i:f.OTEL_BLRP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=(a=n?.scheduledDelayMillis)!==null&&a!==void 0?a:f.OTEL_BLRP_SCHEDULE_DELAY,this._exportTimeoutMillis=(c=n?.exportTimeoutMillis)!==null&&c!==void 0?c:f.OTEL_BLRP_EXPORT_TIMEOUT,this._shutdownOnce=new bq(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Ln.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.onEmit=function(t){this._shutdownOnce.isCalled||this._addToBuffer(t)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){return cEe(this,void 0,void 0,function(){return lEe(this,function(t){switch(t.label){case 0:return this.onShutdown(),[4,this._flushAll()];case 1:return t.sent(),[4,this._exporter.shutdown()];case 2:return t.sent(),[2]}})})},e.prototype._addToBuffer=function(t){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(t),this._maybeStartTimer())},e.prototype._flushAll=function(){var t=this;return new Promise(function(n,r){for(var i=[],a=Math.ceil(t._finishedLogRecords.length/t._maxExportBatchSize),c=0;c<a;c++)i.push(t._flushOneBatch());Promise.all(i).then(function(){n()}).catch(r)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedLogRecords.length===0?Promise.resolve():new Promise(function(n,r){wq(t._export(t._finishedLogRecords.splice(0,t._maxExportBatchSize)),t._exportTimeoutMillis).then(function(){return n()}).catch(r)})},e.prototype._maybeStartTimer=function(){var t=this;this._timer===void 0&&(this._timer=setTimeout(function(){t._flushOneBatch().then(function(){t._finishedLogRecords.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){Oy(n)})},this._scheduledDelayMillis),this._timer,void 0)},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e.prototype._export=function(t){var n=this,r=function(){return uEe._export(n._exporter,t).then(function(a){var c;a.code!==uN.SUCCESS&&Oy((c=a.error)!==null&&c!==void 0?c:new Error("BatchLogRecordProcessor: log record export failed (status "+a+")"))}).catch(Oy)},i=t.map(function(a){return a.resource}).filter(function(a){return a.asyncAttributesPending});return i.length===0?r():Promise.all(i.map(function(a){var c;return(c=a.waitForAsyncAttributes)===null||c===void 0?void 0:c.call(a)})).then(r,Oy)},e}(),fEe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_Ee=function(e){fEe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i._onInit(r),i}return t.prototype.onShutdown=function(){typeof document>"u"||(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t.prototype._onInit=function(n){var r=this;n?.disableAutoFlushOnDocumentHide===!0||typeof document>"u"||(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&r.forceFlush()},this._pageHideListener=function(){r.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t}(dEe),pEe=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),hEe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},SEe={set:function(e,t,n){e!=null&&(e[t]=n)}},cN=dy("OpenTelemetry Baggage Key");function Fq(e){return e.getValue(cN)||void 0}function gEe(){return Fq(fy.getInstance().active())}function mEe(e,t){return e.setValue(cN,t)}function vEe(e){return e.deleteValue(cN)}var EEe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},yEe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TEe=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(!!n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=EEe(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var c=yEe(r),f=c.next();!f.done;f=c.next()){var y=f.value;a._entries.delete(y)}}catch(h){t={error:h}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),AEe=Symbol("BaggageEntryMetadata"),CEe=xs.instance();function bEe(e){return e===void 0&&(e={}),new TEe(new Map(Object.entries(e)))}function OEe(e){return typeof e!="string"&&(CEe.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:AEe,toString:function(){return e}}}var lN="propagation",REe=new pEe,PEe=function(){function e(){this.createBaggage=bEe,this.getBaggage=Fq,this.getActiveBaggage=gEe,this.setBaggage=mEe,this.deleteBaggage=vEe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Yh(lN,t,xs.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=SEe),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=hEe),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){zh(lN,xs.instance())},e.prototype._getGlobalPropagator=function(){return Ml(lN)||REe},e}(),Wf=PEe.getInstance(),MEe="[object Object]",IEe="[object Null]",NEe="[object Undefined]",LEe=Function.prototype,xq=LEe.toString,DEe=xq.call(Object),wEe=UEe(Object.getPrototypeOf,Object),Vq=Object.prototype,Bq=Vq.hasOwnProperty,Gl=Symbol?Symbol.toStringTag:void 0,kq=Vq.toString;function UEe(e,t){return function(n){return e(t(n))}}function jq(e){if(!$Ee(e)||GEe(e)!==MEe)return!1;var t=wEe(e);if(t===null)return!0;var n=Bq.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&xq.call(n)===DEe}function $Ee(e){return e!=null&&typeof e=="object"}function GEe(e){return e==null?e===void 0?NEe:IEe:Gl&&Gl in Object(e)?FEe(e):xEe(e)}function FEe(e){var t=Bq.call(e,Gl),n=e[Gl],r=!1;try{e[Gl]=void 0,r=!0}catch{}var i=kq.call(e);return r&&(t?e[Gl]=n:delete e[Gl]),i}function xEe(e){return kq.call(e)}var VEe=20;function BEe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.shift(),r=new WeakMap;e.length>0;)n=Qq(n,e.shift(),0,r);return n}function dN(e){return Ry(e)?e.slice():e}function Qq(e,t,n,r){n===void 0&&(n=0);var i;if(!(n>VEe)){if(n++,Py(e)||Py(t)||Hq(t))i=dN(t);else if(Ry(e)){if(i=e.slice(),Ry(t))for(var a=0,c=t.length;a<c;a++)i.push(dN(t[a]));else if(iS(t))for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a];i[y]=dN(t[y])}}else if(iS(e))if(iS(t)){if(!kEe(e,t))return t;i=Object.assign({},e);for(var f=Object.keys(t),a=0,c=f.length;a<c;a++){var y=f[a],h=t[y];if(Py(h))typeof h>"u"?delete i[y]:i[y]=h;else{var m=i[y],F=h;if(qq(e,y,r)||qq(t,y,r))delete i[y];else{if(iS(m)&&iS(F)){var W=r.get(m)||[],ye=r.get(F)||[];W.push({obj:e,key:y}),ye.push({obj:t,key:y}),r.set(m,W),r.set(F,ye)}i[y]=Qq(i[y],h,n,r)}}}}else i=t;return i}}function qq(e,t,n){for(var r=n.get(e[t])||[],i=0,a=r.length;i<a;i++){var c=r[i];if(c.key===t&&c.obj===e)return!0}return!1}function Ry(e){return Array.isArray(e)}function Hq(e){return typeof e=="function"}function iS(e){return!Py(e)&&!Ry(e)&&!Hq(e)&&typeof e=="object"}function Py(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function kEe(e,t){return!(!jq(e)||!jq(t))}var Bs;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Bs||(Bs={}));var jEe=",",QEe=["OTEL_SDK_DISABLED"];function qEe(e){return QEe.indexOf(e)>-1}var HEe=["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 YEe(e){return HEe.indexOf(e)>-1}var zEe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function WEe(e){return zEe.indexOf(e)>-1}var My=1/0,Iy=128,KEe=128,XEe=128,Yq={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:xr.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:My,OTEL_ATTRIBUTE_COUNT_LIMIT:Iy,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:My,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Iy,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:My,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Iy,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:KEe,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:XEe,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Bs.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 JEe(e,t,n){if(!(typeof n[e]>"u")){var r=String(n[e]);t[e]=r.toLowerCase()==="true"}}function ZEe(e,t,n,r,i){if(r===void 0&&(r=-1/0),i===void 0&&(i=1/0),typeof n[e]<"u"){var a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function eye(e,t,n,r){r===void 0&&(r=jEe);var i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(function(a){return a.trim()}))}var tye={ALL:xr.ALL,VERBOSE:xr.VERBOSE,DEBUG:xr.DEBUG,INFO:xr.INFO,WARN:xr.WARN,ERROR:xr.ERROR,NONE:xr.NONE};function nye(e,t,n){var r=n[e];if(typeof r=="string"){var i=tye[r.toUpperCase()];i!=null&&(t[e]=i)}}function zq(e){var t={};for(var n in Yq){var r=n;switch(r){case"OTEL_LOG_LEVEL":nye(r,t,e);break;default:if(qEe(r))JEe(r,t,e);else if(YEe(r))ZEe(r,t,e);else if(WEe(r))eye(r,t,e);else{var i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}var Wq=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{};function aS(){var e=zq(Wq);return Object.assign({},Yq,e)}function rye(){return zq(Wq)}var iye=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},aye=function(){function e(t){t===void 0&&(t={});var n;this._propagators=(n=t.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(r){return typeof r.fields=="function"?r.fields():[]}).reduce(function(r,i){return r.concat(i)},[])))}return e.prototype.inject=function(t,n,r){var i,a;try{for(var c=iye(this._propagators),f=c.next();!f.done;f=c.next()){var y=f.value;try{y.inject(t,n,r)}catch(h){Ln.warn("Failed to inject with "+y.constructor.name+". Err: "+h.message)}}}catch(h){i={error:h}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}},e.prototype.extract=function(t,n,r){return this._propagators.reduce(function(i,a){try{return a.extract(i,n,r)}catch(c){Ln.warn("Failed to extract with "+a.constructor.name+". Err: "+c.message)}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}(),fN=dy("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function oye(e){return e.setValue(fN,!0)}function R2e(e){return e.deleteValue(fN)}function _N(e){return e.getValue(fN)===!0}var pN="[_0-9a-z-*/]",sye="[a-z]"+pN+"{0,255}",uye="[a-z0-9]"+pN+"{0,240}@[a-z]"+pN+"{0,13}",cye=new RegExp("^(?:"+sye+"|"+uye+")$"),lye=/^[ -~]{0,255}[!-~]$/,dye=/,|=/;function fye(e){return cye.test(e)}function _ye(e){return lye.test(e)&&!dye.test(e)}var Kq=32,pye=512,Xq=",",Jq="=",hye=function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,n){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r},e.prototype.unset=function(t){var n=this._clone();return n._internalState.delete(t),n},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(n,r){return n.push(r+Jq+t.get(r)),n},[]).join(Xq)},e.prototype._parse=function(t){t.length>pye||(this._internalState=t.split(Xq).reverse().reduce(function(n,r){var i=r.trim(),a=i.indexOf(Jq);if(a!==-1){var c=i.slice(0,a),f=i.slice(a+1,r.length);fye(c)&&_ye(f)&&n.set(c,f)}return n},new Map),this._internalState.size>Kq&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Kq))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),hN="traceparent",SN="tracestate",Sye="00",gye="(?!ff)[\\da-f]{2}",mye="(?![0]{32})[\\da-f]{32}",vye="(?![0]{16})[\\da-f]{16}",Eye="[\\da-f]{2}",yye=new RegExp("^\\s?("+gye+")-("+mye+")-("+vye+")-("+Eye+")(-.*)?\\s?$");function Tye(e){var t=yye.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var Aye=function(){function e(){}return e.prototype.inject=function(t,n,r){var i=Ea.getSpanContext(t);if(!(!i||_N(t)||!Qf(i))){var a=Sye+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||Vs.NONE).toString(16);r.set(n,hN,a),i.traceState&&r.set(n,SN,i.traceState.serialize())}},e.prototype.extract=function(t,n,r){var i=r.get(n,hN);if(!i)return t;var a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;var c=Tye(a);if(!c)return t;c.isRemote=!0;var f=r.get(n,SN);if(f){var y=Array.isArray(f)?f.join(","):f;c.traceState=new hye(typeof y=="string"?y:void 0)}return Ea.setSpanContext(t,c)},e.prototype.fields=function(){return[hN,SN]},e}(),Cye="=",gN=";",mN=",",vN="baggage",bye=180,Oye=4096,Rye=8192,Pye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Mye(e){return e.reduce(function(t,n){var r=""+t+(t!==""?mN:"")+n;return r.length>Rye?t:r},"")}function Iye(e){return e.getAllEntries().map(function(t){var n=Pye(t,2),r=n[0],i=n[1],a=encodeURIComponent(r)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(a+=gN+i.metadata.toString()),a})}function Zq(e){var t=e.split(gN);if(!(t.length<=0)){var n=t.shift();if(!!n){var r=n.indexOf(Cye);if(!(r<=0)){var i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim()),c;return t.length>0&&(c=OEe(t.join(gN))),{key:i,value:a,metadata:c}}}}}function P2e(e){return typeof e!="string"||e.length===0?{}:e.split(BAGGAGE_ITEMS_SEPARATOR).map(function(t){return Zq(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,n){return t[n.key]=n.value,t},{})}var Nye=function(){function e(){}return e.prototype.inject=function(t,n,r){var i=Wf.getBaggage(t);if(!(!i||_N(t))){var a=Iye(i).filter(function(f){return f.length<=Oye}).slice(0,bye),c=Mye(a);c.length>0&&r.set(n,vN,c)}},e.prototype.extract=function(t,n,r){var i=r.get(n,vN),a=Array.isArray(i)?i.join(mN):i;if(!a)return t;var c={};if(a.length===0)return t;var f=a.split(mN);return f.forEach(function(y){var h=Zq(y);if(h){var m={value:h.value};h.metadata&&(m.metadata=h.metadata),c[h.key]=m}}),Object.entries(c).length===0?t:Wf.setBaggage(t,Wf.createBaggage(c))},e.prototype.fields=function(){return[vN]},e}(),Ny;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Ny||(Ny={}));var Ly;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ly||(Ly={}));var eH=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Lye=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a};function Dy(e){var t,n,r={};if(typeof e!="object"||e==null)return r;try{for(var i=eH(Object.entries(e)),a=i.next();!a.done;a=i.next()){var c=Lye(a.value,2),f=c[0],y=c[1];if(!Dye(f)){Ln.warn("Invalid attribute key: "+f);continue}if(!tH(y)){Ln.warn("Invalid attribute value set for key: "+f);continue}Array.isArray(y)?r[f]=y.slice():r[f]=y}}catch(h){t={error:h}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Dye(e){return typeof e=="string"&&e.length>0}function tH(e){return e==null?!0:Array.isArray(e)?wye(e):nH(e)}function wye(e){var t,n,r;try{for(var i=eH(e),a=i.next();!a.done;a=i.next()){var c=a.value;if(c!=null){if(!r){if(nH(c)){r=typeof c;continue}return!1}if(typeof c!==r)return!1}}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0}function nH(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}var EN;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(EN||(EN={}));var Kf=performance,rH=9,Uye=6,$ye=Math.pow(10,Uye),wy=Math.pow(10,rH);function pc(e){var t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*$ye);return[n,r]}function yN(){var e=Kf.timeOrigin;if(typeof e!="number"){var t=Kf;e=t.timing&&t.timing.fetchStart}return e}function iH(e){var t=pc(yN()),n=pc(typeof e=="number"?e:Kf.now());return oH(t,n)}function M2e(e){if(TN(e))return e;if(typeof e=="number")return e<yN()?iH(e):pc(e);if(e instanceof Date)return pc(e.getTime());throw TypeError("Invalid input type")}function Gye(e,t){var n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=wy),[n,r]}function I2e(e){var t=rH,n=""+"0".repeat(t)+e[1]+"Z",r=n.substring(n.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",r)}function N2e(e){return e[0]*wy+e[1]}function L2e(e){return e[0]*1e3+e[1]/1e6}function D2e(e){return e[0]*1e6+e[1]/1e3}function TN(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function aH(e){return TN(e)||typeof e=="number"||e instanceof Date}function oH(e,t){var n=[e[0]+t[0],e[1]+t[1]];return n[1]>=wy&&(n[1]-=wy,n[0]+=1),n}function Go(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var Fye="aws.lambda.invoked_arn",xye="db.system",Vye="db.connection_string",Bye="db.user",kye="db.jdbc.driver_classname",jye="db.name",Qye="db.statement",qye="db.operation",Hye="db.mssql.instance_name",Yye="db.cassandra.keyspace",zye="db.cassandra.page_size",Wye="db.cassandra.consistency_level",Kye="db.cassandra.table",Xye="db.cassandra.idempotence",Jye="db.cassandra.speculative_execution_count",Zye="db.cassandra.coordinator.id",eTe="db.cassandra.coordinator.dc",tTe="db.hbase.namespace",nTe="db.redis.database_index",rTe="db.mongodb.collection",iTe="db.sql.table",sH="exception.type",uH="exception.message",cH="exception.stacktrace",aTe="exception.escaped",oTe="faas.trigger",sTe="faas.execution",uTe="faas.document.collection",cTe="faas.document.operation",lTe="faas.document.time",dTe="faas.document.name",fTe="faas.time",_Te="faas.cron",pTe="faas.coldstart",hTe="faas.invoked_name",STe="faas.invoked_provider",gTe="faas.invoked_region",mTe="net.transport",vTe="net.peer.ip",ETe="net.peer.port",yTe="net.peer.name",TTe="net.host.ip",ATe="net.host.port",CTe="net.host.name",bTe="net.host.connection.type",OTe="net.host.connection.subtype",RTe="net.host.carrier.name",PTe="net.host.carrier.mcc",MTe="net.host.carrier.mnc",ITe="net.host.carrier.icc",NTe="peer.service",LTe="enduser.id",DTe="enduser.role",wTe="enduser.scope",UTe="thread.id",$Te="thread.name",GTe="code.function",FTe="code.namespace",xTe="code.filepath",VTe="code.lineno",BTe="http.method",kTe="http.url",jTe="http.target",QTe="http.host",qTe="http.scheme",HTe="http.status_code",YTe="http.flavor",zTe="http.user_agent",WTe="http.request_content_length",KTe="http.request_content_length_uncompressed",XTe="http.response_content_length",JTe="http.response_content_length_uncompressed",ZTe="http.server_name",eAe="http.route",tAe="http.client_ip",nAe="aws.dynamodb.table_names",rAe="aws.dynamodb.consumed_capacity",iAe="aws.dynamodb.item_collection_metrics",aAe="aws.dynamodb.provisioned_read_capacity",oAe="aws.dynamodb.provisioned_write_capacity",sAe="aws.dynamodb.consistent_read",uAe="aws.dynamodb.projection",cAe="aws.dynamodb.limit",lAe="aws.dynamodb.attributes_to_get",dAe="aws.dynamodb.index_name",fAe="aws.dynamodb.select",_Ae="aws.dynamodb.global_secondary_indexes",pAe="aws.dynamodb.local_secondary_indexes",hAe="aws.dynamodb.exclusive_start_table",SAe="aws.dynamodb.table_count",gAe="aws.dynamodb.scan_forward",mAe="aws.dynamodb.segment",vAe="aws.dynamodb.total_segments",EAe="aws.dynamodb.count",yAe="aws.dynamodb.scanned_count",TAe="aws.dynamodb.attribute_definitions",AAe="aws.dynamodb.global_secondary_index_updates",CAe="messaging.system",bAe="messaging.destination",OAe="messaging.destination_kind",RAe="messaging.temp_destination",PAe="messaging.protocol",MAe="messaging.protocol_version",IAe="messaging.url",NAe="messaging.message_id",LAe="messaging.conversation_id",DAe="messaging.message_payload_size_bytes",wAe="messaging.message_payload_compressed_size_bytes",UAe="messaging.operation",$Ae="messaging.consumer_id",GAe="messaging.rabbitmq.routing_key",FAe="messaging.kafka.message_key",xAe="messaging.kafka.consumer_group",VAe="messaging.kafka.client_id",BAe="messaging.kafka.partition",kAe="messaging.kafka.tombstone",jAe="rpc.system",QAe="rpc.service",qAe="rpc.method",HAe="rpc.grpc.status_code",YAe="rpc.jsonrpc.version",zAe="rpc.jsonrpc.request_id",WAe="rpc.jsonrpc.error_code",KAe="rpc.jsonrpc.error_message",XAe="message.type",JAe="message.id",ZAe="message.compressed_size",eCe="message.uncompressed_size",w2e=null,U2e=null,$2e=null,G2e=null,F2e=null,x2e=null,V2e=null,B2e=null,k2e=null,j2e=null,Q2e=null,q2e=null,H2e=null,Y2e=null,z2e=null,W2e=null,K2e=null,X2e=null,J2e=null,Z2e=null,e8e=null,AN=sH,CN=uH,tCe=cH,t8e=null,n8e=null,r8e=null,i8e=null,a8e=null,o8e=null,s8e=null,u8e=null,c8e=null,l8e=null,d8e=null,f8e=null,_8e=null,p8e=null,h8e=null,S8e=null,g8e=null,m8e=null,v8e=null,E8e=null,y8e=null,T8e=null,A8e=null,C8e=null,b8e=null,O8e=null,R8e=null,P8e=null,M8e=null,I8e=null,N8e=null,L8e=null,D8e=null,w8e=null,U8e=null,$8e=null,G8e=null,F8e=null,x8e=null,V8e=null,B8e=null,k8e=null,j8e=null,Q8e=null,q8e=null,H8e=null,Y8e=null,z8e=null,W8e=null,K8e=null,X8e=null,J8e=null,Z8e=null,eze=null,tze=null,nze=null,rze=null,ize=null,aze=null,oze=null,sze=null,uze=null,cze=null,lze=null,dze=null,fze=null,_ze=null,pze=null,hze=null,Sze=null,gze=null,mze=null,vze=null,Eze=null,yze=null,Tze=null,Aze=null,Cze=null,bze=null,Oze=null,Rze=null,Pze=null,Mze=null,Ize=null,Nze=null,Lze=null,Dze=null,wze=null,Uze=null,$ze=null,Gze=null,Fze=null,xze=null,Vze=null,Bze=null,kze=null,jze=null,Qze=null,qze=null,Hze=null,Yze=null,zze=null,Wze=null,Kze=null,Xze=Go([Fye,xye,Vye,Bye,kye,jye,Qye,qye,Hye,Yye,zye,Wye,Kye,Xye,Jye,Zye,eTe,tTe,nTe,rTe,iTe,sH,uH,cH,aTe,oTe,sTe,uTe,cTe,lTe,dTe,fTe,_Te,pTe,hTe,STe,gTe,mTe,vTe,ETe,yTe,TTe,ATe,CTe,bTe,OTe,RTe,PTe,MTe,ITe,NTe,LTe,DTe,wTe,UTe,$Te,GTe,FTe,xTe,VTe,BTe,kTe,jTe,QTe,qTe,HTe,YTe,zTe,WTe,KTe,XTe,JTe,ZTe,eAe,tAe,nAe,rAe,iAe,aAe,oAe,sAe,uAe,cAe,lAe,dAe,fAe,_Ae,pAe,hAe,SAe,gAe,mAe,vAe,EAe,yAe,TAe,AAe,CAe,bAe,OAe,RAe,PAe,MAe,IAe,NAe,LAe,DAe,wAe,UAe,$Ae,GAe,FAe,xAe,VAe,BAe,kAe,jAe,QAe,qAe,HAe,YAe,zAe,WAe,KAe,XAe,JAe,ZAe,eCe]),nCe="other_sql",rCe="mssql",iCe="mysql",aCe="oracle",oCe="db2",sCe="postgresql",uCe="redshift",cCe="hive",lCe="cloudscape",dCe="hsqldb",fCe="progress",_Ce="maxdb",pCe="hanadb",hCe="ingres",SCe="firstsql",gCe="edb",mCe="cache",vCe="adabas",ECe="firebird",yCe="derby",TCe="filemaker",ACe="informix",CCe="instantdb",bCe="interbase",OCe="mariadb",RCe="netezza",PCe="pervasive",MCe="pointbase",ICe="sqlite",NCe="sybase",LCe="teradata",DCe="vertica",wCe="h2",UCe="coldfusion",$Ce="cassandra",GCe="hbase",FCe="mongodb",xCe="redis",VCe="couchbase",BCe="couchdb",kCe="cosmosdb",jCe="dynamodb",QCe="neo4j",qCe="geode",HCe="elasticsearch",YCe="memcached",zCe="cockroachdb",Jze=null,Zze=null,eWe=null,tWe=null,nWe=null,rWe=null,iWe=null,aWe=null,oWe=null,sWe=null,uWe=null,cWe=null,lWe=null,dWe=null,fWe=null,_We=null,pWe=null,hWe=null,SWe=null,gWe=null,mWe=null,vWe=null,EWe=null,yWe=null,TWe=null,AWe=null,CWe=null,bWe=null,OWe=null,RWe=null,PWe=null,MWe=null,IWe=null,NWe=null,LWe=null,DWe=null,wWe=null,UWe=null,$We=null,GWe=null,FWe=null,xWe=null,VWe=null,BWe=null,kWe=null,jWe=null,QWe=null,qWe=Go([nCe,rCe,iCe,aCe,oCe,sCe,uCe,cCe,lCe,dCe,fCe,_Ce,pCe,hCe,SCe,gCe,mCe,vCe,ECe,yCe,TCe,ACe,CCe,bCe,OCe,RCe,PCe,MCe,ICe,NCe,LCe,DCe,wCe,UCe,$Ce,GCe,FCe,xCe,VCe,BCe,kCe,jCe,QCe,qCe,HCe,YCe,zCe]),WCe="all",KCe="each_quorum",XCe="quorum",JCe="local_quorum",ZCe="one",ebe="two",tbe="three",nbe="local_one",rbe="any",ibe="serial",abe="local_serial",HWe=null,YWe=null,zWe=null,WWe=null,KWe=null,XWe=null,JWe=null,ZWe=null,eKe=null,tKe=null,nKe=null,rKe=Go([WCe,KCe,XCe,JCe,ZCe,ebe,tbe,nbe,rbe,ibe,abe]),obe="datasource",sbe="http",ube="pubsub",cbe="timer",lbe="other",iKe=null,aKe=null,oKe=null,sKe=null,uKe=null,cKe=Go([obe,sbe,ube,cbe,lbe]),dbe="insert",fbe="edit",_be="delete",lKe=null,dKe=null,fKe=null,_Ke=Go([dbe,fbe,_be]),pbe="alibaba_cloud",hbe="aws",Sbe="azure",gbe="gcp",pKe=null,hKe=null,SKe=null,gKe=null,mKe=Go([pbe,hbe,Sbe,gbe]),mbe="ip_tcp",vbe="ip_udp",Ebe="ip",ybe="unix",Tbe="pipe",Abe="inproc",Cbe="other",vKe=null,EKe=null,yKe=null,TKe=null,AKe=null,CKe=null,bKe=null,OKe=Go([mbe,vbe,Ebe,ybe,Tbe,Abe,Cbe]),bbe="wifi",Obe="wired",Rbe="cell",Pbe="unavailable",Mbe="unknown",RKe=null,PKe=null,MKe=null,IKe=null,NKe=null,LKe=Go([bbe,Obe,Rbe,Pbe,Mbe]),Ibe="gprs",Nbe="edge",Lbe="umts",Dbe="cdma",wbe="evdo_0",Ube="evdo_a",$be="cdma2000_1xrtt",Gbe="hsdpa",Fbe="hsupa",xbe="hspa",Vbe="iden",Bbe="evdo_b",kbe="lte",jbe="ehrpd",Qbe="hspap",qbe="gsm",Hbe="td_scdma",Ybe="iwlan",zbe="nr",Wbe="nrnsa",Kbe="lte_ca",DKe=null,wKe=null,UKe=null,$Ke=null,GKe=null,FKe=null,xKe=null,VKe=null,BKe=null,kKe=null,jKe=null,QKe=null,qKe=null,HKe=null,YKe=null,zKe=null,WKe=null,KKe=null,XKe=null,JKe=null,ZKe=null,e3e=Go([Ibe,Nbe,Lbe,Dbe,wbe,Ube,$be,Gbe,Fbe,xbe,Vbe,Bbe,kbe,jbe,Qbe,qbe,Hbe,Ybe,zbe,Wbe,Kbe]),Xbe="1.0",Jbe="1.1",Zbe="2.0",eOe="SPDY",tOe="QUIC",t3e=null,n3e=null,r3e=null,i3e=null,a3e=null,o3e={HTTP_1_0:Xbe,HTTP_1_1:Jbe,HTTP_2_0:Zbe,SPDY:eOe,QUIC:tOe},nOe="queue",rOe="topic",s3e=null,u3e=null,c3e=Go([nOe,rOe]),iOe="receive",aOe="process",l3e=null,d3e=null,f3e=Go([iOe,aOe]),oOe=0,sOe=1,uOe=2,cOe=3,lOe=4,dOe=5,fOe=6,_Oe=7,pOe=8,hOe=9,SOe=10,gOe=11,mOe=12,vOe=13,EOe=14,yOe=15,TOe=16,_3e=null,p3e=null,h3e=null,S3e=null,g3e=null,m3e=null,v3e=null,E3e=null,y3e=null,T3e=null,A3e=null,C3e=null,b3e=null,O3e=null,R3e=null,P3e=null,M3e=null,I3e={OK:oOe,CANCELLED:sOe,UNKNOWN:uOe,INVALID_ARGUMENT:cOe,DEADLINE_EXCEEDED:lOe,NOT_FOUND:dOe,ALREADY_EXISTS:fOe,PERMISSION_DENIED:_Oe,RESOURCE_EXHAUSTED:pOe,FAILED_PRECONDITION:hOe,ABORTED:SOe,OUT_OF_RANGE:gOe,UNIMPLEMENTED:mOe,INTERNAL:vOe,UNAVAILABLE:EOe,DATA_LOSS:yOe,UNAUTHENTICATED:TOe},AOe="SENT",COe="RECEIVED",N3e=null,L3e=null,D3e=Go([AOe,COe]),bOe="exception",bN=function(){return bN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},bN.apply(this,arguments)},OOe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lH=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},ROe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},POe=function(){function e(t,n,r,i,a,c,f,y,h,m){f===void 0&&(f=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:EN.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=i,this.parentSpanId=c,this.kind=a,this.links=f;var F=Date.now();this._performanceStartTime=Kf.now(),this._performanceOffset=F-(this._performanceStartTime+yN()),this._startTimeProvided=y!=null,this.startTime=this._getTime(y??F),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,m!=null&&this.setAttributes(m),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return n==null||this._isSpanEnded()?this:t.length===0?(Ln.warn("Invalid attribute key: "+t),this):tH(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this):(Ln.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var n,r;try{for(var i=OOe(Object.entries(t)),a=i.next();!a.done;a=i.next()){var c=lH(a.value,2),f=c[0],y=c[1];this.setAttribute(f,y)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this},e.prototype.addEvent=function(t,n,r){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return Ln.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&Ln.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),aH(n)&&(aH(r)||(r=n),n=void 0);var i=Dy(n);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var n;return(n=this.links).push.apply(n,ROe([],lH(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=bN({},t),this.status.message!=null&&typeof t.message!="string"&&(Ln.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message),this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){Ln.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=Gye(this.startTime,this.endTime),this._duration[0]<0&&(Ln.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&&Ln.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<=Kf.now())return iH(t+this._performanceOffset);if(typeof t=="number")return pc(t);if(t instanceof Date)return pc(t.getTime());if(TN(t))return t;if(this._startTimeProvided)return pc(Date.now());var n=Kf.now()-this._performanceStartTime;return oH(this.startTime,pc(n))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,n){var r={};typeof t=="string"?r[CN]=t:t&&(t.code?r[AN]=t.code.toString():t.name&&(r[AN]=t.name),t.message&&(r[CN]=t.message),t.stack&&(r[tCe]=t.stack)),r[AN]||r[CN]?this.addEvent(bOe,r,n):Ln.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&Ln.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,n){return t.length<=n?t:t.substring(0,n)},e.prototype._truncateToSize=function(t){var n=this,r=this._attributeValueLengthLimit;return r<=0?(Ln.warn("Attribute value limit must be positive, got "+r),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(i){return typeof i=="string"?n._truncateToLimitUtil(i,r):i}):t},e}(),Xf;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Xf||(Xf={}));var Uy=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Xf.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),Jf=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:Xf.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}();function MOe(){return function(e){Ln.error(IOe(e))}}function IOe(e){return typeof e=="string"?e:JSON.stringify(NOe(e))}function NOe(e){for(var t={},n=e;n!==null;)Object.getOwnPropertyNames(n).forEach(function(r){if(!t[r]){var i=n[r];i&&(t[r]=String(i))}}),n=Object.getPrototypeOf(n);return t}var dH=MOe();function w3e(e){dH=e}function Zf(e){try{dH(e)}catch{}}var ON=function(){function e(t){var n,r,i,a;this._root=t.root,this._root||(Zf(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Jf),this._remoteParentSampled=(n=t.remoteParentSampled)!==null&&n!==void 0?n:new Jf,this._remoteParentNotSampled=(r=t.remoteParentNotSampled)!==null&&r!==void 0?r:new Uy,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new Jf,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new Uy}return e.prototype.shouldSample=function(t,n,r,i,a,c){var f=Ea.getSpanContext(t);return!f||!Qf(f)?this._root.shouldSample(t,n,r,i,a,c):f.isRemote?f.traceFlags&Vs.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,a,c):this._remoteParentNotSampled.shouldSample(t,n,r,i,a,c):f.traceFlags&Vs.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,a,c):this._localParentNotSampled.shouldSample(t,n,r,i,a,c)},e.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()+"}"},e}(),fH=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,n){return{decision:RQ(n)&&this._accumulate(n)<this._upperBound?Xf.RECORD_AND_SAMPLED:Xf.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var n=0,r=0;r<t.length/8;r++){var i=r*8,a=parseInt(t.slice(i,i+8),16);n=(n^a)>>>0}return n},e}(),LOe=Bs.AlwaysOn,e_=1;function _H(){var e=aS();return{sampler:pH(e),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function pH(e){switch(e===void 0&&(e=aS()),e.OTEL_TRACES_SAMPLER){case Bs.AlwaysOn:return new Jf;case Bs.AlwaysOff:return new Uy;case Bs.ParentBasedAlwaysOn:return new ON({root:new Jf});case Bs.ParentBasedAlwaysOff:return new ON({root:new Uy});case Bs.TraceIdRatio:return new fH(hH(e));case Bs.ParentBasedTraceIdRatio:return new ON({root:new fH(hH(e))});default:return Ln.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+LOe+'".'),new Jf}}function hH(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return Ln.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+e_+"."),e_;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(Ln.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+e_+"."),e_):t<0||t>1?(Ln.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+e_+"."),e_):t}function DOe(e){var t={sampler:pH()},n=_H(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function wOe(e){var t,n,r,i,a,c,f,y,h,m,F,W,ye=Object.assign({},e.spanLimits),Te=rye();return ye.attributeCountLimit=(c=(a=(i=(n=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&n!==void 0?n:(r=e.generalLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:Te.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:Te.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&c!==void 0?c:Iy,ye.attributeValueLengthLimit=(W=(F=(m=(y=(f=e.spanLimits)===null||f===void 0?void 0:f.attributeValueLengthLimit)!==null&&y!==void 0?y:(h=e.generalLimits)===null||h===void 0?void 0:h.attributeValueLengthLimit)!==null&&m!==void 0?m:Te.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&F!==void 0?F:Te.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&W!==void 0?W:My,Object.assign({},e,{spanLimits:ye})}var UOe=8,$Oe=16,GOe=function(){function e(){this.generateTraceId=SH($Oe),this.generateSpanId=SH(UOe)}return e}(),$y=Array(32);function SH(e){return function(){for(var n=0;n<e*2;n++)$y[n]=Math.floor(Math.random()*16)+48,$y[n]>=58&&($y[n]+=39);return String.fromCharCode.apply(null,$y.slice(0,e*2))}}var FOe=function(){function e(t,n,r){this._tracerProvider=r;var i=DOe(n);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=n.idGenerator||new GOe,this.resource=r.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,n,r){var i,a,c;n===void 0&&(n={}),r===void 0&&(r=La.active()),n.root&&(r=Ea.deleteSpan(r));var f=Ea.getSpan(r);if(_N(r)){Ln.debug("Instrumentation suppressed, returning Noop Span");var y=Ea.wrapSpanContext(bQ);return y}var h=f?.spanContext(),m=this._idGenerator.generateSpanId(),F,W,ye;!h||!Ea.isSpanContextValid(h)?F=this._idGenerator.generateTraceId():(F=h.traceId,W=h.traceState,ye=h.spanId);var Te=(i=n.kind)!==null&&i!==void 0?i:Ny.INTERNAL,Re=((a=n.links)!==null&&a!==void 0?a:[]).map(function($n){return{context:$n.context,attributes:Dy($n.attributes)}}),Ye=Dy(n.attributes),qe=this._sampler.shouldSample(r,F,t,Te,Ye,Re);W=(c=qe.traceState)!==null&&c!==void 0?c:W;var Ke=qe.decision===Ly.RECORD_AND_SAMPLED?Vs.SAMPLED:Vs.NONE,Et={traceId:F,spanId:m,traceFlags:Ke,traceState:W};if(qe.decision===Ly.NOT_RECORD){Ln.debug("Recording is off, propagating context in a non-recording span");var y=Ea.wrapSpanContext(Et);return y}var Ut=Dy(Object.assign(Ye,qe.attributes)),dn=new POe(this,r,t,Et,Te,ye,Re,n.startTime,void 0,Ut);return dn},e.prototype.startActiveSpan=function(t,n,r,i){var a,c,f;if(!(arguments.length<2)){arguments.length===2?f=n:arguments.length===3?(a=n,f=r):(a=n,c=r,f=i);var y=c??La.active(),h=this.startSpan(t,a,y),m=Ea.setSpan(y,h);return La.with(m,f,void 0,h)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}(),Gy=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gH=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,n,r=[];try{for(var i=Gy(this._spanProcessors),a=i.next();!a.done;a=i.next()){var c=a.value;r.push(c.forceFlush())}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return new Promise(function(f){Promise.all(r).then(function(){f()}).catch(function(y){Zf(y||new Error("MultiSpanProcessor: forceFlush failed")),f()})})},e.prototype.onStart=function(t,n){var r,i;try{for(var a=Gy(this._spanProcessors),c=a.next();!c.done;c=a.next()){var f=c.value;f.onStart(t,n)}}catch(y){r={error:y}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.onEnd=function(t){var n,r;try{for(var i=Gy(this._spanProcessors),a=i.next();!a.done;a=i.next()){var c=a.value;c.onEnd(t)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.shutdown=function(){var t,n,r=[];try{for(var i=Gy(this._spanProcessors),a=i.next();!a.done;a=i.next()){var c=a.value;r.push(c.shutdown())}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return new Promise(function(f,y){Promise.all(r).then(function(){f()},y)})},e}(),xOe=function(){function e(){}return e.prototype.onStart=function(t,n){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}(),VOe=function(){function e(){var t=this;this._promise=new Promise(function(n,r){t._resolve=n,t._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t)},e.prototype.reject=function(t){this._reject(t)},e}(),BOe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},kOe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},jOe=function(){function e(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new VOe}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,kOe([this._that],BOe(r),!1))).then(function(a){return n._deferred.resolve(a)},function(a){return n._deferred.reject(a)})}catch(a){this._deferred.reject(a)}}return this._deferred.promise},e}(),RN;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(RN||(RN={}));function U3e(e){}var QOe=function(){function e(t,n){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var r=aS();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new jOe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Ln.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,n){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Vs.SAMPLED)!==0&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.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()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Ln.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Ln.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(n,r){for(var i=[],a=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),c=0,f=a;c<f;c++)i.push(t._flushOneBatch());Promise.all(i).then(function(){n()}).catch(r)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,r){var i=setTimeout(function(){r(new Error("Timeout"))},t._exportTimeoutMillis);La.with(oye(La.active()),function(){var a;t._finishedSpans.length<=t._maxExportBatchSize?(a=t._finishedSpans,t._finishedSpans=[]):a=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var c=function(){return t._exporter.export(a,function(F){var W;clearTimeout(i),F.code===RN.SUCCESS?n():r((W=F.error)!==null&&W!==void 0?W:new Error("BatchSpanProcessor: span export failed"))})},f=null,y=0,h=a.length;y<h;y++){var m=a[y];m.resource.asyncAttributesPending&&m.resource.waitForAsyncAttributes&&(f??(f=[]),f.push(m.resource.waitForAsyncAttributes()))}f===null?c():Promise.all(f).then(c,function(F){Zf(F),r(F)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var n=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(r){t._isExporting=!1,Zf(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),this._timer,void 0)}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}(),qOe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),HOe=function(e){qOe(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.onInit(r),i}return t.prototype.onInit=function(n){var r=this;n?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&r.forceFlush().catch(function(i){Zf(i)})},this._pageHideListener=function(){r.forceFlush().catch(function(i){Zf(i)})},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}(QOe),YOe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},zOe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Fl;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Fl||(Fl={}));var WOe=function(){function e(t){t===void 0&&(t={});var n,r;this._registeredSpanProcessors=[],this._tracers=new Map;var i=BEe({},_H(),wOe(t));if(this.resource=(n=i.resource)!==null&&n!==void 0?n:vy.empty(),i.mergeResourceWithDefaults&&(this.resource=vy.default().merge(this.resource)),this._config=Object.assign({},i,{resource:this.resource}),!((r=t.spanProcessors)===null||r===void 0)&&r.length)this._registeredSpanProcessors=zOe([],YOe(t.spanProcessors),!1),this.activeSpanProcessor=new gH(this._registeredSpanProcessors);else{var a=this._buildExporterFromEnv();if(a!==void 0){var c=new HOe(a);this.activeSpanProcessor=c}else this.activeSpanProcessor=new xOe}}return e.prototype.getTracer=function(t,n,r){var i=t+"@"+(n||"")+":"+(r?.schemaUrl||"");return this._tracers.has(i)||this._tracers.set(i,new FOe({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return Ln.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new gH(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),Ea.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&La.setGlobalContextManager(t.contextManager),t.propagator&&Wf.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(r){return new Promise(function(i){var a,c=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),a=Fl.timeout},t);r.forceFlush().then(function(){clearTimeout(c),a!==Fl.timeout&&(a=Fl.resolved,i(a))}).catch(function(f){clearTimeout(c),a=Fl.error,i(f)})})});return new Promise(function(r,i){Promise.all(n).then(function(a){var c=a.filter(function(f){return f!==Fl.resolved});c.length>0?i(c):r()}).catch(function(a){return i([a])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var n;return(n=this.constructor._registeredPropagators.get(t))===null||n===void 0?void 0:n()},e.prototype._getSpanExporter=function(t){var n;return(n=this.constructor._registeredExporters.get(t))===null||n===void 0?void 0:n()},e.prototype._buildPropagatorFromEnv=function(){var t=this,n=Array.from(new Set(aS().OTEL_PROPAGATORS)),r=n.map(function(a){var c=t._getPropagator(a);return c||Ln.warn('Propagator "'+a+'" requested through environment variable is unavailable.'),c}),i=r.reduce(function(a,c){return c&&a.push(c),a},[]);if(i.length!==0)return n.length===1?i[0]:new aye({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=aS().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var n=this._getSpanExporter(t);return n||Ln.error('Exporter "'+t+'" requested through environment variable is unavailable.'),n}},e._registeredPropagators=new Map([["tracecontext",function(){return new Aye}],["baggage",function(){return new Nye}]]),e._registeredExporters=new Map,e}(),KOe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],c;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return a},XOe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},JOe=function(){function e(){this._enabled=!1,this._currentContext=jf}return e.prototype._bindFunction=function(t,n){t===void 0&&(t=jf);var r=this,i=function(){for(var a=this,c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return r.with(t,function(){return n.apply(a,c)})};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i},e.prototype.active=function(){return this._currentContext},e.prototype.bind=function(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n},e.prototype.disable=function(){return this._currentContext=jf,this._enabled=!1,this},e.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=jf,this)},e.prototype.with=function(t,n,r){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var c=this._currentContext;this._currentContext=t||jf;try{return n.call.apply(n,XOe([r],KOe(i),!1))}finally{this._currentContext=c}},e}(),ZOe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eRe=function(e){ZOe(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,n)||this;if(n.contextManager)throw"contextManager should be defined in register method not in constructor";if(n.propagator)throw"propagator should be defined in register method not in constructor";return r}return t.prototype.register=function(n){n===void 0&&(n={}),n.contextManager===void 0&&(n.contextManager=new JOe),n.contextManager&&n.contextManager.enable(),e.prototype.register.call(this,n)},t}(WOe);function xl(e){let t={};const n=e.length;for(let r=0;r<n;r++){const i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}const tRe="cloud.provider",nRe="cloud.account.id",rRe="cloud.region",iRe="cloud.availability_zone",aRe="cloud.platform",oRe="aws.ecs.container.arn",sRe="aws.ecs.cluster.arn",uRe="aws.ecs.launchtype",cRe="aws.ecs.task.arn",lRe="aws.ecs.task.family",dRe="aws.ecs.task.revision",fRe="aws.eks.cluster.arn",_Re="aws.log.group.names",pRe="aws.log.group.arns",hRe="aws.log.stream.names",SRe="aws.log.stream.arns",gRe="container.name",mRe="container.id",vRe="container.runtime",ERe="container.image.name",yRe="container.image.tag",mH="deployment.environment",TRe="device.id",ARe="device.model.identifier",CRe="device.model.name",bRe="faas.name",ORe="faas.id",RRe="faas.version",PRe="faas.instance",MRe="faas.max_memory",IRe="host.id",NRe="host.name",LRe="host.type",DRe="host.arch",wRe="host.image.name",URe="host.image.id",$Re="host.image.version",GRe="k8s.cluster.name",FRe="k8s.node.name",xRe="k8s.node.uid",VRe="k8s.namespace.name",BRe="k8s.pod.uid",kRe="k8s.pod.name",jRe="k8s.container.name",QRe="k8s.replicaset.uid",qRe="k8s.replicaset.name",HRe="k8s.deployment.uid",YRe="k8s.deployment.name",zRe="k8s.statefulset.uid",WRe="k8s.statefulset.name",KRe="k8s.daemonset.uid",XRe="k8s.daemonset.name",JRe="k8s.job.uid",ZRe="k8s.job.name",ePe="k8s.cronjob.uid",tPe="k8s.cronjob.name",nPe="os.type",rPe="os.description",iPe="os.name",aPe="os.version",oPe="process.pid",sPe="process.executable.name",uPe="process.executable.path",cPe="process.command",lPe="process.command_line",dPe="process.command_args",fPe="process.owner",_Pe="process.runtime.name",pPe="process.runtime.version",hPe="process.runtime.description",vH="service.name",EH="service.namespace",SPe="service.instance.id",yH="service.version",gPe="telemetry.sdk.name",TH="telemetry.sdk.language",mPe="telemetry.sdk.version",vPe="telemetry.auto.version",EPe="webengine.name",yPe="webengine.version",TPe="webengine.description",$3e=null,G3e=null,F3e=null,x3e=null,V3e=null,B3e=null,k3e=null,j3e=null,Q3e=null,q3e=null,H3e=null,Y3e=null,z3e=null,W3e=null,K3e=null,X3e=null,J3e=null,Z3e=null,e6e=null,t6e=null,n6e=null,APe=mH,r6e=null,i6e=null,a6e=null,o6e=null,s6e=null,u6e=null,c6e=null,l6e=null,d6e=null,f6e=null,_6e=null,p6e=null,h6e=null,S6e=null,g6e=null,m6e=null,v6e=null,E6e=null,y6e=null,T6e=null,A6e=null,C6e=null,b6e=null,O6e=null,R6e=null,P6e=null,M6e=null,I6e=null,N6e=null,L6e=null,D6e=null,w6e=null,U6e=null,$6e=null,G6e=null,F6e=null,x6e=null,V6e=null,B6e=null,k6e=null,j6e=null,Q6e=null,q6e=null,H6e=null,Y6e=null,z6e=null,W6e=null,K6e=null,CPe=vH,bPe=EH,X6e=null,OPe=yH,J6e=null,RPe=TH,Z6e=null,e4e=null,t4e=null,n4e=null,r4e=null,i4e=xl([tRe,nRe,rRe,iRe,aRe,oRe,sRe,uRe,cRe,lRe,dRe,fRe,_Re,pRe,hRe,SRe,gRe,mRe,vRe,ERe,yRe,mH,TRe,ARe,CRe,bRe,ORe,RRe,PRe,MRe,IRe,NRe,LRe,DRe,wRe,URe,$Re,GRe,FRe,xRe,VRe,BRe,kRe,jRe,QRe,qRe,HRe,YRe,zRe,WRe,KRe,XRe,JRe,ZRe,ePe,tPe,nPe,rPe,iPe,aPe,oPe,sPe,uPe,cPe,lPe,dPe,fPe,_Pe,pPe,hPe,vH,EH,SPe,yH,gPe,TH,mPe,vPe,EPe,yPe,TPe]),PPe="alibaba_cloud",MPe="aws",IPe="azure",NPe="gcp",a4e=null,o4e=null,s4e=null,u4e=null,c4e=xl([PPe,MPe,IPe,NPe]),LPe="alibaba_cloud_ecs",DPe="alibaba_cloud_fc",wPe="aws_ec2",UPe="aws_ecs",$Pe="aws_eks",GPe="aws_lambda",FPe="aws_elastic_beanstalk",xPe="azure_vm",VPe="azure_container_instances",BPe="azure_aks",kPe="azure_functions",jPe="azure_app_service",QPe="gcp_compute_engine",qPe="gcp_cloud_run",HPe="gcp_kubernetes_engine",YPe="gcp_cloud_functions",zPe="gcp_app_engine",l4e=null,d4e=null,f4e=null,_4e=null,p4e=null,h4e=null,S4e=null,g4e=null,m4e=null,v4e=null,E4e=null,y4e=null,T4e=null,A4e=null,C4e=null,b4e=null,O4e=null,R4e=xl([LPe,DPe,wPe,UPe,$Pe,GPe,FPe,xPe,VPe,BPe,kPe,jPe,QPe,qPe,HPe,YPe,zPe]),WPe="ec2",KPe="fargate",P4e=null,M4e=null,I4e=xl([WPe,KPe]),XPe="amd64",JPe="arm32",ZPe="arm64",eMe="ia64",tMe="ppc32",nMe="ppc64",rMe="x86",N4e=null,L4e=null,D4e=null,w4e=null,U4e=null,$4e=null,G4e=null,F4e=xl([XPe,JPe,ZPe,eMe,tMe,nMe,rMe]),iMe="windows",aMe="linux",oMe="darwin",sMe="freebsd",uMe="netbsd",cMe="openbsd",lMe="dragonflybsd",dMe="hpux",fMe="aix",_Me="solaris",pMe="z_os",x4e=null,V4e=null,B4e=null,k4e=null,j4e=null,Q4e=null,q4e=null,H4e=null,Y4e=null,z4e=null,W4e=null,K4e=xl([iMe,aMe,oMe,sMe,uMe,cMe,lMe,dMe,fMe,_Me,pMe]),hMe="cpp",SMe="dotnet",gMe="erlang",mMe="go",vMe="java",EMe="nodejs",yMe="php",TMe="python",AMe="ruby",CMe="webjs",X4e=null,J4e=null,Z4e=null,e5e=null,t5e=null,n5e=null,r5e=null,i5e=null,a5e=null,o5e=null,s5e=xl([hMe,SMe,gMe,mMe,vMe,EMe,yMe,TMe,AMe,CMe]);var bMe=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},OMe=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(h){return function(m){return y([h,m])}}function y(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(m){h=[6,m],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};function RMe(e,t,n){var r,i;try{i=e()}catch(a){r=a}finally{if(t(r,i),r&&!n)throw r;return i}}function u5e(e,t,n){return bMe(this,void 0,void 0,function(){var r,i,a;return OMe(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),[4,e()];case 1:return i=c.sent(),[3,4];case 2:return a=c.sent(),r=a,[3,4];case 3:if(t(r,i),r&&!n)throw r;return[2,i];case 4:return[2]}})})}function AH(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Vl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),PMe=function(){function e(){}return e.prototype.createGauge=function(t,n){return GMe},e.prototype.createHistogram=function(t,n){return FMe},e.prototype.createCounter=function(t,n){return $Me},e.prototype.createUpDownCounter=function(t,n){return xMe},e.prototype.createObservableGauge=function(t,n){return BMe},e.prototype.createObservableCounter=function(t,n){return VMe},e.prototype.createObservableUpDownCounter=function(t,n){return kMe},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),Fy=function(){function e(){}return e}(),MMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Fy),IMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Fy),NMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Fy),LMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Fy),PN=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),DMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(PN),wMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(PN),UMe=function(e){Vl(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(PN),CH=new PMe,$Me=new MMe,GMe=new NMe,FMe=new LMe,xMe=new IMe,VMe=new DMe,BMe=new wMe,kMe=new UMe;function c5e(){return CH}var jMe=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return CH},e}(),QMe=new jMe,MN="metrics",qMe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Yh(MN,t,xs.instance())},e.prototype.getMeterProvider=function(){return Ml(MN)||QMe},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){zh(MN,xs.instance())},e}(),HMe=qMe.getInstance(),YMe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _.g=="object"?_.g:{},xy=Symbol.for("io.opentelemetry.js.api.logs"),oS=YMe;function zMe(e,t,n){return function(r){return r===e?t:n}}var bH=1,WMe=function(){function e(){}return e.prototype.getLogger=function(t,n,r){return new rq},e}(),OH=new WMe,KMe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return oS[xy]?this.getLoggerProvider():(oS[xy]=zMe(bH,t,OH),t)},e.prototype.getLoggerProvider=function(){var t,n;return(n=(t=oS[xy])===null||t===void 0?void 0:t.call(oS,bH))!==null&&n!==void 0?n:OH},e.prototype.getLogger=function(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)},e.prototype.disable=function(){delete oS[xy]},e}(),XMe=KMe.getInstance(),Vy=_(8821),By=function(){return By=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},By.apply(this,arguments)},JMe=function(){function e(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this._wrap=Vy.wrap,this._unwrap=Vy.unwrap,this._massWrap=Vy.massWrap,this._massUnwrap=Vy.massUnwrap,this._config=By({enabled:!0},r),this._diag=Ln.createComponentLogger({namespace:t}),this._tracer=Ea.getTracer(t,n),this._meter=HMe.getMeter(t,n),this._logger=XMe.getLogger(t,n),this._updateMetricInstruments()}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},e.prototype.getModuleDefinitions=function(){var t,n=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(n)?n:[n]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){this._config=By({},t)},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(t,n,r,i){if(!!t)try{t(r,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},a)}},e}(),ZMe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),eIe=function(e){ZMe(t,e);function t(n,r,i){var a=e.call(this,n,r,i)||this;return a._config.enabled&&a.enable(),a}return t}(JMe),tIe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function RH(e,t){return typeof t=="string"?e===t:!!e.match(t)}function nIe(e,t){var n,r;if(!t)return!1;try{for(var i=tIe(t),a=i.next();!a.done;a=i.next()){var c=a.value;if(RH(e,c))return!0}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}function Fo(e){for(var t={},n=e.length,r=0;r<n;r++){var i=e[r];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i)}return t}var rIe="aws.lambda.invoked_arn",iIe="db.system",aIe="db.connection_string",oIe="db.user",sIe="db.jdbc.driver_classname",uIe="db.name",cIe="db.statement",lIe="db.operation",dIe="db.mssql.instance_name",fIe="db.cassandra.keyspace",_Ie="db.cassandra.page_size",pIe="db.cassandra.consistency_level",hIe="db.cassandra.table",SIe="db.cassandra.idempotence",gIe="db.cassandra.speculative_execution_count",mIe="db.cassandra.coordinator.id",vIe="db.cassandra.coordinator.dc",EIe="db.hbase.namespace",yIe="db.redis.database_index",TIe="db.mongodb.collection",AIe="db.sql.table",CIe="exception.type",bIe="exception.message",OIe="exception.stacktrace",RIe="exception.escaped",PIe="faas.trigger",MIe="faas.execution",IIe="faas.document.collection",NIe="faas.document.operation",LIe="faas.document.time",DIe="faas.document.name",wIe="faas.time",UIe="faas.cron",$Ie="faas.coldstart",GIe="faas.invoked_name",FIe="faas.invoked_provider",xIe="faas.invoked_region",VIe="net.transport",BIe="net.peer.ip",kIe="net.peer.port",jIe="net.peer.name",QIe="net.host.ip",qIe="net.host.port",HIe="net.host.name",YIe="net.host.connection.type",zIe="net.host.connection.subtype",WIe="net.host.carrier.name",KIe="net.host.carrier.mcc",XIe="net.host.carrier.mnc",JIe="net.host.carrier.icc",ZIe="peer.service",eNe="enduser.id",tNe="enduser.role",nNe="enduser.scope",rNe="thread.id",iNe="thread.name",aNe="code.function",oNe="code.namespace",sNe="code.filepath",uNe="code.lineno",PH="http.method",MH="http.url",cNe="http.target",IH="http.host",NH="http.scheme",LH="http.status_code",lNe="http.flavor",DH="http.user_agent",dNe="http.request_content_length",fNe="http.request_content_length_uncompressed",wH="http.response_content_length",UH="http.response_content_length_uncompressed",_Ne="http.server_name",pNe="http.route",hNe="http.client_ip",SNe="aws.dynamodb.table_names",gNe="aws.dynamodb.consumed_capacity",mNe="aws.dynamodb.item_collection_metrics",vNe="aws.dynamodb.provisioned_read_capacity",ENe="aws.dynamodb.provisioned_write_capacity",yNe="aws.dynamodb.consistent_read",TNe="aws.dynamodb.projection",ANe="aws.dynamodb.limit",CNe="aws.dynamodb.attributes_to_get",bNe="aws.dynamodb.index_name",ONe="aws.dynamodb.select",RNe="aws.dynamodb.global_secondary_indexes",PNe="aws.dynamodb.local_secondary_indexes",MNe="aws.dynamodb.exclusive_start_table",INe="aws.dynamodb.table_count",NNe="aws.dynamodb.scan_forward",LNe="aws.dynamodb.segment",DNe="aws.dynamodb.total_segments",wNe="aws.dynamodb.count",UNe="aws.dynamodb.scanned_count",$Ne="aws.dynamodb.attribute_definitions",GNe="aws.dynamodb.global_secondary_index_updates",FNe="messaging.system",xNe="messaging.destination",VNe="messaging.destination_kind",BNe="messaging.temp_destination",kNe="messaging.protocol",jNe="messaging.protocol_version",QNe="messaging.url",qNe="messaging.message_id",HNe="messaging.conversation_id",YNe="messaging.message_payload_size_bytes",zNe="messaging.message_payload_compressed_size_bytes",WNe="messaging.operation",KNe="messaging.consumer_id",XNe="messaging.rabbitmq.routing_key",JNe="messaging.kafka.message_key",ZNe="messaging.kafka.consumer_group",eLe="messaging.kafka.client_id",tLe="messaging.kafka.partition",nLe="messaging.kafka.tombstone",rLe="rpc.system",iLe="rpc.service",aLe="rpc.method",oLe="rpc.grpc.status_code",sLe="rpc.jsonrpc.version",uLe="rpc.jsonrpc.request_id",cLe="rpc.jsonrpc.error_code",lLe="rpc.jsonrpc.error_message",dLe="message.type",fLe="message.id",_Le="message.compressed_size",pLe="message.uncompressed_size",l5e=null,d5e=null,f5e=null,_5e=null,p5e=null,h5e=null,S5e=null,g5e=null,m5e=null,v5e=null,E5e=null,y5e=null,T5e=null,A5e=null,C5e=null,b5e=null,O5e=null,R5e=null,P5e=null,M5e=null,I5e=null,N5e=null,L5e=null,D5e=null,w5e=null,U5e=null,$5e=null,G5e=null,F5e=null,x5e=null,V5e=null,B5e=null,k5e=null,j5e=null,Q5e=null,q5e=null,H5e=null,Y5e=null,z5e=null,W5e=null,K5e=null,X5e=null,J5e=null,Z5e=null,eXe=null,tXe=null,nXe=null,rXe=null,iXe=null,aXe=null,oXe=null,sXe=null,uXe=null,cXe=null,lXe=null,dXe=null,fXe=null,_Xe=null,pXe=null,hXe=null,hLe=PH,SLe=MH,SXe=null,gLe=IH,mLe=NH,vLe=LH,gXe=null,ELe=DH,mXe=null,vXe=null,yLe=wH,TLe=UH,EXe=null,yXe=null,TXe=null,AXe=null,CXe=null,bXe=null,OXe=null,RXe=null,PXe=null,MXe=null,IXe=null,NXe=null,LXe=null,DXe=null,wXe=null,UXe=null,$Xe=null,GXe=null,FXe=null,xXe=null,VXe=null,BXe=null,kXe=null,jXe=null,QXe=null,qXe=null,HXe=null,YXe=null,zXe=null,WXe=null,KXe=null,XXe=null,JXe=null,ZXe=null,e7e=null,t7e=null,n7e=null,r7e=null,i7e=null,a7e=null,o7e=null,s7e=null,u7e=null,c7e=null,l7e=null,d7e=null,f7e=null,_7e=null,p7e=null,h7e=null,S7e=null,g7e=null,m7e=null,v7e=null,E7e=null,y7e=null,T7e=Fo([rIe,iIe,aIe,oIe,sIe,uIe,cIe,lIe,dIe,fIe,_Ie,pIe,hIe,SIe,gIe,mIe,vIe,EIe,yIe,TIe,AIe,CIe,bIe,OIe,RIe,PIe,MIe,IIe,NIe,LIe,DIe,wIe,UIe,$Ie,GIe,FIe,xIe,VIe,BIe,kIe,jIe,QIe,qIe,HIe,YIe,zIe,WIe,KIe,XIe,JIe,ZIe,eNe,tNe,nNe,rNe,iNe,aNe,oNe,sNe,uNe,PH,MH,cNe,IH,NH,LH,lNe,DH,dNe,fNe,wH,UH,_Ne,pNe,hNe,SNe,gNe,mNe,vNe,ENe,yNe,TNe,ANe,CNe,bNe,ONe,RNe,PNe,MNe,INe,NNe,LNe,DNe,wNe,UNe,$Ne,GNe,FNe,xNe,VNe,BNe,kNe,jNe,QNe,qNe,HNe,YNe,zNe,WNe,KNe,XNe,JNe,ZNe,eLe,tLe,nLe,rLe,iLe,aLe,oLe,sLe,uLe,cLe,lLe,dLe,fLe,_Le,pLe]),ALe="other_sql",CLe="mssql",bLe="mysql",OLe="oracle",RLe="db2",PLe="postgresql",MLe="redshift",ILe="hive",NLe="cloudscape",LLe="hsqldb",DLe="progress",wLe="maxdb",ULe="hanadb",$Le="ingres",GLe="firstsql",FLe="edb",xLe="cache",VLe="adabas",BLe="firebird",kLe="derby",jLe="filemaker",QLe="informix",qLe="instantdb",HLe="interbase",YLe="mariadb",zLe="netezza",WLe="pervasive",KLe="pointbase",XLe="sqlite",JLe="sybase",ZLe="teradata",eDe="vertica",tDe="h2",nDe="coldfusion",rDe="cassandra",iDe="hbase",aDe="mongodb",oDe="redis",sDe="couchbase",uDe="couchdb",cDe="cosmosdb",lDe="dynamodb",dDe="neo4j",fDe="geode",_De="elasticsearch",pDe="memcached",hDe="cockroachdb",A7e=null,C7e=null,b7e=null,O7e=null,R7e=null,P7e=null,M7e=null,I7e=null,N7e=null,L7e=null,D7e=null,w7e=null,U7e=null,$7e=null,G7e=null,F7e=null,x7e=null,V7e=null,B7e=null,k7e=null,j7e=null,Q7e=null,q7e=null,H7e=null,Y7e=null,z7e=null,W7e=null,K7e=null,X7e=null,J7e=null,Z7e=null,e9e=null,t9e=null,n9e=null,r9e=null,i9e=null,a9e=null,o9e=null,s9e=null,u9e=null,c9e=null,l9e=null,d9e=null,f9e=null,_9e=null,p9e=null,h9e=null,S9e=Fo([ALe,CLe,bLe,OLe,RLe,PLe,MLe,ILe,NLe,LLe,DLe,wLe,ULe,$Le,GLe,FLe,xLe,VLe,BLe,kLe,jLe,QLe,qLe,HLe,YLe,zLe,WLe,KLe,XLe,JLe,ZLe,eDe,tDe,nDe,rDe,iDe,aDe,oDe,sDe,uDe,cDe,lDe,dDe,fDe,_De,pDe,hDe]),SDe="all",gDe="each_quorum",mDe="quorum",vDe="local_quorum",EDe="one",yDe="two",TDe="three",ADe="local_one",CDe="any",bDe="serial",ODe="local_serial",g9e=null,m9e=null,v9e=null,E9e=null,y9e=null,T9e=null,A9e=null,C9e=null,b9e=null,O9e=null,R9e=null,P9e=Fo([SDe,gDe,mDe,vDe,EDe,yDe,TDe,ADe,CDe,bDe,ODe]),RDe="datasource",PDe="http",MDe="pubsub",IDe="timer",NDe="other",M9e=null,I9e=null,N9e=null,L9e=null,D9e=null,w9e=Fo([RDe,PDe,MDe,IDe,NDe]),LDe="insert",DDe="edit",wDe="delete",U9e=null,$9e=null,G9e=null,F9e=Fo([LDe,DDe,wDe]),UDe="alibaba_cloud",$De="aws",GDe="azure",FDe="gcp",x9e=null,V9e=null,B9e=null,k9e=null,j9e=Fo([UDe,$De,GDe,FDe]),xDe="ip_tcp",VDe="ip_udp",BDe="ip",kDe="unix",jDe="pipe",QDe="inproc",qDe="other",Q9e=null,q9e=null,H9e=null,Y9e=null,z9e=null,W9e=null,K9e=null,X9e=Fo([xDe,VDe,BDe,kDe,jDe,QDe,qDe]),HDe="wifi",YDe="wired",zDe="cell",WDe="unavailable",KDe="unknown",J9e=null,Z9e=null,eJe=null,tJe=null,nJe=null,rJe=Fo([HDe,YDe,zDe,WDe,KDe]),XDe="gprs",JDe="edge",ZDe="umts",e0e="cdma",t0e="evdo_0",n0e="evdo_a",r0e="cdma2000_1xrtt",i0e="hsdpa",a0e="hsupa",o0e="hspa",s0e="iden",u0e="evdo_b",c0e="lte",l0e="ehrpd",d0e="hspap",f0e="gsm",_0e="td_scdma",p0e="iwlan",h0e="nr",S0e="nrnsa",g0e="lte_ca",iJe=null,aJe=null,oJe=null,sJe=null,uJe=null,cJe=null,lJe=null,dJe=null,fJe=null,_Je=null,pJe=null,hJe=null,SJe=null,gJe=null,mJe=null,vJe=null,EJe=null,yJe=null,TJe=null,AJe=null,CJe=null,bJe=Fo([XDe,JDe,ZDe,e0e,t0e,n0e,r0e,i0e,a0e,o0e,s0e,u0e,c0e,l0e,d0e,f0e,_0e,p0e,h0e,S0e,g0e]),m0e="1.0",v0e="1.1",E0e="2.0",y0e="SPDY",T0e="QUIC",OJe=null,RJe=null,PJe=null,MJe=null,IJe=null,NJe={HTTP_1_0:m0e,HTTP_1_1:v0e,HTTP_2_0:E0e,SPDY:y0e,QUIC:T0e},A0e="queue",C0e="topic",LJe=null,DJe=null,wJe=Fo([A0e,C0e]),b0e="receive",O0e="process",UJe=null,$Je=null,GJe=Fo([b0e,O0e]),R0e=0,P0e=1,M0e=2,I0e=3,N0e=4,L0e=5,D0e=6,w0e=7,U0e=8,$0e=9,G0e=10,F0e=11,x0e=12,V0e=13,B0e=14,k0e=15,j0e=16,FJe=null,xJe=null,VJe=null,BJe=null,kJe=null,jJe=null,QJe=null,qJe=null,HJe=null,YJe=null,zJe=null,WJe=null,KJe=null,XJe=null,JJe=null,ZJe=null,eZe=null,tZe={OK:R0e,CANCELLED:P0e,UNKNOWN:M0e,INVALID_ARGUMENT:I0e,DEADLINE_EXCEEDED:N0e,NOT_FOUND:L0e,ALREADY_EXISTS:D0e,PERMISSION_DENIED:w0e,RESOURCE_EXHAUSTED:U0e,FAILED_PRECONDITION:$0e,ABORTED:G0e,OUT_OF_RANGE:F0e,UNIMPLEMENTED:x0e,INTERNAL:V0e,UNAVAILABLE:B0e,DATA_LOSS:k0e,UNAUTHENTICATED:j0e},Q0e="SENT",q0e="RECEIVED",nZe=null,rZe=null,iZe=Fo([Q0e,q0e]),ti;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(ti||(ti={}));var IN;function H0e(){return IN||(IN=document.createElement("a")),IN}function NN(e,t){return t in e}function Su(e,t,n,r){var i=void 0,a=void 0;NN(n,t)&&typeof n[t]=="number"&&(i=n[t]);var c=r||ti.FETCH_START;if(NN(n,c)&&typeof n[c]=="number"&&(a=n[c]),i!==void 0&&a!==void 0&&i>=a)return e.addEvent(t,i),e}function $H(e,t){Su(e,ti.FETCH_START,t),Su(e,ti.DOMAIN_LOOKUP_START,t),Su(e,ti.DOMAIN_LOOKUP_END,t),Su(e,ti.CONNECT_START,t),NN(t,"name")&&t.name.startsWith("https:")&&Su(e,ti.SECURE_CONNECTION_START,t),Su(e,ti.CONNECT_END,t),Su(e,ti.REQUEST_START,t),Su(e,ti.RESPONSE_START,t),Su(e,ti.RESPONSE_END,t);var n=t[ti.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(yLe,n);var r=t[ti.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(TLe,r)}function Y0e(e){return e.slice().sort(function(t,n){var r=t[ti.FETCH_START],i=n[ti.FETCH_START];return r>i?1:r<i?-1:0})}function GH(){return typeof location<"u"?location.origin:void 0}function z0e(e,t,n,r,i,a){i===void 0&&(i=new WeakSet);var c=hc(e);e=c.toString();var f=K0e(e,t,n,r,i,a);if(f.length===0)return{mainRequest:void 0};if(f.length===1)return{mainRequest:f[0]};var y=Y0e(f);if(c.origin!==GH()&&y.length>1){var h=y[0],m=W0e(y,h[ti.RESPONSE_END],n),F=h[ti.RESPONSE_END],W=m[ti.FETCH_START];return W<F&&(m=h,h=void 0),{corsPreFlightRequest:h,mainRequest:m}}else return{mainRequest:f[0]}}function W0e(e,t,n){for(var r=_c(n),i=_c($l(t)),a=e[1],c,f=e.length,y=1;y<f;y++){var h=e[y],m=_c($l(h[ti.FETCH_START])),F=_c($l(h[ti.RESPONSE_END])),W=r-F;m>=i&&(!c||W<c)&&(c=W,a=h)}return a}function K0e(e,t,n,r,i,a){var c=_c(t),f=_c(n),y=r.filter(function(h){var m=_c($l(h[ti.FETCH_START])),F=_c($l(h[ti.RESPONSE_END]));return h.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&h.name===e&&m>=c&&F<=f});return y.length>0&&(y=y.filter(function(h){return!i.has(h)})),y}function hc(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);var t=H0e();return t.href=e,t}function aZe(e){var t=hc(e);return t.href}function X0e(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var n=Z0e(e,t);if(t&&n.indexOf("@id")>0)return n;var r="";return e.parentNode&&(r+=X0e(e.parentNode,!1)),r+=n,r}function J0e(e){if(!e.parentNode)return 0;var t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);var n=Array.from(e.parentNode.childNodes);return n=n.filter(function(r){var i=r.localName;return t.indexOf(r.nodeType)>=0&&i===e.localName}),n.length>=1?n.indexOf(e)+1:0}function Z0e(e,t){var n=e.nodeType,r=J0e(e),i="";if(n===Node.ELEMENT_NODE){var a=e.getAttribute("id");if(t&&a)return'//*[@id="'+a+'"]';i=e.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)i="text()";else if(n===Node.COMMENT_NODE)i="comment()";else return"";return i&&r>1?"/"+i+"["+r+"]":"/"+i}function ewe(e,t){var n=t||[];(typeof n=="string"||n instanceof RegExp)&&(n=[n]);var r=hc(e);return r.origin===GH()?!0:n.some(function(i){return RH(e,i)})}var gu;(function(e){e.METHOD_OPEN="open",e.METHOD_SEND="send",e.EVENT_ABORT="abort",e.EVENT_ERROR="error",e.EVENT_LOAD="loaded",e.EVENT_TIMEOUT="timeout"})(gu||(gu={}));var FH="0.52.1",LN;(function(e){e.HTTP_STATUS_TEXT="http.status_text"})(LN||(LN={}));var twe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nwe=300,rwe=function(e){twe(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,"@opentelemetry/instrumentation-xml-http-request",FH,n)||this;return r.component="xml-http-request",r.version=FH,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return t.prototype.init=function(){},t.prototype._addHeaders=function(n,r){var i=hc(r).href;if(!ewe(i,this.getConfig().propagateTraceHeaderCorsUrls)){var a={};Wf.inject(La.active(),a),Object.keys(a).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var c={};Wf.inject(La.active(),c),Object.keys(c).forEach(function(f){n.setRequestHeader(f,String(c[f]))})},t.prototype._addChildSpan=function(n,r){var i=this;La.with(Ea.setSpan(La.active(),n),function(){var a=i.tracer.startSpan("CORS Preflight",{startTime:r[ti.FETCH_START]});i.getConfig().ignoreNetworkEvents||$H(a,r),a.end(r[ti.RESPONSE_END])})},t.prototype._addFinalSpanAttributes=function(n,r,i){if(typeof i=="string"){var a=hc(i);r.status!==void 0&&n.setAttribute(vLe,r.status),r.statusText!==void 0&&n.setAttribute(LN.HTTP_STATUS_TEXT,r.statusText),n.setAttribute(gLe,a.host),n.setAttribute(mLe,a.protocol.replace(":","")),n.setAttribute(ELe,navigator.userAgent)}},t.prototype._applyAttributesAfterXHR=function(n,r){var i=this,a=this.getConfig().applyCustomAttributesOnSpan;typeof a=="function"&&RMe(function(){return a(n,r)},function(c){!c||i._diag.error("applyCustomAttributesOnSpan",c)},!0)},t.prototype._addResourceObserver=function(n,r){var i=this._xhrMem.get(n);!i||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(i.createdResources={observer:new PerformanceObserver(function(a){var c=a.getEntries(),f=hc(r);c.forEach(function(y){y.initiatorType==="xmlhttprequest"&&y.name===f.href&&i.createdResources&&i.createdResources.entries.push(y)})}),entries:[]},i.createdResources.observer.observe({entryTypes:["resource"]}))},t.prototype._clearResources=function(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(rS.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},t.prototype._findResourceAndAddNetworkEvents=function(n,r,i,a,c){if(!(!i||!a||!c||!n.createdResources)){var f=n.createdResources.entries;(!f||!f.length)&&(f=rS.getEntriesByType("resource"));var y=z0e(hc(i).href,a,c,f,this._usedResources);if(y.mainRequest){var h=y.mainRequest;this._markResourceAsUsed(h);var m=y.corsPreFlightRequest;m&&(this._addChildSpan(r,m),this._markResourceAsUsed(m)),this.getConfig().ignoreNetworkEvents||$H(r,h)}}},t.prototype._cleanPreviousSpanInformation=function(n){var r=this._xhrMem.get(n);if(r){var i=r.callbackToRemoveEvents;i&&i(),this._xhrMem.delete(n)}},t.prototype._createSpan=function(n,r,i){var a;if(nIe(r,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var c=i.toUpperCase(),f=this.tracer.startSpan(c,{kind:Ny.CLIENT,attributes:(a={},a[hLe]=i,a[SLe]=hc(r).toString(),a)});return f.addEvent(gu.METHOD_OPEN),this._cleanPreviousSpanInformation(n),this._xhrMem.set(n,{span:f,spanUrl:r}),f},t.prototype._markResourceAsUsed=function(n){this._usedResources.add(n)},t.prototype._patchOpen=function(){var n=this;return function(r){var i=n;return function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var y=c[0],h=c[1];return i._createSpan(this,h,y),r.apply(this,c)}}},t.prototype._patchSend=function(){var n=this;function r(m,F,W,ye){var Te=F.callbackToRemoveEvents;typeof Te=="function"&&Te();var Re=F.span,Ye=F.spanUrl,qe=F.sendStartTime;Re&&(n._findResourceAndAddNetworkEvents(F,Re,Ye,qe,W),Re.addEvent(m,ye),n._addFinalSpanAttributes(Re,F,Ye),Re.end(ye),n._tasksCount--),n._clearResources()}function i(m,F){var W=n._xhrMem.get(F);if(!!W){W.status=F.status,W.statusText=F.statusText,n._xhrMem.delete(F),W.span&&n._applyAttributesAfterXHR(W.span,F);var ye=rN(),Te=Date.now();setTimeout(function(){r(m,W,ye,Te)},nwe)}}function a(){i(gu.EVENT_ERROR,this)}function c(){i(gu.EVENT_ABORT,this)}function f(){i(gu.EVENT_TIMEOUT,this)}function y(){this.status<299?i(gu.EVENT_LOAD,this):i(gu.EVENT_ERROR,this)}function h(m){m.removeEventListener("abort",c),m.removeEventListener("error",a),m.removeEventListener("load",y),m.removeEventListener("timeout",f);var F=n._xhrMem.get(m);F&&(F.callbackToRemoveEvents=void 0)}return function(m){return function(){for(var W=this,ye=[],Te=0;Te<arguments.length;Te++)ye[Te]=arguments[Te];var Re=n._xhrMem.get(this);if(!Re)return m.apply(this,ye);var Ye=Re.span,qe=Re.spanUrl;return Ye&&qe&&La.with(Ea.setSpan(La.active(),Ye),function(){n._tasksCount++,Re.sendStartTime=rN(),Ye.addEvent(gu.METHOD_SEND),W.addEventListener("abort",c),W.addEventListener("error",a),W.addEventListener("load",y),W.addEventListener("timeout",f),Re.callbackToRemoveEvents=function(){h(W),Re.createdResources&&Re.createdResources.observer.disconnect()},n._addHeaders(W,qe),n._addResourceObserver(W,qe)}),m.apply(this,ye)}}},t.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),AH(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),AH(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},t.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},t}(eIe);const iwe="https?://api-gateway.[a-zA-Z]+.icanbwell.com",xH=new RegExp(`^(?!${iwe})`);function oZe(e){return xH.test(e)}function awe(e){return ure({node:()=>null,browser:()=>new rwe({ignoreUrls:[xH],propagateTraceHeaderCorsUrls:[e.graphQL.apiUrl,e.graphQL.unauthApiUrl]})})}var ks=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},DN=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},t_,n_,sS,ky,VH,BH,kH,jH;class owe{constructor(t){t_.add(this),n_.set(this,void 0),sS.set(this,void 0),ky.set(this,void 0),DN(this,n_,ks(this,t_,"m",VH).call(this,t),"f"),DN(this,sS,ks(this,t_,"m",BH).call(this),"f"),DN(this,ky,ks(this,t_,"m",kH).call(this,t),"f"),this.fetchInstrumentation=ks(this,t_,"m",jH).call(this,t)}loggerProvider(){return ks(this,ky,"f")}resource(){return ks(this,n_,"f")}tracerProvider(){return ks(this,sS,"f")}}n_=new WeakMap,sS=new WeakMap,ky=new WeakMap,t_=new WeakSet,VH=function(t){var n,r,i,a;return vy.default().merge(new vy({[CPe]:"bwell-sdk-typescript",[OPe]:Sre(),[RPe]:"typescript",[bPe]:"com.bwell",[APe]:t.context.env,"client.key":t.context.clientKey,"user.id":(r=(n=t.context.user)===null||n===void 0?void 0:n.clientFhirPersonId)!==null&&r!==void 0?r:"","user.bwell-person-id":(a=(i=t.context.user)===null||i===void 0?void 0:i.bwellFhirPersonId)!==null&&a!==void 0?a:""}))},BH=function(){const t=new eRe({resource:ks(this,n_,"f")});return t.register({propagator:new Wce}),t},kH=function(t){const n=new rEe({resource:ks(this,n_,"f")}),r=new Gde({url:`${t.telemetry.collectorUrl}/otlp-http/v1/logs`}),i=new _Ee(r);return n.addLogRecordProcessor(i),n},jH=function(t){const n=awe(t);return n===null?null:(n.setTracerProvider(ks(this,sS,"f")),n)};var Bl=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},wN=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},ua=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},r_,Sc,jy,uS,_s,UN,QH,qH,$N;class HH{constructor(t,n,r,i){r_.add(this),jy.set(this,void 0),uS.set(this,void 0),_s.set(this,void 0),wN(this,jy,n,"f"),wN(this,uS,r.getLogger("TokenManager"),"f"),wN(this,_s,i,"f")}static initialize(t,n){return Bl(this,arguments,void 0,function*(r,i,a=new Hi,c=new PM){const f=ua(Sc,Sc,"m",UN).call(Sc,r.accessToken);if(f.failure())return f.intoFailure();const y=new Sc(Object.assign(Object.assign({},r),{expiration:f.data()}),i,a,c);try{yield Promise.all([c.set("idToken",r.idToken),c.set("clientKey",r.clientKey),c.set("accessToken",r.accessToken),c.set("refreshToken",r.refreshToken),c.set("expiration",f.data().toISOString())])}catch{return en.failure(new bf("Failed to set tokens in token storage"))}return en.success(y)})}getAccessToken(){return Bl(this,void 0,void 0,function*(){if(yield ua(this,r_,"m",qH).call(this)){const r=yield ua(this,r_,"m",$N).call(this);if(r.failure())return r.intoFailure()}const n=yield ua(this,_s,"f").get("accessToken");return Wa(n)?en.failure(new bf("accessToken not found in token storage")):en.success(n)})}getIdToken(){return Bl(this,void 0,void 0,function*(){return yield ua(this,_s,"f").get("idToken")})}refreshAccessToken(){return Bl(this,void 0,void 0,function*(){return ua(this,r_,"m",$N).call(this)})}}Sc=HH,jy=new WeakMap,uS=new WeakMap,_s=new WeakMap,r_=new WeakSet,UN=function(t){try{const n=dre(t);return en.success(new Date(n))}catch(n){if(!sa.isBwellError(n))throw n;return en.failure(n)}},QH=function(){return Bl(this,void 0,void 0,function*(){const t=yield ua(this,_s,"f").get("expiration");if(Wa(t))throw new Error("expiration not found in token storage");return new Date(t)})},qH=function(){return Bl(this,void 0,void 0,function*(){const n=(yield ua(this,r_,"m",QH).call(this)).getTime(),r=Date.now();return n<r})},$N=function(){return Bl(this,void 0,void 0,function*(){ua(this,uS,"f").verbose("refreshing access token...");const[t,n]=yield Promise.all([ua(this,_s,"f").get("refreshToken"),ua(this,_s,"f").get("clientKey")]);if(Wa(t)||Wa(n))return en.failure(new bf("refreshToken or clientKey not found in token storage"));const r=yield ua(this,jy,"f").refreshAccessToken({refreshToken:t,clientKey:n});if(ua(this,uS,"f").verbose("refreshing access token complete"),r.failure())return r.intoFailure();const i=r.data();yield ua(this,_s,"f").set("accessToken",i.accessToken),yield ua(this,_s,"f").set("idToken",i.idToken);const a=ua(Sc,Sc,"m",UN).call(Sc,i.accessToken);return a.failure()?a.intoFailure():(yield ua(this,_s,"f").set("expiration",a.data().toISOString()),en.success(null))})};var cS=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function f(m){try{h(r.next(m))}catch(F){c(F)}}function y(m){try{h(r.throw(m))}catch(F){c(F)}}function h(m){m.done?a(m.value):i(m.value).then(f,y)}h((r=r.apply(e,t||[])).next())})},lo=function(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n},sn=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},gi,i_,fo,lS,GN,FN,xN,VN,js,dS,kl,jl,Qy,a_,BN,_o,kN,jN,QN,YH;class swe{constructor(t){gi.add(this),i_.set(this,void 0),fo.set(this,void 0),lS.set(this,void 0),GN.set(this,new Zie),FN.set(this,new Que),xN.set(this,new Hue),VN.set(this,new Zue),js.set(this,void 0),dS.set(this,void 0),kl.set(this,void 0),jl.set(this,void 0),Qy.set(this,void 0),a_.set(this,void 0),lo(this,i_,t,"f"),lo(this,fo,IE.initialize(sn(this,i_,"f")).data(),"f"),lo(this,lS,sn(this,gi,"m",QN).call(this),"f"),lo(this,js,sn(this,gi,"m",jN).call(this),"f"),lo(this,kl,sn(this,js,"f").getLogger("BWellSDK"),"f"),lo(this,jl,sn(this,xN,"f").createIdentityManager(sn(this,fo,"f"),sn(this,js,"f")),"f"),lo(this,Qy,new tae(sn(this,jl,"f")),"f")}initialize(){return cS(this,void 0,void 0,function*(){sn(this,kl,"f").verbose("initializing SDKConfig...");const t=yield sn(this,Qy,"f").initialize(sn(this,i_,"f"));return t.failure()?t.intoFailure():(sn(this,kl,"f").verbose("SDK Config initialized successfully"),lo(this,fo,t.data(),"f"),sn(this,gi,"m",kN).call(this),en.success(null))})}authenticate(t){return cS(this,void 0,void 0,function*(){const r=yield sn(this,VN,"f").createAuthStrategy(sn(this,fo,"f"),sn(this,jl,"f"),t,sn(this,js,"f")).authenticate(t);if(r.failure())return r.intoFailure();const i=r.data();return sn(this,gi,"m",BN).call(this,i)})}setAuthTokens(t){return cS(this,void 0,void 0,function*(){const n=yield sn(this,gi,"m",BN).call(this,t);if(n.failure())return n.intoFailure();if(sn(this,a_,"f")===void 0)throw new Error("TokenManager not set");const r=yield sn(this,a_,"f").refreshAccessToken();return r.failure()?r.intoFailure():en.success(null)})}createGuestAccessToken(){return cS(this,void 0,void 0,function*(){return sn(this,jl,"f").createGuestAccessToken({clientKey:sn(this,fo,"f").context.clientKey})})}get health(){return sn(this,gi,"m",_o).call(this).health}get healthSpace(){return sn(this,gi,"m",_o).call(this).healthSpace}get user(){return sn(this,gi,"m",_o).call(this).user}get connection(){return sn(this,gi,"m",_o).call(this).connection}get activity(){return sn(this,gi,"m",_o).call(this).activity}get device(){return sn(this,gi,"m",_o).call(this).device}get event(){return sn(this,gi,"m",_o).call(this).event}get search(){return sn(this,gi,"m",_o).call(this).search}get financial(){return sn(this,gi,"m",_o).call(this).financial}get language(){return sn(this,gi,"m",_o).call(this).language}get questionnaire(){return sn(this,gi,"m",_o).call(this).questionnaire}get support(){return sn(this,gi,"m",_o).call(this).support}}i_=new WeakMap,fo=new WeakMap,lS=new WeakMap,GN=new WeakMap,FN=new WeakMap,xN=new WeakMap,VN=new WeakMap,js=new WeakMap,dS=new WeakMap,kl=new WeakMap,jl=new WeakMap,Qy=new WeakMap,a_=new WeakMap,gi=new WeakSet,BN=function(t){return cS(this,void 0,void 0,function*(){try{const i=pre(t.idToken);jn(i)&&sn(this,fo,"f").setContextUser(i)}catch(i){if(sa.isBwellError(i))return en.failure(i);throw i}const n=Object.assign(Object.assign({},t),{clientKey:sn(this,fo,"f").context.clientKey}),r=yield HH.initialize(n,sn(this,jl,"f"),sn(this,js,"f"),sn(this,i_,"f").tokenStorage);return r.failure()?r.intoFailure():(lo(this,a_,r.data(),"f"),sn(this,gi,"m",kN).call(this),lo(this,dS,sn(this,gi,"m",YH).call(this,sn(this,a_,"f")),"f"),en.success(null))})},_o=function(){if(sn(this,dS,"f")===void 0)throw new Error("Unintialized");return sn(this,dS,"f")},kN=function(){sn(this,kl,"f").verbose("reinitializing SDK dependencies"),lo(this,lS,sn(this,gi,"m",QN).call(this),"f"),lo(this,js,sn(this,gi,"m",jN).call(this),"f"),lo(this,kl,sn(this,js,"f").getLogger("BwellSDK"),"f")},jN=function(){return sn(this,GN,"f").createLogProvider(sn(this,fo,"f"),sn(this,lS,"f"))},QN=function(){if(!!sn(this,fo,"f").telemetry.enabled)return new owe(sn(this,fo,"f"))},YH=function(t){return sn(this,FN,"f").createApiProvider(sn(this,fo,"f"),t,sn(this,js,"f"))};var o_,fS,s_,qN,mu,xo,ea,_S,Ql,pS,gc,mc,zH,qy;const uwe=6e4;class cwe{constructor(t,n){o_.add(this),fS.set(this,void 0),s_.set(this,void 0),qN.set(this,Ute.EventBus.getInstance(ne.mO).mainChannel()),mu.set(this,new uB),xo.set(this,void 0),ea.set(this,void 0),_S.set(this,void 0),Ql.set(this,void 0),pS.set(this,void 0),gc.set(this,void 0),mc.set(this,void 0),this.isInitialized=!1,(0,R.GG)(this,fS,t.metadata.version,"f"),(0,R.GG)(this,_S,n,"f"),(0,R.gn)(this,qN,"f").addListener(r=>{var{channel:i,topic:a}=r,c=r.payload,{name:f}=c,y=(0,R.Tt)(c,["name"]);(0,R.gn)(this,mu,"f").emit("embeddable",{id:i,name:f,type:a,payload:y})})}init(t){return(0,R.sH)(this,void 0,void 0,function*(){const{clientKey:n,initialUserToken:r,telemetry:i={},variant:a=z.DEFAULT}=typeof t=="string"?{clientKey:t,initialUserToken:void 0}:t;(0,R.GG)(this,pS,typeof i=="boolean"?{logging:i,tracing:i,rum:i}:Object.assign({logging:!0,tracing:!0,rum:!0},i),"f"),(0,R.GG)(this,xo,(0,zN.default)({telemetry:(0,R.gn)(this,pS,"f"),appVersion:(0,R.gn)(this,fS,"f")}),"f"),(0,R.GG)(this,mc,new PM,"f"),(0,R.GG)(this,gc,new swe({clientKey:n,tokenStorage:(0,R.gn)(this,mc,"f")}),"f");try{yield(0,R.gn)(this,o_,"m",zH).call(this,n,a),r&&(yield this.setUserToken(r))}catch(c){throw(0,R.gn)(this,mu,"f").emit("error"),(0,R.gn)(this,xo,"f").error(c,"initialization error"),c instanceof ns.b&&c?.emitToNativeComponent()&&TP.b.events.emit("error",c.toJSON()),c}})}setUserToken(t){var n;return(0,R.sH)(this,void 0,void 0,function*(){if(!(!((n=(0,R.gn)(this,ea,"f"))===null||n===void 0)&&n.services))throw new ns.b('"setUserToken" method called before bwell initialized.',{errorCode:Ms.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const r=(0,R.gn)(this,ea,"f").services[vn.apiClient.id],i=(0,R.gn)(this,ea,"f").services[vn.auth.id],a=(0,R.gn)(this,ea,"f").services[vn.state.id];try{(0,R.gn)(this,s_,"f")&&(0,R.gn)(this,s_,"f")!==t&&(r.clearAuth(),yield r.clearStore(),a.logoutUser());const c=yield i.getTokenData(t);(0,R.GG)(this,s_,t,"f");const{accessToken:{jwtToken:f},idToken:{jwtToken:y},refreshToken:{token:h}}=c,{apiMap:m,key:F}=a.getClientContext();r.enableAuth({tokens:{accessToken:f,idToken:y},onRefresh:()=>(0,R.sH)(this,void 0,void 0,function*(){var W;let ye;const Te=new hR.Auth(new Z.ApiClient(m),(0,R.gn)(this,gc,"f"),(0,R.gn)(this,mc,"f"));try{ye=yield Te.refreshTokens(h,F)}catch(Re){(W=(0,R.gn)(this,xo,"f"))===null||W===void 0||W.error(Re,"Error refreshing user token. Attempting fresh token exchange.");const{accessToken:{jwtToken:Ye},idToken:{jwtToken:qe},refreshToken:{token:Ke}}=yield Te.getTokenData(t);ye={accessToken:Ye,idToken:qe,refreshToken:Ke}}return a.updateTokens(ye),ye})}),a.setUser({tokenData:c}),TP.b.events.emit("onauthsuccess",{user:{id:this.getUserId()}})}catch(c){throw new ns.b("There was an error during the token exchange process.",{errorCode:Ms.ErrorCode.TOKEN_EXCHANGE,cause:c})}})}getUser(){return(0,R.gn)(this,o_,"m",qy).call(this,"getUser")}getToken(){const{idToken:{jwtToken:t},refreshToken:{token:n},accessToken:{jwtToken:r}}=(0,R.gn)(this,o_,"m",qy).call(this,"getUserTokenData");return{idToken:t,refreshToken:n,accessToken:r}}getUserId(){const{idToken:{payload:{"custom:clientFhirPatientId":t}}}=(0,R.gn)(this,o_,"m",qy).call(this,"getUserTokenData");if(!t)throw new ns.b("bwell Global object must be authenticated with an actual user.",{errorCode:Ms.ErrorCode.UNKNOWN});return t}on(t,n){(0,R.gn)(this,mu,"f").on(t,n)}once(t,n){(0,R.gn)(this,mu,"f").once(t,n)}off(t,n){(0,R.gn)(this,mu,"f").off(t,n)}_registerEmbeddableContent(t){(0,R.GG)(this,Ql,t,"f")}focusEmbeddableContent(){return(0,R.sH)(this,void 0,void 0,function*(){return new Promise((t,n)=>{if((0,R.gn)(this,Ql,"f"))(0,R.gn)(this,Ql,"f").focus(),t();else{let r=0;const i=setInterval(()=>{r+=1,(0,R.gn)(this,Ql,"f")?(clearInterval(i),(0,R.gn)(this,Ql,"f").focus(),t()):r===uwe/500&&(clearInterval(i),n(new Error("Embeddable content not found.")))},500)}})})}}fS=new WeakMap,s_=new WeakMap,qN=new WeakMap,mu=new WeakMap,xo=new WeakMap,ea=new WeakMap,_S=new WeakMap,Ql=new WeakMap,pS=new WeakMap,gc=new WeakMap,mc=new WeakMap,o_=new WeakSet,zH=function(t,n){var r,i,a,c,f,y;return(0,R.sH)(this,void 0,void 0,function*(){const h=Zne(t),{identityGateway:m}=kee(new Z.ApiClient(h));let F;try{const[qe,Ke]=yield Promise.all([(r=(0,R.gn)(this,gc,"f"))===null||r===void 0?void 0:r.initialize(),m.getClientRecord({context:{headers:{ClientKey:t,variant:n}}})]),Et=Ke.clientRecord,{clientSlug:Ut}=Et,dn=(0,R.Tt)(Et,["clientSlug"]);if(F=Object.assign({key:t,slug:Ut,variant:n},dn),qe?.success()&&((i=(0,R.gn)(this,xo,"f"))===null||i===void 0||i.info({},"Successfully initialized BWellSDK")),qe?.failure())throw(a=(0,R.gn)(this,xo,"f"))===null||a===void 0||a.error(qe.error(),"Error initializing BWellSDK"),qe.error()}catch(qe){throw new ns.b("Failed to initialize embeddable",{errorCode:Ms.ErrorCode.CLIENT_UNKNOWN,cause:qe})}const W={client:F,telemetry:(0,R.gn)(this,pS,"f"),metadata:{version:(0,R.gn)(this,fS,"f")}};if(this.isInitialized){if(this.isInitialized&&(0,R.gn)(this,ea,"f")){const qe=(0,R.gn)(this,ea,"f").services[vn.state.id];if(F.key!==qe.getClientContext().key||F.variant!==qe.getClientContext().variant)(0,R.GG)(this,s_,void 0,"f"),(0,R.gn)(this,ea,"f").reboot({initialState:W,bwellSdk:{sdk:(0,R.gn)(this,gc,"f"),tokenStorage:(0,R.gn)(this,mc,"f")}});else return}}else{const qe={globalEventEmitter:(0,R.gn)(this,mu,"f"),initialState:W,bwellSdk:{sdk:(0,R.gn)(this,gc,"f"),tokenStorage:(0,R.gn)(this,mc,"f")}};(0,R.gn)(this,_S,"f")?(0,R.GG)(this,ea,(0,R.gn)(this,_S,"f").create(qe),"f"):(0,R.GG)(this,ea,new Xne(qe),"f")}if((0,R.gn)(this,ea,"f")===void 0)throw(0,R.gn)(this,xo,"f")&&(0,R.gn)(this,xo,"f").fatal("`bwell.init` called when already initialized and no orchestrator found."),new ns.b("Unexpected error",{errorCode:Ms.ErrorCode.UNKNOWN});const ye=(0,R.gn)(this,ea,"f").services[vn.identityUtils.id],Te=(0,R.gn)(this,ea,"f").services[vn.apiClient.id],Re=(0,R.gn)(this,ea,"f").services[vn.bwellSdk.id];let Ye=ye.getStoredTokens();if(!Ye&&n===z.GUEST){const qe=(yield Re.createGuestAccessToken()).data();Ye={accessToken:{jwtToken:qe.accessToken,payload:{}},idToken:{jwtToken:qe.identityToken,payload:{}},refreshToken:{token:qe.refreshToken}},ye.storeTokens(Ye)}if(Ye){const qe=(0,R.gn)(this,ea,"f").services[vn.state.id],{refreshToken:Ke,accessToken:{jwtToken:Et},idToken:{jwtToken:Ut}}=Ye;Te.enableAuth({tokens:{accessToken:Et,idToken:Ut},onRefresh:()=>(0,R.sH)(this,void 0,void 0,function*(){const $n=new hR.Auth(new Z.ApiClient(h),(0,R.gn)(this,gc,"f"),(0,R.gn)(this,mc,"f"));try{const Fn=yield $n.refreshTokens(Ke.token,t);return qe.updateTokens(Fn),Fn}catch{throw yield ye.logout(),new ns.b("Refresh token failed in credential auth strategy.",{errorCode:Ms.ErrorCode.TOKEN_EXCHANGE})}})}),(c=(0,R.gn)(this,xo,"f"))===null||c===void 0||c.debug("Setting auth tokens for SDK");const dn=yield Re.setAuthTokens({accessToken:Et,idToken:Ut,refreshToken:Ke.token});if(dn.failure())throw(f=(0,R.gn)(this,xo,"f"))===null||f===void 0||f.error(dn.error(),"BWell SDK set auth tokens error"),new ns.b(dn.error().message,{errorCode:Ms.ErrorCode.TOKEN_EXCHANGE});(y=(0,R.gn)(this,xo,"f"))===null||y===void 0||y.info("BWell SDK set auth tokens successful"),qe.setUser({tokenData:Ye})}(0,R.gn)(this,mu,"f").emit("initialized"),this.isInitialized=!0})},qy=function(t){var n;if(!(!((n=(0,R.gn)(this,ea,"f"))===null||n===void 0)&&n.services))throw new ns.b('"#getStateSafe" method called before bwell initialized.',{errorCode:Ms.ErrorCode.METHOD_CALLED_BEFORE_INITIALIZATION});const i=(0,R.gn)(this,ea,"f").services[vn.state.id][t]();if(!i)throw new ns.b("User token must be set before data can be retrieved.",{errorCode:Ms.ErrorCode.UNKNOWN});return i}},5888:(ce,u,_)=>{"use strict";_.d(u,{L:()=>P});const{toString:d,hasOwnProperty:l}=Object.prototype,g=Function.prototype.toString,b=new Map;function P(w,k){try{return O(w,k)}finally{b.clear()}}var T=null;function O(w,k){if(w===k)return!0;const R=d.call(w),z=d.call(k);if(R!==z)return!1;switch(R){case"[object Array]":if(w.length!==k.length)return!1;case"[object Object]":{if(N(w,k))return!0;const ne=A(w),Z=A(k),q=ne.length;if(q!==Z.length)return!1;for(let M=0;M<q;++M)if(!l.call(k,ne[M]))return!1;for(let M=0;M<q;++M){const ee=ne[M];if(!O(w[ee],k[ee]))return!1}return!0}case"[object Error]":return w.name===k.name&&w.message===k.message;case"[object Number]":if(w!==w)return k!==k;case"[object Boolean]":case"[object Date]":return+w==+k;case"[object RegExp]":case"[object String]":return w==`${k}`;case"[object Map]":case"[object Set]":{if(w.size!==k.size)return!1;if(N(w,k))return!0;const ne=w.entries(),Z=R==="[object Map]";for(;;){const q=ne.next();if(q.done)break;const[M,ee]=q.value;if(!k.has(M)||Z&&!O(ee,k.get(M)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":w=new Uint8Array(w),k=new Uint8Array(k);case"[object DataView]":{let ne=w.byteLength;if(ne===k.byteLength)for(;ne--&&w[ne]===k[ne];);return ne===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const ne=g.call(w);return ne!==g.call(k)?!1:!D(ne,C)}}return!1}function A(w){return Object.keys(w).filter(L,w)}function L(w){return this[w]!==void 0}const C="{ [native code] }";function D(w,k){const R=w.length-k.length;return R>=0&&w.indexOf(k,R)===R}function N(w,k){let R=b.get(w);if(R){if(R.has(k))return!0}else b.set(w,R=new Set);return R.add(k),!1}},3217:(ce,u,_)=>{"use strict";_.d(u,{U:()=>d});function d(l,g){if(!Boolean(l))throw new Error(g)}},5198:(ce,u,_)=>{"use strict";_.d(u,{N:()=>g});const d=10,l=2;function g(C){return b(C,[])}function b(C,D){switch(typeof C){case"string":return JSON.stringify(C);case"function":return C.name?`[function ${C.name}]`:"[function]";case"object":return P(C,D);default:return String(C)}}function P(C,D){if(C===null)return"null";if(D.includes(C))return"[Circular]";const N=[...D,C];if(T(C)){const w=C.toJSON();if(w!==C)return typeof w=="string"?w:b(w,N)}else if(Array.isArray(C))return A(C,N);return O(C,N)}function T(C){return typeof C.toJSON=="function"}function O(C,D){const N=Object.entries(C);if(N.length===0)return"{}";if(D.length>l)return"["+L(C)+"]";const w=N.map(([k,R])=>k+": "+b(R,D));return"{ "+w.join(", ")+" }"}function A(C,D){if(C.length===0)return"[]";if(D.length>l)return"[Array]";const N=Math.min(d,C.length),w=C.length-N,k=[];for(let R=0;R<N;++R)k.push(b(C[R],D));return w===1?k.push("... 1 more item"):w>1&&k.push(`... ${w} more items`),"["+k.join(", ")+"]"}function L(C){const D=Object.prototype.toString.call(C).replace(/^\[object /,"").replace(/]$/,"");if(D==="Object"&&typeof C.constructor=="function"){const N=C.constructor.name;if(typeof N=="string"&&N!=="")return N}return D}},9762:(ce,u,_)=>{"use strict";_.d(u,{Ll:()=>P,aD:()=>g,aZ:()=>d,cE:()=>T,ou:()=>l});class d{constructor(A,L,C){this.start=A.start,this.end=L.end,this.startToken=A,this.endToken=L,this.source=C}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class l{constructor(A,L,C,D,N,w){this.kind=A,this.start=L,this.end=C,this.line=D,this.column=N,this.value=w,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const g={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},b=new Set(Object.keys(g));function P(O){const A=O?.kind;return typeof A=="string"&&b.has(A)}var T;(function(O){O.QUERY="query",O.MUTATION="mutation",O.SUBSCRIPTION="subscription"})(T||(T={}))},7714:(ce,u,_)=>{"use strict";_.d(u,{OC:()=>l,yo:()=>P});var d=_(5881);function l(T){var O;let A=Number.MAX_SAFE_INTEGER,L=null,C=-1;for(let N=0;N<T.length;++N){var D;const w=T[N],k=g(w);k!==w.length&&(L=(D=L)!==null&&D!==void 0?D:N,C=N,N!==0&&k<A&&(A=k))}return T.map((N,w)=>w===0?N:N.slice(A)).slice((O=L)!==null&&O!==void 0?O:0,C+1)}function g(T){let O=0;for(;O<T.length&&(0,d.i0)(T.charCodeAt(O));)++O;return O}function b(T){if(T==="")return!0;let O=!0,A=!1,L=!0,C=!1;for(let D=0;D<T.length;++D)switch(T.codePointAt(D)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(O&&!C)return!1;C=!0,O=!0,A=!1;break;case 9:case 32:A||(A=O);break;default:L&&(L=A),O=!1}return!(O||L&&C)}function P(T,O){const A=T.replace(/"""/g,'\\"""'),L=A.split(/\r\n|[\n\r]/g),C=L.length===1,D=L.length>1&&L.slice(1).every(q=>q.length===0||(0,d.i0)(q.charCodeAt(0))),N=A.endsWith('\\"""'),w=T.endsWith('"')&&!N,k=T.endsWith("\\"),R=w||k,z=!(O!=null&&O.minimize)&&(!C||T.length>70||R||D||N);let ne="";const Z=C&&(0,d.i0)(T.charCodeAt(0));return(z&&!Z||D)&&(ne+=`
|
|
17498
17498
|
`),ne+=A,(z||R)&&(ne+=`
|
|
17499
17499
|
`),'"""'+ne+'"""'}},5881:(ce,u,_)=>{"use strict";_.d(u,{i0:()=>d,un:()=>b,xr:()=>P,yp:()=>l});function d(T){return T===9||T===32}function l(T){return T>=48&&T<=57}function g(T){return T>=97&&T<=122||T>=65&&T<=90}function b(T){return g(T)||T===95}function P(T){return g(T)||l(T)||T===95}},2455:(ce,u,_)=>{"use strict";_.d(u,{b:()=>d});var d;(function(l){l.NAME="Name",l.DOCUMENT="Document",l.OPERATION_DEFINITION="OperationDefinition",l.VARIABLE_DEFINITION="VariableDefinition",l.SELECTION_SET="SelectionSet",l.FIELD="Field",l.ARGUMENT="Argument",l.FRAGMENT_SPREAD="FragmentSpread",l.INLINE_FRAGMENT="InlineFragment",l.FRAGMENT_DEFINITION="FragmentDefinition",l.VARIABLE="Variable",l.INT="IntValue",l.FLOAT="FloatValue",l.STRING="StringValue",l.BOOLEAN="BooleanValue",l.NULL="NullValue",l.ENUM="EnumValue",l.LIST="ListValue",l.OBJECT="ObjectValue",l.OBJECT_FIELD="ObjectField",l.DIRECTIVE="Directive",l.NAMED_TYPE="NamedType",l.LIST_TYPE="ListType",l.NON_NULL_TYPE="NonNullType",l.SCHEMA_DEFINITION="SchemaDefinition",l.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",l.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",l.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",l.FIELD_DEFINITION="FieldDefinition",l.INPUT_VALUE_DEFINITION="InputValueDefinition",l.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",l.UNION_TYPE_DEFINITION="UnionTypeDefinition",l.ENUM_TYPE_DEFINITION="EnumTypeDefinition",l.ENUM_VALUE_DEFINITION="EnumValueDefinition",l.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",l.DIRECTIVE_DEFINITION="DirectiveDefinition",l.SCHEMA_EXTENSION="SchemaExtension",l.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",l.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",l.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",l.UNION_TYPE_EXTENSION="UnionTypeExtension",l.ENUM_TYPE_EXTENSION="EnumTypeExtension",l.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(d||(d={}))},5157:(ce,u,_)=>{"use strict";_.d(u,{qg:()=>se});function d(H){return typeof H=="object"&&H!==null}function l(H,K){if(!Boolean(H))throw new Error(K??"Unexpected invariant triggered.")}const g=/\r\n|[\n\r]/g;function b(H,K){let te=0,ue=1;for(const he of H.body.matchAll(g)){if(typeof he.index=="number"||l(!1),he.index>=K)break;te=he.index+he[0].length,ue+=1}return{line:ue,column:K+1-te}}function P(H){return T(H.source,b(H.source,H.start))}function T(H,K){const te=H.locationOffset.column-1,ue="".padStart(te)+H.body,he=K.line-1,De=H.locationOffset.line-1,rt=K.line+De,Qe=K.line===1?te:0,dt=K.column+Qe,pt=`${H.name}:${rt}:${dt}
|
|
17500
17500
|
`,_t=ue.split(/\r\n|[\n\r]/g),Qt=_t[he];if(Qt.length>120){const Kt=Math.floor(dt/80),kt=dt%80,bt=[];for(let Tt=0;Tt<Qt.length;Tt+=80)bt.push(Qt.slice(Tt,Tt+80));return pt+O([[`${rt} |`,bt[0]],...bt.slice(1,Kt+1).map(Tt=>["|",Tt]),["|","^".padStart(kt)],["|",bt[Kt+1]]])}return pt+O([[`${rt-1} |`,_t[he-1]],[`${rt} |`,Qt],["|","^".padStart(dt)],[`${rt+1} |`,_t[he+1]]])}function O(H){const K=H.filter(([ue,he])=>he!==void 0),te=Math.max(...K.map(([ue])=>ue.length));return K.map(([ue,he])=>ue.padStart(te)+(he?" "+he:"")).join(`
|