PageSourceSearch

https://secretsydney.com/wp-content/themes/secretmedianetwork/dist…4a-2256e5dfda9625d28206996abb2f98d6cad411d5

js secretsydney.com collected 2026-09-26 01:34:56 UTC 428,986 bytes, 1 lines download raw bytes

1!function(){var e={7576:function(e){e.exports=function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}});var i=n(279),r=n.n(i),s=n(370),o=n.n(s),a=n(817),l=n.n(a);function c(e){try{return document.execCommand(e)}catch(e){return!1}}var u=function(e){var t=l()(e);return c("cut"),t},d=function(e,t){var n,i,r,s=(n="rtl"===document.documentElement.getAttribute("dir"),(i=document.createElement("textarea")).style.fontSize="12pt",i.style.border="0",i.style.padding="0",i.style.margin="0",i.style.position="absolute",i.style[n?"right":"left"]="-9999px",r=window.pageYOffset||document.documentElement.scrollTop,i.style.top="".concat(r,"px"),i.setAttribute("readonly",""),i.value=e,i);t.container.appendChild(s);var o=l()(s);return c("copy"),s.remove(),o},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=l()(e),c("copy")),n};function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,i=e.container,r=e.target,s=e.text;if("copy"!==n&&"cut"!==n)throw Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r)if(r&&"object"===h(r)&&1===r.nodeType){if("copy"===n&&r.hasAttribute("disabled"))throw Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}else throw Error('Invalid "target" value, use a valid Element');return s?f(s,{container:i}):r?"cut"===n?u(r):f(r,{container:i}):void 0};function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var b=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&v(s,e);var t,n,i,r=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,i,r=_(s);return i=t?Reflect.construct(r,arguments,_(this).constructor):r.apply(this,arguments),e=this,(n=i)&&("object"===m(n)||"function"==typeof n)?n:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)});function s(e,t){var n;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");return(n=r.call(this)).resolveOptions(t),n.listenClick(e),n}return n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",i=p({action:n,container:this.container,target:this.target(t),text:this.text(t)});
vendor: 4,147 bytes, line 1
1this.emit(i?"success":"error",{action:n,text:i,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return u(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=!!document.queryCommandSupported;return("string"==typeof e?[e]:e).forEach(function(e){t=t&&!!document.queryCommandSupported(e)}),t}}],n&&g(s.prototype,n),i&&g(s,i),s}(r())},828:function(e){if("u">typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function r(e,t,n,i,r){var o=s.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}function s(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}e.exports=function(e,t,n,i,s){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,i,s)}))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),r=n(438);e.exports=function(e,t,n){var s,o,a,l,c,u,d,f,h;if(!e&&!t&&!n)throw Error("Missing required arguments");if(!i.string(t))throw TypeError("Second argument must be a String");if(!i.fn(n))throw TypeError("Third argument must be a Function");if(i.node(e)){return s=e,o=t,a=n,s.addEventListener(o,a),{destroy:function(){s.removeEventListener(o,a)}}}if(i.nodeList(e)){return l=e,c=t,u=n,Array.prototype.forEach.call(l,function(e){e.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(l,function(e){e.removeEventListener(c,u)})}}}if(i.string(e)){return d=e,f=t,h=n,r(document.body,d,f,h)}throw TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function r(){i.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var s=0,o=i.length;s<o;s++)i[s].fn!==t&&i[s].fn._!==t&&r.push(i[s]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}
vendor: 4,118 bytes, line 1
1return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},7833:function(e,t,n){let i;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))}),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"u">typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),i=!1,t.destroy=()=>{i||(i=!0)},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);let{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:function(e,t,n){e.exports=function(e){function t(e){let n,r,s,o=null;function a(...e){if(!a.enabled)return;let i=Number(new Date);a.diff=i-(n||i),a.prev=n,a.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";r++;let s=t.formatters[i];if("function"==typeof s){let t=e[r];n=s.call(a,t),e.splice(r,1),r--}return n}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=i,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function i(e,n){let i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function r(e,t){let n=0,i=0,r=-1,s=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(r=i,s=n):n++,i++;else{if(-1===r)return!1;i=r+1,n=++s}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let n of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(
1Boolean)))"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(let n of t.skips)if(r(e,n))return!1;for(let n of t.names)if(r(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3726:function(e,t,n){"use strict";n.d(t,{c:function(){return m}});var i,r=n(1476),s=n(9452),o=((i=o||{}).SAVED_POSTS_CATEGORY="saved_posts",i.SUCCES_SAVE="post_saved",i.REMOVE_SAVE="saved_post_removed",i.REVERT_REMOVE_SAVE="saved_post_removed_revert",i),a=Object.defineProperty,l=Object.defineProperties,c=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&h(e,n,t[n]);if(u)for(var n of u(t))f.call(t,n)&&h(e,n,t[n]);return e};class m{constructor(e){this.dataLogging=e,document.addEventListener("postSaved",e=>this.sendSavedPostsEvent(o.SUCCES_SAVE,"-",e.detail)),document.addEventListener("savedPostRemoved",e=>this.sendSavedPostsEvent(o.REMOVE_SAVE,"-",e.detail)),document.addEventListener("savedPostRemovedRevert",e=>this.sendSavedPostsEvent(o.REVERT_REMOVE_SAVE,"-",e.detail))}static init(e=r.Y.getInstance()){return m.instance||(m.instance=new m(e)),m.instance}sendSavedPostsEvent(e,t="-",n={}){(document.body.classList.contains("nbe-single-post")||document.body.classList.contains("nbe-homepage"))&&(n=l(p({},n),c({origin:"nbe"}))),window.dataLayer.push({event:"gtag_event",data:{event_name:e,event_category:o.SAVED_POSTS_CATEGORY,event_label:t,event_detail:n}}),this.dataLogging.sendDataEvent(s.E.SAVED_POSTS,p({url:window.location.href,action:e},n))}}},1476:function(e,t,n){"use strict";n.d(t,{Y:function(){return w}});var i=n(2123),r=n(9452),s=n(6142),o=n(514),a=n(8324),l=n(4712),c=n(6427),u=n(7567),d=n(7050),f=n(6617),h=Object.defineProperty,p=Object.defineProperties,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,y=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(g)for(var n of g(t))_.call(t,n)&&y(e,n,t[n]);return e};class w{constructor(e,t,n){this.STABLE_USER_ID_COOKIE_KEY="stable_user_id",this.sessionStorageKey="eventParameters",this.firstOfSession=!1,this.lastReferrer="",this.sessionCookieKey="",this.userIdCookieKey="",sessionStorage.getItem(this.sessionStorageKey)||(this.saveEventParametersToSession(s.C.getUtmParametersFromUser()),this.firstOfSession=!0),this.sessionCookieKey="session_"+window.location.hostname,this.userIdCookieKey="user_"+window.location.hostname,window.addEventListener("new_post_inserted",this.trackPageViewForInfinityScroll.bind(this)),window.addEventListener("load",this.trackPageViewForPageLoaded.bind(this)),window.addEventListener("current_post_changed",this.updateLastReferrer.bind(this)),window.addEventListener("DOMContentLoaded",this.createUserId.bind(this)),this.dataLoggingHost=e,this.cookieService=t,this.userInfoService=n,this.trackSessionStart()}static init(e,t,n=new o.A(new a.A)){w.instance||(w.instance=new w(e,t,n))}static getInstance(){return w.instance?w.instance:null}getStableUserId(){let e=this.cookieService.getCookie(this.STABLE_USER_ID_COOKIE_KEY);return""===e&&(e=(0,u.v4)(),this.cookieService.setCookie(this.STABLE_USER_ID_COOKIE_KEY,e)),e}getDeviceType(){return window.matchMedia("(min-width: 1024px)").matches?"desktop":"mobile"}sendDataEvent(e,t){var n,i,s,o,a,l,c,u,d,f,h,g,v,_,y,w;let E,S,A,T=this.getSavedEventParameters();void 0===t.last_referrer&&(T=p(b({},T),m({last_referrer:document.referrer})));let C=Math.floor(Date.now()/1e3),I=!0===t.omit_page_type,O="string"==typeof t.page_type?t.page_type:void 0,L="string"==typeof t.url?t.url:"",N=this.getTemplateParameter(t),P=(A=b(b(b(b(b((S=b((E=b(p(b(b({},t),T),m({language:null!=(o=null!=(s=t.language)?s:null==(i=null==(n=window.SMNPayloadData)?void 0:n.content)?void 0:i.language)?o:"",locale:null!=(u=null!=(c=t.locale)?c:null==(l=null==(a=window.SMNPayloadData)?void 0:a.content)?void 0:l.locale)?u:""})),I?{}:{page_type:null!=(h=null!=O?O:null==(f=null==(d=window.SMNPayloadData)?void 0:d.content)?void 0:f.pageType)?h:"default"}),p(E,m({site_experience:null!=(g=t.site_experience)?g:"smn",session_id:this.cookieService.getCookie(this.sessionCookieKey),user_id:this.cookieService.getCookie(this.userIdCookieKey),device_type:this.getDeviceType(),logged_user_id:(null==(v=this.userInfoService.getUserInfo())?void 0:v.feverUserId)||"",stable_user_id:this.getStableUserId()}))),(null==(_=this.userInfoService.getUserInfo())?void 0:_.feverUserId)?{fever_user_id:null==(y=this.userInfoService.getUserInfo())?void 0:y.feverUserId}:{}),p(S,m({timestamp:C,is_first_page_session:this.firstOfSession}))),this.getFirstArticleOfSessionParameter(t)),this.getInfiniteScrollPositionParameter(t)),this.getArticleLinkClassificationParameters(t)),N),e===r.E.PAGE_VIEW?this.getWatchPageTypeParameter("string"==typeof N.template?N.template:"string"==typeof t.template?t.template:void 0,this.resolveArticleRoot(L)):{}),p(A,m({experiments:(null==(w=window.SMNPayloadData)?void 0:w.tests)||{}})));delete P.omit_page_type,I&&delete P.page_type,fetch(this.dataLoggingHost+"/event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_type:e,what:P,who:"SMN"})})}trackSessionStart(){let e=this.cookieService.getCookie(this.sessionCookieKey);""===e?(e=l.A.generateCustomId(20),this.cookieService.setCookie(this.sessionCookieKey,e,30),this.sendDataEvent(r.E.SESSION_START,{url:window.location.href})):this.cookieService.setCookie(this.sessionCookieKey,e,30)}trackPageViewForInfinityScroll(e){this.firstOfSession=!1,this.trackPageView(b({url:e.detail.url,category:"scroll",last_referrer:window.location.href,has_profile_card:e.detail.hasProfileCard.toString(),is_first_article_of_session:!1,infinite_scroll_position:e.detail.page},this.getWatchPageTypeParameter(e.detail.post_template)))}trackPageView(e){this.sendDataEvent(r.E.PAGE_VIEW,e)}trackClick(e){let t=e.category;switch(e.category){case"multi-language":return;case"outbound_link":if("sticky_module"===e.action){t=r.E.STICKY_MODULE;break}"multicity_module_menu"===e.action&&(t=r.E.MULTICITY_MODULE_MENU);break;case"ttd_module":t=r.E.TTD_MODULE;break;case"new_homepage":t=r.E.NEW_HOMEPAGE;break;case"top_banner_module":t=r.E.TOPBAR_MODULE;break;case"secret_club_module":t=r.E.SECRETCLUB_MODULE;break;case"click_sales":case"click_non_sales":t=r.E.OUTBOUND_LINK;break;case"click_internal":case"click_cross":t=r.E.INTERNAL_LINK}""!==this.lastReferrer&&(e=p(b({},e),m({last_referrer:this.lastReferrer}))),this.sendDataEvent(t,e)}trackPageViewForPageLoaded(e){var t;if(this.isNewBrowsingExperience()||i.h.isOneTapReturn())return;let n="click";this.firstOfSession&&(n="first_of_session");let r={url:window.location.href,category:n};if((null==e?void 0:e.detail)&&e.detail.hasProfileCard){r=b(p(b({},r),m({has_profile_card:e.detail.hasProfileCard.toString()})),this.getWatchPageTypeParameter(e.detail.post_template)),this.trackPageView(r);return}let s=(null==(t=document.querySelector(".single-post"))?void 0:t.getElementsByTagName("article"))||null;if(null!==s&&s.length>0){let e=s[0],t=!!e.querySelector(".profile-card-table, .profile-card");r=b(p(b({},r),m({has_profile_card:t.toString()})),this.getWatchPageTypeParameter(void 0,e))}this.trackPageView(r)}getWatchPageTypeParameter(e,t){var n,i;return"watchpage"===e||(null==(n=null==t?void 0:t.dataset)?void 0:n.isVideoPost)==="1"||(null==(i=null==t?void 0:t.dataset)?void 0:i.postTemplate)==="watchpage"?{type:"video"}:{}}isNewBrowsingExperience(){return null!==document.querySelector("#nbe-container")}getFirstArticleOfSessionParameter(e){return"boolean"==typeof e.is_first_article_of_session?{is_first_article_of_session:e.is_first_article_of_session}:this.isArticlePage()?{is_first_article_of_session:this.claimFirstArticleOfSessionContext(e)}:{}}isPastFirstArticleSlot(e){var t;let n=e.infinite_scroll_position;if("number"==typeof n&&Number.isFinite(n))return n>1;let i=null==(t=c.X.getInstance())?void 0:t.getCurrentPosition();return"number"==typeof i&&i>1}getInfiniteScrollPositionParameter(e){var t;let n=e.infinite_scroll_position;if("number"==typeof n&&Number.isFinite(n)&&n>0)return{infinite_scroll_position:n};let i=null==(t=c.X.getInstance())?void 0:t.getCurrentPosition();return void 0===i?{}:{infinite_scroll_position:i}}
1getArticleLinkClassificationParameters(e){let t=this.resolveArticleBodyScope("string"==typeof e.url?e.url:"");if(!t)return{};let n=t.dataset.hasMarketplaceLinks,i=t.dataset.hasLandingLinks;if(("1"===n||"0"===n)&&("1"===i||"0"===i))return{article_has_marketplace_links:"1"===n,article_has_landing_links:"1"===i};let r=!1,s=!1;return t.querySelectorAll('a[data-category="click_sales"]').forEach(e=>{var t;f.A.isMarketplaceHref(null!=(t=e.getAttribute("href"))?t:"")?r=!0:s=!0}),t.dataset.hasMarketplaceLinks=r?"1":"0",t.dataset.hasLandingLinks=s?"1":"0",{article_has_marketplace_links:r,article_has_landing_links:s}}getTemplateParameter(e){var t;let n="string"==typeof e.url?e.url:"",i="string"==typeof e.template&&""!==e.template?e.template:null==(t=this.resolveArticleRoot(n))?void 0:t.dataset.postTemplate;return i?{template:i}:{}}resolveArticleRoot(e){var t;let n=document.querySelector("#nbe-post-content");if(n)return n;let i=Array.from(document.querySelectorAll(".post-main-content")),r=""!==e?i.find(t=>t.dataset.url===e):void 0;return null!=(t=null!=r?r:i[0])?t:null}resolveArticleBodyScope(e){var t,n;return null!=(n=null==(t=this.resolveArticleRoot(e))?void 0:t.querySelector(".article__body, .nbe-post-content__body"))?n:null}claimFirstArticleOfSessionContext(e){let t=this.resolveFirstArticleComparisonUrl(e);if(null===t)return!1;let n=d.A.get();return null===n?(d.A.save(t),!0):n.url===t}isArticlePage(){return null!==document.querySelector(".single-post article")}resolveFirstArticleComparisonUrl(e){return"string"==typeof e.url&&""!==e.url?d.A.normalizeUrl(e.url):this.isPastFirstArticleSlot(e)?null:d.A.normalizeUrl(window.location.href)}saveEventParametersToSession(e){let t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e.startsWith("utm_")?e.slice(4):e,t]));sessionStorage.setItem(this.sessionStorageKey,JSON.stringify(p(b({},t),m({initial_referrer:document.referrer}))))}getSavedEventParameters(){let e=sessionStorage.getItem(this.sessionStorageKey);return e?JSON.parse(e):{}}updateLastReferrer(){this.lastReferrer=window.location.href}createUserId(){let e=this.cookieService.getCookie(this.userIdCookieKey);""===e&&(e=l.A.generateCustomId(30)),this.cookieService.setCookie(this.userIdCookieKey,e)}}},7050:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});
1class i{static get(){try{let e=localStorage.getItem(this.storageKey);if(null===e)return null;let t=JSON.parse(e),n=!t.expiresAt||t.expiresAt<=Date.now(),i="string"==typeof t.url&&""!==t.url;if(n||!i)return localStorage.removeItem(this.storageKey),null;return t}catch(e){return null}}static save(e){try{let t={expiresAt:Date.now()+this.ttlMs,url:e};localStorage.setItem(this.storageKey,JSON.stringify(t))}catch(e){}}static normalizeUrl(e){try{let t=new URL(e,window.location.href),n=t.pathname.replace(/\/+$/,"")||"/";return`${t.origin.toLowerCase()}${n}`}catch(e){return null}}}i.storageKey="smn_first_article_of_session",i.ttlMs=18e5},6427:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let i=class e{constructor(){this.currentPosition=this.readInitialPositionFromDom(),window.addEventListener("current_post_changed",this.handlePostEvent.bind(this))}static init(){return e.instance||(e.instance=new e),e.instance}static getInstance(){return e.instance}getCurrentPosition(){return this.currentPosition}handlePostEvent(e){let t=null==e?void 0:e.detail,n=Number(null==t?void 0:t.page);Number.isFinite(n)&&n>0&&(this.currentPosition=n)}readInitialPositionFromDom(){let e=document.querySelector("article[data-scrollnumber]");if(!e)return;let t=Number(e.dataset.scrollnumber);return Number.isFinite(t)&&t>0?t:void 0}};i.instance=null;let r=i},6617:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});
1class i{static isMarketplaceHref(e){if(""===e)return!1;try{let t=new URL(e,window.location.href).hostname;return/(^|\.)(feverup\.com|liveyourcity\.com)$/.test(t)}catch(e){return!1}}}},4712:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});class i{static getCurrentUrl(e=""){let t=new URL(window.location.href);return"preserve"!==e&&(t.search=t.hash=""),t.toString()}static generateCustomId(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="";for(let i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}static slideDown(e,t,n){e.style.height="0px",e.style.display="",e.style.overflow="hidden",e.offsetHeight,e.style.transition=`height ${t}ms ease-in-out`;let i=e.scrollHeight;if(0===i){e.style.height="",e.style.display="",e.style.transition="",e.style.overflow="",n&&n();return}requestAnimationFrame(()=>{e.style.height=`${i}px`});let r=!1,s=()=>{!r&&(r=!0,e.style.height="",e.style.display="",e.style.transition="",e.style.overflow="",e.removeEventListener("transitionend",s),n&&n())};e.addEventListener("transitionend",s),setTimeout(s,t+50)}static slideUp(e,t,n){let i=e.scrollHeight;if(0===i){e.style.display="none",n&&n();return}e.style.overflow="hidden",e.style.height=`${i}px`,e.offsetHeight,e.style.transition=`height ${t}ms ease-in-out`,requestAnimationFrame(()=>{e.style.height="0px"});let r=!1,s=()=>{!r&&(r=!0,e.style.display="none",e.style.height="",e.style.transition="",e.style.overflow="",e.removeEventListener("transitionend",s),n&&n())};e.addEventListener("transitionend",s),setTimeout(s,t+50)}}},6142:function(e,t,n){"use strict";n.d(t,{C:function(){return d}});var i=n(2466),r=n(7050),s=Object.defineProperty,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>
1{for(var n in t||(t={}))a.call(t,n)&&c(e,n,t[n]);if(o)for(var n of o(t))l.call(t,n)&&c(e,n,t[n]);return e};class d{static init(){this.cookieService=new i.O,sessionStorage.getItem(this.sessionStorageKey)||this.saveUtmParametersToSession(this.getUtmParametersFromUser()),document.addEventListener("pointerdown",this.handleClicks.bind(this)),document.addEventListener("keydown",this.handleClicks.bind(this))}static getStableUserId(){return this.cookieService.getCookie(this.stableUserIdCookie)?this.cookieService.getCookie(this.stableUserIdCookie):null}static getUtmParametersFromUser(){let e={},t=new URLSearchParams(window.location.search);return t.has("utm_source")?this.validUtmParameters.forEach(n=>{t.has(n)&&""!==t.get(n)&&(e[n]=t.get(n))}):this.isDirectTraffic()?e.utm_source="direct":this.isOrganicTraffic()?(e.utm_source=this.isOrganicTraffic(),e.utm_medium="organic"):this.isReferralTraffic()&&(e.utm_source=this.isReferralTraffic(),e.utm_medium="referral"),e}static isDirectTraffic(){return""===document.referrer||void 0===document.referrer}static isOrganicTraffic(){let e=this.searchEngines.find(e=>document.referrer.includes(e));return!!e&&e}static isReferralTraffic(){if(""===document.referrer||void 0===document.referrer||this.isOrganicTraffic())return!1;let e=new URL(document.referrer),t=window.location.hostname;return e.hostname!==t&&e.hostname}static saveUtmParametersToSession(e){sessionStorage.setItem(this.sessionStorageKey,JSON.stringify(e))}static handleClicks(e){let t=e.target.closest("a[data-tracked]");t&&this.updateLinkHref(t)}static updateLinkHref(e){let t=this.getDataAttributesFromLink(e),n=this.shouldAttachStableUserId(e)&&this.getStableUserId()?{[this.stableUserIdParameterKey]:this.getStableUserId()}:{},i=u(u(u({},JSON.parse(sessionStorage.getItem(this.sessionStorageKey))),t),n);e.href=this.addUtmParametersToUrl(e.href,i)}static shouldAttachStableUserId(e){return!this.isSalesClickLink(e)||!(this.shouldRemoveMarketplaceUuidFromFirstInfiniteScrollArticleClicks()&&this.isFirstArticleLink(e)||this.shouldRemoveMarketplaceUuidFromFirstArticleClicks()&&this.isFirstArticleLink(e))}static isSalesClickLink(e){return"click_sales"===e.getAttribute("data-category")}static shouldRemoveMarketplaceUuidFromFirstArticleClicks(){var e;return"1"===(null==(e=window.phpVars)?void 0:e.remove_marketplace_uuid_from_first_article_clicks)}static shouldRemoveMarketplaceUuidFromFirstInfiniteScrollArticleClicks(){var e;return"1"===(null==(e=window.phpVars)?void 0:e.remove_marketplace_uuid_from_first_infinite_scroll_article_clicks)}static isFirstArticleLink(e){let t=e.closest("article.card-layout"),n=null==t?void 0:t.getAttribute("data-post-index");if(n)return 1===Number.parseInt(n,10);let i=this.resolveArticleUrlForLink(e);if(null===i)return!1;let s=r.A.get();return null!==s?s.url===r.A.normalizeUrl(i):!this.isNbeReaderLink(e)&&!this.isPastFirstArticleSlot(e)}static resolveArticleUrlForLink(e){let t=e.closest(".post-main-content");return(null==t?void 0:t.dataset.url)?t.dataset.url:e.closest("#nbe-post-content")||e.closest(".single-post article")?window.location.href:null}static isNbeReaderLink(e){return null!==e.closest("#nbe-post-content")}static isPastFirstArticleSlot(e){var t;let n=null==(t=e.closest(".post-main-content"))?void 0:t.dataset.scrollnumber;if(!n)return!1;let i=Number.parseInt(n,10);return Number.isFinite(i)&&i>1}static getDataAttributesFromLink(e){let t={};return Array.from(e.attributes).forEach(e=>{let n=e.name.replace("data-","");(n.startsWith("cp_smn")||window.phpVars.allowed_parameters.includes(n))&&(t[n]=e.value)}),t}static addUtmParametersToUrl(e,t){let n=new URL(e);return Object.keys(t).forEach(e=>{n.searchParams.set(e,t[e])}),n.toString()}static getSavedUtmParameters(){let e=sessionStorage.getItem(this.sessionStorageKey);return e?JSON.parse(e):{}}}d.searchEngines=["google","bing","yahoo","baidu","yandex","duckduckgo","ask","ecosia","aol","archive","naver","brave"],d.validUtmParameters=["utm_source","utm_medium","utm_content","utm_campaign","utm_term","ad_id","fbclid","gclid"],d.sessionStorageKey="utmParameters",d.stableUserIdCookie="stable_user_id",d.stableUserIdParameterKey="suid"},9452:function(e,t,n){"use strict";n.d(t,{E:function(){return r}});var i,r=((i=r||{}).PAGE_VIEW="smn_page_view",i.PAGE_VIEW_PERCENTAGE="smn_percentage_page_viewed",i.PAGE_LISTICLE_ITEMS_VIEWED="smn_listicle_items_viewed",i.ARTICLE_VIEW_START="smn_article_view_start",i.SESSION_START="smn_session_start",i.OUTBOUND_LINK="smn_outbound_link",i.INTERNAL_LINK="smn_internal_link",i.TTD_MODULE="smn_ttd_module",i.NEW_HOMEPAGE="smn_new_homepage",i.STICKY_MODULE="smn_sticky_module",i.MULTICITY_MODULE_MENU="smn_multicity_module_menu",i.MULTICITY_MODULE_TOPBAR="smn_multicity_module_topbar",i.RECOMMENDER_MODULE="smn_recommender_module_top_article",i.STICKY_MARKETPLACE_CTA_VIEW="smn_sticky_marketplace_cta_view",i.VIDEO_HUB_SECTION_VIEW="smn_video_hub_section_view",i.VIDEO_HUB_VIDEO_CLICK="smn_video_hub_video_click",i.VIDEO_FEED_OPEN="smn_video_feed_o
1pen",i.VIDEO_FEED_VIDEO_VIEW="smn_video_feed_video_view",i.VIDEO_FEED_CLOSE="smn_video_feed_close",i.LOGIN="smn_login",i.TOPBAR_MODULE="smn_top_banner_module",i.SECRETCLUB_MODULE="smn_secret_club_module",i.SAVED_POSTS="saved_posts",i.LANGUAGE_SELECTOR_CLICK="topbar_language_selector_click",i.LANGUAGE_SWITCH_PROMPT="smn_language_switch_prompt",i.SIDE_MENU_LANGUAGE_SELECTOR_CLICK="side_menu_language_selector_click",i.SIDE_MENU_OPEN="side_menu_open",i.SIDE_MENU_CLOSE="side_menu_close",i.TOPBAR_NEWSLETTER_LINK_CLICK="topbar_newsletter_link_click",i.VIDEO_INTERACTION="smn_video_interaction",i.VIDEO_WATCH_TIME="smn_video_watch_time",i.GOOGLE_MAPS="smn_google_maps",i.EVENTS_SHOWCASE_VIEW="smn_events_showcase_view",i.EVENTS_SHOWCASE_CLICK="smn_events_showcase_click",i.EVENTS_SHOWCASE_CAROUSEL="smn_events_showcase_carousel",i)},8324:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(3719);class r extends i.A{constructor(){super(window.localStorage)}}},3719:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});class i{constructor(e){this.storage=e||window.localStorage}saveItem(e,t){try{let n=JSON.stringify(t);this.storage.setItem(e,n)}catch(e){}}getItem(e){try{let t=this.storage.getItem(e);if(null===t)return null;return JSON.parse(t)}catch(t){return this.removeItem(e),null}}removeItem(e){this.storage.removeItem(e)}clearAll(){this.storage.clear()}}},514:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});class i{constructor(e){this.userKey="smnUserInfo",this.storageService=e}saveUserInfo(e){this.storageService.saveItem(this.userKey,e)}getUserInfo(){return this.storageService.getItem(this.userKey)}clearUserInfo(){this.storageService.removeItem(this.userKey)}}},2466:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});class i{constructor(e=window.document){this.document=e}setCookie(e,t,n){let i,r=new Date;n?i=new Date(r.getTime()+60*n*1e3):(i=new Date).setFullYear(r.getFullYear()+50),this.document.cookie=`${e}=${t}; expires=${i.toUTCString()}; path=/`}getCookie(e){let t=`${e}=`,n=this.document.cookie.split(";");for(let e=0;e<n.length;e++){let i=n[e];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return""}removeCookie(e){this.document.cookie=`${e}=; expires=Wed, 14 Nov 2001 00:00:00 UTC;; path=/`}}},2123:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});let i=class e{static isOneTapReturn(){return null===e.cached&&(e.cached=e.detect()),e.cached}static reset(){e.cached=null}static detect(){var t;let n,i=document.referrer;if(!i)return!1;try{n=new URL(i)}catch(e){return!1}if(n.origin!==window.location.origin||!e.OAUTH_CALLBACK_PATH.test(n.pathname))return!1;let r=n.searchParams.get("state");if(!r)return!1;try{return(null==(t=JSON.parse(r))?void 0:t.googleOneTap)===!0}catch(e){return!1}}};i.OAUTH_CALLBACK_PATH=/^\/oauth-callback\/?$/,i.cached=null;let r=i},6585:function(e){function t(e,t,n,i){return Math.round(e/n)+" "+i+(t>=1.5*n?"s":"")}
1e.exports=function(e,n){n=n||{};var i,r,s,o,a=typeof e;if("string"===a&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(c){var u=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:break}}}return}if("number"===a&&isFinite(e)){return n.long?(r=Math.abs(i=e))>=864e5?t(i,r,864e5,"day"):r>=36e5?t(i,r,36e5,"hour"):r>=6e4?t(i,r,6e4,"minute"):r>=1e3?t(i,r,1e3,"second"):i+" ms":(o=Math.abs(s=e))>=864e5?Math.round(s/864e5)+"d":o>=36e5?Math.round(s/36e5)+"h":o>=6e4?Math.round(s/6e4)+"m":o>=1e3?Math.round(s/1e3)+"s":s+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2107:function(e,t,n){"use strict";Object.defineProperty(t,"wD",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"qg",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"As",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tf",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"rE",{enumerable:!0,get:function(){return l.default}});var i=f(n(8610)),r=f(n(3208)),s=f(n(4061)),o=f(n(3358)),a=f(n(6348)),l=f(n(51)),c=f(n(129)),u=f(n(2298)),d=f(n(2356));function f(e){return e&&e.__esModule?e:{default:e}}},882:function(e,t){"use strict";function n(e){return(e+64>>>9<<4)+14+1}function i(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,n,r,s,o){var a;return i((a=i(i(t,e),i(r,o)))<<s|a>>>32-s,n)}function s(e,t,n,i,s,o,a){return r(t&n|~t&i,e,t,s,o,a)}function o(e,t,n,i,s,o,a){return r(t&i|n&~i,e,t,s,o,a)}function a(e,t,n,i,s,o,a){return r(t^n^i,e,t,s,o,a)}function l(e,t,n,i,s,o,a){return r(n^(t|~i),e,t,s,o,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){let t=[],n=32*e.length,i="0123456789abcdef";for(let r=0;r<n;r+=8){let n=e[r>>5]>>>r%32&255,s=parseInt(i.charAt(n>>>4&15)+i.charAt(15&n),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let r=0x67452301,c=-0x10325477,u=-0x67452302,d=0x10325476;for(let t=0;t<e.length;t+=16){let n=r,f=c,h=u,p=d;r=s(r,c,u,d,e[t],7,-0x28955b88),d=s(d,r,c,u,e[t+1],12,-0x173848aa),u=s(u,d,r,c,e[t+2],17,0x242070db),c=s(c,u,d,r,e[t+3],22,-0x3e423112),r=s(r,c,u,d,e[t+4],7,-0xa83f051),d=s(d,r,c,u,e[t+5],12,0x4787c62a),u=s(u,d,r,c,e[t+6],17,-0x57cfb9ed),c=s(c,u,d,r,e[t+7],22,-0x2b96aff),r=s(r,c,u,d,e[t+8],7,0x698098d8),d=s(d,r,c,u,e[t+9],12,-0x74bb0851),u=s(u,d,r,c,e[t+10],17,-42063),c=s(c,u,d,r,e[t+11],22,-0x76a32842),r=s(r,c,u,d,e[t+12],7,0x6b901122),d=s(d,r,c,u,e[t+13],12,-0x2678e6d),u=s(u,d,r,c,e[t+14],17,-0x5986bc72),c=s(c,u,d,r,e[t+15],22,0x49b40821),r=o(r,c,u,d,e[t+1],5,-0x9e1da9e),d=o(d,r,c,u,e[t+6],9,-0x3fbf4cc0),u=o(u,d,r,c,e[t+11],14,0x265e5a51),c=o(c,u,d,r,e[t],20,-0x16493856),r=o(r,c,u,d,e[t+5],5,-0x29d0efa3),d=o(d,r,c,u,e[t+10],9,0x2441453),u=o(u,d,r,c,e[t+15],14,-0x275e197f),c=o(c,u,d,r,e[t+4],20,-0x182c0438),r=o(r,c,u,d,e[t+9],5,0x21e1cde6),d=o(d,r,c,u,e[t+14],9,-0x3cc8f82a),u=o(u,d,r,c,e[t+3],14,-0xb2af279),c=o(c,u,d,r,e[t+8],20,0x455a14ed),r=o(r,c,u,d,e[t+13],5,-0x561c16fb),d=o(d,r,c,u,e[t+2],9,-0x3105c08),u=o(u,d,r,c,e[t+7],14,0x676f02d9),c=o(c,u,d,r,e[t+12],20,-0x72d5b376),r=a(r,c,u,d,e[t+5],4,-378558),d=a(d,r,c,u,e[t+8],11,-0x788e097f),u=a(u,d,r,c,e[t+11],16,0x6d9d6122),c=a(c,u,d,r,e[t+14],23,-0x21ac7f4),r=a(r,c,u,d,e[t+1
1],4,-0x5b4115bc),d=a(d,r,c,u,e[t+4],11,0x4bdecfa9),u=a(u,d,r,c,e[t+7],16,-0x944b4a0),c=a(c,u,d,r,e[t+10],23,-0x41404390),r=a(r,c,u,d,e[t+13],4,0x289b7ec6),d=a(d,r,c,u,e[t],11,-0x155ed806),u=a(u,d,r,c,e[t+3],16,-0x2b10cf7b),c=a(c,u,d,r,e[t+6],23,0x4881d05),r=a(r,c,u,d,e[t+9],4,-0x262b2fc7),d=a(d,r,c,u,e[t+12],11,-0x1924661b),u=a(u,d,r,c,e[t+15],16,0x1fa27cf8),c=a(c,u,d,r,e[t+2],23,-0x3b53a99b),r=l(r,c,u,d,e[t],6,-0xbd6ddbc),d=l(d,r,c,u,e[t+7],10,0x432aff97),u=l(u,d,r,c,e[t+14],15,-0x546bdc59),c=l(c,u,d,r,e[t+5],21,-0x36c5fc7),r=l(r,c,u,d,e[t+12],6,0x655b59c3),d=l(d,r,c,u,e[t+3],10,-0x70f3336e),u=l(u,d,r,c,e[t+10],15,-1051523),c=l(c,u,d,r,e[t+1],21,-0x7a7ba22f),r=l(r,c,u,d,e[t+8],6,0x6fa87e4f),d=l(d,r,c,u,e[t+15],10,-0x1d31920),u=l(u,d,r,c,e[t+6],15,-0x5cfebcec),c=l(c,u,d,r,e[t+13],21,0x4e0811a1),r=l(r,c,u,d,e[t+4],6,-0x8ac817e),d=l(d,r,c,u,e[t+11],10,-0x42c50dcb),u=l(u,d,r,c,e[t+2],15,0x2ad7d2bb),c=l(c,u,d,r,e[t+9],21,-0x14792c6f),r=i(r,n),c=i(c,f),u=i(u,h),d=i(d,p)}return[r,c,u,d]}(function(e){if(0===e.length)return[];let t=8*e.length,i=new Uint32Array(n(t));for(let n=0;n<t;n+=8)i[n>>5]|=(255&e[n/8])<<n%32;return i}(e),8*e.length))}},9225:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},6348:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},2356:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(129))&&i.__esModule?i:{default:i};t.default=function(e){let t;if(!(0,r.default)(e))throw TypeError("Invalid UUID");let n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,n[11]=t/0x100000000&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},996:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5975:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};let i=new Uint8Array(16)},8135:function(e,t){"use strict";function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],i=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let r=Math.ceil((e.length/4+2)/16),s=Array(r);for(let t=0;t<r;++t){let n=new Uint32Array(16);for(let i=0;i<16;++i)n[i]=e[64*t+4*i]<<24|e[64*t+4*i+1]<<16|e[64*t+4*i+2]<<8|e[64*t+4*i+3];s[t]=n}s[r-1][14]=(e.length-1)*8/0x100000000,s[r-1][14]=Math.floor(s[r-1][14]),s[r-1][15]=(e.length-1)*8|0;for(let e=0;e<r;++e){let r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=s[e][t];for(let e=16;e<80;++e)r[e]=n(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=i[0],a=i[1],l=i[2],c=i[3],u=i[4];for(let e=0;e<80;++e){let i=Math.floor(e/20),s=n(o,5)+function(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}(i,a,l,c)+u+t[i]+r[e]>>>0;u=c,c=l,l=n(a,30)>>>0,a=o,o=s}i[0]=i[0]+o>>>0,i[1]=i[1]+a>>>0,i[2]=i[2]+l>>>0,i[3]=i[3]+c>>>0,i[4]=i[4]+u>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},2298:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var i,r=(i=n(129))&&i.__esModule?i:{default:i};let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function o(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}t.default=function(e,t=0){let n=o(e,t);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},8610:function(e,t,n){"use strict";let i,r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,o=(s=n(5975))&&s.__esModule?s:{default:s},a=n(2298);let l=0,c=0;t.default=function(e,t,n){let s=t&&n||0,u=t||Array(16),d=(e=e||{}).node||i,f=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==f){let t=e.random||(e.rng||o.default)();null==d&&(d=i=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=r=(t[6]<<8|t[7])&16383)}let h=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1,m=h-l+(p-c)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||h>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,c=p,r=f;let g=((0xfffffff&(h+=122192928e5))*1e4+p)%0x100000000;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;let v=h/0x100000000*1e4&0xfffffff;u[s++]=v>>>8&255,u[s++]=255&v,u[s++]=v>>>24&15|16,u[s++]=v>>>16&255,u[s++]=f>>>8|128,u[s++]=255&f;for(let e=0;e<6;++e)u[s+e]=d[e];return t||(0,a.unsafeStringify)(u)}},3208:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(1525)),r=s(n(882));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)("v3",48,r.default)},1525:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function i(e,i,o,a){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=(0,s.default)(i)),(null==(l=i)?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(i),c.set(e,i.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,o){a=a||0;for(let e=0;e<16;++e)o[a+e]=c[e];return o}return(0,r.unsafeStringify)(c)}try{i.name=e}catch(e){}return i.DNS=o,i.URL=a,i};var i,r=n(2298),s=(i=n(2356))&&i.__esModule?i:{default:i};let o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=o;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},4061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(9225)),r=o(n(5975)),s=n(2298);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(i.default.randomUUID&&!t&&!e)return i.default.randomUUID();let o=(e=e||{}).random||(e.rng||r.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return(0,s.unsafeStringify)(o)}},3358:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(1525)),r=s(n(8135));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)("v5",80,r.default)},129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(996))&&i.__esModule?i:{default:i};t.default=function(e){return"string"==typeof e&&r.default.test(e)}},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(129))&&i.__esModule?i:{default:i};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},428:function(e){"use strict";e.exports=window.jQuery},7567:function(e,t,n){"use strict";n.d(t,{v4:function(){return r}});var i=n(2107);i.v1,i.v3;let r=i.v4;i.v5,i.wD,i.rE,i.tf,i.As,i.qg}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}
1n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";let e,t,i;n.d({},{q:function(){return h9}});var r,s,o,a,l,c,u,d,f,h,p,m,g,v,_,y,b,w,E,S,A,T,C,I,O,L,N,P,k,x,R,M,D,U,B,F,V,H,j,G={};n.r(G),n.d(G,{afterMain:function(){return ec},afterRead:function(){return eo},afterWrite:function(){return ef},applyStyles:function(){return ey},arrow:function(){return eF},auto:function(){return W},basePlacements:function(){return Y},beforeMain:function(){return ea},beforeRead:function(){return er},beforeWrite:function(){return eu},bottom:function(){return $},clippingParents:function(){return Q},computeStyles:function(){return eG},createPopper:function(){return ts},createPopperBase:function(){return tr},createPopperLite:function(){return to},detectOverflow:function(){return e3},end:function(){return J},eventListeners:function(){return e$},flip:function(){return e6},hide:function(){return e8},left:function(){return K},main:function(){return el},modifierPhases:function(){return eh},offset:function(){return e9},placements:function(){return ei},popper:function(){return ee},popperGenerator:function(){return ti},popperOffsets:function(){return e7},preventOverflow:function(){return te},read:function(){return es},reference:function(){return et},right:function(){return z},start:function(){return X},top:function(){return q},variationPlacements:function(){return en},viewport:function(){return Z},write:function(){return ed}});var q="top",$="bottom",z="right",K="left",W="auto",Y=[q,$,z,K],X="start",J="end",Q="clippingParents",Z="viewport",ee="popper",et="reference",en=Y.reduce(function(e,t){return e.concat([t+"-"+X,t+"-"+J])},[]),ei=[].concat(Y,[W]).reduce(function(e,t){return e.concat([t,t+"-"+X,t+"-"+J])},[]),er="beforeRead",es="read",eo="afterRead",ea="beforeMain",el="main",ec="afterMain",eu="beforeWrite",ed="write",ef="afterWrite",eh=[er,es,eo,ea,el,ec,eu,ed,ef];function ep(e){return e?(e.nodeName||"").toLowerCase():null}function em(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eg(e){var t=em(e).Element;return e instanceof t||e instanceof Element}function ev(e){var t=em(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function e_(e){if("u"<typeof ShadowRoot)return!1;var t=em(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ey={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];
vendor: 14,783 bytes, line 1
1ev(r)&&ep(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ev(i)&&ep(i)&&(Object.assign(i.style,s),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function eb(e){return e.split("-")[0]}var ew=Math.max,eE=Math.min,eS=Math.round;function eA(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function eT(){return!/^((?!chrome|android).)*safari/i.test(eA())}function eC(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&ev(e)&&(r=e.offsetWidth>0&&eS(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&eS(i.height)/e.offsetHeight||1);var o=(eg(e)?em(e):window).visualViewport,a=!eT()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/r,c=(i.top+(a&&o?o.offsetTop:0))/s,u=i.width/r,d=i.height/s;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function eI(e){var t=eC(e),n=e.offsetWidth,i=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-i)&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function eO(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&e_(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function eL(e){return em(e).getComputedStyle(e)}function eN(e){return((eg(e)?e.ownerDocument:e.document)||window.document).documentElement}function eP(e){return"html"===ep(e)?e:e.assignedSlot||e.parentNode||(e_(e)?e.host:null)||eN(e)}function ek(e){return ev(e)&&"fixed"!==eL(e).position?e.offsetParent:null}function ex(e){for(var t=em(e),n=ek(e);n&&["table","td","th"].indexOf(ep(n))>=0&&"static"===eL(n).position;)n=ek(n);return n&&("html"===ep(n)||"body"===ep(n)&&"static"===eL(n).position)?t:n||function(e){var t=/firefox/i.test(eA());if(/Trident/i.test(eA())&&ev(e)&&"fixed"===eL(e).position)return null;var n=eP(e);for(e_(n)&&(n=n.host);ev(n)&&0>["html","body"].indexOf(ep(n));){var i=eL(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function eR(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function eM(e,t,n){return ew(e,eE(t,n))}function eD(){return{top:0,right:0,bottom:0,left:0}}function eU(e){return Object.assign({},eD(),e)}function eB(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var eF={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=eb(n.placement),l=eR(a),c=[K,z].indexOf(a)>=0?"height":"width";if(s&&o){var u,d=(u=r.padding,eU("number"!=typeof(u="function"==typeof u?u(Object.assign({},n.rects,{placement:n.placement})):u)?u:eB(u,Y))),f=eI(s),h="y"===l?q:K,p="y"===l?$:z,m=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],v=ex(s),_=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=d[h],b=_-f[c]-d[p],w=_/2-f[c]/2+(m/2-g/2),E=eM(y,w,b);n.modifiersData[i]=((t={})[l]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null==i||("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&eO(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function eV(e){return e.split("-")[1]}var eH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ej(e){var t,n,i,r,s,o,a,l=e.popper,c=e.popperRect,u=e.placement,d=e.variation,f=e.offsets,h=e.position,p=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,v=e.isFixed,_=f.x,y=void 0===_?0:_,b=f.y,w=void 0===b?0:b,E="function"==typeof g?g({x:y,y:w}):{x:y,y:w};y=E.x,w=E.y;var S=f.hasOwnProperty("x"),A=f.hasOwnProperty("y"),T=K,C=q,I=window;if(m){var O=ex(l),L="clientHeight",N="clientWidth";O===em(l)&&"static"!==eL(O=eN(l)).position&&"absolute"===h&&(L="scrollHeight",N="scrollWidth"),(u===q||(u===K||u===z)&&d===J)&&(C=$,w-=(v&&O===I&&I.visualViewport?I.visualViewport.height:O[L])-c.height,w*=p?1:-1),(u===K||(u===q||u===$)&&d===J)&&(T=z,y-=(v&&O===I&&I.visualViewport?I.visualViewport.width:O[N])-c.width,y*=p?1:-1)}var P=Object.assign({position:h},m&&eH),k=!0===g?(t={x:y,y:w},n=em(l),i=t.x,r=t.y,{x:eS(i*(s=n.devicePixelRatio||1))/s||0,y:eS(r*s)/s||0}):{x:y,y:w};return(y=k.x,w=k.y,p)?Object.assign({},P,((a={})[C]=A?"0":"",a[T]=S?"0":"",a.transform=1>=(I.devicePixelRatio||1)?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",a)):Object.assign({},P,((o={})[C]=A?w+"px":"",o[T]=S?y+"px":"",o.transform="",o))}var eG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=n.adaptive,s=n.roundOffsets,o=void 0===s||s,a={placement:eb(t.placement),variation:eV(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===i||i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ej(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ej(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},eq={passive:!0},e$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,s=void 0===r||r,o=i.resize,a=void 0===o||o,l=em(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",n.update,eq)}),a&&l.addEventListener("resize",n.update,eq),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",n.update,eq)}),a&&l.removeEventListener("resize",n.update,eq)}},data:{}},ez={left:"right",right:"left",bottom:"top",top:"bottom"};function eK(e){return e.replace(/left|right|bottom|top/g,function(e){return ez[e]})}var eW={start:"end",end:"start"};function eY(e){return e.replace(/start|end/g,function(e){return eW[e]})}function eX(e){var t=em(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function eJ(e){return eC(eN(e)).left+eX(e).scrollLeft}function eQ(e){var t=eL(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function eZ(e,t){void 0===t&&(t=[]);var n,i=function e(t){return["html","body","#document"].indexOf(ep(t))>=0?t.ownerDocument.body:ev(t)&&eQ(t)?t:e(eP(t))}(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),s=em(i),o=r?[s].concat(s.visualViewport||[],eQ(i)?i:[]):i,a=t.concat(o);return r?a:a.concat(eZ(eP(o)))}function e0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function e1(e,t,n){var i,r,s,o,a,l,c,u,d,f;return t===Z?e0(function(e,t){var n=em(e),i=eN(e),r=n.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var c=eT();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+eJ(e),y:l}}(e,n)):eg(t)?((i=eC(t,!1,"fixed"===n)).top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i):e0((r=eN(e),o=eN(r),a=eX(r),l=null==(s=r.ownerDocument)?void 0:s.body,c=ew(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=ew(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+eJ(r),f=-a.scrollTop,"rtl"===eL(l||o).direction&&(d+=ew(o.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:d,y:f}))}function e2(e){var t,n=e.reference,i=e.element,r=e.placement,s=r?eb(r):null,o=r?eV(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case q:t={x:a,y:n.y-i.height};break;case $:t={x:a,y:n.y+n.height};break;case z:t={x:n.x+n.width,y:l};break;case K:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?eR(s):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case X:t[c]=t[c]-(n[u]/2-i[u]/2);break;case J:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function e3(e,t){void 0===t&&(t={});var n,i,r,s,o,a,l,c,u=t,d=u.placement,f=void 0===d?e.placement:d,h=u.strategy,p=void 0===h?e.strategy:h,m=u.boundary,g=u.rootBoundary,v=u.elementContext,_=void 0===v?ee:v,y=u.altBoundary,b=u.padding,w=void 0===b?0:b,E=eU("number"!=typeof w?w:eB(w,Y)),S=e.rects.popper,A=e.elements[void 0!==y&&y?_===ee?et:ee:_],T=(n=eg(A)?A:A.contextElement||eN(e.elements.popper),i=void 0===m?Q:m,r=void 0===g?Z:g,l=(a=[].concat("clippingParents"===i?(s=eZ(eP(n)),!eg(o=["absolute","fixed"].indexOf(eL(n).position)>=0&&ev(n)?ex(n):n)?[]:s.filter(function(e){return eg(e)&&eO(e,o)&&"body"!==ep(e)})):[].concat(i),[r]))[0],(c=a.reduce(function(e,t){var i=e1(n,t,p);return e.top=ew(i.top,e.top),e.right=eE(i.right,e.right),e.bottom=eE(i.bottom,e.bottom),e.left=ew(i.left,e.left),e},e1(n,l,p))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),C=eC(e.elements.reference),I=e2({reference:C,element:S,strategy:"absolute",placement:f}),O=e0(Object.assign({},S,I)),L=_===ee?O:C,N={top:T.top-L.top+E.top,bottom:L.bottom-T.bottom+E.bottom,left:T.left-L.left+E.left,right:L.right-T.right+E.right},P=e.modifiersData.offset;if(_===ee&&P){var k=P[f];Object.keys(N).forEach(function(e){var t=[z,$].indexOf(e)>=0?1:-1,n=[q,$].indexOf(e)>=0?"y":"x";N[e]+=k[n]*t})}return N}var e6={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=void 0===r||r,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=eb(g)===g,_=l||(v||!p?[eK(g)]:function(e){if(eb(e)===W)return[];var t=eK(e);return[eY(e),t,eY(t)]}(g)),y=[g].concat(_).reduce(function(e,n){var i,r,s,o,a,l,f,h,g,v,_,y;return e.concat(eb(n)===W?(r=(i={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}).placement,s=i.boundary,o=i.rootBoundary,a=i.padding,l=i.flipVariations,h=void 0===(f=i.allowedAutoPlacements)?ei:f,0===(_=(v=(g=eV(r))?l?en:en.filter(function(e){return eV(e)===g}):Y).filter(function(e){return h.indexOf(e)>=0})).length&&(_=v),Object.keys(y=_.reduce(function(e,n){return e[n]=e3(t,{placement:n,boundary:s,rootBoundary:o,padding:a})[eb(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),b=t.rects.reference,w=t.rects.popper,E=new Map,S=!0,A=y[0],T=0;T<y.length;T++){var C=y[T],I=eb(C),O=eV(C)===X,L=[q,$].indexOf(I)>=0,N=L?"width":"height",P=e3(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),k=L?O?z:K:O?$:q;b[N]>w[N]&&(k=eK(k));var x=eK(k),R=[];if(s&&R.push(P[I]<=0),a&&R.push(P[k]<=0,P[x]<=0),R.every(function(e){return e})){A=C,S=!1;break}E.set(C,R)}if(S)for(var M=p?3:1,D=function(e){var t=y.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},U=M;U>0&&"break"!==D(U);U--);t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function e5(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function e4(e){return[q,z,$,K].some(function(t){return e[t]>=0})}var e8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=e3(t,{elementContext:"reference"}),a=e3(t,{altBoundary:!0}),l=e5(o,i),c=e5(a,r,s),u=e4(l),d=e4(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},e9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=void 0===r?[0,0]:r,o=ei.reduce(function(e,n){var i,r,o,a,l,c;return e[n]=(i=t.rects,o=[K,q].indexOf(r=eb(n))>=0?-1:1,l=(a="function"==typeof s?s(Object.assign({},i,{placement:n})):s)[0],c=a[1],l=l||0,c=(c||0)*o,[K,z].indexOf(r)>=0?{x:c,y:l}:{x:l,y:c}),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},e7={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=e2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},te={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=n.altAxis,o=n.boundary,a=n.rootBoundary,l=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,f=n.tetherOffset,h=void 0===f?0:f,p=e3(t,{boundary:o,rootBoundary:a,padding:c,altBoundary:l}),m=eb(t.placement),g=eV(t.placement),v=!g,_=eR(m),y="x"===_?"y":"x",b=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,A="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(b){if(void 0===r||r){var I,O="y"===_?q:K,L="y"===_?$:z,N="y"===_?"height":"width",P=b[_],k=P+p[O],x=P-p[L],R=d?-E[N]/2:0,M=g===X?w[N]:E[N],D=g===X?-E[N]:-w[N],U=t.elements.arrow,B=d&&U?eI(U):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eD(),V=F[O],H=F[L],j=eM(0,w[N],B[N]),G=v?w[N]/2-R-j-V-A.mainAxis:M-j-V-A.mainAxis,W=v?-w[N]/2+R+j+H+A.mainAxis:D+j+H+A.mainAxis,Y=t.elements.arrow&&ex(t.elements.arrow),J=Y?"y"===_?Y.clientTop||0:Y.clientLeft||0:0,Q=null!=(I=null==T?void 0:T[_])?I:0,Z=eM(d?eE(k,P+G-Q-J):k,P,d?ew(x,P+W-Q):x);b[_]=Z,C[_]=Z-P}if(void 0!==s&&s){var ee,et,en="x"===_?q:K,ei="x"===_?$:z,er=b[y],es="y"===y?"height":"width",eo=er+p[en],ea=er
1-p[ei],el=-1!==[q,K].indexOf(m),ec=null!=(et=null==T?void 0:T[y])?et:0,eu=el?eo:er-w[es]-E[es]-ec+A.altAxis,ed=el?er+w[es]+E[es]-ec-A.altAxis:ea,ef=d&&el?(ee=eM(eu,er,ed))>ed?ed:ee:eM(d?eu:eo,er,d?ed:ea);b[y]=ef,C[y]=ef-er}t.modifiersData[i]=C}},requiresIfExists:["offset"]},tt={placement:"bottom",modifiers:[],strategy:"absolute"};function tn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function ti(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,s=void 0===r?tt:r;return function(e,t,n){void 0===n&&(n=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},tt,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var r,o,c,f,h,p,m="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},s,a.options,m),a.scrollParents={reference:eg(e)?eZ(e):e.contextElement?eZ(e.contextElement):[],popper:eZ(t)};var g=(o=Object.keys(r=[].concat(i,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),c=new Map,f=new Set,h=[],o.forEach(function(e){c.set(e.name,e)}),o.forEach(function(e){f.has(e.name)||function e(t){f.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!f.has(t)){var n=c.get(t);n&&e(n)}}),h.push(t)}(e)}),p=h,eh.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=g.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=e.effect;if("function"==typeof i){var r=i({state:a,name:t,instance:u,options:void 0===n?{}:n});l.push(r||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(tn(t,n)){a.rects={reference:(i=ex(n),r="fixed"===a.options.strategy,s=ev(i),f=ev(i)&&(l=eS((o=i.getBoundingClientRect()).width)/i.offsetWidth||1,d=eS(o.height)/i.offsetHeight||1,1!==l||1!==d),h=eN(i),p=eC(t,f,r),m={scrollLeft:0,scrollTop:0},g={x:0,y:0},(s||!s&&!r)&&(("body"!==ep(i)||eQ(h))&&(m=function(e){return e!==em(e)&&ev(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:eX(e)}(i)),ev(i)?(g=eC(i,!0),g.x+=i.clientLeft,g.y+=i.clientTop):h&&(g.x=eJ(h))),{x:p.left+m.scrollLeft-g.x,y:p.top+m.scrollTop-g.y,width:p.width,height:p.height}),popper:eI(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i,r,s,o,l,d,f,h,p,m,g,v=0;v<a.orderedModifiers.length;v++){if(!0===a.reset){a.reset=!1,v=-1;continue}var _=a.orderedModifiers[v],y=_.fn,b=_.options,w=void 0===b?{}:b,E=_.name;"function"==typeof y&&(a=y({state:a,options:w,name:E,instance:u})||a)}}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(r())})})),o}),destroy:function(){d(),c=!0}};if(!tn(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var tr=ti(),ts=ti({defaultModifiers:[e$,e7,eG,ey,e9,e6,te,eF,e8]}),to=ti({defaultModifiers:[e$,e7,eG,ey]}),ta=n(428);let tl=new Map,tc={set(e,t,n){tl.has(e)||tl.set(e,new Map);let i=tl.get(e);(i.has(t)||0===i.size)&&i.set(t,n)},get(e,t){return tl.has(e)&&tl.get(e).get(t)||null},remove(e,t){if(!tl.has(e))return;let n=tl.get(e);n.delete(t),0===n.size&&tl.delete(e)}},tu="transitionend",td=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),tf=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),th=e=>{e.dispatchEvent(new Event(tu))},tp=e=>!!e&&"object"==typeof e&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),tm=e=>tp(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(td(e)):null,tg=e=>{if(!tp(e)||0===e.getClientRects().length)return!1;let t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){let t=e.closest("summary");if(t&&t.parentNode!==n||null===t)return!1}return t},tv=e=>!!(!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled"))||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),t_=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?t_(e.parentNode):null},ty=()=>{},tb=e=>{e.offsetHeight},tw=()=>ta&&!document.body.hasAttribute("data-bs-no-jquery")?ta:null,tE=[],tS=e=>{var t;t=()=>{let t=tw();if(t){let n=e.NAME,i=t.fn[n];
1t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(tE.length||document.addEventListener("DOMContentLoaded",()=>{for(let e of tE)e()}),tE.push(t)):t()},tA=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,tT=(e,t,n=!0)=>{if(!n)return void tA(e);let i=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e),i=Number.parseFloat(t),r=Number.parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*1e3):0})(t)+5,r=!1,s=({target:n})=>{n===t&&(r=!0,t.removeEventListener(tu,s),tA(e))};t.addEventListener(tu,s),setTimeout(()=>{r||th(t)},i)},tC=(e,t,n,i)=>{let r=e.length,s=e.indexOf(t);return -1===s?!n&&i?e[r-1]:e[0]:(s+=n?1:-1,i&&(s=(s+r)%r),e[Math.max(0,Math.min(s,r-1))])},tI=/[^.]*(?=\..*)\.|.*/,tO=/\..*/,tL=/::\d+$/,tN={},tP=1,tk={mouseenter:"mouseover",mouseleave:"mouseout"},tx=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function tR(e,t){return t&&`${t}::${tP++}`||e.uidEvent||tP++}function tM(e){let t=tR(e);return e.uidEvent=t,tN[t]=tN[t]||{},tN[t]}function tD(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function tU(e,t,n){let i="string"==typeof t,r=tV(e);return tx.has(r)||(r=e),[i,i?n:t||n,r]}function tB(e,t,n,i,r){var s,o;if("string"!=typeof t||!e)return;let[a,l,c]=tU(t,n,i);if(t in tk){let e;e=l,l=function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}}let u=tM(e),d=u[c]||(u[c]={}),f=tD(d,l,a?n:null);if(f){f.oneOff=f.oneOff&&r;return}let h=tR(l,t.replace(tI,"")),p=a?(s=l,function t(i){let r=e.querySelectorAll(n);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let a of r)if(a===o)return tj(i,{delegateTarget:o}),t.oneOff&&tH.off(e,i.type,n,s),s.apply(o,[i])}):(o=l,function t(n){return tj(n,{delegateTarget:e}),t.oneOff&&tH.off(e,n.type,o),o.apply(e,[n])});p.delegationSelector=a?n:null,p.callable=l,p.oneOff=r,p.uidEvent=h,d[h]=p,e.addEventListener(c,p,a)}function tF(e,t,n,i,r){let s=tD(t[n],i,r);s&&(e.removeEventListener(n,s,!!r),delete t[n][s.uidEvent])}function tV(e){return tk[e=e.replace(tO,"")]||e}let tH={on(e,t,n,i){tB(e,t,n,i,!1)},one(e,t,n,i){tB(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;let[r,s,o]=tU(t,n,i),a=o!==t,l=tM(e),c=l[o]||{},u=t.startsWith(".");if(void 0!==s){if(!Object.keys(c).length)return;tF(e,l,o,s,r?n:null);return}if(u)for(let n of Object.keys(l)){var d=t.slice(1);for(let[t,i]of Object.entries(l[n]||{}))t.includes(d)&&tF(e,l,n,i.callable,i.delegationSelector)}for(let[n,i]of Object.entries(c)){let r=n.replace(tL,"");(!a||t.includes(r))&&tF(e,l,o,i.callable,i.delegationSelector)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;let i=tw(),r=tV(t),s=null,o=!0,a=!0,l=!1;t!==r&&i&&(s=i.Event(t,n),i(e).trigger(s),o=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),l=s.isDefaultPrevented());let c=tj(new Event(t,{bubbles:o,cancelable:!0}),n);return l&&c.preventDefault(),a&&e.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function tj(e,t={}){for(let[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get(){return i}})}return e}function tG(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function tq(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}let t$={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${tq(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${tq(t)}`)},getDataAttributes(e){if(!e)return{};let t={};for(let n of Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let i=n.replace(/^bs/,"");t[i=i.charAt(0).toLowerCase()+i.slice(1)]=tG(e.dataset[n])}return t},getDataAttribute(e,t){return tG(e.getAttribute(`data-bs-${tq(t)}`))}};class tz{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=tp(t)?t$.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...tp(t)?t$.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,i]of Object.entries(t)){let t=e[n],r=tp(t)?"element":tf(t);if(!new RegExp(i).test(r))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${i}".`)}}}class tK extends tz{constructor(e,t){if(super(),!(e=tm(e)))return;this._element=e,this._config=this._getConfig(t),tc.set(this._element,this.constructor.DATA_KEY,this)}dispose(){for(let e of(tc.remove(this._element,this.constructor.DATA_KEY),tH.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this)))this[e]=null}_queueCallback(e,t,n=!0){tT(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return tc.get(tm(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}let tW=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map(e=>td(e)).join(","):null},tY={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!tv(e)&&tg(e))},getSelectorFromElement(e){let t=tW(e);return t&&tY.findOne(t)?t:null},getElementFromSelector(e){let t=tW(e);return t?tY.findOne(t):null},getMultipleElementsFromSelector(e){let t=tW(e);return t?tY.find(t):[]}},tX=(e,t="hide")=>{let n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;tH.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),tv(this))return;let r=tY.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(r)[t]()})},tJ=".bs.alert",tQ=`close${tJ}`,tZ=`closed${tJ}`;class t0 extends tK{static get NAME(){return"alert"}close(){if(tH.trigger(this._element,tQ).defaultPrevented)return;this._element.classList.remove("show");let e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),tH.trigger(this._element,tZ),this.dispose()}static jQueryInterface(e){return this.each(function(){let t=t0.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method n
1amed "${e}"`);t[e](this)}})}}tX(t0,"close"),tS(t0);let t1='[data-bs-toggle="button"]',t2="click.bs.button.data-api";class t3 extends tK{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){let t=t3.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}tH.on(document,t2,t1,e=>{e.preventDefault();let t=e.target.closest(t1);t3.getOrCreateInstance(t).toggle()}),tS(t3);let t6=".bs.swipe",t5=`touchstart${t6}`,t4=`touchmove${t6}`,t8=`touchend${t6}`,t9=`pointerdown${t6}`,t7=`pointerup${t6}`,ne={endCallback:null,leftCallback:null,rightCallback:null},nt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class nn extends tz{constructor(e,t){if(super(),this._element=e,!e||!nn.isSupported())return;this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents()}static get Default(){return ne}static get DefaultType(){return nt}static get NAME(){return"swipe"}dispose(){tH.off(this._element,t6)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),tA(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=40)return;let t=e/this._deltaX;this._deltaX=0,t&&tA(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(tH.on(this._element,t9,e=>this._start(e)),tH.on(this._element,t7,e=>this._end(e)),this._element.classList.add("pointer-event")):(tH.on(this._element,t5,e=>this._start(e)),tH.on(this._element,t4,e=>this._move(e)),tH.on(this._element,t8,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}let ni=".bs.carousel",nr=".data-api",ns="next",no="prev",na="left",nl="right",nc=`slide${ni}`,nu=`slid${ni}`,nd=`keydown${ni}`,nf=`mouseenter${ni}`,nh=`mouseleave${ni}`,np=`dragstart${ni}`,nm=`load${ni}${nr}`,ng=`click${ni}${nr}`,nv="carousel",n_="active",ny=".active",nb=".carousel-item",nw=ny+nb,nE={ArrowLeft:nl,ArrowRight:na},nS={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},nA={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class nT extends tK{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=tY.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===nv&&this.cycle()}static get Default(){return nS}static get DefaultType(){return nA}static get NAME(){return"carousel"}next(){this._slide(ns)}nextWhenVisible(){!document.hidden&&tg(this._element)&&this.next()}prev(){this._slide(no)}pause(){this._isSliding&&th(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding)return void tH.one(this._element,nu,()=>this.cycle());this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void tH.one(this._element,nu,()=>this.to(e));let n=this._getItemIndex(this._getActive());n===e||this._slide(e>n?ns:no,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&tH.on(this._element,nd,e=>this._keydown(e)),"hover"===this._config.pause&&(tH.on(this._element,nf,()=>this.pause()),tH.on(this._element,nh,()=>this._maybeEnableCycle())),this._config.touch&&nn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of tY.find(".carousel-item img",this._element))tH.on(e,np,e=>e.preventDefault());let e=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))};this._swipeHelper=new nn(this._element,{leftCallback:()=>this._slide(this._directionToOrder(na)),rightCallback:()=>this._slide(this._directionToOrder(nl)),endCallback:e})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=nE[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=tY.findOne(ny,this._indicatorsElement);t.classList.remove(n_),t.removeAttribute("aria-current");let n=tY.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(n_),n.setAttribute("aria-current","true"))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),i=e===ns,r=t||tC(this._getItems(),n,i,this._config.wrap);if(r===n)return;let s=this._getItemIndex(r),o=t=>tH.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(o(nc).defaultPrevented||!n||!r)return;let a=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=r;let l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";r.classList.add(c),tb(r),n.classList.add(l),r.classList.add(l);let u=()=>{r.classList.remove(l,c),r.classList.add(n_),n.classList.remove(n_,c,l),this._isSliding=!1,o(nu)};this._queueCallback(u,n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return tY.findOne(nw,this._element)}_getItems(){return tY.find(nb,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return"rtl"===document.documentElement.dir?e===na?no:ns:e===na?ns:no}_orderToDirection(e){return"rtl"===document.documentElement.dir?e===no?na:nl:e===no?nl:na}static jQueryInterface(e){return this.each(function(){let t=nT.getOrCreateInstance(this,e);if("number"==typeof e)return void t.to(e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method n
1amed "${e}"`);t[e]()}})}}tH.on(document,ng,"[data-bs-slide], [data-bs-slide-to]",function(e){let t=tY.getElementFromSelector(this);if(!t||!t.classList.contains(nv))return;e.preventDefault();let n=nT.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){n.to(i),n._maybeEnableCycle();return}if("next"===t$.getDataAttribute(this,"slide")){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),tH.on(window,nm,()=>{for(let e of tY.find('[data-bs-ride="carousel"]'))nT.getOrCreateInstance(e)}),tS(nT);let nC=".bs.collapse",nI=`show${nC}`,nO=`shown${nC}`,nL=`hide${nC}`,nN=`hidden${nC}`,nP=`click${nC}.data-api`,nk="show",nx="collapse",nR="collapsing",nM=`:scope .${nx} .${nx}`,nD='[data-bs-toggle="collapse"]',nU={parent:null,toggle:!0},nB={parent:"(null|element)",toggle:"boolean"};class nF extends tK{constructor(e,t){for(const n of(super(e,t),this._isTransitioning=!1,this._triggerArray=[],tY.find(nD))){const e=tY.getSelectorFromElement(n),t=tY.find(e).filter(e=>e===this._element);null!==e&&t.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return nU}static get DefaultType(){return nB}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];
1if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>nF.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning||tH.trigger(this._element,nI).defaultPrevented)return;for(let t of e)t.hide();let t=this._getDimension();this._element.classList.remove(nx),this._element.classList.add(nR),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(nR),this._element.classList.add(nx,nk),this._element.style[t]="",tH.trigger(this._element,nO)},i=t[0].toUpperCase()+t.slice(1),r=`scroll${i}`;this._queueCallback(n,this._element,!0),this._element.style[t]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||tH.trigger(this._element,nL).defaultPrevented)return;let e=this._getDimension();for(let t of(this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,tb(this._element),this._element.classList.add(nR),this._element.classList.remove(nx,nk),this._triggerArray)){let e=tY.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(nR),this._element.classList.add(nx),tH.trigger(this._element,nN)};this._element.style[e]="",this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(nk)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=tm(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(let e of this._getFirstLevelChildren(nD)){let t=tY.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(e){let t=tY.find(nM,this._config.parent);return tY.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){let t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){let n=nF.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw TypeError(`No method named "${e}"`);n[e]()}})}}tH.on(document,nP,nD,function(e){for(let t of(("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault(),tY.getMultipleElementsFromSelector(this)))nF.getOrCreateInstance(t,{toggle:!1}).toggle()}),tS(nF);let nV="dropdown",nH=".bs.dropdown",nj=".data-api",nG="ArrowDown",nq=`hide${nH}`,n$=`hidden${nH}`,nz=`show${nH}`,nK=`shown${nH}`,nW=`click${nH}${nj}`,nY=`keydown${nH}${nj}`,nX=`keyup${nH}${nj}`,nJ="show",nQ='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',nZ=`${nQ}.${nJ}`,n0=".dropdown-menu",n1="rtl"===document.documentElement.dir?"top-end":"top-start",n2="rtl"===document.documentElement.dir?"top-start":"top-end",n3="rtl"===document.documentElement.dir?"bottom-end":"bottom-start",n6="rtl"===document.documentElement.dir?"bottom-start":"bottom-end",n5="rtl"===document.documentElement.dir?"left-start":"right-start",n4="rtl"===document.documentElement.dir?"right-start":"left-start",n8={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},n9={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class n7 extends tK{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=tY.next(this._element,n0)[0]||tY.prev(this._element,n0)[0]||tY.findOne(n0,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return n8}static get DefaultType(){return n9}static get NAME(){return nV}toggle(){return this._isShown()?this.hide():this.show()}show(){if(tv(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!tH.trigger(this._element,nz,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
1navbar-nav"))for(let e of[].concat(...document.body.children))tH.on(e,"mouseover",ty);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(nJ),this._element.classList.add(nJ),tH.trigger(this._element,nK,e)}}hide(){if(tv(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!tH.trigger(this._element,nq,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))tH.off(e,"mouseover",ty);this._popper&&this._popper.destroy(),this._menu.classList.remove(nJ),this._element.classList.remove(nJ),this._element.setAttribute("aria-expanded","false"),t$.removeDataAttribute(this._menu,"popper"),tH.trigger(this._element,n$,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!tp(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw TypeError(`${nV.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===G)throw TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:tp(this._config.reference)?e=tm(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=ts(e,this._menu,t)}_isShown(){return this._menu.classList.contains(nJ)}_getPlacement(){let e=this._parent;if(e.classList.contains("dropend"))return n5;if(e.classList.contains("dropstart"))return n4;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";let t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?n2:n1:t?n6:n3}
1_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){let{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(t$.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...tA(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=tY.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>tg(e));n.length&&tC(n,t,e===nG,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){let t=n7.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(let t of tY.find(nZ)){let n=n7.getInstance(t);if(!n||!1===n._config.autoClose)continue;let i=e.composedPath(),r=i.includes(n._menu);if(i.includes(n._element)||"inside"===n._config.autoClose&&!r||"outside"===n._config.autoClose&&r||n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;let s={relatedTarget:n._element};"click"===e.type&&(s.clickEvent=e),n._completeHide(s)}}static dataApiKeydownHandler(e){let t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=["ArrowUp",nG].includes(e.key);if(!i&&!n||t&&!n)return;e.preventDefault();let r=this.matches(nQ)?this:tY.prev(this,nQ)[0]||tY.next(this,nQ)[0]||tY.findOne(nQ,e.delegateTarget.parentNode),s=n7.getOrCreateInstance(r);if(i){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),r.focus())}}tH.on(document,nY,nQ,n7.dataApiKeydownHandler),tH.on(document,nY,n0,n7.dataApiKeydownHandler),tH.on(document,nW,n7.clearMenus),tH.on(document,nX,n7.clearMenus),tH.on(document,nW,nQ,function(e){e.preventDefault(),n7.getOrCreateInstance(this).toggle()}),tS(n7);let ie="backdrop",it="show",ii=`mousedown.bs.${ie}`,ir={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},is={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class io extends tz{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return ir}static get DefaultType(){return is}static get NAME(){return ie}show(e){if(!this._config.isVisible)return void tA(e);this._append();let t=this._getElement();this._config.isAnimated&&tb(t),t.classList.add(it),this._emulateAnimation(()=>{tA(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(it),this._emulateAnimation(()=>{this.dispose(),tA(e)})):tA(e)}dispose(){this._isAppended&&(tH.off(this._element,ii),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=tm(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),tH.on(e,ii,()=>{tA(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){tT(e,this._getElement(),this._config.isAnimated)}}let ia=".bs.focustrap",il=`focusin${ia}`,ic=`keydown.tab${ia}`,iu="backward",id={autofocus:!0,trapElement:null},ih={autofocus:"boolean",trapElement:"element"};class ip extends tz{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return id}static get DefaultType(){return ih}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),tH.off(document,ia),tH.on(document,il,e=>this._handleFocusin(e)),tH.on(document,ic,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,tH.off(document,ia))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=tY.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===iu?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?iu:"forward")}}let im=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ig=".sticky-top",iv="padding-right",i_="margin-right";class iy{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,iv,t=>t+e),this._setElementAttributes(im,iv,t=>t+e),this._setElementAttributes(ig,i_,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,iv),this._resetElementAttributes(im,iv),this._resetElementAttributes(ig,i_)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}
1_setElementAttributes(e,t,n){let i=this.getWidth(),r=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);let r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(r))}px`)};this._applyManipulationCallback(e,r)}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&t$.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=t$.getDataAttribute(e,t);null===n?e.style.removeProperty(t):(t$.removeDataAttribute(e,t),e.style.setProperty(t,n))})}_applyManipulationCallback(e,t){if(tp(e))return void t(e);for(let n of tY.find(e,this._element))t(n)}}let ib=".bs.modal",iw=`hide${ib}`,iE=`hidePrevented${ib}`,iS=`hidden${ib}`,iA=`show${ib}`,iT=`shown${ib}`,iC=`resize${ib}`,iI=`click.dismiss${ib}`,iO=`mousedown.dismiss${ib}`,iL=`keydown.dismiss${ib}`,iN=`click${ib}.data-api`,iP="modal-open",ik="show",ix="modal-static",iR={backdrop:!0,focus:!0,keyboard:!0},iM={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class iD extends tK{constructor(e,t){super(e,t),this._dialog=tY.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new iy,this._addEventListeners()}static get Default(){return iR}static get DefaultType(){return iM}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||tH.trigger(this._element,iA,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(iP),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||tH.trigger(this._element,iw).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ik),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){tH.off(window,ib),tH.off(this._dialog,ib),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new io({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ip({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let t=tY.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),tb(this._element),this._element.classList.add(ik);let n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,tH.trigger(this._element,iT,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){tH.on(this._element,iL,e=>{if("Escape"===e.key){if(this._config.keyboard)return void this.hide();this._triggerBackdropTransition()}}),tH.on(window,iC,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),tH.on(this._element,iO,e=>{tH.one(this._element,iI,t=>{if(this._element===e.target&&this._element===t.target){if("static"===this._config.backdrop)return void this._triggerBackdropTransition();this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(iP),this._resetAdjustments(),this._scrollBar.reset(),tH.trigger(this._element,iS)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(tH.trigger(this._element,iE).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ix)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ix),this._queueCallback(()=>{this._element.classList.remove(ix),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;
1if(n&&!e){let e="rtl"===document.documentElement.dir?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){let e="rtl"===document.documentElement.dir?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){let n=iD.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw TypeError(`No method named "${e}"`);n[e](t)}})}}tH.on(document,iN,'[data-bs-toggle="modal"]',function(e){let t=tY.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),tH.one(t,iA,e=>{e.defaultPrevented||tH.one(t,iS,()=>{tg(this)&&this.focus()})});let n=tY.findOne(".modal.show");n&&iD.getInstance(n).hide(),iD.getOrCreateInstance(t).toggle(this)}),tX(iD),tS(iD);let iU=".bs.offcanvas",iB=".data-api",iF=`load${iU}${iB}`,iV="show",iH="showing",ij="hiding",iG=".offcanvas.show",iq=`show${iU}`,i$=`shown${iU}`,iz=`hide${iU}`,iK=`hidePrevented${iU}`,iW=`hidden${iU}`,iY=`resize${iU}`,iX=`click${iU}${iB}`,iJ=`keydown.dismiss${iU}`,iQ={backdrop:!0,keyboard:!0,scroll:!1},iZ={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class i0 extends tK{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return iQ}static get DefaultType(){return iZ}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||tH.trigger(this._element,iq,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new iy().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(iH);let t=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(iV),this._element.classList.remove(iH),tH.trigger(this._element,i$,{relatedTarget:e})};this._queueCallback(t,this._element,!0)}hide(){if(!this._isShown||tH.trigger(this._element,iz).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ij),this._backdrop.hide();let e=()=>{this._element.classList.remove(iV,ij),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new iy().reset(),tH.trigger(this._element,iW)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{"static"===this._config.backdrop?tH.trigger(this._element,iK):this.hide()},t=!!this._config.backdrop;return new io({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new ip({trapElement:this._element})}_addEventListeners(){tH.on(this._element,iJ,e=>{if("Escape"===e.key){if(this._config.keyboard)return void this.hide();tH.trigger(this._element,iK)}})}static jQueryInterface(e){return this.each(function(){let t=i0.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method named "${e}"`);t[e](this)}})}}tH.on(document,iX,'[data-bs-toggle="offcanvas"]',function(e){let t=tY.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),tv(this))return;tH.one(t,iW,()=>{tg(this)&&this.focus()});let n=tY.findOne(iG);n&&n!==t&&i0.getInstance(n).hide(),i0.getOrCreateInstance(t).toggle(this)}),tH.on(window,iF,()=>{for(let e of tY.find(iG))i0.getOrCreateInstance(e).show()}),tH.on(window,iY,()=>{for(let e of tY.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&i0.getOrCreateInstance(e).hide()}),tX(i0),tS(i0);let i1={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},i2=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),i3=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,i6=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?!i2.has(n)||!!i3.test(e.nodeValue):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))},i5={allowList:i1,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},i4={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},i8={entry:"(string|element|function|null)",selector:"(string|element)"};class i9 extends tz{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return i5}static get DefaultType(){return i4}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>
1this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement("div");for(let[t,n]of(e.innerHTML=this._maybeSanitize(this._config.template),Object.entries(this._config.content)))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},i8)}_setContent(e,t,n){let i=tY.findOne(n,e);if(i){if(!(t=this._resolvePossibleFunction(t)))return void i.remove();if(tp(t))return void this._putElementInTemplate(tm(t),i);if(this._config.html){i.innerHTML=this._maybeSanitize(t);return}i.textContent=t}}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);let i=new window.DOMParser().parseFromString(e,"text/html");for(let e of[].concat(...i.body.querySelectorAll("*"))){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let i=[].concat(...e.attributes),r=[].concat(t["*"]||[],t[n]||[]);for(let t of i)i6(t,r)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return tA(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}let i7=new Set(["sanitize","allowList","sanitizeFn"]),re="fade",rt="show",rn=".modal",ri="hide.bs.modal",rr="hover",rs="focus",ro="click",ra={AUTO:"auto",TOP:"top",RIGHT:"rtl"===document.documentElement.dir?"left":"right",BOTTOM:"bottom",LEFT:"rtl"===document.documentElement.dir?"right":"left"},rl={allowList:i1,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},rc={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ru extends tK{constructor(e,t){if(void 0===G)throw TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return rl}static get DefaultType(){return rc}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown())return void this._leave();this._enter()}}dispose(){clearTimeout(this._timeout),tH.off(this._element.closest(rn),ri,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let e=tH.trigger(this._element,this.constructor.eventName("show")),t=(t_(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));
1let{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),tH.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(rt),"ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))tH.on(e,"mouseover",ty);let r=()=>{tH.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||tH.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(rt),"ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))tH.off(e,"mouseover",ty);this._activeTrigger[ro]=!1,this._activeTrigger[rs]=!1,this._activeTrigger[rr]=!1,this._isHovered=null;let e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),tH.trigger(this._element,this.constructor.eventName("hidden")))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(re,rt),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=(e=>{do e+=Math.floor(1e6*Math.random());while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(re),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new i9({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(re)}_isShown(){return this.tip&&this.tip.classList.contains(rt)}_createPopper(e){let t=ra[tA(this._config.placement,[this,e,this._element]).toUpperCase()];return ts(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return tA(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...tA(this._config.popperConfig,[void 0,t])}}_setListeners(){for(let e of this._config.trigger.split(" "))if("click"===e)tH.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[ro]=!(t._isShown()&&t._activeTrigger[ro]),t.toggle()});else if("manual"!==e){let t=e===rr?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===rr?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");tH.on(this._element,t,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?rs:rr]=!0,t._enter()}),tH.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?rs:rr]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},tH.on(this._element.closest(rn),ri,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=t$.getDataAttributes(this._element);for(let e of Object.keys(t))i7.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:tm(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){let t=ru.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method n
1amed "${e}"`);t[e]()}})}}tS(ru);let rd={...ru.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},rf={...ru.DefaultType,content:"(null|string|element|function)"};class rh extends ru{static get Default(){return rd}static get DefaultType(){return rf}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){let t=rh.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method named "${e}"`);t[e]()}})}}tS(rh);let rp=".bs.scrollspy",rm=`activate${rp}`,rg=`click${rp}`,rv=`load${rp}.data-api`,r_="active",ry="[href]",rb=".nav-link",rw=`${rb}, .nav-item > ${rb}, .list-group-item`,rE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},rS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class rA extends tK{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return rE}static get DefaultType(){return rS}static get NAME(){return"scrollspy"}refresh(){for(let e of(this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver(),this._observableSections.values()))this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=tm(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(tH.off(this._config.target,rg),tH.on(this._config.target,rg,ry,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){return new IntersectionObserver(e=>this._observerCallback(e),{root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin})}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;for(let s of(this._previousScrollData.parentScrollTop=i,e)){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}let e=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(n(s),!i)return;continue}r||e||n(s)}}_initializeTargetsAndObservables(){for(let e of(this._targetLinks=new Map,this._observableSections=new Map,tY.find(ry,this._config.target))){if(!e.hash||tv(e))continue;let t=tY.findOne(decodeURI(e.hash),this._element);tg(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(r_),this._activateParents(e),tH.trigger(this._element,rm,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))return void tY.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(r_);for(let t of tY.parents(e,".nav, .list-group"))for(let e of tY.prev(t,rw))e.classList.add(r_)}_clearActiveClass(e){for(let t of(e.classList.remove(r_),tY.find(`${ry}.${r_}`,e)))t.classList.remove(r_)}static jQueryInterface(e){return this.each(function(){let t=rA.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method n
1amed "${e}"`);t[e]()}})}}tH.on(window,rv,()=>{for(let e of tY.find('[data-bs-spy="scroll"]'))rA.getOrCreateInstance(e)}),tS(rA);let rT=".bs.tab",rC=`hide${rT}`,rI=`hidden${rT}`,rO=`show${rT}`,rL=`shown${rT}`,rN=`click${rT}`,rP=`keydown${rT}`,rk=`load${rT}`,rx="ArrowRight",rR="ArrowDown",rM="Home",rD="active",rU="fade",rB="show",rF=".dropdown-toggle",rV=`:not(${rF})`,rH=`.nav-link${rV}, .list-group-item${rV}, [role="tab"]${rV}`,rj='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',rG=`${rH}, ${rj}`,rq=`.${rD}[data-bs-toggle="tab"], .${rD}[data-bs-toggle="pill"], .${rD}[data-bs-toggle="list"]`;class r$ extends tK{constructor(e){if(super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),!this._parent)return;this._setInitialAttributes(this._parent,this._getChildren()),tH.on(this._element,rP,e=>this._keydown(e))}static get NAME(){return"tab"}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?tH.trigger(t,rC,{relatedTarget:e}):null;tH.trigger(e,rO,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(rD),this._activate(tY.getElementFromSelector(e));let n=()=>{"tab"!==e.getAttribute("role")?e.classList.add(rB):(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),tH.trigger(e,rL,{relatedTarget:t}))};this._queueCallback(n,e,e.classList.contains(rU))}_deactivate(e,t){if(!e)return;e.classList.remove(rD),e.blur(),this._deactivate(tY.getElementFromSelector(e));let n=()=>{"tab"!==e.getAttribute("role")?e.classList.remove(rB):(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),tH.trigger(e,rI,{relatedTarget:t}))};this._queueCallback(n,e,e.classList.contains(rU))}_keydown(e){let t;if(!["ArrowLeft",rx,"ArrowUp",rR,rM,"End"].includes(e.key))return;e.stopPropagation(),e.preventDefault();let n=this._getChildren().filter(e=>!tv(e));if([rM,"End"].includes(e.key))t=n[e.key===rM?0:n.length-1];else{let i=[rx,rR].includes(e.key);t=tC(n,e.target,i,!0)}t&&(t.focus({preventScroll:!0}),r$.getOrCreateInstance(t).show())}_getChildren(){return tY.find(rG,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){for(let n of(this._setAttributeIfNotExists(e,"role","tablist"),t))this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=tY.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;let i=(e,i)=>{let r=tY.findOne(e,n);r&&r.classList.toggle(i,t)};i(rF,rD),i(".dropdown-menu",rB),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(rD)}_getInnerElement(e){return e.matches(rG)?e:tY.findOne(rG,e)}
1_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){let t=r$.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw TypeError(`No method named "${e}"`);t[e]()}})}}tH.on(document,rN,rj,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),tv(this)||r$.getOrCreateInstance(this).show()}),tH.on(window,rk,()=>{for(let e of tY.find(rq))r$.getOrCreateInstance(e)}),tS(r$);let rz=".bs.toast",rK=`mouseover${rz}`,rW=`mouseout${rz}`,rY=`focusin${rz}`,rX=`focusout${rz}`,rJ=`hide${rz}`,rQ=`hidden${rz}`,rZ=`show${rz}`,r0=`shown${rz}`,r1="hide",r2="show",r3="showing",r6={animation:"boolean",autohide:"boolean",delay:"number"},r5={animation:!0,autohide:!0,delay:5e3};class r4 extends tK{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return r5}static get DefaultType(){return r6}static get NAME(){return"toast"}show(){if(tH.trigger(this._element,rZ).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");let e=()=>{this._element.classList.remove(r3),tH.trigger(this._element,r0),this._maybeScheduleHide()};this._element.classList.remove(r1),tb(this._element),this._element.classList.add(r2,r3),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||tH.trigger(this._element,rJ).defaultPrevented)return;let e=()=>{this._element.classList.add(r1),this._element.classList.remove(r3,r2),tH.trigger(this._element,rQ)};this._element.classList.add(r3),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(r2),super.dispose()}isShown(){return this._element.classList.contains(r2)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){tH.on(this._element,rK,e=>this._onInteraction(e,!0)),tH.on(this._element,rW,e=>this._onInteraction(e,!1)),tH.on(this._element,rY,e=>this._onInteraction(e,!0)),tH.on(this._element,rX,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){let t=r4.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw TypeError(`No method named "${e}"`);t[e](this)}})}}tX(r4),tS(r4);var r8=n(7833),r9=n.n(r8);let r7=class e{static fatal(t,n={}){e._send("fatal",t,n)}static error(t,n={}){e._send("error",t,n)}static warning(t,n={}){e._send("warning",t,n)}static log(t,n={}){e._send("log",t,n)}static info(t,n={}){e._send("info",t,n)}static debug(t,n={}){e._send("debug",t,n)}static _send(e,t,n={}){this.debugLogger(t,"Context:",n)}};r7.debugLogger=r9()("smn:logger");var se=(e,t,n)=>new Promise((i,r)=>{var s=e=>{try{a(n.next(e))}catch(e){r(e)}},o=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,o);a((n=n.apply(e,t)).next())});let st=class e{constructor(){if(this.SENSIBILITY=10,this.isRequestSent=!1,!document.body.className.includes("single-post")||document.body.className.includes("nbe-single-post")&&window.matchMedia("(max-width: 500px)").matches)return;window.addEventListener("current_post_changed",this.updateDocument),window.addEventListener("current_post_changed",this.updateAdminBarEditUrl),window.addEventListener("current_post_changed",this.isFirstPostVisible),this.createFooterObserver(),this.createPostObserver();const e=document.getElementsByTagName("article");0!==e.length&&Array.from(e).forEach(e=>{e.id.includes("post-")&&(this.observeArticle(e),this.setCurrentPost(e))})}static init(){e.isEnabled()&&(e.instance||(e.instance=new e))}static isEnabled(){let e=window.infinite_scroll;if(!e||!("enabled"in e))return!0;let t=e.enabled;return 0!==t&&!1!==t&&"0"!==t&&""!==t}static isFirstScroll(){return e.postList.size<=1}isFirstPostVisible(){var t;0!==e.postList.size&&(null==(t=null==e?void 0:e.currentPost)?void 0:t.id)&&e.postList.entries().next().value[1].id===e.currentPost.id?window.dispatchEvent(new CustomEvent("first_post_visible")):window.dispatchEvent(new CustomEvent("first_post_not_visible"))}createFooterObserver(){new IntersectionObserver((function(e){e[0].intersectionRatio>0&&this.maybeRequestNewPost()}).bind(this),{root:null,rootMargin:"100px 0px 0px 0px",threshold:this.buildThresholdSteps()}).observe(document.getElementById("footer"))}maybeRequestNewPost(){this.isRequestSent||this.requestNextPost()}observeArticle(t){"ARTICLE"!==t.tagName||t.className.includes("post-type-post")&&t.id.includes("post-")&&e.observer.observe(t)}updateCurrentPost(t){var n;if((null==(n=e.currentPost)?void 0:n.id)===t.id)return;if(e.currentPost=t,e.isFirstScroll()){let e=new CustomEvent("first_post_loaded",{detail:t});window.dispatchEvent(e);return}let i=new CustomEvent("current_post_changed",{detail:t});window.dispatchEvent(i)}updateAdminBarEditUrl(e){var t;let n=e.detail;if((null==(t=window.infinite_scroll)?void 0:t.edit_base_url)&&0!==window.infinite_scroll.edit_base_url.length){let e=document.getElementById("wp-admin-bar-edit");if(null!==e){let t=e.getElementsByClassName("ab-item");0!==t.length&&(t.item(0).href=window.infinite_scroll.edit_base_url.replace("0",n.id.toString()))}}}getPostObject(t){var n,i,r,s,o,a,l,c,u,d,f,h,p;let m=parseInt(t.id.replace("post-",""));if(isNaN(m))return r7.warning("Infinite Scroll - Unexpected Post ID value",{code:"NON_NUMERIC_POST_ID"}),null;if(e.postList.has(m))return e.postList.get(m);let g=null==(n=t.dataset)?void 0:n.metatitle,v=parseInt(null==(i=t.dataset)?void 0:i.primaryCategoryId),_=(null==(r=t.dataset)?void 0:r.primaryCategorySlug)||"",y=parseInt(null==(s=t.dataset)?void 0:s.scrollnumber),b=null==(o=t.dataset)?void 0:o.postSlug,w=null==(a=t.dataset)?void 0:a.url,E=1===parseInt(null==(l=t.dataset)?void 0:l.adsEnabled),S=!!t.querySelector(".profile-card-table, .profile-card"),A=1===parseInt(null==(c=t.dataset)?void 0:c.hasStickyModule),T=1===parseInt(null==(u=t.dataset)?void 0:u.isPromotional),C=1===parseInt(null==(d=t.dataset)?void 0:d.isBranded),I=1===parseInt(null==(f=t.dataset)?void 0:f.isListicle),O=parseInt(null==(h=t.dataset)?void 0:h.listicleItems)||0;
1return{slug:b,title:g,url:w,id:isNaN(m)?0:m,page:isNaN(y)?1:y,category:isNaN(v)?0:v,category_slug:_,ads_enabled:E,hasProfileCard:S,hasStickyModule:A,isPromotional:T,isBranded:C,isListicle:I,listicleItemsTotal:O,post_template:null==(p=t.dataset)?void 0:p.postTemplate}}setCurrentPost(t){var n;let i=this.getPostObject(t);if(null!==i&&(null==(n=e.currentPost)||!n.id||i.id!==e.currentPost.id)){if(e.postList.has(i.id))return void this.updateCurrentPost(e.postList.get(i.id));e.postList.set(i.id,i),this.updateCurrentPost(i)}}getDisplayedPosts(){return Array.from(e.postList.keys())}createPostObserver(){let t={root:null,threshold:this.buildThresholdSteps(),rootMargin:"-70% 0px -20% 0px"};e.observer=new IntersectionObserver(this.observerCallback.bind(this),t)}requestNextPost(){this.showLoader(),this.isRequestSent=!0;let t=new XMLHttpRequest;t.onreadystatechange=()=>{t.readyState===XMLHttpRequest.DONE&&this.handleNextPostResponse(t)};let n=new URLSearchParams({displayed_ids:this.getDisplayedPosts().join(","),category:e.currentPost.category.toString(),scroll_no:e.postList.size.toString(),current_post:e.currentPost.id.toString(),excluded_ids:e.excludedIdsList.toString(),locale:window.infinite_scroll.locale}),i=window.infinite_scroll.infinite_scroll_rest_route+"?"+n;t.open("GET",i),t.send()}handleNextPostResponse(t){return se(this,null,function*(){try{let n,i=JSON.parse(t.response);if(!1===i.status){"NO_POST"!==i.code&&r7.error("Infinite Scroll - Response with error.",{code:i.code}),this.hideLoader();return}let r=document.getElementById("infinite-container");if(null===r){r7.error("Infinite Scroll - Missing container",{code:"MISSING_CONTAINER"}),this.hideLoader(),this.isRequestSent=!1;return}let s=Array.isArray(i.data.post_html_content)?i.data.post_html_content.join(""):i.data.post_html_content;try{n=new DOMParser().parseFromString(s,"text/html")}catch(e){r7.error("Infinite Scroll - Invalid HTML",{code:"INVALID_HTML"}),this.hideLoader(),this.isRequestSent=!1;return}let o=document.createDocumentFragment();
1Array.from(n.querySelectorAll("script")).forEach(e=>{o.appendChild(e)});let a=[],l=n.getElementsByClassName("infinite_scroll_new_post");Array.from(l).forEach(t=>{var n;let s=RegExp("post-(?<post_id>\\d+)").exec(t.className);if(null===s)return void r7.error("Infinite Scroll - Unexpected HTML",{code:"INVALID_HTML_POST_ID"});let o=parseInt(null==(n=s.groups)?void 0:n.post_id);if(isNaN(o))return void r7.error("Infinite Scroll - Unexpected HTML",{code:"NON_NUMERIC_POST_ID"});t.querySelectorAll("video[autoplay]").forEach(e=>{e.setAttribute("data-smn-wants-autoplay","true"),e.removeAttribute("autoplay"),e.pause()}),r.append(t);let l=document.getElementById(`post-${o}`);if(null===l)return void r7.error("Infinite Scroll - Unexpected DOM error",{code:"NON_APPENDABLE_ELEMENT"});this.observeArticle(l);let c=this.getPostObject(l);null!==c&&(e.postList.set(c.id,c),null!==i.data.new_excluded_ids&&(e.excludedIdsList=e.excludedIdsList.concat(i.data.new_excluded_ids)),a.push(c))}),yield se(null,null,function*(){let e=Array.from(o.querySelectorAll("script"));for(let t of(e.sort((e,t)=>!e.src.includes("video-enhancer")-!t.src.includes("video-enhancer")),e))if(!(t.src&&Array.from(document.scripts).some(e=>e.src===t.src&&!e.closest(".infinite_scroll_new_post"))))try{yield new Promise((e,n)=>{let i=document.createElement("script");Array.from(t.attributes).forEach(e=>{i.setAttribute(e.name,e.value)}),t.textContent&&(i.textContent=t.textContent),t.src&&(i.onload=()=>e(),i.onerror=()=>n(Error(`Failed to load script: ${t.src}`))),document.body.appendChild(i),t.src||e()})}catch(e){}}),a.forEach(e=>{0!==i.data.posts_with_ads&&window.dispatchEvent(new CustomEvent("new_post_inserted_with_ads")),window.dispatchEvent(new CustomEvent("new_post_inserted",{detail:e}))});let c=e.currentPost;c&&a.some(e=>e.id===c.id)&&window.dispatchEvent(new CustomEvent("current_post_changed",{detail:c})),this.isRequestSent=!1,this.hideLoader(),h9.extraFeatures();let u=Array.from(e.postList)[e.postList.size-1][1];window.dataLayer.push({event:"gtag_event",data:{event_name:`scroll_post_${e.postList.size}`,event_category:"Scroll Pageview",event_label:u.url}})}catch(e){r7.fatal("Infinite Scroll - Unexpected Error",{code:"UNEXPECTED",message:e}),this.hideLoader(),this.isRequestSent=!1}})}eventPreventDefault(e){e.preventDefault()}avoidScrollFromKeyboard(e){["Space","PageUp","PageDown","Home","End","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()}disableScroll(){let e={passive:!1};window.addEventListener("DOMMouseScroll",this.eventPreventDefault,!1),window.addEventListener("wheel",this.eventPreventDefault,e),window.addEventListener("mousewheel",this.eventPreventDefault,e),window.addEventListener("touchmove",this.eventPreventDefault,e),window.addEventListener("keydown",this.avoidScrollFromKeyboard,!1)}enableScroll(){let e={passive:!1};window.removeEventListener("DOMMouseScroll",this.eventPreventDefault,!1),window.removeEventListener("wheel",this.eventPreventDefault,e),window.removeEventListener("mousewheel",this.eventPreventDefault,e),window.removeEventListener("touchmove",this.eventPreventDefault,e),window.removeEventListener("keydown",this.avoidScrollFromKeyboard,!1)}showLoader(){document.body.classList.add("post-loading"),this.disableScroll()}hideLoader(){document.body.classList.remove("post-loading"),this.enableScroll()}observerCallback(e){e.forEach(e=>{let t=e.target;e.isIntersecting&&this.setCurrentPost(t)})}buildThresholdSteps(){let e=[];e.push(0);for(let t=1;t<this.SENSIBILITY;t++)e.push(t/this.SENSIBILITY);return e.push(1),e}updateDocument(e){let t=e.detail;document.title=t.title,window.history.replaceState({},"",t.url)}};st.postList=new Map,st.excludedIdsList=[];var sn=n(6427),si=n(4712),sr=n(1476);class ss{constructor(){if(this.minSearchChars=4,this.searchDelay=300,this.searchedItem="",this.searchForm=document.querySelector(".search-results-container"),null===this.searchForm||(this.searchInput=document.getElementById("common-search-input"),null===this.searchInput))return;this.searchInput.addEventListener("keyup",this.doSearch.bind(this));const e=document.getElementById("close-search-overlay");null!==e&&e.addEventListener("click",this.hideSearchFrom.bind(this));const t=document.querySelector(".search-results-container__form");null!==t&&t.addEventListener("submit",e=>{e.preventDefault(),this.doSearch("force")});const n=document.getElementById("search-action-top-bar");null!==n&&(n.addEventListener("click",this.displaySearchForm.bind(this)),n.addEventListener("keydown",e=>{"Enter"===e.key&&this.displaySearchForm()})),document.addEventListener("smn:open-search",this.displaySearchForm.bind(this));const i=this.searchForm.querySelector(".search-results-container__results");i&&i.addEventListener("click",this.handleSearchResultClick.bind(this)),this.initXHR()}handleSearchResultClick(e){let t=e.target.closest(".search_item__result a");if(!t||t.closest(".post-category"))return;let n=t.closest(".search_item__result");if(!n)return;let i=sr.Y.getInstance();if(!i)return;let r=Number(n.getAttribute("data-post-position"));i.trackClick({category:"click_internal",action:"search_result_click",post_id:n.getAttribute("data-post-id")||"",search_results_position:Number.isFinite(r)?r:0,query:this.searchInput.value,destination_link:t.href,url:window.location.href})}static init(){ss.instance||(ss.instance=new ss)}updateSearchLink(e=""){let t,n=document.getElementById("more_results_url");
1if(null!==n){if(0===e.length){n.href="#";return}if(window.search.search_url.includes("%search%"))t=window.search.search_url.replace(/%search%/,encodeURIComponent(e))+"/page/2/";else{let n=new URL(window.search.search_url);n.searchParams.set("s",e),t=n.toString()}n.href=t}}initXHR(){this.xhr=new XMLHttpRequest,this.xhr.onabort=this.processAbort.bind(this),this.xhr.onreadystatechange=this.processResponse.bind(this)}processAbort(){this.clearSearchFormStates()}renderSearchResults(e){let t=document.querySelector(".search-results-container__results .search_items");if(null===t)return;let n=document.querySelector("template#search_item");null!==n&&(t.innerHTML="",e.forEach((e,i)=>{let r=n.content.cloneNode(!0),s=r.querySelector(".search_item__result");s&&(s.setAttribute("data-post-id",String(e.id)),s.setAttribute("data-post-position",String(i+1))),e.image||(e.image=window.search.placeholder_image);let o=r.querySelector(".post-thumbnail a");o.href=e.link,o.title=e.title;let a=o.querySelector("img");a.src=e.image.toString(),a.alt=e.title;let l=r.querySelector(".post-category"),c=l.querySelector("a");e.categories.forEach(e=>{let t=c.cloneNode(!0);t.href=e.link,t.innerHTML=e.label,l.appendChild(t)}),l.removeChild(c);let u=r.querySelector("h2.title a");u.innerHTML=e.title,u.href=e.link,r.querySelector("div.description p").innerHTML=e.excerpt,t.appendChild(r)}),this.clearSearchFormStates(),this.searchForm.classList.add("has-results"))}processResponse(){if(this.xhr.readyState===XMLHttpRequest.DONE){this.searchForm.classList.remove("searching");try{let e=JSON.parse(this.xhr.response);if(!e.status){this.clearSearchFormStates(),this.searchForm.classList.add("no-results");return}this.renderSearchResults(e.posts);let t=this.searchedItem;e.more||(t=""),this.updateSearchLink(t)}catch(e){r7.error("Ajax search error",{error:e.toString()}),this.clearSearchFormStates(),this.searchForm.classList.add("no-results")}}}clearSearchFormStates(){this.searchForm.classList.remove("searching","no-results","has-results")}abortSearch(){try{clearTimeout(this.searchTimeout)}catch(e){}this.xhr.abort()}doSearch(e=""){let t=this.searchInput.value;if(!this.validateSearchInput(e)){this.clearSearchFormStates(),this.abortSearch();return}if(this.searchedItem===t&&0!==document.querySelectorAll(".search-results-container__results article").length){this.abortSearch(),this.searchForm.classList.add("has-results");return}this.clearSearchFormStates(),this.searchTimeout&&this.abortSearch();let n=new FormData;n.append("action",window.search.action),n.append("search",t),this.searchTimeout=window.setTimeout(()=>{this.searchForm.classList.add("searching"),this.searchedItem=t,this.xhr.open("POST",window.search.ajax_url),this.xhr.send(n)},this.searchDelay)}validateSearchInput(e=""){return 0===this.searchInput.value.trim().length?(this.searchInput.classList.remove("search-results-container__input--error"),!1):this.minSearchChars>this.searchInput.value.trim().length?("force"===e&&this.searchInput.classList.add("search-results-container__input--error"),!1):(this.searchInput.classList.remove("search-results-container__input--error"),!0)}displaySearchForm(){document.body.style.overflowY="hidden",this.searchForm.classList.add("opened"),this.searchInput.focus(),this.addEscapeCloseSearchEvent(),window.dataLayer.push({event:"gtag_event",data:{event_name:"view_search_results",event_category:"search_click",event_label:si.A.getCurrentUrl()}})}addEscapeCloseSearchEvent(){window.addEventListener("keydown",this.escapeCloseSearchEvent.bind(this))}removeEscapeCloseSearchEvent(){window.removeEventListener("keydown",this.escapeCloseSearchEvent.bind(this))}escapeCloseSearchEvent(e){"Escape"===e.key&&this.hideSearchFrom()}hideSearchFrom(){document.body.style.overflowY="visible",this.removeEscapeCloseSearchEvent(),this.abortSearch(),this.searchForm.classList.remove("opened")}}var so=n(9452),sa=n(428);let sl=class e{static activateFeatures(){e.enableGoUpButton(),e.slidebarMenuOpener(),e.trackSubscribeTopbarLinkClick()}static enableGoUpButton(){let t=sa(".smn-button--footer-up"),n=sa("html, body");t.on("click",function(t){t.preventDefault(),n.animate({scrollTop:0},e.SCROLLTOP_DURATION)})}static slidebarMenuOpener(){let e=sa(".toggle-offcanvas-menu, .smn-body-offcanvas-menu__overlay"),t=sa("body"),n=sa(".smn-offcanvas-menu"),i="smn-offcanvas-menu--open",r="smn-body-offcanvas-menu--open";e.on("click",function(e){e.preventDefault();let s=!t.hasClass(r),o=sr.Y.getInstance();o&&o.sendDataEvent(s?so.E.SIDE_MENU_OPEN:so.E.SIDE_MENU_CLOSE,{url:window.location.href}),t.hasClass(r)?(t.removeClass(r),n.removeClass(i)):(t.addClass(r),n.addClass(i))})}static trackSubscribeTopbarLinkClick(){sa(".smn-header-addons__subscribe").on("click",function(){let e=sr.Y.getInstance();e&&e.sendDataEvent(so.E.TOPBAR_NEWSLETTER_LINK_CLICK,{url:window.location.href})})}static toggleHeaderPlaceholder(e,t=0){let n=sa(".smn-header-placeholder"),i="smn-header-placeholder--shown";e?(n.css({height:t+"px"}),n.addClass(i)):n.removeClass(i)}};sl.SCROLLTOP_DURATION=1e3;var sc=n(428);let su=class e{constructor(){this.isTransitionActive=!1}init(){let t=window.location.hash;"#_=_"!==t&&(""===t||""!==t&&0===sc(t).length?sc(document).on("scroll",this.toggleStickyMenuClass):window.setTimeout(()=>{sc(document).on("scroll",this.toggleStickyMenuClass)},e.DELAY_IF_HASH_IS_PRESENT))}toggleStickyMenuClass(){let t=sc(".navbar-sticky"),n=t.outerHeight(!0),i=sc(document).scrollTop();if(i>=e.FIXED_TOP_POSITION&&!t.hasClass("navbar-fixed")){sl.toggleHeaderPlaceholder(!0,n);let i=document.getElementById("top-bar-module");i&&i.remove(),t.addClass("navbar-fixed").hide().slideDown(e.ANIMATION_TIME,function(){})}else i<e.FIXED_TOP_POSITION&&t.hasClass("navbar-fixed")&&!this.isTransitionActive&&(this.isTransitionActive=!0,t.slideUp(e.ANIMATION_TIME,()=>{t.removeClass("navbar-fixed").removeAttr("style"),sl.toggleHeaderPlaceholder(!1),this.isTransitionActive=!1}))}};su.FIXED_TOP_POSITION=300,su.ANIMATION_TIME=200,su.DELAY_IF_HASH_IS_PRESENT=4e3;var sd=n(428);class sf{static deferElementsStyles(){sd(".smn-offcanvas-menu").addClass("visible")}}var sh=Object.defineProperty,sp=Object.getOwnPropertySymbols,sm=Object.prototype.hasOwnProperty,sg=Object.prototype.propertyIsEnumerable,sv=(e,t,n)=>t in e?sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s_=(e,t)=>{for(var n in t||(t={}))sm.call(t,n)&&sv(e,n,t[n]);if(sp)for(var n of sp(t))sg.call(t,n)&&sv(e,n,t[n]);return e};let sy=class e{constructor(){window.addEventListener("gal_smn_event",e.customAnalyticsEventHandler),window.addEventListener("new_post_inserted",this.sendPageViewEvent),e.dataLogging=sr.Y.getInstance(),this.installDelegatedClickListener()}static getInstance(){return null===e.instance&&(e.instance=new e),e.instance}static customAnalyticsEventHandler(t){let n=t.detail;e.triggerEvent(n.action,n.category,n.label)}static triggerEvent(e,t,n=window.location.href){window.dataLayer.push({event:"gtag_event",data:{event_name:e,event_category:t,event_label:n}})}activateClickEvents(t={}){var n;(null!=(n=t.scope)?n:document).querySelectorAll('[data-has-ga="true"][data-ga-type="click"]:not([data-ga-applied="true"])').forEach(n=>
1{n.addEventListener("click",()=>e.handleGaClick(n,t)),n.setAttribute("data-ga-applied","true")})}static handleGaClick(t,n={}){var i;let r=t.getAttribute("data-category"),s=t.getAttribute("data-action"),o=t.getAttribute("data-label");if(null===r||null===s||""===r.trim()||""===s.trim())return;let a=null!=(i=n.pageUrl)?i:window.location.href,l=null!==o&&""!==o.trim()?o:a;if(s.includes("profile_card")&&t instanceof HTMLLinkElement&&(l=t.href),window.dataLayer.push({event:"gtag_event",data:{event_name:s,event_category:r,event_label:l}}),e.dataLogging instanceof sr.Y){let i=s_(s_({url:a,action:s,destination_link:l,category:r},n.siteExperience?{site_experience:n.siteExperience}:{}),"boolean"==typeof n.isFirstArticleOfSession?{is_first_article_of_session:n.isFirstArticleOfSession}:{});"top_article_module"===s&&(i.is_giftcard=null!==t.closest(".giftcard-container")),n.cardType&&("click_sales"===r||"click_non_sales"===r)&&(i.card_type=n.cardType),"number"==typeof n.listicleItem&&(i.listicle_item=n.listicleItem),e.dataLogging.trackClick(i)}}installDelegatedClickListener(){e.delegatedListenerInstalled||(e.delegatedListenerInstalled=!0,document.addEventListener("click",t=>{let n=t.composedPath().find(e=>e instanceof Element&&"true"===e.getAttribute("data-has-ga")&&"click"===e.getAttribute("data-ga-type"));!n||"true"===n.getAttribute("data-ga-applied")||n.getRootNode()instanceof ShadowRoot&&e.handleGaClick(n,{})}))}sendPageViewEvent(t){let n=t.detail;e.pageViewedPosts.includes(n.id)||(e.pageViewedPosts.push(n.id),window.dataLayer.push({event:"gtag_event",data:{event_name:"page_view",event_category:"page_view",event_label:n.url}}))}};sy.instance=null,sy.pageViewedPosts=[],sy.delegatedListenerInstalled=!1;class sb{static addTrackingEvents(){document.querySelectorAll(".essential-guides a").forEach(function(e){e.addEventListener("click",function(){sy.triggerEvent("sidebar_link","essential_guides",this.getAttribute("href"))})})}}var sw=n(428);let sE=class e{constructor(t){this.dataLogging=t;try{mc4wp.forms.on("started",t=>this.processFormEvent("interaction",t,e.INTERACTION_VALUE)),mc4wp.forms.on("submitted",t=>this.processFormEvent("submitted",t,e.SUBMIT_VALUE)),mc4wp.forms.on("error",t=>this.processFormEvent("error",t,e.ERROR_VALUE)),mc4wp.forms.on("success",t=>this.processFormEvent("success",t,e.SUCCESS_VALUE)),mc4wp.forms.on("subscribed",t=>this.processFormEvent("subscribed",t,e.SUBSCRIBED_VALUE))}catch(e){}}static init(t=sr.Y.getInstance()){e.instance||(e.instance=new e(t))}processFormEvent(t,n,i=0){let r,s=sw(n.element);"FORM"!==s.prop("tagName")&&(s=s.parents("form"));let o=s.parent();if(o.hasClass("new-home__mailchimp-offcanvas-area"))r=`${e.EVENT_PREFIX}_menu-sidebar`;else if(o.hasClass("new-home__mailchimp-area"))r=`${e.EVENT_PREFIX}_modal-box`;else if(o.hasClass("new-home__prefooter-widget"))r=`${e.EVENT_PREFIX}_footer`;else if(o.hasClass("sidebar-container")){let t=o.parentsUntil(".smn-home-section__aside");r=0===t.length?`${e.EVENT_PREFIX}_unknown`:1===t.length?`${e.EVENT_PREFIX}_home-featured-sidebar`:`${e.EVENT_PREFIX}_post-sidebar`}else r=o.hasClass("nl-landing-hero")?`${e.EVENT_PREFIX}_landing-featured`:o.hasClass("nl-landing-newsletter-footer")?`${e.EVENT_PREFIX}_landing-footer`:`${e.EVENT_PREFIX}_unknown`;let a=window.location.href;window.dataLayer.push({event:"gtag_event",data:{event_name:t,event_category:r,event_label:a.slice(0,a.indexOf("?"))}}),this.dataLogging.sendDataEvent(r,{url:window.location.href,action:t})}};sE.EVENT_PREFIX="signup_form_",sE.INTERACTION_VALUE=1,sE.ERROR_VALUE=1,sE.SUCCESS_VALUE=2,sE.SUBMIT_VALUE=5,sE.SUBSCRIBED_VALUE=10;var sS=n(7576),sA=n.n(sS),sT=n(428);let sC=class e{static activate(){let t=!1;new(sA())(e.CLASS_SELECTOR),sT(document).on("shown.bs.popover",e.CLASS_SELECTOR,function(){setTimeout(function(){sT(e.CLASS_SELECTOR).popover("hide"),t=!1},e.POPOVER_DESTROY_DELAY)}),sT(document).on("click",e.CLASS_SELECTOR,function(){sT("div.popover:visible").length>0||t||(sT(this).popover("show"),t=!0)})}};sC.CLASS_SELECTOR=".smn-copy-to-clipboard",sC.POPOVER_DESTROY_DELAY=1e3;var sI=n(428);let sO=class e{constructor(){sI(function(){sI(".article__branded-content-policy-text a").on("click",function(){let e=sI(this),t={category:"branded_content_policy",action:"",label:e.parents("article.article").data("url")};e.attr("href").includes(window.location.host)?t.action="click_on_legal_page":t.action="click_on_form";let n=new CustomEvent("gal_smn_event",{detail:t});window.dispatchEvent(n)})})}static init(){null===e.instance&&(e.instance=new e)}};sO.instance=null;class sL{static init(){document.body.classList.contains("page-template-parent-secretmedianetwork")&&sL.calculateHueRotation()}static calculateHueRotation(){document.querySelectorAll(".logo-list__list .logo-list__logo-wrapper a").forEach(e
1=>{let t=e.attributes.getNamedItem("data-color").value;if(0!==t.length){let n=e.parentElement.classList.toString().replace("logo-list__logo-wrapper ",""),i=document.createElement("style");i.innerHTML=`.${n} a svg:hover path { fill: ${t} !important }`,document.body.append(i)}})}}let sN=class e{constructor(){this.CPM_EXISTS_CHECK_INTERVAL=500,this.CPM_PURPOSE_CONSENTS_NO=11,this.CPM_PURPOSE_SPECIAL_FEATURES_NO=2,this.intervalChecker=window.setInterval(this.setup.bind(this),this.CPM_EXISTS_CHECK_INTERVAL)}static init(){e.instance||(e.instance=new e)}processCMPEventGPP(t){if(t&&t.pingData){let n=t.pingData||{},i=[];Array.isArray(n.applicableSections)&&(i=n.applicableSections);let r=n.parsedSections||{},s=!1,o=!1,a=!1,l=!1;for(let t of i){let n=r[e.SECTION_ID_TO_NAME[t]];if(n){if(l=!0,t===e.SECTION_ID_TCF){let e=n.PurposeConsents,t=n.SpecialFeatureOptins,i=this.isAllPurposeConsentsAccepted(e),r=this.isAllSpecialFeaturesAccepted(t);i&&r?s=!0:i||r?a=!0:o=!0}else e.SECTION_IDS_USA.includes(t)&&(n.Gpc||2!==n.SaleOptOut?o=!0:s=!0);break}}l||(o=!0),s?this.doAllAcceptedCMPEvent():o?this.doAllRejectedCMPEvent():a&&this.doSomeAcceptedCMPEvent()}}isAllPurposeConsentsAccepted(e){return"string"==typeof e?0!==e.length:this.isBooleanVectorAccepted(e,this.CPM_PURPOSE_CONSENTS_NO)}isBooleanVectorAccepted(e,t){if(Object.keys(e).length!==t)return!1;for(let t in e)if(!e[t])return!1;return!0}isAllSpecialFeaturesAccepted(e){return"string"==typeof e?0!==e.length:this.isBooleanVectorAccepted(e,this.CPM_PURPOSE_SPECIAL_FEATURES_NO)}getDefaultEventData(){let e=window.location.href;return{event_category:"cmp_banner",event_label:e.slice(0,e.indexOf("?"))}}doShowCMPEvent(){window.dataLayer.push({event:"gtag_event",data:Object.assign({event_name:"impression",non_interaction:!0},this.getDefaultEventData())})}doAllAcceptedCMPEvent(){window.dataLayer.push({event:"gtag_event",data:Object.assign({event_name:"accept_all"},this.getDefaultEventData())})}doAllRejectedCMPEvent(){window.dataLayer.push({event:"gtag_event",data:Object.assign({event_name:"reject_all"},this.getDefaultEventData())})}doSomeAcceptedCMPEvent(){window.dataLayer.push({event:"gtag_event",data:Object.assign({event_name:"accept_some"},this.getDefaultEventData())})}setup(){"__gpp"in window&&"function"==typeof window.__gpp&&(clearInterval(this.intervalChecker),window.__gpp("addEventListener",e=>{this.processCMPEventGPP(e)}))}};sN.SECTION_ID_TCF=2,sN.SECTION_IDS_USA=[6,7,8,9,10,11,12],sN.SECTION_ID_TO_NAME={2:"tcfeuv2",6:"uspv1",7:"usnat",8:"usca",9:"usva",10:"usco",11:"usut",12:"usct"};class sP{constructor(){if(this.isSelectorHidden=!0,this.selector=document.querySelector(".smn-language-selector"),this.content=document.querySelector(".smn-language-selector-content"),null===this.selector||null===this.content)return;this.showLanguageSelector(),this.add_ga_event_on_language_change()}static init(){sP.instance||(sP.instance=new sP)}add_ga_event_on_language_change(){let e=document.querySelectorAll(".smn-language-selector-languages a, .smn-language-selector-sidebar a");e&&e.forEach(e=>{e.addEventListener("click",e=>{var t,n;let i=e.target;(null==(t=i.dataset)?void 0:t.slug)&&i.dataset.slug!==window.pll_current_lang&&(null==(n=i.dataset)?void 0:n.locale)&&window.dataLayer.push({event:"gtag_event",data:{event_name:"language_changed",event_category:"multi-language",event_label:`${i.dataset.locale}`}})})})}toggleLanguageSelector(){let e=document.querySelector("svg.fa-chevron-up"),t=document.querySelector("svg.fa-chevron-down"),n=this.isSelectorHidden;this.content.style.display=this.isSelectorHidden?"block":"none",e.style.display=this.isSelectorHidden?"inherit":"none",t.style.display=this.isSelectorHidden?"none":"inherit",this.isSelectorHidden=!this.isSelectorHidden,n&&!this.isSelectorHidden&&this.trackOpenEvent()}showLanguageSelector(){this.selector.addEventListener("click",()=>{this.toggleLanguageSelector()})}trackOpenEvent(){let e=sr.Y.getInstance();e&&e.sendDataEvent(so.E.LANGUAGE_SELECTOR_CLICK,{url:window.location.href})}}function sk(){let e="__tcfapi"in window&&"function"==typeof window.__tcfapi,t="__uspapi"in window&&"function"==typeof window.__uspapi;e?window.__tcfapi("ping",2,(e,n)=>{var i,r;if(n&&(null==e?void 0:e.gdprApplies)){null==(i=window.__tcfapi)||i.call(window,"displayConsentUi",2,function(){});return}t&&(null==(r=window.__uspapi)||r.call(window,"displayUspUi"))}):t&&window.__uspapi("displayUspUi")}class sx{constructor(){this.consentToggleSelector=".consent-toggle",this.watchConsentToggle()}static init(){return sx.instance||(sx.instance=new sx),sx.instance}watchConsentToggle(){let e=document.querySelectorAll(this.consentToggleSelector);
1e&&e.forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.handleConsentToggle()})})}handleConsentToggle(){sk()}}let sR=class e{constructor(){this.previousAdDisplay=new WeakMap,this.onSideMenu=e=>{var t;let n=(null==(t=e.detail)?void 0:t.open)===!0,i=sr.Y.getInstance();i&&i.sendDataEvent(n?so.E.SIDE_MENU_OPEN:so.E.SIDE_MENU_CLOSE,{url:window.location.href}),n?this.hideFixedMobileAd():this.restoreFixedMobileAd()},this.onOpenLanguage=e=>{var t;let n=sr.Y.getInstance();if(n){let i=(null==(t=e.detail)?void 0:t.source)==="side_menu"?so.E.SIDE_MENU_LANGUAGE_SELECTOR_CLICK:so.E.LANGUAGE_SELECTOR_CLICK;n.sendDataEvent(i,{url:window.location.href})}},this.onOpenConsent=()=>{sk()},document.addEventListener("smn:side-menu",this.onSideMenu),document.addEventListener("smn:open-language",this.onOpenLanguage),document.addEventListener("smn:open-consent",this.onOpenConsent)}static init(){e.instance||(e.instance=new e)}hideFixedMobileAd(){document.querySelectorAll(e.FIXED_MOBILE_AD_SELECTOR).forEach(e=>{this.previousAdDisplay.has(e)||(this.previousAdDisplay.set(e,{value:e.style.getPropertyValue("display"),priority:e.style.getPropertyPriority("display")}),e.style.setProperty("display","none","important"))})}restoreFixedMobileAd(){document.querySelectorAll(e.FIXED_MOBILE_AD_SELECTOR).forEach(e=>{let t=this.previousAdDisplay.get(e);t&&""!==t.value?e.style.setProperty("display",t.value,t.priority):e.style.removeProperty("display"),this.previousAdDisplay.delete(e)})}};sR.FIXED_MOBILE_AD_SELECTOR=".google-ad-manager-fixed-mobile-ads";class sM{constructor(){this.onSectionView=e=>{var t;let n=e.detail;n&&(null==(t=sr.Y.getInstance())||t.sendDataEvent(so.E.VIDEO_HUB_SECTION_VIEW,{section_id:n.sectionId,section_position:n.sectionPosition,item_count:n.itemCount}))},this.onCardClick=e=>{var t;let n=e.detail;n&&(null==(t=sr.Y.getInstance())||t.sendDataEvent(so.E.VIDEO_HUB_VIDEO_CLICK,{video_id:n.videoId,section_id:n.sectionId,section_position:n.sectionPosition,item_position:n.itemPosition,destination_url:n.destinationUrl}))},document.addEventListener("smn:video-hub-section-view",this.onSectionView),document.addEventListener("smn:video-hub-card-click",this.onCardClick)}static init(){sM.instance||(sM.instance=new sM)}}var sD=n(6142),sU=Object.defineProperty,sB=Object.getOwnPropertySymbols,sF=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable,sH=(e,t,n)=>t in e?sU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sj=(e,t)=>{for(var n in t||(t={}))sF.call(t,n)&&sH(e,n,t[n]);if(sB)for(var n of sB(t))sV.call(t,n)&&sH(e,n,t[n]);return e};class sG{constructor(){this.deobfuscate_on_right_click=!0,document.addEventListener("click",this.trigger_link_opening_on_click.bind(this)),document.addEventListener("mousedown",this.trigger_link_opening_in_new_tab_on_mousewheel_click.bind(this)),document.addEventListener("contextmenu",this.deobfuscate_link_on_right_click.bind(this))}static init(){sG.instance||(sG.instance=new sG)}fever_obfuscate_clicked(e,t){let n=this.addUtmParametersToUrl(e,sD.C.getDataAttributesFromLink(e));"true"===e.getAttribute("data-b")||t?window.open(n):window.location.href=n}trigger_link_opening_on_click(e){let t=e.target.closest(".fever-obf-link");t&&!t.closest(".fever-deobf-link")&&this.fever_obfuscate_clicked(t,!1)}trigger_link_opening_in_new_tab_on_mousewheel_click(e){if(1===e.button){let t=e.target.closest(".fever-obf-link");t&&!t.closest(".fever-deobf-link")&&this.fever_obfuscate_clicked(t,!0)}}deobfuscate_link_on_right_click(e){if(this.deobfuscate_on_right_click){let t=e.target.closest(".fever-obf-link");if(t&&!t.closest(".fever-deobf-link")){e.stopPropagation();let n=this.addUtmParametersToUrl(t,sD.C.getDataAttributesFromLink(t)),i="true"===t.getAttribute("data-b"),r=document.createElement("a");r.className="fever-deobf-link",r.href=n,i&&(r.target="_blank"),t.parentNode.insertBefore(r,t),r.appendChild(t);let s=new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,view:window});r.dispatchEvent(s),setTimeout(()=>{r.parentNode&&(r.parentNode.insertBefore(t,r),r.parentNode.removeChild(r))},10)}}}addUtmParametersToUrl(e,t){let n=new URL(atob(e.getAttribute("data-o")));if("0"==e.getAttribute("data-tracked"))return n.toString();let i=sj(sj({},sD.C.getSavedUtmParameters()),t);
1return Object.keys(i).forEach(e=>{n.searchParams.append(e,i[e])}),n.toString()}}var sq=n(2466);class s${constructor(){window.addEventListener("load",this.addRecommenderTracking.bind(this)),s$.dataLogging=sr.Y.getInstance()}static init(){s$.instance||(s$.instance=new s$)}addRecommenderTracking(){var e=document.getElementById("infinite-container");null!==e&&document.body.classList.contains("single")&&e.addEventListener("click",this.handleInfiniteScrollClick)}handleInfiniteScrollClick(e){var t=e.target;if("A"===t.tagName&&"recommender_module_top_article"===t.dataset.category){var n=t.closest("div.recommender-container");if(null!==n){var i=n.querySelectorAll('a[data-category="recommender_module_top_article"]'),r=0,s=!1;Array.from(i).forEach(function(e){if(s||(r+=1),e.contains(t)){s=!0;return}}),window.dataLayer.push({event:"gtag_event",data:{event_name:"article_position_"+r,event_category:"recommender_module_top_article",event_label:t.href}}),s$.dataLogging instanceof sr.Y&&s$.dataLogging.sendDataEvent(so.E.RECOMMENDER_MODULE,{url:window.location.href,action:"article_position_"+r,label:t.href})}}}}class sz{constructor(){if(!document.body.className.includes("single-post"))return;window.addEventListener("load",this.copyVenueModuleToBodyBottom.bind(this)),window.addEventListener("current_post_changed",this.showHideVenueModule.bind(this))}static createInstance(){return new sz}copyVenueModuleToBodyBottom(e){document.querySelectorAll(".venue-module-copy").forEach(e=>{e.remove()}),document.querySelectorAll(".venue-module").forEach(e=>{let t=e.cloneNode(!0);t.setAttribute("id","copy-"+t.id),t.className=t.className.replace("venue-module","venue-module-copy"),document.body.appendChild(t)})}showHideVenueModule(e){let t=e.detail;this.copyVenueModuleToBodyBottom(e),this.hideCopyVenuesFromDOM();let n=document.getElementById("copy-venue-module-"+t.id);null!==n&&(this.hideCopyVenuesFromDOM(),n.setAttribute("style","display: block"))}hideCopyVenuesFromDOM(){document.querySelectorAll(".venue-module-copy").forEach(e=>{e.setAttribute("style","display: none")})}}class sK{constructor(){window.addEventListener("load",this.ourCitiesBehavior.bind(this)),window.addEventListener("load",this.cloneCityList.bind(this))}static createInstance(){return new sK}ourCitiesBehavior(){let e=document.getElementById("js-multicity-our-cities"),t=document.getElementById("js-multicity-chevron-down"),n=document.getElementById("js-multicity-chevron-up"),i=document.getElementById("multicity__menu");e&&e.addEventListener("click",()=>{n.classList.toggle("hidden"),t.classList.toggle("hidden"),i.classList.toggle("hidden")})}cloneCityList(){let e=document.getElementById("js-cities-modal"),t=document.getElementById("js-button-city-list"),n=document.getElementById("multicity__menu");if(t&&e&&n){let i=document.getElementById("close-modal"),r=n.innerHTML.replace(/multicity_module_menu/g,"multicity_module_topbar"),s=document.getElementById("js-clone-city-list");t.addEventListener("click",()=>{e.classList.add("d-block"),document.body.classList.add("modal-open"),s.innerHTML=r,s.querySelectorAll("a").forEach(e=>this.addAnalyticsToLink(e))}),i.addEventListener("click",()=>{e.classList.remove("d-block"),document.body.classList.remove("modal-open")}),window.addEventListener("click",t=>{t.target===e&&(e.classList.remove("d-block"),document.body.classList.remove("modal-open"))})}}addAnalyticsToLink(e){let t=e.getAttribute("data-category"),n=e.getAttribute("data-action"),i=e.getAttribute("data-label")||window.location.href;e.addEventListener("click",()=>{this.triggerEventData(n,t,i)})}triggerEventData(e,t,n){sy.triggerEvent(e,t,n);let i=sr.Y.getInstance();i instanceof sr.Y&&i.sendDataEvent(so.E.MULTICITY_MODULE_TOPBAR,{url:window.location.href})}}var sW={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},sY=console,sX={};Object.keys(sW).forEach(function(e){sX[e]=sY[e]});var sJ="Datadog Browser SDK:",sQ={debug:sX.debug.bind(sY,sJ),log:sX.log.bind(sY,sJ),info:sX.info.bind(sY,sJ),warn:sX.warn.bind(sY,sJ),error:sX.error.bind(sY,sJ)},sZ="https://docs.datadoghq.com",s0="".concat(sZ,"/real_user_monitoring/browser/troubleshooting"),s1="More details:";function s2(e,t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{return e.apply(void 0,n)}catch(e){sQ.error(t,e)}}}var s3=function(e,t,n){if(n||2==arguments.length)for(var i,r=0,s=t.length;r<s;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},s6=!1;function s5(e){s6=e}function s4(e){return function(){return s8(e,this,arguments)}}function s8(e,t,n){try{return e.apply(t,n)}catch(e){if(s9(e),r)try{r(e)}catch(e){s9(e)}}}function s9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s6&&sQ.error.apply(sQ,s3(["[MONITOR]"],e,!1))}function s7(e,t){return -1!==e.indexOf(t)}function oe(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach(function(e){return t.push(e)});else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function ot(e,t){for(var n=0;n<e.length;n+=1){var i=e[n];if(t(i,n))return i}}function on(e){return Object.keys(e).map(function(t){return e[t]})}function oi(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function or(e,t){return e.slice(0,t.length)===t}function os(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}function oo(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var oa=/[^\u0000-\u007F]/;function ol(e){return oa.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function oc(e,t){var n,i=oo();return i.Zone&&"function"==typeof i.Zone.__symbol__&&(n=e[i.Zone.__symbol__(t)]),n||(n=e[t]),n}function ou(e,t){return oc(oo(),"setTimeout")(s4(e),t)}function od(e){oc(oo(),"clearTimeout")(e)}function of(e,t){return oc(oo(),"setInterval")(s4(e),t)}function oh(e){oc(oo(),"clearInterval")(e)}function op(e,t,n){var i,r,s=!n||void 0===n.leading||n.leading,o=!n||void 0===n.trailing||n.trailing,a=!1;return{throttled:function(){for(var n=[],l=0;l<arguments.length;l++)n[l]=arguments[l];if(a){i=n;return}s?e.apply(void 0,n):i=n,a=!0,r=ou(function(){o&&i&&e.apply(void 0,i),a=!1,i=void 0},t)},cancel:function(){od(r),a=!1,i=void 0}}}function om(){}function og(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var i=ov(Object.prototype),r=ov(Array.prototype),s=ov(Object.getPrototypeOf(e)),o=ov(e);
1try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{i(),r(),s(),o()}}function ov(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):om}function o_(e){return os({},e)}function oy(e,t){return Object.keys(e).some(function(n){return e[n]===t})}function ob(e){return 0===Object.keys(e).length}function ow(e){var t=0,n=op(function(n){t=ol(og(n)),e()},200),i=n.throttled,r=n.cancel,s=function(){r(),t=0};return{updateCustomerData:function(e){ob(e)?s():i(e)},resetCustomerData:s,getBytesCount:function(){return t},stop:function(){r()}}}function oE(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function oS(e,t,n){if(void 0===n&&(n=function(){if("u">typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var i=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,i)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var r=Array.isArray(e)?e:[],s=0;s<t.length;++s)r[s]=oS(r[s],t[s],n);return r}var o="object"===oE(e)?e:{};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(o[a]=oS(o[a],t[a],n));return o}}function oA(e){return oS(void 0,e)}function oT(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=0;i<t.length;i++){var r=t[i];null!=r&&(e=oS(e,r))}return e}function oC(e,t){void 0===t&&(t=225280);var n=ov(Object.prototype),i=ov(Array.prototype),r=[],s=new WeakMap,o=oI(e,"$",void 0,r,s),a=JSON.stringify(o),l=a?a.length:0;if(l>t)return void oO(t,"discarded",e);for(;r.length>0&&l<t;){var c=r.shift(),u=0;if(Array.isArray(c.source))for(var d=0;d<c.source.length;d++){var f=oI(c.source[d],c.path,d,r,s);if(void 0!==f?l+=JSON.stringify(f).length:l+=4,l+=u,u=1,l>t){oO(t,"truncated",e);break}c.target[d]=f}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var f=oI(c.source[d],c.path,d,r,s);if(void 0!==f&&(l+=JSON.stringify(f).length+u+d.length+3,u=1),l>t){oO(t,"truncated",e);break}c.target[d]=f}}return n(),i(),o}function oI(e,t,n,i,r){var s,o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!o||"object"!=typeof o){return"bigint"==typeof(s=o)?"[BigInt] ".concat(s.toString()):"function"==typeof s?"[Function] ".concat(s.name||"unknown"):"symbol"==typeof s?"[Symbol] ".concat(s.description||s.toString()):s}var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(r.has(e))return"[Reference seen at ".concat(r.get(e),"]");var l=void 0!==n?"".concat(t,".").concat(n):t,c=Array.isArray(o)?[]:{};return r.set(e,l),i.push({source:o,target:c,path:l}),c}function oO(e,t,n){sQ.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var oL=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function oN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new oL(function(t){var n=e.map(function(e){return e.subscribe(function(e){return t.notify(e)})});return function(){return n.forEach(function(e){return e.unsubscribe()})}})}function oP(e){var t={},n=new oL,i={getContext:function(){return oA(t)},setContext:function(r){"object"===oE(r)?(t=oC(r),null==e||e.updateCustomerData(t)):i.clearContext(),n.notify()},setContextProperty:function(i,r){t[i]=oC(r),null==e||e.updateCustomerData(t),n.notify()},removeContextProperty:function(i){delete t[i],null==e||e.updateCustomerData(t),n.notify()},clearContext:function(){t={},null==e||e.resetCustomerData(),n.notify()},changeObservable:n};return i}var ok={GRANTED:"granted",NOT_GRANTED:"not-granted"};function ox(e,t,n,i,r){return oR(e,t,[n],i,r)}function oR(e,t,n,i,r){var s=void 0===r?{}:r,o=s.once,a=s.capture,l=s.passive,c=s4(function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(o&&h(),i(t))}),u=l?{capture:a,passive:l}:a,d=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,f=oc(d,"addEventListener");function h(){var e=oc(d,"removeEventListener");
1n.forEach(function(n){return e.call(t,n,c,u)})}return n.forEach(function(e){return f.call(t,e,c,u)}),{stop:h}}var oM=[];function oD(e,t,n,i){var r,s,o=(r=n,s=i,"".concat("_dd_c","_").concat(r,"_").concat(s));function a(){var e=localStorage.getItem(o);return null!==e?JSON.parse(e):{}}oM.push(ox(e,window,"storage",function(e){o===e.key&&t.setContext(a())})),t.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(t.getContext()))}),t.setContext(oT(a(),t.getContext()))}function oU(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,i){var r=ol(n);t+=r,e+=n,i&&i(r)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}function oB(e){var t=[],n=oK(e,"stack"),i=String(e);return n&&or(n,i)&&(n=n.slice(i.length)),n&&n.split("\n").forEach(function(e){var n=function(e){var t=oH.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("native"),i=t[2]&&0===t[2].indexOf("eval"),r=oj.exec(t[2]);return i&&r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}(e)||function(e){var t=oG.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=oq.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){var t=o$.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,i=oz.exec(t[3]);return n&&i&&(t[3]=i[1],t[4]=i[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),{message:oK(e,"message"),name:oK(e,"name"),stack:t}}var oF="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",oV="(?::(\\d+))",oH=RegExp("^\\s*at (.*?) ?\\(".concat(oF).concat(oV,"?").concat(oV,"?\\)?\\s*$"),"i"),oj=new RegExp("\\((\\S*)".concat(oV).concat(oV,"\\)")),oG=RegExp("^\\s*at ?".concat(oF).concat(oV,"?").concat(oV,"??\\s*$"),"i"),oq=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,o$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,oz=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function oK(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var oW=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function oY(){var e,t=Error();if(!t.stack)try{throw t}catch(e){}return s8(function(){var n=oB(t);n.stack=n.stack.slice(2),e=oX(n)}),e}function oX(e){var t=oJ(e);return e.stack.forEach(function(e){var n="?"===e.func?"<anonymous>":e.func,i=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",r=e.line?":".concat(e.line):"",s=e.line&&e.column?":".concat(e.column):"";t+="\n  at ".concat(n).concat(i," @ ").concat(e.url).concat(r).concat(s)}),t}function oJ(e){return"".concat(e.name||"Error",": ").concat(e.message)}var oQ="No stack, consider using an instance of Error";function oZ(e){var t,n,i,r,s,o,a=e.stackTrace,l=e.originalError,c=e.handlingStack,u=e.startClocks,d=e.nonErrorPrefix,f=e.source,h=e.handling,p=o1(l),m=(t=a,n=p,i=d,r=l,(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:n?"Empty message":"".concat(i," ").concat(og(oC(r)))),g=(s=p,void 0!==(o=a)&&(s||o.stack.length>0&&(o.stack.length>1||void 0!==o.stack[0].url)))?oX(a):oQ,v=p?o2(l,f):void 0,_=a?a.name:void 0,y=o0(l);return{startClocks:u,source:f,handling:h,handlingStack:c,originalError:l,type:_,message:m,stack:g,causes:v,fingerprint:y}}function o0(e){return o1(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function o1(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function o2(e,t){for(var n=e,i=[];o1(null==n?void 0:n.cause)&&i.length<10;){var r=oB(n.cause);i.push({message:n.cause.message,source:t,type:null==r?void 0:r.name,stack:r&&oX(r)}),n=n.cause}return i.length?i:void 0}(I=s||(s={})).WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",I.REMOTE_CONFIGURATION="remote_configuration",I.LONG_ANIMATION_FRAME="long_animation_frame",I.ANONYMOUS_USER_TRACKING="anonymous_user_tracking",I.ACTION_NAME_MASKING="action_name_masking",I.CONSISTENT_TRACE_SAMPLING="consistent_trace_sampling",I.DELAY_VIEWPORT_COLLECTION="delay_viewport_collection";var o3=new Set;function o6(e){return o3.has(e)}var o5="datad0g.com",o4="datadoghq.com",o8=["ddsource","ddtags"];function o9(e){return 0!==e&&100*Math.random()<=e}function o7(e,t){return+e.toFixed(t)}function ae(e){return"number"==typeof e}var at=31536e6;function an(e){var t,n,i;return{relative:e,timeStamp:(t=e,(n=ar()-performance.now())>al()?Math.round(function(e,t){return e+t}(n,t)):(i=t,Math.round(al()+i)))}}function ai(e){return ae(e)?o7(1e6*e,0):e}function ar(){return new Date().getTime()}function as(){return performance.now()}function ao(){return{relative:as(),timeStamp:ar()}}function aa(){return{relative:0,timeStamp:al()}}function al(){return void 0===o&&(o=performance.timing.navigationStart),o}function ac(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function au(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null==(e=t.connection)?void 0:e.effectiveType}}function ad(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function af(){var e=[];return{add:function(t){e.push(t)>500&&e.splice(0,1)},remove:function(t){ad(e,t)},drain:function(t){e.forEach(function(e){return e(t)}),e.length=0}}}var ah="configuration",ap="usage",am=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],ag=["ddog-gov.com"],av=af(),a_=function(e){av.add(function(){return a_(e)})};function ay(e,t){s9(sW.debug,e,t),a_(os({type:"log",message:e,status:"debug"},t))}function ab(e,t){a_(os({type:"log",status:"error"},function(e){if(o1(e)){var t,n=oB(e);return{error:{kind:n.name,stack:oX(((t=n).stack=t.stack.filter(function(e){return!e.url||am.some(function(t){return or(e.url,t)})}),t))},message:n.message}}return{error:{stack:oQ},message:"".concat("Uncaught"," ").concat(og(e))}}(e),t))}function aw(e){a_({type:ap,usage:e})}function aE(e){var t=os({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}function aS(e,t){t.silentMultipleInit||sQ.error("".concat(e," is already initialized."))}function aA(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,aA)}var aT=/([\w-]+)\s*=\s*([^;]+)/g;function aC(e,t){for(aT.lastIndex=0;;){var n=aT.exec(e);if(n){if(n[1]===t)return n[2]}else break}}
1function aI(e,t,n){void 0===n&&(n="");var i=e.charCodeAt(t-1),r=i>=55296&&i<=56319?t+1:t;return e.length<=r?e:"".concat(e.slice(0,r)).concat(n)}function aO(e,t,n){var i=e.vitalsByName,r=e.vitalsByReference;void 0===n&&(n={});var s={name:t,startClocks:ao(),context:n.context,description:n.description},o={__dd_vital_reference:!0};return i.set(t,s),r.set(o,s),o}function aL(e,t,n,i){var r,s,o,a,l,c,u=t.vitalsByName,d=t.vitalsByReference;void 0===i&&(i={});var f="string"==typeof n?u.get(n):d.get(n);f&&(e((r=f,s=f.startClocks,o=i,a=ao(),{name:r.name,type:"duration",startClocks:s,duration:(c=s.timeStamp,a.timeStamp-c),context:oT(r.context,o.context),description:null!=(l=o.description)?l:r.description})),"string"==typeof n?u.delete(n):d.delete(n))}function aN(){var e=oo().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,i){e.send(JSON.stringify({eventType:t,event:n,view:i?{id:i}:void 0}))}}}function aP(e){void 0===e&&(e=null==(t=oo().location)?void 0:t.hostname);var t,n=aN();return!!n&&n.getAllowedWebViewHosts().some(function(t){var n,i;return e===t||(n=e,i=".".concat(t),n.slice(-i.length)===i)})}function ak(e,t,n,i){var r=(void 0===i?{}:i).computeHandlingStack,s=e[t];if("function"!=typeof s)if(!(t in e&&or(t,"on")))return{stop:om};else s=om;var o=!1,a=function(){if(o)return s.apply(this,arguments);var e,t=oe(arguments);s8(n,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:r?oY():void 0}]);var i=s.apply(this,t);return e&&s8(e,null,[i]),i};return e[t]=a,{stop:function(){o=!0,e[t]===a&&(e[t]=s)}}}function ax(e){return aR(e,location.href).href}function aR(e,t){var n=function(){if(void 0===a)try{var e=new aM("http://test/path");a="http://test/path"===e.href}catch(e){a=!1}return a?aM:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(og({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var i=document,r=i.createElement("a");if(void 0!==t){var s=(i=document.implementation.createHTMLDocument("")).createElement("base");s.href=t,i.head.appendChild(s),i.body.appendChild(r)}return r.href=e,r}var aM=URL;function aD(){return l||(l=new oL(function(e){if(window.fetch)return ak(window,"fetch",function(t){var n,i,r,s,o,a,l,c,u,d,f;return n=t,i=e,r=n.parameters,s=n.onPostCall,o=n.handlingStack,a=r[0],void 0===(c=(l=r[1])&&l.method)&&a instanceof Request&&(c=a.method),u=void 0!==c?String(c).toUpperCase():"GET",d=a instanceof Request?a.url:ax(String(a)),f={state:"start",init:l,input:a,method:u,startClocks:ao(),url:d,handlingStack:o},void(i.notify(f),r[0]=f.input,r[1]=f.init,s(function(e){var t=i,n=e,r=f;function s(e){r.state="resolve",os(r,e),t.notify(r)}n.then(s4(function(e){s({response:e,responseType:e.type,status:e.status,isAborted:!1})}),s4(function(e){var t,n;s({status:0,isAborted:(null==(n=null==(t=r.init)?void 0:t.signal)?void 0:n.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}))}))},{computeHandlingStack:!0}).stop})),l}function aU(e,t,n,i){void 0===n&&(n=0);var r=new Date;r.setTime(r.getTime()+n);var s="expires=".concat(r.toUTCString()),o=i&&i.crossSite?"none":"strict",a=i&&i.domain?";domain=".concat(i.domain):"",l=i&&i.secure?";secure":"",c=i&&i.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(s,";path=/;samesite=").concat(o).concat(a).concat(l).concat(c)}function aB(e){return aC(document.cookie,e)}function aF(e){return c||(c=function(e){var t=new Map;for(aT.lastIndex=0;;){var n=aT.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),c.get(e)}function aV(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||aF("datadog-synthetics-injects-rum"))}function aH(){var e,t,n;return null!=d?d:(void 0===e&&(e=window),n=e.navigator.userAgent,d=e.chrome||/HeadlessChrome/.test(n)?1:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:3*!e.document.documentMode)}var aj="_dd_s",aG=144e5,aq=9e5,a$="cookie",az="local-storage",aK=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function aW(e){var t={isExpired:"1"};return o6(s.ANONYMOUS_USER_TRACKING)&&((null==e?void 0:e.anonymousId)?t.anonymousId=null==e?void 0:e.anonymousId:t.anonymousId=Math.floor(0x20000000000000*Math.random()).toString(36)),t}function aY(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||ar()-Number(t.created)<aG)&&(void 0===t.expire||ar()<Number(t.expire)))}
1function aX(e){e.expire=String(ar()+aq)}function aJ(e){return oi(e).map(function(e){var t=e[0],n=e[1];return"anonymousId"===t?"aid=".concat(n):"".concat(t,"=").concat(n)}).join("&")}function aQ(e){var t={};return e&&(-1!==e.indexOf("&")||aK.test(e))&&e.split("&").forEach(function(e){var n=aK.exec(e);if(null!==n){var i=n[1],r=n[2];"aid"===i?t.anonymousId=r:t[i]=r}}),t}function aZ(e){var t,n,i=((n={}).secure=!!(t=e).useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,n.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,n.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(n.domain=function(){if(void 0===u){for(var e="dd_site_test_".concat(aA()),t=window.location.hostname.split("."),n=t.pop();t.length&&!aB(e);)aU(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});aU(e,"",0,{domain:n}),u=n}return u}()),n);return!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(aA()),n="test";aU(t,n,6e4,e);var i=aB(t)===n;return aU(t,"",0,e),i}catch(e){return sQ.error(e),!1}}(i)?void 0:{type:a$,cookieOptions:i}}function a0(){return aQ(aB(aj))}function a1(){try{var e=aA(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:az}:void 0}catch(e){return}}function a2(e){localStorage.setItem(aj,aJ(e))}function a3(){return aQ(localStorage.getItem(aj))}function a6(e){a2(aW(e))}var a5=[];function a4(e,t,n){void 0===n&&(n=0);var i,r,s=t.isLockEnabled,o=t.persistSession,a=t.expireSession,l=function(e){return o(os({},e,{lock:r}))},c=function(){var e=t.retrieveSession(),n=e.lock;return e.lock&&delete e.lock,{session:e,lock:n}};if(f||(f=e),e!==f)return void a5.push(e);if(s&&n>=100)return void a9(t);var u=c();if(s&&(u.lock||(r=aA(),l(u.session),(u=c()).lock!==r)))return void a8(e,t,n);var d=e.process(u.session);if(s&&(u=c()).lock!==r)return void a8(e,t,n);if(d&&(aY(d)?a(d):(aX(d),s?l(d):o(d))),s&&!(d&&aY(d))){if((u=c()).lock!==r)return void a8(e,t,n);o(u.session),d=u.session}null==(i=e.after)||i.call(e,d||u.session),a9(t)}function a8(e,t,n){ou(function(){a4(e,t,n+1)},10)}function a9(e){f=void 0;var t=a5.shift();t&&a4(t,e)}function a7(e,t,n){var i=function(e,t){var n="/api/v2/".concat(t),i=e.proxy;if("string"==typeof i){var r=ax(i);return function(e){return"".concat(r,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof i)return function(e){return i({path:n,parameters:e})};var s=function(e,t){var n=t.site,i=void 0===n?o4:n,r=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&i===o4)return"pci.browser-intake-datadoghq.com";if(r&&i===o4)return"".concat(r,".").concat(o4);if("dd0g-gov.com"===i)return"http-intake.logs.".concat(i);var s=i.split("."),o=s.pop();return"browser-intake-".concat(s.join("-"),".").concat(o)}(t,e);return function(e){return"https://".concat(s).concat(n,"?").concat(e)}}(e,t);return{build:function(r,s){var o,a,l,c,u,d,f,h,p,m,g;return i((o=e,a=t,l=n,c=r,u=s,d=o.clientToken,f=o.internalAnalyticsSubdomain,h=u.retry,p=u.encoding,m=["sdk_version:".concat("5.35.1"),"api:".concat(c)].concat(l),h&&m.push("retry_count:".concat(h.count),"retry_after:".concat(h.lastFailureStatus)),g=["ddsource=browser","ddtags=".concat(encodeURIComponent(m.join(","))),"dd-api-key=".concat(d),"dd-evp-origin-version=".concat(encodeURIComponent("5.35.1")),"dd-evp-origin=browser","dd-request-id=".concat(aA())],p&&g.push("dd-evp-encoding=".concat(p)),"rum"===a&&g.push("batch_time=".concat(ar())),f&&g.reverse(),g.join("&")))},urlPrefix:i(""),trackType:t}}function le(e,t){var n,i=200-e.length-1;(t.length>i||(n=t,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(n)))&&sQ.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(s1," ").concat(sZ,"/getting_started/tagging/#defining-tags"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}var lt={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},ln={ALL:"all",SAMPLED:"sampled"};function li(e,t){return null==e||"string"==typeof e||(sQ.error("".concat(t," must be defined as a string")),!1)}function lr(e,t){return void 0===e||!!(ae(e)&&e>=0&&e<=100)||(sQ.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1)}function ls(e){var t=oE(e);return"string"===t||"function"===t||e instanceof RegExp}function lo(e,t,n){return void 0===n&&(n=!1),e.some(function(e){try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return n?or(t,e):e===t}catch(e){sQ.error(e)}return!1})}function la(){return window.crypto||window.msCrypto}function ll(e){return h||(h=o6(s.CONSISTENT_TRACE_SAMPLING)&&function(){try{return crypto.getRandomValues(new BigUint64Array(1)),!0}catch(e){return!1}}()?lc:lu),h(e)}function lc(e){var t=crypto.getRandomValues(new BigUint64Array(1))[0];return 63===e&&(t>>=BigInt("1")),t}function lu(e){var t=la().getRandomValues(new Uint32Array(2));return 63===e&&(t[t.length-1]>>>=1),{toString:function(e){void 0===e&&(e=10);var n=t[1],i=t[0],r="";do{var s=n%e*0x100000000+i;n=Math.floor(n/e),i=Math.floor(s/e),r=(s%e).toString(e)+r}while(n||i);return r}}}function ld(e){var t=e.toString(16);return Array(17-t.length).join("0")+t}function lf(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function lh(e,t,n,i){if(void 0!==la()&&n.findTrackedSession()){var r=ot(e.allowedTracingUrls,function(e){return lo([e.match],t.url,!0)});if(r){var s,o,a,l,c,u=ll(64);t.traceSampled=function(e,t){if(100===t)return!0;
1if(0===t)return!1;if("bigint"!=typeof e)return o9(t);var n=BigInt("1111111111111111111"),i=BigInt("0x10000000000000000");return Number(e*n%i)<=t/100*Number(i)}(u,e.traceSampleRate),(t.traceSampled||e.traceContextInjection===ln.ALL)&&(t.traceId=u,t.spanId=ll(63),i((s=t.traceId,o=t.spanId,a=t.traceSampled,l=r.propagatorTypes,c={},l.forEach(function(e){switch(e){case"datadog":os(c,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":s.toString()});break;case"tracecontext":os(c,{traceparent:"00-0000000000000000".concat(ld(s),"-").concat(ld(o),"-0").concat(a?"1":"0")});break;case"b3":os(c,{b3:"".concat(ld(s),"-").concat(ld(o),"-").concat(a?"1":"0")});break;case"b3multi":os(c,{"X-B3-TraceId":ld(s),"X-B3-SpanId":ld(o),"X-B3-Sampled":a?"1":"0"})}}),c)))}}}var lp=["tracecontext","datadog"];function lm(){sQ.error("Error fetching the remote configuration.")}var lg={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"},lv="agent";function l_(e,t,n){var i=0,r=!1;return{isLimitReached:function(){if(0===i&&ou(function(){i=0},6e4),(i+=1)<=t||r)return r=!1,!1;if(i===t+1){r=!0;try{n({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:lv,startClocks:ao()})}finally{r=!1}}return!0}}}function ly(e,t,n){for(var i=e,r=t.split("."),s=0;s<r.length;s+=1){var o=r[s];if(!lb(i))return;s!==r.length-1?i=i[o]:i[o]=n}}function lb(e){return"object"===oE(e)}var lw={"view.name":"string","view.url":"string","view.referrer":"string"},lE={context:"object"},lS={service:"string",version:"string"},lA=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(e){return t!==e})}}},e}(),lT=1/0;function lC(e){var t=e.expireDelay,n=e.maxEntries,i=[],r=of(function(){for(var e=as()-t;i.length>0&&i[i.length-1].endTime<e;)i.pop()},6e4);return{add:function(e,t){var r={value:e,startTime:t,endTime:lT,remove:function(){ad(i,r)},close:function(e){r.endTime=e}};return n&&i.length>=n&&i.pop(),i.unshift(r),r},find:function(e,t){void 0===e&&(e=lT),void 0===t&&(t={returnInactive:!1});for(var n=0,r=i;n<r.length;n++){var s=r[n];if(s.startTime<=e){if(t.returnInactive||e<=s.endTime)return s.value;break}}},closeActive:function(e){var t=i[0];t&&t.endTime===lT&&t.close(e)},findAll:function(e,t){void 0===e&&(e=lT),void 0===t&&(t=0);var n=e+t;return i.filter(function(t){return t.startTime<=n&&e<=t.endTime}).map(function(e){return e.value})},reset:function(){i=[]},stop:function(){oh(r)}}}var lI=new WeakMap;function lO(e){var t=e.target,n=e.parameters,i=n[0],r=n[1];lI.set(t,{state:"open",method:String(i).toUpperCase(),url:ax(String(r))})}function lL(e){var t=e.target,n=lI.get(t);n&&(n.isAborted=!0)}var lN="initial_document",lP=[["document",function(e){return lN===e}],["xhr",function(e){return"xmlhttprequest"===e}],["fetch",function(e){return"fetch"===e}],["beacon",function(e){return"beacon"===e}],["css",function(e,t){return/\.css$/i.test(t)}],["js",function(e,t){return/\.js$/i.test(t)}],["image",function(e,t){return s7(["image","img","icon"],e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)}],["font",function(e,t){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)}],["media",function(e,t){return s7(["audio","video"],e)||null!==/\.(mp3|mp4)$/i.exec(t)}]];function lk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=1;n<e.length;n+=1)if(e[n-1]>e[n])return!1;return!0}function lx(e){return e.duration>=0}function lR(e){var t,n=lk(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),i=!((t=e).redirectEnd>t.startTime)||lk(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return n&&i}function lM(e,t,n){if(e<=t&&t<=n)return{duration:ai(n-t),start:ai(t-e)}}function lD(e){return""===e.nextHopProtocol?void 0:e.nextHopProtocol}function lU(e){return""===e.deliveryType?"other":e.deliveryType}function lB(e){return e&&!o8.every(function(t){return s7(e,t)})}var lF=/data:(.+)?(;base64)?,/g,lV=1;function lH(){var e=lV;return lV+=1,e}function lj(e){return ae(e)&&e<0?void 0:e}
1function lG(e){var t=e.lifeCycle,n=e.isChildEvent,i=e.onChange,r=void 0===i?om:i,s={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=t.subscribe(13,function(e){var t;if("view"!==e.type&&"vital"!==e.type&&n(e))switch(e.type){case"error":s.errorCount+=1,r();break;case"action":s.actionCount+=1,e.action.frustration&&(s.frustrationCount+=e.action.frustration.type.length),r();break;case"long_task":s.longTaskCount+=1,r();break;case"resource":(null==(t=e._dd)?void 0:t.discarded)||(s.resourceCount+=1,r())}});return{stop:function(){o.unsubscribe()},eventCounts:s}}function lq(e,t){return new oL(function(n){if(window.PerformanceObserver){var i,r,s,o=function(e){var t=e.filter(function(e){var t;return!((t=e).entryType===g.RESOURCE&&(!lB(t.name)||!lx(t)))});t.length>0&&n.notify(t)},a=!0,l=new PerformanceObserver(s4(function(e){a?r=ou(function(){return o(e.getEntries())}):o(e.getEntries())}));try{l.observe(t)}catch(e){if(s7([g.RESOURCE,g.NAVIGATION,g.LONG_TASK,g.PAINT],t.type)){t.buffered&&(r=ou(function(){return o(performance.getEntriesByType(t.type))}));try{l.observe({entryTypes:[t.type]})}catch(e){return}}}return a=!1,i=e,!v&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(v=ox(i,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),l$(g.FIRST_INPUT)||t.type!==g.FIRST_INPUT||(s=function(e,t){var n=ar(),i=!1,r=oR(e,window,["click","mousedown","keydown","touchstart","pointerdown"],function(t){if(t.cancelable){var n,i,r={entryType:"first-input",processingStart:as(),processingEnd:as(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===t.type?(n=e,i=r,oR(n,window,["pointerup","pointercancel"],function(e){"pointerup"===e.type&&s(i)},{once:!0})):s(r)}},{passive:!0,capture:!0}).stop;return{stop:r};function s(e){if(!i){i=!0,r();var s=e.processingStart-e.startTime;s>=0&&s<ar()-n&&t(e)}}}(e,function(e){o([e])}).stop),function(){l.disconnect(),s&&s(),od(r)}}})}function l$(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}(O=g||(g={})).EVENT="event",O.FIRST_INPUT="first-input",O.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",O.LAYOUT_SHIFT="layout-shift",O.LONG_TASK="longtask",O.LONG_ANIMATION_FRAME="long-animation-frame",O.NAVIGATION="navigation",O.PAINT="paint",O.RESOURCE="resource";function lz(e,t,n){var i,r=!1,s=ou(s4(function(){return c({hadActivity:!1})}),100),o=void 0!==n?ou(s4(function(){return c({hadActivity:!0,end:ar()})}),n):void 0,a=e.subscribe(function(e){var t=e.isBusy;od(s),od(i);var n=ar();t||(i=ou(s4(function(){return c({hadActivity:!0,end:n})}),100))}),l=function(){r=!0,od(s),od(i),od(o),a.unsubscribe()};function c(e){r||(l(),t(e))}return{stop:l}}function lK(e,t,n,i){return new oL(function(r){var s,o=[],a=0;return o.push(t.subscribe(l),n.subscribe(l),lq(i,{type:g.RESOURCE}).subscribe(function(e){e.some(function(e){return!lW(i,e.name)})&&l()}),e.subscribe(7,function(e){lW(i,e.url)||(void 0===s&&(s=e.requestIndex),a+=1,l())}),e.subscribe(8,function(e){lW(i,e.url)||void 0===s||e.requestIndex<s||(a-=1,l())})),function(){o.forEach(function(e){return e.unsubscribe()})};function l(){r.notify({isBusy:a>0})}})}function lW(e,t){return lo(e.excludedActivityUrls,t)}function lY(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)})}function lX(e,t){return e.matches?e.matches(t):!!e.msMatchesSelector&&e.msMatchesSelector(t)}function lJ(e){if(e.parentElement)return e.parentElement;for(;e.parentNode;){if(e.parentNode.nodeType===Node.ELEMENT_NODE)return e.parentNode;e=e.parentNode}return null}var lQ=function(){function e(e){var t=this;this.map=new WeakMap,e&&e.forEach(function(e){return t.map.set(e,1)})}return e.prototype.add=function(e){return this.map.set(e,1),this},e.prototype.delete=function(e){return this.map.delete(e)},e.prototype.has=function(e){return this.map.has(e)},e}();
1function lZ(e){return e.nodeType===Node.ELEMENT_NODE}var l0={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:lt.ALLOW,MASK:lt.MASK,MASK_USER_INPUT:lt.MASK_USER_INPUT};function l1(e){return"[".concat("data-dd-privacy",'="').concat(e,'"], .').concat("dd-privacy-").concat(e)}var l2="data-dd-action-name";function l3(e,t){if(void 0===y&&(y="closest"in HTMLElement.prototype),y)n=e.closest("[".concat(t,"]"));else for(var n,i=e;i;){if(i.hasAttribute(t)){n=i;break}i=lJ(i)}if(n)return l9(l8(n.getAttribute(t).trim()))}var l6=[function(e,t,n){if(void 0===_&&(_="labels"in HTMLInputElement.prototype),_){if("labels"in e&&e.labels&&e.labels.length>0)return ce(e.labels[0],t)}else if(e.id){var i=e.ownerDocument&&ot(e.ownerDocument.querySelectorAll("label"),function(t){return t.htmlFor===e.id});return i&&ce(i,t,n)}},function(e){if("INPUT"===e.nodeName){var t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},function(e,t,n){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return ce(e,t,n)},function(e){return l7(e,"aria-label")},function(e,t,n){var i=e.getAttribute("aria-labelledby");if(i)return{name:i.split(/\s+/).map(function(t){var n,i;return n=e,i=t,n.ownerDocument?n.ownerDocument.getElementById(i):null}).filter(function(e){return!!e}).map(function(e){return ct(e,t,n)}).join(" "),nameSource:"text_content"}},function(e){return l7(e,"alt")},function(e){return l7(e,"name")},function(e){return l7(e,"title")},function(e){return l7(e,"placeholder")},function(e,t){if("options"in e&&e.options.length>0)return ce(e.options[0],t)}],l5=[function(e,t,n){return ce(e,t,n)}];function l4(e,t,n,i){for(var r=e,s=0;s<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0;o<n.length;o++){var a=(0,n[o])(r,t,i);if(a){var l=a.name,c=a.nameSource,u=l&&l.trim();if(u)return{name:l9(l8(u)),nameSource:c}}}if("FORM"===r.nodeName)break;r=lJ(r),s+=1}}function l8(e){return e.replace(/\s+/g," ")}function l9(e){return e.length>100?"".concat(aI(e,100)," [...]"):e}function l7(e,t){return{name:e.getAttribute(t)||"",nameSource:"standard_attribute"}}function ce(e,t,n){return{name:ct(e,t,n)||"",nameSource:"text_content"}}function ct(e,t,n){if(!e.isContentEditable){if("innerText"in e){var i=e.innerText,r=function(t){for(var n=e.querySelectorAll(t),r=0;r<n.length;r+=1){var s=n[r];if("innerText"in s){var o=s.innerText;o&&o.trim().length>0&&(i=i.replace(o,""))}}};return 0===aH()&&r("script, style"),r("[".concat(l2,"]")),t&&r("[".concat(t,"]")),n&&r("".concat(l1(l0.HIDDEN),", ").concat(l1(l0.MASK))),i}return e.textContent}}var cn=[l2,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ci=[ca,function(e){if(e.id&&!co(e.id))return"#".concat(lY(e.id))}],cr=[ca,function(e){if("BODY"!==e.tagName)for(var t=function(e){if(e.classList)return e.classList;var t=(e.getAttribute("class")||"").trim();return t?t.split(/\s+/):[]}(e),n=0;n<t.length;n+=1){var i=t[n];if(!co(i))return"".concat(lY(e.tagName),".").concat(lY(i))}},function(e){return lY(e.tagName)}];function cs(e,t){var n;if("isConnected"in(n=e)?n.isConnected:n.ownerDocument.documentElement.contains(n)){for(var i,r=e;r&&"HTML"!==r.nodeName;){var s=cl(r,ci,cc,t,i);if(s)return s;i=cl(r,cr,cu,t,i)||cd(function(e){for(var t=lJ(e).firstElementChild,n=1;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return"".concat(lY(e.tagName),":nth-of-type(").concat(n,")")}(r),i),r=lJ(r)}return i}}function co(e){return/[0-9]/.test(e)}function ca(e,t){if(t){var n=r(t);if(n)return n}for(var i=0;i<cn.length;i++){var n=r(cn[i]);if(n)return n}function r(t){if(e.hasAttribute(t))return"".concat(lY(e.tagName),"[").concat(t,'="').concat(lY(e.getAttribute(t)),'"]')}}function cl(e,t,n,i,r){for(var s=0;s<t.length;s++){var o=(0,t[s])(e,i);if(o&&n(e,o,r))return cd(o,r)}}function cc(e,t,n){return 1===e.ownerDocument.querySelectorAll(cd(t,n)).length}function cu(e,t,n){if(void 0===n)i=function(e){return lX(e,t)};else{var i,r=!function(){if(void 0===b)try{document.querySelector(":scope"),b=!0}catch(e){b=!1}return b}()?cd(t,n):cd("".concat(t,":scope"),n);i=function(e){return null!==e.querySelector(r)}}for(var s=lJ(e).firstElementChild;s;){if(s!==e&&i(s))return!1;s=s.nextElementSibling}return!0}function cd(e,t){return t?"".concat(e,">").concat(t):e}function cf(){var e=window.getSelection();return!e||e.isCollapsed}function ch(e){return e.target instanceof Element&&!1!==e.isPrimary}function cp(e){return!e.hasPageActivity&&!e.getUserActivity().input&&!e.getUserActivity().scroll&&!lX(e.event.target,'input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}var cm=new Map;function cg(e,t){cm.set(e,t),cm.forEach(function(e,t){as()-t>1e4&&cm.delete(t)})}var cv=3e5;function c_(e,t){var n=cy(e)?{action:{id:e.id,loading_time:lj(ai(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:o6(s.ACTION_NAME_MASKING)?e.nameSource:void 0}}}:void 0,i=cy(e)?void 0:e.context,r=oT({action:{id:aA(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},n),o=cy(e)?{events:e.events}:{};return!cy(e)&&e.handlingStack&&(o.handlingStack=e.handlingStack),{customerContext:i,rawRumEvent:r,startTime:e.startClocks.relative,domainContext:o}}function cy(e){return"custom"!==e.type}var cb={},cw="csp_violation";function cE(e){return os({startClocks:ao(),source:"report",handling:"unhandled"},e)}function cS(e,t,n,i,r){return n?oX({name:e,message:t,stack:[{func:"?",url:n,line:null!=i?i:void 0,column:null!=r?r:void 0}]}):void 0}var cA=new lQ;function cT(e){return e.startTime+e.duration}function cC(e,t,n){return document.readyState===t||"complete"===document.readyState?(n(),{stop:om}):ox(e,window,"complete"===t?"load":"DOMContentLoaded",n,{once:!0})}var cI=12e4;function cO(e,t){var n=t&&Number(t);if(e&&n)return{traceId:e,traceTime:n}}function cL(e){if(e&&e.nodeType===Node.COMMENT_NODE){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function cN(){if(l$(g.NAVIGATION)){var e=performance.getEntriesByType(g.NAVIGATION)[0];if(e)return e}var t=function(){var e={},t=performance.timing;for(var n in t)if(ae(t[n])){var i=t[n];e[n]=0===i?0:i-al()}return e}(),n=os({entryType:g.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:function(){return os({},n,{toJSON:void 0})}},t);return n}function cP(e,t){cC(e,"interactive",function(){var e=os(cN().toJSON(),{entryType:g.RESOURCE,initiatorType:lN,traceId:function(e){var t,n,i,r=(n=(t=e).querySelector("meta[name=dd-trace-id]"),i=t.querySelector("meta[name=dd-trace-time]"),cO(n&&n.c
1ontent,i&&i.content)||function(e){var t=function(e){for(var t=0;t<e.childNodes.length;t+=1){var n=cL(e.childNodes[t]);if(n)return n}if(e.body)for(var t=e.body.childNodes.length-1;t>=0;t-=1){var i=e.body.childNodes[t],n=cL(i);if(n)return n;if(i.nodeType!==Node.TEXT_NODE)break}}(e);if(t)return cO(aC(t,"trace-id"),aC(t,"trace-time"))}(e));if(!(!r||r.traceTime<=ar()-cI))return r.traceId}(document),toJSON:function(){return os({},e,{toJSON:void 0})}});t(e)})}function ck(e,t){var n=an(e.startTime),i=function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:ll(63).toString(),rule_psr:t.rulePsr}}}(e,t);if(t.trackResources||i){var r,s=function(e){var t,n=e.name;if(!function(e){try{return!!aR(e)}catch(e){return!1}}(n))return ay('Failed to construct URL for "'.concat(e.name,'"')),"other";for(var i="/"===(t=aR(n).pathname)[0]?t:"/".concat(t),r=0;r<lP.length;r++){var s=lP[r],o=s[0];if((0,s[1])(e.initiatorType,i))return o}return"other"}(e),o=cx(e),a=oT({date:n.timeStamp,resource:{id:aA(),type:s,url:e.name,status_code:0===(r=e.responseStatus)?void 0:r,protocol:lD(e),delivery_type:lU(e)},type:"resource",_dd:{discarded:!t.trackResources}},i,o);return{startTime:n.relative,rawRumEvent:a,domainContext:{performanceEntry:e}}}}function cx(e){var t,n,i,r,s=e.renderBlockingStatus;return{resource:os({duration:(n=(t=e).duration,i=t.startTime,r=t.responseEnd,0===n&&i<r?ai(r-i):ai(n)),render_blocking_status:s},function(e){if(e.startTime<e.responseStart){var t=e.encodedBodySize,n=e.decodedBodySize;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:e.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(e),function(e){if(lR(e)){var t=e.startTime,n=e.fetchStart,i=e.workerStart,r=e.redirectStart,s=e.redirectEnd,o=e.domainLookupStart,a=e.domainLookupEnd,l=e.connectStart,c=e.secureConnectionStart,u=e.connectEnd,d=e.requestStart,f=e.responseStart,h={download:lM(t,f,e.responseEnd),first_byte:lM(t,d,f)};return 0<i&&i<n&&(h.worker=lM(t,i,n)),n<u&&(h.connect=lM(t,l,u),l<=c&&c<=u&&(h.ssl=lM(t,c,u))),n<a&&(h.dns=lM(t,o,a)),t<s&&(h.redirect=lM(t,r,s)),h}}(e))}}var cR=6e5,cM=6e5;function cD(e,t){var n,i;return void 0===t&&(t=window),"hidden"===document.visibilityState?n=0:(n=1/0,i=oR(e,t,["pagehide","visibilitychange"],function(e){("pagehide"===e.type||"hidden"===document.visibilityState)&&(n=e.timeStamp,i())},{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==i||i()}}}var cU=0,cB=1/0,cF=0,cV=function(){return w?cU:window.performance.interactionCount||0},cH=6e4;function cj(){var e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var cG=3e5,cq=3e5;function c$(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}var cz=[];function cK(e){return"2"===e||"1"===e}function cW(e){var t=e.encoder,n=e.request,i=e.flushController,r=e.messageBytesLimit,s={},o=i.flushObservable.subscribe(function(e){return function(e){var i,r=on(s).join("\n");s={};var o=(i=e.reason,s7(on(lg),i)),a=o?n.sendOnExit:n.send;if(o&&t.isAsync){var l=t.finishSync();l.outputBytesCount&&a(cY(l));var c=[l.pendingData,r].filter(Boolean).join("\n");c&&a({data:c,bytesCount:ol(c)})}else r&&t.write(t.isEmpty?r:"\n".concat(r)),t.finish(function(e){a(cY(e))})}(e)});function a(e,n){var o,a,l=og(e),c=t.estimateEncodedBytesCount(l);c>=r?sQ.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(r,"KB. ").concat(s1," ").concat(s0,"/#technical-limitations")):(void 0!==n&&void 0!==s[n]&&(o=s[n],delete s[n],a=t.estimateEncodedBytesCount(o),i.notifyAfterRemoveMessage(a)),i.notifyBeforeAddMessage(c),void 0!==n?(s[n]=l,i.notifyAfterAddMessage()):t.write(t.isEmpty?l:"\n".concat(l),function(e){i.notifyAfterAddMessage(e-c)}))}return{flushController:i,add:a,upsert:a,stop:o.unsubscribe}}function cY(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var cX=3145728;function cJ(e,t,n,i,r){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?cQ(e,t,n,{onSuccess:function(){return cZ(0,t,n,i,r)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,n,i,r){2===t.transportStatus&&ou(function(){cQ(t.queuedPayloads.first(),t,n,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,cZ(1,t,n,i,r)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,i,r)}})},t.currentBackoffTime)}(t,n,i,r)}}):t.queuedPayloads.enqueue(e)}function cQ(e,t,n,i){var r=i.onSuccess,s=i.onFailure;t.bandwidthMonitor.add(e),n(e,function(n){var i;t.bandwidthMonitor.remove(e),"opaque"!==(i=n).type&&(0===i.status&&!navigator.onLine||408===i.status||429===i.status||i.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},s()):(t.transportStatus=0,r())})}function cZ(e,t,n,i,r){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(r({message:"Reached max ".concat(i," events size queued for upload: ").concat(cX/1048576,"MiB"),source:lv,startClocks:ao()}),t.queueFullReported=!0);var s=t.queuedPayloads;for(t.queuedPayloads=c0();s.size()>0;)cJ(s.dequeue(),t,n,i,r)}function c0(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=cX}}}var c1=!1;function c2(e,t,n){var i=new XMLHttpRequest;i.open("POST",e,!0),t instanceof Blob&&i.setRequestHeader("Content-Type",t.type),ox({allowUntrustedEvents:!0},i,"loadend",function(){null==n||n({status:i.status})},{once:!0}),i.send(t)}function c3(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}function c6(){0!==S.batchCount&&(ay("Customer data measures",S),c9())}function c5(){return{min:1/0,max:0,sum:0}}function c4(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function c8(e,t){e.sum+=t.sum,e.min=Math.min(e.min,t.min),e.max=Math.max(e.max,t.max)}function c9(){S={batchCount:0,batchBytesCount:c5(),batchMessagesCount:c5(),globalContextBytes:c5(),userContextBytes:c5(),featureFlagBytes:c5()}}function c7(){T=!1,A={globalContextBytes:c5(),userContextBytes:c5(),featureFlagBytes:c5()}}function ue(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function ut(e,t){var n=aC(document.cookie,e),i=of(function(){var i=aC(document.cookie,e);i!==n&&t(i)},1e3);return function(){oh(i)}}var un="datadog-ci-visibility-test-execution-id",ui=function(e,t,n){void 0===n&&(n={});var i,r,o,a=function(e){void 0===e&&(e=2);var t=new Map,n=!1;function i(i){if(void 0===i&&(i=0),!n&&0!==e){var r,s=2===e?3072:16384,o=i;t.forEach(function(e){o+=e.getBytesCount()}),o>s&&(r=s,sQ.warn("Customer data exceeds the recommended ".concat(r/1024,"KiB threshold. ").
1concat(s1," ").concat(s0,"/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var e=ow(function(){return i(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,ow(i)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,i())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}(0),l=oP(a.getOrCreateTracker(2)),c=oP(a.getOrCreateTracker(1)),u={tryToInit:function(e){i||(i=e)},update:function(e){i=e,r.notify()},isGranted:function(){return i===ok.GRANTED},observable:r=new oL},d={vitalsByName:new Map,vitalsByReference:new WeakMap};function f(){return{context:l.getContext(),user:c.getContext(),hasReplay:!!t.isRecording()||void 0}}var h=function(e,t,n,i,r){var o,a,l,c,u=e.ignoreInitIfSyntheticsWillInjectRum,d=e.startDeflateWorker,f=af(),h=n.observable.subscribe(p);function p(){if(l&&c&&n.isGranted()){if(h.unsubscribe(),c.trackViewsManually){if(!o)return;f.remove(o.callback),e=o.options}var e,t=r(c,a,e);f.drain(t)}}function m(e){var t,i,r,s,o,u,f,h,m,g=aP();if(g&&(e=os({},t=e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(i=t.defaultPrivacyLevel)?i:null==(r=aN())?void 0:r.getPrivacyLevel()})),l=e,f={session_sample_rate:(o=s=e).sessionSampleRate,telemetry_sample_rate:o.telemetrySampleRate,telemetry_configuration_sample_rate:o.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:o.telemetryUsageSampleRate,use_before_send:!!o.beforeSend,use_cross_site_session_cookie:o.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:o.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:o.useSecureSessionCookie,use_proxy:!!o.proxy,silent_multiple_init:o.silentMultipleInit,track_session_across_subdomains:o.trackSessionAcrossSubdomains,session_persistence:o.sessionPersistence,allow_fallback_to_local_storage:!!o.allowFallbackToLocalStorage,store_contexts_across_pages:!!o.storeContextsAcrossPages,allow_untrusted_events:!!o.allowUntrustedEvents,tracking_consent:o.trackingConsent},m=os({session_replay_sample_rate:s.sessionReplaySampleRate,start_session_replay_recording_manually:s.startSessionReplayRecordingManually,trace_sample_rate:s.traceSampleRate,trace_context_injection:s.traceContextInjection,action_name_attribute:s.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(s.allowedTracingUrls)&&s.allowedTracingUrls.length>0,selected_tracing_propagators:(h=new Set,Array.isArray(s.allowedTracingUrls)&&s.allowedTracingUrls.length>0&&s.allowedTracingUrls.forEach(function(e){ls(e)?lp.forEach(function(e){return h.add(e)}):"object"===oE(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEach(function(e){return h.add(e)})}),oe(h)),default_privacy_level:s.defaultPrivacyLevel,enable_privacy_for_action_name:s.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(s.excludedActivityUrls)&&s.excludedActivityUrls.length>0,use_worker_url:!!s.workerUrl,compress_intake_requests:s.compressIntakeRequests,track_views_manually:s.trackViewsManually,track_user_interactions:s.trackUserInteractions,track_resources:s.trackResources,track_long_task:s.trackLongTasks,plugins:null==(u=s.plugins)?void 0:u.map(function(e){var t;return os({name:e.name},null==(t=e.getConfigurationTelemetry)?void 0:t.call(e))})},f),a_({type:ah,configuration:m}),c)return void aS("DD_RUM",e);var v=function(e){if(!e.applicationId)return void sQ.error("Application ID is not configured, no RUM data will be collected.");if(lr(e.sessionReplaySampleRate,"Session Replay")&&lr(e.traceSampleRate,"Trace")){if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void sQ.error("Excluded Activity Urls should be an array");var t,n,i,r=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void sQ.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void sQ.error("Service needs to be configured when tracing is enabled");var t=[];
1return e.allowedTracingUrls.forEach(function(e){if(ls(e))t.push({match:e,propagatorTypes:lp});else"object"===oE(e)&&ls(e.match)&&Array.isArray(e.propagatorTypes)?t.push(e):sQ.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(r){var s=function(e){var t,n,i,r,s,o,a,l,c,u,d,f,h,p,m,g;if(!e||!e.clientToken)return void sQ.error("Client Token is not configured, we will not send any data.");if((!(o=e.site)||"string"!=typeof o||/(datadog|ddog|datad0g|dd0g)/.test(o)||(sQ.error("Site should be a valid Datadog site. ".concat(s1," ").concat(sZ,"/getting_started/site/.")),0))&&lr(e.sessionSampleRate,"Session")&&lr(e.telemetrySampleRate,"Telemetry")&&lr(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&lr(e.telemetryUsageSampleRate,"Telemetry Usage")&&li(e.version,"Version")&&li(e.env,"Env")&&li(e.service,"Service")){if(void 0!==e.trackingConsent&&!oy(ok,e.trackingConsent))return void sQ.error('Tracking Consent should be either "granted" or "not-granted"');return os({beforeSend:e.beforeSend&&s2(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:function(e){switch(e.sessionPersistence){case a$:return aZ(e);case az:return a1();case void 0:var t=aZ(e);return!t&&e.allowFallbackToLocalStorage&&(t=a1()),t;default:sQ.error("Invalid session persistence '".concat(String(e.sessionPersistence),"'"))}}(e),sessionSampleRate:null!=(t=e.sessionSampleRate)?t:100,telemetrySampleRate:null!=(n=e.telemetrySampleRate)?n:20,telemetryConfigurationSampleRate:null!=(i=e.telemetryConfigurationSampleRate)?i:5,telemetryUsageSampleRate:null!=(r=e.telemetryUsageSampleRate)?r:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(s=e.trackingConsent)?s:ok.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(a=e.site||o4,l=e.env,c=e.service,u=e.version,d=e.datacenter,f=[],l&&f.push(le("env",l)),c&&f.push(le("service",c)),u&&f.push(le("version",u)),d&&f.push(le("datacenter",d)),h=f,p={logsEndpointBuilder:a7(m=e,"logs",g=h),rumEndpointBuilder:a7(m,"rum",g),sessionReplayEndpointBuilder:a7(m,"replay",g)},os({replica:function(e,t){if(e.replica){var n=os({},e,{site:o4,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:a7(n,"logs",t),rumEndpointBuilder:a7(n,"rum",t)};return os({applicationId:e.replica.applicationId},i)}}(e,h),site:a},p)))}}(e);if(s){var o=null!=(t=e.sessionReplaySampleRate)?t:0;return os({applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:o,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===o,traceSampleRate:null!=(n=e.traceSampleRate)?n:100,rulePsr:ae(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:r,excludedActivityUrls:null!=(i=e.excludedActivityUrls)?i:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:oy(lt,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:lt.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:oy(ln,e.traceContextInjection)?e.traceContextInjection:ln.ALL,plugins:e.plugins||[]},s)}}}}(e);if(v){if(!g&&!v.sessionStoreStrategyType)return void sQ.warn("No storage available for session. We will not send any data.");if(v.compressIntakeRequests&&!g&&d&&!(a=d(v,"Datadog RUM",om)))return;c=v,aD().subscribe(om),n.tryToInit(v.trackingConsent),p()}}var g=function(e){f.add(function(t){return t.addDurationVital(e)})};return{init:function(e,t){var n,i,r,o;if(!e)return void sQ.error("Missing configuration");if(Array.isArray(n=e.enableExperimentalFeatures)&&n.filter(function(e){return oy(s,e)}
1).forEach(function(e){o3.add(e)}),l=e,!(u&&aV()))if(!function(e,t,n){if(e)for(var i=0;i<e.length;i++){var r=e[i][t];r&&r(n)}}(e.plugins,"onInit",{initConfiguration:e,publicApi:t}),e.remoteConfigurationId&&o6(s.REMOTE_CONFIGURATION)){i=e,r=function(t){m(os({},e,t))},ox(i,o=new XMLHttpRequest,"load",function(){200===o.status?r(JSON.parse(o.responseText)):lm()}),ox(i,o,"error",function(){lm()}),o.open("GET","".concat("https://d3uc069fcn7uxw.cloudfront.net/configuration","/").concat(encodeURIComponent(i.remoteConfigurationId),".json")),o.send()}else m(e)},get initConfiguration(){return l},getInternalContext:om,stopSession:om,addTiming:function(e,t){void 0===t&&(t=ar()),f.add(function(n){return n.addTiming(e,t)})},startView:function(e,t){void 0===t&&(t=ao());var n=function(n){n.startView(e,t)};f.add(n),o||(o={options:e,callback:n},p())},setViewName:function(e){f.add(function(t){return t.setViewName(e)})},setViewContext:function(e){f.add(function(t){return t.setViewContext(e)})},setViewContextProperty:function(e,t){f.add(function(n){return n.setViewContextProperty(e,t)})},addAction:function(e,n){void 0===n&&(n=t()),f.add(function(t){return t.addAction(e,n)})},addError:function(e,n){void 0===n&&(n=t()),f.add(function(t){return t.addError(e,n)})},addFeatureFlagEvaluation:function(e,t){f.add(function(n){return n.addFeatureFlagEvaluation(e,t)})},startDurationVital:function(e,t){return aO(i,e,t)},stopDurationVital:function(e,t){aL(g,i,e,t)},addDurationVital:g}}(n,f,u,d,function(i,r,s){i.storeContextsAcrossPages&&(oD(i,l,"rum",2),oD(i,c,"rum",1)),a.setCompressionStatus(r?1:2);var o,p,m=e(i,t,a,f,s,r&&n.createDeflateEncoder?function(e){return n.createDeflateEncoder(i,r,e)}:oU,u,d);return t.onRumStart(m.lifeCycle,i,m.session,m.viewHistory,r),o=h,p=m,h=os({init:function(e){aS("DD_RUM",e)},initConfiguration:o.initConfiguration},p),m}),p=s4(function(e){var t="object"==typeof e?e:{name:e};t.context&&a.getOrCreateTracker(3).updateCustomerData(t.context),h.startView(t),aw({feature:"start-view"})}),m=(Object.defineProperty(o=os({version:"5.35.1",onReady:function(e){e()}},{init:s4(function(e){h.init(e,m)}),setTrackingConsent:s4(function(e){u.update(e),aw({feature:"set-tracking-consent",tracking_consent:e})}),setViewName:s4(function(e){h.setViewName(e)}),setViewContext:s4(function(e){h.setViewContext(e)}),setViewContextProperty:s4(function(e,t){h.setViewContextProperty(e,t)}),setGlobalContext:s4(function(e){l.setContext(e),aw({feature:"set-global-context"})}),getGlobalContext:s4(function(){return l.getContext()}),setGlobalContextProperty:s4(function(e,t){l.setContextProperty(e,t),aw({feature:"set-global-context"})}),removeGlobalContextProperty:s4(function(e){return l.removeContextProperty(e)}),clearGlobalContext:s4(function(){return l.clearContext()}),getInternalContext:s4(function(e){return h.getInternalContext(e)}),getInitConfiguration:s4(function(){return oA(h.initConfiguration)}),addAction:function(e,t){var n=oY();s8(function(){h.addAction({name:oC(e),context:oC(t),startClocks:ao(),type:"custom",handlingStack:n}),aw({feature:"add-action"})})},addError:function(e,t){var n=oY();s8(function(){h.addError({error:e,handlingStack:n,context:oC(t),startClocks:ao()}),aw({feature:"add-error"})})},addTiming:s4(function(e,t){h.addTiming(oC(e),t)}),setUser:s4(function(e){var t;(t="object"===oE(e))||sQ.error("Unsupported user:",e),t&&c.setContext(aE(e)),aw({feature:"set-user"})}),getUser:s4(function(){return c.getContext()}),setUserProperty:s4(function(e,t){var n,i=aE(((n={})[e]=t,n))[e];c.setContextProperty(e,i),aw({feature:"set-user"})}),removeUserProperty:s4(function(e){return c.removeContextProperty(e)}),clearUser:s4(function(){return c.clearContext()}),startView:p,stopSession:s4(function(){h.stopSession(),aw({feature:"stop-session"})}),addFeatureFlagEvaluation:s4(function(e,t){h.addFeatureFlagEvaluation(oC(e),oC(t)),aw({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:s4(function(){return t.getSessionReplayLink()}),startSessionReplayRecording:s4(function(e){t.start(e),aw({feature:"start-session-replay-recording",force:e&&e.force})}),stopSessionReplayRecording:s4(function(){return t.stop()}),addDurationVital:s4(function(e,t){var n;aw({feature:"add-duration-vital"}),h.addDurationVital({name:oC(e),type:"duration",startClocks:{relative:(n=t.startTime)-al(),timeStamp:n},duration:t.duration,context:oC(t&&t.context),description:oC(t&&t.description)})}),startDurationVital:s4(function(e,t){return aw({feature:"start-duration-vital"}),h.startDurationVital(oC(e),{context:oC(t&&t.context),description:oC(t&&t.description)})}),stopDurationVital:s4(function(e,t){aw({feature:"stop-duration-vital"}
1),h.stopDurationVital("string"==typeof e?oC(e):e,{context:oC(t&&t.context),description:oC(t&&t.description)})})}),"_setDebug",{get:function(){return s5},enumerable:!1}),o);return m}(function(e,t,n,i,o,a,l,c){var u,d,f,h,v,_,y,b,C,I,O,L,N,P,k,x,R,M,D=[],U=new lA;U.subscribe(13,function(e){return ac("rum",e)});var B=function(e){var t,n,i,s,o,a,l,c,u,d=(t="browser-rum-sdk",n=e,o=new oL,a=new Set,l=!s7(ag,n.site)&&o9(n.telemetrySampleRate),c=((i={}).log=l,i[ah]=l&&o9(n.telemetryConfigurationSampleRate),i[ap]=l&&o9(n.telemetryUsageSampleRate),i),u={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self},a_=function(e){var i=og(e);if(c[e.type]&&a.size<n.maxTelemetryEventsPerPage&&!a.has(i)){var r,l,d,f=(r=t,l=e,d=u,oT({type:"telemetry",date:ar(),service:r,version:"5.35.1",source:"browser",_dd:{format_version:2},telemetry:oT(l,{runtime_env:d,connectivity:au(),sdk_setup:"npm"}),experimental_features:oe(o3)},void 0!==s?s():{}));o.notify(f),ac("telemetry",f),a.add(i)}},r=ab,{setContextProvider:function(e){s=e},observable:o,enabled:l});if(aP()){var f=aN();d.observable.subscribe(function(e){return f.send("internal_telemetry",e)})}return d}(e);B.setContextProvider(function(){var t,n;return{application:{id:e.applicationId},session:{id:null==(t=G.findTrackedSession())?void 0:t.id},view:{id:null==(n=eu.findView())?void 0:n.id},action:{id:ef.findActionId()}}});var F=function(e){U.notify(14,{error:e}),ay("Error reported to customer",{"error.message":e.message})},V=(q=n.getOrCreateTracker(0),$=lC({expireDelay:aG}),U.subscribe(1,function(e){var t=e.startClocks;$.add({},t.relative),q.resetCustomerData()}),U.subscribe(6,function(e){var t=e.endClocks;$.closeActive(t.relative)}),{findFeatureFlagEvaluations:function(e){return $.find(e)},addFeatureFlagEvaluation:function(e,t){var n=$.find();n&&(n[e]=t,q.updateCustomerData(n))},stop:function(){return q.stop()}}),H=new oL(function(t){var n=oR(e,window,["visibilitychange","freeze"],function(e){"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:lg.HIDDEN}):"freeze"===e.type&&t.notify({reason:lg.FROZEN})},{capture:!0}).stop,i=ox(e,window,"beforeunload",function(){t.notify({reason:lg.UNLOADING})}).stop;return function(){n(),i()}}),j=H.subscribe(function(e){U.notify(11,e)});D.push(function(){return j.unsubscribe()});var G=aP()?(W={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+(z="records",!!((K=aN())&&s7(K.getCapabilities(),z)))},{findTrackedSession:function(){return W},expire:om,expireObservable:new oL,setForcedReplay:om}):((Y=function(e,t,n){var i,r,o,a,l,c,u,d=new oL,f=new oL,h=function(e,t){var n,i=new oL,r=new oL,o=new oL,a=e.type===a$?function(e){var t,n={isLockEnabled:1===aH(),persistSession:(t=e,function(e){aU(aj,aJ(e),aq,t)}),retrieveSession:a0,expireSession:function(t){var n;return n=e,void aU(aj,aJ(aW(t)),o6(s.ANONYMOUS_USER_TRACKING)?at:aG,n)}};if(!aF(aj)){var i=aF("_dd"),r=aF("_dd_r"),o=aF("_dd_l"),a={};i&&(a.id=i),o&&/^[01]$/.test(o)&&(a.logs=o),r&&/^[012]$/.test(r)&&(a.rum=r),ob(a)||(aX(a),n.persistSession(a))}return n}(e.cookieOptions):{isLockEnabled:!1,persistSession:a2,retrieveSession:a3,expireSession:a6},l=a.expireSession,c=of(function(){a4({process:function(e){return aY(e)?aW(e):void 0},after:h},a)},1e3);p();var u=op(function(){a4({process:function(e){if(!ob(e)){var n=h(e);return function(e){if(!ob(e)){var n=t(e.rum),i=n.trackingType,r=n.isTracked;e.rum=i,delete e.isExpired,r&&!e.id&&(e.id=aA(),e.created=String(ar()))}}(n),n}},after:function(e){ob(e)||m()||(n=e,i.notify()),n=e}},a)},1e3),d=u.throttled,f=u.cancel;function h(e){var t;return aY(e)&&(e=aW(e)),m()&&((t=e,n.id!==t.id||n.rum!==t.rum)?(n=aW(n),r.notify()):(o.notify({previousState:n,newState:e}),n=e)),e}function p(){a4({process:function(e){if(ob(e))return aW(e)},after:function(e){n=e}},a)}function m(){return void 0!==n.rum}return{expandOrRenewSession:d,expandSession:function(){a4({process:function(e){return m()?h(e):void 0}},a)},getSession:function(){return n},renewObservable:i,expireObservable:r,sessionStateUpdateObservable:o,restartSession:p,expire:function(){f(),l(n),h(aW(n))},stop:function(){oh(c)},updateSessionState:function(e){a4({process:function(t){return os({},t,e)},after:h},a)}}}(e.sessionStoreStrategyType,t);cz.push(function(){return h.stop()});var p=lC({expireDelay:aG});function m(){return{id:h.getSession().id,trackingType:h.getSession().rum,isReplayForced:!!h.getSession().forcedReplay,anonymousId:h.getSession().anonymousId}}return cz.push(function(){return p.stop()}),h.renewObservable.subscribe(function(){p.add(m(),as()),d.notify()}
1),h.expireObservable.subscribe(function(){f.notify(),p.closeActive(as())}),h.expandOrRenewSession(),p.add(m(),aa().relative),n.observable.subscribe(function(){n.isGranted()?h.expandOrRenewSession():h.expire()}),i=oR(e,window,["click","touchstart","keydown","scroll"],function(){n.isGranted()&&h.expandOrRenewSession()},{capture:!0,passive:!0}).stop,cz.push(i),r=e,o=function(){return h.expandSession()},a=function(){"visible"===document.visibilityState&&o()},l=ox(r,document,"visibilitychange",a).stop,cz.push(l),c=of(a,6e4),cz.push(function(){oh(c)}),u=ox(e,window,"resume",function(){return h.restartSession()},{capture:!0}).stop,cz.push(u),{findSession:function(e,t){return p.find(e,t)},renewObservable:d,expireObservable:f,sessionStateUpdateObservable:h.sessionStateUpdateObservable,expire:h.expire,updateSessionState:h.updateSessionState}}(e,function(t){var n,i,r,s;return n=e,{trackingType:r="0"===(s=i=t)||"1"===s||"2"===s?i:o9(n.sessionSampleRate)?o9(n.sessionReplaySampleRate)?"1":"2":"0",isTracked:cK(r)}},l)).expireObservable.subscribe(function(){U.notify(9)}),Y.renewObservable.subscribe(function(){U.notify(10)}),Y.sessionStateUpdateObservable.subscribe(function(e){var t=e.previousState,n=e.newState;if(!t.forcedReplay&&n.forcedReplay){var i=Y.findSession();i&&(i.isReplayForced=!0)}}),{findTrackedSession:function(e){var t=Y.findSession(e);if(t&&cK(t.trackingType))return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced,anonymousId:t.anonymousId}},expire:Y.expire,expireObservable:Y.expireObservable,setForcedReplay:function(){return Y.updateSessionState({forcedReplay:"1"})}});if(aP())X=aN(),U.subscribe(13,function(e){X.send("rum",e)});else{var q,$,z,K,W,Y,X,J,Q,Z,ee,et,en=(J=B.observable,Q=G.expireObservable,Z=e.replica,ee=function(e,t,n,i,r,s,o){void 0===o&&(o=cW);var a=c(e,t),l=n&&c(e,n);function c(e,t){var n,a,l,c=t.endpoint,u=t.encoder;return o({encoder:u,request:(n=e.batchBytesLimit,a={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:c0(),queueFullReported:!1},l=function(e,t){var i,r,s,o;return i=c,r=n,s=e,o=t,void(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&s.bytesCount<r?fetch(i.build("fetch",s),{method:"POST",body:s.data,keepalive:!0,mode:"cors"}).then(s4(function(e){return null==o?void 0:o({status:e.status,type:e.type})}),s4(function(){c2(i.build("xhr",s),s.data,o)})):c2(i.build("xhr",s),s.data,o))},{send:function(e){cJ(e,a,l,c.trackType,i)},sendOnExit:function(e){!function(e,t,n){if(navigator.sendBeacon&&n.bytesCount<t)try{var i,r=e.build("beacon",n);if(navigator.sendBeacon(r,n.data))return}catch(e){i=e,c1||(c1=!0,ab(i))}c2(e.build("xhr",n),n.data)}(c,n,e)}}),flushController:function(e){var t,n=e.messagesLimit,i=e.bytesLimit,r=e.durationLimit,s=e.pageExitObservable,o=e.sessionExpireObservable,a=s.subscribe(function(e){return f(e.reason)}),l=o.subscribe(function(){return f("session_expire")}),c=new oL(function(){return function(){a.unsubscribe(),l.unsubscribe()}}),u=0,d=0;function f(e){if(0!==d){var t=d,n=u;d=0,u=0,h(),c.notify({reason:e,messagesCount:t,bytesCount:n})}}function h(){od(t),t=void 0}return{flushObservable:c,get messagesCount(){return d},notifyBeforeAddMessage:function(e){u+e>=i&&f("bytes_limit"),d+=1,u+=e,void 0===t&&(t=ou(function(){f("duration_limit")},r))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),u+=e,d>=n?f("messages_limit"):u>=i&&f("bytes_limit")},notifyAfterRemoveMessage:function(e){u-=e,0==(d-=1)&&h()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:r,sessionExpireObservable:s}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:a.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),a.add(e),l&&t&&l.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){a.upsert(e,t),l&&l.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){a.stop(),l&&l.stop()}}}(e,{endpoint:e.rumEndpointBuilder,encoder:a(2)},Z&&{endpoint:Z.rumEndpointBuilder,transformMessage:function(e){return oT(e,{application:{id:Z.applicationId}})},encoder:a(3)},F,H,Q),U.subscribe(13,function(e){"view"===e.type?ee.upsert(e,e.view.id):ee.add(e)}),J.subscribe(function(t){return ee.add(t,e.site===o5)}),ee);D.push(function(){return en.stop()}),et=en.flushObservable,B.enabled&&o9(e.customerDataTelemetrySampleRate)&&(c9(),c7(),U.subscribe(13,function(e){T=!0,c4(A.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),c4(A.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),c4(A.featureFlagBytes,s7(["view","error"],e.type)?n.getOrCreateTracker(0).getBytesCount():0)}),et.subscribe(function(e){var t=e.bytesCount,n=e.messagesCount;T&&(S.batchCount+=1,c4(S.batchBytesCount,t),c4(S.batchMessagesCount,n),c8(S.globalContextBytes,A.globalContextBytes),c8(S.userContextBytes,A.userContextBytes),c8(S.featureFlagBytes,A.featureFlagBytes),c7())}),of(c6,1e4))}var ei=(eS=function(){var e,t=window;if(t.Zone&&(e=oc(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){var n=oc(new t.MutationObserver(om),"originalInstance");e=n&&n.constructor}return e||(e=t.MutationObserver),e}(),new oL(function(e){if(eS){var t=new eS(s4(function(){return e.notify()}));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),er=(eT=o_(eA=location),new oL(function(t){var n,i,r,s,o,a=(n=e,i=c,r=ak(c3("pushState"),"pushState",function(e){(0,e.onPostCall)(i)}).stop,s=ak(c3("replaceState"),"replaceState",function(e){(0,e.onPostCall)(i)}).stop,o=ox(n,window,"popstate",i).stop,{stop:function(){r(),s(),o()}}).stop,l=ox(e,window,"hashchange",c).stop;function c(){if(eT.href!==eA.href){var e=o_(eA);t.notify({newLocation:e,oldLocation:eT}),eT=e}}return function(){a(),l()}})),es=function(e,t){void 0===t&&(t=500);var n,i=lC({expireDelay:aG,maxEntries:4e3});s(ue(),as());
1var r=oR(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(e){var t;s("freeze"===(t=e).type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":ue(),e.timeStamp)},{capture:!0}).stop;function s(e,t){void 0===t&&(t=as()),e!==n&&(n=e,i.closeActive(t),i.add({state:n,startTime:t},t))}var o={findAll:function(e,n){var r=i.findAll(e,n);if(0!==r.length){for(var s=[],o=Math.max(0,r.length-t),a=r.length-1;a>=o;a--){var l=r[a],c=l.startTime-e;s.push({state:l.state,start:ai(c)})}return s}},wasInPageStateAt:function(e,t){return o.wasInPageStateDuringPeriod(e,t,0)},wasInPageStateDuringPeriod:function(e,t,n){return i.findAll(t,n).some(function(t){return t.state===e})},addPageState:s,stop:function(){r(),i.stop()}};return o}(e),eo=(eC=new oL,eI=ak(window,"open",function(){return eC.notify()}).stop,{observable:eC,stop:eI}),ea=eo.observable,el=eo.stop;D.push(el);var ec=function(e,t,n,i,r,o,a,l,c,u){var d,f,h,m,g,v,_,y,b,w,S,A,T,C,I,O,L,N,P,k=(h=lC({expireDelay:aG}),e.subscribe(1,function(e){var t;h.add({service:(t=e).service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},e.startClocks.relative)}),e.subscribe(6,function(e){var t=e.endClocks;h.closeActive(t.relative)}),e.subscribe(3,function(e){var t=h.find(e.startClocks.relative);t&&e.name&&(t.name=e.name),t&&e.context&&(t.context=e.context)}),e.subscribe(10,function(){h.reset()}),{findView:function(e){return h.find(e)},stop:function(){h.stop()}}),x=function(e,t,n){var i,r=lC({expireDelay:aG});e.subscribe(1,function(e){var t=e.startClocks,s=n.href;r.add(o({url:s,referrer:i||document.referrer}),t.relative),i=s}),e.subscribe(6,function(e){var t=e.endClocks;r.closeActive(t.relative)});var s=t.subscribe(function(e){var t=e.newLocation,n=r.find();if(n){var i=as();r.closeActive(i),r.add(o({url:t.href,referrer:n.referrer}),i)}});function o(e){return{url:e.url,referrer:e.referrer}}return{findUrl:function(e){return r.find(e)},stop:function(){s.unsubscribe(),r.stop()}}}(e,o,n),R=(e.subscribe(0,function(t){return e.notify(12,c_(t,r))}),g={findActionId:om},v=om,t.trackUserInteractions&&(g=(m=function(e,t,n,i){var r,s,o,a,l,c,u,d,f=lC({expireDelay:cv}),h=new oL;e.subscribe(10,function(){f.reset()}),e.subscribe(5,g);var p=(a=(r={onPointerDown:function(r){var s=i,o=e,a=t,l=r,c=n,u=s.enablePrivacyForActionName?function e(t,n,i){if(i&&i.has(t))return i.get(t);var r=t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&lZ(t.host)?t.host:t.parentNode,s=r?e(r,n,i):n,o=function(e,t){switch(t){case l0.HIDDEN:case l0.IGNORE:return t}switch(e){case l0.ALLOW:case l0.MASK:case l0.MASK_USER_INPUT:case l0.HIDDEN:case l0.IGNORE:return e;default:return t}}(function(e){if(lZ(e)){if("BASE"===e.tagName)return l0.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return l0.MASK;var t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return l0.MASK}if(lX(e,l1(l0.HIDDEN)))return l0.HIDDEN;if(lX(e,l1(l0.MASK)))return l0.MASK;if(lX(e,l1(l0.MASK_USER_INPUT)))return l0.MASK_USER_INPUT;if(lX(e,l1(l0.ALLOW)))return l0.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;if("LINK"===e.nodeName){var t=r("rel");return/preload|prefetch/i.test(t)&&"script"===r("as")||"shortcut icon"===t||"icon"===t}if("META"===e.nodeName){var n=r("name"),t=r("rel"),i=r("property");return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===t||"apple-touch-icon"===t||"shortcut icon"===t||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||e.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(i)||/^product:/.test(i)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function r(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return l0.IGNORE}}(t),s);return i&&i.set(t,o),o}(l.target,s.defaultPrivacyLevel):l0.ALLOW;if(u!==l0.HIDDEN){var d,f=function(e,t,n){var i,r,s,o,a=e.target.getBoundingClientRect(),l=cs(e.target,n.actionNameAttribute);l&&cg(e.timeStamp,l);
1var c=(i=e.target,r=n.enablePrivacyForActionName,s=n.actionNameAttribute,(o=l3(i,l2)||s&&l3(i,s))?{name:o,nameSource:"custom_attribute"}:t===l0.MASK?{name:"Masked Element",nameSource:"mask_placeholder"}:l4(i,s,l6,r)||l4(i,s,l5,r)||{name:"",nameSource:"blank"});return{type:"click",target:{width:Math.round(a.width),height:Math.round(a.height),selector:l},position:{x:Math.round(e.clientX-a.left),y:Math.round(e.clientY-a.top)},name:c.name,nameSource:c.nameSource}}(l,u,s),h=!1;return d=function(e){h=e.hadActivity},lz(lK(o,a,c,s),d,100),{clickActionBase:f,hadActivityOnPointerDown:function(){return h}}}},onPointerUp:function(r,s,o){!function(e,t,n,i,r,s,o,a,l,c,u){var d,f,h=function e(t,n,i,r,s){var o,a=aA(),l=ao(),c=n.add(a,l.relative),u=lG({lifeCycle:t,isChildEvent:function(e){return void 0!==e.action&&(Array.isArray(e.action.id)?s7(e.action.id,a):e.action.id===a)}}),d=0,f=[],h=new oL;function p(e){0===d&&((d=1,o=e)?c.close(o-al()):c.remove(),u.stop(),h.notify())}return{event:s,stop:p,stopObservable:h,get hasError(){return u.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:i,addFrustration:function(e){f.push(e)},startClocks:l,isStopped:function(){return 1===d||2===d},clone:function(){return e(t,n,i,r,s)},validate:function(e){if(p(),1===d){var n,i=u.eventCounts,c=i.resourceCount,h=i.errorCount,m=i.longTaskCount,g=os({type:"click",duration:o&&(n=l.timeStamp,o-n),startClocks:l,id:a,frustrationTypes:f,counts:{resourceCount:c,errorCount:h,longTaskCount:m},events:null!=e?e:[s],event:s},r);t.notify(0,g),d=2}},discard:function(){p(),d=2}}}(t,r,c,a,l);o(h);var p=null==(f=null==a?void 0:a.target)?void 0:f.selector;p&&cg(l.timeStamp,p);var m=(d=function(e){e.hadActivity&&e.end<h.startClocks.timeStamp?h.discard():e.hadActivity?h.stop(e.end):u()?h.stop(h.startClocks.timeStamp):h.stop()},lz(lK(t,n,i,e),d,1e4)).stop,g=t.subscribe(5,function(e){var t=e.endClocks;h.stop(t.timeStamp)}),v=s.subscribe(function(){h.stop()});h.stopObservable.subscribe(function(){g.unsubscribe(),m(),v.unsubscribe()})}(i,e,t,n,f,h,m,r.clickActionBase,s,o,r.hadActivityOnPointerDown)}}).onPointerDown,l=r.onPointerUp,c={selection:!1,input:!1,scroll:!1},u=[ox(i,window,"pointerdown",function(e){ch(e)&&(s=cf(),c={selection:!1,input:!1,scroll:!1},o=a(e))},{capture:!0}),ox(i,window,"selectionchange",function(){s&&cf()||(c.selection=!0)},{capture:!0}),ox(i,window,"scroll",function(){c.scroll=!0},{capture:!0,passive:!0}),ox(i,window,"pointerup",function(e){if(ch(e)&&o){var t=c;l(o,e,function(){return t}),o=void 0}},{capture:!0}),ox(i,window,"input",function(){c.input=!0},{capture:!0})],{stop:function(){u.forEach(function(e){return e.stop()})}}).stop;return{stop:function(){g(),h.notify(),p()},actionContexts:{findActionId:function(e){return f.findAll(e)}}};function m(e){if(!d||!d.tryAppend(e)){var t=e.clone();d=function(e,t){var n,i=[],r=0;function s(e){e.stopObservable.subscribe(o),i.push(e),od(n),n=ou(a,1e3)}function o(){1===r&&i.every(function(e){return e.isStopped()})&&(r=2,t(i))}function a(){od(n),0===r&&(r=1,o())}return s(e),{tryAppend:function(e){var t,n,o,l;return 0===r&&(!(i.length>0)||(t=i[i.length-1].event,n=e.event,t.target===n.target&&100>=(o=t,l=n,Math.sqrt(Math.pow(o.clientX-l.clientX,2)+Math.pow(o.clientY-l.clientY,2)))&&t.timeStamp-n.timeStamp<=1e3)?(s(e),!0):(a(),!1))},stop:function(){a()}}}(e,function(e){var n,i;(function(e,t){if(function(e){if(e.some(function(e){return e.getUserActivity().selection||e.getUserActivity().scroll}))return!1;for(var t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=1e3)return!0;return!1}(e))return t.addFrustration("rage_click"),e.some(cp)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};var n=e.some(function(e){return e.getUserActivity().selection});return e.forEach(function(e){e.hasError&&e.addFrustration("error_click"),cp(e)&&!n&&e.addFrustration("dead_click")}),{isRage:!1}})(n=e,i=t).isRage?(n.forEach(function(e){return e.discard()}),i.stop(ar()),i.validate(n.map(function(e){return e.event}))):(i.discard(),n.forEach(function(e){return e.validate()}))})}}function g(){d&&d.stop()}}(e,a,l,t)).actionContexts,v=m.stop),{addAction:function(t,n){e.notify(12,os({savedCommonContext:n},c_(t,r)))},actionContexts:g,stop:v}),M=(o6(s.DELAY_VIEWPORT_COLLECTION)?y=requestAnimationFrame(function(){_=cj()}):_=cj(),b=(!E&&(d=t,E=new oL(function(e){return ox(d,window,"resize",op(function(){e.notify(cj())},200).throttled,{capture:!0,passive:!0}).stop})),E).subscribe(function(e){_=e}).unsubscribe,{get:function(){return _?{viewport:_}:void 0},stop:function(){b(),y&&cancelAnimationFrame(y)}}),D=(void 0===w&&(S=window.cookieStore?(f=t,function(e,t){return ox(f,window.cookieStore,"change",function(n){var i=ot(n.changed,function(t){return t.name===e})||ot(n.deleted,function(t){return t.name===e});i&&t(i.value)}).stop}):ut,w=new oL(function(e){return S(un,function(t){return e.notify(t)})}
1)),T=aF(un)||(null==(A=window.Cypress)?void 0:A.env("traceId")),C=w.subscribe(function(e){T=e}),{get:function(){if("string"==typeof T)return{test_execution_id:T}},stop:function(){return C.unsubscribe()}});return I=R.actionContexts,(O={}).view=os({},lE,lw),O.error=os({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},lE,lw,lS),O.resource=os({"resource.url":"string"},o6(s.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},lE,lw,lS),O.action=os({"action.target.name":"string"},lE,lw,lS),O.long_task=os({},lE,lw),O.vital=os({},lE,lw),p=O,(L={}).error=l_("error",t.eventRateLimiterThreshold,u),L.action=l_("action",t.eventRateLimiterThreshold,u),L.vital=l_("vital",t.eventRateLimiterThreshold,u),N=L,P=function(){var e,t,n="string"==typeof(e=window._DATADOG_SYNTHETICS_PUBLIC_ID||aF("datadog-synthetics-public-id"))?e:void 0,i="string"==typeof(t=window._DATADOG_SYNTHETICS_RESULT_ID||aF("datadog-synthetics-result-id"))?t:void 0;if(n&&i)return{test_id:n,result_id:i,injected:aV()}}(),e.subscribe(12,function(n){var r=n.startTime,o=n.rawRumEvent,a=n.domainContext,l=n.savedCommonContext,u=n.customerContext,d=k.findView(r),f=x.findUrl(r),h=i.findTrackedSession(r);if(h&&d&&f){var m,g=l||c(),v=I.findActionId(r),_=oT({_dd:{format_version:2,drift:Math.round(ar()-(m=al(),m+performance.now())),configuration:{session_sample_rate:o7(t.sessionSampleRate,3),session_replay_sample_rate:o7(t.sessionReplaySampleRate,3)},browser_sdk_version:aP()?"5.35.1":void 0},application:{id:t.applicationId},date:ar(),service:d.service||t.service,version:d.version||t.version,source:"browser",session:{id:h.id,type:P?"synthetics":D.get()?"ci_test":"user"},view:{id:d.id,name:d.name,url:f.url,referrer:f.referrer},action:-1!==["error","resource","long_task"].indexOf(o.type)&&v?{id:v}:void 0,synthetics:P,ci_test:D.get(),display:M.get(),connectivity:au()},o);_.context=oT(g.context,d.context,u),"has_replay"in _.session||(_.session.has_replay=g.hasReplay),"view"===_.type&&(_.session.sampled_for_replay=1===h.sessionReplay),o6(s.ANONYMOUS_USER_TRACKING)&&!g.user.anonymous_id&&(g.user.anonymous_id=h.anonymousId),ob(g.user)||(_.usr=g.user),function(e,t,n,i){if(t){var r,s,o,a,l=(r=p[e.type],o=t(s=oA(e),n),oi(r).forEach(function(t){var n=t[0],i=t[1],r=function(e,t){for(var n=e,i=0,r=t.split(".");i<r.length;i++){var s,o,a=r[i];if(s=n,o=a,!(lb(s)&&Object.prototype.hasOwnProperty.call(s,o)))return;n=n[a]}return n}(s,n),o=oE(r);o===i?ly(e,n,oC(r)):"object"===i&&("undefined"===o||"null"===o)&&ly(e,n,{})}),o);if(!1===l&&"view"!==e.type)return!1;!1===l&&sQ.warn("Can't dismiss view events using beforeSend!")}return!(null==(a=i[e.type])?void 0:a.isLimitReached())}
1(_,t.beforeSend,a,N)&&(ob(_.context)&&delete _.context,e.notify(13,_))}}),{viewHistory:k,pageStateHistory:r,urlContexts:x,addAction:R.addAction,actionContexts:R.actionContexts,stop:function(){R.stop(),D.stop(),M.stop(),x.stop(),k.stop(),r.stop()}}}(U,e,location,G,es,er,ei,ea,i,F),eu=ec.viewHistory,ed=ec.urlContexts,ef=ec.actionContexts,eh=ec.addAction,ep=ec.stop;D.push(ep),av.drain();var em=(eO=location,U.subscribe(4,function(n){var i,r,s,o,a,l,c,u,d,f,h,p,m,g,v,_,y,b,w,E,S,A,T,C,I;return U.notify(12,(i=n,r=e,s=V,o=t,a=es,A=o.getReplayStats(i.id),T=s.findFeatureFlagEvaluations(i.startClocks.relative),C=a.findAll(i.startClocks.relative,i.duration),I={_dd:{document_version:i.documentVersion,replay_stats:A,page_states:C,configuration:{start_session_replay_recording_manually:r.startSessionReplayRecordingManually}},date:i.startClocks.timeStamp,type:"view",view:{action:{count:i.eventCounts.actionCount},frustration:{count:i.eventCounts.frustrationCount},cumulative_layout_shift:null==(l=i.commonViewMetrics.cumulativeLayoutShift)?void 0:l.value,cumulative_layout_shift_time:ai(null==(c=i.commonViewMetrics.cumulativeLayoutShift)?void 0:c.time),cumulative_layout_shift_target_selector:null==(u=i.commonViewMetrics.cumulativeLayoutShift)?void 0:u.targetSelector,first_byte:ai(null==(d=i.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:ai(null==(f=i.initialViewMetrics.navigationTimings)?void 0:f.domComplete),dom_content_loaded:ai(null==(h=i.initialViewMetrics.navigationTimings)?void 0:h.domContentLoaded),dom_interactive:ai(null==(p=i.initialViewMetrics.navigationTimings)?void 0:p.domInteractive),error:{count:i.eventCounts.errorCount},first_contentful_paint:ai(i.initialViewMetrics.firstContentfulPaint),first_input_delay:ai(null==(m=i.initialViewMetrics.firstInput)?void 0:m.delay),first_input_time:ai(null==(g=i.initialViewMetrics.firstInput)?void 0:g.time),first_input_target_selector:null==(v=i.initialViewMetrics.firstInput)?void 0:v.targetSelector,interaction_to_next_paint:ai(null==(_=i.commonViewMetrics.interactionToNextPaint)?void 0:_.value),interaction_to_next_paint_time:ai(null==(y=i.commonViewMetrics.interactionToNextPaint)?void 0:y.time),interaction_to_next_paint_target_selector:null==(b=i.commonViewMetrics.interactionToNextPaint)?void 0:b.targetSelector,is_active:i.isActive,name:i.name,largest_contentful_paint:ai(null==(w=i.initialViewMetrics.largestContentfulPaint)?void 0:w.value),largest_contentful_paint_target_selector:null==(E=i.initialViewMetrics.largestContentfulPaint)?void 0:E.targetSelector,load_event:ai(null==(S=i.initialViewMetrics.navigationTimings)?void 0:S.loadEvent),loading_time:lj(ai(i.commonViewMetrics.loadingTime)),loading_type:i.loadingType,long_task:{count:i.eventCounts.longTaskCount},resource:{count:i.eventCounts.resourceCount},time_spent:ai(i.duration)},feature_flags:T&&!ob(T)?T:void 0,display:i.commonViewMetrics.scroll?{scroll:{max_depth:i.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:i.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:i.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:ai(i.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!A||void 0,is_active:!!i.sessionIsActive&&void 0},privacy:{replay_level:r.defaultPrivacyLevel}},ob(i.customTimings)||(I.view.custom_timings=function(e,t){for(var n={},i=0,r=Object.keys(e);i<r.length;i++){var s=r[i];n[s]=t(e[s])}return n}(i.customTimings,ai)),{rawRumEvent:I,startTime:i.startClocks.relative,domainContext:{location:i.location}}))}),function(e,t,n,i,r,s,o,a){var l,c=new Set,u=d("initial_load",aa(),a);function d(s,o,a){var l=function(e,t,n,i,r,s,o,a){void 0===o&&(o=ao());var l,c,u,d,f,h,p,m,v,_,y,b,E,S,A,T,C,I,O,L,N,P,k,x,R,M,D,U,B,F,V,H,j,G,q,$,z,K,W,Y,X,J,Q,Z,ee,et=aA(),en=new oL,ei={},er=0,es=o_(r),eo=oP(),ea=!0;a&&(J=a.name,Q=a.service||void 0,Z=a.version||void 0,a.context&&(ee=a.context,eo.setContext(ee)));var el={id:et,name:J,startClocks:o,service:Q,version:Z,context:ee};e.notify(1,el),e.notify(2,el);var ec=op(eT,3e3,{leading:!1}),eu=ec.throttled,ed=ec.cancel,ef=(m={},_=(v=function(e,t,n,i,r,s,o){var a,l="initial_load"===r,c=!0,u=[],d=cD(i);function f(){if(!c&&!l&&u.length>0){var e=Math.max.apply(Math,u);e<d.timeStamp&&o(e)}}var h=(a=function(e){if(c){var t;c=!1,e.hadActivity&&u.push((t=s.timeStamp,e.end-t)),f()}},lz(lK(e,t,n,i),a,void 0)).stop;return{stop:function(){h(),d.stop()}
1,setLoadEvent:function(e){l&&(l=!1,u.push(e),f())}}}(e,t,n,i,s,p=o,function(e){m.loadingTime=e,eu()})).stop,y=v.setLoadEvent,I=(b=function(e){m.scroll=e},void 0===E&&(l=i,void 0===c&&(c=1e3),E=new oL(function(e){if(window.ResizeObserver){var t=op(function(){var t,n,i;e.notify((n=Math.round((t=window.visualViewport)?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0),i=cj().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(i+n),scrollTop:n}))},c,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,i=new ResizeObserver(s4(t.throttled));n&&i.observe(n);var r=ox(l,window,"scroll",t.throttled,{passive:!0});return function(){t.cancel(),i.disconnect(),r.stop()}}})),S=0,A=0,T=0,C=E.subscribe(function(e){var t=e.scrollDepth,n=e.scrollTop,i=e.scrollHeight,r=!1;(t>S&&(S=t,r=!0),i>A)&&(A=i,T=as()-p.relative,r=!0);r&&b({maxDepth:Math.min(S,A),maxDepthScrollTop:n,maxScrollHeight:A,maxScrollHeightTime:T})}),{stop:function(){return C.unsubscribe()}}).stop,O=function(e,t,n){if(!(l$(g.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:om};var i,r,s,o,a,l,c=0;n({value:0});var u=(s=0,o=0,{update:function(e){var t;return void 0===i||e.startTime-r>=1e3||e.startTime-i>=5e3?(i=r=e.startTime,o=s=e.value,t=!0):(s+=e.value,r=e.startTime,(t=e.value>o)&&(o=e.value)),{cumulatedValue:s,isMaxValue:t}}}),d=lq(e,{type:g.LAYOUT_SHIFT,buffered:!0}).subscribe(function(i){for(var r=0;r<i.length;r++){var s=i[r];if(!s.hadRecentInput&&!(s.startTime<t)){var o=u.update(s),d=o.cumulatedValue;if(o.isMaxValue){var f=function(e){var t;if(e)return null==(t=ot(e,function(e){return!!e.node&&lZ(e.node)}))?void 0:t.node}(s.sources);a=f?new WeakRef(f):void 0,l=s.startTime-t}if(d>c){c=d;var f=null==a?void 0:a.deref();n({value:o7(c,4),targetSelector:f&&cs(f,e.actionNameAttribute),time:l})}}}});return{stop:function(){d.unsubscribe()}}}(i,p.relative,function(e){m.cumulativeLayoutShift=e,eu()}).stop,N=(L=function(e,t,n){if(!(l$(g.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:om,stop:om};var i,r,s,o,a,l=(i=n,"interactionCount"in performance||w||(w=new window.PerformanceObserver(s4(function(e){e.getEntries().forEach(function(e){e.interactionId&&(cB=Math.min(cB,e.interactionId),cU=((cF=Math.max(cF,e.interactionId))-cB)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),r="initial_load"===i?0:cV(),s={stopped:!1},{getViewInteractionCount:function(){return s.stopped?s.interactionCount:cV()-r},stopViewInteractionCount:function(){s={stopped:!0,interactionCount:cV()-r}}}),c=l.getViewInteractionCount,u=l.stopViewInteractionCount,d=1/0,f=function(e){var t=[];function n(){t.sort(function(e,t){return t.duration-e.duration}).splice(10)}return{process:function(e){var i=t.findIndex(function(t){return e.interactionId===t.interactionId}),r=t[t.length-1];-1!==i?e.duration>t[i].duration&&(t[i]=e,n()):(t.length<10||e.duration>r.duration)&&(t.push(e),n())},estimateP98Interaction:function(){var n=Math.min(t.length-1,Math.floor(e()/50));return t[n]}}}(c),h=-1;function p(n){for(var i,r,s=0;s<n.length;s++){var l=n[s];l.interactionId&&l.startTime>=t&&l.startTime<=d&&f.process(l)}var c=f.estimateP98Interaction();c&&c.duration!==h&&(h=c.duration,a=c.startTime-t,i=c.startTime,r=cm.get(i),cm.delete(i),!(o=r)&&c.target&&lZ(c.target)&&(o=cs(c.target,e.actionNameAttribute)))}var m=lq(e,{type:g.FIRST_INPUT,buffered:!0}).subscribe(p),v=lq(e,{type:g.EVENT,durationThreshold:40,buffered:!0}).subscribe(p);return{getInteractionToNextPaint:function(){return h>=0?{value:Math.min(h,cH),targetSelector:o,time:a}:c()?{value:0}:void 0},setViewEnd:function(e){d=e,u()},stop:function(){v.unsubscribe(),m.unsubscribe()}}}(i,p.relative,s)).stop,P=L.getInteractionToNextPaint,{stop:function(){_(),O(),I()},stopINPTracking:N,setLoadEvent:y,setViewEnd:L.setViewEnd,getCommonViewMetrics:function(){return m.interactionToNextPaint=P(),m}}),eh=ef.setLoadEvent,ep=ef.setViewEnd,em=ef.stop,eg=ef.stopINPTracking,ev=ef.getCommonViewMetrics,e_="initial_load"===s?(k={},M=(x=function(e){eh(e.loadEvent),k.navigationTimings=e,eu()},void 0===R&&(R=cN),u=i,d=function(){var e,t=R();t.loadEventEnd<=0||x({domComplete:(e=t).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=as()?e.responseStart:void 0})},h=cC(u,"complete",function(){f=ou(function(){return d()})}).stop,{stop:function(){h(),od(f)}}).stop,D=cD(i),B=(U=function(e){k.firstContentfulPaint=e,eu()},{stop:lq(i,{type:g.PAINT,buffered:!0}).subscribe(function(e){var t=ot(e,function(e){return"first-contentful-paint"===e.name&&e.startTime<D.timeStamp&&e.startTime<cR});t&&U(t.startTime)}).unsubscribe}).stop,$=(F=window,V=function(e){k.largestContentfulPaint=e,eu()},H=1/0,j=oR(i,F,["pointerdown","keydown"],function(e){H=e.timeStamp},{capture:!0,once:!0}
1).stop,G=0,q=lq(i,{type:g.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(e){var t=function(e,t){for(var n=e.length-1;n>=0;n-=1){var i=e[n];if(t(i,n,e))return i}}(e,function(e){return e.entryType===g.LARGEST_CONTENTFUL_PAINT&&e.startTime<H&&e.startTime<D.timeStamp&&e.startTime<cM&&e.size>G});if(t){var n=void 0;t.element&&(n=cs(t.element,i.actionNameAttribute)),V({value:t.startTime,targetSelector:n}),G=t.size}}),{stop:function(){j(),q.unsubscribe()}}).stop,W=(z=function(e){k.firstInput=e,eu()},K=lq(i,{type:g.FIRST_INPUT,buffered:!0}).subscribe(function(e){var t=ot(e,function(e){return e.startTime<D.timeStamp});if(t){var n,r=(n=t.startTime,t.processingStart-n),s=void 0;t.target&&lZ(t.target)&&(s=cs(t.target,i.actionNameAttribute)),z({delay:r>=0?r:0,time:t.startTime,targetSelector:s})}}),{stop:function(){K.unsubscribe()}}).stop,{stop:function(){M(),B(),$(),W(),D.stop()},initialViewMetrics:k}):{stop:om,initialViewMetrics:{}},ey=e_.stop,eb=e_.initialViewMetrics,ew={stop:(Y=lG({lifeCycle:e,isChildEvent:function(e){return e.view.id===et},onChange:eu})).stop,eventCounts:Y.eventCounts},eE=ew.stop,eS=ew.eventCounts,eA=of(eT,cG);function eT(){ed(),er+=1;var t=void 0===X?ar():X.timeStamp;e.notify(4,{customTimings:ei,documentVersion:er,id:et,name:J,service:Q,version:Z,context:eo.getContext(),loadingType:s,location:es,startClocks:o,commonViewMetrics:ev(),initialViewMetrics:eb,duration:t-o.timeStamp,isActive:void 0===X,sessionIsActive:ea,eventCounts:eS})}return eT(),eo.changeObservable.subscribe(function(){e.notify(3,{id:et,name:J,context:eo.getContext(),startClocks:o}),eu()}),{get name(){return J},service:Q,version:Z,contextManager:eo,stopObservable:en,end:function(t){var n,i,r=this;void 0===t&&(t={}),X||(X=null!=(n=t.endClocks)?n:ao(),ea=null==(i=t.sessionIsActive)||i,e.notify(5,{endClocks:X}),e.notify(6,{endClocks:X}),oh(eA),ep(X.relative),em(),eT(),ou(function(){r.stop()},cq))},stop:function(){ey(),eE(),eg(),en.notify()},addTiming:function(e,t){if(!X){var n,i,r=t<at?t:t-o.timeStamp;ei[(i=(n=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==n&&sQ.warn("Invalid timing name: ".concat(n,", sanitized to: ").concat(i)),i]=r,eu()}},setViewName:function(e){J=e,eT()}}}(t,n,i,r,e,s,o,a);return c.add(l),l.stopObservable.subscribe(function(){c.delete(l)}),l}return t.subscribe(10,function(){u=d("route_change",void 0,{name:u.name,service:u.service,version:u.version,context:u.contextManager.getContext()})}),t.subscribe(9,function(){u.end({sessionIsActive:!1})}),t.subscribe(11,function(e){e.reason===lg.UNLOADING&&u.end()}),o&&(l=s.subscribe(function(e){var t,n,i;t=e.oldLocation,n=e.newLocation,t.pathname===n.pathname&&(""!==(i=n.hash.substring(1))&&document.getElementById(i)||c$(n.hash)===c$(t.hash))||(u.end(),u=d("route_change"))})),{addTiming:function(e,t){void 0===t&&(t=ar()),u.addTiming(e,t)},startView:function(e,t){u.end({endClocks:t}),u=d("route_change",t,e)},setViewContext:function(e){u.contextManager.setContext(e)},setViewContextProperty:function(e,t){u.contextManager.setContextProperty(e,t)},setViewName:function(e){u.setViewName(e)},stop:function(){l&&l.unsubscribe(),u.end(),c.forEach(function(e){return e.stop()})}}}(eO,U,ei,ea,e,er,!e.trackViewsManually,o)),eg=em.addTiming,ev=em.startView,e_=em.setViewName,ey=em.setViewContext,eb=em.setViewContextProperty,ew=em.stop;D.push(ew);var eE=function(e,t,n,i,r){void 0===i&&(i=function(){var e=[];function t(t){var i;if(t.didTimeout){var r=performance.now();i=function(){return 30-(performance.now()-r)}}else i=t.timeRemaining.bind(t);for(;i()>0&&e.length;)e.shift()();e.length&&n()}function n(){!function(e,t){var n,i;if(window.requestIdleCallback&&window.cancelIdleCallback)return window.requestIdleCallback(s4(e),t);n=e,i=ar(),ou(function(){n({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(ar()-i))}})},0)}(t,{timeout:1e3})}return{push:function(t){1===e.push(t)&&n()}}}()),void 0===r&&(r=cP),e.subscribe(8,function(e){o(function(){return function(e,t,n){var i=function(e){if(performance&&"getEntriesByName"in performance){var t=performance.getEntriesByName(e.url,"resource");if(t.length&&"toJSON"in t[0]){var n=t.filter(function(e){return!cA.has(e)}).filter(function(e){return lx(e)&&lR(e)}).filter(function(t){var n,i,r;return n=t,i=e.startClocks.relative,r=cT({startTime:e.startClocks.relative,duration:e.duration}),n.startTime>=i-1&&cT(n)<=r+1});if(1===n.length)return cA.add(n[0]),n[0].toJSON()}}}(e),r=i?an(i.startTime):e.startClocks,s=function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(e,t);if(t.trackResources||s){var o,a,l,c,u="xhr"===e.type?"xhr":"fetch",d=i?cx(i):void 0,f=(o=n,a=r,l=e.duration,o.wasInPageStateDuringPeriod("frozen",a.relative,l)?void 0:ai(l)),h=oT({date:r.timeStamp,resource:{id:aA(),type:u,duration:f,method:e.method,status_code:e.status,protocol:i&&lD(i),url:!function(e){if(e.length<=24e3);else if("data:"===e.substring(0,5))return e=e.substring(0,24e3),!0;return!1}(e.url)?e.url:(c=e.url,"".concat(c.match(lF)[0],"[...]")),delivery_type:i&&lU(i)},type:"resource",_dd:{discarded:!t.trackResources}},s,d);return{startTime:r.relative,rawRumEvent:h,domainContext:{performanceEntry:i,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}}
1(e,t,n)})});var s=lq(t,{type:g.RESOURCE,buffered:!0}).subscribe(function(e){for(var n=function(e){"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType&&o(function(){return ck(e,t)})},i=0;i<e.length;i++)n(e[i])});function o(t){i.push(function(){var n=t();n&&e.notify(12,n)})}return r(t,function(e){o(function(){return ck(e,t)})}),{stop:function(){s.unsubscribe()}}}(U,e,es).stop;if(D.push(eE),o6(s.LONG_ANIMATION_FRAME)){if(e.trackLongTasks){var eS,eA,eT,eC,eI,eO,eL,eN=(eL=lq(e,{type:g.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(e){for(var t=0;t<e.length;t++){var n=e[t],i=an(n.startTime),r={date:i.timeStamp,long_task:{id:aA(),entry_type:"long-animation-frame",duration:ai(n.duration),blocking_duration:ai(n.blockingDuration),first_ui_event_timestamp:ai(n.firstUIEventTimestamp),render_start:ai(n.renderStart),style_and_layout_start:ai(n.styleAndLayoutStart),start_time:ai(n.startTime),scripts:n.scripts.map(function(e){return{duration:ai(e.duration),pause_duration:ai(e.pauseDuration),forced_style_and_layout_duration:ai(e.forcedStyleAndLayoutDuration),start_time:ai(e.startTime),execution_start:ai(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};U.notify(12,{rawRumEvent:r,startTime:i.relative,domainContext:{performanceEntry:n}})}}),{stop:function(){return eL.unsubscribe()}}).stop;D.push(eN)}}else lq(e,{type:g.LONG_TASK,buffered:!0}).subscribe(function(t){for(var n=0;n<t.length;n++){var i=t[n];if(i.entryType!==g.LONG_TASK||!e.trackLongTasks)break;var r=an(i.startTime),s={date:r.timeStamp,long_task:{id:aA(),entry_type:"long-task",duration:ai(i.duration)},type:"long_task",_dd:{discarded:!1}};U.notify(12,{rawRumEvent:s,startTime:r.relative,domainContext:{performanceEntry:i}})}});var eP=(u=L=new oL,(d=[sW.error].map(function(e){var t;return cb[e]||(cb[e]=(t=e,new oL(function(e){var n=sY[t];return sY[t]=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];n.apply(console,i);var s=oY();s8(function(){e.notify(function(e,t,n){var i,r=e.map(function(e){var t;return"string"==typeof(t=e)?oC(t):o1(t)?oJ(oB(t)):og(oC(t),void 0,2)}).join(" ");if(t===sW.error){var s=ot(e,o1);i={stack:s?oX(oB(s)):void 0,fingerprint:o0(s),causes:s?o2(s,"console"):void 0,startClocks:ao(),message:r,source:"console",handling:"handled",handlingStack:n}}return{api:t,message:r,error:i,handlingStack:n}}(i,t,s))})},function(){sY[t]=n}}))),cb[e]}),oN.apply(void 0,d)).subscribe(function(e){return u.notify(e.error)}),(f=N=function(e,t){var n=oZ({stackTrace:e,originalError:t,startClocks:ao(),nonErrorPrefix:"Uncaught",source:"source",handling:"unhandled"});L.notify(n)},ak(window,"onerror",function(e){var t,n,i,r,s,o,a=e.parameters,l=a[0],c=a[1],u=a[2],d=a[3],h=a[4];if(o1(h))o=oB(h);else{o={name:(t=l,"[object String]"===({}).toString.call(t)&&(i=(n=oW.exec(t))[1],r=n[2]),s={name:i,message:r}).name,message:s.message,stack:[{url:c,column:d,line:u}]}}f(o,null!=h?h:l)})).stop,(h=N,ak(window,"onunhandledrejection",function(e){var t=e.parameters[0].reason||"Empty reason";h(oB(t),t)})).stop,(k=[],s7(P=[cw,"intervention"],cw)&&k.push((v=e,new oL(function(e){return ox(v,document,"securitypolicyviolation",function(t){var n,i;e.notify((n=t,i="'".concat(n.blockedURI,"' blocked by '").concat(n.effectiveDirective,"' directive"),cE({type:n.effectiveDirective,message:"".concat(cw,": ").concat(i),originalError:n,csp:{disposition:n.disposition},stack:cS(n.effectiveDirective,n.originalPolicy?"".concat(i,' of the policy "').concat(aI(n.originalPolicy,100,"..."),'"'):"no policy",n.sourceFile,n.lineNumber,n.columnNumber)})))}).stop}))),(x=P.filter(function(e){return e!==cw})).length&&k.push((_=x,new oL(function(e){if(window.ReportingObserver){var t=s4(function(t,n){return t.forEach(function(t){var n,i,r;return e.notify((i=(n=t).type,cE({type:(r=n.body).id,message:"".concat(i,": ").concat(r.message),originalError:n,stack:cS(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})))})}),n=new window.ReportingObserver(t,{types:_,buffered:!0});return n.observe(),function(){n.disconnect()}}}))),oN.apply(void 0,k)).subscribe(function(e){return L.notify(e)}),L.subscribe(function(e){return U.notify(14,{error:e})}),y=U,b=es,C=V,y.subscribe(14,function(e){var t,n,i,r,s,o,a=e.error,l=e.customerContext,c=e.savedCommonContext;y.notify(12,os({customerContext:l,savedCommonContext:c},(t=a,n=b,i=C,r={date:t.startClocks.timeStamp,error:{id:aA(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:"error",view:{in_foreground:n.wasInPageStateAt("active",t.startClocks.relative)}}
1,(s=i.findFeatureFlagEvaluations(t.startClocks.relative))&&!ob(s)&&(r.feature_flags=s),o={error:t.originalError,handlingStack:t.handlingStack},{rawRumEvent:r,startTime:t.startClocks.relative,domainContext:o})))}),{addError:function(e,t){var n=e.error,i=e.handlingStack,r=e.startClocks,s=e.context,o=oZ({stackTrace:o1(n)?oB(n):void 0,originalError:n,handlingStack:i,startClocks:r,nonErrorPrefix:"Provided",source:"custom",handling:"handled"});y.notify(14,{customerContext:s,savedCommonContext:t,error:o})}}).addError;R={clearTracingIfNeeded:lf,traceFetch:function(t){return lh(e,t,G,function(e){var n;if(t.input instanceof Request&&!(null==(n=t.init)?void 0:n.headers))t.input=new Request(t.input),Object.keys(e).forEach(function(n){t.input.headers.append(n,e[n])});else{t.init=o_(t.init);var i=[];t.init.headers instanceof Headers?t.init.headers.forEach(function(e,t){i.push([t,e])}):Array.isArray(t.init.headers)?t.init.headers.forEach(function(e){i.push(e)}):t.init.headers&&Object.keys(t.init.headers).forEach(function(e){i.push([e,t.init.headers[e]])}),t.init.headers=i.concat(oi(e))}})},traceXhr:function(t,n){return lh(e,t,G,function(e){Object.keys(e).forEach(function(t){n.setRequestHeader(t,e[t])})})}},function(e,t,n){var i;(!m&&(i=t,m=new oL(function(e){var t=ak(XMLHttpRequest.prototype,"open",lO).stop,n=ak(XMLHttpRequest.prototype,"send",function(t){!function(e,t,n){var i=e.target,r=e.handlingStack,s=lI.get(i);if(s){s.state="start",s.startClocks=ao(),s.isAborted=!1,s.xhr=i,s.handlingStack=r;var o=!1,a=ak(i,"onreadystatechange",function(){i.readyState===XMLHttpRequest.DONE&&l()}).stop,l=function(){if(c(),a(),!o){var e;o=!0,s.state="complete",e=s.startClocks.timeStamp,s.duration=ar()-e,s.status=i.status,n.notify(o_(s))}},c=ox(t,i,"loadend",l).stop;n.notify(s)}}(t,i,e)},{computeHandlingStack:!0}).stop,r=ak(XMLHttpRequest.prototype,"abort",lL).stop;return function(){t(),n(),r()}})),m).subscribe(function(t){if(lB(t.url))switch(t.state){case"start":n.traceXhr(t,t.xhr),t.requestIndex=lH(),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":n.clearTracingIfNeeded(t),e.notify(8,{duration:t.duration,method:t.method,requestIndex:t.requestIndex,spanId:t.spanId,startClocks:t.startClocks,status:t.status,traceId:t.traceId,traceSampled:t.traceSampled,type:"xhr",url:t.url,xhr:t.xhr,isAborted:t.isAborted,handlingStack:t.handlingStack})}})}(U,e,R),I=U,O=R,aD().subscribe(function(e){if(lB(e.url))switch(e.state){case"start":O.traceFetch(e),e.requestIndex=lH(),I.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":var t,n,i,r;t=e,n=function(t){O.clearTracingIfNeeded(e),I.notify(8,{duration:t,method:e.method,requestIndex:e.requestIndex,responseType:e.responseType,spanId:e.spanId,startClocks:e.startClocks,status:e.status,traceId:e.traceId,traceSampled:e.traceSampled,type:"fetch",url:e.url,response:e.response,init:e.init,input:e.input,isAborted:e.isAborted,handlingStack:e.handlingStack})},(r=t.response&&function(e){try{return e.clone()}catch(e){return}}(t.response))&&r.body?function(e,t,n){var i=e.getReader(),r=[],s=0;function o(){if(i.cancel().catch(om),n.collectStreamBody){if(1===r.length)a=r[0];else{var e,o,a=new Uint8Array(s),l=0;r.forEach(function(e){a.set(e,l),l+=e.length})}e=a.slice(0,n.bytesLimit),o=a.length>n.bytesLimit}t(void 0,e,o)}!function e(){i.read().then(s4(function(t){t.done?o():(n.collectStreamBody&&r.push(t.value),(s+=t.value.length)>n.bytesLimit?o():e())}),s4(function(e){return t(e)}))}()}(r.body,function(){var e;n((e=t.startClocks.timeStamp,ar()-e))},{bytesLimit:1/0,collectStreamBody:!1}):n((i=t.startClocks.timeStamp,ar()-i))}});var ek=function(e,t,n){function i(n){var i,r,s;t.wasInPageStateDuringPeriod("frozen",n.startClocks.relative,n.duration)||e.notify(12,(r=!0,s={date:(i=n).startClocks.timeStamp,vital:{id:aA(),type:i.type,name:i.name,duration:ai(i.duration),description:i.description},type:"vital"},r&&(s._dd={vital:{computed_value:!0}}),{rawRumEvent:s,startTime:i.startClocks.relative,customerContext:i.context,domainContext:{}}))}return{addDurationVital:i,startDurationVital:function(e,t){return void 0===t&&(t={}),aO(n,e,t)},stopDurationVital:function(e,t){void 0===t&&(t={}),aL(i,n,e,t)}}}(U,es,c),ex=(M=e.applicationId,{get:function(e){var t=eu.findView(e),n=ed.findUrl(e),i=G.findTrackedSession(e);if(i&&t&&n){var r=ef.findActionId(e);return{application_id:M,session_id:i.id,user_action:r?{id:r}:void 0,view:{id:t.id,name:t.name,referrer:n.referrer,url:n.url}}}}});return{addAction:eh,addError:eP,addTiming:eg,addFeatureFlagEvaluation:V.addFeatureFlagEvaluation,startView:ev,setViewContext:e
1y,setViewContextProperty:eb,setViewName:e_,lifeCycle:U,viewHistory:eu,session:G,stopSession:function(){return G.expire()},getInternalContext:ex.get,startDurationVital:ek.startDurationVital,stopDurationVital:ek.stopDurationVital,addDurationVital:ek.addDurationVital,stop:function(){D.forEach(function(e){return e()})}}},(L=om,{start:om,stop:om,onRumStart:function(e,t){L=function(){var e,n,i,r,s,o,a,l,c,u;return n=(e={errorType:"slim-package"}).session,i=e.viewContext,r=e.errorType,s=n?n.id:"no-session-id",o=[],void 0!==r&&o.push("error-type=".concat(r)),i&&(o.push("seed=".concat(i.id)),o.push("from=".concat(i.startClocks.timeStamp))),c=(l=t).site,u=l.subdomain||function(e){switch(e.site){case o4:case"datadoghq.eu":return"app";case o5:return"dd";default:return}}(l),a="https://".concat(u?"".concat(u,"."):"").concat(c),"".concat(a).concat("/rum/replay/sessions/".concat(s),"?").concat(o.join("&"))}},isRecording:function(){return!1},getReplayStats:function(){},getSessionReplayLink:function(){return L()}}));N=oo(),(k=N[P="DD_RUM"])&&!k.q&&k.version&&sQ.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),N[P]=ui,k&&k.q&&k.q.forEach(function(e){return s2(e,"onReady callback threw an error:")()});class ur{static init(e,t,n,i,r){ui.init({version:"1",applicationId:"11ac5199-3569-42ce-a35c-c355c42181b1",clientToken:r,site:"datadoghq.com",env:t,service:"smn",trackResources:!0,trackLongTasks:!0,trackUserInteractions:!0,allowedTracingUrls:i,useSecureSessionCookie:"local"!==t,sessionSampleRate:e,sessionReplaySampleRate:0,telemetrySampleRate:0,traceSampleRate:100,trackViewsManually:!0}),ui.startView({name:n,service:"smn",version:"1"})}}var us=((x=us||{}).LOGIN_CATEGORY="login",x.LOGIN_CLICK="login_click",x.LOGIN_EMAIL_METHOD_CLICK="login_email_method_click",x.LOGIN_EMAIL_VERIFICATION_CLICK="login_email_verification_click",x.LOGIN_ACCOUNT_CREATION_CLICK="login_account_creation_click",x.LOGOUT_CLICK="logout_click",x.SUCCESS_LOGIN="success_login",x.PROFILE_CLICK="profile_click",x),uo=n(8324),ua=n(514),ul=Object.defineProperty,uc=Object.defineProperties,uu=Object.getOwnPropertyDescriptors,ud=Object.getOwnPropertySymbols,uf=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable,up=(e,t,n)=>t in e?ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,um=(e,t)=>{for(var n in t||(t={}))uf.call(t,n)&&up(e,n,t[n]);if(ud)for(var n of ud(t))uh.call(t,n)&&up(e,n,t[n]);return e};let ug=class e{constructor(e,t){this.dataLogging=e,this.userInfoService=t,window.addEventListener("load",this.addLoginTracking.bind(this)),window.addEventListener("OtpViewRendered",this.addOtpTracking.bind(this)),window.addEventListener("OnboardingViewRendered",this.addOnboardingTracking.bind(this)),window.addEventListener("ProfileViewRendered",this.addSignOutButtonTracking.bind(this)),window.addEventListener("DOMContentLoaded",this.sendSuccessLoginEvent.bind(this)),window.addEventListener("up:fragment:inserted",this.sendSuccessLoginEvent.bind(this))}static init(t=sr.Y.getInstance(),n=new ua.A(new uo.A)){return e.instance||(e.instance=new e(t,n)),e.instance}addLoginTracking(){let e=document.body.classList.contains("nbe-single-post")||document.body.classList.contains("nbe-homepage");document.querySelectorAll(".auth-area").forEach(t=>{let n=e?t:t.querySelector("a");n&&(null!==this.userInfoService.getUserInfo()?n.addEventListener("click",()=>this.sendLoginEvent(us.PROFILE_CLICK)):n.addEventListener("click",()=>this.sendLoginEvent(us.LOGIN_CLICK)))});let t=document.getElementById("login-email-form");t?t.addEventListener("submit",()=>this.sendLoginEvent(us.LOGIN_EMAIL_METHOD_CLICK)):this.addSignOutButtonTracking()}sendSuccessLoginEvent(){if(void 0!==window.successLogin){let e={method:window.successLogin.method||"",reason:window.successLogin.reason||"",isOneTapLogin:window.successLogin.oneTapLogin||"",isFeverEmail:!!window.successLogin.isFeverEmail};this.sendLoginEvent(us.SUCCESS_LOGIN,"-",e),window.successLogin=void 0}}addOtpTracking(){let e=document.getElementById("login-otp-form");e&&e.addEventListener("submit",()=>this.sendLoginEvent(us.LOGIN_EMAIL_VERIFICATION_CLICK))}addOnboardingTracking(){let e=document.getElementById("login-onboarding-form");e&&e.addEventListener("submit",()=>this.sendLoginEvent(us.LOGIN_ACCOUNT_CREATION_CLICK))}addSignOutButtonTracking(){let e=document.getElementById("sign-out-button");e&&e.addEventListener("click",()=>this.sendLoginEvent(us.LOGOUT_CLICK))}sendLoginEvent(e,t="-",n={}){(document.body.classList.contains("nbe-single-post")||document.body.classList.contains("nbe-homepage"))&&(n=uc(um({},n),uu({origin:"nbe"}))),window.dataLayer.push({event:"gtag_event",data:{event_name:e,event_category:us.LOGIN_CATEGORY,event_label:t,event_detail:n}}),this.dataLogging.sendDataEvent(so.E.LOGIN,um({url:window.location.href,action:e},n))}};function uv(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function u_(e={},t={}){let n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>
1n.indexOf(e)).forEach(n=>{void 0===e[n]?e[n]=t[n]:uv(t[n])&&uv(e[n])&&Object.keys(t[n]).length>0&&u_(e[n],t[n])})}ug.SUCCESS_COOKIE_NAME="success_login";let uy={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ub(){let e="u">typeof document?document:{};return u_(e,uy),e}let uw={document:uy,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"u"<typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"u">typeof setTimeout&&clearTimeout(e)}};function uE(){let e="u">typeof window?window:{};return u_(e,uw),e}function uS(e,t=0){return setTimeout(e,t)}function uA(){return Date.now()}function uT(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function uC(...e){let t=Object(e[0]);for(let n=1;n<e.length;n+=1){let i=e[n];if(null!=i&&("u">typeof window&&void 0!==window.HTMLElement?!(i instanceof HTMLElement):!i||1!==i.nodeType&&11!==i.nodeType)){let e=Object.keys(Object(i)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let n=0,r=e.length;n<r;n+=1){let r=e[n],s=Object.getOwnPropertyDescriptor(i,r);void 0!==s&&s.enumerable&&(uT(t[r])&&uT(i[r])?i[r].__swiper__?t[r]=i[r]:uC(t[r],i[r]):!uT(t[r])&&uT(i[r])?(t[r]={},i[r].__swiper__?t[r]=i[r]:uC(t[r],i[r])):t[r]=i[r])}}}return t}function uI(e,t,n){e.style.setProperty(t,n)}function uO({swiper:e,targetPosition:t,side:n}){let i,r=uE(),s=-e.translate,o=null,a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);let l=t>s?"next":"prev",c=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,u=()=>{i=new Date().getTime(),null===o&&(o=i);let l=s+(.5-Math.cos(Math.max(Math.min((i-o)/a,1),0)*Math.PI)/2)*(t-s);if(c(l,t)&&(l=t),e.wrapperEl.scrollTo({[n]:l}),c(l,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:l})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function uL(e,t=""){let n=uE(),i=[...e.children];return(n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t)?i.filter(e=>e.matches(t)):i}function uN(e){try{return}catch(e){}}function uP(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),n}function uk(e,t){return uE().getComputedStyle(e,null).getPropertyValue(t)}function ux(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function uR(e,t,n){let i=uE();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function uM(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function uD(){let t,n;return e||(t=uE(),e={smoothScroll:(n=ub()).documentElement&&n.documentElement.style&&"scrollBehavior"in n.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&n instanceof t.DocumentTouch)}),e}function uU(e={}){return t||(t=function({userAgent:e}={}){let t=uD(),n=uE(),i=n.navigator.platform,r=e||n.navigator.userAgent,s={ios:!1,android:!1},o=n.screen.width,a=n.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/),c=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/),u=r.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="MacIntel"===i;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&((c=r.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),f=!1),l&&"Win32"!==i&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}(e)),t}
1function uB(){return i||(i=function(){let e=uE(),t=uU(),n=!1;function i(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(i()){let t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));n=e<16||16===e&&i<2}}let r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=i(),o=s||r&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:o,isWebView:r}}()),i}let uF=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},uV=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)},uH=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&!t.lazyPreloaderManaged&&t.remove()})),t&&!t.lazyPreloaderManaged&&t.remove()}},uj=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},uG=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=[r-t];n.push(...Array.from({length:t}).map((e,t)=>r+i+t)),e.slides.forEach((t,i)=>{n.includes(t.column)&&uj(e,i)});return}let s=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=s+t;i+=1){let t=(i%n+n)%n;(t<r||t>s)&&uj(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(s+t,n-1);i+=1)i!==r&&(i>s||i<r)&&uj(e,i)};function uq({swiper:e,runCallbacks:t,direction:n,step:i}){let{activeIndex:r,previousIndex:s}=e,o=n;o||(o=r>s?"next":r<s?"prev":"reset"),e.emit(`transition${i}`),t&&"reset"===o?e.emit(`slideResetTransition${i}`):t&&r!==s&&(e.emit(`slideChangeTransition${i}`),"next"===o?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`))}function u$(e,t,n){let i=uE(),{params:r}=e,s=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return!s||!(n<=o)&&!(n>=i.innerWidth-o)||"prevent"===s&&(t.preventDefault(),!0)}function uz(e){var t,n;let i,r,s=ub(),o=e;o.originalEvent&&(o=o.originalEvent);let a=this.touchEventsData;if("pointerdown"===o.type){if(null!==a.pointerId&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else"touchstart"===o.type&&1===o.targetTouches.length&&(a.touchId=o.targetTouches[0].identifier);if("touchstart"===o.type)return void u$(this,o,o.targetTouches[0].pageX);let{params:l,touches:c,enabled:u}=this;if(!u||!l.simulateTouch&&"mouse"===o.pointerType||this.animating&&l.preventInteractionOnTransition)return;!this.animating&&l.cssMode&&l.loop&&this.loopFix();let d=o.target;if("wrapper"===l.touchEventsTarget&&(t=d,n=this.wrapperEl,i=uE(),!(r=n.contains(t))&&i.HTMLSlotElement&&n instanceof HTMLSlotElement&&((r=[...n.assignedElements()].includes(t))||(r=function(e,t){let n=[t];for(;n.length>0;){let t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(t,n))),!r)||"which"in o&&3===o.which||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;let f=!!l.noSwipingClass&&""!==l.noSwipingClass,h=o.composedPath?o.composedPath():o.path;f&&o.target&&o.target.shadowRoot&&h&&(d=h[0]);let p=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,m=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(m?function(e,t=this){return function t(n){if(!n||n===ub()||n===uE())return null;n.assignedSlot&&(n=n.assignedSlot);let i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(p,d):d.closest(p))){this.allowClick=!0;return}if(l.swipeHandler&&!d.closest(l.swipeHandler))return;c.currentX=o.pageX,c.currentY=o.pageY;let g=c.currentX,v=c.currentY;if(!u$(this,o,g))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=g,c.startY=v,a.touchStartTime=uA(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let _=!0;d.matches(a.focusableElements)&&(_=!1,"SELECT"===d.nodeName&&(a.isTouched=!1)),s.activeElement&&s.activeElement.matches(a.focusableElements)&&s.activeElement!==d&&("mouse"===o.pointerType||"mouse"!==o.pointerType&&!d.matches(a.focusableElements))&&s.activeElement.blur();let y=_&&this.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||y)&&!d.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&this.freeMode&&this.animating&&!l.cssMode&&this.freeMode.onTouchStart(),this.emit
1("touchStart",o)}function uK(e){let t,n,i=ub(),r=this.touchEventsData,{params:s,touches:o,rtlTranslate:a,enabled:l}=this;if(!l||!s.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type&&(null!==r.touchId||c.pointerId!==r.pointerId))return;if("touchmove"===c.type){if(!(t=[...c.changedTouches].find(e=>e.identifier===r.touchId))||t.identifier!==r.touchId)return}else t=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&this.emit("touchMoveOpposite",c);return}let u=t.pageX,d=t.pageY;if(c.preventedByNestedSwiper){o.startX=u,o.startY=d;return}if(!this.allowTouchMove){c.target.matches(r.focusableElements)||(this.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=uA());return}if(s.touchReleaseOnEdges&&!s.loop){if(this.isVertical()){if(d<o.startY&&this.translate<=this.maxTranslate()||d>o.startY&&this.translate>=this.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(a&&(u>o.startX&&-this.translate<=this.maxTranslate()||u<o.startX&&-this.translate>=this.minTranslate()))return;else if(!a&&(u<o.startX&&this.translate<=this.maxTranslate()||u>o.startX&&this.translate>=this.minTranslate()))return}if(i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==c.target&&"mouse"!==c.pointerType&&i.activeElement.blur(),i.activeElement&&c.target===i.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,this.allowClick=!1;return}r.allowTouchCallbacks&&this.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=d;let f=o.currentX-o.startX,h=o.currentY-o.startY;if(this.params.threshold&&Math.sqrt(f**2+h**2)<this.params.threshold)return;if(void 0===r.isScrolling){let e;this.isHorizontal()&&o.currentY===o.startY||this.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:f*f+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(f))/Math.PI,r.isScrolling=this.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(r.isScrolling&&this.emit("touchMoveOpposite",c),void 0===r.startMoving&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||"touchmove"===c.type&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;this.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let p=this.isHorizontal()?f:h,m=this.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(p=Math.abs(p)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),o.diff=p,p*=s.touchRatio,a&&(p=-p,m=-m);let g=this.touchesDirection;this.swipeDirection=p>0?"prev":"next",this.touchesDirection=m>0?"prev":"next";let v=this.params.loop&&!s.cssMode,_="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!r.isMoved){if(v&&_&&this.loopFix({direction:this.swipeDirection}),r.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});this.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,s.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",c)}if(new Date().getTime(),!1!==s._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&g!==this.touchesDirection&&v&&_&&Math.abs(p)>=1){Object.assign(o,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}this.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=p+r.startTranslate;let y=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),p>0?(v&&_&&!n&&r.allowThresholdMove&&r.currentTranslate>(s.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]-("auto"!==s.slidesPerView&&this.slides.length-s.slidesPerView>=2?this.slidesSizesGrid[this.activeIndex+1]+this.params.spaceBetween:0)-this.params.spaceBetween:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>this.minTranslate()&&(y=!1,s.resistance&&(r.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+r.startTranslate+p)**b))):p<0&&(v&&_&&!n&&r.allowThresholdMove&&r.currentTranslate<(s.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween+("auto"!==s.slidesPerView&&this.slides.length-s.slidesPerView>=2?this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween:0):this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===s.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),r.currentTranslate<this.maxTranslate()&&(y=!1,s.resistance&&(r.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-r.startTranslate-p)**b))),y&&(c.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),this.allowSlidePrev||this.allowSlideNext||(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(p)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=this.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&this.freeMode||s.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(r.currentTranslate),this.setTranslate(r.currentTranslate))}function uW(e){let t,n,i=this,r=i.touchEventsData,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(!(t=[...s.changedTouches].find(e=>e.identifier===r.touchId))||t.identifier!==r.touchId)return}else{if(null!==r.touchId||s.pointerId!==r.pointerId)return;t=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(i.browser.isSafari||i.browser.isWebView)))return;r.pointerId=null,r.touchId=null;let{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:u}=i;if(!u||!o.simulateTouch&&"mouse"===s.pointerType)return;if(r.allowTouchCallbacks&&i.emit("touchEnd",s),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&o.grabCursor&&i.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}o.grabCursor&&r.isMoved&&r.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);let d=uA(),f=d-r.touchStartTime;if(i.allowClick){let e=s.path||s.composedPath&&s.composedPath();i.updateClickedSlide(e&&e[0]||s.target,e),i.emit("tap click",s),f<300&&d-r.lastClickTime<300&&i.emit("doubleTap doubleClick",
1s)}if(r.lastClickTime=uA(),uS(()=>{i.destroyed||(i.allowClick=!0)}),!r.isTouched||!r.isMoved||!i.swipeDirection||0===a.diff&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,n=o.followFinger?l?i.translate:-i.translate:-r.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void i.freeMode.onTouchEnd({currentPos:n});let h=n>=-i.maxTranslate()&&!i.params.loop,p=0,m=i.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){let t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==c[e+t]?(h||n>=c[e]&&n<c[e+t])&&(p=e,m=c[e+t]-c[e]):(h||n>=c[e])&&(p=e,m=c[c.length-1]-c[c.length-2])}let g=null,v=null;o.rewind&&(i.isBeginning?v=o.virtual&&o.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(g=0));let _=(n-c[p])/m,y=p<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(f>o.longSwipesMs){if(!o.longSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&(_>=o.longSwipesRatio?i.slideTo(o.rewind&&i.isEnd?g:p+y):i.slideTo(p)),"prev"===i.swipeDirection&&(_>1-o.longSwipesRatio?i.slideTo(p+y):null!==v&&_<0&&Math.abs(_)>o.longSwipesRatio?i.slideTo(v):i.slideTo(p))}else{if(!o.shortSwipes)return void i.slideTo(i.activeIndex);i.navigation&&(s.target===i.navigation.nextEl||s.target===i.navigation.prevEl)?s.target===i.navigation.nextEl?i.slideTo(p+y):i.slideTo(p):("next"===i.swipeDirection&&i.slideTo(null!==g?g:p+y),"prev"===i.swipeDirection&&i.slideTo(null!==v?v:p))}}function uY(){let e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let a=o&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function uX(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function uJ(){let{wrapperEl:e,rtlTranslate:t,enabled:n}=this;if(!n)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let i=this.maxTranslate()-this.minTranslate();(0===i?0:(this.translate-this.minTranslate())/i)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function uQ(e){uH(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}function uZ(){!this.documentTouchHandlerProceeded&&(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let u0=(e,t)=>{let n=ub(),{params:i,el:r,wrapperEl:s,device:o}=e,a=!!i.nested,l="on"===t?"addEventListener":"removeEventListener";r&&"string"!=typeof r&&(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",e.onClick,!0),i.cssMode&&s[l]("scroll",e.onScroll),i.updateOnWindowResize?e[t](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",uY,!0):e[t]("observerUpdate",uY,!0),r[l]("load",e.onLoad,{capture:!0}))},u1=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var u2={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
1spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let u3={eventsEmitter:{on(e,t,n){let i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof t)return i;let r=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)}),i},once(e,t,n){let i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof t)return i;function r(...n){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(i,n)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let n=this;return n.eventsListeners&&!n.destroyed&&n.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)})}),n},emit(...e){let t,n,i,r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],n=e.slice(1,e.length),i=r):(t=e[0].events,n=e[0].data,i=e[0].context||r),n.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...n])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(i,n)})})),r}},update:{updateSize:function(){let e,t,n=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:n.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:n.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(uk(n,"padding-left")||0,10)-parseInt(uk(n,"padding-right")||0,10),t=t-parseInt(uk(n,"padding-top")||0,10)-parseInt(uk(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e,t=this;function n(e,n){return parseFloat(e.getPropertyValue(t.getDirectionLabel(n))||0)}let i=t.params,{wrapperEl:r,slidesEl:s,rtlTranslate:o,wrongRTL:a}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=uL(s,`.${t.params.slideClass}, swiper-slide`),d=l?t.virtual.slides.length:u.length,f=[],h=[],p=[],m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(t));let g=i.slidesOffsetAfter;"function"==typeof g&&(g=i.slidesOffsetAfter.call(t));let v=t.snapGrid.length,_=t.slidesGrid.length,y=t.size-m-g,b=i.spaceBetween,w=-m,E=0,S=0;if(void 0===y)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*y:"string"==typeof b&&(b=parseFloat(b)),t.virtualSize=-b-m-g,u.forEach(e
1=>{o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(uI(r,"--swiper-centered-offset-before",""),uI(r,"--swiper-centered-offset-after","")),i.cssMode&&(uI(r,"--swiper-slides-offset-before",`${m}px`),uI(r,"--swiper-slides-offset-after",`${g}px`));let A=i.grid&&i.grid.rows>1&&t.grid;A?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let T="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let r=0;r<d;r+=1){e=0;let s=u[r];if(!s||(A&&t.grid.updateSlide(r,s,u),"none"!==uk(s,"display"))){if(l&&"auto"===i.slidesPerView)i.virtual.slidesPerViewAutoSlideSize&&(e=i.virtual.slidesPerViewAutoSlideSize),e&&s&&(i.roundLengths&&(e=Math.floor(e)),s.style[t.getDirectionLabel("width")]=`${e}px`);else if("auto"===i.slidesPerView){T&&(s.style[t.getDirectionLabel("width")]="");let r=getComputedStyle(s),o=s.style.transform,a=s.style.webkitTransform;if(o&&(s.style.transform="none"),a&&(s.style.webkitTransform="none"),i.roundLengths)e=t.isHorizontal()?uR(s,"width",!0):uR(s,"height",!0);else{let t=n(r,"width"),i=n(r,"padding-left"),o=n(r,"padding-right"),a=n(r,"margin-left"),l=n(r,"margin-right"),c=r.getPropertyValue("box-sizing");if(c&&"border-box"===c)e=t+a+l;else{let{clientWidth:n,offsetWidth:r}=s;e=t+i+o+a+l+(r-n)}}o&&(s.style.transform=o),a&&(s.style.webkitTransform=a),i.roundLengths&&(e=Math.floor(e))}else e=(y-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(e=Math.floor(e)),s&&(s.style[t.getDirectionLabel("width")]=`${e}px`);s&&(s.swiperSlideSize=e),p.push(e),i.centeredSlides?(w=w+e/2+E/2+b,0===E&&0!==r&&(w=w-y/2-b),0===r&&(w=w-y/2-b),.001>Math.abs(w)&&(w=0),i.roundLengths&&(w=Math.floor(w)),S%i.slidesPerGroup==0&&f.push(w),h.push(w)):(i.roundLengths&&(w=Math.floor(w)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&f.push(w),h.push(w),w=w+e+b),t.virtualSize+=e+b,E=e,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,y)+g,o&&a&&("slide"===i.effect||"coverflow"===i.effect)&&(r.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(r.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),A&&t.grid.updateWrapperSize(e,f),!i.centeredSlides){let e="auto"!==i.slidesPerView&&i.slidesPerView%1!=0,n=i.snapToSlideEdge&&!i.loop&&("auto"===i.slidesPerView||e),r=f.length;if(n){let e;if("auto"===i.slidesPerView){e=1;let t=0;for(let n=p.length-1;n>=0;n-=1)if((t+=p[n]+(n<p.length-1?b:0))<=y)e=p.length-n;else break}else e=Math.floor(i.slidesPerView);r=Math.max(d-e,0)}let s=[];for(let e=0;e<f.length;e+=1){let o=f[e];i.roundLengths&&(o=Math.floor(o)),n?e<=r&&s.push(o):f[e]<=t.virtualSize-y&&s.push(o)}f=s,Math.floor(t.virtualSize-y)-Math.floor(f[f.length-1])>1&&!n&&f.push(t.virtualSize-y)}if(l&&i.loop){let e=p[0]+b;if(i.slidesPerGroup>1){let n=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),r=e*i.slidesPerGroup;for(let e=0;e<n;e+=1)f.push(f[f.length-1]+r)}for(let n=0;n<t.virtual.slidesBefore+t.virtual.slidesAfter;n+=1)1===i.slidesPerGroup&&f.push(f[f.length-1]+e),h.push(h[h.length-1]+e),t.virtualSize+=e}if(0===f.length&&(f=[0]),0!==b){let e=t.isHorizontal()&&o?"marginLeft":t.getDirectionLabel("marginRight");u.filter((e,t)=>!i.cssMode||!!i.loop||t!==u.length-1).forEach(t=>{t.style[e]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(b||0)});let t=(e-=b)>y?e-y:0;f=f.map(e=>e<=0?-m:e>t?t+g:e)}if(i.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(b||0)}),(e-=b)<y){let t=(y-e)/2;f.forEach((e,n)=>{f[n]=e-t}),h.forEach((e,n)=>{h[n]=e+t})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:h,slidesSizesGrid:p}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){uI(r,"--swiper-centered-offset-before",`${-f[0]}px`),uI(r,"--swiper-centered-offset-after",`${t.size/2-p[p.length-1]/2}px`);let e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+n)}if(d!==c&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==_&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!i.cssMode&&("slide"===i.effect||"fade"===i.effect)){let e=`${i.containerModifierClass}backface-hidden`,n=t.el.classList.contains(e);d<=i.maxBackfaceHiddenSlides?n||t.el.classList.add(e):n&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t,n=this,i=[],r=n.virtual&&n.params.virtual.enabled,s=0;"number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);let o=e=>r?n.slides[n.getSlideIndexByData(e)]:n.slides[e];if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>
11)if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(e=>{i.push(e)});else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){let e=n.activeIndex+t;if(e>n.slides.length&&!r)break;i.push(o(e))}else i.push(o(n.activeIndex));for(t=0;t<i.length;t+=1)if(void 0!==i[t]){let e=i[t].offsetHeight;s=e>s?e:s}(s||0===s)&&(n.wrapperEl.style.height=`${s}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(this.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-t-this.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){let t=this.params,{slides:n,rtlTranslate:i,snapGrid:r}=this;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();let s=-e;i&&(s=e),this.visibleSlidesIndexes=[],this.visibleSlides=[];let o=t.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*this.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<n.length;e+=1){let a=n[e],l=a.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(l-=n[0].swiperSlideOffset);let c=(s+(t.centeredSlides?this.minTranslate():0)-l)/(a.swiperSlideSize+o),u=(s-r[0]+(t.centeredSlides?this.minTranslate():0)-l)/(a.swiperSlideSize+o),d=-(s-l),f=d+this.slidesSizesGrid[e],h=d>=0&&d<=this.size-this.slidesSizesGrid[e],p=d>=0&&d<this.size-1||f>1&&f<=this.size||d<=0&&f>=this.size;p&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(e)),uF(a,p,t.slideVisibleClass),uF(a,h,t.slideFullyVisibleClass),a.progress=i?-c:c,a.originalProgress=i?-u:u}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,n=this.maxTranslate()-this.minTranslate(),{progress:i,isBeginning:r,isEnd:s,progressLoop:o}=this,a=r,l=s;if(0===n)i=0,r=!0,s=!0;else{i=(e-this.minTranslate())/n;let t=1>Math.abs(e-this.minTranslate()),o=1>Math.abs(e-this.maxTranslate());r=t||i<=0,s=o||i>=1,t&&(i=0),o&&(i=1)}if(t.loop){let t=this.getSlideIndexByData(0),n=this.getSlideIndexByData(this.slides.length-1),i=this.slidesGrid[t],r=this.slidesGrid[n],s=this.slidesGrid[this.slidesGrid.length-1],a=Math.abs(e);(o=a>=i?(a-i)/s:(a+s-r)/s)>1&&(o-=1)}Object.assign(this,{progress:i,progressLoop:o,isBeginning:r,isEnd:s}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),r&&!a&&this.emit("reachBeginning toEdge"),s&&!l&&this.emit("reachEnd toEdge"),(a&&!r||l&&!s)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){let e,t,n,{slides:i,params:r,slidesEl:s,activeIndex:o}=this,a=this.virtual&&r.virtual.enabled,l=this.grid&&r.grid&&r.grid.rows>1,c=e=>uL(s,`.${r.slideClass}${e}, swiper-slide${e}`)[0];if(a)if(r.loop){let t=o-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=c(`[data-swiper-slide-index="${t}"]`)}else e=c(`[data-swiper-slide-index="${o}"]`);else l?(e=i.find(e=>e.column===o),n=i.find(e=>e.column===o+1),t=i.find(e=>e.column===o-1)):e=i[o];e&&!l&&(n=function(e,t){let n=[];for(;e.nextElementSibling;){let i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(e,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!n&&(n=i[0]),t=function(e,t){let n=[];for(;e.previousElementSibling;){let i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(e,`.${r.slideClass}
1, swiper-slide`)[0],r.loop),i.forEach(i=>{uV(i,i===e,r.slideActiveClass),uV(i,i===n,r.slideNextClass),uV(i,i===t,r.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,n,i=this,r=i.rtlTranslate?i.translate:-i.translate,{snapGrid:s,params:o,activeIndex:a,realIndex:l,snapIndex:c}=i,u=e,d=e=>{let t=e-i.virtual.slidesBefore;return t<0&&(t=i.virtual.slides.length+t),t>=i.virtual.slides.length&&(t-=i.virtual.slides.length),t};if(void 0===u&&(u=function(e){let t,{slidesGrid:n,params:i}=e,r=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<n.length;e+=1)void 0!==n[e+1]?r>=n[e]&&r<n[e+1]-(n[e+1]-n[e])/2?t=e:r>=n[e]&&r<n[e+1]&&(t=e+1):r>=n[e]&&(t=e);return i.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(i)),s.indexOf(r)>=0)t=s.indexOf(r);else{let e=Math.min(o.slidesPerGroupSkip,u);t=e+Math.floor((u-e)/o.slidesPerGroup)}if(t>=s.length&&(t=s.length-1),u===a&&!i.params.loop){t!==c&&(i.snapIndex=t,i.emit("snapIndexChange"));return}if(u===a&&i.params.loop&&i.virtual&&i.params.virtual.enabled){i.realIndex=d(u);return}let f=i.grid&&o.grid&&o.grid.rows>1;if(i.virtual&&o.virtual.enabled)n=o.loop?d(u):u;else if(f){let e=i.slides.find(e=>e.column===u),t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(i.slides.indexOf(e),0)),n=Math.floor(t/o.grid.rows)}else if(i.slides[u]){let e=i.slides[u].getAttribute("data-swiper-slide-index");n=e?parseInt(e,10):u}else n=u;Object.assign(i,{previousSnapIndex:c,snapIndex:t,previousRealIndex:l,realIndex:n,previousIndex:a,activeIndex:u}),i.initialized&&uG(i),i.emit("activeIndexChange"),i.emit("snapIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&(l!==n&&i.emit("realIndexChange"),i.emit("slideChange"))},updateClickedSlide:function(e,t){let n,i=this.params,r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&this.isElement&&t&&t.length>
11&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)});let s=!1;if(r){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===r){s=!0,n=e;break}}if(r&&s)this.clickedSlide=r,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=n;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}i.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let{params:t,rtlTranslate:n,translate:i,wrapperEl:r}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let s=function(e,t="x"){let n,i,r,s,o,a=uE(),l=((o=uE()).getComputedStyle&&(s=o.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s);return a.WebKitCSSMatrix?((i=l.transform||l.webkitTransform).split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new a.WebKitCSSMatrix("none"===i?"":i)):n=(r=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(i=a.WebKitCSSMatrix?r.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=a.WebKitCSSMatrix?r.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}(r,e);return s+=this.cssOverflowAdjustment(),n&&(s=-s),s||0},setTranslate:function(e,t){let{rtlTranslate:n,params:i,wrapperEl:r,progress:s}=this,o=0,a=0;this.isHorizontal()?o=n?-e:e:a=e,i.roundLengths&&(o=Math.floor(o),a=Math.floor(a)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:a,i.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-o:-a:i.virtualTranslate||(this.isHorizontal()?o-=this.cssOverflowAdjustment():a-=this.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${a}px, 0px)`);let l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==s&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,i=!0,r){let s,o=this,{params:a,wrapperEl:l}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;let c=o.minTranslate(),u=o.maxTranslate();if(s=i&&e>c?c:i&&e<u?u:e,o.updateProgress(s),a.cssMode){let e=o.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-s;else{if(!o.support.smoothScroll)return uO({swiper:o,targetPosition:-s,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-s,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(s),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(s),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){!o||o.destroyed||e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${e}ms`,this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let{params:n}=this;n.cssMode||(n.autoHeight&&this.updateAutoHeight(),uq({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let{params:n}=this;this.animating=!1,n.cssMode||(this.setTransition(0),uq({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t,n=!0,i,r){let s;"string"==typeof e&&(e=parseInt(e,10));let o=this,a=e;a<0&&(a=0);let{params:l,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:h,wrapperEl:p,enabled:m}=o;if(!m&&!i&&!r||o.destroyed||o.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=o.params.speed);let g=Math.min(o.params.slidesPerGroupSkip,a),v=g+Math.floor((a-g)/o.params.slidesPerGroup);v>=c.length&&(v=c.length-1);let _=-c[v];if(l.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){let t=-Math.floor(100*_),n=Math.floor(100*u[e]),i=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=n&&t<i-(i-n)/2?a=e:t>=n&&t<i&&(a=e+1):t>=n&&(a=e)}if(o.initialized&&a!==f&&(!o.allowSlideNext&&(h?_>o.translate&&_>o.minTranslate():_<o.translate&&_<o.minTranslate())||!o.allowSlidePrev&&_>o.translate&&_>o.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(_),s=a>f?"next":a<f?"prev":"reset";let y=o.virtual&&o.params.virtual.enabled;if(!(y&&r)&&(h&&-_===o.translate||!h&&_===o.translate))return o.updateActiveIndex(a),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(_),"reset"!==s&&(o.transitionStart(n,s),o.transitionEnd(n,s)),!1;if(l.cssMode){let e=o.isHorizontal(),n=h?_:-_;if(0===t)y&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),y&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,y&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return uO({swiper:o,targetPosition:n,side:e?"left"
1:"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}let b=uB().isSafari;return y&&!r&&b&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(t),o.setTranslate(_),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(n,s),0===t?o.transitionEnd(n,s):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){!o||o.destroyed||e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,s))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,n=!0,i){"string"==typeof e&&(e=parseInt(e,10));let r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);let s=r.grid&&r.params.grid&&r.params.grid.rows>1,o=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o+=r.virtual.slidesBefore;else{let e;if(s){let t=o*r.params.grid.rows;e=r.slides.find(e=>+e.getAttribute("data-swiper-slide-index")===t).column}else e=r.getSlideIndexByData(o);let t=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n,slidesOffsetBefore:a,slidesOffsetAfter:l}=r.params,c=n||!!a||!!l,u=r.params.slidesPerView;"auto"===u?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&u%2==0&&(u+=1));let d=t-e<u;if(c&&(d=d||e<Math.ceil(u/2)),i&&c&&"auto"!==r.params.slidesPerView&&!s&&(d=!1),d){let n=c?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?e+1:e-t+1,slideRealIndex:"next"===n?r.realIndex:void 0})}if(s){let e=o*r.params.grid.rows;o=r.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e).column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,t,n,i)}),r},slideNext:function(e,t=!0,n){let i=this,{enabled:r,params:s,animating:o}=i;if(!r||i.destroyed)return i;void 0===e&&(e=i.params.speed);let a=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));let l=i.activeIndex<s.slidesPerGroupSkip?1:a,c=i.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return s.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t=!0,n){let i=this,{params:r,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===e&&(e=i.params.speed);let u=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let f=d(a?i.translate:-i.translate),h=s.map(e=>d(e)),p=r.freeMode&&r.freeMode.enabled,m=s[h.indexOf(f)-1];if(void 0===m&&(r.cssMode||p)){let e;
1s.forEach((t,n)=>{f>=t&&(e=n)}),void 0!==e&&(m=p?s[e]:s[e>0?e-1:e])}let g=0;if(void 0!==m&&((g=o.indexOf(m))<0&&(g=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(g=Math.max(g=g-i.slidesPerViewDynamic("previous",!0)+1,0))),r.rewind&&i.isBeginning){let r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,e,t,n)}),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t=!0,n){if(!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t=!0,n,i=.5){if(this.destroyed)return;void 0===e&&(e=this.params.speed);let r=this.activeIndex,s=Math.min(this.params.slidesPerGroupSkip,r),o=s+Math.floor((r-s)/this.params.slidesPerGroup),a=this.rtlTranslate?this.translate:-this.translate;if(a>=this.snapGrid[o]){let e=this.snapGrid[o];a-e>(this.snapGrid[o+1]-e)*i&&(r+=this.params.slidesPerGroup)}else{let e=this.snapGrid[o-1];a-e<=(this.snapGrid[o]-e)*i&&(r-=this.params.slidesPerGroup)}return r=Math.min(r=Math.max(r,0),this.slidesGrid.length-1),this.slideTo(r,e,t,n)},slideToClickedSlide:function(){let e,t=this;if(t.destroyed)return;let{params:n,slidesEl:i}=t,r="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,s=t.getSlideIndexWhenGrid(t.clickedIndex),o=t.isElement?"swiper-slide":`.${n.slideClass}`,a=t.grid&&t.params.grid&&t.params.grid.rows>1;if(n.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?t.slideToLoop(e):s>(a?(t.slides.length-r)/2-(t.params.grid.rows-1):t.slides.length-r)?(t.loopFix(),s=t.getSlideIndex(uL(i,`${o}[data-swiper-slide-index="${e}"]`)[0]),uS(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},loop:{loopCreate:function(e,t){let n,i=this,{params:r,slidesEl:s}=i;if(!r.loop||i.virtual&&i.params.virtual.enabled)return;let o=i.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||o)&&((n=uL(s,`.${r.slideBlankClass}
1`)).forEach(e=>{e.remove()}),n.length>0&&(i.recalcSlides(),i.updateSlides()));let a=r.slidesPerGroup*(o?r.grid.rows:1),l=i.slides.length%a!=0,c=o&&i.slides.length%r.grid.rows!=0,u=e=>{for(let t=0;t<e;t+=1){let e=i.isElement?uP("swiper-slide",[r.slideBlankClass]):uP("div",[r.slideClass,r.slideBlankClass]);i.slidesEl.append(e)}};l?r.loopAddBlankSlides?(u(a-i.slides.length%a),i.recalcSlides(),i.updateSlides()):uN("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):c&&(r.loopAddBlankSlides?(u(r.grid.rows-i.slides.length%r.grid.rows),i.recalcSlides(),i.updateSlides()):uN("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),uL(s,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)});let d=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;i.loopFix({slideRealIndex:e,direction:d?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:i,activeSlideIndex:r,initial:s,byController:o,byMousewheel:a}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:h}=l,{centeredSlides:p,slidesOffsetBefore:m,slidesOffsetAfter:g,initialSlide:v}=h,_=p||!!m||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled){t&&(_||0!==l.snapIndex?_&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,l.emit("loopFix");return}let y=h.slidesPerView;"auto"===y?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(h.slidesPerView,10)),_&&y%2==0&&(y+=1));let b=h.slidesPerGroupAuto?y:h.slidesPerGroup,w=_?Math.max(b,Math.ceil(y/2)):b;w%b!=0&&(w+=b-w%b),l.loopedSlides=w+=h.loopAdditionalSlides;let E=l.grid&&h.grid&&h.grid.rows>1;c.length<y+w||"cards"===l.params.effect&&c.length<y+2*w?uN("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):E&&"row"===h.grid.fill&&uN("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let S=[],A=[],T=E?Math.ceil(c.length/h.grid.rows):c.length,C=s&&T-v<y&&!_,I=C?v:l.activeIndex;void 0===r?r=l.getSlideIndex(c.find(e=>e.classList.contains(h.slideActiveClass))):I=r;let O="next"===n||!n,L="prev"===n||!n,N=0,P=0,k=(E?c[r].column:r)+(_&&void 0===i?-y/2+.5:0);if(k<w){N=Math.max(w-k,b);for(let e=0;e<w-k;e+=1){let t=e-Math.floor(e/T)*T;if(E){let e=T-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&S.push(t)}else S.push(T-t-1)}}else if(k+y>T-w){P=Math.max(k-(T-2*w),b),C&&(P=Math.max(P,y-T+v+1));for(let e=0;e<P;e+=1){let t=e-Math.floor(e/T)*T;E?c.forEach((e,n)=>{e.column===t&&A.push(n)}):A.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length<y+2*w&&(A.includes(r)&&A.splice(A.indexOf(r),1),S.includes(r)&&S.splice(S.indexOf(r),1)),L&&S.forEach(e=>{c[e].swiperLoopMoveDOM=!0,f.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),O&&A.forEach(e=>{c[e].swiperLoopMoveDOM=!0,f.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():E&&(S.length>0&&L||A.length>0&&O)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),t){if(S.length>0&&L){if(void 0===e){let e=l.slidesGrid[I],t=l.slidesGrid[I+N]-e;a?l.setTranslate(l.translate-t):(l.slideTo(I+Math.ceil(N),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(i){let e=E?S.length/h.grid.rows:S.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(A.length>0&&O)if(void 0===e){let e=l.slidesGrid[I],t=l.slidesGrid[I-P]-e;a?l.setTranslate(l.translate-t):(l.slideTo(I-P,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{let e=E?A.length/h.grid.rows:A.length;l.slideTo(l.activeIndex-e,0,!1,!0)}}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){let s={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e
1=>{!e.destroyed&&e.params.loop&&e.loopFix({...s,slideTo:e.params.slidesPerView===h.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...s,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||!t||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let n=[];this.slides.forEach(e=>{n[void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:e}=this;this.onTouchStart=uz.bind(this),this.onTouchMove=uK.bind(this),this.onTouchEnd=uW.bind(this),this.onDocumentTouchStart=uZ.bind(this),e.cssMode&&(this.onScroll=uJ.bind(this)),this.onClick=uX.bind(this),this.onLoad=uQ.bind(this),u0(this,"on")},detachEvents:function(){u0(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:n,params:i,el:r}=e,s=i.breakpoints;if(!s||s&&0===Object.keys(s).length)return;let o=ub(),a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:o.querySelector(i.breakpointsBase),c=e.getBreakpoint(s,a,l);if(!c||e.currentBreakpoint===c)return;let u=(c in s?s[c]:void 0)||e.originalParams,d=u1(e,i),f=u1(e,u),h=e.params.grabCursor,p=u.grabCursor,m=i.enabled;d&&!f?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(r.classList.add(`${i.containerModifierClass}grid`),(u.grid.fill&&"column"===u.grid.fill||!u.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!p?e.unsetGrabCursor():!h&&p&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===u[t])return;let n=i[t]&&i[t].enabled,r=u[t]&&u[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});let g=u.direction&&u.direction!==i.direction,v=i.loop&&(u.slidesPerView!==i.slidesPerView||g),_=i.loop;g&&n&&e.changeDirection(),uC(e.params,u);let y=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!y?e.disable():!m&&y&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!_&&b?(e.loopCreate(t),e.updateSlides()):_&&!b&&e.loopDestroy()),e.emit("breakpoint",u)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let i=!1,r=uE(),s="window"===t?r.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:s*parseFloat(e.substr(1)),point:e}:{value:e,point:e});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){let{point:s,value:a}=o[e];"window"===t?r.matchMedia(`(min-width: ${a}px)`).matches&&(i=s):a<=n.clientWidth&&(i=s)}return i||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:n}=t;if(n){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*n;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit
1(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var e,t;let n,{classNames:i,params:r,rtl:s,el:o,device:a}=this,l=(e=["initialized",r.direction,{"free-mode":this.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:s},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&"column"===r.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],t=r.containerModifierClass,n=[],e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n);i.push(...l),o.classList.add(...i),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},u6={};class u5{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=uC({},n),t&&!n.el&&(n.el=t);const i=ub();if(n.el&&"string"==typeof n.el&&i.querySelectorAll(n.el).length>1){const e=[];return i.querySelectorAll(n.el).forEach(t=>{let i=uC({},n,{el:t});e.push(new u5(i))}),e}const r=this;r.__swiper__=!0,r.support=uD(),r.device=uU({userAgent:n.userAgent}),r.browser=uB(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],n.modules&&Array.isArray(n.modules)&&n.modules.forEach(e=>{"function"==typeof e&&0>r.modules.indexOf(e)&&r.modules.push(e)});const s={};r.modules.forEach(e=>{var t;e({params:n,swiper:r,extendParams:(t=n,function(e={}){let n=Object.keys(e)[0],i=e[n];"object"!=typeof i||null===i||(!0===t[n]&&(t[n]={enabled:!0}),"navigation"===n&&t[n]&&t[n].enabled&&!t[n].prevEl&&!t[n].nextEl&&(t[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&t[n]&&t[n].enabled&&!t[n].el&&(t[n].auto=!0),n in t&&"enabled"in i&&("object"!=typeof t[n]||"enabled"in t[n]||(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}))),uC(s,e)}),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const o=uC({},u2,s);return r.params=uC({},o,u6,n),r.originalParams=uC({},r.params),r.passedParams=uC({}
1,n),r.params&&r.params.on&&Object.keys(r.params.on).forEach(e=>{r.on(e,r.params.on[e])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===r.params.direction},isVertical(){return"vertical"===r.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(e){return this.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}getSlideIndex(e){let{slidesEl:t,params:n}=this,i=ux(uL(t,`.${n.slideClass}, swiper-slide`)[0]);return ux(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=uL(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:n,slides:i,slidesGrid:r,slidesSizesGrid:s,size:o,activeIndex:a}=this,l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[a]?Math.ceil(i[a].swiperSlideSize):0;for(let n=a+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>o&&(e=!0));for(let n=a-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=a+1;e<i.length;e+=1)(t?r[e]+s[e]-r[a]<o:r[e]-r[a]<o)&&(l+=1);else for(let e=a-1;e>=0;e-=1)r[a]-r[e]<o&&(l+=1);return l}update(){let e,t=this;if(!t||t.destroyed)return;let{snapGrid:n,params:i}=t;function r(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}if(i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&uH(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)r(),i.autoHeight&&t.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&t.isEnd&&!i.centeredSlides){let n=t.virtual&&i.virtual.enabled?t.virtual.slides:t.slides;
1e=t.slideTo(n.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||r()}i.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${n}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):uL(n,i())[0];return!r&&t.params.createElements&&(r=uP("div",t.params.wrapperClass),n.append(r),uL(n,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===uk(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===uk(n,"direction")),wrongRTL:"-webkit-box"===uk(r,"display")}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?uH(t,e):e.addEventListener("load",e=>{uH(t,e.target)})}),uG(t),t.initialized=!0,uG(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){let n=this,{params:i,el:r,wrapperEl:s,slides:o}=n;if(void 0===n.params||n.destroyed)return null;(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),s&&s.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e)&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),Object.keys(n).forEach(e=>{try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}));return n.destroyed=!0,null}static extendDefaults(e){uC(u6,e)}static get extendedDefaults(){return u6}static get defaults(){return u2}static installModule(e){u5.prototype.__modules__||(u5.prototype.__modules__=[]);let t=u5.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>u5.installModule(e)):u5.installModule(e),u5}}Object.keys(u3).forEach(e=>{Object.keys(u3[e]).forEach(t=>{u5.prototype[t]=u3[e][t]})}),u5.use([function({swiper:e,on:t,emit:n}){let i=uE(),r=null,s=null,o=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},a=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==i.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{s=i.requestAnimationFrame(()=>{let{width:n,height:i}=e,r=n,s=i;t.forEach(({contentBoxSize:t,contentRect:n,target:i})=>{i&&i!==e.el||(r=n?n.width:(t[0]||t).inlineSize,s=n?n.height:(t[0]||t).blockSize)}),(r!==n||s!==i)&&o()})})).observe(e.el):(i.addEventListener("resize",o),i.addEventListener("orientationchange",a))}),t("destroy",()=>{s&&i.cancelAnimationFrame(s),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",a)})},function({swiper:e,extendParams:t,on:n,emit:i}){let r=[],s=uE(),o=(t,n={})=>{let o=new(s.MutationObserver||s.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void i("observerUpdate",t[0]);let n=function(){i("observerUpdate",t[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)});o.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:e.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),r.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=function(e){let t=[],n=e.parentElement;for(;n;)t.push(n),n=n.parentElement;return t}(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>
1{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);let u4='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function u8({swiper:e,extendParams:t,on:n,emit:i}){function r(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t))?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n&&n.length>1&&1===e.el.querySelectorAll(t).length?n=e.el.querySelector(t):n&&1===n.length&&(n=n[0])),t&&!n)?t:n}function s(t,n){let i=e.params.navigation;(t=uM(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass))})}function o(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){s(n,!1),s(t,!1);return}s(n,e.isBeginning&&!e.params.rewind),s(t,e.isEnd&&!e.params.rewind)}function a(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function c(){var t,n,i;let s=e.params.navigation;if(e.params.navigation=(t=e.originalParams.navigation,n=e.params.navigation,i={nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}
1,e.params.createElements&&Object.keys(i).forEach(r=>{if(!n[r]&&!0===n.auto){let s=uL(e.el,`.${i[r]}`)[0];s||((s=uP("div",i[r])).className=i[r],e.el.append(s)),n[r]=s,t[r]=s}}),n),!(s.nextEl||s.prevEl))return;let o=r(s.nextEl),c=r(s.prevEl);Object.assign(e.navigation,{nextEl:o,prevEl:c}),o=uM(o),c=uM(c);let u=(t,n)=>{if(t){if(s.addIcons&&t.matches(".swiper-button-next,.swiper-button-prev")&&!t.querySelector("svg")){let e=document.createElement("div");!function(e,t=""){"u">typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}(e,u4),t.appendChild(e.querySelector("svg")),e.remove()}t.addEventListener("click","next"===n?l:a)}!e.enabled&&t&&t.classList.add(...s.lockClass.split(" "))};o.forEach(e=>u(e,"next")),c.forEach(e=>u(e,"prev"))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=uM(t),n=uM(n);let i=(t,n)=>{t.removeEventListener("click","next"===n?l:a),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:u4},n("init",()=>{!1===e.params.navigation.enabled?d():(c(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;(t=uM(t),n=uM(n),e.enabled)?o():[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:r,prevEl:s}=e.navigation;r=uM(r),s=uM(s);let o=n.target,a=s.includes(o)||r.includes(o);if(e.isElement&&!a){let e=n.path||n.composedPath&&n.composedPath();e&&(a=e.find(e=>r.includes(e)||s.includes(e)))}if(e.params.navigation.hideOnClick&&!a){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;r.length?t=r[0].classList.contains(e.params.navigation.hiddenClass):s.length&&(t=s[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?i("navigationShow"):i("navigationHide"),[...r,...s].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),o()},disable:d,update:o,init:c,destroy:u})}class u9{constructor(){this.initSwiper(),document.addEventListener("up:fragment:inserted",()=>this.initSwiper())}static init(){u9.instance||(u9.instance=new u9)}initSwiper(){let e=document.querySelector(".smn-trending-slider");if(!e)return;let t=parseInt(e.dataset.slideAmount||"4",10);new u5(e,{modules:[u8],slidesPerView:5,spaceBetween:20,breakpoints:{991:{slidesPerView:t},0:{slidesPerView:"auto"}},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}}var u7=n(3726),de=n(2123),dt=Object.defineProperty,dn=Object.getOwnPropertySymbols,di=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,ds=(e,t,n)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class da{constructor(e){var t,n;if(this.maxScrollDepth=0,this.headers=[],this.maxVisibleHeader=-1,this.lastVisibleHeader="",this.currentPost=null,this.lastPercentageSent=-1,this.lastHeaderSent=-1,(null==(t=document.querySelector("body"))?void 0:t.classList.contains("single"))===!1&&(null==(n=document.querySelector("body"))?void 0:n.classList.contains("single-post"))===!1)return;this.dataLogging=e,de.h.isOneTapReturn()||this.sendPostEvents(),this.addEventListeners()}static init(e=sr.Y.getInstance()){return da.instance||(da.instance=new da(e)),da.instance}getDataLogging(){return this.dataLogging}sendPostEvents(){this.currentPost=this.getPostObject(this.getLastVisiblePost()),this.sendPercentagePageViewEvent(this.currentPost),this.sendListicleItemsViewedEvent(this.currentPost)}addEventListeners(){window.addEventListener("new_post_inserted",()=>{this.resetDataInNewPostInserted(),this.getValidHeaders(),this.startObserving(),this.sendPostEvents()}),window.addEventListener("scroll",()=>{this.trackScrollDepth(),this.maybeSendFinishedReadingEvents()}),document.addEventListener("visibilitychange",()=>{this.currentPost=this.getPostObject(this.getLastVisiblePost()),this.sendPercentagePageViewEvent(this.currentPost),this.sendListicleItemsViewedEvent(this.currentPost)}),this.getValidHeaders(),this.observer=new IntersectionObserver(this.handleIntersection.bind(this),{root:null,rootMargin:"0px",threshold:.5}),this.startObserving()}getLastVisiblePost(){return[...document.querySelectorAll("article")].at(-1)}trackScrollDepth(){let e=document.querySelectorAll("section.article__body");if(0===e.length)return;let t=e[e.length-1],n=t.getBoundingClientRect().top+window.scrollY,i=t.clientHeight,r=Math.min(1,(window.scrollY+window.innerHeight-n)/i);this.maxScrollDepth=Math.max(this.maxScrollDepth,r)}resetDataInNewPostInserted(){this.maxScrollDepth=0,this.headers=[],this.maxVisibleHeader=0,this.lastVisibleHeader="",this.currentPost=null,this.lastPercentageSent=-1}sendPercentagePageViewEvent(e){if(e){let t=this.getPercentageViewed();if(t<=this.lastPercentageSent)return;let n=e.url,i={percentage_viewed:t.toString(),infinite_scroll_position:e.page};this.handleSendEvent("percentage_page_viewed","page_view",n,t.toString(),so.E.PAGE_VIEW_PERCENTAGE,i),this.lastPercentageSent=t}}sendListicleItemsViewedEvent(e){e&&e.isListicle&&!(this.maxVisibleHeader<=this.lastHeaderSent)&&(this.handleSendEvent("listicle_items_viewed","page_view",e.url,this.maxVisibleHeader.toString(),so.E.PAGE_LISTICLE_ITEMS_VIEWED,{max_item_viewed:""+this.maxVisibleHeader,total_items:""+e.listicleItemsTotal,last_visible_header:this.lastVisibleHeader,infinite_scroll_position:e.page}),this.lastHeaderSent=this.maxVisibleHeader)}maybeSendFinishedReadingEvents(){let e=this.getPercentageViewed();100==e&&e>this.lastPercentageSent&&this.sendPostEvents()}getPercentageViewed(){return Math.min(100,Math.round(100*this.maxScrollDepth))}getValidHeaders(){let e=document.querySelectorAll("section.article__body"),t=e[e.length-1];if(!t)return[];let n=Array.from(t.querySelectorAll("h2, h3, h4, h5, h6")),i=Array.from(t.querySelectorAll("strong, b")).filter(e=>{var t;return/^\d+\.\s/.test((null==(t=e.textContent)?void 0:t.trim())||"")});this.headers=[...n,...i]}
1startObserving(){this.headers&&(this.headers.forEach(e=>this.observer.observe(e)),this.trackScrollDepth())}getPostObject(e){var t,n,i,r,s;if(!parseInt(null==(t=e.dataset)?void 0:t.postId))return null;let o=null==(n=e.dataset)?void 0:n.url,a=1===parseInt(null==(i=e.dataset)?void 0:i.isListicle);return{url:o,isListicle:a,listicleItemsTotal:parseInt(null==(r=e.dataset)?void 0:r.listicleItems)||0,page:parseInt(null==(s=e.dataset)?void 0:s.scrollnumber)||1}}handleIntersection(e){e.forEach(e=>{if(e.isIntersecting){let t=this.headers.indexOf(e.target);t>=this.maxVisibleHeader&&(this.maxVisibleHeader=t+1,this.lastVisibleHeader=e.target.innerText)}})}handleSendEvent(e,t,n,i,r,s={}){window.dataLayer.push({event:"gtag_event",data:{event_name:e,event_category:t,event_label:n,value:i}}),this.dataLogging.sendDataEvent(r,((e,t)=>{for(var n in t||(t={}))di.call(t,n)&&ds(e,n,t[n]);if(dn)for(var n of dn(t))dr.call(t,n)&&ds(e,n,t[n]);return e})({url:n,action:e},s))}}let dl=class e{constructor(t){if(this.firedPostIds=new Set,this.observer=null,this.handleNewPostInserted=e=>{var t;let n=null==(t=null==e?void 0:e.detail)?void 0:t.id;if(!n)return;let i=document.getElementById(`post-${n}`);i instanceof HTMLElement&&this.observeArticle(i)},this.dataLogging=t,!this.shouldActivate())return;this.observer=new IntersectionObserver(this.handleIntersection.bind(this),{root:null,threshold:e.INTERSECTION_THRESHOLD}),de.h.isOneTapReturn()||this.fireForServerRenderedArticles(),window.addEventListener("new_post_inserted",this.handleNewPostInserted)}static init(t=sr.Y.getInstance()){return t?(e.instance||(e.instance=new e(t)),e.instance):null}static getInstance(){return e.instance}shouldActivate(){let e=document.body;return!!e&&e.classList.contains("single-post")&&!e.classList.contains("nbe-single-post")}fireForServerRenderedArticles(){document.querySelectorAll(e.ARTICLE_SELECTOR).forEach(e=>this.fireImmediately(e))}fireImmediately(t){let n=this.getPostId(t);null===n||this.firedPostIds.has(n)||t.querySelector(e.FEATURED_IMAGE_SELECTOR)&&(this.firedPostIds.add(n),this.sendEvent(t))}observeArticle(t){if(!this.observer)return;let n=this.getPostId(t);if(null===n||this.firedPostIds.has(n))return;let i=t.querySelector(e.FEATURED_IMAGE_SELECTOR);i&&this.observer.observe(i)}handleIntersection(t){t.forEach(t=>{var n,i,r;if(!t.isIntersecting)return;let s=t.target.closest(e.ARTICLE_SELECTOR);if(!s){null==(n=this.observer)||n.unobserve(t.target);return}let o=this.getPostId(s);if(null===o||this.firedPostIds.has(o)){null==(i=this.observer)||i.unobserve(t.target);return}this.firedPostIds.add(o),null==(r=this.observer)||r.unobserve(t.target),this.sendEvent(s)})}sendEvent(e){this.dataLogging.sendDataEvent(so.E.ARTICLE_VIEW_START,{url:e.dataset.url||window.location.href,infinite_scroll_position:this.getScrollPosition(e)})}getPostId(e){let t=e.dataset.postId;if(!t)return null;let n=parseInt(t,10);return Number.isFinite(n)&&n>0?n:null}getScrollPosition(e){let t=parseInt(e.dataset.scrollnumber||"",10);return Number.isFinite(t)&&t>0?t:1}};dl.INTERSECTION_THRESHOLD=.5,dl.ARTICLE_SELECTOR="article.post-main-content",dl.FEATURED_IMAGE_SELECTOR="figure.single__featured-image-container img, figure.module-image img",dl.instance=null;class dc{constructor(){var e;this.apiUrl="https://events.statsigapi.net/v1/log_custom_exposure",this.apiKey=(null==(C=window.experimentService)?void 0:C.apiKey)||"",this.stableUserId=null,this.experiments=(null==(e=window.experimentService)?void 0:e.experiments)||{},this.stableUserId=this.getStableUserId()}getStableUserId(){return new sq.O().getCookie("stable_user_id")||null}logExposure(e,t){if(!this.stableUserId||!this.apiKey)return;let n=window.location.host.toLowerCase(),i={exposures:[{user:{customIDs:{stableID:this.stableUserId},custom:{host:n}},experimentName:e,group:t}]};fetch(this.apiUrl,{method:"POST",headers:{"statsig-api-key":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(i),credentials:"omit"})}}let du="smn-sticky-marketplace-cta",dd="smn-sticky-marketplace-cta-copy",df=`${dd}--visible`,dh=`.${du}`,dp=`.${dd}`,dm="copy-",dg=class e{constructor(e,t){this.exposedPosts=new Set,this.viewedPosts=new Set,this.observer=null,this.handleLoad=()=>{let e=document.querySelector(dh);this.activate(e?this.readId(e,"postId"):null)},this.handlePostEvent=e=>{var t;let n=e.detail;this.activate(null!=(t=null==n?void 0:n.id)?t:null)},this.handleClick=e=>{let t=e.target;if(!(t instanceof Element))return;let n=t.closest(".smn-sticky-marketplace-cta__cta"),i=null==n?void 0:n.closest(dp);n&&i&&this.dataLogging.sendDataEvent(so.E.OUTBOUND_LINK,{action:"smn_sticky_marketplace_cta_click",category:"click_sales",post_id:this.readId(i,"postId"),plan_id:this.readId(i,"planId"),destination_link:this.readDestinationUrl(n)})},this.dataLogging=e,this.experimentService=t,window.addEventListener("load",this.handleLoad),window.addEventListener("first_post_loaded",this.handlePostEvent),window.addEventListener("current_post_changed",this.handlePostEvent),document.body.addEventListener("click",this.handleClick)}static init(t=sr.Y.getInstance(),n){return t&&document.body.className.includes("single-post")?(e.instance||(e.instance=new e(t,null!=n?n:new dc)),e.instance):null}teardown(){var e;window.removeEventListener("load",this.handleLoad),window.removeEventListener("first_post_loaded",this.handlePostEvent),window.removeEventListener("current_post_changed",this.handlePostEvent),document.body.removeEventListener("click",this.handleClick),null==(e=this.observer)||e.disconnect()}activate(e){if(this.syncCopies(),null===e)return void this.hideAllCopies();let t=document.getElementById("smn-sticky-marketplace-cta-"+e);
1if(!t)return void this.hideAllCopies();this.logExposureOnce(e,t);let n=document.getElementById(dm+t.id);"treatment"===t.dataset.variant&&n&&n.querySelector(".smn-sticky-marketplace-cta__inner")?(this.showOnly(n),this.observeViewOnce(e,n)):this.hideAllCopies()}syncCopies(){document.querySelectorAll(dh).forEach(e=>{let t=dm+e.id;if(document.getElementById(t))return;let n=e.cloneNode(!0);n.id=t,n.className=n.className.replace(du,dd),document.body.appendChild(n)})}showOnly(e){e.getBoundingClientRect(),document.querySelectorAll(dp).forEach(t=>{t.classList.toggle(df,t===e)})}hideAllCopies(){document.querySelectorAll(dp).forEach(e=>{e.classList.remove(df)})}logExposureOnce(e,t){var n,i;if(this.exposedPosts.has(e))return;let r=null!=(n=t.dataset.experimentId)?n:"",s=null!=(i=t.dataset.group)?i:"";r&&s&&(this.experimentService.logExposure(r,s),this.exposedPosts.add(e))}observeViewOnce(e,t){var n;this.viewedPosts.has(e)||(null==(n=this.observer)||n.disconnect(),this.observer=new IntersectionObserver(n=>{n.forEach(n=>{var i;!n.isIntersecting||this.viewedPosts.has(e)||(this.viewedPosts.add(e),null==(i=this.observer)||i.disconnect(),this.dataLogging.sendDataEvent(so.E.STICKY_MARKETPLACE_CTA_VIEW,{post_id:e,plan_id:this.readId(t,"planId")}))})},{root:null,threshold:.5}),this.observer.observe(t))}readDestinationUrl(e){if(e instanceof HTMLAnchorElement)return e.href;let t=e.dataset.o;if(t)try{return atob(t)}catch(e){}return""}readId(e,t){var n;let i=parseInt(null!=(n=e.dataset[t])?n:"",10);return Number.isFinite(i)&&i>0?i:0}};dg.instance=null;class dv{constructor(e){this.savedPostsKey="smnSavedPostsInfo",this.storageService=e}saveSavedPostsInfo(e){this.storageService.saveItem(this.savedPostsKey,e)}getSavedPostsInfo(){return this.storageService.getItem(this.savedPostsKey)}clearSavedPostsInfo(){this.storageService.removeItem(this.savedPostsKey)}}let d_=class e{constructor(e){this.savedPostsService=e,this.initEventListeners(),this.updateSavedPostsView()}static init(t=new dv(new uo.A)){return e.instance||(e.instance=new e(t)),e.instance}initEventListeners(){window.addEventListener("new_post_inserted",()=>this.updateSavedPostsView()),document.addEventListener("up:fragment:inserted",()=>this.updateSavedPostsView()),document.addEventListener("postSaved",e=>{this.updateSavedPostsStorage(e.detail.postId)}),document.addEventListener("savedPostRemoved",e=>{this.updateSavedPostsStorage(e.detail.postId)})}updateSavedPostsView(){var t;let n=null==(t=this.savedPostsService.getSavedPostsInfo())?void 0:t.savedPostIds;n&&document.querySelectorAll("#smn-save").forEach(t=>{let i=parseInt(t.dataset.postId||"0",e.PARSE_INT_RADIX);n.includes(i)&&t.classList.add("is-saved")})}updateSavedPostsStorage(t){var n;let i=(null==(n=this.savedPostsService.getSavedPostsInfo())?void 0:n.savedPostIds)||[],r=parseInt(t,e.PARSE_INT_RADIX);i=i.includes(r)?i.filter(e=>e!==r):[...i,r],this.savedPostsService.saveSavedPostsInfo({savedPostIds:i})}};d_.PARSE_INT_RADIX=10;class dy{constructor(e){this.userInfoService=e,document.addEventListener("DOMContentLoaded",()=>this.updateProfileBadgeView()),document.addEventListener("up:fragment:inserted",()=>this.updateProfileBadgeView())}static init(e=new ua.A(new uo.A)){return dy.instance||(dy.instance=new dy(e)),dy.instance}updateProfileBadgeView(){let e=this.userInfoService.getUserInfo();if(!e)return;let t=document.querySelectorAll('[smn-dynamic="profile"]');if(!t.length)return;let n=null!==document.getElementById("nbe-container");t.forEach(t=>{var i,r;n?t.innerHTML=e.profileImg?`<img class="rounded-full object-cover w-full h-full" alt="profile image" src="${e.profileImg}" />`:(null==(i=e.name)?void 0:i.charAt(0).toUpperCase())||"":t.innerHTML=e.profileImg?`<img class="rounded-circle object-fit-cover w-100" alt="profile image" src="${e.profileImg}" />`:(null==(r=e.name)?void 0:r.charAt(0).toUpperCase())||""})}}class db{constructor(){d_.init(),dy.init()}static init(){db.instance||(db.instance=new db)}}class dw{constructor(){this.localStorageService=new uo.A,this.savedPostsInfoService=new dv(this.localStorageService),this.userInfoService=new ua.A(this.localStorageService),this.syncUserData(),this.handleSignOutClick()}static init(){return dw.instance||(dw.instance=new dw),dw.instance}syncUserData(){let e=window.userData;if((null==e?void 0:e.reset)!==void 0){this.savedPostsInfoService.clearSavedPostsInfo(),this.userInfoService.clearUserInfo();return}e&&(this.userInfoService.saveUserInfo({name:e.profile.name,hashedFirstName:e.profile.hashedFirstName,hashedLastName:e.profile.hashedLastName,profileImg:e.profile.profileImg,userID:Number(e.profile.feverUserId),feverUserId:e.profile.feverUserId,isFeverEmail:e.profile.isFeverEmail,userType:e.profile.userType||"guest",email:e.profile.email,hashedEmail:e.profile.hashedEmail,userLanguage:e.profile.userLanguage,userLocale:e.profile.userLocale,authProvider:e.profile.authProvider,purchasesNumber:e.profile.purchasesNumber,affiliateId:e.profile.affiliateId,phoneNumber:e.profile.phoneNumber,hashedPhoneNumber:e.profile.hashedPhoneNumber,gender:e.profile.gender,activeCity:e.profile.activeCity}),this.savedPostsInfoService.saveSavedPostsInfo({savedPostIds:e.savedPostsIds}))}handleSignOutClick(){document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelector("#sign-out-button");e&&e.addEventListener("click",()=>{this.savedPostsInfoService.clearSavedPostsInfo(),this.userInfoService.clearUserInfo()},{once:!0})})}}class dE{constructor(e){this.googleOneTapShownKey="smnGoogleOneTapShown",this.storageService=e}saveGoogleOneTapShownInfo(e){this.storageService.saveItem(this.googleOneTapShownKey,e)}getGoogleOneTapShownInfo(){return this.storageService.getItem(this.googleOneTapShownKey)}clearGoogleOneTapShownInfo(){this.storageService.removeItem(this.googleOneTapShownKey)}}var dS=n(3719);class dA extends dS.A{constructor(){super(window.sessionStorage)}}class dT{constructor(e,t){var n,i;if(this.GOOGLE_ONE_TAP_SCRIPT_URL="https://accounts.google.com/gsi/client",this.GOOGLE_INTERMEDIATE_SCRIPT_URL="https://accounts.google.com/gsi/intermediate",this.ONE_TAP_MESSAGE_TYPE="smn-one-tap-credential",this.hasStarted=!1,this.userInfoService=e,this.googleOneTapShownService=t,this.googleClientId=null==(n=window.googleOneTap)?void 0:n.googleClientId,this.iframeSrc=null==(i=window.googleOneTap)?void 0:i.iframeSrc,!this.shouldShowGoogleOneTap())return;"function"==typeof window.__gpp?(window.__gpp("addEventListener",this.handleGPPEvent.bind(this)),window.__gpp("ping",this.handleGPPPing.bind(this))):this.start()}static init(e=new ua.A(new uo.A),t=new dE(new dA)){dT.instance||(dT.instance=new dT(e,t))}handleGPPEvent(e){this.maybeStartFromGppState(e.pingData)}handleGPPPing(e){this.maybeStartFromGppState(e)}maybeStartFromGppState(e){if(!e)return;let{cmpDisplayStatus:t,signalStatus:n}=e;"ready"===n&&"visible"!==t&&this.start()}start(){this.hasStarted||(this.hasStarted=!0,this.iframeSrc?this.loadIntermediateIframe():this.loadGoogleScript())}shouldShowGoogleOneTap(){let e=null!==this.googleClientId,t=null===this.userInfoService.getUserInfo(),n=null===this.googleOneTapShownService.getGoogleOneTapShownInfo(),i=!window.location.pathname.match(/\/(login|profile)\//);return e&&t&&n&&i}loadGoogleScript(){let e=document.createElement("script");e.src=this.GOOGLE_ONE_TAP_SCRIPT_URL,e.async=!0,e.defer=!0,e.onload=()=>this.initGoogleOneTap(),document.head.appendChild(e)}initGoogleOneTap(){window.google.accounts.id.initialize({client_id:this.googleClientId,callback:this.handleOneTapCredentialResponse.bind(this)}),window.google.accounts.id.prompt(),this.googleOneTapShownService.saveGoogleOneTapShownInfo({hasBeenShown:!0})}loadIntermediateIframe(){window.addEventListener("message",this.handleIframeMessage.bind(this));let e=document.createElement("script");e.src=this.GOOGLE_INTERMEDIATE_SCRIPT_URL,e.async=!0,e.defer=!0,e.onload=()=>this.initIntermediateIframe(),document.head.appendChild(e)}initIntermediateIframe(){let e=`${this.iframeSrc}?parent=${encodeURIComponent(window.location.origin)}`;window.google.accounts.id.initializeIntermediate({src:e}),this.googleOneTapShownService.saveGoogleOneTapShownInfo({hasBeenShown:!0})}handleIframeMessage(e){if(!this.iframeSrc||e.origin!==new URL(this.iframeSrc).origin)return;let t=e.data;t&&t.type===this.ONE_TAP_MESSAGE_TYPE&&t.credential&&this.handleOneTapCredentialResponse({credential:t.credential})}handleOneTapCredentialResponse(e){let t=e.credential,n=encodeURIComponent(JSON.stringify({provider:"google",origin:window.location.href,googleOneTap:!0}));window.location.href=`/oauth-callback?code=${encodeURIComponent(t)}&state=${n}`}}let dC={en:{body:"This article is available in another language",cta:"Switch to English"},es:{body:"Este art\xedculo est\xe1 disponible en otro idioma",cta:"Cambiar al espa\xf1ol"},"es-mx":{body:"Este art\xedculo est\xe1 disponible en otro idioma",cta:"Cambiar al espa\xf1ol"},fr:{body:"Cet article est disponible dans une autre langue",cta:"Passer en fran\xe7ais"},de:{body:"Dieser Artikel ist in einer anderen Sprache verf\xfcgbar",cta:"Auf Deutsch wechseln"},it:{body:"Questo articolo \xe8 disponibile in un’altra lingua",cta:"Passa all’italiano"},nl:{body:"Dit artikel is beschikbaar in een andere taal",cta:"Wissel naar het Nederlands"},pt:{body:"Este artigo est\xe1 dispon\xedvel noutra l\xedngua",cta:"Mudar para portugu\xeas"},"pt-pt":{body:"Este artigo est\xe1 dispon\xedvel noutra l\xedngua",cta:"Mudar para portugu\xeas"},"pt-br":{body:"Este artigo est\xe1 dispon\xedvel em outro idioma",cta:"Mudar para o portugu\xeas"},ca:{body:"Aquest article est\xe0 disponible en una altra llengua",cta:"Canvia al catal\xe0"},ja:{body:"この記事は別の言語でもご利用いただけます",cta:"日本語に切り替え"},ko:{body:"이 기사는 다른 언어로도 볼 수 있습니다",cta:"한국어로 전환하기"},"zh-cn":{body:"这篇文章还有其他语言版本",cta:"切换到中文"},"zh-tw":{body:"這篇文章還有其他語言版本",cta:"切換至中文"},"zh-hk":{body:"這篇文章亦有其他語言版本",cta:"切換至中文"},"zh-mo":{body:"這篇文章亦有其他語言版本",cta:"切換至中文"},ar:{body:"هذه المقالة متاحة بلغة أخرى",cta:"الانتقال إلى العربية"},sv:{body:"Den h\xe4r artikeln finns p\xe5 ett annat spr\xe5k",cta:"Byt till svenska"}},dI="smnSmartLanguagePromptDismissed";class dO{constructor(e=new dA){this.storage=e}isDismissed(){var e;return(null==(e=this.storage.getItem(dI))?void 0:e.dismissed)===!0}dismiss(){this.storage.saveItem(dI,{dismissed:!0})}}let dL=/googlebot|storebot-google|google-inspectiontool|googleother|google-cloudvertexbot|bingbot|slurp|duckduckbot|baiduspider|yandexbot|facebookexternalhit|twitterbot|linkedinbot|applebot/i;function dN(e){return e.trim().toLowerCase().replace(/_/g,"-")}let dP={prefix:"fal",iconName:"globe",icon:[512,512,[127760],"f0ac","M256 480c16.7 0 40.4-14.4 61.9-57.3c9.9-19.8 18.2-43.7 24.1-70.7l-172 0c5.9 27 14.2 50.9 24.1 70.7C215.6 465.6 239.3 480 256 480zM164.3 320l183.4 0c2.8-20.2 4.3-41.7 4.3-64s-1.5-43.8-4.3-64l-183.4 0c-2.8 20.2-4.3 41.7-4.3 64s1.5 43.8 4.3 64zM170 160l172 0c-5.9-27-14.2-50.9-24.1-70.7C296.4 46.4 272.7 32 256 32s-40.4 14.4-61.9 57.3C184.2 109.1 175.9 133 170 160zm210 32c2.6 20.5 4 41.9 4 64s-1.4 43.5-4 64l90.8 0c6-20.3 9.3-41.8 9.3-64s-3.2-43.7-9.3-64L380 192zm78.5-32c-25.9-54.5-73.1-96.9-130.9-116.3c21 28.3 37.6 68.8 47.2 116.3l83.8 0zm-321.1 0c9.6-47.6 26.2-88 47.2-116.3C126.7 63.1 79.4 105.5 53.6 160l83.7 0zm-96 32c-6 20.3-9.3 41.8-9.3 64s3.2 43.7 9.3 64l90.8 0c-2.6-20.5-4-41.9-4-64s1.4-43.5 4-64l-90.8 0zM327.5 468.3c57.8-19.5 105-61.8 130.9-116.3l-83.8 0c-9.6 47.6-26.2 88-47.2 116.3zm-143 0c-21-28.3-37.5-68.8-47.2-116.3l-83.7 0c25.9 54.5 73.1 96.9 130.9 116.3zM256 512A256 256 0 1 1 256 0a256 256 0 1 1 0 512z"]},dk={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},dx="smn-smart-language-prompt";function dR(e){let[t,n,,,i]=e.icon,r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("viewBox",`0 0 ${t} ${n}`),r.setAttribute("aria-hidden","true"),r.setAttribute("focusable","false"),r.setAttribute("role","img");let s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttribute("fill","currentColor"),s.setAttribute("d",Array.isArray(i)?i.join(" "):i),r.appendChild(s),r}function dM(e,t){var n;try{null==(n=sr.Y.getInstance())||n.sendDataEvent(so.E.LANGUAGE_SWITCH_PROMPT,{url:window.location.href,action:e,detected_language:t})}catch(e){}}class dD{static init(){!function(e={}){var t,n,i,r,s;let o,a=function(){var e;let t=document.getElementById("smn-published-translations");
1if(!t)return null;try{let n=JSON.parse(null!=(e=t.textContent)?e:"");if(null===n||"object"!=typeof n||Array.isArray(n))return null;let i={};for(let[e,t]of Object.entries(n))"string"==typeof t&&""!==t&&(i[e.toLowerCase()]=t);return i}catch(e){return null}}();if(null===a||(r=null!=(t=e.userAgent)?t:navigator.userAgent,dL.test(r)))return;let l=new dO;if(l.isDismissed())return;let c=null!=(n=e.pageLanguage)?n:window.pll_current_lang;if(!c)return;let u=function(e,t,n){let i,r=dN(n),s=dN(e);if(""===s)return null;if(s!==r&&t[s])return s;let o=-1===(i=s.indexOf("-"))?s:s.slice(0,i);return o!==s&&o!==r&&t[o]?o:null}(null!=(i=e.language)?i:navigator.language,a,c);if(null===u)return;let d=null!=(s=dC[u])?s:null,f=a[u];if(null===d||void 0===f)return;let h=!(o=document.querySelector("article.post-main-content"))||o.closest(".infinite_scroll_new_post")?null:o.querySelector(".article__body");if(null===h)return;let p=function(e){let{slug:t,copy:n,permalink:i,onCta:r,onDismiss:s}=e,o=document.createElement("aside");o.className=dx,o.setAttribute("role","region"),o.setAttribute("lang",t),o.setAttribute("aria-label",n.body),"ar"===t&&o.setAttribute("dir","rtl");let a=document.createElement("span");a.className=`${dx}__globe`,a.appendChild(dR(dP));let l=document.createElement("div");l.className=`${dx}__copy`;let c=document.createElement("p");c.className=`${dx}__body`,c.textContent=n.body;let u=document.createElement("a");u.className=`${dx}__cta`,u.href=i,u.textContent=n.cta,u.addEventListener("click",r),l.append(c,u);let d=document.createElement("button");return d.type="button",d.className=`${dx}__dismiss`,d.setAttribute("aria-label","Close"),d.appendChild(dR(dk)),d.addEventListener("click",s),o.append(a,l,d),o}({slug:u,copy:d,permalink:f,onCta:()=>{dM("cta",u)},onDismiss:()=>{dM("dismiss",u),l.dismiss(),p.remove()}});h.insertBefore(p,h.firstChild),dM("impression",u)}()}}var dU=JSON.parse('{"generatedNotice":"This file is auto-generated. Do not edit manually.","version":"cecc48b14fda2781bce13f7868da52d3","sitesByKey":{"ABU_DHABI":"abudhabiuncovered.com","ADELAIDE":"secretadelaide.com","ALBUQUERQUE":"secretalbuquerque.com","AMSTERDAM":"secretamsterdam.com","ATLANTA":"secretatlanta.co","AUCKLAND":"secretauckland.com","AUSTIN":"secretaustin.com","BALTIMORE":"secretbaltimore.com","BARCELONA":"barcelonasecreta.com","BELFAST":"secretbelfast.com","BELO_HORIZONTE":"belohorizontesecreto.com","BERLIN":"secretberlin.co","BILBAO":"bilbaosecreto.com","BIRMINGHAM":"secretbirmingham.com","BOGOTA":"bogotasecreta.co","BORDEAUX":"bordeauxsecret.com","BOSTON":"bostonuncovered.com","BRISBANE":"secretbrisbane.co","BRISTOL":"secretbristol.com","BRUSSELS":"bruxellessecrete.com","BUENOS_AIRES":"bairessecreta.com","BUSAN":"secretbusan.com","CALGARY":"secretcalgary.co","CHARLESTON":"secretcharleston.co","CHARLOTTE":"secretcharlotte.co","CHICAGO":"secretchicago.com","CHRISTCHURCH":"secretchristchurch.com","CINCINNATI":"cincinnatiuncovered.com","CLEVELAND":"secretcleveland.co","COLOGNE":"secretkoeln.com","COPENHAGEN":"secretkobenhavn.com","DALLAS":"secretdallas.com","DENVER":"secretdenver.com","DETROIT":"secretdetroit.co","DUBAI":"secretdubai.co","DUBLIN":"secretdublin.com","EDINBURGH":"secret-edinburgh.com","EDMONTON":"secretedmonton.com","FRANKFURT":"secretfrankfurt.com","GENEVA":"genevesecrete.com","GLASGOW":"secretglasgow.com","GOLD_COAST":"secretgoldcoast.com","GUADALAJARA":"guadalajarasecreta.com","HAMBURG":"secrethamburg.com","HOUSTON":"secrethouston.com","IBIZA":"secretibiza.co","INDIANAPOLIS":"indianapolisuncovered.com","JACKSONVILLE":"secretjacksonville.com","K8S_MALAGA":"k8s.malagasecreta.com","KANSAS_CITY":"secretkansascity.com","LAS_VEGAS":"secretlasvegas.co","LEEDS":"leedsuncovered.com","LILLE":"lillesecret.com","LISBON":"lisboasecreta.co","LIVERPOOL":"secretliverpool.co","LOCAL":"secretcity.local","LONDON":"secretldn.com","LOS_ANGELES":"secretlosangeles.com","LYON":"lyonsecret.com","MADRID":"madridsecreto.co","MALAGA":"malagasecreta.com","MANCHESTER":"secretmanchester.com","MARSEILLE":"marseillesecrete.com","MELBOURNE":"secretmelbourne.com","MEXICO_CITY":"cdmxsecreta.com","MIAMI":"secretmiami.com","MILAN":"milanosegreta.co","MINNEAPOLIS":"secretminneapolis.com","MONTERREY":"monterreysecreto.com","MONTREAL":"montrealsecret.co","MUMBAI":"secretmumbai.com","MUNICH":"secretmuenchen.com","NANTES":"nantessecrete.com","NAPLES":"secretnapoli.com","NASHVILLE":"secretnashville.co","NEW_DELHI":"secretnewdelhi.com","NEW_ORLEANS":"secretneworleans.co","NICE":"nicesecret.co","NYC":"secretnyc.co","ORLANDO":"secretorlando.co","OTTAWA":"secretottawa.co","PARIS":"parissecret.com","PERTH":"secretperth.com","PHILADELPHIA":"secretphiladelphia.co","PHOENIX":"secretphoenix.co","PORTLAND":"secret-portland.com","PORTO":"portosecreto.co","PORTO_ALEGRE":"portoalegresecreta.com","QUEBEC":"quebecsecret.com","RALEIGH":"secretraleigh.com","RICHMOND":"richmonduncovered.com","RIO_DE_JANEIRO":"riodejaneirosecreto.com","RIVIERA_MAYA":"rivieramayasecreta.com","ROME":"secretroma.com","SACRAMENTO":"sacramentouncovered.com","SANTIAGO":"santiagosecreto.com","SAN_ANTONIO":"secretsanantonio.com","SAN_DIEGO":"secretsandiego.com","SAN_FRANCISCO":"secretsanfrancisco.com","SAO_PAULO":"saopaulosecreto.com","SEATTLE":"secretseattle.co","SECRET_MEDIA_NETWORK":"secretmedianetwork.com","SEOUL":"secretseoul.com","SEVILLE":"sevillasecreta.co","SINGAPORE":"secretsingapore.co","STAGING":"smnstag.com","STOCKHOLM":"secretstockholm.co","STUTTGART":"secretstuttgart.com","SYDNEY":"secretsydney.com","TAMPA":"secrettampa.co","TIJUANA":"tijuanasecreta.com","TOKYO":"secrettokyo.com","TOLUCA":"tolucasecreta.com","TORONTO":"secrettoronto.co","TOULOUSE":"toulousesecret.com","TULSA":"secret-tulsa.com","TURIN":"torinosegreta.com","VALENCIA":"valenciasecreta.com","VANCOUVER":"secretvancouver.co","VIENNA":"wienuncovered.com","WASHINGTON_DC":"secretdc.com","WELLINGTON":"secretwellington.com","ZURICH":"secretzurich.com"},"siteKeyByDomain":{"abudhabiuncovered.com":"ABU_DHABI","bairessecreta.com":"BUENOS_AIRES","barcelonasecreta.com":"BARCELONA","belohorizontesecreto.com":"BELO_HORIZONTE","bilbaosecreto.com":"BILBAO","bogotasecreta.co":"BOGOTA","bordeauxsecret.com":"BORDEAUX","bostonuncovered.com":"BOSTON","bruxellessecrete.com":"BRUSSELS","cdmxsecreta.com":"MEXICO_CITY","cincinnatiuncovered.com":"CINCINNATI","genevesecrete.com":"GENEVA","guadalajarasecreta.com":"GUADALAJARA","indianapolisuncovered.com":"INDIANAPOLIS","k8s.malagasecreta.com":"K8S_MALAGA","leedsuncovered.com":"LEEDS","lillesecret.com":"LILLE","lisboasecreta.co":"LISBON","lyonsecret.com":"LYON","madridsecreto.co":"MADRID","malagasecreta.com":"MALAGA","marseillesecrete.com":"MARSEILLE","milanosegreta.co":"MILAN","monterreysecreto.com":"MONTERREY","montrealsecret.co":"MONTREAL","nantessecrete.com":"NANTES","nicesecret.co":"NICE","parissecret.com":"PARIS","portoalegresecreta.com":"PORTO_ALEGRE","portosecreto.co":"PORTO","quebecsecret.com":"QUEBEC","richmonduncovered.com":"RICHMOND","riodejaneirosecreto.com":"RIO_DE_JANEIRO","rivieramayasecreta.com":"RIVIERA_MAYA","sacramentouncovered.com":"SACRAMENTO","santiagosecreto.com":"SANTIAGO","saopaulosecreto.com":"SAO_PAULO","secret-edinburgh.com":"EDINBURGH","secret-portland.com":"PORTLAND","secret-tulsa.com":"TULSA","secretadelaide.com":"ADELAIDE","secretalbuquerque.com":"ALBUQUERQUE","secretamsterdam.com":"AMSTERDAM","secretatlanta.co":"ATLANTA","secretauckland.com":"AUCKLAND","secretaustin.com":"AUSTIN","secretbaltimore.com":"BA
1LTIMORE","secretbelfast.com":"BELFAST","secretberlin.co":"BERLIN","secretbirmingham.com":"BIRMINGHAM","secretbrisbane.co":"BRISBANE","secretbristol.com":"BRISTOL","secretbusan.com":"BUSAN","secretcalgary.co":"CALGARY","secretcharleston.co":"CHARLESTON","secretcharlotte.co":"CHARLOTTE","secretchicago.com":"CHICAGO","secretchristchurch.com":"CHRISTCHURCH","secretcity.local":"LOCAL","secretcleveland.co":"CLEVELAND","secretdallas.com":"DALLAS","secretdc.com":"WASHINGTON_DC","secretdenver.com":"DENVER","secretdetroit.co":"DETROIT","secretdubai.co":"DUBAI","secretdublin.com":"DUBLIN","secretedmonton.com":"EDMONTON","secretfrankfurt.com":"FRANKFURT","secretglasgow.com":"GLASGOW","secretgoldcoast.com":"GOLD_COAST","secrethamburg.com":"HAMBURG","secrethouston.com":"HOUSTON","secretibiza.co":"IBIZA","secretjacksonville.com":"JACKSONVILLE","secretkansascity.com":"KANSAS_CITY","secretkobenhavn.com":"COPENHAGEN","secretkoeln.com":"COLOGNE","secretlasvegas.co":"LAS_VEGAS","secretldn.com":"LONDON","secretliverpool.co":"LIVERPOOL","secretlosangeles.com":"LOS_ANGELES","secretmanchester.com":"MANCHESTER","secretmedianetwork.com":"SECRET_MEDIA_NETWORK","secretmelbourne.com":"MELBOURNE","secretmiami.com":"MIAMI","secretminneapolis.com":"MINNEAPOLIS","secretmuenchen.com":"MUNICH","secretmumbai.com":"MUMBAI","secretnapoli.com":"NAPLES","secretnashville.co":"NASHVILLE","secretnewdelhi.com":"NEW_DELHI","secretneworleans.co":"NEW_ORLEANS","secretnyc.co":"NYC","secretorlando.co":"ORLANDO","secretottawa.co":"OTTAWA","secretperth.com":"PERTH","secretphiladelphia.co":"PHILADELPHIA","secretphoenix.co":"PHOENIX","secretraleigh.com":"RALEIGH","secretroma.com":"ROME","secretsanantonio.com":"SAN_ANTONIO","secretsandiego.com":"SAN_DIEGO","secretsanfrancisco.com":"SAN_FRANCISCO","secretseattle.co":"SEATTLE","secretseoul.com":"SEOUL","secretsingapore.co":"SINGAPORE","secretstockholm.co":"STOCKHOLM","secretstuttgart.com":"STUTTGART","secretsydney.com":"SYDNEY","secrettampa.co":"TAMPA","secrettokyo.com":"TOKYO","secrettoronto.co":"TORONTO","secretvancouver.co":"VANCOUVER","secretwellington.com":"WELLINGTON","secretzurich.com":"ZURICH","sevillasecreta.co":"SEVILLE","smnstag.com":"STAGING","tijuanasecreta.com":"TIJUANA","tolucasecreta.com":"TOLUCA","torinosegreta.com":"TURIN","toulousesecret.com":"TOULOUSE","valenciasecreta.com":"VALENCIA","wienuncovered.com":"VIENNA"}}'),dB=JSON.parse('{"generatedNotice":"This file is auto-generated. Do not edit manually.","version":"c56530db1d64b8301902210f0361839e","groupsByType":{"COUNTRIES":{"ARGENTINA":["BUENOS_AIRES"],"AUSTRALIA":["ADELAIDE","BRISBANE","GOLD_COAST","MELBOURNE","PERTH","SYDNEY"],"AUSTRIA":["VIENNA"],"BELGIUM":["BRUSSELS"],"BRAZIL":["BELO_HORIZONTE","PORTO_ALEGRE","RIO_DE_JANEIRO","SAO_PAULO"],"CANADA":["CALGARY","EDMONTON","MONTREAL","OTTAWA","QUEBEC","TORONTO","VANCOUVER"],"CHILE":["SANTIAGO"],"COLOMBIA":["BOGOTA"],"DENMARK":["COPENHAGEN"],"FRANCE":["BORDEAUX","LILLE","LYON","MARSEILLE","NANTES","NICE","PARIS","TOULOUSE"],"GERMANY":["BERLIN","COLOGNE","FRANKFURT","HAMBURG","MUNICH","STUTTGART"],"INDIA":["MUMBAI","NEW_DELHI"],"IRELAND":["DUBLIN"],"ITALY":["MILAN","ROME","TURIN"],"JAPAN":["TOKYO"],"MEXICO":["GUADALAJARA","MEXICO_CITY","MONTERREY","RIVIERA_MAYA","TIJUANA","TOLUCA"],"NETHERLANDS":["AMSTERDAM"],"NEW_ZEALAND":["AUCKLAND","CHRISTCHURCH","WELLINGTON"],"OTHER":["SECRET_MEDIA_NETWORK"],"PORTUGAL":["LISBON","PORTO"],"SINGAPORE":["SINGAPORE"],"SOUTH_KOREA":["BUSAN","SEOUL"],"SPAIN":["BARCELONA","BILBAO","MADRID","MALAGA","SEVILLE","VALENCIA"],"SWEDEN":["STOCKHOLM"],"SWITZERLAND":["GENEVA","ZURICH"],"UNITED_ARAB_EMIRATES":["ABU_DHABI","DUBAI"],"UNITED_KINGDOM":["BELFAST","BIRMINGHAM","BRISTOL","EDINBURGH","GLASGOW","LEEDS","LIVERPOOL","LONDON","MANCHESTER"],"UNITED_STATES":["ALBUQUERQUE","ATLANTA","AUSTIN","BALTIMORE","BOSTON","CHARLESTON","CHARLOTTE","CHICAGO","CINCINNATI","CLEVELAND","DALLAS","DENVER","DETROIT","HOUSTON","INDIANAPOLIS","JACKSONVILLE","KANSAS_CITY","LAS_VEGAS","LOS_ANGELES","MIAMI","MINNEAPOLIS","NASHVILLE","NEW_ORLEANS","NYC","ORLANDO","PHILADELPHIA","PHOENIX","PORTLAND","RALEIGH","RICHMOND","SACRAMENTO","SAN_ANTONIO","SAN_DIEGO","SAN_FRANCISCO","SEATTLE","TAMPA","TULSA","WASHINGTON_DC"]},"MACHINES":{"PRE":["IBIZA","NAPLES"],"PROD_1":["SECRET_MEDIA_NETWORK","BARCELONA","LISBON"],"PROD_2":["ADELAIDE","ATLANTA","AUSTIN","AUCKLAND","BERLIN","BILBAO","BIRMINGHAM","BORDEAUX","BOSTON","BRISBANE","BRISTOL","CALGARY","CHRISTCHURCH","CLEVELAND","DALLAS","DENVER","DUBLIN","FRANKFURT","GENEVA","GLASGOW","GOLD_COAST","HAMBURG","HOUSTON","COLOGNE","
1LAS_VEGAS","LILLE","LIVERPOOL","MARSEILLE","MELBOURNE","MIAMI","MILAN","MONTREAL","MUNICH","NICE","OTTAWA","PERTH","PHILADELPHIA","PORTO","QUEBEC","RIO_DE_JANEIRO","ROME","SAN_DIEGO","SAN_FRANCISCO","SAO_PAULO","SEATTLE","SINGAPORE","STUTTGART","SYDNEY","TORONTO","TURIN","VANCOUVER","VIENNA","WASHINGTON_DC","WELLINGTON","ZURICH"],"PROD_3":["ABU_DHABI","BUENOS_AIRES","BRUSSELS","CINCINNATI","GUADALAJARA","INDIANAPOLIS","LEEDS","LYON","MALAGA","MONTERREY","NANTES","PORTO_ALEGRE","RICHMOND","RIVIERA_MAYA","SACRAMENTO","BELO_HORIZONTE","ALBUQUERQUE","AMSTERDAM","MEXICO_CITY","DETROIT","EDMONTON","JACKSONVILLE","KANSAS_CITY","COPENHAGEN","MINNEAPOLIS","NASHVILLE","NEW_ORLEANS","PHOENIX","BALTIMORE","BELFAST","BUSAN","CHARLESTON","CHARLOTTE","CHICAGO","DUBAI","EDINBURGH","LOS_ANGELES","MANCHESTER","MUMBAI","NEW_DELHI","ORLANDO","PORTLAND","RALEIGH","SAN_ANTONIO","SEOUL","TAMPA","TOKYO","TULSA","SANTIAGO","STOCKHOLM","SEVILLE","TIJUANA","TOLUCA","TOULOUSE"],"STAGING":["STAGING"],"STANDALONE":["MADRID","VALENCIA","LONDON","PARIS","NYC"]},"WORKER_GROUP":{"FIRST_ITERATION_SITES":["LYON","VALENCIA","BARCELONA","BOGOTA","LISBON","SECRET_MEDIA_NETWORK"],"LOCAL_DEVELOPMENT":["LOCAL"],"PRE_SITES":["STUTTGART","IBIZA","NAPLES"],"PROD_2_SITES":["ADELAIDE","ATLANTA","AUSTIN","AUCKLAND","BERLIN","BILBAO","BIRMINGHAM","BORDEAUX","BOSTON","BRISBANE","BRISTOL","CALGARY","CHRISTCHURCH","CLEVELAND","DALLAS","DENVER","DUBLIN","FRANKFURT","GENEVA","GLASGOW","GOLD_COAST","HAMBURG","HOUSTON","COLOGNE","LAS_VEGAS","LILLE","LIVERPOOL","MARSEILLE","MELBOURNE","MIAMI","MILAN","MONTREAL","MUNICH","NICE","OTTAWA","PERTH","PHILADELPHIA","PORTO","QUEBEC","RIO_DE_JANEIRO","ROME","SAN_DIEGO","SAN_FRANCISCO","SAO_PAULO","SEATTLE","SINGAPORE","SYDNEY","TORONTO","TURIN","VANCOUVER","VIENNA","WASHINGTON_DC","WELLINGTON","ZURICH"],"PROD_3_SITES":["ABU_DHABI","BUENOS_AIRES","BRUSSELS","CINCINNATI","GUADALAJARA","INDIANAPOLIS","LEEDS","MALAGA","MONTERREY","NANTES","PORTO_ALEGRE","RICHMOND","RIVIERA_MAYA","SACRAMENTO","BELO_HORIZONTE","ALBUQUERQUE","AMSTERDAM","MEXICO_CITY","DETROIT","EDMONTON","JACKSONVILLE","KANSAS_CITY","COPENHAGEN","MINNEAPOLIS","NASHVILLE","NEW_ORLEANS","PHOENIX","BALTIMORE","BELFAST","BUSAN","CHARLESTON","CHARLOTTE","CHICAGO","DUBAI","EDINBURGH","LOS_ANGELES","MANCHESTER","MUMBAI","NEW_DELHI","ORLANDO","PORTLAND","RALEIGH","SAN_ANTONIO","SEOUL","TAMPA","TOKYO","TULSA","SANTIAGO","STOCKHOLM","SEVILLE","TIJUANA","TOLUCA","TOULOUSE"],"STAGING_SITES":["STAGING"],"STANDALONE_SITES":["MADRID","LONDON","PARIS","NYC"]}}}');class dF{static is(e){let t=this.getCurrentSiteKey(),n=this.toSiteKey(e);return!!t&&!!n&&t===n}static in(e){return e.some(e=>this.is(e))}static isLocal(){let e=this.getCurrentDomain(),t=this.siteManifest.sitesByKey[this.localSiteKey];return!!e&&!!t&&e===t.toLowerCase()}static inGroup(e,t){var n,i;let r=this.getCurrentSiteKey();if(!r)return!1;let s=this.toConstName(e),o=this.toConstName(t);return(null!=(i=null==(n=this.siteGroups.groupsByType[s])?void 0:n[o])?i:[]).includes(r)}static getCurrentSiteKey(){var e;let t=this.getCurrentDomain();return t&&null!=(e=this.siteManifest.siteKeyByDomain[t.toLowerCase()])?e:null}static getCurrentDomain(){var e,t;let n=null!=(t=null==(e=window.location)?void 0:e.hostname)?t:"";return n?n.toLowerCase():null}static toSiteKey(e){var t;if(!e)return null;let n=e.trim(),i=this.toConstName(n);return i in this.siteManifest.sitesByKey?i:null!=(t=this.siteManifest.siteKeyByDomain[n.toLowerCase()])?t:null}static toConstName(e){return e.replace(/[^a-zA-Z0-9]/g,"_").toUpperCase()}}dF.siteManifest=dU,dF.siteGroups=dB,dF.localSiteKey="LOCAL";var dV=Object.defineProperty,dH=Object.getOwnPropertySymbols,dj=Object.prototype.hasOwnProperty,dG=Object.prototype.propertyIsEnumerable,dq=(e,t,n)=>t in e?dV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let d$=["VALENCIA","SAO_PAULO","LYON","PERTH"],dz=".preferred-sources-button, [data-nbe-preferred-sources]",dK="__smnPreferredSourcesInPageFlowBound",dW=null,dY=!1,dX=!1,dJ=!1,dQ=null;class dZ{static init(){let e=window;dX||e[dK]||(dX=!0,e[dK]=!0,function(){var e;if(dJ)return;dJ=!0;let t=window,n=null!=(e=t.PREFERRED_SOURCE)?e:[];t.PREFERRED_SOURCE=n,n.push(e=>{let t,n;if(dW=e,dY)return;let i=(n=null==(t=document.querySelector(dz))?void 0:t.getAttribute("data-lang"))||document.documentElement.lang.replace("_","-").split("-")[0].toLowerCase()||void 0;e.init(((e,t)=>{for(var n in t||(t={}))dj.call(t,n)&&dq(e,n,t[n]);if(dH)for(var n of dH(t))dG.call(t,n)&&dq(e,n,t[n]);return e})({theme:"light"},i?{lang:i}:{})),dY=!0})}(),dQ=e=>{!function(e){var t;let n=e.target;if(!(n instanceof Element))return;let i=n.closest(dz);if(!(i instanceof HTMLAnchorElement)||e.defaultPrevented||!(0===e.button&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey)||!function(e=window.location.search){return function(e=window.location.hostname){let t=e.toLowerCase();return t.endsWith(".local")||t.endsWith(".smn")}()||dF.isLocal()||dF.in(d$)||"1"===new URLSearchParams(e).get("smn_preferred_sources_v2")}())return;let r=dW;if(r){e.preventDefault();try{r.addPreferredSource()}catch(e){""!==(t=i.href)&&window.open(t,"_blank","noopener,noreferrer")}}}(e)},document.addEventListener("click",dQ))}}class d0{constructor(){document.addEventListener("DOMContentLoaded",()=>this.watchShareButtons()),window.addEventListener("current_post_changed",()=>this.watchShareButtons())}static init(){d0.instance||(d0.instance=new d0)}watchShareButtons(){document.querySelectorAll(".smn-share-post").forEach(e
1=>{navigator.share||e.remove(),"true"!==e.dataset.shareBound&&(e.addEventListener("click",()=>{let t;return t=function*(){let t=e.getAttribute("data-post-url")||window.location.href,n=e.getAttribute("data-post-title")||document.title;try{yield navigator.share({title:n,url:t})}catch(e){}},new Promise((e,n)=>{var i=e=>{try{s(t.next(e))}catch(e){n(e)}},r=e=>{try{s(t.throw(e))}catch(e){n(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,r);s((t=t.apply(null,null)).next())})}),e.dataset.shareBound="true")})}}var d1=Object.defineProperty,d2=Object.getOwnPropertySymbols,d3=Object.prototype.hasOwnProperty,d6=Object.prototype.propertyIsEnumerable,d5=(e,t,n)=>t in e?d1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let d4=class e{constructor(){window.addEventListener("dataverseEvent",t=>{let{eventName:n,dataverse:i}=t.detail;e.triggerEvent(n,i)})}static init(){null===this.instance&&(this.instance=new e)}static triggerEvent(e,t){var n;Array.isArray(window.dataLayer)||(window.dataLayer=[]),window.dataLayer.push({event:"vrs_dataLayer_clean",event_time:Date.now(),vrsData:null,vrsEcommerce:null,_clear:!0});let i=null!=(n=t.ecommerce)?n:null;window.dataLayer.push(((e,t)=>{for(var n in t||(t={}))d3.call(t,n)&&d5(e,n,t[n]);if(d2)for(var n of d2(t))d6.call(t,n)&&d5(e,n,t[n]);return e})({event:e,event_time:Date.now(),vrsData:t},i&&{vrsEcommerce:i}))}};d4.instance=null;class d8{static detectAdBlocker(){try{let e=document.createElement("div");e.className="pub_300x250 pub_728x90 text-ad textAd adSense adBlock adsbox",e.style.cssText="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;",document.body.appendChild(e);let t=!(e.offsetParent&&e.offsetWidth&&e.offsetHeight&&"none"!==window.getComputedStyle(e).display&&"hidden"!==window.getComputedStyle(e).visibility);return document.body.removeChild(e),t}catch(e){return!1}}static getConnectionType(){return"connection"in navigator&&navigator.connection&&navigator.connection.effectiveType||"unknown"}}var d9=Object.defineProperty,d7=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,fn=(e,t,n)=>t in e?d9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fi=(e,t)=>{for(var n in t||(t={}))fe.call(t,n)&&fn(e,n,t[n]);if(d7)for(var n of d7(t))ft.call(t,n)&&fn(e,n,t[n]);return e};class fr{static saveScrollData(e){try{let t=this.getScrollData()||{},n=fi(fi({},t),e);sessionStorage.setItem(this.STORAGE_KEY,JSON.stringify(n))}catch(e){}}static getScrollData(){try{let e=sessionStorage.getItem(this.STORAGE_KEY);return e?JSON.parse(e):null}catch(e){return null}}static clearScrollData(){sessionStorage.removeItem(this.STORAGE_KEY)}}fr.STORAGE_KEY="DataverseInfiniteScrollPersistence";var fs=((R=fs||{}).FACEBOOK="facebook.com",R.FACEBOOK_SHORT="fb.me",R.INSTAGRAM="instagram.com",R.TWITTER="twitter.com",R.X_SOCIAL="x.com",R.TWITTER_SHORT="t.co",R.LINKEDIN="linkedin.com",R.LINKEDIN_SHORT="lnkd.in",R.PINTEREST="pinterest.com",R.YOUTUBE="youtube.com",R.YOUTUBE_SHORT="youtu.be",R.TIKTOK="tiktok.com",R.SNAPCHAT="snapchat.com",R.REDDIT="reddit.com",R.REDDIT_SHORT="redd.it",R.WHATSAPP="whatsapp.com",R.TELEGRAM_ME="telegram.me",R.TELEGRAM_ORG="telegram.org",R.DISCORD_GG="discord.gg",R.DISCORD="discord.com",R),fo=((M=fo||{}).GOOGLE="google.com",M.GOOGLE_ES="google.es",M.GOOGLE_UK="google.co.uk",M.GOOGLE_FR="google.fr",M.GOOGLE_DE="google.de",M.BING="bing.com",M.YAHOO="yahoo.com",M.DUCKDUCKGO="duckduckgo.com",M.YANDEX="yandex.com",M.BAIDU="baidu.com",M.ECOSIA="ecosia.org",M.STARTPAGE="startpage.com",M.SEARX="searx.me",M);let fa=Object.values(fs),fl=Object.values(fo);var fc=((D=fc||{}).DIRECT="direct",D.INTERNAL="internal",D.SOCIAL="social",D.SEARCH="search",D.EXTERNAL="external",D),fu=Object.defineProperty,fd=Object.defineProperties,ff=Object.getOwnPropertyDescriptors,fh=Object.getOwnPropertySymbols,fp=Object.prototype.hasOwnProperty,fm=Object.prototype.propertyIsEnumerable,fg=(e,t,n)=>t in e?fu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class fv{static getDynamicContentData(){var e,t,n;let i=fr.getScrollData(),r=null==i?void 0:i.current_post;return fd(((e,t)=>{for(var n in t||(t={}))fp.call(t,n)&&fg(e,n,t[n]);if(fh)for(var n of fh(t))fm.call(t,n)&&fg(e,n,t[n]);return e})({},void 0!==r?{postId:r}:{}),ff({date:this.getCurrentDate(),referrer:null!=(e=this.getCurrentReferrer())?e:void 0,referrerType:null!=(t=this.categorizeReferrerType(this.getCurrentReferrer()))?t:void 0,referringDomain:null!=(n=this.getReferringDomain(this.getCurrentReferrer()))?n:void 0,url:(null==i?void 0:i.post_url)||window.location.href,weekDay:new Date().getDay()}))}static getCurrentDate(){return new Date().toISOString()}static getCurrentReferrer(){return document.referrer||null}static categorizeReferrerType(e){if(!e)return fc.DIRECT;try{let t=new URL(e),n=new URL(window.location.href);if(t.hostname===n.hostname)return fc.INTERNAL;for(let e of fa)if(t.hostname.includes(e))return fc.SOCIAL;for(let e of fl)if(t.hostname.includes(e))return fc.SEARCH;return fc.EXTERNAL}catch(e){return fc.EXTERNAL}}static getReferringDomain(e){if(!e)return null;try{return new URL(e).hostname}catch(e){return null}}}var f_=((U=f_||{}
1).GOOGLE="google",U.BING="bing",U.YAHOO="yahoo",U.BAIDU="baidu",U.YANDEX="yandex",U.DUCKDUCKGO="duckduckgo",U.ASK="ask",U.ECOSIA="ecosia",U.AOL="aol",U.ARCHIVE="archive",U.NAVER="naver",U.BRAVE="brave",U),fy=((B=fy||{}).FACEBOOK="facebook.com",B.TWITTER="twitter.com",B.LINKEDIN="linkedin.com",B.INSTAGRAM="instagram.com",B.SNAPCHAT="snapchat.com",B.REDDIT="reddit.com",B.PINTEREST="pinterest.com",B.TIKTOK="tiktok.com",B),fb=((F=fb||{}).CHATGPT_1="chat.openai.com",F.CHATGPT_2="chatgpt.com",F.GOOGLE_BARD="bard.google.com",F.BING_CHAT="bing.com/chat",F),fw=((V=fw||{}).GMAIL="mail.google.com",V.YAHOO_MAIL="mail.yahoo.com",V.OUTLOOK="outlook.live.com",V.APPLE_MAIL="icloud.com",V.ZOHO_MAIL="zoho.com",V),fE=((H=fE||{}).GOOGLE_ADS="gclid",H.BING_ADS="msclkid",H.CRITEO="criteo_uid",H.TABOOLA="campaigntype",H.FACEBOOK_ADS="fbclid",H.TWITTER_ADS_1="twclid",H.TWITTER_ADS_2="ad_id",H.LINKEDIN_ADS="li_fat_id",H.TRADEDOUBLER="tduid",H.CJ="cjevent",H.HIKE="clickid",H.IMPACT="irclickid",H.OUTBRAIN_1="obref",H.OUTBRAIN_2="ob_click_id",H.SNAPCHAT_ADS="scid",H.TIKTOK_ADS="ttclid",H.AMAZON_ADS="amzlid",H.DOUBLECLICK="dclid",H.PINTEREST_ADS="pclid",H.ADROLL_1="adroll_click_id",H.ADROLL_2="adroll_campaign_id",H.YAHOO_ADS="yclid",H.REDDIT_ADS="rdt_cid",H.QUANTCAST="q_clickid",H.VERIZON_MEDIA="vclid",H.SKIMLINKS="skimlinks_cid",H.PROPELLER_ADS="pa_cid",H),fS=((j=fS||{}).GOOGLE="google",j.FACEBOOK="facebook",j.INSTAGRAM="instagram",j.TWITTER="twitter",j.LINKEDIN="linkedin",j.FEVER="fever",j.SECRET_MEDIA_NETWORK="smn",j.PINTEREST="pinterest",j.TIKTOK="tiktok",j.REDDIT="reddit",j.SNAPCHAT="snapchat",j.OUTBRAIN="outbrain",j);Object.values({SOURCE:["utm_source","cp_smn_source"],MEDIUM:["utm_medium"],CONTENT:["utm_content","cp_smn_content"],CAMPAIGN:["utm_campaign"],TERM:["utm_term","cp_smn_term"]});let fA=Object.values(f_),fT=Object.values(fy),fC=Object.values(fb),fI=Object.values(fw);Object.values(fE);let fO=Object.values(fS);class fL{static getCampaignsData(){if(null!==sessionStorage.getItem(this.sessionStorageKey)&&"{}"!==sessionStorage.getItem(this.sessionStorageKey))return this.getSavedDataverseCampaignsParameters();let e=new URLSearchParams(window.location.search),t=e.get("utm_source")||e.get("cp_smn_source")||"undefined",n=e.get("utm_medium")||"undefined",i=e.get("utm_campaign")||"undefined",r=e.get("utm_content")||e.get("cp_smn_content")||"undefined",s=e.get("utm_term")||e.get("cp_smn_term")||"undefined",o=this.determineCampaignProvi
1der(t),a=this.detectAdTracking(e),l=this.determineChannel(t,a),c={campaignProvider:o,isCampaign:"undefined"!==i&&""!==i||!!a,trafficDetail:{channel:l,source:this.determineSource(t),medium:"direct"!==l?"organic":"direct"},utm_campaign:i,utm_content:r,utm_medium:n,utm_source:t,utm_term:s};return this.saveDataverseCampaignsObject(c),c}static getSavedDataverseCampaignsParameters(){let e=sessionStorage.getItem(this.sessionStorageKey);return e?JSON.parse(e):{}}static saveDataverseCampaignsObject(e){sessionStorage.setItem(this.sessionStorageKey,JSON.stringify(e))}static detectAdTracking(e){let t;if(e instanceof URLSearchParams?t=e:e&&"object"==typeof e?(t=new URLSearchParams,Object.entries(e).forEach(([e,n])=>{n&&t.set(e,n)})):t=new URLSearchParams(window.location.search),!t||0===Array.from(t.keys()).length)return null;for(let[e,n]of Object.entries(fE))if(t.has(n)&&t.get(n))return{provider:e.toLowerCase(),parameter:n};return null}static detectReferrerSource(e){let t=e||document.referrer;if(!t||""===t||"undefined"===t||!t.includes("://"))return"undefined";try{let e=new URL(t),n=window.location.hostname;if(e.hostname===n)return"internal";let i=e.hostname.toLowerCase().replace(/^www\./,"");for(let e of fA)if(i.includes(e))return e;for(let e of fT)if(i.includes(e))return e;for(let e of fC)if(i.includes(e))return e;for(let e of fI)if(i.includes(e))return e;return i}catch(e){return"undefined"}}static determineOrganicTraffic(){for(let e of fA)if(document.referrer.includes(e))return e;for(let e of fC)if(document.referrer.includes(e))return e;return!1}static determineChannel(e,t){if(t)return"paid";if(this.isExternalReferrer())return"referral";let n=e;try{e.includes("://")&&(n=new URL(e).hostname)}catch(t){n=e}return(n=n.replace(/^www\./,""),fT.map(e=>e.replace(".com","")).some(e=>n.includes(e)))?"social":fA.some(e=>n.includes(e))?"search":fI.map(e=>e.replace(".com","")).some(e=>n.includes(e))||"email"===n?"email":fC.map(e=>e.replace(".com","")).some(e=>n.includes(e))?"ai":"direct"}
1static determineCampaignProvider(e){let t=this.detectAdTracking();if(t)return t.provider;let n=sessionStorage.getItem(this.sessionStorageKey);if(n)try{let e=JSON.parse(n);for(let[t,n]of Object.entries(fE)){let i=e[n];if(i&&"undefined"!==i)return t.toLowerCase()}}catch(e){}if(!e||"undefined"===e)return"undefined";for(let t of fO)if(e.toLowerCase().includes(t.toLowerCase()))return t;return"undefined"}static determineSource(e){return this.isExternalReferrer()?this.detectReferrerSource():e&&"undefined"!==e&&""!==e?e.includes("://")?"undefined"!==e?this.detectReferrerSource(e):this.detectReferrerSource():e:"direct"}static isExternalReferrer(){if(!document.referrer||""===document.referrer)return!1;try{let e=new URL(document.referrer),t=window.location.hostname;return e.hostname!==t}catch(e){return!1}}}fL.sessionStorageKey="DataverseCampaignsParameters";var fN=Object.defineProperty,fP=Object.defineProperties,fk=Object.getOwnPropertyDescriptors,fx=Object.getOwnPropertySymbols,fR=Object.prototype.hasOwnProperty,fM=Object.prototype.propertyIsEnumerable,fD=(e,t,n)=>t in e?fN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fU=(e,t)=>{for(var n in t||(t={}))fR.call(t,n)&&fD(e,n,t[n]);if(fx)for(var n of fx(t))fM.call(t,n)&&fD(e,n,t[n]);return e},fB=(e,t,n)=>new Promise((i,r)=>{var s=e=>{try{a(n.next(e))}catch(e){r(e)}},o=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,o);a((n=n.apply(e,t)).next())});class fF{constructor(e=new ua.A(new uo.A)){this.cachedPayload=null,this.userInfoService=e,window.dataverse=window.dataverse||{}}trigger(e){return fB(this,null,function*(){let t=yield this.preparePayload(e);d4.triggerEvent(this.eventName,t)})}getStaticPayloadData(){return window.SMNPayloadData?window.SMNPayloadData:{content:{},tests:{},campaigns:{},user:{userType:"guest"}}}enhanceWithClientSideData(e){return{user:e.user||{},content:fP(fU({},e.content),fk({adBlock:this.detectAdBlocker(),connectionType:this.getConnectionType()})),campaigns:e.campaigns||{},tests:e.tests||{}}}buildCompletePayload(){return fB(this,null,function*(){var e;if(!this.cachedPayload){let e=this.getStaticPayloadData();this.cachedPayload={user:{},content:fU({},e.content),campaigns:fU({},e.campaigns),tests:e.tests||{}}}let t=fv.getDynamicContentData(),n=fL.getCampaignsData(),i={user:fU({},null!=(e=this.userInfoService.getUserInfo())?e:{userType:"guest"}),content:fU(fU({},this.cachedPayload.content),t),campaigns:fU({},n),tests:this.cachedPayload.tests||{}};return this.enhanceWithClientSideData(i)})}getBasePayload(){return fB(this,null,function*(){return yield this.buildCompletePayload()})}preparePayload(e){return fB(this,null,function*(){let t,n=yield this.getBasePayload();if(e){let i={content:fU(fU({},n.content),e.content),user:fU(fU({},n.user),e.user),campaigns:fU(fU({},n.campaigns),e.campaigns),tests:fU(fU({},n.tests),e.tests)};t=this.removeUnknownValues(i)}else t=this.removeUnknownValues(n);return window.dataverse=t,t})}removeUnknownValues(e){let t=fU({},e);for(let e of Object.keys(t))if(t[e])for(let n in t[e])("unknown"===t[e][n]||null===t[e][n]||""===t[e][n])&&delete t[e][n];return t}detectAdBlocker(){try{if("function"!=typeof d8.detectAdBlocker)return!1;return!!d8.detectAdBlocker()}catch(e){return!1}}getConnectionType(){try{if("function"!=typeof d8.getConnectionType)return"unknown";let e=d8.getConnectionType();return String(e||"unknown")}catch(e){return"unknown"}}refreshPayloadData(){this.cachedPayload=null}}var fV=Object.defineProperty,fH=Object.defineProperties,fj=Object.getOwnPropertyDescriptors,fG=Object.getOwnPropertySymbols,fq=Object.getPrototypeOf,f$=Object.prototype.hasOwnProperty,fz=Object.prototype.propertyIsEnumerable,fK=Reflect.get,fW=(e,t,n)=>t in e?fV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fY=(e,t)=>{for(var n in t||(t={}))f$.call(t,n)&&fW(e,n,t[n]);if(fG)for(var n of fG(t))fz.call(t,n)&&fW(e,n,t[n]);return e},fX=(e,t,n)=>fK(fq(e),n,t),fJ=(e,t,n)=>new Promise((i,r)=>{var s=e=>{try{a(n.next(e))}catch(e){r(e)}},o=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,o);a((n=n.apply(e,t)).next())});let fQ=class e extends fF{constructor(){super(),this.eventName="vrs_dataLayer_ready"}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){window.addEventListener("load",()=>this.onPageLoad()),window.addEventListener("new_post_inserted",this.handleNewPostInsertedEvent.bind(this))}
1handleNewPostInsertedEvent(e){this.onInfiniteScrollPostLoad(e)}onPageLoad(){return fJ(this,null,function*(){de.h.isOneTapReturn()||(yield this.trigger())})}onInfiniteScrollPostLoad(t){return fJ(this,null,function*(){let n,i,r=yield fX(e.prototype,this,"getBasePayload").call(this),s=t.detail;yield this.trigger((n=fY({},r),i={content:fH(fY({},r.content),fj({referrerType:"infinite_scroll",postId:s.id,url:s.url,pageName:s.title,category:s.category_slug}))},fH(n,fj(i))))})}getBasePayload(){return fJ(this,null,function*(){let t,n,i=yield fX(e.prototype,this,"getBasePayload").call(this);return t=fY({},i),n={content:fH(fY({},i.content),fj({referrer:document.referrer,date:new Date().toISOString(),url:window.location.href}))},fH(t,fj(n))})}};fQ.instance=null;var fZ=Object.defineProperty,f0=Object.defineProperties,f1=Object.getOwnPropertyDescriptors,f2=Object.getOwnPropertySymbols,f3=Object.getPrototypeOf,f6=Object.prototype.hasOwnProperty,f5=Object.prototype.propertyIsEnumerable,f4=Reflect.get,f8=(e,t,n)=>t in e?fZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f9=(e,t)=>
1{for(var n in t||(t={}))f6.call(t,n)&&f8(e,n,t[n]);if(f2)for(var n of f2(t))f5.call(t,n)&&f8(e,n,t[n]);return e};let f7=class e extends fF{constructor(){super(),this.eventName="vrs_click",this.clickedElement=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){document.body.addEventListener("click",e=>{let t=e.target.closest('[data-has-ga="true"]');t&&this.handleElementClick(t,e)})}handleElementClick(e,t){e.getAttribute("data-has-ga")&&(this.clickedElement=e,this.trigger().then(()=>{e.setAttribute("data-ga-applied","true")}))}getBasePayload(){let t,n;return t=this,n=function*(){let t,n=yield(t=e.prototype,f4(f3(t),"getBasePayload",this)).call(this);if(!this.clickedElement)return n;let i=this.clickedElement,r=i.getAttribute("data-category")||"",s=i.getAttribute("data-action")||"",o=i.getAttribute("data-label")||"",a=""!==o.trim()?o:window.location.href;return s.includes("profile_card")&&i instanceof HTMLLinkElement&&(a=i.href),f0(f9({},n),f1({clicks:f9({element_name:s,element_id:this.getElementId(i),element_target:a,element_text:i.innerText,element_action:r,element_position:this.getElementPosition(i),element_category:this.getElementType(i),page_section:this.getPageSection(i),interaction_type:"click"},this.getPersistence(i))}))},new Promise((e,i)=>{var r=e=>{try{o(n.next(e))}catch(e){i(e)}},s=e=>{try{o(n.throw(e))}catch(e){i(e)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,null)).next())})}getElementId(e){if(e.id)return e.id;if(e instanceof HTMLAnchorElement&&e.href){let t=e.href.match(/\/m\/(\d+)/);if(t&&t[1])return t[1]}return"unknown"}getElementPosition(e){let t=e=>{if(e.id)return`#${e.id}`;let t=e.className&&"string"==typeof e.className?"."+e.className.trim().split(/\s+/).filter(Boolean).join("."):"";return e.tagName.toLowerCase()+t},n="",i=e,r=0;for(;i&&i!==document.body&&r<3;){let e=t(i);n=n?`${e}>${n}`:e,i=i.parentElement,r++}return n}getElementType(e){return e instanceof HTMLAnchorElement?"link":e instanceof HTMLButtonElement?"button":e instanceof HTMLSpanElement?"span":e instanceof HTMLDivElement?"div":"unknown"}getPageSection(e){let t=e.closest("header, footer, aside, nav, section, div");return t?t.tagName.toLowerCase():"unknown"}getPersistence(e){let t=sD.C.getDataAttributesFromLink(e),n=JSON.parse(sessionStorage.getItem("utmParameters")),i=sD.C.getUtmParametersFromUser();return Object.keys(n).length>0||Object.keys(t).length>0?f9(f9(f9({persistence:!0},this.renameUtmKeys(this.filterCpSmnKeys(t))),this.renameUtmKeys(n)),this.renameUtmKeys(i)):{persistence:!1}}filterCpSmnKeys(e){let t={};for(let n in e)e.hasOwnProperty(n)&&e[n].startsWith("cp_smn")&&(t[n]=e[n].replace(/^cp_/,""));return t}renameUtmKeys(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[`persistence_${n.split("_").slice(1).join("_")}`]=e[n]);return t}};f7.instance=null;let he=class e extends fF{constructor(){super(),this.eventName="vrs_login_success"}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){window.addEventListener("load",()=>this.onPageLoad())}onPageLoad(){let e,t;return e=this,t=function*(){void 0!==window.successLoginDataverse&&window.successLoginDataverse&&(yield this.trigger())},new Promise((n,i)=>{var r=e=>{try{o(t.next(e))}catch(e){i(e)}},s=e=>{try{o(t.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(r,s);o((t=t.apply(e,null)).next())})}};he.instance=null;var ht=Object.defineProperty,hn=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,hs=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty,ha=Object.prototype.propertyIsEnumerable,hl=Reflect.get,hc=(e,t,n)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hu=(e,t)=>{for(var n in t||(t={}))ho.call(t,n)&&hc(e,n,t[n]);if(hr)for(var n of hr(t))ha.call(t,n)&&hc(e,n,t[n]);return e};let hd=class e extends fF{constructor(){super(),this.eventName="vrs_scroll",this.maxScrollDepth=0,this.lastPercentageSent=-1}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){window.addEventListener("new_post_inserted",e=>{let t=this.buildScrollData(e);fr.saveScrollData(t),this.resetDataInNewPostInserted(),this.startObserving(),this.sendPercentagePageViewEvent()}),window.addEventListener("scroll",()=>{this.trackScrollDepth(),this.sendPercentagePageViewEvent()}),document.addEventListener("visibilitychange",()=>{this.sendPercentagePageViewEvent()}),this.startObserving(),this.startInfiniteScrollStorage()}getBasePayload(){let t,n;return t=this,n=function*(){let t,n=yield(t=e.prototype,hl(hs(t),"getBasePayload",this)).call(this);if(0===this.maxScrollDepth)return n;let i=this.getPercentageViewed(),r=fr.getScrollData();return hn(hu({},n),hi({scroll:hu({interaction_type:this.getInteractionType(),scroll_type:this.getScrollType(),element_scroll_value:i.toString(),device_resolution:`${window.innerWidth>=1024?"desktop":"mobile"}_${window.screen.width}x${window.screen.height}`},r)}))},new Promise((e,i)=>{var r=e=>{try{o(n.next(e))}catch(e){i(e)}},s=e=>{try{o(n.throw(e))}catch(e){i(e)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,null)).next())})}getInteractionType(){return"ontouchstart"in window?"swipe":"scroll"}getScrollType(){let e=this.getPercentageViewed(),t=fr.getScrollData();return 100===e&&t&&t.scroll_no>0?"infinite_scroll":"normal"}handleSendEvent(){this.trigger()}sendPercentagePageViewEvent(){let e=this.getPercentageViewed();!(e<=this.lastPercentageSent)&&[25,50,75,100].includes(e)&&(this.handleSendEvent(),this.lastPercentageSent=e)}getPercentageViewed(){return Math.min(100,Math.round(100*this.maxScrollDepth))}resetDataInNewPostInserted(){this.maxScrollDepth=0,this.lastPercentageSent=-1,this.refreshPayloadData()}startObserving(){this.trackScrollDepth()}trackScrollDepth(){let e=document.querySelectorAll("section.article__body");if(0===e.length)return;let t=e[e.length-1],n=t.getBoundingClientRect().top+window.scrollY,i=t.clientHeight,r=Math.min(1,(window.scrollY+window.innerHeight-n)/i);this.maxScrollDepth=Math.max(this.maxScrollDepth,r)}startInfiniteScrollStorage(){fr.clearScrollData();let e=document.querySelector("article.post-main-content");e&&fr.saveScrollData({current_post:Number(e.dataset.postId),scroll_no:0,displayed_ids:[Number(e.dataset.postId)],category:Number(e.dataset.primaryCategoryId)})}buildScrollData(e){var t,n,i,r,s,o;let a=fr.getScrollData(),l=(null==a?void 0:a.displayed_ids)||[],c=(null==(t=e.detail)?void 0:t.displayed_ids)||[];return{current_post:null==(n=e.detail)?void 0:n.id,scroll_no:(null!=(i=null==a?void 0:a.scroll_no)?i:0)+1,displayed_ids:[...new Set([...l,...c,null==(r=e.detail)?void 0:r.id].filter(e=>void 0!==e))],category:null==(s=e.detail)?void 0:s.category,post_url:null==(o=e.detail)?void 0:o.url}}};hd.instance=null;var hf=Object.defineProperty,hh=Object.defineProperties,hp=Object.getOwnPropertyDescriptors,hm=Object.getOwnPropertySymbols,hg=Object.getPrototypeOf,hv=Object.prototype.hasOwnProperty,h_=Object.prototype.propertyIsEnumerable,hy=Reflect.get,hb=(e,t,n
1)=>t in e?hf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let hw=class e extends fF{constructor(){super(),this.eventName="vrs_submit",this.formElement=null,this.getFormErrorMessage=e=>{if(e.checkValidity())return"unknown";let t=Array.from(e.elements).find(e=>!!(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&!e.validity.valid);return(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&t.validationMessage||"unknown"}}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){window.addEventListener("submit",e=>{this.formElement=e.target,this.onFormSubmit()})}onFormSubmit(){this.trigger()}getBasePayload(){let t,n;return t=this,n=function*(){var t,n,i;let r,s=yield(r=e.prototype,hy(hg(r),"getBasePayload",this)).call(this);if(!this.formElement)return s;let o=this.formElement;return hh(((e,t)=>{for(var n in t||(t={}))hv.call(t,n)&&hb(e,n,t[n]);if(hm)for(var n of hm(t))h_.call(t,n)&&hb(e,n,t[n]);return e})({},s),hp({submit:{element_name:o.getAttribute("name")||o.className||"unknown",element_id:o.id||o.getAttribute("data-id")||o.className||"unknown",element_status:o.checkValidity()?"success":"error",element_error:this.getFormErrorMessage(o),page_section:(null==(t=o.closest("footer, header, aside, nav, main"))?void 0:t.tagName.toLowerCase())||"unknown",interaction_type:"submit",element_category:this.getFormCategory(o),element_text:(null==(i=null==(n=o.querySelector('[type="submit"]'))?void 0:n.textContent)?void 0:i.trim())||"unknown"}}))},new Promise((e,i)=>{var r=e=>{try{o(n.next(e))}catch(e){i(e)}},s=e=>{try{o(n.throw(e))}catch(e){i(e)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,null)).next())})}getFormCategory(e){var t,n,i,r,s,o;return e.querySelector('[type="search"]')?"search":(null==(t=e.getAttribute("name"))?void 0:t.includes("newsletter"))||(null==(n=e.getAttribute("id"))?void 0:n.includes("newsletter"))||(null==(i=e.getAttribute("data-category"))?void 0:i.includes("newsletter"))||Array.from(e.classList).some(e=>e.includes("newsletter"))||e.innerHTML.toLowerCase().includes("newsletter")?"newsletter":(null==(r=e.getAttribute("name"))?void 0:r.includes("login"))||(null==(s=e.getAttribute("id"))?void 0:s.includes("login"))||(null==(o=e.getAttribute("data-category"))?void 0:o.includes("login"))||Array.from(e.classList).some(e=>e.includes("login"))||e.innerHTML.toLowerCase().includes("login")?"login":"form"}};hw.instance=null;var hE=Object.defineProperty,hS=Object.defineProperties,hA=Object.getOwnPropertyDescriptors,hT=Object.getOwnPropertySymbols,hC=Object.getPrototypeOf,hI=Object.prototype.hasOwnProperty,hO=Object.prototype.propertyIsEnumerable,hL=Reflect.get,hN=(e,t,n)=>t in e?hE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hP=(e,t)=>{for(var n in t||(t={}))hI.call(t,n)&&hN(e,n,t[n]);if(hT)for(var n of hT(t))hO.call(t,n)&&hN(e,n,t[n]);return e},hk=(e,t,n)=>new Promise((i,r)=>{var s=e=>{try{a(n.next(e))}catch(e){r(e)}},o=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,o);a((n=n.apply(e,t)).next())});let hx=class e extends fF{constructor(){super(),this.eventName="vrs_translate_page",this.translationData={currentLanguage:null,targetLanguage:null,isTranslating:!1},this.eventController=new AbortController}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){document.body.addEventListener("click",t=>{t.target.closest(e.SELECTORS.LANGUAGE_LINK)&&this.onTranslatePage(t)},{signal:this.eventController.signal})}destroy(){this.eventController.abort(),e.instance=null}onTranslatePage(e){return hk(this,null,function*(){if(!this.translationData.isTranslating){this.translationData.isTranslating=!0;try{if(!this.interceptLanguageLinks(e))return;yield this.trigger()}finally{this.translationData.isTranslating=!1}}})}getBasePayload(){return hk(this,null,function*(){let t,n,i,r=yield(t=e.prototype,hL(hC(t),"getBasePayload",this)).call(this),s=this.getCurrentLanguage(),o=this.translationData.targetLanguage;return n=hP({},r),i={content:hS(hP({},r.content),hA({sourceLanguage:s||"unknown",targetLanguage:o||"unknown"}))},hS(n,hA(i))})}interceptLanguageLinks(t){let n=t.target.closest(e.SELECTORS.LANGUAGE_LINK);if(n){let e=this.getCurrentLanguage(),t=n.getAttribute("data-slug")||this.extractLanguageFromUrl(n.href);if(e!==t&&this.isValidLanguageCode(t))return this.translationData.currentLanguage=e,this.translationData.targetLanguage=t,!0}return!1}getCurrentLanguage(){let e=this.detectCurrentLanguage();return this.translationData.currentLanguage!==e&&(this.translationData.currentLanguage=e),this.translationData.currentLanguage}detectCurrentLanguage(){let t=document.querySelector(e.SELECTORS.SELECTED_LANGUAGE);if(t){let e=t.getAttribute("data-slug");if(e)return e}let n=document.documentElement.lang;if(n)return n.split("-")[0];let i=window.location.pathname.match(/^\/([a-z]{2})\//);if(i)return i[1];let r=window.pll_current_lang;return r||"unknown"}extractLanguageFromUrl(e){try{let t=new URL(e).pathname.match(/\/([a-z]{2})\//),n=(null==t?void 0:t[1])||"unknown";return this.isValidLanguageCode(n)?n:"unknown"}catch(e){return"unknown"}}isValidLanguageCode(e){return/^[a-z]{2}$/i.test(e)}};hx.instance=null,hx.SELECTORS={LANGUAGE_LINK:".smn-language-selector-languages a",SELECTED_LANGUAGE:".smn-language-selector-languages a.smn-language-selector-sidebar-selected"};var hR=Object.defineProperty,hM=Object.defineProperties,hD=Object.getOwnPropertyDescriptors,hU=Object.getOwnPropertySymbols,hB=Object.getPrototypeOf,hF=Object.prototype.hasOwnProperty,hV=Object.prototype.propertyIsEnumerable,hH=Reflect.get,hj=(e,t,n)=>t in e?hR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}
1):e[t]=n,hG=(e,t,n)=>new Promise((i,r)=>{var s=e=>{try{a(n.next(e))}catch(e){r(e)}},o=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,o);a((n=n.apply(e,t)).next())});let hq=class e extends fF{constructor(){super(),this.eventName="vrs_view_item_list",this.currentContext=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){window.addEventListener("load",()=>this.onPageLoad()),window.addEventListener("new_post_inserted",this.onInfiniteScrollPostLoad.bind(this))}onPageLoad(){return hG(this,null,function*(){this.currentContext=null,this.getPlanNodes()&&(yield this.trigger())})}getBasePayload(){return hG(this,null,function*(){let t,n=yield(t=e.prototype,hH(hB(t),"getBasePayload",this)).call(this),i=this.getPlanNodes(this.currentContext);if(!i)return n;let r=[];return i.forEach(e=>{var t,n,i,s;let o={item_id:isNaN(parseFloat(null!=(t=e.dataset.feverPlanId)?t:""))?"unknown":parseFloat(null!=(n=e.dataset.feverPlanId)?n:""),item_name:e.dataset.feverPlanName||"unknown",price:isNaN(parseFloat(null!=(i=e.dataset.feverPlanPrice)?i:""))?"unknown":parseFloat(null!=(s=e.dataset.feverPlanPrice)?s:""),currency:e.dataset.feverPlanCurrency||"unknown",date:e.dataset.feverPlanDate||"unknown",item_location_id:"article_plan_card",item_brand:e.dataset.feverPlanBrand||"unknown"};r.push(o)}),hM(((e,t)=>{for(var n in t||(t={}))hF.call(t,n)&&hj(e,n,t[n]);if(hU)for(var n of hU(t))hV.call(t,n)&&hj(e,n,t[n]);return e})({},n),hD({ecommerce:{currency:r.length>0?r[0].currency:"unknown",item_list_name:`article_${n.content.postId}_secret-media-network-plans`,items:r}}))})}getPlanNodes(e){let t=(e||document).querySelectorAll(".fever-plan");return 0===t.length?null:t}onInfiniteScrollPostLoad(e){return hG(this,null,function*(){let t=document.querySelector(`.infinite_scroll_new_post.post-${e.detail.id}`);if(!t)return;this.currentContext=t;let n=this.getPlanNodes(t);if(!n||0===n.length){this.currentContext=null;return}yield this.trigger(),this.currentContext=null})}};hq.instance=null;var h$=Object.defineProperty,hz=Object.defineProperties,hK=Object.getOwnPropertyDescriptors,hW=Object.getOwnPropertySymbols,hY=Object.getPrototypeOf,hX=Object.prototype.hasOwnProperty,hJ=Object.prototype.propertyIsEnumerable,hQ=Reflect.get,hZ=(e,t,n)=>t in e?h$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let h0=class e extends fF{constructor(){super(),this.eventName="vrs_select_item",this.clickedElement=null}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){this.isInitialized||(this.isInitialized=!0,document.body.addEventListener("click",e=>{let t=e.target.closest(".fever-plan");t&&(this.clickedElement=t,this.trigger())}))}getBasePayload(){let t,n;return t=this,n=function*(){var t,n,i,r;let s,o=yield(s=e.prototype,hQ(hY(s),"getBasePayload",this)).call(this);if(!this.clickedElement)return o;let a=this.clickedElement;return hz(((e,t)=>{for(var n in t||(t={}))hX.call(t,n)&&hZ(e,n,t[n]);if(hW)for(var n of hW(t))hJ.call(t,n)&&hZ(e,n,t[n]);return e})({},o),hK({ecommerce:{currency:a.dataset.feverPlanCurrency||"unknown",item_list_name:`article_${o.content.postId}_secret-media-network-plans`,items:[{item_id:isNaN(parseInt(null!=(t=a.dataset.feverPlanId)?t:"",10))?null:parseInt(null!=(n=a.dataset.feverPlanId)?n:"",10),item_name:a.dataset.feverPlanName||"unknown",price:isNaN(parseFloat(null!=(i=a.dataset.feverPlanPrice)?i:""))?null:parseFloat(null!=(r=a.dataset.feverPlanPrice)?r:""),currency:a.dataset.feverPlanCurrency||"unknown",date:a.dataset.feverPlanDate||"unknown",item_location_id:"article_plan_card",item_brand:a.dataset.feverPlanBrand||"unknown"}]}}))},new Promise((e,i)=>{var r=e=>{try{o(n.next(e))}catch(e){i(e)}},s=e=>{try{o(n.throw(e))}catch(e){i(e)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,null)).next())})}};h0.instance=null;let h1=class e{constructor(){d4.init()}static getInstance(){return e.instance||(e.instance=new e),e.instance}initializeEvents(){this.initPageLoadEvent(),this.initClickEvent(),this.initLoginEvent(),this.initScrollEvent(),this.initFormSubmitEvent(),this.initTranslatePageEvent(),this.initViewItemListEvent(),this.initSelectItemEvent()}initPageLoadEvent(){fQ.getInstance().init()}initClickEvent(){f7.getInstance().init()}initLoginEvent(){he.getInstance().init()}initScrollEvent(){hd.getInstance().init()}initFormSubmitEvent(){hw.getInstance().init()}initTranslatePageEvent(){hx.getInstance().init()}initViewItemListEvent(){hq.getInstance().init()}initSelectItemEvent(){h0.getInstance().init()}static initializeRegistry(){e.getInstance().initializeEvents()}};h1.instance=null;class h2{constructor(){this.init()}static getInstance(){return h2.instance||(h2.instance=new h2),h2.instance}init(){window.addEventListener("current_post_changed",this.handleCurrentPostChanged.bind(this))}handleCurrentPostChanged(e){this.trackNewPageOnCurrentPostChanged(e)}trackNewPageOnCurrentPostChanged(e){var t;try{if(!(null==(t=null==e?void 0:e.detail)?void 0:t.url))return;window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.cmd.push(["compass",t=>{try{"function"==typeof(null==t?void 0:t.trackNewPage)&&t.trackNewPage({url:e.detail.url,rs:"infinite scroll"})}catch(e){}}])}catch(e){}}static init(){h2.getInstance()}}let h3=class e{constructor(){this.sdkLoadStarted=!1,this.init()}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){window.addEventListener("nbe:article-reader-loaded",this.handleArticleReaderLoaded.bind(this))}handleArticleReaderLoaded(e){var t,n;try{if(!(null==(t=null==e?void 0:e.detail)?void 0:t.url))return;let i=this.ensureSdkLoaded(),r=null!=(n=window.marfeel)?n:{cmd:[]};window.marfeel=r,r.cmd=r.cmd||[],r.cmd.push(["compass",t=>{try{i&&"function"==typeof(null==t?void 0:t.stopTracking)&&t.stopTracking(),"function"==typeof(null==t?void 0:t.trackNewPage)&&t.trackNewPage({url:e.detail.url,rs:"nbe"})}catch(e){}}])}catch(e){}}ensureSdkLoaded(){return this.sdkLoadStarted||document.querySelector('script[src*="marfeel-sdk.js"]')?(this.sdkLoadStarted=!0,window.marfeel=window.marfeel||{cmd:[]},window.marfeel.cmd=window.marfeel.cmd||[],!1):(this.sdkLoadStarted=!0,window.marfeel=window.marfeel||{cmd:[]},window.marfeel.cmd=window.marfeel.cmd||[],window.marfeel.config=window.marfeel.config||{},window.marfeel.config.accountId=e.ACCOUNT_ID,this.injectSdkScript(`${e.SDK_BASE_URL}/marfeel-sdk.js?id=${e.ACCOUNT_ID}`,!0),this.injectSdkScript(`${e.SDK_BASE_URL}/marfeel-sdk.es5.js?id=${e.ACCOUNT_ID}`,!1),!0)}injectSdkScript(e,t){let n=document.createElement("script");n.src=e,t?n.type="module":(n.async=!0,n.type="text/javascript",n.setAttribute("nomodule",""));let i=document.getElementsByTagName("script")[0];(null==i?void 0:i.parentNode)?i.parentNode.insertBefore(n,i):document.head.appendChild(n)}static init(){e.getInstance()}};h3.ACCOUNT_ID=489,h3.SDK_BASE_URL="https://sdk.mrf.io/statics";let h6=class e{constructor(){this.init()}static getInstance(){return e.instance||(e.instance=new e),e.instance}init(){this.boundHandler=this.handleNewPostInserted.bind(this),window.addEventListener("load",this.boundHandler),window.addEventListener("new_post_inserted",this.boundHandler)}handleNewPostInserted(e){try{this.addDataAttributesToLinks(e)}catch(e){}}addDataAttributesToLinks(e){var t;let n=this.getContainer(null==(t=null==e?void 0:e.detail)?void 0:t.id);n&&this.processLinks(n)}getContainer(e){return e?document.querySelector(`.infinite_scroll_new_post.post-${e}`):document.getElementById("infinite-container")}processLinks(e){e.querySelectorAll("a[data-category][data-action]").forEach(e
1=>{let t=e.dataset.category,n=e.dataset.action;t&&n&&e.setAttribute("data-mrf-conversion",`${n}__${t}`)})}static init(){e.getInstance()}destroy(){window.removeEventListener("load",this.boundHandler),window.removeEventListener("new_post_inserted",this.boundHandler),e.instance=null}};h6.instance=null;var h5=window.wp.i18n;class h4{static init(){this.cookieService=new sq.O,this.getStableUserId()&&(this.showStableUserId(),document.addEventListener("up:fragment:inserted",()=>this.showStableUserId()))}static getStableUserId(){return this.cookieService.getCookie(this.stableUserIdCookie)?this.cookieService.getCookie(this.stableUserIdCookie):null}static showStableUserId(){var e,t,n,i;if(document.getElementById(this.stableUserIdContainer))return;let r=document.querySelector(".smn-my-profile > div"),s=null==(t=null==(e=window.userData)?void 0:e.profile)?void 0:t.email,o=(null==(i=null==(n=window.userData)?void 0:n.profile)?void 0:i.isFeverEmail)||!1,a=this.getStableUserId();if(!r||!s||!a||!o)return;let l=document.createElement("div");l.id=this.stableUserIdContainer;let c=document.createElement("p");c.className="fs-6 fw-bold mb-1",c.textContent=(0,h5.__)("SID","secretmedianetwork");let u=document.createElement("p");u.className="text-secondary mb-0",u.textContent=a,l.appendChild(c),l.appendChild(u),r.appendChild(l)}}function h8(){let e=window.matchMedia&&window.matchMedia("(min-width: 992px)").matches?"-desktop":"-mobile";document.querySelectorAll("article:last-of-type .profile-card__location-link, article:last-of-type .fever-plan__location-link").forEach(t=>{let n=t.getAttribute("href");if(!n)return;let i=n.replace(/-(desktop|mobile)$/,"");t.setAttribute("href",i+e)})}h4.stableUserIdCookie="stable_user_id",h4.stableUserIdContainer="stable-user-id-container";class h9{static main(){new h9().start(),h9.extraFeatures()}static extraFeatures(){var e,t;sy.getInstance().activateClickEvents(),sb.addTrackingEvents(),sP.init(),sR.init();try{null==(t=null==(e=null==window?void 0:window.instgrm)?void 0:e.Embeds)||t.process()}catch(e){}}start(){let e,t;void 0!==window.phpVars.datadog_sample_rate&&void 0!==window.phpVars.datadog_client_token&&ur.init(parseInt(String(window.phpVars.datadog_sample_rate)),window.phpVars.env,window.phpVars.viewName,[window.location.origin],window.phpVars.datadog_client_token),u9.init(),d4.init(),h1.initializeRegistry();let n=window.location.pathname.includes("/nbe"),i=new URLSearchParams(window.location.search).has("nbe_preview_postid");sn.X.init(),n||i||(sx.init(),sr.Y.init(window.phpVars.data_logging_host,new sq.O),window.SMNDataLogging=sr.Y.getInstance(),dl.init()),st.init(),s$.init(),ug.init(),ss.init();let r=new su;r.init(),r.toggleStickyMenuClass(),sf.deferElementsStyles(),sC.activate(),sl.activateFeatures(),sO.init(),sL.init(),sN.init(),sE.init(),e=document.querySelector("#footer_menu .advertise_with_us a"),t=document.querySelector("#offcanvas-special-pages-menu .advertise_with_us a"),null!==e&&e.addEventListener("click",()=>{sy.triggerEvent("b2b_form","advertise_with_us","footer")}),null!==t&&t.addEventListener("click",()=>{sy.triggerEvent("b2b_form","advertise_with_us","slide_menu")}),sG.init(),sz.createInstance(),sK.createInstance(),sD.C.init(),h4.init(),u7.c.init(),da.init(),dg.init(),sM.init(),dw.init(),db.init(),dT.init(),dD.init(),dZ.init(),d0.init(),h2.init(),h3.init(),h6.init(),h8(),window.addEventListener("new_post_inserted",()=>{h8()})}}h9.main()}()}();

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.