1function __vite__mapDeps(indexes) { 2 if (!__vite__mapDeps.viteFileDeps) { 3 __vite__mapDeps.viteFileDeps = ["build/auto-track-BvpXf-jU.js","build/index-yjs0jCN1.js","build/typography-BJycEVMQ.js","build/Helmet-D7EguiNG.js","build/index-CYkanOlq.js","build/gql-BXUds3tn.js","build/ApolloContext-MQGfuinR.js","build/default_error_boundary-DCRI2_bq.js","build/node-CNjh719v.js","build/env-Blu__xut.js","build/hub-B0HBP01d.js","build/useRailsContext-Phen6V97.js","build/components-Cs2pwaWW.js","build/client.context-C3s6l66l.js","build/index-DxuDI12X.js","build/index-DgwVL_Gd.js","build/index-Co17F72Z.js","build/is-plan-event-enabled-DS1Agtkw.js","build/index--PInJqTw.js","build/index-DZo4GKJS.js","build/index-BhSouxMC.js"] 4 } 5 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 6} 7import{q as yt,v as Wr,aE as Qr,r as B,d as xe,j as I,g as Xr,ay as C,O as Yr}from"./index-yjs0jCN1.js";import{n as Vt,F as Zr}from"./typography-BJycEVMQ.js";import{D as en}from"./default_error_boundary-DCRI2_bq.js";import{u as tn,R as rn}from"./useRailsContext-Phen6V97.js";import{u as ur,g as cr}from"./gql-BXUds3tn.js";import{a as nn,n as on,_ as U,u as lr,m as an,o as fr,M as sn,q as un,S as cn}from"./components-Cs2pwaWW.js";import{a as ln}from"./client.context-C3s6l66l.js";/** 8 * @remix-run/react v2.9.1 9 * 10 * Copyright (c) Remix Software Inc. 11 * 12 * This source code is licensed under the MIT license found in the 13 * LICENSE.md file in the root directory of this source tree. 14 * 15 * @license MIT 16 */let Jt="positions";function fn({getKey:e,...t}){let{isSpaMode:r}=nn(),n=yt(),i=Wr();Qr({getKey:e,storageKey:Jt});let o=B.useMemo(()=>{if(!e)return null;let s=e(n,i);return s!==n.key?s:null},[]);if(r)return null;let a=((s,d)=>{if(!window.history.state||!window.history.state.key){let l=Math.random().toString(32).slice(2);window.history.replaceState({key:l},"")}try{let p=JSON.parse(sessionStorage.getItem(s)||"{}")[d||window.history.state.key];typeof p=="number"&&window.scrollTo(0,p)}catch(l){console.error(l),sessionStorage.removeItem(s)}}).toString();return B.createElement("script",on({},t,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${a})(${JSON.stringify(Jt)}, ${JSON.stringify(o)})`}}))}const dn=xe.styled("div",{position:"fixed",zIndex:"$toaster",bottom:"$2",right:"$2",textTransform:"uppercase",transition:"$normal",userSelect:"none","&:has(:hover)":{opacity:.1}});function hn(){const{ENV:e}=tn();return!e||(e==null?void 0:e.REMIX_ENV)==="production"?null:I.jsx(dn,{children:I.jsx(xe.Badge,{children:e==null?void 0:e.REMIX_ENV})})}function pn(){return I.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`
vendor: 375 bytes, lines 16-20
16(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 17 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 18 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 19 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 20 })(window,document,'script','dataLayer','
20GTM-TTSDHFL
vendor: 3 bytes, line 20
20');
20`}})}function vn(){return I.jsx("noscript",{children:I.jsx("iframe",{title:"global-gtm-code",src:"https://www.googletagmanager.com/ns.html?id=GTM-TTSDHFL",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})}const yn=cr(` 21 query GetGoogleAnalyticsKeys { 22 domainOrg { 23 id 24 googleAnalyticsKeys 25 } 26 } 27`);function gn(){const{data:{domainOrg:e}={}}=ur(yn),t=e==null?void 0:e.googleAnalyticsKeys;return t!=null&&t.length?t==null?void 0:t.filter(r=>!!r).map(r=>I.jsxs(I.Fragment,{children:[I.jsx("script",{async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${r}`}),I.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:` 28 window.dataLayer = window.dataLayer || []; 29 function gtag(){dataLayer.push(arguments);} 30 gtag('js', new Date()); 31 32 gtag('config', '${r}'); 33 `}},r)]})):null}function mn(){return I.jsx("noscript",{children:I.jsx(xe.Alert,{title:"Please enable JavaScript to view this website.",intent:"warning",appearance:"toast",css:{position:"fixed",bottom:"$5",right:"$5"},children:"Some features of this website may not work without JavaScript enabled."})})}function _n({codes:e=[]}){return e!=null&&e.length?e==null?void 0:e.filter(t=>!!t).map(t=>I.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:` 34 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 35 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 36 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
37 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 38 })(window,document,'script','dataLayer','${t}'); 39 `}},t)):null}function bn({codes:e=[]}){return e!=null&&e.length?e==null?void 0:e.filter(t=>!!t).map(t=>I.jsx("noscript",{children:I.jsx("iframe",{title:"gtm-code",src:`https://www.googletagmanager.com/ns.html?id=${t}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})},t)):null}var ot=function(e,t){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ot(e,t)};function ie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ot(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _=function(){return _=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},_.apply(this,arguments)};function dr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function E(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(p){try{l(n.next(p))}catch(g){a(g)}}function d(p){try{l(n.throw(p))}catch(g){a(g)}}function l(p){p.done?o(p.value):i(p.value).then(s,d)}l((n=n.apply(e,t||[])).next())})}function A(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(p){return d([l,p])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function N(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var at=function(e,t){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},at(e,t)};function ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");at(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var re=function(){return re=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},re.apply(this,arguments)};function V(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(p){try{l(n.next(p))}catch(g){a(g)}}function d(p){try{l(n.throw(p))}catch(g){a(g)}}function l(p){p.done?o(p.value):i(p.value).then(s,d)}l((n=n.apply(e,t||[])).next())})}function J(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(p){return d([l,p])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ht(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;
vendor: 4,458 bytes, line 39
39n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function st(e,t,r){t.split&&(t=t.split("."));for(var n=0,i=t.length,o=e,a,s;n<i&&(s=t[n++],!(s==="__proto__"||s==="constructor"||s==="prototype"));)o=o[s]=n===i?r:typeof(a=o[s])==typeof t?a:t[n]*0!==0||~(""+t[n]).indexOf(".")?{}:[]}var le=function(e){ze(t,e);function t(r,n){var i=e.call(this,"".concat(r," ").concat(n))||this;return i.field=r,i}return t}(Error);function de(e){return typeof e=="string"}function ut(e){return typeof e=="number"}function _e(e){return typeof e=="function"}function hr(e){return e!=null}function H(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()==="object"}var gt="is not a string",wn="is not an object",pr="is nil";function Sn(e){var t=".userId/anonymousId/previousId/groupId",r=function(i){var o,a,s;return(s=(a=(o=i.userId)!==null&&o!==void 0?o:i.anonymousId)!==null&&a!==void 0?a:i.groupId)!==null&&s!==void 0?s:i.previousId},n=r(e);if(hr(n)){if(!de(n))throw new le(t,gt)}else throw new le(t,pr)}function xn(e){if(!hr(e))throw new le("Event",pr);if(typeof e!="object")throw new le("Event",wn)}function In(e){if(!de(e.type))throw new le(".type",gt)}function En(e){if(!de(e.event))throw new le(".event",gt)}function An(e,t){return new Promise(function(r,n){var i=setTimeout(function(){n(Error("Promise timed out"))},t);e.then(function(o){return clearTimeout(i),r(o)}).catch(n)})}function On(e){return new Promise(function(t){return setTimeout(t,e)})}function Pn(e,t,r){var n=function(){try{return Promise.resolve(t(e))}catch(i){return Promise.reject(i)}};return On(r).then(function(){return An(n(),1e3)}).catch(function(i){e==null||e.log("warn","Callback Error",{error:i}),e==null||e.stats.increment("callback_error")}).then(function(){return e})}var jn=function(){var e,t,r=new Promise(function(n,i){e=n,t=i});return{resolve:e,reject:t,promise:r}},mt=function(){function e(t){var r;this.callbacks={},this.warned=!1,this.maxListeners=(r=t==null?void 0:t.maxListeners)!==null&&r!==void 0?r:10}return e.prototype.warnIfPossibleMemoryLeak=function(t){this.warned||this.maxListeners&&this.callbacks[t].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(t)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(t,r){return this.callbacks[t]?(this.callbacks[t].push(r),this.warnIfPossibleMemoryLeak(t)):this.callbacks[t]=[r],this},e.prototype.once=function(t,r){var n=this,i=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];n.off(t,i),r.apply(n,o)};return this.on(t,i),this},e.prototype.off=function(t,r){var n,i=(n=this.callbacks[t])!==null&&n!==void 0?n:[],o=i.filter(function(a){return a!==r});return this.callbacks[t]=o,this},e.prototype.emit=function(t){for(var r=this,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=(n=this.callbacks[t])!==null&&n!==void 0?n:[];return a.forEach(function(s){s.apply(r,i)}),this},e}();function Mn(e){var t=Math.random()+1,r=e.minTimeout,n=r===void 0?500:r,i=e.factor,o=i===void 0?2:i,a=e.attempt,s=e.maxTimeout,d=s===void 0?1/0:s;return Math.min(t*n*Math.pow(o,a),d)}var vr="onRemoveFromFuture",_t=function(e){ze(t,e);function t(r,n,i){var o=e.call(this)||this;return o.future=[],o.maxAttempts=r,o.queue=n,o.seen=i??{},o}return t.prototype.push=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n.map(function(a){var s=r.updateAttempts(a);return s>r.maxAttempts||r.includes(a)?!1:(r.queue.push(a),!0)});return this.queue=this.queue.sort(function(a,s){return r.getAttempts(a)-r.getAttempts(s)}),o},t.prototype.pushWithBackoff=function(r){var n=this;if(this.getAttempts(r)===0)return this.push(r)[0];var i=this.updateAttempts(r);if(i>this.maxAttempts||this.includes(r))return!1;var o=Mn({attempt:i-1});return setTimeout(function(){n.queue.push(r),n.future=n.future.filter(function(a){return a.id!==r.id}),n.emit(vr)},o),this.future.push(r),!0},t.prototype.getAttempts=function(r){var n;return(n=this.seen[r.id])!==null&&n!==void 0?n:0},t.prototype.updateAttempts=function(r){return this.seen[r.id]=this.getAttempts(r)+1,this.getAttempts(r)},t.prototype.includes=function(r){return this.queue.includes(r)||this.future.includes(r)||!!this.queue.find(function(n){return n.id===r.id})||!!this.future.find(function(n){return n.id===r.id})},t.prototype.pop=function(){return this.queue.shift()}
vendor: 4,683 bytes, line 39
39,Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(mt),se=256,Re=[],De;for(;se--;)Re[se]=(se+256).toString(16).substring(1);function bt(){var e=0,t,r="";if(!De||se+16>256){for(De=Array(e=256);e--;)De[e]=256*Math.random()|0;e=se=0}for(;e<16;e++)t=De[se+e],e==6?r+=Re[t&15|64]:e==8?r+=Re[t&63|128]:r+=Re[t],e&1&&e>1&&e<11&&(r+="-");return se++,r}var Cn=function(){function e(){this._logs=[]}return e.prototype.log=function(t,r,n){var i=new Date;this._logs.push({level:t,message:r,time:i,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(r,n){var i,o,a,s=re(re({},n),{json:JSON.stringify(n.extras,null," "),extras:n.extras});delete s.time;var d=(a=(o=n.time)===null||o===void 0?void 0:o.toISOString())!==null&&a!==void 0?a:"";return r[d]&&(d="".concat(d,"-").concat(Math.random())),re(re({},r),(i={},i[d]=s,i))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(r){var n=r.level,i=r.message,o=r.extras;n==="info"||n==="debug"?console.log(i,o??""):console[n](i,o??"")});this._logs=[]},e}(),Fn=function(e){var t={gauge:"g",counter:"c"};return t[e]},yr=function(){function e(){this.metrics=[]}return e.prototype.increment=function(t,r,n){r===void 0&&(r=1),this.metrics.push({metric:t,value:r,tags:n??[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(t,r,n){this.metrics.push({metric:t,value:r,tags:n??[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var t=this.metrics.map(function(r){return re(re({},r),{tags:r.tags.join(",")})});console.table?console.table(t):console.log(t),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(t){return{m:t.metric,v:t.value,t:t.tags,k:Fn(t.type),e:t.timestamp}})},e}(),Tn=function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.gauge=function(){},t.prototype.increment=function(){},t.prototype.flush=function(){},t.prototype.serialize=function(){return[]},t}(yr),we=function(){function e(t){var r,n,i;this.retry=(r=t.retry)!==null&&r!==void 0?r:!0,this.type=(n=t.type)!==null&&n!==void 0?n:"plugin Error",this.reason=(i=t.reason)!==null&&i!==void 0?i:""}return e}(),Be=function(){function e(t,r,n,i){r===void 0&&(r=bt()),n===void 0&&(n=new Tn),i===void 0&&(i=new Cn),this.attempts=0,this.event=t,this._id=r,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(t){return t.id===this.id},e.prototype.cancel=function(t){throw t||new we({reason:"Context Cancel"})},e.prototype.log=function(t,r,n){this.logger.log(t,r,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(t,r){var n;if(t.split(".")[0]==="integrations"){var i=t.split(".")[1];if(((n=this.event.integrations)===null||n===void 0?void 0:n[i])===!1)return this.event}return st(this.event,t,r),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(t){this._failedDelivery=t},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}();function Dn(e,t){var r={};return e.forEach(function(n){var i,o=void 0;if(typeof t=="string"){var a=n[t];o=typeof a!="string"?JSON.stringify(a):a}else t instanceof Function&&(o=t(n));o!==void 0&&(r[o]=Ht(Ht([],(i=r[o])!==null&&i!==void 0?i:[],!0),[n],!1))}),r}var Nn=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"},Ln=function(){var e,t,r=0;return{done:function(){return e},run:function(n){var i=n();return Nn(i)&&(++r===1&&(e=new Promise(function(o){return t=o})),i.finally(function(){return--r===0&&t()})),i}}};function kn(e){return V(this,void 0,void 0,function(){var t;return J(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return t=r.sent(),[2,Promise.reject(t)];case 3:return[2]}})})}function Pe(e,t){e.log("debug","plugin",{plugin:t.name});var r=new Date().getTime(),n=t[e.event.type];if(n===void 0)return Promise.resolve(e);var i=kn(function(){return n.apply(t,[e])}).then(function(o){var a=new Date().getTime()-r;return o.stats.gauge("plugin_time",a,["plugin:".concat(t.name)]),o}
vendor: 4,103 bytes, line 39
39).catch(function(o){if(o instanceof we&&o.type==="middleware_cancellation")throw o;return o instanceof we?(e.log("warn",o.type,{plugin:t.name,error:o}),o):(e.log("error","plugin Error",{plugin:t.name,error:o}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),o)});return i}function Rn(e,t){return Pe(e,t).then(function(r){if(r instanceof Be)return r;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(r)})}var $n=function(e){ze(t,e);function t(r){var n=e.call(this)||this;return n.criticalTasks=Ln(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=r,n.queue.on(vr,function(){n.scheduleFlush(0)}),n}return t.prototype.register=function(r,n,i){return V(this,void 0,void 0,function(){var o=this;return J(this,function(a){switch(a.label){case 0:return[4,Promise.resolve(n.load(r,i)).then(function(){o.plugins.push(n)}).catch(function(s){if(n.type==="destination"){o.failedInitializations.push(n.name),console.warn(n.name,s),r.log("warn","Failed to load destination",{plugin:n.name,error:s});return}throw s})];case 1:return a.sent(),[2]}})})},t.prototype.deregister=function(r,n,i){return V(this,void 0,void 0,function(){var o;return J(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),n.unload?[4,Promise.resolve(n.unload(r,i))]:[3,2];case 1:a.sent(),a.label=2;case 2:return this.plugins=this.plugins.filter(function(s){return s.name!==n.name}),[3,4];case 3:return o=a.sent(),r.log("warn","Failed to unload destination",{plugin:n.name,error:o}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(r){return V(this,void 0,void 0,function(){var n;return J(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.push(r),n=this.subscribeToDelivery(r),this.scheduleFlush(0),[2,n]})})},t.prototype.subscribeToDelivery=function(r){return V(this,void 0,void 0,function(){var n=this;return J(this,function(i){return[2,new Promise(function(o){var a=function(s,d){s.isSame(r)&&(n.off("flush",a),o(s))};n.on("flush",a)})]})})},t.prototype.dispatchSingle=function(r){return V(this,void 0,void 0,function(){var n=this;return J(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.updateAttempts(r),r.attempts=1,[2,this.deliver(r).catch(function(o){var a=n.enqueuRetry(o,r);return a?n.subscribeToDelivery(r):(r.setFailedDelivery({reason:o}),r)})]})})},t.prototype.isEmpty=function(){return this.queue.length===0},t.prototype.scheduleFlush=function(r){var n=this;r===void 0&&(r=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){n.flush().then(function(){setTimeout(function(){n.flushing=!1,n.queue.length&&n.scheduleFlush(0)},0)})},r))},t.prototype.deliver=function(r){return V(this,void 0,void 0,function(){var n,i,o,a;return J(this,function(s){switch(s.label){case 0:return[4,this.criticalTasks.done()];case 1:s.sent(),n=Date.now(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.flushOne(r)];case 3:return r=s.sent(),i=Date.now()-n,this.emit("delivery_success",r),r.stats.gauge("delivered",i),r.log("debug","Delivered",r.event),[2,r];case 4:throw o=s.sent(),a=o,r.log("error","Failed to deliver",a),this.emit("delivery_failure",r,a),r.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(r,n){var i=!(r instanceof we)||r.retry;return i?this.queue.pushWithBackoff(n):!1},t.prototype.flush=function(){return V(this,void 0,void 0,function(){var r,n,i;return J(this,function(o){switch(o.label){case 0:if(this.queue.length===0)return[2,[]];if(r=this.queue.pop(),!r)return[2,[]];r.attempts=this.queue.getAttempts(r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(r)];case 2:return r=o.sent(),this.emit("flush",r,!0),[3,4];case 3:return n=o.sent(),i=this.enqueuRetry(n,r),i||(r.setFailedDelivery({reason:n}),this.emit("flush",r,!1)),[2,[]];case 4:return[2,[r]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(r){var n=this.plugins.filter(function(m){var w,x,S;if(m.type!=="destination"&&m.name!=="Segment.io")return!0;var y=void 0;
vendor: 9,347 bytes, line 39
39return(w=m.alternativeNames)===null||w===void 0||w.forEach(function(v){r[v]!==void 0&&(y=r[v])}),(S=(x=r[m.name])!==null&&x!==void 0?x:y)!==null&&S!==void 0?S:(m.name==="Segment.io"?!0:r.All)!==!1}),i=Dn(n,"type"),o=i.before,a=o===void 0?[]:o,s=i.enrichment,d=s===void 0?[]:s,l=i.destination,p=l===void 0?[]:l,g=i.after,b=g===void 0?[]:g;return{before:a,enrichment:d,destinations:p,after:b}},t.prototype.flushOne=function(r){var n,i;return V(this,void 0,void 0,function(){var o,a,s,d,l,p,w,g,b,m,w,x,S,y,v;return J(this,function(c){switch(c.label){case 0:if(!this.isReady())throw new Error("Not ready");r.attempts>1&&this.emit("delivery_retry",r),o=this.availableExtensions((n=r.event.integrations)!==null&&n!==void 0?n:{}),a=o.before,s=o.enrichment,d=0,l=a,c.label=1;case 1:return d<l.length?(p=l[d],[4,Rn(r,p)]):[3,4];case 2:w=c.sent(),w instanceof Be&&(r=w),this.emit("message_enriched",r,p),c.label=3;case 3:return d++,[3,1];case 4:g=0,b=s,c.label=5;case 5:return g<b.length?(m=b[g],[4,Pe(r,m)]):[3,8];case 6:w=c.sent(),w instanceof Be&&(r=w),this.emit("message_enriched",r,m),c.label=7;case 7:return g++,[3,5];case 8:return x=this.availableExtensions((i=r.event.integrations)!==null&&i!==void 0?i:{}),S=x.destinations,y=x.after,[4,new Promise(function(u,h){setTimeout(function(){var f=S.map(function(P){return Pe(r,P)});Promise.all(f).then(u).catch(h)},0)})];case 9:return c.sent(),r.stats.increment("message_delivered"),this.emit("message_delivered",r),v=y.map(function(u){return Pe(r,u)}),[4,Promise.all(v)];case 10:return c.sent(),[2,r]}})})},t}(mt),Bn=function(e,t){var r=Date.now()-e;return Math.max((t??300)-r,0)};function Un(e,t,r,n){return V(this,void 0,void 0,function(){var i,o;return J(this,function(a){switch(a.label){case 0:return r.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return n!=null&&n.callback?[4,Pn(o,n.callback,Bn(i,n.timeout))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return n!=null&&n.debug&&o.flush(),[2,o]}})})}function qn(e,t,r,n){var i,o=[e,t,r,n],a=H(e)?e.event:e;if(!a||!de(a))throw new Error("Event missing");var s=H(e)?(i=e.properties)!==null&&i!==void 0?i:{}:H(t)?t:{},d={};_e(r)||(d=r??{}),H(e)&&!_e(t)&&(d=t??{});var l=o.find(_e);return[a,s,d,l]}function Wt(e,t,r,n,i){var o,a,s=null,d=null,l=[e,t,r,n,i],p=l.filter(de);p[0]!==void 0&&p[1]!==void 0&&(s=p[0],d=p[1]),p.length===1&&(s=null,d=p[0]);var g=l.find(_e),b=l.filter(function(x){return d===null?H(x):H(x)||x===null}),m=(o=b[0])!==null&&o!==void 0?o:{},w=(a=b[1])!==null&&a!==void 0?a:{};return[s,d,m,w,g]}var Qt=function(e){return function(){for(var t,r,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],d=0,l=i;d<l.length;d++){var p=l[d],g=s.pop();if(g==="id"){if(de(p)||ut(p)){a.id=p.toString();continue}if(p==null)continue;g=s.pop()}if((g==="traits"||g==="options")&&(p==null||H(p))&&(a[g]=p),_e(p)){a.callback=p;break}}return[(t=a.id)!==null&&t!==void 0?t:e.id(),(r=a.traits)!==null&&r!==void 0?r:{},(n=a.options)!==null&&n!==void 0?n:{},a.callback]}};function zn(e,t,r,n){ut(e)&&(e=e.toString()),ut(t)&&(t=t.toString());var i=[e,t,r,n],o=i.filter(de),a=o[0],s=a===void 0?e:a,d=o[1],l=d===void 0?null:d,p=i.filter(H)[0],g=p===void 0?{}:p,b=i.find(_e);return[s,l,g,b]}function wt(){return typeof window<"u"}function Ia(){return!wt()}function Kn(){return wt()?window.navigator.onLine:!0}function je(){return!Kn()}function Gn(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],a=[],s={},d=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:d,headers:{keys:function(){return o},entries:function(){return a},get:function(p){return s[p.toLowerCase()]},has:function(p){return p.toLowerCase()in s}}}};for(var l in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(p,g,b){o.push(g=g.toLowerCase()),a.push([g,b]),s[g]=s[g]?s[g]+","+b:b}),r(d())},i.onerror=n,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(l,t.headers[l]);i.send(t.body||null)})}var St=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:null},Ke=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=St();return(r&&r.fetch||Gn).apply(void 0,e)},Me="1.63.0",Vn="npm";function Jn(){return Vn}var gr="api.segment.io/v1",Hn=function(e,t,r){var n=t.reduce(function(i,o){var a=o.split(":"),s=a[0],d=a[1];return i[s]=d,i},{});return{type:"Counter",metric:e,value:1,tags:_(_({},n),{library:"analytics.js",library_version:r==="web"?"next-".concat(Me):"npm:next-".concat(Me)})}};function Ze(e){console.error("Error sending segment performance metrics",e)}var Wn=function(){function e(t){var r=this,n,i,o,a;if(this.host=(n=t==null?void 0:t.host)!==null&&n!==void 0?n:gr,this.sampleRate=(i=t==null?void 0:t.sampleRate)!==null&&i!==void 0?i:1,this.flushTimer=(o=t==null?void 0:t.flushTimer)!==null&&o!==void 0?o:30*1e3,this.maxQueueSize=(a=t==null?void 0:t.maxQueueSize)!==null&&a!==void 0?a:20,this.queue=[],this.sampleRate>0){var s=!1,d=function(){s||(s=!0,r.flush().catch(Ze),s=!1,setTimeout(d,r.flushTimer))};d()}}return e.prototype.increment=function(t,r){if(t.includes("analytics_js.")&&r.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=Hn(t,r,Jn());this.queue.push(n),t.includes("error")&&this.flush().catch(Ze)}},e.prototype.flush=function(){return E(this,void 0,void 0,function(){var t=this;return A(this,function(r){switch(r.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(n){Ze(n),t.sampleRate=0})];case 1:return r.sent(),[2]}})})},e.prototype.send=function(){return E(this,void 0,void 0,function(){var t,r,n;return A(this,function(i){return t={series:this.queue},this.queue=[],r={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,Ke(n,{headers:r,body:JSON.stringify(t),method:"POST"})]})})},e}(),Ne,mr=function(e){ie(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.initRemoteMetrics=function(r){Ne=new Wn(r)},t.prototype.increment=function(r,n,i){e.prototype.increment.call(this,r,n,i),Ne==null||Ne.increment(r,i??[])},t}(yr),ne=function(e){ie(t,e);function t(r,n){return e.call(this,r,n,new mr)||this}return t.system=function(){return new this({type:"track",event:"system"})},t}(Be),_r={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(r){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(y,v){var c=y[0],u=y[1],h=y[2],f=y[3];c+=(u&h|~u&f)+v[0]-680876936|0,c=(c<<7|c>>>25)+u|0,f+=(c&u|~c&h)+v[1]-389564586|0,f=(f<<12|f>>>20)+c|0,h+=(f&c|~f&u)+v[2]+606105819|0,h=(h<<17|h>>>15)+f|0,u+=(h&f|~h&c)+v[3]-1044525330|0,u=(u<<22|u>>>10)+h|0,c+=(u&h|~u&f)+v[4]-176418897|0,c=(c<<7|c>>>25)+u|0,f+=(c&u|~c&h)+v[5]+1200080426|0,f=(f<<12|f>>>20)+c|0,h+=(f&c|~f&u)+v[6]-1473231341|0,h=(h<<17|h>>>15)+f|0,u+=(h&f|~h&c)+v[7]-45705983|0,u=(u<<22|u>>>10)+h|0,c+=(u&h|~u&f)+v[8]+1770035416|0,c=(c<<7|c>>>25)+u|0,f+=(c&u|~c&h)+v[9]-1958414417|0,f=(f<<12|f>>>20)+c|0,h+=(f&c|~f&u)+v[10]-42063|0,h=(h<<17|h>>>15)+f|0,u+=(h&f|~h&c)+v[11]-1990404162|0,u=(u<<22|u>>>10)+h|0,c+=(u&h|~u&f)+v[12]+1804603682|0,c=(c<<7|c>>>25)+u|0,f+=(c&u|~c&h)+v[13]-40341101|0,f=(f<<12|f>>>20)+c|0,h+=(f&c|~f&u)+v[14]-1502002290|0,h=(h<<17|h>>>15)+f|0,u+=(h&f|~h&c)+v[15]+1236535329|0,u=(u<<22|u>>>10)+h|0,c+=(u&f|h&~f)+v[1]-165796510|0,c=(c<<5|c>>>27)+u|0,f+=(c&h|u&~h)+v[6]-1069501632|0,f=(f<<9|f>>>23)+c|0,h+=(f&u|c&~u)+v[11]+643717713|0,h=(h<<14|h>>>18)+f|0,u+=(h&c|f&~c)+v[0]-373897302|0,u=(u<<20|u>>>12)+h|0,c+=(u&f|h&~f)+v[5]-701558691|0,c=(c<<5|c>>>27)+u|0,f+=(c&h|u&~h)+v[10]+38016083|0,f=(f<<9|f>>>23)+c|0,h+=(f&u|c&~u)+v[15]-660478335|0,h=(h<<14|h>>>18)+f|0,u+=(h&c|f&~c)+v[4]-405537848|0,u=(u<<20|u>>>12)+h|0,c+=(u&f|h&~f)+v[9]+568446438|0,c=(c<<5|c>>>27)+u|0,f+=(c&h|u&~h)+v[14]-1019803690|0,f=(f<<9|f>>>23)+c|0,h+=(f&u|c&~u)+v[3]-187363961|0,h=(h<<14|h>>>18)+f|0,u+=(h&c|f&~c)+v[8]+1163531501|0,u=(u<<20|u>>>12)+h|0,c+=(u&f|h&~f)+v[13]-1444681467|0,c=(c<<5|c>>>27)+u|0,f+=(c&h|u&~h)+v[2]-51403784|0,f=(f<<9|f>>>23)+c|0,h+=(f&u|c&~u)+v[7]+1735328473|0,h=(h<<14|h>>>18)+f|0,u+=(h&c|f&~c)+v[12]-1926607734|0,u=(u<<20|u>>>12)+h|0,c+=(u^h^f)+v[5]-378558|0,c=(c<<4|c>>>28)+u|0,f+=(c^u^h)+v[8]-2022574463|0,f=(f<<11|f>>>21)+c|0,h+=(f^c^u)+v[11]+1839030562|0,h=(h<<16|h>>>16)+f|0,u+=(h^f^c)+v[14]-35309556|0,u=(u<<23|u>>>9)+h|0,c+=(u^h^f)+v[1]-1530992060|0,c=(c<<4|c>>>28)+u|0,f+=(c^u^h)+v[4]+1272893353|0,f=(f<<11|f>>>21)+c|0,h+=(f^c^u)+v[7]-155497632|0,h=(h<<16|h>>>16)+f|0,u+=(h^f^c)+v[10]-1094730640|0,u=(u<<23|u>>>9)+h|0,c+=(u^h^f)+v[13]+681279174|0,c=(c<<4|c>>>28)+u|0,f+=(c^u^h)+v[0]-358537222|0,f=(f<<11|f>>>21)+c|0,h+=(f^c^u)+v[3]-722521979|0,h=(h<<16|h>>>16)+f|0,u+=(h^f^c)+v[6]+76029189|0,u=(u<<23|u>>>9)+h|0,c+=(u^h^f)+v[9]-640364487|0,c=(c<<4|c>>>28)+u|0,f+=(c^u^h)+v[12]-421815835|0,f=(f<<11|f>>>21)+c|0,h+=(f^c^u)+v[15]+530742520|0,h=(h<<16|h>>>16)+f|0,u+=(h^f^c)+v[2]-995338651|0,u=(u<<23|u>>>
399)+h|0,c+=(h^(u|~f))+v[0]-198630844|0,c=(c<<6|c>>>26)+u|0,f+=(u^(c|~h))+v[7]+1126891415|0,f=(f<<10|f>>>22)+c|0,h+=(c^(f|~u))+v[14]-1416354905|0,h=(h<<15|h>>>17)+f|0,u+=(f^(h|~c))+v[5]-57434055|0,u=(u<<21|u>>>11)+h|0,c+=(h^(u|~f))+v[12]+1700485571|0,c=(c<<6|c>>>26)+u|0,f+=(u^(c|~h))+v[3]-1894986606|0,f=(f<<10|f>>>22)+c|0,h+=(c^(f|~u))+v[10]-1051523|0,h=(h<<15|h>>>17)+f|0,u+=(f^(h|~c))+v[1]-2054922799|0,u=(u<<21|u>>>11)+h|0,c+=(h^(u|~f))+v[8]+1873313359|0,c=(c<<6|c>>>26)+u|0,f+=(u^(c|~h))+v[15]-30611744|0,f=(f<<10|f>>>22)+c|0,h+=(c^(f|~u))+v[6]-1560198380|0,h=(h<<15|h>>>17)+f|0,u+=(f^(h|~c))+v[13]+1309151649|0,u=(u<<21|u>>>11)+h|0,c+=(h^(u|~f))+v[4]-145523070|0,c=(c<<6|c>>>26)+u|0,f+=(u^(c|~h))+v[11]-1120210379|0,f=(f<<10|f>>>22)+c|0,h+=(c^(f|~u))+v[2]+718787259|0,h=(h<<15|h>>>17)+f|0,u+=(f^(h|~c))+v[9]-343485551|0,u=(u<<21|u>>>11)+h|0,y[0]=c+y[0]|0,y[1]=u+y[1]|0,y[2]=h+y[2]|0,y[3]=f+y[3]|0}function o(y){var v=[],c;for(c=0;c<64;c+=4)v[c>>2]=y.charCodeAt(c)+(y.charCodeAt(c+1)<<8)+(y.charCodeAt(c+2)<<16)+(y.charCodeAt(c+3)<<24);return v}function a(y){var v=[],c;for(c=0;c<64;c+=4)v[c>>2]=y[c]+(y[c+1]<<8)+(y[c+2]<<16)+(y[c+3]<<24);return v}function s(y){var v=y.length,c=[1732584193,-271733879,-1732584194,271733878],u,h,f,P,R,K;for(u=64;u<=v;u+=64)i(c,o(y.substring(u-64,u)));for(y=y.substring(u-64),h=y.length,f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=0;u<h;u+=1)f[u>>2]|=y.charCodeAt(u)<<(u%4<<3);if(f[u>>2]|=128<<(u%4<<3),u>55)for(i(c,f),u=0;u<16;u+=1)f[u]=0;return P=v*8,P=P.toString(16).match(/(.*?)(.{0,8})$/),R=parseInt(P[2],16),K=parseInt(P[1],16)||0,f[14]=R,f[15]=K,i(c,f),c}function d(y){var v=y.length,c=[1732584193,-271733879,-1732584194,271733878],u,h,f,P,R,K;for(u=64;u<=v;u+=64)i(c,a(y.subarray(u-64,u)));for(y=u-64<v?y.subarray(u-64):new Uint8Array(0),h=y.length,f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=0;u<h;u+=1)f[u>>2]|=y[u]<<(u%4<<3);if(f[u>>2]|=128<<(u%4<<3),u>55)for(i(c,f),u=0;u<16;u+=1)f[u]=0;return P=v*8,P=P.toString(16).match(/(.*?)(.{0,8})$/),R=parseInt(P[2],16),K=parseInt(P[1],16)||0,f[14]=R,f[15]=K,i(c,f),c}function l(y){var v="",c;for(c=0;c<4;c+=1)v+=n[y>>c*8+4&15]+n[y>>c*8&15];return v}function p(y){var v;for(v=0;v<y.length;v+=1)y[v]=l(y[v]);return y.join("")}p(s("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function y(v,c){return v=v|0||0,v<0?Math.max(v+c,0):Math.min(v,c)}ArrayBuffer.prototype.slice=function(v,c){var u=this.byteLength,h=y(v,u),f=u,P,R,K,F;return c!==r&&(f=y(c,u)),h>f?new ArrayBuffer(0):(P=f-h,R=new ArrayBuffer(P),K=new Uint8Array(R),F=new Uint8Array(this,h,P),K.set(F),R)}}();function g(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function b(y,v){var c=y.length,u=new ArrayBuffer(c),h=new Uint8Array(u),f;for(f=0;f<c;f+=1)h[f]=y.charCodeAt(f);return v?h:u}function m(y){return String.fromCharCode.apply(null,new Uint8Array(y))}function w(y,v,c){var u=new Uint8Array(y.byteLength+v.byteLength);return u.set(new Uint8Array(y)),u.set(new Uint8Array(v),y.byteLength),c?u:u.buffer}function x(y){var v=[],c=y.length,u;for(u=0;
39u<c-1;u+=2)v.push(parseInt(y.substr(u,2),16));return String.fromCharCode.apply(String,v)}function S(){this.reset()}return S.prototype.append=function(y){return this.appendBinary(g(y)),this},S.prototype.appendBinary=function(y){this._buff+=y,this._length+=y.length;var v=this._buff.length,c;for(c=64;c<=v;c+=64)i(this._hash,o(this._buff.substring(c-64,c)));return this._buff=this._buff.substring(c-64),this},S.prototype.end=function(y){var v=this._buff,c=v.length,u,h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f;for(u=0;u<c;u+=1)h[u>>2]|=v.charCodeAt(u)<<(u%4<<3);return this._finish(h,c),f=p(this._hash),y&&(f=x(f)),this.reset(),f},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(y,v){var c=v,u,h,f;if(y[c>>2]|=128<<(c%4<<3),c>55)for(i(this._hash,y),c=0;c<16;c+=1)y[c]=0;u=this._length*8,u=u.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(u[2],16),f=parseInt(u[1],16)||0,y[14]=h,y[15]=f,i(this._hash,y)},S.hash=function(y,v){return S.hashBinary(g(y),v)},S.hashBinary=function(y,v){var c=s(y),u=p(c);return v?x(u):u},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(y){var v=w(this._buff.buffer,y,!0),c=v.length,u;for(this._length+=y.byteLength,u=64;u<=c;u+=64)i(this._hash,a(v.subarray(u-64,u)));return this._buff=u-64<c?new Uint8Array(v.buffer.slice(u-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(y){var v=this._buff,c=v.length,u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h,f;for(h=0;h<c;h+=1)u[h>>2]|=v[h]<<(h%4<<3);return this._finish(u,c),f=p(this._hash),y&&(f=x(f)),this.reset(),f},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var y=S.prototype.getState.call(this);return y.buff=m(y.buff),y},S.ArrayBuffer.prototype.setState=function(y){return y.buff=b(y.buff,!0),S.prototype.setState.call(this,y)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(y,v){var c=d(new Uint8Array(y)),u=p(c);return v?x(u):u},S})})(_r);var Qn=_r.exports;const Xn=Xr(Qn);var br="bpc",wr=function(e,t,r,n,i,o){return{__t:br,c:t,p:n,u:e,s:r,t:i,r:o}},Yn=Object.keys(wr("","","","","",""));function Zn(e){if(!H(e)||e.__t!==br)return!1;for(var t in e)if(!Yn.includes(t))return!1;return!0}var ei=function(e,t){return e.indexOf("?")>-1?e:e+t},ti=function(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)},ri=function(e){try{return new URL(e).pathname}catch{return e[0]==="/"?e:"/"+e}},Sr=function(e){var t=e.c,r=e.p,n=e.s,i=e.u,o=e.r,a=e.t,s=t?ri(t):r,d=t?ei(t,n):ti(i);return{path:s,referrer:o,search:n,title:a,url:d}},xr=function(){var e=document.querySelector("link[rel='canonical']");return wr(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},ni=function(){return Sr(xr())};function ii(e,t){return Object.assign.apply(Object,N([{}],t.map(function(r){var n;if(e&&Object.prototype.hasOwnProperty.call(e,r))return n={},n[r]=e[r],n}),!1))}var oi=function(e,t){t===void 0&&(t=ni());var r=e.context,n;e.type==="page"&&(n=e.properties&&ii(e.properties,Object.keys(t)),e.properties=_(_(_({},t),e.properties),e.name?{name:e.name}:{})),r.page=_(_(_({},t),n),r.page)},ai=function(){function e(t){this.user=t}return e.prototype.track=function(t,r,n,i,o){return this.normalize(_(_({},this.baseEvent()),{event:t,type:"track",properties:r,options:_({},n),integrations:_({},i)}),o)},e.prototype.page=function(t,r,n,i,o,a){var s,d={type:"page",properties:_({},n),options:_({},i),integrations:_({},o)};return t!==null&&(d.category=t,d.properties=(s=d.properties)!==null&&s!==void 0?s:{},d.properties.category=t),r!==null&&(d.name=r),this.normalize(_(_({},this.baseEvent()),d),a)},e.prototype.screen=function(t,r,n,i,o,a){var s={type:"screen",properties:_({},n),options:_({},i),integrations:_({},o)};return t!==null&&(s.category=t),r!==null&&(s.name=r),this.normalize(_(_({},this.baseEvent()),s),a)},e.prototype.identify=function(t,r,n,i,o){return this.normalize(_(_({},this.baseEvent()),{type:"identify",userId:t,traits:r,options:_({},n),integrations:_({},i)}),o)},e.prototype.group=function(t,r,n,i,o){return this.normalize(_(_({},this.baseEvent()),{type:"group",traits:r,options:_({},n),integrations:_({},i),groupId:t}),o)},e.prototype.alias=function(t,r,n,i,o){var a={userId:t,type:"alias",options:_({},n),integrations:_({},i)};return r!==null&&(a.previousId=r),t===void 0?this.normalize(_(_({},a),this.baseEvent())):this.normalize(_(_({},this.baseEvent()),a),o)},e.prototype.baseEvent=function(){var t={integrations:{},options:{}},r=this.user;return r.id()&&(t.userId=r.id()),r.anonymousId()&&(t.anonymousId=r.anonymousId()),t},e.prototype.context=function(t){var r,n,i,o=["integrations","anonymousId","timestamp","userId"],a=(r=t.options)!==null&&r!==void 0?r:{};delete a.integrations;var s=Object.keys(a),d=(i=(n=t.options)===null||n===void 0?void 0:n.context)!==null&&i!==void 0?i:{},l={};
vendor: 9,123 bytes, line 39
39return s.forEach(function(p){p!=="context"&&(o.includes(p)?st(l,p,a[p]):st(d,p,a[p]))}),[d,l]},e.prototype.normalize=function(t,r){var n,i,o;!((n=t.options)===null||n===void 0)&&n.anonymousId&&this.user.anonymousId(t.options.anonymousId);var a=Object.keys((i=t.integrations)!==null&&i!==void 0?i:{}).reduce(function(m,w){var x,S;return _(_({},m),(x={},x[w]=!!(!((S=t.integrations)===null||S===void 0)&&S[w]),x))},{}),s=_(_({},a),(o=t.options)===null||o===void 0?void 0:o.integrations),d=this.context(t),l=d[0],p=d[1];t.options;var g=dr(t,["options"]),b=_(_(_(_({timestamp:new Date},g),{context:l,integrations:s}),p),{messageId:"ajs-next-"+Xn.hash(JSON.stringify(t)+bt())});return oi(b,r),b},e}(),W={getItem:function(){},setItem:function(){},removeItem:function(){}};try{W=wt()&&window.localStorage?window.localStorage:W}catch(e){console.warn("Unable to access localStorage",e)}function Ir(e){var t=W.getItem(e);return(t?JSON.parse(t):[]).map(function(r){return new ne(r.event,r.id)})}function si(e,t){var r=Ir(e),n=N(N([],t,!0),r,!0),i=n.reduce(function(o,a){var s;return _(_({},o),(s={},s[a.id]=a,s))},{});W.setItem(e,JSON.stringify(Object.values(i)))}function Er(e){var t=W.getItem(e);return t?JSON.parse(t):{}}function ui(e,t){var r=Er(e);W.setItem(e,JSON.stringify(_(_({},r),t)))}function Xt(e){W.removeItem(e)}var ci=function(){return new Date().getTime()};function ct(e,t,r){r===void 0&&(r=0);var n=50,i="persisted-queue:v1:".concat(e,":lock"),o=function(l){return new Date().getTime()>l},a=W.getItem(i),s=a?JSON.parse(a):null,d=s===null||o(s);if(d){W.setItem(i,JSON.stringify(ci()+n)),t(),W.removeItem(i);return}!d&&r<3?setTimeout(function(){ct(e,t,r+1)},n):console.error("Unable to retrieve lock")}var xt=function(e){ie(t,e);function t(r,n){var i=e.call(this,r,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),s=[],d={};return ct(n,function(){try{s=Ir(o),d=Er(a),Xt(o),Xt(a),i.queue=N(N([],s,!0),i.queue,!0),i.seen=_(_({},d),i.seen)}catch(l){console.error(l)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var l=N(N([],i.queue,!0),i.future,!0);try{ct(n,function(){si(o,l),ui(a,i.seen)})}catch(p){console.error(p)}}}),i}return t}(_t),li=function(e){ie(t,e);function t(r){return e.call(this,typeof r=="string"?new xt(4,r):r)||this}return t.prototype.flush=function(){return E(this,void 0,void 0,function(){return A(this,function(r){return je()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}($n);function It(e){for(var t=e.constructor.prototype,r=0,n=Object.getOwnPropertyNames(t);r<n.length;r++){var i=n[r];if(i!=="constructor"){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&typeof o.value=="function"&&(e[i]=e[i].bind(e))}}return e}/*! js-cookie v3.0.1 | MIT */function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var fi={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function lt(e,t){function r(i,o,a){if(!(typeof document>"u")){a=Le({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var d in a)a[d]&&(s+="; "+d,a[d]!==!0&&(s+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+s}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var d=o[s].split("="),l=d.slice(1).join("=");try{var p=decodeURIComponent(d[0]);if(a[p]=e.read(l,p),i===p)break}catch{}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Le({},o,{expires:-1}))},withAttributes:function(i){return lt(this.converter,Le({},this.attributes,i))},withConverter:function(i){return lt(Le({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Y=lt(fi,{path:"/"});function di(e){var t=e.hostname,r=t.split("."),n=r[r.length-1],i=[];if(r.length===4&&parseInt(n,10)>0||r.length<=1)return i;for(var o=r.length-2;o>=0;--o)i.push(r.slice(o).join("."));return i}function hi(e){try{return new URL(e)}catch{return}}function Ar(e){var t=hi(e);if(t)for(var r=di(t),n=0;n<r.length;++n){var i="__tld__",o=r[n],a={domain:"."+o};try{if(Y.set(i,"1",a),Y.get(i))return Y.remove(i,a),o}catch{return}}}var pi=365,Or=function(){function e(t){t===void 0&&(t=e.defaults),this.options=_(_({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:pi,domain:Ar(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(t){var r;try{var n=Y.get(t);if(n==null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch{return n??null}}catch{return null}},e.prototype.set=function(t,r){typeof r=="string"?Y.set(t,r,this.opts()):r===null?Y.remove(t,this.opts()):Y.set(t,JSON.stringify(r),this.opts())},e.prototype.remove=function(t){return Y.remove(t,this.opts())},e}(),vi=function(){function e(){}return e.prototype.localStorageWarning=function(t,r){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(r))},e.prototype.get=function(t){var r;try{var n=localStorage.getItem(t);if(n===null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch{return n??null}}catch{return this.localStorageWarning(t,"unavailable"),null}},e.prototype.set=function(t,r){try{localStorage.setItem(t,JSON.stringify(r))}catch{this.localStorageWarning(t,"full")}},e.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch{this.localStorageWarning(t,"unavailable")}},e}(),Et=function(){function e(){this.cache={}}return e.prototype.get=function(t){var r;return(r=this.cache[t])!==null&&r!==void 0?r:null},e.prototype.set=function(t,r){this.cache[t]=r},e.prototype.remove=function(t){delete this.cache[t]},e}(),L={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"};function Pr(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(t){return Object.values(L).includes(t)})}function yi(e){return typeof e=="object"&&e.name!==void 0}var et=function(e,t,r,n){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(r,'" | Err: ').concat(n))},ue=function(){function e(t){this.stores=t}return e.prototype.get=function(t){for(var r=null,n=0,i=this.stores;n<i.length;n++){var o=i[n];try{if(r=o.get(t),r!=null)return r}catch(a){et(o,"get",t,a)}}return null},e.prototype.set=function(t,r){this.stores.forEach(function(n){try{n.set(t,r)}catch(i){et(n,"set",t,i)}})},e.prototype.clear=function(t){this.stores.forEach(function(r){try{r.remove(t)}catch(n){et(r,"remove",t,n)}})},e.prototype.getAndSync=function(t){var r=this.get(t),n=typeof r=="number"?r.toString():r;return this.set(t,n),n},e}();function ft(e){var t=e.map(function(r){var n,i;switch(yi(r)?(n=r.name,i=r.settings):n=r,n){case L.Cookie:return new Or(i);case L.LocalStorage:return new vi;case L.Memory:return new Et;default:throw new Error("Unknown Store Type: ".concat(r))}});return t}function jr(e,t){return e.map(function(r){return t&&r===L.Cookie?{name:r,settings:t}:r})}var ae={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},Mr=function(){function e(t,r){t===void 0&&(t=ae);var n=this,i,o,a,s;this.options={},this.id=function(l){if(n.options.disable)return null;var p=n.identityStore.getAndSync(n.idKey);if(l!==void 0){n.identityStore.set(n.idKey,l);var g=l!==p&&p!==null&&l!==null;g&&n.anonymousId(null)}var b=n.identityStore.getAndSync(n.idKey);if(b)return b;var m=n.legacyUserStore.get(ae.cookie.oldKey);return m?typeof m=="object"?m.id:m:null},this.anonymousId=function(l){var p,g;if(n.options.disable)return null;if(l===void 0){var b=(p=n.identityStore.getAndSync(n.anonKey))!==null&&p!==void 0?p:(g=n.legacySIO())===null||g===void 0?void 0:g[0];if(b)return b}return l===null?(n.identityStore.set(n.anonKey,null),n.identityStore.getAndSync(n.anonKey)):(n.identityStore.set(n.anonKey,l??bt()),n.identityStore.getAndSync(n.anonKey))},this.traits=function(l){var p;if(!n.options.disable)return l===null&&(l={}),l&&n.traitsStore.set(n.traitsKey,l??{}),(p=n.traitsStore.get(n.traitsKey))!==null&&p!==void 0?p:{}},this.options=_(_({},ae),t),this.cookieOptions=r,this.idKey=(o=(i=t.cookie)===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:ae.cookie.key,this.traitsKey=(s=(a=t.localStorage)===null||a===void 0?void 0:a.key)!==null&&s!==void 0?s:ae.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,r),this.legacyUserStore=this.createStorage(this.options,r,function(l){return l===L.Cookie}),this.traitsStore=this.createStorage(this.options,r,function(l){return l!==L.Cookie});
vendor: 7,595 bytes, line 39
39var d=this.legacyUserStore.get(ae.cookie.oldKey);d&&typeof d=="object"&&(d.id&&this.id(d.id),d.traits&&this.traits(d.traits)),It(this)}return e.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var r=t.split("----"),n=r[0],i=r[1];return[n,i]},e.prototype.identify=function(t,r){if(!this.options.disable){r=r??{};var n=this.id();(n===null||n===t)&&(r=_(_({},this.traits()),r)),t&&this.id(t),this.traits(r)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(t,r,n){var i=[L.LocalStorage,L.Cookie,L.Memory];return t.disable?new ue([]):t.persist?(t.storage!==void 0&&t.storage!==null&&Pr(t.storage)&&(i=t.storage.stores),t.localStorageFallbackDisabled&&(i=i.filter(function(o){return o!==L.LocalStorage})),n&&(i=i.filter(n)),new ue(ft(jr(i,r)))):new ue([new Et])},e.defaults=ae,e}(),Yt={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},gi=function(e){ie(t,e);function t(r,n){r===void 0&&(r=Yt);var i=e.call(this,_(_({},Yt),r),n)||this;return i.anonymousId=function(o){},It(i),i}return t}(Mr),At="analytics";function Ot(){return window[At]}function mi(e){At=e}function _i(e){window[At]=e}var bi=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"},Cr=function(e,t,r){r.getCalls(e).forEach(function(n){Pt(t,n).catch(console.error)})},wi=function(e,t){return E(void 0,void 0,void 0,function(){var r,n,i;return A(this,function(o){switch(o.label){case 0:r=0,n=t.getCalls("addSourceMiddleware"),o.label=1;case 1:return r<n.length?(i=n[r],[4,Pt(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},Si=Cr.bind(void 0,"on"),xi=Cr.bind(void 0,"setAnonymousId"),Ii=function(e,t){t.toArray().forEach(function(r){setTimeout(function(){Pt(e,r).catch(console.error)},0)})},ve=function(e){if(Fr(e)){var t=e.pop();return Sr(t)}},Fr=function(e){var t=e[e.length-1];return Zn(t)},Ue=function(){function e(t,r,n,i){n===void 0&&(n=function(){}),i===void 0&&(i=console.error),this.method=t,this.resolve=n,this.reject=i,this.called=!1,this.args=r}return e}(),Ei=function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._callMap={},this.push.apply(this,t)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(t){this._callMap=t},enumerable:!1,configurable:!0}),e.prototype.getCalls=function(t){var r;return(r=this.calls[t])!==null&&r!==void 0?r:[]},e.prototype.push=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];r.forEach(function(i){var o=["track","screen","alias","group","page","identify"];o.includes(i.method)&&!Fr(i.args)&&(i.args=N(N([],i.args,!0),[xr()],!1)),t.calls[i.method]?t.calls[i.method].push(i):t.calls[i.method]=[i]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){var t=Ot();if(Array.isArray(t)){var r=t.splice(0,t.length),n=r.map(function(i){var o=i[0],a=i.slice(1);return new Ue(o,a)});this.push.apply(this,n)}},e}();function Pt(e,t){return E(this,void 0,void 0,function(){var r,n;return A(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,r=e[t.method].apply(e,t.args),bi(r)?[4,r]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(r),[3,4];case 3:return n=i.sent(),t.reject(n),[3,4];case 4:return[2]}})})}var Ai=function(){function e(t){var r=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=Me,this._preInitBuffer=new Ei,this._promise=t(this._preInitBuffer),this._promise.then(function(n){var i=n[0],o=n[1];r.instance=i,r.ctx=o}).catch(function(){})}return e.prototype.then=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).then.apply(t,r)},e.prototype.catch=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).catch.apply(t,r)},e.prototype.finally=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).finally.apply(t,r)},e.prototype._createMethod=function(t){var r=this;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(r.instance){var a=(n=r.instance)[t].apply(n,i);return Promise.resolve(a)}return new Promise(function(s,d){r._preInitBuffer.push(new Ue(t,i,s,d))})}},e.prototype._createChainableMethod=function(t){var r=this;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return r.instance?((n=r.instance)[t].apply(n,i),r):(r._preInitBuffer.push(new Ue(t,i)),r)}},e}(),ee="This is being deprecated and will be not be available in future releases of Analytics JS",tt=St(),rt=tt==null?void 0:tt.analytics;function Oi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=t?10:1,i=r?new _t(n,[]):new xt(n,e);return new li(i)}function G(){console.warn(ee)}var Tr=function(e){ie(t,e);function t(r,n,i,o,a){var s=this,d,l,p;s=e.call(this)||this,s._debug=!1,s.initialized=!1,s.user=function(){return s._user},s.init=s.initialize.bind(s),s.log=G,s.addIntegrationMiddleware=G,s.listeners=G,s.addEventListener=G,s.removeAllListeners=G,s.removeListener=G,s.removeEventListener=G,s.hasListeners=G,s.add=G,s.addIntegration=G;var g=n==null?void 0:n.cookie,b=(d=n==null?void 0:n.disableClientPersistence)!==null&&d!==void 0?d:!1;s.settings=r,s.settings.timeout=(l=s.settings.timeout)!==null&&l!==void 0?l:300,s.queue=i??Oi("".concat(r.writeKey,":event-queue"),n==null?void 0:n.retryQueue,b);var m=n==null?void 0:n.storage;return s._universalStorage=s.createStore(b,m,g),s._user=o??new Mr(_({persist:!b,storage:n==null?void 0:n.storage},n==null?void 0:n.user),g).load(),s._group=a??new gi(_({persist:!b,storage:n==null?void 0:n.storage},n==null?void 0:n.group),g).load(),s.eventFactory=new ai(s._user),s.integrations=(p=n==null?void 0:n.integrations)!==null&&p!==void 0?p:{},s.options=n??{},It(s),s}return t.prototype.createStore=function(r,n,i){return r?new ue([new Et]):n&&Pr(n)?new ue(ft(jr(n.stores,i))):new ue(ft([L.LocalStorage,{name:L.Cookie,settings:i},L.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage}
vendor: 10,835 bytes, line 39
39,enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o,a,s,d,l,p,g=this;return A(this,function(b){return i=ve(r),o=qn.apply(void 0,r),a=o[0],s=o[1],d=o[2],l=o[3],p=this.eventFactory.track(a,s,d,this.integrations,i),[2,this._dispatch(p,l).then(function(m){return g.emit("track",a,m.event.properties,m.event.options),m})]})})},t.prototype.page=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o,a,s,d,l,p,g,b=this;return A(this,function(m){return i=ve(r),o=Wt.apply(void 0,r),a=o[0],s=o[1],d=o[2],l=o[3],p=o[4],g=this.eventFactory.page(a,s,d,l,this.integrations,i),[2,this._dispatch(g,p).then(function(w){return b.emit("page",a,s,w.event.properties,w.event.options),w})]})})},t.prototype.identify=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o,a,s,d,l,p,g=this;return A(this,function(b){return i=ve(r),o=Qt(this._user).apply(void 0,r),a=o[0],s=o[1],d=o[2],l=o[3],this._user.identify(a,s),p=this.eventFactory.identify(this._user.id(),this._user.traits(),d,this.integrations,i),[2,this._dispatch(p,l).then(function(m){return g.emit("identify",m.event.userId,m.event.traits,m.event.options),m})]})})},t.prototype.group=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=ve(n);if(n.length===0)return this._group;var a=Qt(this._group).apply(void 0,n),s=a[0],d=a[1],l=a[2],p=a[3];this._group.identify(s,d);var g=this._group.id(),b=this._group.traits(),m=this.eventFactory.group(g,b,l,this.integrations,o);return this._dispatch(m,p).then(function(w){return r.emit("group",w.event.groupId,w.event.traits,w.event.options),w})},t.prototype.alias=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o,a,s,d,l,p,g=this;return A(this,function(b){return i=ve(r),o=zn.apply(void 0,r),a=o[0],s=o[1],d=o[2],l=o[3],p=this.eventFactory.alias(a,s,d,this.integrations,i),[2,this._dispatch(p,l).then(function(m){return g.emit("alias",a,s,m.event.options),m})]})})},t.prototype.screen=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o,a,s,d,l,p,g,b=this;return A(this,function(m){return i=ve(r),o=Wt.apply(void 0,r),a=o[0],s=o[1],d=o[2],l=o[3],p=o[4],g=this.eventFactory.screen(a,s,d,l,this.integrations,i),[2,this._dispatch(g,p).then(function(w){return b.emit("screen",a,s,w.event.properties,w.event.options),w})]})})},t.prototype.trackClick=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o;return A(this,function(a){switch(a.label){case 0:return[4,U(()=>import("./auto-track-BvpXf-jU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))];case 1:return i=a.sent(),[2,(o=i.link).call.apply(o,N([this],r,!1))]}})})},t.prototype.trackLink=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o;return A(this,function(a){switch(a.label){case 0:return[4,U(()=>import("./auto-track-BvpXf-jU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))];case 1:return i=a.sent(),[2,(o=i.link).call.apply(o,N([this],r,!1))]}})})},t.prototype.trackSubmit=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o;return A(this,function(a){switch(a.label){case 0:return[4,U(()=>import("./auto-track-BvpXf-jU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))];case 1:return i=a.sent(),[2,(o=i.form).call.apply(o,N([this],r,!1))]}})})},t.prototype.trackForm=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o;return A(this,function(a){switch(a.label){case 0:return[4,U(()=>import("./auto-track-BvpXf-jU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))];case 1:return i=a.sent(),[2,(o=i.form).call.apply(o,N([this],r,!1))]}})})},t.prototype.register=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o,a=this;return A(this,function(s){switch(s.label){case 0:return i=ne.system(),o=r.map(function(d){return a.queue.register(i,d,a)}),[4,Promise.all(o)];case 1:return s.sent(),[2,i]}})})},t.prototype.deregister=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(this,void 0,void 0,function(){var i,o,a=this;return A(this,function(s){switch(s.label){case 0:return i=ne.system(),o=r.map(function(d){var l=a.queue.plugins.find(function(p){return p.name===d});if(l)return a.queue.deregister(i,l,a);i.log("warn","plugin ".concat(d," not found"))}),[4,Promise.all(o)];case 1:return s.sent(),[2,i]}})})},t.prototype.debug=function(r){return r===!1&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=r,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(r){this.settings.timeout=r},t.prototype._dispatch=function(r,n){return E(this,void 0,void 0,function(){var i;return A(this,function(o){return i=new ne(r),je()&&!this.options.retryQueue?[2,i]:[2,Un(i,this.queue,this,{callback:n,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(r){return E(this,void 0,void 0,function(){var n=this;return A(this,function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run(function(){return E(n,void 0,void 0,function(){var o,a,s;return A(this,function(d){switch(d.label){case 0:return[4,U(()=>Promise.resolve().then(()=>jo),void 0)];case 1:return o=d.sent().sourceMiddlewarePlugin,a={},this.queue.plugins.forEach(function(l){if(l.type==="destination")return a[l.name]=!0}),s=o(r,a),[4,this.register(s)];case 2:return d.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.queue.plugins.filter(function(a){return a.name.toLowerCase()===r.toLowerCase()});return o.forEach(function(a){a.addMiddleware.apply(a,n)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(r){return this._user.anonymousId(r)},t.prototype.queryString=function(r){return E(this,void 0,void 0,function(){var n;return A(this,function(i){switch(i.label){case 0:return this.options.useQueryString===!1?[2,[]]:[4,U(()=>import("./index-DxuDI12X.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,8,9,10,11,12,13]))];case 1:return n=i.sent().queryString,[2,n(this,r)]}})})},t.prototype.use=function(r){return r(this),this},t.prototype.ready=function(r){return r===void 0&&(r=function(n){return n}),E(this,void 0,void 0,function(){return A(this,function(n){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return r(i),i})]})})},t.prototype.noConflict=function(){return console.warn(ee),_i(rt??this),this},t.prototype.normalize=function(r){return console.warn(ee),this.eventFactory.normalize(r)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(ee),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return Me},enumerable:!1,configurable:!0}),t.prototype.initialize=function(r,n){return E(this,void 0,void 0,function(){return A(this,function(i){return console.warn(ee),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(r){return E(this,void 0,void 0,function(){return A(this,function(n){switch(n.label){case 0:return console.warn(ee),[4,this.page({path:r})];case 1:return n.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var r;return console.warn(ee),(r=this._plugins)!==null&&r!==void 0?r:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){console.warn(ee);var r=this.queue.plugins.filter(function(n){return n.type==="destination"}).reduce(function(n,i){var o="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),a=window[o];if(!a)return n;var s=a.Integration;return s?(n[i.name]=s,n):(n[i.name]=a,n)},{});return r},enumerable:!1,configurable:!0}),t.prototype.push=function(r){var n=this,i=r.shift();i&&!n[i]||n[i].apply(this,r)},t}(mt),Zt=function(e){ie(t,e);function t(){var r=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return r.initialized=!0,r}return t}(Tr),er={};function Dr(){return typeof process>"u"||!er?{}:er}var Pi=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,ji=function(){var e,t=Array.prototype.slice.call(document.querySelectorAll("script"));return t.forEach(function(r){var n,i=(n=r.getAttribute("src"))!==null&&n!==void 0?n:"",o=Pi.exec(i);o&&o[1]&&(e=o[1])}),e},$e,Mi=function(){var e,t=$e??((e=Ot())===null||e===void 0?void 0:e._cdn);return t},Ci=function(e){var t=Ot();t&&(t._cdn=e),$e=e},jt=function(){var e=Mi();if(e)return e;var t=ji();return t||"https://cdn.segment.com"},Ea=function(){var e=jt();return"".concat(e,"/next-integrations")};function Fi(e,t){var r,n=Object.entries((r=t.integrations)!==null&&r!==void 0?r:{}).reduce(function(i,o){var a,s,d=o[0],l=o[1];return typeof l=="object"?_(_({},i),(a={},a[d]=l,a)):_(_({},i),(s={},s[d]={},s))},{});return Object.entries(e.integrations).reduce(function(i,o){var a,s=o[0],d=o[1];return _(_({},i),(a={},a[s]=_(_({},d),n[s]),a))},{})}function Ti(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function Di(e){return E(this,void 0,void 0,function(){var t;return A(this,function(r){return t=navigator.userAgentData,t?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}var Oe;function Ni(){if(Oe)return Oe;var e=Ar(window.location.href);return Oe={expires:31536e6,secure:!1,path:"/"},e&&(Oe.domain=e),Oe}function Li(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&");for(var r=e.split("&"),n=0,i=r;n<i.length;n++){var o=i[n],a=o.split("="),s=a[0],d=a[1];if(t[s])return{id:d,type:t[s]}}}function ki(e){return e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&"),e.split("&").reduce(function(t,r){var n=r.split("="),i=n[0],o=n[1],a=o===void 0?"":o;if(i.includes("utm_")&&i.length>4){var s=i.slice(4);s==="campaign"&&(s="name"),t[s]=Ti(a)}return t},{})}function Ri(){var e=Y.get("_ga");if(e&&e.startsWith("amp"))return e}function $i(e,t,r){var n,i=new ue(r?[]:[new Or(Ni())]),o=i.get("s:context.referrer"),a=(n=Li(e))!==null&&n!==void 0?n:o;a&&(t&&(t.referrer=_(_({},t.referrer),a)),i.set("s:context.referrer",a))}var Bi=function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(r){var n=r[0],i=r[1];
vendor: 4,283 bytes, line 39
39Array.isArray(i)?i.forEach(function(o){return t.append(n,o)}):t.append(n,i)}),t.toString()}catch{return""}},Ui=function(){function e(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(r,n){return E(t,void 0,void 0,function(){var i;return A(this,function(o){switch(o.label){case 0:this.instance=n,o.label=1;case 1:return o.trys.push([1,3,,4]),i=this,[4,Di(this.instance.options.highEntropyValuesClientHints)];case 2:return i.userAgentData=o.sent(),[3,4];case 3:return o.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(r){var n,i,o=r.event.context,a=o.page.search||"",s=typeof a=="object"?Bi(a):a;o.userAgent=navigator.userAgent,o.userAgentData=t.userAgentData;var d=navigator.userLanguage||navigator.language;typeof o.locale>"u"&&typeof d<"u"&&(o.locale=d),(n=o.library)!==null&&n!==void 0||(o.library={name:"analytics.js",version:"".concat("npm:next","-").concat(Me)}),s&&!o.campaign&&(o.campaign=ki(s));var l=Ri();l&&(o.amp={id:l}),$i(s,o,(i=t.instance.options.disableClientPersistence)!==null&&i!==void 0?i:!1);try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return r},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}return e}(),qi=new Ui;function Nr(e){var t=Array.prototype.slice.call(window.document.querySelectorAll("script"));return t.find(function(r){return r.src===e})}function nt(e,t){var r=Nr(e);if(r!==void 0){var n=r==null?void 0:r.getAttribute("status");if(n==="loaded")return Promise.resolve(r);if(n==="loading")return new Promise(function(i,o){r.addEventListener("load",function(){return i(r)}),r.addEventListener("error",function(a){return o(a)})})}return new Promise(function(i,o){var a,s=window.document.createElement("script");s.type="text/javascript",s.src=e,s.async=!0,s.setAttribute("status","loading");for(var d=0,l=Object.entries(t??{});d<l.length;d++){var p=l[d],g=p[0],b=p[1];s.setAttribute(g,b)}s.onload=function(){s.onerror=s.onload=null,s.setAttribute("status","loaded"),i(s)},s.onerror=function(){s.onerror=s.onload=null,s.setAttribute("status","error"),o(new Error("Failed to load ".concat(e)))};var m=window.document.getElementsByTagName("script")[0];(a=m.parentElement)===null||a===void 0||a.insertBefore(s,m)})}function Aa(e){var t=Nr(e);return t!==void 0&&t.remove(),Promise.resolve()}var te={},Q={},Mt={},Lr={exports:{}};(function(e){e.exports=t(r),e.exports.find=e.exports,e.exports.replace=function(s,d,l,p){return t(i).call(this,s,d,l,p),s},e.exports.del=function(s,d,l){return t(n).call(this,s,d,null,l),s};function t(s){return function(d,l,p,g){var b=g&&a(g.normalizer)?g.normalizer:o;l=b(l);for(var m,w=!1;!w;)x();function x(){for(m in d){var S=b(m);if(l.indexOf(S)===0){var y=l.substr(S.length);if(y.charAt(0)==="."||y.length===0){l=y.substr(1);var v=d[m];if(v==null){w=!0;return}if(!l.length){w=!0;return}d=v;return}}}m=void 0,w=!0}if(m)return d==null?d:s(d,m,p)}}function r(s,d){if(s.hasOwnProperty(d))return s[d]}function n(s,d){return s.hasOwnProperty(d)&&delete s[d],s}function i(s,d,l){return s.hasOwnProperty(d)&&(s[d]=l),s}function o(s){return s.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function a(s){return typeof s=="function"}})(Lr);var Ge=Lr.exports,zi=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mt,"__esModule",{value:!0});var Z=zi(Ge);function ye(e,t){return function(){var r=this.traits(),n=this.properties?this.properties():{};return Z.default(r,"address."+e)||Z.default(r,e)||(t?Z.default(r,"address."+t):null)||(t?Z.default(r,t):null)||Z.default(n,"address."+e)||Z.default(n,e)||(t?Z.default(n,"address."+t):null)||(t?Z.default(n,t):null)}}function Ki(e){e.zip=ye("postalCode","zip"),e.country=ye("country"),e.street=ye("street"),e.state=ye("state"),e.city=ye("city"),e.region=ye("region")}Mt.default=Ki;var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.clone=void 0;function dt(e){if(typeof e!="object")return e;if(Object.prototype.toString.call(e)==="[object Object]"){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=dt(e[r]));return t}else return Array.isArray(e)?e.map(dt):e}Ve.clone=dt;var Ct={};
vendor: 21,782 bytes, line 39
39Object.defineProperty(Ct,"__esModule",{value:!0});var Gi={Salesforce:!0};function Vi(e){return!Gi[e]}Ct.default=Vi;var Je={},kr=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;Je.parse=function(e){var t=[1,5,6,7,11,12],r=kr.exec(e),n=0;if(!r)return new Date(e);for(var i=0,o;o=t[i];i++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0,r[4]===" "?n=new Date().getTimezoneOffset():r[9]!=="Z"&&r[10]&&(n=r[11]*60+r[12],r[10]==="+"&&(n=0-n));var a=Date.UTC(r[1],r[2],r[3],r[5],r[6]+n,r[7],r[8]);return new Date(a)};Je.is=function(e,t){return typeof e!="string"||t&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:kr.test(e)};var Ft={},Ji=/\d{13}/;Ft.is=function(e){return Ji.test(e)};Ft.parse=function(e){return e=parseInt(e,10),new Date(e)};var Tt={},Hi=/\d{10}/;Tt.is=function(e){return Hi.test(e)};Tt.parse=function(e){var t=parseInt(e,10)*1e3;return new Date(t)};var tr=Je,rr=Ft,nr=Tt,Wi=Object.prototype,Rr=Wi.toString;function Qi(e){return Rr.call(e)==="[object Date]"}function Xi(e){return Rr.call(e)==="[object Number]"}var Dt=function(t){return Qi(t)?t:Xi(t)?new Date(Yi(t)):tr.is(t)?tr.parse(t):rr.is(t)?rr.parse(t):nr.is(t)?nr.parse(t):new Date(t)};function Yi(e){return e<315576e5?e*1e3:e}var ir=Je,Zi=Nt;function Nt(e,t){return t===void 0&&(t=!0),e&&typeof e=="object"?eo(e,t):Array.isArray(e)?to(e,t):ir.is(e,t)?ir.parse(e):e}function eo(e,t){return Object.keys(e).forEach(function(r){e[r]=Nt(e[r],t)}),e}function to(e,t){return e.forEach(function(r,n){e[n]=Nt(r,t)}),e}var Ce=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Q,"__esModule",{value:!0});Q.Facade=void 0;var ro=Ce(Mt),Se=Ve,no=Ce(Ct),io=Ce(Dt),ht=Ce(Ge),oo=Ce(Zi);function $(e,t){t=t||{},this.raw=Se.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=Se.clone(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=io.default(e.timestamp):e.timestamp=new Date,t.traverse&&oo.default(e),this.opts=t,this.obj=e}Q.Facade=$;var j=$.prototype;j.proxy=function(e){var t=e.split(".");e=t.shift();var r=this[e]||this.obj[e];return r&&(typeof r=="function"&&(r=r.call(this)||{}),t.length===0?this.opts.clone?pt(r):r:(r=ht.default(r,t.join(".")),this.opts.clone?pt(r):r))};j.field=function(e){var t=this.obj[e];return this.opts.clone?pt(t):t};$.proxy=function(e){return function(){return this.proxy(e)}};$.field=function(e){return function(){return this.field(e)}};$.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var r=this.proxy(e);return r&&(r=[this.opts.clone?Se.clone(r):r]),r||[]}};$.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var r=this.proxy(e+"s");if(Array.isArray(r))return r[0]}};j.json=function(){var e=this.opts.clone?Se.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e};j.rawEvent=function(){return this.raw};j.options=function(e){var t=this.obj.options||this.obj.context||{},r=this.opts.clone?Se.clone(t):t;if(!e)return r;if(this.enabled(e)){var n=this.integrations(),i=n[e]||ht.default(n,e);return typeof i!="object"&&(i=ht.default(this.options(),e)),typeof i=="object"?i:{}}};j.context=j.options;j.enabled=function(e){var t=this.proxy("options.providers.all");typeof t!="boolean"&&(t=this.proxy("options.all")),typeof t!="boolean"&&(t=this.proxy("integrations.all")),typeof t!="boolean"&&(t=!0);var r=t&&no.default(e),n=this.integrations();if(n.providers&&n.providers.hasOwnProperty(e)&&(r=n.providers[e]),n.hasOwnProperty(e)){var i=n[e];typeof i=="boolean"?r=i:r=!0}return!!r};j.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()};j.active=function(){var e=this.proxy("options.active");return e==null&&(e=!0),e};j.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")};j.sessionId=j.anonymousId;j.groupId=$.proxy("options.groupId");j.traits=function(e){var t=this.proxy("options.traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=this[n]==null?this.proxy("options.traits."+n):this[n]();if(i==null)continue;t[e[n]]=i,delete t[n]}return t};j.library=function(){var e=this.proxy("options.library");return e?typeof e=="string"?{name:e,version:null}:e:{name:"unknown",version:null}};j.device=function(){var e=this.proxy("context.device");(typeof e!="object"||e===null)&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e};j.userAgent=$.proxy("context.userAgent");j.timezone=$.proxy("context.timezone");j.timestamp=$.field("timestamp");j.channel=$.field("channel");j.ip=$.proxy("context.ip");j.userId=$.field("userId");ro.default(j);function pt(e){return Se.clone(e)}var He={},vt={exports:{}};typeof Object.create=="function"?vt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:vt.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var he=vt.exports,ao=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(He,"__esModule",{value:!0});He.Alias=void 0;var so=ao(he),$r=Q;function q(e,t){$r.Facade.call(this,e,t)}He.Alias=q;so.default(q,$r.Facade);q.prototype.action=function(){return"alias"};q.prototype.type=q.prototype.action;q.prototype.previousId=function(){return this.field("previousId")||this.field("from")};q.prototype.from=q.prototype.previousId;q.prototype.userId=function(){return this.field("userId")||this.field("to")};q.prototype.to=q.prototype.userId;var We={},Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});var uo=/.+\@.+\..+/;function co(e){return uo.test(e)}Ie.default=co;var Lt=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(We,"__esModule",{value:!0});We.Group=void 0;var lo=Lt(he),fo=Lt(Ie),ho=Lt(Dt),Ee=Q;function kt(e,t){Ee.Facade.call(this,e,t)}We.Group=kt;lo.default(kt,Ee.Facade);var z=kt.prototype;z.action=function(){return"group"};z.type=z.action;z.groupId=Ee.Facade.field("groupId");z.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return ho.default(e)};z.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(fo.default(t))return t};z.traits=function(e){var t=this.properties(),r=this.groupId();e=e||{},r&&(t.id=r);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=this[n]==null?this.proxy("traits."+n):this[n]();if(i==null)continue;t[e[n]]=i,delete t[n]}return t};z.name=Ee.Facade.proxy("traits.name");z.industry=Ee.Facade.proxy("traits.industry");z.employees=Ee.Facade.proxy("traits.employees");z.properties=function(){return this.field("traits")||this.field("properties")||{}};var Fe={},Qe=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.Identify=void 0;var X=Q,be=Qe(Ge),po=Qe(he),vo=Qe(Ie),Br=Qe(Dt),ce=function(e){return e.trim()};function Rt(e,t){X.Facade.call(this,e,t)}Fe.Identify=Rt;po.default(Rt,X.Facade);var M=Rt.prototype;M.action=function(){return"identify"};M.type=M.action;M.traits=function(e){var t=this.field("traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var n in e){var i=this[n]==null?this.proxy("traits."+n):this[n]();i!=null&&(t[e[n]]=i,n!==e[n]&&delete t[n])}return t};M.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(vo.default(t))return t};M.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return Br.default(e)};M.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return Br.default(e)};M.companyName=function(){return this.proxy("traits.company.name")};M.name=function(){var e=this.proxy("traits.name");if(typeof e=="string")return ce(e);var t=this.firstName(),r=this.lastName();if(t&&r)return ce(t+" "+r)};M.firstName=function(){var e=this.proxy("traits.firstName");if(typeof e=="string")return ce(e);var t=this.proxy("traits.name");if(typeof t=="string")return ce(t).split(" ")[0]};M.lastName=function(){var e=this.proxy("traits.lastName");if(typeof e=="string")return ce(e);var t=this.proxy("traits.name");if(typeof t=="string"){var r=ce(t).indexOf(" ");if(r!==-1)return ce(t.substr(r+1))}};M.uid=function(){return this.userId()||this.username()||this.email()};M.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};M.age=function(){var e=this.birthday(),t=be.default(this.traits(),"age");if(t!=null)return t;if(e instanceof Date){var r=new Date;return r.getFullYear()-e.getFullYear()}};M.avatar=function(){var e=this.traits();return be.default(e,"avatar")||be.default(e,"photoUrl")||be.default(e,"avatarUrl")};M.position=function(){var e=this.traits();return be.default(e,"position")||be.default(e,"jobTitle")};M.username=X.Facade.proxy("traits.username");M.website=X.Facade.one("traits.website");M.websites=X.Facade.multi("traits.website");M.phone=X.Facade.one("traits.phone");M.phones=X.Facade.multi("traits.phone");M.address=X.Facade.proxy("traits.address");M.gender=X.Facade.proxy("traits.gender");M.birthday=X.Facade.proxy("traits.birthday");var Ae={},$t=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Track=void 0;var yo=$t(he),T=Q,go=Fe,mo=$t(Ie),Ur=$t(Ge);function Bt(e,t){T.Facade.call(this,e,t)}Ae.Track=Bt;yo.default(Bt,T.Facade);var O=Bt.prototype;O.action=function(){return"track"};O.type=O.action;O.event=T.Facade.field("event");O.value=T.Facade.proxy("properties.value");O.category=T.Facade.proxy("properties.category");O.id=T.Facade.proxy("properties.id");O.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};O.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};O.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};O.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};O.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};O.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};O.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};O.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};O.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};O.sku=T.Facade.proxy("properties.sku");O.tax=T.Facade.proxy("properties.tax");O.name=T.Facade.proxy("properties.name");O.price=T.Facade.proxy("properties.price");O.total=T.Facade.proxy("properties.total");O.repeat=T.Facade.proxy("properties.repeat");O.coupon=T.Facade.proxy("properties.coupon");O.shipping=T.Facade.proxy("properties.shipping");O.discount=T.Facade.proxy("properties.discount");O.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};O.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};O.description=T.Facade.proxy("properties.description");O.plan=T.Facade.proxy("properties.plan");O.subtotal=function(){var e=Ur.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var r=this.tax();r&&(t-=r),r=this.shipping(),r&&(t-=r),r=this.discount(),r&&(t+=r)}return t};O.products=function(){var e=this.properties(),t=Ur.default(e,"products");return Array.isArray(t)?t.filter(function(r){return r!==null}):[]};O.quantity=function(){var e=this.obj.properties||{};return e.quantity||1};O.currency=function(){var e=this.obj.properties||{};return e.currency||"USD"};O.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};O.query=T.Facade.proxy("options.query");O.properties=function(e){var t=this.field("properties")||{};e=e||{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=this[r]==null?this.proxy("properties."+r):this[r]();if(n==null)continue;t[e[r]]=n,delete t[r]}return t};O.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};O.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(mo.default(t))return t};O.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event(),r=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!e&&t&&t.match(r)&&(e=this.proxy("properties.total")),_o(e)};O.cents=function(){var e=this.revenue();return typeof e!="number"?this.value()||0:e*100};O.identify=function(){var e=this.json();return e.traits=this.traits(),new go.Identify(e,this.opts)};function _o(e){if(e){if(typeof e=="number")return e;if(typeof e=="string"&&(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e)))return e}}var Te={},qr=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Te,"__esModule",{value:!0});Te.Page=void 0;var bo=qr(he),pe=Q,wo=Ae,So=qr(Ie);function Ut(e,t){pe.Facade.call(this,e,t)}Te.Page=Ut;bo.default(Ut,pe.Facade);var k=Ut.prototype;k.action=function(){return"page"};k.type=k.action;k.category=pe.Facade.field("category");k.name=pe.Facade.field("name");k.title=pe.Facade.proxy("properties.title");k.path=pe.Facade.proxy("properties.path");k.url=pe.Facade.proxy("properties.url");k.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};k.properties=function(e){var t=this.field("properties")||{},r=this.category(),n=this.name();e=e||{},r&&(t.category=r),n&&(t.name=n);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=this[i]==null?this.proxy("properties."+i):this[i]();if(o==null)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t};k.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(So.default(t))return t};k.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t};k.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"};k.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new wo.Track(t,this.opts)};var Xe={},xo=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.Screen=void 0;var Io=xo(he),zr=Te,Eo=Ae;function fe(e,t){zr.Page.call(this,e,t)}Xe.Screen=fe;Io.default(fe,zr.Page);fe.prototype.action=function(){return"screen"};fe.prototype.type=fe.prototype.action;fe.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"};fe.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new Eo.Track(t,this.opts)};var Ye={},Ao=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Delete=void 0;var Oo=Ao(he),Kr=Q;function qt(e,t){Kr.Facade.call(this,e,t)}Ye.Delete=qt;Oo.default(qt,Kr.Facade);qt.prototype.type=function(){return"delete"};(function(e){var t=C&&C.__assign||function(){return t=Object.assign||function(p){for(var g,b=1,m=arguments.length;b<m;b++){g=arguments[b];for(var w in g)Object.prototype.hasOwnProperty.call(g,w)&&(p[w]=g[w])}return p},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=e.Screen=e.Page=e.Track=e.Identify=e.Group=e.Alias=e.Facade=void 0;var r=Q;Object.defineProperty(e,"Facade",{enumerable:!0,get:function(){return r.Facade}});var n=He;Object.defineProperty(e,"Alias",{enumerable:!0,get:function(){return n.Alias}});var i=We;Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return i.Group}});var o=Fe;Object.defineProperty(e,"Identify",{enumerable:!0,get:function(){return o.Identify}});var a=Ae;Object.defineProperty(e,"Track",{enumerable:!0,get:function(){return a.Track}});var s=Te;Object.defineProperty(e,"Page",{enumerable:!0,get:function(){return s.Page}});var d=Xe;Object.defineProperty(e,"Screen",{enumerable:!0,get:function(){return d.Screen}});var l=Ye;Object.defineProperty(e,"Delete",{enumerable:!0,get:function(){return l.Delete}}),e.default=t(t({},r.Facade),{Alias:n.Alias,Group:i.Group,Identify:o.Identify,Track:a.Track,Page:s.Page,Screen:d.Screen,Delete:l.Delete})})(te);function qe(e,t){var r=new te.Facade(e,t);return e.type==="track"&&(r=new te.Track(e,t)),e.type==="identify"&&(r=new te.Identify(e,t)),e.type==="page"&&(r=new te.Page(e,t)),e.type==="alias"&&(r=new te.Alias(e,t)),e.type==="group"&&(r=new te.Group(e,t)),e.type==="screen"&&(r=new te.Screen(e,t)),Object.defineProperty(r,"obj",{value:e,writable:!0}),r}function Gr(e,t,r){return E(this,void 0,void 0,function(){function n(l,p){return E(this,void 0,void 0,function(){var g,b,m;return A(this,function(w){switch(w.label){case 0:return g=!1,b=null,[4,p({payload:qe(l,{clone:!0,traverse:!1}),integration:e,next:function(x){g=!0,x===null&&(b=null),x&&(b=x.obj)}})];case 1:return w.sent(),!g&&b!==null&&(b=b,b.integrations=_(_({},l.integrations),(m={},m[e]=!1,m))),[2,b]}})})}var i,o,a,s,d;return A(this,function(l){switch(l.label){case 0:i=qe(t,{clone:!0,traverse:!1}).rawEvent(),o=0,a=r,l.label=1;case 1:return o<a.length?(s=a[o],[4,n(i,s)]):[3,4];case 2:if(d=l.sent(),d===null)return[2,null];i=d,l.label=3;case 3:return o++,[3,1];case 4:return[2,i]}})})}function Po(e,t){function r(n){return E(this,void 0,void 0,function(){var i;return A(this,function(o){switch(o.label){case 0:return i=!1,[4,e({payload:qe(n.event,{clone:!0,traverse:!1}),integrations:t??{},next:function(a){i=!0,a&&(n.event=a.obj)}})];case 1:if(o.sent(),!i)throw new we({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(n){return Promise.resolve(n)},track:r,page:r,identify:r,alias:r,group:r}}const jo=Object.freeze(Object.defineProperty({__proto__:null,applyDestinationMiddleware:Gr,sourceMiddlewarePlugin:Po},Symbol.toStringTag,{value:"Module"}));function ke(e,t){var r=t.methodName,n=t.integrationName,i=t.type,o=t.didError,a=o===void 0?!1:o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(r),"integration_name:".concat(n),"type:".concat(i)])}var Mo=function(){function e(t,r){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=r,this.name=t,this.type=r.type,this.alternativeNames.push(r.name)}return e.prototype.addMiddleware=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.type==="destination"&&(t=this.middleware).push.apply(t,r)},e.prototype.transform=function(t){return E(this,void 0,void 0,function(){var r;return A(this,function(n){switch(n.label){case 0:return[4,Gr(this.name,t.event,this.middleware)];case 1:return r=n.sent(),r===null&&t.cancel(new we({retry:!1,reason:"dropped by destination middleware"})),[2,new ne(r)]}})})},e.prototype._createMethod=function(t){var r=this;return function(n){return E(r,void 0,void 0,function(){var i,o;return A(this,function(a){switch(a.label){case 0:return this.action[t]?(i=n,this.type!=="destination"?[3,2]:[4,this.transform(n)]):[2,n];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,4,,5]),ke(n,{integrationName:this.action.name,methodName:t,type:"action"}),[4,this.action[t](i)];case 3:return a.sent(),[3,5];case 4:throw o=a.sent(),ke(n,{integrationName:this.action.name,methodName:t,type:"action",didError:!0}),o;case 5:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},e.prototype.load=function(t,r){return E(this,void 0,void 0,function(){var n;return A(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),ke(t,{integrationName:this.action.name,methodName:"load",type:"action"}),[4,this.action.load(t,r)];case 1:return[2,i.sent()];case 2:throw n=i.sent(),ke(t,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),n;case 3:return[2]}})})},e.prototype.unload=function(t,r){var n,i;return(i=(n=this.action).unload)===null||i===void 0?void 0:i.call(n,t,r)},e}();function Co(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];return e.forEach(function(r){t.forEach(function(n){var i;if(r[n]===void 0)throw new Error("Plugin: ".concat((i=r.name)!==null&&i!==void 0?i:"unknown"," missing required function ").concat(n))})}),!0}function Fo(e,t){var r=e[t.creationName],n=e[t.name];return e.All===!1&&!r&&!n||r===!1||n===!1}function To(e,t){return E(this,void 0,void 0,function(){var r,n,i,o,a;return A(this,function(s){switch(s.label){case 0:if(r=new RegExp("https://cdn.segment.(com|build)"),n=jt(
vendor: 7,590 bytes, line 39
39),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,nt(a.replace(r,n))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,nt(e.url.replace(r,n))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,nt(e.url.replace(r,n))];case 7:s.sent(),s.label=8;case 8:return typeof window[e.libraryName]=="function"?[2,window[e.libraryName]]:[2]}})})}function Do(e,t,r,n,i,o){var a,s,d;return E(this,void 0,void 0,function(){var l,p,g,b=this;return A(this,function(m){switch(m.label){case 0:return l=[],p=(s=(a=e.middlewareSettings)===null||a===void 0?void 0:a.routingRules)!==null&&s!==void 0?s:[],g=((d=e.remotePlugins)!==null&&d!==void 0?d:[]).map(function(w){return E(b,void 0,void 0,function(){var x,S,y,v,c,u;return A(this,function(h){switch(h.label){case 0:if(Fo(t,w))return[2];h.label=1;case 1:return h.trys.push([1,6,,7]),S=o==null?void 0:o.find(function(f){var P=f.pluginName;return P===w.name}),S?[3,3]:[4,To(w,n)];case 2:S=h.sent(),h.label=3;case 3:return x=S,x?[4,x(_(_({},w.settings),r[w.name]))]:[3,5];case 4:y=h.sent(),v=Array.isArray(y)?y:[y],Co(v),c=p.filter(function(f){return f.destinationName===w.creationName}),v.forEach(function(f){var P=new Mo(w.creationName,f);c.length&&i&&f.type==="destination"&&P.addMiddleware(i),l.push(P)}),h.label=5;case 5:return[3,7];case 6:return u=h.sent(),console.warn("Failed to load Remote Plugin",u),[3,7];case 7:return[2]}})})}),[4,Promise.all(g)];case 1:return m.sent(),[2,l.filter(Boolean)]}})})}var No=function(e){var t=!1;window.addEventListener("pagehide",function(){t||(t=!0,e(t))}),document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){if(t)return;t=!0}else t=!1;e(t)})},Lo=500;function Vr(e){var t=encodeURI(JSON.stringify(e)).split(/%..|./).length-1;return t/1024}function ko(e){return Vr(e)>=Lo-50}function Ro(e){var t=[],r=0;return e.forEach(function(n){var i=Vr(t[r]);i>=64&&r++,t[r]?t[r].push(n):t[r]=[n]}),t}function $o(e,t){var r,n,i=[],o=!1,a=(r=t==null?void 0:t.size)!==null&&r!==void 0?r:10,s=(n=t==null?void 0:t.timeout)!==null&&n!==void 0?n:5e3;function d(m){var w;if(m.length!==0){var x=(w=m[0])===null||w===void 0?void 0:w.writeKey,S=m.map(function(y){var v=y;v.sentAt;var c=dr(v,["sentAt"]);return c});return Ke("https://".concat(e,"/b"),{keepalive:o,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:x,batch:S,sentAt:new Date().toISOString()})})}}function l(){return E(this,void 0,void 0,function(){var m;return A(this,function(w){return i.length?(m=i,i=[],[2,d(m)]):[2]})})}var p;function g(){p||(p=setTimeout(function(){p=void 0,l().catch(console.error)},s))}No(function(m){if(o=m,o&&i.length){var w=Ro(i).map(d);Promise.all(w).catch(console.error)}});function b(m,w){return E(this,void 0,void 0,function(){var x;return A(this,function(S){return i.push(w),x=i.length>=a||ko(i),[2,x||o?l():g()]})})}return{dispatch:b}}function Bo(e){function t(r,n){return Ke(r,{keepalive:e==null?void 0:e.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(n)})}return{dispatch:t}}function Uo(e,t,r,n){var i,o=e.user();delete t.options,t.writeKey=r==null?void 0:r.apiKey,t.userId=t.userId||o.id(),t.anonymousId=t.anonymousId||o.anonymousId(),t.sentAt=new Date;var a=e.queue.failedInitializations||[];a.length>0&&(t._metadata={failedInitializations:a});var s=[],d=[];for(var l in n){var p=n[l];l==="Segment.io"&&s.push(l),p.bundlingStatus==="bundled"&&s.push(l),p.bundlingStatus==="unbundled"&&d.push(l)}for(var g=0,b=(r==null?void 0:r.unbundledIntegrations)||[];g<b.length;g++){var m=b[g];d.includes(m)||d.push(m)}var w=(i=r==null?void 0:r.maybeBundledConfigIds)!==null&&i!==void 0?i:{},x=[];return s.sort().forEach(function(S){var y;((y=w[S])!==null&&y!==void 0?y:[]).forEach(function(v){x.push(v)})}),(r==null?void 0:r.addBundledMetadata)!==!1&&(t._metadata=_(_({},t._metadata),{bundled:s.sort(),unbundled:d.sort(),bundledIds:x})),t}var qo=function(e,t){return E(void 0,void 0,void 0,function(){var r;return A(this,function(n){return r=function(i){return E(void 0,void 0,void 0,function(){var o;return A(this,function(a){switch(a.label){case 0:return e(i)?(o=r,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[a.sent()])];case 2:return[2]}})})},[2,r(void 0)]})})};function zo(e,t){return E(this,void 0,void 0,function(){var r,n=this;return A(this,function(i){switch(i.label){case 0:return r=[],je()?[2,t]:[4,qo(function(){return t.length>0&&!je()},function(){return E(n,void 0,void 0,function(){var o,a,s;return A(this,function(d){switch(d.label){case 0:return o=t.pop(),o?[4,Pe(o,e)]:[2];case 1:return a=d.sent(),s=a instanceof ne,s||r.push(o),[2]}})})})];case 1:return i.sent(),r.map(function(o){return t.pushWithBackoff(o)}),[2,t]}})})}function ge(e,t,r,n){var i=this;e||setTimeout(function(){return E(i,void 0,void 0,function(){var o,a;return A(this,function(s){switch(s.label){case 0:return o=!0,[4,zo(r,t)];case 1:return a=s.sent(),o=!1,t.todo>0&&n(o,a,r,n),[2]}})})},Math.random()*5e3)}function Ko(e,t){var r,n,i,o,a=e.user();return t.previousId=(i=(n=(r=t.previousId)!==null&&r!==void 0?r:t.from)!==null&&n!==void 0?n:a.id())!==null&&i!==void 0?i:a.anonymousId(),t.userId=(o=t.userId)!==null&&o!==void 0?o:t.to,delete t.from,delete t.to,t}function Go(e,t,r){var n,i,o;window.addEventListener("pagehide",function(){s.push.apply(s,Array.from(d)),d.clear()});var a=(n=t==null?void 0:t.apiKey)!==null&&n!==void 0?n:"",s=e.options.disableClientPersistence?new _t(e.queue.queue.maxAttempts,[]):new xt(e.queue.queue.maxAttempts,"".concat(a,":dest-Segment.io")),d=new Set,l=!1,p=(i=t==null?void 0:t.apiHost)!==null&&i!==void 0?i:gr,g=(o=t==null?void 0:t.protocol)!==null&&o!==void 0?o:"https",b="".concat(g,"://").concat(p),m=t==null?void 0:t.deliveryStrategy,w=(m==null?void 0:m.strategy)==="batching"?$o(p,m.config):Bo(m==null?void 0:m.config);function x(y){return E(this,void 0,void 0,function(){var v,c;return A(this,function(u){return je()?(s.push(y),ge(l,s,S,ge),[2,y]):(d.add(y),v=y.event.type.charAt(0),c=qe(y.event).json(),y.event.type==="track"&&delete c.traits,y.event.type==="alias"&&(c=Ko(e,c)),[2,w.dispatch("".concat(b,"/").concat(v),Uo(e,c,t,r)).then(function(){return y}).catch(function(){return s.pushWithBackoff(y),ge(l,s,S,ge),y}).finally(function(){d.delete(y)})])})})}var S={name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:x,identify:x,page:x,alias:x,group:x,screen:x};return s.todo&&ge(l,s,S,ge),S}function me(e){var t,r=e.event;xn(r),In(r),r.type==="track"&&En(r);var n=(t=r.properties)!==null&&t!==void 0?t:r.traits;if(r.type!=="alias"&&!H(n))throw new le(".properties","is not an object");return Sn(r),e}var Vo={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:me,identify:me,page:me,alias:me,group:me,screen:me},it,or,Jo=St(),ar=(it=(or=Jo).__SEGMENT_INSPECTOR__)!==null&&it!==void 0?it:or.__SEGMENT_INSPECTOR__={},Ho=function(e){var t;return(t=ar.attach)===null||t===void 0?void 0:t.call(ar,e)};function Wo(e,t){var r=t??jt();return Ke("".concat(r,"/v1/projects/").concat(e,"/settings")).then(function(n){return n.ok?n.json():n.text().then(function(i){throw new Error(i)})}).catch(function(n){throw console.error(n.message),n})}function Qo(e){return Dr().NODE_ENV!=="test"&&Object.keys(e.integrations).length>1}function Xo(e){var t,r,n;return Dr().NODE_ENV!=="test"&&((n=(r=(t=e.middlewareSettings)===null||t===void 0?void 0:t.rout
39ingRules)===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0)>0}function Yo(e,t){xi(e,t),Si(e,t)}function Zo(e,t){return E(this,void 0,void 0,function(){return A(this,function(r){switch(r.label){case 0:return[4,wi(e,t)];case 1:return r.sent(),Ii(e,t),t.clear(),[2]}})})}function ea(e,t,r,n,i,o,a){var s,d,l;return o===void 0&&(o=[]),E(this,void 0,void 0,function(){var p,g,b,m,w,x,S,y,v,c,u,h,f,P,R,K=this;return A(this,function(F){switch(F.label){case 0:return p=o==null?void 0:o.filter(function(D){return typeof D=="object"}),g=o==null?void 0:o.filter(function(D){return typeof D=="function"&&typeof D.pluginName=="string"}),Xo(t)?[4,U(()=>import("./index-DgwVL_Gd.js"),__vite__mapDeps([15,1])).then(function(D){return D.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return m=F.sent(),[3,3];case 2:m=void 0,F.label=3;case 3:return b=m,Qo(t)||a.length>0?[4,U(()=>import("./index-Co17F72Z.js"),__vite__mapDeps([16,17,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(function(D){return D.ajsDestinations(e,t,r.integrations,n,b,a)})]:[3,5];case 4:return x=F.sent(),[3,6];case 5:x=[],F.label=6;case 6:return w=x,t.legacyVideoPluginsEnabled?[4,U(()=>import("./index--PInJqTw.js"),__vite__mapDeps([18,12,1,2,3,4,5,6,7,8,9,10,11,13])).then(function(D){return D.loadLegacyVideoPlugins(r)})]:[3,8];case 7:F.sent(),F.label=8;case 8:return!((s=n.plan)===null||s===void 0)&&s.track?[4,U(()=>import("./index-DZo4GKJS.js"),__vite__mapDeps([19,17,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(function(D){var oe;return D.schemaFilter((oe=n.plan)===null||oe===void 0?void 0:oe.track,t)})]:[3,10];case 9:return y=F.sent(),[3,11];case 10:y=void 0,F.label=11;case 11:return S=y,v=Fi(t,i),[4,Do(t,r.integrations,v,i.obfuscate,b,g).catch(function(){return[]})];case 12:return c=F.sent(),u=N(N(N([Vo,qi],p,!0),w,!0),c,!0),S&&u.push(S),h=((d=n.integrations)===null||d===void 0?void 0:d.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&n.integrations["Segment.io"]===!1,h?[3,14]:(P=(f=u).push,[4,Go(r,v["Segment.io"],t.integrations)]);case 13:P.apply(f,[F.sent()]),F.label=14;case 14:return[4,r.register.apply(r,u)];case 15:return R=F.sent(),Object.entries((l=t.enabledMiddleware)!==null&&l!==void 0?l:{}).some(function(D){var oe=D[1];return oe})?[4,U(()=>import("./index-BhSouxMC.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(function(D){var oe=D.remoteMiddlewares;return E(K,void 0,void 0,function(){var zt,Kt;return A(this,function(Gt){switch(Gt.label){case 0:return[4,oe(R,t,i.obfuscate)];case 1:return zt=Gt.sent(),Kt=zt.map(function(Hr){return r.addSourceMiddleware(Hr)}),[2,Promise.all(Kt)]}})})})]:[3,17];case 16:F.sent(),F.label=17;case 17:return[2,R]}})})}function ta(e,t,r){var n,i,o,a,s,d,l;return t===void 0&&(t={}),E(this,void 0,void 0,function(){var p,g,b,m,w,x,S,y,v,c,u,h;return A(this,function(f){switch(f.label){case 0:return t.disable===!0?[2,[new Zt,ne.system()]]:(t.globalAnalyticsKey&&mi(t.globalAnalyticsKey),e.cdnURL&&Ci(e.cdnURL),t.initialPageview&&r.push(new Ue("page",[])),(n=e.cdnSettings)!==null&&n!==void 0?(g=n,[3,3]):[3,1]);case 1:return[4,Wo(e.writeKey,e.cdnURL)];case 2:g=f.sent(),f.label=3;case 3:return p=g,t.updateCDNSettings&&(p=t.updateCDNSettings(p)),typeof t.disable!="function"?[3,5]:[4,t.disable(p)];case 4:if(b=f.sent(),b)return[2,[new Zt,ne.system()]];f.label=5;case 5:return m=(o=(i=p.integrations["Segment.io"])===null||i===void 0?void 0:i.retryQueue)!==null&&o!==void 0?o:!0,w=_({retryQueue:m},t),x=new Tr(e,w),Ho(x),S=(a=e.plugins)!==null&&a!==void 0?a:[],y=(s=e.classicIntegrations)!==null&&s!==void 0?s:[],mr.initRemoteMetrics(p.metrics),Yo(x,r),[4,ea(e.writeKey,p,x,w,t,S,y)];case 6:return v=f.sent(),c=(d=window.location.search)!==null&&d!==void 0?d:"",u=(l=window.location.hash)!==null&&l!==void 0?l:"",h=c.length?c:u.replace(/(?=#).*(?=\?)/,""),h.includes("ajs_")?[4,x.queryString(h).catch(console.error)]:[3,8];case 7:f.sent(),f.label=8;case 8:return x.initialized=!0,x.emit("initialize",e,t),[4,Zo(x,r)];case 9:return f.sent(),[2,[x,v]]}})})}var ra=function(e){ie(t,e);function t(){var r=this,n=jn(),i=n.promise,o=n.resolve;return r=e.call(this,function(a){return i.then(function(s){var d=s[0],l=s[1];return ta(d,l,a)})})||this,r._resolveLoadStart=function(a,s){return o([a,s])},r}return t.prototype.load=function(r,n){return n===void 0&&(n={}),this._resolveLoadStart(r,n),this},t.load=function(r,n){return n===void 0&&(n={}),new t().load(r,n)},t.standalone=function(r,n){return t.load({writeKey:r},n).then(function(i){return i[0]})},t}(Ai);const Jr=B.createContext(null);function na({orgId:e,segmentWriteKey:t,children:r}){return xe.useIsSSR()?r:I.jsx(ia,{orgId:e,segmentWriteKey:t,children:r})}const sr=new Map;function ia({segmentWriteKey:e,children:t}){const r=B.useRef(sr.get(e)??null);!r.current&&e&&(r.current=ra.load({writeKey:e}),sr.set(e,r.current));const n=B.useMemo(()=>({analytics:r.current}),[r]);return I.jsx(Jr.Provider,{value:n,children:t})}function oa(){const e=B.useContext(Jr);if(!e)throw new Error("useAnalytics must be used within a TrackingProvider");return e.analytics}function aa(){return xe.useIsSSR()?null:I.jsx(sa,{})}function sa(){const e=oa(),t=yt(),r=B.useRef(!0);return B.useEffect(()=>{e.page({referrer:r.current?globalThis.document.referrer:void 0,path:t.pathname,search:t.search,url:new URL(`${t.pathname}${t.search}`,globalThis.location.origin)}),r.current=!1},[t]),null}function ua(){const{url:e,icon:t}=lr(),r=an().flatMap(n=>{var o;const i=(o=n.handle)==null?void 0:o.dynamicLinks;return typeof i!="function"?[]:i({data:n.data})});return I.jsxs(I.Fragment,{children:[t&&I.jsx("link",{rel:"icon",href:t,type:"image/x-icon"}),I.jsx("link",{rel:"apple-touch-icon",href:"/touch-icon.png"}),I.jsx("link",{rel:"canonical",href:e}),r.map(n=>B.createElement("link",{...n,key:n.integrity||JSON.stringify(n)}))]})}(()=>{try{return!1}catch{return!1}})();function ca(e,t){let r=e;return t.forEach(n=>{if(n in r){const i=r[n];if(!i||typeof i!="object")throw new Error(`Existing object path is invali
39d. Part ${n} is not an object.`);r=i}else{const i={};r[n]=i,r=i}}),r}function la(){return ca(window,["__jam__","exports"])}function fa(e){const t=la();t.metadata=e}const da=Object.freeze(Object.defineProperty({__proto__:null,metadata:fa},Symbol.toStringTag,{value:"Module"}));function ha(){const{jamMetadata:e}=fr("root");B.useEffect(()=>{da.metadata(()=>({...e,timeSincePageLoad:performance.now()}))},[e])}const pa=cr(` 40 query GetPosthogKeys { 41 domainOrg { 42 id 43 posthogKeys 44 } 45 } 46`);function va(){const{data:{domainOrg:e}={},loading:t}=ur(pa),{posthogUserData:r}=fr("root");if(t)return null;const n=e==null?void 0:e.posthogKeys;return(n==null?void 0:n.length)>0&&n.map(i=>I.jsx("script",{dangerouslySetInnerHTML:{__html:` 47 ! function(t, e) { 48 var o, n, p, r; 49 e.__SV || (window.posthog = e, e._i = [], e.init = function(i, s, a) { 50 function g(t, e) { 51 var o = e.split("."); 52 2 == o.length && (t = t[o[0]], e = o[1]), t[e] = function() { 53 t.push([e].concat(Array.prototype.slice.call(arguments, 0))) 54 } 55 }(p = t.createElement("script")).type = "text/javascript", p.crossOrigin = "anonymous", p.async = !0, p.src = s.api_host.replace(".i.posthog.com", "-assets.i.posthog.com") + "/static/array.js", (r = t.getElementsByTagName("script")[0]).parentNode.insertBefore(p, r); 56 var u = e; 57 for (void 0 !== a ? u = e[a] = [] : a = "posthog", u.people = u.people || [], u.toString = function(t) { 58 var e = "posthog"; 59 return "posthog" !== a && (e += "." + a), t || (e += " (stub)"), e 60 }, u.people.toString = function() { 61 return u.toString(1) + ".people (stub)" 62 }, o = "init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug".split(" "), n = 0; n < o.length; n++) g(u, o[n]);
63 e._i.push([i, s, a]) 64 }, e.__SV = 1) 65 }(document, window.posthog || []); 66 posthog.init('${i}', { 67 api_host: 'https://us.i.posthog.com', 68 person_profiles: 'identified_only' // or 'always' to create profiles for anonymous users as well 69 }) 70 71 posthog.identify('${r.id}', { 72 email: '${r.email}', 73 name: '${r.name}', 74 }) 75 `}},i))}const Oa=()=>[{title:"Tilma"}],Pa=()=>[{rel:"stylesheet",href:"/org_styles.css"}],ya=({children:e})=>{const{pathname:t}=yt(),r=B.useContext(ln);B.useEffect(()=>{r.reset()},[r]);const{locale:n="en",ENV:i,csrf:o,messages:a,graphqlUri:s,gtmCodes:d,orgId:l,segmentWriteKey:p,includeGlobalLinkedAssets:g}=lr();return ha(),I.jsxs("html",{lang:n,suppressHydrationWarning:!0,children:[I.jsxs("head",{children:[I.jsx("meta",{charSet:"utf-8"}),I.jsx("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),I.jsx(sn,{}),I.jsx(un,{}),g&&I.jsx(I.Fragment,{children:I.jsx("link",{rel:"stylesheet",href:"/linked_assets/_global/index.css?v=1"})}),I.jsx(ua,{}),I.jsx(pn,{}),I.jsx(_n,{codes:d}),I.jsx(gn,{}),t.includes("/admin/")&&I.jsx(va,{}),I.jsx("style",{id:"stitches",dangerouslySetInnerHTML:{__html:r.sheet},suppressHydrationWarning:!0})]}),I.jsx("body",{children:I.jsxs(rn,{value:{locale:n,ENV:i,csrf:o},children:[I.jsx(xe.ThemeProvider,{i18n:{onWarn:Vt,onError:Vt,locale:n,defaultLocale:"en",messages:a},toaster:{position:"right",offset:{top:100}},children:p?I.jsxs(na,{orgId:l,segmentWriteKey:p,children:[e,I.jsx(aa,{})]}):e}),I.jsx(Zr,{}),I.jsx(fn,{}),I.jsx("script",{dangerouslySetInnerHTML:{__html:` 76 window.ENV = ${JSON.stringify(i)}; 77 window.graphqlUri = '${s}'; 78 window.__tracking__ = ${JSON.stringify({orgId:l})}; 79 `}}),I.jsx(cn,{}),I.jsx(mn,{}),I.jsx(vn,{}),I.jsx(bn,{codes:d}),I.jsx(hn,{}),g&&I.jsxs(I.Fragment,{children:[I.jsx("script",{src:"/linked_assets/_global/js/hero_gradient.js?v=1"}),I.jsx("script",{src:"/linked_assets/_global/feature_first_96_4.js?v=1"}),I.jsx("script",{src:"/linked_assets/_global/force_important_page_builder_fonts_96_4.js?v=1"})]})]})})]})};function ja(){return I.jsx(ya,{children:I.jsx(Yr,{})})}function Ma(){return I.jsx(en,{})}export{ja as A,we as C,Ma as E,_t as P,E as _,A as a,_ as b,Ti as c,H as d,N as e,je as f,Ea as g,Gr as h,Ia as i,te as j,qo as k,nt as l,Fi as m,xt as n,Pe as o,An as p,Kn as q,ke as r,ne as s,Oa as t,Aa as u,Pa as v};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.