diff --git a/bootstrap.php b/bootstrap.php index ebe60928e..a21e2aa30 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -24,7 +24,7 @@ function nfd_wp_module_onboarding_register() { // Set Global Constants if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { - define( 'NFD_ONBOARDING_VERSION', '2.3.5' ); + define( 'NFD_ONBOARDING_VERSION', '2.3.6' ); } if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { define( 'NFD_ONBOARDING_DIR', __DIR__ ); diff --git a/build/2.3.5/100.css b/build/2.3.6/100.css similarity index 100% rename from build/2.3.5/100.css rename to build/2.3.6/100.css diff --git a/build/2.3.5/100.js b/build/2.3.6/100.js similarity index 100% rename from build/2.3.5/100.js rename to build/2.3.6/100.js diff --git a/build/2.3.5/202.js b/build/2.3.6/202.js similarity index 100% rename from build/2.3.5/202.js rename to build/2.3.6/202.js diff --git a/build/2.3.5/206.js b/build/2.3.6/206.js similarity index 100% rename from build/2.3.5/206.js rename to build/2.3.6/206.js diff --git a/build/2.3.5/218.js b/build/2.3.6/218.js similarity index 100% rename from build/2.3.5/218.js rename to build/2.3.6/218.js diff --git a/build/2.3.5/270.js b/build/2.3.6/270.js similarity index 100% rename from build/2.3.5/270.js rename to build/2.3.6/270.js diff --git a/build/2.3.5/287.js b/build/2.3.6/287.js similarity index 100% rename from build/2.3.5/287.js rename to build/2.3.6/287.js diff --git a/build/2.3.5/325.js b/build/2.3.6/325.js similarity index 100% rename from build/2.3.5/325.js rename to build/2.3.6/325.js diff --git a/build/2.3.5/328.js b/build/2.3.6/328.js similarity index 100% rename from build/2.3.5/328.js rename to build/2.3.6/328.js diff --git a/build/2.3.5/340.js b/build/2.3.6/340.js similarity index 100% rename from build/2.3.5/340.js rename to build/2.3.6/340.js diff --git a/build/2.3.5/356.js b/build/2.3.6/356.js similarity index 100% rename from build/2.3.5/356.js rename to build/2.3.6/356.js diff --git a/build/2.3.5/366.js b/build/2.3.6/366.js similarity index 100% rename from build/2.3.5/366.js rename to build/2.3.6/366.js diff --git a/build/2.3.5/367.js b/build/2.3.6/367.js similarity index 100% rename from build/2.3.5/367.js rename to build/2.3.6/367.js diff --git a/build/2.3.5/377.js b/build/2.3.6/377.js similarity index 100% rename from build/2.3.5/377.js rename to build/2.3.6/377.js diff --git a/build/2.3.5/396.css b/build/2.3.6/396.css similarity index 100% rename from build/2.3.5/396.css rename to build/2.3.6/396.css diff --git a/build/2.3.5/396.js b/build/2.3.6/396.js similarity index 100% rename from build/2.3.5/396.js rename to build/2.3.6/396.js diff --git a/build/2.3.5/40.js b/build/2.3.6/40.js similarity index 100% rename from build/2.3.5/40.js rename to build/2.3.6/40.js diff --git a/build/2.3.5/403.js b/build/2.3.6/403.js similarity index 100% rename from build/2.3.5/403.js rename to build/2.3.6/403.js diff --git a/build/2.3.5/426.js b/build/2.3.6/426.js similarity index 100% rename from build/2.3.5/426.js rename to build/2.3.6/426.js diff --git a/build/2.3.5/508.js b/build/2.3.6/508.js similarity index 100% rename from build/2.3.5/508.js rename to build/2.3.6/508.js diff --git a/build/2.3.5/51.js b/build/2.3.6/51.js similarity index 100% rename from build/2.3.5/51.js rename to build/2.3.6/51.js diff --git a/build/2.3.5/546.js b/build/2.3.6/546.js similarity index 100% rename from build/2.3.5/546.js rename to build/2.3.6/546.js diff --git a/build/2.3.5/560.js b/build/2.3.6/560.js similarity index 100% rename from build/2.3.5/560.js rename to build/2.3.6/560.js diff --git a/build/2.3.5/585.js b/build/2.3.6/585.js similarity index 100% rename from build/2.3.5/585.js rename to build/2.3.6/585.js diff --git a/build/2.3.5/595.js b/build/2.3.6/595.js similarity index 100% rename from build/2.3.5/595.js rename to build/2.3.6/595.js diff --git a/build/2.3.5/619.js b/build/2.3.6/619.js similarity index 100% rename from build/2.3.5/619.js rename to build/2.3.6/619.js diff --git a/build/2.3.5/627.js b/build/2.3.6/627.js similarity index 100% rename from build/2.3.5/627.js rename to build/2.3.6/627.js diff --git a/build/2.3.5/672.js b/build/2.3.6/672.js similarity index 100% rename from build/2.3.5/672.js rename to build/2.3.6/672.js diff --git a/build/2.3.5/705.js b/build/2.3.6/705.js similarity index 100% rename from build/2.3.5/705.js rename to build/2.3.6/705.js diff --git a/build/2.3.5/74.js b/build/2.3.6/74.js similarity index 100% rename from build/2.3.5/74.js rename to build/2.3.6/74.js diff --git a/build/2.3.5/761.js b/build/2.3.6/761.js similarity index 100% rename from build/2.3.5/761.js rename to build/2.3.6/761.js diff --git a/build/2.3.5/796.js b/build/2.3.6/796.js similarity index 100% rename from build/2.3.5/796.js rename to build/2.3.6/796.js diff --git a/build/2.3.5/803.js b/build/2.3.6/803.js similarity index 100% rename from build/2.3.5/803.js rename to build/2.3.6/803.js diff --git a/build/2.3.5/859.js b/build/2.3.6/859.js similarity index 100% rename from build/2.3.5/859.js rename to build/2.3.6/859.js diff --git a/build/2.3.5/866.js b/build/2.3.6/866.js similarity index 100% rename from build/2.3.5/866.js rename to build/2.3.6/866.js diff --git a/build/2.3.5/871.js b/build/2.3.6/871.js similarity index 100% rename from build/2.3.5/871.js rename to build/2.3.6/871.js diff --git a/build/2.3.5/910.js b/build/2.3.6/910.js similarity index 100% rename from build/2.3.5/910.js rename to build/2.3.6/910.js diff --git a/build/2.3.5/97.js b/build/2.3.6/97.js similarity index 100% rename from build/2.3.5/97.js rename to build/2.3.6/97.js diff --git a/build/2.3.5/971.js b/build/2.3.6/971.js similarity index 100% rename from build/2.3.5/971.js rename to build/2.3.6/971.js diff --git a/build/2.3.5/978.js b/build/2.3.6/978.js similarity index 100% rename from build/2.3.5/978.js rename to build/2.3.6/978.js diff --git a/build/2.3.5/993.js b/build/2.3.6/993.js similarity index 100% rename from build/2.3.5/993.js rename to build/2.3.6/993.js diff --git a/build/2.3.5/994.js b/build/2.3.6/994.js similarity index 100% rename from build/2.3.5/994.js rename to build/2.3.6/994.js diff --git a/build/2.3.5/996.js b/build/2.3.6/996.js similarity index 100% rename from build/2.3.5/996.js rename to build/2.3.6/996.js diff --git a/build/2.3.5/images/ai_bg.55900f2d.png b/build/2.3.6/images/ai_bg.55900f2d.png similarity index 100% rename from build/2.3.5/images/ai_bg.55900f2d.png rename to build/2.3.6/images/ai_bg.55900f2d.png diff --git a/build/2.3.5/images/ai_bg_low.d8292556.png b/build/2.3.6/images/ai_bg_low.d8292556.png similarity index 100% rename from build/2.3.5/images/ai_bg_low.d8292556.png rename to build/2.3.6/images/ai_bg_low.d8292556.png diff --git a/build/2.3.5/images/bluesky.733ebcbf.png b/build/2.3.6/images/bluesky.733ebcbf.png similarity index 100% rename from build/2.3.5/images/bluesky.733ebcbf.png rename to build/2.3.6/images/bluesky.733ebcbf.png diff --git a/build/2.3.5/images/content.fb050ea1.png b/build/2.3.6/images/content.fb050ea1.png similarity index 100% rename from build/2.3.5/images/content.fb050ea1.png rename to build/2.3.6/images/content.fb050ea1.png diff --git a/build/2.3.5/images/design.cc6a697f.png b/build/2.3.6/images/design.cc6a697f.png similarity index 100% rename from build/2.3.5/images/design.cc6a697f.png rename to build/2.3.6/images/design.cc6a697f.png diff --git a/build/2.3.5/images/features.593fb09c.png b/build/2.3.6/images/features.593fb09c.png similarity index 100% rename from build/2.3.5/images/features.593fb09c.png rename to build/2.3.6/images/features.593fb09c.png diff --git a/build/2.3.5/images/full-service.7f58f410.png b/build/2.3.6/images/full-service.7f58f410.png similarity index 100% rename from build/2.3.5/images/full-service.7f58f410.png rename to build/2.3.6/images/full-service.7f58f410.png diff --git a/build/2.3.5/images/full-service.adb3abd6.png b/build/2.3.6/images/full-service.adb3abd6.png similarity index 100% rename from build/2.3.5/images/full-service.adb3abd6.png rename to build/2.3.6/images/full-service.adb3abd6.png diff --git a/build/2.3.5/images/help.19cc7e75.png b/build/2.3.6/images/help.19cc7e75.png similarity index 100% rename from build/2.3.5/images/help.19cc7e75.png rename to build/2.3.6/images/help.19cc7e75.png diff --git a/build/2.3.5/images/step-interstitial.00b15f9e.png b/build/2.3.6/images/step-interstitial.00b15f9e.png similarity index 100% rename from build/2.3.5/images/step-interstitial.00b15f9e.png rename to build/2.3.6/images/step-interstitial.00b15f9e.png diff --git a/build/2.3.5/images/toggle-light-mode.8d7afd07.png b/build/2.3.6/images/toggle-light-mode.8d7afd07.png similarity index 100% rename from build/2.3.5/images/toggle-light-mode.8d7afd07.png rename to build/2.3.6/images/toggle-light-mode.8d7afd07.png diff --git a/build/2.3.5/images/wp-admin.2908b886.png b/build/2.3.6/images/wp-admin.2908b886.png similarity index 100% rename from build/2.3.5/images/wp-admin.2908b886.png rename to build/2.3.6/images/wp-admin.2908b886.png diff --git a/build/2.3.5/images/wp-admin.6c8af0b4.png b/build/2.3.6/images/wp-admin.6c8af0b4.png similarity index 100% rename from build/2.3.5/images/wp-admin.6c8af0b4.png rename to build/2.3.6/images/wp-admin.6c8af0b4.png diff --git a/build/2.3.5/images/wp-admin.d8650899.png b/build/2.3.6/images/wp-admin.d8650899.png similarity index 100% rename from build/2.3.5/images/wp-admin.d8650899.png rename to build/2.3.6/images/wp-admin.d8650899.png diff --git a/build/2.3.5/onboarding.asset.php b/build/2.3.6/onboarding.asset.php similarity index 80% rename from build/2.3.5/onboarding.asset.php rename to build/2.3.6/onboarding.asset.php index e285ac48e..1a1f5a8f6 100644 --- a/build/2.3.5/onboarding.asset.php +++ b/build/2.3.6/onboarding.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => '8e6db5a85dc264da3cf3'); + array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => 'd5c9f47905a76933aaef'); diff --git a/build/2.3.5/onboarding.css b/build/2.3.6/onboarding.css similarity index 100% rename from build/2.3.5/onboarding.css rename to build/2.3.6/onboarding.css diff --git a/build/2.3.5/onboarding.js b/build/2.3.6/onboarding.js similarity index 99% rename from build/2.3.5/onboarding.js rename to build/2.3.6/onboarding.js index 62b9f1f9c..7ea9ee4be 100644 --- a/build/2.3.5/onboarding.js +++ b/build/2.3.6/onboarding.js @@ -56,4 +56,4 @@ footer:(0,p.__)("Footer","wp-module-onboarding"),...h};return(0,r.createElement) (0,c.__)("WordPress is free %s software","wp-module-onboarding"),(0,l.P)("website")),description:(0,c.sprintf)(/* translators: 1: website or store 2: website or store */ /* translators: 1: website or store 2: website or store */ (0,c.__)("When you set up this new WordPress %1$s, you’re joining millions of website owners who publish their %2$s using the free, community-built software project we’re proud to support.","wp-module-onboarding"),(0,l.P)("website"),(0,l.P)("website"),(0,l.P)("website"))},{heading:(0,c.sprintf)(/* translators: 1: Brand 2: website or store */ /* translators: 1: Brand 2: website or store */ (0,c.__)("%1$s is your %2$s partner","wp-module-onboarding"),e,(0,l.P)("website")),description:(0,c.sprintf)(/* translators: 1: website or store 2: Brand 3. site or store */ /* translators: 1: website or store 2: Brand 3. site or store */ -(0,c.__)("A WordPress %1$s hosted by %2$s has tons of unique and proven solutions to help you get farther, faster with your WordPress. We put our expertise, partnerships and solutions to work on your %3$s.","wp-module-onboarding"),(0,l.P)("website"),e,(0,l.P)("site"))}]},help:{experts:{text:(0,c.__)("1-1 Expert Solutions & Coaching","wp-module-onboarding"),link:t},fullService:{text:(0,c.__)("Hire Our Full-Service Creative Team","wp-module-onboarding"),link:i},support:{text:(0,c.__)("Technical Support","wp-module-onboarding"),link:n}}}))(e,t,n,i),b=_?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?v.information.headingWithDescriptions.filter(((e,t)=>_?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes(t))):v.information.headingWithDescriptions;return(0,a.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-welcome"},(0,a.createElement)(f,{heading:v.introduction.heading,subheading:v.introduction.subheading,icon:v.introduction.icon}),!1!==_?.views?.sidebar?.illustration?.shown&&(0,a.createElement)(u,{cssIcon:v.illustration.icon}),(0,a.createElement)(d,{headingWithDescriptions:b}),(0,a.createElement)(p,null,!1!==_?.views?.sidebar?.experts?.shown&&v.help.experts.link&&(0,a.createElement)(h,{text:v.help.experts.text,onClick:()=>window.open(v.help.experts.link,"_blank")}),!1!==_?.views?.sidebar?.fullService?.shown&&v.help.fullService.link&&(0,a.createElement)(m,{text:v.help.fullService.text,onClick:()=>window.open(v.help.fullService.link,"_blank")}),(0,a.createElement)(g,{text:v.help.support.text,link:v.help.support.link})))}]}},data:{tooltipText:(0,c.__)("Welcome","wp-module-onboarding")}})},4487:(e,t,n)=>{"use strict";n.d(t,{b:()=>V});var r=n(5822),i=n(8468),a=n(7723),o=n(2502),s=n(1609),c=n(6427),l=n(7677),u=n(6655),d=n(7143),p=n(9491),h=n(6087),m=n(8969),g=n(7675),f=n(6079),_=n(6478),v=n(7708),b=n(6786),w=n(5573);const y=(0,s.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(w.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var S=n(3013),E=n(8087);const k=(0,i.memo)((({onRegenerate:e,onCustomize:t,onRenameItemSelect:n,onViewAll:r,isLargeViewport:i,onToggle:o})=>{const u=e=>()=>{e(),o()};return(0,s.createElement)(c.MenuGroup,{className:"nfd-onboarding-header__version_dropdown-menu"},!i&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.MenuItem,{onClick:u(e)},(0,s.createElement)(l.A,{icon:b.A}),(0,a.__)("Regenerate","wp-module-onboarding")),(0,s.createElement)(c.MenuItem,{onClick:u(t)},(0,s.createElement)("div",{className:"nfd-onboarding-header__version_dropdown-menu__customize-button__icon"}),(0,a.__)("Customize","wp-module-onboarding"))),(0,s.createElement)(c.MenuItem,{onClick:u(n)},(0,a.__)("Rename","wp-module-onboarding")),(0,s.createElement)(c.MenuItem,{onClick:u(r)},(0,a.__)("View All","wp-module-onboarding")))})),T=(0,i.memo)((({isFavorite:e,homepageTitle:t,onFavorite:n,onRename:r,inputRef:o,onRegenerate:u,onCustomize:d,onRenameItemSelect:p,onViewAll:h,isLargeViewport:m,isInputEnabled:g,enableInput:f})=>{const[_,v]=(0,i.useState)(t),b=()=>{v(o.current.value)},w=()=>{const e=o.current.value.trim();e&&e!==t&&r(e),f(!1)};return(0,i.useEffect)((()=>{g&&o.current?.focus()}),[g,o]),(0,i.useEffect)((()=>{v(t)}),[t]),(0,s.createElement)(c.Dropdown,{renderToggle:({isOpen:t,onToggle:r})=>(0,s.createElement)("div",{role:"button",tabIndex:"0","aria-expanded":t,"aria-label":(0,a.__)("Regenerate","wp-module-onboarding"),className:"navigation-buttons-editor"},(0,s.createElement)("div",{className:"navigation-buttons-editor__favorite",role:"button",tabIndex:0,onKeyDown:n,onClick:n},e?(0,s.createElement)(E.h,null):(0,s.createElement)(S.h,null)),(0,s.createElement)("input",{ref:o,disabled:!g,className:"nfd-onboarding-header__center-input",type:"text",value:_,onBlur:w,onChange:b}),(0,s.createElement)(l.A,{className:"nfd-onboarding-header__center-dropdown_icon",icon:y,onClick:r,onKeyDown:e=>{"Enter"===e.key&&r()}})),renderContent:({onToggle:e})=>(0,s.createElement)(k,{onRegenerate:u,onCustomize:d,onRenameItemSelect:p,onViewAll:h,isLargeViewport:m,onToggle:e})})})),x=({handleFavorite:e,handleRename:t,handleViewAll:n,handleRegenerate:r,handleCustomize:a,homepageTitle:o,isFavorite:c})=>{const l=(0,p.useViewportMatch)("medium"),u=(0,i.useRef)(null),[d,h]=(0,i.useState)(!1),m=e=>{h(e),e&&u.current?.focus()},g=()=>{if("function"==typeof g)return e()};return(0,s.createElement)("div",{className:"nfd-onboarding-header__step-navigation"},(0,s.createElement)(T,{isFavorite:c,homepageTitle:o,onFavorite:g,onRename:e=>{"function"==typeof t&&t(e)},inputRef:u,onRegenerate:()=>{if("function"==typeof r)return r()},onCustomize:()=>{if("function"==typeof a)return a()},onRenameItemSelect:()=>{m(!0)},onViewAll:()=>{if("function"==typeof n)return n()},isLargeViewport:l,isInputEnabled:d,enableInput:m}))};var C=n(7517),N=n(7044),A=n(1455),I=n.n(A),D=n(8674),O=n(5435),P=n(1056),M=n(2202),R=n(8744);const $=(0,i.lazy)((()=>n.e(396).then(n.bind(n,9396)))),L=(0,i.lazy)((()=>n.e(100).then(n.bind(n,1100)))),z=(0,s.forwardRef)(((e,t)=>{const[n,r]=(0,i.useState)(!0),{updateCustomizeSidebarData:o}=(0,d.useDispatch)(g.M),c=(0,s.createRef)(),l=(0,s.createRef)(),u=()=>{l.current.resetToDefaultFonts(),c.current.resetToDefaultColors()};if((0,s.useImperativeHandle)(t,(()=>({resetCustomizationCallback:u}))),(0,i.useEffect)((()=>{(async()=>{const e=await(0,v.gK)();o(e?.body),r(!1)})()}),[]),n)return(0,s.createElement)("div",null,"...");const p={introduction:{heading:(0,a.__)("Colors","wp-module-onboarding")}};return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,s.createElement)(L,{heading:p.introduction.heading,ref:c}),(0,s.createElement)($,{ref:l}))})),F=(0,i.lazy)((()=>n.e(426).then(n.bind(n,426)))),V=new o.p({slug:"sitegen-editor",path:"/sitegen/step/editor",title:(0,a.__)("Page Layouts","wp-module-onboarding"),Component:F,icon:r.A,sidebars:{Customize:{SidebarComponents:[z]}},header:()=>{const[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(!1),[o,b]=(0,i.useState)(!1),[w,y]=(0,i.useState)(!1),S=(0,p.useViewportMatch)("medium"),{setCurrentOnboardingData:E,setSidebarActiveView:k,setIsSidebarOpened:T,setInteractionDisabled:A}=(0,d.useDispatch)(g.M),{currentData:$,sideBarView:L,isSidebarOpened:z}=(0,d.useSelect)((e=>({currentData:e(g.M).getCurrentOnboardingData(),sideBarView:e(g.M).getSidebarView(),isSidebarOpened:e(g.M).isSidebarOpened()}))),F=async()=>{if(n)return;if(b(!0),""===$.sitegen.siteDetails?.prompt)return void b(!1);const t=$.sitegen.homepages.data;if(!(e.slug in t))return void b(!1);const{slug:r,title:i,color:a,isFavorite:o}=e||{},s=await(0,v.HA)($.sitegen.siteDetails.prompt,r,a,o);if(s.error)return void b(!1);const c=s.body;if(o){const e=`${i} (Copy)`;e!==c?.title&&(c.title=e)}t[c.slug]=c,$.sitegen.homepages.data=t,$.sitegen.homepages.active=c,E($),b(!1),(0,P.v)(new P.iC(M.Hf,r,{source:R.d0,placement:"editor_toolbar"}))},V=async()=>{const e="Customize"===L?!z:z;k("Customize"),T(e),!0===e&&(0,P.v)(new P.iC(M.cB,"customize"));const t=await(0,C.w6)();y(t.body)},H=async()=>{r(!0);const e=$.sitegen.homepages.data,t=$.sitegen.homepages.active,n=((e,t)=>(0,s.createElement)("div",{className:"nfd-onboarding-screenshot-container__pages"},Object.keys(e).map(((n,r)=>{const i=e[n];if(!i.isFavorite&&n!==t.slug)return!1;const a=(0,h.cloneDeep)(w[0]);a.settings.color.palette=i.color.palette;let o="";return["header","content","footer"].forEach((e=>{e in i&&(o+=i[e])})),(0,s.createElement)(N.pA,{key:r,blockGrammer:o,previewSettings:a,slug:n,tabIndex:"0",role:"button"})}))))(e,t),a=document.querySelector(".nfd-onboarding-screenshot-container");if(a){(0,i.render)(n,a);const r=e=>new Promise((t=>setTimeout(t,e)));await r(5e3);const o=await Promise.all(Object.keys(e).map((n=>!(!e[n].isFavorite&&n!==t.slug)&&async function(e){return await(0,O.h)(I()({url:(0,D.fG)("block-render/screenshot"),method:"POST",data:{width:1200,height:900,content:e}}).then())}(a.querySelector(`div > div[data-slug="nfd-onboarding-block-preview-${n}"] > .block-editor-block-preview__container > div > iframe`).contentWindow.document.querySelector(".block-editor-block-preview__content-iframe").innerHTML))));Object.keys(e).forEach(((n,r)=>{o[r]?.body?.screenshot&&(e[n].screenshot=o[r].body.screenshot,n===t.slug&&(t.screenshot=o[r].body.screenshot))})),$.sitegen.homepages.data=e,$.sitegen.homepages.active=t,E($)}await(0,f.V1)($),await(0,f.IS)(),(0,P.SV)(new P.iC(M.Vg,void 0,{source:R.d0})),window.location.replace(m.R0)};return(0,i.useEffect)((()=>{V()}),[]),(0,i.useEffect)((()=>{$?.sitegen?.homepages?.active&&t($.sitegen.homepages.active)}),[$]),(0,i.useEffect)((()=>(A(!(!n&&!o)),()=>{A(!1)})),[n,o]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.Fill,{name:`${m.Ix}/${m.nK}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start"},S&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__start__regenerate ${n&&"nfd-onboarding-header--sitegen__editor__start__regenerate__disabled"}`,role:"button",tabIndex:0,onClick:F,onKeyDown:F},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__text"},(0,a.__)("Regenerate","wp-module-onboarding")),o&&(0,s.createElement)(_.A,{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__spinner"})))),(0,s.createElement)(c.Fill,{name:`${m.Ix}/${m.me}`},e&&(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__center"},(0,s.createElement)(x,{handleFavorite:()=>{if(n)return;const t=$.sitegen.homepages.data;if(!(e.slug in t))return;const r=!e.isFavorite;e.isFavorite=r,$.sitegen.homepages.data[e.slug]=e,$.sitegen.homepages.active=e,E($),(0,P.v)(new P.iC(M.Nz,e.slug,{favorite:r,placement:"editor_toolbar",source:R.d0}))},handleViewAll:()=>{z&&L===m.V_||(k(m.V_),T(!0),(0,P.v)(new P.iC(M.cB,"all_versions",{source:R.d0})))},handleCustomize:V,handleRegenerate:F,handleRename:t=>{e.title=t,$.sitegen.homepages.data[e.slug]=e,$.sitegen.homepages.active=e,E($),(0,P.v)(new P.iC(M.TH,e.slug,{name:t,source:R.d0}))},homepageTitle:e.title,isFavorite:e.isFavorite}))),(0,s.createElement)(c.Fill,{name:`${m.Ix}/${m.KZ}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end"},S&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__end__customize-button ${n&&"nfd-onboarding-header--sitegen__editor__end__customize-button__disabled"}`,onClick:V,onKeyDown:V,role:"presentation"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__text"},(0,a.__)("Customize","wp-module-onboarding"))),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button__text",onClick:H,role:"button",tabIndex:0,onKeyDown:H},S?(0,a.__)("Save & Continue","wp-module-onboarding"):(0,a.__)("Next","wp-module-onboarding")),n?(0,s.createElement)(_.A,{className:"nfd-onboarding-header--sitegen__editor__end__save-button__spinner"}):(0,s.createElement)(l.A,{icon:u.A,className:"nfd-onboarding-header--sitegen__editor__end__save-button__icon"})))))}})},3731:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(218).then(n.bind(n,1218)))),c=new o.p({slug:"sitegen-migration",path:"/sitegen/step/migration",title:(0,a.__)("Migration","wp-module-onboarding"),Component:s,icon:r.A,drawerNavigation:!1,sidebars:{LearnMore:{SidebarComponents:[]}}})},4635:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(619).then(n.bind(n,619)))),c=new o.p({slug:"sitegen-preview",path:"/sitegen/step/preview",title:(0,a.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},4805:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(996).then(n.bind(n,9996)))),c=new o.p({slug:"sitegen-site-logo",path:"/sitegen/step/site-logo",title:(0,a.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},9034:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(866).then(n.bind(n,3866)))),c=new o.p({slug:"fork",path:"/wp-setup/step/fork",title:(0,a.__)("The Fork","wp-module-onboarding"),Component:s,icon:r.A,drawerNavigation:!1,sidebars:{LearnMore:{SidebarComponents:[]}}})},7675:(e,t,n)=>{"use strict";n.d(t,{M:()=>ht});var r={};n.r(r),n.d(r,{dequeueRequest:()=>M,enqueueRequest:()=>P,flushQueue:()=>R,resetNavError:()=>z,setActiveChapter:()=>p,setActiveFlow:()=>u,setActiveStep:()=>d,setContinueWithoutAi:()=>W,setCurrentOnboardingData:()=>m,setDrawerActiveView:()=>s,setFooterActiveView:()=>x,setHeaderActiveView:()=>E,setHeaderMenuData:()=>O,setHideFooterNav:()=>T,setInstaWpMigrationUrl:()=>h,setInteractionDisabled:()=>U,setIsDrawerOpened:()=>c,setIsDrawerSuppressed:()=>l,setIsFooterNavAllowed:()=>k,setIsGeneratingHomepages:()=>F,setIsHeaderEnabled:()=>S,setIsHeaderNavigationEnabled:()=>y,setIsSidebarOpened:()=>b,setNavErrorContinuePath:()=>L,setOnboardingSocialData:()=>g,setRuntime:()=>o,setSidebarActiveView:()=>w,showNavErrorDialog:()=>$,updateAllSteps:()=>A,updateCustomizeSidebarData:()=>V,updateDesignRoutes:()=>D,updateInitialize:()=>v,updatePreviewSettings:()=>C,updateRoutes:()=>N,updateSettings:()=>f,updateSiteGenErrorStatus:()=>H,updateThemeStatus:()=>_,updateTopSteps:()=>I});var i={};n.r(i),n.d(i,{canMigrateSite:()=>Le,getActiveDrawerView:()=>G,getAllSteps:()=>pe,getCurrentChapter:()=>we,getCurrentOnboardingData:()=>ce,getCurrentStep:()=>ve,getCurrentStepPath:()=>ge,getCurrentUserDetails:()=>je,getCustomizeSidebarData:()=>qe,getDesignRoutes:()=>me,getExperienceLevel:()=>We,getExpertsUrl:()=>Pe,getFirstStep:()=>fe,getFooterActiveView:()=>ee,getFooters:()=>Z,getHeaderActiveView:()=>X,getHeaderMenuData:()=>Oe,getHeaders:()=>J,getHideFooterNav:()=>ne,getHireExpertsUrl:()=>se,getInitialize:()=>Ie,getInteractionDisabled:()=>Ke,getIsFooterNavAllowed:()=>te,getIsFreshInstallation:()=>Qe,getLastStep:()=>_e,getMigrationUrl:()=>$e,getNavErrorPath:()=>Ue,getNewfoldBrand:()=>re,getNewfoldBrandConfig:()=>ae,getNewfoldBrandName:()=>ie,getNewfoldBrandUrl:()=>oe,getNextStep:()=>Ee,getOnboardingFlow:()=>ue,getOnboardingSocialData:()=>le,getPluginInstallHash:()=>ze,getPreviewSettings:()=>Ce,getPreviousStep:()=>Se,getQueuePeek:()=>Fe,getRoutes:()=>de,getSettings:()=>Ne,getShowErrorDialog:()=>He,getSidebarView:()=>Te,getSidebars:()=>xe,getSiteGenErrorStatus:()=>Ye,getStepFromPath:()=>ye,getStepPreviewData:()=>De,getTechSupportUrl:()=>Re,getThemeStatus:()=>Ae,getTopPriority:()=>Be,getTopSteps:()=>he,getfullServiceCreativeTeamUrl:()=>Me,getinstaWpMigrationUrl:()=>be,isDrawerOpened:()=>q,isDrawerSuppressed:()=>Y,isGeneratingHomepages:()=>Ge,isHeaderEnabled:()=>Q,isHeaderNavigationEnabled:()=>K,isQueueEmpty:()=>Ve,isSidebarOpened:()=>ke});var a=n(8744);function o(e){var t;return window.nfdOnboarding={buildUrl:e.buildUrl,siteUrl:e.siteUrl,migrated:!0,currentFlow:null!==(t=e.currentFlow)&&void 0!==t?t:a.rA},{type:"SET_RUNTIME",runtime:e}}function s(e){return{type:"SET_DRAWER_ACTIVE_VIEW",view:e}}function c(e){return{type:"SET_DRAWER_OPENED",isOpen:e}}function l(e){return{type:"SET_DRAWER_SUPPRESSED",isSuppressed:e}}function u(e){return{type:"SET_ACTIVE_FLOW",flow:e}}function d(e){return{type:"SET_ACTIVE_STEP",path:e=e.replace(/\/$/,"")}}function p(e){return{type:"SET_ACTIVE_CHAPTER",chapter:e}}function h(e){return{type:"SET_INSTAWP_MIGRATION_URL",instaWpMigrationUrl:e}}function m(e){return{type:"SET_CURRENT_DATA",flowData:e}}function g(e){return{type:"SET_SOCIAL_DATA",socialData:e}}function f(e){return{type:"UPDATE_SETTINGS",settings:e}}function _(e){return{type:"UPDATE_THEME_STATUS",themeStatus:e}}function v(e){return{type:"UPDATE_INITIALIZE",initialize:e}}function b(e){return{type:"SET_SIDEBAR_OPENED",isOpen:e}}function w(e){return{type:"SET_SIDEBAR_ACTIVE_VIEW",view:e}}function y(e){return{type:"SET_HEADER_NAVIGATION_ENABLED",isNavigationEnabled:e}}function S(e){return{type:"SET_HEADER_ENABLED",isEnabled:e}}function E(e){return{type:"SET_HEADER_ACTIVE_VIEW",view:e}}function k(e){return{type:"SET_IS_FOOTER_NAV_ALLOWED",isNavAllowed:e}}function T(e){return{type:"SET_HIDE_FOOTER_NAV",hideFooterNav:e}}function x(e){return{type:"SET_FOOTER_ACTIVE_VIEW",view:e}}function C(e){return{type:"SET_PREVIEW_SETTINGS",previewSettings:e}}function N(e){return{type:"UPDATE_ROUTES",routes:e}}function A(e){return{type:"UPDATE_ALL_STEPS",allSteps:e}}function I(e){return{type:"UPDATE_TOP_STEPS",topSteps:e}}function D(e){return{type:"UPDATE_DESIGN_ROUTES",designRoutes:e}}function O(e){return{type:"UPDATE_HEADER_MENU_DATA",menu:e}}function P(e,t){return{type:"ENQUEUE_REQUEST",id:e,request:t}}function M(){return{type:"DEQUEUE_REQUEST"}}function R(){return{type:"FLUSH_QUEUE"}}function $(e){return{type:"SHOW_NAV_ERROR_DIALOG",showDialog:e}}function L(e){return{type:"SET_NAV_ERROR_CONTINUE_PATH",continuePath:e}}function z(){return{type:"RESET_NAV_ERROR"}}const F=e=>({type:"SET_IS_GENERATING_HOMEPAGES",isGeneratingHomepages:e});function V(e){return{type:"CUSTOMIZE_SIDEBAR_DATA",customizeSidebarData:e}}function H(e){return{type:"SET_SITEGEN_AI_ERROR_STATUS",siteGenErrorStatus:e}}function U(e){return{type:"SET_INTERACTION_DISABLED",interactionDisabled:e}}function W(e){return{type:"SET_FLOW_WITHOUT_AI",continueWithoutAi:e}}var B=n(6087),j=n(3832);function G(e){return e.drawer.view}function q(e){return e.drawer.isOpen}function Y(e){return e.drawer.isSuppressed}function K(e){return e.header.isNavigationEnabled}function Q(e){return e.header.isEnabled}function J(e){return e.header.headers}function Z(e){return e.footer.footers}function X(e){return e.header.view}function ee(e){return e.footer.view}function te(e){return e.footer.isNavAllowed}function ne(e){return e.footer.hideFooterNav}function re(e){return e.runtime.currentBrand.brand}function ie(e){return e.runtime.currentBrand.name}function ae(e){return e.runtime.currentBrand.config}function oe(e){return e.runtime.currentBrand.url}function se(e){const t=e.runtime.currentBrand.hireExpertsInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParameters)+(t?.fragment||"")}function ce(e){return e.data.flowData}function le(e){return e.data.socialData}function ue(e){var t;return null!==(t=e.runtime.currentFlow)&&void 0!==t?t:a.rA}function de(e){return e.flow.steps.routes}function pe(e){return e.flow.steps.allSteps}function he(e){return e.flow.steps.topSteps}function me(e){return e.flow.steps.designRoutes}function ge(e){return e.flow.steps.currentStep}function fe(e){return e.flow.steps.allSteps[0]}function _e(e){return e.flow.steps.allSteps[e.flow.steps.allSteps.length-1]}function ve(e){return(0,B.filter)(e.flow.steps.allSteps,["path",e.flow.steps.currentStep])[0]}function be(e){return e.runtime.currentBrand.migrationInfo.instaWpMigrationUrl}function we(e){return e.flow.chapter}function ye(e,t){return(0,B.filter)(e.flow.steps.allSteps,["path",t])[0]}function Se(e){const t=(0,B.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return 0===t?null:-1!==t&&e.flow.steps.allSteps[t-1]}function Ee(e){const t=e.flow.steps.allSteps.length-1,n=(0,B.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return t===n?null:-1!==n&&e.flow.steps.allSteps[n+1]}function ke(e){return e.sidebar.isOpen}function Te(e){return e.sidebar.view}function xe(e){return(0,B.filter)(e.sidebar.sidebars,["enabled",!0])}function Ce(e){return e.runtime.previewSettings.settings}function Ne(e){return e.settings}function Ae(e){return e.settings.themeStatus}function Ie(e){return e.settings.initialize}function De(e){return e.runtime.previewSettings.stepPreviewData}function Oe(e){return e.header.menu}function Pe(e){const t=e.runtime.currentBrand.expertsInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Me(e){const t=e.runtime.currentBrand.fullServiceCreativeTeamInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Re(e){const t=e.runtime.currentBrand.techSupportInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function $e(e){const t=e.runtime.currentBrand.migrationInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Le(e){const t=e.runtime.currentBrand.config;return t?.canMigrateSite}function ze(e){return e.runtime.pluginInstallHash}function Fe(e){var t;return null!==(t=e?.queue[0])&&void 0!==t?t:null}function Ve(e){return 0===e?.queue?.length}function He(e){return e.flow.steps.error.showDialog}function Ue(e){return e.flow.steps.error.continuePath}function We(e){return e.data.flowData.data.wpComfortLevel}function Be(e){return e.data.flowData.data.topPriority.priority1}function je(e){return e.runtime.currentUserDetails}const Ge=e=>e.data.isGeneratingHomepages;function qe(e){return e.runtime.customizeSidebarData}function Ye(e){return e.data.flowData.sitegen.siteGenErrorMeta.status}function Ke(e){return e.flow.interactionDisabled}function Qe(e){return e.runtime.isFreshInstallation}var Je=n(7143),Ze=n(8969),Xe=n(9772),et=n(8468);const tt=(0,et.lazy)((()=>n.e(202).then(n.bind(n,4202)))),nt=(0,et.lazy)((()=>n.e(356).then(n.bind(n,2356)))),rt=(0,et.lazy)((()=>n.e(803).then(n.bind(n,8803)))),it=(0,et.lazy)((()=>n.e(910).then(n.bind(n,3910)))),at=(0,et.lazy)((()=>n.e(40).then(n.bind(n,5040)))),ot=[{id:Ze.Qe,menu:tt,sidebar:nt,enabled:!0},{id:Ze.V_,sidebar:rt,enabled:!0},{id:Ze.jK,menu:it,sidebar:at,enabled:!0}],st=(0,et.lazy)((()=>n.e(403).then(n.bind(n,1403)))),ct=(0,et.lazy)((()=>n.e(796).then(n.bind(n,5796)))),lt=[{id:Ze.Ix,header:st,enabled:!0},{id:Ze.Mw,header:ct,enabled:!0}],ut=(0,et.lazy)((()=>n.e(971).then(n.bind(n,1971)))),dt=[{id:Ze.Sr,footer:ut,enabled:!0}],pt={reducer:(0,Je.combineReducers)({drawer:function(e={isOpen:!1,isSuppressed:!1,view:Ze.vO},t){switch(t.type){case"SET_DRAWER_OPENED":return{...e,isOpen:t.isOpen};case"SET_DRAWER_ACTIVE_VIEW":return{...e,view:t.view};case"SET_DRAWER_SUPPRESSED":return{...e,isSuppressed:t.isSuppressed,isOpen:!t.isSuppressed&&e.isOpen}}return e},runtime:function(e={},t){switch(t.type){case"SET_RUNTIME":return{...e,...t.runtime};case"SET_PREVIEW_SETTINGS":return{...e,previewSettings:{...e.previewSettings,settings:t.previewSettings}};case"CUSTOMIZE_SIDEBAR_DATA":return{...e,customizeSidebarData:t.customizeSidebarData};case"SET_INSTAWP_MIGRATION_URL":return{...e,currentBrand:{...e.currentBrand,migrationInfo:{...e.currentBrand.migrationInfo,instaWpMigrationUrl:t.instaWpMigrationUrl}}}}return e},data:function(e={},t){switch(t.type){case"SET_CURRENT_DATA":return{...e,flowData:{...t.flowData}};case"SET_SOCIAL_DATA":return{...e,socialData:{...t.socialData}};case"SET_SITEGEN_AI_ERROR_STATUS":const n=!e.flowData.sitegen.siteGenErrorMeta.status&&t.siteGenErrorStatus;return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,siteGenErrorMeta:{...e.flowData.sitegen.siteGenErrorMeta,status:t.siteGenErrorStatus,retryCount:!0===n?e.flowData.sitegen.siteGenErrorMeta.retryCount+1:e.flowData.sitegen.siteGenErrorMeta.retryCount}}}};case"SET_IS_GENERATING_HOMEPAGES":return{...e,isGeneratingHomepages:t.isGeneratingHomepages}}return e},settings:function(e={themeStatus:Ze.So,initialize:!1},t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings};case"UPDATE_THEME_STATUS":return{...e,themeStatus:t.themeStatus};case"UPDATE_INITIALIZE":return{...e,initialize:t.initialize}}return e},flow:function(e={flow:a.rA,steps:{routes:Xe.FI,allSteps:Xe.o2,topSteps:Xe.Zq,designRoutes:Xe.Tk,currentStep:"",error:{showDialog:!1,continuePath:""}},chapter:void 0,interactionDisabled:!1},t){switch(t.type){case"SET_ACTIVE_STEP":return{...e,steps:{...e.steps,currentStep:t.path}};case"SET_ACTIVE_FLOW":return{...e,flow:t.flow};case"UPDATE_ROUTES":return{...e,steps:{...e.steps,routes:t.routes}};case"UPDATE_ALL_STEPS":return{...e,steps:{...e.steps,allSteps:t.allSteps}};case"UPDATE_TOP_STEPS":return{...e,steps:{...e.steps,topSteps:t.topSteps}};case"UPDATE_DESIGN_ROUTES":return{...e,steps:{...e.steps,designRoutes:t.designRoutes}};case"SHOW_NAV_ERROR_DIALOG":return{...e,steps:{...e.steps,error:{...e.steps.error,showDialog:t.showDialog}}};case"SET_NAV_ERROR_CONTINUE_PATH":return{...e,steps:{...e.steps,error:{...e.steps.error,continuePath:t.continuePath}}};case"RESET_NAV_ERROR":return{...e,steps:{...e.steps,error:{showDialog:!1,continuePath:""}}};case"SET_ACTIVE_CHAPTER":return{...e,chapter:t.chapter};case"SET_INTERACTION_DISABLED":return{...e,interactionDisabled:t.interactionDisabled};case"SET_FLOW_WITHOUT_AI":return{...e,flow:t.continueWithoutAi}}return e},sidebar:function(e={isOpen:!1,view:"LearnMore",sidebars:ot},t){switch(t.type){case"SET_SIDEBAR_OPENED":return{...e,isOpen:t.isOpen};case"SET_SIDEBAR_ACTIVE_VIEW":return{...e,view:t.view}}return e},header:function(e={isNavigationEnabled:!0,menu:"",isEnabled:!0,headers:lt,view:Ze.Mw},t){switch(t.type){case"SET_HEADER_NAVIGATION_ENABLED":return{...e,isNavigationEnabled:t.isNavigationEnabled};case"SET_HEADER_ENABLED":return{...e,isEnabled:t.isEnabled};case"UPDATE_HEADER_MENU_DATA":return{...e,menu:t.menu};case"SET_HEADER_ACTIVE_VIEW":return{...e,view:t.view}}return e},footer:function(e={footers:dt,isNavAllowed:!0,hideFooterNav:!1,view:Ze.Sr},t){switch(t.type){case"SET_IS_FOOTER_NAV_ALLOWED":return{...e,isNavAllowed:t.isNavAllowed};case"SET_HIDE_FOOTER_NAV":return{...e,hideFooterNav:t.hideFooterNav};case"SET_FOOTER_ACTIVE_VIEW":return{...e,view:t.view}}return e},queue:function(e=[],t){switch(t.type){case"ENQUEUE_REQUEST":return e=e.filter((e=>e[0]!==t.id)),[...e,[t.id,t.request]];case"DEQUEUE_REQUEST":return[...e.slice(1)];case"FLUSH_QUEUE":return(async e=>{const t=e,n=async(e=1)=>{t[0]&&await t[0][1]().then((t=>{t.error&&et.shift())).then(n)};await n()})(e),[]}return e}}),actions:r,selectors:i},ht=(0,Je.createReduxStore)("newfold/onboarding",pt);(0,Je.register)(ht)},2202:(e,t,n)=>{"use strict";n.d(t,{$2:()=>N,$x:()=>A,DN:()=>g,Dl:()=>F,Ep:()=>p,Fi:()=>b,Hf:()=>O,N0:()=>o,Nz:()=>P,Qh:()=>x,Qp:()=>I,TH:()=>M,Vg:()=>i,WN:()=>C,WT:()=>w,Wi:()=>D,XJ:()=>z,Zt:()=>_,aq:()=>l,cB:()=>R,cW:()=>L,ce:()=>h,f2:()=>y,gH:()=>c,hi:()=>d,j7:()=>S,k2:()=>u,o3:()=>f,oA:()=>a,o_:()=>T,p$:()=>r,r2:()=>m,rf:()=>v,uv:()=>$,vO:()=>s,vY:()=>E,wo:()=>k});const r="onboarding_started",i="onboarding_complete",a="pageview",o="onboarding_top_priority_set",s="onboarding_step_skipped",c="primary_type_set",l="secondary_type_set",u="experience_level_set",d="theme_style_selected",p="colors_selected",h="fonts_selected",m="header_selected",g="homepage_layout_selected",f="starter_pages_selected",_="feature_added",v="site_title_set",b="tagline_set",w="logo_added",y="onboarding_exited",S="onboarding_chapter_started",E="onboarding_chapter_complete",k="social_added",T="migration_initiated",x="fork_option_selected",C="site_details_prompt_set",N="social_connected",A="social_connect_skipped",I="logo_skipped",D="homepage_selected",O="homepage_regenerated",P="homepage_favorited",M="homepage_renamed",R="sidebar_opened",$="site_generation_time",L="error_state_triggered",z="wonder_start",F={[o]:"top_priority",[s]:"step",[c]:"primary_type",[l]:"secondary_type",[u]:"experience_level",[d]:"theme_style",[p]:"color_palette",[h]:"font_set",[m]:"header",[g]:"layout",[f]:"pages",[_]:"feature",[v]:"title",[b]:"tagline",[y]:"step",[S]:"chapter",[E]:"chapter",[k]:"platform",[x]:"flow",[C]:"prompt",[N]:"platform",[D]:"version",[O]:"version",[P]:"version",[R]:"type",[M]:"version",[$]:"time",[T]:"path",[L]:"identifier"}},1056:(e,t,n)=>{"use strict";n.d(t,{iC:()=>a,Co:()=>c,SV:()=>s,v:()=>o});var r=n(4371),i=n(2202);class a extends r.c{constructor(e,t,n,r,a=i.XJ){const o=c(e);super(a,e,{label_key:o,[o]:t,...n,page:r||window.location.href},a)}}const o=e=>r.y.track(e),s=e=>r.y.send(e),c=e=>{if(e in i.Dl)return i.Dl[e]}},8674:(e,t,n)=>{"use strict";n.d(t,{EG:()=>a,RE:()=>o,fG:()=>i,zV:()=>s});var r=n(8969);const i=(e,t=!0)=>`${r.Xi}/${e}`+(t&&window.nfdOnboarding?.currentFlow?`&flow=${window.nfdOnboarding.currentFlow}`:""),a=e=>`${r.g5}/${e}`,o=e=>`${r.No}/${e}`,s=e=>`${r.h0}/${e}`},5171:(e,t,n)=>{"use strict";n.d(t,{Im:()=>o,JK:()=>s,mj:()=>c});var r=n(1455),i=n.n(r),a=n(8674);const o=e=>0===Object.keys(e).length;async function s(){return i()({url:(0,a.zV)("settings")})}async function c(e){return i()({url:(0,a.zV)("settings"),method:"POST",data:e})}},6079:(e,t,n)=>{"use strict";n.d(t,{HR:()=>d,IS:()=>u,V1:()=>l,lv:()=>c});var r=n(5435),i=n(8674),a=n(1455),o=n.n(a);let s;async function c(){return await(0,r.h)(o()({url:(0,i.fG)("flow")}).then())}async function l(e){s&&s.abort("New setFlow request placed!"),s=new AbortController;const{signal:t}=s;return await(0,r.h)(o()({url:(0,i.fG)("flow"),signal:t,method:"POST",data:e}).then())}async function u(){return await(0,r.h)(o()({url:(0,i.fG)("flow/complete"),method:"POST"}).then())}async function d(e){return await(0,r.h)(o()({url:(0,i.fG)("flow/switch"),method:"POST",data:{flow:e}}).then())}},8520:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(5435),i=n(8674),a=n(1455),o=n.n(a);async function s(e=!1,t=!1){return await(0,r.h)(o()({url:(0,i.fG)("patterns"+(e?`&step=${e}&squash=${t}`:""))}).then())}},8559:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>l,YR:()=>d,ze:()=>u});var r=n(1455),i=n.n(r),a=n(8674),o=n(3272),s=n(5435),c=n(8969);const l=e=>{if((0,o.qn)(c.z3))return!0;i()({url:(0,a.fG)("plugins/initialize"),method:"POST",headers:{"X-NFD-INSTALLER":e||window.nfdOnboarding.pluginInstallHash}}).catch((e=>{console.error(e)}))},u=async()=>await(0,s.h)(i()({url:(0,a.fG)("plugins/site-features")}));async function d(){return await(0,s.h)(i()({url:(0,a.fG)("plugins/initialize/activate"),method:"POST"}).then())}},5435:(e,t,n)=>{"use strict";async function r(e){const t={body:null,error:null};try{t.body=await e}catch(e){t.error=e}return t}n.d(t,{h:()=>r})},2014:(e,t,n)=>{"use strict";n.d(t,{mt:()=>c,n_:()=>u,oc:()=>l});var r=n(1455),i=n.n(r),a=n(5435),o=n(8969),s=n(8674);async function c(){return await(0,a.h)(i()({url:(0,s.fG)("settings")}).then())}async function l(e){return await(0,a.h)(i()({url:(0,s.fG)("settings"),method:"POST",data:e}).then())}const u=(e=0)=>!(e>=o.lp)&&i()({url:(0,s.fG)("settings/initialize"),method:"POST"}).catch((()=>{u(e+=1)}))},7708:(e,t,n)=>{"use strict";n.d(t,{HA:()=>u,OD:()=>h,c7:()=>l,gK:()=>d,iQ:()=>c,kA:()=>s,rZ:()=>p});var r=n(1455),i=n.n(r),a=n(5435),o=n(8674);async function s(){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/identifiers")}).then())}async function c(e,t,n=!0){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/generate"),method:"POST",data:{site_info:e,identifier:t,skip_cache:n}}))}async function l(e){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/homepages"),method:"POST",data:{site_description:e}}).then())}async function u(e,t,n,r){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/homepages/regenerate"),method:"POST",data:{site_description:e,slug:t,palette:n,isFavorite:r}}).then())}async function d(){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/customize-data")}).then())}async function p(e){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/pages/sitemap"),method:"POST",data:{site_description:e}}).then())}async function h(){return await(0,a.h)(i()({url:(0,o.RE)("migrate/connect")}).then())}},7517:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>l,_t:()=>g,ai:()=>u,kt:()=>f,oy:()=>h,qv:()=>m,w6:()=>p,xN:()=>d});var r=n(1455),i=n.n(r),a=n(8674),o=n(5435),s=n(3272),c=n(8969);const l=()=>{if((0,s.qn)(c.X0))return!0;i()({url:(0,a.fG)("themes/initialize"),method:"POST"}).catch((e=>{console.error(e)}))},u=async(e,t=!0,n=!0)=>"string"==typeof e&&await(0,o.h)(i()({url:(0,a.EG)("themes/install"),method:"POST",data:{theme:e,activate:t,queue:n}})),d=async(e,t=!0)=>"string"==typeof e&&await(0,o.h)(i()({url:(0,a.EG)("themes/expedite"),method:"POST",data:{theme:e,activate:t}})),p=async(e=!1)=>await(0,o.h)(i()({url:(0,a.fG)("themes/variations&variations="+e)}).then()),h=async e=>await(0,o.h)(i()({url:(0,a.fG)("themes/variations"),method:"POST",data:e}).then()),m=async e=>await(0,o.h)(i()({url:(0,a.EG)("themes/status"+(e?`&theme=${e}`:""))})),g=async()=>await(0,o.h)(i()({url:(0,a.fG)("themes/fonts")})),f=async()=>await(0,o.h)(i()({url:(0,a.fG)("themes/colors")}))},7225:(e,t,n)=>{"use strict";n.d(t,{AN:()=>w});var r=n(1609),i=n(6087),a=n(4997);const o=window.wp.styleEngine;var s=n(4715);function c(e,t={}){if(!e)return null;const{coerceTo:n,rootSizeValue:r,acceptableUnits:i}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},a=i?.join("|"),o=new RegExp(`^(\\d*\\.?\\d+)(${a}){1,1}$`),s=e.match(o);if(!s||s.length<3)return null;let[,c,l]=s,u=parseFloat(c);return"px"!==n||"em"!==l&&"rem"!==l||(u*=r,l=n),"px"!==l||"em"!==n&&"rem"!==n||(u/=r,l=n),{value:u,unit:l}}function l(e,t=3){return Number.isFinite(e)?parseFloat(e.toFixed(t)):void 0}const u="body",d=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["typography","fontSizes"],valueFunc:(e,{typography:t})=>function(e,t){const{size:n}=e;if(!0!==t?.fluid)return n;if(!1===e?.fluid)return n;const r=e?.fluid||{};let i=r?.min,a=r?.max;const o=c(n);return o?.unit?(i||(i=.75*o.value+o.unit),a||(a=1.5*o.value+o.unit),function({maximumViewPortWidth:e,minimumViewPortWidth:t,maximumFontSize:n,minimumFontSize:r,scaleFactor:i}){const a=c(r),o=a?.unit||"rem",s=c(n,{coerceTo:o});if(!a||!s)return null;const u=c(r,{coerceTo:"rem"}),d=c(e,{coerceTo:o}),p=c(t,{coerceTo:o});if(!d||!p||!u)return null;const h=l(p.value/100,3)+o;let m=(s.value-a.value)/(d.value-p.value)*100;m=l(m,3)||1;const g=m*i;return`clamp(${r}, ${u.value}${u.unit} + ((1vw - ${h}) * ${g}), ${n})`}({maximumViewPortWidth:"1600px",minimumViewPortWidth:"768px",maximumFontSize:a,minimumFontSize:i,scaleFactor:1})||n):n}(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],p={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function h(e){return e?.startsWith?.("var:")?`var(--wp--${e.slice(4).split("|").join("--")})`:e}function m(e={},t,n){let r=[];return Object.keys(e).forEach((a=>{const o=t+(0,i.kebabCase)(a.replace("/","-")),s=e[a];if(s instanceof Object){const e=o+n;r=[...r,...m(s,e,n)]}else r.push(`${o}: ${s}`)})),r}function g(e={},t="",n,r={}){const s=u===t,c=(0,i.reduce)(a.__EXPERIMENTAL_STYLE_PROPERTY,((t,{value:r,properties:a,rootOnly:o},c)=>{if(o&&!s)return t;const l=r;if("elements"===l[0])return t;const u=(0,i.get)(e,l);if("--wp--style--root--padding"===c&&("string"==typeof u||!n))return t;if(a&&"string"!=typeof u)Object.entries(a).forEach((e=>{const[n,r]=e;if(!(0,i.get)(u,[r],!1))return;const a=n.startsWith("--")?n:(0,i.kebabCase)(n);t.push(`${a}: ${h((0,i.get)(u,[r]))}`)}));else if((0,i.get)(e,l,!1)){const n=c.startsWith("--")?c:(0,i.kebabCase)(c);t.push(`${n}: ${h((0,i.get)(e,l))}`)}return t}),[]);return(0,o.getCSSRules)(e).forEach((e=>{if(s&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:(0,i.kebabCase)(e.key);let a=e.value;if("string"!=typeof a&&a?.ref){const e=a.ref.split(".");if(a=(0,i.get)(r,e),!a||a?.ref)return}c.push(`${t}: ${a}`)})),c}const f=(e,t)=>{var n;const r=[];if(!e?.settings)return r;const a=e=>{const t={};return d.forEach((({path:n})=>{const r=(0,i.get)(e,n,!1);!1!==r&&(0,i.set)(t,n,r)})),t},o=a(e.settings),s=e.settings?.custom;return(0,i.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:u}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const o=a(n),s=n.custom;(0,i.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:t[e].selector})})),r},_=(e,t)=>{const n=f(e,t);let r="";return n.forEach((({presets:t,custom:n,selector:a})=>{const o=function(e={},t){return(0,i.reduce)(d,((n,{path:r,valueKey:a,valueFunc:o,cssVarInfix:s})=>{const c=(0,i.get)(e,r,[]);return c&&Array.isArray(c)&&c.forEach((e=>{a&&!o?n.push(`--wp--preset--${s}--${(0,i.kebabCase)(e.slug)}: ${e[a]}`):o&&"function"==typeof o&&n.push(`--wp--preset--${s}--${(0,i.kebabCase)(e.slug)}: ${o(e,t)}`)})),n}),[])}(t,e?.settings),s=m(n,"--wp--custom--","--");s.length>0&&o.push(...s),o.length>0&&(r+=`${a}{${o.join(";")};}`)})),r},v=(e,t,n,r,o=!1)=>{const c=((e,t)=>{var n;const r=[];if(!e?.styles)return r;const o=e=>(0,i.pickBy)(e,((e,t)=>["border","color","spacing","typography","filter"].includes(t))),s=o(e.styles);return s&&r.push({styles:s,selector:u}),Object.entries(a.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements&&e.styles?.elements[t]&&r.push({styles:e.styles?.elements[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var i;const s=o(n);s&&t?.[e]?.selector&&r.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:s,featureSelectors:t[e].featureSelectors}),Object.entries(null!==(i=n?.elements)&&void 0!==i?i:{}).forEach((([n,i])=>{i&&t?.[e]&&a.__EXPERIMENTAL_ELEMENTS?.[n]&&r.push({styles:i,selector:t[e].selector.split(",").map((e=>a.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),r})(e,t),l=f(e,t),p=e?.settings?.useRootPaddingAwareAlignments,{contentSize:h,wideSize:m}=e?.settings?.layout||{};let _="body {margin: 0;";if(h&&(_+=` --wp--style--global--content-size: ${h};`),m&&(_+=` --wp--style--global--wide-size: ${m};`),p&&(_+='padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } \n\t\t\t .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; } \n\t\t\t .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; } \n\t\t\t .has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;'),_+="}",c.forEach((({selector:t,duotoneSelector:i,styles:a,fallbackGapValue:c,hasLayoutSupport:l,featureSelectors:d})=>{d&&Object.entries(d).forEach((([e,t])=>{if(a?.[e]){const n=g({[e]:a[e]});delete a[e],n.length&&(_+=`${t}{${n.join(";")} }`)}}));const h={};if(a?.filter&&(h.filter=a.filter,delete a.filter),i){const e=g(h);e.length>0&&(_+=`${i}{${e.join(";")};}`)}o||u!==t&&!l||(_+=function({tree:e,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:i,fallbackGapValue:a}){let o="",c=r?(0,s.__experimentalGetGapCSSValue)(t?.spacing?.blockGap):"";if(i&&(n===u?c=c||"0.5em":!r&&a&&(c=a)),c&&e?.settings?.layout?.definitions&&(Object.values(e.settings.layout.definitions).forEach((({className:e,name:t,spacingStyles:i})=>{(r||"flex"===t)&&i?.length&&i.forEach((t=>{const i=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{i.push(`${e}: ${t||c}`)})),i.length){let a="";a=r?n===u?`${n} .${e}${t?.selector||""}`:`${n}.${e}${t?.selector||""}`:n===u?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,o+=`${a} { ${i.join("; ")}; }`}}))})),n===u&&r&&(o+=`${n} { --wp--style--block-gap: ${c}; }`)),n===u&&e?.settings?.layout?.definitions){const t=["block","flex","grid"];Object.values(e.settings.layout.definitions).forEach((({className:e,displayMode:r,baseStyles:i})=>{r&&t.includes(r)&&(o+=`${n} .${e} { display:${r}; }`),i?.length&&i.forEach((t=>{const r=[];t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t}`)})),r.length&&(o+=`${n} .${e}${t?.selector||""} { ${r.join("; ")}; }`)}))}))}return o}({tree:e,style:a,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:r,fallbackGapValue:c}));const m=g(a,t,p,e);m?.length&&(_+=`${t}{${m.join(";")};}`);const f=Object.entries(a).filter((([e])=>e.startsWith(":")));f?.length&&f.forEach((([e,n])=>{const r=g(n);if(!r?.length)return;const i=`${t.split(",").map((t=>t+e)).join(",")}{${r.join(";")};}`;_+=i}))})),_+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",_+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",_+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",!o&&n){const t=(0,s.__experimentalGetGapCSSValue)(e?.styles?.spacing?.blockGap)||"0.5em";_+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",_+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return l.forEach((({selector:e,presets:t})=>{u===e&&(e="");const n=function(e,t={}){return(0,i.reduce)(d,((n,{path:r,cssVarInfix:a,classes:o})=>{if(!o)return n;const s=(0,i.get)(t,r,[]);return s&&Array.isArray(s)&&s.forEach((({slug:t})=>{o.forEach((({classSuffix:r,propertyName:o})=>{const s=`.has-${(0,i.kebabCase)(t)}-${r}`,c=e.split(",").map((e=>`${e}${s}`)).join(","),l=`var(--wp--preset--${a}--${(0,i.kebabCase)(t)})`;n+=`${c}{${o}: ${l} !important;}`}))})),n}),"")}(e,t);(0,i.isEmpty)(n)||(_+=n)})),_};const b=e=>{const t={};return e.forEach((e=>{var n,r;const i=e.name,a=null!==(n=e?.supports?.__experimentalSelector)&&void 0!==n?n:".wp-block-"+i.replace("core/","").replace("/","-"),o=null!==(r=e?.supports?.color?.__experimentalDuotone)&&void 0!==r?r:null,s=!!e?.supports?.__experimentalLayout,c=e?.supports?.spacing?.blockGap?.__experimentalDefault,l={};Object.entries(p).forEach((([t,n])=>{const r=e?.supports?.[t]?.__experimentalSelector;r&&(l[n]=function(e,t){const n=e.split(","),r=t.split(","),i=[];return n.forEach((e=>{r.forEach((t=>{i.push(`${e.trim()} ${t.trim()}`)}))})),i.join(", ")}(a,r))})),t[i]={duotoneSelector:o,fallbackGapValue:c,featureSelectors:Object.keys(l).length?l:void 0,hasLayoutSupport:s,name:i,selector:a}})),t};function w(e,t){const n=t.settings.__experimentalFeatures.spacing.blockGap,o=!n,c=!t.settings?.disableLayoutStyles||t.settings.disableLayoutStyles;if(!e?.styles&&!e?.settings&&!e?.globalStyles)return;const l={settings:e.settings,styles:e?.globalStyles?e.globalStyles:e.styles},u=b((0,a.getBlockTypes)()),p=_(l,u),h=v(l,u,n,o,c),m=function(e,t){return f(e,t).flatMap((({presets:e})=>function(e={}){return d.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,i.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,r.createElement)(s.__unstablePresetDuotoneFilter,{preset:e,key:e.slug})))))}))}(e)))}(l,u),g=[...t.settings.styles.filter((e=>!(e.hasOwnProperty("id")&&("customProperty"===e.id||"globalStyle"===e.id)))),{id:"customProperty",css:p,isGlobalStyles:!0},{id:"globalStyle",css:h,isGlobalStyles:!0},{assets:m,__unstableType:"svg",isGlobalStyles:!0}];return e.settings.styles=g,e.settings.__unstableResolvedAssets=t.settings.__unstableResolvedAssets,e.settings.__experimentalFeatures=t.settings.__experimentalFeatures,e}},3272:(e,t,n)=>{"use strict";n.d(t,{g2:()=>s,qm:()=>o,qn:()=>a});var r=n(3832),i=n(6087);const a=e=>new URLSearchParams(window.location.search).get(e),o=(e,t)=>(0,r.hasQueryArg)(e,t)?(0,r.removeQueryArgs)(e,t):e,s=e=>(0,i.transform)(e,((e,t,n)=>{e[(0,i.snakeCase)(n)]=t}))},3474:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(8744),i=n(7723);const a={[r.rA]:{site:{noun:(0,i._x)("site","noun","wp-module-onboarding")},website:{noun:(0,i._x)("website","noun","wp-module-onboarding")}},[r.eS]:{site:{noun:(0,i._x)("store","noun","wp-module-onboarding")},website:{noun:(0,i._x)("store","noun","wp-module-onboarding")}},[r.d0]:{site:{noun:(0,i._x)("site","noun","wp-module-onboarding")},website:{noun:(0,i._x)("website","noun","wp-module-onboarding")}}},o=(e,t="noun")=>{const n=window?.nfdOnboarding?.currentFlow||r.rA,i=a[n][e.toLowerCase()][t];return e===e.toUpperCase()?i.toUpperCase():e[0]===e[0].toUpperCase()?i[0].toUpperCase()+i.substring(1):i}},8969:(e,t,n)=>{"use strict";n.d(t,{$P:()=>oe,At:()=>te,CL:()=>T,Cx:()=>w,EF:()=>ie,Er:()=>Z,F4:()=>ne,HJ:()=>k,Ix:()=>M,KJ:()=>b,KK:()=>$,KZ:()=>F,L5:()=>ue,Mw:()=>P,No:()=>h,PE:()=>y,Qe:()=>D,Qs:()=>A,R0:()=>g,R2:()=>re,SF:()=>c,SJ:()=>E,SQ:()=>X,So:()=>K,Sr:()=>R,St:()=>N,VG:()=>_,V_:()=>I,Vw:()=>le,W6:()=>se,WH:()=>j,X0:()=>q,Xi:()=>d,ZH:()=>o,db:()=>W,eT:()=>a,eY:()=>C,f1:()=>Y,fO:()=>J,fS:()=>ce,g5:()=>p,gR:()=>ee,gb:()=>H,h0:()=>u,iQ:()=>S,jK:()=>O,lf:()=>x,lp:()=>B,me:()=>z,mp:()=>Q,nK:()=>L,qy:()=>ae,vO:()=>f,vd:()=>V,yY:()=>v,z3:()=>G,zm:()=>U});var r,i=n(3832);const a="nfd-onboarding",o="object"==typeof window?.nfdOnboarding&&"buildUrl"in window.nfdOnboarding,s=window.nfdOnboarding.adminUrl,c=window.nfdOnboarding.siteUrl,l=window.nfdOnboarding.restUrl,u=`${l}/wp/v2`,d=`${l}/newfold-onboarding/v1`,p=`${l}/newfold-installer/v1`,h=`${l}/newfold-migration/v1`,m=(0,i.addQueryArgs)(`${s}index.php`,window.nfdOnboarding.currentBrand?.dashboardRedirectParams),g=null!==(r=(0,i.addQueryArgs)(window.nfdOnboarding.currentBrand?.pluginDashboardPage,window.nfdOnboarding.currentBrand?.dashboardRedirectParams))&&void 0!==r?r:m,f="nav-primary",_="nav-design",v="nav-page",b="design-themes",w="design-theme-styles-menu",y="design-theme-styles-preview",S="design-colors",E="design-fonts",k="design-header-menu",T="design-homepage-menu",x="nav-get-started",C="nav-ecommerce-store-info",N="Sidebar",A="HeaderMenu",I="SitegenEditorPatterns",D="LearnMore",O="Customize",P="HeaderSiteBuild",M="HeaderSiteGen",R="FooterSiteGen",$="HeaderTop",L="HeaderStart",z="HeaderCenter",F="HeaderEnd",V="FooterStart",H="FooterEnd",U=2,W=2,B=2,j=2,G="nfd_plugins",q="nfd_themes",Y="nfd_slug_yith_wonder",K="init",Q="inactive",J="installing",Z="activated",X="failed",ee="demographic",te="commerce",ne="design",re="layout_and_content",ie="features",ae="core",oe="design",se="features",ce="dark",le="light",ue={SET_FLOW:"SET_FLOW",SET_GLOBAL_STYLES:"SET_GLOBAL_STYLES"}},1003:(e,t,n)=>{"use strict";n.d(t,{I9:()=>h,k2:()=>_});var r=n(1609);const i=window.ReactDOM;var a=n(148),o=n(5588);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],u=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}const d=r.createContext({isTransitioning:!1});new Map;const p=r.startTransition;function h(e){let{basename:t,children:n,future:i,window:s}=e,c=r.useRef();null==c.current&&(c.current=(0,o.TM)({window:s,v5Compat:!0}));let l=c.current,[u,d]=r.useState({action:l.action,location:l.location}),{v7_startTransition:h}=i||{},m=r.useCallback((e=>{h&&p?p((()=>d(e))):d(e)}),[d,h]);return r.useLayoutEffect((()=>l.listen(m)),[l,m]),r.createElement(a.Ix,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:i})}i.flushSync,r.useId;const m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f=r.forwardRef((function(e,t){let n,{onClick:i,relative:u,reloadDocument:d,replace:p,state:h,target:f,to:_,preventScrollReset:v,unstable_viewTransition:b}=e,w=c(e,l),{basename:y}=r.useContext(a.jb),S=!1;if("string"==typeof _&&g.test(_)&&(n=_,m))try{let e=new URL(window.location.href),t=_.startsWith("//")?new URL(e.protocol+_):new URL(_),n=(0,o.pb)(t.pathname,y);t.origin===e.origin&&null!=n?_=n+t.search+t.hash:S=!0}catch(e){}let E=(0,a.$P)(_,{relative:u}),k=function(e,t){let{target:n,replace:i,state:s,preventScrollReset:c,relative:l,unstable_viewTransition:u}=void 0===t?{}:t,d=(0,a.Zp)(),p=(0,a.zy)(),h=(0,a.x$)(e,{relative:l});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==i?i:(0,o.AO)(p)===(0,o.AO)(h);d(e,{replace:n,state:s,preventScrollReset:c,relative:l,unstable_viewTransition:u})}}),[p,d,h,i,s,n,e,c,l,u])}(_,{replace:p,state:h,target:f,preventScrollReset:v,relative:u,unstable_viewTransition:b});return r.createElement("a",s({},w,{href:n||E,onClick:S||d?i:function(e){i&&i(e),e.defaultPrevented||k(e)},ref:t,target:f}))})),_=r.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:i=!1,className:l="",end:p=!1,style:h,to:m,unstable_viewTransition:g,children:_}=e,b=c(e,u),w=(0,a.x$)(m,{relative:b.relative}),y=(0,a.zy)(),S=r.useContext(a.Rq),{navigator:E,basename:k}=r.useContext(a.jb),T=null!=S&&function(e,t){void 0===t&&(t={});let n=r.useContext(d);null==n&&(0,o.Oi)(!1);let{basename:i}=function(e){let t=r.useContext(a.sp);return t||(0,o.Oi)(!1),t}(v.useViewTransitionState),s=(0,a.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let c=(0,o.pb)(n.currentLocation.pathname,i)||n.currentLocation.pathname,l=(0,o.pb)(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=(0,o.B6)(s.pathname,l)||null!=(0,o.B6)(s.pathname,c)}(w)&&!0===g,x=E.encodeLocation?E.encodeLocation(w).pathname:w.pathname,C=y.pathname,N=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(C=C.toLowerCase(),N=N?N.toLowerCase():null,x=x.toLowerCase()),N&&k&&(N=(0,o.pb)(N,k)||N);const A="/"!==x&&x.endsWith("/")?x.length-1:x.length;let I,D=C===x||!p&&C.startsWith(x)&&"/"===C.charAt(A),O=null!=N&&(N===x||!p&&N.startsWith(x)&&"/"===N.charAt(x.length)),P={isActive:D,isPending:O,isTransitioning:T},M=D?n:void 0;I="function"==typeof l?l(P):[l,D?"active":null,O?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof h?h(P):h;return r.createElement(f,s({},b,{"aria-current":M,className:I,ref:t,style:R,to:m,unstable_viewTransition:g}),"function"==typeof _?_(P):_)}));var v,b;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(v||(v={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(b||(b={}))},148:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,BV:()=>A,Ix:()=>N,Rq:()=>s,Zp:()=>f,jb:()=>c,qh:()=>C,sp:()=>o,x$:()=>_,zy:()=>m});var r=n(1609),i=n(5588);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},i)))}),[e,t])}():function(){h()||(0,i.Oi)(!1);let e=r.useContext(o),{basename:t,future:n,navigator:a}=r.useContext(c),{matches:s}=r.useContext(u),{pathname:l}=m(),d=JSON.stringify((0,i.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return g((()=>{p.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void a.go(n);let o=(0,i.Gh)(n,JSON.parse(d),l,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:(0,i.HS)([t,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)}),[t,a,d,l,e])}()}function _(e,t){let{relative:n}=void 0===t?{}:t,{future:a}=r.useContext(c),{matches:o}=r.useContext(u),{pathname:s}=m(),l=JSON.stringify((0,i.yD)(o,a.v7_relativeSplatPath));return r.useMemo((()=>(0,i.Gh)(e,JSON.parse(l),s,"path"===n)),[e,l,s,n])}function v(e,t,n,o){h()||(0,i.Oi)(!1);let{navigator:s}=r.useContext(c),{matches:d}=r.useContext(u),p=d[d.length-1],g=p?p.params:{},f=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let _,v=m();if(t){var b;let e="string"==typeof t?(0,i.Rr)(t):t;"/"===f||(null==(b=e.pathname)?void 0:b.startsWith(f))||(0,i.Oi)(!1),_=e}else _=v;let E=_.pathname||"/",k=E;if("/"!==f){let e=f.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(e.length).join("/")}let T=(0,i.ue)(e,{pathname:k}),C=function(e,t,n,a){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let c=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=c.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||(0,i.Oi)(!1),c=c.slice(0,Math.min(c.length,e+1))}let u=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let e=0;e=0?c.slice(0,d+1):[c[0]];break}}}return c.reduceRight(((e,i,a)=>{let o,s=!1,p=null,h=null;var m;n&&(o=l&&i.route.id?l[i.route.id]:void 0,p=i.route.errorElement||w,u&&(d<0&&0===a?(x[m="route-fallback"]||(x[m]=!0),s=!0,h=null):d===a&&(s=!0,h=i.route.hydrateFallbackElement||null)));let g=t.concat(c.slice(0,a+1)),f=()=>{let t;return t=o?p:s?h:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(S,{match:i,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?r.createElement(y,{location:n.location,revalidation:n.revalidation,component:p,error:o,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()}),null)}(T&&T.map((e=>Object.assign({},e,{params:Object.assign({},g,e.params),pathname:(0,i.HS)([f,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:(0,i.HS)([f,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,n,o);return t&&C?r.createElement(l.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:i.rc.Pop}},C):C}function b(){let e=function(){var e;let t=r.useContext(d),n=function(e){let t=r.useContext(s);return t||(0,i.Oi)(!1),t}(k.UseRouteError),a=T(k.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[a]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}const w=r.createElement(b,null);class y extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(u.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S(e){let{routeContext:t,match:n,children:i}=e,a=r.useContext(o);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(u.Provider,{value:t},i)}var E=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(E||{}),k=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(k||{});function T(e){let t=function(e){let t=r.useContext(u);return t||(0,i.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.Oi)(!1),n.route.id}const x={};function C(e){(0,i.Oi)(!1)}function N(e){let{basename:t="/",children:n=null,location:o,navigationType:s=i.rc.Pop,navigator:u,static:d=!1,future:p}=e;h()&&(0,i.Oi)(!1);let m=t.replace(/^\/*/,"/"),g=r.useMemo((()=>({basename:m,navigator:u,static:d,future:a({v7_relativeSplatPath:!1},p)})),[m,p,u,d]);"string"==typeof o&&(o=(0,i.Rr)(o));let{pathname:f="/",search:_="",hash:v="",state:b=null,key:w="default"}=o,y=r.useMemo((()=>{let e=(0,i.pb)(f,m);return null==e?null:{location:{pathname:e,search:_,hash:v,state:b,key:w},navigationType:s}}),[m,f,_,v,b,w,s]);return null==y?null:r.createElement(c.Provider,{value:g},r.createElement(l.Provider,{children:n,value:y}))}function A(e){let{children:t,location:n}=e;return v(I(t),n)}function I(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,a)=>{if(!r.isValidElement(e))return;let o=[...t,a];if(e.type===r.Fragment)return void n.push.apply(n,I(e.props.children,o));e.type!==C&&(0,i.Oi)(!1),e.props.index&&e.props.children&&(0,i.Oi)(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=I(e.props.children,o)),n.push(s)})),n}r.startTransition,new Promise((()=>{})),r.Component},1609:e=>{"use strict";e.exports=window.React},6087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4997:e=>{"use strict";e.exports=window.wp.blocks},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},7143:e=>{"use strict";e.exports=window.wp.data},8107:e=>{"use strict";e.exports=window.wp.dom},8468:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t{"use strict";e.exports={rE:"2.3.5"}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,i),a.exports}i.m=n,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+".js",i.miniCssF=e=>e+".css",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="newfold.Onboarding:",i.l=(n,r,a,o)=>{if(e[n])e[n].push(r);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(h);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{if("undefined"!=typeof document){var e={352:0};i.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{100:1,396:1}[t]&&n.push(e[t]=(e=>new Promise(((t,n)=>{var r=i.miniCssF(e),a=i.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)r();else{var o=n&&n.type,s=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,a.parentNode&&a.parentNode.removeChild(a),i(c)}},a.href=t,document.head.appendChild(a)})(e,a,0,t,n)})))(t).then((()=>{e[t]=0}),(n=>{throw delete e[t],n})))}}})(),(()=>{var e={352:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=a);var o=i.p+i.u(t),s=new Error;i.l(o,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[o,s,c]=n,l=0;if(o.some((t=>0!==e[t]))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);c&&c(i)}for(t&&t(n);l{"use strict";i.r(a);var e={};i.r(e),i.d(e,{closeModal:()=>Os,disableComplementaryArea:()=>Ts,enableComplementaryArea:()=>ks,openModal:()=>Ds,pinItem:()=>xs,setDefaultComplementaryArea:()=>Es,setFeatureDefaults:()=>Is,setFeatureValue:()=>As,toggleFeature:()=>Ns,unpinItem:()=>Cs});var t={};i.r(t),i.d(t,{getActiveComplementaryArea:()=>Ps,isComplementaryAreaLoading:()=>Ms,isFeatureActive:()=>$s,isItemPinned:()=>Rs,isModalActive:()=>Ls});var n=i(8969);const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,o="8.9.2",s=globalThis;function c(e,t,n){const r=n||s,i=r.__SENTRY__=r.__SENTRY__||{},a=i[o]=i[o]||{};return a[e]||(a[e]=t())}const l=["debug","info","warn","error","log","assert","trace"],u={};function d(e){if(!("console"in s))return e();const t=s.console,n={},r=Object.keys(u);r.forEach((e=>{const r=u[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const p=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r?l.forEach((n=>{t[n]=(...t)=>{e&&d((()=>{s.console[n](`Sentry Logger [${n}]:`,...t)}))}})):l.forEach((e=>{t[e]=()=>{}})),t}(),h=Object.prototype.toString;function m(e){switch(h.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return k(e,Error)}}function g(e,t){return h.call(e)===`[object ${t}]`}function f(e){return g(e,"ErrorEvent")}function _(e){return g(e,"DOMError")}function v(e){return g(e,"String")}function b(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function w(e){return null===e||b(e)||"object"!=typeof e&&"function"!=typeof e}function y(e){return g(e,"Object")}function S(e){return"undefined"!=typeof Event&&k(e,Event)}function E(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function k(e,t){try{return e instanceof t}catch(e){return!1}}function T(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const x=s,C=80;function N(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,o=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||C;for(;n&&a++1&&o+i.length*c+l.length>=d));)i.push(l),o+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return""}}function A(e,t){const n=e,r=[];let i,a,o,s,c;if(!n||!n.tagName)return"";if(x.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&v(i))for(a=i.split(/\s+/),c=0;cfunction(e,t,n=!1){return!!v(e)&&(g(t,"RegExp")?t.test(e):!!v(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function P(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&R(i,r),e[t]=i}function M(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){r&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function R(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,M(e,"__sentry_original__",t)}catch(e){}}function $(e){return e.__sentry_original__}function L(e){if(m(e))return{message:e.message,name:e.name,stack:e.stack,...F(e)};if(S(e)){const t={type:e.type,target:z(e.target),currentTarget:z(e.currentTarget),...F(e)};return"undefined"!=typeof CustomEvent&&k(e,CustomEvent)&&(t.detail=e.detail),t}return e}function z(e){try{return"undefined"!=typeof Element&&k(e,Element)?N(e):Object.prototype.toString.call(e)}catch(e){return""}}function F(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function V(e){return H(e,new Map)}function H(e,t){if(function(e){if(!y(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=H(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(H(e,t))})),r}return e}function U(){const e=s,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function W(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function B(e){const{message:t,event_id:n}=e;if(t)return t;const r=W(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function j(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function G(e,t){const n=W(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function q(e){if(e&&e.__sentry_captured__)return!0;try{M(e,"__sentry_captured__",!0)}catch(e){}return!1}function Y(e){return Array.isArray(e)?e:[e]}const K="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Q=[];function J(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Y(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),a=function(e,t){for(let t=0;tn(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}K&&p.log(`Integration installed: ${t.name}`)}}const ee=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],te=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const i=r.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ee],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(K&&p.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${B(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}(e).some((e=>O(e,t)))}(e,t.ignoreErrors)?(K&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${B(e)}`),!0):function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}(e)?(K&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${B(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&O(n,t)}(e,t.ignoreTransactions)?(K&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${B(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=ne(e);return!!n&&O(n,t)}(e,t.denyUrls)?(K&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${B(e)}.\nUrl: ${ne(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=ne(e);return!n||O(n,t)}(e,t.allowUrls)&&(K&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${B(e)}.\nUrl: ${ne(e)}`),!0)}(t,a)?null:t}});function ne(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return K&&p.error(`Cannot extract url for event ${B(e)}`),null}}function re(){return ie(s),s}function ie(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||o,t[o]=t[o]||{}}function ae(){return{traceId:U(),spanId:U().substring(16)}}const oe=1e3;function se(){return Date.now()/oe}const ce=function(){const{performance:e}=s;if(!e||!e.now)return se;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/oe}();let le;const ue=(()=>{const{performance:e}=s;if(!e||!e.now)return void(le="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const pe="_sentrySpan";function he(e,t){t?M(e,pe,t):delete e[pe]}function me(e){return e[pe]}class ge{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ae()}clone(){const e=new ge;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,he(e,me(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&de(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof fe?[t.getScopeData(),t.getRequestSession()]:y(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,he(this,void 0),this._attachments=[],this._propagationContext=ae(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:se(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:me(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:U();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:U();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:U();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(p.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const fe=ge;class _e{constructor(e,t){let n,r;n=e||new fe,r=t||new fe,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return E(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function ve(){const e=ie(re());return e.stack=e.stack||new _e(c("defaultCurrentScope",(()=>new fe)),c("defaultIsolationScope",(()=>new fe)))}function be(e){return ve().withScope(e)}function we(e,t){const n=ve();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function ye(e){return ve().withScope((()=>e(ve().getIsolationScope())))}function Se(e){const t=ie(e);return t.acs?t.acs:{withIsolationScope:ye,withScope:be,withSetScope:we,withSetIsolationScope:(e,t)=>ye(t),getCurrentScope:()=>ve().getScope(),getIsolationScope:()=>ve().getIsolationScope()}}function Ee(){return Se(re()).getCurrentScope()}function ke(){return Se(re()).getIsolationScope()}function Te(){return Ee().getClient()}let xe;const Ce=new WeakMap,Ne=()=>({name:"FunctionToString",setupOnce(){xe=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=$(this),n=Ce.has(Te())&&void 0!==t?t:this;return xe.apply(n,e)}}catch(e){}},setup(e){Ce.set(e,!0)}}),Ae=50,Ie="?",De=/\(error: (.*)\)/,Oe=/captureMessage|captureException/;function Pe(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const i=[],a=e.split("\n");for(let e=n;e1024)continue;const o=De.test(n)?n.replace(De,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){i.push(t);break}}if(i.length>=Ae+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Oe.test(t[t.length-1].function||"")&&(t.pop(),Oe.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Ae).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||Ie})))}(i.slice(r))}}const Me="";function Re(e){try{return e&&"function"==typeof e&&e.name||Me}catch(e){return Me}}function $e(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}const Le=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Fe(e,t)&&!!ze(e,t))))}(e,t)||!!function(e,t){const n=Ve(t),r=Ve(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Fe(e,t)&&!!ze(e,t)))}(e,t))}(t,e))return K&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function ze(e,t){let n=$e(e),r=$e(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;en?We(e,t-1,n):r;var i}function Be(e,t,n=1/0,r=1/0,i=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=r){u[e]="[MaxProperties ~]";break}const t=p[e];u[e]=Be(e,t,c-1,r,i),d++}return o(t),u}var je;function Ge(e){return new Ye((t=>{t(e)}))}function qe(e){return new Ye(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(je||(je={}));class Ye{constructor(e){Ye.prototype.__init.call(this),Ye.prototype.__init2.call(this),Ye.prototype.__init3.call(this),Ye.prototype.__init4.call(this),this._state=je.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Ye(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Ye(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(je.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(je.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===je.PENDING&&(E(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===je.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===je.RESOLVED&&e[1](this._value),this._state===je.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Ke(e,t,n,r=0){return new Ye(((i,a)=>{const o=e[r];if(null===t||"function"!=typeof o)i(t);else{const s=o({...t},n);K&&o.id&&null===s&&p.log(`Event processor "${o.id}" dropped event`),E(s)?s.then((t=>Ke(e,t,n,r+1).then(i))).then(null,a):Ke(e,s,n,r+1).then(i).then(null,a)}}))}const Qe="sentry.source",Je="sentry.sample_rate",Ze="sentry.op",Xe="sentry.origin",et="sentry.idle_span_finish_reason",tt="baggage",nt="sentry-",rt=/^sentry-/,it=8192;function at(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===i?a:`${e},${a}`;return o.length>it?(r&&p.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${nt}${t}`]=n),e)),{}))}function ot(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const st=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ct(e,t){const n=function(e){if(!e)return;const t=e.match(st);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=function(e){const t=function(e){if(e&&(v(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=ot(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{}):ot(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(rt)&&(e[t.slice(nt.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:a,parentSampled:o}=n||{};return n?{traceId:i||U(),parentSpanId:a||U().substring(16),spanId:U().substring(16),sampled:o,dsc:r||{}}:{traceId:i||U(),spanId:U().substring(16)}}function lt(e=U(),t=U().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const ut="_sentryMetrics";function dt(e){const t=e[ut];if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(V(r));return n}const pt=0,ht=1,mt=2;function gt(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:ht};if(e>=400&&e<500)switch(e){case 401:return{code:mt,message:"unauthenticated"};case 403:return{code:mt,message:"permission_denied"};case 404:return{code:mt,message:"not_found"};case 409:return{code:mt,message:"already_exists"};case 413:return{code:mt,message:"failed_precondition"};case 429:return{code:mt,message:"resource_exhausted"};case 499:return{code:mt,message:"cancelled"};default:return{code:mt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:mt,message:"unimplemented"};case 503:return{code:mt,message:"unavailable"};case 504:return{code:mt,message:"deadline_exceeded"};default:return{code:mt,message:"internal_error"}}return{code:mt,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}const ft=1;function _t(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s}=St(e);return V({parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s})}function vt(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=St(e);return V({parent_span_id:r,span_id:t,trace_id:n})}function bt(e){const{traceId:t,spanId:n}=e.spanContext();return lt(t,n,Et(e))}function wt(e){return"number"==typeof e?yt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?yt(e.getTime()):ce()}function yt(e){return e>9999999999?e/1e3:e}function St(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:c}=e;return V({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:wt(i),timestamp:wt(o)||void 0,status:kt(c),op:r[Ze],origin:r[Xe],_metrics_summary:dt(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Et(e){const{traceFlags:t}=e.spanContext();return t===ft}function kt(e){if(e&&e.code!==pt)return e.code===ht?"ok":e.message||"unknown_error"}const Tt="_sentryChildSpans",xt="_sentryRootSpan";function Ct(e,t){const n=e[xt]||e;M(t,xt,n),e[Tt]?e[Tt].add(t):M(e,Tt,new Set([t]))}function Nt(e){const t=new Set;return function e(n){if(!t.has(n)&&Et(n)){t.add(n);const r=n[Tt]?Array.from(n[Tt]):[];for(const t of r)e(t)}}(e),Array.from(t)}function At(e){return e[xt]||e}function It(){const e=Se(re());return e.getActiveSpan?e.getActiveSpan():me(Ee())}const Dt="_frozenDsc";function Ot(e,t){M(e,Dt,t)}function Pt(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=V({environment:n.environment||He,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function Mt(e){const t=Te();if(!t)return{};const n=Pt(St(e).trace_id||"",t),r=At(e);if(!r)return n;const i=r[Dt];if(i)return i;const a=St(r),o=a.data||{},s=o[Je];null!=s&&(n.sample_rate=`${s}`);const c=o[Qe];return c&&"url"!==c&&(n.transaction=a.description),n.sampled=String(Et(r)),t.emit("createDsc",n),n}function Rt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:m}=t;$t(e,"extra",n),$t(e,"tags",r),$t(e,"user",i),$t(e,"contexts",a),$t(e,"sdkProcessingMetadata",s),o&&(e.level=o),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function $t(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Lt(e,t,n,r,i,a){const{normalizeDepth:o=3,normalizeMaxBreadth:l=1e3}=e,u={...t,event_id:t.event_id||n.event_id||U(),timestamp:t.timestamp||se()},d=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:He),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=I(e.message,a));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=I(o.value,a));const s=e.request;s&&s.url&&(s.url=I(s.url,a))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,d),void 0===t.type&&function(e,t){const n=s._sentryDebugIds;if(!n)return;let r;const i=zt.get(t);i?r=i:(r=new Map,zt.set(t,r));const a=Object.keys(n).reduce(((e,i)=>{let a;const o=r.get(i);o?a=o:(a=t(i),r.set(i,a));for(let t=a.length-1;t>=0;t--){const r=a[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(u,e.stackParser);const p=function(e,t){if(!t)return e;const n=e?e.clone():new fe;return n.update(t),n}(r,n.captureContext);n.mechanism&&G(u,n.mechanism);const h=i?i.getEventProcessors():[],m=c("globalScope",(()=>new fe)).getScopeData();a&&Rt(m,a.getScopeData()),p&&Rt(m,p.getScopeData());const g=[...n.attachments||[],...m.attachments];return g.length&&(n.attachments=g),function(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,c=V(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=V(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=V(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=V(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:vt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Mt(t),...e.sdkProcessingMetadata};const n=St(At(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Y(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}(u,m),Ke([...h,...m.eventProcessors],u,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Ue(e.data,t,n)}})))},...e.user&&{user:Ue(e.user,t,n)},...e.contexts&&{contexts:Ue(e.contexts,t,n)},...e.extra&&{extra:Ue(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ue(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:Ue(e.data,t,n)}})))),r}(e,o,l):e)))}const zt=new WeakMap;const Ft=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Vt(e,t){return Ee().captureEvent(e,t)}function Ht(e){const t=Te(),n=ke(),r=Ee(),{release:i,environment:a=He}=t&&t.getOptions()||{},{userAgent:o}=s.navigator||{},c=function(e){const t=ce(),n={sid:U(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return V({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&de(n,e),n}({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&"ok"===l.status&&de(l,{status:"exited"}),Ut(),n.setSession(c),r.setSession(c),c}function Ut(){const e=ke(),t=Ee(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),de(e,n)}(n),Wt(),e.setSession(),t.setSession()}function Wt(){const e=ke(),t=Ee(),n=Te(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Bt(e=!1){e?Ut():Wt()}const jt=s;function Gt(){if(!("fetch"in jt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function qt(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const Yt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Kt="8.9.2",Qt=globalThis;function Jt(e,t,n){const r=n||Qt,i=r.__SENTRY__=r.__SENTRY__||{},a=i[Kt]=i[Kt]||{};return a[e]||(a[e]=t())}const Zt=["debug","info","warn","error","log","assert","trace"],Xt={},en=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Yt?Zt.forEach((n=>{t[n]=(...t)=>{e&&function(e){if(!("console"in Qt))return e();const t=Qt.console,n={},r=Object.keys(Xt);r.forEach((e=>{const r=Xt[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}((()=>{Qt.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Zt.forEach((e=>{t[e]=()=>{}})),t}(),tn="";function nn(e){try{return e&&"function"==typeof e&&e.name||tn}catch(e){return tn}}const rn={},an={};function on(e,t){rn[e]=rn[e]||[],rn[e].push(t)}function sn(e,t){an[e]||(t(),an[e]=!0)}function cn(e,t){const n=e&&rn[e];if(n)for(const r of n)try{r(t)}catch(t){Yt&&en.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${nn(r)}\nError:`,t)}}const ln=Qt,un=Object.prototype.toString;function dn(e,t){return un.call(e)===`[object ${t}]`}function pn(e){return dn(e,"String")}function hn(e){return dn(e,"Object")}function mn(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,gn(e,"__sentry_original__",t)}catch(e){}}(i,r),e[t]=i}function gn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Yt&&en.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function fn(e){return vn(e,new Map)}function vn(e,t){if(function(e){if(!hn(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=vn(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(vn(e,t))})),r}return e}const bn=Qt;let wn;function yn(e){const t="history";on(t,e),sn(t,Sn)}function Sn(){if(!function(){const e=ln.chrome,t=e&&e.app&&e.app.runtime,n="history"in ln&&!!ln.history.pushState&&!!ln.history.replaceState;return!t&&n}())return;const e=bn.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=wn,t=String(n);wn=t,cn("history",{from:e,to:t})}return e.apply(this,t)}}bn.onpopstate=function(...t){const n=bn.location.href,r=wn;if(wn=n,cn("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},mn(bn.history,"pushState",t),mn(bn.history,"replaceState",t)}const En=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function kn(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}function Tn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function xn(e,t=[]){return[e,t]}function Cn(e,t){const[n,r]=e;return[n,[...r,t]]}function Nn(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function An(e){return s.__SENTRY__&&s.__SENTRY__.encodePolyfill?s.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function In(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[An(r),e]:r.push("string"==typeof e?An(e):e)}for(const e of n){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Ue(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function Dn(e){return[{type:"span"},e]}function On(e){const t="string"==typeof e.data?An(e.data):e.data;return[V({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Pn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Mn(e){return Pn[e]}function Rn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}class $n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Ln="7";function zn(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:Ln,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,n)}`}function Fn(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;K&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const Vn="Not capturing exception because it's already been captured.";class Hn{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=En.exec(e);if(!t)return void d((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,i="",a,o="",s]=t.slice(1);let c="",l=s;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Tn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}(e):Tn(e);if(t&&function(e){if(!r)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(p.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(p.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(p.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):K&&p.warn("No DSN provided, client will not send events."),this._dsn){const t=zn(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=U();if(q(e))return K&&p.log(Vn),r;const i={event_id:r,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,n)))),i.event_id}captureMessage(e,t,n,r){const i={event_id:U(),...n},a=b(e)?e:String(e),o=w(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(o.then((e=>this._captureEvent(e,i,r)))),i.event_id}captureEvent(e,t,n){const r=U();if(t&&t.originalException&&q(t.originalException))return K&&p.log(Vn),r;const i={event_id:r,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){"string"!=typeof e.release?K&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),de(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Ge(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];X(this,e,this._integrations),t||Z(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=Rn(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const o=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:kn(r)},...i&&{trace:V({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,xn(o,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Cn(n,On(e));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const i=Rn(n);return xn({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:kn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;K&&p.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(K&&p.error("Error while sending event:",e),e))):(K&&p.error("Transport disabled"),Ge({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&X(e,t,n)})),n}(this,e),Z(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(de(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Ye((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=ke()){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Lt(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:i,dsc:a}=t;e.contexts={trace:V({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};const o=a||Pt(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(K){const t=e;"log"===t.logLevel?p.log(t.message):p.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,a=Wn(e),o=Un(e),s=e.type||"error",c=`before send for type \`${s}\``,l=void 0===i?void 0:Fn(i);if(o&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),qe(new $n(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===s?"replay":s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new $n("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i,beforeSendSpan:a}=e;if(Un(t)&&r)return r(t,n);if(Wn(t)){if(t.spans&&a){const e=[];for(const n of t.spans){const t=a(n);t&&e.push(t)}t.spans=e}if(i)return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(E(e))return e.then((e=>{if(!y(e)&&null!==e)throw new $n(n);return e}),(e=>{throw new $n(`${t} rejected with ${e}`)}));if(!y(e)&&null!==e)throw new $n(n);return e}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new $n(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);const o=r.transaction_info;if(a&&o&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...o,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof $n)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new $n(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Un(e){return void 0===e.type}function Wn(e){return"transaction"===e.type}const Bn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function jn(e,t){const n=qn(e,t),r={type:t&&t.name,value:Kn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Gn(e,t){return{exception:{values:[jn(e,t)]}}}function qn(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&Yn.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,i)}catch(e){}return[]}const Yn=/Minified React error #\d+;/i;function Kn(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Qn(e,t,n,r,i){let a;if(f(t)&&t.error)return Gn(e,t.error);if(_(t)||g(t,"DOMException")){const i=t;if("stack"in t)a=Gn(e,t);else{const t=i.name||(_(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;a=Jn(e,o,n,r),j(a,o)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return m(t)?Gn(e,t):y(t)||S(t)?(a=function(e,t,n,r){const i=Te(),a=i&&i.getOptions().normalizeDepth,o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:We(t,a)};if(o)return{exception:{values:[jn(e,o)]},extra:s};const c={exception:{values:[{type:S(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Zn(t,{isUnhandledRejection:r})}]},extra:s};if(n){const t=qn(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,i),G(a,{synthetic:!0}),a):(a=Jn(e,t,n,r),j(a,`${t}`,void 0),G(a,{synthetic:!0}),a)}function Jn(e,t,n,r){const i={};if(r&&n){const r=qn(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(b(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Zn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(L(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return I(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:I(r,t)}return""}(e),r=t?"promise rejection":"exception";return f(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:S(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Xn=s;let er=0;function tr(){return er>0}function nr(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if($(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((e=>nr(e,t)));return e.apply(this,i)}catch(e){throw er++,setTimeout((()=>{er--})),function(...e){const t=Se(re());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}((n=>{var i;n.addEventProcessor((e=>(t.mechanism&&(j(e,void 0,void 0),G(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),i=e,Ee().captureException(i,function(e){if(e)return function(e){return e instanceof fe||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Ft.includes(e)))}(e)?{captureContext:e}:e}(undefined))})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}R(r,e),M(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class rr extends Hn{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};!function(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:o}))),version:o}),e._metadata=i}(t,"browser",["browser"],Xn.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Xn.document&&Xn.document.addEventListener("visibilitychange",(()=>{"hidden"===Xn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=Qn(e,t,n&&n.syntheticException||void 0,r);return G(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Ge(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const a=Jn(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Ge(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Bn&&p.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:kn(r)}},a=function(e){return[{type:"user_report"},e]}(e);return xn(i,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Bn&&p.log("No outcomes to send"));if(!this._dsn)return void(Bn&&p.log("No dsn provided, will not send outcomes"));Bn&&p.log("Sending outcomes:",e);const t=(n=e,xn((r=this._options.tunnel&&kn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:se(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function ir(){const e=Qt,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}const ar=1e3;let or,sr,cr;function lr(){if(!bn.document)return;const e=cn.bind(null,"dom"),t=ur(e,!0);bn.document.addEventListener("click",t,!1),bn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=bn[t]&&bn[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(mn(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,a=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{refCount:0};if(!o.handler){const r=ur(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}})),mn(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function ur(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;gn(n,"_sentryCaptured",!0),r&&!r._sentryId&&gn(r,"_sentryId",ir());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==sr)return!1;try{if(!e.target||e.target._sentryId!==cr)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),sr=n.type,cr=r?r._sentryId:void 0),clearTimeout(or),or=bn.setTimeout((()=>{cr=void 0,sr=void 0}),ar)}}function dr(){return Date.now()/1e3}const pr=function(){const{performance:e}=Qt;if(!e||!e.now)return dr;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let hr;const mr=(()=>{const{performance:e}=Qt;if(!e||!e.now)return void(hr="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const e=this[gr];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}cn("xhr",{endTimestamp:1e3*pr(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?mn(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),mn(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,i=this[gr];return i&&pn(n)&&pn(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),mn(e,"send",(function(e){return function(...t){const n=this[gr];return n?(void 0!==t[0]&&(n.body=t[0]),cn("xhr",{startTimestamp:1e3*pr(),xhr:this}),e.apply(this,t)):e.apply(this,t)}}))}const vr=100;function br(e,t){const n=Te(),r=ke();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=vr}=n.getOptions();if(a<=0)return;const o={timestamp:se(),...e},s=i?d((()=>i(o,t))):o;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,a))}const wr={},yr={};function Sr(e,t){wr[e]=wr[e]||[],wr[e].push(t)}function Er(e,t){yr[e]||(t(),yr[e]=!0)}function kr(e,t){const n=e&&wr[e];if(n)for(const i of n)try{i(t)}catch(t){r&&p.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Re(i)}\nError:`,t)}}function Tr(){"console"in s&&l.forEach((function(e){e in s.console&&P(s.console,e,(function(t){return u[e]=t,function(...t){kr("console",{args:t,level:e});const n=u[e];n&&n.apply(s.console,t)}}))}))}function xr(e){const t="fetch";Sr(t,e),Er(t,Cr)}function Cr(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Gt())return!1;if(qt(jt.fetch))return!0;let e=!1;const t=jt.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=qt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&P(s,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Ar(t),method:Nr(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Ar(t),method:Nr(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:1e3*ce()};kr("fetch",{...i});const a=(new Error).stack;return e.apply(s,t).then((e=>(kr("fetch",{...i,endTimestamp:1e3*ce(),response:e}),e)),(e=>{throw kr("fetch",{...i,endTimestamp:1e3*ce(),error:e}),m(e)&&void 0===e.stack&&(e.stack=a,M(e,"framesToPop",1)),e}))}}))}function Nr(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Ar(e){return"string"==typeof e?e:e?Nr(e,"url")?e.url:e.toString?e.toString():"":""}const Ir=["fatal","error","warning","log","info","debug"];function Dr(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Or=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";Sr(t,e),Er(t,Tr)}(function(e){return function(t){if(Te()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":Ir.includes(r)?r:"log"),message:D(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${D(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}br(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Te()!==e)return;let r,i,a="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>1024&&(Bn&&p.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=N(t,{keyAttrs:a,maxStringLength:o}),i=function(e){if(!x.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(e){r=""}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),br(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),on("dom",n),sn("dom",lr)),t.xhr&&fr(function(e){return function(t){if(Te()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[gr];if(!n||!r||!i)return;const{method:a,url:o,status_code:s,body:c}=i;br({category:"xhr",data:{method:a,url:o,status_code:s},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&xr(function(e){return function(t){if(Te()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)br({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;br({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&yn(function(e){return function(t){if(Te()!==e)return;let n=t.from,r=t.to;const i=Dr(Xn.location.href);let a=n?Dr(n):void 0;const o=Dr(r);a&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),br({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Te()===e&&br({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:B(t)},{event:t})}}(e))}}},Pr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Mr=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&P(Xn,"setTimeout",Rr),t.setInterval&&P(Xn,"setInterval",Rr),t.requestAnimationFrame&&P(Xn,"requestAnimationFrame",$r),t.XMLHttpRequest&&"XMLHttpRequest"in Xn&&P(XMLHttpRequest.prototype,"send",Lr);const e=t.eventTarget;e&&(Array.isArray(e)?e:Pr).forEach(zr)}}};function Rr(e){return function(...t){const n=t[0];return t[0]=nr(n,{mechanism:{data:{function:Re(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function $r(e){return function(t){return e.apply(this,[nr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Re(e)},handled:!1,type:"instrument"}})])}}function Lr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&P(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Re(t)},handled:!1,type:"instrument"}},r=$(t);return r&&(n.mechanism.data.handler=Re(r)),nr(t,n)}))})),e.apply(this,t)}}function zr(e){const t=Xn,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(P(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=nr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Re(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,nr(r,{mechanism:{data:{function:"addEventListener",handler:Re(r),target:e},handled:!1,type:"instrument"}}),i])}})),P(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,i,r)}})))}let Fr=null;function Vr(e){const t="error";Sr(t,e),Er(t,Hr)}function Hr(){Fr=s.onerror,s.onerror=function(e,t,n,r,i){return kr("error",{column:r,error:i,line:n,msg:e,url:t}),!(!Fr||Fr.__SENTRY_LOADER__)&&Fr.apply(this,arguments)},s.onerror.__SENTRY_INSTRUMENTED__=!0}let Ur=null;function Wr(e){const t="unhandledrejection";Sr(t,e),Er(t,Br)}function Br(){Ur=s.onunhandledrejection,s.onunhandledrejection=function(e){return kr("unhandledrejection",e),!(Ur&&!Ur.__SENTRY_LOADER__)||Ur.apply(this,arguments)},s.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const jr=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){Vr((t=>{const{stackParser:n,attachStacktrace:r}=qr();if(Te()!==e||tr())return;const{msg:i,url:a,line:o,column:s,error:c}=t,l=function(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=v(t)&&t.length>0?t:function(){try{return x.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:d,function:Ie,in_app:!0,lineno:u}),e}(Qn(n,c||i,void 0,r,!1),a,o,s);l.level="error",Vt(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),Gr("onerror")),t.onunhandledrejection&&(function(e){Wr((t=>{const{stackParser:n,attachStacktrace:r}=qr();if(Te()!==e||tr())return;const i=function(e){if(w(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),a=w(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Qn(n,i,void 0,r,!0);a.level="error",Vt(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),Gr("onunhandledrejection"))}}};function Gr(e){Bn&&p.log(`Global Handler attached: ${e}`)}function qr(){const e=Te();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Yr=()=>({name:"HttpContext",preprocessEvent(e){if(!Xn.navigator&&!Xn.location&&!Xn.document)return;const t=e.request&&e.request.url||Xn.location&&Xn.location.href,{referrer:n}=Xn.document||{},{userAgent:r}=Xn.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}});function Kr(e,t,n=250,r,i,a,o){if(!(a.exception&&a.exception.values&&o&&k(o.originalException,Error)))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,l;s&&(a.exception.values=(c=Qr(e,t,i,o.originalException,r,a.exception.values,s,0),l=n,c.map((e=>(e.value&&(e.value=I(e.value,l)),e)))))}function Qr(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(k(r[i],Error)){Jr(o,s);const a=e(t,r[i]),l=c.length;Zr(a,i,l,s),c=Qr(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,a)=>{if(k(r,Error)){Jr(o,s);const l=e(t,r),u=c.length;Zr(l,`errors[${a}]`,u,s),c=Qr(e,t,n,r,i,[l,...c],l,u)}})),c}function Jr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Zr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Xr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){const a=i.getOptions();Kr(jn,a.stackParser,a.maxValueLength,n,t,e,r)}}};function ei(e,t,n,r){const i={filename:e,function:""===t?Ie:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const ti=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ni=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ri=/\((\S*)(?::(\d+))(?::(\d+))\)/,ii=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ai=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oi=Pe([30,e=>{const t=ti.exec(e);if(t){const[,e,n,r]=t;return ei(e,Ie,+n,+r)}const n=ni.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=ri.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=si(n[1]||Ie,n[2]);return ei(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=ii.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=ai.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Ie;return[n,e]=si(n,e),ei(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),si=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ie,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};const ci="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,li={};function ui(e){li[e]=void 0}const di=6e4;const pi=64;function hi(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new Ye(((n,r)=>{let i=t.length;if(!i)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Ge(e).then((()=>{--i||(clearTimeout(a),n(!0))}),r)}))}))}}}(e.bufferSize||pi)){let r={};return{send:function(i){const a=[];if(Nn(i,((t,n)=>{const i=Mn(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=mi(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(t)})),0===a.length)return Ge({});const o=xn(i[0],a),s=t=>{Nn(o,((n,r)=>{const i=mi(n,r);e.recordDroppedEvent(t,Mn(r),i)}))};return n.add((()=>t({body:In(o)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&K&&p.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n,,,a]=e.split(":",5),o=parseInt(t,10),s=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))"metric_bucket"===e&&a&&!a.split(";").includes("custom")||(i[e]=r+s);else i.all=r+s}else o?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?di:r-t}(o,r):429===t&&(i.all=r+6e4);return i}(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof $n)return K&&p.error("Skipped sending event because buffer is full."),s("queue_overflow"),Ge({});throw e}))},flush:e=>n.drain(e)}}function mi(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function gi(e,t=function(e){const t=li[e];if(t)return t;let n=bn[e];if((r=n)&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(r.toString()))return li[e]=n.bind(bn);var r;const i=bn.document;if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(n=r[e]),i.head.removeChild(t)}catch(t){ci&&en.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?li[e]=n.bind(bn):n}("fetch")){let n=0,r=0;return hi(e,(function(i){const a=i.body.length;n+=a,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return ui("fetch"),qe("No fetch implementation available");try{return t(e.url,o).then((e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return ui("fetch"),n-=a,r--,qe(e)}}))}function fi(e={}){const t=function(e={}){return{defaultIntegrations:[te(),Ne(),Mr(),Or(),jr(),Xr(),Le(),Yr()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Xn.SENTRY_RELEASE&&Xn.SENTRY_RELEASE.id?Xn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(e);if(function(){const e=Xn[Xn.chrome?"chrome":"browser"],t=e&&e.runtime&&e.runtime.id,n=Xn.location&&Xn.location.href||"",r=!!t&&Xn===Xn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some((e=>n.startsWith(`${e}//`)));return!!t&&!r}())return void d((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));Bn&&(Gt()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(r=t.stackParser||oi,Array.isArray(r)?Pe(...r):r),integrations:J(t),transport:t.transport||gi};var r;(function(e,t){!0===t.debug&&(K?p.enable():d((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Ee().update(t.initialScope);const n=new e(t);!function(e){Ee().setClient(e)}(n),n.init()})(rr,n),t.autoSessionTracking&&(void 0!==Xn.document?(Ht({ignoreDuration:!0}),Bt(),yn((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ht({ignoreDuration:!0}),Bt())}))):Bn&&p.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}const _i="8.9.2";function vi(){return bi(Qt),Qt}function bi(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Kt,t[Kt]=t[Kt]||{}}function wi(){return{traceId:ir(),spanId:ir().substring(16)}}const yi="_sentrySpan";function Si(e,t){t?gn(e,yi,t):delete e[yi]}function Ei(e){return e[yi]}class ki{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=wi()}clone(){const e=new ki;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Si(e,Ei(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||pr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ir()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Ti?[t.getScopeData(),t.getRequestSession()]:hn(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Si(this,void 0),this._attachments=[],this._propagationContext=wi(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:dr(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ei(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:ir();if(!this._client)return en.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:ir();if(!this._client)return en.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:ir();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(en.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Ti=ki;class xi{constructor(e,t){let n,r;n=e||new Ti,r=t||new Ti,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n);var r}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function Ci(){const e=bi(vi());return e.stack=e.stack||new xi(Jt("defaultCurrentScope",(()=>new Ti)),Jt("defaultIsolationScope",(()=>new Ti)))}function Ni(e){return Ci().withScope(e)}function Ai(e,t){const n=Ci();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Ii(e){return Ci().withScope((()=>e(Ci().getIsolationScope())))}function Di(e){const t=bi(e);return t.acs?t.acs:{withIsolationScope:Ii,withScope:Ni,withSetScope:Ai,withSetIsolationScope:(e,t)=>Ii(t),getCurrentScope:()=>Ci().getScope(),getIsolationScope:()=>Ci().getIsolationScope()}}function Oi(){return Di(vi()).getCurrentScope()}function Pi(){return Oi().getClient()}const Mi="_sentryMetrics";function Ri(e){const t=e[Mi];if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(fn(r));return n}const $i="sentry.source",Li="sentry.sample_rate",zi="sentry.op",Fi="sentry.origin",Vi="sentry.measurement_unit",Hi="sentry.measurement_value",Ui="sentry.exclusive_time",Wi=0,Bi=1,ji=1;function Gi(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s}=Ki(e);return fn({parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s})}function qi(e){return"number"==typeof e?Yi(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Yi(e.getTime()):pr()}function Yi(e){return e>9999999999?e/1e3:e}function Ki(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:c}=e;return fn({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:qi(i),timestamp:qi(o)||void 0,status:Ji(c),op:r[zi],origin:r[Fi],_metrics_summary:Ri(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Qi(e){const{traceFlags:t}=e.spanContext();return t===ji}function Ji(e){if(e&&e.code!==Wi)return e.code===Bi?"ok":e.message||"unknown_error"}const Zi="_sentryChildSpans",Xi="_sentryRootSpan";function ea(e,t){const n=e[Xi]||e;gn(t,Xi,n),e[Zi]?e[Zi].add(t):gn(e,Zi,new Set([t]))}function ta(e){return e[Xi]||e}function na(){const e=Di(vi());return e.getActiveSpan?e.getActiveSpan():Ei(Oi())}function ra(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||function(){const e=Pi();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}const ia="production",aa="_frozenDsc";function oa(e,t){gn(e,aa,t)}function sa(e){const t=Pi();if(!t)return{};const n=function(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=fn({environment:n.environment||ia,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}(Ki(e).trace_id||"",t),r=ta(e);if(!r)return n;const i=r[aa];if(i)return i;const a=Ki(r),o=a.data||{},s=o[Li];null!=s&&(n.sample_rate=`${s}`);const c=o[$i];return c&&"url"!==c&&(n.transaction=a.description),n.sampled=String(Qi(r)),t.emit("createDsc",n),n}const ca="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;class la{constructor(e={}){this._traceId=e.traceId||ir(),this._spanId=e.spanId||ir().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}function ua(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}function da(e){return[{type:"span"},e]}function pa(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[Vi],i=n[Hi];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})})),t}const ha="_sentryScope",ma="_sentryIsolationScope";function ga(e){return{scope:e[ha],isolationScope:e[ma]}}class fa{constructor(e={}){this._traceId=e.traceId||ir(),this._spanId=e.spanId||ir().substring(16),this._startTime=e.startTimestamp||pr(),this._attributes={},this.setAttributes({[Fi]:"manual",[zi]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?ji:0}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=qi(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=qi(e),function(e){if(!ca)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Ki(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${ta(e)===e?"root ":""}span "${t}" with ID ${r}`;en.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return fn({data:this._attributes,description:this._name,op:this._attributes[zi],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ji(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Fi],_metrics_summary:Ri(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[Ui],measurements:pa(this._events),is_segment:this._isStandaloneSpan&&ta(this)===this||void 0,segment_id:this._isStandaloneSpan?ta(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){ca&&en.log("[Tracing] Adding an event to span:",e);const r=_a(t)?t:n||pr(),i=_a(t)?{}:t||{},a={name:e,time:qi(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Pi();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==ta(this))return;if(this._isStandaloneSpan)return void function(e){const t=Pi();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{ca&&en.error("Error while sending span:",e)}))}(function(e,t){const n=sa(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,a={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!i&&r&&{dsn:ua(r)}},o=t&&t.getOptions().beforeSendSpan,s=o?e=>o(Ki(e)):e=>Ki(e),c=[];for(const t of e){const e=s(t);e&&c.push(da(e))}return function(e,t=[]){return[e,t]}(a,c)}([this],e));const t=this._convertSpanToTransaction();t&&(ga(this).scope||Oi()).captureEvent(t)}_convertSpanToTransaction(){if(!va(Ki(this)))return;this._name||(ca&&en.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=ga(this),n=(e||Oi()).getClient()||Pi();if(!0!==this._sampled)return ca&&en.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=function(e){const t=new Set;return function e(n){if(!t.has(n)&&Qi(n)){t.add(n);const r=n[Zi]?Array.from(n[Zi]):[];for(const t of r)e(t)}}(e),Array.from(t)}(this).filter((e=>e!==this&&!function(e){return e instanceof fa&&e.isStandaloneSpan()}(e))).map((e=>Ki(e))).filter(va),i=this._attributes[$i],a={contexts:{trace:Gi(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...fn({dynamicSamplingContext:sa(this)})},_metrics_summary:Ri(this),...i&&{transaction_info:{source:i}}},o=pa(this._events);return o&&Object.keys(o).length&&(ca&&en.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function _a(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function va(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const ba="__SENTRY_SUPPRESS_TRACING__";function wa(e){const t=ya();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=qi(e.startTime),delete n.startTime,n}return t}(e),r=e.scope||Oi(),i=function(e){const t=Ei(e);if(!t)return;const n=Pi();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?ta(t):t}(r);return e.onlyIfParent&&!i?new la:function({parentSpan:e,spanContext:t,forceTransaction:n,scope:r}){if(!ra())return new la;const i=Di(vi()).getIsolationScope();let a;if(e&&!n)a=function(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[ba]&&Qi(e),o=a?new fa({...n,parentSpanId:r,traceId:i,sampled:a}):new la({traceId:i});ea(e,o);const s=Pi();return s&&(s.emit("spanStart",o),n.endTimestamp&&s.emit("spanEnd",o)),o}(e,r,t),ea(e,a);else if(e){const n=sa(e),{traceId:i,spanId:o}=e.spanContext(),s=Qi(e);a=Sa({traceId:i,parentSpanId:o,...t},r,s),oa(a,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Sa({traceId:e,parentSpanId:o,...t},r,s),n&&oa(a,n)}return function(e){if(!ca)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ki(e),{spanId:i}=e.spanContext(),a=Qi(e),o=ta(e),s=o===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){const{op:e,description:t}=Ki(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}en.log(`${c}\n ${l.join("\n ")}`)}(a),function(e,t,n){e&&(gn(e,ma,n),gn(e,ha,t))}(a,r,i),a}({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r})}function ya(){return Di(vi())}function Sa(e,t,n){const r=Pi(),i=r&&r.getOptions()||{},{name:a="",attributes:o}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[ba]?[!1]:function(e,t){if(!ra(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const r=function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;ca&&en.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}(n);return void 0===r?(ca&&en.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()";try{let n=e;const r=5,i=[];let a=0,o=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||ka;for(;n&&a++1&&o+i.length*c+l.length>=d));)i.push(l),o+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return""}}function xa(e,t){const n=e,r=[];let i,a,o,s,c;if(!n||!n.tagName)return"";if(Ea.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&pn(i))for(a=i.split(/\s+/),c=0;c{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i||0),(a||void 0===i)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},Aa=()=>bn.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ia=()=>{const e=Aa();return e&&e.activationStart||0},Da=(e,t)=>{const n=Aa();let r="navigate";return n&&(bn.document&&bn.document.prerendering||Ia()>0?r="prerender":bn.document&&bn.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Oa=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Pa=e=>{const t=t=>{("pagehide"===t.type||bn.document&&"hidden"===bn.document.visibilityState)&&e(t)};bn.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Ma=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let Ra=-1;const $a=e=>{"hidden"===bn.document.visibilityState&&Ra>-1&&(Ra="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",$a,!0),removeEventListener("prerenderingchange",$a,!0))},La=()=>(bn.document&&Ra<0&&(Ra="hidden"!==bn.document.visibilityState||bn.document.prerendering?1/0:0,addEventListener("visibilitychange",$a,!0),addEventListener("prerenderingchange",$a,!0)),{get firstHiddenTime(){return Ra}}),za=e=>{bn.document&&bn.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Fa=[1800,3e3],Va=[.1,.25],Ha=(e,t={})=>{((e,t={})=>{za((()=>{const n=La(),r=Da("FCP");let i;const a=Oa("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime{const n=Da("CLS",0);let r,i=0,a=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=a[0],n=a[a.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e])}})),i>n.value&&(n.value=i,n.entries=a,r())},s=Oa("layout-shift",o);s&&(r=Na(e,n,Va,t.reportAllChanges),Pa((()=>{o(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},Ua=[100,300],Wa=(e,t={})=>{za((()=>{const n=La(),r=Da("FID");let i;const a=e=>{e.startTime{e.forEach(a)},s=Oa("first-input",o);i=Na(e,r,Ua,t.reportAllChanges),s&&Pa(Ma((()=>{o(s.takeRecords()),s.disconnect()})))}))};let Ba=0,ja=1/0,Ga=0;const qa=e=>{e.forEach((e=>{e.interactionId&&(ja=Math.min(ja,e.interactionId),Ga=Math.max(Ga,e.interactionId),Ba=Ga?(Ga-ja)/7+1:0)}))};let Ya;const Ka=()=>{"interactionCount"in performance||Ya||(Ya=Oa("event",qa,{type:"event",buffered:!0,durationThreshold:0}))},Qa=[200,500],Ja=()=>(Ya?Ba:performance.interactionCount||0)-0,Za=[],Xa={},eo=e=>{const t=Za[Za.length-1],n=Xa[e.interactionId];if(n||Za.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Xa[t.id]=t,Za.push(t)}Za.sort(((e,t)=>t.latency-e.latency)),Za.splice(10).forEach((e=>{delete Xa[e.id]}))}},to=(e,t={})=>{za((()=>{Ka();const n=Da("INP");let r;const i=e=>{e.forEach((e=>{e.interactionId&&eo(e),"first-input"===e.entryType&&!Za.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&eo(e)}));const t=(()=>{const e=Math.min(Za.length-1,Math.floor(Ja()/50));return Za[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},a=Oa("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=Na(e,n,Qa,t.reportAllChanges),a&&("PerformanceEventTiming"in bn&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Pa((()=>{i(a.takeRecords()),n.value<0&&Ja()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},no=[2500,4e3],ro={},io=(e,t={})=>{za((()=>{const n=La(),r=Da("LCP");let i;const a=e=>{const t=e[e.length-1];t&&t.startTime{ro[r.id]||(a(o.takeRecords()),o.disconnect(),ro[r.id]=!0,i(!0))}));["keydown","click"].forEach((e=>{bn.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),Pa(n)}}))},ao=[800,1800],oo=e=>{bn.document&&bn.document.prerendering?za((()=>oo(e))):bn.document&&"complete"!==bn.document.readyState?addEventListener("load",(()=>oo(e)),!0):setTimeout(e,0)},so=(e,t={})=>{const n=Da("TTFB"),r=Na(e,n,ao,t.reportAllChanges);oo((()=>{const e=Aa();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-Ia(),0),n.entries=[e],r(!0)}}))},co={},lo={};let uo,po,ho,mo,go;function fo(e,t){return ko(e,t),lo[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),Oa(e,(t=>{_o(e,{entries:t})}),t)}(e),lo[e]=!0),To(e,t)}function _o(e,t){const n=co[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){ci&&en.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${nn(r)}\nError:`,t)}}function vo(){return Ha((e=>{_o("cls",{metric:e}),uo=e}),{reportAllChanges:!0})}function bo(){return Wa((e=>{_o("fid",{metric:e}),po=e}))}function wo(){return io((e=>{_o("lcp",{metric:e}),ho=e}),{reportAllChanges:!0})}function yo(){return so((e=>{_o("ttfb",{metric:e}),mo=e}))}function So(){return to((e=>{_o("inp",{metric:e}),go=e}))}function Eo(e,t,n,r,i=!1){let a;return ko(e,t),lo[e]||(a=n(),lo[e]=!0),r&&t({metric:r}),To(e,t,i?a:void 0)}function ko(e,t){co[e]=co[e]||[],co[e].push(t)}function To(e,t,n){return()=>{n&&n();const r=co[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function xo(e){return"number"==typeof e&&isFinite(e)}function Co(e,t,n,{...r}){const i=Ki(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),function(e,t){const n=ya();return n.withActiveSpan?n.withActiveSpan(e,t):function(...e){const t=Di(vi());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}((n=>(Si(n,e||void 0),t(n))))}(e,(()=>{const e=wa({startTime:t,...r});return e&&e.end(n),e}))}function No(){return bn&&bn.addEventListener&&bn.performance}function Ao(e){return e/1e3}const Io=2147483647;let Do,Oo,Po=0,Mo={};function Ro(){const e=No();if(e&&mr){e.mark&&bn.performance.mark("sentry-tracing-init");const t=Eo("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ao(mr),r=Ao(t.startTime);ci&&en.log("[Measurements] Adding FID"),Mo.fid={value:e.value,unit:"millisecond"},Mo["mark.fid"]={value:n+r,unit:"second"}}),bo,po),n=function(e,t=!1){return Eo("cls",e,vo,uo,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ci&&en.log("[Measurements] Adding CLS"),Mo.cls={value:e.value,unit:""},Oo=t)}),!0),r=function(e,t=!1){return Eo("lcp",e,wo,ho,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ci&&en.log("[Measurements] Adding LCP"),Mo.lcp={value:e.value,unit:"millisecond"},Do=t)}),!0),i=Eo("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(ci&&en.log("[Measurements] Adding TTFB"),Mo.ttfb={value:e.value,unit:"millisecond"})}),yo,mo);return()=>{t(),n(),r(),i()}}return()=>{}}function $o(e,t,n,r,i,a){const o=a?t[a]:t[`${n}End`],s=t[`${n}Start`];s&&o&&Co(e,r+Ao(s),r+Ao(o),{op:"browser",name:i||n,attributes:{[Fi]:"auto.ui.browser.metrics"}})}function Lo(e,t,n,r){const i=t[n];null!=i&&i{const n=e.attributes||{},r=n["sentry.measurement_unit"],i=n["sentry.measurement_value"];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})})),t}const Bo="_sentryScope",jo="_sentryIsolationScope";function Go(e){return{scope:e[Bo],isolationScope:e[jo]}}class qo{constructor(e={}){this._traceId=e.traceId||U(),this._spanId=e.spanId||U().substring(16),this._startTime=e.startTimestamp||ce(),this._attributes={},this.setAttributes({[Xe]:"manual",[Ze]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?ft:0}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=wt(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=wt(e),function(e){if(!K)return;const{description:t="< unknown name >",op:n="< unknown op >"}=St(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${At(e)===e?"root ":""}span "${t}" with ID ${r}`;p.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return V({data:this._attributes,description:this._name,op:this._attributes[Ze],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:kt(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Xe],_metrics_summary:dt(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes["sentry.exclusive_time"],measurements:Wo(this._events),is_segment:this._isStandaloneSpan&&At(this)===this||void 0,segment_id:this._isStandaloneSpan?At(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){K&&p.log("[Tracing] Adding an event to span:",e);const r=Yo(t)?t:n||ce(),i=Yo(t)?{}:t||{},a={name:e,time:wt(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Te();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==At(this))return;if(this._isStandaloneSpan)return void function(e){const t=Te();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{K&&p.error("Error while sending span:",e)}))}(function(e,t){const n=Mt(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,a={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!i&&r&&{dsn:kn(r)}},o=t&&t.getOptions().beforeSendSpan,s=o?e=>o(St(e)):e=>St(e),c=[];for(const t of e){const e=s(t);e&&c.push(Dn(e))}return xn(a,c)}([this],e));const t=this._convertSpanToTransaction();t&&(Go(this).scope||Ee()).captureEvent(t)}_convertSpanToTransaction(){if(!Ko(St(this)))return;this._name||(K&&p.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=Go(this),n=(e||Ee()).getClient()||Te();if(!0!==this._sampled)return K&&p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=Nt(this).filter((e=>e!==this&&!function(e){return e instanceof qo&&e.isStandaloneSpan()}(e))).map((e=>St(e))).filter(Ko),i=this._attributes[Qe],a={contexts:{trace:_t(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...V({dynamicSamplingContext:Mt(this)})},_metrics_summary:dt(this),...i&&{transaction_info:{source:i}}},o=Wo(this._events);return o&&Object.keys(o).length&&(K&&p.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function Yo(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function Ko(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const Qo="__SENTRY_SUPPRESS_TRACING__";function Jo(e){const t=Se(re());if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=wt(e.startTime),delete n.startTime,n}return t}(e),r=e.scope||Ee(),i=function(e){const t=me(e);if(!t)return;const n=Te();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?At(t):t}(r);return e.onlyIfParent&&!i?new Uo:function({parentSpan:e,spanContext:t,forceTransaction:n,scope:r}){if(!Ho())return new Uo;const i=ke();let a;if(e&&!n)a=function(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[Qo]&&Et(e),o=a?new qo({...n,parentSpanId:r,traceId:i,sampled:a}):new Uo({traceId:i});Ct(e,o);const s=Te();return s&&(s.emit("spanStart",o),n.endTimestamp&&s.emit("spanEnd",o)),o}(e,r,t),Ct(e,a);else if(e){const n=Mt(e),{traceId:i,spanId:o}=e.spanContext(),s=Et(e);a=Zo({traceId:i,parentSpanId:o,...t},r,s),Ot(a,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Zo({traceId:e,parentSpanId:o,...t},r,s),n&&Ot(a,n)}return function(e){if(!K)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=St(e),{spanId:i}=e.spanContext(),a=Et(e),o=At(e),s=o===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){const{op:e,description:t}=St(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}p.log(`${c}\n ${l.join("\n ")}`)}(a),function(e,t,n){e&&(M(e,jo,n),M(e,Bo,t))}(a,r,i),a}({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r})}function Zo(e,t,n){const r=Te(),i=r&&r.getOptions()||{},{name:a="",attributes:o}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[Qo]?[!1]:function(e,t){if(!Ho(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const r=Fn(n);return void 0===r?(K&&p.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random(){!i&&0===n.size&&o&&(a="idleTimeout",g.end(e))}),s)}function v(e){r=setTimeout((()=>{!i&&o&&(a="heartbeatFailed",g.end(e))}),l)}function b(e){i=!0,n.clear(),he(h,m);const t=St(g),{start_timestamp:r}=t;if(!r)return;(t.data||{})[et]||g.setAttribute(et,a),p.log(`[Tracing] Idle span "${t.op}" finished`);const o=Nt(g).filter((e=>e!==g));let l=0;o.forEach((t=>{t.isRecording()&&(t.setStatus({code:mt,message:"cancelled"}),t.end(e),K&&p.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=St(t),{timestamp:r=0,start_timestamp:i=0}=n,a=i<=e,o=r-i<=(c+s)/1e3;if(K){const e=JSON.stringify(t,void 0,2);a?o||p.log("[Tracing] Discarding span since it finished after idle span final timeout",e):p.log("[Tracing] Discarding span since it happened after idle span was finished",e)}o&&a||(function(e,t){e[Tt]&&e[Tt].delete(t)}(g,t),l++)})),l>0&&g.setAttribute("sentry.idle_span_discarded_spans",l)}return g.end=new Proxy(g.end,{apply(e,t,n){u&&u(g);const[r,...i]=n,a=wt(r||ce()),o=Nt(g).filter((e=>e!==g));if(!o.length)return b(a),Reflect.apply(e,t,[a,...i]);const s=o.map((e=>St(e).timestamp)).filter((e=>!!e)),l=s.length?Math.max(...s):void 0,d=St(g).start_timestamp,p=Math.min(d?d+c/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return b(p),Reflect.apply(e,t,[p,...i])}}),d.on("spanStart",(e=>{var t;i||e===g||St(e).timestamp||Nt(g).includes(e)&&(t=e.spanContext().spanId,f(),n.set(t,!0),v(ce()+l/1e3))})),d.on("spanEnd",(e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&_(ce()+s/1e3))})),d.on("idleSpanEnableAutoFinish",(e=>{e===g&&(o=!0,_(),n.size&&v())})),t.disableAutoFinish||_(),setTimeout((()=>{i||(g.setStatus({code:mt,message:"deadline_exceeded"}),a="finalTimeout",g.end())}),c),g}let ts=!1;function ns(){const e=It(),t=e&&At(e);if(t){const e="internal_error";K&&p.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:mt,message:e})}}ns.tag="sentry_tracingErrorCallback";const rs={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function is(e){const{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:i,tracePropagationTargets:a}={traceFetch:rs.traceFetch,traceXHR:rs.traceXHR,...e},o="function"==typeof r?r:e=>!0,s=e=>function(e,t){const n=Xn.location&&Xn.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}const a=r.origin===i;return t?O(r.toString(),t)||a&&O(r.pathname,t):a}{const n=!!e.match(/^\/(?!\/)/);return t?O(e,t):n}}(e,a),c={};t&&xr((e=>{const t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const a=Ho()&&t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(function(e,t){if(t.response){gt(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:mt,message:"internal_error"});e.end()}(n,e),delete r[t]))}const o=Ee(),s=Te(),{method:c,url:l}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(l),d=u?Dr(u).host:void 0,p=!!It(),h=a&&p?Jo({name:`${c} ${l}`,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":d,[Xe]:i,[Ze]:"http.client"}}):new Uo;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)&&s){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,i){const a=ke(),{traceId:o,spanId:s,sampled:c,dsc:l}={...a.getPropagationContext(),...n.getPropagationContext()},u=i?bt(i):lt(o,s,c),d=at(l||(i?Mt(i):Pt(o,t))),p=r.headers||("undefined"!=typeof Request&&k(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&k(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",u),d&&e.append(tt,d),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",u]];return d&&e.push([tt,d]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...p,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:d}}(t,s,o,n,Ho()&&p?h:void 0)}return h}(e,o,s,c);if(t){const n=ss(e.fetchData.url),r=n?Dr(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}i&&t&&as(t)})),n&&fr((e=>{const t=function(e,t,n,r){const i=e.xhr,a=i&&i[gr];if(!i||i.__sentry_own_request__||!a)return;const o=Ho()&&t(a.url);if(e.endTimestamp&&o){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==a.status_code&&(gt(t,a.status_code),t.end(),delete r[e]))}const s=ss(a.url),c=s?Dr(s).host:void 0,l=!!It(),u=o&&l?Jo({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":s,url:a.url,"server.address":c,[Xe]:"auto.http.browser",[Ze]:"http.client"}}):new Uo;i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u;const d=Te();return i.setRequestHeader&&n(a.url)&&d&&function(e,t,n){const r=Ee(),i=ke(),{traceId:a,spanId:o,sampled:s,dsc:c}={...i.getPropagationContext(),...r.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(tt,n)}catch(e){}}(e,n&&Ho()?bt(n):lt(a,o,s),at(c||(n?Mt(n):Pt(a,t))))}(i,d,Ho()&&l?u:void 0),u}(e,o,s,c);i&&t&&as(t)}))}function as(e){const{url:t}=St(e).data||{};if(!t||"string"!=typeof t)return;const n=fo("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ue?[...r,["http.request.redirect_start",os(e.redirectStart)],["http.request.fetch_start",os(e.fetchStart)],["http.request.domain_lookup_start",os(e.domainLookupStart)],["http.request.domain_lookup_end",os(e.domainLookupEnd)],["http.request.connect_start",os(e.connectStart)],["http.request.secure_connection_start",os(e.secureConnectionStart)],["http.request.connection_end",os(e.connectEnd)],["http.request.request_start",os(e.requestStart)],["http.request.response_start",os(e.responseStart)],["http.request.response_end",os(e.responseEnd)]]:r})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function os(e=0){return((ue||performance.timeOrigin)+e)/1e3}function ss(e){try{return new URL(e,Xn.location.origin).href}catch(e){return}}const cs={...Xo,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...rs},ls=(e={})=>{ts||(ts=!0,Vr(ns),Wr(ns));const{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:r},beforeStartSpan:i,idleTimeout:a,finalTimeout:o,childSpanTimeout:s,markBackgroundSpan:c,traceFetch:l,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:h,instrumentPageLoad:m,instrumentNavigation:g}={...cs,...e},f=Ro();t&&function(){if(No()&&mr){const e=Eo("inp",(({metric:e})=>{const t=Pi();if(!t||null==e.value)return;const n=e.entries.find((t=>t.duration===e.value&&Vo[t.name]));if(!n)return;const{interactionId:r}=n,i=Vo[n.name],a=t.getOptions(),o=Ao(mr+n.startTime),s=Ao(e.value),c=Oi(),l=na(),u=l?ta(l):void 0,d=(null!=r?Fo.get(r):void 0)||(u?Ki(u).description:c.getScopeData().transactionName),p=c.getUser(),h=t.getIntegrationByName("Replay"),m=h&&h.getReplayId(),g=void 0!==p?p.email||p.id||p.ip_address:void 0;let f;try{f=c.getScopeData().contexts.profile.profile_id}catch(e){}const _=wa({name:Ta(n.target),op:`ui.interaction.${i}`,attributes:fn({release:a.release,environment:a.environment,transaction:d,[Ui]:e.value,[Fi]:"auto.http.browser.inp",user:g||void 0,profile_id:f||void 0,replay_id:m||void 0}),startTime:o,experimental:{standalone:!0}});_.addEvent("inp",{[Vi]:"millisecond",[Hi]:e.value}),_.end(o+s)}),So,go);return()=>{e()}}}(),n&&fo("longtask",(({entries:e})=>{for(const t of e){if(!na())return;const e=Ao(mr+t.startTime),n=Ao(t.duration),r=wa({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[Fi]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}})),r&&fo("event",(({entries:e})=>{for(const t of e){if(!na())return;if("click"===t.name){const e=Ao(mr+t.startTime),n=Ao(t.duration),r={name:Ta(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[Fi]:"auto.ui.browser.metrics"}},i=Ca(t.target);i&&(r.attributes["ui.component_name"]=i);const a=wa(r);a&&a.end(e+n)}}}));const _={name:void 0,source:void 0};function v(e,t){const n="pageload"===t.op,r=i?i(t):t,c=r.attributes||{};t.name!==r.name&&(c[Qe]="custom",r.attributes=c),_.name=r.name,_.source=c[Qe];const l=es(r,{idleTimeout:a,finalTimeout:o,childSpanTimeout:s,disableAutoFinish:n,beforeSpanEnd:e=>{f(),function(e){const t=No();if(!t||!bn.performance.getEntries||!mr)return;ci&&en.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ao(mr),r=t.getEntries(),{op:i,start_timestamp:a}=Ki(e);if(r.slice(Po).forEach((t=>{const r=Ao(t.startTime),o=Ao(t.duration);if(!("navigation"===i&&a&&n+r{$o(e,t,r,n)})),$o(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),$o(e,t,"fetch",n,"cache","domainLookupStart"),$o(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Co(e,n+Ao(t.requestStart),n+Ao(t.responseEnd),{op:"browser",name:"request",attributes:{[Fi]:"auto.ui.browser.metrics"}}),Co(e,n+Ao(t.responseStart),n+Ao(t.responseEnd),{op:"browser",name:"response",attributes:{[Fi]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const a=i+n;Co(e,a,a+r,{name:t.name,op:t.entryType,attributes:{[Fi]:"auto.resource.browser.metrics"}})}(e,t,r,o,n);const i=La(),a=t.startTime{if(!Mo[e]||!a||n>=a)return;const t=Mo[e].value,r=n+Ao(t),i=Math.abs(1e3*(r-a)),o=i-t;ci&&en.log(`[Measurements] Normalized ${e} from ${t} to ${i} (${o})`),Mo[e].value=i}));const t=Mo["mark.fid"];t&&Mo.fid&&(Co(e,t.value,t.value+Ao(Mo.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Fi]:"auto.ui.browser.metrics"}}),delete Mo["mark.fid"]),"fcp"in Mo||delete Mo.cls,Object.keys(Mo).forEach((e=>{!function(e,t,n){const r=na(),i=r&&ta(r);i&&i.addEvent(e,{[Hi]:t,[Vi]:n})}(e,Mo[e].value,Mo[e].unit)})),function(e){Do&&(ci&&en.log("[Measurements] Adding LCP Data"),Do.element&&e.setAttribute("lcp.element",Ta(Do.element)),Do.id&&e.setAttribute("lcp.id",Do.id),Do.url&&e.setAttribute("lcp.url",Do.url.trim().slice(0,200)),e.setAttribute("lcp.size",Do.size)),Oo&&Oo.sources&&(ci&&en.log("[Measurements] Adding CLS Data"),Oo.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ta(t.node)))))}(e)}Do=void 0,Oo=void 0,Mo={}}(e)}});function u(){["interactive","complete"].includes(Xn.document.readyState)&&e.emit("idleSpanEnableAutoFinish",l)}return n&&Xn.document&&(Xn.document.addEventListener("readystatechange",(()=>{u()})),u()),l}return{name:"BrowserTracing",afterAllSetup(e){let n,i=Xn.location&&Xn.location.href;e.on("startNavigationSpan",(t=>{Te()===e&&(n&&(Bn&&p.log(`[Tracing] Finishing current root span with op: ${St(n).op}`),n.end()),n=v(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if(Te()!==e)return;n&&(Bn&&p.log(`[Tracing] Finishing current root span with op: ${St(n).op}`),n.end());const i=ct(r.sentryTrace||us("sentry-trace"),r.baggage||us("baggage"));Ee().setPropagationContext(i),n=v(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=St(e).op;if(e!==At(e)||"navigation"!==t&&"pageload"!==t)return;const n=Ee(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:Et(e),dsc:r.dsc||Mt(e)})})),Xn.location&&(m&&function(e,t,n){e.emit("startPageLoadSpan",t,void 0),Ee().setTransactionName(t.name);const r=It();r&&St(r).op}(e,{name:Xn.location.pathname,startTime:ue?ue/1e3:void 0,attributes:{[Qe]:"url",[Xe]:"auto.pageload.browser"}}),g&&yn((({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,function(e,t){ke().setPropagationContext(ae()),Ee().setPropagationContext(ae()),e.emit("startNavigationSpan",t),Ee().setTransactionName(t.name);const n=It();n&&St(n).op}(e,{name:Xn.location.pathname,attributes:{[Qe]:"url",[Xe]:"auto.navigation.browser"}}))}))),c&&(Xn&&Xn.document?Xn.document.addEventListener("visibilitychange",(()=>{const e=It();if(!e)return;const t=At(e);if(Xn.document.hidden&&t){const e="cancelled",{op:n,status:r}=St(t);Bn&&p.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:mt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):Bn&&p.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(e,t,n,r){let i;Xn.document&&addEventListener("click",(()=>{const a="ui.action.click",o=It(),s=o&&At(o);if(s){const e=St(s).op;if(["navigation","pageload"].includes(e))return void(Bn&&p.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}i&&(i.setAttribute(et,"interactionInterrupted"),i.end(),i=void 0),r.name?i=es({name:r.name,op:a,attributes:{[Qe]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):Bn&&p.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)}),{once:!1,capture:!0})}(a,o,s,_),t&&function(e){const t=({entries:t})=>{t.forEach((t=>{if(!function(e){return"duration"in e}(t)||!e.name)return;const n=t.interactionId;if(null!=n&&!Fo.has(n)){if(zo.length>10){const e=zo.shift();Fo.delete(e)}zo.push(n),Fo.set(n,e.name)}}))};fo("event",t),fo("first-input",t)}(_),is({traceFetch:l,traceXHR:u,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}}};function us(e){const t=(n=`meta[name=${e}]`,x.document&&x.document.querySelector?x.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}const ds=window.wp.domReady;var ps=i.n(ds);const hs=window.wp.blockLibrary;var ms=i(1609),gs=i(7675),fs=i(6079),_s=i(8468);const vs=({isActive:e})=>((0,_s.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,_s.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);var bs=i(7143);const ws=window.wp.deprecated;var ys=i.n(ws);const Ss=window.wp.preferences,Es=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),ks=(e,t)=>({registry:n,dispatch:r})=>{t&&(n.select(Ss.store).get(e,"isComplementaryAreaVisible")||n.dispatch(Ss.store).set(e,"isComplementaryAreaVisible",!0),r({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},Ts=e=>({registry:t})=>{t.select(Ss.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(Ss.store).set(e,"isComplementaryAreaVisible",!1)},xs=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(Ss.store).get(e,"pinnedItems");!0!==r?.[t]&&n.dispatch(Ss.store).set(e,"pinnedItems",{...r,[t]:!0})},Cs=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(Ss.store).get(e,"pinnedItems");n.dispatch(Ss.store).set(e,"pinnedItems",{...r,[t]:!1})};function Ns(e,t){return function({registry:n}){ys()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(Ss.store).toggle(e,t)}}function As(e,t,n){return function({registry:r}){ys()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),r.dispatch(Ss.store).set(e,t,!!n)}}function Is(e,t){return function({registry:n}){ys()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(Ss.store).setDefaults(e,t)}}function Ds(e){return{type:"OPEN_MODAL",name:e}}function Os(){return{type:"CLOSE_MODAL"}}const Ps=(0,bs.createRegistrySelector)((e=>(t,n)=>{const r=e(Ss.store).get(n,"isComplementaryAreaVisible");if(void 0!==r)return!1===r?null:t?.complementaryAreas?.[n]})),Ms=(0,bs.createRegistrySelector)((e=>(t,n)=>{const r=e(Ss.store).get(n,"isComplementaryAreaVisible"),i=t?.complementaryAreas?.[n];return r&&void 0===i})),Rs=(0,bs.createRegistrySelector)((e=>(t,n,r)=>{var i;const a=e(Ss.store).get(n,"pinnedItems");return null===(i=a?.[r])||void 0===i||i})),$s=(0,bs.createRegistrySelector)((e=>(t,n,r)=>(ys()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(Ss.store).get(n,r))));function Ls(e,t){return e.activeModal===t}const zs=(0,bs.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return e[n]?e:{...e,[n]:r}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return{...e,[n]:r}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),Fs=(0,bs.createReduxStore)("core/interface",{reducer:zs,actions:e,selectors:t});(0,bs.register)(Fs);var Vs=i(6427),Hs=i(1032);const Us=()=>(0,ms.createElement)(_s.Fragment,null,(0,ms.createElement)(vs,{isActive:!0}),(0,ms.createElement)(Vs.SlotFillProvider,null,(0,ms.createElement)(Hs.Iy,null)));var Ws=i(1003),Bs=i(9772),js=i(6188);const Gs=()=>(0,ms.createElement)(Ws.I9,null,(0,ms.createElement)(Us,null));var qs=i(4371),Ys=i(8674),Ks=i(2202);const Qs=`wp-onboarding@${i(8330).rE}`;n.ZH?ps()((()=>{(function(e){const t={...e};!function(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:_i}))),version:_i}),e._metadata=i}(t,"react"),fi(t)})({dsn:window.nfdOnboarding.sentryInitDsnURL,integrations:[ls()],release:Qs,tracesSampleRate:1}),qs.y.initialize({namespace:Ks.XJ,urls:{single:(0,Ys.fG)("events",!1),batch:(0,Ys.fG)("events/batch",!1)},settings:{debounce:{time:3e3}}}),async function(e,t){const r=document.getElementById(e);(0,bs.dispatch)(gs.M).setRuntime(t),t.previewSettings.settings.preRequisites?.themes&&(0,bs.dispatch)(gs.M).updateThemeStatus(t.previewSettings.settings.preRequisites?.themes[n.f1]);const i=await(0,fs.lv)();null===i.error&&(i.body=(e=>{e.hasExited=0,e.isComplete=0;const t=window.nfdOnboarding.currentFlow;return e.data.chapters=(0,js.AZ)((0,Bs.Pq)(t),e.data.chapters),e})(i.body),(0,bs.dispatch)(gs.M).setCurrentOnboardingData(i.body)),null!==r&&void 0!==_s.render?(0,_s.render)((0,ms.createElement)(Gs,null),r):console.log("Could not find mount element or wp.element.render().")}(n.eT,window.nfdOnboarding),(0,hs.registerCoreBlocks)()})):console.log("Cannot find Newfold Onboarding runtime data to set __webpack_public_path__.")})(),((window.newfold=window.newfold||{}).Onboarding=window.newfold.Onboarding||{}).onboarding=a})(); \ No newline at end of file +(0,c.__)("A WordPress %1$s hosted by %2$s has tons of unique and proven solutions to help you get farther, faster with your WordPress. We put our expertise, partnerships and solutions to work on your %3$s.","wp-module-onboarding"),(0,l.P)("website"),e,(0,l.P)("site"))}]},help:{experts:{text:(0,c.__)("1-1 Expert Solutions & Coaching","wp-module-onboarding"),link:t},fullService:{text:(0,c.__)("Hire Our Full-Service Creative Team","wp-module-onboarding"),link:i},support:{text:(0,c.__)("Technical Support","wp-module-onboarding"),link:n}}}))(e,t,n,i),b=_?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?v.information.headingWithDescriptions.filter(((e,t)=>_?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes(t))):v.information.headingWithDescriptions;return(0,a.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-welcome"},(0,a.createElement)(f,{heading:v.introduction.heading,subheading:v.introduction.subheading,icon:v.introduction.icon}),!1!==_?.views?.sidebar?.illustration?.shown&&(0,a.createElement)(u,{cssIcon:v.illustration.icon}),(0,a.createElement)(d,{headingWithDescriptions:b}),(0,a.createElement)(p,null,!1!==_?.views?.sidebar?.experts?.shown&&v.help.experts.link&&(0,a.createElement)(h,{text:v.help.experts.text,onClick:()=>window.open(v.help.experts.link,"_blank")}),!1!==_?.views?.sidebar?.fullService?.shown&&v.help.fullService.link&&(0,a.createElement)(m,{text:v.help.fullService.text,onClick:()=>window.open(v.help.fullService.link,"_blank")}),(0,a.createElement)(g,{text:v.help.support.text,link:v.help.support.link})))}]}},data:{tooltipText:(0,c.__)("Welcome","wp-module-onboarding")}})},4487:(e,t,n)=>{"use strict";n.d(t,{b:()=>V});var r=n(5822),i=n(8468),a=n(7723),o=n(2502),s=n(1609),c=n(6427),l=n(7677),u=n(6655),d=n(7143),p=n(9491),h=n(6087),m=n(8969),g=n(7675),f=n(6079),_=n(6478),v=n(7708),b=n(6786),w=n(5573);const y=(0,s.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(w.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var S=n(3013),E=n(8087);const k=(0,i.memo)((({onRegenerate:e,onCustomize:t,onRenameItemSelect:n,onViewAll:r,isLargeViewport:i,onToggle:o})=>{const u=e=>()=>{e(),o()};return(0,s.createElement)(c.MenuGroup,{className:"nfd-onboarding-header__version_dropdown-menu"},!i&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.MenuItem,{onClick:u(e)},(0,s.createElement)(l.A,{icon:b.A}),(0,a.__)("Regenerate","wp-module-onboarding")),(0,s.createElement)(c.MenuItem,{onClick:u(t)},(0,s.createElement)("div",{className:"nfd-onboarding-header__version_dropdown-menu__customize-button__icon"}),(0,a.__)("Customize","wp-module-onboarding"))),(0,s.createElement)(c.MenuItem,{onClick:u(n)},(0,a.__)("Rename","wp-module-onboarding")),(0,s.createElement)(c.MenuItem,{onClick:u(r)},(0,a.__)("View All","wp-module-onboarding")))})),T=(0,i.memo)((({isFavorite:e,homepageTitle:t,onFavorite:n,onRename:r,inputRef:o,onRegenerate:u,onCustomize:d,onRenameItemSelect:p,onViewAll:h,isLargeViewport:m,isInputEnabled:g,enableInput:f})=>{const[_,v]=(0,i.useState)(t),b=()=>{v(o.current.value)},w=()=>{const e=o.current.value.trim();e&&e!==t&&r(e),f(!1)};return(0,i.useEffect)((()=>{g&&o.current?.focus()}),[g,o]),(0,i.useEffect)((()=>{v(t)}),[t]),(0,s.createElement)(c.Dropdown,{renderToggle:({isOpen:t,onToggle:r})=>(0,s.createElement)("div",{role:"button",tabIndex:"0","aria-expanded":t,"aria-label":(0,a.__)("Regenerate","wp-module-onboarding"),className:"navigation-buttons-editor"},(0,s.createElement)("div",{className:"navigation-buttons-editor__favorite",role:"button",tabIndex:0,onKeyDown:n,onClick:n},e?(0,s.createElement)(E.h,null):(0,s.createElement)(S.h,null)),(0,s.createElement)("input",{ref:o,disabled:!g,className:"nfd-onboarding-header__center-input",type:"text",value:_,onBlur:w,onChange:b}),(0,s.createElement)(l.A,{className:"nfd-onboarding-header__center-dropdown_icon",icon:y,onClick:r,onKeyDown:e=>{"Enter"===e.key&&r()}})),renderContent:({onToggle:e})=>(0,s.createElement)(k,{onRegenerate:u,onCustomize:d,onRenameItemSelect:p,onViewAll:h,isLargeViewport:m,onToggle:e})})})),x=({handleFavorite:e,handleRename:t,handleViewAll:n,handleRegenerate:r,handleCustomize:a,homepageTitle:o,isFavorite:c})=>{const l=(0,p.useViewportMatch)("medium"),u=(0,i.useRef)(null),[d,h]=(0,i.useState)(!1),m=e=>{h(e),e&&u.current?.focus()},g=()=>{if("function"==typeof g)return e()};return(0,s.createElement)("div",{className:"nfd-onboarding-header__step-navigation"},(0,s.createElement)(T,{isFavorite:c,homepageTitle:o,onFavorite:g,onRename:e=>{"function"==typeof t&&t(e)},inputRef:u,onRegenerate:()=>{if("function"==typeof r)return r()},onCustomize:()=>{if("function"==typeof a)return a()},onRenameItemSelect:()=>{m(!0)},onViewAll:()=>{if("function"==typeof n)return n()},isLargeViewport:l,isInputEnabled:d,enableInput:m}))};var C=n(7517),N=n(7044),A=n(1455),I=n.n(A),D=n(8674),O=n(5435),P=n(1056),M=n(2202),R=n(8744);const $=(0,i.lazy)((()=>n.e(396).then(n.bind(n,9396)))),L=(0,i.lazy)((()=>n.e(100).then(n.bind(n,1100)))),z=(0,s.forwardRef)(((e,t)=>{const[n,r]=(0,i.useState)(!0),{updateCustomizeSidebarData:o}=(0,d.useDispatch)(g.M),c=(0,s.createRef)(),l=(0,s.createRef)(),u=()=>{l.current.resetToDefaultFonts(),c.current.resetToDefaultColors()};if((0,s.useImperativeHandle)(t,(()=>({resetCustomizationCallback:u}))),(0,i.useEffect)((()=>{(async()=>{const e=await(0,v.gK)();o(e?.body),r(!1)})()}),[]),n)return(0,s.createElement)("div",null,"...");const p={introduction:{heading:(0,a.__)("Colors","wp-module-onboarding")}};return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,s.createElement)(L,{heading:p.introduction.heading,ref:c}),(0,s.createElement)($,{ref:l}))})),F=(0,i.lazy)((()=>n.e(426).then(n.bind(n,426)))),V=new o.p({slug:"sitegen-editor",path:"/sitegen/step/editor",title:(0,a.__)("Page Layouts","wp-module-onboarding"),Component:F,icon:r.A,sidebars:{Customize:{SidebarComponents:[z]}},header:()=>{const[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(!1),[o,b]=(0,i.useState)(!1),[w,y]=(0,i.useState)(!1),S=(0,p.useViewportMatch)("medium"),{setCurrentOnboardingData:E,setSidebarActiveView:k,setIsSidebarOpened:T,setInteractionDisabled:A}=(0,d.useDispatch)(g.M),{currentData:$,sideBarView:L,isSidebarOpened:z}=(0,d.useSelect)((e=>({currentData:e(g.M).getCurrentOnboardingData(),sideBarView:e(g.M).getSidebarView(),isSidebarOpened:e(g.M).isSidebarOpened()}))),F=async()=>{if(n)return;if(b(!0),""===$.sitegen.siteDetails?.prompt)return void b(!1);const t=$.sitegen.homepages.data;if(!(e.slug in t))return void b(!1);const{slug:r,title:i,color:a,isFavorite:o}=e||{},s=await(0,v.HA)($.sitegen.siteDetails.prompt,r,a,o);if(s.error)return void b(!1);const c=s.body;if(o){const e=`${i} (Copy)`;e!==c?.title&&(c.title=e)}t[c.slug]=c,$.sitegen.homepages.data=t,$.sitegen.homepages.active=c,E($),b(!1),(0,P.v)(new P.iC(M.Hf,r,{source:R.d0,placement:"editor_toolbar"}))},V=async()=>{const e="Customize"===L?!z:z;k("Customize"),T(e),!0===e&&(0,P.v)(new P.iC(M.cB,"customize"));const t=await(0,C.w6)();y(t.body)},H=async()=>{r(!0);const e=$.sitegen.homepages.data,t=$.sitegen.homepages.active,n=((e,t)=>(0,s.createElement)("div",{className:"nfd-onboarding-screenshot-container__pages"},Object.keys(e).map(((n,r)=>{const i=e[n];if(!i.isFavorite&&n!==t.slug)return!1;const a=(0,h.cloneDeep)(w[0]);a.settings.color.palette=i.color.palette;let o="";return["header","content","footer"].forEach((e=>{e in i&&(o+=i[e])})),(0,s.createElement)(N.pA,{key:r,blockGrammer:o,previewSettings:a,slug:n,tabIndex:"0",role:"button"})}))))(e,t),a=document.querySelector(".nfd-onboarding-screenshot-container");if(a){(0,i.render)(n,a);const r=e=>new Promise((t=>setTimeout(t,e)));await r(5e3);const o=await Promise.all(Object.keys(e).map((n=>!(!e[n].isFavorite&&n!==t.slug)&&async function(e){return await(0,O.h)(I()({url:(0,D.fG)("block-render/screenshot"),method:"POST",data:{width:1200,height:900,content:e}}).then())}(a.querySelector(`div > div[data-slug="nfd-onboarding-block-preview-${n}"] > .block-editor-block-preview__container > div > iframe`).contentWindow.document.querySelector(".block-editor-block-preview__content-iframe").innerHTML))));Object.keys(e).forEach(((n,r)=>{o[r]?.body?.screenshot&&(e[n].screenshot=o[r].body.screenshot,n===t.slug&&(t.screenshot=o[r].body.screenshot))})),$.sitegen.homepages.data=e,$.sitegen.homepages.active=t,E($)}await(0,f.V1)($),await(0,f.IS)(),(0,P.SV)(new P.iC(M.Vg,void 0,{source:R.d0})),window.location.replace(m.R0)};return(0,i.useEffect)((()=>{V()}),[]),(0,i.useEffect)((()=>{$?.sitegen?.homepages?.active&&t($.sitegen.homepages.active)}),[$]),(0,i.useEffect)((()=>(A(!(!n&&!o)),()=>{A(!1)})),[n,o]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.Fill,{name:`${m.Ix}/${m.nK}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start"},S&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__start__regenerate ${n&&"nfd-onboarding-header--sitegen__editor__start__regenerate__disabled"}`,role:"button",tabIndex:0,onClick:F,onKeyDown:F},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__text"},(0,a.__)("Regenerate","wp-module-onboarding")),o&&(0,s.createElement)(_.A,{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__spinner"})))),(0,s.createElement)(c.Fill,{name:`${m.Ix}/${m.me}`},e&&(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__center"},(0,s.createElement)(x,{handleFavorite:()=>{if(n)return;const t=$.sitegen.homepages.data;if(!(e.slug in t))return;const r=!e.isFavorite;e.isFavorite=r,$.sitegen.homepages.data[e.slug]=e,$.sitegen.homepages.active=e,E($),(0,P.v)(new P.iC(M.Nz,e.slug,{favorite:r,placement:"editor_toolbar",source:R.d0}))},handleViewAll:()=>{z&&L===m.V_||(k(m.V_),T(!0),(0,P.v)(new P.iC(M.cB,"all_versions",{source:R.d0})))},handleCustomize:V,handleRegenerate:F,handleRename:t=>{e.title=t,$.sitegen.homepages.data[e.slug]=e,$.sitegen.homepages.active=e,E($),(0,P.v)(new P.iC(M.TH,e.slug,{name:t,source:R.d0}))},homepageTitle:e.title,isFavorite:e.isFavorite}))),(0,s.createElement)(c.Fill,{name:`${m.Ix}/${m.KZ}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end"},S&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__end__customize-button ${n&&"nfd-onboarding-header--sitegen__editor__end__customize-button__disabled"}`,onClick:V,onKeyDown:V,role:"presentation"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__text"},(0,a.__)("Customize","wp-module-onboarding"))),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button__text",onClick:H,role:"button",tabIndex:0,onKeyDown:H},S?(0,a.__)("Save & Continue","wp-module-onboarding"):(0,a.__)("Next","wp-module-onboarding")),n?(0,s.createElement)(_.A,{className:"nfd-onboarding-header--sitegen__editor__end__save-button__spinner"}):(0,s.createElement)(l.A,{icon:u.A,className:"nfd-onboarding-header--sitegen__editor__end__save-button__icon"})))))}})},3731:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(218).then(n.bind(n,1218)))),c=new o.p({slug:"sitegen-migration",path:"/sitegen/step/migration",title:(0,a.__)("Migration","wp-module-onboarding"),Component:s,icon:r.A,drawerNavigation:!1,sidebars:{LearnMore:{SidebarComponents:[]}}})},4635:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(619).then(n.bind(n,619)))),c=new o.p({slug:"sitegen-preview",path:"/sitegen/step/preview",title:(0,a.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},4805:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(996).then(n.bind(n,9996)))),c=new o.p({slug:"sitegen-site-logo",path:"/sitegen/step/site-logo",title:(0,a.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},9034:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(5822),i=n(8468),a=n(7723),o=n(2502);const s=(0,i.lazy)((()=>n.e(866).then(n.bind(n,3866)))),c=new o.p({slug:"fork",path:"/wp-setup/step/fork",title:(0,a.__)("The Fork","wp-module-onboarding"),Component:s,icon:r.A,drawerNavigation:!1,sidebars:{LearnMore:{SidebarComponents:[]}}})},7675:(e,t,n)=>{"use strict";n.d(t,{M:()=>ht});var r={};n.r(r),n.d(r,{dequeueRequest:()=>M,enqueueRequest:()=>P,flushQueue:()=>R,resetNavError:()=>z,setActiveChapter:()=>p,setActiveFlow:()=>u,setActiveStep:()=>d,setContinueWithoutAi:()=>W,setCurrentOnboardingData:()=>m,setDrawerActiveView:()=>s,setFooterActiveView:()=>x,setHeaderActiveView:()=>E,setHeaderMenuData:()=>O,setHideFooterNav:()=>T,setInstaWpMigrationUrl:()=>h,setInteractionDisabled:()=>U,setIsDrawerOpened:()=>c,setIsDrawerSuppressed:()=>l,setIsFooterNavAllowed:()=>k,setIsGeneratingHomepages:()=>F,setIsHeaderEnabled:()=>S,setIsHeaderNavigationEnabled:()=>y,setIsSidebarOpened:()=>b,setNavErrorContinuePath:()=>L,setOnboardingSocialData:()=>g,setRuntime:()=>o,setSidebarActiveView:()=>w,showNavErrorDialog:()=>$,updateAllSteps:()=>A,updateCustomizeSidebarData:()=>V,updateDesignRoutes:()=>D,updateInitialize:()=>v,updatePreviewSettings:()=>C,updateRoutes:()=>N,updateSettings:()=>f,updateSiteGenErrorStatus:()=>H,updateThemeStatus:()=>_,updateTopSteps:()=>I});var i={};n.r(i),n.d(i,{canMigrateSite:()=>Le,getActiveDrawerView:()=>G,getAllSteps:()=>pe,getCurrentChapter:()=>we,getCurrentOnboardingData:()=>ce,getCurrentStep:()=>ve,getCurrentStepPath:()=>ge,getCurrentUserDetails:()=>je,getCustomizeSidebarData:()=>qe,getDesignRoutes:()=>me,getExperienceLevel:()=>We,getExpertsUrl:()=>Pe,getFirstStep:()=>fe,getFooterActiveView:()=>ee,getFooters:()=>Z,getHeaderActiveView:()=>X,getHeaderMenuData:()=>Oe,getHeaders:()=>J,getHideFooterNav:()=>ne,getHireExpertsUrl:()=>se,getInitialize:()=>Ie,getInteractionDisabled:()=>Ke,getIsFooterNavAllowed:()=>te,getIsFreshInstallation:()=>Qe,getLastStep:()=>_e,getMigrationUrl:()=>$e,getNavErrorPath:()=>Ue,getNewfoldBrand:()=>re,getNewfoldBrandConfig:()=>ae,getNewfoldBrandName:()=>ie,getNewfoldBrandUrl:()=>oe,getNextStep:()=>Ee,getOnboardingFlow:()=>ue,getOnboardingSocialData:()=>le,getPluginInstallHash:()=>ze,getPreviewSettings:()=>Ce,getPreviousStep:()=>Se,getQueuePeek:()=>Fe,getRoutes:()=>de,getSettings:()=>Ne,getShowErrorDialog:()=>He,getSidebarView:()=>Te,getSidebars:()=>xe,getSiteGenErrorStatus:()=>Ye,getStepFromPath:()=>ye,getStepPreviewData:()=>De,getTechSupportUrl:()=>Re,getThemeStatus:()=>Ae,getTopPriority:()=>Be,getTopSteps:()=>he,getfullServiceCreativeTeamUrl:()=>Me,getinstaWpMigrationUrl:()=>be,isDrawerOpened:()=>q,isDrawerSuppressed:()=>Y,isGeneratingHomepages:()=>Ge,isHeaderEnabled:()=>Q,isHeaderNavigationEnabled:()=>K,isQueueEmpty:()=>Ve,isSidebarOpened:()=>ke});var a=n(8744);function o(e){var t;return window.nfdOnboarding={buildUrl:e.buildUrl,siteUrl:e.siteUrl,migrated:!0,currentFlow:null!==(t=e.currentFlow)&&void 0!==t?t:a.rA},{type:"SET_RUNTIME",runtime:e}}function s(e){return{type:"SET_DRAWER_ACTIVE_VIEW",view:e}}function c(e){return{type:"SET_DRAWER_OPENED",isOpen:e}}function l(e){return{type:"SET_DRAWER_SUPPRESSED",isSuppressed:e}}function u(e){return{type:"SET_ACTIVE_FLOW",flow:e}}function d(e){return{type:"SET_ACTIVE_STEP",path:e=e.replace(/\/$/,"")}}function p(e){return{type:"SET_ACTIVE_CHAPTER",chapter:e}}function h(e){return{type:"SET_INSTAWP_MIGRATION_URL",instaWpMigrationUrl:e}}function m(e){return{type:"SET_CURRENT_DATA",flowData:e}}function g(e){return{type:"SET_SOCIAL_DATA",socialData:e}}function f(e){return{type:"UPDATE_SETTINGS",settings:e}}function _(e){return{type:"UPDATE_THEME_STATUS",themeStatus:e}}function v(e){return{type:"UPDATE_INITIALIZE",initialize:e}}function b(e){return{type:"SET_SIDEBAR_OPENED",isOpen:e}}function w(e){return{type:"SET_SIDEBAR_ACTIVE_VIEW",view:e}}function y(e){return{type:"SET_HEADER_NAVIGATION_ENABLED",isNavigationEnabled:e}}function S(e){return{type:"SET_HEADER_ENABLED",isEnabled:e}}function E(e){return{type:"SET_HEADER_ACTIVE_VIEW",view:e}}function k(e){return{type:"SET_IS_FOOTER_NAV_ALLOWED",isNavAllowed:e}}function T(e){return{type:"SET_HIDE_FOOTER_NAV",hideFooterNav:e}}function x(e){return{type:"SET_FOOTER_ACTIVE_VIEW",view:e}}function C(e){return{type:"SET_PREVIEW_SETTINGS",previewSettings:e}}function N(e){return{type:"UPDATE_ROUTES",routes:e}}function A(e){return{type:"UPDATE_ALL_STEPS",allSteps:e}}function I(e){return{type:"UPDATE_TOP_STEPS",topSteps:e}}function D(e){return{type:"UPDATE_DESIGN_ROUTES",designRoutes:e}}function O(e){return{type:"UPDATE_HEADER_MENU_DATA",menu:e}}function P(e,t){return{type:"ENQUEUE_REQUEST",id:e,request:t}}function M(){return{type:"DEQUEUE_REQUEST"}}function R(){return{type:"FLUSH_QUEUE"}}function $(e){return{type:"SHOW_NAV_ERROR_DIALOG",showDialog:e}}function L(e){return{type:"SET_NAV_ERROR_CONTINUE_PATH",continuePath:e}}function z(){return{type:"RESET_NAV_ERROR"}}const F=e=>({type:"SET_IS_GENERATING_HOMEPAGES",isGeneratingHomepages:e});function V(e){return{type:"CUSTOMIZE_SIDEBAR_DATA",customizeSidebarData:e}}function H(e){return{type:"SET_SITEGEN_AI_ERROR_STATUS",siteGenErrorStatus:e}}function U(e){return{type:"SET_INTERACTION_DISABLED",interactionDisabled:e}}function W(e){return{type:"SET_FLOW_WITHOUT_AI",continueWithoutAi:e}}var B=n(6087),j=n(3832);function G(e){return e.drawer.view}function q(e){return e.drawer.isOpen}function Y(e){return e.drawer.isSuppressed}function K(e){return e.header.isNavigationEnabled}function Q(e){return e.header.isEnabled}function J(e){return e.header.headers}function Z(e){return e.footer.footers}function X(e){return e.header.view}function ee(e){return e.footer.view}function te(e){return e.footer.isNavAllowed}function ne(e){return e.footer.hideFooterNav}function re(e){return e.runtime.currentBrand.brand}function ie(e){return e.runtime.currentBrand.name}function ae(e){return e.runtime.currentBrand.config}function oe(e){return e.runtime.currentBrand.url}function se(e){const t=e.runtime.currentBrand.hireExpertsInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParameters)+(t?.fragment||"")}function ce(e){return e.data.flowData}function le(e){return e.data.socialData}function ue(e){var t;return null!==(t=e.runtime.currentFlow)&&void 0!==t?t:a.rA}function de(e){return e.flow.steps.routes}function pe(e){return e.flow.steps.allSteps}function he(e){return e.flow.steps.topSteps}function me(e){return e.flow.steps.designRoutes}function ge(e){return e.flow.steps.currentStep}function fe(e){return e.flow.steps.allSteps[0]}function _e(e){return e.flow.steps.allSteps[e.flow.steps.allSteps.length-1]}function ve(e){return(0,B.filter)(e.flow.steps.allSteps,["path",e.flow.steps.currentStep])[0]}function be(e){return e.runtime.currentBrand.migrationInfo.instaWpMigrationUrl}function we(e){return e.flow.chapter}function ye(e,t){return(0,B.filter)(e.flow.steps.allSteps,["path",t])[0]}function Se(e){const t=(0,B.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return 0===t?null:-1!==t&&e.flow.steps.allSteps[t-1]}function Ee(e){const t=e.flow.steps.allSteps.length-1,n=(0,B.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return t===n?null:-1!==n&&e.flow.steps.allSteps[n+1]}function ke(e){return e.sidebar.isOpen}function Te(e){return e.sidebar.view}function xe(e){return(0,B.filter)(e.sidebar.sidebars,["enabled",!0])}function Ce(e){return e.runtime.previewSettings.settings}function Ne(e){return e.settings}function Ae(e){return e.settings.themeStatus}function Ie(e){return e.settings.initialize}function De(e){return e.runtime.previewSettings.stepPreviewData}function Oe(e){return e.header.menu}function Pe(e){const t=e.runtime.currentBrand.expertsInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Me(e){const t=e.runtime.currentBrand.fullServiceCreativeTeamInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Re(e){const t=e.runtime.currentBrand.techSupportInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function $e(e){const t=e.runtime.currentBrand.migrationInfo;return(0,j.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Le(e){const t=e.runtime.currentBrand.config;return t?.canMigrateSite}function ze(e){return e.runtime.pluginInstallHash}function Fe(e){var t;return null!==(t=e?.queue[0])&&void 0!==t?t:null}function Ve(e){return 0===e?.queue?.length}function He(e){return e.flow.steps.error.showDialog}function Ue(e){return e.flow.steps.error.continuePath}function We(e){return e.data.flowData.data.wpComfortLevel}function Be(e){return e.data.flowData.data.topPriority.priority1}function je(e){return e.runtime.currentUserDetails}const Ge=e=>e.data.isGeneratingHomepages;function qe(e){return e.runtime.customizeSidebarData}function Ye(e){return e.data.flowData.sitegen.siteGenErrorMeta.status}function Ke(e){return e.flow.interactionDisabled}function Qe(e){return e.runtime.isFreshInstallation}var Je=n(7143),Ze=n(8969),Xe=n(9772),et=n(8468);const tt=(0,et.lazy)((()=>n.e(202).then(n.bind(n,4202)))),nt=(0,et.lazy)((()=>n.e(356).then(n.bind(n,2356)))),rt=(0,et.lazy)((()=>n.e(803).then(n.bind(n,8803)))),it=(0,et.lazy)((()=>n.e(910).then(n.bind(n,3910)))),at=(0,et.lazy)((()=>n.e(40).then(n.bind(n,5040)))),ot=[{id:Ze.Qe,menu:tt,sidebar:nt,enabled:!0},{id:Ze.V_,sidebar:rt,enabled:!0},{id:Ze.jK,menu:it,sidebar:at,enabled:!0}],st=(0,et.lazy)((()=>n.e(403).then(n.bind(n,1403)))),ct=(0,et.lazy)((()=>n.e(796).then(n.bind(n,5796)))),lt=[{id:Ze.Ix,header:st,enabled:!0},{id:Ze.Mw,header:ct,enabled:!0}],ut=(0,et.lazy)((()=>n.e(971).then(n.bind(n,1971)))),dt=[{id:Ze.Sr,footer:ut,enabled:!0}],pt={reducer:(0,Je.combineReducers)({drawer:function(e={isOpen:!1,isSuppressed:!1,view:Ze.vO},t){switch(t.type){case"SET_DRAWER_OPENED":return{...e,isOpen:t.isOpen};case"SET_DRAWER_ACTIVE_VIEW":return{...e,view:t.view};case"SET_DRAWER_SUPPRESSED":return{...e,isSuppressed:t.isSuppressed,isOpen:!t.isSuppressed&&e.isOpen}}return e},runtime:function(e={},t){switch(t.type){case"SET_RUNTIME":return{...e,...t.runtime};case"SET_PREVIEW_SETTINGS":return{...e,previewSettings:{...e.previewSettings,settings:t.previewSettings}};case"CUSTOMIZE_SIDEBAR_DATA":return{...e,customizeSidebarData:t.customizeSidebarData};case"SET_INSTAWP_MIGRATION_URL":return{...e,currentBrand:{...e.currentBrand,migrationInfo:{...e.currentBrand.migrationInfo,instaWpMigrationUrl:t.instaWpMigrationUrl}}}}return e},data:function(e={},t){switch(t.type){case"SET_CURRENT_DATA":return{...e,flowData:{...t.flowData}};case"SET_SOCIAL_DATA":return{...e,socialData:{...t.socialData}};case"SET_SITEGEN_AI_ERROR_STATUS":const n=!e.flowData.sitegen.siteGenErrorMeta.status&&t.siteGenErrorStatus;return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,siteGenErrorMeta:{...e.flowData.sitegen.siteGenErrorMeta,status:t.siteGenErrorStatus,retryCount:!0===n?e.flowData.sitegen.siteGenErrorMeta.retryCount+1:e.flowData.sitegen.siteGenErrorMeta.retryCount}}}};case"SET_IS_GENERATING_HOMEPAGES":return{...e,isGeneratingHomepages:t.isGeneratingHomepages}}return e},settings:function(e={themeStatus:Ze.So,initialize:!1},t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings};case"UPDATE_THEME_STATUS":return{...e,themeStatus:t.themeStatus};case"UPDATE_INITIALIZE":return{...e,initialize:t.initialize}}return e},flow:function(e={flow:a.rA,steps:{routes:Xe.FI,allSteps:Xe.o2,topSteps:Xe.Zq,designRoutes:Xe.Tk,currentStep:"",error:{showDialog:!1,continuePath:""}},chapter:void 0,interactionDisabled:!1},t){switch(t.type){case"SET_ACTIVE_STEP":return{...e,steps:{...e.steps,currentStep:t.path}};case"SET_ACTIVE_FLOW":return{...e,flow:t.flow};case"UPDATE_ROUTES":return{...e,steps:{...e.steps,routes:t.routes}};case"UPDATE_ALL_STEPS":return{...e,steps:{...e.steps,allSteps:t.allSteps}};case"UPDATE_TOP_STEPS":return{...e,steps:{...e.steps,topSteps:t.topSteps}};case"UPDATE_DESIGN_ROUTES":return{...e,steps:{...e.steps,designRoutes:t.designRoutes}};case"SHOW_NAV_ERROR_DIALOG":return{...e,steps:{...e.steps,error:{...e.steps.error,showDialog:t.showDialog}}};case"SET_NAV_ERROR_CONTINUE_PATH":return{...e,steps:{...e.steps,error:{...e.steps.error,continuePath:t.continuePath}}};case"RESET_NAV_ERROR":return{...e,steps:{...e.steps,error:{showDialog:!1,continuePath:""}}};case"SET_ACTIVE_CHAPTER":return{...e,chapter:t.chapter};case"SET_INTERACTION_DISABLED":return{...e,interactionDisabled:t.interactionDisabled};case"SET_FLOW_WITHOUT_AI":return{...e,flow:t.continueWithoutAi}}return e},sidebar:function(e={isOpen:!1,view:"LearnMore",sidebars:ot},t){switch(t.type){case"SET_SIDEBAR_OPENED":return{...e,isOpen:t.isOpen};case"SET_SIDEBAR_ACTIVE_VIEW":return{...e,view:t.view}}return e},header:function(e={isNavigationEnabled:!0,menu:"",isEnabled:!0,headers:lt,view:Ze.Mw},t){switch(t.type){case"SET_HEADER_NAVIGATION_ENABLED":return{...e,isNavigationEnabled:t.isNavigationEnabled};case"SET_HEADER_ENABLED":return{...e,isEnabled:t.isEnabled};case"UPDATE_HEADER_MENU_DATA":return{...e,menu:t.menu};case"SET_HEADER_ACTIVE_VIEW":return{...e,view:t.view}}return e},footer:function(e={footers:dt,isNavAllowed:!0,hideFooterNav:!1,view:Ze.Sr},t){switch(t.type){case"SET_IS_FOOTER_NAV_ALLOWED":return{...e,isNavAllowed:t.isNavAllowed};case"SET_HIDE_FOOTER_NAV":return{...e,hideFooterNav:t.hideFooterNav};case"SET_FOOTER_ACTIVE_VIEW":return{...e,view:t.view}}return e},queue:function(e=[],t){switch(t.type){case"ENQUEUE_REQUEST":return e=e.filter((e=>e[0]!==t.id)),[...e,[t.id,t.request]];case"DEQUEUE_REQUEST":return[...e.slice(1)];case"FLUSH_QUEUE":return(async e=>{const t=e,n=async(e=1)=>{t[0]&&await t[0][1]().then((t=>{t.error&&et.shift())).then(n)};await n()})(e),[]}return e}}),actions:r,selectors:i},ht=(0,Je.createReduxStore)("newfold/onboarding",pt);(0,Je.register)(ht)},2202:(e,t,n)=>{"use strict";n.d(t,{$2:()=>N,$x:()=>A,DN:()=>g,Dl:()=>F,Ep:()=>p,Fi:()=>b,Hf:()=>O,N0:()=>o,Nz:()=>P,Qh:()=>x,Qp:()=>I,TH:()=>M,Vg:()=>i,WN:()=>C,WT:()=>w,Wi:()=>D,XJ:()=>z,Zt:()=>_,aq:()=>l,cB:()=>R,cW:()=>L,ce:()=>h,f2:()=>y,gH:()=>c,hi:()=>d,j7:()=>S,k2:()=>u,o3:()=>f,oA:()=>a,o_:()=>T,p$:()=>r,r2:()=>m,rf:()=>v,uv:()=>$,vO:()=>s,vY:()=>E,wo:()=>k});const r="onboarding_started",i="onboarding_complete",a="pageview",o="onboarding_top_priority_set",s="onboarding_step_skipped",c="primary_type_set",l="secondary_type_set",u="experience_level_set",d="theme_style_selected",p="colors_selected",h="fonts_selected",m="header_selected",g="homepage_layout_selected",f="starter_pages_selected",_="feature_added",v="site_title_set",b="tagline_set",w="logo_added",y="onboarding_exited",S="onboarding_chapter_started",E="onboarding_chapter_complete",k="social_added",T="migration_initiated",x="fork_option_selected",C="site_details_prompt_set",N="social_connected",A="social_connect_skipped",I="logo_skipped",D="homepage_selected",O="homepage_regenerated",P="homepage_favorited",M="homepage_renamed",R="sidebar_opened",$="site_generation_time",L="error_state_triggered",z="wonder_start",F={[o]:"top_priority",[s]:"step",[c]:"primary_type",[l]:"secondary_type",[u]:"experience_level",[d]:"theme_style",[p]:"color_palette",[h]:"font_set",[m]:"header",[g]:"layout",[f]:"pages",[_]:"feature",[v]:"title",[b]:"tagline",[y]:"step",[S]:"chapter",[E]:"chapter",[k]:"platform",[x]:"flow",[C]:"prompt",[N]:"platform",[D]:"version",[O]:"version",[P]:"version",[R]:"type",[M]:"version",[$]:"time",[T]:"path",[L]:"identifier"}},1056:(e,t,n)=>{"use strict";n.d(t,{iC:()=>a,Co:()=>c,SV:()=>s,v:()=>o});var r=n(4371),i=n(2202);class a extends r.c{constructor(e,t,n,r,a=i.XJ){const o=c(e);super(a,e,{label_key:o,[o]:t,...n,page:r||window.location.href},a)}}const o=e=>r.y.track(e),s=e=>r.y.send(e),c=e=>{if(e in i.Dl)return i.Dl[e]}},8674:(e,t,n)=>{"use strict";n.d(t,{EG:()=>a,RE:()=>o,fG:()=>i,zV:()=>s});var r=n(8969);const i=(e,t=!0)=>`${r.Xi}/${e}`+(t&&window.nfdOnboarding?.currentFlow?`&flow=${window.nfdOnboarding.currentFlow}`:""),a=e=>`${r.g5}/${e}`,o=e=>`${r.No}/${e}`,s=e=>`${r.h0}/${e}`},5171:(e,t,n)=>{"use strict";n.d(t,{Im:()=>o,JK:()=>s,mj:()=>c});var r=n(1455),i=n.n(r),a=n(8674);const o=e=>0===Object.keys(e).length;async function s(){return i()({url:(0,a.zV)("settings")})}async function c(e){return i()({url:(0,a.zV)("settings"),method:"POST",data:e})}},6079:(e,t,n)=>{"use strict";n.d(t,{HR:()=>d,IS:()=>u,V1:()=>l,lv:()=>c});var r=n(5435),i=n(8674),a=n(1455),o=n.n(a);let s;async function c(){return await(0,r.h)(o()({url:(0,i.fG)("flow")}).then())}async function l(e){s&&s.abort("New setFlow request placed!"),s=new AbortController;const{signal:t}=s;return await(0,r.h)(o()({url:(0,i.fG)("flow"),signal:t,method:"POST",data:e}).then())}async function u(){return await(0,r.h)(o()({url:(0,i.fG)("flow/complete"),method:"POST"}).then())}async function d(e){return await(0,r.h)(o()({url:(0,i.fG)("flow/switch"),method:"POST",data:{flow:e}}).then())}},8520:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(5435),i=n(8674),a=n(1455),o=n.n(a);async function s(e=!1,t=!1){return await(0,r.h)(o()({url:(0,i.fG)("patterns"+(e?`&step=${e}&squash=${t}`:""))}).then())}},8559:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>l,YR:()=>d,ze:()=>u});var r=n(1455),i=n.n(r),a=n(8674),o=n(3272),s=n(5435),c=n(8969);const l=e=>{if((0,o.qn)(c.z3))return!0;i()({url:(0,a.fG)("plugins/initialize"),method:"POST",headers:{"X-NFD-INSTALLER":e||window.nfdOnboarding.pluginInstallHash}}).catch((e=>{console.error(e)}))},u=async()=>await(0,s.h)(i()({url:(0,a.fG)("plugins/site-features")}));async function d(){return await(0,s.h)(i()({url:(0,a.fG)("plugins/initialize/activate"),method:"POST"}).then())}},5435:(e,t,n)=>{"use strict";async function r(e){const t={body:null,error:null};try{t.body=await e}catch(e){t.error=e}return t}n.d(t,{h:()=>r})},2014:(e,t,n)=>{"use strict";n.d(t,{mt:()=>c,n_:()=>u,oc:()=>l});var r=n(1455),i=n.n(r),a=n(5435),o=n(8969),s=n(8674);async function c(){return await(0,a.h)(i()({url:(0,s.fG)("settings")}).then())}async function l(e){return await(0,a.h)(i()({url:(0,s.fG)("settings"),method:"POST",data:e}).then())}const u=(e=0)=>!(e>=o.lp)&&i()({url:(0,s.fG)("settings/initialize"),method:"POST"}).catch((()=>{u(e+=1)}))},7708:(e,t,n)=>{"use strict";n.d(t,{HA:()=>u,OD:()=>h,c7:()=>l,gK:()=>d,iQ:()=>c,kA:()=>s,rZ:()=>p});var r=n(1455),i=n.n(r),a=n(5435),o=n(8674);async function s(){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/identifiers")}).then())}async function c(e,t,n=!0){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/generate"),method:"POST",data:{site_info:e,identifier:t,skip_cache:n}}))}async function l(e){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/homepages"),method:"POST",data:{site_description:e}}).then())}async function u(e,t,n,r){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/homepages/regenerate"),method:"POST",data:{site_description:e,slug:t,palette:n,isFavorite:r}}).then())}async function d(){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/customize-data")}).then())}async function p(e){return await(0,a.h)(i()({url:(0,o.fG)("sitegen/pages/sitemap"),method:"POST",data:{site_description:e}}).then())}async function h(){return await(0,a.h)(i()({url:(0,o.RE)("migrate/connect")}).then())}},7517:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>l,_t:()=>g,ai:()=>u,kt:()=>f,oy:()=>h,qv:()=>m,w6:()=>p,xN:()=>d});var r=n(1455),i=n.n(r),a=n(8674),o=n(5435),s=n(3272),c=n(8969);const l=()=>{if((0,s.qn)(c.X0))return!0;i()({url:(0,a.fG)("themes/initialize"),method:"POST"}).catch((e=>{console.error(e)}))},u=async(e,t=!0,n=!0)=>"string"==typeof e&&await(0,o.h)(i()({url:(0,a.EG)("themes/install"),method:"POST",data:{theme:e,activate:t,queue:n}})),d=async(e,t=!0)=>"string"==typeof e&&await(0,o.h)(i()({url:(0,a.EG)("themes/expedite"),method:"POST",data:{theme:e,activate:t}})),p=async(e=!1)=>await(0,o.h)(i()({url:(0,a.fG)("themes/variations&variations="+e)}).then()),h=async e=>await(0,o.h)(i()({url:(0,a.fG)("themes/variations"),method:"POST",data:e}).then()),m=async e=>await(0,o.h)(i()({url:(0,a.EG)("themes/status"+(e?`&theme=${e}`:""))})),g=async()=>await(0,o.h)(i()({url:(0,a.fG)("themes/fonts")})),f=async()=>await(0,o.h)(i()({url:(0,a.fG)("themes/colors")}))},7225:(e,t,n)=>{"use strict";n.d(t,{AN:()=>w});var r=n(1609),i=n(6087),a=n(4997);const o=window.wp.styleEngine;var s=n(4715);function c(e,t={}){if(!e)return null;const{coerceTo:n,rootSizeValue:r,acceptableUnits:i}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},a=i?.join("|"),o=new RegExp(`^(\\d*\\.?\\d+)(${a}){1,1}$`),s=e.match(o);if(!s||s.length<3)return null;let[,c,l]=s,u=parseFloat(c);return"px"!==n||"em"!==l&&"rem"!==l||(u*=r,l=n),"px"!==l||"em"!==n&&"rem"!==n||(u/=r,l=n),{value:u,unit:l}}function l(e,t=3){return Number.isFinite(e)?parseFloat(e.toFixed(t)):void 0}const u="body",d=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["typography","fontSizes"],valueFunc:(e,{typography:t})=>function(e,t){const{size:n}=e;if(!0!==t?.fluid)return n;if(!1===e?.fluid)return n;const r=e?.fluid||{};let i=r?.min,a=r?.max;const o=c(n);return o?.unit?(i||(i=.75*o.value+o.unit),a||(a=1.5*o.value+o.unit),function({maximumViewPortWidth:e,minimumViewPortWidth:t,maximumFontSize:n,minimumFontSize:r,scaleFactor:i}){const a=c(r),o=a?.unit||"rem",s=c(n,{coerceTo:o});if(!a||!s)return null;const u=c(r,{coerceTo:"rem"}),d=c(e,{coerceTo:o}),p=c(t,{coerceTo:o});if(!d||!p||!u)return null;const h=l(p.value/100,3)+o;let m=(s.value-a.value)/(d.value-p.value)*100;m=l(m,3)||1;const g=m*i;return`clamp(${r}, ${u.value}${u.unit} + ((1vw - ${h}) * ${g}), ${n})`}({maximumViewPortWidth:"1600px",minimumViewPortWidth:"768px",maximumFontSize:a,minimumFontSize:i,scaleFactor:1})||n):n}(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],p={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function h(e){return e?.startsWith?.("var:")?`var(--wp--${e.slice(4).split("|").join("--")})`:e}function m(e={},t,n){let r=[];return Object.keys(e).forEach((a=>{const o=t+(0,i.kebabCase)(a.replace("/","-")),s=e[a];if(s instanceof Object){const e=o+n;r=[...r,...m(s,e,n)]}else r.push(`${o}: ${s}`)})),r}function g(e={},t="",n,r={}){const s=u===t,c=(0,i.reduce)(a.__EXPERIMENTAL_STYLE_PROPERTY,((t,{value:r,properties:a,rootOnly:o},c)=>{if(o&&!s)return t;const l=r;if("elements"===l[0])return t;const u=(0,i.get)(e,l);if("--wp--style--root--padding"===c&&("string"==typeof u||!n))return t;if(a&&"string"!=typeof u)Object.entries(a).forEach((e=>{const[n,r]=e;if(!(0,i.get)(u,[r],!1))return;const a=n.startsWith("--")?n:(0,i.kebabCase)(n);t.push(`${a}: ${h((0,i.get)(u,[r]))}`)}));else if((0,i.get)(e,l,!1)){const n=c.startsWith("--")?c:(0,i.kebabCase)(c);t.push(`${n}: ${h((0,i.get)(e,l))}`)}return t}),[]);return(0,o.getCSSRules)(e).forEach((e=>{if(s&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:(0,i.kebabCase)(e.key);let a=e.value;if("string"!=typeof a&&a?.ref){const e=a.ref.split(".");if(a=(0,i.get)(r,e),!a||a?.ref)return}c.push(`${t}: ${a}`)})),c}const f=(e,t)=>{var n;const r=[];if(!e?.settings)return r;const a=e=>{const t={};return d.forEach((({path:n})=>{const r=(0,i.get)(e,n,!1);!1!==r&&(0,i.set)(t,n,r)})),t},o=a(e.settings),s=e.settings?.custom;return(0,i.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:u}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const o=a(n),s=n.custom;(0,i.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:t[e].selector})})),r},_=(e,t)=>{const n=f(e,t);let r="";return n.forEach((({presets:t,custom:n,selector:a})=>{const o=function(e={},t){return(0,i.reduce)(d,((n,{path:r,valueKey:a,valueFunc:o,cssVarInfix:s})=>{const c=(0,i.get)(e,r,[]);return c&&Array.isArray(c)&&c.forEach((e=>{a&&!o?n.push(`--wp--preset--${s}--${(0,i.kebabCase)(e.slug)}: ${e[a]}`):o&&"function"==typeof o&&n.push(`--wp--preset--${s}--${(0,i.kebabCase)(e.slug)}: ${o(e,t)}`)})),n}),[])}(t,e?.settings),s=m(n,"--wp--custom--","--");s.length>0&&o.push(...s),o.length>0&&(r+=`${a}{${o.join(";")};}`)})),r},v=(e,t,n,r,o=!1)=>{const c=((e,t)=>{var n;const r=[];if(!e?.styles)return r;const o=e=>(0,i.pickBy)(e,((e,t)=>["border","color","spacing","typography","filter"].includes(t))),s=o(e.styles);return s&&r.push({styles:s,selector:u}),Object.entries(a.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements&&e.styles?.elements[t]&&r.push({styles:e.styles?.elements[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var i;const s=o(n);s&&t?.[e]?.selector&&r.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:s,featureSelectors:t[e].featureSelectors}),Object.entries(null!==(i=n?.elements)&&void 0!==i?i:{}).forEach((([n,i])=>{i&&t?.[e]&&a.__EXPERIMENTAL_ELEMENTS?.[n]&&r.push({styles:i,selector:t[e].selector.split(",").map((e=>a.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),r})(e,t),l=f(e,t),p=e?.settings?.useRootPaddingAwareAlignments,{contentSize:h,wideSize:m}=e?.settings?.layout||{};let _="body {margin: 0;";if(h&&(_+=` --wp--style--global--content-size: ${h};`),m&&(_+=` --wp--style--global--wide-size: ${m};`),p&&(_+='padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } \n\t\t\t .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; } \n\t\t\t .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; } \n\t\t\t .has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;'),_+="}",c.forEach((({selector:t,duotoneSelector:i,styles:a,fallbackGapValue:c,hasLayoutSupport:l,featureSelectors:d})=>{d&&Object.entries(d).forEach((([e,t])=>{if(a?.[e]){const n=g({[e]:a[e]});delete a[e],n.length&&(_+=`${t}{${n.join(";")} }`)}}));const h={};if(a?.filter&&(h.filter=a.filter,delete a.filter),i){const e=g(h);e.length>0&&(_+=`${i}{${e.join(";")};}`)}o||u!==t&&!l||(_+=function({tree:e,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:i,fallbackGapValue:a}){let o="",c=r?(0,s.__experimentalGetGapCSSValue)(t?.spacing?.blockGap):"";if(i&&(n===u?c=c||"0.5em":!r&&a&&(c=a)),c&&e?.settings?.layout?.definitions&&(Object.values(e.settings.layout.definitions).forEach((({className:e,name:t,spacingStyles:i})=>{(r||"flex"===t)&&i?.length&&i.forEach((t=>{const i=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{i.push(`${e}: ${t||c}`)})),i.length){let a="";a=r?n===u?`${n} .${e}${t?.selector||""}`:`${n}.${e}${t?.selector||""}`:n===u?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,o+=`${a} { ${i.join("; ")}; }`}}))})),n===u&&r&&(o+=`${n} { --wp--style--block-gap: ${c}; }`)),n===u&&e?.settings?.layout?.definitions){const t=["block","flex","grid"];Object.values(e.settings.layout.definitions).forEach((({className:e,displayMode:r,baseStyles:i})=>{r&&t.includes(r)&&(o+=`${n} .${e} { display:${r}; }`),i?.length&&i.forEach((t=>{const r=[];t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t}`)})),r.length&&(o+=`${n} .${e}${t?.selector||""} { ${r.join("; ")}; }`)}))}))}return o}({tree:e,style:a,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:r,fallbackGapValue:c}));const m=g(a,t,p,e);m?.length&&(_+=`${t}{${m.join(";")};}`);const f=Object.entries(a).filter((([e])=>e.startsWith(":")));f?.length&&f.forEach((([e,n])=>{const r=g(n);if(!r?.length)return;const i=`${t.split(",").map((t=>t+e)).join(",")}{${r.join(";")};}`;_+=i}))})),_+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",_+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",_+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",!o&&n){const t=(0,s.__experimentalGetGapCSSValue)(e?.styles?.spacing?.blockGap)||"0.5em";_+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",_+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return l.forEach((({selector:e,presets:t})=>{u===e&&(e="");const n=function(e,t={}){return(0,i.reduce)(d,((n,{path:r,cssVarInfix:a,classes:o})=>{if(!o)return n;const s=(0,i.get)(t,r,[]);return s&&Array.isArray(s)&&s.forEach((({slug:t})=>{o.forEach((({classSuffix:r,propertyName:o})=>{const s=`.has-${(0,i.kebabCase)(t)}-${r}`,c=e.split(",").map((e=>`${e}${s}`)).join(","),l=`var(--wp--preset--${a}--${(0,i.kebabCase)(t)})`;n+=`${c}{${o}: ${l} !important;}`}))})),n}),"")}(e,t);(0,i.isEmpty)(n)||(_+=n)})),_};const b=e=>{const t={};return e.forEach((e=>{var n,r;const i=e.name,a=null!==(n=e?.supports?.__experimentalSelector)&&void 0!==n?n:".wp-block-"+i.replace("core/","").replace("/","-"),o=null!==(r=e?.supports?.color?.__experimentalDuotone)&&void 0!==r?r:null,s=!!e?.supports?.__experimentalLayout,c=e?.supports?.spacing?.blockGap?.__experimentalDefault,l={};Object.entries(p).forEach((([t,n])=>{const r=e?.supports?.[t]?.__experimentalSelector;r&&(l[n]=function(e,t){const n=e.split(","),r=t.split(","),i=[];return n.forEach((e=>{r.forEach((t=>{i.push(`${e.trim()} ${t.trim()}`)}))})),i.join(", ")}(a,r))})),t[i]={duotoneSelector:o,fallbackGapValue:c,featureSelectors:Object.keys(l).length?l:void 0,hasLayoutSupport:s,name:i,selector:a}})),t};function w(e,t){const n=t.settings.__experimentalFeatures.spacing.blockGap,o=!n,c=!t.settings?.disableLayoutStyles||t.settings.disableLayoutStyles;if(!e?.styles&&!e?.settings&&!e?.globalStyles)return;const l={settings:e.settings,styles:e?.globalStyles?e.globalStyles:e.styles},u=b((0,a.getBlockTypes)()),p=_(l,u),h=v(l,u,n,o,c),m=function(e,t){return f(e,t).flatMap((({presets:e})=>function(e={}){return d.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,i.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,r.createElement)(s.__unstablePresetDuotoneFilter,{preset:e,key:e.slug})))))}))}(e)))}(l,u),g=[...t.settings.styles.filter((e=>!(e.hasOwnProperty("id")&&("customProperty"===e.id||"globalStyle"===e.id)))),{id:"customProperty",css:p,isGlobalStyles:!0},{id:"globalStyle",css:h,isGlobalStyles:!0},{assets:m,__unstableType:"svg",isGlobalStyles:!0}];return e.settings.styles=g,e.settings.__unstableResolvedAssets=t.settings.__unstableResolvedAssets,e.settings.__experimentalFeatures=t.settings.__experimentalFeatures,e}},3272:(e,t,n)=>{"use strict";n.d(t,{g2:()=>s,qm:()=>o,qn:()=>a});var r=n(3832),i=n(6087);const a=e=>new URLSearchParams(window.location.search).get(e),o=(e,t)=>(0,r.hasQueryArg)(e,t)?(0,r.removeQueryArgs)(e,t):e,s=e=>(0,i.transform)(e,((e,t,n)=>{e[(0,i.snakeCase)(n)]=t}))},3474:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(8744),i=n(7723);const a={[r.rA]:{site:{noun:(0,i._x)("site","noun","wp-module-onboarding")},website:{noun:(0,i._x)("website","noun","wp-module-onboarding")}},[r.eS]:{site:{noun:(0,i._x)("store","noun","wp-module-onboarding")},website:{noun:(0,i._x)("store","noun","wp-module-onboarding")}},[r.d0]:{site:{noun:(0,i._x)("site","noun","wp-module-onboarding")},website:{noun:(0,i._x)("website","noun","wp-module-onboarding")}}},o=(e,t="noun")=>{const n=window?.nfdOnboarding?.currentFlow||r.rA,i=a[n][e.toLowerCase()][t];return e===e.toUpperCase()?i.toUpperCase():e[0]===e[0].toUpperCase()?i[0].toUpperCase()+i.substring(1):i}},8969:(e,t,n)=>{"use strict";n.d(t,{$P:()=>oe,At:()=>te,CL:()=>T,Cx:()=>w,EF:()=>ie,Er:()=>Z,F4:()=>ne,HJ:()=>k,Ix:()=>M,KJ:()=>b,KK:()=>$,KZ:()=>F,L5:()=>ue,Mw:()=>P,No:()=>h,PE:()=>y,Qe:()=>D,Qs:()=>A,R0:()=>g,R2:()=>re,SF:()=>c,SJ:()=>E,SQ:()=>X,So:()=>K,Sr:()=>R,St:()=>N,VG:()=>_,V_:()=>I,Vw:()=>le,W6:()=>se,WH:()=>j,X0:()=>q,Xi:()=>d,ZH:()=>o,db:()=>W,eT:()=>a,eY:()=>C,f1:()=>Y,fO:()=>J,fS:()=>ce,g5:()=>p,gR:()=>ee,gb:()=>H,h0:()=>u,iQ:()=>S,jK:()=>O,lf:()=>x,lp:()=>B,me:()=>z,mp:()=>Q,nK:()=>L,qy:()=>ae,vO:()=>f,vd:()=>V,yY:()=>v,z3:()=>G,zm:()=>U});var r,i=n(3832);const a="nfd-onboarding",o="object"==typeof window?.nfdOnboarding&&"buildUrl"in window.nfdOnboarding,s=window.nfdOnboarding.adminUrl,c=window.nfdOnboarding.siteUrl,l=window.nfdOnboarding.restUrl,u=`${l}/wp/v2`,d=`${l}/newfold-onboarding/v1`,p=`${l}/newfold-installer/v1`,h=`${l}/newfold-migration/v1`,m=(0,i.addQueryArgs)(`${s}index.php`,window.nfdOnboarding.currentBrand?.dashboardRedirectParams),g=null!==(r=(0,i.addQueryArgs)(window.nfdOnboarding.currentBrand?.pluginDashboardPage,window.nfdOnboarding.currentBrand?.dashboardRedirectParams))&&void 0!==r?r:m,f="nav-primary",_="nav-design",v="nav-page",b="design-themes",w="design-theme-styles-menu",y="design-theme-styles-preview",S="design-colors",E="design-fonts",k="design-header-menu",T="design-homepage-menu",x="nav-get-started",C="nav-ecommerce-store-info",N="Sidebar",A="HeaderMenu",I="SitegenEditorPatterns",D="LearnMore",O="Customize",P="HeaderSiteBuild",M="HeaderSiteGen",R="FooterSiteGen",$="HeaderTop",L="HeaderStart",z="HeaderCenter",F="HeaderEnd",V="FooterStart",H="FooterEnd",U=2,W=2,B=2,j=2,G="nfd_plugins",q="nfd_themes",Y="nfd_slug_yith_wonder",K="init",Q="inactive",J="installing",Z="activated",X="failed",ee="demographic",te="commerce",ne="design",re="layout_and_content",ie="features",ae="core",oe="design",se="features",ce="dark",le="light",ue={SET_FLOW:"SET_FLOW",SET_GLOBAL_STYLES:"SET_GLOBAL_STYLES"}},1003:(e,t,n)=>{"use strict";n.d(t,{I9:()=>h,k2:()=>_});var r=n(1609);const i=window.ReactDOM;var a=n(148),o=n(5588);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const l=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],u=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}const d=r.createContext({isTransitioning:!1});new Map;const p=r.startTransition;function h(e){let{basename:t,children:n,future:i,window:s}=e,c=r.useRef();null==c.current&&(c.current=(0,o.TM)({window:s,v5Compat:!0}));let l=c.current,[u,d]=r.useState({action:l.action,location:l.location}),{v7_startTransition:h}=i||{},m=r.useCallback((e=>{h&&p?p((()=>d(e))):d(e)}),[d,h]);return r.useLayoutEffect((()=>l.listen(m)),[l,m]),r.createElement(a.Ix,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:i})}i.flushSync,r.useId;const m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f=r.forwardRef((function(e,t){let n,{onClick:i,relative:u,reloadDocument:d,replace:p,state:h,target:f,to:_,preventScrollReset:v,unstable_viewTransition:b}=e,w=c(e,l),{basename:y}=r.useContext(a.jb),S=!1;if("string"==typeof _&&g.test(_)&&(n=_,m))try{let e=new URL(window.location.href),t=_.startsWith("//")?new URL(e.protocol+_):new URL(_),n=(0,o.pb)(t.pathname,y);t.origin===e.origin&&null!=n?_=n+t.search+t.hash:S=!0}catch(e){}let E=(0,a.$P)(_,{relative:u}),k=function(e,t){let{target:n,replace:i,state:s,preventScrollReset:c,relative:l,unstable_viewTransition:u}=void 0===t?{}:t,d=(0,a.Zp)(),p=(0,a.zy)(),h=(0,a.x$)(e,{relative:l});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==i?i:(0,o.AO)(p)===(0,o.AO)(h);d(e,{replace:n,state:s,preventScrollReset:c,relative:l,unstable_viewTransition:u})}}),[p,d,h,i,s,n,e,c,l,u])}(_,{replace:p,state:h,target:f,preventScrollReset:v,relative:u,unstable_viewTransition:b});return r.createElement("a",s({},w,{href:n||E,onClick:S||d?i:function(e){i&&i(e),e.defaultPrevented||k(e)},ref:t,target:f}))})),_=r.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:i=!1,className:l="",end:p=!1,style:h,to:m,unstable_viewTransition:g,children:_}=e,b=c(e,u),w=(0,a.x$)(m,{relative:b.relative}),y=(0,a.zy)(),S=r.useContext(a.Rq),{navigator:E,basename:k}=r.useContext(a.jb),T=null!=S&&function(e,t){void 0===t&&(t={});let n=r.useContext(d);null==n&&(0,o.Oi)(!1);let{basename:i}=function(e){let t=r.useContext(a.sp);return t||(0,o.Oi)(!1),t}(v.useViewTransitionState),s=(0,a.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let c=(0,o.pb)(n.currentLocation.pathname,i)||n.currentLocation.pathname,l=(0,o.pb)(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=(0,o.B6)(s.pathname,l)||null!=(0,o.B6)(s.pathname,c)}(w)&&!0===g,x=E.encodeLocation?E.encodeLocation(w).pathname:w.pathname,C=y.pathname,N=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(C=C.toLowerCase(),N=N?N.toLowerCase():null,x=x.toLowerCase()),N&&k&&(N=(0,o.pb)(N,k)||N);const A="/"!==x&&x.endsWith("/")?x.length-1:x.length;let I,D=C===x||!p&&C.startsWith(x)&&"/"===C.charAt(A),O=null!=N&&(N===x||!p&&N.startsWith(x)&&"/"===N.charAt(x.length)),P={isActive:D,isPending:O,isTransitioning:T},M=D?n:void 0;I="function"==typeof l?l(P):[l,D?"active":null,O?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof h?h(P):h;return r.createElement(f,s({},b,{"aria-current":M,className:I,ref:t,style:R,to:m,unstable_viewTransition:g}),"function"==typeof _?_(P):_)}));var v,b;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(v||(v={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(b||(b={}))},148:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,BV:()=>A,Ix:()=>N,Rq:()=>s,Zp:()=>f,jb:()=>c,qh:()=>C,sp:()=>o,x$:()=>_,zy:()=>m});var r=n(1609),i=n(5588);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},i)))}),[e,t])}():function(){h()||(0,i.Oi)(!1);let e=r.useContext(o),{basename:t,future:n,navigator:a}=r.useContext(c),{matches:s}=r.useContext(u),{pathname:l}=m(),d=JSON.stringify((0,i.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return g((()=>{p.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void a.go(n);let o=(0,i.Gh)(n,JSON.parse(d),l,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:(0,i.HS)([t,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)}),[t,a,d,l,e])}()}function _(e,t){let{relative:n}=void 0===t?{}:t,{future:a}=r.useContext(c),{matches:o}=r.useContext(u),{pathname:s}=m(),l=JSON.stringify((0,i.yD)(o,a.v7_relativeSplatPath));return r.useMemo((()=>(0,i.Gh)(e,JSON.parse(l),s,"path"===n)),[e,l,s,n])}function v(e,t,n,o){h()||(0,i.Oi)(!1);let{navigator:s}=r.useContext(c),{matches:d}=r.useContext(u),p=d[d.length-1],g=p?p.params:{},f=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let _,v=m();if(t){var b;let e="string"==typeof t?(0,i.Rr)(t):t;"/"===f||(null==(b=e.pathname)?void 0:b.startsWith(f))||(0,i.Oi)(!1),_=e}else _=v;let E=_.pathname||"/",k=E;if("/"!==f){let e=f.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(e.length).join("/")}let T=(0,i.ue)(e,{pathname:k}),C=function(e,t,n,a){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let c=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=c.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||(0,i.Oi)(!1),c=c.slice(0,Math.min(c.length,e+1))}let u=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let e=0;e=0?c.slice(0,d+1):[c[0]];break}}}return c.reduceRight(((e,i,a)=>{let o,s=!1,p=null,h=null;var m;n&&(o=l&&i.route.id?l[i.route.id]:void 0,p=i.route.errorElement||w,u&&(d<0&&0===a?(x[m="route-fallback"]||(x[m]=!0),s=!0,h=null):d===a&&(s=!0,h=i.route.hydrateFallbackElement||null)));let g=t.concat(c.slice(0,a+1)),f=()=>{let t;return t=o?p:s?h:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(S,{match:i,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?r.createElement(y,{location:n.location,revalidation:n.revalidation,component:p,error:o,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()}),null)}(T&&T.map((e=>Object.assign({},e,{params:Object.assign({},g,e.params),pathname:(0,i.HS)([f,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:(0,i.HS)([f,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,n,o);return t&&C?r.createElement(l.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:i.rc.Pop}},C):C}function b(){let e=function(){var e;let t=r.useContext(d),n=function(e){let t=r.useContext(s);return t||(0,i.Oi)(!1),t}(k.UseRouteError),a=T(k.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[a]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}const w=r.createElement(b,null);class y extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(u.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function S(e){let{routeContext:t,match:n,children:i}=e,a=r.useContext(o);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(u.Provider,{value:t},i)}var E=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(E||{}),k=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(k||{});function T(e){let t=function(e){let t=r.useContext(u);return t||(0,i.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.Oi)(!1),n.route.id}const x={};function C(e){(0,i.Oi)(!1)}function N(e){let{basename:t="/",children:n=null,location:o,navigationType:s=i.rc.Pop,navigator:u,static:d=!1,future:p}=e;h()&&(0,i.Oi)(!1);let m=t.replace(/^\/*/,"/"),g=r.useMemo((()=>({basename:m,navigator:u,static:d,future:a({v7_relativeSplatPath:!1},p)})),[m,p,u,d]);"string"==typeof o&&(o=(0,i.Rr)(o));let{pathname:f="/",search:_="",hash:v="",state:b=null,key:w="default"}=o,y=r.useMemo((()=>{let e=(0,i.pb)(f,m);return null==e?null:{location:{pathname:e,search:_,hash:v,state:b,key:w},navigationType:s}}),[m,f,_,v,b,w,s]);return null==y?null:r.createElement(c.Provider,{value:g},r.createElement(l.Provider,{children:n,value:y}))}function A(e){let{children:t,location:n}=e;return v(I(t),n)}function I(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,a)=>{if(!r.isValidElement(e))return;let o=[...t,a];if(e.type===r.Fragment)return void n.push.apply(n,I(e.props.children,o));e.type!==C&&(0,i.Oi)(!1),e.props.index&&e.props.children&&(0,i.Oi)(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=I(e.props.children,o)),n.push(s)})),n}r.startTransition,new Promise((()=>{})),r.Component},1609:e=>{"use strict";e.exports=window.React},6087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4997:e=>{"use strict";e.exports=window.wp.blocks},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},7143:e=>{"use strict";e.exports=window.wp.data},8107:e=>{"use strict";e.exports=window.wp.dom},8468:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t{"use strict";e.exports={rE:"2.3.6"}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return n[e](a,a.exports,i),a.exports}i.m=n,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+".js",i.miniCssF=e=>e+".css",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="newfold.Onboarding:",i.l=(n,r,a,o)=>{if(e[n])e[n].push(r);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(h);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{if("undefined"!=typeof document){var e={352:0};i.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{100:1,396:1}[t]&&n.push(e[t]=(e=>new Promise(((t,n)=>{var r=i.miniCssF(e),a=i.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)r();else{var o=n&&n.type,s=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,a.parentNode&&a.parentNode.removeChild(a),i(c)}},a.href=t,document.head.appendChild(a)})(e,a,0,t,n)})))(t).then((()=>{e[t]=0}),(n=>{throw delete e[t],n})))}}})(),(()=>{var e={352:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var a=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=a);var o=i.p+i.u(t),s=new Error;i.l(o,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[o,s,c]=n,l=0;if(o.some((t=>0!==e[t]))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);c&&c(i)}for(t&&t(n);l{"use strict";i.r(a);var e={};i.r(e),i.d(e,{closeModal:()=>Os,disableComplementaryArea:()=>Ts,enableComplementaryArea:()=>ks,openModal:()=>Ds,pinItem:()=>xs,setDefaultComplementaryArea:()=>Es,setFeatureDefaults:()=>Is,setFeatureValue:()=>As,toggleFeature:()=>Ns,unpinItem:()=>Cs});var t={};i.r(t),i.d(t,{getActiveComplementaryArea:()=>Ps,isComplementaryAreaLoading:()=>Ms,isFeatureActive:()=>$s,isItemPinned:()=>Rs,isModalActive:()=>Ls});var n=i(8969);const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,o="8.9.2",s=globalThis;function c(e,t,n){const r=n||s,i=r.__SENTRY__=r.__SENTRY__||{},a=i[o]=i[o]||{};return a[e]||(a[e]=t())}const l=["debug","info","warn","error","log","assert","trace"],u={};function d(e){if(!("console"in s))return e();const t=s.console,n={},r=Object.keys(u);r.forEach((e=>{const r=u[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const p=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r?l.forEach((n=>{t[n]=(...t)=>{e&&d((()=>{s.console[n](`Sentry Logger [${n}]:`,...t)}))}})):l.forEach((e=>{t[e]=()=>{}})),t}(),h=Object.prototype.toString;function m(e){switch(h.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return k(e,Error)}}function g(e,t){return h.call(e)===`[object ${t}]`}function f(e){return g(e,"ErrorEvent")}function _(e){return g(e,"DOMError")}function v(e){return g(e,"String")}function b(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function w(e){return null===e||b(e)||"object"!=typeof e&&"function"!=typeof e}function y(e){return g(e,"Object")}function S(e){return"undefined"!=typeof Event&&k(e,Event)}function E(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function k(e,t){try{return e instanceof t}catch(e){return!1}}function T(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const x=s,C=80;function N(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,o=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||C;for(;n&&a++1&&o+i.length*c+l.length>=d));)i.push(l),o+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return""}}function A(e,t){const n=e,r=[];let i,a,o,s,c;if(!n||!n.tagName)return"";if(x.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&v(i))for(a=i.split(/\s+/),c=0;cfunction(e,t,n=!1){return!!v(e)&&(g(t,"RegExp")?t.test(e):!!v(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function P(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&R(i,r),e[t]=i}function M(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){r&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function R(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,M(e,"__sentry_original__",t)}catch(e){}}function $(e){return e.__sentry_original__}function L(e){if(m(e))return{message:e.message,name:e.name,stack:e.stack,...F(e)};if(S(e)){const t={type:e.type,target:z(e.target),currentTarget:z(e.currentTarget),...F(e)};return"undefined"!=typeof CustomEvent&&k(e,CustomEvent)&&(t.detail=e.detail),t}return e}function z(e){try{return"undefined"!=typeof Element&&k(e,Element)?N(e):Object.prototype.toString.call(e)}catch(e){return""}}function F(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function V(e){return H(e,new Map)}function H(e,t){if(function(e){if(!y(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=H(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(H(e,t))})),r}return e}function U(){const e=s,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function W(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function B(e){const{message:t,event_id:n}=e;if(t)return t;const r=W(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function j(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function G(e,t){const n=W(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function q(e){if(e&&e.__sentry_captured__)return!0;try{M(e,"__sentry_captured__",!0)}catch(e){}return!1}function Y(e){return Array.isArray(e)?e:[e]}const K="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Q=[];function J(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Y(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),a=function(e,t){for(let t=0;tn(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}K&&p.log(`Integration installed: ${t.name}`)}}const ee=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],te=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const i=r.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ee],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(K&&p.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${B(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}(e).some((e=>O(e,t)))}(e,t.ignoreErrors)?(K&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${B(e)}`),!0):function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}(e)?(K&&p.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${B(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&O(n,t)}(e,t.ignoreTransactions)?(K&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${B(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=ne(e);return!!n&&O(n,t)}(e,t.denyUrls)?(K&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${B(e)}.\nUrl: ${ne(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=ne(e);return!n||O(n,t)}(e,t.allowUrls)&&(K&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${B(e)}.\nUrl: ${ne(e)}`),!0)}(t,a)?null:t}});function ne(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return K&&p.error(`Cannot extract url for event ${B(e)}`),null}}function re(){return ie(s),s}function ie(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||o,t[o]=t[o]||{}}function ae(){return{traceId:U(),spanId:U().substring(16)}}const oe=1e3;function se(){return Date.now()/oe}const ce=function(){const{performance:e}=s;if(!e||!e.now)return se;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/oe}();let le;const ue=(()=>{const{performance:e}=s;if(!e||!e.now)return void(le="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const pe="_sentrySpan";function he(e,t){t?M(e,pe,t):delete e[pe]}function me(e){return e[pe]}class ge{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ae()}clone(){const e=new ge;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,he(e,me(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&de(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof fe?[t.getScopeData(),t.getRequestSession()]:y(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,he(this,void 0),this._attachments=[],this._propagationContext=ae(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:se(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:me(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:U();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:U();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:U();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(p.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const fe=ge;class _e{constructor(e,t){let n,r;n=e||new fe,r=t||new fe,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return E(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function ve(){const e=ie(re());return e.stack=e.stack||new _e(c("defaultCurrentScope",(()=>new fe)),c("defaultIsolationScope",(()=>new fe)))}function be(e){return ve().withScope(e)}function we(e,t){const n=ve();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function ye(e){return ve().withScope((()=>e(ve().getIsolationScope())))}function Se(e){const t=ie(e);return t.acs?t.acs:{withIsolationScope:ye,withScope:be,withSetScope:we,withSetIsolationScope:(e,t)=>ye(t),getCurrentScope:()=>ve().getScope(),getIsolationScope:()=>ve().getIsolationScope()}}function Ee(){return Se(re()).getCurrentScope()}function ke(){return Se(re()).getIsolationScope()}function Te(){return Ee().getClient()}let xe;const Ce=new WeakMap,Ne=()=>({name:"FunctionToString",setupOnce(){xe=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=$(this),n=Ce.has(Te())&&void 0!==t?t:this;return xe.apply(n,e)}}catch(e){}},setup(e){Ce.set(e,!0)}}),Ae=50,Ie="?",De=/\(error: (.*)\)/,Oe=/captureMessage|captureException/;function Pe(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const i=[],a=e.split("\n");for(let e=n;e1024)continue;const o=De.test(n)?n.replace(De,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){i.push(t);break}}if(i.length>=Ae+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Oe.test(t[t.length-1].function||"")&&(t.pop(),Oe.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Ae).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||Ie})))}(i.slice(r))}}const Me="";function Re(e){try{return e&&"function"==typeof e&&e.name||Me}catch(e){return Me}}function $e(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}const Le=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Fe(e,t)&&!!ze(e,t))))}(e,t)||!!function(e,t){const n=Ve(t),r=Ve(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Fe(e,t)&&!!ze(e,t)))}(e,t))}(t,e))return K&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function ze(e,t){let n=$e(e),r=$e(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;en?We(e,t-1,n):r;var i}function Be(e,t,n=1/0,r=1/0,i=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=r){u[e]="[MaxProperties ~]";break}const t=p[e];u[e]=Be(e,t,c-1,r,i),d++}return o(t),u}var je;function Ge(e){return new Ye((t=>{t(e)}))}function qe(e){return new Ye(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(je||(je={}));class Ye{constructor(e){Ye.prototype.__init.call(this),Ye.prototype.__init2.call(this),Ye.prototype.__init3.call(this),Ye.prototype.__init4.call(this),this._state=je.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Ye(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Ye(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(je.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(je.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===je.PENDING&&(E(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===je.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===je.RESOLVED&&e[1](this._value),this._state===je.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Ke(e,t,n,r=0){return new Ye(((i,a)=>{const o=e[r];if(null===t||"function"!=typeof o)i(t);else{const s=o({...t},n);K&&o.id&&null===s&&p.log(`Event processor "${o.id}" dropped event`),E(s)?s.then((t=>Ke(e,t,n,r+1).then(i))).then(null,a):Ke(e,s,n,r+1).then(i).then(null,a)}}))}const Qe="sentry.source",Je="sentry.sample_rate",Ze="sentry.op",Xe="sentry.origin",et="sentry.idle_span_finish_reason",tt="baggage",nt="sentry-",rt=/^sentry-/,it=8192;function at(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===i?a:`${e},${a}`;return o.length>it?(r&&p.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${nt}${t}`]=n),e)),{}))}function ot(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const st=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ct(e,t){const n=function(e){if(!e)return;const t=e.match(st);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=function(e){const t=function(e){if(e&&(v(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=ot(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{}):ot(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(rt)&&(e[t.slice(nt.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:a,parentSampled:o}=n||{};return n?{traceId:i||U(),parentSpanId:a||U().substring(16),spanId:U().substring(16),sampled:o,dsc:r||{}}:{traceId:i||U(),spanId:U().substring(16)}}function lt(e=U(),t=U().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const ut="_sentryMetrics";function dt(e){const t=e[ut];if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(V(r));return n}const pt=0,ht=1,mt=2;function gt(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:ht};if(e>=400&&e<500)switch(e){case 401:return{code:mt,message:"unauthenticated"};case 403:return{code:mt,message:"permission_denied"};case 404:return{code:mt,message:"not_found"};case 409:return{code:mt,message:"already_exists"};case 413:return{code:mt,message:"failed_precondition"};case 429:return{code:mt,message:"resource_exhausted"};case 499:return{code:mt,message:"cancelled"};default:return{code:mt,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:mt,message:"unimplemented"};case 503:return{code:mt,message:"unavailable"};case 504:return{code:mt,message:"deadline_exceeded"};default:return{code:mt,message:"internal_error"}}return{code:mt,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}const ft=1;function _t(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s}=St(e);return V({parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s})}function vt(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=St(e);return V({parent_span_id:r,span_id:t,trace_id:n})}function bt(e){const{traceId:t,spanId:n}=e.spanContext();return lt(t,n,Et(e))}function wt(e){return"number"==typeof e?yt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?yt(e.getTime()):ce()}function yt(e){return e>9999999999?e/1e3:e}function St(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:c}=e;return V({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:wt(i),timestamp:wt(o)||void 0,status:kt(c),op:r[Ze],origin:r[Xe],_metrics_summary:dt(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Et(e){const{traceFlags:t}=e.spanContext();return t===ft}function kt(e){if(e&&e.code!==pt)return e.code===ht?"ok":e.message||"unknown_error"}const Tt="_sentryChildSpans",xt="_sentryRootSpan";function Ct(e,t){const n=e[xt]||e;M(t,xt,n),e[Tt]?e[Tt].add(t):M(e,Tt,new Set([t]))}function Nt(e){const t=new Set;return function e(n){if(!t.has(n)&&Et(n)){t.add(n);const r=n[Tt]?Array.from(n[Tt]):[];for(const t of r)e(t)}}(e),Array.from(t)}function At(e){return e[xt]||e}function It(){const e=Se(re());return e.getActiveSpan?e.getActiveSpan():me(Ee())}const Dt="_frozenDsc";function Ot(e,t){M(e,Dt,t)}function Pt(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=V({environment:n.environment||He,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function Mt(e){const t=Te();if(!t)return{};const n=Pt(St(e).trace_id||"",t),r=At(e);if(!r)return n;const i=r[Dt];if(i)return i;const a=St(r),o=a.data||{},s=o[Je];null!=s&&(n.sample_rate=`${s}`);const c=o[Qe];return c&&"url"!==c&&(n.transaction=a.description),n.sampled=String(Et(r)),t.emit("createDsc",n),n}function Rt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:m}=t;$t(e,"extra",n),$t(e,"tags",r),$t(e,"user",i),$t(e,"contexts",a),$t(e,"sdkProcessingMetadata",s),o&&(e.level=o),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function $t(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Lt(e,t,n,r,i,a){const{normalizeDepth:o=3,normalizeMaxBreadth:l=1e3}=e,u={...t,event_id:t.event_id||n.event_id||U(),timestamp:t.timestamp||se()},d=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:He),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=I(e.message,a));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=I(o.value,a));const s=e.request;s&&s.url&&(s.url=I(s.url,a))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,d),void 0===t.type&&function(e,t){const n=s._sentryDebugIds;if(!n)return;let r;const i=zt.get(t);i?r=i:(r=new Map,zt.set(t,r));const a=Object.keys(n).reduce(((e,i)=>{let a;const o=r.get(i);o?a=o:(a=t(i),r.set(i,a));for(let t=a.length-1;t>=0;t--){const r=a[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(u,e.stackParser);const p=function(e,t){if(!t)return e;const n=e?e.clone():new fe;return n.update(t),n}(r,n.captureContext);n.mechanism&&G(u,n.mechanism);const h=i?i.getEventProcessors():[],m=c("globalScope",(()=>new fe)).getScopeData();a&&Rt(m,a.getScopeData()),p&&Rt(m,p.getScopeData());const g=[...n.attachments||[],...m.attachments];return g.length&&(n.attachments=g),function(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,c=V(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=V(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=V(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=V(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:vt(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Mt(t),...e.sdkProcessingMetadata};const n=St(At(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Y(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}(u,m),Ke([...h,...m.eventProcessors],u,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Ue(e.data,t,n)}})))},...e.user&&{user:Ue(e.user,t,n)},...e.contexts&&{contexts:Ue(e.contexts,t,n)},...e.extra&&{extra:Ue(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ue(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:Ue(e.data,t,n)}})))),r}(e,o,l):e)))}const zt=new WeakMap;const Ft=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Vt(e,t){return Ee().captureEvent(e,t)}function Ht(e){const t=Te(),n=ke(),r=Ee(),{release:i,environment:a=He}=t&&t.getOptions()||{},{userAgent:o}=s.navigator||{},c=function(e){const t=ce(),n={sid:U(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return V({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&de(n,e),n}({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&"ok"===l.status&&de(l,{status:"exited"}),Ut(),n.setSession(c),r.setSession(c),c}function Ut(){const e=ke(),t=Ee(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),de(e,n)}(n),Wt(),e.setSession(),t.setSession()}function Wt(){const e=ke(),t=Ee(),n=Te(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Bt(e=!1){e?Ut():Wt()}const jt=s;function Gt(){if(!("fetch"in jt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function qt(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const Yt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Kt="8.9.2",Qt=globalThis;function Jt(e,t,n){const r=n||Qt,i=r.__SENTRY__=r.__SENTRY__||{},a=i[Kt]=i[Kt]||{};return a[e]||(a[e]=t())}const Zt=["debug","info","warn","error","log","assert","trace"],Xt={},en=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Yt?Zt.forEach((n=>{t[n]=(...t)=>{e&&function(e){if(!("console"in Qt))return e();const t=Qt.console,n={},r=Object.keys(Xt);r.forEach((e=>{const r=Xt[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}((()=>{Qt.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Zt.forEach((e=>{t[e]=()=>{}})),t}(),tn="";function nn(e){try{return e&&"function"==typeof e&&e.name||tn}catch(e){return tn}}const rn={},an={};function on(e,t){rn[e]=rn[e]||[],rn[e].push(t)}function sn(e,t){an[e]||(t(),an[e]=!0)}function cn(e,t){const n=e&&rn[e];if(n)for(const r of n)try{r(t)}catch(t){Yt&&en.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${nn(r)}\nError:`,t)}}const ln=Qt,un=Object.prototype.toString;function dn(e,t){return un.call(e)===`[object ${t}]`}function pn(e){return dn(e,"String")}function hn(e){return dn(e,"Object")}function mn(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,gn(e,"__sentry_original__",t)}catch(e){}}(i,r),e[t]=i}function gn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Yt&&en.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function fn(e){return vn(e,new Map)}function vn(e,t){if(function(e){if(!hn(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=vn(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(vn(e,t))})),r}return e}const bn=Qt;let wn;function yn(e){const t="history";on(t,e),sn(t,Sn)}function Sn(){if(!function(){const e=ln.chrome,t=e&&e.app&&e.app.runtime,n="history"in ln&&!!ln.history.pushState&&!!ln.history.replaceState;return!t&&n}())return;const e=bn.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=wn,t=String(n);wn=t,cn("history",{from:e,to:t})}return e.apply(this,t)}}bn.onpopstate=function(...t){const n=bn.location.href,r=wn;if(wn=n,cn("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},mn(bn.history,"pushState",t),mn(bn.history,"replaceState",t)}const En=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function kn(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}function Tn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function xn(e,t=[]){return[e,t]}function Cn(e,t){const[n,r]=e;return[n,[...r,t]]}function Nn(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function An(e){return s.__SENTRY__&&s.__SENTRY__.encodePolyfill?s.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function In(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[An(r),e]:r.push("string"==typeof e?An(e):e)}for(const e of n){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(Ue(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function Dn(e){return[{type:"span"},e]}function On(e){const t="string"==typeof e.data?An(e.data):e.data;return[V({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Pn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Mn(e){return Pn[e]}function Rn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}class $n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Ln="7";function zn(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:Ln,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,n)}`}function Fn(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;K&&p.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const Vn="Not capturing exception because it's already been captured.";class Hn{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=En.exec(e);if(!t)return void d((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,i="",a,o="",s]=t.slice(1);let c="",l=s;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Tn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}(e):Tn(e);if(t&&function(e){if(!r)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(p.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(p.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(p.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):K&&p.warn("No DSN provided, client will not send events."),this._dsn){const t=zn(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=U();if(q(e))return K&&p.log(Vn),r;const i={event_id:r,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,n)))),i.event_id}captureMessage(e,t,n,r){const i={event_id:U(),...n},a=b(e)?e:String(e),o=w(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(o.then((e=>this._captureEvent(e,i,r)))),i.event_id}captureEvent(e,t,n){const r=U();if(t&&t.originalException&&q(t.originalException))return K&&p.log(Vn),r;const i={event_id:r,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){"string"!=typeof e.release?K&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),de(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Ge(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];X(this,e,this._integrations),t||Z(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=Rn(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const o=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:kn(r)},...i&&{trace:V({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,xn(o,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=Cn(n,On(e));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const i=Rn(n);return xn({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:kn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;K&&p.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(K&&p.error("Error while sending event:",e),e))):(K&&p.error("Transport disabled"),Ge({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&X(e,t,n)})),n}(this,e),Z(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(de(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Ye((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=ke()){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Lt(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:i,dsc:a}=t;e.contexts={trace:V({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};const o=a||Pt(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(K){const t=e;"log"===t.logLevel?p.log(t.message):p.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,a=Wn(e),o=Un(e),s=e.type||"error",c=`before send for type \`${s}\``,l=void 0===i?void 0:Fn(i);if(o&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),qe(new $n(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===s?"replay":s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new $n("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i,beforeSendSpan:a}=e;if(Un(t)&&r)return r(t,n);if(Wn(t)){if(t.spans&&a){const e=[];for(const n of t.spans){const t=a(n);t&&e.push(t)}t.spans=e}if(i)return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(E(e))return e.then((e=>{if(!y(e)&&null!==e)throw new $n(n);return e}),(e=>{throw new $n(`${t} rejected with ${e}`)}));if(!y(e)&&null!==e)throw new $n(n);return e}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new $n(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);const o=r.transaction_info;if(a&&o&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...o,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof $n)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new $n(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Un(e){return void 0===e.type}function Wn(e){return"transaction"===e.type}const Bn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function jn(e,t){const n=qn(e,t),r={type:t&&t.name,value:Kn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Gn(e,t){return{exception:{values:[jn(e,t)]}}}function qn(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&Yn.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,i)}catch(e){}return[]}const Yn=/Minified React error #\d+;/i;function Kn(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Qn(e,t,n,r,i){let a;if(f(t)&&t.error)return Gn(e,t.error);if(_(t)||g(t,"DOMException")){const i=t;if("stack"in t)a=Gn(e,t);else{const t=i.name||(_(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;a=Jn(e,o,n,r),j(a,o)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return m(t)?Gn(e,t):y(t)||S(t)?(a=function(e,t,n,r){const i=Te(),a=i&&i.getOptions().normalizeDepth,o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:We(t,a)};if(o)return{exception:{values:[jn(e,o)]},extra:s};const c={exception:{values:[{type:S(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Zn(t,{isUnhandledRejection:r})}]},extra:s};if(n){const t=qn(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,i),G(a,{synthetic:!0}),a):(a=Jn(e,t,n,r),j(a,`${t}`,void 0),G(a,{synthetic:!0}),a)}function Jn(e,t,n,r){const i={};if(r&&n){const r=qn(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(b(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Zn(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(L(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return I(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:I(r,t)}return""}(e),r=t?"promise rejection":"exception";return f(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:S(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Xn=s;let er=0;function tr(){return er>0}function nr(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if($(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((e=>nr(e,t)));return e.apply(this,i)}catch(e){throw er++,setTimeout((()=>{er--})),function(...e){const t=Se(re());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}((n=>{var i;n.addEventProcessor((e=>(t.mechanism&&(j(e,void 0,void 0),G(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),i=e,Ee().captureException(i,function(e){if(e)return function(e){return e instanceof fe||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Ft.includes(e)))}(e)?{captureContext:e}:e}(undefined))})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}R(r,e),M(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class rr extends Hn{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};!function(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:o}))),version:o}),e._metadata=i}(t,"browser",["browser"],Xn.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Xn.document&&Xn.document.addEventListener("visibilitychange",(()=>{"hidden"===Xn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=Qn(e,t,n&&n.syntheticException||void 0,r);return G(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Ge(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const a=Jn(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Ge(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Bn&&p.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:kn(r)}},a=function(e){return[{type:"user_report"},e]}(e);return xn(i,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Bn&&p.log("No outcomes to send"));if(!this._dsn)return void(Bn&&p.log("No dsn provided, will not send outcomes"));Bn&&p.log("Sending outcomes:",e);const t=(n=e,xn((r=this._options.tunnel&&kn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:se(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function ir(){const e=Qt,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}const ar=1e3;let or,sr,cr;function lr(){if(!bn.document)return;const e=cn.bind(null,"dom"),t=ur(e,!0);bn.document.addEventListener("click",t,!1),bn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=bn[t]&&bn[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(mn(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,a=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{refCount:0};if(!o.handler){const r=ur(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}})),mn(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function ur(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;gn(n,"_sentryCaptured",!0),r&&!r._sentryId&&gn(r,"_sentryId",ir());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==sr)return!1;try{if(!e.target||e.target._sentryId!==cr)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),sr=n.type,cr=r?r._sentryId:void 0),clearTimeout(or),or=bn.setTimeout((()=>{cr=void 0,sr=void 0}),ar)}}function dr(){return Date.now()/1e3}const pr=function(){const{performance:e}=Qt;if(!e||!e.now)return dr;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let hr;const mr=(()=>{const{performance:e}=Qt;if(!e||!e.now)return void(hr="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const e=this[gr];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}cn("xhr",{endTimestamp:1e3*pr(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?mn(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),mn(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,i=this[gr];return i&&pn(n)&&pn(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),mn(e,"send",(function(e){return function(...t){const n=this[gr];return n?(void 0!==t[0]&&(n.body=t[0]),cn("xhr",{startTimestamp:1e3*pr(),xhr:this}),e.apply(this,t)):e.apply(this,t)}}))}const vr=100;function br(e,t){const n=Te(),r=ke();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=vr}=n.getOptions();if(a<=0)return;const o={timestamp:se(),...e},s=i?d((()=>i(o,t))):o;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,a))}const wr={},yr={};function Sr(e,t){wr[e]=wr[e]||[],wr[e].push(t)}function Er(e,t){yr[e]||(t(),yr[e]=!0)}function kr(e,t){const n=e&&wr[e];if(n)for(const i of n)try{i(t)}catch(t){r&&p.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Re(i)}\nError:`,t)}}function Tr(){"console"in s&&l.forEach((function(e){e in s.console&&P(s.console,e,(function(t){return u[e]=t,function(...t){kr("console",{args:t,level:e});const n=u[e];n&&n.apply(s.console,t)}}))}))}function xr(e){const t="fetch";Sr(t,e),Er(t,Cr)}function Cr(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Gt())return!1;if(qt(jt.fetch))return!0;let e=!1;const t=jt.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=qt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&P(s,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Ar(t),method:Nr(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Ar(t),method:Nr(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:1e3*ce()};kr("fetch",{...i});const a=(new Error).stack;return e.apply(s,t).then((e=>(kr("fetch",{...i,endTimestamp:1e3*ce(),response:e}),e)),(e=>{throw kr("fetch",{...i,endTimestamp:1e3*ce(),error:e}),m(e)&&void 0===e.stack&&(e.stack=a,M(e,"framesToPop",1)),e}))}}))}function Nr(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Ar(e){return"string"==typeof e?e:e?Nr(e,"url")?e.url:e.toString?e.toString():"":""}const Ir=["fatal","error","warning","log","info","debug"];function Dr(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Or=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";Sr(t,e),Er(t,Tr)}(function(e){return function(t){if(Te()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":Ir.includes(r)?r:"log"),message:D(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${D(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}br(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Te()!==e)return;let r,i,a="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>1024&&(Bn&&p.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=N(t,{keyAttrs:a,maxStringLength:o}),i=function(e){if(!x.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(e){r=""}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),br(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),on("dom",n),sn("dom",lr)),t.xhr&&fr(function(e){return function(t){if(Te()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[gr];if(!n||!r||!i)return;const{method:a,url:o,status_code:s,body:c}=i;br({category:"xhr",data:{method:a,url:o,status_code:s},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&xr(function(e){return function(t){if(Te()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)br({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;br({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&yn(function(e){return function(t){if(Te()!==e)return;let n=t.from,r=t.to;const i=Dr(Xn.location.href);let a=n?Dr(n):void 0;const o=Dr(r);a&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),br({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Te()===e&&br({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:B(t)},{event:t})}}(e))}}},Pr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Mr=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&P(Xn,"setTimeout",Rr),t.setInterval&&P(Xn,"setInterval",Rr),t.requestAnimationFrame&&P(Xn,"requestAnimationFrame",$r),t.XMLHttpRequest&&"XMLHttpRequest"in Xn&&P(XMLHttpRequest.prototype,"send",Lr);const e=t.eventTarget;e&&(Array.isArray(e)?e:Pr).forEach(zr)}}};function Rr(e){return function(...t){const n=t[0];return t[0]=nr(n,{mechanism:{data:{function:Re(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function $r(e){return function(t){return e.apply(this,[nr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Re(e)},handled:!1,type:"instrument"}})])}}function Lr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&P(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Re(t)},handled:!1,type:"instrument"}},r=$(t);return r&&(n.mechanism.data.handler=Re(r)),nr(t,n)}))})),e.apply(this,t)}}function zr(e){const t=Xn,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(P(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=nr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Re(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,nr(r,{mechanism:{data:{function:"addEventListener",handler:Re(r),target:e},handled:!1,type:"instrument"}}),i])}})),P(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,i,r)}})))}let Fr=null;function Vr(e){const t="error";Sr(t,e),Er(t,Hr)}function Hr(){Fr=s.onerror,s.onerror=function(e,t,n,r,i){return kr("error",{column:r,error:i,line:n,msg:e,url:t}),!(!Fr||Fr.__SENTRY_LOADER__)&&Fr.apply(this,arguments)},s.onerror.__SENTRY_INSTRUMENTED__=!0}let Ur=null;function Wr(e){const t="unhandledrejection";Sr(t,e),Er(t,Br)}function Br(){Ur=s.onunhandledrejection,s.onunhandledrejection=function(e){return kr("unhandledrejection",e),!(Ur&&!Ur.__SENTRY_LOADER__)||Ur.apply(this,arguments)},s.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const jr=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){Vr((t=>{const{stackParser:n,attachStacktrace:r}=qr();if(Te()!==e||tr())return;const{msg:i,url:a,line:o,column:s,error:c}=t,l=function(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=v(t)&&t.length>0?t:function(){try{return x.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:d,function:Ie,in_app:!0,lineno:u}),e}(Qn(n,c||i,void 0,r,!1),a,o,s);l.level="error",Vt(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),Gr("onerror")),t.onunhandledrejection&&(function(e){Wr((t=>{const{stackParser:n,attachStacktrace:r}=qr();if(Te()!==e||tr())return;const i=function(e){if(w(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),a=w(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Qn(n,i,void 0,r,!0);a.level="error",Vt(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),Gr("onunhandledrejection"))}}};function Gr(e){Bn&&p.log(`Global Handler attached: ${e}`)}function qr(){const e=Te();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Yr=()=>({name:"HttpContext",preprocessEvent(e){if(!Xn.navigator&&!Xn.location&&!Xn.document)return;const t=e.request&&e.request.url||Xn.location&&Xn.location.href,{referrer:n}=Xn.document||{},{userAgent:r}=Xn.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}});function Kr(e,t,n=250,r,i,a,o){if(!(a.exception&&a.exception.values&&o&&k(o.originalException,Error)))return;const s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,l;s&&(a.exception.values=(c=Qr(e,t,i,o.originalException,r,a.exception.values,s,0),l=n,c.map((e=>(e.value&&(e.value=I(e.value,l)),e)))))}function Qr(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(k(r[i],Error)){Jr(o,s);const a=e(t,r[i]),l=c.length;Zr(a,i,l,s),c=Qr(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,a)=>{if(k(r,Error)){Jr(o,s);const l=e(t,r),u=c.length;Zr(l,`errors[${a}]`,u,s),c=Qr(e,t,n,r,i,[l,...c],l,u)}})),c}function Jr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Zr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Xr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){const a=i.getOptions();Kr(jn,a.stackParser,a.maxValueLength,n,t,e,r)}}};function ei(e,t,n,r){const i={filename:e,function:""===t?Ie:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const ti=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ni=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ri=/\((\S*)(?::(\d+))(?::(\d+))\)/,ii=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ai=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oi=Pe([30,e=>{const t=ti.exec(e);if(t){const[,e,n,r]=t;return ei(e,Ie,+n,+r)}const n=ni.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=ri.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=si(n[1]||Ie,n[2]);return ei(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=ii.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=ai.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Ie;return[n,e]=si(n,e),ei(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),si=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ie,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};const ci="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,li={};function ui(e){li[e]=void 0}const di=6e4;const pi=64;function hi(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new Ye(((n,r)=>{let i=t.length;if(!i)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Ge(e).then((()=>{--i||(clearTimeout(a),n(!0))}),r)}))}))}}}(e.bufferSize||pi)){let r={};return{send:function(i){const a=[];if(Nn(i,((t,n)=>{const i=Mn(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=mi(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(t)})),0===a.length)return Ge({});const o=xn(i[0],a),s=t=>{Nn(o,((n,r)=>{const i=mi(n,r);e.recordDroppedEvent(t,Mn(r),i)}))};return n.add((()=>t({body:In(o)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&K&&p.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n,,,a]=e.split(":",5),o=parseInt(t,10),s=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))"metric_bucket"===e&&a&&!a.split(";").includes("custom")||(i[e]=r+s);else i.all=r+s}else o?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?di:r-t}(o,r):429===t&&(i.all=r+6e4);return i}(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof $n)return K&&p.error("Skipped sending event because buffer is full."),s("queue_overflow"),Ge({});throw e}))},flush:e=>n.drain(e)}}function mi(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function gi(e,t=function(e){const t=li[e];if(t)return t;let n=bn[e];if((r=n)&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(r.toString()))return li[e]=n.bind(bn);var r;const i=bn.document;if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(n=r[e]),i.head.removeChild(t)}catch(t){ci&&en.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?li[e]=n.bind(bn):n}("fetch")){let n=0,r=0;return hi(e,(function(i){const a=i.body.length;n+=a,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return ui("fetch"),qe("No fetch implementation available");try{return t(e.url,o).then((e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return ui("fetch"),n-=a,r--,qe(e)}}))}function fi(e={}){const t=function(e={}){return{defaultIntegrations:[te(),Ne(),Mr(),Or(),jr(),Xr(),Le(),Yr()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Xn.SENTRY_RELEASE&&Xn.SENTRY_RELEASE.id?Xn.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(e);if(function(){const e=Xn[Xn.chrome?"chrome":"browser"],t=e&&e.runtime&&e.runtime.id,n=Xn.location&&Xn.location.href||"",r=!!t&&Xn===Xn.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some((e=>n.startsWith(`${e}//`)));return!!t&&!r}())return void d((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));Bn&&(Gt()||p.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(r=t.stackParser||oi,Array.isArray(r)?Pe(...r):r),integrations:J(t),transport:t.transport||gi};var r;(function(e,t){!0===t.debug&&(K?p.enable():d((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Ee().update(t.initialScope);const n=new e(t);!function(e){Ee().setClient(e)}(n),n.init()})(rr,n),t.autoSessionTracking&&(void 0!==Xn.document?(Ht({ignoreDuration:!0}),Bt(),yn((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ht({ignoreDuration:!0}),Bt())}))):Bn&&p.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}const _i="8.9.2";function vi(){return bi(Qt),Qt}function bi(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Kt,t[Kt]=t[Kt]||{}}function wi(){return{traceId:ir(),spanId:ir().substring(16)}}const yi="_sentrySpan";function Si(e,t){t?gn(e,yi,t):delete e[yi]}function Ei(e){return e[yi]}class ki{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=wi()}clone(){const e=new ki;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Si(e,Ei(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||pr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ir()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Ti?[t.getScopeData(),t.getRequestSession()]:hn(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Si(this,void 0),this._attachments=[],this._propagationContext=wi(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:dr(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ei(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:ir();if(!this._client)return en.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:ir();if(!this._client)return en.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:ir();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(en.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Ti=ki;class xi{constructor(e,t){let n,r;n=e||new Ti,r=t||new Ti,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n);var r}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function Ci(){const e=bi(vi());return e.stack=e.stack||new xi(Jt("defaultCurrentScope",(()=>new Ti)),Jt("defaultIsolationScope",(()=>new Ti)))}function Ni(e){return Ci().withScope(e)}function Ai(e,t){const n=Ci();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Ii(e){return Ci().withScope((()=>e(Ci().getIsolationScope())))}function Di(e){const t=bi(e);return t.acs?t.acs:{withIsolationScope:Ii,withScope:Ni,withSetScope:Ai,withSetIsolationScope:(e,t)=>Ii(t),getCurrentScope:()=>Ci().getScope(),getIsolationScope:()=>Ci().getIsolationScope()}}function Oi(){return Di(vi()).getCurrentScope()}function Pi(){return Oi().getClient()}const Mi="_sentryMetrics";function Ri(e){const t=e[Mi];if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push(fn(r));return n}const $i="sentry.source",Li="sentry.sample_rate",zi="sentry.op",Fi="sentry.origin",Vi="sentry.measurement_unit",Hi="sentry.measurement_value",Ui="sentry.exclusive_time",Wi=0,Bi=1,ji=1;function Gi(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s}=Ki(e);return fn({parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s})}function qi(e){return"number"==typeof e?Yi(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Yi(e.getTime()):pr()}function Yi(e){return e>9999999999?e/1e3:e}function Ki(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:c}=e;return fn({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:qi(i),timestamp:qi(o)||void 0,status:Ji(c),op:r[zi],origin:r[Fi],_metrics_summary:Ri(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Qi(e){const{traceFlags:t}=e.spanContext();return t===ji}function Ji(e){if(e&&e.code!==Wi)return e.code===Bi?"ok":e.message||"unknown_error"}const Zi="_sentryChildSpans",Xi="_sentryRootSpan";function ea(e,t){const n=e[Xi]||e;gn(t,Xi,n),e[Zi]?e[Zi].add(t):gn(e,Zi,new Set([t]))}function ta(e){return e[Xi]||e}function na(){const e=Di(vi());return e.getActiveSpan?e.getActiveSpan():Ei(Oi())}function ra(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||function(){const e=Pi();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}const ia="production",aa="_frozenDsc";function oa(e,t){gn(e,aa,t)}function sa(e){const t=Pi();if(!t)return{};const n=function(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=fn({environment:n.environment||ia,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}(Ki(e).trace_id||"",t),r=ta(e);if(!r)return n;const i=r[aa];if(i)return i;const a=Ki(r),o=a.data||{},s=o[Li];null!=s&&(n.sample_rate=`${s}`);const c=o[$i];return c&&"url"!==c&&(n.transaction=a.description),n.sampled=String(Qi(r)),t.emit("createDsc",n),n}const ca="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;class la{constructor(e={}){this._traceId=e.traceId||ir(),this._spanId=e.spanId||ir().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}function ua(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}function da(e){return[{type:"span"},e]}function pa(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[Vi],i=n[Hi];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})})),t}const ha="_sentryScope",ma="_sentryIsolationScope";function ga(e){return{scope:e[ha],isolationScope:e[ma]}}class fa{constructor(e={}){this._traceId=e.traceId||ir(),this._spanId=e.spanId||ir().substring(16),this._startTime=e.startTimestamp||pr(),this._attributes={},this.setAttributes({[Fi]:"manual",[zi]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?ji:0}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=qi(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=qi(e),function(e){if(!ca)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Ki(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${ta(e)===e?"root ":""}span "${t}" with ID ${r}`;en.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return fn({data:this._attributes,description:this._name,op:this._attributes[zi],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ji(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Fi],_metrics_summary:Ri(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[Ui],measurements:pa(this._events),is_segment:this._isStandaloneSpan&&ta(this)===this||void 0,segment_id:this._isStandaloneSpan?ta(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){ca&&en.log("[Tracing] Adding an event to span:",e);const r=_a(t)?t:n||pr(),i=_a(t)?{}:t||{},a={name:e,time:qi(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Pi();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==ta(this))return;if(this._isStandaloneSpan)return void function(e){const t=Pi();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{ca&&en.error("Error while sending span:",e)}))}(function(e,t){const n=sa(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,a={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!i&&r&&{dsn:ua(r)}},o=t&&t.getOptions().beforeSendSpan,s=o?e=>o(Ki(e)):e=>Ki(e),c=[];for(const t of e){const e=s(t);e&&c.push(da(e))}return function(e,t=[]){return[e,t]}(a,c)}([this],e));const t=this._convertSpanToTransaction();t&&(ga(this).scope||Oi()).captureEvent(t)}_convertSpanToTransaction(){if(!va(Ki(this)))return;this._name||(ca&&en.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=ga(this),n=(e||Oi()).getClient()||Pi();if(!0!==this._sampled)return ca&&en.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=function(e){const t=new Set;return function e(n){if(!t.has(n)&&Qi(n)){t.add(n);const r=n[Zi]?Array.from(n[Zi]):[];for(const t of r)e(t)}}(e),Array.from(t)}(this).filter((e=>e!==this&&!function(e){return e instanceof fa&&e.isStandaloneSpan()}(e))).map((e=>Ki(e))).filter(va),i=this._attributes[$i],a={contexts:{trace:Gi(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...fn({dynamicSamplingContext:sa(this)})},_metrics_summary:Ri(this),...i&&{transaction_info:{source:i}}},o=pa(this._events);return o&&Object.keys(o).length&&(ca&&en.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function _a(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function va(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const ba="__SENTRY_SUPPRESS_TRACING__";function wa(e){const t=ya();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=qi(e.startTime),delete n.startTime,n}return t}(e),r=e.scope||Oi(),i=function(e){const t=Ei(e);if(!t)return;const n=Pi();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?ta(t):t}(r);return e.onlyIfParent&&!i?new la:function({parentSpan:e,spanContext:t,forceTransaction:n,scope:r}){if(!ra())return new la;const i=Di(vi()).getIsolationScope();let a;if(e&&!n)a=function(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[ba]&&Qi(e),o=a?new fa({...n,parentSpanId:r,traceId:i,sampled:a}):new la({traceId:i});ea(e,o);const s=Pi();return s&&(s.emit("spanStart",o),n.endTimestamp&&s.emit("spanEnd",o)),o}(e,r,t),ea(e,a);else if(e){const n=sa(e),{traceId:i,spanId:o}=e.spanContext(),s=Qi(e);a=Sa({traceId:i,parentSpanId:o,...t},r,s),oa(a,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Sa({traceId:e,parentSpanId:o,...t},r,s),n&&oa(a,n)}return function(e){if(!ca)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ki(e),{spanId:i}=e.spanContext(),a=Qi(e),o=ta(e),s=o===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){const{op:e,description:t}=Ki(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}en.log(`${c}\n ${l.join("\n ")}`)}(a),function(e,t,n){e&&(gn(e,ma,n),gn(e,ha,t))}(a,r,i),a}({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r})}function ya(){return Di(vi())}function Sa(e,t,n){const r=Pi(),i=r&&r.getOptions()||{},{name:a="",attributes:o}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[ba]?[!1]:function(e,t){if(!ra(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const r=function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;ca&&en.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}(n);return void 0===r?(ca&&en.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()";try{let n=e;const r=5,i=[];let a=0,o=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||ka;for(;n&&a++1&&o+i.length*c+l.length>=d));)i.push(l),o+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return""}}function xa(e,t){const n=e,r=[];let i,a,o,s,c;if(!n||!n.tagName)return"";if(Ea.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&pn(i))for(a=i.split(/\s+/),c=0;c{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i||0),(a||void 0===i)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},Aa=()=>bn.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ia=()=>{const e=Aa();return e&&e.activationStart||0},Da=(e,t)=>{const n=Aa();let r="navigate";return n&&(bn.document&&bn.document.prerendering||Ia()>0?r="prerender":bn.document&&bn.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Oa=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},Pa=e=>{const t=t=>{("pagehide"===t.type||bn.document&&"hidden"===bn.document.visibilityState)&&e(t)};bn.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Ma=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let Ra=-1;const $a=e=>{"hidden"===bn.document.visibilityState&&Ra>-1&&(Ra="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",$a,!0),removeEventListener("prerenderingchange",$a,!0))},La=()=>(bn.document&&Ra<0&&(Ra="hidden"!==bn.document.visibilityState||bn.document.prerendering?1/0:0,addEventListener("visibilitychange",$a,!0),addEventListener("prerenderingchange",$a,!0)),{get firstHiddenTime(){return Ra}}),za=e=>{bn.document&&bn.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Fa=[1800,3e3],Va=[.1,.25],Ha=(e,t={})=>{((e,t={})=>{za((()=>{const n=La(),r=Da("FCP");let i;const a=Oa("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime{const n=Da("CLS",0);let r,i=0,a=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=a[0],n=a[a.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e])}})),i>n.value&&(n.value=i,n.entries=a,r())},s=Oa("layout-shift",o);s&&(r=Na(e,n,Va,t.reportAllChanges),Pa((()=>{o(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},Ua=[100,300],Wa=(e,t={})=>{za((()=>{const n=La(),r=Da("FID");let i;const a=e=>{e.startTime{e.forEach(a)},s=Oa("first-input",o);i=Na(e,r,Ua,t.reportAllChanges),s&&Pa(Ma((()=>{o(s.takeRecords()),s.disconnect()})))}))};let Ba=0,ja=1/0,Ga=0;const qa=e=>{e.forEach((e=>{e.interactionId&&(ja=Math.min(ja,e.interactionId),Ga=Math.max(Ga,e.interactionId),Ba=Ga?(Ga-ja)/7+1:0)}))};let Ya;const Ka=()=>{"interactionCount"in performance||Ya||(Ya=Oa("event",qa,{type:"event",buffered:!0,durationThreshold:0}))},Qa=[200,500],Ja=()=>(Ya?Ba:performance.interactionCount||0)-0,Za=[],Xa={},eo=e=>{const t=Za[Za.length-1],n=Xa[e.interactionId];if(n||Za.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Xa[t.id]=t,Za.push(t)}Za.sort(((e,t)=>t.latency-e.latency)),Za.splice(10).forEach((e=>{delete Xa[e.id]}))}},to=(e,t={})=>{za((()=>{Ka();const n=Da("INP");let r;const i=e=>{e.forEach((e=>{e.interactionId&&eo(e),"first-input"===e.entryType&&!Za.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&eo(e)}));const t=(()=>{const e=Math.min(Za.length-1,Math.floor(Ja()/50));return Za[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},a=Oa("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=Na(e,n,Qa,t.reportAllChanges),a&&("PerformanceEventTiming"in bn&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Pa((()=>{i(a.takeRecords()),n.value<0&&Ja()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},no=[2500,4e3],ro={},io=(e,t={})=>{za((()=>{const n=La(),r=Da("LCP");let i;const a=e=>{const t=e[e.length-1];t&&t.startTime{ro[r.id]||(a(o.takeRecords()),o.disconnect(),ro[r.id]=!0,i(!0))}));["keydown","click"].forEach((e=>{bn.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),Pa(n)}}))},ao=[800,1800],oo=e=>{bn.document&&bn.document.prerendering?za((()=>oo(e))):bn.document&&"complete"!==bn.document.readyState?addEventListener("load",(()=>oo(e)),!0):setTimeout(e,0)},so=(e,t={})=>{const n=Da("TTFB"),r=Na(e,n,ao,t.reportAllChanges);oo((()=>{const e=Aa();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-Ia(),0),n.entries=[e],r(!0)}}))},co={},lo={};let uo,po,ho,mo,go;function fo(e,t){return ko(e,t),lo[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),Oa(e,(t=>{_o(e,{entries:t})}),t)}(e),lo[e]=!0),To(e,t)}function _o(e,t){const n=co[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){ci&&en.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${nn(r)}\nError:`,t)}}function vo(){return Ha((e=>{_o("cls",{metric:e}),uo=e}),{reportAllChanges:!0})}function bo(){return Wa((e=>{_o("fid",{metric:e}),po=e}))}function wo(){return io((e=>{_o("lcp",{metric:e}),ho=e}),{reportAllChanges:!0})}function yo(){return so((e=>{_o("ttfb",{metric:e}),mo=e}))}function So(){return to((e=>{_o("inp",{metric:e}),go=e}))}function Eo(e,t,n,r,i=!1){let a;return ko(e,t),lo[e]||(a=n(),lo[e]=!0),r&&t({metric:r}),To(e,t,i?a:void 0)}function ko(e,t){co[e]=co[e]||[],co[e].push(t)}function To(e,t,n){return()=>{n&&n();const r=co[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function xo(e){return"number"==typeof e&&isFinite(e)}function Co(e,t,n,{...r}){const i=Ki(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),function(e,t){const n=ya();return n.withActiveSpan?n.withActiveSpan(e,t):function(...e){const t=Di(vi());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}((n=>(Si(n,e||void 0),t(n))))}(e,(()=>{const e=wa({startTime:t,...r});return e&&e.end(n),e}))}function No(){return bn&&bn.addEventListener&&bn.performance}function Ao(e){return e/1e3}const Io=2147483647;let Do,Oo,Po=0,Mo={};function Ro(){const e=No();if(e&&mr){e.mark&&bn.performance.mark("sentry-tracing-init");const t=Eo("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ao(mr),r=Ao(t.startTime);ci&&en.log("[Measurements] Adding FID"),Mo.fid={value:e.value,unit:"millisecond"},Mo["mark.fid"]={value:n+r,unit:"second"}}),bo,po),n=function(e,t=!1){return Eo("cls",e,vo,uo,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ci&&en.log("[Measurements] Adding CLS"),Mo.cls={value:e.value,unit:""},Oo=t)}),!0),r=function(e,t=!1){return Eo("lcp",e,wo,ho,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ci&&en.log("[Measurements] Adding LCP"),Mo.lcp={value:e.value,unit:"millisecond"},Do=t)}),!0),i=Eo("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(ci&&en.log("[Measurements] Adding TTFB"),Mo.ttfb={value:e.value,unit:"millisecond"})}),yo,mo);return()=>{t(),n(),r(),i()}}return()=>{}}function $o(e,t,n,r,i,a){const o=a?t[a]:t[`${n}End`],s=t[`${n}Start`];s&&o&&Co(e,r+Ao(s),r+Ao(o),{op:"browser",name:i||n,attributes:{[Fi]:"auto.ui.browser.metrics"}})}function Lo(e,t,n,r){const i=t[n];null!=i&&i{const n=e.attributes||{},r=n["sentry.measurement_unit"],i=n["sentry.measurement_value"];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})})),t}const Bo="_sentryScope",jo="_sentryIsolationScope";function Go(e){return{scope:e[Bo],isolationScope:e[jo]}}class qo{constructor(e={}){this._traceId=e.traceId||U(),this._spanId=e.spanId||U().substring(16),this._startTime=e.startTimestamp||ce(),this._attributes={},this.setAttributes({[Xe]:"manual",[Ze]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?ft:0}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=wt(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=wt(e),function(e){if(!K)return;const{description:t="< unknown name >",op:n="< unknown op >"}=St(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${At(e)===e?"root ":""}span "${t}" with ID ${r}`;p.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return V({data:this._attributes,description:this._name,op:this._attributes[Ze],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:kt(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Xe],_metrics_summary:dt(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes["sentry.exclusive_time"],measurements:Wo(this._events),is_segment:this._isStandaloneSpan&&At(this)===this||void 0,segment_id:this._isStandaloneSpan?At(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){K&&p.log("[Tracing] Adding an event to span:",e);const r=Yo(t)?t:n||ce(),i=Yo(t)?{}:t||{},a={name:e,time:wt(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Te();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==At(this))return;if(this._isStandaloneSpan)return void function(e){const t=Te();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{K&&p.error("Error while sending span:",e)}))}(function(e,t){const n=Mt(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,a={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!i&&r&&{dsn:kn(r)}},o=t&&t.getOptions().beforeSendSpan,s=o?e=>o(St(e)):e=>St(e),c=[];for(const t of e){const e=s(t);e&&c.push(Dn(e))}return xn(a,c)}([this],e));const t=this._convertSpanToTransaction();t&&(Go(this).scope||Ee()).captureEvent(t)}_convertSpanToTransaction(){if(!Ko(St(this)))return;this._name||(K&&p.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=Go(this),n=(e||Ee()).getClient()||Te();if(!0!==this._sampled)return K&&p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=Nt(this).filter((e=>e!==this&&!function(e){return e instanceof qo&&e.isStandaloneSpan()}(e))).map((e=>St(e))).filter(Ko),i=this._attributes[Qe],a={contexts:{trace:_t(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...V({dynamicSamplingContext:Mt(this)})},_metrics_summary:dt(this),...i&&{transaction_info:{source:i}}},o=Wo(this._events);return o&&Object.keys(o).length&&(K&&p.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function Yo(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function Ko(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const Qo="__SENTRY_SUPPRESS_TRACING__";function Jo(e){const t=Se(re());if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=wt(e.startTime),delete n.startTime,n}return t}(e),r=e.scope||Ee(),i=function(e){const t=me(e);if(!t)return;const n=Te();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?At(t):t}(r);return e.onlyIfParent&&!i?new Uo:function({parentSpan:e,spanContext:t,forceTransaction:n,scope:r}){if(!Ho())return new Uo;const i=ke();let a;if(e&&!n)a=function(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[Qo]&&Et(e),o=a?new qo({...n,parentSpanId:r,traceId:i,sampled:a}):new Uo({traceId:i});Ct(e,o);const s=Te();return s&&(s.emit("spanStart",o),n.endTimestamp&&s.emit("spanEnd",o)),o}(e,r,t),Ct(e,a);else if(e){const n=Mt(e),{traceId:i,spanId:o}=e.spanContext(),s=Et(e);a=Zo({traceId:i,parentSpanId:o,...t},r,s),Ot(a,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Zo({traceId:e,parentSpanId:o,...t},r,s),n&&Ot(a,n)}return function(e){if(!K)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=St(e),{spanId:i}=e.spanContext(),a=Et(e),o=At(e),s=o===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){const{op:e,description:t}=St(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}p.log(`${c}\n ${l.join("\n ")}`)}(a),function(e,t,n){e&&(M(e,jo,n),M(e,Bo,t))}(a,r,i),a}({parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r})}function Zo(e,t,n){const r=Te(),i=r&&r.getOptions()||{},{name:a="",attributes:o}=e,[s,c]=t.getScopeData().sdkProcessingMetadata[Qo]?[!1]:function(e,t){if(!Ho(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const r=Fn(n);return void 0===r?(K&&p.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random(){!i&&0===n.size&&o&&(a="idleTimeout",g.end(e))}),s)}function v(e){r=setTimeout((()=>{!i&&o&&(a="heartbeatFailed",g.end(e))}),l)}function b(e){i=!0,n.clear(),he(h,m);const t=St(g),{start_timestamp:r}=t;if(!r)return;(t.data||{})[et]||g.setAttribute(et,a),p.log(`[Tracing] Idle span "${t.op}" finished`);const o=Nt(g).filter((e=>e!==g));let l=0;o.forEach((t=>{t.isRecording()&&(t.setStatus({code:mt,message:"cancelled"}),t.end(e),K&&p.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=St(t),{timestamp:r=0,start_timestamp:i=0}=n,a=i<=e,o=r-i<=(c+s)/1e3;if(K){const e=JSON.stringify(t,void 0,2);a?o||p.log("[Tracing] Discarding span since it finished after idle span final timeout",e):p.log("[Tracing] Discarding span since it happened after idle span was finished",e)}o&&a||(function(e,t){e[Tt]&&e[Tt].delete(t)}(g,t),l++)})),l>0&&g.setAttribute("sentry.idle_span_discarded_spans",l)}return g.end=new Proxy(g.end,{apply(e,t,n){u&&u(g);const[r,...i]=n,a=wt(r||ce()),o=Nt(g).filter((e=>e!==g));if(!o.length)return b(a),Reflect.apply(e,t,[a,...i]);const s=o.map((e=>St(e).timestamp)).filter((e=>!!e)),l=s.length?Math.max(...s):void 0,d=St(g).start_timestamp,p=Math.min(d?d+c/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return b(p),Reflect.apply(e,t,[p,...i])}}),d.on("spanStart",(e=>{var t;i||e===g||St(e).timestamp||Nt(g).includes(e)&&(t=e.spanContext().spanId,f(),n.set(t,!0),v(ce()+l/1e3))})),d.on("spanEnd",(e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&_(ce()+s/1e3))})),d.on("idleSpanEnableAutoFinish",(e=>{e===g&&(o=!0,_(),n.size&&v())})),t.disableAutoFinish||_(),setTimeout((()=>{i||(g.setStatus({code:mt,message:"deadline_exceeded"}),a="finalTimeout",g.end())}),c),g}let ts=!1;function ns(){const e=It(),t=e&&At(e);if(t){const e="internal_error";K&&p.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:mt,message:e})}}ns.tag="sentry_tracingErrorCallback";const rs={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function is(e){const{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:i,tracePropagationTargets:a}={traceFetch:rs.traceFetch,traceXHR:rs.traceXHR,...e},o="function"==typeof r?r:e=>!0,s=e=>function(e,t){const n=Xn.location&&Xn.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}const a=r.origin===i;return t?O(r.toString(),t)||a&&O(r.pathname,t):a}{const n=!!e.match(/^\/(?!\/)/);return t?O(e,t):n}}(e,a),c={};t&&xr((e=>{const t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const a=Ho()&&t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(function(e,t){if(t.response){gt(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:mt,message:"internal_error"});e.end()}(n,e),delete r[t]))}const o=Ee(),s=Te(),{method:c,url:l}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(l),d=u?Dr(u).host:void 0,p=!!It(),h=a&&p?Jo({name:`${c} ${l}`,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":d,[Xe]:i,[Ze]:"http.client"}}):new Uo;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)&&s){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,i){const a=ke(),{traceId:o,spanId:s,sampled:c,dsc:l}={...a.getPropagationContext(),...n.getPropagationContext()},u=i?bt(i):lt(o,s,c),d=at(l||(i?Mt(i):Pt(o,t))),p=r.headers||("undefined"!=typeof Request&&k(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&k(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",u),d&&e.append(tt,d),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",u]];return d&&e.push([tt,d]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...p,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:d}}(t,s,o,n,Ho()&&p?h:void 0)}return h}(e,o,s,c);if(t){const n=ss(e.fetchData.url),r=n?Dr(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}i&&t&&as(t)})),n&&fr((e=>{const t=function(e,t,n,r){const i=e.xhr,a=i&&i[gr];if(!i||i.__sentry_own_request__||!a)return;const o=Ho()&&t(a.url);if(e.endTimestamp&&o){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==a.status_code&&(gt(t,a.status_code),t.end(),delete r[e]))}const s=ss(a.url),c=s?Dr(s).host:void 0,l=!!It(),u=o&&l?Jo({name:`${a.method} ${a.url}`,attributes:{type:"xhr","http.method":a.method,"http.url":s,url:a.url,"server.address":c,[Xe]:"auto.http.browser",[Ze]:"http.client"}}):new Uo;i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u;const d=Te();return i.setRequestHeader&&n(a.url)&&d&&function(e,t,n){const r=Ee(),i=ke(),{traceId:a,spanId:o,sampled:s,dsc:c}={...i.getPropagationContext(),...r.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(tt,n)}catch(e){}}(e,n&&Ho()?bt(n):lt(a,o,s),at(c||(n?Mt(n):Pt(a,t))))}(i,d,Ho()&&l?u:void 0),u}(e,o,s,c);i&&t&&as(t)}))}function as(e){const{url:t}=St(e).data||{};if(!t||"string"!=typeof t)return;const n=fo("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),ue?[...r,["http.request.redirect_start",os(e.redirectStart)],["http.request.fetch_start",os(e.fetchStart)],["http.request.domain_lookup_start",os(e.domainLookupStart)],["http.request.domain_lookup_end",os(e.domainLookupEnd)],["http.request.connect_start",os(e.connectStart)],["http.request.secure_connection_start",os(e.secureConnectionStart)],["http.request.connection_end",os(e.connectEnd)],["http.request.request_start",os(e.requestStart)],["http.request.response_start",os(e.responseStart)],["http.request.response_end",os(e.responseEnd)]]:r})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function os(e=0){return((ue||performance.timeOrigin)+e)/1e3}function ss(e){try{return new URL(e,Xn.location.origin).href}catch(e){return}}const cs={...Xo,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...rs},ls=(e={})=>{ts||(ts=!0,Vr(ns),Wr(ns));const{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:r},beforeStartSpan:i,idleTimeout:a,finalTimeout:o,childSpanTimeout:s,markBackgroundSpan:c,traceFetch:l,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:h,instrumentPageLoad:m,instrumentNavigation:g}={...cs,...e},f=Ro();t&&function(){if(No()&&mr){const e=Eo("inp",(({metric:e})=>{const t=Pi();if(!t||null==e.value)return;const n=e.entries.find((t=>t.duration===e.value&&Vo[t.name]));if(!n)return;const{interactionId:r}=n,i=Vo[n.name],a=t.getOptions(),o=Ao(mr+n.startTime),s=Ao(e.value),c=Oi(),l=na(),u=l?ta(l):void 0,d=(null!=r?Fo.get(r):void 0)||(u?Ki(u).description:c.getScopeData().transactionName),p=c.getUser(),h=t.getIntegrationByName("Replay"),m=h&&h.getReplayId(),g=void 0!==p?p.email||p.id||p.ip_address:void 0;let f;try{f=c.getScopeData().contexts.profile.profile_id}catch(e){}const _=wa({name:Ta(n.target),op:`ui.interaction.${i}`,attributes:fn({release:a.release,environment:a.environment,transaction:d,[Ui]:e.value,[Fi]:"auto.http.browser.inp",user:g||void 0,profile_id:f||void 0,replay_id:m||void 0}),startTime:o,experimental:{standalone:!0}});_.addEvent("inp",{[Vi]:"millisecond",[Hi]:e.value}),_.end(o+s)}),So,go);return()=>{e()}}}(),n&&fo("longtask",(({entries:e})=>{for(const t of e){if(!na())return;const e=Ao(mr+t.startTime),n=Ao(t.duration),r=wa({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[Fi]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}})),r&&fo("event",(({entries:e})=>{for(const t of e){if(!na())return;if("click"===t.name){const e=Ao(mr+t.startTime),n=Ao(t.duration),r={name:Ta(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[Fi]:"auto.ui.browser.metrics"}},i=Ca(t.target);i&&(r.attributes["ui.component_name"]=i);const a=wa(r);a&&a.end(e+n)}}}));const _={name:void 0,source:void 0};function v(e,t){const n="pageload"===t.op,r=i?i(t):t,c=r.attributes||{};t.name!==r.name&&(c[Qe]="custom",r.attributes=c),_.name=r.name,_.source=c[Qe];const l=es(r,{idleTimeout:a,finalTimeout:o,childSpanTimeout:s,disableAutoFinish:n,beforeSpanEnd:e=>{f(),function(e){const t=No();if(!t||!bn.performance.getEntries||!mr)return;ci&&en.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ao(mr),r=t.getEntries(),{op:i,start_timestamp:a}=Ki(e);if(r.slice(Po).forEach((t=>{const r=Ao(t.startTime),o=Ao(t.duration);if(!("navigation"===i&&a&&n+r{$o(e,t,r,n)})),$o(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),$o(e,t,"fetch",n,"cache","domainLookupStart"),$o(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Co(e,n+Ao(t.requestStart),n+Ao(t.responseEnd),{op:"browser",name:"request",attributes:{[Fi]:"auto.ui.browser.metrics"}}),Co(e,n+Ao(t.responseStart),n+Ao(t.responseEnd),{op:"browser",name:"response",attributes:{[Fi]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const a=i+n;Co(e,a,a+r,{name:t.name,op:t.entryType,attributes:{[Fi]:"auto.resource.browser.metrics"}})}(e,t,r,o,n);const i=La(),a=t.startTime{if(!Mo[e]||!a||n>=a)return;const t=Mo[e].value,r=n+Ao(t),i=Math.abs(1e3*(r-a)),o=i-t;ci&&en.log(`[Measurements] Normalized ${e} from ${t} to ${i} (${o})`),Mo[e].value=i}));const t=Mo["mark.fid"];t&&Mo.fid&&(Co(e,t.value,t.value+Ao(Mo.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Fi]:"auto.ui.browser.metrics"}}),delete Mo["mark.fid"]),"fcp"in Mo||delete Mo.cls,Object.keys(Mo).forEach((e=>{!function(e,t,n){const r=na(),i=r&&ta(r);i&&i.addEvent(e,{[Hi]:t,[Vi]:n})}(e,Mo[e].value,Mo[e].unit)})),function(e){Do&&(ci&&en.log("[Measurements] Adding LCP Data"),Do.element&&e.setAttribute("lcp.element",Ta(Do.element)),Do.id&&e.setAttribute("lcp.id",Do.id),Do.url&&e.setAttribute("lcp.url",Do.url.trim().slice(0,200)),e.setAttribute("lcp.size",Do.size)),Oo&&Oo.sources&&(ci&&en.log("[Measurements] Adding CLS Data"),Oo.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ta(t.node)))))}(e)}Do=void 0,Oo=void 0,Mo={}}(e)}});function u(){["interactive","complete"].includes(Xn.document.readyState)&&e.emit("idleSpanEnableAutoFinish",l)}return n&&Xn.document&&(Xn.document.addEventListener("readystatechange",(()=>{u()})),u()),l}return{name:"BrowserTracing",afterAllSetup(e){let n,i=Xn.location&&Xn.location.href;e.on("startNavigationSpan",(t=>{Te()===e&&(n&&(Bn&&p.log(`[Tracing] Finishing current root span with op: ${St(n).op}`),n.end()),n=v(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if(Te()!==e)return;n&&(Bn&&p.log(`[Tracing] Finishing current root span with op: ${St(n).op}`),n.end());const i=ct(r.sentryTrace||us("sentry-trace"),r.baggage||us("baggage"));Ee().setPropagationContext(i),n=v(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=St(e).op;if(e!==At(e)||"navigation"!==t&&"pageload"!==t)return;const n=Ee(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:Et(e),dsc:r.dsc||Mt(e)})})),Xn.location&&(m&&function(e,t,n){e.emit("startPageLoadSpan",t,void 0),Ee().setTransactionName(t.name);const r=It();r&&St(r).op}(e,{name:Xn.location.pathname,startTime:ue?ue/1e3:void 0,attributes:{[Qe]:"url",[Xe]:"auto.pageload.browser"}}),g&&yn((({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,function(e,t){ke().setPropagationContext(ae()),Ee().setPropagationContext(ae()),e.emit("startNavigationSpan",t),Ee().setTransactionName(t.name);const n=It();n&&St(n).op}(e,{name:Xn.location.pathname,attributes:{[Qe]:"url",[Xe]:"auto.navigation.browser"}}))}))),c&&(Xn&&Xn.document?Xn.document.addEventListener("visibilitychange",(()=>{const e=It();if(!e)return;const t=At(e);if(Xn.document.hidden&&t){const e="cancelled",{op:n,status:r}=St(t);Bn&&p.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:mt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):Bn&&p.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(e,t,n,r){let i;Xn.document&&addEventListener("click",(()=>{const a="ui.action.click",o=It(),s=o&&At(o);if(s){const e=St(s).op;if(["navigation","pageload"].includes(e))return void(Bn&&p.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}i&&(i.setAttribute(et,"interactionInterrupted"),i.end(),i=void 0),r.name?i=es({name:r.name,op:a,attributes:{[Qe]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):Bn&&p.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)}),{once:!1,capture:!0})}(a,o,s,_),t&&function(e){const t=({entries:t})=>{t.forEach((t=>{if(!function(e){return"duration"in e}(t)||!e.name)return;const n=t.interactionId;if(null!=n&&!Fo.has(n)){if(zo.length>10){const e=zo.shift();Fo.delete(e)}zo.push(n),Fo.set(n,e.name)}}))};fo("event",t),fo("first-input",t)}(_),is({traceFetch:l,traceXHR:u,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}}};function us(e){const t=(n=`meta[name=${e}]`,x.document&&x.document.querySelector?x.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}const ds=window.wp.domReady;var ps=i.n(ds);const hs=window.wp.blockLibrary;var ms=i(1609),gs=i(7675),fs=i(6079),_s=i(8468);const vs=({isActive:e})=>((0,_s.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,_s.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);var bs=i(7143);const ws=window.wp.deprecated;var ys=i.n(ws);const Ss=window.wp.preferences,Es=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),ks=(e,t)=>({registry:n,dispatch:r})=>{t&&(n.select(Ss.store).get(e,"isComplementaryAreaVisible")||n.dispatch(Ss.store).set(e,"isComplementaryAreaVisible",!0),r({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},Ts=e=>({registry:t})=>{t.select(Ss.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(Ss.store).set(e,"isComplementaryAreaVisible",!1)},xs=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(Ss.store).get(e,"pinnedItems");!0!==r?.[t]&&n.dispatch(Ss.store).set(e,"pinnedItems",{...r,[t]:!0})},Cs=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(Ss.store).get(e,"pinnedItems");n.dispatch(Ss.store).set(e,"pinnedItems",{...r,[t]:!1})};function Ns(e,t){return function({registry:n}){ys()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(Ss.store).toggle(e,t)}}function As(e,t,n){return function({registry:r}){ys()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),r.dispatch(Ss.store).set(e,t,!!n)}}function Is(e,t){return function({registry:n}){ys()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(Ss.store).setDefaults(e,t)}}function Ds(e){return{type:"OPEN_MODAL",name:e}}function Os(){return{type:"CLOSE_MODAL"}}const Ps=(0,bs.createRegistrySelector)((e=>(t,n)=>{const r=e(Ss.store).get(n,"isComplementaryAreaVisible");if(void 0!==r)return!1===r?null:t?.complementaryAreas?.[n]})),Ms=(0,bs.createRegistrySelector)((e=>(t,n)=>{const r=e(Ss.store).get(n,"isComplementaryAreaVisible"),i=t?.complementaryAreas?.[n];return r&&void 0===i})),Rs=(0,bs.createRegistrySelector)((e=>(t,n,r)=>{var i;const a=e(Ss.store).get(n,"pinnedItems");return null===(i=a?.[r])||void 0===i||i})),$s=(0,bs.createRegistrySelector)((e=>(t,n,r)=>(ys()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(Ss.store).get(n,r))));function Ls(e,t){return e.activeModal===t}const zs=(0,bs.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return e[n]?e:{...e,[n]:r}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return{...e,[n]:r}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),Fs=(0,bs.createReduxStore)("core/interface",{reducer:zs,actions:e,selectors:t});(0,bs.register)(Fs);var Vs=i(6427),Hs=i(1032);const Us=()=>(0,ms.createElement)(_s.Fragment,null,(0,ms.createElement)(vs,{isActive:!0}),(0,ms.createElement)(Vs.SlotFillProvider,null,(0,ms.createElement)(Hs.Iy,null)));var Ws=i(1003),Bs=i(9772),js=i(6188);const Gs=()=>(0,ms.createElement)(Ws.I9,null,(0,ms.createElement)(Us,null));var qs=i(4371),Ys=i(8674),Ks=i(2202);const Qs=`wp-onboarding@${i(8330).rE}`;n.ZH?ps()((()=>{(function(e){const t={...e};!function(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:_i}))),version:_i}),e._metadata=i}(t,"react"),fi(t)})({dsn:window.nfdOnboarding.sentryInitDsnURL,integrations:[ls()],release:Qs,tracesSampleRate:1}),qs.y.initialize({namespace:Ks.XJ,urls:{single:(0,Ys.fG)("events",!1),batch:(0,Ys.fG)("events/batch",!1)},settings:{debounce:{time:3e3}}}),async function(e,t){const r=document.getElementById(e);(0,bs.dispatch)(gs.M).setRuntime(t),t.previewSettings.settings.preRequisites?.themes&&(0,bs.dispatch)(gs.M).updateThemeStatus(t.previewSettings.settings.preRequisites?.themes[n.f1]);const i=await(0,fs.lv)();null===i.error&&(i.body=(e=>{e.hasExited=0,e.isComplete=0;const t=window.nfdOnboarding.currentFlow;return e.data.chapters=(0,js.AZ)((0,Bs.Pq)(t),e.data.chapters),e})(i.body),(0,bs.dispatch)(gs.M).setCurrentOnboardingData(i.body)),null!==r&&void 0!==_s.render?(0,_s.render)((0,ms.createElement)(Gs,null),r):console.log("Could not find mount element or wp.element.render().")}(n.eT,window.nfdOnboarding),(0,hs.registerCoreBlocks)()})):console.log("Cannot find Newfold Onboarding runtime data to set __webpack_public_path__.")})(),((window.newfold=window.newfold||{}).Onboarding=window.newfold.Onboarding||{}).onboarding=a})(); \ No newline at end of file diff --git a/build/2.3.5/sitegen-theme-marker.asset.php b/build/2.3.6/sitegen-theme-marker.asset.php similarity index 100% rename from build/2.3.5/sitegen-theme-marker.asset.php rename to build/2.3.6/sitegen-theme-marker.asset.php diff --git a/build/2.3.5/sitegen-theme-marker.css.asset.php b/build/2.3.6/sitegen-theme-marker.css.asset.php similarity index 100% rename from build/2.3.5/sitegen-theme-marker.css.asset.php rename to build/2.3.6/sitegen-theme-marker.css.asset.php diff --git a/build/2.3.5/sitegen-theme-marker.css.css b/build/2.3.6/sitegen-theme-marker.css.css similarity index 100% rename from build/2.3.5/sitegen-theme-marker.css.css rename to build/2.3.6/sitegen-theme-marker.css.css diff --git a/build/2.3.5/sitegen-theme-marker.css.js b/build/2.3.6/sitegen-theme-marker.css.js similarity index 100% rename from build/2.3.5/sitegen-theme-marker.css.js rename to build/2.3.6/sitegen-theme-marker.css.js diff --git a/build/2.3.5/sitegen-theme-marker.js b/build/2.3.6/sitegen-theme-marker.js similarity index 100% rename from build/2.3.5/sitegen-theme-marker.js rename to build/2.3.6/sitegen-theme-marker.js diff --git a/composer.json b/composer.json index 1582f6730..2c9448879 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "mustache/mustache": "^2.14", "wp-cli/wp-config-transformer": "^1.3", "newfold-labs/wp-module-onboarding-data": "^1.1", - "newfold-labs/wp-module-patterns": "^1.0", + "newfold-labs/wp-module-patterns": "^2.0", "newfold-labs/wp-module-facebook": "^1.0", "newfold-labs/wp-module-migration": "^1.0", "wp-forge/helpers": "^2.0" diff --git a/composer.lock b/composer.lock index abefe0c9f..c7c480bff 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6316eb1600bb1a3c247bbee69ee79ddf", + "content-hash": "05a663d994e51ab416a1c1c35e1b5745", "packages": [ { "name": "doctrine/inflector", @@ -520,6 +520,63 @@ }, "time": "2024-06-05T11:02:38+00:00" }, + { + "name": "newfold-labs/wp-module-features", + "version": "1.4.2", + "source": { + "type": "git", + "url": "https://github.com/newfold-labs/wp-module-features.git", + "reference": "0424ca66ed275371a372b139d1c2f81652181b01" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/newfold-labs/wp-module-features/zipball/0424ca66ed275371a372b139d1c2f81652181b01", + "reference": "0424ca66ed275371a372b139d1c2f81652181b01", + "shasum": "" + }, + "require": { + "wp-forge/wp-options": "^1.1.1" + }, + "require-dev": { + "newfold-labs/wp-php-standards": "^1.2.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "NewfoldLabs\\WP\\Module\\Features\\": "includes" + }, + "files": [ + "includes/functions.php" + ] + }, + "scripts": { + "fix": [ + "vendor/bin/phpcbf . --standard=phpcs.xml" + ], + "lint": [ + "vendor/bin/phpcs . --standard=phpcs.xml -s" + ] + }, + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Micah Wood", + "homepage": "https://wpscholar.com" + }, + { + "name": "Evan Mullins", + "homepage": "https://evanmullins.com" + } + ], + "description": "A module for providing an interface for features.", + "support": { + "source": "https://github.com/newfold-labs/wp-module-features/tree/1.4.2", + "issues": "https://github.com/newfold-labs/wp-module-features/issues" + }, + "time": "2024-06-20T19:10:03+00:00" + }, { "name": "newfold-labs/wp-module-install-checker", "version": "1.0.3", @@ -703,16 +760,16 @@ }, { "name": "newfold-labs/wp-module-onboarding-data", - "version": "1.1.13", + "version": "1.1.14", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding-data.git", - "reference": "dd6784cd136ac687a373e27f2f51999d93e97788" + "reference": "0b57747f6a67d8a9308b26c0434d196d023925d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/dd6784cd136ac687a373e27f2f51999d93e97788", - "reference": "dd6784cd136ac687a373e27f2f51999d93e97788", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/0b57747f6a67d8a9308b26c0434d196d023925d0", + "reference": "0b57747f6a67d8a9308b26c0434d196d023925d0", "shasum": "" }, "require": { @@ -722,7 +779,7 @@ "newfold-labs/wp-module-data": "^2.0", "newfold-labs/wp-module-install-checker": "^1.0", "newfold-labs/wp-module-installer": "^1.1", - "newfold-labs/wp-module-patterns": "^1.0", + "newfold-labs/wp-module-patterns": "^2.0", "newfold-labs/wp-module-performance": "^1.4", "newfold-labs/wp-module-survey": "^1.0", "wp-forge/wp-upgrade-handler": "^1.0" @@ -748,27 +805,31 @@ ], "description": "A non-toggleable module containing a standardized interface for interacting with Onboarding data.", "support": { - "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.13", + "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.14", "issues": "https://github.com/newfold-labs/wp-module-onboarding-data/issues" }, - "time": "2024-06-27T13:27:53+00:00" + "time": "2024-07-16T04:54:52+00:00" }, { "name": "newfold-labs/wp-module-patterns", - "version": "1.0.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "3f41c4cc25b27f1e488a9cc2ffd82f5bc953128a" + "reference": "383fccab930655790d149e17987ef450265b5c3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/3f41c4cc25b27f1e488a9cc2ffd82f5bc953128a", - "reference": "3f41c4cc25b27f1e488a9cc2ffd82f5bc953128a", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/383fccab930655790d149e17987ef450265b5c3b", + "reference": "383fccab930655790d149e17987ef450265b5c3b", "shasum": "" }, + "require": { + "newfold-labs/wp-module-data": "^2.5.1", + "newfold-labs/wp-module-features": "^1.4" + }, "require-dev": { - "newfold-labs/wp-php-standards": "^1.2" + "newfold-labs/wp-php-standards": "^1.2.2" }, "type": "library", "autoload": { @@ -798,10 +859,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/1.0.0", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.1.0", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-05-01T20:37:14+00:00" + "time": "2024-06-26T15:45:31+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -854,7 +915,7 @@ "version": "1.0.0", "source": { "type": "git", - "url": "git@github.com:newfold-labs/wp-module-survey.git", + "url": "https://github.com/newfold-labs/wp-module-survey.git", "reference": "6c37264f2a607a330ac25e65555d99ec38972b2e" }, "dist": { @@ -894,16 +955,16 @@ }, { "name": "wp-cli/wp-config-transformer", - "version": "v1.3.5", + "version": "v1.3.6", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-config-transformer.git", - "reference": "202aa80528939159d52bc4026cee5453aec382db" + "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/202aa80528939159d52bc4026cee5453aec382db", - "reference": "202aa80528939159d52bc4026cee5453aec382db", + "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/88f516f44dce1660fc4b780da513e3ca12d7d24f", + "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f", "shasum": "" }, "require": { @@ -932,9 +993,9 @@ "homepage": "https://github.com/wp-cli/wp-config-transformer", "support": { "issues": "https://github.com/wp-cli/wp-config-transformer/issues", - "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.5" + "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.6" }, - "time": "2023-11-10T14:28:03+00:00" + "time": "2024-05-23T06:32:14+00:00" }, { "name": "wp-forge/collection", @@ -1692,16 +1753,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.0.2", + "version": "v5.1.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13" + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13", - "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", "shasum": "" }, "require": { @@ -1712,7 +1773,7 @@ }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -1744,9 +1805,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" }, - "time": "2024-03-05T20:51:40+00:00" + "time": "2024-07-01T20:03:41+00:00" }, { "name": "phar-io/manifest", @@ -2238,16 +2299,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "10.1.14", + "version": "10.1.15", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b" + "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae", + "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae", "shasum": "" }, "require": { @@ -2304,7 +2365,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.14" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.15" }, "funding": [ { @@ -2312,7 +2373,7 @@ "type": "github" } ], - "time": "2024-03-12T15:33:41+00:00" + "time": "2024-06-29T08:25:15+00:00" }, { "name": "phpunit/php-file-iterator", @@ -2559,16 +2620,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.24", + "version": "10.5.27", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "5f124e3e3e561006047b532fd0431bf5bb6b9015" + "reference": "2425f713b2a5350568ccb1a2d3984841a23e83c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5f124e3e3e561006047b532fd0431bf5bb6b9015", - "reference": "5f124e3e3e561006047b532fd0431bf5bb6b9015", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2425f713b2a5350568ccb1a2d3984841a23e83c5", + "reference": "2425f713b2a5350568ccb1a2d3984841a23e83c5", "shasum": "" }, "require": { @@ -2578,26 +2639,26 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.12.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=8.1", - "phpunit/php-code-coverage": "^10.1.5", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-invoker": "^4.0", - "phpunit/php-text-template": "^3.0", - "phpunit/php-timer": "^6.0", - "sebastian/cli-parser": "^2.0", - "sebastian/code-unit": "^2.0", - "sebastian/comparator": "^5.0", - "sebastian/diff": "^5.0", - "sebastian/environment": "^6.0", - "sebastian/exporter": "^5.1", - "sebastian/global-state": "^6.0.1", - "sebastian/object-enumerator": "^5.0", - "sebastian/recursion-context": "^5.0", - "sebastian/type": "^4.0", - "sebastian/version": "^4.0" + "phpunit/php-code-coverage": "^10.1.15", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-invoker": "^4.0.0", + "phpunit/php-text-template": "^3.0.1", + "phpunit/php-timer": "^6.0.0", + "sebastian/cli-parser": "^2.0.1", + "sebastian/code-unit": "^2.0.0", + "sebastian/comparator": "^5.0.1", + "sebastian/diff": "^5.1.1", + "sebastian/environment": "^6.1.0", + "sebastian/exporter": "^5.1.2", + "sebastian/global-state": "^6.0.2", + "sebastian/object-enumerator": "^5.0.0", + "sebastian/recursion-context": "^5.0.0", + "sebastian/type": "^4.0.0", + "sebastian/version": "^4.0.1" }, "suggest": { "ext-soap": "To be able to generate mocks based on WSDL files" @@ -2640,7 +2701,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.24" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.27" }, "funding": [ { @@ -2656,7 +2717,7 @@ "type": "tidelift" } ], - "time": "2024-06-20T13:09:54+00:00" + "time": "2024-07-10T11:48:06+00:00" }, { "name": "sebastian/cli-parser", @@ -4089,7 +4150,7 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "6.5.4", + "version": "6.5.5", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", diff --git a/package-lock.json b/package-lock.json index 89ba3765f..93ac14e76 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.5", + "version": "2.3.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.5", + "version": "2.3.6", "license": "GPL-2.0-or-later", "dependencies": { "@newfold-labs/js-utility-ui-analytics": "1.2.0", diff --git a/package.json b/package.json index dea8b177c..731ff5191 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.5", + "version": "2.3.6", "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "license": "GPL-2.0-or-later", "private": true,