(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,617874,e=>{"use strict";let t="Imperial",r="Metric",n="Hybrid",s={code:"e",name:t,temp:"F",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"in"},o={code:"m",name:r,temp:"C",speed:"km/h",distance:"km",accumulation:"cm",precip:"mm",pressure:"mb"},i={code:"h",name:n,temp:"C",speed:"mph",distance:"mi",accumulation:"in",precip:"in",pressure:"mb"};e.s(["UNITS_COOKIE_KEY",0,"unitOfMeasurement","UNIT_HYBRID",0,n,"UNIT_IMPERIAL",0,t,"UNIT_METRIC",0,r,"imperial",0,s,"unitsSystemByCode",0,function(e){switch(e?.toLowerCase()){case"e":case"f":return s;case"m":case"c":return o;case"h":return i;default:return null}},"unitsSystemByName",0,function(e=""){switch(e.toLowerCase()){case"imperial":case"Imperial":return s;case"metric":case"Metric":return o;case"hybrid":case"Hybrid":return i;default:return null}}])},627897,e=>{"use strict";let t,r="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),n=new Uint8Array(16),s=[];for(let e=0;e= 16");if(h[6]=15&h[6]|64,h[8]=63&h[8]|128,o){if((u=u||0)o.length)throw RangeError(`UUID byte range ${u}:${u+15} is out of buffer bounds`);for(let e=0;e{"use strict";var t,r=e.i(233601),n=e.i(617874),s=e.i(627897),o=e.i(751931),i=((t={})[t.none=-1]="none",t[t.standard=0]="standard",t[t.premium=1]="premium",t[t.adFree=2]="adFree",t[t.premiumWithAd=3]="premiumWithAd",t);let a=Object.entries(i).reduce((e,[t,r])=>(e[r]=t,e),{});Object.entries(i).reduce((e,[t,r])=>(e[r.toString()]=r,e),{}),e.s(["UserSubscriptionPremiumTiers",0,[1,2,3],"UserSubscriptionTierKeysMap",0,a,"UserSubscriptionTiers",()=>i],543512);let u=(0,o.atom)(i.none),h=(0,r.atomWithStorage)("userProfile",null),d=(0,r.atomWithStorage)("userPreferences",{userID:(0,s.v4)(),unit:n.UNIT_IMPERIAL,locations:[],locale:"en_US",mapSettings:{animationSpeed:1,autoplay:!0,opacity:100,roadOverlay:"default",style:"default"},favoriteWeatherComponents:[],favoriteActivityComponents:[],dashboard:[]});e.s(["userPreferencesAtom",0,d,"userProfileAtom",0,h,"userTierAtom",0,u],889753)},479252,(e,t,r)=>{"use strict";var n,s;Object.defineProperty(r,"__esModule",{value:!0}),r.HttpMethod=void 0,(s=n||(r.HttpMethod=n={})).GET="GET",s.POST="POST",s.PUT="PUT",s.DELETE="DELETE",s.PATCH="PATCH"},212840,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AccountAPI=void 0;let n=e.r(479252);r.AccountAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAccount(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account"})}async updateAccount(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/account",data:e})}async getAccountId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account/id"})}async changeEmail(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/email/change",data:{email:e}})}async changePassword(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t}})}async forgotPassword(e,t,r){let s={};t&&(s.reset_password_url=t),r&&(s.platform=r),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:s,requiresAuth:!1})}async resetPassword(e,t,r,s){let o={};s&&(o.platform=s),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:o,requiresAuth:!1})}async getUserId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id"})}async getUserInfo(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id/email"})}async getUserAccountById(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/users/${e}/account`})}async getUserAccountByEmail(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/users/email/${encodeURIComponent(e)}/account`})}async updateAccountLockStatus(e,t){await this.requestHandler.request({method:n.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 n=e.r(479252);r.ApplicationsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getApplications(e,t){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications",params:{appId:e,endpointId:t}})}async createApplication(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/applications",data:e})}async addPartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:`/applications/app-id/${e}/endpoint-id/${t}`,data:r})}async deletePartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/applications/partner/app-id/${e}/endpoint-id/${t}`,params:{partner:r}})}async updateLastActivity(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:`/applications/activity/user/${e}/app-id/${t}/endpoint-id/${r}`})}async getUserApplications(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/applications/user/${e}`})}async createUserApplication(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/applications/user/${e}`,data:t})}async deleteUserApplications(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/applications/user/${e}`})}async deleteUserApplication(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/applications/user/${e}/app-id/${t}/endpoint-id/${r}`})}async getUserEndpointIds(e){return this.requestHandler.request({method:n.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 n=e.r(479252);r.AssetsAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAssets(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/assets"})}async getUserAssets(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/assets/${e}`})}async deleteUserAssets(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/assets/${e}`})}async createWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/assets/wu/${e}`,data:t})}async updateWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:`/assets/wu/${e}`,data:t})}async createWUAssetsMigration(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/assets/migration/${e}`,data:t})}}},649612,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),i=o[0],a=o[1],h=new s((i+a)*3/4-a),d=0,c=a>0?i-4:i;for(r=0;r>16&255,h[d++]=t>>8&255,h[d++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]>4,h[d++]=255&t),1===a&&(t=n[e.charCodeAt(r)]>2,h[d++]=t>>8&255,h[d++]=255&t),h},t.fromByteArray=function(e){for(var t,n=e.length,s=n%3,o=[],i=0,a=n-s;i>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}(e,i,i+16383>a?a:i+16383));return 1===s?o.push(r[(t=e[n-1])>>2]+r[t>10]+r[t>>4&63]+r[ttypeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=o.length;i0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),s=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function i(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,s=t;if(("string"!=typeof s||""===s)&&(s="utf8"),!a.isEncoding(s))throw TypeError("Unknown encoding: "+s);var o=0|l(n,s),u=i(o),h=u.write(n,s);return h!==o&&(u=u.slice(0,h)),u}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(S(e,ArrayBuffer)||e&&S(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(e,SharedArrayBuffer)||e&&S(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(ttypeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(etypeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(h(e),e=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function l(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||S(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(e).length;default:if(s)return n?-1:T(e).length;t=(""+t).toLowerCase(),s=!0}}function f(e,t,r){var s,o,i,a=!1;if((void 0===t||tthis.length||((void 0===r||r>this.length)&&(r=this.length),r>>=0)>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||tn)&&(r=n);for(var s="",o=t;o0x7fffffff?r=0x7fffffff:r=e.length)if(s)return -1;else r=e.length-1;else if(ra&&(r=a-u),o=r;o>=0;o--){for(var c=!0,p=0;pr&&(e+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,s){if(S(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),te.length||nthis.length)throw RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,s>>>=0,this===e)return 0;for(var o=s-n,i=r-t,u=Math.min(o,i),h=this.slice(n,s),d=e.slice(t,r),c=0;c239?4:h>223?3:h>191?2:1;if(s+c127&&(d=u);break;case 3:o=e[s+1],i=e[s+2],(192&o)==128&&(192&i)==128&&(u=(15&h)2047&&(u57343)&&(d=u);break;case 4:o=e[s+1],i=e[s+2],a=e[s+3],(192&o)==128&&(192&i)==128&&(192&a)==128&&(u=(15&h)65535&&u65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|1023&d),n.push(d),s+=c}var p=n,l=p.length;if(lr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,s,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>s||te.length)throw RangeError("Index out of range")}function A(e,t,r,n,s,o){if(r+n>e.length||r>>=0,o||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),s.write(e,t,r,n,23,4),r+4}function b(e,t,r,n,o){return t*=1,r>>>=0,o||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),s.write(e,t,r,n,52,8),r+8}a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s,o,i,a,u,h,d,c,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(rthis.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var l=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var o=t.length;n>o/2&&(n=o/2);for(var i=0;i>8,s.push(r%256),s.push(n);return s}(e,this.length-d),this,d,c);default:if(l)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,er&&(e=r),tr&&(t=r),t>>=0,t>>>=0,r||q(e,t,this.length);for(var n=this[e],s=1,o=0;++o>>=0,t>>>=0,r||q(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||q(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||q(e,2,this.length),this[e]|this[e+1]>>=0,t||q(e,2,this.length),this[e]>>=0,t||q(e,4,this.length),(this[e]|this[e+1]>>=0,t||q(e,4,this.length),0x1000000*this[e]+(this[e+1]>>=0,t>>>=0,r||q(e,t,this.length);for(var n=this[e],s=1,o=0;++o=(s*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||q(e,t,this.length);for(var n=t,s=1,o=this[e+--n];n>0&&(s*=256);)o+=this[e+--n]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||q(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||q(e,2,this.length);var r=this[e]|this[e+1]>>=0,t||q(e,2,this.length);var r=this[e+1]|this[e]>>=0,t||q(e,4,this.length),this[e]|this[e+1]>>=0,t||q(e,4,this.length),this[e]>>=0,t||q(e,4,this.length),s.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||q(e,4,this.length),s.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||q(e,8,this.length),s.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||q(e,8,this.length),s.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var s=Math.pow(2,8*r)-1;w(this,e,t,r,s,0)}var o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){var s=Math.pow(2,8*r)-1;w(this,e,t,r,s,0)}var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var s=Math.pow(2,8*r-1);w(this,e,t,r,s-1,-s)}var o=0,i=1,a=0;for(this[t]=255&e;++o>>=0,!n){var s=Math.pow(2,8*r-1);w(this,e,t,r,s-1,-s)}var o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e>>=0,r||w(this,e,t,1,127,-128),e>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return b(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return b(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(nthis.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return s},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var s,o=e.charCodeAt(0);("utf8"===n&&o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&r56319||i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}s=r;continue}if(r-1&&o.push(239,191,189),s=r;continue}r=(s-55296-1&&o.push(239,191,189);if(s=null,r>6|192,63&r|128)}else if(r>12|224,r>>6&63|128,63&r|128)}else if(r>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function E(e){for(var t=[],r=0;r=t.length)&&!(s>=e.length);++s)t[s+r]=e[s];return s}function S(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var I=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r>1,d=-7,c=r?s-1:0,p=r?-1:1,l=e[t+c];for(c+=p,o=l&(1>=-d,d+=a;d>0;o=256*o+e[t+c],c+=p,d-=8);for(i=o&(1>=-d,d+=n;d>0;i=256*i+e[t+c],c+=p,d-=8);if(0===o)o=1-h;else{if(o===u)return i?NaN:1/0*(l?-1:1);i+=Math.pow(2,n),o-=h}return(l?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,s,o){var i,a,u,h=8*o-s-1,d=(1>1,p=5960464477539062e-23*(23===s),l=n?0:o-1,f=n?1:-1,y=+(t=1?t+=p/u:t+=p*Math.pow(2,1-c),t*u>=2&&(i++,u/=2),i+c>=d?(a=0,i=d):i+c>=1?(a=(t*u-1)*Math.pow(2,s),i+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,s),i=0));s>=8;e[r+l]=255&a,l+=f,a/=256,s-=8);for(i=i0;e[r+l]=255&i,l+=f,i/=256,h-=8);e[r+l-f]|=128*y}}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}},i=!0;try{n[e](r,r.exports,o),i=!1}finally{i&&delete s[e]}return r.exports}o.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_d3d67013cf269c6ddc437a4a652dd565/node_modules/next/dist/compiled/buffer/",t.exports=o(72)},318631,(e,t,r)=>{"use strict";var n=e.i(649612);Object.defineProperty(r,"__esModule",{value:!0}),r.AuthAPI=void 0;let s=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:s.HttpMethod.POST,path:"/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async sendPasswordlessEmail(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/passwordless/email",data:{email:e},requiresAuth:!1})}async loginWithPasswordlessEmail(e,t){let r=await this.requestHandler.request({method:s.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:s.HttpMethod.POST,path:"/sso/apple/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async loginWithGoogle(e){let t=await this.requestHandler.request({method:s.HttpMethod.POST,path:"/sso/google/login",data:e,requiresAuth:!1});return this.updateTokensFromCookies(),t}async logout(){try{await this.requestHandler.request({method:s.HttpMethod.POST,path:"/logout"})}finally{this.requestHandler.clearTokens()}}async getMachineToken(e){let t=n.Buffer.from(`${e.clientId}:${e.clientSecret}`).toString("base64"),r=await this.requestHandler.request({method:s.HttpMethod.POST,path:"/oauth/token",requiresAuth:!1,headers:{Authorization:`Basic ${t}`}}),o={accessToken:r.access_token,expiresAt:Date.now()+1e3*r.expires_in};return this.requestHandler.setTokens(o),r}async refreshToken(){let e=await this.requestHandler.request({method:s.HttpMethod.GET,path:"/refresh",requiresAuth:!1});return this.updateTokensFromCookies(),e}async register(e){return await this.requestHandler.request({method:s.HttpMethod.POST,path:"/register",data:e,requiresAuth:!1})}async registerPasswordless(e){return await this.requestHandler.request({method:s.HttpMethod.POST,path:"/passwordless/registration",data:e,requiresAuth:!1})}async verifyEmail(e,t){return await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/register/verify/email",data:{email:e,otp:t},requiresAuth:!1})}async resendVerificationEmail(){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/verification/email/resend",requiresAuth:!1})}async initiateStepUpAuthViaEmail(e){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/reauth/email",params:e?{platform:e}:void 0,requiresAuth:!0})}async validateStepUpAuthViaEmail(e){await this.requestHandler.request({method:s.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:s.HttpMethod.PUT,path:"/reauth/password",data:r,requiresAuth:!0})}async validateStepUpAuth(){await this.requestHandler.request({method:s.HttpMethod.GET,path:"/reauth/validation",requiresAuth:!0})}async forgotPassword(e,t,r){let n={};t&&(n.reset_password_url=t),r&&(n.platform=r),await this.requestHandler.request({method:s.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:n,requiresAuth:!1})}async resetPassword(e,t,r,n){await this.requestHandler.request({method:s.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:n?{platform:n}:void 0,requiresAuth:!1})}async changePassword(e,t){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t},requiresAuth:!0})}async changeEmail(e){await this.requestHandler.request({method:s.HttpMethod.PUT,path:"/email/change",data:{email:e},requiresAuth:!0})}async getEntitlementToken(){return await this.requestHandler.request({method:s.HttpMethod.POST,path:"/entitlement/token",requiresAuth:!0})}async getUserId(){return await this.requestHandler.request({method:s.HttpMethod.GET,path:"/user/id",requiresAuth:!0})}async getUserInfo(){return await this.requestHandler.request({method:s.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 n=e.r(479252);r.ConsentAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getConsent(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent",params:{endpointID:e}})}async updateConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent",data:e})}async createConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent",data:e})}async deleteConsent(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent",params:{endpointID:e}})}async getUserConsent(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent/user"})}async updateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user",data:e})}async createUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent/user",data:e})}async deleteUserConsent(){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent/user"})}async getBulkConsent(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:n.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:n.HttpMethod.DELETE,path:"/consent/bulk",params:r})}async migrateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user/migration",data:e})}async updateUserConsentWebhook(e){await this.requestHandler.request({method:n.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 n=e.r(479252);r.OpenWebAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getAccount(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/openWeb/account",requiresAuth:!0})}async getCodeB(e){return this.requestHandler.request({method:n.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 n=e.r(479252);r.PreferenceAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference"})}async updatePreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference",data:e})}async createPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference",data:e})}async getWUPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference/wu"})}async updateWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference/wu",data:e})}async createWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference/wu",data:e})}async getUserPreference(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/preference/${e}`})}async deleteUserPreference(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/preference/${e}`})}async createUserWUPreference(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:`/preference/wu/${e}`,data:t})}}},339222,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PurchaseAPI=void 0;let n=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:n.HttpMethod.GET,path:"/purchase/",params:t})}async createPurchase(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase/app/user",data:e})}async getPurchaseRecord(e,t,r){return this.requestHandler.request({method:n.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:n.HttpMethod.GET,path:"/purchase/token",params:t})}async updatePurchase(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/purchase",data:e})}async createPurchaseTransaction(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase",data:e})}async getUserPurchases(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/purchase/${e}`})}async deleteUserPurchases(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:`/purchase/${e}`})}async getUserPurchaseSnapshot(e,t){let r={};return t&&(r.platform=t),this.requestHandler.request({method:n.HttpMethod.GET,path:`/purchase/${e}/getSnapshot`,params:r})}async getUserPurchaseRecord(e,t,r,s){return this.requestHandler.request({method:n.HttpMethod.GET,path:`/purchase/${e}/record`,params:{platform:t,vendor:r,product:s}})}}},698254,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SegmentationAPI=void 0;let n=e.r(479252);r.SegmentationAPI=class{requestHandler;constructor(e){this.requestHandler=e}async getEndpointSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/endpoint"})}async updateEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/endpoint",data:e})}async deleteEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/endpoint",data:{keys:e}})}async getEndpointMetrics(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/metrics/endpoint"})}async getUserSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/user"})}async updateUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/user",data:e})}async deleteUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/user",data:{keys:e}})}async getUserMetrics(){return this.requestHandler.request({method:n.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:n.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:n.HttpMethod.DELETE,path:"/segmentation/bulk",params:r})}async updateBulkSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/bulk",data:e})}async updateKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/condition",data:e})}async deleteKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/condition",data:e})}async deleteKeyForIds(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/key",data:e})}async deleteKeyForAll(e){await this.requestHandler.request({method:n.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 n=e.r(479252);r.SubscriptionAPI=class{requestHandler;constructor(e){this.requestHandler=e}async updateActivity(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/activity",data:e})}async updateAddress(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/address",data:e})}async createMultiple(e){return this.requestHandler.request({method:n.HttpMethod.PUT,path:"/subscription/create",data:e})}async create(e){return this.requestHandler.request({method:n.HttpMethod.POST,path:"/subscription/create",data:e})}async delete(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/subscription/delete",params:{subids:e}})}async updateEvent(e){await this.requestHandler.request({method:n.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:n.HttpMethod.GET,path:"/subscription/find",params:t})}async findAll(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/subscription/findall",params:{endpoints:e}})}async updateLocation(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/location",data:e})}async update(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/update",data:e})}async updateAll(e){await this.requestHandler.request({method:n.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:n.HttpMethod.DELETE,path:"/subscriptions",params: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 n extends Error{constructor(e){super(e),this.name="UPSXError",Object.setPrototypeOf(this,n.prototype)}}r.UPSXError=n;class s extends n{code;data;constructor(e,t,r){super(e),this.name="APIError",this.code=t,this.data=r,Object.setPrototypeOf(this,s.prototype)}}r.APIError=s;class o extends s{constructor(e="Resource not found"){super(e,404),this.name="NotFoundError",Object.setPrototypeOf(this,o.prototype)}}r.NotFoundError=o;class i extends s{constructor(e="Invalid request",t){super(e,400,t),this.name="ValidationError",Object.setPrototypeOf(this,i.prototype)}}r.ValidationError=i;class a extends s{constructor(e="Rate limit exceeded"){super(e,429),this.name="RateLimitError",Object.setPrototypeOf(this,a.prototype)}}r.RateLimitError=a;class u extends s{constructor(e="Server error",t=500){super(e,t),this.name="ServerError",Object.setPrototypeOf(this,u.prototype)}}r.ServerError=u},659393,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RequestHandler=void 0;let n=e.r(391150),s=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:o,data:i,headers:a={},requiresAuth:u=!1,timeout:h=this.timeout}=e;if(u&&!this.isAuthenticated())throw new n.APIError("Authentication required");let d=`${this.baseUrl}${r.startsWith("/")?r:`/${r}`}`;if(o&&Object.keys(o).length>0){let e=new URLSearchParams;for(let[t,r]of Object.entries(o))void 0!==r&&e.append(t,String(r));let t=e.toString();t&&(d+=`?${t}`)}let c={...this.defaultHeaders,...a};this.tokens?.accessToken&&(c.Authorization=`Bearer ${this.tokens.accessToken}`);let p={method:t,headers:c,credentials:"include"};void 0!==i&&(t===s.HttpMethod.POST||t===s.HttpMethod.PUT)&&(p.body=JSON.stringify(i));try{let e=new AbortController,t=setTimeout(()=>e.abort(),h);p.signal=e.signal;let r=await fetch(d,p);if(clearTimeout(t),r.ok||await this.handleErrorResponse(r),204===r.status)return null;let n=r.headers.get("content-type");if(n&&n.includes("application/json"))return await r.json();return await r.text()}catch(e){if(e instanceof n.APIError)throw e;if(e instanceof DOMException&&"AbortError"===e.name)throw new n.APIError("Request timeout",408);throw new n.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",s=e.status;throw new n.APIError(r,s,t)}}},981444,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UPSXClient=void 0;let n=e.r(212840),s=e.r(688029),o=e.r(750413),i=e.r(318631),a=e.r(622592),u=e.r(273929),h=e.r(63461),d=e.r(339222),c=e.r(698254),p=e.r(168126),l=e.r(659393);r.UPSXClient=class{account;applications;assets;auth;consent;openWeb;preference;purchase;segmentation;subscription;requestHandler;constructor(e){this.requestHandler=new l.RequestHandler(e),this.auth=new i.AuthAPI(this.requestHandler),this.account=new n.AccountAPI(this.requestHandler),this.applications=new s.ApplicationsAPI(this.requestHandler),this.assets=new o.AssetsAPI(this.requestHandler),this.consent=new a.ConsentAPI(this.requestHandler),this.openWeb=new u.OpenWebAPI(this.requestHandler),this.preference=new h.PreferenceAPI(this.requestHandler),this.purchase=new d.PurchaseAPI(this.requestHandler),this.segmentation=new c.SegmentationAPI(this.requestHandler),this.subscription=new p.SubscriptionAPI(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 n,s,o,i,a,u,h,d,c,p,l,f,y,m,g,H,q,w,A,P,b,v,T,E,M,U,S,I,O,C,_,k;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,(q=n||(r.AlertType=n={}))[q.News=1]="News",q[q.AirQuality=2]="AirQuality",q[q.Avalanche=3]="Avalanche",q[q.Coastal=4]="Coastal",q[q.Miscellaneous=5]="Miscellaneous",q[q.RainFlood=6]="RainFlood",q[q.Temperature=7]="Temperature",q[q.Thunderstorm=8]="Thunderstorm",q[q.Visibility=9]="Visibility",q[q.Wind=10]="Wind",q[q.Lightning=11]="Lightning",q[q.Precipitation=12]="Precipitation",q[q.ExtremeCold=13]="ExtremeCold",q[q.ExtremeHeat=14]="ExtremeHeat",q[q.WinterPrecipitation=15]="WinterPrecipitation",q[q.HeavySnow=16]="HeavySnow",q[q.DenseFog=17]="DenseFog",q[q.HeavyRain=18]="HeavyRain",q[q.HighWind=19]="HighWind",q[q.Flux=20]="Flux",q[q.IcyForecast=21]="IcyForecast",q[q.Pollen=22]="Pollen",q[q.Flu=23]="Flu",q[q.DailyPrecip=24]="DailyPrecip",q[q.WebEmail=25]="WebEmail",q[q.DailyDigest=26]="DailyDigest",q[q.HeavyThunderstorm=27]="HeavyThunderstorm",q[q.Custom=28]="Custom",q[q.Activity=29]="Activity",(w=s||(r.ActivityType=s={}))[w.Running=1]="Running",w[w.Golfing=2]="Golfing",w[w.Hiking=3]="Hiking",w[w.Gardening=4]="Gardening",w[w.Tennis=5]="Tennis",w[w.Cycling=6]="Cycling",(A=o||(r.Unit=o={}))[A.English=1]="English",A[A.Metric=2]="Metric",A[A.Hybrid=3]="Hybrid",(P=i||(r.Platform=i={}))[P.Apple=1]="Apple",P[P.Android=2]="Android",P[P.Http=3]="Http",P[P.Web=4]="Web",P[P.Email=5]="Email",P[P.Sms=6]="Sms",(b=a||(r.Weekday=a={}))[b.Sunday=0]="Sunday",b[b.Monday=1]="Monday",b[b.Tuesday=2]="Tuesday",b[b.Wednesday=3]="Wednesday",b[b.Thursday=4]="Thursday",b[b.Friday=5]="Friday",b[b.Saturday=6]="Saturday",(v=u||(r.InterruptionLevel=u={}))[v.Passive=0]="Passive",v[v.Active=1]="Active",v[v.TimeSensitive=2]="TimeSensitive",v[v.Critical=3]="Critical",(T=h||(r.GeometryType=h={})).GeometryPoint="Point",T.GeometryMultiPoint="MultiPoint",T.GeometryPolygon="Polygon",T.GeometryMultiPolygon="MultiPolygon",T.GeometryLineString="LineString",T.GeometryMultiLineString="MultiLineString",T.GeometryCollection="GeometryCollection",T.Feature="Feature",T.FeatureCollection="FeatureCollection",(E=d||(r.StrikeTypeCode=d={}))[E.CloudToGround=0]="CloudToGround",E[E.CloudToCloud=1]="CloudToCloud",(M=c||(r.WidgetType=c={})).WXLocation="wxlocation",M.WXComparison="wxcomparison",(U=p||(r.WigetPropCondition=p={})).Humidity="humidity",U.Wind="wind",U.Pressure="pressure",U.Visibility="visibility",U.DewPoint="dewPoint",U.UV="uv",U.AirQuality="airQuality",U.Temperature="temperature",U.TemperatureFeelsLike="temperatureFeelsLike",U.Precip="precip",(S=l||(r.WigetPropPeriod=l={})).Daily="daily",S.Hourly="hourly",(I=f||(r.WigetPropType=f={})).Forecast="forecast",I.Historical="historical",(O=y||(r.ActivityCondition=y={}))[O.Poor=1]="Poor",O[O.Fair=2]="Fair",O[O.Good=3]="Good",(C=m||(r.PermissionType=m={}))[C.EndpointLookup=1]="EndpointLookup",C[C.LocationLookup=2]="LocationLookup",C[C.UserLookup=3]="UserLookup",C[C.NotificationMetric=4]="NotificationMetric",C[C.ClickMetric=5]="ClickMetric",C[C.AlertMap=6]="AlertMap",C[C.AlertNews=7]="AlertNews",C[C.AlertSegment=8]="AlertSegment",C[C.NotificationApps=9]="NotificationApps",C[C.NotificationTemplates=10]="NotificationTemplates",C[C.NotificationHeadlines=11]="NotificationHeadlines",C[C.NotificationDateFormats=12]="NotificationDateFormats",C[C.NotificationTranslations=13]="NotificationTranslations",C[C.Permissions=14]="Permissions",C[C.AgentActivity=15]="AgentActivity",C[C.DeleteSubscriptions=16]="DeleteSubscriptions",C[C.AlertSent=17]="AlertSent",C[C.Culture=18]="Culture",C[C.SendNotification=19]="SendNotification",C[C.Headlines=20]="Headlines",C[C.Templates=21]="Templates",C[C.UpdateAccountLockStatus=22]="UpdateAccountLockStatus",(_=g||(r.Role=g={}))[_.Admin=1]="Admin",_[_.User=2]="User",_[_.UnAuthorized=3]="UnAuthorized",_[_.AppAgent=4]="AppAgent",(k=H||(r.LocationType=H={}))[k.Globe=0]="Globe",k[k.PollenID=1]="PollenID",k[k.TideID=2]="TideID",k[k.ZoneID=3]="ZoneID",k[k.PostalKey=4]="PostalKey",k[k.CountyID=5]="CountyID",k[k.CityID=6]="CityID",k[k.AdminDistrict=7]="AdminDistrict",k[k.DmaID=8]="DmaID",k[k.TimeZone=9]="TimeZone",k[k.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})},648875,(e,t,r)=>{"use strict";var n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e.r(562235),r),s(e.r(926398),r),s(e.r(534293),r),s(e.r(470429),r),s(e.r(448436),r),s(e.r(1799),r),s(e.r(728575),r),s(e.r(95443),r),s(e.r(867295),r),s(e.r(832922),r)},563033,(e,t,r)=>{"use strict";var n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e.r(212840),r),s(e.r(688029),r),s(e.r(750413),r),s(e.r(622592),r),s(e.r(273929),r),s(e.r(63461),r),s(e.r(339222),r),s(e.r(698254),r),s(e.r(168126),r)},245943,(e,t,r)=>{"use strict";var n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.APIError=r.UPSXClient=void 0;let o=e.r(981444);Object.defineProperty(r,"UPSXClient",{enumerable:!0,get:function(){return o.UPSXClient}});let i=e.r(391150);Object.defineProperty(r,"APIError",{enumerable:!0,get:function(){return i.APIError}}),s(e.r(479252),r),s(e.r(648875),r),s(e.r(563033),r)},901351,e=>{"use strict";let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},528600,828405,e=>{"use strict";var t=e.i(539922),r=e.i(475566),n=e.i(381477),s=e.i(379805),o=e.i(889753),i=e.i(901351),a=e.i(310847),u=e.i(543512),h=e.i(627897),d=e.i(333350);function c(e){return u.UserSubscriptionPremiumTiers.includes(e)}function p(e){return void 0!==e&&e>u.UserSubscriptionTiers.none}e.s(["isUserLoggedIn",0,p,"isUserTierPremium",0,c],828405),e.s(["useUser",0,function(){let[e,l]=(0,r.useAtom)(o.userProfileAtom),[f,y]=(0,r.useAtom)(a.wxuUserAnonymousIdAtom),[m,g]=(0,r.useAtom)(a.wxuUserAccountUserAccountResponseAtom),[H,q]=(0,t.useState)(!1),w=(0,r.useSetAtom)(a.wxuLoginRedirectPageAtom);d.default&&!H&&(w(window.location.href),q(!0));let A=(0,r.useAtomValue)(o.userTierAtom),P=p(A),b=(0,s.getCookie)("ANON_C"),v=b||f||(0,h.v4)();b||(0,s.setCookie)("ANON_C",v,{path:"/",domain:".weather.com",secure:!0}),(!f||f&&b&&f!==b)&&y(v),!e&&m&&l(m);let T=(0,n.default)(P?"upsx/id":null,()=>i.upsxClient.account.getAccountId(),{shouldRetryOnError:e=>"APIError"!==e.name,revalidateOnFocus:!1,revalidateOnReconnect:!1}),{userID:E=""}=T?.data||{},M=E&&e?.userID!==E;return(0,n.default)(M?"upsx/account":null,()=>i.upsxClient.account.getAccount(),{shouldRetryOnError:e=>"APIError"!==e.name,onSuccess:e=>{l(e),g(e)}}),{user:{anonId:f,userID:E,isUserLoggedIn:P,subscriptionTier:A,isUserPremium:c(A),isUserAdFree:A===u.UserSubscriptionTiers.adFree},userProfile:e}}],528600)}]);