(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,318631,(e,t,r)=>{"use strict";var s=e.i(122845);Object.defineProperty(r,"__esModule",{value:!0}),r.AuthAPI=void 0;let a=e.r(479252);r.AuthAPI=class{requestHandler;constructor(e){this.requestHandler=e}updateTokensFromCookies(){let e={accessToken:"access_token_from_cookies",idToken:"id_token_from_cookies",refreshToken:"refresh_token_from_cookies",expiresAt:Date.now()+36e5};this.requestHandler.setTokens(e)}async login(e){let t=await this.requestHandler.request({method:a.HttpMethod.POST,path:"/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async sendPasswordlessEmail(e){await this.requestHandler.request({method:a.HttpMethod.POST,path:"/passwordless/email",data:{email:e},requiresAuth:!1})}async loginWithPasswordlessEmail(e,t){let r=await this.requestHandler.request({method:a.HttpMethod.POST,path:"/passwordless/email/login",data:{email:e,otp:t},requiresAuth:!1});return this.updateTokensFromCookies(),r}async loginWithApple(e){let t=await this.requestHandler.request({method:a.HttpMethod.POST,path:"/sso/apple/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async loginWithGoogle(e){let t=await this.requestHandler.request({method:a.HttpMethod.POST,path:"/sso/google/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async logout(){try{await this.requestHandler.request({method:a.HttpMethod.POST,path:"/logout"})}finally{this.requestHandler.clearTokens()}}async getMachineToken(e){let t=s.Buffer.from(`${e.clientId}:${e.clientSecret}`).toString("base64"),r=await this.requestHandler.request({method:a.HttpMethod.POST,path:"/oauth/token",requiresAuth:!1,headers:{Authorization:`Basic ${t}`}}),n={accessToken:r.access_token,expiresAt:Date.now()+1e3*r.expires_in};return this.requestHandler.setTokens(n),r}async refreshToken(){let e=await this.requestHandler.request({method:a.HttpMethod.GET,path:"/refresh",requiresAuth:!1});return this.updateTokensFromCookies(),e}async register(e){return await this.requestHandler.request({method:a.HttpMethod.POST,path:"/register",data:e,requiresAuth:!1})}async registerPasswordless(e){return await this.requestHandler.request({method:a.HttpMethod.POST,path:"/passwordless/registration",data:e,requiresAuth:!1})}async verifyEmail(e,t){return await this.requestHandler.request({method:a.HttpMethod.PUT,path:"/register/verify/email",data:{email:e,otp:t},requiresAuth:!1})}async resendVerificationEmail(){await this.requestHandler.request({method:a.HttpMethod.PUT,path:"/verification/email/resend",requiresAuth:!1})}async initiateStepUpAuthViaEmail(e){await this.requestHandler.request({method:a.HttpMethod.POST,path:"/reauth/email",params:e?{platform:e}:void 0,requiresAuth:!0})}async validateStepUpAuthViaEmail(e){await this.requestHandler.request({method:a.HttpMethod.PUT,path:"/reauth/email/validation",data:{otp:e},requiresAuth:!0})}async stepUpAuthViaPassword(e,t){let r={password:e};t&&(r["g-recaptcha-response"]=t),await this.requestHandler.request({method:a.HttpMethod.PUT,path:"/reauth/password",data:r})}async validateStepUpAuth(){await this.requestHandler.request({method:a.HttpMethod.GET,path:"/reauth/validation",requiresAuth:!0})}async forgotPassword(e,t,r){let s={};t&&(s.reset_password_url=t),r&&(s.platform=r),await this.requestHandler.request({method:a.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:s,requiresAuth:!1})}async resetPassword(e,t,r,s){await this.requestHandler.request({method:a.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:s?{platform:s}:void 0,requiresAuth:!1})}async changePassword(e,t){await this.requestHandler.request({method:a.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t},requiresAuth:!0})}async changeEmail(e){await this.requestHandler.request({method:a.HttpMethod.PUT,path:"/email/change",data:{email:e},requiresAuth:!0})}async getEntitlementToken(){return await this.requestHandler.request({method:a.HttpMethod.POST,path:"/entitlement/token",requiresAuth:!0})}async getUserId(){return await this.requestHandler.request({method:a.HttpMethod.GET,path:"/user/id",requiresAuth:!0})}async getUserInfo(){return await this.requestHandler.request({method:a.HttpMethod.GET,path:"/user/id/email",requiresAuth:!0})}}},622592,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ConsentAPI=void 0;let s=e.r(479252);r.ConsentAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getConsent(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/consent",params:{endpointID:e}})}async updateConsent(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/consent",data:e})}async createConsent(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/consent",data:e})}async deleteConsent(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/consent",params:{endpointID:e}})}async getUserConsent(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/consent/user"})}async updateUserConsent(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/consent/user",data:e})}async createUserConsent(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/consent/user",data:e})}async deleteUserConsent(){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/consent/user"})}async getBulkConsent(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:s.HttpMethod.GET,path:"/consent/bulk",params:r})}async deleteBulkConsent(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/consent/bulk",params:r})}async migrateUserConsent(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/consent/user/migration",data:e})}async updateUserConsentWebhook(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/consent/user/update",data:e})}}},273929,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.OpenWebAPI=void 0;let s=e.r(479252);r.OpenWebAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAccount(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/openWeb/account",requiresAuth:!0})}async getCodeB(e){return this.requestHandler.request({method:s.HttpMethod.POST,path:"/openWeb/codeB",data:e,requiresAuth:!0})}}},63461,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PreferenceAPI=void 0;let s=e.r(479252);r.PreferenceAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getPreference(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/preference"})}async updatePreference(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/preference",data:e})}async createPreference(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/preference",data:e})}async getWUPreference(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/preference/wu"})}async updateWUPreference(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/preference/wu",data:e})}async createWUPreference(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/preference/wu",data:e})}async getUserPreference(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/preference/${e}`})}async deleteUserPreference(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/preference/${e}`})}async createUserWUPreference(e,t){await this.requestHandler.request({method:s.HttpMethod.POST,path:`/preference/wu/${e}`,data:t})}async getMapSettings(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/preference/map-settings/${e}`})}async createMapSettings(e,t){return this.requestHandler.request({method:s.HttpMethod.POST,path:`/preference/map-settings/${e}`,data:t})}async updateMapSettings(e,t){return this.requestHandler.request({method:s.HttpMethod.PATCH,path:`/preference/map-settings/${e}`,data:t})}async deleteMapSettings(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/preference/map-settings/${e}`})}}},339222,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PurchaseAPI=void 0;let s=e.r(479252);r.PurchaseAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getPurchases(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:s.HttpMethod.GET,path:"/purchase/",params:t})}async createPurchase(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/purchase/app/user",data:e})}async getPurchaseRecord(e,t,r){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/purchase/record",params:{platform:e,vendor:t,product:r}})}async getPurchaseToken(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:s.HttpMethod.GET,path:"/purchase/token",params:t})}async updatePurchase(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/purchase",data:e})}async createPurchaseTransaction(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/purchase",data:e})}async getUserPurchases(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/purchase/${e}`})}async deleteUserPurchases(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/purchase/${e}`})}async getUserPurchaseSnapshot(e,t){let r={};return t&&(r.platform=t),this.requestHandler.request({method:s.HttpMethod.GET,path:`/purchase/${e}/getSnapshot`,params:r})}async getUserPurchaseRecord(e,t,r,a){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/purchase/${e}/record`,params:{platform:t,vendor:r,product:a}})}}},698254,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SegmentationAPI=void 0;let s=e.r(479252);r.SegmentationAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getEndpointSegmentation(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/segmentation/endpoint"})}async updateEndpointSegmentation(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/segmentation/endpoint",data:e})}async deleteEndpointSegmentation(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/segmentation/endpoint",data:{keys:e}})}async getEndpointMetrics(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/segmentation/metrics/endpoint"})}async getAnonymousEndpointMetrics(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/segmentation/metrics/endpoint/${encodeURIComponent(e)}`,credentials:"omit"})}async getUserSegmentation(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/segmentation/user"})}async updateUserSegmentation(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/segmentation/user",data:e})}async deleteUserSegmentation(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/segmentation/user",data:{keys:e}})}async getUserMetrics(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/segmentation/metrics/user"})}async getBulkSegmentation(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:s.HttpMethod.GET,path:"/segmentation/bulk",params:r})}async deleteBulkSegmentation(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/segmentation/bulk",params:r})}async updateBulkSegmentation(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/segmentation/analytics/bulk",data:e})}async updateKeyOnCondition(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/segmentation/analytics/condition",data:e})}async deleteKeyOnCondition(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/segmentation/analytics/condition",data:e})}async deleteKeyForIds(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/segmentation/analytics/key",data:e})}async deleteKeyForAll(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/segmentation/analytics/key/all",data:{key:e}})}}},168126,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SubscriptionAPI=void 0;let s=e.r(479252);r.SubscriptionAPI=class{requestHandler;constructor(e){this.requestHandler=e}async updateActivity(e){await this.requestHandler.request({method:s.HttpMethod.PATCH,path:"/subscription/activity",data:e})}async updateAddress(e){await this.requestHandler.request({method:s.HttpMethod.PATCH,path:"/subscription/address",data:e})}async createMultiple(e){return this.requestHandler.request({method:s.HttpMethod.PUT,path:"/subscription/create",data:e})}async create(e){return this.requestHandler.request({method:s.HttpMethod.POST,path:"/subscription/create",data:e})}async delete(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/subscription/delete",params:{subids:e}})}async updateEvent(e){await this.requestHandler.request({method:s.HttpMethod.PATCH,path:"/subscription/event",data:e})}async find(e){let t={};return e.endpointId&&(t.endpointid=e.endpointId),e.address&&(t.address=e.address),e.userId&&(t.userid=e.userId),this.requestHandler.request({method:s.HttpMethod.GET,path:"/subscription/find",params:t})}async findAll(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/subscription/findall",params:{endpoints:e}})}async updateLocation(e){await this.requestHandler.request({method:s.HttpMethod.PATCH,path:"/subscription/location",data:e})}async update(e){await this.requestHandler.request({method:s.HttpMethod.PATCH,path:"/subscription/update",data:e})}async updateAll(e){await this.requestHandler.request({method:s.HttpMethod.PATCH,path:"/subscription/updateall",data:e})}async deleteAll(e){let t={};e.endpoints&&(t.endpoints=e.endpoints),e.userId&&(t.userid=e.userId),await this.requestHandler.request({method:s.HttpMethod.DELETE,path:"/subscriptions",params:t})}}},401354,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TripsAPI=void 0;let s=e.r(479252);r.TripsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async listTrips(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/preference/trips/${e}`})}async getTrip(e,t){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/preference/trips/${e}/${t}`})}async createTrip(e,t){return this.requestHandler.request({method:s.HttpMethod.POST,path:`/preference/trips/${e}`,data:t})}async updateTrip(e,t,r){return this.requestHandler.request({method:s.HttpMethod.PUT,path:`/preference/trips/${e}/${t}`,data:r})}async deleteTrip(e,t){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/preference/trips/${e}/${t}`})}}},391150,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ServerError=r.RateLimitError=r.ValidationError=r.NotFoundError=r.APIError=r.UPSXError=void 0;class s extends Error{constructor(e){super(e),this.name="UPSXError",Object.setPrototypeOf(this,s.prototype)}}r.UPSXError=s;class a extends s{code;data;constructor(e,t,r){super(e),this.name="APIError",this.code=t,this.data=r,Object.setPrototypeOf(this,a.prototype)}}r.APIError=a;class n extends a{constructor(e="Resource not found"){super(e,404),this.name="NotFoundError",Object.setPrototypeOf(this,n.prototype)}}r.NotFoundError=n;class o extends a{constructor(e="Invalid request",t){super(e,400,t),this.name="ValidationError",Object.setPrototypeOf(this,o.prototype)}}r.ValidationError=o;class i extends a{constructor(e="Rate limit exceeded"){super(e,429),this.name="RateLimitError",Object.setPrototypeOf(this,i.prototype)}}r.RateLimitError=i,r.ServerError=class e extends a{constructor(t="Server error",r=500){super(t,r),this.name="ServerError",Object.setPrototypeOf(this,e.prototype)}}},659393,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RequestHandler=void 0;let s=e.r(391150),a=e.r(479252);r.RequestHandler=class{baseUrl;timeout;defaultHeaders;tokens=null;constructor(e){this.baseUrl=e.baseUrl.endsWith("/")?e.baseUrl.slice(0,-1):e.baseUrl,this.timeout=e.timeout||3e4,this.defaultHeaders={"Content-Type":"application/json",Accept:"application/json",...e.headers}}setTokens(e){this.tokens=e}getTokens(){return this.tokens}clearTokens(){this.tokens=null}isAuthenticated(){return!!this.tokens?.accessToken}async request(e){let{method:t,path:r,params:n,data:o,headers:i={},requiresAuth:d=!1,timeout:u=this.timeout,credentials:h="include"}=e;if(d&&!this.isAuthenticated())throw new s.APIError("Authentication required");let p=`${this.baseUrl}${r.startsWith("/")?r:`/${r}`}`;if(n&&Object.keys(n).length>0){let e=new URLSearchParams;for(let[t,r]of Object.entries(n))void 0!==r&&e.append(t,String(r));let t=e.toString();t&&(p+=`?${t}`)}let c={...this.defaultHeaders,...i};this.tokens?.accessToken&&(c.Authorization=`Bearer ${this.tokens.accessToken}`);let l={method:t,headers:c,credentials:h};void 0!==o&&(t===a.HttpMethod.POST||t===a.HttpMethod.PUT||t===a.HttpMethod.PATCH)&&(l.body=JSON.stringify(o));try{let e=new AbortController,t=setTimeout(()=>e.abort(),u);l.signal=e.signal;let r=await fetch(p,l);if(clearTimeout(t),r.ok||await this.handleErrorResponse(r),204===r.status)return null;let s=r.headers.get("content-type");if(s&&s.includes("application/json"))return await r.json();return await r.text()}catch(e){if(e instanceof s.APIError)throw e;if(e instanceof DOMException&&"AbortError"===e.name)throw new s.APIError("Request timeout",408);throw new s.APIError(`Network error: ${e.message}`,0)}}async handleErrorResponse(e){let t;try{t=await e.json()}catch{t={message:e.statusText}}let r=t.message||"Unknown error",a=e.status;throw new s.APIError(r,a,t)}}},981444,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UPSXClient=void 0;let s=e.r(212840),a=e.r(688029),n=e.r(750413),o=e.r(318631),i=e.r(622592),d=e.r(273929),u=e.r(63461),h=e.r(339222),p=e.r(698254),c=e.r(168126),l=e.r(401354),H=e.r(659393);r.UPSXClient=class{account;applications;assets;auth;consent;openWeb;preference;purchase;segmentation;subscription;trips;requestHandler;constructor(e){this.requestHandler=new H.RequestHandler(e),this.auth=new o.AuthAPI(this.requestHandler),this.account=new s.AccountAPI(this.requestHandler),this.applications=new a.ApplicationsAPI(this.requestHandler),this.assets=new n.AssetsAPI(this.requestHandler),this.consent=new i.ConsentAPI(this.requestHandler),this.openWeb=new d.OpenWebAPI(this.requestHandler),this.preference=new u.PreferenceAPI(this.requestHandler),this.purchase=new h.PurchaseAPI(this.requestHandler),this.segmentation=new p.SegmentationAPI(this.requestHandler),this.subscription=new c.SubscriptionAPI(this.requestHandler),this.trips=new l.TripsAPI(this.requestHandler)}}},562235,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},926398,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},534293,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},470429,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},448436,(e,t,r)=>{"use strict";var s,a,n,o,i,d,u,h,p,c,l,H,q,m,y,P,T,g,M,A,w,E,f,b,v,S,O,_,U,I,k,C;Object.defineProperty(r,"__esModule",{value:!0}),r.LocationType=r.Role=r.PermissionType=r.ActivityCondition=r.WigetPropType=r.WigetPropPeriod=r.WigetPropCondition=r.WidgetType=r.StrikeTypeCode=r.GeometryType=r.InterruptionLevel=r.Weekday=r.Platform=r.Unit=r.ActivityType=r.AlertType=void 0,(T=s||(r.AlertType=s={}))[T.News=1]="News",T[T.AirQuality=2]="AirQuality",T[T.Avalanche=3]="Avalanche",T[T.Coastal=4]="Coastal",T[T.Miscellaneous=5]="Miscellaneous",T[T.RainFlood=6]="RainFlood",T[T.Temperature=7]="Temperature",T[T.Thunderstorm=8]="Thunderstorm",T[T.Visibility=9]="Visibility",T[T.Wind=10]="Wind",T[T.Lightning=11]="Lightning",T[T.Precipitation=12]="Precipitation",T[T.ExtremeCold=13]="ExtremeCold",T[T.ExtremeHeat=14]="ExtremeHeat",T[T.WinterPrecipitation=15]="WinterPrecipitation",T[T.HeavySnow=16]="HeavySnow",T[T.DenseFog=17]="DenseFog",T[T.HeavyRain=18]="HeavyRain",T[T.HighWind=19]="HighWind",T[T.Flux=20]="Flux",T[T.IcyForecast=21]="IcyForecast",T[T.Pollen=22]="Pollen",T[T.Flu=23]="Flu",T[T.DailyPrecip=24]="DailyPrecip",T[T.WebEmail=25]="WebEmail",T[T.DailyDigest=26]="DailyDigest",T[T.HeavyThunderstorm=27]="HeavyThunderstorm",T[T.Custom=28]="Custom",T[T.Activity=29]="Activity",(g=a||(r.ActivityType=a={}))[g.Running=1]="Running",g[g.Golfing=2]="Golfing",g[g.Hiking=3]="Hiking",g[g.Gardening=4]="Gardening",g[g.Tennis=5]="Tennis",g[g.Cycling=6]="Cycling",(M=n||(r.Unit=n={}))[M.English=1]="English",M[M.Metric=2]="Metric",M[M.Hybrid=3]="Hybrid",(A=o||(r.Platform=o={}))[A.Apple=1]="Apple",A[A.Android=2]="Android",A[A.Http=3]="Http",A[A.Web=4]="Web",A[A.Email=5]="Email",A[A.Sms=6]="Sms",(w=i||(r.Weekday=i={}))[w.Sunday=0]="Sunday",w[w.Monday=1]="Monday",w[w.Tuesday=2]="Tuesday",w[w.Wednesday=3]="Wednesday",w[w.Thursday=4]="Thursday",w[w.Friday=5]="Friday",w[w.Saturday=6]="Saturday",(E=d||(r.InterruptionLevel=d={}))[E.Passive=0]="Passive",E[E.Active=1]="Active",E[E.TimeSensitive=2]="TimeSensitive",E[E.Critical=3]="Critical",(f=u||(r.GeometryType=u={})).GeometryPoint="Point",f.GeometryMultiPoint="MultiPoint",f.GeometryPolygon="Polygon",f.GeometryMultiPolygon="MultiPolygon",f.GeometryLineString="LineString",f.GeometryMultiLineString="MultiLineString",f.GeometryCollection="GeometryCollection",f.Feature="Feature",f.FeatureCollection="FeatureCollection",(b=h||(r.StrikeTypeCode=h={}))[b.CloudToGround=0]="CloudToGround",b[b.CloudToCloud=1]="CloudToCloud",(v=p||(r.WidgetType=p={})).WXLocation="wxlocation",v.WXComparison="wxcomparison",(S=c||(r.WigetPropCondition=c={})).Humidity="humidity",S.Wind="wind",S.Pressure="pressure",S.Visibility="visibility",S.DewPoint="dewPoint",S.UV="uv",S.AirQuality="airQuality",S.Temperature="temperature",S.TemperatureFeelsLike="temperatureFeelsLike",S.Precip="precip",(O=l||(r.WigetPropPeriod=l={})).Daily="daily",O.Hourly="hourly",(_=H||(r.WigetPropType=H={})).Forecast="forecast",_.Historical="historical",(U=q||(r.ActivityCondition=q={}))[U.Poor=1]="Poor",U[U.Fair=2]="Fair",U[U.Good=3]="Good",(I=m||(r.PermissionType=m={}))[I.EndpointLookup=1]="EndpointLookup",I[I.LocationLookup=2]="LocationLookup",I[I.UserLookup=3]="UserLookup",I[I.NotificationMetric=4]="NotificationMetric",I[I.ClickMetric=5]="ClickMetric",I[I.AlertMap=6]="AlertMap",I[I.AlertNews=7]="AlertNews",I[I.AlertSegment=8]="AlertSegment",I[I.NotificationApps=9]="NotificationApps",I[I.NotificationTemplates=10]="NotificationTemplates",I[I.NotificationHeadlines=11]="NotificationHeadlines",I[I.NotificationDateFormats=12]="NotificationDateFormats",I[I.NotificationTranslations=13]="NotificationTranslations",I[I.Permissions=14]="Permissions",I[I.AgentActivity=15]="AgentActivity",I[I.DeleteSubscriptions=16]="DeleteSubscriptions",I[I.AlertSent=17]="AlertSent",I[I.Culture=18]="Culture",I[I.SendNotification=19]="SendNotification",I[I.Headlines=20]="Headlines",I[I.Templates=21]="Templates",I[I.UpdateAccountLockStatus=22]="UpdateAccountLockStatus",(k=y||(r.Role=y={}))[k.Admin=1]="Admin",k[k.User=2]="User",k[k.UnAuthorized=3]="UnAuthorized",k[k.AppAgent=4]="AppAgent",(C=P||(r.LocationType=P={}))[C.Globe=0]="Globe",C[C.PollenID=1]="PollenID",C[C.TideID=2]="TideID",C[C.ZoneID=3]="ZoneID",C[C.PostalKey=4]="PostalKey",C[C.CountyID=5]="CountyID",C[C.CityID=6]="CityID",C[C.AdminDistrict=7]="AdminDistrict",C[C.DmaID=8]="DmaID",C[C.TimeZone=9]="TimeZone",C[C.CountryCode=10]="CountryCode"},1799,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},728575,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},95443,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},867295,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},832922,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},770367,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},648875,(e,t,r)=>{"use strict";var s=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,a)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),a(e.r(562235),r),a(e.r(926398),r),a(e.r(534293),r),a(e.r(470429),r),a(e.r(448436),r),a(e.r(1799),r),a(e.r(728575),r),a(e.r(95443),r),a(e.r(867295),r),a(e.r(832922),r),a(e.r(770367),r)},563033,(e,t,r)=>{"use strict";var s=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,a)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),a(e.r(212840),r),a(e.r(688029),r),a(e.r(750413),r),a(e.r(622592),r),a(e.r(273929),r),a(e.r(63461),r),a(e.r(339222),r),a(e.r(698254),r),a(e.r(168126),r),a(e.r(401354),r)},245943,(e,t,r)=>{"use strict";var s=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,a)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.APIError=r.UPSXClient=void 0;let n=e.r(981444);Object.defineProperty(r,"UPSXClient",{enumerable:!0,get:function(){return n.UPSXClient}});let o=e.r(391150);Object.defineProperty(r,"APIError",{enumerable:!0,get:function(){return o.APIError}}),a(e.r(479252),r),a(e.r(648875),r),a(e.r(563033),r)},479252,(e,t,r)=>{"use strict";var s,a;Object.defineProperty(r,"__esModule",{value:!0}),r.HttpMethod=void 0,(a=s||(r.HttpMethod=s={})).GET="GET",a.POST="POST",a.PUT="PUT",a.DELETE="DELETE",a.PATCH="PATCH"},212840,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AccountAPI=void 0;let s=e.r(479252);r.AccountAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAccount(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/account"})}async updateAccount(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/account",data:e})}async getAccountId(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/account/id"})}async changeEmail(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/email/change",data:{email:e}})}async changePassword(e,t){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t}})}async forgotPassword(e,t,r){let a={};t&&(a.reset_password_url=t),r&&(a.platform=r),await this.requestHandler.request({method:s.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:a,requiresAuth:!1})}async resetPassword(e,t,r,a){let n={};a&&(n.platform=a),await this.requestHandler.request({method:s.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:n,requiresAuth:!1})}async getUserId(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/user/id"})}async getUserInfo(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/user/id/email"})}async getUserAccountById(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/users/${e}/account`})}async getUserAccountByEmail(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/users/email/${encodeURIComponent(e)}/account`})}async updateAccountLockStatus(e,t){await this.requestHandler.request({method:s.HttpMethod.PUT,path:`/users/${e}/account/lockStatus`,data:{accountLockStatus:t}})}}},688029,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ApplicationsAPI=void 0;let s=e.r(479252);r.ApplicationsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getApplications(e,t){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/applications",params:{appId:e,endpointId:t}})}async createApplication(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/applications",data:e})}async addPartner(e,t,r){await this.requestHandler.request({method:s.HttpMethod.PUT,path:`/applications/app-id/${e}/endpoint-id/${t}`,data:r})}async deletePartner(e,t,r){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/applications/partner/app-id/${e}/endpoint-id/${t}`,params:{partner:r}})}async updateLastActivity(e,t,r){await this.requestHandler.request({method:s.HttpMethod.PUT,path:`/applications/activity/user/${e}/app-id/${t}/endpoint-id/${r}`})}async getUserApplications(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/applications/user/${e}`})}async createUserApplication(e,t){await this.requestHandler.request({method:s.HttpMethod.POST,path:`/applications/user/${e}`,data:t})}async deleteUserApplications(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/applications/user/${e}`})}async deleteUserApplication(e,t,r){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/applications/user/${e}/app-id/${t}/endpoint-id/${r}`})}async getUserEndpointIds(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/applications/endpoint-ids",params:{userID:e}})}}},750413,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AssetsAPI=void 0;let s=e.r(479252);r.AssetsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAssets(){return this.requestHandler.request({method:s.HttpMethod.GET,path:"/assets"})}async getUserAssets(e){return this.requestHandler.request({method:s.HttpMethod.GET,path:`/assets/${e}`})}async deleteUserAssets(e){await this.requestHandler.request({method:s.HttpMethod.DELETE,path:`/assets/${e}`})}async createWUAssets(e,t){await this.requestHandler.request({method:s.HttpMethod.POST,path:`/assets/wu/${e}`,data:t})}async updateWUAssets(e,t){await this.requestHandler.request({method:s.HttpMethod.PUT,path:`/assets/wu/${e}`,data:t})}async createWUAssetsMigration(e,t){await this.requestHandler.request({method:s.HttpMethod.POST,path:`/assets/migration/${e}`,data:t})}}}]);