diff --git a/bootstrap.php b/bootstrap.php index 5c0c8f7be..c96afe31f 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.8' ); + define( 'NFD_ONBOARDING_VERSION', '2.3.9' ); } if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { define( 'NFD_ONBOARDING_DIR', __DIR__ ); diff --git a/build/2.3.8/74.js b/build/2.3.8/74.js deleted file mode 100644 index 2fbd7f127..000000000 --- a/build/2.3.8/74.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[74],{1852:(e,a,n)=>{n.d(a,{A:()=>A});var o=n(1609),d=n(148),c=n(7143),m=n(7675),t=n(264),r=n(6079),i=n(8969),s=n(1056),l=n(2202),u=n(8559),S=n(6942),C=n.n(S),T=n(7677);const A=({text:e,disabled:a,className:n,icon:S})=>{const A=(0,d.Zp)(),{nextStep:B,currentData:h}=(0,c.useSelect)((e=>({nextStep:e(m.M).getNextStep(),currentData:e(m.M).getCurrentOnboardingData()})),[]),N=null===B||!1===B;return(0,o.createElement)(t.A,{className:C()("nfd-nav-card-button",n),handleClick:()=>N?async function(){h&&(h.isComplete=(new Date).getTime(),h.data.siteOverrideConsent=!1,(0,r.V1)(h)),(0,u.YR)(),(0,s.SV)(new s.iC(l.Vg)),window.location.replace(i.R0)}():A(B.path),disabled:a},(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:`${n}__text`},e),S&&(0,o.createElement)(T.A,{className:`${n}__icon`,icon:S})))}},2074:(e,a,n)=>{n.r(a),n.d(a,{default:()=>N});var o=n(1609),d=n(9491),c=n(7143),m=n(8468),t=n(8969),r=n(9927),i=n(3988),s=n(9889),l=n(5842),u=n(7675);const S=JSON.parse('[{"code":"AF","name":"Afghanistan","states":[]},{"code":"AX","name":"Åland Islands","states":[]},{"code":"DZ","name":"Algeria","states":[{"code":"DZ-01","name":"Adrar"},{"code":"DZ-02","name":"Chlef"},{"code":"DZ-03","name":"Laghouat"},{"code":"DZ-04","name":"Oum El Bouaghi"},{"code":"DZ-05","name":"Batna"},{"code":"DZ-06","name":"Béjaïa"},{"code":"DZ-07","name":"Biskra"},{"code":"DZ-08","name":"Béchar"},{"code":"DZ-09","name":"Blida"},{"code":"DZ-10","name":"Bouira"},{"code":"DZ-11","name":"Tamanghasset"},{"code":"DZ-12","name":"Tébessa"},{"code":"DZ-13","name":"Tlemcen"},{"code":"DZ-14","name":"Tiaret"},{"code":"DZ-15","name":"Tizi Ouzou"},{"code":"DZ-16","name":"Algiers"},{"code":"DZ-17","name":"Djelfa"},{"code":"DZ-18","name":"Jijel"},{"code":"DZ-19","name":"Sétif"},{"code":"DZ-20","name":"Saïda"},{"code":"DZ-21","name":"Skikda"},{"code":"DZ-22","name":"Sidi Bel Abbès"},{"code":"DZ-23","name":"Annaba"},{"code":"DZ-24","name":"Guelma"},{"code":"DZ-25","name":"Constantine"},{"code":"DZ-26","name":"Médéa"},{"code":"DZ-27","name":"Mostaganem"},{"code":"DZ-28","name":"M’Sila"},{"code":"DZ-29","name":"Mascara"},{"code":"DZ-30","name":"Ouargla"},{"code":"DZ-31","name":"Oran"},{"code":"DZ-32","name":"El Bayadh"},{"code":"DZ-33","name":"Illizi"},{"code":"DZ-34","name":"Bordj Bou Arréridj"},{"code":"DZ-35","name":"Boumerdès"},{"code":"DZ-36","name":"El Tarf"},{"code":"DZ-37","name":"Tindouf"},{"code":"DZ-38","name":"Tissemsilt"},{"code":"DZ-39","name":"El Oued"},{"code":"DZ-40","name":"Khenchela"},{"code":"DZ-41","name":"Souk Ahras"},{"code":"DZ-42","name":"Tipasa"},{"code":"DZ-43","name":"Mila"},{"code":"DZ-44","name":"Aïn Defla"},{"code":"DZ-45","name":"Naama"},{"code":"DZ-46","name":"Aïn Témouchent"},{"code":"DZ-47","name":"Ghardaïa"},{"code":"DZ-48","name":"Relizane"}]},{"code":"AS","name":"American Samoa","states":[]},{"code":"AD","name":"Andorra","states":[]},{"code":"AO","name":"Angola","states":[{"code":"BGO","name":"Bengo"},{"code":"BLU","name":"Benguela"},{"code":"BIE","name":"Bié"},{"code":"CAB","name":"Cabinda"},{"code":"CNN","name":"Cunene"},{"code":"HUA","name":"Huambo"},{"code":"HUI","name":"Huíla"},{"code":"CCU","name":"Kuando Kubango"},{"code":"CNO","name":"Kwanza-Norte"},{"code":"CUS","name":"Kwanza-Sul"},{"code":"LUA","name":"Luanda"},{"code":"LNO","name":"Lunda-Norte"},{"code":"LSU","name":"Lunda-Sul"},{"code":"MAL","name":"Malanje"},{"code":"MOX","name":"Moxico"},{"code":"NAM","name":"Namibe"},{"code":"UIG","name":"Uíge"},{"code":"ZAI","name":"Zaire"}]},{"code":"AI","name":"Anguilla","states":[]},{"code":"AQ","name":"Antarctica","states":[]},{"code":"AG","name":"Antigua and Barbuda","states":[]},{"code":"AR","name":"Argentina","states":[{"code":"C","name":"Ciudad Autónoma de Buenos Aires"},{"code":"B","name":"Buenos Aires"},{"code":"K","name":"Catamarca"},{"code":"H","name":"Chaco"},{"code":"U","name":"Chubut"},{"code":"X","name":"Córdoba"},{"code":"W","name":"Corrientes"},{"code":"E","name":"Entre Ríos"},{"code":"P","name":"Formosa"},{"code":"Y","name":"Jujuy"},{"code":"L","name":"La Pampa"},{"code":"F","name":"La Rioja"},{"code":"M","name":"Mendoza"},{"code":"N","name":"Misiones"},{"code":"Q","name":"Neuquén"},{"code":"R","name":"Río Negro"},{"code":"A","name":"Salta"},{"code":"J","name":"San Juan"},{"code":"D","name":"San Luis"},{"code":"Z","name":"Santa Cruz"},{"code":"S","name":"Santa Fe"},{"code":"G","name":"Santiago del Estero"},{"code":"V","name":"Tierra del Fuego"},{"code":"T","name":"Tucumán"}]},{"code":"AM","name":"Armenia","states":[]},{"code":"AW","name":"Aruba","states":[]},{"code":"AU","name":"Australia","states":[{"code":"ACT","name":"Australian Capital Territory"},{"code":"NSW","name":"New South Wales"},{"code":"NT","name":"Northern Territory"},{"code":"QLD","name":"Queensland"},{"code":"SA","name":"South Australia"},{"code":"TAS","name":"Tasmania"},{"code":"VIC","name":"Victoria"},{"code":"WA","name":"Western Australia"}]},{"code":"AT","name":"Austria","states":[]},{"code":"AZ","name":"Azerbaijan","states":[]},{"code":"BS","name":"Bahamas","states":[]},{"code":"BH","name":"Bahrain","states":[]},{"code":"BD","name":"Bangladesh","states":[{"code":"BD-05","name":"Bagerhat"},{"code":"BD-01","name":"Bandarban"},{"code":"BD-02","name":"Barguna"},{"code":"BD-06","name":"Barishal"},{"code":"BD-07","name":"Bhola"},{"code":"BD-03","name":"Bogura"},{"code":"BD-04","name":"Brahmanbaria"},{"code":"BD-09","name":"Chandpur"},{"code":"BD-10","name":"Chattogram"},{"code":"BD-12","name":"Chuadanga"},{"code":"BD-11","name":"Cox\'s Bazar"},{"code":"BD-08","name":"Cumilla"},{"code":"BD-13","name":"Dhaka"},{"code":"BD-14","name":"Dinajpur"},{"code":"BD-15","name":"Faridpur "},{"code":"BD-16","name":"Feni"},{"code":"BD-19","name":"Gaibandha"},{"code":"BD-18","name":"Gazipur"},{"code":"BD-17","name":"Gopalganj"},{"code":"BD-20","name":"Habiganj"},{"code":"BD-21","name":"Jamalpur"},{"code":"BD-22","name":"Jashore"},{"code":"BD-25","name":"Jhalokati"},{"code":"BD-23","name":"Jhenaidah"},{"code":"BD-24","name":"Joypurhat"},{"code":"BD-29","name":"Khagrachhari"},{"code":"BD-27","name":"Khulna"},{"code":"BD-26","name":"Kishoreganj"},{"code":"BD-28","name":"Kurigram"},{"code":"BD-30","name":"Kushtia"},{"code":"BD-31","name":"Lakshmipur"},{"code":"BD-32","name":"Lalmonirhat"},{"code":"BD-36","name":"Madaripur"},{"code":"BD-37","name":"Magura"},{"code":"BD-33","name":"Manikganj "},{"code":"BD-39","name":"Meherpur"},{"code":"BD-38","name":"Moulvibazar"},{"code":"BD-35","name":"Munshiganj"},{"code":"BD-34","name":"Mymensingh"},{"code":"BD-48","name":"Naogaon"},{"code":"BD-43","name":"Narail"},{"code":"BD-40","name":"Narayanganj"},{"code":"BD-42","name":"Narsingdi"},{"code":"BD-44","name":"Natore"},{"code":"BD-45","name":"Nawabganj"},{"code":"BD-41","name":"Netrakona"},{"code":"BD-46","name":"Nilphamari"},{"code":"BD-47","name":"Noakhali"},{"code":"BD-49","name":"Pabna"},{"code":"BD-52","name":"Panchagarh"},{"code":"BD-51","name":"Patuakhali"},{"code":"BD-50","name":"Pirojpur"},{"code":"BD-53","name":"Rajbari"},{"code":"BD-54","name":"Rajshahi"},{"code":"BD-56","name":"Rangamati"},{"code":"BD-55","name":"Rangpur"},{"code":"BD-58","name":"Satkhira"},{"code":"BD-62","name":"Shariatpur"},{"code":"BD-57","name":"Sherpur"},{"code":"BD-59","name":"Sirajganj"},{"code":"BD-61","name":"Sunamganj"},{"code":"BD-60","name":"Sylhet"},{"code":"BD-63","name":"Tangail"},{"code":"BD-64","name":"Thakurgaon"}]},{"code":"BB","name":"Barbados","states":[]},{"code":"PW","name":"Belau","states":[]},{"code":"BE","name":"Belgium","states":[]},{"code":"BZ","name":"Belize","states":[]},{"code":"BJ","name":"Benin","states":[{"code":"AL","name":"Alibori"},{"code":"AK","name":"Atakora"},{"code":"AQ","name":"Atlantique"},{"code":"BO","name":"Borgou"},{"code":"CO","name":"Collines"},{"code":"KO","name":"Kouffo"},{"code":"DO","name":"Donga"},{"code":"LI","name":"Littoral"},{"code":"MO","name":"Mono"},{"code":"OU","name":"Ouémé"},{"code":"PL","name":"Plateau"},{"code":"ZO","name":"Zou"}]},{"code":"BM","name":"Bermuda","states":[]},{"code":"BT","name":"Bhutan","states":[]},{"code":"BO","name":"Bolivia","states":[{"code":"BO-B","name":"Beni"},{"code":"BO-H","name":"Chuquisaca"},{"code":"BO-C","name":"Cochabamba"},{"code":"BO-L","name":"La Paz"},{"code":"BO-O","name":"Oruro"},{"code":"BO-N","name":"Pando"},{"code":"BO-P","name":"Potosí"},{"code":"BO-S","name":"Santa Cruz"},{"code":"BO-T","name":"Tarija"}]},{"code":"BQ","name":"Bonaire, Saint Eustatius and Saba","states":[]},{"code":"BW","name":"Botswana","states":[]},{"code":"BV","name":"Bouvet Island","states":[]},{"code":"BR","name":"Brazil","states":[{"code":"AC","name":"Acre"},{"code":"AL","name":"Alagoas"},{"code":"AP","name":"Amapá"},{"code":"AM","name":"Amazonas"},{"code":"BA","name":"Bahia"},{"code":"CE","name":"Ceará"},{"code":"DF","name":"Distrito Federal"},{"code":"ES","name":"Espírito Santo"},{"code":"GO","name":"Goiás"},{"code":"MA","name":"Maranhão"},{"code":"MT","name":"Mato Grosso"},{"code":"MS","name":"Mato Grosso do Sul"},{"code":"MG","name":"Minas Gerais"},{"code":"PA","name":"Pará"},{"code":"PB","name":"Paraíba"},{"code":"PR","name":"Paraná"},{"code":"PE","name":"Pernambuco"},{"code":"PI","name":"Piauí"},{"code":"RJ","name":"Rio de Janeiro"},{"code":"RN","name":"Rio Grande do Norte"},{"code":"RS","name":"Rio Grande do Sul"},{"code":"RO","name":"Rondônia"},{"code":"RR","name":"Roraima"},{"code":"SC","name":"Santa Catarina"},{"code":"SP","name":"São Paulo"},{"code":"SE","name":"Sergipe"},{"code":"TO","name":"Tocantins"}]},{"code":"IO","name":"British Indian Ocean Territory","states":[]},{"code":"BN","name":"Brunei","states":[]},{"code":"BF","name":"Burkina Faso","states":[]},{"code":"BI","name":"Burundi","states":[]},{"code":"KH","name":"Cambodia","states":[]},{"code":"CM","name":"Cameroon","states":[]},{"code":"CA","name":"Canada","states":[{"code":"AB","name":"Alberta"},{"code":"BC","name":"British Columbia"},{"code":"MB","name":"Manitoba"},{"code":"NB","name":"New Brunswick"},{"code":"NL","name":"Newfoundland and Labrador"},{"code":"NT","name":"Northwest Territories"},{"code":"NS","name":"Nova Scotia"},{"code":"NU","name":"Nunavut"},{"code":"ON","name":"Ontario"},{"code":"PE","name":"Prince Edward Island"},{"code":"QC","name":"Quebec"},{"code":"SK","name":"Saskatchewan"},{"code":"YT","name":"Yukon Territory"}]},{"code":"CV","name":"Cape Verde","states":[]},{"code":"KY","name":"Cayman Islands","states":[]},{"code":"TD","name":"Chad","states":[]},{"code":"CL","name":"Chile","states":[{"code":"CL-AI","name":"Aisén del General Carlos Ibañez del Campo"},{"code":"CL-AN","name":"Antofagasta"},{"code":"CL-AP","name":"Arica y Parinacota"},{"code":"CL-AR","name":"La Araucanía"},{"code":"CL-AT","name":"Atacama"},{"code":"CL-BI","name":"Biobío"},{"code":"CL-CO","name":"Coquimbo"},{"code":"CL-LI","name":"Libertador General Bernardo O\'Higgins"},{"code":"CL-LL","name":"Los Lagos"},{"code":"CL-LR","name":"Los Ríos"},{"code":"CL-MA","name":"Magallanes"},{"code":"CL-ML","name":"Maule"},{"code":"CL-NB","name":"Ñuble"},{"code":"CL-RM","name":"Región Metropolitana de Santiago"},{"code":"CL-TA","name":"Tarapacá"},{"code":"CL-VS","name":"Valparaíso"}]},{"code":"CN","name":"China","states":[{"code":"CN1","name":"Yunnan / 云南"},{"code":"CN2","name":"Beijing / 北京"},{"code":"CN3","name":"Tianjin / 天津"},{"code":"CN4","name":"Hebei / 河北"},{"code":"CN5","name":"Shanxi / 山西"},{"code":"CN6","name":"Inner Mongolia / 內蒙古"},{"code":"CN7","name":"Liaoning / 辽宁"},{"code":"CN8","name":"Jilin / 吉林"},{"code":"CN9","name":"Heilongjiang / 黑龙江"},{"code":"CN10","name":"Shanghai / 上海"},{"code":"CN11","name":"Jiangsu / 江苏"},{"code":"CN12","name":"Zhejiang / 浙江"},{"code":"CN13","name":"Anhui / 安徽"},{"code":"CN14","name":"Fujian / 福建"},{"code":"CN15","name":"Jiangxi / 江西"},{"code":"CN16","name":"Shandong / 山东"},{"code":"CN17","name":"Henan / 河南"},{"code":"CN18","name":"Hubei / 湖北"},{"code":"CN19","name":"Hunan / 湖南"},{"code":"CN20","name":"Guangdong / 广东"},{"code":"CN21","name":"Guangxi Zhuang / 广西壮族"},{"code":"CN22","name":"Hainan / 海南"},{"code":"CN23","name":"Chongqing / 重庆"},{"code":"CN24","name":"Sichuan / 四川"},{"code":"CN25","name":"Guizhou / 贵州"},{"code":"CN26","name":"Shaanxi / 陕西"},{"code":"CN27","name":"Gansu / 甘肃"},{"code":"CN28","name":"Qinghai / 青海"},{"code":"CN29","name":"Ningxia Hui / 宁夏"},{"code":"CN30","name":"Macao / 澳门"},{"code":"CN31","name":"Tibet / 西藏"},{"code":"CN32","name":"Xinjiang / 新疆"}]},{"code":"CX","name":"Christmas Island","states":[]},{"code":"CC","name":"Cocos (Keeling) Islands","states":[]},{"code":"CO","name":"Colombia","states":[{"code":"CO-AMA","name":"Amazonas"},{"code":"CO-ANT","name":"Antioquia"},{"code":"CO-ARA","name":"Arauca"},{"code":"CO-ATL","name":"Atlántico"},{"code":"CO-BOL","name":"Bolívar"},{"code":"CO-BOY","name":"Boyacá"},{"code":"CO-CAL","name":"Caldas"},{"code":"CO-CAQ","name":"Caquetá"},{"code":"CO-CAS","name":"Casanare"},{"code":"CO-CAU","name":"Cauca"},{"code":"CO-CES","name":"Cesar"},{"code":"CO-CHO","name":"Chocó"},{"code":"CO-COR","name":"Córdoba"},{"code":"CO-CUN","name":"Cundinamarca"},{"code":"CO-DC","name":"Capital District"},{"code":"CO-GUA","name":"Guainía"},{"code":"CO-GUV","name":"Guaviare"},{"code":"CO-HUI","name":"Huila"},{"code":"CO-LAG","name":"La Guajira"},{"code":"CO-MAG","name":"Magdalena"},{"code":"CO-MET","name":"Meta"},{"code":"CO-NAR","name":"Nariño"},{"code":"CO-NSA","name":"Norte de Santander"},{"code":"CO-PUT","name":"Putumayo"},{"code":"CO-QUI","name":"Quindío"},{"code":"CO-RIS","name":"Risaralda"},{"code":"CO-SAN","name":"Santander"},{"code":"CO-SAP","name":"San Andrés & Providencia"},{"code":"CO-SUC","name":"Sucre"},{"code":"CO-TOL","name":"Tolima"},{"code":"CO-VAC","name":"Valle del Cauca"},{"code":"CO-VAU","name":"Vaupés"},{"code":"CO-VID","name":"Vichada"}]},{"code":"KM","name":"Comoros","states":[]},{"code":"CK","name":"Cook Islands","states":[]},{"code":"CR","name":"Costa Rica","states":[{"code":"CR-A","name":"Alajuela"},{"code":"CR-C","name":"Cartago"},{"code":"CR-G","name":"Guanacaste"},{"code":"CR-H","name":"Heredia"},{"code":"CR-L","name":"Limón"},{"code":"CR-P","name":"Puntarenas"},{"code":"CR-SJ","name":"San José"}]},{"code":"HR","name":"Croatia","states":[]},{"code":"CW","name":"Curaçao","states":[]},{"code":"CY","name":"Cyprus","states":[]},{"code":"CZ","name":"Czech Republic","states":[]},{"code":"DK","name":"Denmark","states":[]},{"code":"DJ","name":"Djibouti","states":[]},{"code":"DM","name":"Dominica","states":[]},{"code":"DO","name":"Dominican Republic","states":[{"code":"DO-01","name":"Distrito Nacional"},{"code":"DO-02","name":"Azua"},{"code":"DO-03","name":"Baoruco"},{"code":"DO-04","name":"Barahona"},{"code":"DO-33","name":"Cibao Nordeste"},{"code":"DO-34","name":"Cibao Noroeste"},{"code":"DO-35","name":"Cibao Norte"},{"code":"DO-36","name":"Cibao Sur"},{"code":"DO-05","name":"Dajabón"},{"code":"DO-06","name":"Duarte"},{"code":"DO-08","name":"El Seibo"},{"code":"DO-37","name":"El Valle"},{"code":"DO-07","name":"Elías Piña"},{"code":"DO-38","name":"Enriquillo"},{"code":"DO-09","name":"Espaillat"},{"code":"DO-30","name":"Hato Mayor"},{"code":"DO-19","name":"Hermanas Mirabal"},{"code":"DO-39","name":"Higüamo"},{"code":"DO-10","name":"Independencia"},{"code":"DO-11","name":"La Altagracia"},{"code":"DO-12","name":"La Romana"},{"code":"DO-13","name":"La Vega"},{"code":"DO-14","name":"María Trinidad Sánchez"},{"code":"DO-28","name":"Monseñor Nouel"},{"code":"DO-15","name":"Monte Cristi"},{"code":"DO-29","name":"Monte Plata"},{"code":"DO-40","name":"Ozama"},{"code":"DO-16","name":"Pedernales"},{"code":"DO-17","name":"Peravia"},{"code":"DO-18","name":"Puerto Plata"},{"code":"DO-20","name":"Samaná"},{"code":"DO-21","name":"San Cristóbal"},{"code":"DO-31","name":"San José de Ocoa"},{"code":"DO-22","name":"San Juan"},{"code":"DO-23","name":"San Pedro de Macorís"},{"code":"DO-24","name":"Sánchez Ramírez"},{"code":"DO-25","name":"Santiago"},{"code":"DO-26","name":"Santiago Rodríguez"},{"code":"DO-32","name":"Santo Domingo"},{"code":"DO-41","name":"Valdesia"},{"code":"DO-27","name":"Valverde"},{"code":"DO-42","name":"Yuma"}]},{"code":"EC","name":"Ecuador","states":[{"code":"EC-A","name":"Azuay"},{"code":"EC-B","name":"Bolívar"},{"code":"EC-F","name":"Cañar"},{"code":"EC-C","name":"Carchi"},{"code":"EC-H","name":"Chimborazo"},{"code":"EC-X","name":"Cotopaxi"},{"code":"EC-O","name":"El Oro"},{"code":"EC-E","name":"Esmeraldas"},{"code":"EC-W","name":"Galápagos"},{"code":"EC-G","name":"Guayas"},{"code":"EC-I","name":"Imbabura"},{"code":"EC-L","name":"Loja"},{"code":"EC-R","name":"Los Ríos"},{"code":"EC-M","name":"Manabí"},{"code":"EC-S","name":"Morona-Santiago"},{"code":"EC-N","name":"Napo"},{"code":"EC-D","name":"Orellana"},{"code":"EC-Y","name":"Pastaza"},{"code":"EC-P","name":"Pichincha"},{"code":"EC-SE","name":"Santa Elena"},{"code":"EC-SD","name":"Santo Domingo de los Tsáchilas"},{"code":"EC-U","name":"Sucumbíos"},{"code":"EC-T","name":"Tungurahua"},{"code":"EC-Z","name":"Zamora-Chinchipe"}]},{"code":"EG","name":"Egypt","states":[{"code":"EGALX","name":"Alexandria"},{"code":"EGASN","name":"Aswan"},{"code":"EGAST","name":"Asyut"},{"code":"EGBA","name":"Red Sea"},{"code":"EGBH","name":"Beheira"},{"code":"EGBNS","name":"Beni Suef"},{"code":"EGC","name":"Cairo"},{"code":"EGDK","name":"Dakahlia"},{"code":"EGDT","name":"Damietta"},{"code":"EGFYM","name":"Faiyum"},{"code":"EGGH","name":"Gharbia"},{"code":"EGGZ","name":"Giza"},{"code":"EGIS","name":"Ismailia"},{"code":"EGJS","name":"South Sinai"},{"code":"EGKB","name":"Qalyubia"},{"code":"EGKFS","name":"Kafr el-Sheikh"},{"code":"EGKN","name":"Qena"},{"code":"EGLX","name":"Luxor"},{"code":"EGMN","name":"Minya"},{"code":"EGMNF","name":"Monufia"},{"code":"EGMT","name":"Matrouh"},{"code":"EGPTS","name":"Port Said"},{"code":"EGSHG","name":"Sohag"},{"code":"EGSHR","name":"Al Sharqia"},{"code":"EGSIN","name":"North Sinai"},{"code":"EGSUZ","name":"Suez"},{"code":"EGWAD","name":"New Valley"}]},{"code":"SV","name":"El Salvador","states":[{"code":"SV-AH","name":"Ahuachapán"},{"code":"SV-CA","name":"Cabañas"},{"code":"SV-CH","name":"Chalatenango"},{"code":"SV-CU","name":"Cuscatlán"},{"code":"SV-LI","name":"La Libertad"},{"code":"SV-MO","name":"Morazán"},{"code":"SV-PA","name":"La Paz"},{"code":"SV-SA","name":"Santa Ana"},{"code":"SV-SM","name":"San Miguel"},{"code":"SV-SO","name":"Sonsonate"},{"code":"SV-SS","name":"San Salvador"},{"code":"SV-SV","name":"San Vicente"},{"code":"SV-UN","name":"La Unión"},{"code":"SV-US","name":"Usulután"}]},{"code":"GQ","name":"Equatorial Guinea","states":[]},{"code":"ER","name":"Eritrea","states":[]},{"code":"EE","name":"Estonia","states":[]},{"code":"SZ","name":"Eswatini","states":[]},{"code":"FK","name":"Falkland Islands","states":[]},{"code":"FO","name":"Faroe Islands","states":[]},{"code":"FJ","name":"Fiji","states":[]},{"code":"FI","name":"Finland","states":[]},{"code":"FR","name":"France","states":[]},{"code":"GF","name":"French Guiana","states":[]},{"code":"PF","name":"French Polynesia","states":[]},{"code":"TF","name":"French Southern Territories","states":[]},{"code":"GA","name":"Gabon","states":[]},{"code":"GM","name":"Gambia","states":[]},{"code":"GE","name":"Georgia","states":[]},{"code":"DE","name":"Germany","states":[{"code":"DE-BW","name":"Baden-Württemberg"},{"code":"DE-BY","name":"Bavaria"},{"code":"DE-BE","name":"Berlin"},{"code":"DE-BB","name":"Brandenburg"},{"code":"DE-HB","name":"Bremen"},{"code":"DE-HH","name":"Hamburg"},{"code":"DE-HE","name":"Hesse"},{"code":"DE-MV","name":"Mecklenburg-Vorpommern"},{"code":"DE-NI","name":"Lower Saxony"},{"code":"DE-NW","name":"North Rhine-Westphalia"},{"code":"DE-RP","name":"Rhineland-Palatinate"},{"code":"DE-SL","name":"Saarland"},{"code":"DE-SN","name":"Saxony"},{"code":"DE-ST","name":"Saxony-Anhalt"},{"code":"DE-SH","name":"Schleswig-Holstein"},{"code":"DE-TH","name":"Thuringia"}]},{"code":"GH","name":"Ghana","states":[{"code":"AF","name":"Ahafo"},{"code":"AH","name":"Ashanti"},{"code":"BA","name":"Brong-Ahafo"},{"code":"BO","name":"Bono"},{"code":"BE","name":"Bono East"},{"code":"CP","name":"Central"},{"code":"EP","name":"Eastern"},{"code":"AA","name":"Greater Accra"},{"code":"NE","name":"North East"},{"code":"NP","name":"Northern"},{"code":"OT","name":"Oti"},{"code":"SV","name":"Savannah"},{"code":"UE","name":"Upper East"},{"code":"UW","name":"Upper West"},{"code":"TV","name":"Volta"},{"code":"WP","name":"Western"},{"code":"WN","name":"Western North"}]},{"code":"GI","name":"Gibraltar","states":[]},{"code":"GR","name":"Greece","states":[{"code":"I","name":"Attica"},{"code":"A","name":"East Macedonia and Thrace"},{"code":"B","name":"Central Macedonia"},{"code":"C","name":"West Macedonia"},{"code":"D","name":"Epirus"},{"code":"E","name":"Thessaly"},{"code":"F","name":"Ionian Islands"},{"code":"G","name":"West Greece"},{"code":"H","name":"Central Greece"},{"code":"J","name":"Peloponnese"},{"code":"K","name":"North Aegean"},{"code":"L","name":"South Aegean"},{"code":"M","name":"Crete"}]},{"code":"GL","name":"Greenland","states":[]},{"code":"GD","name":"Grenada","states":[]},{"code":"GP","name":"Guadeloupe","states":[]},{"code":"GU","name":"Guam","states":[]},{"code":"GT","name":"Guatemala","states":[{"code":"GT-AV","name":"Alta Verapaz"},{"code":"GT-BV","name":"Baja Verapaz"},{"code":"GT-CM","name":"Chimaltenango"},{"code":"GT-CQ","name":"Chiquimula"},{"code":"GT-PR","name":"El Progreso"},{"code":"GT-ES","name":"Escuintla"},{"code":"GT-GU","name":"Guatemala"},{"code":"GT-HU","name":"Huehuetenango"},{"code":"GT-IZ","name":"Izabal"},{"code":"GT-JA","name":"Jalapa"},{"code":"GT-JU","name":"Jutiapa"},{"code":"GT-PE","name":"Petén"},{"code":"GT-QZ","name":"Quetzaltenango"},{"code":"GT-QC","name":"Quiché"},{"code":"GT-RE","name":"Retalhuleu"},{"code":"GT-SA","name":"Sacatepéquez"},{"code":"GT-SM","name":"San Marcos"},{"code":"GT-SR","name":"Santa Rosa"},{"code":"GT-SO","name":"Sololá"},{"code":"GT-SU","name":"Suchitepéquez"},{"code":"GT-TO","name":"Totonicapán"},{"code":"GT-ZA","name":"Zacapa"}]},{"code":"GG","name":"Guernsey","states":[]},{"code":"GN","name":"Guinea","states":[]},{"code":"GW","name":"Guinea-Bissau","states":[]},{"code":"GY","name":"Guyana","states":[]},{"code":"HM","name":"Heard Island and McDonald Islands","states":[]},{"code":"HN","name":"Honduras","states":[{"code":"HN-AT","name":"Atlántida"},{"code":"HN-IB","name":"Bay Islands"},{"code":"HN-CH","name":"Choluteca"},{"code":"HN-CL","name":"Colón"},{"code":"HN-CM","name":"Comayagua"},{"code":"HN-CP","name":"Copán"},{"code":"HN-CR","name":"Cortés"},{"code":"HN-EP","name":"El Paraíso"},{"code":"HN-FM","name":"Francisco Morazán"},{"code":"HN-GD","name":"Gracias a Dios"},{"code":"HN-IN","name":"Intibucá"},{"code":"HN-LE","name":"Lempira"},{"code":"HN-LP","name":"La Paz"},{"code":"HN-OC","name":"Ocotepeque"},{"code":"HN-OL","name":"Olancho"},{"code":"HN-SB","name":"Santa Bárbara"},{"code":"HN-VA","name":"Valle"},{"code":"HN-YO","name":"Yoro"}]},{"code":"HU","name":"Hungary","states":[{"code":"BK","name":"Bács-Kiskun"},{"code":"BE","name":"Békés"},{"code":"BA","name":"Baranya"},{"code":"BZ","name":"Borsod-Abaúj-Zemplén"},{"code":"BU","name":"Budapest"},{"code":"CS","name":"Csongrád-Csanád"},{"code":"FE","name":"Fejér"},{"code":"GS","name":"Győr-Moson-Sopron"},{"code":"HB","name":"Hajdú-Bihar"},{"code":"HE","name":"Heves"},{"code":"JN","name":"Jász-Nagykun-Szolnok"},{"code":"KE","name":"Komárom-Esztergom"},{"code":"NO","name":"Nógrád"},{"code":"PE","name":"Pest"},{"code":"SO","name":"Somogy"},{"code":"SZ","name":"Szabolcs-Szatmár-Bereg"},{"code":"TO","name":"Tolna"},{"code":"VA","name":"Vas"},{"code":"VE","name":"Veszprém"},{"code":"ZA","name":"Zala"}]},{"code":"IS","name":"Iceland","states":[]},{"code":"IN","name":"India","states":[{"code":"AP","name":"Andhra Pradesh"},{"code":"AR","name":"Arunachal Pradesh"},{"code":"AS","name":"Assam"},{"code":"BR","name":"Bihar"},{"code":"CT","name":"Chhattisgarh"},{"code":"GA","name":"Goa"},{"code":"GJ","name":"Gujarat"},{"code":"HR","name":"Haryana"},{"code":"HP","name":"Himachal Pradesh"},{"code":"JK","name":"Jammu and Kashmir"},{"code":"JH","name":"Jharkhand"},{"code":"KA","name":"Karnataka"},{"code":"KL","name":"Kerala"},{"code":"LA","name":"Ladakh"},{"code":"MP","name":"Madhya Pradesh"},{"code":"MH","name":"Maharashtra"},{"code":"MN","name":"Manipur"},{"code":"ML","name":"Meghalaya"},{"code":"MZ","name":"Mizoram"},{"code":"NL","name":"Nagaland"},{"code":"OR","name":"Odisha"},{"code":"PB","name":"Punjab"},{"code":"RJ","name":"Rajasthan"},{"code":"SK","name":"Sikkim"},{"code":"TN","name":"Tamil Nadu"},{"code":"TS","name":"Telangana"},{"code":"TR","name":"Tripura"},{"code":"UK","name":"Uttarakhand"},{"code":"UP","name":"Uttar Pradesh"},{"code":"WB","name":"West Bengal"},{"code":"AN","name":"Andaman and Nicobar Islands"},{"code":"CH","name":"Chandigarh"},{"code":"DN","name":"Dadra and Nagar Haveli"},{"code":"DD","name":"Daman and Diu"},{"code":"DL","name":"Delhi"},{"code":"LD","name":"Lakshadeep"},{"code":"PY","name":"Pondicherry (Puducherry)"}]},{"code":"ID","name":"Indonesia","states":[{"code":"AC","name":"Daerah Istimewa Aceh"},{"code":"SU","name":"Sumatera Utara"},{"code":"SB","name":"Sumatera Barat"},{"code":"RI","name":"Riau"},{"code":"KR","name":"Kepulauan Riau"},{"code":"JA","name":"Jambi"},{"code":"SS","name":"Sumatera Selatan"},{"code":"BB","name":"Bangka Belitung"},{"code":"BE","name":"Bengkulu"},{"code":"LA","name":"Lampung"},{"code":"JK","name":"DKI Jakarta"},{"code":"JB","name":"Jawa Barat"},{"code":"BT","name":"Banten"},{"code":"JT","name":"Jawa Tengah"},{"code":"JI","name":"Jawa Timur"},{"code":"YO","name":"Daerah Istimewa Yogyakarta"},{"code":"BA","name":"Bali"},{"code":"NB","name":"Nusa Tenggara Barat"},{"code":"NT","name":"Nusa Tenggara Timur"},{"code":"KB","name":"Kalimantan Barat"},{"code":"KT","name":"Kalimantan Tengah"},{"code":"KI","name":"Kalimantan Timur"},{"code":"KS","name":"Kalimantan Selatan"},{"code":"KU","name":"Kalimantan Utara"},{"code":"SA","name":"Sulawesi Utara"},{"code":"ST","name":"Sulawesi Tengah"},{"code":"SG","name":"Sulawesi Tenggara"},{"code":"SR","name":"Sulawesi Barat"},{"code":"SN","name":"Sulawesi Selatan"},{"code":"GO","name":"Gorontalo"},{"code":"MA","name":"Maluku"},{"code":"MU","name":"Maluku Utara"},{"code":"PA","name":"Papua"},{"code":"PB","name":"Papua Barat"}]},{"code":"IE","name":"Ireland","states":[{"code":"CW","name":"Carlow"},{"code":"CN","name":"Cavan"},{"code":"CE","name":"Clare"},{"code":"CO","name":"Cork"},{"code":"DL","name":"Donegal"},{"code":"D","name":"Dublin"},{"code":"G","name":"Galway"},{"code":"KY","name":"Kerry"},{"code":"KE","name":"Kildare"},{"code":"KK","name":"Kilkenny"},{"code":"LS","name":"Laois"},{"code":"LM","name":"Leitrim"},{"code":"LK","name":"Limerick"},{"code":"LD","name":"Longford"},{"code":"LH","name":"Louth"},{"code":"MO","name":"Mayo"},{"code":"MH","name":"Meath"},{"code":"MN","name":"Monaghan"},{"code":"OY","name":"Offaly"},{"code":"RN","name":"Roscommon"},{"code":"SO","name":"Sligo"},{"code":"TA","name":"Tipperary"},{"code":"WD","name":"Waterford"},{"code":"WH","name":"Westmeath"},{"code":"WX","name":"Wexford"},{"code":"WW","name":"Wicklow"}]},{"code":"IM","name":"Isle of Man","states":[]},{"code":"IL","name":"Israel","states":[]},{"code":"IT","name":"Italy","states":[{"code":"AG","name":"Agrigento"},{"code":"AL","name":"Alessandria"},{"code":"AN","name":"Ancona"},{"code":"AO","name":"Aosta"},{"code":"AR","name":"Arezzo"},{"code":"AP","name":"Ascoli Piceno"},{"code":"AT","name":"Asti"},{"code":"AV","name":"Avellino"},{"code":"BA","name":"Bari"},{"code":"BT","name":"Barletta-Andria-Trani"},{"code":"BL","name":"Belluno"},{"code":"BN","name":"Benevento"},{"code":"BG","name":"Bergamo"},{"code":"BI","name":"Biella"},{"code":"BO","name":"Bologna"},{"code":"BZ","name":"Bolzano"},{"code":"BS","name":"Brescia"},{"code":"BR","name":"Brindisi"},{"code":"CA","name":"Cagliari"},{"code":"CL","name":"Caltanissetta"},{"code":"CB","name":"Campobasso"},{"code":"CE","name":"Caserta"},{"code":"CT","name":"Catania"},{"code":"CZ","name":"Catanzaro"},{"code":"CH","name":"Chieti"},{"code":"CO","name":"Como"},{"code":"CS","name":"Cosenza"},{"code":"CR","name":"Cremona"},{"code":"KR","name":"Crotone"},{"code":"CN","name":"Cuneo"},{"code":"EN","name":"Enna"},{"code":"FM","name":"Fermo"},{"code":"FE","name":"Ferrara"},{"code":"FI","name":"Firenze"},{"code":"FG","name":"Foggia"},{"code":"FC","name":"Forlì-Cesena"},{"code":"FR","name":"Frosinone"},{"code":"GE","name":"Genova"},{"code":"GO","name":"Gorizia"},{"code":"GR","name":"Grosseto"},{"code":"IM","name":"Imperia"},{"code":"IS","name":"Isernia"},{"code":"SP","name":"La Spezia"},{"code":"AQ","name":"L\'Aquila"},{"code":"LT","name":"Latina"},{"code":"LE","name":"Lecce"},{"code":"LC","name":"Lecco"},{"code":"LI","name":"Livorno"},{"code":"LO","name":"Lodi"},{"code":"LU","name":"Lucca"},{"code":"MC","name":"Macerata"},{"code":"MN","name":"Mantova"},{"code":"MS","name":"Massa-Carrara"},{"code":"MT","name":"Matera"},{"code":"ME","name":"Messina"},{"code":"MI","name":"Milano"},{"code":"MO","name":"Modena"},{"code":"MB","name":"Monza e della Brianza"},{"code":"NA","name":"Napoli"},{"code":"NO","name":"Novara"},{"code":"NU","name":"Nuoro"},{"code":"OR","name":"Oristano"},{"code":"PD","name":"Padova"},{"code":"PA","name":"Palermo"},{"code":"PR","name":"Parma"},{"code":"PV","name":"Pavia"},{"code":"PG","name":"Perugia"},{"code":"PU","name":"Pesaro e Urbino"},{"code":"PE","name":"Pescara"},{"code":"PC","name":"Piacenza"},{"code":"PI","name":"Pisa"},{"code":"PT","name":"Pistoia"},{"code":"PN","name":"Pordenone"},{"code":"PZ","name":"Potenza"},{"code":"PO","name":"Prato"},{"code":"RG","name":"Ragusa"},{"code":"RA","name":"Ravenna"},{"code":"RC","name":"Reggio Calabria"},{"code":"RE","name":"Reggio Emilia"},{"code":"RI","name":"Rieti"},{"code":"RN","name":"Rimini"},{"code":"RM","name":"Roma"},{"code":"RO","name":"Rovigo"},{"code":"SA","name":"Salerno"},{"code":"SS","name":"Sassari"},{"code":"SV","name":"Savona"},{"code":"SI","name":"Siena"},{"code":"SR","name":"Siracusa"},{"code":"SO","name":"Sondrio"},{"code":"SU","name":"Sud Sardegna"},{"code":"TA","name":"Taranto"},{"code":"TE","name":"Teramo"},{"code":"TR","name":"Terni"},{"code":"TO","name":"Torino"},{"code":"TP","name":"Trapani"},{"code":"TN","name":"Trento"},{"code":"TV","name":"Treviso"},{"code":"TS","name":"Trieste"},{"code":"UD","name":"Udine"},{"code":"VA","name":"Varese"},{"code":"VE","name":"Venezia"},{"code":"VB","name":"Verbano-Cusio-Ossola"},{"code":"VC","name":"Vercelli"},{"code":"VR","name":"Verona"},{"code":"VV","name":"Vibo Valentia"},{"code":"VI","name":"Vicenza"},{"code":"VT","name":"Viterbo"}]},{"code":"CI","name":"Ivory Coast","states":[]},{"code":"JM","name":"Jamaica","states":[{"code":"JM-01","name":"Kingston"},{"code":"JM-02","name":"Saint Andrew"},{"code":"JM-03","name":"Saint Thomas"},{"code":"JM-04","name":"Portland"},{"code":"JM-05","name":"Saint Mary"},{"code":"JM-06","name":"Saint Ann"},{"code":"JM-07","name":"Trelawny"},{"code":"JM-08","name":"Saint James"},{"code":"JM-09","name":"Hanover"},{"code":"JM-10","name":"Westmoreland"},{"code":"JM-11","name":"Saint Elizabeth"},{"code":"JM-12","name":"Manchester"},{"code":"JM-13","name":"Clarendon"},{"code":"JM-14","name":"Saint Catherine"}]},{"code":"JP","name":"Japan","states":[{"code":"JP01","name":"Hokkaido"},{"code":"JP02","name":"Aomori"},{"code":"JP03","name":"Iwate"},{"code":"JP04","name":"Miyagi"},{"code":"JP05","name":"Akita"},{"code":"JP06","name":"Yamagata"},{"code":"JP07","name":"Fukushima"},{"code":"JP08","name":"Ibaraki"},{"code":"JP09","name":"Tochigi"},{"code":"JP10","name":"Gunma"},{"code":"JP11","name":"Saitama"},{"code":"JP12","name":"Chiba"},{"code":"JP13","name":"Tokyo"},{"code":"JP14","name":"Kanagawa"},{"code":"JP15","name":"Niigata"},{"code":"JP16","name":"Toyama"},{"code":"JP17","name":"Ishikawa"},{"code":"JP18","name":"Fukui"},{"code":"JP19","name":"Yamanashi"},{"code":"JP20","name":"Nagano"},{"code":"JP21","name":"Gifu"},{"code":"JP22","name":"Shizuoka"},{"code":"JP23","name":"Aichi"},{"code":"JP24","name":"Mie"},{"code":"JP25","name":"Shiga"},{"code":"JP26","name":"Kyoto"},{"code":"JP27","name":"Osaka"},{"code":"JP28","name":"Hyogo"},{"code":"JP29","name":"Nara"},{"code":"JP30","name":"Wakayama"},{"code":"JP31","name":"Tottori"},{"code":"JP32","name":"Shimane"},{"code":"JP33","name":"Okayama"},{"code":"JP34","name":"Hiroshima"},{"code":"JP35","name":"Yamaguchi"},{"code":"JP36","name":"Tokushima"},{"code":"JP37","name":"Kagawa"},{"code":"JP38","name":"Ehime"},{"code":"JP39","name":"Kochi"},{"code":"JP40","name":"Fukuoka"},{"code":"JP41","name":"Saga"},{"code":"JP42","name":"Nagasaki"},{"code":"JP43","name":"Kumamoto"},{"code":"JP44","name":"Oita"},{"code":"JP45","name":"Miyazaki"},{"code":"JP46","name":"Kagoshima"},{"code":"JP47","name":"Okinawa"}]},{"code":"JE","name":"Jersey","states":[]},{"code":"JO","name":"Jordan","states":[]},{"code":"KZ","name":"Kazakhstan","states":[]},{"code":"KE","name":"Kenya","states":[{"code":"KE01","name":"Baringo"},{"code":"KE02","name":"Bomet"},{"code":"KE03","name":"Bungoma"},{"code":"KE04","name":"Busia"},{"code":"KE05","name":"Elgeyo-Marakwet"},{"code":"KE06","name":"Embu"},{"code":"KE07","name":"Garissa"},{"code":"KE08","name":"Homa Bay"},{"code":"KE09","name":"Isiolo"},{"code":"KE10","name":"Kajiado"},{"code":"KE11","name":"Kakamega"},{"code":"KE12","name":"Kericho"},{"code":"KE13","name":"Kiambu"},{"code":"KE14","name":"Kilifi"},{"code":"KE15","name":"Kirinyaga"},{"code":"KE16","name":"Kisii"},{"code":"KE17","name":"Kisumu"},{"code":"KE18","name":"Kitui"},{"code":"KE19","name":"Kwale"},{"code":"KE20","name":"Laikipia"},{"code":"KE21","name":"Lamu"},{"code":"KE22","name":"Machakos"},{"code":"KE23","name":"Makueni"},{"code":"KE24","name":"Mandera"},{"code":"KE25","name":"Marsabit"},{"code":"KE26","name":"Meru"},{"code":"KE27","name":"Migori"},{"code":"KE28","name":"Mombasa"},{"code":"KE29","name":"Murang’a"},{"code":"KE30","name":"Nairobi County"},{"code":"KE31","name":"Nakuru"},{"code":"KE32","name":"Nandi"},{"code":"KE33","name":"Narok"},{"code":"KE34","name":"Nyamira"},{"code":"KE35","name":"Nyandarua"},{"code":"KE36","name":"Nyeri"},{"code":"KE37","name":"Samburu"},{"code":"KE38","name":"Siaya"},{"code":"KE39","name":"Taita-Taveta"},{"code":"KE40","name":"Tana River"},{"code":"KE41","name":"Tharaka-Nithi"},{"code":"KE42","name":"Trans Nzoia"},{"code":"KE43","name":"Turkana"},{"code":"KE44","name":"Uasin Gishu"},{"code":"KE45","name":"Vihiga"},{"code":"KE46","name":"Wajir"},{"code":"KE47","name":"West Pokot"}]},{"code":"KI","name":"Kiribati","states":[]},{"code":"KW","name":"Kuwait","states":[]},{"code":"KG","name":"Kyrgyzstan","states":[]},{"code":"LA","name":"Laos","states":[{"code":"AT","name":"Attapeu"},{"code":"BK","name":"Bokeo"},{"code":"BL","name":"Bolikhamsai"},{"code":"CH","name":"Champasak"},{"code":"HO","name":"Houaphanh"},{"code":"KH","name":"Khammouane"},{"code":"LM","name":"Luang Namtha"},{"code":"LP","name":"Luang Prabang"},{"code":"OU","name":"Oudomxay"},{"code":"PH","name":"Phongsaly"},{"code":"SL","name":"Salavan"},{"code":"SV","name":"Savannakhet"},{"code":"VI","name":"Vientiane Province"},{"code":"VT","name":"Vientiane"},{"code":"XA","name":"Sainyabuli"},{"code":"XE","name":"Sekong"},{"code":"XI","name":"Xiangkhouang"},{"code":"XS","name":"Xaisomboun"}]},{"code":"LV","name":"Latvia","states":[]},{"code":"LS","name":"Lesotho","states":[]},{"code":"LR","name":"Liberia","states":[{"code":"BM","name":"Bomi"},{"code":"BN","name":"Bong"},{"code":"GA","name":"Gbarpolu"},{"code":"GB","name":"Grand Bassa"},{"code":"GC","name":"Grand Cape Mount"},{"code":"GG","name":"Grand Gedeh"},{"code":"GK","name":"Grand Kru"},{"code":"LO","name":"Lofa"},{"code":"MA","name":"Margibi"},{"code":"MY","name":"Maryland"},{"code":"MO","name":"Montserrado"},{"code":"NM","name":"Nimba"},{"code":"RV","name":"Rivercess"},{"code":"RG","name":"River Gee"},{"code":"SN","name":"Sinoe"}]},{"code":"LI","name":"Liechtenstein","states":[]},{"code":"LT","name":"Lithuania","states":[]},{"code":"LU","name":"Luxembourg","states":[]},{"code":"MO","name":"Macao","states":[]},{"code":"MG","name":"Madagascar","states":[]},{"code":"MW","name":"Malawi","states":[]},{"code":"MY","name":"Malaysia","states":[{"code":"JHR","name":"Johor"},{"code":"KDH","name":"Kedah"},{"code":"KTN","name":"Kelantan"},{"code":"LBN","name":"Labuan"},{"code":"MLK","name":"Malacca (Melaka)"},{"code":"NSN","name":"Negeri Sembilan"},{"code":"PHG","name":"Pahang"},{"code":"PNG","name":"Penang (Pulau Pinang)"},{"code":"PRK","name":"Perak"},{"code":"PLS","name":"Perlis"},{"code":"SBH","name":"Sabah"},{"code":"SWK","name":"Sarawak"},{"code":"SGR","name":"Selangor"},{"code":"TRG","name":"Terengganu"},{"code":"PJY","name":"Putrajaya"},{"code":"KUL","name":"Kuala Lumpur"}]},{"code":"MV","name":"Maldives","states":[]},{"code":"ML","name":"Mali","states":[]},{"code":"MT","name":"Malta","states":[]},{"code":"MH","name":"Marshall Islands","states":[]},{"code":"MQ","name":"Martinique","states":[]},{"code":"MR","name":"Mauritania","states":[]},{"code":"MU","name":"Mauritius","states":[]},{"code":"YT","name":"Mayotte","states":[]},{"code":"MX","name":"Mexico","states":[{"code":"DF","name":"Ciudad de México"},{"code":"JA","name":"Jalisco"},{"code":"NL","name":"Nuevo León"},{"code":"AG","name":"Aguascalientes"},{"code":"BC","name":"Baja California"},{"code":"BS","name":"Baja California Sur"},{"code":"CM","name":"Campeche"},{"code":"CS","name":"Chiapas"},{"code":"CH","name":"Chihuahua"},{"code":"CO","name":"Coahuila"},{"code":"CL","name":"Colima"},{"code":"DG","name":"Durango"},{"code":"GT","name":"Guanajuato"},{"code":"GR","name":"Guerrero"},{"code":"HG","name":"Hidalgo"},{"code":"MX","name":"Estado de México"},{"code":"MI","name":"Michoacán"},{"code":"MO","name":"Morelos"},{"code":"NA","name":"Nayarit"},{"code":"OA","name":"Oaxaca"},{"code":"PU","name":"Puebla"},{"code":"QT","name":"Querétaro"},{"code":"QR","name":"Quintana Roo"},{"code":"SL","name":"San Luis Potosí"},{"code":"SI","name":"Sinaloa"},{"code":"SO","name":"Sonora"},{"code":"TB","name":"Tabasco"},{"code":"TM","name":"Tamaulipas"},{"code":"TL","name":"Tlaxcala"},{"code":"VE","name":"Veracruz"},{"code":"YU","name":"Yucatán"},{"code":"ZA","name":"Zacatecas"}]},{"code":"FM","name":"Micronesia","states":[]},{"code":"MD","name":"Moldova","states":[{"code":"C","name":"Chișinău"},{"code":"BL","name":"Bălți"},{"code":"AN","name":"Anenii Noi"},{"code":"BS","name":"Basarabeasca"},{"code":"BR","name":"Briceni"},{"code":"CH","name":"Cahul"},{"code":"CT","name":"Cantemir"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Căușeni"},{"code":"CM","name":"Cimișlia"},{"code":"CR","name":"Criuleni"},{"code":"DN","name":"Dondușeni"},{"code":"DR","name":"Drochia"},{"code":"DB","name":"Dubăsari"},{"code":"ED","name":"Edineț"},{"code":"FL","name":"Fălești"},{"code":"FR","name":"Florești"},{"code":"GE","name":"UTA Găgăuzia"},{"code":"GL","name":"Glodeni"},{"code":"HN","name":"Hîncești"},{"code":"IL","name":"Ialoveni"},{"code":"LV","name":"Leova"},{"code":"NS","name":"Nisporeni"},{"code":"OC","name":"Ocnița"},{"code":"OR","name":"Orhei"},{"code":"RZ","name":"Rezina"},{"code":"RS","name":"Rîșcani"},{"code":"SG","name":"Sîngerei"},{"code":"SR","name":"Soroca"},{"code":"ST","name":"Strășeni"},{"code":"SD","name":"Șoldănești"},{"code":"SV","name":"Ștefan Vodă"},{"code":"TR","name":"Taraclia"},{"code":"TL","name":"Telenești"},{"code":"UN","name":"Ungheni"}]},{"code":"MC","name":"Monaco","states":[]},{"code":"MN","name":"Mongolia","states":[]},{"code":"MS","name":"Montserrat","states":[]},{"code":"MA","name":"Morocco","states":[]},{"code":"MZ","name":"Mozambique","states":[{"code":"MZP","name":"Cabo Delgado"},{"code":"MZG","name":"Gaza"},{"code":"MZI","name":"Inhambane"},{"code":"MZB","name":"Manica"},{"code":"MZL","name":"Maputo Province"},{"code":"MZMPM","name":"Maputo"},{"code":"MZN","name":"Nampula"},{"code":"MZA","name":"Niassa"},{"code":"MZS","name":"Sofala"},{"code":"MZT","name":"Tete"},{"code":"MZQ","name":"Zambézia"}]},{"code":"NA","name":"Namibia","states":[{"code":"ER","name":"Erongo"},{"code":"HA","name":"Hardap"},{"code":"KA","name":"Karas"},{"code":"KE","name":"Kavango East"},{"code":"KW","name":"Kavango West"},{"code":"KH","name":"Khomas"},{"code":"KU","name":"Kunene"},{"code":"OW","name":"Ohangwena"},{"code":"OH","name":"Omaheke"},{"code":"OS","name":"Omusati"},{"code":"ON","name":"Oshana"},{"code":"OT","name":"Oshikoto"},{"code":"OD","name":"Otjozondjupa"},{"code":"CA","name":"Zambezi"}]},{"code":"NR","name":"Nauru","states":[]},{"code":"NP","name":"Nepal","states":[{"code":"BAG","name":"Bagmati"},{"code":"BHE","name":"Bheri"},{"code":"DHA","name":"Dhaulagiri"},{"code":"GAN","name":"Gandaki"},{"code":"JAN","name":"Janakpur"},{"code":"KAR","name":"Karnali"},{"code":"KOS","name":"Koshi"},{"code":"LUM","name":"Lumbini"},{"code":"MAH","name":"Mahakali"},{"code":"MEC","name":"Mechi"},{"code":"NAR","name":"Narayani"},{"code":"RAP","name":"Rapti"},{"code":"SAG","name":"Sagarmatha"},{"code":"SET","name":"Seti"}]},{"code":"NL","name":"Netherlands","states":[]},{"code":"NC","name":"New Caledonia","states":[]},{"code":"NZ","name":"New Zealand","states":[{"code":"NL","name":"Northland"},{"code":"AK","name":"Auckland"},{"code":"WA","name":"Waikato"},{"code":"BP","name":"Bay of Plenty"},{"code":"TK","name":"Taranaki"},{"code":"GI","name":"Gisborne"},{"code":"HB","name":"Hawke’s Bay"},{"code":"MW","name":"Manawatu-Wanganui"},{"code":"WE","name":"Wellington"},{"code":"NS","name":"Nelson"},{"code":"MB","name":"Marlborough"},{"code":"TM","name":"Tasman"},{"code":"WC","name":"West Coast"},{"code":"CT","name":"Canterbury"},{"code":"OT","name":"Otago"},{"code":"SL","name":"Southland"}]},{"code":"NI","name":"Nicaragua","states":[{"code":"NI-AN","name":"Atlántico Norte"},{"code":"NI-AS","name":"Atlántico Sur"},{"code":"NI-BO","name":"Boaco"},{"code":"NI-CA","name":"Carazo"},{"code":"NI-CI","name":"Chinandega"},{"code":"NI-CO","name":"Chontales"},{"code":"NI-ES","name":"Estelí"},{"code":"NI-GR","name":"Granada"},{"code":"NI-JI","name":"Jinotega"},{"code":"NI-LE","name":"León"},{"code":"NI-MD","name":"Madriz"},{"code":"NI-MN","name":"Managua"},{"code":"NI-MS","name":"Masaya"},{"code":"NI-MT","name":"Matagalpa"},{"code":"NI-NS","name":"Nueva Segovia"},{"code":"NI-RI","name":"Rivas"},{"code":"NI-SJ","name":"Río San Juan"}]},{"code":"NE","name":"Niger","states":[]},{"code":"NG","name":"Nigeria","states":[{"code":"AB","name":"Abia"},{"code":"FC","name":"Abuja"},{"code":"AD","name":"Adamawa"},{"code":"AK","name":"Akwa Ibom"},{"code":"AN","name":"Anambra"},{"code":"BA","name":"Bauchi"},{"code":"BY","name":"Bayelsa"},{"code":"BE","name":"Benue"},{"code":"BO","name":"Borno"},{"code":"CR","name":"Cross River"},{"code":"DE","name":"Delta"},{"code":"EB","name":"Ebonyi"},{"code":"ED","name":"Edo"},{"code":"EK","name":"Ekiti"},{"code":"EN","name":"Enugu"},{"code":"GO","name":"Gombe"},{"code":"IM","name":"Imo"},{"code":"JI","name":"Jigawa"},{"code":"KD","name":"Kaduna"},{"code":"KN","name":"Kano"},{"code":"KT","name":"Katsina"},{"code":"KE","name":"Kebbi"},{"code":"KO","name":"Kogi"},{"code":"KW","name":"Kwara"},{"code":"LA","name":"Lagos"},{"code":"NA","name":"Nasarawa"},{"code":"NI","name":"Niger"},{"code":"OG","name":"Ogun"},{"code":"ON","name":"Ondo"},{"code":"OS","name":"Osun"},{"code":"OY","name":"Oyo"},{"code":"PL","name":"Plateau"},{"code":"RI","name":"Rivers"},{"code":"SO","name":"Sokoto"},{"code":"TA","name":"Taraba"},{"code":"YO","name":"Yobe"},{"code":"ZA","name":"Zamfara"}]},{"code":"NU","name":"Niue","states":[]},{"code":"NF","name":"Norfolk Island","states":[]},{"code":"MP","name":"Northern Mariana Islands","states":[]},{"code":"NO","name":"Norway","states":[]},{"code":"OM","name":"Oman","states":[]},{"code":"PK","name":"Pakistan","states":[{"code":"JK","name":"Azad Kashmir"},{"code":"BA","name":"Balochistan"},{"code":"TA","name":"FATA"},{"code":"GB","name":"Gilgit Baltistan"},{"code":"IS","name":"Islamabad Capital Territory"},{"code":"KP","name":"Khyber Pakhtunkhwa"},{"code":"PB","name":"Punjab"},{"code":"SD","name":"Sindh"}]},{"code":"PS","name":"Palestinian Territory","states":[]},{"code":"PA","name":"Panama","states":[{"code":"PA-1","name":"Bocas del Toro"},{"code":"PA-2","name":"Coclé"},{"code":"PA-3","name":"Colón"},{"code":"PA-4","name":"Chiriquí"},{"code":"PA-5","name":"Darién"},{"code":"PA-6","name":"Herrera"},{"code":"PA-7","name":"Los Santos"},{"code":"PA-8","name":"Panamá"},{"code":"PA-9","name":"Veraguas"},{"code":"PA-10","name":"West Panamá"},{"code":"PA-EM","name":"Emberá"},{"code":"PA-KY","name":"Guna Yala"},{"code":"PA-NB","name":"Ngöbe-Buglé"}]},{"code":"PG","name":"Papua New Guinea","states":[]},{"code":"PY","name":"Paraguay","states":[{"code":"PY-ASU","name":"Asunción"},{"code":"PY-1","name":"Concepción"},{"code":"PY-2","name":"San Pedro"},{"code":"PY-3","name":"Cordillera"},{"code":"PY-4","name":"Guairá"},{"code":"PY-5","name":"Caaguazú"},{"code":"PY-6","name":"Caazapá"},{"code":"PY-7","name":"Itapúa"},{"code":"PY-8","name":"Misiones"},{"code":"PY-9","name":"Paraguarí"},{"code":"PY-10","name":"Alto Paraná"},{"code":"PY-11","name":"Central"},{"code":"PY-12","name":"Ñeembucú"},{"code":"PY-13","name":"Amambay"},{"code":"PY-14","name":"Canindeyú"},{"code":"PY-15","name":"Presidente Hayes"},{"code":"PY-16","name":"Alto Paraguay"},{"code":"PY-17","name":"Boquerón"}]},{"code":"PE","name":"Peru","states":[{"code":"CAL","name":"El Callao"},{"code":"LMA","name":"Municipalidad Metropolitana de Lima"},{"code":"AMA","name":"Amazonas"},{"code":"ANC","name":"Ancash"},{"code":"APU","name":"Apurímac"},{"code":"ARE","name":"Arequipa"},{"code":"AYA","name":"Ayacucho"},{"code":"CAJ","name":"Cajamarca"},{"code":"CUS","name":"Cusco"},{"code":"HUV","name":"Huancavelica"},{"code":"HUC","name":"Huánuco"},{"code":"ICA","name":"Ica"},{"code":"JUN","name":"Junín"},{"code":"LAL","name":"La Libertad"},{"code":"LAM","name":"Lambayeque"},{"code":"LIM","name":"Lima"},{"code":"LOR","name":"Loreto"},{"code":"MDD","name":"Madre de Dios"},{"code":"MOQ","name":"Moquegua"},{"code":"PAS","name":"Pasco"},{"code":"PIU","name":"Piura"},{"code":"PUN","name":"Puno"},{"code":"SAM","name":"San Martín"},{"code":"TAC","name":"Tacna"},{"code":"TUM","name":"Tumbes"},{"code":"UCA","name":"Ucayali"}]},{"code":"PH","name":"Philippines","states":[{"code":"ABR","name":"Abra"},{"code":"AGN","name":"Agusan del Norte"},{"code":"AGS","name":"Agusan del Sur"},{"code":"AKL","name":"Aklan"},{"code":"ALB","name":"Albay"},{"code":"ANT","name":"Antique"},{"code":"APA","name":"Apayao"},{"code":"AUR","name":"Aurora"},{"code":"BAS","name":"Basilan"},{"code":"BAN","name":"Bataan"},{"code":"BTN","name":"Batanes"},{"code":"BTG","name":"Batangas"},{"code":"BEN","name":"Benguet"},{"code":"BIL","name":"Biliran"},{"code":"BOH","name":"Bohol"},{"code":"BUK","name":"Bukidnon"},{"code":"BUL","name":"Bulacan"},{"code":"CAG","name":"Cagayan"},{"code":"CAN","name":"Camarines Norte"},{"code":"CAS","name":"Camarines Sur"},{"code":"CAM","name":"Camiguin"},{"code":"CAP","name":"Capiz"},{"code":"CAT","name":"Catanduanes"},{"code":"CAV","name":"Cavite"},{"code":"CEB","name":"Cebu"},{"code":"COM","name":"Compostela Valley"},{"code":"NCO","name":"Cotabato"},{"code":"DAV","name":"Davao del Norte"},{"code":"DAS","name":"Davao del Sur"},{"code":"DAC","name":"Davao Occidental"},{"code":"DAO","name":"Davao Oriental"},{"code":"DIN","name":"Dinagat Islands"},{"code":"EAS","name":"Eastern Samar"},{"code":"GUI","name":"Guimaras"},{"code":"IFU","name":"Ifugao"},{"code":"ILN","name":"Ilocos Norte"},{"code":"ILS","name":"Ilocos Sur"},{"code":"ILI","name":"Iloilo"},{"code":"ISA","name":"Isabela"},{"code":"KAL","name":"Kalinga"},{"code":"LUN","name":"La Union"},{"code":"LAG","name":"Laguna"},{"code":"LAN","name":"Lanao del Norte"},{"code":"LAS","name":"Lanao del Sur"},{"code":"LEY","name":"Leyte"},{"code":"MAG","name":"Maguindanao"},{"code":"MAD","name":"Marinduque"},{"code":"MAS","name":"Masbate"},{"code":"MSC","name":"Misamis Occidental"},{"code":"MSR","name":"Misamis Oriental"},{"code":"MOU","name":"Mountain Province"},{"code":"NEC","name":"Negros Occidental"},{"code":"NER","name":"Negros Oriental"},{"code":"NSA","name":"Northern Samar"},{"code":"NUE","name":"Nueva Ecija"},{"code":"NUV","name":"Nueva Vizcaya"},{"code":"MDC","name":"Occidental Mindoro"},{"code":"MDR","name":"Oriental Mindoro"},{"code":"PLW","name":"Palawan"},{"code":"PAM","name":"Pampanga"},{"code":"PAN","name":"Pangasinan"},{"code":"QUE","name":"Quezon"},{"code":"QUI","name":"Quirino"},{"code":"RIZ","name":"Rizal"},{"code":"ROM","name":"Romblon"},{"code":"WSA","name":"Samar"},{"code":"SAR","name":"Sarangani"},{"code":"SIQ","name":"Siquijor"},{"code":"SOR","name":"Sorsogon"},{"code":"SCO","name":"South Cotabato"},{"code":"SLE","name":"Southern Leyte"},{"code":"SUK","name":"Sultan Kudarat"},{"code":"SLU","name":"Sulu"},{"code":"SUN","name":"Surigao del Norte"},{"code":"SUR","name":"Surigao del Sur"},{"code":"TAR","name":"Tarlac"},{"code":"TAW","name":"Tawi-Tawi"},{"code":"ZMB","name":"Zambales"},{"code":"ZAN","name":"Zamboanga del Norte"},{"code":"ZAS","name":"Zamboanga del Sur"},{"code":"ZSI","name":"Zamboanga Sibugay"},{"code":"00","name":"Metro Manila"}]},{"code":"PN","name":"Pitcairn","states":[]},{"code":"PL","name":"Poland","states":[]},{"code":"PT","name":"Portugal","states":[]},{"code":"PR","name":"Puerto Rico","states":[]},{"code":"QA","name":"Qatar","states":[]},{"code":"RE","name":"Reunion","states":[]},{"code":"RO","name":"Romania","states":[{"code":"AB","name":"Alba"},{"code":"AR","name":"Arad"},{"code":"AG","name":"Argeș"},{"code":"BC","name":"Bacău"},{"code":"BH","name":"Bihor"},{"code":"BN","name":"Bistrița-Năsăud"},{"code":"BT","name":"Botoșani"},{"code":"BR","name":"Brăila"},{"code":"BV","name":"Brașov"},{"code":"B","name":"București"},{"code":"BZ","name":"Buzău"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Caraș-Severin"},{"code":"CJ","name":"Cluj"},{"code":"CT","name":"Constanța"},{"code":"CV","name":"Covasna"},{"code":"DB","name":"Dâmbovița"},{"code":"DJ","name":"Dolj"},{"code":"GL","name":"Galați"},{"code":"GR","name":"Giurgiu"},{"code":"GJ","name":"Gorj"},{"code":"HR","name":"Harghita"},{"code":"HD","name":"Hunedoara"},{"code":"IL","name":"Ialomița"},{"code":"IS","name":"Iași"},{"code":"IF","name":"Ilfov"},{"code":"MM","name":"Maramureș"},{"code":"MH","name":"Mehedinți"},{"code":"MS","name":"Mureș"},{"code":"NT","name":"Neamț"},{"code":"OT","name":"Olt"},{"code":"PH","name":"Prahova"},{"code":"SJ","name":"Sălaj"},{"code":"SM","name":"Satu Mare"},{"code":"SB","name":"Sibiu"},{"code":"SV","name":"Suceava"},{"code":"TR","name":"Teleorman"},{"code":"TM","name":"Timiș"},{"code":"TL","name":"Tulcea"},{"code":"VL","name":"Vâlcea"},{"code":"VS","name":"Vaslui"},{"code":"VN","name":"Vrancea"}]},{"code":"RU","name":"Russia","states":[]},{"code":"RW","name":"Rwanda","states":[]},{"code":"BL","name":"Saint Barthélemy","states":[]},{"code":"SH","name":"Saint Helena","states":[]},{"code":"KN","name":"Saint Kitts and Nevis","states":[]},{"code":"LC","name":"Saint Lucia","states":[]},{"code":"SX","name":"Saint Martin (Dutch part)","states":[]},{"code":"MF","name":"Saint Martin (French part)","states":[]},{"code":"PM","name":"Saint Pierre and Miquelon","states":[]},{"code":"VC","name":"Saint Vincent and the Grenadines","states":[]},{"code":"WS","name":"Samoa","states":[]},{"code":"SM","name":"San Marino","states":[]},{"code":"ST","name":"São Tomé and Príncipe","states":[]},{"code":"SA","name":"Saudi Arabia","states":[]},{"code":"SN","name":"Senegal","states":[]},{"code":"SC","name":"Seychelles","states":[]},{"code":"SL","name":"Sierra Leone","states":[]},{"code":"SG","name":"Singapore","states":[]},{"code":"SK","name":"Slovakia","states":[]},{"code":"SI","name":"Slovenia","states":[]},{"code":"SB","name":"Solomon Islands","states":[]},{"code":"SO","name":"Somalia","states":[]},{"code":"ZA","name":"South Africa","states":[{"code":"EC","name":"Eastern Cape"},{"code":"FS","name":"Free State"},{"code":"GP","name":"Gauteng"},{"code":"KZN","name":"KwaZulu-Natal"},{"code":"LP","name":"Limpopo"},{"code":"MP","name":"Mpumalanga"},{"code":"NC","name":"Northern Cape"},{"code":"NW","name":"North West"},{"code":"WC","name":"Western Cape"}]},{"code":"GS","name":"South Georgia/Sandwich Islands","states":[]},{"code":"KR","name":"South Korea","states":[]},{"code":"ES","name":"Spain","states":[{"code":"C","name":"A Coruña"},{"code":"VI","name":"Araba/Álava"},{"code":"AB","name":"Albacete"},{"code":"A","name":"Alicante"},{"code":"AL","name":"Almería"},{"code":"O","name":"Asturias"},{"code":"AV","name":"Ávila"},{"code":"BA","name":"Badajoz"},{"code":"PM","name":"Baleares"},{"code":"B","name":"Barcelona"},{"code":"BU","name":"Burgos"},{"code":"CC","name":"Cáceres"},{"code":"CA","name":"Cádiz"},{"code":"S","name":"Cantabria"},{"code":"CS","name":"Castellón"},{"code":"CE","name":"Ceuta"},{"code":"CR","name":"Ciudad Real"},{"code":"CO","name":"Córdoba"},{"code":"CU","name":"Cuenca"},{"code":"GI","name":"Girona"},{"code":"GR","name":"Granada"},{"code":"GU","name":"Guadalajara"},{"code":"SS","name":"Gipuzkoa"},{"code":"H","name":"Huelva"},{"code":"HU","name":"Huesca"},{"code":"J","name":"Jaén"},{"code":"LO","name":"La Rioja"},{"code":"GC","name":"Las Palmas"},{"code":"LE","name":"León"},{"code":"L","name":"Lleida"},{"code":"LU","name":"Lugo"},{"code":"M","name":"Madrid"},{"code":"MA","name":"Málaga"},{"code":"ML","name":"Melilla"},{"code":"MU","name":"Murcia"},{"code":"NA","name":"Navarra"},{"code":"OR","name":"Ourense"},{"code":"P","name":"Palencia"},{"code":"PO","name":"Pontevedra"},{"code":"SA","name":"Salamanca"},{"code":"TF","name":"Santa Cruz de Tenerife"},{"code":"SG","name":"Segovia"},{"code":"SE","name":"Sevilla"},{"code":"SO","name":"Soria"},{"code":"T","name":"Tarragona"},{"code":"TE","name":"Teruel"},{"code":"TO","name":"Toledo"},{"code":"V","name":"Valencia"},{"code":"VA","name":"Valladolid"},{"code":"BI","name":"Biscay"},{"code":"ZA","name":"Zamora"},{"code":"Z","name":"Zaragoza"}]},{"code":"LK","name":"Sri Lanka","states":[]},{"code":"SR","name":"Suriname","states":[]},{"code":"SJ","name":"Svalbard and Jan Mayen","states":[]},{"code":"SE","name":"Sweden","states":[]},{"code":"CH","name":"Switzerland","states":[{"code":"AG","name":"Aargau"},{"code":"AR","name":"Appenzell Ausserrhoden"},{"code":"AI","name":"Appenzell Innerrhoden"},{"code":"BL","name":"Basel-Landschaft"},{"code":"BS","name":"Basel-Stadt"},{"code":"BE","name":"Bern"},{"code":"FR","name":"Fribourg"},{"code":"GE","name":"Geneva"},{"code":"GL","name":"Glarus"},{"code":"GR","name":"Graubünden"},{"code":"JU","name":"Jura"},{"code":"LU","name":"Luzern"},{"code":"NE","name":"Neuchâtel"},{"code":"NW","name":"Nidwalden"},{"code":"OW","name":"Obwalden"},{"code":"SH","name":"Schaffhausen"},{"code":"SZ","name":"Schwyz"},{"code":"SO","name":"Solothurn"},{"code":"SG","name":"St. Gallen"},{"code":"TG","name":"Thurgau"},{"code":"TI","name":"Ticino"},{"code":"UR","name":"Uri"},{"code":"VS","name":"Valais"},{"code":"VD","name":"Vaud"},{"code":"ZG","name":"Zug"},{"code":"ZH","name":"Zürich"}]},{"code":"SY","name":"Syria","states":[]},{"code":"TW","name":"Taiwan","states":[]},{"code":"TJ","name":"Tajikistan","states":[]},{"code":"TZ","name":"Tanzania","states":[{"code":"TZ01","name":"Arusha"},{"code":"TZ02","name":"Dar es Salaam"},{"code":"TZ03","name":"Dodoma"},{"code":"TZ04","name":"Iringa"},{"code":"TZ05","name":"Kagera"},{"code":"TZ06","name":"Pemba North"},{"code":"TZ07","name":"Zanzibar North"},{"code":"TZ08","name":"Kigoma"},{"code":"TZ09","name":"Kilimanjaro"},{"code":"TZ10","name":"Pemba South"},{"code":"TZ11","name":"Zanzibar South"},{"code":"TZ12","name":"Lindi"},{"code":"TZ13","name":"Mara"},{"code":"TZ14","name":"Mbeya"},{"code":"TZ15","name":"Zanzibar West"},{"code":"TZ16","name":"Morogoro"},{"code":"TZ17","name":"Mtwara"},{"code":"TZ18","name":"Mwanza"},{"code":"TZ19","name":"Coast"},{"code":"TZ20","name":"Rukwa"},{"code":"TZ21","name":"Ruvuma"},{"code":"TZ22","name":"Shinyanga"},{"code":"TZ23","name":"Singida"},{"code":"TZ24","name":"Tabora"},{"code":"TZ25","name":"Tanga"},{"code":"TZ26","name":"Manyara"},{"code":"TZ27","name":"Geita"},{"code":"TZ28","name":"Katavi"},{"code":"TZ29","name":"Njombe"},{"code":"TZ30","name":"Simiyu"}]},{"code":"TH","name":"Thailand","states":[{"code":"TH-37","name":"Amnat Charoen"},{"code":"TH-15","name":"Ang Thong"},{"code":"TH-14","name":"Ayutthaya"},{"code":"TH-10","name":"Bangkok"},{"code":"TH-38","name":"Bueng Kan"},{"code":"TH-31","name":"Buri Ram"},{"code":"TH-24","name":"Chachoengsao"},{"code":"TH-18","name":"Chai Nat"},{"code":"TH-36","name":"Chaiyaphum"},{"code":"TH-22","name":"Chanthaburi"},{"code":"TH-50","name":"Chiang Mai"},{"code":"TH-57","name":"Chiang Rai"},{"code":"TH-20","name":"Chonburi"},{"code":"TH-86","name":"Chumphon"},{"code":"TH-46","name":"Kalasin"},{"code":"TH-62","name":"Kamphaeng Phet"},{"code":"TH-71","name":"Kanchanaburi"},{"code":"TH-40","name":"Khon Kaen"},{"code":"TH-81","name":"Krabi"},{"code":"TH-52","name":"Lampang"},{"code":"TH-51","name":"Lamphun"},{"code":"TH-42","name":"Loei"},{"code":"TH-16","name":"Lopburi"},{"code":"TH-58","name":"Mae Hong Son"},{"code":"TH-44","name":"Maha Sarakham"},{"code":"TH-49","name":"Mukdahan"},{"code":"TH-26","name":"Nakhon Nayok"},{"code":"TH-73","name":"Nakhon Pathom"},{"code":"TH-48","name":"Nakhon Phanom"},{"code":"TH-30","name":"Nakhon Ratchasima"},{"code":"TH-60","name":"Nakhon Sawan"},{"code":"TH-80","name":"Nakhon Si Thammarat"},{"code":"TH-55","name":"Nan"},{"code":"TH-96","name":"Narathiwat"},{"code":"TH-39","name":"Nong Bua Lam Phu"},{"code":"TH-43","name":"Nong Khai"},{"code":"TH-12","name":"Nonthaburi"},{"code":"TH-13","name":"Pathum Thani"},{"code":"TH-94","name":"Pattani"},{"code":"TH-82","name":"Phang Nga"},{"code":"TH-93","name":"Phatthalung"},{"code":"TH-56","name":"Phayao"},{"code":"TH-67","name":"Phetchabun"},{"code":"TH-76","name":"Phetchaburi"},{"code":"TH-66","name":"Phichit"},{"code":"TH-65","name":"Phitsanulok"},{"code":"TH-54","name":"Phrae"},{"code":"TH-83","name":"Phuket"},{"code":"TH-25","name":"Prachin Buri"},{"code":"TH-77","name":"Prachuap Khiri Khan"},{"code":"TH-85","name":"Ranong"},{"code":"TH-70","name":"Ratchaburi"},{"code":"TH-21","name":"Rayong"},{"code":"TH-45","name":"Roi Et"},{"code":"TH-27","name":"Sa Kaeo"},{"code":"TH-47","name":"Sakon Nakhon"},{"code":"TH-11","name":"Samut Prakan"},{"code":"TH-74","name":"Samut Sakhon"},{"code":"TH-75","name":"Samut Songkhram"},{"code":"TH-19","name":"Saraburi"},{"code":"TH-91","name":"Satun"},{"code":"TH-17","name":"Sing Buri"},{"code":"TH-33","name":"Sisaket"},{"code":"TH-90","name":"Songkhla"},{"code":"TH-64","name":"Sukhothai"},{"code":"TH-72","name":"Suphan Buri"},{"code":"TH-84","name":"Surat Thani"},{"code":"TH-32","name":"Surin"},{"code":"TH-63","name":"Tak"},{"code":"TH-92","name":"Trang"},{"code":"TH-23","name":"Trat"},{"code":"TH-34","name":"Ubon Ratchathani"},{"code":"TH-41","name":"Udon Thani"},{"code":"TH-61","name":"Uthai Thani"},{"code":"TH-53","name":"Uttaradit"},{"code":"TH-95","name":"Yala"},{"code":"TH-35","name":"Yasothon"}]},{"code":"TL","name":"Timor-Leste","states":[]},{"code":"TG","name":"Togo","states":[]},{"code":"TK","name":"Tokelau","states":[]},{"code":"TO","name":"Tonga","states":[]},{"code":"TT","name":"Trinidad and Tobago","states":[]},{"code":"TN","name":"Tunisia","states":[]},{"code":"TR","name":"Turkey","states":[{"code":"TR01","name":"Adana"},{"code":"TR02","name":"Adıyaman"},{"code":"TR03","name":"Afyon"},{"code":"TR04","name":"Ağrı"},{"code":"TR05","name":"Amasya"},{"code":"TR06","name":"Ankara"},{"code":"TR07","name":"Antalya"},{"code":"TR08","name":"Artvin"},{"code":"TR09","name":"Aydın"},{"code":"TR10","name":"Balıkesir"},{"code":"TR11","name":"Bilecik"},{"code":"TR12","name":"Bingöl"},{"code":"TR13","name":"Bitlis"},{"code":"TR14","name":"Bolu"},{"code":"TR15","name":"Burdur"},{"code":"TR16","name":"Bursa"},{"code":"TR17","name":"Çanakkale"},{"code":"TR18","name":"Çankırı"},{"code":"TR19","name":"Çorum"},{"code":"TR20","name":"Denizli"},{"code":"TR21","name":"Diyarbakır"},{"code":"TR22","name":"Edirne"},{"code":"TR23","name":"Elazığ"},{"code":"TR24","name":"Erzincan"},{"code":"TR25","name":"Erzurum"},{"code":"TR26","name":"Eskişehir"},{"code":"TR27","name":"Gaziantep"},{"code":"TR28","name":"Giresun"},{"code":"TR29","name":"Gümüşhane"},{"code":"TR30","name":"Hakkari"},{"code":"TR31","name":"Hatay"},{"code":"TR32","name":"Isparta"},{"code":"TR33","name":"İçel"},{"code":"TR34","name":"İstanbul"},{"code":"TR35","name":"İzmir"},{"code":"TR36","name":"Kars"},{"code":"TR37","name":"Kastamonu"},{"code":"TR38","name":"Kayseri"},{"code":"TR39","name":"Kırklareli"},{"code":"TR40","name":"Kırşehir"},{"code":"TR41","name":"Kocaeli"},{"code":"TR42","name":"Konya"},{"code":"TR43","name":"Kütahya"},{"code":"TR44","name":"Malatya"},{"code":"TR45","name":"Manisa"},{"code":"TR46","name":"Kahramanmaraş"},{"code":"TR47","name":"Mardin"},{"code":"TR48","name":"Muğla"},{"code":"TR49","name":"Muş"},{"code":"TR50","name":"Nevşehir"},{"code":"TR51","name":"Niğde"},{"code":"TR52","name":"Ordu"},{"code":"TR53","name":"Rize"},{"code":"TR54","name":"Sakarya"},{"code":"TR55","name":"Samsun"},{"code":"TR56","name":"Siirt"},{"code":"TR57","name":"Sinop"},{"code":"TR58","name":"Sivas"},{"code":"TR59","name":"Tekirdağ"},{"code":"TR60","name":"Tokat"},{"code":"TR61","name":"Trabzon"},{"code":"TR62","name":"Tunceli"},{"code":"TR63","name":"Şanlıurfa"},{"code":"TR64","name":"Uşak"},{"code":"TR65","name":"Van"},{"code":"TR66","name":"Yozgat"},{"code":"TR67","name":"Zonguldak"},{"code":"TR68","name":"Aksaray"},{"code":"TR69","name":"Bayburt"},{"code":"TR70","name":"Karaman"},{"code":"TR71","name":"Kırıkkale"},{"code":"TR72","name":"Batman"},{"code":"TR73","name":"Şırnak"},{"code":"TR74","name":"Bartın"},{"code":"TR75","name":"Ardahan"},{"code":"TR76","name":"Iğdır"},{"code":"TR77","name":"Yalova"},{"code":"TR78","name":"Karabük"},{"code":"TR79","name":"Kilis"},{"code":"TR80","name":"Osmaniye"},{"code":"TR81","name":"Düzce"}]},{"code":"TM","name":"Turkmenistan","states":[]},{"code":"TC","name":"Turks and Caicos Islands","states":[]},{"code":"TV","name":"Tuvalu","states":[]},{"code":"UG","name":"Uganda","states":[{"code":"UG314","name":"Abim"},{"code":"UG301","name":"Adjumani"},{"code":"UG322","name":"Agago"},{"code":"UG323","name":"Alebtong"},{"code":"UG315","name":"Amolatar"},{"code":"UG324","name":"Amudat"},{"code":"UG216","name":"Amuria"},{"code":"UG316","name":"Amuru"},{"code":"UG302","name":"Apac"},{"code":"UG303","name":"Arua"},{"code":"UG217","name":"Budaka"},{"code":"UG218","name":"Bududa"},{"code":"UG201","name":"Bugiri"},{"code":"UG235","name":"Bugweri"},{"code":"UG420","name":"Buhweju"},{"code":"UG117","name":"Buikwe"},{"code":"UG219","name":"Bukedea"},{"code":"UG118","name":"Bukomansimbi"},{"code":"UG220","name":"Bukwa"},{"code":"UG225","name":"Bulambuli"},{"code":"UG416","name":"Buliisa"},{"code":"UG401","name":"Bundibugyo"},{"code":"UG430","name":"Bunyangabu"},{"code":"UG402","name":"Bushenyi"},{"code":"UG202","name":"Busia"},{"code":"UG221","name":"Butaleja"},{"code":"UG119","name":"Butambala"},{"code":"UG233","name":"Butebo"},{"code":"UG120","name":"Buvuma"},{"code":"UG226","name":"Buyende"},{"code":"UG317","name":"Dokolo"},{"code":"UG121","name":"Gomba"},{"code":"UG304","name":"Gulu"},{"code":"UG403","name":"Hoima"},{"code":"UG417","name":"Ibanda"},{"code":"UG203","name":"Iganga"},{"code":"UG418","name":"Isingiro"},{"code":"UG204","name":"Jinja"},{"code":"UG318","name":"Kaabong"},{"code":"UG404","name":"Kabale"},{"code":"UG405","name":"Kabarole"},{"code":"UG213","name":"Kaberamaido"},{"code":"UG427","name":"Kagadi"},{"code":"UG428","name":"Kakumiro"},{"code":"UG101","name":"Kalangala"},{"code":"UG222","name":"Kaliro"},{"code":"UG122","name":"Kalungu"},{"code":"UG102","name":"Kampala"},{"code":"UG205","name":"Kamuli"},{"code":"UG413","name":"Kamwenge"},{"code":"UG414","name":"Kanungu"},{"code":"UG206","name":"Kapchorwa"},{"code":"UG236","name":"Kapelebyong"},{"code":"UG126","name":"Kasanda"},{"code":"UG406","name":"Kasese"},{"code":"UG207","name":"Katakwi"},{"code":"UG112","name":"Kayunga"},{"code":"UG407","name":"Kibaale"},{"code":"UG103","name":"Kiboga"},{"code":"UG227","name":"Kibuku"},{"code":"UG432","name":"Kikuube"},{"code":"UG419","name":"Kiruhura"},{"code":"UG421","name":"Kiryandongo"},{"code":"UG408","name":"Kisoro"},{"code":"UG305","name":"Kitgum"},{"code":"UG319","name":"Koboko"},{"code":"UG325","name":"Kole"},{"code":"UG306","name":"Kotido"},{"code":"UG208","name":"Kumi"},{"code":"UG333","name":"Kwania"},{"code":"UG228","name":"Kween"},{"code":"UG123","name":"Kyankwanzi"},{"code":"UG422","name":"Kyegegwa"},{"code":"UG415","name":"Kyenjojo"},{"code":"UG125","name":"Kyotera"},{"code":"UG326","name":"Lamwo"},{"code":"UG307","name":"Lira"},{"code":"UG229","name":"Luuka"},{"code":"UG104","name":"Luwero"},{"code":"UG124","name":"Lwengo"},{"code":"UG114","name":"Lyantonde"},{"code":"UG223","name":"Manafwa"},{"code":"UG320","name":"Maracha"},{"code":"UG105","name":"Masaka"},{"code":"UG409","name":"Masindi"},{"code":"UG214","name":"Mayuge"},{"code":"UG209","name":"Mbale"},{"code":"UG410","name":"Mbarara"},{"code":"UG423","name":"Mitooma"},{"code":"UG115","name":"Mityana"},{"code":"UG308","name":"Moroto"},{"code":"UG309","name":"Moyo"},{"code":"UG106","name":"Mpigi"},{"code":"UG107","name":"Mubende"},{"code":"UG108","name":"Mukono"},{"code":"UG334","name":"Nabilatuk"},{"code":"UG311","name":"Nakapiripirit"},{"code":"UG116","name":"Nakaseke"},{"code":"UG109","name":"Nakasongola"},{"code":"UG230","name":"Namayingo"},{"code":"UG234","name":"Namisindwa"},{"code":"UG224","name":"Namutumba"},{"code":"UG327","name":"Napak"},{"code":"UG310","name":"Nebbi"},{"code":"UG231","name":"Ngora"},{"code":"UG424","name":"Ntoroko"},{"code":"UG411","name":"Ntungamo"},{"code":"UG328","name":"Nwoya"},{"code":"UG331","name":"Omoro"},{"code":"UG329","name":"Otuke"},{"code":"UG321","name":"Oyam"},{"code":"UG312","name":"Pader"},{"code":"UG332","name":"Pakwach"},{"code":"UG210","name":"Pallisa"},{"code":"UG110","name":"Rakai"},{"code":"UG429","name":"Rubanda"},{"code":"UG425","name":"Rubirizi"},{"code":"UG431","name":"Rukiga"},{"code":"UG412","name":"Rukungiri"},{"code":"UG111","name":"Sembabule"},{"code":"UG232","name":"Serere"},{"code":"UG426","name":"Sheema"},{"code":"UG215","name":"Sironko"},{"code":"UG211","name":"Soroti"},{"code":"UG212","name":"Tororo"},{"code":"UG113","name":"Wakiso"},{"code":"UG313","name":"Yumbe"},{"code":"UG330","name":"Zombo"}]},{"code":"UA","name":"Ukraine","states":[{"code":"VN","name":"Vinnytsia Oblast"},{"code":"VL","name":"Volyn Oblast"},{"code":"DP","name":"Dnipropetrovsk Oblast"},{"code":"DT","name":"Donetsk Oblast"},{"code":"ZT","name":"Zhytomyr Oblast"},{"code":"ZK","name":"Zakarpattia Oblast"},{"code":"ZP","name":"Zaporizhzhia Oblast"},{"code":"IF","name":"Ivano-Frankivsk Oblast"},{"code":"KV","name":"Kyiv Oblast"},{"code":"KH","name":"Kirovohrad Oblast"},{"code":"LH","name":"Luhansk Oblast"},{"code":"LV","name":"Lviv Oblast"},{"code":"MY","name":"Mykolaiv Oblast"},{"code":"OD","name":"Odessa Oblast"},{"code":"PL","name":"Poltava Oblast"},{"code":"RV","name":"Rivne Oblast"},{"code":"SM","name":"Sumy Oblast"},{"code":"TP","name":"Ternopil Oblast"},{"code":"KK","name":"Kharkiv Oblast"},{"code":"KS","name":"Kherson Oblast"},{"code":"KM","name":"Khmelnytskyi Oblast"},{"code":"CK","name":"Cherkasy Oblast"},{"code":"CH","name":"Chernihiv Oblast"},{"code":"CV","name":"Chernivtsi Oblast"}]},{"code":"AE","name":"United Arab Emirates","states":[]},{"code":"GB","name":"United Kingdom (UK)","states":[]},{"code":"US","name":"United States (US)","states":[{"code":"AL","name":"Alabama"},{"code":"AK","name":"Alaska"},{"code":"AZ","name":"Arizona"},{"code":"AR","name":"Arkansas"},{"code":"CA","name":"California"},{"code":"CO","name":"Colorado"},{"code":"CT","name":"Connecticut"},{"code":"DE","name":"Delaware"},{"code":"DC","name":"District Of Columbia"},{"code":"FL","name":"Florida"},{"code":"GA","name":"Georgia"},{"code":"HI","name":"Hawaii"},{"code":"ID","name":"Idaho"},{"code":"IL","name":"Illinois"},{"code":"IN","name":"Indiana"},{"code":"IA","name":"Iowa"},{"code":"KS","name":"Kansas"},{"code":"KY","name":"Kentucky"},{"code":"LA","name":"Louisiana"},{"code":"ME","name":"Maine"},{"code":"MD","name":"Maryland"},{"code":"MA","name":"Massachusetts"},{"code":"MI","name":"Michigan"},{"code":"MN","name":"Minnesota"},{"code":"MS","name":"Mississippi"},{"code":"MO","name":"Missouri"},{"code":"MT","name":"Montana"},{"code":"NE","name":"Nebraska"},{"code":"NV","name":"Nevada"},{"code":"NH","name":"New Hampshire"},{"code":"NJ","name":"New Jersey"},{"code":"NM","name":"New Mexico"},{"code":"NY","name":"New York"},{"code":"NC","name":"North Carolina"},{"code":"ND","name":"North Dakota"},{"code":"OH","name":"Ohio"},{"code":"OK","name":"Oklahoma"},{"code":"OR","name":"Oregon"},{"code":"PA","name":"Pennsylvania"},{"code":"RI","name":"Rhode Island"},{"code":"SC","name":"South Carolina"},{"code":"SD","name":"South Dakota"},{"code":"TN","name":"Tennessee"},{"code":"TX","name":"Texas"},{"code":"UT","name":"Utah"},{"code":"VT","name":"Vermont"},{"code":"VA","name":"Virginia"},{"code":"WA","name":"Washington"},{"code":"WV","name":"West Virginia"},{"code":"WI","name":"Wisconsin"},{"code":"WY","name":"Wyoming"},{"code":"AA","name":"Armed Forces (AA)"},{"code":"AE","name":"Armed Forces (AE)"},{"code":"AP","name":"Armed Forces (AP)"}]},{"code":"UM","name":"United States (US) Minor Outlying Islands","states":[{"code":81,"name":"Baker Island"},{"code":84,"name":"Howland Island"},{"code":86,"name":"Jarvis Island"},{"code":67,"name":"Johnston Atoll"},{"code":89,"name":"Kingman Reef"},{"code":71,"name":"Midway Atoll"},{"code":76,"name":"Navassa Island"},{"code":95,"name":"Palmyra Atoll"},{"code":79,"name":"Wake Island"}]},{"code":"UY","name":"Uruguay","states":[{"code":"UY-AR","name":"Artigas"},{"code":"UY-CA","name":"Canelones"},{"code":"UY-CL","name":"Cerro Largo"},{"code":"UY-CO","name":"Colonia"},{"code":"UY-DU","name":"Durazno"},{"code":"UY-FS","name":"Flores"},{"code":"UY-FD","name":"Florida"},{"code":"UY-LA","name":"Lavalleja"},{"code":"UY-MA","name":"Maldonado"},{"code":"UY-MO","name":"Montevideo"},{"code":"UY-PA","name":"Paysandú"},{"code":"UY-RN","name":"Río Negro"},{"code":"UY-RV","name":"Rivera"},{"code":"UY-RO","name":"Rocha"},{"code":"UY-SA","name":"Salto"},{"code":"UY-SJ","name":"San José"},{"code":"UY-SO","name":"Soriano"},{"code":"UY-TA","name":"Tacuarembó"},{"code":"UY-TT","name":"Treinta y Tres"}]},{"code":"UZ","name":"Uzbekistan","states":[]},{"code":"VU","name":"Vanuatu","states":[]},{"code":"VA","name":"Vatican","states":[]},{"code":"VN","name":"Vietnam","states":[]},{"code":"VG","name":"Virgin Islands (British)","states":[]},{"code":"VI","name":"Virgin Islands (US)","states":[]},{"code":"WF","name":"Wallis and Futuna","states":[]},{"code":"EH","name":"Western Sahara","states":[]},{"code":"ZM","name":"Zambia","states":[{"code":"ZM-01","name":"Western"},{"code":"ZM-02","name":"Central"},{"code":"ZM-03","name":"Eastern"},{"code":"ZM-04","name":"Luapula"},{"code":"ZM-05","name":"Northern"},{"code":"ZM-06","name":"North-Western"},{"code":"ZM-07","name":"Southern"},{"code":"ZM-08","name":"Copperbelt"},{"code":"ZM-09","name":"Lusaka"},{"code":"ZM-10","name":"Muchinga"}]}]'),C=JSON.parse('{"AED":"United Arab Emirates dirham (AED) (د.إ)","AFN":"Afghan afghani (AFN) (؋)","ALL":"Albanian lek (ALL) (L)","AMD":"Armenian dram (AMD) (AMD)","ANG":"Netherlands Antillean guilder (ANG) (ƒ)","AOA":"Angolan kwanza (AOA) (Kz)","ARS":"Argentine peso (ARS) ($)","AUD":"Australian dollar (AUD) ($)","AWG":"Aruban florin (AWG) (Afl.)","AZN":"Azerbaijani manat (AZN) (AZN)","BAM":"Bosnia and Herzegovina convertible mark (BAM) (KM)","BBD":"Barbadian dollar (BBD) ($)","BDT":"Bangladeshi taka (BDT) (৳ )","BGN":"Bulgarian lev (BGN) (лв.)","BHD":"Bahraini dinar (BHD) (.د.ب)","BIF":"Burundian franc (BIF) (Fr)","BMD":"Bermudian dollar (BMD) ($)","BND":"Brunei dollar (BND) ($)","BOB":"Bolivian boliviano (BOB) (Bs.)","BRL":"Brazilian real (BRL) (R$)","BSD":"Bahamian dollar (BSD) ($)","BTC":"Bitcoin (BTC) (฿)","BTN":"Bhutanese ngultrum (BTN) (Nu.)","BWP":"Botswana pula (BWP) (P)","BYR":"Belarusian ruble (old) (BYR) (Br)","BYN":"Belarusian ruble (BYN) (Br)","BZD":"Belize dollar (BZD) ($)","CAD":"Canadian dollar (CAD) ($)","CDF":"Congolese franc (CDF) (Fr)","CHF":"Swiss franc (CHF) (CHF)","CLP":"Chilean peso (CLP) ($)","CNY":"Chinese yuan (CNY) (¥)","COP":"Colombian peso (COP) ($)","CRC":"Costa Rican colón (CRC) (₡)","CUC":"Cuban convertible peso (CUC) ($)","CUP":"Cuban peso (CUP) ($)","CVE":"Cape Verdean escudo (CVE) ($)","CZK":"Czech koruna (CZK) (Kč)","DJF":"Djiboutian franc (DJF) (Fr)","DKK":"Danish krone (DKK) (kr.)","DOP":"Dominican peso (DOP) (RD$)","DZD":"Algerian dinar (DZD) (د.ج)","EGP":"Egyptian pound (EGP) (EGP)","ERN":"Eritrean nakfa (ERN) (Nfk)","ETB":"Ethiopian birr (ETB) (Br)","EUR":"Euro (EUR) (€)","FJD":"Fijian dollar (FJD) ($)","FKP":"Falkland Islands pound (FKP) (£)","GBP":"Pound sterling (GBP) (£)","GEL":"Georgian lari (GEL) (₾)","GGP":"Guernsey pound (GGP) (£)","GHS":"Ghana cedi (GHS) (₵)","GIP":"Gibraltar pound (GIP) (£)","GMD":"Gambian dalasi (GMD) (D)","GNF":"Guinean franc (GNF) (Fr)","GTQ":"Guatemalan quetzal (GTQ) (Q)","GYD":"Guyanese dollar (GYD) ($)","HKD":"Hong Kong dollar (HKD) ($)","HNL":"Honduran lempira (HNL) (L)","HRK":"Croatian kuna (HRK) (kn)","HTG":"Haitian gourde (HTG) (G)","HUF":"Hungarian forint (HUF) (Ft)","IDR":"Indonesian rupiah (IDR) (Rp)","ILS":"Israeli new shekel (ILS) (₪)","IMP":"Manx pound (IMP) (£)","INR":"Indian rupee (INR) (₹)","IQD":"Iraqi dinar (IQD) (د.ع)","IRR":"Iranian rial (IRR) (﷼)","IRT":"Iranian toman (IRT) (تومان)","ISK":"Icelandic króna (ISK) (kr.)","JEP":"Jersey pound (JEP) (£)","JMD":"Jamaican dollar (JMD) ($)","JOD":"Jordanian dinar (JOD) (د.ا)","JPY":"Japanese yen (JPY) (¥)","KES":"Kenyan shilling (KES) (KSh)","KGS":"Kyrgyzstani som (KGS) (сом)","KHR":"Cambodian riel (KHR) (៛)","KMF":"Comorian franc (KMF) (Fr)","KPW":"North Korean won (KPW) (₩)","KRW":"South Korean won (KRW) (₩)","KWD":"Kuwaiti dinar (KWD) (د.ك)","KYD":"Cayman Islands dollar (KYD) ($)","KZT":"Kazakhstani tenge (KZT) (₸)","LAK":"Lao kip (LAK) (₭)","LBP":"Lebanese pound (LBP) (ل.ل)","LKR":"Sri Lankan rupee (LKR) (රු)","LRD":"Liberian dollar (LRD) ($)","LSL":"Lesotho loti (LSL) (L)","LYD":"Libyan dinar (LYD) (ل.د)","MAD":"Moroccan dirham (MAD) (د.م.)","MDL":"Moldovan leu (MDL) (MDL)","MGA":"Malagasy ariary (MGA) (Ar)","MKD":"Macedonian denar (MKD) (ден)","MMK":"Burmese kyat (MMK) (Ks)","MNT":"Mongolian tögrög (MNT) (₮)","MOP":"Macanese pataca (MOP) (P)","MRU":"Mauritanian ouguiya (MRU) (UM)","MUR":"Mauritian rupee (MUR) (₨)","MVR":"Maldivian rufiyaa (MVR) (.ރ)","MWK":"Malawian kwacha (MWK) (MK)","MXN":"Mexican peso (MXN) ($)","MYR":"Malaysian ringgit (MYR) (RM)","MZN":"Mozambican metical (MZN) (MT)","NAD":"Namibian dollar (NAD) (N$)","NGN":"Nigerian naira (NGN) (₦)","NIO":"Nicaraguan córdoba (NIO) (C$)","NOK":"Norwegian krone (NOK) (kr)","NPR":"Nepalese rupee (NPR) (₨)","NZD":"New Zealand dollar (NZD) ($)","OMR":"Omani rial (OMR) (ر.ع.)","PAB":"Panamanian balboa (PAB) (B/.)","PEN":"Sol (PEN) (S/)","PGK":"Papua New Guinean kina (PGK) (K)","PHP":"Philippine peso (PHP) (₱)","PKR":"Pakistani rupee (PKR) (₨)","PLN":"Polish złoty (PLN) (zł)","PRB":"Transnistrian ruble (PRB) (р.)","PYG":"Paraguayan guaraní (PYG) (₲)","QAR":"Qatari riyal (QAR) (ر.ق)","RON":"Romanian leu (RON) (lei)","RSD":"Serbian dinar (RSD) (рсд)","RUB":"Russian ruble (RUB) (₽)","RWF":"Rwandan franc (RWF) (Fr)","SAR":"Saudi riyal (SAR) (ر.س)","SBD":"Solomon Islands dollar (SBD) ($)","SCR":"Seychellois rupee (SCR) (₨)","SDG":"Sudanese pound (SDG) (ج.س.)","SEK":"Swedish krona (SEK) (kr)","SGD":"Singapore dollar (SGD) ($)","SHP":"Saint Helena pound (SHP) (£)","SLL":"Sierra Leonean leone (SLL) (Le)","SOS":"Somali shilling (SOS) (Sh)","SRD":"Surinamese dollar (SRD) ($)","SSP":"South Sudanese pound (SSP) (£)","STN":"São Tomé and Príncipe dobra (STN) (Db)","SYP":"Syrian pound (SYP) (ل.س)","SZL":"Swazi lilangeni (SZL) (E)","THB":"Thai baht (THB) (฿)","TJS":"Tajikistani somoni (TJS) (ЅМ)","TMT":"Turkmenistan manat (TMT) (m)","TND":"Tunisian dinar (TND) (د.ت)","TOP":"Tongan paʻanga (TOP) (T$)","TRY":"Turkish lira (TRY) (₺)","TTD":"Trinidad and Tobago dollar (TTD) ($)","TWD":"New Taiwan dollar (TWD) (NT$)","TZS":"Tanzanian shilling (TZS) (Sh)","UAH":"Ukrainian hryvnia (UAH) (₴)","UGX":"Ugandan shilling (UGX) (UGX)","USD":"United States (US) dollar (USD) ($)","UYU":"Uruguayan peso (UYU) ($)","UZS":"Uzbekistani som (UZS) (UZS)","VEF":"Venezuelan bolívar (VEF) (Bs F)","VES":"Bolívar soberano (VES) (Bs.S)","VND":"Vietnamese đồng (VND) (₫)","VUV":"Vanuatu vatu (VUV) (Vt)","WST":"Samoan tālā (WST) (T)","XAF":"Central African CFA franc (XAF) (CFA)","XCD":"East Caribbean dollar (XCD) ($)","XOF":"West African CFA franc (XOF) (CFA)","XPF":"CFP franc (XPF) (Fr)","YER":"Yemeni rial (YER) (﷼)","ZAR":"South African rand (ZAR) (R)","ZMW":"Zambian kwacha (ZMW) (ZK)"}');var T=n(5171),A=n(431),B=n(7723);var h=n(1852);const N=()=>{var e,a,n;const[N,M]=(0,m.useState)(),g=(0,d.useViewportMatch)("medium"),{setDrawerActiveView:G,setIsDrawerOpened:D,setIsDrawerSuppressed:P,setSidebarActiveView:R,setCurrentOnboardingData:b,setIsHeaderNavigationEnabled:E}=(0,c.useDispatch)(u.M);(0,m.useEffect)((()=>{g&&D(!0),P(!1),E(!0),R(t.Qe),G(t.eY),(async()=>{const e=await async function(){return await(0,T.JK)().catch((()=>({})))}();M(e)})()}),[]);const{currentData:K,newfoldBrand:L}=(0,c.useSelect)((e=>({currentData:e(u.M).getCurrentOnboardingData(),newfoldBrand:e(u.M).getNewfoldBrand()})),[]);(0,m.useEffect)((()=>{if(N){const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode","woocommerce_default_country","woocommerce_currency","woocommerce_email_from_address"],n=["woocommerce_default_country","woocommerce_currency"];if(null!==N&&void 0===K.storeDetails.address){var e;const o=(e=>{const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode"].every((a=>null===e[a]||""===e[a])),n=[["woocommerce_default_country","US:CA"],["woocommerce_currency","USD"]].every((([a,n])=>e[a]===n));return a&&n})(N),d={...N},c=(e=>{switch(e){case"crazy-domains":return{woocommerce_default_country:"AU:NSW",woocommerce_currency:"AUD"};case"bluehost-india":return{woocommerce_default_country:"IN:AP",woocommerce_currency:"INR"};case"hostgator-br":return{woocommerce_default_country:"BR:AC",woocommerce_currency:"BRL"};default:return{woocommerce_default_country:"US:AZ",woocommerce_currency:"USD"}}})(L);for(const e of n)(null===d[e]||""===d[e]||o)&&(d[e]=c[e]);b({...K,storeDetails:{...K.storeDetails,address:{...null!==(e=K.storeDetails.address)&&void 0!==e?e:{},...a.reduce(((e,a)=>({...e,[a]:d[a]})),{})}}})}}}),[N,K.storeDetails,L]);const{address:O}=K.storeDetails,U={disabled:void 0===O,onChange:Z,onBlur:Z},p=null!==(e=O?.woocommerce_default_country)&&void 0!==e?e:"",[y,H]=p.split(":"),I=null!==(a=O?.country)&&void 0!==a?a:y,k=null!==(n=S?.find((e=>e.code===I))?.states)&&void 0!==n?n:[];function Z(e){const a=e.target.name,n=e.target.value;let{country:o=I,state:d}=O;o===y&&void 0===d&&(d=H),0===k.length&&(d="");let c="";["country","state"].includes(a)&&(c="country"===a?d?`${n}:${d}`:n:`${o}:${n}`),b({...K,storeDetails:{...K.storeDetails,address:{...K.storeDetails.address,[a]:n,...""!==c&&{woocommerce_default_country:c}}}})}const w={heading:(0,B.__)("Confirm your business or store address","wp-module-onboarding"),subheading:(0,B.__)("We’ll use this information to help you setup your online store","wp-module-onboarding"),countryInputLabel:(0,B.__)("Where is your store based?","wp-module-onboarding"),addressInputLabel:(0,B.__)("Address","wp-module-onboarding"),cityInputLabel:(0,B.__)("City","wp-module-onboarding"),stateInputLabel:(0,B.__)("State","wp-module-onboarding"),postalCodeInputLabel:(0,B.__)("Postal Code","wp-module-onboarding"),emailInputLabel:(0,B.__)("Email","wp-module-onboarding"),currencyInputLabel:(0,B.__)("What currency do you want to display in your store?","wp-module-onboarding"),requiredText:(0,B.__)("* required","wp-module-onboarding"),buttonText:(0,B.__)("Continue Setup","wp-module-onboarding")};return(0,o.createElement)(i.A,{isBgPrimary:!0,isCentered:!0},(0,o.createElement)(l.A,{className:"ecommerce-step nfd-ecommerce-address-step"},(0,o.createElement)("div",{className:"onboarding-ecommerce-step"},(0,o.createElement)("form",{className:"onboarding-ecommerce-step",style:{display:"grid",justifyItems:"center"}},(0,o.createElement)("div",{className:"nfd-card-heading center onboarding-ecommerce-step"},(0,o.createElement)(r.A,{heading:w.heading,subHeading:w.subheading})),(0,o.createElement)(A.A,{type:"fade-in-disabled",after:void 0!==O},(0,o.createElement)("div",{className:"store-address-form"},(0,o.createElement)("div",{"data-name":"country"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"country"},w.countryInputLabel),void 0===O?(0,o.createElement)("input",{id:"country",name:"country",type:"text",disabled:!0}):(0,o.createElement)("select",{type:"text",name:"country",required:!0,defaultValue:I,...U},S.map((e=>(0,o.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,o.createElement)("div",{"data-name":"woocommerce_store_address"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_address"},w.addressInputLabel),(0,o.createElement)("input",{id:"woocommerce_store_address",name:"woocommerce_store_address",type:"text",required:!0,defaultValue:O?.woocommerce_store_address,...U})),(0,o.createElement)("div",{"data-name":"full-address","data-state-empty":0===k.length},(0,o.createElement)("div",{"data-name":"woocommerce_store_city"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_city"},w.cityInputLabel),(0,o.createElement)("input",{name:"woocommerce_store_city",id:"woocommerce_store_city",type:"text",required:!0,defaultValue:O?.woocommerce_store_city,...U})),0===k.length||void 0===O?null:(0,o.createElement)("div",{"data-name":"state"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"state"},w.stateInputLabel),(0,o.createElement)("select",{id:"state",type:"text",name:"state",required:!0,defaultValue:I===y?H:"",...U},(0,o.createElement)("option",{key:"",value:"",selected:!0}),k.map((e=>(0,o.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,o.createElement)("div",{"data-name":"woocommerce_store_postcode"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_postcode"},w.postalCodeInputLabel),(0,o.createElement)("input",{id:"woocommerce_store_postcode",name:"woocommerce_store_postcode",type:"text",required:!0,defaultValue:O?.woocommerce_store_postcode,...U}))),(0,o.createElement)("div",null,(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_email_from_address"},w.emailInputLabel),(0,o.createElement)("input",{name:"woocommerce_email_from_address",id:"woocommerce_email_from_address",type:"email",required:!0,defaultValue:O?.woocommerce_email_from_address,...U})),(0,o.createElement)("div",null,(0,o.createElement)("label",{htmlFor:"woocommerce_currency"},w.currencyInputLabel),(0,o.createElement)("select",{id:"woocommerce_currency",type:"text",name:"woocommerce_currency",value:O?.woocommerce_currency,...U},Object.entries(C).map((([e,a])=>(0,o.createElement)("option",{key:e,value:e,dangerouslySetInnerHTML:{__html:a}}))))),(0,o.createElement)("em",{style:{display:"inline"}},w.requiredText))),(0,o.createElement)(h.A,{text:w.buttonText,disabled:void 0===O})),(0,o.createElement)(s.A,null))))}}}]); \ No newline at end of file diff --git a/build/2.3.8/onboarding.js b/build/2.3.8/onboarding.js deleted file mode 100644 index 4cd723dcd..000000000 --- a/build/2.3.8/onboarding.js +++ /dev/null @@ -1,59 +0,0 @@ -(()=>{var e,t,n={4371:(e,t,n)=>{"use strict";n.d(t,{y:()=>x,c:()=>o});var r={};n.r(r),n.d(r,{initializeNamespace:()=>c,updateHiiveDebounceInstance:()=>h,updateHiiveDebounceTime:()=>p,updateHiiveEventsQueue:()=>u,updateHiiveEventsQueueThreshold:()=>d,updateHiiveUrls:()=>l});var i={};n.r(i),n.d(i,{getHiiveBatchUrl:()=>_,getHiiveDebounce:()=>v,getHiiveEventsQueue:()=>m,getHiiveEventsQueueThreshold:()=>g,getHiiveSingleUrl:()=>f});var a=n(7143);class o{constructor(e,t,n,r){this.category=e,this.action=t,this.data=n,this.namespace=r}}const s={urls:{single:void 0,batch:void 0},queue:{events:[],threshold:100},debounce:{time:void 0,instance:void 0}};function c(e){return{type:"INITIALIZE_NAMESPACE",namespace:e}}function l(e,t){return{type:"UPDATE_HIIVE_URLS",urls:e,namespace:t}}function u(e,t){return{type:"UPDATE_HIIVE_EVENTS_QUEUE",events:e,namespace:t}}function d(e,t){return{type:"UPDATE_HIIVE_EVENTS_QUEUE_THRESHOLD",threshold:e,namespace:t}}function p(e,t){return{type:"UPDATE_HIIVE_DEBOUNCE_TIME",debounceTime:e,namespace:t}}function h(e,t){return{type:"UPDATE_HIIVE_DEBOUNCE_INSTANCE",instance:e,namespace:t}}function m(e,t){return e.hiive[t]?.queue.events}function g(e,t){return e.hiive[t]?.queue.threshold}function f(e,t){return e.hiive[t]?.urls.single}function _(e,t){return e.hiive[t]?.urls.batch}function v(e,t){return e.hiive[t]?.debounce}const b={reducer:(0,a.combineReducers)({hiive:(e,t)=>{switch(t.type){case"INITIALIZE_NAMESPACE":return{...e,[t.namespace]:s};case"UPDATE_HIIVE_URLS":return{...e,[t.namespace]:{...e[t.namespace],urls:{single:t.urls.single,batch:t.urls.batch}}};case"UPDATE_HIIVE_EVENTS_QUEUE":return{...e,[t.namespace]:{...e[t.namespace],queue:{events:t.events,threshold:e[t.namespace].queue.threshold}}};case"UPDATE_HIIVE_EVENTS_QUEUE_THRESHOLD":return{...e,[t.namespace]:{...e[t.namespace],queue:{events:e[t.namespace].queue.events,threshold:t.threshold}}};case"UPDATE_HIIVE_DEBOUNCE_TIME":return{...e,[t.namespace]:{...e[t.namespace],debounce:{time:t.debounceTime,instance:e[t.namespace].debounce.instance}}};case"UPDATE_HIIVE_DEBOUNCE_INSTANCE":return{...e,[t.namespace]:{...e[t.namespace],debounce:{time:e[t.namespace].debounce.time,instance:t.instance}}}}return e}}),actions:r,selectors:i},w=(0,a.createReduxStore)("newfold/ui-analytics",b);(0,a.register)(w);var y=n(1455),S=n.n(y);const E=e=>!!window?.nfdUIAnalytics?.hiive&&e in window.nfdUIAnalytics.hiive,k=e=>e instanceof o,T=async e=>{if(!e||!E(e))return!1;const t=(0,a.select)(w).getHiiveBatchUrl(e);if(!t)return!1;const n=(0,a.select)(w).getHiiveEventsQueue(e);if(0===n.length)return!0;(0,a.dispatch)(w).updateHiiveEventsQueue([],e);try{await S()({url:t,method:"POST",data:n})}catch(t){console.error(t),(0,a.dispatch)(w).updateHiiveEventsQueue(n,e)}return!0},x={initialize:async({namespace:e,urls:{single:t,batch:n}={},settings:{debounce:{time:r}={},queue:{threshold:i=100}={}}={}})=>!(!e||!E(e)&&(!t&&!n||((0,a.dispatch)(w).initializeNamespace(e),(0,a.dispatch)(w).updateHiiveUrls({single:t,batch:n},e),(0,a.dispatch)(w).updateHiiveDebounceTime(r,e),(0,a.dispatch)(w).updateHiiveEventsQueueThreshold(i,e),window.nfdUIAnalytics?.hiive?window.nfdUIAnalytics.hiive[e]=!0:window.nfdUIAnalytics={hiive:{[e]:!0}},0))),initialized:E,validate:k,track:e=>{if(!k(e)||!E(e.namespace))return!1;const t=e.namespace;delete e.namespace;const n=(0,a.select)(w).getHiiveEventsQueue(t);n.push(e),(0,a.dispatch)(w).updateHiiveEventsQueue(n,t);const r=(0,a.select)(w).getHiiveEventsQueueThreshold(t);return r&&r{if(!e)return!1;const t=(0,a.select)(w).getHiiveDebounce(e);!!t.time&&(clearInterval(t.instance),(0,a.dispatch)(w).updateHiiveDebounceInstance(setTimeout((()=>{T(e),(0,a.dispatch)(w).updateHiiveDebounceInstance(void 0,e)}),t.time),e))})(t),!0},send:async e=>{if(!k(e)||!E(e.namespace))return!1;const t=e.namespace;delete e.namespace;const n=(0,a.select)(w).getHiiveSingleUrl(t);if(!n)return!1;try{await S()({url:n,method:"POST",data:e})}catch(e){return console.error(e),!1}},dispatchEvents:T,disableDebounce:e=>{if(!e)return!1;const t=(0,a.select)(w).getHiiveDebounce(e);return t.instance&&(clearInterval(t.instance),(0,a.dispatch)(w).updateHiiveDebounceInstance(void 0,e),(0,a.dispatch)(w).updateHiiveDebounceTime(void 0,e)),!0}}},5588:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;td,B6:()=>x,Gh:()=>D,HS:()=>O,Oi:()=>s,Rr:()=>p,TM:()=>o,pX:()=>L,pb:()=>N,rc:()=>i,tH:()=>$,ue:()=>m,yD:()=>I}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const a="popstate";function o(e){return void 0===e&&(e={}),function(e,t,n,o){void 0===o&&(o={});let{window:c=document.defaultView,v5Compat:p=!1}=o,h=c.history,m=i.Pop,g=null,f=_();function _(){return(h.state||{idx:null}).idx}function v(){m=i.Pop;let e=_(),t=null==e?null:e-f;f=e,g&&g({action:m,location:w.location,delta:t})}function b(e){let t="null"!==c.location.origin?c.location.origin:c.location.href,n="string"==typeof e?e:d(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,h.replaceState(r({},h.state,{idx:f}),""));let w={get action(){return m},get location(){return e(c,h)},listen(e){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(a,v),g=e,()=>{c.removeEventListener(a,v),g=null}},createHref:e=>t(c,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){m=i.Push;let r=u(w.location,e,t);n&&n(r,e),f=_()+1;let a=l(r,f),o=w.createHref(r);try{h.pushState(a,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;c.location.assign(o)}p&&g&&g({action:m,location:w.location,delta:1})},replace:function(e,t){m=i.Replace;let r=u(w.location,e,t);n&&n(r,e),f=_();let a=l(r,f),o=w.createHref(r);h.replaceState(a,"",o),p&&g&&g({action:m,location:w.location,delta:0})},go:e=>h.go(e)};return w}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=p(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),u("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:d(t))}),(function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function s(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var h;function m(e,t,n){void 0===n&&(n="/");let r=N(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let i=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(s(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let c=O([r,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),g(e.children,t,l,c)),(null!=e.path||e.index)&&t.push({path:c,score:k(c,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of f(e.path))i(e,t,n);else i(e,t)})),t}function f(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return i?[a,""]:[a];let o=f(r.join("/")),s=[];return s.push(...o.map((e=>""===e?a:[a,e].join("/")))),i&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const _=/^:[\w-]+$/,v=3,b=2,w=1,y=10,S=-2,E=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=S),t&&(r+=b),n.filter((e=>!E(e))).reduce(((e,t)=>e+(_.test(t)?v:""===t?w:y)),r)}function T(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[n];return e[r]=i&&!c?void 0:(c||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function C(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function A(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function I(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function D(e,t,n,i){let a;void 0===i&&(i=!1),"string"==typeof e?a=p(e):(a=r({},e),s(!a.pathname||!a.pathname.includes("?"),A("?","pathname","search",a)),s(!a.pathname||!a.pathname.includes("#"),A("#","pathname","hash",a)),s(!a.search||!a.search.includes("#"),A("#","search","hash",a)));let o,c=""===e||""===a.pathname,l=c?"/":a.pathname;if(null==l)o=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?p(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:M(r),hash:R(i)}}(a,o),d=l&&"/"!==l&&l.endsWith("/"),h=(c||"."===l)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const O=e=>e.join("/").replace(/\/\/+/g,"/"),P=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",R=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class $ extends Error{}function L(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const z=["post","put","patch","delete"],F=(new Set(z),["get",...z]);new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},8087:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r,i,a=n(1609);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{h:()=>o});var r,i=n(1609);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>i});var r=n(8468);const i=(0,r.forwardRef)((function({icon:e,size:t=24,...n},i){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:i})}))},3175:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}))},8351:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},1607:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}))},6655:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},5822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"}))},8176:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}))},9572:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}))},8851:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},3290:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"}))},6786:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"}))},8690:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"}))},7589:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}))},19:(e,t,n)=>{"use strict";n.d(t,{E:()=>$});var r=n(7723),i=n(8969),a=n(9235),o=n(8690),s=n(8468),c=n(2502),l=n(1609),u=n(7143),d=n(7675),p=n(3474);const h=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),m=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),g=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),f=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),_=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),v=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),b=(0,s.lazy)((()=>n.e(74).then(n.bind(n,2074)))),w=new c.p({slug:"ecommerce-address",path:"/ecommerce/step/address",title:(0,r.__)("Street Address","wp-module-onboarding"),Component:b,icon:o.A,drawerView:i.eY,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,u.useSelect)((e=>({brandName:e(d.M).getNewfoldBrandName(),techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,r.__)("Street Address","wp-module-onboarding"),subheading:(0,r.__)("Whether this is where the magic happens or the mail goes, tell us where your business is located.","wp-module-onboarding"),icon:o.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Whether it’s a storefront or a PO Box, we’re proud to help you connect your real-world and online businesses","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ -(0,r.__)("We use this address to setup WooCommerce, your payment provider, Contact Page and more so you can start stocking the shelves of your %1$s Online %2$s.","wp-module-onboarding"),e,(0,p.P)("Site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-address"},(0,l.createElement)(v,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(h,{cssIcon:a.illustration.icon}),(0,l.createElement)(m,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(g,null,!1!==i?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(f,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(_,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Street Address","wp-module-onboarding")}});var y=n(5573);const S=(0,l.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(y.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"})),E=(0,l.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(y.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})),k=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),T=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),x=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),C=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),N=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),I=(0,s.lazy)((()=>n.e(325).then(n.bind(n,9325)))),D=new c.p({slug:"ecommerce-products",path:"/ecommerce/step/products",title:(0,r.__)("Product Info","wp-module-onboarding"),Component:I,icon:S,drawerView:i.eY,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,u.useSelect)((e=>({brandName:e(d.M).getNewfoldBrandName(),techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,r.__)("Products Info","wp-module-onboarding"),subheading:(0,r.__)("We can offer free, exclusive solutions and apply our expert experience if we know how you sell.","wp-module-onboarding"),icon:E},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Go from multiple sizes to multiple locations to multiple online channels","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ -(0,r.__)("Tell us a little about how and what you’re planning to sell and we’ll bring the power of WooCommerce and unique %1$s %2$s solutions to elevate your business and enhance your capabilities.","wp-module-onboarding"),e,(0,p.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-products"},(0,l.createElement)(A,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(k,{cssIcon:a.illustration.icon}),(0,l.createElement)(T,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(x,null,!1!==i?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(C,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(N,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Product Info","wp-module-onboarding")}});var O=n(7767),P=n(8744);const M=new c.p({path:`/${P.eS}/step/interstitial`,Component:a.A}),R=[w,D],$=new O.I({id:i.At,name:(0,r.__)("Commerce","wp-module-onboarding"),steps:R,interstitialSteps:[M]})},2895:(e,t,n)=>{"use strict";n.d(t,{_:()=>te});var r=n(7723),i=n(8969),a=n(8851),o=n(2502),s=n(8468),c=n(1609),l=n(7143),u=n(7675),d=n(3474);const p=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),h=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),m=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),g=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),f=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),_=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),v=(0,s.lazy)((()=>n.e(340).then(n.bind(n,1340)))),b=new o.p({slug:"basic-info",path:"/wp-setup/step/basic-info",title:(0,r.__)("Basic Info","wp-module-onboarding"),Component:v,icon:a.A,drawerView:i.vO,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,l.useSelect)((e=>({brandName:e(u.M).getNewfoldBrandName(),techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),o=((e,t,n)=>({introduction:{heading:(0,r.__)("Basic Info","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("Setup how your %s will present in visitors' browsers and search results.","wp-module-onboarding"),(0,d.P)("site")),icon:a.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-basic-info-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Present in tip-top shape to web browsers and search engine results","wp-module-onboarding"),description:(0,r.__)("Loading your site details, logo and social graph helps not just launch your site but have it found looking great in feeds.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(0,t,n);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__basic-info"},(0,c.createElement)(_,{heading:o.introduction.heading,subheading:o.introduction.subheading,icon:o.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(p,{cssIcon:o.illustration.icon}),(0,c.createElement)(h,{headingWithDescriptions:o.information.headingWithDescriptions}),(0,c.createElement)(m,null,!1!==i?.views?.sidebar?.fullService?.shown&&o.help.fullService.link&&(0,c.createElement)(g,{text:o.help.fullService.text,onClick:()=>window.open(o.help.fullService.link,"_blank")}),(0,c.createElement)(f,{text:o.help.support.text,link:o.help.support.link})))}]}},data:{tooltipText:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ -(0,r.__)("Introduce us to this %s","wp-module-onboarding"),(0,d.P)("website"))}});var w=n(9572);const y=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),S=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),E=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),k=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),T=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),x=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),C=(0,s.lazy)((()=>n.e(871).then(n.bind(n,4871)))),N=new o.p({slug:"get-started-experience",path:"/wp-setup/step/get-started/experience",title:(0,r.__)("WordPress Experience","wp-module-onboarding"),Component:C,icon:w.A,drawerView:i.lf,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,l.useSelect)((e=>({techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("WordPress Experience","wp-module-onboarding"),subheading:(0,r.__)("We want to offer the best default settings and guidance for someone with your WordPress experience.","wp-module-onboarding"),icon:w.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-wp-experience-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("We want to help everyone get the most out of their WordPress %s and this setup, so we use this to help optimize for a great experience and periodically when we offer tips, reminders and recommendations.","wp-module-onboarding"),(0,d.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-wp-experience"},(0,c.createElement)(x,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(y,{cssIcon:i.illustration.icon}),(0,c.createElement)(S,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(E,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(k,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(T,{text:i.help.support.text,link:i.help.support.link})))}]}}});var A=n(3290);const I=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),D=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),O=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),P=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),M=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),R=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),$=(0,s.lazy)((()=>n.e(595).then(n.bind(n,9595)))),L=new o.p({slug:"get-started-site-primary",path:"/wp-setup/step/get-started/site-primary",title:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ -(0,r.__)("Primary %s Setup","wp-module-onboarding"),(0,d.P)("Site")),Component:$,icon:A.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,l.useSelect)((e=>({techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.sprintf)(/* translators: %s: Site or Store */ /* translators: %s: Site or Store */ -(0,r.__)("%s Type","wp-module-onboarding"),(0,d.P)("Site")),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("We'll use this to provide our best-matching designs and features for %s like yours.","wp-module-onboarding"),(0,d.P)("site")),icon:w.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("We chose the templates, features and best configuration we can for sites. You’re always in full control of your WordPress %s and we ask so we can be a good website partner.","wp-module-onboarding"),(0,d.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-site-type"},(0,c.createElement)(R,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(I,{cssIcon:i.illustration.icon}),(0,c.createElement)(D,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(O,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(P,{text:i.help.fullService.text,onClick:()=>window.location.href=i.help.fullService.link}),(0,c.createElement)(M,{text:i.help.support.text,link:i.help.support.link})))}]}}}),z=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),F=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),V=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),H=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),U=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),W=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),B=(0,s.lazy)((()=>n.e(627).then(n.bind(n,5627)))),j=new o.p({slug:"get-started-site-secondary",path:"/wp-setup/step/get-started/site-secondary",title:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ -(0,r.__)("Secondary %s Setup","wp-module-onboarding"),(0,d.P)("Site")),Component:B,icon:A.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,l.useSelect)((e=>({techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.sprintf)(/* translators: %s: Site or Store */ /* translators: %s: Site or Store */ -(0,r.__)("%s Type","wp-module-onboarding"),(0,d.P)("Site")),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("We'll use this to provide our best-matching designs and features for %s like yours.","wp-module-onboarding"),(0,d.P)("site")),icon:w.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("We chose the templates, features and best configuration we can for sites. You’re always in full control of your WordPress %s and we ask so we can be a good website partner.","wp-module-onboarding"),(0,d.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-site-type"},(0,c.createElement)(W,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(z,{cssIcon:i.illustration.icon}),(0,c.createElement)(F,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(V,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(H,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(U,{text:i.help.support.text,link:i.help.support.link})))}]}}});var G=n(5573);const q=(0,c.createElement)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(G.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Y=(0,s.lazy)((()=>n.e(328).then(n.bind(n,328)))),K=new o.p({slug:"top-priority",path:"/wp-setup/step/top-priority",title:(0,r.__)("Top Priority","wp-module-onboarding"),tooltipText:(0,r.__)("Tell us your top priority","wp-module-onboarding"),Component:Y,icon:q});var J=n(7767),Q=n(9235),Z=n(8744);const X=new o.p({path:`/${Z.rA}/step/interstitial/${i.gR}`,Component:Q.A}),ee=[N,L,j,b,K],te=new J.I({id:i.gR,name:(0,r.__)("Demographic","wp-module-onboarding"),steps:ee,interstitialSteps:[X]})},8294:(e,t,n)=>{"use strict";n.d(t,{x:()=>J});var r=n(7723),i=n(6087),a=n(8969),o=n(8468),s=n(2502),c=n(1609),l=n(5573);const u=(0,c.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(l.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));var d=n(7143),p=n(7675),h=n(3474);const m=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),g=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),f=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),_=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),v=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),b=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),w=(0,o.lazy)((()=>n.e(761).then(n.bind(n,761)))),y=new s.p({slug:"design-colors",path:"/wp-setup/step/design/colors",title:(0,r.__)("Colors","wp-module-onboarding"),Component:w,icon:u,drawerView:a.iQ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Colors","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("Whether your brand is vibrant, understated, elegant or edgy use color to delight your %s visitors.","wp-module-onboarding"),(0,h.P)("site")),icon:u},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-colors-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Let a splash of color make a splash with your visitors with your Global Site Colors.","wp-module-onboarding"),description:(0,r.__)("We had our designers mix up some palettes for striking websites for you to chose additional presets, or you can chose your own colors using the color pickers.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,c.createElement)(b,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(m,{cssIcon:i.illustration.icon}),(0,c.createElement)(g,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(f,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(_,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(v,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("What's your color palette?","wp-module-onboarding"),patternId:"theme-styles"}});var S=n(7589),E=n(3175);const k=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),T=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),x=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),C=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),N=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),I=(0,o.lazy)((()=>n.e(546).then(n.bind(n,1546)))),D=new s.p({slug:"design-theme-styles-menu",path:"/wp-setup/step/design/theme-styles/menu",title:(0,r.__)("Theme Styles","wp-module-onboarding"),Component:I,icon:S.A,drawerView:a.VG,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,d.useSelect)((e=>({brandName:e(p.M).getNewfoldBrandName(),techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,r.__)("Theme Styles","wp-module-onboarding"),subheading:(0,r.__)("Professionally-designed website templates ready for their public debut featuring your great ideas.","wp-module-onboarding"),icon:E.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Show the web you have style with modern colors and elevated fonts","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ -(0,r.__)("Pick one of these professionally-designed website styles to start your %1$s %2$s.","wp-module-onboarding"),e,(0,h.P)("site"))},{description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("In the next steps and in the future, you can change the specific colors and fonts to fit your aesthetic vision for your %s.","wp-module-onboarding"),(0,h.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-theme-styles-menu"},(0,c.createElement)(A,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(k,{cssIcon:a.illustration.icon}),(0,c.createElement)(T,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,c.createElement)(x,null,!1!==i?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,c.createElement)(C,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,c.createElement)(N,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles"}});var O=n(1869);const P=(0,c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(l.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"})),M=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),R=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),$=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),L=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),z=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),F=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),V=(0,o.lazy)((()=>n.e(585).then(n.bind(n,5585)))),H=new s.p({slug:"design-typography",path:"/wp-setup/step/design/typography",title:(0,r.__)("Fonts","wp-module-onboarding"),Component:V,icon:P,drawerView:a.SJ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Fonts","wp-module-onboarding"),subheading:(0,r.__)("Give tone and taste to your words using a curated set of great type treatments.","wp-module-onboarding"),icon:P},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-fonts-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Not just what we say, how we say it","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("Fonts help our ideas look creative and compelling, astute and articulate, refined and regal, modern and much more. Great font combinations help set the perfect tone for your %s and your story jump off the screen.","wp-module-onboarding"),(0,h.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-fonts"},(0,c.createElement)(F,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(M,{cssIcon:i.illustration.icon}),(0,c.createElement)(R,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)($,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(L,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(z,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("What's your font style?","wp-module-onboarding"),patternId:"theme-styles"}});var U=n(7767),W=n(7831),B=n(9235),j=n(8744);const G=new s.p({path:`/${j.rA}/step/interstitial/${a.F4}`,Component:B.A}),q=[D,O.S],Y=[y,H],K=(0,i.filter)([...q,...Y,...W.G.steps],(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview"))),J=new U.I({id:a.F4,name:(0,r.__)("Design","wp-module-onboarding"),steps:q,conditionalSteps:Y,initialSteps:K,interstitialSteps:[G]})},9729:(e,t,n)=>{"use strict";n.d(t,{q:()=>y});var r=n(7723),i=n(8969),a=n(1609),o=n(5573);const s=(0,a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(o.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));var c=n(8468),l=n(2502),u=n(7143),d=n(7675),p=n(3474);const h=(0,c.lazy)((()=>n.e(206).then(n.bind(n,3206)))),m=(0,c.lazy)((()=>n.e(672).then(n.bind(n,6672)))),g=(0,c.lazy)((()=>n.e(993).then(n.bind(n,1993)))),f=(0,c.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),_=(0,c.lazy)((()=>n.e(97).then(n.bind(n,9097)))),v=(0,c.lazy)((()=>n.e(508).then(n.bind(n,6508)))),b=(0,c.lazy)((()=>n.e(978).then(n.bind(n,1978)))),w=[new l.p({slug:"site-features",path:"/wp-setup/step/site-features",title:(0,r.__)("Features","wp-module-onboarding"),Component:b,icon:s,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,u.useSelect)((e=>({brandName:e(d.M).getNewfoldBrandName(),techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),o=((e,t,n)=>({introduction:{heading:(0,r.__)("Features","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ -(0,r.__)("Easy-to-use features from our partner's WordPress Plugins and unique %1$s solutions to put your %2$s to work.","wp-module-onboarding"),e,(0,p.P)("site")),icon:s},illustration:{icon:"nfd-onboarding-sidebar-learn-more-site-features-illustration"},information:{headingWithDescriptions:[{heading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("We’ve assembled the best building blocks for a successful %s","wp-module-onboarding"),(0,p.P)("site")),description:(0,r.sprintf)(/* translators: 1: Brand 2: Site or Store 3: Brand */ /* translators: 1: Brand 2: Site or Store 3: Brand */ -(0,r.__)("Put your %1$s %2$s to work for you using features that unlock the potential of WordPress with powerful solutions from %3$s and our partners.","wp-module-onboarding"),e,(0,p.P)("Site"),e)}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,a.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-features"},(0,a.createElement)(v,{heading:o.introduction.heading,subheading:o.introduction.subheading,icon:o.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,a.createElement)(h,{cssIcon:o.illustration.icon}),(0,a.createElement)(m,{headingWithDescriptions:o.information.headingWithDescriptions}),(0,a.createElement)(g,null,!1!==i?.views?.sidebar?.fullService?.shown&&o.help.fullService.link&&(0,a.createElement)(f,{text:o.help.fullService.text,onClick:()=>window.open(o.help.fullService.link,"_blank")}),(0,a.createElement)(_,{text:o.help.support.text,link:o.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Key features to supercharge your site","wp-module-onboarding"),patternId:"site-features"}})],y=new(n(7767).I)({id:i.EF,name:(0,r.__)("Features","wp-module-onboarding"),steps:w})},7831:(e,t,n)=>{"use strict";n.d(t,{G:()=>j});var r=n(7723),i=n(8969),a=n(9235),o=n(1609),s=n(5573);const c=(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var l=n(8468),u=n(2502),d=n(7143),p=n(7675),h=n(3474);const m=(0,l.lazy)((()=>n.e(206).then(n.bind(n,3206)))),g=(0,l.lazy)((()=>n.e(672).then(n.bind(n,6672)))),f=(0,l.lazy)((()=>n.e(993).then(n.bind(n,1993)))),_=(0,l.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),v=(0,l.lazy)((()=>n.e(97).then(n.bind(n,9097)))),b=(0,l.lazy)((()=>n.e(508).then(n.bind(n,6508)))),w=(0,l.lazy)((()=>n.e(859).then(n.bind(n,4859)))),y=new u.p({slug:"design-header-menu",path:"/wp-setup/step/design/header-menu",title:(0,r.__)("Header & Menu","wp-module-onboarding"),Component:w,icon:c,drawerView:i.HJ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Header & Menu","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("Surface key content in your %s -- who you are, what your about and where to find things.","wp-module-onboarding"),(0,h.P)("site")),icon:c},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-header-menu-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Putting your best foot forward","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: site or store 2: Site or Store */ /* translators: 1: site or store 2: Site or Store */ -(0,r.__)("Just like a %1$s putting a map of departments at the front door, a great %2$s Header & Menu help point visitors at the places you most want them to visit.","wp-module-onboarding"),(0,h.P)("site"),(0,h.P)("Site"))},{description:(0,r.sprintf)(/* translators: %s: website */ /* translators: %s: website */ -(0,r.__)("When picking a %s header, consider the number of menu items, character length of each item and how those will visually impact the Header Pattern design you choose.","wp-module-onboarding"),(0,h.P)("website"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-header-menu"},(0,o.createElement)(b,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(m,{cssIcon:i.illustration.icon}),(0,o.createElement)(g,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,o.createElement)(f,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,o.createElement)(_,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,o.createElement)(v,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Let's make the right things visible","wp-module-onboarding"),patternId:"header-menu"}}),S=(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,o.createElement)(s.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,o.createElement)(s.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"}));var E=n(9572);const k=(0,l.lazy)((()=>n.e(206).then(n.bind(n,3206)))),T=(0,l.lazy)((()=>n.e(672).then(n.bind(n,6672)))),x=(0,l.lazy)((()=>n.e(993).then(n.bind(n,1993)))),C=(0,l.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),N=(0,l.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,l.lazy)((()=>n.e(508).then(n.bind(n,6508)))),I=(0,l.lazy)((()=>n.e(560).then(n.bind(n,560)))),D=new u.p({slug:"design-homepage-menu",path:"/wp-setup/step/design/homepage-menu",title:(0,r.__)("Homepage Layouts","wp-module-onboarding"),Component:I,icon:S,drawerView:i.VG,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Home Page","wp-module-onboarding"),subheading:(0,r.__)("The home page is where you tell visitors your story. It helps users find what they came for.","wp-module-onboarding"),icon:E.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-homepage-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Welcome to your new home online","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("Like good curb appeal, a great home page design helps get users excited about your %s. Mixing media, headings, text and more, you can bring your ideas to live and your products & services to the forefront for visitors.","wp-module-onboarding"),(0,h.P)("site"))},{description:(0,r.__)("Look for a Home Page Pattern design you think will help organize and elevate your ideas.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-homepage"},(0,o.createElement)(A,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(k,{cssIcon:i.illustration.icon}),(0,o.createElement)(T,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,o.createElement)(x,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,o.createElement)(C,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,o.createElement)(N,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{patternId:"homepage-styles",tooltipText:(0,r.__)("There’s no place like a great home page","wp-module-onboarding")}});var O=n(5822);const P=(0,l.lazy)((()=>n.e(206).then(n.bind(n,3206)))),M=(0,l.lazy)((()=>n.e(672).then(n.bind(n,6672)))),R=(0,l.lazy)((()=>n.e(993).then(n.bind(n,1993)))),$=(0,l.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),L=(0,l.lazy)((()=>n.e(97).then(n.bind(n,9097)))),z=(0,l.lazy)((()=>n.e(508).then(n.bind(n,6508)))),F=(0,l.lazy)((()=>n.e(366).then(n.bind(n,5366)))),V=new u.p({slug:"design-site-pages",path:"/wp-setup/step/design/site-pages",title:(0,r.__)("Page Layouts","wp-module-onboarding"),Component:F,icon:O.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Pages","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,r.__)("Use professionally-designed templates for common site pages to assemble a beautiful, high-quality %s.","wp-module-onboarding"),(0,h.P)("site")),icon:O.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-pages-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Rapidly deliver ideas with templates primed for your content","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: site or store 2: site or store */ /* translators: 1: site or store 2: site or store */ -(0,r.__)("We’ve baked everything we know about making great designs and content for common %1$s needs into ease-to-use templates. Pick templates and we’ll add them as Page drafts to your WordPress %2$s.","wp-module-onboarding"),(0,h.P)("site"),(0,h.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-pages"},(0,o.createElement)(z,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(P,{cssIcon:i.illustration.icon}),(0,o.createElement)(M,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,o.createElement)(R,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,o.createElement)($,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,o.createElement)(L,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("You have ideas, we have page templates","wp-module-onboarding"),patternId:"site-pages"}});var H=n(7767),U=n(8744);const W=new u.p({path:`/${U.rA}/step/interstitial/${i.R2}`,Component:a.A}),B=[y,D,V],j=new H.I({id:i.R2,name:(0,r.__)("Layout & Content","wp-module-onboarding"),steps:B,interstitialSteps:[W]})},6188:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>h,Ny:()=>p,py:()=>d});var r=n(6087),i=n(2940),a=n(19),o=n(2895),s=n(8294),c=n(9729),l=n(7831);const u=[o._,a.E,s.x,l.G,c.q],d=(e,t,n)=>{const u=(e=>{const t={publishing:l.G,selling:a.E,designing:s.x};return t[e]?t[e]:l.G})(t);let d;switch(n){case"1":default:d=(0,r.filter)(e,(e=>e.id!==u.id)),d=(0,i.Ti)(d,o._,u);break;case"3":d=(0,r.filter)(e,(e=>e.id!==u.id&&(e.id===c.q.id||e.id===o._.id))),d=(0,i.Ti)(d,o._,u);break;case"5":d=(0,r.filter)(e,(e=>e.id!==u.id&&(e.id===c.q.id||e.id===o._.id)))}return d},p=e=>u.filter((t=>t.id===e)),h=(e,t,n)=>{const r={};return e.forEach((e=>t[e.id]?r[e.id]=t[e.id]:r[e.id]={completed:!1,firstStep:e.steps[0].path,lastStep:n?.chapter===e.id&&n?.path?n?.path:""})),r}},431:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),i=n(6942),a=n.n(i);const o=({type:e,after:t=!0,children:n,className:i="",duration:o=!1,timingFunction:s=!1})=>{const c="animate";return t?(0,r.createElement)("div",{className:a()(function(){if(e){let t="";switch(e){case"fade-in":t=c.concat("__fade-in");break;case"fade-in-disabled":t=c.concat("__fade-in--disabled");break;case"fade-in-right":t=c.concat("__fade-in--right");break;case"fade-in-left":t=c.concat("__fade-in--left");break;case"fade-in-up":t=c.concat("__fade-in--up");break;case"shine":t=c.concat("__shine");break;case"shine-placeholder":t=c.concat("__shine--placeholder");break;case"dropdown":t=c.concat("__dropdown");break;case"load":t=c.concat("__load")}return t}}(),i),style:{animationDuration:o,animationTimingFunction:s}},n):(0,r.createElement)("div",{className:`${c}__blank`},n)}},8590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(1609),i=n(6427),a=n(7677),o=n(6942),s=n.n(o);const c=({className:e,text:t,onClick:n,icon:o})=>(0,r.createElement)(i.Button,{className:s()("nfd-onboarding-button--white",e),onClick:"function"==typeof n&&n},(0,r.createElement)("span",{className:`${e}__text`},t),o&&(0,r.createElement)(a.A,{className:`${e}__icon`,icon:o}))},6517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(1609),i=n(6427),a=n(6942),o=n.n(a);const s=({className:e,text:t,onClick:n=!1})=>(0,r.createElement)(i.Button,{variant:"primary",className:o()("nfd-onboarding-button--background",e),onClick:"function"==typeof n&&n},t)},264:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=({children:e,handleClick:t,disabled:n,className:i})=>(0,r.createElement)("button",{type:"button",className:`${i} nfd-card-button`,onClick:()=>{"function"==typeof t&&t()},disabled:n},e)},9927:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=(0,n(8468).memo)((({heading:e,subHeading:t,question:n})=>(0,r.createElement)("div",null,e&&(0,r.createElement)("h2",{className:"nfd-step-card-heading"},e),t&&(0,r.createElement)("h3",{className:n?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},t),n&&(0,r.createElement)("h3",{className:"nfd-step-card-question"},n))))},3957:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=({isColorSelected:e,color:t,slug:n,name:i,callback:a})=>(0,r.createElement)("div",{className:"custom-palette__below__row",onClick:()=>a(n),onKeyDown:()=>a(n),role:"button",tabIndex:0},(0,r.createElement)("div",{className:`custom-palette__below__row__icon ${e&&"custom-palette__below__row__icon--selected-border"}`,style:{backgroundColor:`${t}`}}),(0,r.createElement)("div",{className:"custom-palette__below__row__text"},i))},5677:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(1609),i=n(3988),a=n(4639),o=n(9889);const s=({title:e,subtitle:t,error:n})=>(0,r.createElement)(i.A,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(a.A,{title:e,subtitle:t}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},n),(0,r.createElement)(o.A,null))},5748:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(1609),i=n(148),a=n(1607),o=n(8468),s=n(7143),c=n(6427),l=n(7723),u=n(6942),d=n.n(u),p=n(4371),h=n(6079),m=n(7675),g=n(2014),f=n(8969),_=n(1056),v=n(2202),b=n(8559);const w=({buttonText:e=(0,l.__)("Exit to WordPress","wp-module-onboarding"),showButtonIcon:t=!0,showButton:n=!0,buttonVariant:u="secondary",buttonClassName:w=!1,isModalOpen:y=!1,modalTitle:S=(0,l.__)("Exit without finishing?","wp-module-onboarding"),modalText:E=!1,modalPrimaryCloseButtonText:k=(0,l.__)("Continue","wp-module-onboarding"),modalOnClose:T=!1,modalExitButtonText:x=(0,l.__)("Exit","wp-module-onboarding")})=>{const[C,N]=(0,o.useState)(y),A=()=>{"function"==typeof T&&T(),N(!1)},I=(0,i.zy)(),{currentData:D,brandName:O,socialData:P,currentStep:M}=(0,s.useSelect)((e=>({currentData:e(m.M).getCurrentOnboardingData(),brandName:e(m.M).getNewfoldBrandName(),socialData:e(m.M).getOnboardingSocialData(),currentStep:e(m.M).getCurrentStep()})),[]),{setOnboardingSocialData:R}=(0,s.useDispatch)(m.M);return E||(E=(0,l.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ -(0,l.__)("You can restart onboarding from your %s Settings page.","wp-module-onboarding"),O)),(0,r.createElement)(o.Fragment,null,n&&(0,r.createElement)(c.Button,{icon:!!t&&a.A,variant:u,onClick:()=>N(!0),className:d()("nfd-onboarding-etw__trigger",w)},e),C&&(0,r.createElement)(c.Modal,{title:S,onRequestClose:()=>A()},(0,r.createElement)("p",null,E),(0,r.createElement)(c.ButtonGroup,{className:"nfd-onboarding-etw__buttons"},(0,r.createElement)(c.Button,{variant:"secondary",onClick:()=>A()},k),(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>async function(e){if(D){if(D.hasExited=(new Date).getTime(),e?.includes("basic-info")){const e=await async function(){const e=await(0,g.mt)(),t=await(0,g.oc)(P);return null!==t?.error?e?.body:t?.body}();e&&R(e)}(0,h.V1)(D),!0===D?.data?.comingSoon&&window.NewfoldRuntime?.comingSoon&&await window.NewfoldRuntime.comingSoon.enable()}(0,b.YR)(),(0,_.v)(new _.iC(v.f2,M.title)),await p.y.dispatchEvents(v.XJ),window.location.replace(f.R0)}(I.pathname)},x))))}},4639:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=({title:e,subtitle:t,children:n})=>(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},e),t&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},t),n)},3988:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1609),i=n(6942),a=n.n(i);const o=window.wp.a11y;var s=n(8468),c=n(148);const l=({className:e="nfd-onboarding-layout__base",children:t})=>{const n=(0,c.zy)(),i=document.querySelector(".nfd-onboard-content");return(0,s.useEffect)((()=>{i?.focus({preventScroll:!0}),((e="Showing new Onboarding Page")=>{(0,o.speak)(e,"assertive")})("Override")}),[n.pathname]),(0,r.createElement)("div",{className:a()("nfd-onboarding-layout",e)},t)};var u=n(431);const d=({children:e})=>(0,r.createElement)("section",{className:"is-contained"},e),p=({className:e="",children:t,isBgPrimary:n=!1,isCentered:i=!1,isVerticallyCentered:o=!1,isContained:c=!1,isPadded:p=!1,isFadeIn:h=!0})=>{const m=c?d:s.Fragment;return(0,r.createElement)(u.A,{type:h&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(l,{className:a()("nfd-onboarding-layout__common",e,{"is-bg-primary":n},{"is-centered":i},{"is-vertically-centered":o},{"is-padded":p})},(0,r.createElement)(m,null,t)))}},8616:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),i=n(8468),a=n(7723),o=n(7044);const s=({count:e,watch:t,callback:n,className:s,viewportWidth:c,isWithCard:l=!1})=>{const[u,d]=(0,i.useState)(0);return(0,i.useEffect)((()=>d(1)),[t]),t?(0,r.createElement)(r.Fragment,null,t?(0,r.createElement)("div",{style:{display:"none"}},u):null,n()):l?(()=>{const t=[];for(let n=0;n{const t=[];for(let n=0;n{"use strict";n.d(t,{Th:()=>A,pA:()=>v,ph:()=>k,z_:()=>x,_Z:()=>b.A,GZ:()=>M});var r=n(1609),i=n(7143),a=n(4715),o=n(4997),s=n(8468),c=n(7723),l=n(6427),u=n(9491);let d;const p=6e3;function h({viewportWidth:e,settings:t,containerWidth:n,minHeight:i,additionalStyles:o=[]}){e||(e=n);const[c,{height:h}]=(0,u.useResizeObserver)(),{styles:m,assets:g}={styles:t.styles,assets:t.__unstableResolvedAssets},f=(0,s.useMemo)((()=>m?[...m,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:m),[m,o]);d=d||(0,u.pure)(a.BlockList);const _=n/e,v=h?n/(h*_):0;return(0,r.createElement)(l.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${_})`,aspectRatio:v,maxHeight:h>p?p*_:void 0,minHeight:i}},(0,r.createElement)(a.__unstableIframe,{assets:g,contentRef:(0,u.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%",e.spellcheck=0}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:h,pointerEvents:"none",maxHeight:p,minHeight:0!==_&&_<1&&i?i/_:i}},(0,r.createElement)(a.__unstableEditorStyles,{styles:f}),c,(0,r.createElement)(d,{renderAppender:!1})))}function m(e){const[t,{width:n}]=(0,u.useResizeObserver)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,r.createElement)("div",{className:"block-editor-block-preview__container"},n&&(0,r.createElement)(h,{...e,containerWidth:n})))}var g=n(7225),f=n(7675),_=n(431);const v=(0,s.memo)((({slug:e="",blockGrammer:t,viewportWidth:n=1300,styling:l="large",setIsLoadingParent:u=!1,previewSettings:d=!1,skeletonLoadingTime:p=2500,skeletonType:h="default",skeletonShouldWait:v=!1})=>{const[b,w]=(0,s.useState)(),[y,S]=(0,s.useState)(),[E,k]=(0,s.useState)(!0);(0,s.useEffect)((()=>{if(p){const e=setTimeout((()=>{k(!1),u&&u(!1)}),p);return()=>clearTimeout(e)}k(!1),u&&u(!1)}),[p]);const{currentData:T,storedPreviewSettings:x}=(0,i.useSelect)((e=>({currentData:e(f.M).getCurrentOnboardingData(),storedPreviewSettings:e(f.M).getPreviewSettings()})),[]);(0,s.useEffect)((()=>{S(d?(0,g.AN)(d,x):x)}),[d,x]),(0,s.useEffect)((()=>{t&&w((0,o.parse)(t))}),[t]),(0,s.useEffect)((()=>{d||S(x)}),[x,T]);const C=(0,s.memo)((()=>(0,r.createElement)("div",{className:"live-preview__container--is-skeleton"},(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-header"},(0,r.createElement)(_.A,{type:"shine",className:"live-preview__container--is-skeleton--shimmer"})),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-1"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-2"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-footer"})))),N=(0,s.memo)((()=>(0,r.createElement)("div",{className:"regenerating-site-card-wrap regenerating-site-card-skeleton"},(0,r.createElement)("div",{className:"regenerating-site-card"},(0,r.createElement)("p",{className:"regenerating-site-card__title"},(0,r.createElement)("p",{className:"regenerating-site-card__title"},v?(0,c.__)("Regenerating Site","wp-module-onboarding"):(0,c.__)("Generating Site","wp-module-onboarding"))),(0,r.createElement)("div",{className:"regenerating-site-card__progress-bar"},(0,r.createElement)("div",{className:"regenerating-site-card__progress-bar__fill"}))))));return(0,r.createElement)("div",{"data-slug":`nfd-onboarding-block-preview-${e}`,className:`live-preview__container-${l}`},E&&("sitegen"===h?(0,r.createElement)(N,null):(0,r.createElement)(C,null)),b&&y&&(0,r.createElement)(a.BlockEditorProvider,{value:b,settings:y.settings},(0,r.createElement)(m,{viewportWidth:n,settings:y.settings})))}));var b=n(8616),w=n(7677),y=n(8351),S=n(5573);const E=(0,r.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(S.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),k=({className:e="live-preview--selectable-card",selected:t=!1,blockGrammer:n,viewportWidth:i=1500,styling:a="large",previewSettings:o,overlay:c=!1,onClick:l=!1,skeletonLoadingTime:u=2500})=>{const[d,p]=(0,s.useState)(!0);return(0,r.createElement)("div",{className:`${e}`,role:"button",tabIndex:0,onClick:()=>{d||"function"!=typeof l||l()},onKeyDown:()=>{d||"function"!=typeof l||l()}},(0,r.createElement)("div",{className:`${e}__title-bar`},(0,r.createElement)("div",{className:`${e}__title-bar__browser`},(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`})),(0,r.createElement)("div",{className:t?`${e}__title-bar--selected live-preview-selected-check`:`${e}__title-bar--unselected`},(0,r.createElement)(w.A,{className:`${e}__title-bar--selected__path`,icon:y.A,size:64}))),(0,r.createElement)("div",{className:`${e}__live-preview-container`},(0,r.createElement)(v,{styling:a,blockGrammer:n,viewportWidth:i,previewSettings:o,setIsLoadingParent:p,skeletonLoadingTime:u}),c&&!d&&(0,r.createElement)("div",{className:`${e}__live-preview-container__overlay`},(0,r.createElement)(w.A,{className:`${e}__live-preview-container__overlay__icon`,size:64,icon:E}))))};var T=n(8176);const x=({className:e="live-preview--selectable-card--title-description",selected:t=!1,blockGrammer:n,viewportWidth:i=1500,styling:a="large",previewSettings:o,onClick:c=!1,skeletonLoadingTime:u=2500,title:d=!1,description:p=!1,slug:h})=>{const[m,g]=(0,s.useState)(!1),f=e=>{"function"==typeof c&&c(e,h,d)};return(0,r.createElement)("div",{className:`${e}`},(0,r.createElement)("div",{className:`${e}__live-preview-container`,onClick:()=>f(!t),role:"presentation"},(0,r.createElement)(v,{styling:a,blockGrammer:n,viewportWidth:i,previewSettings:o,skeletonLoadingTime:u})),(0,r.createElement)("div",{className:`${e}__information`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("div",{className:`${e}__information__title-question`},(0,r.createElement)("div",{className:`${e}__information__title-question__checkbox`},(0,r.createElement)(l.CheckboxControl,{label:(0,r.createElement)("b",null,d),onChange:()=>f(!t),checked:t})),(0,r.createElement)("div",{className:`${e}__information__title-question__question`},(0,r.createElement)(w.A,{className:`${e}__information__title-question__question__icon`,icon:T.A,style:{fill:m&&"var(--wp-admin-theme-color-darker-10)"},onClick:()=>g(!m)})))),m&&(0,r.createElement)(_.A,{type:"dropdown",className:`${e}__description--container ${m?"highlighted":"not-highlighted"}`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("p",{className:`${e}__description--text`},p)))};var C=n(7517),N=n(8969);const A=({children:e})=>{const[t,n]=(0,s.useState)(!1),{currentData:r,storedPreviewSettings:a,themeStatus:o}=(0,i.useSelect)((e=>({currentData:e(f.M).getCurrentOnboardingData(),storedPreviewSettings:e(f.M).getPreviewSettings(),themeStatus:e(f.M).getThemeStatus()})),[]),{updateThemeStatus:c,updatePreviewSettings:l,enqueueRequest:u}=(0,i.useDispatch)(f.M);return(0,s.useEffect)((()=>{t||N.Er!==o||(async()=>{let e;if(a?.title&&a?.settings)e=a;else{const t=await(0,C.w6)();if(t?.error)return c(N.So);r.data.theme.variation?e=t.body.filter((e=>e.title===r.data.theme.variation))[0]:0===t.body[0]?.id&&(e=t.body[0]),l((0,g.AN)(e,a))}e&&u(N.L5.SET_GLOBAL_STYLES,(()=>(0,C.oy)({...e,title:r.data.theme.variation,version:2}))),n(!0)})()}),[t,o]),e};var I=n(6786),D=n(264),O=n(3013),P=n(8087);const M=({className:e="live-preview-sitegen--selectable-card",blockGrammar:t,viewportWidth:n=1500,styling:i="large",previewSettings:a,overlay:o=!1,skeletonLoadingTime:l=2500,slug:u,position:d,title:p,isFavorite:h,palette:m,handleFavorite:g,handlePreview:f,handleRegenerate:_,isRegenerating:b})=>{const[y,S]=(0,s.useState)(!0),k=()=>{if("function"==typeof f)return f(u,d)},T=()=>{if("function"==typeof _)return _(u,m,h,d)},x=()=>{if("function"==typeof g)return g(u,d)};return(0,r.createElement)("div",{className:`${e}`,role:"button",tabIndex:0},(0,r.createElement)("div",{className:`${e}__live-preview-container`},(0,r.createElement)(v,{styling:i,blockGrammer:t,viewportWidth:n,previewSettings:a,setIsLoadingParent:S,skeletonLoadingTime:l,skeletonShouldWait:b,skeletonType:"sitegen"}),o&&!y&&(0,r.createElement)("div",{className:`${e}__live-preview-container__overlay`,onClick:k,onKeyDown:e=>{"Enter"===e.key&&k()}},(0,r.createElement)(D.A,{className:`${e}__live-preview-container__overlay__button`,onClick:()=>k()},(0,r.createElement)(w.A,{icon:E}),(0,c.__)("Preview Version","wp-module-onboarding"))),(0,r.createElement)("div",{className:`${e}__live-preview-container-buttons ${b?"disabled":""}`},(0,r.createElement)("div",{role:"button",tabIndex:"0",onClick:()=>x(),onKeyDown:e=>{"Enter"===e.key&&x()},"aria-label":"Add to Wishlist",className:`${e}__live-preview-container-buttons__button`},(0,r.createElement)("span",{className:`${e}__live-preview-container-buttons__button__icon`},h?(0,r.createElement)(P.h,null):(0,r.createElement)(O.h,null)),(0,r.createElement)("span",{className:`${e}__live-preview-container-buttons__button__title`},p)),(0,r.createElement)("div",{role:"button",tabIndex:"0",onClick:T,onKeyDown:e=>{"Enter"===e.key&&T()},"aria-label":(0,c.__)("Regenerate Content","wp-module-onboarding"),className:`${e}__live-preview-container-buttons__button`},(0,r.createElement)(w.A,{icon:I.A}),(0,c.__)("Regenerate","wp-module-onboarding")))))}},9235:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(1609),i=n(7143),a=n(8468),o=n(148),s=n(7677),c=n(6655),l=n(7675),u=n(9927),d=n(3988),p=n(5842),h=n(7723),m=n(3474);var g=n(6517),f=n(8590),_=n(8559),v=n(1056),b=n(8969),w=n(6079),y=n(2202);const S=()=>{const[e,t]=(0,a.useState)(15),n=(0,o.Zp)(),{setIsDrawerSuppressed:S,setSidebarActiveView:E}=(0,i.useDispatch)(l.M);async function k(){C&&(C.isComplete=(new Date).getTime(),(0,w.V1)(C),!0===C?.data?.comingSoon&&window.NewfoldRuntime?.comingSoon&&window.NewfoldRuntime.comingSoon.enable()),(0,_.YR)(),(0,v.SV)(new v.iC(y.Vg)),window.location.replace(b.R0)}(0,a.useEffect)((()=>{const n=setInterval((()=>{t(e-1)}),1e3);return 0===e&&(clearInterval(n),k()),()=>{clearInterval(n)}}),[e]),(0,a.useEffect)((()=>{S(!0),E(!1)}),[]);const{brandName:T,nextStep:x,currentData:C}=(0,i.useSelect)((e=>({brandName:e(l.M).getNewfoldBrandName(),nextStep:e(l.M).getNextStep(),currentData:e(l.M).getCurrentOnboardingData()}))),N=(e=>({heading:(0,h.__)("A great foundation to build from","wp-module-onboarding"),subheading:(0,h.sprintf)(/* translators: Brand */ /* translators: Brand */ -(0,h.__)("with WordPress and %s","wp-module-onboarding"),e),content:{heading:(0,h.sprintf)(/* translators: site or store */ /* translators: site or store */ -(0,h.__)("Would you like to enter your WordPress Dashboard or continue setting up your %s?","wp-module-onboarding"),(0,m.P)("site")),question1:(0,h.__)("You've made great progress! Would you like to keep going with the setup or take it from here?","wp-module-onboarding"),question2:(0,h.sprintf)(/* translators: Brand */ /* translators: Brand */ -(0,h.__)("You can continue from your %s home page in the Next steps list.","wp-module-onboarding"),e),redirectMessage:(0,h.__)("Taking you to WordPress in…","wp-module-onboarding")},buttons:{button1:{text:(0,h.__)("Enter WordPress","wp-module-onboarding")},button2:{text:(0,h.__)("Continue Setup","wp-module-onboarding")}}}))(T);return(0,r.createElement)(d.A,{isBgPrimary:!0,isCentered:!0},(0,r.createElement)(p.A,{className:"chapter-interstitial"},(0,r.createElement)(u.A,{heading:N.heading,subHeading:N.subheading}),(0,r.createElement)("div",{className:"chapter-interstitial__content"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-left"},(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},N.content.heading),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question1"},N.content.question1),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question2"},N.content.question2),(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},N.content.redirectMessage,(0,r.createElement)("br",null)," ",e)),(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right__img"}))),(0,r.createElement)("div",{className:"chapter-interstitial__buttons"},(0,r.createElement)(g.default,{onClick:()=>k(),text:N.buttons.button1.text,className:"chapter-interstitial__buttons--blue"}),(0,r.createElement)(f.default,{onClick:()=>n(x.path),text:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",{className:"chapter-interstitial__buttons--white__text"},N.buttons.button2.text),(0,r.createElement)(s.A,{className:"chapter-interstitial__buttons--white__icon",icon:c.A})),className:"chapter-interstitial__buttons--white"}))))}},4097:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),i=n(6942),a=n.n(i);const o=({className:e})=>(0,r.createElement)("div",{className:a()("nfd-onboarding-loader--spinner",e)})},212:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),i=n(3988),a=n(4639),o=n(9889);const s=({title:e,subtitle:t})=>(0,r.createElement)(i.A,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(a.A,{title:e,subtitle:t}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.A,null))},518:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,S:()=>r.A});var r=n(212),i=n(1609),a=n(431);const o=()=>(0,i.createElement)("div",{className:"image-upload-loader--loading-box"},(0,i.createElement)(a.A,{type:"load",className:"image-upload-loader--loading-box__loader"}))},9889:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),i=n(7675),a=n(7143),o=n(7723);const s=({question:e=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:t=(0,o.__)("Hire our Experts","wp-module-onboarding")})=>{const n=(0,a.select)(i.M).getHireExpertsUrl();return n&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},e,(0,r.createElement)("a",{href:n,target:"_blank",rel:"noreferrer"},t))}},5842:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),i=n(6942),a=n.n(i);const o=({className:e="",children:t})=>(0,r.createElement)("div",{className:a()("nfd-onboarding-large-card",e)},(0,r.createElement)("div",{className:"nfd-onboarding-large-card__logo"}),t)},7673:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(8468);const a=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,i.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const r=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(r)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(r))}))}))}),[]),(0,r.createElement)("span",{className:"wnd-ai-logo",style:t},(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,r.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},2538:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,Z:()=>o});var r=n(6087);const i={NONE:"none",AD_LINK_ERROR:"ad-link-error",INVALID_LINK_ERROR:"invalid-link-error"},a={facebook_site:"facebook",twitter_site:"twitter",instagram_url:"instagram",youtube_url:"youtube",linkedin_url:"linkedin",yelp_url:"yelp",tiktok_url:"tiktok"},o=e=>(0,r.transform)(a,((t,n,r)=>{const i=e?.[r]||e?.other_social_urls?.[r];i&&(t[n]=i)}))},1032:(e,t,n)=>{"use strict";n.d(t,{UX:()=>g,Iy:()=>Oe,tR:()=>$e});var r=n(1609),i=n(7143),a=n(8468),o=n(9491),s=n(518),c=n(7675),l=n(7517),u=n(8969),d=n(5677),p=n(7723);var h=n(5748),m=n(6079);const g=({children:e,navigationStateCallback:t=!1,refresh:n=!0,render:g=!0})=>{const f=(0,o.useViewportMatch)("medium"),{storedThemeStatus:_,brandName:v,isFreshInstallation:b,currentData:w}=(0,i.useSelect)((e=>({storedThemeStatus:e(c.M).getThemeStatus(),brandName:e(c.M).getNewfoldBrandName(),isFreshInstallation:e(c.M).getIsFreshInstallation(),currentData:e(c.M).getCurrentOnboardingData()})),[]),y=(e=>({loader:{title:(0,p.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ -(0,p.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,p.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,p.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ -(0,p.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,p.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,p.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")},exitModal:{title:(0,p.__)("It looks like you may have an existing website","wp-module-onboarding"),description:(0,p.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),buttonText:(0,p.__)("Exit to WordPress","wp-module-onboarding")}}))(v),{updateThemeStatus:S,setIsDrawerOpened:E,setIsDrawerSuppressed:k,setIsHeaderNavigationEnabled:T,setCurrentOnboardingData:x}=(0,i.useDispatch)(c.M),C=()=>{switch(_){case u.SQ:case u.Er:return(()=>{if("function"==typeof t)return t();f&&E(!0),k(!1),T(!0)})();default:E(!1),k(!0),T(!1)}};(0,a.useEffect)((()=>{C(),(!0!==g||b||!1!==w.data.siteOverrideConsent)&&_===u.So&&(async()=>{const e=await(async()=>{const e=await(0,l.qv)(u.f1);return e?.error?u.mp:e.body.status})();switch(e){case u.fO:(async()=>{(await(0,l.xN)(u.f1)).error||!0!==n?N():window.location.reload()})();break;case u.Er:!0===n&&window.location.reload();break;case u.mp:N();break;default:S(e)}})()}),[_,b,w]);const N=async()=>{if(S(u.fO),(await(0,l.ai)(u.f1,!0,!1)).error)return S(u.SQ);!0===n&&window.location.reload()},A=()=>{w.data.siteOverrideConsent=!0,x(w),(0,m.V1)(w)};return(0,r.createElement)(a.Fragment,null,g?(()=>{if(!b&&!1===w.data.siteOverrideConsent)return(0,r.createElement)(h.A,{showButton:!1,isModalOpen:!0,modalTitle:y.exitModal.title,modalText:y.exitModal.description,modalOnClose:A,modalExitButtonText:y.exitModal.buttonText});switch(_){case u.SQ:return(0,r.createElement)(d.W,{title:y.errorState.title,subtitle:y.errorState.subtitle,error:y.errorState.error});case u.Er:return e;default:return(0,r.createElement)(s.S,{title:y.loader.title,subtitle:y.loader.subtitle})}})():e)};var f=n(3832),_=n(148),v=n(4371),b=n(3272),w=n(2940),y=n(6478),S=n(212),E=n(3474);const k=()=>{const{brandName:e}=(0,i.useSelect)((e=>({brandName:e(c.M).getNewfoldBrandName()})),[]),t=(e=>({title:(0,p.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ -(0,p.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,E.P)("Site")),subtitle:(0,p.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")}))(e);return(0,r.createElement)(S.A,{title:t.title,subtitle:t.subtitle})};var T=n(6942),x=n.n(T),C=n(6087),N=n(6427),A=n(4487),I=n(8744);const D=()=>{const{headers:e,headerActiveView:t,isHeaderEnabled:n,currentStep:o}=(0,i.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),headers:e(c.M).getHeaders(),headerActiveView:e(c.M).getHeaderActiveView(),isHeaderEnabled:e(c.M).isHeaderEnabled()}))),s=o===A.b,l=window.nfdOnboarding.currentFlow===I.d0;return(0,r.createElement)(a.Fragment,null,(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},e.map((e=>(0,r.createElement)(a.Fragment,{key:e.id},(0,r.createElement)(e.header,null))))),(0,r.createElement)(N.Slot,{name:`${t}/${u.KK}`}),n&&(0,r.createElement)("div",{className:x()("nfd-onboarding-header",{"nfd-onboarding-header--dark":s},{"nfd-onboarding-header--sitegen":l})},(0,r.createElement)("div",{className:"nfd-onboarding-header__start"},(0,r.createElement)(N.Slot,{name:`${t}/${u.nK}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__center"},(0,r.createElement)(N.Slot,{name:`${t}/${u.me}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__end"},(0,r.createElement)(N.Slot,{name:`${t}/${u.KZ}`}))))},O=(0,a.memo)((()=>{const{routes:e}=(0,i.useSelect)((e=>({routes:e(c.M).getRoutes()}))),t=(0,a.useCallback)((()=>e?.map((e=>(0,r.createElement)(_.qh,{key:e.path,path:e.path,end:!0,element:(0,r.createElement)(e.Component,null)})))),[e]);return(0,r.createElement)("main",{className:"nfd-onboard-content"},(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},(0,r.createElement)(_.BV,null,t(e))))}));var P=n(431),M=n(1056),R=n(7225);function $(e){if(e){const t={};return e?.forEach((e=>{t[e.slug]=e.color})),t}}function L(e){if(e){const t=[];for(const n in e)t.push({slug:n,name:n?.charAt(0).toUpperCase()+n?.slice(1),color:e[n]});return t}}var z=n(3957),F=n(2202);const V=()=>{const e=(0,a.useRef)(null),[t,n]=(0,a.useState)(),[o,s]=(0,a.useState)(),[d,h]=(0,a.useState)(),[m,g]=(0,a.useState)(),[f,_]=(0,a.useState)(""),[v,w]=(0,a.useState)(!1),[y,S]=(0,a.useState)(!0),[E,k]=(0,a.useState)(),{storedPreviewSettings:T,currentData:C,themeStatus:A}=(0,i.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:I,setCurrentOnboardingData:D,updateThemeStatus:O}=(0,i.useDispatch)(c.M);(0,a.useEffect)((()=>{u.Er===A&&(V(),"custom"===C?.data?.colorStyle&&(S(!1),e?.current?.scrollIntoView({behavior:"smooth",block:"end"})))}),[A]);const V=async()=>{const[e,t]=await Promise.all([(0,l.w6)(),(0,l.kt)()]);if(t?.error)return O(u.So);if(e?.error)return O(u.So);let r;var i;n(t?.body.tailored),s(t?.body["custom-picker-grouping"]),""!==C?.data?.colorStyle?(r=null!==(i=T?.settings?.color?.palette)&&void 0!==i?i:e.body[0]?.settings?.color?.palette,"custom"===C?.data?.colorStyle&&(h($(r)),g($(r))),h($(r))):H()};async function H(){const e=await(0,l.w6)(!0);let t;C?.data?.theme?.variation?t=e.body.filter((e=>e.title===C.data.theme.variation))[0]:0===e.body[0]?.id&&(t=e.body[0]),I((0,R.AN)(t,T)),g();const n=t.settings.color.palette;C.data.colorStyle="",D(C),h($(n))}const U=e=>{g(),async function(e){const n=T;let r=T?.settings?.color?.palette;t&&e&&r&&(r=r.map((n=>(t?.[e]?.[n.slug]&&(n.color=t[e][n.slug]),n))),n.settings.color.palette=r,I((0,R.AN)(n,T)))}(e),h(t[e]),L(t[e]),C.data.colorStyle=e,D(C),(0,M.v)(new M.iC(F.Ep,e,{colors:(0,b.g2)(t[e])}))},W=async e=>{const t={...d};if(t[f]=e,o){const n=o[f];n&&n.forEach((n=>{t[n]=e}))}!async function(){const e=T,t=e?.settings?.color?.palette;if(t){for(let e=0;e{m&&void 0!==m[f]&&(t[function(e,t,n){const r=n.findIndex((({slug:t})=>t===e));return-1===r?n.findIndex((({slug:e})=>e===t)):r}(e,f,T?.settings?.color?.palette)].color=m[f])}))}e.settings.color.palette=t,I((0,R.AN)(e,T))}}(),L(t),C.data.colorStyle="custom",D(C),h(t),clearTimeout(E),k(setTimeout((()=>{(0,M.v)(new M.iC(F.Ep,"custom",{colors:(0,b.g2)(t)}))}),1e3)),g(t)},B=e=>{w(!v),_(v?"":e)};return t&&(0,r.createElement)("div",{className:"theme-colors--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Color Palettes","wp-module-onboarding")),Object.keys(t).map(((e,n)=>(0,r.createElement)("div",{key:e,className:x()("color-palette drawer-palette--button",{"color-palette-selected drawer-palette--button--selected":e===C?.data?.colorStyle}),role:"button",tabIndex:n+1,onClick:()=>U(e),onKeyDown:()=>U(e)},(0,r.createElement)("div",{className:"color-palette__colors"},(0,r.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${t[e]?.["header-background"]}`}}),(0,r.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${t[e]?.secondary}`}}),(0,r.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${t[e]?.primary}`}})),(0,r.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},t[e]?.name)))),function(){var t,n,i,a;const o="#fff",s=m&&""!==m?.primary?m.primary:null!==(t=d?.primary)&&void 0!==t?t:o,c=m&&""!==m?.secondary?m.secondary:null!==(n=d?.secondary)&&void 0!==n?n:o,l=m&&""!==m?.["header-background"]?m["header-background"]:null!==(i=d?.["header-background"])&&void 0!==i?i:o;return(0,r.createElement)("div",{className:"custom-palette"},(0,r.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>S(!y),onKeyDown:()=>S(!y)},(0,r.createElement)("div",{className:"custom-palette__top-text"},(0,p.__)("SELECT CUSTOM COLORS","wp-module-onboarding")),y?(0,r.createElement)("div",{className:"custom-palette__top-icon"},"+"):(0,r.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,r.createElement)(P.A,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(y?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,r.createElement)(z.A,{isColorSelected:m,color:null!==(a=m?.base)&&void 0!==a?a:o,slug:"base",name:(0,p.__)("Background","wp-module-onboarding"),callback:B}),(0,r.createElement)(z.A,{isColorSelected:m,color:s,slug:"primary",name:(0,p.__)("Primary","wp-module-onboarding"),callback:B}),(0,r.createElement)(z.A,{isColorSelected:m,color:c,slug:"secondary",name:(0,p.__)("Secondary","wp-module-onboarding"),callback:B}),(0,r.createElement)(z.A,{isColorSelected:m,color:l,slug:"tertiary",name:(0,p.__)("Tertiary","wp-module-onboarding"),callback:B})),m&&(0,r.createElement)(P.A,{type:"fade-in",duration:"300ms"},(0,r.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:H,onKeyDown:H},(0,r.createElement)("div",null,(0,p.__)("Reset","wp-module-onboarding")))),v&&(0,r.createElement)(N.Popover,null,(0,r.createElement)("div",{role:"button",tabIndex:0,className:"custom-palette__picker__close-icon",onClick:()=>w(!1),onKeyDown:()=>w(!1)},"X"),(0,r.createElement)(N.ColorPicker,{onChange:W})))}())};var H=n(8520),U=n(7044);const W=()=>{const[e,t]=(0,a.useState)(),[n,o]=(0,a.useState)(),[s,l]=(0,a.useState)(""),d=(0,_.zy)(),{currentStep:p,currentData:h,themeStatus:g,storedPreviewSettings:f}=(0,i.useSelect)((e=>({currentStep:e(c.M).getStepFromPath(d.pathname),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus(),storedPreviewSettings:e(c.M).getStepPreviewData()})),[]),{setCurrentOnboardingData:v,updateThemeStatus:b,setHeaderMenuData:w}=(0,i.useDispatch)(c.M);return(0,a.useEffect)((()=>{g===u.Er&&(async()=>{const e=await(0,H.O)(p?.data?.patternId);if(e?.error)return b(u.So);const n=e?.body.pageHeaders,r=e?.body.pageFooter,i=e?.body.pageBody;(!h.data.partHeader||""===h.data.partHeader)&&n?.length>0&&(h.data.partHeader=n[0].slug,v(h)),h.data?.partFooter&&""!==h.data?.partFooter||(h.data.partFooter=r.slug,v(h)),l(h.data.partHeader),o(e.body),t(n);let[a,s]=["",""];n?.forEach((e=>{e.slug===h.data.partHeader&&(a=e.content)})),s=a+i,w(s)})()}),[g]),(0,r.createElement)(U._Z,{count:f[p?.data?.patternId]?.previewCount,watch:e,callback:()=>e?.map(((t,i)=>(0,r.createElement)(U.ph,{key:i,className:"theme-header-menu-preview--drawer__list__item",selected:t.slug===s,blockGrammer:t.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async t=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const r=e[t];if(r.slug===s)return!0;l(r.slug),h.data.partHeader=r.slug,v(h);const i=r.content+n.pageBody;w(i);const a=await(0,m.V1)(h);null===a?.error&&v(h),(0,M.v)(new M.iC(F.r2,r.slug))})(i)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},B=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Homepage Design","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),j=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme Style","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show Theme details","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),G=()=>{const[e,t]=(0,a.useState)(),[n,o]=(0,a.useState)(),[s,d]=(0,a.useState)(""),{currentStep:p,currentData:h,storedPreviewSettings:m,themeStatus:g,themeVariations:f}=(0,i.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),currentData:e(c.M).getCurrentOnboardingData(),storedPreviewSettings:e(c.M).getPreviewSettings(),themeStatus:e(c.M).getThemeStatus(),themeVariations:e(c.M).getStepPreviewData()})),[]),{updatePreviewSettings:_,setCurrentOnboardingData:v,updateThemeStatus:b}=(0,i.useDispatch)(c.M);return(0,a.useEffect)((()=>{g===u.Er&&(async()=>{const e=await(0,l.w6)(!0);if(e?.error)return b(u.So);let n;h.data.theme.variation?n=h.data.theme.variation:(n=e.body[0].title,h.data.theme.variation=n,v(h)),d(n);const r=await(0,H.O)(p?.data?.patternId,!0);if(r?.error)return b(u.So);t(r?.body),o(e?.body),document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0]&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0].scrollIntoView({behavior:"smooth",block:"center"})})()}),[g]),(0,r.createElement)("div",{className:"theme-styles-preview--drawer"},(0,r.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,r.createElement)(U._Z,{className:"theme-styles-preview--drawer__list__item",watch:n&&e,count:f[p?.data?.patternId]?.previewCount,callback:()=>n?.map(((t,i)=>(0,r.createElement)(U.ph,{key:i,className:"theme-styles-preview--drawer__list__item",selected:t.title===s,blockGrammer:e,viewportWidth:900,styling:"custom",previewSettings:t,overlay:!1,onClick:()=>(e=>{const t=n[e];if(s===t.title)return!0;_((0,R.AN)(t,m)),d(t.title),h.data.theme.variation=t.title,v(h),(0,M.v)(new M.iC(F.hi,t.title))})(i)}))),viewportWidth:900})))},q=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show contextual help","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),Y=()=>{const e=(0,a.useRef)(),[t,n]=(0,a.useState)(!1),[o,s]=(0,a.useState)(),[d,h]=(0,a.useState)(),{storedPreviewSettings:m,currentData:g,themeStatus:f}=(0,i.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:_,setCurrentOnboardingData:v,updateThemeStatus:b}=(0,i.useDispatch)(c.M);(0,a.useEffect)((()=>{""!==g?.data?.fontStyle&&void 0!==d&&(s(g?.data?.fontStyle),w(g?.data?.fontStyle))}),[d,m]),(0,a.useEffect)((()=>{t||u.Er!==f||(async()=>{const t=await(0,l._t)();if(t?.error)return b(u.So);h(t?.body);const r=m?.settings?.styles[0]?.css;if(r){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",r.match(t))}n(!0)})()}),[t,f]);const w=async(e,t="click")=>{if(o===e)return!0;s(e);const n=m,r=d;n?.styles?.typography?.fontFamily&&n?.styles?.blocks["core/heading"]&&(n.styles.typography.fontFamily=r[e]?.styles?.typography?.fontFamily,n.styles.blocks["core/heading"]={...n.styles.blocks["core/heading"],typography:r[e]?.styles.blocks["core/heading"].typography}),n.styles?.blocks["core/site-title"]?.typography?.fontFamily&&(n.styles.blocks["core/site-title"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),n.styles?.blocks["core/site-tagline"]?.typography?.fontFamily&&(n.styles.blocks["core/site-tagline"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),g.data.fontStyle=e,_((0,R.AN)(n,m)),v(g),"click"===t&&(0,M.v)(new M.iC(F.ce,e))};return(0,r.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Font Palettes","wp-module-onboarding")),d&&Object.keys(d).map(((e,t)=>{var n;const i=d[e]?.label.split("&",2);return 0===i.length?null:(0,r.createElement)("div",{key:e,role:"button",tabIndex:t+1,className:x()("font-palette drawer-palette--button",{"font-palette-selected drawer-palette--button--selected":o===e}),onClick:()=>w(e),onKeyDown:()=>w(e)},(0,r.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:d[e]?.styles?.typography?.fontFamily}},/* translators: text in each font selection pill representing the respective font */ /* translators: text in each font selection pill representing the respective font */ -(0,p.__)("Aa","wp-module-onboarding")),(0,r.createElement)("div",{className:"font-palette__name drawer-palette--button__text"},(0,r.createElement)("span",{style:{fontFamily:d[e]?.styles.blocks["core/heading"].typography.fontFamily}},i[0]),i[1]?"&":"",(0,r.createElement)("span",{style:{fontFamily:d[e]?.styles?.typography?.fontFamily}},null!==(n=i[1])&&void 0!==n?n:"")))})))};var K=n(8558),J=n(1607),Q=n(7677),Z=n(1003);const X=()=>{const{designRoutes:e}=(0,i.useSelect)((e=>({designRoutes:e(c.M).getDesignRoutes()})),[]),{setDrawerActiveView:t}=(0,i.useDispatch)(c.M),n=(0,_.zy)();return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.path,className:x()("nfd-onboarding-drawer__panel-menu-link",{active:n.pathname===e.path||n.pathname.includes(e?.data?.designDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Q.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))};var ee=n(2895);const te=()=>{const e=ee._.steps,{setDrawerActiveView:t}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Q.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},ne=()=>{const{setDrawerActiveView:e}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>e(u.vO)},(0,p.__)("Resume Onboarding","wp-module-onboarding")))},re=()=>{const e=(0,_.zy)(),{topSteps:t}=(0,i.useSelect)((e=>({topSteps:e(c.M).getTopSteps()})),[]),{setDrawerActiveView:n}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(h.A,{buttonClassName:"nfd-onboarding-drawer__panel-back",buttonVariant:"tertiary",origin:"drawer-panel"}),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},t.map((t=>!1!==t.drawerNavigation&&(0,r.createElement)(N.Tooltip,{key:t.path,text:t.data?.tooltipText},(0,r.createElement)("li",{className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)?e.pathname:t.path,className:x()("nfd-onboarding-drawer__panel-menu-link",{active:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t?.drawerView&&n(t.drawerView)},(0,r.createElement)(Q.A,{icon:t.icon}),(0,r.createElement)("span",null,t.title)))))))))};var ie=n(19);const ae=()=>{const e=ie.E.steps,{setDrawerActiveView:t}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Q.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},oe=({children:e})=>{const{setDrawerActiveView:t}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.VG)},(0,p.__)("Design","wp-module-onboarding")),e)},se=()=>{const{isDrawerOpen:e,drawerView:t}=(0,i.useSelect)((e=>{const{isDrawerOpened:t,getActiveDrawerView:n}=e(c.M);return{isDrawerOpen:t(),drawerView:n()}}),[]),{setIsDrawerOpened:n}=(0,i.useDispatch)(c.M);return(0,r.createElement)("div",{className:x()("nfd-onboarding-drawer__panel",{"is-open":e}),role:"button",tabIndex:"0",onKeyDown:e=>{e.keyCode!==K.ESCAPE||e.defaultPrevented||(e.preventDefault(),n(!1))}},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inner"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title"},(0,p.__)("WordPress Onboarding","wp-module-onboarding"))),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-scroll-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inside"},u.vO===t&&(0,r.createElement)(re,null),u.VG===t&&(0,r.createElement)(X,null),u.lf===t&&(0,r.createElement)(te,null),u.eY===t&&(0,r.createElement)(ae,null),u.yY===t&&(0,r.createElement)(ne,null),u.KJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(q,null)),u.Cx===t&&(0,r.createElement)(oe,null,(0,r.createElement)(j,null)),u.PE===t&&(0,r.createElement)(oe,null,(0,r.createElement)(G,null)),u.iQ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(V,null)),u.SJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(Y,null)),u.HJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(W,null)),u.CL===t&&(0,r.createElement)(oe,null,(0,r.createElement)(B,null))))))},ce=({isOpen:e})=>{const{isDrawerOpen:t,isDrawerSuppressed:n,activeDrawerView:o}=(0,i.useSelect)((e=>({isDrawerOpen:e(c.M).isDrawerOpened(),isDrawerSuppressed:e(c.M).isDrawerSuppressed(),activeDrawerView:e(c.M).getActiveDrawerView()})),[]),{setIsDrawerOpened:s}=(0,i.useDispatch)(c.M),l=(0,a.useRef)();return(0,a.useEffect)((()=>{t||l?.current?.focus()}),[t]),o&&(0,r.createElement)(N.__unstableMotion.div,{className:x()("nfd-onboarding-drawer__toggle",{"is-open":t}),whileHover:"expand"},(0,r.createElement)(N.Button,{className:`nfd-onboarding-drawer__toggle-button has-icon ${!n||"is-suppressed"}`,label:(0,p.__)("Toggle Navigation","wp-module-onboarding"),ref:l,"aria-pressed":e,onClick:()=>{n||s(!t)}},(0,r.createElement)("div",{style:{width:"36px",height:"36px",backgroundImage:"var(--nfd-onboarding-icon)",backgroundSize:"contain"}})))},le=(0,a.memo)((({isDefaultOpen:e=!1})=>{const t=(0,o.useViewportMatch)("medium"),{setIsDrawerOpened:n}=(0,i.useDispatch)(c.M);return(0,a.useEffect)((()=>{n(e&&t)}),[e,t,n]),(0,r.createElement)(a.Fragment,null,(0,r.createElement)(ce,null),(0,r.createElement)(se,null))})),ue=()=>{const{isSidebarOpened:e,sideBarView:t,sidebars:n}=(0,i.useSelect)((e=>({isSidebarOpened:e(c.M).isSidebarOpened(),sideBarView:e(c.M).getSidebarView(),sidebars:e(c.M).getSidebars()})));return(0,r.createElement)(a.Fragment,null,(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},n.map((e=>(0,r.createElement)(a.Fragment,{key:e.id},e?.sidebar&&(0,r.createElement)(e.sidebar,null),e?.menu&&(0,r.createElement)(e.menu,null))))),(0,r.createElement)("div",{className:x()("nfd-onboarding-sidebar__panel",{"is-open":e&&t})},(0,r.createElement)("div",{className:"nfd-onboarding-sidebar__panel-inner"},e&&t&&(0,r.createElement)(N.Slot,{name:`${u.St}/${t}`}))))},de=()=>{const{footers:e,footerActiveView:t}=(0,i.useSelect)((e=>({footers:e(c.M).getFooters(),footerActiveView:e(c.M).getFooterActiveView()})));return(0,r.createElement)("div",{className:"nfd-onboarding-footer"},(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},e.map((e=>(0,r.createElement)(a.Fragment,{key:e.id},(0,r.createElement)(e.footer,null))))),(0,r.createElement)("div",{className:"nfd-onboarding-footer__start"},(0,r.createElement)(N.Slot,{name:`${t}/${u.vd}`})),(0,r.createElement)("div",{className:"nfd-onboarding-footer__end"},(0,r.createElement)(N.Slot,{name:`${t}/${u.gb}`})))},pe=n.p+"images/ai_bg.55900f2d.png";var he=n(9269);const me=(0,a.forwardRef)((function({footer:e,header:t,sidebar:n,secondarySidebar:i,notices:s,content:c,drawer:l,actions:d,labels:h,className:m,shortcuts:g,interactionDisabled:f},_){const v=(0,N.__unstableUseNavigateRegions)(g);if("sitegen"===window.nfdOnboarding.currentFlow){const{theme:e}=(0,a.useContext)(he.D);!function(e,t){(0,a.useEffect)((()=>{const n=new Image;n.src=pe,n.onload=()=>{document.querySelector(".nfd-onboarding-skeleton--sitegen")&&(document.querySelector(".nfd-onboarding-skeleton--sitegen").style.background=t?`url('${pe}')`:"#ededed")};const r=document&&document.querySelector(`html:not(.${e})`);if(r)return r.classList.toggle(e),()=>{r.classList.toggle(e)}}),[e,t])}("nfd-interface-interface-skeleton__html-container",e===u.fS)}const b={ -/* translators: accessibility text for the nav bar landmark region. */ -drawer:(0,p.__)("Drawer","wp-module-onboarding"), -/* translators: accessibility text for the top bar landmark region. */ -header:(0,p.__)("Header","wp-module-onboarding"), -/* translators: accessibility text for the content landmark region. */ -body:(0,p.__)("Content","wp-module-onboarding"), -/* translators: accessibility text for the secondary sidebar landmark region. */ -secondarySidebar:(0,p.__)("Block Library","wp-module-onboarding"), -/* translators: accessibility text for the settings landmark region. */ -sidebar:(0,p.__)("Settings","wp-module-onboarding"), -/* translators: accessibility text for the publish landmark region. */ -actions:(0,p.__)("Publish","wp-module-onboarding"), -/* translators: accessibility text for the footer landmark region. */ -footer:(0,p.__)("Footer","wp-module-onboarding"),...h};return(0,r.createElement)("div",{...v,ref:(0,o.useMergeRefs)([_,v.ref]),className:x()(m,"nfd-interface-interface-skeleton",v.className,!!e&&"has-footer")},!!l&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__drawer",role:"region","aria-label":b.drawer,tabIndex:"-1"},l),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__editor"},!!t&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__header",role:"region","aria-label":b.header,tabIndex:"-1"},t),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__body"},!!i&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":b.secondarySidebar,tabIndex:"-1"},i),!!s&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__notices"},s),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__content",role:"region","aria-label":b.body,tabIndex:"-1"},c),!!n&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__sidebar",role:"region","aria-label":b.sidebar,tabIndex:"-1"},n),!!d&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__actions",role:"region","aria-label":b.actions,tabIndex:"-1"},d))),!!e&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__footer",role:"region","aria-label":b.footer,tabIndex:"-1"},e),f&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__overlay--disabled"}))}));var ge=n(9034),fe=n(3731);const _e=(e,t,n,i=!0)=>o=>{const{theme:s}=(0,a.useContext)(he.D),c=s===u.fS,l=void 0===i||i,d=x()(o.className,{[t]:c&&l,[n]:!c&&l});return(0,r.createElement)(e,{...o,className:d})};var ve=n(8559),be=n(1455),we=n.n(be);const ye=()=>{we()({url:`${u.SF}/wp-cron.php`,method:"GET",parse:!1}).catch((e=>{console.error(e)}))};var Se=n(8294),Ee=n(2014),ke=n(5171),Te=n(6188),xe=n(2538);const Ce=()=>{const e=(0,_.zy)(),t=(0,o.useViewportMatch)("medium"),n=(0,C.kebabCase)(e.pathname),{isDrawerOpen:s,newfoldBrand:d,onboardingFlow:p,currentData:h,currentStep:g,lastChapter:f,socialData:S,firstStep:E,allSteps:k,experienceLevel:T,topPriority:N,brandConfig:A,initialize:I,pluginInstallHash:P,instaWpMigrationUrl:R}=(0,i.useSelect)((e=>({isDrawerOpen:e(c.M).isDrawerOpened(),newfoldBrand:e(c.M).getNewfoldBrand(),onboardingFlow:e(c.M).getOnboardingFlow(),currentData:e(c.M).getCurrentOnboardingData(),socialData:e(c.M).getOnboardingSocialData(),firstStep:e(c.M).getFirstStep(),allSteps:e(c.M).getAllSteps(),topPriority:e(c.M).getTopPriority(),experienceLevel:e(c.M).getExperienceLevel(),currentStep:e(c.M).getCurrentStep(),lastChapter:e(c.M).getCurrentChapter(),brandConfig:e(c.M).getNewfoldBrandConfig(),initialize:e(c.M).getInitialize(),pluginInstallHash:e(c.M).getPluginInstallHash(),instaWpMigrationUrl:e(c.M).getinstaWpMigrationUrl()})),[e.pathname]),[$,L]=(0,a.useState)(!1),[z,V]=(0,a.useState)(!1),[H,U]=(0,a.useState)(!1),{setActiveChapter:W,flushQueue:B,enqueueRequest:j,setOnboardingSocialData:G,updateAllSteps:q,updateRoutes:Y,updateTopSteps:K,updateDesignRoutes:J,setCurrentOnboardingData:Q}=(0,i.useDispatch)(c.M);const Z=()=>{g?.path===fe.O?.path&&R&&(0,M.SV)(new M.iC(F.o_,R))};(0,a.useEffect)((()=>{(()=>{Z(),e.pathname===E.path&&(0,M.v)(new M.iC(F.p$));const t=g?.chapter;var n;f!==t&&(f&&(h.data.chapters[f]&&(h.data.chapters[f].completed=!0),(0,M.v)(new M.iC(F.vY,f))),t&&(h.data.chapters[t]&&(h.data.chapters[t].completed=!1),(0,M.v)(new M.iC(F.j7,t))),W(t)),t&&h.data.chapters[t]&&(h.data.chapters[t].lastStep=null!==(n=g?.path)&&void 0!==n?n:"")})()}),[g]),(0,a.useEffect)((()=>{Z()}),[R]),(0,a.useEffect)((()=>{I&&((0,ve.Ts)(P),(0,l.Ts)(),(0,Ee.n_)(),setInterval(ye,45e3))}),[I]),(0,a.useEffect)((()=>{if(!1!==A?.prioritization)return(()=>{const e=window.nfdOnboarding.currentFlow,t=(0,y.Pq)(e),n=(0,b.qn)("chapter");let r;r=n?(0,Te.Ny)(n):(0,Te.py)(t,N,T);const i=(0,y.Sg)(e)(r,n);h.data.chapters=(0,Te.AZ)(t,h.data.chapters,g),Q(h),q(i.steps),K(i.topSteps),Y(i.routes),J(i.designRoutes)})()}),[T,N]),(0,a.useEffect)((()=>{document.body.classList.add(`nfd-brand-${d}`)}),[d]),(0,a.useEffect)((()=>{(async function(){if(h&&e?.pathname!==E?.path&&!$){if(L(!0),H&&await async function(){const{address:e}=h.storeDetails;let t={};void 0!==e&&(delete e.country,delete e.state,t=e),(0,ke.Im)(t)||await(0,ke.mj)(t),delete h.storeDetails.address,delete h.storeDetails.tax,U(!1)}(),z){const e=await async function(){const e=await(0,Ee.mt)(),t=await(0,Ee.oc)(S);return V(!1),null!==t?.error?e?.body:t?.body}();e&&G(e)}B(),j(u.L5.SET_FLOW,(()=>(0,m.V1)(h))),L(!1)}e?.pathname.includes("basic-info")&&V(!0),e?.pathname.includes("ecommerce")&&U(!0)})(),(()=>{const t=window.nfdOnboarding?.previousStep;if("object"!=typeof t)return window.nfdOnboarding.previousStep={path:e.pathname,url:window.location.href},void v.y.dispatchEvents(F.XJ);const n=t.path,r=t.url;if(n.includes("basic-info")){const e=h.data.blogName,t=h.data.blogDescription,n=h.data.siteLogo.url;e&&(0,M.v)(new M.iC(F.rf,e,{},r)),t&&(0,M.v)(new M.iC(F.Fi,t,{},r)),n&&(0,M.v)(new M.iC(F.WT,void 0,{},r));const i=Object.keys((0,xe.Z)(S));i.length&&i.forEach((e=>{(0,M.v)(new M.iC(F.wo,e,{},r))}))}if(n.includes("site-pages")){const e=h.data.sitePages?.other;e&&!1!==e?(0,M.v)(new M.iC(F.o3,e.map((e=>e.key)),{count:e.length},r)):(0,M.v)(new M.iC(F.o3,[],{count:0},r))}if(n.includes("site-features")){const e=h.data.siteFeatures;for(const t in e)!1!==e[t]&&(0,M.v)(new M.iC(F.Zt,t,{},r))}window.nfdOnboarding.previousStep={path:e.pathname,url:window.location.href},v.y.dispatchEvents(F.XJ)})(),function(){if(e?.pathname.includes("colors")||e?.pathname.includes("typography")){const e=(0,w.xG)(k,Se.x.conditionalSteps);q(e.allSteps),h.data.customDesign||(h.data.customDesign=!0,Q(h))}}()}),[e.pathname,p]),(0,a.useEffect)((()=>{(0,M.SV)(new M.iC(F.oA))}),[e.pathname]);const X=g===ge.O||g===fe.O||"sitegen"===window.nfdOnboarding.currentFlow,ee=_e(me,"nfd-onboarding-sitegen-dark","nfd-onboarding-sitegen-light",X),te={className:x()("nfd-onboarding-skeleton",`brand-${d}`,`path-${n}`,{"is-drawer-open":s},{"is-large-viewport":t},{"is-small-viewport":!t},{"nfd-onboarding-skeleton--sitegen":X}),header:(0,r.createElement)(D,null),drawer:(0,r.createElement)(le,null),content:(0,r.createElement)(O,null),sidebar:(0,r.createElement)(ue,null),footer:X?(0,r.createElement)(de,null):null};return ne=X?ee:me,X?(0,r.createElement)(he.N,null,(0,r.createElement)(ne,{...te})):(0,r.createElement)(ne,{...te});var ne};var Ne=n(3582),Ae=n(7708);const Ie=_e(me,"nfd-onboarding-sitegen-dark","nfd-onboarding-sitegen-light"),De=()=>{const[e,t]=(0,a.useState)([]),[n,o]=(0,a.useState)(!1),{currentData:s,initialize:d,pluginInstallHash:p,siteGenErrorStatus:h,interactionDisabled:g,newfoldBrand:f,currentStep:v,lastChapter:b}=(0,i.useSelect)((e=>({currentData:e(c.M).getCurrentOnboardingData(),initialize:e(c.M).getInitialize(),pluginInstallHash:e(c.M).getPluginInstallHash(),siteGenErrorStatus:e(c.M).getSiteGenErrorStatus(),interactionDisabled:e(c.M).getInteractionDisabled(),newfoldBrand:e(c.M).getNewfoldBrand(),currentStep:e(c.M).getCurrentStep(),lastChapter:e(c.M).getCurrentChapter()}))),{setCurrentOnboardingData:w,updateSiteGenErrorStatus:y,setActiveChapter:S,setIsGeneratingHomepages:E}=(0,i.useDispatch)(c.M),{getEditedEntityRecord:k}=(0,i.useSelect)((e=>e(Ne.store)),[]),{editEntityRecord:T}=(0,i.useDispatch)(Ne.store),C=(0,_.zy)(),N=(0,a.useRef)();async function A(e,n,r,i=1){const a=await(0,Ae.iQ)(e,n,r);if(a.error)return ie.includes(n)?e:[...e,n])),(0,M.v)(new M.iC(F.cW,n,{source:I.d0})),!1===h&&(y(!0),o(!1)),void(window.nfdOnboarding.siteGenTimerInterval&&clearInterval(window.nfdOnboarding.siteGenTimerInterval)));if("site_config"===n&&T("root","site",void 0,{title:a.body.site_title,description:a.body.tagline}),s.sitegen.siteGenMetaStatus.currentStatus+=1,s.sitegen.siteGenMetaStatus.currentStatus===s.sitegen.siteGenMetaStatus.totalCount){s.sitegen.skipCache=!1,o(!1),E(!0);const e=await(0,Ae.c7)(s.sitegen.siteDetails.prompt);if(e.error)return(0,M.v)(new M.iC(F.cW,"homepages",{source:I.d0})),y(!0),E(!1),void w(s);s.sitegen.homepages.data=e.body,E(!1)}w(s)}async function P(){if(!0===h||!0===n||!C.pathname.includes("site-logo")&&!C.pathname.includes("experience"))return;if(s.sitegen.siteGenMetaStatus.currentStatus===s.sitegen.siteGenMetaStatus.totalCount)return;if(s.sitegen?.siteGenErrorMeta?.retryCount>=s.sitegen?.siteGenErrorMeta?.maxRetryCount)return void y(!0);let r;o(!0),window.nfdOnboarding?.siteGenTimerInterval||(window.nfdOnboarding.siteGenTime=0,window.nfdOnboarding.siteGenTimerInterval=setInterval((()=>{window.nfdOnboarding.siteGenTime+=1}),1e3)),Array.isArray(e)&&e.length>0?(r=e,t([])):(r=await(0,Ae.kA)(),r=r.body,s.sitegen.siteGenMetaStatus.currentStatus=0,w(s));const i={site_description:s.sitegen?.siteDetails?.prompt},a=s.sitegen?.skipCache;r.forEach((e=>{A(i,e,a)}))}(0,a.useEffect)((()=>{(0,l.Ts)(),(0,Ee.n_)(),k("root","site")}),[]),(0,a.useEffect)((()=>{document.body.classList.add(`nfd-brand-${f}`)}),[f]),(0,a.useEffect)((()=>{$()}),[v]),(0,a.useEffect)((()=>{d&&((0,ve.Ts)(p),setInterval(ye,45e3))}),[d]),(0,a.useEffect)((()=>{!async function(){s&&C?.pathname!==ge.O.path&&(await(0,m.V1)(s)).body}(),P(),R(),(0,M.SV)(new M.iC(F.oA))}),[C.pathname]),(0,a.useEffect)((()=>{!0===N.current&&!1===h&&P(),N.current=h}),[h]);const R=()=>{window.nfdOnboarding;window.nfdOnboarding.previousStep={path:C.pathname,url:window.location.href}},$=()=>{const e=v?.chapter;var t;b!==e&&(b&&(s.data.chapters[b]&&(s.data.chapters[b].completed=!0),(0,M.v)(new M.iC(F.vY,b,{source:I.d0}))),e&&(s.data.chapters[e]&&(s.data.chapters[e].completed=!1),(0,M.v)(new M.iC(F.j7,e,{source:I.d0}))),S(e)),e&&s.data.chapters[e]&&(s.data.chapters[e].lastStep=null!==(t=v?.path)&&void 0!==t?t:"")};return(0,r.createElement)(he.N,null,(0,r.createElement)(Ie,{id:"nfd-onboarding-skeleton--sitegen",className:x()("nfd-onboarding-skeleton--sitegen",`brand-${f}`),header:(0,r.createElement)(D,null),content:(0,r.createElement)(O,null),sidebar:(0,r.createElement)(ue,null),footer:(0,r.createElement)(de,null),interactionDisabled:g}))},Oe=()=>{const[e,t]=(0,a.useState)(!1),{brandConfig:n,onboardingFlow:o}=(0,i.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),onboardingFlow:e(c.M).getOnboardingFlow()})),[]),{setIsDrawerOpened:s,setIsDrawerSuppressed:l,setIsHeaderNavigationEnabled:d,setSidebarActiveView:p,setActiveFlow:h,setActiveStep:g,updateAllSteps:S,updateTopSteps:E,updateRoutes:T,updateInitialize:x}=(0,i.useDispatch)(c.M),C=(0,_.zy)();(0,a.useEffect)((()=>{if(window.nfdOnboarding?.newFlow){const e=window.nfdOnboarding.newFlow;D(),t(e),A(e),window.nfdOnboarding.newFlow=void 0}else C.pathname.includes("/step")&&(h(o),g(C.pathname))}),[C.pathname]);const N=async(e,n=0)=>{if(n>=u.WH)return t(!1);const r=await(0,m.HR)(e);if(r?.error)return N(e,n+=1);await v.y.dispatchEvents();const i=ie.E.steps[0],a=(0,f.getFragment)(window.location.href),o=(0,b.qm)(window.location.href,"flow").replace(a,"");window.location.replace(`${o}#${i.path}`),window.location.reload()},A=async e=>{if((0,w.nC)(n,e))return e===I.eS?N(e):void 0},D=()=>{s(!1),l(!0),d(!1),p(!1)};return(0,r.createElement)(r.Fragment,null,(()=>{if(e===I.eS)return(0,r.createElement)(k,null);switch(window.nfdOnboarding.currentFlow){case I.rA:case I.eS:return(()=>{if(!(0,w.nC)(n,I.d0)){const e=(0,y.Sg)(window.nfdOnboarding.currentFlow)(),t=(0,w.x9)(e.steps,[ge.O]);S(t.allSteps);const n=(0,w.p1)(e?.topSteps,[ge.O]);E(n.topSteps);const r=(0,w.Jp)(e.routes,[ge.O]);T(r.routes),x(!0)}})(),(0,r.createElement)(Ce,null);case I.d0:return(0,r.createElement)(De,null)}})())};var Pe=n(3988),Me=n(7673);const Re=()=>{const e=(0,_.Zp)(),t=(0,o.useViewportMatch)("small"),[n,s]=(0,a.useState)(!1),{setIsHeaderEnabled:l,setSidebarActiveView:d,setHeaderActiveView:h,setDrawerActiveView:g,setHideFooterNav:f,setIsHeaderNavigationEnabled:v,updateAllSteps:b,updateTopSteps:S,updateRoutes:E,updateDesignRoutes:k,updateInitialize:T,setCurrentOnboardingData:C,updateSiteGenErrorStatus:A}=(0,i.useDispatch)(c.M);(0,a.useEffect)((()=>{f(!0),l(!0),h(u.Ix),v(!0),g(!1),d(!1),s(O.sitegen?.siteGenErrorMeta?.retryCount>O.sitegen?.siteGenErrorMeta?.maxRetryCount)}),[]);const{brandConfig:D,currentData:O,currentStep:P,previousStep:M,allSteps:R}=(0,i.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),currentData:e(c.M).getCurrentOnboardingData(),currentStep:e(c.M).getCurrentStep(),previousStep:e(c.M).getPreviousStep(),allSteps:e(c.M).getAllSteps()}))),$=P?.path===fe.O?.path,L=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:I.rA,z=async()=>{A(!1),await(0,m.V1)(O)},F=(V=$?"siteMigrationErrorContent":"siteGenErrorContent",{siteGenErrorContent:{heading:(0,p.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,p.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,p.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,p.__)("Try again","wp-module-onboarding"),buttonSkip:(0,p.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,p.__)("exit to WordPress","wp-module-onboarding")},siteMigrationErrorContent:{heading:(0,p.__)("Sorry, we're having trouble starting the site transfer process.","wp-module-onboarding"),subHeading:(0,p.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,p.__)("If you continue to get this error, please contact our support team at 1-888-401-4678.","wp-module-onboarding"),buttonText:(0,p.__)("Try again","wp-module-onboarding"),buttonExit:(0,p.__)("Go back","wp-module-onboarding")}}[V]||{});var V;return(0,r.createElement)(Pe.A,{className:x()("nfd-onboarding-step--site-gen__error",{"nfd-onboarding-step--site-gen__migrationerror":$})},(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,r.createElement)(Me.A,{height:"100px"})),(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},F.heading)),(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},F.subHeading),(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},F.message,!$&&(0,r.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:u.R0},F.buttonExit))),$?(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(()=>{A(!1);const t=(0,w.x9)(R,[fe.O]);b(t.allSteps),e(M.path)})()}},F.buttonExit),(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{z()}},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText))):(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,w.nC)(D,t))return!1;const n=window.nfdOnboarding.currentFlow,r=(0,y.Sg)(t)();b(r.steps),S(r?.topSteps),E(r.routes),k(r?.designRoutes),I.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,O.activeFlow=t,O.continueWithoutAi=!0,C(O),I.d0!==t&&T(!0),e(r.steps[1].path)})(L)}},F.buttonSkip),t?(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{z()},disabled:!0===n},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText)):(0,r.createElement)(N.Fill,{name:`${u.Sr}/${u.gb}`},(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{z()},disabled:!0===n},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText))))))},$e=({children:e})=>{const{siteGenErrorStatus:t}=(0,i.useSelect)((e=>({currentStepPath:e(c.M).getCurrentStepPath(),siteGenErrorStatus:e(c.M).getSiteGenErrorStatus()})));return(0,r.createElement)(a.Fragment,null,t?(0,r.createElement)(Re,null):e)}},9269:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,N:()=>u});var r=n(1609),i=n(8468),a=n(7143),o=n(7675),s=n(6079),c=n(8969);const l=(0,i.createContext)(),u=({children:e})=>{const{currentData:t}=(0,a.useSelect)((e=>({currentData:e(o.M).getCurrentOnboardingData()}))),n=function(e){return e.sitegenThemeMode?e.sitegenThemeMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?c.fS:c.Vw}(t),[u,d]=(0,i.useState)(n),{setCurrentOnboardingData:p}=(0,a.useDispatch)(o.M);return(0,i.useEffect)((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{const n=e.matches?c.fS:c.Vw;d(n),t.sitegenThemeMode=n,p(t),(0,s.V1)(t)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),(0,r.createElement)(l.Provider,{value:{theme:u,toggleTheme:()=>{d((e=>{const n=e===c.fS?c.Vw:c.fS;return t.sitegenThemeMode=n,p(t),(0,s.V1)(t),n}))}}},e)}},8744:(e,t,n)=>{"use strict";n.d(t,{d0:()=>a,eS:()=>i,rA:()=>r});const r="wp-setup",i="ecommerce",a="sitegen"},6478:(e,t,n)=>{"use strict";n.d(t,{Pq:()=>Te,Tk:()=>ke,FI:()=>ye,o2:()=>Se,Zq:()=>Ee,Sg:()=>xe});var r=n(8744),i=n(6087),a=n(2895),o=n(8294),s=n(7831),c=n(9729),l=n(67),u=n(8468),d=n(2502);const p=(0,u.lazy)((()=>n.e(270).then(n.bind(n,1270)))),h=new d.p({slug:"complete",path:"/wp-setup/step/complete",Component:p});var m=n(7723),g=n(3290),f=n(1609),_=n(7143),v=n(7675),b=n(3474);const w=(0,u.lazy)((()=>n.e(206).then(n.bind(n,3206)))),y=(0,u.lazy)((()=>n.e(672).then(n.bind(n,6672)))),S=(0,u.lazy)((()=>n.e(993).then(n.bind(n,1993)))),E=(0,u.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),k=(0,u.lazy)((()=>n.e(97).then(n.bind(n,9097)))),T=(0,u.lazy)((()=>n.e(508).then(n.bind(n,6508)))),x=(0,u.lazy)((()=>n.e(994).then(n.bind(n,994)))),C=new d.p({slug:"what-next",path:"/wp-setup/step/what-next",title:(0,m.__)("What Next","wp-module-onboarding"),Component:x,icon:g.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:r}=(0,_.useSelect)((e=>({brandName:e(v.M).getNewfoldBrandName(),techSupportLink:e(v.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(v.M).getfullServiceCreativeTeamUrl(),brandConfig:e(v.M).getNewfoldBrandConfig()}))),i=((e,t,n)=>({introduction:{heading:(0,m.__)("What’s Next","wp-module-onboarding"),subheading:(0,m.sprintf)(/* translators: 1: website or store 2: website or store */ /* translators: 1: website or store 2: website or store */ -(0,m.__)("The beginning of your %1$s journey is complete. We’re here to support your next steps and %2$s goals!","wp-module-onboarding"),(0,b.P)("website"),(0,b.P)("website")),icon:g.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-what-next-illustration"},information:{headingWithDescriptions:[{heading:(0,m.__)("Add, adjust and launch!","wp-module-onboarding"),description:(0,m.sprintf)(/* translators: 1: site or store 2: Brand 3: site or store */ /* translators: 1: site or store 2: Brand 3: site or store */ -(0,m.__)("Now that you’ve setup the basics, use WordPress to edit your pages, %1$s design and explore the unlimited destinations you can chart for your %2$s %3$s.","wp-module-onboarding"),(0,b.P)("site"),e,(0,b.P)("site"))},{description:(0,m.sprintf)(/* translators: %s: website */ /* translators: %s: website */ -(0,m.__)("Our support team, %s experts and professional designers are always just a chat or call away if you ever need directions.","wp-module-onboarding"),(0,b.P)("website"))}]},help:{fullService:{text:(0,m.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,m.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,f.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__what-next"},(0,f.createElement)(T,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==r?.views?.sidebar?.illustration?.shown&&(0,f.createElement)(w,{cssIcon:i.illustration.icon,baseClassName:"nfd-onboarding-sidebar-learn-more__what-next",backgroundPosition:"right bottom"}),(0,f.createElement)(y,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,f.createElement)(S,null,!1!==r?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,f.createElement)(E,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,f.createElement)(k,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,m.__)("How else can we help?","wp-module-onboarding")}});var N=n(5573);const A=(0,f.createElement)(N.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(N.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var I=n(3988),D=n(4639),O=n(8969),P=n(9491);class M{constructor({path:e,title:t,Component:n,icon:r}){this.path=e,this.title=t,this.Component=n,this.icon=r}}const R=new M({path:"*",title:(0,m.__)("Error 404","wp-module-onboarding"),Component:()=>{const e=(0,P.useViewportMatch)("medium"),{setIsDrawerOpened:t,setDrawerActiveView:n,setSidebarActiveView:r,setIsDrawerSuppressed:i}=(0,_.useDispatch)(v.M);(0,u.useEffect)((()=>{e&&t(!0),r(O.Qe),i(!1),n(O.yY)}),[]);const a={heading:(0,m.__)("Error 404","wp-module-onboarding"),subheading:(0,m.__)("Please Check Again!","wp-module-onboarding")};return(0,f.createElement)(I.A,{isVerticallyCentered:!0},(0,f.createElement)(D.A,{title:a.heading,subtitle:a.subheading}))},Icon:A});class $ extends d.p{constructor({path:e,title:t,icon:n,drawerView:r,sidebars:i,data:a}){super({path:e,title:t,Component:null,icon:n,drawerView:r,sidebars:i,data:a})}}var L=n(148);const z=new M({path:"/",title:"",Component:()=>{const e=(0,L.Zp)(),{firstStep:t}=(0,_.useSelect)((e=>({firstStep:e(v.M).getFirstStep()})),[]);return(0,u.useEffect)((()=>{e(t.path,{replace:!0,state:{origin:"index-redirect"}})})),(0,f.createElement)(u.Fragment,null)},Icon:(0,f.createElement)(f.Fragment,null)});var F=n(3175),V=n(9034),H=n(3731);const U=[z,R],W=[a._,o.x,s.G,c.q],B=(e=W)=>{let t=[];return t.push(V.O),t.push(l.H),e.forEach((e=>{t=t.concat([...e.steps])})),t=t.concat([h,C]),t},j=(e=W)=>{let t=[...U];return t.push(V.O),t.push(l.H),t.push(H.O),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t=t.concat([h,C]),t},G=e=>{const t=[...e],n=t.findIndex((e=>e.path.includes("/step/get-started")));-1!==n&&(t[n]=(e=>{const t={...e};return t.title=(0,m.__)("Get Started","wp-module-onboarding"),t.data.tooltipText=(0,m.__)("Get Started","wp-module-onboarding"),t.data.primaryDrawerActiveLinkIncludes="/wp-setup/step/get-started/",new $(t)})(e[n]));const r=t.findIndex((e=>e.path.includes("/step/design")));return-1!==r&&(t[r]=(e=>{const t={...e};return t.title=(0,m.__)("Design","wp-module-onboarding"),t.icon=F.A,t.data.primaryDrawerActiveLinkIncludes="/wp-setup/step/design/",new $(t)})(t[r])),(0,i.filter)(t,(e=>e instanceof $||!e.path.includes("/step/get-started")&&!e.path.includes("/step/design")&&!e.path.includes("/step/complete")&&!e.path.includes("/step/interstitial")))},q=e=>{const t=[...e];return(0,i.filter)(t,(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview")))};var Y=n(19),K=n(8690);const J=[z,R],Q=[a._,Y.E,o.x,s.G,c.q],Z=(e=Q)=>{let t=[];return t.push(V.O),t.push(l.H),e.forEach((e=>{t=t.concat([...e.steps])})),t=t.concat([h,C]),(0,i.filter)(t,(e=>!e.path.includes("/wp-setup/step/top-priority")))},X=(e=Q)=>{let t=[...J];return t.push(V.O),t.push(l.H),t.push(H.O),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t=t.concat([h,C]),(0,i.filter)(t,(e=>!e.path.includes("/wp-setup/step/top-priority")))},ee=e=>{const t=(e=G(e)).findIndex((e=>e.path.includes("/ecommerce/step")));return-1!==t&&(e[t]=(e=>{const t={...e};return t.title=(0,m.__)("Store Info","wp-module-onboarding"),t.icon=K.A,t.data.primaryDrawerActiveLinkIncludes="/ecommerce/step/",new $(t)})(e[t])),(0,i.filter)(e,(e=>e instanceof $||!e.path.includes("/ecommerce/step")&&!e.path.includes("/wp-setup/step/top-priority")))};var te=n(7767),ne=n(4487),re=n(5822);const ie=(0,u.lazy)((()=>n.e(619).then(n.bind(n,619)))),ae=[new d.p({slug:"sitegen-preview",path:"/sitegen/step/preview",title:(0,m.__)("Page Layouts","wp-module-onboarding"),Component:ie,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}}),ne.b],oe=new te.I({id:O.$P,name:(0,m.__)("Sitegen Design","wp-module-onboarding"),steps:ae}),se=(0,u.lazy)((()=>n.e(287).then(n.bind(n,5287)))),ce=[new d.p({slug:"sitegen-experience",path:"/sitegen/step/experience",title:(0,m.__)("Page Layouts","wp-module-onboarding"),Component:se,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}})],le=new te.I({id:O.W6,name:(0,m.__)("Sitegen Features","wp-module-onboarding"),steps:ce}),ue=(0,u.lazy)((()=>n.e(705).then(n.bind(n,8705)))),de=new d.p({slug:"sitegen-site-details",path:"/sitegen/step/site-details",title:(0,m.__)("Site Details","wp-module-onboarding"),Component:ue,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}}),pe=(0,u.lazy)((()=>n.e(996).then(n.bind(n,9996)))),he=[de,new d.p({slug:"sitegen-site-logo",path:"/sitegen/step/site-logo",title:(0,m.__)("Page Layouts","wp-module-onboarding"),Component:pe,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}})],me=new te.I({id:O.qy,name:(0,m.__)("Sitegen Core","wp-module-onboarding"),steps:he}),ge=[z,R],fe=[me,le,oe],_e=(e=fe)=>{let t=[];return t.push(V.O),e.forEach((e=>{t=t.concat([...e.steps])})),t},ve=(e=fe)=>{let t=[...ge];return t.push(V.O,H.O),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t},be=()=>{var e;return null!==(e=window.nfdOnboarding.currentFlow)&&void 0!==e?e:r.rA},we={[r.rA]:{getRoutes:j,getSteps:B,getTopSteps:G,chapters:W,getData:(e=W,t=!1)=>{let n=B(e),r=j(e);return t&&(n=n.filter((e=>!e.path.includes("/interstitial"))),r=r.filter((e=>!e.path.includes("/interstitial")))),{steps:n,routes:r,topSteps:G(n),designRoutes:q(r)}},getDesignRoutes:q},[r.eS]:{getRoutes:X,getSteps:Z,getTopSteps:ee,chapters:Q,getData:(e=Q)=>{const t=Z(e),n=X(e);return{steps:t,routes:n,topSteps:ee(t),designRoutes:q(n)}},getDesignRoutes:q},[r.d0]:{getRoutes:ve,getSteps:_e,chapters:fe,getData:()=>({steps:_e(),routes:ve()}),getTopSteps:()=>[],getDesignRoutes:()=>[]}},ye=we[be()].getRoutes(),Se=we[be()].getSteps(),Ee=we[be()].getTopSteps(Se),ke=we[be()].getDesignRoutes(ye),Te=e=>we[e].chapters,xe=(we[be()].getRoutes,we[be()].getSteps,we[be()].getTopSteps,e=>(e=e||be(),we[e].getData));we[be()].getDesignRoutes},2940:(e,t,n)=>{"use strict";n.d(t,{Jp:()=>p,Ti:()=>l,gK:()=>h,nC:()=>u,p1:()=>d,x9:()=>s,xG:()=>o});var r=n(6087),i=n(1869),a=n(3731);const o=(e,t)=>{const n=s(e,t),r=[...t];return{allSteps:c(n.allSteps,i.S,r)}},s=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{allSteps:(0,r.filter)(e,(e=>!n.has(e.path)))}},c=(e,t,n)=>{const r=e.findIndex((e=>e.path===t.path));return e.splice(r+1,0,...n),e},l=(e,t,n)=>{const r=e.findIndex((e=>e.id===t.id));return e.splice(r+1,0,n),e},u=(e,t)=>{var n;const r=null!==(n=e?.enabled_flows)&&void 0!==n?n:{};return t in r&&!0===r[t]},d=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{topSteps:(0,r.filter)(e,(e=>!n.has(e.path)))}},p=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{routes:(0,r.filter)(e,(e=>!n.has(e.path)))}},h=(e,t)=>({allSteps:c(e,t,[a.O])})},7767:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});class r{constructor({id:e,name:t,steps:n,conditionalSteps:r=[],initialSteps:i=[],topSteps:a=[],interstitialSteps:o=[]}){this.id=e,this.name=t,this.steps=n.map((e=>(e.chapter=this.id,e))),this.conditionalSteps=r.map((e=>(e.chapter=this.id,e))),this.initialSteps=i,this.topSteps=a,this.interstitialSteps=o}}},2502:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});class r{constructor({slug:e,path:t,title:n,Component:r,icon:i,drawerView:a,sidebars:o,header:s,data:c,drawerNavigation:l}){this.slug=e,this.path=t,this.title=n,this.Component=r,this.icon=i,this.drawerView=a,this.sidebars=o,this.data=c,this.header=s,this.drawerNavigation=null==l||l}}},1869:(e,t,n)=>{"use strict";n.d(t,{S:()=>w});var r=n(7589),i=n(8468),a=n(7723),o=n(2502),s=n(1609),c=n(7143),l=n(7675),u=n(3474),d=n(3175);const p=(0,i.lazy)((()=>n.e(206).then(n.bind(n,3206)))),h=(0,i.lazy)((()=>n.e(672).then(n.bind(n,6672)))),m=(0,i.lazy)((()=>n.e(993).then(n.bind(n,1993)))),g=(0,i.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),f=(0,i.lazy)((()=>n.e(97).then(n.bind(n,9097)))),_=(0,i.lazy)((()=>n.e(508).then(n.bind(n,6508))));var v=n(8969);const b=(0,i.lazy)((()=>n.e(367).then(n.bind(n,367)))),w=new o.p({slug:"design-theme-styles-preview",path:"/wp-setup/step/design/theme-styles/preview",title:(0,a.__)("Theme Styles","wp-module-onboarding"),Component:b,icon:r.A,drawerView:v.PE,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:r}=(0,c.useSelect)((e=>({brandName:e(l.M).getNewfoldBrandName(),techSupportLink:e(l.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.M).getfullServiceCreativeTeamUrl(),brandConfig:e(l.M).getNewfoldBrandConfig()}))),i=((e,t,n)=>({introduction:{heading:(0,a.__)("Theme Styles","wp-module-onboarding"),subheading:(0,a.__)("Professionally-designed website templates ready for their public debut featuring your great ideas.","wp-module-onboarding"),icon:d.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Show the web you have style with modern colors and elevated fonts","wp-module-onboarding"),description:(0,a.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ -(0,a.__)("Pick one of these professionally-designed website styles to start your %1$s %2$s.","wp-module-onboarding"),e,(0,u.P)("site"))},{description:(0,a.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ -(0,a.__)("In the next steps and in the future, you can change the specific colors and fonts to fit your aesthetic vision for your %s.","wp-module-onboarding"),(0,u.P)("site"))}]},help:{fullService:{text:(0,a.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,a.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-theme-styles-preview"},(0,s.createElement)(_,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==r?.views?.sidebar?.illustration?.shown&&(0,s.createElement)(p,{cssIcon:i.illustration.icon}),(0,s.createElement)(h,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,s.createElement)(m,null,!1!==r?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,s.createElement)(g,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,s.createElement)(f,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles"}})},67:(e,t,n)=>{"use strict";n.d(t,{H:()=>w});var r=n(9572),i=n(8468),a=n(1609),o=n(7143),s=n(7675),c=n(7723),l=n(3474);const u=(0,i.lazy)((()=>n.e(206).then(n.bind(n,3206)))),d=(0,i.lazy)((()=>n.e(672).then(n.bind(n,6672)))),p=(0,i.lazy)((()=>n.e(993).then(n.bind(n,1993)))),h=(0,i.lazy)((()=>Promise.resolve().then(n.bind(n,6517)))),m=(0,i.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),g=(0,i.lazy)((()=>n.e(97).then(n.bind(n,9097)))),f=(0,i.lazy)((()=>n.e(508).then(n.bind(n,6508))));var _=n(2502),v=n(8969);const b=(0,i.lazy)((()=>n.e(51).then(n.bind(n,4051)))),w=new _.p({slug:"get-started-welcome",path:"/wp-setup/step/get-started/welcome",title:(0,c.__)("Welcome","wp-module-onboarding"),Component:b,icon:r.A,drawerView:v.lf,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,expertsLink:t,techSupportLink:n,fullServiceCreativeTeamLink:i,brandConfig:_}=(0,o.useSelect)((e=>({brandName:e(s.M).getNewfoldBrandName(),expertsLink:e(s.M).getExpertsUrl(),techSupportLink:e(s.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(s.M).getfullServiceCreativeTeamUrl(),brandConfig:e(s.M).getNewfoldBrandConfig()}))),v=((e,t,n,i)=>({introduction:{heading:(0,c.__)("Start Setup","wp-module-onboarding"),subheading:(0,c.sprintf)(/* translators: 1: Brand 2: website or store */ /* translators: 1: Brand 2: website or store */ -(0,c.__)("Lay the foundation for a successful %1$s %2$s using our WordPress Onboarding. ","wp-module-onboarding"),e,(0,l.P)("website")),icon:r.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration"},information:{headingWithDescriptions:[{heading:(0,c.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ -(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(4097),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}"] > div.block-editor-block-preview__container > div > div > .block-editor-iframe__scale-container > iframe`)||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:[]}}})},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:()=>Q,getHideFooterNav:()=>ne,getHireExpertsUrl:()=>se,getInitialize:()=>Ie,getInteractionDisabled:()=>Ke,getIsFooterNavAllowed:()=>te,getIsFreshInstallation:()=>Je,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:()=>J,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 J(e){return e.header.isEnabled}function Q(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 Je(e){return e.runtime.isFreshInstallation}var Qe=n(7143),Ze=n(8969),Xe=n(6478),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,Qe.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,Qe.createReduxStore)("newfold/onboarding",pt);(0,Qe.register)(ht)},2202:(e,t,n)=>{"use strict";n.d(t,{DN:()=>g,Dl:()=>L,Ep:()=>p,Fi:()=>b,Hf:()=>I,N0:()=>o,Nz:()=>D,Qh:()=>x,Qp:()=>N,TH:()=>O,Vg:()=>i,WN:()=>C,WT:()=>w,Wi:()=>A,XJ:()=>$,Zt:()=>_,aq:()=>l,cB:()=>P,cW:()=>R,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:()=>M,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="logo_skipped",A="homepage_selected",I="homepage_regenerated",D="homepage_favorited",O="homepage_renamed",P="sidebar_opened",M="site_generation_time",R="error_state_triggered",$="wonder_start",L={[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",social_connected:"platform",[A]:"version",[I]:"version",[D]:"version",[P]:"type",[O]:"version",[M]:"time",[T]:"path",[R]:"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:()=>Q,fS:()=>ce,g5:()=>p,gR:()=>ee,gb:()=>H,h0:()=>u,iQ:()=>S,jK:()=>O,lf:()=>x,lp:()=>B,me:()=>z,mp:()=>J,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",J="inactive",Q="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.8"}}},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__,J=[];function Q(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 Je="sentry.source",Qe="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[Qe];null!=s&&(n.sample_rate=`${s}`);const c=o[Je];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",Jt=globalThis;function Qt(e,t,n){const r=n||Jt,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 Jt))return e();const t=Jt.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]}))}}((()=>{Jt.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=Jt,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=Jt;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 Jn(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=Qn(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=Qn(e,t,n,r),j(a,`${t}`,void 0),G(a,{synthetic:!0}),a)}function Qn(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=Jn(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=Qn(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=Jt,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}=Jt;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}=Jt;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}(Jn(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)}`}]}}:Jn(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=Jr(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 Jr(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(k(r[i],Error)){Qr(o,s);const a=e(t,r[i]),l=c.length;Zr(a,i,l,s),c=Jr(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,a)=>{if(k(r,Error)){Qr(o,s);const l=e(t,r),u=c.length;Zr(l,`errors[${a}]`,u,s),c=Jr(e,t,n,r,i,[l,...c],l,u)}})),c}function Qr(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:Q(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(Jt),Jt}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(Qt("defaultCurrentScope",(()=>new Ti)),Qt("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:Qi(c),op:r[zi],origin:r[Fi],_metrics_summary:Ri(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Ji(e){const{traceFlags:t}=e.spanContext();return t===ji}function Qi(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(Ji(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:Qi(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)&&Ji(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]&&Ji(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=Ji(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=Ji(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}))},Ja=[200,500],Qa=()=>(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(Qa()/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,Ja,t.reportAllChanges),a&&("PerformanceEventTiming"in bn&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Pa((()=>{i(a.takeRecords()),n.value<0&&Qa()>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[Je],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 Jo="__SENTRY_SUPPRESS_TRACING__";function Qo(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[Jo]&&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[Jo]?[!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?Qo({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?Qo({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[Je]="custom",r.attributes=c),_.name=r.name,_.source=c[Je];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:{[Je]:"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:{[Je]:"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:{[Je]: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(6478),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 Js=`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:Js,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.8/100.css b/build/2.3.9/100.css similarity index 100% rename from build/2.3.8/100.css rename to build/2.3.9/100.css diff --git a/build/2.3.8/100.js b/build/2.3.9/100.js similarity index 100% rename from build/2.3.8/100.js rename to build/2.3.9/100.js diff --git a/build/2.3.8/202.js b/build/2.3.9/202.js similarity index 100% rename from build/2.3.8/202.js rename to build/2.3.9/202.js diff --git a/build/2.3.8/206.js b/build/2.3.9/206.js similarity index 100% rename from build/2.3.8/206.js rename to build/2.3.9/206.js diff --git a/build/2.3.8/218.js b/build/2.3.9/218.js similarity index 100% rename from build/2.3.8/218.js rename to build/2.3.9/218.js diff --git a/build/2.3.8/270.js b/build/2.3.9/270.js similarity index 100% rename from build/2.3.8/270.js rename to build/2.3.9/270.js diff --git a/build/2.3.8/287.js b/build/2.3.9/287.js similarity index 100% rename from build/2.3.8/287.js rename to build/2.3.9/287.js diff --git a/build/2.3.8/325.js b/build/2.3.9/325.js similarity index 100% rename from build/2.3.8/325.js rename to build/2.3.9/325.js diff --git a/build/2.3.8/328.js b/build/2.3.9/328.js similarity index 100% rename from build/2.3.8/328.js rename to build/2.3.9/328.js diff --git a/build/2.3.8/340.js b/build/2.3.9/340.js similarity index 100% rename from build/2.3.8/340.js rename to build/2.3.9/340.js diff --git a/build/2.3.8/356.js b/build/2.3.9/356.js similarity index 100% rename from build/2.3.8/356.js rename to build/2.3.9/356.js diff --git a/build/2.3.8/366.js b/build/2.3.9/366.js similarity index 100% rename from build/2.3.8/366.js rename to build/2.3.9/366.js diff --git a/build/2.3.8/367.js b/build/2.3.9/367.js similarity index 100% rename from build/2.3.8/367.js rename to build/2.3.9/367.js diff --git a/build/2.3.8/396.css b/build/2.3.9/396.css similarity index 100% rename from build/2.3.8/396.css rename to build/2.3.9/396.css diff --git a/build/2.3.8/396.js b/build/2.3.9/396.js similarity index 100% rename from build/2.3.8/396.js rename to build/2.3.9/396.js diff --git a/build/2.3.8/40.js b/build/2.3.9/40.js similarity index 100% rename from build/2.3.8/40.js rename to build/2.3.9/40.js diff --git a/build/2.3.8/403.js b/build/2.3.9/403.js similarity index 100% rename from build/2.3.8/403.js rename to build/2.3.9/403.js diff --git a/build/2.3.8/426.js b/build/2.3.9/426.js similarity index 100% rename from build/2.3.8/426.js rename to build/2.3.9/426.js diff --git a/build/2.3.8/508.js b/build/2.3.9/508.js similarity index 100% rename from build/2.3.8/508.js rename to build/2.3.9/508.js diff --git a/build/2.3.8/51.js b/build/2.3.9/51.js similarity index 100% rename from build/2.3.8/51.js rename to build/2.3.9/51.js diff --git a/build/2.3.8/546.js b/build/2.3.9/546.js similarity index 100% rename from build/2.3.8/546.js rename to build/2.3.9/546.js diff --git a/build/2.3.8/560.js b/build/2.3.9/560.js similarity index 100% rename from build/2.3.8/560.js rename to build/2.3.9/560.js diff --git a/build/2.3.8/585.js b/build/2.3.9/585.js similarity index 100% rename from build/2.3.8/585.js rename to build/2.3.9/585.js diff --git a/build/2.3.8/595.js b/build/2.3.9/595.js similarity index 100% rename from build/2.3.8/595.js rename to build/2.3.9/595.js diff --git a/build/2.3.8/619.js b/build/2.3.9/619.js similarity index 100% rename from build/2.3.8/619.js rename to build/2.3.9/619.js diff --git a/build/2.3.8/627.js b/build/2.3.9/627.js similarity index 100% rename from build/2.3.8/627.js rename to build/2.3.9/627.js diff --git a/build/2.3.8/672.js b/build/2.3.9/672.js similarity index 100% rename from build/2.3.8/672.js rename to build/2.3.9/672.js diff --git a/build/2.3.8/705.js b/build/2.3.9/705.js similarity index 100% rename from build/2.3.8/705.js rename to build/2.3.9/705.js diff --git a/build/2.3.8/761.js b/build/2.3.9/761.js similarity index 100% rename from build/2.3.8/761.js rename to build/2.3.9/761.js diff --git a/build/2.3.8/796.js b/build/2.3.9/796.js similarity index 100% rename from build/2.3.8/796.js rename to build/2.3.9/796.js diff --git a/build/2.3.8/803.js b/build/2.3.9/803.js similarity index 100% rename from build/2.3.8/803.js rename to build/2.3.9/803.js diff --git a/build/2.3.9/841.js b/build/2.3.9/841.js new file mode 100644 index 000000000..01428746f --- /dev/null +++ b/build/2.3.9/841.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[841],{1852:(e,a,n)=>{n.d(a,{A:()=>A});var o=n(1609),d=n(148),m=n(7143),c=n(7675),t=n(264),r=n(6079),i=n(8969),s=n(1056),l=n(2202),u=n(8559),S=n(6942),C=n.n(S),T=n(7677);const A=({text:e,disabled:a,className:n,icon:S})=>{const A=(0,d.Zp)(),{nextStep:B,currentData:h}=(0,m.useSelect)((e=>({nextStep:e(c.M).getNextStep(),currentData:e(c.M).getCurrentOnboardingData()})),[]),N=null===B||!1===B;return(0,o.createElement)(t.A,{className:C()("nfd-nav-card-button",n),handleClick:()=>N?async function(){h&&(h.isComplete=(new Date).getTime(),h.data.siteOverrideConsent=!1,(0,r.V1)(h)),(0,u.YR)(),(0,s.SV)(new s.iC(l.Vg)),window.location.replace(i.R0)}():A(B.path),disabled:a},(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:`${n}__text`},e),S&&(0,o.createElement)(T.A,{className:`${n}__icon`,icon:S})))}},1841:(e,a,n)=>{n.r(a),n.d(a,{default:()=>N});var o=n(1609),d=n(9491),m=n(7143),c=n(8468),t=n(8969),r=n(9927),i=n(3988),s=n(9889),l=n(5842),u=n(7675);const S=JSON.parse('[{"code":"AF","name":"Afghanistan","states":[]},{"code":"AX","name":"Åland Islands","states":[]},{"code":"DZ","name":"Algeria","states":[{"code":"DZ-01","name":"Adrar"},{"code":"DZ-02","name":"Chlef"},{"code":"DZ-03","name":"Laghouat"},{"code":"DZ-04","name":"Oum El Bouaghi"},{"code":"DZ-05","name":"Batna"},{"code":"DZ-06","name":"Béjaïa"},{"code":"DZ-07","name":"Biskra"},{"code":"DZ-08","name":"Béchar"},{"code":"DZ-09","name":"Blida"},{"code":"DZ-10","name":"Bouira"},{"code":"DZ-11","name":"Tamanghasset"},{"code":"DZ-12","name":"Tébessa"},{"code":"DZ-13","name":"Tlemcen"},{"code":"DZ-14","name":"Tiaret"},{"code":"DZ-15","name":"Tizi Ouzou"},{"code":"DZ-16","name":"Algiers"},{"code":"DZ-17","name":"Djelfa"},{"code":"DZ-18","name":"Jijel"},{"code":"DZ-19","name":"Sétif"},{"code":"DZ-20","name":"Saïda"},{"code":"DZ-21","name":"Skikda"},{"code":"DZ-22","name":"Sidi Bel Abbès"},{"code":"DZ-23","name":"Annaba"},{"code":"DZ-24","name":"Guelma"},{"code":"DZ-25","name":"Constantine"},{"code":"DZ-26","name":"Médéa"},{"code":"DZ-27","name":"Mostaganem"},{"code":"DZ-28","name":"M’Sila"},{"code":"DZ-29","name":"Mascara"},{"code":"DZ-30","name":"Ouargla"},{"code":"DZ-31","name":"Oran"},{"code":"DZ-32","name":"El Bayadh"},{"code":"DZ-33","name":"Illizi"},{"code":"DZ-34","name":"Bordj Bou Arréridj"},{"code":"DZ-35","name":"Boumerdès"},{"code":"DZ-36","name":"El Tarf"},{"code":"DZ-37","name":"Tindouf"},{"code":"DZ-38","name":"Tissemsilt"},{"code":"DZ-39","name":"El Oued"},{"code":"DZ-40","name":"Khenchela"},{"code":"DZ-41","name":"Souk Ahras"},{"code":"DZ-42","name":"Tipasa"},{"code":"DZ-43","name":"Mila"},{"code":"DZ-44","name":"Aïn Defla"},{"code":"DZ-45","name":"Naama"},{"code":"DZ-46","name":"Aïn Témouchent"},{"code":"DZ-47","name":"Ghardaïa"},{"code":"DZ-48","name":"Relizane"}]},{"code":"AS","name":"American Samoa","states":[]},{"code":"AD","name":"Andorra","states":[]},{"code":"AO","name":"Angola","states":[{"code":"BGO","name":"Bengo"},{"code":"BLU","name":"Benguela"},{"code":"BIE","name":"Bié"},{"code":"CAB","name":"Cabinda"},{"code":"CNN","name":"Cunene"},{"code":"HUA","name":"Huambo"},{"code":"HUI","name":"Huíla"},{"code":"CCU","name":"Kuando Kubango"},{"code":"CNO","name":"Kwanza-Norte"},{"code":"CUS","name":"Kwanza-Sul"},{"code":"LUA","name":"Luanda"},{"code":"LNO","name":"Lunda-Norte"},{"code":"LSU","name":"Lunda-Sul"},{"code":"MAL","name":"Malanje"},{"code":"MOX","name":"Moxico"},{"code":"NAM","name":"Namibe"},{"code":"UIG","name":"Uíge"},{"code":"ZAI","name":"Zaire"}]},{"code":"AI","name":"Anguilla","states":[]},{"code":"AQ","name":"Antarctica","states":[]},{"code":"AG","name":"Antigua and Barbuda","states":[]},{"code":"AR","name":"Argentina","states":[{"code":"C","name":"Ciudad Autónoma de Buenos Aires"},{"code":"B","name":"Buenos Aires"},{"code":"K","name":"Catamarca"},{"code":"H","name":"Chaco"},{"code":"U","name":"Chubut"},{"code":"X","name":"Córdoba"},{"code":"W","name":"Corrientes"},{"code":"E","name":"Entre Ríos"},{"code":"P","name":"Formosa"},{"code":"Y","name":"Jujuy"},{"code":"L","name":"La Pampa"},{"code":"F","name":"La Rioja"},{"code":"M","name":"Mendoza"},{"code":"N","name":"Misiones"},{"code":"Q","name":"Neuquén"},{"code":"R","name":"Río Negro"},{"code":"A","name":"Salta"},{"code":"J","name":"San Juan"},{"code":"D","name":"San Luis"},{"code":"Z","name":"Santa Cruz"},{"code":"S","name":"Santa Fe"},{"code":"G","name":"Santiago del Estero"},{"code":"V","name":"Tierra del Fuego"},{"code":"T","name":"Tucumán"}]},{"code":"AM","name":"Armenia","states":[]},{"code":"AW","name":"Aruba","states":[]},{"code":"AU","name":"Australia","states":[{"code":"ACT","name":"Australian Capital Territory"},{"code":"NSW","name":"New South Wales"},{"code":"NT","name":"Northern Territory"},{"code":"QLD","name":"Queensland"},{"code":"SA","name":"South Australia"},{"code":"TAS","name":"Tasmania"},{"code":"VIC","name":"Victoria"},{"code":"WA","name":"Western Australia"}]},{"code":"AT","name":"Austria","states":[]},{"code":"AZ","name":"Azerbaijan","states":[]},{"code":"BS","name":"Bahamas","states":[]},{"code":"BH","name":"Bahrain","states":[]},{"code":"BD","name":"Bangladesh","states":[{"code":"BD-05","name":"Bagerhat"},{"code":"BD-01","name":"Bandarban"},{"code":"BD-02","name":"Barguna"},{"code":"BD-06","name":"Barishal"},{"code":"BD-07","name":"Bhola"},{"code":"BD-03","name":"Bogura"},{"code":"BD-04","name":"Brahmanbaria"},{"code":"BD-09","name":"Chandpur"},{"code":"BD-10","name":"Chattogram"},{"code":"BD-12","name":"Chuadanga"},{"code":"BD-11","name":"Cox\'s Bazar"},{"code":"BD-08","name":"Cumilla"},{"code":"BD-13","name":"Dhaka"},{"code":"BD-14","name":"Dinajpur"},{"code":"BD-15","name":"Faridpur "},{"code":"BD-16","name":"Feni"},{"code":"BD-19","name":"Gaibandha"},{"code":"BD-18","name":"Gazipur"},{"code":"BD-17","name":"Gopalganj"},{"code":"BD-20","name":"Habiganj"},{"code":"BD-21","name":"Jamalpur"},{"code":"BD-22","name":"Jashore"},{"code":"BD-25","name":"Jhalokati"},{"code":"BD-23","name":"Jhenaidah"},{"code":"BD-24","name":"Joypurhat"},{"code":"BD-29","name":"Khagrachhari"},{"code":"BD-27","name":"Khulna"},{"code":"BD-26","name":"Kishoreganj"},{"code":"BD-28","name":"Kurigram"},{"code":"BD-30","name":"Kushtia"},{"code":"BD-31","name":"Lakshmipur"},{"code":"BD-32","name":"Lalmonirhat"},{"code":"BD-36","name":"Madaripur"},{"code":"BD-37","name":"Magura"},{"code":"BD-33","name":"Manikganj "},{"code":"BD-39","name":"Meherpur"},{"code":"BD-38","name":"Moulvibazar"},{"code":"BD-35","name":"Munshiganj"},{"code":"BD-34","name":"Mymensingh"},{"code":"BD-48","name":"Naogaon"},{"code":"BD-43","name":"Narail"},{"code":"BD-40","name":"Narayanganj"},{"code":"BD-42","name":"Narsingdi"},{"code":"BD-44","name":"Natore"},{"code":"BD-45","name":"Nawabganj"},{"code":"BD-41","name":"Netrakona"},{"code":"BD-46","name":"Nilphamari"},{"code":"BD-47","name":"Noakhali"},{"code":"BD-49","name":"Pabna"},{"code":"BD-52","name":"Panchagarh"},{"code":"BD-51","name":"Patuakhali"},{"code":"BD-50","name":"Pirojpur"},{"code":"BD-53","name":"Rajbari"},{"code":"BD-54","name":"Rajshahi"},{"code":"BD-56","name":"Rangamati"},{"code":"BD-55","name":"Rangpur"},{"code":"BD-58","name":"Satkhira"},{"code":"BD-62","name":"Shariatpur"},{"code":"BD-57","name":"Sherpur"},{"code":"BD-59","name":"Sirajganj"},{"code":"BD-61","name":"Sunamganj"},{"code":"BD-60","name":"Sylhet"},{"code":"BD-63","name":"Tangail"},{"code":"BD-64","name":"Thakurgaon"}]},{"code":"BB","name":"Barbados","states":[]},{"code":"PW","name":"Belau","states":[]},{"code":"BE","name":"Belgium","states":[]},{"code":"BZ","name":"Belize","states":[]},{"code":"BJ","name":"Benin","states":[{"code":"AL","name":"Alibori"},{"code":"AK","name":"Atakora"},{"code":"AQ","name":"Atlantique"},{"code":"BO","name":"Borgou"},{"code":"CO","name":"Collines"},{"code":"KO","name":"Kouffo"},{"code":"DO","name":"Donga"},{"code":"LI","name":"Littoral"},{"code":"MO","name":"Mono"},{"code":"OU","name":"Ouémé"},{"code":"PL","name":"Plateau"},{"code":"ZO","name":"Zou"}]},{"code":"BM","name":"Bermuda","states":[]},{"code":"BT","name":"Bhutan","states":[]},{"code":"BO","name":"Bolivia","states":[{"code":"BO-B","name":"Beni"},{"code":"BO-H","name":"Chuquisaca"},{"code":"BO-C","name":"Cochabamba"},{"code":"BO-L","name":"La Paz"},{"code":"BO-O","name":"Oruro"},{"code":"BO-N","name":"Pando"},{"code":"BO-P","name":"Potosí"},{"code":"BO-S","name":"Santa Cruz"},{"code":"BO-T","name":"Tarija"}]},{"code":"BQ","name":"Bonaire, Saint Eustatius and Saba","states":[]},{"code":"BW","name":"Botswana","states":[]},{"code":"BV","name":"Bouvet Island","states":[]},{"code":"BR","name":"Brazil","states":[{"code":"AC","name":"Acre"},{"code":"AL","name":"Alagoas"},{"code":"AP","name":"Amapá"},{"code":"AM","name":"Amazonas"},{"code":"BA","name":"Bahia"},{"code":"CE","name":"Ceará"},{"code":"DF","name":"Distrito Federal"},{"code":"ES","name":"Espírito Santo"},{"code":"GO","name":"Goiás"},{"code":"MA","name":"Maranhão"},{"code":"MT","name":"Mato Grosso"},{"code":"MS","name":"Mato Grosso do Sul"},{"code":"MG","name":"Minas Gerais"},{"code":"PA","name":"Pará"},{"code":"PB","name":"Paraíba"},{"code":"PR","name":"Paraná"},{"code":"PE","name":"Pernambuco"},{"code":"PI","name":"Piauí"},{"code":"RJ","name":"Rio de Janeiro"},{"code":"RN","name":"Rio Grande do Norte"},{"code":"RS","name":"Rio Grande do Sul"},{"code":"RO","name":"Rondônia"},{"code":"RR","name":"Roraima"},{"code":"SC","name":"Santa Catarina"},{"code":"SP","name":"São Paulo"},{"code":"SE","name":"Sergipe"},{"code":"TO","name":"Tocantins"}]},{"code":"IO","name":"British Indian Ocean Territory","states":[]},{"code":"BN","name":"Brunei","states":[]},{"code":"BF","name":"Burkina Faso","states":[]},{"code":"BI","name":"Burundi","states":[]},{"code":"KH","name":"Cambodia","states":[]},{"code":"CM","name":"Cameroon","states":[]},{"code":"CA","name":"Canada","states":[{"code":"AB","name":"Alberta"},{"code":"BC","name":"British Columbia"},{"code":"MB","name":"Manitoba"},{"code":"NB","name":"New Brunswick"},{"code":"NL","name":"Newfoundland and Labrador"},{"code":"NT","name":"Northwest Territories"},{"code":"NS","name":"Nova Scotia"},{"code":"NU","name":"Nunavut"},{"code":"ON","name":"Ontario"},{"code":"PE","name":"Prince Edward Island"},{"code":"QC","name":"Quebec"},{"code":"SK","name":"Saskatchewan"},{"code":"YT","name":"Yukon Territory"}]},{"code":"CV","name":"Cape Verde","states":[]},{"code":"KY","name":"Cayman Islands","states":[]},{"code":"TD","name":"Chad","states":[]},{"code":"CL","name":"Chile","states":[{"code":"CL-AI","name":"Aisén del General Carlos Ibañez del Campo"},{"code":"CL-AN","name":"Antofagasta"},{"code":"CL-AP","name":"Arica y Parinacota"},{"code":"CL-AR","name":"La Araucanía"},{"code":"CL-AT","name":"Atacama"},{"code":"CL-BI","name":"Biobío"},{"code":"CL-CO","name":"Coquimbo"},{"code":"CL-LI","name":"Libertador General Bernardo O\'Higgins"},{"code":"CL-LL","name":"Los Lagos"},{"code":"CL-LR","name":"Los Ríos"},{"code":"CL-MA","name":"Magallanes"},{"code":"CL-ML","name":"Maule"},{"code":"CL-NB","name":"Ñuble"},{"code":"CL-RM","name":"Región Metropolitana de Santiago"},{"code":"CL-TA","name":"Tarapacá"},{"code":"CL-VS","name":"Valparaíso"}]},{"code":"CN","name":"China","states":[{"code":"CN1","name":"Yunnan / 云南"},{"code":"CN2","name":"Beijing / 北京"},{"code":"CN3","name":"Tianjin / 天津"},{"code":"CN4","name":"Hebei / 河北"},{"code":"CN5","name":"Shanxi / 山西"},{"code":"CN6","name":"Inner Mongolia / 內蒙古"},{"code":"CN7","name":"Liaoning / 辽宁"},{"code":"CN8","name":"Jilin / 吉林"},{"code":"CN9","name":"Heilongjiang / 黑龙江"},{"code":"CN10","name":"Shanghai / 上海"},{"code":"CN11","name":"Jiangsu / 江苏"},{"code":"CN12","name":"Zhejiang / 浙江"},{"code":"CN13","name":"Anhui / 安徽"},{"code":"CN14","name":"Fujian / 福建"},{"code":"CN15","name":"Jiangxi / 江西"},{"code":"CN16","name":"Shandong / 山东"},{"code":"CN17","name":"Henan / 河南"},{"code":"CN18","name":"Hubei / 湖北"},{"code":"CN19","name":"Hunan / 湖南"},{"code":"CN20","name":"Guangdong / 广东"},{"code":"CN21","name":"Guangxi Zhuang / 广西壮族"},{"code":"CN22","name":"Hainan / 海南"},{"code":"CN23","name":"Chongqing / 重庆"},{"code":"CN24","name":"Sichuan / 四川"},{"code":"CN25","name":"Guizhou / 贵州"},{"code":"CN26","name":"Shaanxi / 陕西"},{"code":"CN27","name":"Gansu / 甘肃"},{"code":"CN28","name":"Qinghai / 青海"},{"code":"CN29","name":"Ningxia Hui / 宁夏"},{"code":"CN30","name":"Macao / 澳门"},{"code":"CN31","name":"Tibet / 西藏"},{"code":"CN32","name":"Xinjiang / 新疆"}]},{"code":"CX","name":"Christmas Island","states":[]},{"code":"CC","name":"Cocos (Keeling) Islands","states":[]},{"code":"CO","name":"Colombia","states":[{"code":"CO-AMA","name":"Amazonas"},{"code":"CO-ANT","name":"Antioquia"},{"code":"CO-ARA","name":"Arauca"},{"code":"CO-ATL","name":"Atlántico"},{"code":"CO-BOL","name":"Bolívar"},{"code":"CO-BOY","name":"Boyacá"},{"code":"CO-CAL","name":"Caldas"},{"code":"CO-CAQ","name":"Caquetá"},{"code":"CO-CAS","name":"Casanare"},{"code":"CO-CAU","name":"Cauca"},{"code":"CO-CES","name":"Cesar"},{"code":"CO-CHO","name":"Chocó"},{"code":"CO-COR","name":"Córdoba"},{"code":"CO-CUN","name":"Cundinamarca"},{"code":"CO-DC","name":"Capital District"},{"code":"CO-GUA","name":"Guainía"},{"code":"CO-GUV","name":"Guaviare"},{"code":"CO-HUI","name":"Huila"},{"code":"CO-LAG","name":"La Guajira"},{"code":"CO-MAG","name":"Magdalena"},{"code":"CO-MET","name":"Meta"},{"code":"CO-NAR","name":"Nariño"},{"code":"CO-NSA","name":"Norte de Santander"},{"code":"CO-PUT","name":"Putumayo"},{"code":"CO-QUI","name":"Quindío"},{"code":"CO-RIS","name":"Risaralda"},{"code":"CO-SAN","name":"Santander"},{"code":"CO-SAP","name":"San Andrés & Providencia"},{"code":"CO-SUC","name":"Sucre"},{"code":"CO-TOL","name":"Tolima"},{"code":"CO-VAC","name":"Valle del Cauca"},{"code":"CO-VAU","name":"Vaupés"},{"code":"CO-VID","name":"Vichada"}]},{"code":"KM","name":"Comoros","states":[]},{"code":"CK","name":"Cook Islands","states":[]},{"code":"CR","name":"Costa Rica","states":[{"code":"CR-A","name":"Alajuela"},{"code":"CR-C","name":"Cartago"},{"code":"CR-G","name":"Guanacaste"},{"code":"CR-H","name":"Heredia"},{"code":"CR-L","name":"Limón"},{"code":"CR-P","name":"Puntarenas"},{"code":"CR-SJ","name":"San José"}]},{"code":"HR","name":"Croatia","states":[]},{"code":"CW","name":"Curaçao","states":[]},{"code":"CY","name":"Cyprus","states":[]},{"code":"CZ","name":"Czech Republic","states":[]},{"code":"DK","name":"Denmark","states":[]},{"code":"DJ","name":"Djibouti","states":[]},{"code":"DM","name":"Dominica","states":[]},{"code":"DO","name":"Dominican Republic","states":[{"code":"DO-01","name":"Distrito Nacional"},{"code":"DO-02","name":"Azua"},{"code":"DO-03","name":"Baoruco"},{"code":"DO-04","name":"Barahona"},{"code":"DO-33","name":"Cibao Nordeste"},{"code":"DO-34","name":"Cibao Noroeste"},{"code":"DO-35","name":"Cibao Norte"},{"code":"DO-36","name":"Cibao Sur"},{"code":"DO-05","name":"Dajabón"},{"code":"DO-06","name":"Duarte"},{"code":"DO-08","name":"El Seibo"},{"code":"DO-37","name":"El Valle"},{"code":"DO-07","name":"Elías Piña"},{"code":"DO-38","name":"Enriquillo"},{"code":"DO-09","name":"Espaillat"},{"code":"DO-30","name":"Hato Mayor"},{"code":"DO-19","name":"Hermanas Mirabal"},{"code":"DO-39","name":"Higüamo"},{"code":"DO-10","name":"Independencia"},{"code":"DO-11","name":"La Altagracia"},{"code":"DO-12","name":"La Romana"},{"code":"DO-13","name":"La Vega"},{"code":"DO-14","name":"María Trinidad Sánchez"},{"code":"DO-28","name":"Monseñor Nouel"},{"code":"DO-15","name":"Monte Cristi"},{"code":"DO-29","name":"Monte Plata"},{"code":"DO-40","name":"Ozama"},{"code":"DO-16","name":"Pedernales"},{"code":"DO-17","name":"Peravia"},{"code":"DO-18","name":"Puerto Plata"},{"code":"DO-20","name":"Samaná"},{"code":"DO-21","name":"San Cristóbal"},{"code":"DO-31","name":"San José de Ocoa"},{"code":"DO-22","name":"San Juan"},{"code":"DO-23","name":"San Pedro de Macorís"},{"code":"DO-24","name":"Sánchez Ramírez"},{"code":"DO-25","name":"Santiago"},{"code":"DO-26","name":"Santiago Rodríguez"},{"code":"DO-32","name":"Santo Domingo"},{"code":"DO-41","name":"Valdesia"},{"code":"DO-27","name":"Valverde"},{"code":"DO-42","name":"Yuma"}]},{"code":"EC","name":"Ecuador","states":[{"code":"EC-A","name":"Azuay"},{"code":"EC-B","name":"Bolívar"},{"code":"EC-F","name":"Cañar"},{"code":"EC-C","name":"Carchi"},{"code":"EC-H","name":"Chimborazo"},{"code":"EC-X","name":"Cotopaxi"},{"code":"EC-O","name":"El Oro"},{"code":"EC-E","name":"Esmeraldas"},{"code":"EC-W","name":"Galápagos"},{"code":"EC-G","name":"Guayas"},{"code":"EC-I","name":"Imbabura"},{"code":"EC-L","name":"Loja"},{"code":"EC-R","name":"Los Ríos"},{"code":"EC-M","name":"Manabí"},{"code":"EC-S","name":"Morona-Santiago"},{"code":"EC-N","name":"Napo"},{"code":"EC-D","name":"Orellana"},{"code":"EC-Y","name":"Pastaza"},{"code":"EC-P","name":"Pichincha"},{"code":"EC-SE","name":"Santa Elena"},{"code":"EC-SD","name":"Santo Domingo de los Tsáchilas"},{"code":"EC-U","name":"Sucumbíos"},{"code":"EC-T","name":"Tungurahua"},{"code":"EC-Z","name":"Zamora-Chinchipe"}]},{"code":"EG","name":"Egypt","states":[{"code":"EGALX","name":"Alexandria"},{"code":"EGASN","name":"Aswan"},{"code":"EGAST","name":"Asyut"},{"code":"EGBA","name":"Red Sea"},{"code":"EGBH","name":"Beheira"},{"code":"EGBNS","name":"Beni Suef"},{"code":"EGC","name":"Cairo"},{"code":"EGDK","name":"Dakahlia"},{"code":"EGDT","name":"Damietta"},{"code":"EGFYM","name":"Faiyum"},{"code":"EGGH","name":"Gharbia"},{"code":"EGGZ","name":"Giza"},{"code":"EGIS","name":"Ismailia"},{"code":"EGJS","name":"South Sinai"},{"code":"EGKB","name":"Qalyubia"},{"code":"EGKFS","name":"Kafr el-Sheikh"},{"code":"EGKN","name":"Qena"},{"code":"EGLX","name":"Luxor"},{"code":"EGMN","name":"Minya"},{"code":"EGMNF","name":"Monufia"},{"code":"EGMT","name":"Matrouh"},{"code":"EGPTS","name":"Port Said"},{"code":"EGSHG","name":"Sohag"},{"code":"EGSHR","name":"Al Sharqia"},{"code":"EGSIN","name":"North Sinai"},{"code":"EGSUZ","name":"Suez"},{"code":"EGWAD","name":"New Valley"}]},{"code":"SV","name":"El Salvador","states":[{"code":"SV-AH","name":"Ahuachapán"},{"code":"SV-CA","name":"Cabañas"},{"code":"SV-CH","name":"Chalatenango"},{"code":"SV-CU","name":"Cuscatlán"},{"code":"SV-LI","name":"La Libertad"},{"code":"SV-MO","name":"Morazán"},{"code":"SV-PA","name":"La Paz"},{"code":"SV-SA","name":"Santa Ana"},{"code":"SV-SM","name":"San Miguel"},{"code":"SV-SO","name":"Sonsonate"},{"code":"SV-SS","name":"San Salvador"},{"code":"SV-SV","name":"San Vicente"},{"code":"SV-UN","name":"La Unión"},{"code":"SV-US","name":"Usulután"}]},{"code":"GQ","name":"Equatorial Guinea","states":[]},{"code":"ER","name":"Eritrea","states":[]},{"code":"EE","name":"Estonia","states":[]},{"code":"SZ","name":"Eswatini","states":[]},{"code":"FK","name":"Falkland Islands","states":[]},{"code":"FO","name":"Faroe Islands","states":[]},{"code":"FJ","name":"Fiji","states":[]},{"code":"FI","name":"Finland","states":[]},{"code":"FR","name":"France","states":[]},{"code":"GF","name":"French Guiana","states":[]},{"code":"PF","name":"French Polynesia","states":[]},{"code":"TF","name":"French Southern Territories","states":[]},{"code":"GA","name":"Gabon","states":[]},{"code":"GM","name":"Gambia","states":[]},{"code":"GE","name":"Georgia","states":[]},{"code":"DE","name":"Germany","states":[{"code":"DE-BW","name":"Baden-Württemberg"},{"code":"DE-BY","name":"Bavaria"},{"code":"DE-BE","name":"Berlin"},{"code":"DE-BB","name":"Brandenburg"},{"code":"DE-HB","name":"Bremen"},{"code":"DE-HH","name":"Hamburg"},{"code":"DE-HE","name":"Hesse"},{"code":"DE-MV","name":"Mecklenburg-Vorpommern"},{"code":"DE-NI","name":"Lower Saxony"},{"code":"DE-NW","name":"North Rhine-Westphalia"},{"code":"DE-RP","name":"Rhineland-Palatinate"},{"code":"DE-SL","name":"Saarland"},{"code":"DE-SN","name":"Saxony"},{"code":"DE-ST","name":"Saxony-Anhalt"},{"code":"DE-SH","name":"Schleswig-Holstein"},{"code":"DE-TH","name":"Thuringia"}]},{"code":"GH","name":"Ghana","states":[{"code":"AF","name":"Ahafo"},{"code":"AH","name":"Ashanti"},{"code":"BA","name":"Brong-Ahafo"},{"code":"BO","name":"Bono"},{"code":"BE","name":"Bono East"},{"code":"CP","name":"Central"},{"code":"EP","name":"Eastern"},{"code":"AA","name":"Greater Accra"},{"code":"NE","name":"North East"},{"code":"NP","name":"Northern"},{"code":"OT","name":"Oti"},{"code":"SV","name":"Savannah"},{"code":"UE","name":"Upper East"},{"code":"UW","name":"Upper West"},{"code":"TV","name":"Volta"},{"code":"WP","name":"Western"},{"code":"WN","name":"Western North"}]},{"code":"GI","name":"Gibraltar","states":[]},{"code":"GR","name":"Greece","states":[{"code":"I","name":"Attica"},{"code":"A","name":"East Macedonia and Thrace"},{"code":"B","name":"Central Macedonia"},{"code":"C","name":"West Macedonia"},{"code":"D","name":"Epirus"},{"code":"E","name":"Thessaly"},{"code":"F","name":"Ionian Islands"},{"code":"G","name":"West Greece"},{"code":"H","name":"Central Greece"},{"code":"J","name":"Peloponnese"},{"code":"K","name":"North Aegean"},{"code":"L","name":"South Aegean"},{"code":"M","name":"Crete"}]},{"code":"GL","name":"Greenland","states":[]},{"code":"GD","name":"Grenada","states":[]},{"code":"GP","name":"Guadeloupe","states":[]},{"code":"GU","name":"Guam","states":[]},{"code":"GT","name":"Guatemala","states":[{"code":"GT-AV","name":"Alta Verapaz"},{"code":"GT-BV","name":"Baja Verapaz"},{"code":"GT-CM","name":"Chimaltenango"},{"code":"GT-CQ","name":"Chiquimula"},{"code":"GT-PR","name":"El Progreso"},{"code":"GT-ES","name":"Escuintla"},{"code":"GT-GU","name":"Guatemala"},{"code":"GT-HU","name":"Huehuetenango"},{"code":"GT-IZ","name":"Izabal"},{"code":"GT-JA","name":"Jalapa"},{"code":"GT-JU","name":"Jutiapa"},{"code":"GT-PE","name":"Petén"},{"code":"GT-QZ","name":"Quetzaltenango"},{"code":"GT-QC","name":"Quiché"},{"code":"GT-RE","name":"Retalhuleu"},{"code":"GT-SA","name":"Sacatepéquez"},{"code":"GT-SM","name":"San Marcos"},{"code":"GT-SR","name":"Santa Rosa"},{"code":"GT-SO","name":"Sololá"},{"code":"GT-SU","name":"Suchitepéquez"},{"code":"GT-TO","name":"Totonicapán"},{"code":"GT-ZA","name":"Zacapa"}]},{"code":"GG","name":"Guernsey","states":[]},{"code":"GN","name":"Guinea","states":[]},{"code":"GW","name":"Guinea-Bissau","states":[]},{"code":"GY","name":"Guyana","states":[]},{"code":"HM","name":"Heard Island and McDonald Islands","states":[]},{"code":"HN","name":"Honduras","states":[{"code":"HN-AT","name":"Atlántida"},{"code":"HN-IB","name":"Bay Islands"},{"code":"HN-CH","name":"Choluteca"},{"code":"HN-CL","name":"Colón"},{"code":"HN-CM","name":"Comayagua"},{"code":"HN-CP","name":"Copán"},{"code":"HN-CR","name":"Cortés"},{"code":"HN-EP","name":"El Paraíso"},{"code":"HN-FM","name":"Francisco Morazán"},{"code":"HN-GD","name":"Gracias a Dios"},{"code":"HN-IN","name":"Intibucá"},{"code":"HN-LE","name":"Lempira"},{"code":"HN-LP","name":"La Paz"},{"code":"HN-OC","name":"Ocotepeque"},{"code":"HN-OL","name":"Olancho"},{"code":"HN-SB","name":"Santa Bárbara"},{"code":"HN-VA","name":"Valle"},{"code":"HN-YO","name":"Yoro"}]},{"code":"HU","name":"Hungary","states":[{"code":"BK","name":"Bács-Kiskun"},{"code":"BE","name":"Békés"},{"code":"BA","name":"Baranya"},{"code":"BZ","name":"Borsod-Abaúj-Zemplén"},{"code":"BU","name":"Budapest"},{"code":"CS","name":"Csongrád-Csanád"},{"code":"FE","name":"Fejér"},{"code":"GS","name":"Győr-Moson-Sopron"},{"code":"HB","name":"Hajdú-Bihar"},{"code":"HE","name":"Heves"},{"code":"JN","name":"Jász-Nagykun-Szolnok"},{"code":"KE","name":"Komárom-Esztergom"},{"code":"NO","name":"Nógrád"},{"code":"PE","name":"Pest"},{"code":"SO","name":"Somogy"},{"code":"SZ","name":"Szabolcs-Szatmár-Bereg"},{"code":"TO","name":"Tolna"},{"code":"VA","name":"Vas"},{"code":"VE","name":"Veszprém"},{"code":"ZA","name":"Zala"}]},{"code":"IS","name":"Iceland","states":[]},{"code":"IN","name":"India","states":[{"code":"AP","name":"Andhra Pradesh"},{"code":"AR","name":"Arunachal Pradesh"},{"code":"AS","name":"Assam"},{"code":"BR","name":"Bihar"},{"code":"CT","name":"Chhattisgarh"},{"code":"GA","name":"Goa"},{"code":"GJ","name":"Gujarat"},{"code":"HR","name":"Haryana"},{"code":"HP","name":"Himachal Pradesh"},{"code":"JK","name":"Jammu and Kashmir"},{"code":"JH","name":"Jharkhand"},{"code":"KA","name":"Karnataka"},{"code":"KL","name":"Kerala"},{"code":"LA","name":"Ladakh"},{"code":"MP","name":"Madhya Pradesh"},{"code":"MH","name":"Maharashtra"},{"code":"MN","name":"Manipur"},{"code":"ML","name":"Meghalaya"},{"code":"MZ","name":"Mizoram"},{"code":"NL","name":"Nagaland"},{"code":"OR","name":"Odisha"},{"code":"PB","name":"Punjab"},{"code":"RJ","name":"Rajasthan"},{"code":"SK","name":"Sikkim"},{"code":"TN","name":"Tamil Nadu"},{"code":"TS","name":"Telangana"},{"code":"TR","name":"Tripura"},{"code":"UK","name":"Uttarakhand"},{"code":"UP","name":"Uttar Pradesh"},{"code":"WB","name":"West Bengal"},{"code":"AN","name":"Andaman and Nicobar Islands"},{"code":"CH","name":"Chandigarh"},{"code":"DN","name":"Dadra and Nagar Haveli"},{"code":"DD","name":"Daman and Diu"},{"code":"DL","name":"Delhi"},{"code":"LD","name":"Lakshadeep"},{"code":"PY","name":"Pondicherry (Puducherry)"}]},{"code":"ID","name":"Indonesia","states":[{"code":"AC","name":"Daerah Istimewa Aceh"},{"code":"SU","name":"Sumatera Utara"},{"code":"SB","name":"Sumatera Barat"},{"code":"RI","name":"Riau"},{"code":"KR","name":"Kepulauan Riau"},{"code":"JA","name":"Jambi"},{"code":"SS","name":"Sumatera Selatan"},{"code":"BB","name":"Bangka Belitung"},{"code":"BE","name":"Bengkulu"},{"code":"LA","name":"Lampung"},{"code":"JK","name":"DKI Jakarta"},{"code":"JB","name":"Jawa Barat"},{"code":"BT","name":"Banten"},{"code":"JT","name":"Jawa Tengah"},{"code":"JI","name":"Jawa Timur"},{"code":"YO","name":"Daerah Istimewa Yogyakarta"},{"code":"BA","name":"Bali"},{"code":"NB","name":"Nusa Tenggara Barat"},{"code":"NT","name":"Nusa Tenggara Timur"},{"code":"KB","name":"Kalimantan Barat"},{"code":"KT","name":"Kalimantan Tengah"},{"code":"KI","name":"Kalimantan Timur"},{"code":"KS","name":"Kalimantan Selatan"},{"code":"KU","name":"Kalimantan Utara"},{"code":"SA","name":"Sulawesi Utara"},{"code":"ST","name":"Sulawesi Tengah"},{"code":"SG","name":"Sulawesi Tenggara"},{"code":"SR","name":"Sulawesi Barat"},{"code":"SN","name":"Sulawesi Selatan"},{"code":"GO","name":"Gorontalo"},{"code":"MA","name":"Maluku"},{"code":"MU","name":"Maluku Utara"},{"code":"PA","name":"Papua"},{"code":"PB","name":"Papua Barat"}]},{"code":"IE","name":"Ireland","states":[{"code":"CW","name":"Carlow"},{"code":"CN","name":"Cavan"},{"code":"CE","name":"Clare"},{"code":"CO","name":"Cork"},{"code":"DL","name":"Donegal"},{"code":"D","name":"Dublin"},{"code":"G","name":"Galway"},{"code":"KY","name":"Kerry"},{"code":"KE","name":"Kildare"},{"code":"KK","name":"Kilkenny"},{"code":"LS","name":"Laois"},{"code":"LM","name":"Leitrim"},{"code":"LK","name":"Limerick"},{"code":"LD","name":"Longford"},{"code":"LH","name":"Louth"},{"code":"MO","name":"Mayo"},{"code":"MH","name":"Meath"},{"code":"MN","name":"Monaghan"},{"code":"OY","name":"Offaly"},{"code":"RN","name":"Roscommon"},{"code":"SO","name":"Sligo"},{"code":"TA","name":"Tipperary"},{"code":"WD","name":"Waterford"},{"code":"WH","name":"Westmeath"},{"code":"WX","name":"Wexford"},{"code":"WW","name":"Wicklow"}]},{"code":"IM","name":"Isle of Man","states":[]},{"code":"IL","name":"Israel","states":[]},{"code":"IT","name":"Italy","states":[{"code":"AG","name":"Agrigento"},{"code":"AL","name":"Alessandria"},{"code":"AN","name":"Ancona"},{"code":"AO","name":"Aosta"},{"code":"AR","name":"Arezzo"},{"code":"AP","name":"Ascoli Piceno"},{"code":"AT","name":"Asti"},{"code":"AV","name":"Avellino"},{"code":"BA","name":"Bari"},{"code":"BT","name":"Barletta-Andria-Trani"},{"code":"BL","name":"Belluno"},{"code":"BN","name":"Benevento"},{"code":"BG","name":"Bergamo"},{"code":"BI","name":"Biella"},{"code":"BO","name":"Bologna"},{"code":"BZ","name":"Bolzano"},{"code":"BS","name":"Brescia"},{"code":"BR","name":"Brindisi"},{"code":"CA","name":"Cagliari"},{"code":"CL","name":"Caltanissetta"},{"code":"CB","name":"Campobasso"},{"code":"CE","name":"Caserta"},{"code":"CT","name":"Catania"},{"code":"CZ","name":"Catanzaro"},{"code":"CH","name":"Chieti"},{"code":"CO","name":"Como"},{"code":"CS","name":"Cosenza"},{"code":"CR","name":"Cremona"},{"code":"KR","name":"Crotone"},{"code":"CN","name":"Cuneo"},{"code":"EN","name":"Enna"},{"code":"FM","name":"Fermo"},{"code":"FE","name":"Ferrara"},{"code":"FI","name":"Firenze"},{"code":"FG","name":"Foggia"},{"code":"FC","name":"Forlì-Cesena"},{"code":"FR","name":"Frosinone"},{"code":"GE","name":"Genova"},{"code":"GO","name":"Gorizia"},{"code":"GR","name":"Grosseto"},{"code":"IM","name":"Imperia"},{"code":"IS","name":"Isernia"},{"code":"SP","name":"La Spezia"},{"code":"AQ","name":"L\'Aquila"},{"code":"LT","name":"Latina"},{"code":"LE","name":"Lecce"},{"code":"LC","name":"Lecco"},{"code":"LI","name":"Livorno"},{"code":"LO","name":"Lodi"},{"code":"LU","name":"Lucca"},{"code":"MC","name":"Macerata"},{"code":"MN","name":"Mantova"},{"code":"MS","name":"Massa-Carrara"},{"code":"MT","name":"Matera"},{"code":"ME","name":"Messina"},{"code":"MI","name":"Milano"},{"code":"MO","name":"Modena"},{"code":"MB","name":"Monza e della Brianza"},{"code":"NA","name":"Napoli"},{"code":"NO","name":"Novara"},{"code":"NU","name":"Nuoro"},{"code":"OR","name":"Oristano"},{"code":"PD","name":"Padova"},{"code":"PA","name":"Palermo"},{"code":"PR","name":"Parma"},{"code":"PV","name":"Pavia"},{"code":"PG","name":"Perugia"},{"code":"PU","name":"Pesaro e Urbino"},{"code":"PE","name":"Pescara"},{"code":"PC","name":"Piacenza"},{"code":"PI","name":"Pisa"},{"code":"PT","name":"Pistoia"},{"code":"PN","name":"Pordenone"},{"code":"PZ","name":"Potenza"},{"code":"PO","name":"Prato"},{"code":"RG","name":"Ragusa"},{"code":"RA","name":"Ravenna"},{"code":"RC","name":"Reggio Calabria"},{"code":"RE","name":"Reggio Emilia"},{"code":"RI","name":"Rieti"},{"code":"RN","name":"Rimini"},{"code":"RM","name":"Roma"},{"code":"RO","name":"Rovigo"},{"code":"SA","name":"Salerno"},{"code":"SS","name":"Sassari"},{"code":"SV","name":"Savona"},{"code":"SI","name":"Siena"},{"code":"SR","name":"Siracusa"},{"code":"SO","name":"Sondrio"},{"code":"SU","name":"Sud Sardegna"},{"code":"TA","name":"Taranto"},{"code":"TE","name":"Teramo"},{"code":"TR","name":"Terni"},{"code":"TO","name":"Torino"},{"code":"TP","name":"Trapani"},{"code":"TN","name":"Trento"},{"code":"TV","name":"Treviso"},{"code":"TS","name":"Trieste"},{"code":"UD","name":"Udine"},{"code":"VA","name":"Varese"},{"code":"VE","name":"Venezia"},{"code":"VB","name":"Verbano-Cusio-Ossola"},{"code":"VC","name":"Vercelli"},{"code":"VR","name":"Verona"},{"code":"VV","name":"Vibo Valentia"},{"code":"VI","name":"Vicenza"},{"code":"VT","name":"Viterbo"}]},{"code":"CI","name":"Ivory Coast","states":[]},{"code":"JM","name":"Jamaica","states":[{"code":"JM-01","name":"Kingston"},{"code":"JM-02","name":"Saint Andrew"},{"code":"JM-03","name":"Saint Thomas"},{"code":"JM-04","name":"Portland"},{"code":"JM-05","name":"Saint Mary"},{"code":"JM-06","name":"Saint Ann"},{"code":"JM-07","name":"Trelawny"},{"code":"JM-08","name":"Saint James"},{"code":"JM-09","name":"Hanover"},{"code":"JM-10","name":"Westmoreland"},{"code":"JM-11","name":"Saint Elizabeth"},{"code":"JM-12","name":"Manchester"},{"code":"JM-13","name":"Clarendon"},{"code":"JM-14","name":"Saint Catherine"}]},{"code":"JP","name":"Japan","states":[{"code":"JP01","name":"Hokkaido"},{"code":"JP02","name":"Aomori"},{"code":"JP03","name":"Iwate"},{"code":"JP04","name":"Miyagi"},{"code":"JP05","name":"Akita"},{"code":"JP06","name":"Yamagata"},{"code":"JP07","name":"Fukushima"},{"code":"JP08","name":"Ibaraki"},{"code":"JP09","name":"Tochigi"},{"code":"JP10","name":"Gunma"},{"code":"JP11","name":"Saitama"},{"code":"JP12","name":"Chiba"},{"code":"JP13","name":"Tokyo"},{"code":"JP14","name":"Kanagawa"},{"code":"JP15","name":"Niigata"},{"code":"JP16","name":"Toyama"},{"code":"JP17","name":"Ishikawa"},{"code":"JP18","name":"Fukui"},{"code":"JP19","name":"Yamanashi"},{"code":"JP20","name":"Nagano"},{"code":"JP21","name":"Gifu"},{"code":"JP22","name":"Shizuoka"},{"code":"JP23","name":"Aichi"},{"code":"JP24","name":"Mie"},{"code":"JP25","name":"Shiga"},{"code":"JP26","name":"Kyoto"},{"code":"JP27","name":"Osaka"},{"code":"JP28","name":"Hyogo"},{"code":"JP29","name":"Nara"},{"code":"JP30","name":"Wakayama"},{"code":"JP31","name":"Tottori"},{"code":"JP32","name":"Shimane"},{"code":"JP33","name":"Okayama"},{"code":"JP34","name":"Hiroshima"},{"code":"JP35","name":"Yamaguchi"},{"code":"JP36","name":"Tokushima"},{"code":"JP37","name":"Kagawa"},{"code":"JP38","name":"Ehime"},{"code":"JP39","name":"Kochi"},{"code":"JP40","name":"Fukuoka"},{"code":"JP41","name":"Saga"},{"code":"JP42","name":"Nagasaki"},{"code":"JP43","name":"Kumamoto"},{"code":"JP44","name":"Oita"},{"code":"JP45","name":"Miyazaki"},{"code":"JP46","name":"Kagoshima"},{"code":"JP47","name":"Okinawa"}]},{"code":"JE","name":"Jersey","states":[]},{"code":"JO","name":"Jordan","states":[]},{"code":"KZ","name":"Kazakhstan","states":[]},{"code":"KE","name":"Kenya","states":[{"code":"KE01","name":"Baringo"},{"code":"KE02","name":"Bomet"},{"code":"KE03","name":"Bungoma"},{"code":"KE04","name":"Busia"},{"code":"KE05","name":"Elgeyo-Marakwet"},{"code":"KE06","name":"Embu"},{"code":"KE07","name":"Garissa"},{"code":"KE08","name":"Homa Bay"},{"code":"KE09","name":"Isiolo"},{"code":"KE10","name":"Kajiado"},{"code":"KE11","name":"Kakamega"},{"code":"KE12","name":"Kericho"},{"code":"KE13","name":"Kiambu"},{"code":"KE14","name":"Kilifi"},{"code":"KE15","name":"Kirinyaga"},{"code":"KE16","name":"Kisii"},{"code":"KE17","name":"Kisumu"},{"code":"KE18","name":"Kitui"},{"code":"KE19","name":"Kwale"},{"code":"KE20","name":"Laikipia"},{"code":"KE21","name":"Lamu"},{"code":"KE22","name":"Machakos"},{"code":"KE23","name":"Makueni"},{"code":"KE24","name":"Mandera"},{"code":"KE25","name":"Marsabit"},{"code":"KE26","name":"Meru"},{"code":"KE27","name":"Migori"},{"code":"KE28","name":"Mombasa"},{"code":"KE29","name":"Murang’a"},{"code":"KE30","name":"Nairobi County"},{"code":"KE31","name":"Nakuru"},{"code":"KE32","name":"Nandi"},{"code":"KE33","name":"Narok"},{"code":"KE34","name":"Nyamira"},{"code":"KE35","name":"Nyandarua"},{"code":"KE36","name":"Nyeri"},{"code":"KE37","name":"Samburu"},{"code":"KE38","name":"Siaya"},{"code":"KE39","name":"Taita-Taveta"},{"code":"KE40","name":"Tana River"},{"code":"KE41","name":"Tharaka-Nithi"},{"code":"KE42","name":"Trans Nzoia"},{"code":"KE43","name":"Turkana"},{"code":"KE44","name":"Uasin Gishu"},{"code":"KE45","name":"Vihiga"},{"code":"KE46","name":"Wajir"},{"code":"KE47","name":"West Pokot"}]},{"code":"KI","name":"Kiribati","states":[]},{"code":"KW","name":"Kuwait","states":[]},{"code":"KG","name":"Kyrgyzstan","states":[]},{"code":"LA","name":"Laos","states":[{"code":"AT","name":"Attapeu"},{"code":"BK","name":"Bokeo"},{"code":"BL","name":"Bolikhamsai"},{"code":"CH","name":"Champasak"},{"code":"HO","name":"Houaphanh"},{"code":"KH","name":"Khammouane"},{"code":"LM","name":"Luang Namtha"},{"code":"LP","name":"Luang Prabang"},{"code":"OU","name":"Oudomxay"},{"code":"PH","name":"Phongsaly"},{"code":"SL","name":"Salavan"},{"code":"SV","name":"Savannakhet"},{"code":"VI","name":"Vientiane Province"},{"code":"VT","name":"Vientiane"},{"code":"XA","name":"Sainyabuli"},{"code":"XE","name":"Sekong"},{"code":"XI","name":"Xiangkhouang"},{"code":"XS","name":"Xaisomboun"}]},{"code":"LV","name":"Latvia","states":[]},{"code":"LS","name":"Lesotho","states":[]},{"code":"LR","name":"Liberia","states":[{"code":"BM","name":"Bomi"},{"code":"BN","name":"Bong"},{"code":"GA","name":"Gbarpolu"},{"code":"GB","name":"Grand Bassa"},{"code":"GC","name":"Grand Cape Mount"},{"code":"GG","name":"Grand Gedeh"},{"code":"GK","name":"Grand Kru"},{"code":"LO","name":"Lofa"},{"code":"MA","name":"Margibi"},{"code":"MY","name":"Maryland"},{"code":"MO","name":"Montserrado"},{"code":"NM","name":"Nimba"},{"code":"RV","name":"Rivercess"},{"code":"RG","name":"River Gee"},{"code":"SN","name":"Sinoe"}]},{"code":"LI","name":"Liechtenstein","states":[]},{"code":"LT","name":"Lithuania","states":[]},{"code":"LU","name":"Luxembourg","states":[]},{"code":"MO","name":"Macao","states":[]},{"code":"MG","name":"Madagascar","states":[]},{"code":"MW","name":"Malawi","states":[]},{"code":"MY","name":"Malaysia","states":[{"code":"JHR","name":"Johor"},{"code":"KDH","name":"Kedah"},{"code":"KTN","name":"Kelantan"},{"code":"LBN","name":"Labuan"},{"code":"MLK","name":"Malacca (Melaka)"},{"code":"NSN","name":"Negeri Sembilan"},{"code":"PHG","name":"Pahang"},{"code":"PNG","name":"Penang (Pulau Pinang)"},{"code":"PRK","name":"Perak"},{"code":"PLS","name":"Perlis"},{"code":"SBH","name":"Sabah"},{"code":"SWK","name":"Sarawak"},{"code":"SGR","name":"Selangor"},{"code":"TRG","name":"Terengganu"},{"code":"PJY","name":"Putrajaya"},{"code":"KUL","name":"Kuala Lumpur"}]},{"code":"MV","name":"Maldives","states":[]},{"code":"ML","name":"Mali","states":[]},{"code":"MT","name":"Malta","states":[]},{"code":"MH","name":"Marshall Islands","states":[]},{"code":"MQ","name":"Martinique","states":[]},{"code":"MR","name":"Mauritania","states":[]},{"code":"MU","name":"Mauritius","states":[]},{"code":"YT","name":"Mayotte","states":[]},{"code":"MX","name":"Mexico","states":[{"code":"DF","name":"Ciudad de México"},{"code":"JA","name":"Jalisco"},{"code":"NL","name":"Nuevo León"},{"code":"AG","name":"Aguascalientes"},{"code":"BC","name":"Baja California"},{"code":"BS","name":"Baja California Sur"},{"code":"CM","name":"Campeche"},{"code":"CS","name":"Chiapas"},{"code":"CH","name":"Chihuahua"},{"code":"CO","name":"Coahuila"},{"code":"CL","name":"Colima"},{"code":"DG","name":"Durango"},{"code":"GT","name":"Guanajuato"},{"code":"GR","name":"Guerrero"},{"code":"HG","name":"Hidalgo"},{"code":"MX","name":"Estado de México"},{"code":"MI","name":"Michoacán"},{"code":"MO","name":"Morelos"},{"code":"NA","name":"Nayarit"},{"code":"OA","name":"Oaxaca"},{"code":"PU","name":"Puebla"},{"code":"QT","name":"Querétaro"},{"code":"QR","name":"Quintana Roo"},{"code":"SL","name":"San Luis Potosí"},{"code":"SI","name":"Sinaloa"},{"code":"SO","name":"Sonora"},{"code":"TB","name":"Tabasco"},{"code":"TM","name":"Tamaulipas"},{"code":"TL","name":"Tlaxcala"},{"code":"VE","name":"Veracruz"},{"code":"YU","name":"Yucatán"},{"code":"ZA","name":"Zacatecas"}]},{"code":"FM","name":"Micronesia","states":[]},{"code":"MD","name":"Moldova","states":[{"code":"C","name":"Chișinău"},{"code":"BL","name":"Bălți"},{"code":"AN","name":"Anenii Noi"},{"code":"BS","name":"Basarabeasca"},{"code":"BR","name":"Briceni"},{"code":"CH","name":"Cahul"},{"code":"CT","name":"Cantemir"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Căușeni"},{"code":"CM","name":"Cimișlia"},{"code":"CR","name":"Criuleni"},{"code":"DN","name":"Dondușeni"},{"code":"DR","name":"Drochia"},{"code":"DB","name":"Dubăsari"},{"code":"ED","name":"Edineț"},{"code":"FL","name":"Fălești"},{"code":"FR","name":"Florești"},{"code":"GE","name":"UTA Găgăuzia"},{"code":"GL","name":"Glodeni"},{"code":"HN","name":"Hîncești"},{"code":"IL","name":"Ialoveni"},{"code":"LV","name":"Leova"},{"code":"NS","name":"Nisporeni"},{"code":"OC","name":"Ocnița"},{"code":"OR","name":"Orhei"},{"code":"RZ","name":"Rezina"},{"code":"RS","name":"Rîșcani"},{"code":"SG","name":"Sîngerei"},{"code":"SR","name":"Soroca"},{"code":"ST","name":"Strășeni"},{"code":"SD","name":"Șoldănești"},{"code":"SV","name":"Ștefan Vodă"},{"code":"TR","name":"Taraclia"},{"code":"TL","name":"Telenești"},{"code":"UN","name":"Ungheni"}]},{"code":"MC","name":"Monaco","states":[]},{"code":"MN","name":"Mongolia","states":[]},{"code":"MS","name":"Montserrat","states":[]},{"code":"MA","name":"Morocco","states":[]},{"code":"MZ","name":"Mozambique","states":[{"code":"MZP","name":"Cabo Delgado"},{"code":"MZG","name":"Gaza"},{"code":"MZI","name":"Inhambane"},{"code":"MZB","name":"Manica"},{"code":"MZL","name":"Maputo Province"},{"code":"MZMPM","name":"Maputo"},{"code":"MZN","name":"Nampula"},{"code":"MZA","name":"Niassa"},{"code":"MZS","name":"Sofala"},{"code":"MZT","name":"Tete"},{"code":"MZQ","name":"Zambézia"}]},{"code":"NA","name":"Namibia","states":[{"code":"ER","name":"Erongo"},{"code":"HA","name":"Hardap"},{"code":"KA","name":"Karas"},{"code":"KE","name":"Kavango East"},{"code":"KW","name":"Kavango West"},{"code":"KH","name":"Khomas"},{"code":"KU","name":"Kunene"},{"code":"OW","name":"Ohangwena"},{"code":"OH","name":"Omaheke"},{"code":"OS","name":"Omusati"},{"code":"ON","name":"Oshana"},{"code":"OT","name":"Oshikoto"},{"code":"OD","name":"Otjozondjupa"},{"code":"CA","name":"Zambezi"}]},{"code":"NR","name":"Nauru","states":[]},{"code":"NP","name":"Nepal","states":[{"code":"BAG","name":"Bagmati"},{"code":"BHE","name":"Bheri"},{"code":"DHA","name":"Dhaulagiri"},{"code":"GAN","name":"Gandaki"},{"code":"JAN","name":"Janakpur"},{"code":"KAR","name":"Karnali"},{"code":"KOS","name":"Koshi"},{"code":"LUM","name":"Lumbini"},{"code":"MAH","name":"Mahakali"},{"code":"MEC","name":"Mechi"},{"code":"NAR","name":"Narayani"},{"code":"RAP","name":"Rapti"},{"code":"SAG","name":"Sagarmatha"},{"code":"SET","name":"Seti"}]},{"code":"NL","name":"Netherlands","states":[]},{"code":"NC","name":"New Caledonia","states":[]},{"code":"NZ","name":"New Zealand","states":[{"code":"NL","name":"Northland"},{"code":"AK","name":"Auckland"},{"code":"WA","name":"Waikato"},{"code":"BP","name":"Bay of Plenty"},{"code":"TK","name":"Taranaki"},{"code":"GI","name":"Gisborne"},{"code":"HB","name":"Hawke’s Bay"},{"code":"MW","name":"Manawatu-Wanganui"},{"code":"WE","name":"Wellington"},{"code":"NS","name":"Nelson"},{"code":"MB","name":"Marlborough"},{"code":"TM","name":"Tasman"},{"code":"WC","name":"West Coast"},{"code":"CT","name":"Canterbury"},{"code":"OT","name":"Otago"},{"code":"SL","name":"Southland"}]},{"code":"NI","name":"Nicaragua","states":[{"code":"NI-AN","name":"Atlántico Norte"},{"code":"NI-AS","name":"Atlántico Sur"},{"code":"NI-BO","name":"Boaco"},{"code":"NI-CA","name":"Carazo"},{"code":"NI-CI","name":"Chinandega"},{"code":"NI-CO","name":"Chontales"},{"code":"NI-ES","name":"Estelí"},{"code":"NI-GR","name":"Granada"},{"code":"NI-JI","name":"Jinotega"},{"code":"NI-LE","name":"León"},{"code":"NI-MD","name":"Madriz"},{"code":"NI-MN","name":"Managua"},{"code":"NI-MS","name":"Masaya"},{"code":"NI-MT","name":"Matagalpa"},{"code":"NI-NS","name":"Nueva Segovia"},{"code":"NI-RI","name":"Rivas"},{"code":"NI-SJ","name":"Río San Juan"}]},{"code":"NE","name":"Niger","states":[]},{"code":"NG","name":"Nigeria","states":[{"code":"AB","name":"Abia"},{"code":"FC","name":"Abuja"},{"code":"AD","name":"Adamawa"},{"code":"AK","name":"Akwa Ibom"},{"code":"AN","name":"Anambra"},{"code":"BA","name":"Bauchi"},{"code":"BY","name":"Bayelsa"},{"code":"BE","name":"Benue"},{"code":"BO","name":"Borno"},{"code":"CR","name":"Cross River"},{"code":"DE","name":"Delta"},{"code":"EB","name":"Ebonyi"},{"code":"ED","name":"Edo"},{"code":"EK","name":"Ekiti"},{"code":"EN","name":"Enugu"},{"code":"GO","name":"Gombe"},{"code":"IM","name":"Imo"},{"code":"JI","name":"Jigawa"},{"code":"KD","name":"Kaduna"},{"code":"KN","name":"Kano"},{"code":"KT","name":"Katsina"},{"code":"KE","name":"Kebbi"},{"code":"KO","name":"Kogi"},{"code":"KW","name":"Kwara"},{"code":"LA","name":"Lagos"},{"code":"NA","name":"Nasarawa"},{"code":"NI","name":"Niger"},{"code":"OG","name":"Ogun"},{"code":"ON","name":"Ondo"},{"code":"OS","name":"Osun"},{"code":"OY","name":"Oyo"},{"code":"PL","name":"Plateau"},{"code":"RI","name":"Rivers"},{"code":"SO","name":"Sokoto"},{"code":"TA","name":"Taraba"},{"code":"YO","name":"Yobe"},{"code":"ZA","name":"Zamfara"}]},{"code":"NU","name":"Niue","states":[]},{"code":"NF","name":"Norfolk Island","states":[]},{"code":"MP","name":"Northern Mariana Islands","states":[]},{"code":"NO","name":"Norway","states":[]},{"code":"OM","name":"Oman","states":[]},{"code":"PK","name":"Pakistan","states":[{"code":"JK","name":"Azad Kashmir"},{"code":"BA","name":"Balochistan"},{"code":"TA","name":"FATA"},{"code":"GB","name":"Gilgit Baltistan"},{"code":"IS","name":"Islamabad Capital Territory"},{"code":"KP","name":"Khyber Pakhtunkhwa"},{"code":"PB","name":"Punjab"},{"code":"SD","name":"Sindh"}]},{"code":"PS","name":"Palestinian Territory","states":[]},{"code":"PA","name":"Panama","states":[{"code":"PA-1","name":"Bocas del Toro"},{"code":"PA-2","name":"Coclé"},{"code":"PA-3","name":"Colón"},{"code":"PA-4","name":"Chiriquí"},{"code":"PA-5","name":"Darién"},{"code":"PA-6","name":"Herrera"},{"code":"PA-7","name":"Los Santos"},{"code":"PA-8","name":"Panamá"},{"code":"PA-9","name":"Veraguas"},{"code":"PA-10","name":"West Panamá"},{"code":"PA-EM","name":"Emberá"},{"code":"PA-KY","name":"Guna Yala"},{"code":"PA-NB","name":"Ngöbe-Buglé"}]},{"code":"PG","name":"Papua New Guinea","states":[]},{"code":"PY","name":"Paraguay","states":[{"code":"PY-ASU","name":"Asunción"},{"code":"PY-1","name":"Concepción"},{"code":"PY-2","name":"San Pedro"},{"code":"PY-3","name":"Cordillera"},{"code":"PY-4","name":"Guairá"},{"code":"PY-5","name":"Caaguazú"},{"code":"PY-6","name":"Caazapá"},{"code":"PY-7","name":"Itapúa"},{"code":"PY-8","name":"Misiones"},{"code":"PY-9","name":"Paraguarí"},{"code":"PY-10","name":"Alto Paraná"},{"code":"PY-11","name":"Central"},{"code":"PY-12","name":"Ñeembucú"},{"code":"PY-13","name":"Amambay"},{"code":"PY-14","name":"Canindeyú"},{"code":"PY-15","name":"Presidente Hayes"},{"code":"PY-16","name":"Alto Paraguay"},{"code":"PY-17","name":"Boquerón"}]},{"code":"PE","name":"Peru","states":[{"code":"CAL","name":"El Callao"},{"code":"LMA","name":"Municipalidad Metropolitana de Lima"},{"code":"AMA","name":"Amazonas"},{"code":"ANC","name":"Ancash"},{"code":"APU","name":"Apurímac"},{"code":"ARE","name":"Arequipa"},{"code":"AYA","name":"Ayacucho"},{"code":"CAJ","name":"Cajamarca"},{"code":"CUS","name":"Cusco"},{"code":"HUV","name":"Huancavelica"},{"code":"HUC","name":"Huánuco"},{"code":"ICA","name":"Ica"},{"code":"JUN","name":"Junín"},{"code":"LAL","name":"La Libertad"},{"code":"LAM","name":"Lambayeque"},{"code":"LIM","name":"Lima"},{"code":"LOR","name":"Loreto"},{"code":"MDD","name":"Madre de Dios"},{"code":"MOQ","name":"Moquegua"},{"code":"PAS","name":"Pasco"},{"code":"PIU","name":"Piura"},{"code":"PUN","name":"Puno"},{"code":"SAM","name":"San Martín"},{"code":"TAC","name":"Tacna"},{"code":"TUM","name":"Tumbes"},{"code":"UCA","name":"Ucayali"}]},{"code":"PH","name":"Philippines","states":[{"code":"ABR","name":"Abra"},{"code":"AGN","name":"Agusan del Norte"},{"code":"AGS","name":"Agusan del Sur"},{"code":"AKL","name":"Aklan"},{"code":"ALB","name":"Albay"},{"code":"ANT","name":"Antique"},{"code":"APA","name":"Apayao"},{"code":"AUR","name":"Aurora"},{"code":"BAS","name":"Basilan"},{"code":"BAN","name":"Bataan"},{"code":"BTN","name":"Batanes"},{"code":"BTG","name":"Batangas"},{"code":"BEN","name":"Benguet"},{"code":"BIL","name":"Biliran"},{"code":"BOH","name":"Bohol"},{"code":"BUK","name":"Bukidnon"},{"code":"BUL","name":"Bulacan"},{"code":"CAG","name":"Cagayan"},{"code":"CAN","name":"Camarines Norte"},{"code":"CAS","name":"Camarines Sur"},{"code":"CAM","name":"Camiguin"},{"code":"CAP","name":"Capiz"},{"code":"CAT","name":"Catanduanes"},{"code":"CAV","name":"Cavite"},{"code":"CEB","name":"Cebu"},{"code":"COM","name":"Compostela Valley"},{"code":"NCO","name":"Cotabato"},{"code":"DAV","name":"Davao del Norte"},{"code":"DAS","name":"Davao del Sur"},{"code":"DAC","name":"Davao Occidental"},{"code":"DAO","name":"Davao Oriental"},{"code":"DIN","name":"Dinagat Islands"},{"code":"EAS","name":"Eastern Samar"},{"code":"GUI","name":"Guimaras"},{"code":"IFU","name":"Ifugao"},{"code":"ILN","name":"Ilocos Norte"},{"code":"ILS","name":"Ilocos Sur"},{"code":"ILI","name":"Iloilo"},{"code":"ISA","name":"Isabela"},{"code":"KAL","name":"Kalinga"},{"code":"LUN","name":"La Union"},{"code":"LAG","name":"Laguna"},{"code":"LAN","name":"Lanao del Norte"},{"code":"LAS","name":"Lanao del Sur"},{"code":"LEY","name":"Leyte"},{"code":"MAG","name":"Maguindanao"},{"code":"MAD","name":"Marinduque"},{"code":"MAS","name":"Masbate"},{"code":"MSC","name":"Misamis Occidental"},{"code":"MSR","name":"Misamis Oriental"},{"code":"MOU","name":"Mountain Province"},{"code":"NEC","name":"Negros Occidental"},{"code":"NER","name":"Negros Oriental"},{"code":"NSA","name":"Northern Samar"},{"code":"NUE","name":"Nueva Ecija"},{"code":"NUV","name":"Nueva Vizcaya"},{"code":"MDC","name":"Occidental Mindoro"},{"code":"MDR","name":"Oriental Mindoro"},{"code":"PLW","name":"Palawan"},{"code":"PAM","name":"Pampanga"},{"code":"PAN","name":"Pangasinan"},{"code":"QUE","name":"Quezon"},{"code":"QUI","name":"Quirino"},{"code":"RIZ","name":"Rizal"},{"code":"ROM","name":"Romblon"},{"code":"WSA","name":"Samar"},{"code":"SAR","name":"Sarangani"},{"code":"SIQ","name":"Siquijor"},{"code":"SOR","name":"Sorsogon"},{"code":"SCO","name":"South Cotabato"},{"code":"SLE","name":"Southern Leyte"},{"code":"SUK","name":"Sultan Kudarat"},{"code":"SLU","name":"Sulu"},{"code":"SUN","name":"Surigao del Norte"},{"code":"SUR","name":"Surigao del Sur"},{"code":"TAR","name":"Tarlac"},{"code":"TAW","name":"Tawi-Tawi"},{"code":"ZMB","name":"Zambales"},{"code":"ZAN","name":"Zamboanga del Norte"},{"code":"ZAS","name":"Zamboanga del Sur"},{"code":"ZSI","name":"Zamboanga Sibugay"},{"code":"00","name":"Metro Manila"}]},{"code":"PN","name":"Pitcairn","states":[]},{"code":"PL","name":"Poland","states":[]},{"code":"PT","name":"Portugal","states":[]},{"code":"PR","name":"Puerto Rico","states":[]},{"code":"QA","name":"Qatar","states":[]},{"code":"RE","name":"Reunion","states":[]},{"code":"RO","name":"Romania","states":[{"code":"AB","name":"Alba"},{"code":"AR","name":"Arad"},{"code":"AG","name":"Argeș"},{"code":"BC","name":"Bacău"},{"code":"BH","name":"Bihor"},{"code":"BN","name":"Bistrița-Năsăud"},{"code":"BT","name":"Botoșani"},{"code":"BR","name":"Brăila"},{"code":"BV","name":"Brașov"},{"code":"B","name":"București"},{"code":"BZ","name":"Buzău"},{"code":"CL","name":"Călărași"},{"code":"CS","name":"Caraș-Severin"},{"code":"CJ","name":"Cluj"},{"code":"CT","name":"Constanța"},{"code":"CV","name":"Covasna"},{"code":"DB","name":"Dâmbovița"},{"code":"DJ","name":"Dolj"},{"code":"GL","name":"Galați"},{"code":"GR","name":"Giurgiu"},{"code":"GJ","name":"Gorj"},{"code":"HR","name":"Harghita"},{"code":"HD","name":"Hunedoara"},{"code":"IL","name":"Ialomița"},{"code":"IS","name":"Iași"},{"code":"IF","name":"Ilfov"},{"code":"MM","name":"Maramureș"},{"code":"MH","name":"Mehedinți"},{"code":"MS","name":"Mureș"},{"code":"NT","name":"Neamț"},{"code":"OT","name":"Olt"},{"code":"PH","name":"Prahova"},{"code":"SJ","name":"Sălaj"},{"code":"SM","name":"Satu Mare"},{"code":"SB","name":"Sibiu"},{"code":"SV","name":"Suceava"},{"code":"TR","name":"Teleorman"},{"code":"TM","name":"Timiș"},{"code":"TL","name":"Tulcea"},{"code":"VL","name":"Vâlcea"},{"code":"VS","name":"Vaslui"},{"code":"VN","name":"Vrancea"}]},{"code":"RU","name":"Russia","states":[]},{"code":"RW","name":"Rwanda","states":[]},{"code":"BL","name":"Saint Barthélemy","states":[]},{"code":"SH","name":"Saint Helena","states":[]},{"code":"KN","name":"Saint Kitts and Nevis","states":[]},{"code":"LC","name":"Saint Lucia","states":[]},{"code":"SX","name":"Saint Martin (Dutch part)","states":[]},{"code":"MF","name":"Saint Martin (French part)","states":[]},{"code":"PM","name":"Saint Pierre and Miquelon","states":[]},{"code":"VC","name":"Saint Vincent and the Grenadines","states":[]},{"code":"WS","name":"Samoa","states":[]},{"code":"SM","name":"San Marino","states":[]},{"code":"ST","name":"São Tomé and Príncipe","states":[]},{"code":"SA","name":"Saudi Arabia","states":[]},{"code":"SN","name":"Senegal","states":[]},{"code":"SC","name":"Seychelles","states":[]},{"code":"SL","name":"Sierra Leone","states":[]},{"code":"SG","name":"Singapore","states":[]},{"code":"SK","name":"Slovakia","states":[]},{"code":"SI","name":"Slovenia","states":[]},{"code":"SB","name":"Solomon Islands","states":[]},{"code":"SO","name":"Somalia","states":[]},{"code":"ZA","name":"South Africa","states":[{"code":"EC","name":"Eastern Cape"},{"code":"FS","name":"Free State"},{"code":"GP","name":"Gauteng"},{"code":"KZN","name":"KwaZulu-Natal"},{"code":"LP","name":"Limpopo"},{"code":"MP","name":"Mpumalanga"},{"code":"NC","name":"Northern Cape"},{"code":"NW","name":"North West"},{"code":"WC","name":"Western Cape"}]},{"code":"GS","name":"South Georgia/Sandwich Islands","states":[]},{"code":"KR","name":"South Korea","states":[]},{"code":"ES","name":"Spain","states":[{"code":"C","name":"A Coruña"},{"code":"VI","name":"Araba/Álava"},{"code":"AB","name":"Albacete"},{"code":"A","name":"Alicante"},{"code":"AL","name":"Almería"},{"code":"O","name":"Asturias"},{"code":"AV","name":"Ávila"},{"code":"BA","name":"Badajoz"},{"code":"PM","name":"Baleares"},{"code":"B","name":"Barcelona"},{"code":"BU","name":"Burgos"},{"code":"CC","name":"Cáceres"},{"code":"CA","name":"Cádiz"},{"code":"S","name":"Cantabria"},{"code":"CS","name":"Castellón"},{"code":"CE","name":"Ceuta"},{"code":"CR","name":"Ciudad Real"},{"code":"CO","name":"Córdoba"},{"code":"CU","name":"Cuenca"},{"code":"GI","name":"Girona"},{"code":"GR","name":"Granada"},{"code":"GU","name":"Guadalajara"},{"code":"SS","name":"Gipuzkoa"},{"code":"H","name":"Huelva"},{"code":"HU","name":"Huesca"},{"code":"J","name":"Jaén"},{"code":"LO","name":"La Rioja"},{"code":"GC","name":"Las Palmas"},{"code":"LE","name":"León"},{"code":"L","name":"Lleida"},{"code":"LU","name":"Lugo"},{"code":"M","name":"Madrid"},{"code":"MA","name":"Málaga"},{"code":"ML","name":"Melilla"},{"code":"MU","name":"Murcia"},{"code":"NA","name":"Navarra"},{"code":"OR","name":"Ourense"},{"code":"P","name":"Palencia"},{"code":"PO","name":"Pontevedra"},{"code":"SA","name":"Salamanca"},{"code":"TF","name":"Santa Cruz de Tenerife"},{"code":"SG","name":"Segovia"},{"code":"SE","name":"Sevilla"},{"code":"SO","name":"Soria"},{"code":"T","name":"Tarragona"},{"code":"TE","name":"Teruel"},{"code":"TO","name":"Toledo"},{"code":"V","name":"Valencia"},{"code":"VA","name":"Valladolid"},{"code":"BI","name":"Biscay"},{"code":"ZA","name":"Zamora"},{"code":"Z","name":"Zaragoza"}]},{"code":"LK","name":"Sri Lanka","states":[]},{"code":"SR","name":"Suriname","states":[]},{"code":"SJ","name":"Svalbard and Jan Mayen","states":[]},{"code":"SE","name":"Sweden","states":[]},{"code":"CH","name":"Switzerland","states":[{"code":"AG","name":"Aargau"},{"code":"AR","name":"Appenzell Ausserrhoden"},{"code":"AI","name":"Appenzell Innerrhoden"},{"code":"BL","name":"Basel-Landschaft"},{"code":"BS","name":"Basel-Stadt"},{"code":"BE","name":"Bern"},{"code":"FR","name":"Fribourg"},{"code":"GE","name":"Geneva"},{"code":"GL","name":"Glarus"},{"code":"GR","name":"Graubünden"},{"code":"JU","name":"Jura"},{"code":"LU","name":"Luzern"},{"code":"NE","name":"Neuchâtel"},{"code":"NW","name":"Nidwalden"},{"code":"OW","name":"Obwalden"},{"code":"SH","name":"Schaffhausen"},{"code":"SZ","name":"Schwyz"},{"code":"SO","name":"Solothurn"},{"code":"SG","name":"St. Gallen"},{"code":"TG","name":"Thurgau"},{"code":"TI","name":"Ticino"},{"code":"UR","name":"Uri"},{"code":"VS","name":"Valais"},{"code":"VD","name":"Vaud"},{"code":"ZG","name":"Zug"},{"code":"ZH","name":"Zürich"}]},{"code":"SY","name":"Syria","states":[]},{"code":"TW","name":"Taiwan","states":[]},{"code":"TJ","name":"Tajikistan","states":[]},{"code":"TZ","name":"Tanzania","states":[{"code":"TZ01","name":"Arusha"},{"code":"TZ02","name":"Dar es Salaam"},{"code":"TZ03","name":"Dodoma"},{"code":"TZ04","name":"Iringa"},{"code":"TZ05","name":"Kagera"},{"code":"TZ06","name":"Pemba North"},{"code":"TZ07","name":"Zanzibar North"},{"code":"TZ08","name":"Kigoma"},{"code":"TZ09","name":"Kilimanjaro"},{"code":"TZ10","name":"Pemba South"},{"code":"TZ11","name":"Zanzibar South"},{"code":"TZ12","name":"Lindi"},{"code":"TZ13","name":"Mara"},{"code":"TZ14","name":"Mbeya"},{"code":"TZ15","name":"Zanzibar West"},{"code":"TZ16","name":"Morogoro"},{"code":"TZ17","name":"Mtwara"},{"code":"TZ18","name":"Mwanza"},{"code":"TZ19","name":"Coast"},{"code":"TZ20","name":"Rukwa"},{"code":"TZ21","name":"Ruvuma"},{"code":"TZ22","name":"Shinyanga"},{"code":"TZ23","name":"Singida"},{"code":"TZ24","name":"Tabora"},{"code":"TZ25","name":"Tanga"},{"code":"TZ26","name":"Manyara"},{"code":"TZ27","name":"Geita"},{"code":"TZ28","name":"Katavi"},{"code":"TZ29","name":"Njombe"},{"code":"TZ30","name":"Simiyu"}]},{"code":"TH","name":"Thailand","states":[{"code":"TH-37","name":"Amnat Charoen"},{"code":"TH-15","name":"Ang Thong"},{"code":"TH-14","name":"Ayutthaya"},{"code":"TH-10","name":"Bangkok"},{"code":"TH-38","name":"Bueng Kan"},{"code":"TH-31","name":"Buri Ram"},{"code":"TH-24","name":"Chachoengsao"},{"code":"TH-18","name":"Chai Nat"},{"code":"TH-36","name":"Chaiyaphum"},{"code":"TH-22","name":"Chanthaburi"},{"code":"TH-50","name":"Chiang Mai"},{"code":"TH-57","name":"Chiang Rai"},{"code":"TH-20","name":"Chonburi"},{"code":"TH-86","name":"Chumphon"},{"code":"TH-46","name":"Kalasin"},{"code":"TH-62","name":"Kamphaeng Phet"},{"code":"TH-71","name":"Kanchanaburi"},{"code":"TH-40","name":"Khon Kaen"},{"code":"TH-81","name":"Krabi"},{"code":"TH-52","name":"Lampang"},{"code":"TH-51","name":"Lamphun"},{"code":"TH-42","name":"Loei"},{"code":"TH-16","name":"Lopburi"},{"code":"TH-58","name":"Mae Hong Son"},{"code":"TH-44","name":"Maha Sarakham"},{"code":"TH-49","name":"Mukdahan"},{"code":"TH-26","name":"Nakhon Nayok"},{"code":"TH-73","name":"Nakhon Pathom"},{"code":"TH-48","name":"Nakhon Phanom"},{"code":"TH-30","name":"Nakhon Ratchasima"},{"code":"TH-60","name":"Nakhon Sawan"},{"code":"TH-80","name":"Nakhon Si Thammarat"},{"code":"TH-55","name":"Nan"},{"code":"TH-96","name":"Narathiwat"},{"code":"TH-39","name":"Nong Bua Lam Phu"},{"code":"TH-43","name":"Nong Khai"},{"code":"TH-12","name":"Nonthaburi"},{"code":"TH-13","name":"Pathum Thani"},{"code":"TH-94","name":"Pattani"},{"code":"TH-82","name":"Phang Nga"},{"code":"TH-93","name":"Phatthalung"},{"code":"TH-56","name":"Phayao"},{"code":"TH-67","name":"Phetchabun"},{"code":"TH-76","name":"Phetchaburi"},{"code":"TH-66","name":"Phichit"},{"code":"TH-65","name":"Phitsanulok"},{"code":"TH-54","name":"Phrae"},{"code":"TH-83","name":"Phuket"},{"code":"TH-25","name":"Prachin Buri"},{"code":"TH-77","name":"Prachuap Khiri Khan"},{"code":"TH-85","name":"Ranong"},{"code":"TH-70","name":"Ratchaburi"},{"code":"TH-21","name":"Rayong"},{"code":"TH-45","name":"Roi Et"},{"code":"TH-27","name":"Sa Kaeo"},{"code":"TH-47","name":"Sakon Nakhon"},{"code":"TH-11","name":"Samut Prakan"},{"code":"TH-74","name":"Samut Sakhon"},{"code":"TH-75","name":"Samut Songkhram"},{"code":"TH-19","name":"Saraburi"},{"code":"TH-91","name":"Satun"},{"code":"TH-17","name":"Sing Buri"},{"code":"TH-33","name":"Sisaket"},{"code":"TH-90","name":"Songkhla"},{"code":"TH-64","name":"Sukhothai"},{"code":"TH-72","name":"Suphan Buri"},{"code":"TH-84","name":"Surat Thani"},{"code":"TH-32","name":"Surin"},{"code":"TH-63","name":"Tak"},{"code":"TH-92","name":"Trang"},{"code":"TH-23","name":"Trat"},{"code":"TH-34","name":"Ubon Ratchathani"},{"code":"TH-41","name":"Udon Thani"},{"code":"TH-61","name":"Uthai Thani"},{"code":"TH-53","name":"Uttaradit"},{"code":"TH-95","name":"Yala"},{"code":"TH-35","name":"Yasothon"}]},{"code":"TL","name":"Timor-Leste","states":[]},{"code":"TG","name":"Togo","states":[]},{"code":"TK","name":"Tokelau","states":[]},{"code":"TO","name":"Tonga","states":[]},{"code":"TT","name":"Trinidad and Tobago","states":[]},{"code":"TN","name":"Tunisia","states":[]},{"code":"TR","name":"Turkey","states":[{"code":"TR01","name":"Adana"},{"code":"TR02","name":"Adıyaman"},{"code":"TR03","name":"Afyon"},{"code":"TR04","name":"Ağrı"},{"code":"TR05","name":"Amasya"},{"code":"TR06","name":"Ankara"},{"code":"TR07","name":"Antalya"},{"code":"TR08","name":"Artvin"},{"code":"TR09","name":"Aydın"},{"code":"TR10","name":"Balıkesir"},{"code":"TR11","name":"Bilecik"},{"code":"TR12","name":"Bingöl"},{"code":"TR13","name":"Bitlis"},{"code":"TR14","name":"Bolu"},{"code":"TR15","name":"Burdur"},{"code":"TR16","name":"Bursa"},{"code":"TR17","name":"Çanakkale"},{"code":"TR18","name":"Çankırı"},{"code":"TR19","name":"Çorum"},{"code":"TR20","name":"Denizli"},{"code":"TR21","name":"Diyarbakır"},{"code":"TR22","name":"Edirne"},{"code":"TR23","name":"Elazığ"},{"code":"TR24","name":"Erzincan"},{"code":"TR25","name":"Erzurum"},{"code":"TR26","name":"Eskişehir"},{"code":"TR27","name":"Gaziantep"},{"code":"TR28","name":"Giresun"},{"code":"TR29","name":"Gümüşhane"},{"code":"TR30","name":"Hakkari"},{"code":"TR31","name":"Hatay"},{"code":"TR32","name":"Isparta"},{"code":"TR33","name":"İçel"},{"code":"TR34","name":"İstanbul"},{"code":"TR35","name":"İzmir"},{"code":"TR36","name":"Kars"},{"code":"TR37","name":"Kastamonu"},{"code":"TR38","name":"Kayseri"},{"code":"TR39","name":"Kırklareli"},{"code":"TR40","name":"Kırşehir"},{"code":"TR41","name":"Kocaeli"},{"code":"TR42","name":"Konya"},{"code":"TR43","name":"Kütahya"},{"code":"TR44","name":"Malatya"},{"code":"TR45","name":"Manisa"},{"code":"TR46","name":"Kahramanmaraş"},{"code":"TR47","name":"Mardin"},{"code":"TR48","name":"Muğla"},{"code":"TR49","name":"Muş"},{"code":"TR50","name":"Nevşehir"},{"code":"TR51","name":"Niğde"},{"code":"TR52","name":"Ordu"},{"code":"TR53","name":"Rize"},{"code":"TR54","name":"Sakarya"},{"code":"TR55","name":"Samsun"},{"code":"TR56","name":"Siirt"},{"code":"TR57","name":"Sinop"},{"code":"TR58","name":"Sivas"},{"code":"TR59","name":"Tekirdağ"},{"code":"TR60","name":"Tokat"},{"code":"TR61","name":"Trabzon"},{"code":"TR62","name":"Tunceli"},{"code":"TR63","name":"Şanlıurfa"},{"code":"TR64","name":"Uşak"},{"code":"TR65","name":"Van"},{"code":"TR66","name":"Yozgat"},{"code":"TR67","name":"Zonguldak"},{"code":"TR68","name":"Aksaray"},{"code":"TR69","name":"Bayburt"},{"code":"TR70","name":"Karaman"},{"code":"TR71","name":"Kırıkkale"},{"code":"TR72","name":"Batman"},{"code":"TR73","name":"Şırnak"},{"code":"TR74","name":"Bartın"},{"code":"TR75","name":"Ardahan"},{"code":"TR76","name":"Iğdır"},{"code":"TR77","name":"Yalova"},{"code":"TR78","name":"Karabük"},{"code":"TR79","name":"Kilis"},{"code":"TR80","name":"Osmaniye"},{"code":"TR81","name":"Düzce"}]},{"code":"TM","name":"Turkmenistan","states":[]},{"code":"TC","name":"Turks and Caicos Islands","states":[]},{"code":"TV","name":"Tuvalu","states":[]},{"code":"UG","name":"Uganda","states":[{"code":"UG314","name":"Abim"},{"code":"UG301","name":"Adjumani"},{"code":"UG322","name":"Agago"},{"code":"UG323","name":"Alebtong"},{"code":"UG315","name":"Amolatar"},{"code":"UG324","name":"Amudat"},{"code":"UG216","name":"Amuria"},{"code":"UG316","name":"Amuru"},{"code":"UG302","name":"Apac"},{"code":"UG303","name":"Arua"},{"code":"UG217","name":"Budaka"},{"code":"UG218","name":"Bududa"},{"code":"UG201","name":"Bugiri"},{"code":"UG235","name":"Bugweri"},{"code":"UG420","name":"Buhweju"},{"code":"UG117","name":"Buikwe"},{"code":"UG219","name":"Bukedea"},{"code":"UG118","name":"Bukomansimbi"},{"code":"UG220","name":"Bukwa"},{"code":"UG225","name":"Bulambuli"},{"code":"UG416","name":"Buliisa"},{"code":"UG401","name":"Bundibugyo"},{"code":"UG430","name":"Bunyangabu"},{"code":"UG402","name":"Bushenyi"},{"code":"UG202","name":"Busia"},{"code":"UG221","name":"Butaleja"},{"code":"UG119","name":"Butambala"},{"code":"UG233","name":"Butebo"},{"code":"UG120","name":"Buvuma"},{"code":"UG226","name":"Buyende"},{"code":"UG317","name":"Dokolo"},{"code":"UG121","name":"Gomba"},{"code":"UG304","name":"Gulu"},{"code":"UG403","name":"Hoima"},{"code":"UG417","name":"Ibanda"},{"code":"UG203","name":"Iganga"},{"code":"UG418","name":"Isingiro"},{"code":"UG204","name":"Jinja"},{"code":"UG318","name":"Kaabong"},{"code":"UG404","name":"Kabale"},{"code":"UG405","name":"Kabarole"},{"code":"UG213","name":"Kaberamaido"},{"code":"UG427","name":"Kagadi"},{"code":"UG428","name":"Kakumiro"},{"code":"UG101","name":"Kalangala"},{"code":"UG222","name":"Kaliro"},{"code":"UG122","name":"Kalungu"},{"code":"UG102","name":"Kampala"},{"code":"UG205","name":"Kamuli"},{"code":"UG413","name":"Kamwenge"},{"code":"UG414","name":"Kanungu"},{"code":"UG206","name":"Kapchorwa"},{"code":"UG236","name":"Kapelebyong"},{"code":"UG126","name":"Kasanda"},{"code":"UG406","name":"Kasese"},{"code":"UG207","name":"Katakwi"},{"code":"UG112","name":"Kayunga"},{"code":"UG407","name":"Kibaale"},{"code":"UG103","name":"Kiboga"},{"code":"UG227","name":"Kibuku"},{"code":"UG432","name":"Kikuube"},{"code":"UG419","name":"Kiruhura"},{"code":"UG421","name":"Kiryandongo"},{"code":"UG408","name":"Kisoro"},{"code":"UG305","name":"Kitgum"},{"code":"UG319","name":"Koboko"},{"code":"UG325","name":"Kole"},{"code":"UG306","name":"Kotido"},{"code":"UG208","name":"Kumi"},{"code":"UG333","name":"Kwania"},{"code":"UG228","name":"Kween"},{"code":"UG123","name":"Kyankwanzi"},{"code":"UG422","name":"Kyegegwa"},{"code":"UG415","name":"Kyenjojo"},{"code":"UG125","name":"Kyotera"},{"code":"UG326","name":"Lamwo"},{"code":"UG307","name":"Lira"},{"code":"UG229","name":"Luuka"},{"code":"UG104","name":"Luwero"},{"code":"UG124","name":"Lwengo"},{"code":"UG114","name":"Lyantonde"},{"code":"UG223","name":"Manafwa"},{"code":"UG320","name":"Maracha"},{"code":"UG105","name":"Masaka"},{"code":"UG409","name":"Masindi"},{"code":"UG214","name":"Mayuge"},{"code":"UG209","name":"Mbale"},{"code":"UG410","name":"Mbarara"},{"code":"UG423","name":"Mitooma"},{"code":"UG115","name":"Mityana"},{"code":"UG308","name":"Moroto"},{"code":"UG309","name":"Moyo"},{"code":"UG106","name":"Mpigi"},{"code":"UG107","name":"Mubende"},{"code":"UG108","name":"Mukono"},{"code":"UG334","name":"Nabilatuk"},{"code":"UG311","name":"Nakapiripirit"},{"code":"UG116","name":"Nakaseke"},{"code":"UG109","name":"Nakasongola"},{"code":"UG230","name":"Namayingo"},{"code":"UG234","name":"Namisindwa"},{"code":"UG224","name":"Namutumba"},{"code":"UG327","name":"Napak"},{"code":"UG310","name":"Nebbi"},{"code":"UG231","name":"Ngora"},{"code":"UG424","name":"Ntoroko"},{"code":"UG411","name":"Ntungamo"},{"code":"UG328","name":"Nwoya"},{"code":"UG331","name":"Omoro"},{"code":"UG329","name":"Otuke"},{"code":"UG321","name":"Oyam"},{"code":"UG312","name":"Pader"},{"code":"UG332","name":"Pakwach"},{"code":"UG210","name":"Pallisa"},{"code":"UG110","name":"Rakai"},{"code":"UG429","name":"Rubanda"},{"code":"UG425","name":"Rubirizi"},{"code":"UG431","name":"Rukiga"},{"code":"UG412","name":"Rukungiri"},{"code":"UG111","name":"Sembabule"},{"code":"UG232","name":"Serere"},{"code":"UG426","name":"Sheema"},{"code":"UG215","name":"Sironko"},{"code":"UG211","name":"Soroti"},{"code":"UG212","name":"Tororo"},{"code":"UG113","name":"Wakiso"},{"code":"UG313","name":"Yumbe"},{"code":"UG330","name":"Zombo"}]},{"code":"UA","name":"Ukraine","states":[{"code":"VN","name":"Vinnytsia Oblast"},{"code":"VL","name":"Volyn Oblast"},{"code":"DP","name":"Dnipropetrovsk Oblast"},{"code":"DT","name":"Donetsk Oblast"},{"code":"ZT","name":"Zhytomyr Oblast"},{"code":"ZK","name":"Zakarpattia Oblast"},{"code":"ZP","name":"Zaporizhzhia Oblast"},{"code":"IF","name":"Ivano-Frankivsk Oblast"},{"code":"KV","name":"Kyiv Oblast"},{"code":"KH","name":"Kirovohrad Oblast"},{"code":"LH","name":"Luhansk Oblast"},{"code":"LV","name":"Lviv Oblast"},{"code":"MY","name":"Mykolaiv Oblast"},{"code":"OD","name":"Odessa Oblast"},{"code":"PL","name":"Poltava Oblast"},{"code":"RV","name":"Rivne Oblast"},{"code":"SM","name":"Sumy Oblast"},{"code":"TP","name":"Ternopil Oblast"},{"code":"KK","name":"Kharkiv Oblast"},{"code":"KS","name":"Kherson Oblast"},{"code":"KM","name":"Khmelnytskyi Oblast"},{"code":"CK","name":"Cherkasy Oblast"},{"code":"CH","name":"Chernihiv Oblast"},{"code":"CV","name":"Chernivtsi Oblast"}]},{"code":"AE","name":"United Arab Emirates","states":[]},{"code":"GB","name":"United Kingdom (UK)","states":[]},{"code":"US","name":"United States (US)","states":[{"code":"AL","name":"Alabama"},{"code":"AK","name":"Alaska"},{"code":"AZ","name":"Arizona"},{"code":"AR","name":"Arkansas"},{"code":"CA","name":"California"},{"code":"CO","name":"Colorado"},{"code":"CT","name":"Connecticut"},{"code":"DE","name":"Delaware"},{"code":"DC","name":"District Of Columbia"},{"code":"FL","name":"Florida"},{"code":"GA","name":"Georgia"},{"code":"HI","name":"Hawaii"},{"code":"ID","name":"Idaho"},{"code":"IL","name":"Illinois"},{"code":"IN","name":"Indiana"},{"code":"IA","name":"Iowa"},{"code":"KS","name":"Kansas"},{"code":"KY","name":"Kentucky"},{"code":"LA","name":"Louisiana"},{"code":"ME","name":"Maine"},{"code":"MD","name":"Maryland"},{"code":"MA","name":"Massachusetts"},{"code":"MI","name":"Michigan"},{"code":"MN","name":"Minnesota"},{"code":"MS","name":"Mississippi"},{"code":"MO","name":"Missouri"},{"code":"MT","name":"Montana"},{"code":"NE","name":"Nebraska"},{"code":"NV","name":"Nevada"},{"code":"NH","name":"New Hampshire"},{"code":"NJ","name":"New Jersey"},{"code":"NM","name":"New Mexico"},{"code":"NY","name":"New York"},{"code":"NC","name":"North Carolina"},{"code":"ND","name":"North Dakota"},{"code":"OH","name":"Ohio"},{"code":"OK","name":"Oklahoma"},{"code":"OR","name":"Oregon"},{"code":"PA","name":"Pennsylvania"},{"code":"RI","name":"Rhode Island"},{"code":"SC","name":"South Carolina"},{"code":"SD","name":"South Dakota"},{"code":"TN","name":"Tennessee"},{"code":"TX","name":"Texas"},{"code":"UT","name":"Utah"},{"code":"VT","name":"Vermont"},{"code":"VA","name":"Virginia"},{"code":"WA","name":"Washington"},{"code":"WV","name":"West Virginia"},{"code":"WI","name":"Wisconsin"},{"code":"WY","name":"Wyoming"},{"code":"AA","name":"Armed Forces (AA)"},{"code":"AE","name":"Armed Forces (AE)"},{"code":"AP","name":"Armed Forces (AP)"}]},{"code":"UM","name":"United States (US) Minor Outlying Islands","states":[{"code":81,"name":"Baker Island"},{"code":84,"name":"Howland Island"},{"code":86,"name":"Jarvis Island"},{"code":67,"name":"Johnston Atoll"},{"code":89,"name":"Kingman Reef"},{"code":71,"name":"Midway Atoll"},{"code":76,"name":"Navassa Island"},{"code":95,"name":"Palmyra Atoll"},{"code":79,"name":"Wake Island"}]},{"code":"UY","name":"Uruguay","states":[{"code":"UY-AR","name":"Artigas"},{"code":"UY-CA","name":"Canelones"},{"code":"UY-CL","name":"Cerro Largo"},{"code":"UY-CO","name":"Colonia"},{"code":"UY-DU","name":"Durazno"},{"code":"UY-FS","name":"Flores"},{"code":"UY-FD","name":"Florida"},{"code":"UY-LA","name":"Lavalleja"},{"code":"UY-MA","name":"Maldonado"},{"code":"UY-MO","name":"Montevideo"},{"code":"UY-PA","name":"Paysandú"},{"code":"UY-RN","name":"Río Negro"},{"code":"UY-RV","name":"Rivera"},{"code":"UY-RO","name":"Rocha"},{"code":"UY-SA","name":"Salto"},{"code":"UY-SJ","name":"San José"},{"code":"UY-SO","name":"Soriano"},{"code":"UY-TA","name":"Tacuarembó"},{"code":"UY-TT","name":"Treinta y Tres"}]},{"code":"UZ","name":"Uzbekistan","states":[]},{"code":"VU","name":"Vanuatu","states":[]},{"code":"VA","name":"Vatican","states":[]},{"code":"VN","name":"Vietnam","states":[]},{"code":"VG","name":"Virgin Islands (British)","states":[]},{"code":"VI","name":"Virgin Islands (US)","states":[]},{"code":"WF","name":"Wallis and Futuna","states":[]},{"code":"EH","name":"Western Sahara","states":[]},{"code":"ZM","name":"Zambia","states":[{"code":"ZM-01","name":"Western"},{"code":"ZM-02","name":"Central"},{"code":"ZM-03","name":"Eastern"},{"code":"ZM-04","name":"Luapula"},{"code":"ZM-05","name":"Northern"},{"code":"ZM-06","name":"North-Western"},{"code":"ZM-07","name":"Southern"},{"code":"ZM-08","name":"Copperbelt"},{"code":"ZM-09","name":"Lusaka"},{"code":"ZM-10","name":"Muchinga"}]}]'),C=JSON.parse('{"AED":"United Arab Emirates dirham (AED) (د.إ)","AFN":"Afghan afghani (AFN) (؋)","ALL":"Albanian lek (ALL) (L)","AMD":"Armenian dram (AMD) (AMD)","ANG":"Netherlands Antillean guilder (ANG) (ƒ)","AOA":"Angolan kwanza (AOA) (Kz)","ARS":"Argentine peso (ARS) ($)","AUD":"Australian dollar (AUD) ($)","AWG":"Aruban florin (AWG) (Afl.)","AZN":"Azerbaijani manat (AZN) (AZN)","BAM":"Bosnia and Herzegovina convertible mark (BAM) (KM)","BBD":"Barbadian dollar (BBD) ($)","BDT":"Bangladeshi taka (BDT) (৳ )","BGN":"Bulgarian lev (BGN) (лв.)","BHD":"Bahraini dinar (BHD) (.د.ب)","BIF":"Burundian franc (BIF) (Fr)","BMD":"Bermudian dollar (BMD) ($)","BND":"Brunei dollar (BND) ($)","BOB":"Bolivian boliviano (BOB) (Bs.)","BRL":"Brazilian real (BRL) (R$)","BSD":"Bahamian dollar (BSD) ($)","BTC":"Bitcoin (BTC) (฿)","BTN":"Bhutanese ngultrum (BTN) (Nu.)","BWP":"Botswana pula (BWP) (P)","BYR":"Belarusian ruble (old) (BYR) (Br)","BYN":"Belarusian ruble (BYN) (Br)","BZD":"Belize dollar (BZD) ($)","CAD":"Canadian dollar (CAD) ($)","CDF":"Congolese franc (CDF) (Fr)","CHF":"Swiss franc (CHF) (CHF)","CLP":"Chilean peso (CLP) ($)","CNY":"Chinese yuan (CNY) (¥)","COP":"Colombian peso (COP) ($)","CRC":"Costa Rican colón (CRC) (₡)","CUC":"Cuban convertible peso (CUC) ($)","CUP":"Cuban peso (CUP) ($)","CVE":"Cape Verdean escudo (CVE) ($)","CZK":"Czech koruna (CZK) (Kč)","DJF":"Djiboutian franc (DJF) (Fr)","DKK":"Danish krone (DKK) (kr.)","DOP":"Dominican peso (DOP) (RD$)","DZD":"Algerian dinar (DZD) (د.ج)","EGP":"Egyptian pound (EGP) (EGP)","ERN":"Eritrean nakfa (ERN) (Nfk)","ETB":"Ethiopian birr (ETB) (Br)","EUR":"Euro (EUR) (€)","FJD":"Fijian dollar (FJD) ($)","FKP":"Falkland Islands pound (FKP) (£)","GBP":"Pound sterling (GBP) (£)","GEL":"Georgian lari (GEL) (₾)","GGP":"Guernsey pound (GGP) (£)","GHS":"Ghana cedi (GHS) (₵)","GIP":"Gibraltar pound (GIP) (£)","GMD":"Gambian dalasi (GMD) (D)","GNF":"Guinean franc (GNF) (Fr)","GTQ":"Guatemalan quetzal (GTQ) (Q)","GYD":"Guyanese dollar (GYD) ($)","HKD":"Hong Kong dollar (HKD) ($)","HNL":"Honduran lempira (HNL) (L)","HRK":"Croatian kuna (HRK) (kn)","HTG":"Haitian gourde (HTG) (G)","HUF":"Hungarian forint (HUF) (Ft)","IDR":"Indonesian rupiah (IDR) (Rp)","ILS":"Israeli new shekel (ILS) (₪)","IMP":"Manx pound (IMP) (£)","INR":"Indian rupee (INR) (₹)","IQD":"Iraqi dinar (IQD) (د.ع)","IRR":"Iranian rial (IRR) (﷼)","IRT":"Iranian toman (IRT) (تومان)","ISK":"Icelandic króna (ISK) (kr.)","JEP":"Jersey pound (JEP) (£)","JMD":"Jamaican dollar (JMD) ($)","JOD":"Jordanian dinar (JOD) (د.ا)","JPY":"Japanese yen (JPY) (¥)","KES":"Kenyan shilling (KES) (KSh)","KGS":"Kyrgyzstani som (KGS) (сом)","KHR":"Cambodian riel (KHR) (៛)","KMF":"Comorian franc (KMF) (Fr)","KPW":"North Korean won (KPW) (₩)","KRW":"South Korean won (KRW) (₩)","KWD":"Kuwaiti dinar (KWD) (د.ك)","KYD":"Cayman Islands dollar (KYD) ($)","KZT":"Kazakhstani tenge (KZT) (₸)","LAK":"Lao kip (LAK) (₭)","LBP":"Lebanese pound (LBP) (ل.ل)","LKR":"Sri Lankan rupee (LKR) (රු)","LRD":"Liberian dollar (LRD) ($)","LSL":"Lesotho loti (LSL) (L)","LYD":"Libyan dinar (LYD) (ل.د)","MAD":"Moroccan dirham (MAD) (د.م.)","MDL":"Moldovan leu (MDL) (MDL)","MGA":"Malagasy ariary (MGA) (Ar)","MKD":"Macedonian denar (MKD) (ден)","MMK":"Burmese kyat (MMK) (Ks)","MNT":"Mongolian tögrög (MNT) (₮)","MOP":"Macanese pataca (MOP) (P)","MRU":"Mauritanian ouguiya (MRU) (UM)","MUR":"Mauritian rupee (MUR) (₨)","MVR":"Maldivian rufiyaa (MVR) (.ރ)","MWK":"Malawian kwacha (MWK) (MK)","MXN":"Mexican peso (MXN) ($)","MYR":"Malaysian ringgit (MYR) (RM)","MZN":"Mozambican metical (MZN) (MT)","NAD":"Namibian dollar (NAD) (N$)","NGN":"Nigerian naira (NGN) (₦)","NIO":"Nicaraguan córdoba (NIO) (C$)","NOK":"Norwegian krone (NOK) (kr)","NPR":"Nepalese rupee (NPR) (₨)","NZD":"New Zealand dollar (NZD) ($)","OMR":"Omani rial (OMR) (ر.ع.)","PAB":"Panamanian balboa (PAB) (B/.)","PEN":"Sol (PEN) (S/)","PGK":"Papua New Guinean kina (PGK) (K)","PHP":"Philippine peso (PHP) (₱)","PKR":"Pakistani rupee (PKR) (₨)","PLN":"Polish złoty (PLN) (zł)","PRB":"Transnistrian ruble (PRB) (р.)","PYG":"Paraguayan guaraní (PYG) (₲)","QAR":"Qatari riyal (QAR) (ر.ق)","RON":"Romanian leu (RON) (lei)","RSD":"Serbian dinar (RSD) (рсд)","RUB":"Russian ruble (RUB) (₽)","RWF":"Rwandan franc (RWF) (Fr)","SAR":"Saudi riyal (SAR) (ر.س)","SBD":"Solomon Islands dollar (SBD) ($)","SCR":"Seychellois rupee (SCR) (₨)","SDG":"Sudanese pound (SDG) (ج.س.)","SEK":"Swedish krona (SEK) (kr)","SGD":"Singapore dollar (SGD) ($)","SHP":"Saint Helena pound (SHP) (£)","SLL":"Sierra Leonean leone (SLL) (Le)","SOS":"Somali shilling (SOS) (Sh)","SRD":"Surinamese dollar (SRD) ($)","SSP":"South Sudanese pound (SSP) (£)","STN":"São Tomé and Príncipe dobra (STN) (Db)","SYP":"Syrian pound (SYP) (ل.س)","SZL":"Swazi lilangeni (SZL) (E)","THB":"Thai baht (THB) (฿)","TJS":"Tajikistani somoni (TJS) (ЅМ)","TMT":"Turkmenistan manat (TMT) (m)","TND":"Tunisian dinar (TND) (د.ت)","TOP":"Tongan paʻanga (TOP) (T$)","TRY":"Turkish lira (TRY) (₺)","TTD":"Trinidad and Tobago dollar (TTD) ($)","TWD":"New Taiwan dollar (TWD) (NT$)","TZS":"Tanzanian shilling (TZS) (Sh)","UAH":"Ukrainian hryvnia (UAH) (₴)","UGX":"Ugandan shilling (UGX) (UGX)","USD":"United States (US) dollar (USD) ($)","UYU":"Uruguayan peso (UYU) ($)","UZS":"Uzbekistani som (UZS) (UZS)","VEF":"Venezuelan bolívar (VEF) (Bs F)","VES":"Bolívar soberano (VES) (Bs.S)","VND":"Vietnamese đồng (VND) (₫)","VUV":"Vanuatu vatu (VUV) (Vt)","WST":"Samoan tālā (WST) (T)","XAF":"Central African CFA franc (XAF) (CFA)","XCD":"East Caribbean dollar (XCD) ($)","XOF":"West African CFA franc (XOF) (CFA)","XPF":"CFP franc (XPF) (Fr)","YER":"Yemeni rial (YER) (﷼)","ZAR":"South African rand (ZAR) (R)","ZMW":"Zambian kwacha (ZMW) (ZK)"}');var T=n(6436),A=n(431),B=n(7723);var h=n(1852);const N=()=>{var e,a,n;const[N,M]=(0,c.useState)(),g=(0,d.useViewportMatch)("medium"),{setDrawerActiveView:G,setIsDrawerOpened:D,setIsDrawerSuppressed:P,setSidebarActiveView:R,setCurrentOnboardingData:b,setIsHeaderNavigationEnabled:E}=(0,m.useDispatch)(u.M);(0,c.useEffect)((()=>{g&&D(!0),P(!1),E(!0),R(t.Qe),G(t.eY),(async()=>{const e=await(0,T.A)();M(e)})()}),[]);const{currentData:K,newfoldBrand:L}=(0,m.useSelect)((e=>({currentData:e(u.M).getCurrentOnboardingData(),newfoldBrand:e(u.M).getNewfoldBrand()})),[]);(0,c.useEffect)((()=>{if(N){const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode","woocommerce_default_country","woocommerce_currency","woocommerce_email_from_address"],n=["woocommerce_default_country","woocommerce_currency"];if(null!==N&&void 0===K.storeDetails.address){var e;const o=(e=>{const a=["woocommerce_store_address","woocommerce_store_city","woocommerce_store_postcode"].every((a=>null===e[a]||""===e[a])),n=[["woocommerce_default_country","US:CA"],["woocommerce_currency","USD"]].every((([a,n])=>e[a]===n));return a&&n})(N),d={...N},m=(e=>{switch(e){case"crazy-domains":return{woocommerce_default_country:"AU:NSW",woocommerce_currency:"AUD"};case"bluehost-india":return{woocommerce_default_country:"IN:AP",woocommerce_currency:"INR"};case"hostgator-br":return{woocommerce_default_country:"BR:AC",woocommerce_currency:"BRL"};default:return{woocommerce_default_country:"US:AZ",woocommerce_currency:"USD"}}})(L);for(const e of n)(null===d[e]||""===d[e]||o)&&(d[e]=m[e]);b({...K,storeDetails:{...K.storeDetails,address:{...null!==(e=K.storeDetails.address)&&void 0!==e?e:{},...a.reduce(((e,a)=>({...e,[a]:d[a]})),{})}}})}}}),[N,K.storeDetails,L]);const{address:O}=K.storeDetails,U={disabled:void 0===O,onChange:Z,onBlur:Z},p=null!==(e=O?.woocommerce_default_country)&&void 0!==e?e:"",[y,H]=p.split(":"),I=null!==(a=O?.country)&&void 0!==a?a:y,k=null!==(n=S?.find((e=>e.code===I))?.states)&&void 0!==n?n:[];function Z(e){const a=e.target.name,n=e.target.value;let{country:o=I,state:d}=O;o===y&&void 0===d&&(d=H),0===k.length&&(d="");let m="";["country","state"].includes(a)&&(m="country"===a?d?`${n}:${d}`:n:`${o}:${n}`),b({...K,storeDetails:{...K.storeDetails,address:{...K.storeDetails.address,[a]:n,...""!==m&&{woocommerce_default_country:m}}}})}const w={heading:(0,B.__)("Confirm your business or store address","wp-module-onboarding"),subheading:(0,B.__)("We’ll use this information to help you setup your online store","wp-module-onboarding"),countryInputLabel:(0,B.__)("Where is your store based?","wp-module-onboarding"),addressInputLabel:(0,B.__)("Address","wp-module-onboarding"),cityInputLabel:(0,B.__)("City","wp-module-onboarding"),stateInputLabel:(0,B.__)("State","wp-module-onboarding"),postalCodeInputLabel:(0,B.__)("Postal Code","wp-module-onboarding"),emailInputLabel:(0,B.__)("Email","wp-module-onboarding"),currencyInputLabel:(0,B.__)("What currency do you want to display in your store?","wp-module-onboarding"),requiredText:(0,B.__)("* required","wp-module-onboarding"),buttonText:(0,B.__)("Continue Setup","wp-module-onboarding")};return(0,o.createElement)(i.A,{isBgPrimary:!0,isCentered:!0},(0,o.createElement)(l.A,{className:"ecommerce-step nfd-ecommerce-address-step"},(0,o.createElement)("div",{className:"onboarding-ecommerce-step"},(0,o.createElement)("form",{className:"onboarding-ecommerce-step",style:{display:"grid",justifyItems:"center"}},(0,o.createElement)("div",{className:"nfd-card-heading center onboarding-ecommerce-step"},(0,o.createElement)(r.A,{heading:w.heading,subHeading:w.subheading})),(0,o.createElement)(A.A,{type:"fade-in-disabled",after:void 0!==O},(0,o.createElement)("div",{className:"store-address-form"},(0,o.createElement)("div",{"data-name":"country"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"country"},w.countryInputLabel),void 0===O?(0,o.createElement)("input",{id:"country",name:"country",type:"text",disabled:!0}):(0,o.createElement)("select",{type:"text",name:"country",required:!0,defaultValue:I,...U},S.map((e=>(0,o.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,o.createElement)("div",{"data-name":"woocommerce_store_address"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_address"},w.addressInputLabel),(0,o.createElement)("input",{id:"woocommerce_store_address",name:"woocommerce_store_address",type:"text",required:!0,defaultValue:O?.woocommerce_store_address,...U})),(0,o.createElement)("div",{"data-name":"full-address","data-state-empty":0===k.length},(0,o.createElement)("div",{"data-name":"woocommerce_store_city"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_city"},w.cityInputLabel),(0,o.createElement)("input",{name:"woocommerce_store_city",id:"woocommerce_store_city",type:"text",required:!0,defaultValue:O?.woocommerce_store_city,...U})),0===k.length||void 0===O?null:(0,o.createElement)("div",{"data-name":"state"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"state"},w.stateInputLabel),(0,o.createElement)("select",{id:"state",type:"text",name:"state",required:!0,defaultValue:I===y?H:"",...U},(0,o.createElement)("option",{key:"",value:"",selected:!0}),k.map((e=>(0,o.createElement)("option",{key:e.code,value:e.code},e.name))))),(0,o.createElement)("div",{"data-name":"woocommerce_store_postcode"},(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_store_postcode"},w.postalCodeInputLabel),(0,o.createElement)("input",{id:"woocommerce_store_postcode",name:"woocommerce_store_postcode",type:"text",required:!0,defaultValue:O?.woocommerce_store_postcode,...U}))),(0,o.createElement)("div",null,(0,o.createElement)("label",{"aria-required":!0,htmlFor:"woocommerce_email_from_address"},w.emailInputLabel),(0,o.createElement)("input",{name:"woocommerce_email_from_address",id:"woocommerce_email_from_address",type:"email",required:!0,defaultValue:O?.woocommerce_email_from_address,...U})),(0,o.createElement)("div",null,(0,o.createElement)("label",{htmlFor:"woocommerce_currency"},w.currencyInputLabel),(0,o.createElement)("select",{id:"woocommerce_currency",type:"text",name:"woocommerce_currency",value:O?.woocommerce_currency,...U},Object.entries(C).map((([e,a])=>(0,o.createElement)("option",{key:e,value:e,dangerouslySetInnerHTML:{__html:a}}))))),(0,o.createElement)("em",{style:{display:"inline"}},w.requiredText))),(0,o.createElement)(h.A,{text:w.buttonText,disabled:void 0===O})),(0,o.createElement)(s.A,null))))}}}]); \ No newline at end of file diff --git a/build/2.3.8/859.js b/build/2.3.9/859.js similarity index 100% rename from build/2.3.8/859.js rename to build/2.3.9/859.js diff --git a/build/2.3.8/866.js b/build/2.3.9/866.js similarity index 100% rename from build/2.3.8/866.js rename to build/2.3.9/866.js diff --git a/build/2.3.8/871.js b/build/2.3.9/871.js similarity index 100% rename from build/2.3.8/871.js rename to build/2.3.9/871.js diff --git a/build/2.3.8/910.js b/build/2.3.9/910.js similarity index 100% rename from build/2.3.8/910.js rename to build/2.3.9/910.js diff --git a/build/2.3.8/97.js b/build/2.3.9/97.js similarity index 100% rename from build/2.3.8/97.js rename to build/2.3.9/97.js diff --git a/build/2.3.8/971.js b/build/2.3.9/971.js similarity index 100% rename from build/2.3.8/971.js rename to build/2.3.9/971.js diff --git a/build/2.3.8/978.js b/build/2.3.9/978.js similarity index 100% rename from build/2.3.8/978.js rename to build/2.3.9/978.js diff --git a/build/2.3.8/993.js b/build/2.3.9/993.js similarity index 100% rename from build/2.3.8/993.js rename to build/2.3.9/993.js diff --git a/build/2.3.8/994.js b/build/2.3.9/994.js similarity index 100% rename from build/2.3.8/994.js rename to build/2.3.9/994.js diff --git a/build/2.3.8/996.js b/build/2.3.9/996.js similarity index 100% rename from build/2.3.8/996.js rename to build/2.3.9/996.js diff --git a/build/2.3.8/images/ai_bg.55900f2d.png b/build/2.3.9/images/ai_bg.55900f2d.png similarity index 100% rename from build/2.3.8/images/ai_bg.55900f2d.png rename to build/2.3.9/images/ai_bg.55900f2d.png diff --git a/build/2.3.8/images/ai_bg_low.d8292556.png b/build/2.3.9/images/ai_bg_low.d8292556.png similarity index 100% rename from build/2.3.8/images/ai_bg_low.d8292556.png rename to build/2.3.9/images/ai_bg_low.d8292556.png diff --git a/build/2.3.8/images/bluesky.733ebcbf.png b/build/2.3.9/images/bluesky.733ebcbf.png similarity index 100% rename from build/2.3.8/images/bluesky.733ebcbf.png rename to build/2.3.9/images/bluesky.733ebcbf.png diff --git a/build/2.3.8/images/content.fb050ea1.png b/build/2.3.9/images/content.fb050ea1.png similarity index 100% rename from build/2.3.8/images/content.fb050ea1.png rename to build/2.3.9/images/content.fb050ea1.png diff --git a/build/2.3.8/images/design.cc6a697f.png b/build/2.3.9/images/design.cc6a697f.png similarity index 100% rename from build/2.3.8/images/design.cc6a697f.png rename to build/2.3.9/images/design.cc6a697f.png diff --git a/build/2.3.8/images/features.593fb09c.png b/build/2.3.9/images/features.593fb09c.png similarity index 100% rename from build/2.3.8/images/features.593fb09c.png rename to build/2.3.9/images/features.593fb09c.png diff --git a/build/2.3.8/images/full-service.7f58f410.png b/build/2.3.9/images/full-service.7f58f410.png similarity index 100% rename from build/2.3.8/images/full-service.7f58f410.png rename to build/2.3.9/images/full-service.7f58f410.png diff --git a/build/2.3.8/images/full-service.adb3abd6.png b/build/2.3.9/images/full-service.adb3abd6.png similarity index 100% rename from build/2.3.8/images/full-service.adb3abd6.png rename to build/2.3.9/images/full-service.adb3abd6.png diff --git a/build/2.3.8/images/help.19cc7e75.png b/build/2.3.9/images/help.19cc7e75.png similarity index 100% rename from build/2.3.8/images/help.19cc7e75.png rename to build/2.3.9/images/help.19cc7e75.png diff --git a/build/2.3.8/images/step-interstitial.00b15f9e.png b/build/2.3.9/images/step-interstitial.00b15f9e.png similarity index 100% rename from build/2.3.8/images/step-interstitial.00b15f9e.png rename to build/2.3.9/images/step-interstitial.00b15f9e.png diff --git a/build/2.3.8/images/toggle-light-mode.8d7afd07.png b/build/2.3.9/images/toggle-light-mode.8d7afd07.png similarity index 100% rename from build/2.3.8/images/toggle-light-mode.8d7afd07.png rename to build/2.3.9/images/toggle-light-mode.8d7afd07.png diff --git a/build/2.3.8/images/wp-admin.2908b886.png b/build/2.3.9/images/wp-admin.2908b886.png similarity index 100% rename from build/2.3.8/images/wp-admin.2908b886.png rename to build/2.3.9/images/wp-admin.2908b886.png diff --git a/build/2.3.8/images/wp-admin.6c8af0b4.png b/build/2.3.9/images/wp-admin.6c8af0b4.png similarity index 100% rename from build/2.3.8/images/wp-admin.6c8af0b4.png rename to build/2.3.9/images/wp-admin.6c8af0b4.png diff --git a/build/2.3.8/images/wp-admin.d8650899.png b/build/2.3.9/images/wp-admin.d8650899.png similarity index 100% rename from build/2.3.8/images/wp-admin.d8650899.png rename to build/2.3.9/images/wp-admin.d8650899.png diff --git a/build/2.3.8/onboarding.asset.php b/build/2.3.9/onboarding.asset.php similarity index 80% rename from build/2.3.8/onboarding.asset.php rename to build/2.3.9/onboarding.asset.php index 123cba27d..ec68a49d5 100644 --- a/build/2.3.8/onboarding.asset.php +++ b/build/2.3.9/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' => '2cb665654c974c729b39'); + 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' => '2f6e8d4c59bcaf0c6866'); diff --git a/build/2.3.8/onboarding.css b/build/2.3.9/onboarding.css similarity index 100% rename from build/2.3.8/onboarding.css rename to build/2.3.9/onboarding.css diff --git a/build/2.3.9/onboarding.js b/build/2.3.9/onboarding.js new file mode 100644 index 000000000..4c9868483 --- /dev/null +++ b/build/2.3.9/onboarding.js @@ -0,0 +1,59 @@ +(()=>{var e,t,n={4371:(e,t,n)=>{"use strict";n.d(t,{y:()=>x,c:()=>o});var r={};n.r(r),n.d(r,{initializeNamespace:()=>c,updateHiiveDebounceInstance:()=>h,updateHiiveDebounceTime:()=>p,updateHiiveEventsQueue:()=>u,updateHiiveEventsQueueThreshold:()=>d,updateHiiveUrls:()=>l});var i={};n.r(i),n.d(i,{getHiiveBatchUrl:()=>_,getHiiveDebounce:()=>v,getHiiveEventsQueue:()=>m,getHiiveEventsQueueThreshold:()=>g,getHiiveSingleUrl:()=>f});var a=n(7143);class o{constructor(e,t,n,r){this.category=e,this.action=t,this.data=n,this.namespace=r}}const s={urls:{single:void 0,batch:void 0},queue:{events:[],threshold:100},debounce:{time:void 0,instance:void 0}};function c(e){return{type:"INITIALIZE_NAMESPACE",namespace:e}}function l(e,t){return{type:"UPDATE_HIIVE_URLS",urls:e,namespace:t}}function u(e,t){return{type:"UPDATE_HIIVE_EVENTS_QUEUE",events:e,namespace:t}}function d(e,t){return{type:"UPDATE_HIIVE_EVENTS_QUEUE_THRESHOLD",threshold:e,namespace:t}}function p(e,t){return{type:"UPDATE_HIIVE_DEBOUNCE_TIME",debounceTime:e,namespace:t}}function h(e,t){return{type:"UPDATE_HIIVE_DEBOUNCE_INSTANCE",instance:e,namespace:t}}function m(e,t){return e.hiive[t]?.queue.events}function g(e,t){return e.hiive[t]?.queue.threshold}function f(e,t){return e.hiive[t]?.urls.single}function _(e,t){return e.hiive[t]?.urls.batch}function v(e,t){return e.hiive[t]?.debounce}const b={reducer:(0,a.combineReducers)({hiive:(e,t)=>{switch(t.type){case"INITIALIZE_NAMESPACE":return{...e,[t.namespace]:s};case"UPDATE_HIIVE_URLS":return{...e,[t.namespace]:{...e[t.namespace],urls:{single:t.urls.single,batch:t.urls.batch}}};case"UPDATE_HIIVE_EVENTS_QUEUE":return{...e,[t.namespace]:{...e[t.namespace],queue:{events:t.events,threshold:e[t.namespace].queue.threshold}}};case"UPDATE_HIIVE_EVENTS_QUEUE_THRESHOLD":return{...e,[t.namespace]:{...e[t.namespace],queue:{events:e[t.namespace].queue.events,threshold:t.threshold}}};case"UPDATE_HIIVE_DEBOUNCE_TIME":return{...e,[t.namespace]:{...e[t.namespace],debounce:{time:t.debounceTime,instance:e[t.namespace].debounce.instance}}};case"UPDATE_HIIVE_DEBOUNCE_INSTANCE":return{...e,[t.namespace]:{...e[t.namespace],debounce:{time:e[t.namespace].debounce.time,instance:t.instance}}}}return e}}),actions:r,selectors:i},w=(0,a.createReduxStore)("newfold/ui-analytics",b);(0,a.register)(w);var y=n(1455),S=n.n(y);const E=e=>!!window?.nfdUIAnalytics?.hiive&&e in window.nfdUIAnalytics.hiive,k=e=>e instanceof o,T=async e=>{if(!e||!E(e))return!1;const t=(0,a.select)(w).getHiiveBatchUrl(e);if(!t)return!1;const n=(0,a.select)(w).getHiiveEventsQueue(e);if(0===n.length)return!0;(0,a.dispatch)(w).updateHiiveEventsQueue([],e);try{await S()({url:t,method:"POST",data:n})}catch(t){console.error(t),(0,a.dispatch)(w).updateHiiveEventsQueue(n,e)}return!0},x={initialize:async({namespace:e,urls:{single:t,batch:n}={},settings:{debounce:{time:r}={},queue:{threshold:i=100}={}}={}})=>!(!e||!E(e)&&(!t&&!n||((0,a.dispatch)(w).initializeNamespace(e),(0,a.dispatch)(w).updateHiiveUrls({single:t,batch:n},e),(0,a.dispatch)(w).updateHiiveDebounceTime(r,e),(0,a.dispatch)(w).updateHiiveEventsQueueThreshold(i,e),window.nfdUIAnalytics?.hiive?window.nfdUIAnalytics.hiive[e]=!0:window.nfdUIAnalytics={hiive:{[e]:!0}},0))),initialized:E,validate:k,track:e=>{if(!k(e)||!E(e.namespace))return!1;const t=e.namespace;delete e.namespace;const n=(0,a.select)(w).getHiiveEventsQueue(t);n.push(e),(0,a.dispatch)(w).updateHiiveEventsQueue(n,t);const r=(0,a.select)(w).getHiiveEventsQueueThreshold(t);return r&&r{if(!e)return!1;const t=(0,a.select)(w).getHiiveDebounce(e);!!t.time&&(clearInterval(t.instance),(0,a.dispatch)(w).updateHiiveDebounceInstance(setTimeout((()=>{T(e),(0,a.dispatch)(w).updateHiiveDebounceInstance(void 0,e)}),t.time),e))})(t),!0},send:async e=>{if(!k(e)||!E(e.namespace))return!1;const t=e.namespace;delete e.namespace;const n=(0,a.select)(w).getHiiveSingleUrl(t);if(!n)return!1;try{await S()({url:n,method:"POST",data:e})}catch(e){return console.error(e),!1}},dispatchEvents:T,disableDebounce:e=>{if(!e)return!1;const t=(0,a.select)(w).getHiiveDebounce(e);return t.instance&&(clearInterval(t.instance),(0,a.dispatch)(w).updateHiiveDebounceInstance(void 0,e),(0,a.dispatch)(w).updateHiiveDebounceTime(void 0,e)),!0}}},5588:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;td,B6:()=>x,Gh:()=>D,HS:()=>O,Oi:()=>s,Rr:()=>p,TM:()=>o,pX:()=>L,pb:()=>N,rc:()=>i,tH:()=>$,ue:()=>m,yD:()=>I}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const a="popstate";function o(e){return void 0===e&&(e={}),function(e,t,n,o){void 0===o&&(o={});let{window:c=document.defaultView,v5Compat:p=!1}=o,h=c.history,m=i.Pop,g=null,f=_();function _(){return(h.state||{idx:null}).idx}function v(){m=i.Pop;let e=_(),t=null==e?null:e-f;f=e,g&&g({action:m,location:w.location,delta:t})}function b(e){let t="null"!==c.location.origin?c.location.origin:c.location.href,n="string"==typeof e?e:d(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==f&&(f=0,h.replaceState(r({},h.state,{idx:f}),""));let w={get action(){return m},get location(){return e(c,h)},listen(e){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(a,v),g=e,()=>{c.removeEventListener(a,v),g=null}},createHref:e=>t(c,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){m=i.Push;let r=u(w.location,e,t);n&&n(r,e),f=_()+1;let a=l(r,f),o=w.createHref(r);try{h.pushState(a,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;c.location.assign(o)}p&&g&&g({action:m,location:w.location,delta:1})},replace:function(e,t){m=i.Replace;let r=u(w.location,e,t);n&&n(r,e),f=_();let a=l(r,f),o=w.createHref(r);h.replaceState(a,"",o),p&&g&&g({action:m,location:w.location,delta:0})},go:e=>h.go(e)};return w}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=p(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),u("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:d(t))}),(function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function s(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var h;function m(e,t,n){void 0===n&&(n="/");let r=N(("string"==typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let i=g(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(s(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let c=O([r,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),g(e.children,t,l,c)),(null!=e.path||e.index)&&t.push({path:c,score:k(c,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of f(e.path))i(e,t,n);else i(e,t)})),t}function f(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return i?[a,""]:[a];let o=f(r.join("/")),s=[];return s.push(...o.map((e=>""===e?a:[a,e].join("/")))),i&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const _=/^:[\w-]+$/,v=3,b=2,w=1,y=10,S=-2,E=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=S),t&&(r+=b),n.filter((e=>!E(e))).reduce(((e,t)=>e+(_.test(t)?v:""===t?w:y)),r)}function T(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[n];return e[r]=i&&!c?void 0:(c||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function C(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function A(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function I(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function D(e,t,n,i){let a;void 0===i&&(i=!1),"string"==typeof e?a=p(e):(a=r({},e),s(!a.pathname||!a.pathname.includes("?"),A("?","pathname","search",a)),s(!a.pathname||!a.pathname.includes("#"),A("#","pathname","hash",a)),s(!a.search||!a.search.includes("#"),A("#","search","hash",a)));let o,c=""===e||""===a.pathname,l=c?"/":a.pathname;if(null==l)o=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?p(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:M(r),hash:R(i)}}(a,o),d=l&&"/"!==l&&l.endsWith("/"),h=(c||"."===l)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const O=e=>e.join("/").replace(/\/\/+/g,"/"),P=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",R=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class $ extends Error{}function L(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const z=["post","put","patch","delete"],F=(new Set(z),["get",...z]);new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},8087:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r,i,a=n(1609);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{h:()=>o});var r,i=n(1609);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>i});var r=n(8468);const i=(0,r.forwardRef)((function({icon:e,size:t=24,...n},i){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:i})}))},3175:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"}))},8351:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},1607:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}))},6655:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},5822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z"}))},8176:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}))},9572:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}))},8851:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},3290:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"}))},6786:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"}))},8690:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(i.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"}))},7589:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(5573);const a=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}))},19:(e,t,n)=>{"use strict";n.d(t,{E:()=>$});var r=n(7723),i=n(8969),a=n(9235),o=n(8690),s=n(8468),c=n(2502),l=n(1609),u=n(7143),d=n(7675),p=n(3474);const h=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),m=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),g=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),f=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),_=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),v=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),b=(0,s.lazy)((()=>n.e(841).then(n.bind(n,1841)))),w=new c.p({slug:"ecommerce-address",path:"/ecommerce/step/address",title:(0,r.__)("Street Address","wp-module-onboarding"),Component:b,icon:o.A,drawerView:i.eY,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,u.useSelect)((e=>({brandName:e(d.M).getNewfoldBrandName(),techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,r.__)("Street Address","wp-module-onboarding"),subheading:(0,r.__)("Whether this is where the magic happens or the mail goes, tell us where your business is located.","wp-module-onboarding"),icon:o.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-address-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Whether it’s a storefront or a PO Box, we’re proud to help you connect your real-world and online businesses","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ +(0,r.__)("We use this address to setup WooCommerce, your payment provider, Contact Page and more so you can start stocking the shelves of your %1$s Online %2$s.","wp-module-onboarding"),e,(0,p.P)("Site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-address"},(0,l.createElement)(v,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(h,{cssIcon:a.illustration.icon}),(0,l.createElement)(m,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(g,null,!1!==i?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(f,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(_,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Street Address","wp-module-onboarding")}});var y=n(5573);const S=(0,l.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(y.Path,{d:"M3 6.75C3 5.784 3.784 5 4.75 5H15V7.313l.05.027 5.056 2.73.394.212v3.468a1.75 1.75 0 01-1.75 1.75h-.012a2.5 2.5 0 11-4.975 0H9.737a2.5 2.5 0 11-4.975 0H3V6.75zM13.5 14V6.5H4.75a.25.25 0 00-.25.25V14h.965a2.493 2.493 0 011.785-.75c.7 0 1.332.287 1.785.75H13.5zm4.535 0h.715a.25.25 0 00.25-.25v-2.573l-4-2.16v4.568a2.487 2.487 0 011.25-.335c.7 0 1.332.287 1.785.75zM6.282 15.5a1.002 1.002 0 00.968 1.25 1 1 0 10-.968-1.25zm9 0a1 1 0 101.937.498 1 1 0 00-1.938-.498z"})),E=(0,l.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(y.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})),k=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),T=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),x=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),C=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),N=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),I=(0,s.lazy)((()=>n.e(325).then(n.bind(n,9325)))),D=new c.p({slug:"ecommerce-products",path:"/ecommerce/step/products",title:(0,r.__)("Product Info","wp-module-onboarding"),Component:I,icon:S,drawerView:i.eY,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,u.useSelect)((e=>({brandName:e(d.M).getNewfoldBrandName(),techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,r.__)("Products Info","wp-module-onboarding"),subheading:(0,r.__)("We can offer free, exclusive solutions and apply our expert experience if we know how you sell.","wp-module-onboarding"),icon:E},illustration:{icon:"nfd-onboarding-sidebar-learn-more-ecommerce-products-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Go from multiple sizes to multiple locations to multiple online channels","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ +(0,r.__)("Tell us a little about how and what you’re planning to sell and we’ll bring the power of WooCommerce and unique %1$s %2$s solutions to elevate your business and enhance your capabilities.","wp-module-onboarding"),e,(0,p.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,l.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__ecommerce-products"},(0,l.createElement)(A,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,l.createElement)(k,{cssIcon:a.illustration.icon}),(0,l.createElement)(T,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,l.createElement)(x,null,!1!==i?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,l.createElement)(C,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,l.createElement)(N,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Product Info","wp-module-onboarding")}});var O=n(7767),P=n(8744);const M=new c.p({path:`/${P.eS}/step/interstitial`,Component:a.A}),R=[w,D],$=new O.I({id:i.At,name:(0,r.__)("Commerce","wp-module-onboarding"),steps:R,interstitialSteps:[M]})},2895:(e,t,n)=>{"use strict";n.d(t,{_:()=>te});var r=n(7723),i=n(8969),a=n(8851),o=n(2502),s=n(8468),c=n(1609),l=n(7143),u=n(7675),d=n(3474);const p=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),h=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),m=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),g=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),f=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),_=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),v=(0,s.lazy)((()=>n.e(340).then(n.bind(n,1340)))),b=new o.p({slug:"basic-info",path:"/wp-setup/step/basic-info",title:(0,r.__)("Basic Info","wp-module-onboarding"),Component:v,icon:a.A,drawerView:i.vO,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,l.useSelect)((e=>({brandName:e(u.M).getNewfoldBrandName(),techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),o=((e,t,n)=>({introduction:{heading:(0,r.__)("Basic Info","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("Setup how your %s will present in visitors' browsers and search results.","wp-module-onboarding"),(0,d.P)("site")),icon:a.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-basic-info-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Present in tip-top shape to web browsers and search engine results","wp-module-onboarding"),description:(0,r.__)("Loading your site details, logo and social graph helps not just launch your site but have it found looking great in feeds.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(0,t,n);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__basic-info"},(0,c.createElement)(_,{heading:o.introduction.heading,subheading:o.introduction.subheading,icon:o.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(p,{cssIcon:o.illustration.icon}),(0,c.createElement)(h,{headingWithDescriptions:o.information.headingWithDescriptions}),(0,c.createElement)(m,null,!1!==i?.views?.sidebar?.fullService?.shown&&o.help.fullService.link&&(0,c.createElement)(g,{text:o.help.fullService.text,onClick:()=>window.open(o.help.fullService.link,"_blank")}),(0,c.createElement)(f,{text:o.help.support.text,link:o.help.support.link})))}]}},data:{tooltipText:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ +(0,r.__)("Introduce us to this %s","wp-module-onboarding"),(0,d.P)("website"))}});var w=n(9572);const y=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),S=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),E=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),k=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),T=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),x=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),C=(0,s.lazy)((()=>n.e(871).then(n.bind(n,4871)))),N=new o.p({slug:"get-started-experience",path:"/wp-setup/step/get-started/experience",title:(0,r.__)("WordPress Experience","wp-module-onboarding"),Component:C,icon:w.A,drawerView:i.lf,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,l.useSelect)((e=>({techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("WordPress Experience","wp-module-onboarding"),subheading:(0,r.__)("We want to offer the best default settings and guidance for someone with your WordPress experience.","wp-module-onboarding"),icon:w.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-wp-experience-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("We want to help everyone get the most out of their WordPress %s and this setup, so we use this to help optimize for a great experience and periodically when we offer tips, reminders and recommendations.","wp-module-onboarding"),(0,d.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-wp-experience"},(0,c.createElement)(x,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(y,{cssIcon:i.illustration.icon}),(0,c.createElement)(S,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(E,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(k,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(T,{text:i.help.support.text,link:i.help.support.link})))}]}}});var A=n(3290);const I=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),D=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),O=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),P=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),M=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),R=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),$=(0,s.lazy)((()=>n.e(595).then(n.bind(n,9595)))),L=new o.p({slug:"get-started-site-primary",path:"/wp-setup/step/get-started/site-primary",title:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ +(0,r.__)("Primary %s Setup","wp-module-onboarding"),(0,d.P)("Site")),Component:$,icon:A.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,l.useSelect)((e=>({techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.sprintf)(/* translators: %s: Site or Store */ /* translators: %s: Site or Store */ +(0,r.__)("%s Type","wp-module-onboarding"),(0,d.P)("Site")),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("We'll use this to provide our best-matching designs and features for %s like yours.","wp-module-onboarding"),(0,d.P)("site")),icon:w.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("We chose the templates, features and best configuration we can for sites. You’re always in full control of your WordPress %s and we ask so we can be a good website partner.","wp-module-onboarding"),(0,d.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-site-type"},(0,c.createElement)(R,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(I,{cssIcon:i.illustration.icon}),(0,c.createElement)(D,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(O,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(P,{text:i.help.fullService.text,onClick:()=>window.location.href=i.help.fullService.link}),(0,c.createElement)(M,{text:i.help.support.text,link:i.help.support.link})))}]}}}),z=(0,s.lazy)((()=>n.e(206).then(n.bind(n,3206)))),F=(0,s.lazy)((()=>n.e(672).then(n.bind(n,6672)))),V=(0,s.lazy)((()=>n.e(993).then(n.bind(n,1993)))),H=(0,s.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),U=(0,s.lazy)((()=>n.e(97).then(n.bind(n,9097)))),W=(0,s.lazy)((()=>n.e(508).then(n.bind(n,6508)))),B=(0,s.lazy)((()=>n.e(627).then(n.bind(n,5627)))),j=new o.p({slug:"get-started-site-secondary",path:"/wp-setup/step/get-started/site-secondary",title:(0,r.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ +(0,r.__)("Secondary %s Setup","wp-module-onboarding"),(0,d.P)("Site")),Component:B,icon:A.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,l.useSelect)((e=>({techSupportLink:e(u.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(u.M).getfullServiceCreativeTeamUrl(),brandConfig:e(u.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.sprintf)(/* translators: %s: Site or Store */ /* translators: %s: Site or Store */ +(0,r.__)("%s Type","wp-module-onboarding"),(0,d.P)("Site")),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("We'll use this to provide our best-matching designs and features for %s like yours.","wp-module-onboarding"),(0,d.P)("site")),icon:w.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-site-type-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Why we ask","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("We chose the templates, features and best configuration we can for sites. You’re always in full control of your WordPress %s and we ask so we can be a good website partner.","wp-module-onboarding"),(0,d.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-site-type"},(0,c.createElement)(W,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(z,{cssIcon:i.illustration.icon}),(0,c.createElement)(F,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(V,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(H,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(U,{text:i.help.support.text,link:i.help.support.link})))}]}}});var G=n(5573);const q=(0,c.createElement)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(G.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Y=(0,s.lazy)((()=>n.e(328).then(n.bind(n,328)))),K=new o.p({slug:"top-priority",path:"/wp-setup/step/top-priority",title:(0,r.__)("Top Priority","wp-module-onboarding"),tooltipText:(0,r.__)("Tell us your top priority","wp-module-onboarding"),Component:Y,icon:q});var J=n(7767),Q=n(9235),Z=n(8744);const X=new o.p({path:`/${Z.rA}/step/interstitial/${i.gR}`,Component:Q.A}),ee=[N,L,j,b,K],te=new J.I({id:i.gR,name:(0,r.__)("Demographic","wp-module-onboarding"),steps:ee,interstitialSteps:[X]})},8294:(e,t,n)=>{"use strict";n.d(t,{x:()=>J});var r=n(7723),i=n(6087),a=n(8969),o=n(8468),s=n(2502),c=n(1609),l=n(5573);const u=(0,c.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(l.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));var d=n(7143),p=n(7675),h=n(3474);const m=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),g=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),f=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),_=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),v=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),b=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),w=(0,o.lazy)((()=>n.e(761).then(n.bind(n,761)))),y=new s.p({slug:"design-colors",path:"/wp-setup/step/design/colors",title:(0,r.__)("Colors","wp-module-onboarding"),Component:w,icon:u,drawerView:a.iQ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Colors","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("Whether your brand is vibrant, understated, elegant or edgy use color to delight your %s visitors.","wp-module-onboarding"),(0,h.P)("site")),icon:u},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-colors-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Let a splash of color make a splash with your visitors with your Global Site Colors.","wp-module-onboarding"),description:(0,r.__)("We had our designers mix up some palettes for striking websites for you to chose additional presets, or you can chose your own colors using the color pickers.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,c.createElement)(b,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(m,{cssIcon:i.illustration.icon}),(0,c.createElement)(g,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)(f,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(_,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(v,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("What's your color palette?","wp-module-onboarding"),patternId:"theme-styles"}});var S=n(7589),E=n(3175);const k=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),T=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),x=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),C=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),N=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),I=(0,o.lazy)((()=>n.e(546).then(n.bind(n,1546)))),D=new s.p({slug:"design-theme-styles-menu",path:"/wp-setup/step/design/theme-styles/menu",title:(0,r.__)("Theme Styles","wp-module-onboarding"),Component:I,icon:S.A,drawerView:a.VG,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,d.useSelect)((e=>({brandName:e(p.M).getNewfoldBrandName(),techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),a=((e,t,n)=>({introduction:{heading:(0,r.__)("Theme Styles","wp-module-onboarding"),subheading:(0,r.__)("Professionally-designed website templates ready for their public debut featuring your great ideas.","wp-module-onboarding"),icon:E.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Show the web you have style with modern colors and elevated fonts","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ +(0,r.__)("Pick one of these professionally-designed website styles to start your %1$s %2$s.","wp-module-onboarding"),e,(0,h.P)("site"))},{description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("In the next steps and in the future, you can change the specific colors and fonts to fit your aesthetic vision for your %s.","wp-module-onboarding"),(0,h.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-theme-styles-menu"},(0,c.createElement)(A,{heading:a.introduction.heading,subheading:a.introduction.subheading,icon:a.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(k,{cssIcon:a.illustration.icon}),(0,c.createElement)(T,{headingWithDescriptions:a.information.headingWithDescriptions}),(0,c.createElement)(x,null,!1!==i?.views?.sidebar?.fullService?.shown&&a.help.fullService.link&&(0,c.createElement)(C,{text:a.help.fullService.text,onClick:()=>window.open(a.help.fullService.link,"_blank")}),(0,c.createElement)(N,{text:a.help.support.text,link:a.help.support.link})))}]}},data:{designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles"}});var O=n(1869);const P=(0,c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(l.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"})),M=(0,o.lazy)((()=>n.e(206).then(n.bind(n,3206)))),R=(0,o.lazy)((()=>n.e(672).then(n.bind(n,6672)))),$=(0,o.lazy)((()=>n.e(993).then(n.bind(n,1993)))),L=(0,o.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),z=(0,o.lazy)((()=>n.e(97).then(n.bind(n,9097)))),F=(0,o.lazy)((()=>n.e(508).then(n.bind(n,6508)))),V=(0,o.lazy)((()=>n.e(585).then(n.bind(n,5585)))),H=new s.p({slug:"design-typography",path:"/wp-setup/step/design/typography",title:(0,r.__)("Fonts","wp-module-onboarding"),Component:V,icon:P,drawerView:a.SJ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Fonts","wp-module-onboarding"),subheading:(0,r.__)("Give tone and taste to your words using a curated set of great type treatments.","wp-module-onboarding"),icon:P},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-fonts-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Not just what we say, how we say it","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("Fonts help our ideas look creative and compelling, astute and articulate, refined and regal, modern and much more. Great font combinations help set the perfect tone for your %s and your story jump off the screen.","wp-module-onboarding"),(0,h.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,c.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-fonts"},(0,c.createElement)(F,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,c.createElement)(M,{cssIcon:i.illustration.icon}),(0,c.createElement)(R,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,c.createElement)($,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,c.createElement)(L,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,c.createElement)(z,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("What's your font style?","wp-module-onboarding"),patternId:"theme-styles"}});var U=n(7767),W=n(7831),B=n(9235),j=n(8744);const G=new s.p({path:`/${j.rA}/step/interstitial/${a.F4}`,Component:B.A}),q=[D,O.S],Y=[y,H],K=(0,i.filter)([...q,...Y,...W.G.steps],(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview"))),J=new U.I({id:a.F4,name:(0,r.__)("Design","wp-module-onboarding"),steps:q,conditionalSteps:Y,initialSteps:K,interstitialSteps:[G]})},9729:(e,t,n)=>{"use strict";n.d(t,{q:()=>y});var r=n(7723),i=n(8969),a=n(1609),o=n(5573);const s=(0,a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(o.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));var c=n(8468),l=n(2502),u=n(7143),d=n(7675),p=n(3474);const h=(0,c.lazy)((()=>n.e(206).then(n.bind(n,3206)))),m=(0,c.lazy)((()=>n.e(672).then(n.bind(n,6672)))),g=(0,c.lazy)((()=>n.e(993).then(n.bind(n,1993)))),f=(0,c.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),_=(0,c.lazy)((()=>n.e(97).then(n.bind(n,9097)))),v=(0,c.lazy)((()=>n.e(508).then(n.bind(n,6508)))),b=(0,c.lazy)((()=>n.e(978).then(n.bind(n,1978)))),w=[new l.p({slug:"site-features",path:"/wp-setup/step/site-features",title:(0,r.__)("Features","wp-module-onboarding"),Component:b,icon:s,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:i}=(0,u.useSelect)((e=>({brandName:e(d.M).getNewfoldBrandName(),techSupportLink:e(d.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(d.M).getfullServiceCreativeTeamUrl(),brandConfig:e(d.M).getNewfoldBrandConfig()}))),o=((e,t,n)=>({introduction:{heading:(0,r.__)("Features","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ +(0,r.__)("Easy-to-use features from our partner's WordPress Plugins and unique %1$s solutions to put your %2$s to work.","wp-module-onboarding"),e,(0,p.P)("site")),icon:s},illustration:{icon:"nfd-onboarding-sidebar-learn-more-site-features-illustration"},information:{headingWithDescriptions:[{heading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("We’ve assembled the best building blocks for a successful %s","wp-module-onboarding"),(0,p.P)("site")),description:(0,r.sprintf)(/* translators: 1: Brand 2: Site or Store 3: Brand */ /* translators: 1: Brand 2: Site or Store 3: Brand */ +(0,r.__)("Put your %1$s %2$s to work for you using features that unlock the potential of WordPress with powerful solutions from %3$s and our partners.","wp-module-onboarding"),e,(0,p.P)("Site"),e)}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,a.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-features"},(0,a.createElement)(v,{heading:o.introduction.heading,subheading:o.introduction.subheading,icon:o.introduction.icon}),!1!==i?.views?.sidebar?.illustration?.shown&&(0,a.createElement)(h,{cssIcon:o.illustration.icon}),(0,a.createElement)(m,{headingWithDescriptions:o.information.headingWithDescriptions}),(0,a.createElement)(g,null,!1!==i?.views?.sidebar?.fullService?.shown&&o.help.fullService.link&&(0,a.createElement)(f,{text:o.help.fullService.text,onClick:()=>window.open(o.help.fullService.link,"_blank")}),(0,a.createElement)(_,{text:o.help.support.text,link:o.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Key features to supercharge your site","wp-module-onboarding"),patternId:"site-features"}})],y=new(n(7767).I)({id:i.EF,name:(0,r.__)("Features","wp-module-onboarding"),steps:w})},7831:(e,t,n)=>{"use strict";n.d(t,{G:()=>j});var r=n(7723),i=n(8969),a=n(9235),o=n(1609),s=n(5573);const c=(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var l=n(8468),u=n(2502),d=n(7143),p=n(7675),h=n(3474);const m=(0,l.lazy)((()=>n.e(206).then(n.bind(n,3206)))),g=(0,l.lazy)((()=>n.e(672).then(n.bind(n,6672)))),f=(0,l.lazy)((()=>n.e(993).then(n.bind(n,1993)))),_=(0,l.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),v=(0,l.lazy)((()=>n.e(97).then(n.bind(n,9097)))),b=(0,l.lazy)((()=>n.e(508).then(n.bind(n,6508)))),w=(0,l.lazy)((()=>n.e(859).then(n.bind(n,4859)))),y=new u.p({slug:"design-header-menu",path:"/wp-setup/step/design/header-menu",title:(0,r.__)("Header & Menu","wp-module-onboarding"),Component:w,icon:c,drawerView:i.HJ,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Header & Menu","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("Surface key content in your %s -- who you are, what your about and where to find things.","wp-module-onboarding"),(0,h.P)("site")),icon:c},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-header-menu-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Putting your best foot forward","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: site or store 2: Site or Store */ /* translators: 1: site or store 2: Site or Store */ +(0,r.__)("Just like a %1$s putting a map of departments at the front door, a great %2$s Header & Menu help point visitors at the places you most want them to visit.","wp-module-onboarding"),(0,h.P)("site"),(0,h.P)("Site"))},{description:(0,r.sprintf)(/* translators: %s: website */ /* translators: %s: website */ +(0,r.__)("When picking a %s header, consider the number of menu items, character length of each item and how those will visually impact the Header Pattern design you choose.","wp-module-onboarding"),(0,h.P)("website"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-header-menu"},(0,o.createElement)(b,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(m,{cssIcon:i.illustration.icon}),(0,o.createElement)(g,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,o.createElement)(f,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,o.createElement)(_,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,o.createElement)(v,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("Let's make the right things visible","wp-module-onboarding"),patternId:"header-menu"}}),S=(0,o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(s.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,o.createElement)(s.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,o.createElement)(s.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"}));var E=n(9572);const k=(0,l.lazy)((()=>n.e(206).then(n.bind(n,3206)))),T=(0,l.lazy)((()=>n.e(672).then(n.bind(n,6672)))),x=(0,l.lazy)((()=>n.e(993).then(n.bind(n,1993)))),C=(0,l.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),N=(0,l.lazy)((()=>n.e(97).then(n.bind(n,9097)))),A=(0,l.lazy)((()=>n.e(508).then(n.bind(n,6508)))),I=(0,l.lazy)((()=>n.e(560).then(n.bind(n,560)))),D=new u.p({slug:"design-homepage-menu",path:"/wp-setup/step/design/homepage-menu",title:(0,r.__)("Homepage Layouts","wp-module-onboarding"),Component:I,icon:S,drawerView:i.VG,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Home Page","wp-module-onboarding"),subheading:(0,r.__)("The home page is where you tell visitors your story. It helps users find what they came for.","wp-module-onboarding"),icon:E.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-homepage-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Welcome to your new home online","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("Like good curb appeal, a great home page design helps get users excited about your %s. Mixing media, headings, text and more, you can bring your ideas to live and your products & services to the forefront for visitors.","wp-module-onboarding"),(0,h.P)("site"))},{description:(0,r.__)("Look for a Home Page Pattern design you think will help organize and elevate your ideas.","wp-module-onboarding")}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-homepage"},(0,o.createElement)(A,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(k,{cssIcon:i.illustration.icon}),(0,o.createElement)(T,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,o.createElement)(x,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,o.createElement)(C,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,o.createElement)(N,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{patternId:"homepage-styles",tooltipText:(0,r.__)("There’s no place like a great home page","wp-module-onboarding")}});var O=n(5822);const P=(0,l.lazy)((()=>n.e(206).then(n.bind(n,3206)))),M=(0,l.lazy)((()=>n.e(672).then(n.bind(n,6672)))),R=(0,l.lazy)((()=>n.e(993).then(n.bind(n,1993)))),$=(0,l.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),L=(0,l.lazy)((()=>n.e(97).then(n.bind(n,9097)))),z=(0,l.lazy)((()=>n.e(508).then(n.bind(n,6508)))),F=(0,l.lazy)((()=>n.e(366).then(n.bind(n,5366)))),V=new u.p({slug:"design-site-pages",path:"/wp-setup/step/design/site-pages",title:(0,r.__)("Page Layouts","wp-module-onboarding"),Component:F,icon:O.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{techSupportLink:e,fullServiceCreativeTeamLink:t,brandConfig:n}=(0,d.useSelect)((e=>({techSupportLink:e(p.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(p.M).getfullServiceCreativeTeamUrl(),brandConfig:e(p.M).getNewfoldBrandConfig()}))),i=((e,t)=>({introduction:{heading:(0,r.__)("Pages","wp-module-onboarding"),subheading:(0,r.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,r.__)("Use professionally-designed templates for common site pages to assemble a beautiful, high-quality %s.","wp-module-onboarding"),(0,h.P)("site")),icon:O.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-pages-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Rapidly deliver ideas with templates primed for your content","wp-module-onboarding"),description:(0,r.sprintf)(/* translators: 1: site or store 2: site or store */ /* translators: 1: site or store 2: site or store */ +(0,r.__)("We’ve baked everything we know about making great designs and content for common %1$s needs into ease-to-use templates. Pick templates and we’ll add them as Page drafts to your WordPress %2$s.","wp-module-onboarding"),(0,h.P)("site"),(0,h.P)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(e,t);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-pages"},(0,o.createElement)(z,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==n?.views?.sidebar?.illustration?.shown&&(0,o.createElement)(P,{cssIcon:i.illustration.icon}),(0,o.createElement)(M,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,o.createElement)(R,null,!1!==n?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,o.createElement)($,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,o.createElement)(L,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,r.__)("You have ideas, we have page templates","wp-module-onboarding"),patternId:"site-pages"}});var H=n(7767),U=n(8744);const W=new u.p({path:`/${U.rA}/step/interstitial/${i.R2}`,Component:a.A}),B=[y,D,V],j=new H.I({id:i.R2,name:(0,r.__)("Layout & Content","wp-module-onboarding"),steps:B,interstitialSteps:[W]})},6188:(e,t,n)=>{"use strict";n.d(t,{AZ:()=>h,Ny:()=>p,py:()=>d});var r=n(6087),i=n(2940),a=n(19),o=n(2895),s=n(8294),c=n(9729),l=n(7831);const u=[o._,a.E,s.x,l.G,c.q],d=(e,t,n)=>{const u=(e=>{const t={publishing:l.G,selling:a.E,designing:s.x};return t[e]?t[e]:l.G})(t);let d;switch(n){case"1":default:d=(0,r.filter)(e,(e=>e.id!==u.id)),d=(0,i.Ti)(d,o._,u);break;case"3":d=(0,r.filter)(e,(e=>e.id!==u.id&&(e.id===c.q.id||e.id===o._.id))),d=(0,i.Ti)(d,o._,u);break;case"5":d=(0,r.filter)(e,(e=>e.id!==u.id&&(e.id===c.q.id||e.id===o._.id)))}return d},p=e=>u.filter((t=>t.id===e)),h=(e,t,n)=>{const r={};return e.forEach((e=>t[e.id]?r[e.id]=t[e.id]:r[e.id]={completed:!1,firstStep:e.steps[0].path,lastStep:n?.chapter===e.id&&n?.path?n?.path:""})),r}},431:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),i=n(6942),a=n.n(i);const o=({type:e,after:t=!0,children:n,className:i="",duration:o=!1,timingFunction:s=!1})=>{const c="animate";return t?(0,r.createElement)("div",{className:a()(function(){if(e){let t="";switch(e){case"fade-in":t=c.concat("__fade-in");break;case"fade-in-disabled":t=c.concat("__fade-in--disabled");break;case"fade-in-right":t=c.concat("__fade-in--right");break;case"fade-in-left":t=c.concat("__fade-in--left");break;case"fade-in-up":t=c.concat("__fade-in--up");break;case"shine":t=c.concat("__shine");break;case"shine-placeholder":t=c.concat("__shine--placeholder");break;case"dropdown":t=c.concat("__dropdown");break;case"load":t=c.concat("__load")}return t}}(),i),style:{animationDuration:o,animationTimingFunction:s}},n):(0,r.createElement)("div",{className:`${c}__blank`},n)}},8590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(1609),i=n(6427),a=n(7677),o=n(6942),s=n.n(o);const c=({className:e,text:t,onClick:n,icon:o})=>(0,r.createElement)(i.Button,{className:s()("nfd-onboarding-button--white",e),onClick:"function"==typeof n&&n},(0,r.createElement)("span",{className:`${e}__text`},t),o&&(0,r.createElement)(a.A,{className:`${e}__icon`,icon:o}))},6517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(1609),i=n(6427),a=n(6942),o=n.n(a);const s=({className:e,text:t,onClick:n=!1})=>(0,r.createElement)(i.Button,{variant:"primary",className:o()("nfd-onboarding-button--background",e),onClick:"function"==typeof n&&n},t)},264:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=({children:e,handleClick:t,disabled:n,className:i})=>(0,r.createElement)("button",{type:"button",className:`${i} nfd-card-button`,onClick:()=>{"function"==typeof t&&t()},disabled:n},e)},9927:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=(0,n(8468).memo)((({heading:e,subHeading:t,question:n})=>(0,r.createElement)("div",null,e&&(0,r.createElement)("h2",{className:"nfd-step-card-heading"},e),t&&(0,r.createElement)("h3",{className:n?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},t),n&&(0,r.createElement)("h3",{className:"nfd-step-card-question"},n))))},3957:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=({isColorSelected:e,color:t,slug:n,name:i,callback:a})=>(0,r.createElement)("div",{className:"custom-palette__below__row",onClick:()=>a(n),onKeyDown:()=>a(n),role:"button",tabIndex:0},(0,r.createElement)("div",{className:`custom-palette__below__row__icon ${e&&"custom-palette__below__row__icon--selected-border"}`,style:{backgroundColor:`${t}`}}),(0,r.createElement)("div",{className:"custom-palette__below__row__text"},i))},5677:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(1609),i=n(3988),a=n(4639),o=n(9889);const s=({title:e,subtitle:t,error:n})=>(0,r.createElement)(i.A,{className:"step-error-state",isVerticallyCentered:!0},(0,r.createElement)(a.A,{title:e,subtitle:t}),(0,r.createElement)("div",{className:"step-error-state__logo"}),(0,r.createElement)("h3",{className:"step-error-state__error"},n),(0,r.createElement)(o.A,null))},5748:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(1609),i=n(148),a=n(1607),o=n(8468),s=n(7143),c=n(6427),l=n(7723),u=n(6942),d=n.n(u),p=n(4371),h=n(6079),m=n(7675),g=n(2014),f=n(8969),_=n(1056),v=n(2202),b=n(8559);const w=({buttonText:e=(0,l.__)("Exit to WordPress","wp-module-onboarding"),showButtonIcon:t=!0,showButton:n=!0,buttonVariant:u="secondary",buttonClassName:w=!1,isModalOpen:y=!1,modalTitle:S=(0,l.__)("Exit without finishing?","wp-module-onboarding"),modalText:E=!1,modalPrimaryCloseButtonText:k=(0,l.__)("Continue","wp-module-onboarding"),modalOnClose:T=!1,modalExitButtonText:x=(0,l.__)("Exit","wp-module-onboarding")})=>{const[C,N]=(0,o.useState)(y),A=()=>{"function"==typeof T&&T(),N(!1)},I=(0,i.zy)(),{currentData:D,brandName:O,socialData:P,currentStep:M}=(0,s.useSelect)((e=>({currentData:e(m.M).getCurrentOnboardingData(),brandName:e(m.M).getNewfoldBrandName(),socialData:e(m.M).getOnboardingSocialData(),currentStep:e(m.M).getCurrentStep()})),[]),{setOnboardingSocialData:R}=(0,s.useDispatch)(m.M);return E||(E=(0,l.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ +(0,l.__)("You can restart onboarding from your %s Settings page.","wp-module-onboarding"),O)),(0,r.createElement)(o.Fragment,null,n&&(0,r.createElement)(c.Button,{icon:!!t&&a.A,variant:u,onClick:()=>N(!0),className:d()("nfd-onboarding-etw__trigger",w)},e),C&&(0,r.createElement)(c.Modal,{title:S,onRequestClose:()=>A()},(0,r.createElement)("p",null,E),(0,r.createElement)(c.ButtonGroup,{className:"nfd-onboarding-etw__buttons"},(0,r.createElement)(c.Button,{variant:"secondary",onClick:()=>A()},k),(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>async function(e){if(D){if(D.hasExited=(new Date).getTime(),e?.includes("basic-info")){const e=await async function(){const e=await(0,g.mt)(),t=await(0,g.oc)(P);return null!==t?.error?e?.body:t?.body}();e&&R(e)}(0,h.V1)(D),!0===D?.data?.comingSoon&&window.NewfoldRuntime?.comingSoon&&await window.NewfoldRuntime.comingSoon.enable()}(0,b.YR)(),(0,_.v)(new _.iC(v.f2,M.title)),await p.y.dispatchEvents(v.XJ),window.location.replace(f.R0)}(I.pathname)},x))))}},4639:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609);const i=({title:e,subtitle:t,children:n})=>(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},e),t&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},t),n)},3988:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(1609),i=n(6942),a=n.n(i);const o=window.wp.a11y;var s=n(8468),c=n(148);const l=({className:e="nfd-onboarding-layout__base",children:t})=>{const n=(0,c.zy)(),i=document.querySelector(".nfd-onboard-content");return(0,s.useEffect)((()=>{i?.focus({preventScroll:!0}),((e="Showing new Onboarding Page")=>{(0,o.speak)(e,"assertive")})("Override")}),[n.pathname]),(0,r.createElement)("div",{className:a()("nfd-onboarding-layout",e)},t)};var u=n(431);const d=({children:e})=>(0,r.createElement)("section",{className:"is-contained"},e),p=({className:e="",children:t,isBgPrimary:n=!1,isCentered:i=!1,isVerticallyCentered:o=!1,isContained:c=!1,isPadded:p=!1,isFadeIn:h=!0})=>{const m=c?d:s.Fragment;return(0,r.createElement)(u.A,{type:h&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(l,{className:a()("nfd-onboarding-layout__common",e,{"is-bg-primary":n},{"is-centered":i},{"is-vertically-centered":o},{"is-padded":p})},(0,r.createElement)(m,null,t)))}},8616:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),i=n(8468),a=n(7723),o=n(7044);const s=({count:e,watch:t,callback:n,className:s,viewportWidth:c,isWithCard:l=!1})=>{const[u,d]=(0,i.useState)(0);return(0,i.useEffect)((()=>d(1)),[t]),t?(0,r.createElement)(r.Fragment,null,t?(0,r.createElement)("div",{style:{display:"none"}},u):null,n()):l?(()=>{const t=[];for(let n=0;n{const t=[];for(let n=0;n{"use strict";n.d(t,{Th:()=>A,pA:()=>v,ph:()=>k,z_:()=>x,_Z:()=>b.A,GZ:()=>M});var r=n(1609),i=n(7143),a=n(4715),o=n(4997),s=n(8468),c=n(7723),l=n(6427),u=n(9491);let d;const p=6e3;function h({viewportWidth:e,settings:t,containerWidth:n,minHeight:i,additionalStyles:o=[]}){e||(e=n);const[c,{height:h}]=(0,u.useResizeObserver)(),{styles:m,assets:g}={styles:t.styles,assets:t.__unstableResolvedAssets},f=(0,s.useMemo)((()=>m?[...m,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:m),[m,o]);d=d||(0,u.pure)(a.BlockList);const _=n/e,v=h?n/(h*_):0;return(0,r.createElement)(l.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${_})`,aspectRatio:v,maxHeight:h>p?p*_:void 0,minHeight:i}},(0,r.createElement)(a.__unstableIframe,{assets:g,contentRef:(0,u.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%",e.spellcheck=0}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:h,pointerEvents:"none",maxHeight:p,minHeight:0!==_&&_<1&&i?i/_:i}},(0,r.createElement)(a.__unstableEditorStyles,{styles:f}),c,(0,r.createElement)(d,{renderAppender:!1})))}function m(e){const[t,{width:n}]=(0,u.useResizeObserver)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,r.createElement)("div",{className:"block-editor-block-preview__container"},n&&(0,r.createElement)(h,{...e,containerWidth:n})))}var g=n(7225),f=n(7675),_=n(431);const v=(0,s.memo)((({slug:e="",blockGrammer:t,viewportWidth:n=1300,styling:l="large",setIsLoadingParent:u=!1,previewSettings:d=!1,skeletonLoadingTime:p=2500,skeletonType:h="default",skeletonShouldWait:v=!1})=>{const[b,w]=(0,s.useState)(),[y,S]=(0,s.useState)(),[E,k]=(0,s.useState)(!0);(0,s.useEffect)((()=>{if(p){const e=setTimeout((()=>{k(!1),u&&u(!1)}),p);return()=>clearTimeout(e)}k(!1),u&&u(!1)}),[p]);const{currentData:T,storedPreviewSettings:x}=(0,i.useSelect)((e=>({currentData:e(f.M).getCurrentOnboardingData(),storedPreviewSettings:e(f.M).getPreviewSettings()})),[]);(0,s.useEffect)((()=>{S(d?(0,g.AN)(d,x):x)}),[d,x]),(0,s.useEffect)((()=>{t&&w((0,o.parse)(t))}),[t]),(0,s.useEffect)((()=>{d||S(x)}),[x,T]);const C=(0,s.memo)((()=>(0,r.createElement)("div",{className:"live-preview__container--is-skeleton"},(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-header"},(0,r.createElement)(_.A,{type:"shine",className:"live-preview__container--is-skeleton--shimmer"})),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-1"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-2"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-footer"})))),N=(0,s.memo)((()=>(0,r.createElement)("div",{className:"regenerating-site-card-wrap regenerating-site-card-skeleton"},(0,r.createElement)("div",{className:"regenerating-site-card"},(0,r.createElement)("p",{className:"regenerating-site-card__title"},(0,r.createElement)("p",{className:"regenerating-site-card__title"},v?(0,c.__)("Regenerating Site","wp-module-onboarding"):(0,c.__)("Generating Site","wp-module-onboarding"))),(0,r.createElement)("div",{className:"regenerating-site-card__progress-bar"},(0,r.createElement)("div",{className:"regenerating-site-card__progress-bar__fill"}))))));return(0,r.createElement)("div",{"data-slug":`nfd-onboarding-block-preview-${e}`,className:`live-preview__container-${l}`},E&&("sitegen"===h?(0,r.createElement)(N,null):(0,r.createElement)(C,null)),b&&y&&(0,r.createElement)(a.BlockEditorProvider,{value:b,settings:y.settings},(0,r.createElement)(m,{viewportWidth:n,settings:y.settings})))}));var b=n(8616),w=n(7677),y=n(8351),S=n(5573);const E=(0,r.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(S.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),k=({className:e="live-preview--selectable-card",selected:t=!1,blockGrammer:n,viewportWidth:i=1500,styling:a="large",previewSettings:o,overlay:c=!1,onClick:l=!1,skeletonLoadingTime:u=2500})=>{const[d,p]=(0,s.useState)(!0);return(0,r.createElement)("div",{className:`${e}`,role:"button",tabIndex:0,onClick:()=>{d||"function"!=typeof l||l()},onKeyDown:()=>{d||"function"!=typeof l||l()}},(0,r.createElement)("div",{className:`${e}__title-bar`},(0,r.createElement)("div",{className:`${e}__title-bar__browser`},(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${e}__title-bar__browser__dot`})),(0,r.createElement)("div",{className:t?`${e}__title-bar--selected live-preview-selected-check`:`${e}__title-bar--unselected`},(0,r.createElement)(w.A,{className:`${e}__title-bar--selected__path`,icon:y.A,size:64}))),(0,r.createElement)("div",{className:`${e}__live-preview-container`},(0,r.createElement)(v,{styling:a,blockGrammer:n,viewportWidth:i,previewSettings:o,setIsLoadingParent:p,skeletonLoadingTime:u}),c&&!d&&(0,r.createElement)("div",{className:`${e}__live-preview-container__overlay`},(0,r.createElement)(w.A,{className:`${e}__live-preview-container__overlay__icon`,size:64,icon:E}))))};var T=n(8176);const x=({className:e="live-preview--selectable-card--title-description",selected:t=!1,blockGrammer:n,viewportWidth:i=1500,styling:a="large",previewSettings:o,onClick:c=!1,skeletonLoadingTime:u=2500,title:d=!1,description:p=!1,slug:h})=>{const[m,g]=(0,s.useState)(!1),f=e=>{"function"==typeof c&&c(e,h,d)};return(0,r.createElement)("div",{className:`${e}`},(0,r.createElement)("div",{className:`${e}__live-preview-container`,onClick:()=>f(!t),role:"presentation"},(0,r.createElement)(v,{styling:a,blockGrammer:n,viewportWidth:i,previewSettings:o,skeletonLoadingTime:u})),(0,r.createElement)("div",{className:`${e}__information`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("div",{className:`${e}__information__title-question`},(0,r.createElement)("div",{className:`${e}__information__title-question__checkbox`},(0,r.createElement)(l.CheckboxControl,{label:(0,r.createElement)("b",null,d),onChange:()=>f(!t),checked:t})),(0,r.createElement)("div",{className:`${e}__information__title-question__question`},(0,r.createElement)(w.A,{className:`${e}__information__title-question__question__icon`,icon:T.A,style:{fill:m&&"var(--wp-admin-theme-color-darker-10)"},onClick:()=>g(!m)})))),m&&(0,r.createElement)(_.A,{type:"dropdown",className:`${e}__description--container ${m?"highlighted":"not-highlighted"}`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("p",{className:`${e}__description--text`},p)))};var C=n(7517),N=n(8969);const A=({children:e})=>{const[t,n]=(0,s.useState)(!1),{currentData:r,storedPreviewSettings:a,themeStatus:o}=(0,i.useSelect)((e=>({currentData:e(f.M).getCurrentOnboardingData(),storedPreviewSettings:e(f.M).getPreviewSettings(),themeStatus:e(f.M).getThemeStatus()})),[]),{updateThemeStatus:c,updatePreviewSettings:l,enqueueRequest:u}=(0,i.useDispatch)(f.M);return(0,s.useEffect)((()=>{t||N.Er!==o||(async()=>{let e;if(a?.title&&a?.settings)e=a;else{const t=await(0,C.w6)();if(t?.error)return c(N.So);r.data.theme.variation?e=t.body.filter((e=>e.title===r.data.theme.variation))[0]:0===t.body[0]?.id&&(e=t.body[0]),l((0,g.AN)(e,a))}e&&u(N.L5.SET_GLOBAL_STYLES,(()=>(0,C.oy)({...e,title:r.data.theme.variation,version:2}))),n(!0)})()}),[t,o]),e};var I=n(6786),D=n(264),O=n(3013),P=n(8087);const M=({className:e="live-preview-sitegen--selectable-card",blockGrammar:t,viewportWidth:n=1500,styling:i="large",previewSettings:a,overlay:o=!1,skeletonLoadingTime:l=2500,slug:u,position:d,title:p,isFavorite:h,palette:m,handleFavorite:g,handlePreview:f,handleRegenerate:_,isRegenerating:b})=>{const[y,S]=(0,s.useState)(!0),k=()=>{if("function"==typeof f)return f(u,d)},T=()=>{if("function"==typeof _)return _(u,m,h,d)},x=()=>{if("function"==typeof g)return g(u,d)};return(0,r.createElement)("div",{className:`${e}`,role:"button",tabIndex:0},(0,r.createElement)("div",{className:`${e}__live-preview-container`},(0,r.createElement)(v,{styling:i,blockGrammer:t,viewportWidth:n,previewSettings:a,setIsLoadingParent:S,skeletonLoadingTime:l,skeletonShouldWait:b,skeletonType:"sitegen"}),o&&!y&&(0,r.createElement)("div",{className:`${e}__live-preview-container__overlay`,onClick:k,onKeyDown:e=>{"Enter"===e.key&&k()}},(0,r.createElement)(D.A,{className:`${e}__live-preview-container__overlay__button`,onClick:()=>k()},(0,r.createElement)(w.A,{icon:E}),(0,c.__)("Preview Version","wp-module-onboarding"))),(0,r.createElement)("div",{className:`${e}__live-preview-container-buttons ${b?"disabled":""}`},(0,r.createElement)("div",{role:"button",tabIndex:"0",onClick:()=>x(),onKeyDown:e=>{"Enter"===e.key&&x()},"aria-label":"Add to Wishlist",className:`${e}__live-preview-container-buttons__button`},(0,r.createElement)("span",{className:`${e}__live-preview-container-buttons__button__icon`},h?(0,r.createElement)(P.h,null):(0,r.createElement)(O.h,null)),(0,r.createElement)("span",{className:`${e}__live-preview-container-buttons__button__title`},p)),(0,r.createElement)("div",{role:"button",tabIndex:"0",onClick:T,onKeyDown:e=>{"Enter"===e.key&&T()},"aria-label":(0,c.__)("Regenerate Content","wp-module-onboarding"),className:`${e}__live-preview-container-buttons__button`},(0,r.createElement)(w.A,{icon:I.A}),(0,c.__)("Regenerate","wp-module-onboarding")))))}},9235:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(1609),i=n(7143),a=n(8468),o=n(148),s=n(7677),c=n(6655),l=n(7675),u=n(9927),d=n(3988),p=n(5842),h=n(7723),m=n(3474);var g=n(6517),f=n(8590),_=n(8559),v=n(1056),b=n(8969),w=n(6079),y=n(2202);const S=()=>{const[e,t]=(0,a.useState)(15),n=(0,o.Zp)(),{setIsDrawerSuppressed:S,setSidebarActiveView:E}=(0,i.useDispatch)(l.M);async function k(){C&&(C.isComplete=(new Date).getTime(),(0,w.V1)(C),!0===C?.data?.comingSoon&&window.NewfoldRuntime?.comingSoon&&window.NewfoldRuntime.comingSoon.enable()),(0,_.YR)(),(0,v.SV)(new v.iC(y.Vg)),window.location.replace(b.R0)}(0,a.useEffect)((()=>{const n=setInterval((()=>{t(e-1)}),1e3);return 0===e&&(clearInterval(n),k()),()=>{clearInterval(n)}}),[e]),(0,a.useEffect)((()=>{S(!0),E(!1)}),[]);const{brandName:T,nextStep:x,currentData:C}=(0,i.useSelect)((e=>({brandName:e(l.M).getNewfoldBrandName(),nextStep:e(l.M).getNextStep(),currentData:e(l.M).getCurrentOnboardingData()}))),N=(e=>({heading:(0,h.__)("A great foundation to build from","wp-module-onboarding"),subheading:(0,h.sprintf)(/* translators: Brand */ /* translators: Brand */ +(0,h.__)("with WordPress and %s","wp-module-onboarding"),e),content:{heading:(0,h.sprintf)(/* translators: site or store */ /* translators: site or store */ +(0,h.__)("Would you like to enter your WordPress Dashboard or continue setting up your %s?","wp-module-onboarding"),(0,m.P)("site")),question1:(0,h.__)("You've made great progress! Would you like to keep going with the setup or take it from here?","wp-module-onboarding"),question2:(0,h.sprintf)(/* translators: Brand */ /* translators: Brand */ +(0,h.__)("You can continue from your %s home page in the Next steps list.","wp-module-onboarding"),e),redirectMessage:(0,h.__)("Taking you to WordPress in…","wp-module-onboarding")},buttons:{button1:{text:(0,h.__)("Enter WordPress","wp-module-onboarding")},button2:{text:(0,h.__)("Continue Setup","wp-module-onboarding")}}}))(T);return(0,r.createElement)(d.A,{isBgPrimary:!0,isCentered:!0},(0,r.createElement)(p.A,{className:"chapter-interstitial"},(0,r.createElement)(u.A,{heading:N.heading,subHeading:N.subheading}),(0,r.createElement)("div",{className:"chapter-interstitial__content"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-left"},(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},N.content.heading),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question1"},N.content.question1),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question2"},N.content.question2),(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},N.content.redirectMessage,(0,r.createElement)("br",null)," ",e)),(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right__img"}))),(0,r.createElement)("div",{className:"chapter-interstitial__buttons"},(0,r.createElement)(g.default,{onClick:()=>k(),text:N.buttons.button1.text,className:"chapter-interstitial__buttons--blue"}),(0,r.createElement)(f.default,{onClick:()=>n(x.path),text:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",{className:"chapter-interstitial__buttons--white__text"},N.buttons.button2.text),(0,r.createElement)(s.A,{className:"chapter-interstitial__buttons--white__icon",icon:c.A})),className:"chapter-interstitial__buttons--white"}))))}},4097:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),i=n(6942),a=n.n(i);const o=({className:e})=>(0,r.createElement)("div",{className:a()("nfd-onboarding-loader--spinner",e)})},212:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),i=n(3988),a=n(4639),o=n(9889);const s=({title:e,subtitle:t})=>(0,r.createElement)(i.A,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(a.A,{title:e,subtitle:t}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.A,null))},518:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,S:()=>r.A});var r=n(212),i=n(1609),a=n(431);const o=()=>(0,i.createElement)("div",{className:"image-upload-loader--loading-box"},(0,i.createElement)(a.A,{type:"load",className:"image-upload-loader--loading-box__loader"}))},9889:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),i=n(7675),a=n(7143),o=n(7723);const s=({question:e=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:t=(0,o.__)("Hire our Experts","wp-module-onboarding")})=>{const n=(0,a.select)(i.M).getHireExpertsUrl();return n&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},e,(0,r.createElement)("a",{href:n,target:"_blank",rel:"noreferrer"},t))}},5842:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),i=n(6942),a=n.n(i);const o=({className:e="",children:t})=>(0,r.createElement)("div",{className:a()("nfd-onboarding-large-card",e)},(0,r.createElement)("div",{className:"nfd-onboarding-large-card__logo"}),t)},7673:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),i=n(8468);const a=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,i.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const r=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(r)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(r))}))}))}),[]),(0,r.createElement)("span",{className:"wnd-ai-logo",style:t},(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,r.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},2538:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,Z:()=>o});var r=n(6087);const i={NONE:"none",AD_LINK_ERROR:"ad-link-error",INVALID_LINK_ERROR:"invalid-link-error"},a={facebook_site:"facebook",twitter_site:"twitter",instagram_url:"instagram",youtube_url:"youtube",linkedin_url:"linkedin",yelp_url:"yelp",tiktok_url:"tiktok"},o=e=>(0,r.transform)(a,((t,n,r)=>{const i=e?.[r]||e?.other_social_urls?.[r];i&&(t[n]=i)}))},1032:(e,t,n)=>{"use strict";n.d(t,{UX:()=>g,Iy:()=>Pe,tR:()=>Le});var r=n(1609),i=n(7143),a=n(8468),o=n(9491),s=n(518),c=n(7675),l=n(7517),u=n(8969),d=n(5677),p=n(7723);var h=n(5748),m=n(6079);const g=({children:e,navigationStateCallback:t=!1,refresh:n=!0,render:g=!0})=>{const f=(0,o.useViewportMatch)("medium"),{storedThemeStatus:_,brandName:v,isFreshInstallation:b,currentData:w}=(0,i.useSelect)((e=>({storedThemeStatus:e(c.M).getThemeStatus(),brandName:e(c.M).getNewfoldBrandName(),isFreshInstallation:e(c.M).getIsFreshInstallation(),currentData:e(c.M).getCurrentOnboardingData()})),[]),y=(e=>({loader:{title:(0,p.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ +(0,p.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,p.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,p.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ +(0,p.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,p.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,p.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")},exitModal:{title:(0,p.__)("It looks like you may have an existing website","wp-module-onboarding"),description:(0,p.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),buttonText:(0,p.__)("Exit to WordPress","wp-module-onboarding")}}))(v),{updateThemeStatus:S,setIsDrawerOpened:E,setIsDrawerSuppressed:k,setIsHeaderNavigationEnabled:T,setCurrentOnboardingData:x}=(0,i.useDispatch)(c.M),C=()=>{switch(_){case u.SQ:case u.Er:return(()=>{if("function"==typeof t)return t();f&&E(!0),k(!1),T(!0)})();default:E(!1),k(!0),T(!1)}};(0,a.useEffect)((()=>{C(),(!0!==g||b||!1!==w.data.siteOverrideConsent)&&_===u.So&&(async()=>{const e=await(async()=>{const e=await(0,l.qv)(u.f1);return e?.error?u.mp:e.body.status})();switch(e){case u.fO:(async()=>{(await(0,l.xN)(u.f1)).error||!0!==n?N():window.location.reload()})();break;case u.Er:!0===n&&window.location.reload();break;case u.mp:N();break;default:S(e)}})()}),[_,b,w]);const N=async()=>{if(S(u.fO),(await(0,l.ai)(u.f1,!0,!1)).error)return S(u.SQ);!0===n&&window.location.reload()},A=()=>{w.data.siteOverrideConsent=!0,x(w),(0,m.V1)(w)};return(0,r.createElement)(a.Fragment,null,g?(()=>{if(!b&&!1===w.data.siteOverrideConsent)return(0,r.createElement)(h.A,{showButton:!1,isModalOpen:!0,modalTitle:y.exitModal.title,modalText:y.exitModal.description,modalOnClose:A,modalExitButtonText:y.exitModal.buttonText});switch(_){case u.SQ:return(0,r.createElement)(d.W,{title:y.errorState.title,subtitle:y.errorState.subtitle,error:y.errorState.error});case u.Er:return e;default:return(0,r.createElement)(s.S,{title:y.loader.title,subtitle:y.loader.subtitle})}})():e)};var f=n(3832),_=n(148),v=n(4371),b=n(3272),w=n(2940),y=n(6478),S=n(212),E=n(3474);const k=()=>{const{brandName:e}=(0,i.useSelect)((e=>({brandName:e(c.M).getNewfoldBrandName()})),[]),t=(e=>({title:(0,p.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ +(0,p.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,E.P)("Site")),subtitle:(0,p.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")}))(e);return(0,r.createElement)(S.A,{title:t.title,subtitle:t.subtitle})};var T=n(6942),x=n.n(T),C=n(6087),N=n(6427),A=n(4487),I=n(8744);const D=()=>{const{headers:e,headerActiveView:t,isHeaderEnabled:n,currentStep:o}=(0,i.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),headers:e(c.M).getHeaders(),headerActiveView:e(c.M).getHeaderActiveView(),isHeaderEnabled:e(c.M).isHeaderEnabled()}))),s=o===A.b,l=window.nfdOnboarding.currentFlow===I.d0;return(0,r.createElement)(a.Fragment,null,(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},e.map((e=>(0,r.createElement)(a.Fragment,{key:e.id},(0,r.createElement)(e.header,null))))),(0,r.createElement)(N.Slot,{name:`${t}/${u.KK}`}),n&&(0,r.createElement)("div",{className:x()("nfd-onboarding-header",{"nfd-onboarding-header--dark":s},{"nfd-onboarding-header--sitegen":l})},(0,r.createElement)("div",{className:"nfd-onboarding-header__start"},(0,r.createElement)(N.Slot,{name:`${t}/${u.nK}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__center"},(0,r.createElement)(N.Slot,{name:`${t}/${u.me}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__end"},(0,r.createElement)(N.Slot,{name:`${t}/${u.KZ}`}))))},O=(0,a.memo)((()=>{const{routes:e}=(0,i.useSelect)((e=>({routes:e(c.M).getRoutes()}))),t=(0,a.useCallback)((()=>e?.map((e=>(0,r.createElement)(_.qh,{key:e.path,path:e.path,end:!0,element:(0,r.createElement)(e.Component,null)})))),[e]);return(0,r.createElement)("main",{className:"nfd-onboard-content"},(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},(0,r.createElement)(_.BV,null,t(e))))}));var P=n(431),M=n(1056),R=n(7225);function $(e){if(e){const t={};return e?.forEach((e=>{t[e.slug]=e.color})),t}}function L(e){if(e){const t=[];for(const n in e)t.push({slug:n,name:n?.charAt(0).toUpperCase()+n?.slice(1),color:e[n]});return t}}var z=n(3957),F=n(2202);const V=()=>{const e=(0,a.useRef)(null),[t,n]=(0,a.useState)(),[o,s]=(0,a.useState)(),[d,h]=(0,a.useState)(),[m,g]=(0,a.useState)(),[f,_]=(0,a.useState)(""),[v,w]=(0,a.useState)(!1),[y,S]=(0,a.useState)(!0),[E,k]=(0,a.useState)(),{storedPreviewSettings:T,currentData:C,themeStatus:A}=(0,i.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:I,setCurrentOnboardingData:D,updateThemeStatus:O}=(0,i.useDispatch)(c.M);(0,a.useEffect)((()=>{u.Er===A&&(V(),"custom"===C?.data?.colorStyle&&(S(!1),e?.current?.scrollIntoView({behavior:"smooth",block:"end"})))}),[A]);const V=async()=>{const[e,t]=await Promise.all([(0,l.w6)(),(0,l.kt)()]);if(t?.error)return O(u.So);if(e?.error)return O(u.So);let r;var i;n(t?.body.tailored),s(t?.body["custom-picker-grouping"]),""!==C?.data?.colorStyle?(r=null!==(i=T?.settings?.color?.palette)&&void 0!==i?i:e.body[0]?.settings?.color?.palette,"custom"===C?.data?.colorStyle&&(h($(r)),g($(r))),h($(r))):H()};async function H(){const e=await(0,l.w6)(!0);let t;C?.data?.theme?.variation?t=e.body.filter((e=>e.title===C.data.theme.variation))[0]:0===e.body[0]?.id&&(t=e.body[0]),I((0,R.AN)(t,T)),g();const n=t.settings.color.palette;C.data.colorStyle="",D(C),h($(n))}const U=e=>{g(),async function(e){const n=T;let r=T?.settings?.color?.palette;t&&e&&r&&(r=r.map((n=>(t?.[e]?.[n.slug]&&(n.color=t[e][n.slug]),n))),n.settings.color.palette=r,I((0,R.AN)(n,T)))}(e),h(t[e]),L(t[e]),C.data.colorStyle=e,D(C),(0,M.v)(new M.iC(F.Ep,e,{colors:(0,b.g2)(t[e])}))},W=async e=>{const t={...d};if(t[f]=e,o){const n=o[f];n&&n.forEach((n=>{t[n]=e}))}!async function(){const e=T,t=e?.settings?.color?.palette;if(t){for(let e=0;e{m&&void 0!==m[f]&&(t[function(e,t,n){const r=n.findIndex((({slug:t})=>t===e));return-1===r?n.findIndex((({slug:e})=>e===t)):r}(e,f,T?.settings?.color?.palette)].color=m[f])}))}e.settings.color.palette=t,I((0,R.AN)(e,T))}}(),L(t),C.data.colorStyle="custom",D(C),h(t),clearTimeout(E),k(setTimeout((()=>{(0,M.v)(new M.iC(F.Ep,"custom",{colors:(0,b.g2)(t)}))}),1e3)),g(t)},B=e=>{w(!v),_(v?"":e)};return t&&(0,r.createElement)("div",{className:"theme-colors--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Color Palettes","wp-module-onboarding")),Object.keys(t).map(((e,n)=>(0,r.createElement)("div",{key:e,className:x()("color-palette drawer-palette--button",{"color-palette-selected drawer-palette--button--selected":e===C?.data?.colorStyle}),role:"button",tabIndex:n+1,onClick:()=>U(e),onKeyDown:()=>U(e)},(0,r.createElement)("div",{className:"color-palette__colors"},(0,r.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${t[e]?.["header-background"]}`}}),(0,r.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${t[e]?.secondary}`}}),(0,r.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${t[e]?.primary}`}})),(0,r.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},t[e]?.name)))),function(){var t,n,i,a;const o="#fff",s=m&&""!==m?.primary?m.primary:null!==(t=d?.primary)&&void 0!==t?t:o,c=m&&""!==m?.secondary?m.secondary:null!==(n=d?.secondary)&&void 0!==n?n:o,l=m&&""!==m?.["header-background"]?m["header-background"]:null!==(i=d?.["header-background"])&&void 0!==i?i:o;return(0,r.createElement)("div",{className:"custom-palette"},(0,r.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>S(!y),onKeyDown:()=>S(!y)},(0,r.createElement)("div",{className:"custom-palette__top-text"},(0,p.__)("SELECT CUSTOM COLORS","wp-module-onboarding")),y?(0,r.createElement)("div",{className:"custom-palette__top-icon"},"+"):(0,r.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,r.createElement)(P.A,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(y?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,r.createElement)(z.A,{isColorSelected:m,color:null!==(a=m?.base)&&void 0!==a?a:o,slug:"base",name:(0,p.__)("Background","wp-module-onboarding"),callback:B}),(0,r.createElement)(z.A,{isColorSelected:m,color:s,slug:"primary",name:(0,p.__)("Primary","wp-module-onboarding"),callback:B}),(0,r.createElement)(z.A,{isColorSelected:m,color:c,slug:"secondary",name:(0,p.__)("Secondary","wp-module-onboarding"),callback:B}),(0,r.createElement)(z.A,{isColorSelected:m,color:l,slug:"tertiary",name:(0,p.__)("Tertiary","wp-module-onboarding"),callback:B})),m&&(0,r.createElement)(P.A,{type:"fade-in",duration:"300ms"},(0,r.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:H,onKeyDown:H},(0,r.createElement)("div",null,(0,p.__)("Reset","wp-module-onboarding")))),v&&(0,r.createElement)(N.Popover,null,(0,r.createElement)("div",{role:"button",tabIndex:0,className:"custom-palette__picker__close-icon",onClick:()=>w(!1),onKeyDown:()=>w(!1)},"X"),(0,r.createElement)(N.ColorPicker,{onChange:W})))}())};var H=n(8520),U=n(7044);const W=()=>{const[e,t]=(0,a.useState)(),[n,o]=(0,a.useState)(),[s,l]=(0,a.useState)(""),d=(0,_.zy)(),{currentStep:p,currentData:h,themeStatus:g,storedPreviewSettings:f}=(0,i.useSelect)((e=>({currentStep:e(c.M).getStepFromPath(d.pathname),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus(),storedPreviewSettings:e(c.M).getStepPreviewData()})),[]),{setCurrentOnboardingData:v,updateThemeStatus:b,setHeaderMenuData:w}=(0,i.useDispatch)(c.M);return(0,a.useEffect)((()=>{g===u.Er&&(async()=>{const e=await(0,H.O)(p?.data?.patternId);if(e?.error)return b(u.So);const n=e?.body.pageHeaders,r=e?.body.pageFooter,i=e?.body.pageBody;(!h.data.partHeader||""===h.data.partHeader)&&n?.length>0&&(h.data.partHeader=n[0].slug,v(h)),h.data?.partFooter&&""!==h.data?.partFooter||(h.data.partFooter=r.slug,v(h)),l(h.data.partHeader),o(e.body),t(n);let[a,s]=["",""];n?.forEach((e=>{e.slug===h.data.partHeader&&(a=e.content)})),s=a+i,w(s)})()}),[g]),(0,r.createElement)(U._Z,{count:f[p?.data?.patternId]?.previewCount,watch:e,callback:()=>e?.map(((t,i)=>(0,r.createElement)(U.ph,{key:i,className:"theme-header-menu-preview--drawer__list__item",selected:t.slug===s,blockGrammer:t.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async t=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const r=e[t];if(r.slug===s)return!0;l(r.slug),h.data.partHeader=r.slug,v(h);const i=r.content+n.pageBody;w(i);const a=await(0,m.V1)(h);null===a?.error&&v(h),(0,M.v)(new M.iC(F.r2,r.slug))})(i)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},B=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Homepage Design","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),j=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme Style","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show Theme details","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),G=()=>{const[e,t]=(0,a.useState)(),[n,o]=(0,a.useState)(),[s,d]=(0,a.useState)(""),{currentStep:p,currentData:h,storedPreviewSettings:m,themeStatus:g,themeVariations:f}=(0,i.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),currentData:e(c.M).getCurrentOnboardingData(),storedPreviewSettings:e(c.M).getPreviewSettings(),themeStatus:e(c.M).getThemeStatus(),themeVariations:e(c.M).getStepPreviewData()})),[]),{updatePreviewSettings:_,setCurrentOnboardingData:v,updateThemeStatus:b}=(0,i.useDispatch)(c.M);return(0,a.useEffect)((()=>{g===u.Er&&(async()=>{const e=await(0,l.w6)(!0);if(e?.error)return b(u.So);let n;h.data.theme.variation?n=h.data.theme.variation:(n=e.body[0].title,h.data.theme.variation=n,v(h)),d(n);const r=await(0,H.O)(p?.data?.patternId,!0);if(r?.error)return b(u.So);t(r?.body),o(e?.body),document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0]&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0].scrollIntoView({behavior:"smooth",block:"center"})})()}),[g]),(0,r.createElement)("div",{className:"theme-styles-preview--drawer"},(0,r.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,r.createElement)(U._Z,{className:"theme-styles-preview--drawer__list__item",watch:n&&e,count:f[p?.data?.patternId]?.previewCount,callback:()=>n?.map(((t,i)=>(0,r.createElement)(U.ph,{key:i,className:"theme-styles-preview--drawer__list__item",selected:t.title===s,blockGrammer:e,viewportWidth:900,styling:"custom",previewSettings:t,overlay:!1,onClick:()=>(e=>{const t=n[e];if(s===t.title)return!0;_((0,R.AN)(t,m)),d(t.title),h.data.theme.variation=t.title,v(h),(0,M.v)(new M.iC(F.hi,t.title))})(i)}))),viewportWidth:900})))},q=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show contextual help","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),Y=()=>{const e=(0,a.useRef)(),[t,n]=(0,a.useState)(!1),[o,s]=(0,a.useState)(),[d,h]=(0,a.useState)(),{storedPreviewSettings:m,currentData:g,themeStatus:f}=(0,i.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:_,setCurrentOnboardingData:v,updateThemeStatus:b}=(0,i.useDispatch)(c.M);(0,a.useEffect)((()=>{""!==g?.data?.fontStyle&&void 0!==d&&(s(g?.data?.fontStyle),w(g?.data?.fontStyle))}),[d,m]),(0,a.useEffect)((()=>{t||u.Er!==f||(async()=>{const t=await(0,l._t)();if(t?.error)return b(u.So);h(t?.body);const r=m?.settings?.styles[0]?.css;if(r){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",r.match(t))}n(!0)})()}),[t,f]);const w=async(e,t="click")=>{if(o===e)return!0;s(e);const n=m,r=d;n?.styles?.typography?.fontFamily&&n?.styles?.blocks["core/heading"]&&(n.styles.typography.fontFamily=r[e]?.styles?.typography?.fontFamily,n.styles.blocks["core/heading"]={...n.styles.blocks["core/heading"],typography:r[e]?.styles.blocks["core/heading"].typography}),n.styles?.blocks["core/site-title"]?.typography?.fontFamily&&(n.styles.blocks["core/site-title"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),n.styles?.blocks["core/site-tagline"]?.typography?.fontFamily&&(n.styles.blocks["core/site-tagline"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),g.data.fontStyle=e,_((0,R.AN)(n,m)),v(g),"click"===t&&(0,M.v)(new M.iC(F.ce,e))};return(0,r.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Font Palettes","wp-module-onboarding")),d&&Object.keys(d).map(((e,t)=>{var n;const i=d[e]?.label.split("&",2);return 0===i.length?null:(0,r.createElement)("div",{key:e,role:"button",tabIndex:t+1,className:x()("font-palette drawer-palette--button",{"font-palette-selected drawer-palette--button--selected":o===e}),onClick:()=>w(e),onKeyDown:()=>w(e)},(0,r.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:d[e]?.styles?.typography?.fontFamily}},/* translators: text in each font selection pill representing the respective font */ /* translators: text in each font selection pill representing the respective font */ +(0,p.__)("Aa","wp-module-onboarding")),(0,r.createElement)("div",{className:"font-palette__name drawer-palette--button__text"},(0,r.createElement)("span",{style:{fontFamily:d[e]?.styles.blocks["core/heading"].typography.fontFamily}},i[0]),i[1]?"&":"",(0,r.createElement)("span",{style:{fontFamily:d[e]?.styles?.typography?.fontFamily}},null!==(n=i[1])&&void 0!==n?n:"")))})))};var K=n(8558),J=n(1607),Q=n(7677),Z=n(1003);const X=()=>{const{designRoutes:e}=(0,i.useSelect)((e=>({designRoutes:e(c.M).getDesignRoutes()})),[]),{setDrawerActiveView:t}=(0,i.useDispatch)(c.M),n=(0,_.zy)();return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.path,className:x()("nfd-onboarding-drawer__panel-menu-link",{active:n.pathname===e.path||n.pathname.includes(e?.data?.designDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Q.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))};var ee=n(2895);const te=()=>{const e=ee._.steps,{setDrawerActiveView:t}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Q.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},ne=()=>{const{setDrawerActiveView:e}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>e(u.vO)},(0,p.__)("Resume Onboarding","wp-module-onboarding")))},re=()=>{const e=(0,_.zy)(),{topSteps:t}=(0,i.useSelect)((e=>({topSteps:e(c.M).getTopSteps()})),[]),{setDrawerActiveView:n}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(h.A,{buttonClassName:"nfd-onboarding-drawer__panel-back",buttonVariant:"tertiary",origin:"drawer-panel"}),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},t.map((t=>!1!==t.drawerNavigation&&(0,r.createElement)(N.Tooltip,{key:t.path,text:t.data?.tooltipText},(0,r.createElement)("li",{className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)?e.pathname:t.path,className:x()("nfd-onboarding-drawer__panel-menu-link",{active:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t?.drawerView&&n(t.drawerView)},(0,r.createElement)(Q.A,{icon:t.icon}),(0,r.createElement)("span",null,t.title)))))))))};var ie=n(19);const ae=()=>{const e=ie.E.steps,{setDrawerActiveView:t}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(Z.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Q.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},oe=({children:e})=>{const{setDrawerActiveView:t}=(0,i.useDispatch)(c.M);return(0,r.createElement)(P.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:J.A,onClick:()=>t(u.VG)},(0,p.__)("Design","wp-module-onboarding")),e)},se=()=>{const{isDrawerOpen:e,drawerView:t}=(0,i.useSelect)((e=>{const{isDrawerOpened:t,getActiveDrawerView:n}=e(c.M);return{isDrawerOpen:t(),drawerView:n()}}),[]),{setIsDrawerOpened:n}=(0,i.useDispatch)(c.M);return(0,r.createElement)("div",{className:x()("nfd-onboarding-drawer__panel",{"is-open":e}),role:"button",tabIndex:"0",onKeyDown:e=>{e.keyCode!==K.ESCAPE||e.defaultPrevented||(e.preventDefault(),n(!1))}},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inner"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title"},(0,p.__)("WordPress Onboarding","wp-module-onboarding"))),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-scroll-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inside"},u.vO===t&&(0,r.createElement)(re,null),u.VG===t&&(0,r.createElement)(X,null),u.lf===t&&(0,r.createElement)(te,null),u.eY===t&&(0,r.createElement)(ae,null),u.yY===t&&(0,r.createElement)(ne,null),u.KJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(q,null)),u.Cx===t&&(0,r.createElement)(oe,null,(0,r.createElement)(j,null)),u.PE===t&&(0,r.createElement)(oe,null,(0,r.createElement)(G,null)),u.iQ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(V,null)),u.SJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(Y,null)),u.HJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(W,null)),u.CL===t&&(0,r.createElement)(oe,null,(0,r.createElement)(B,null))))))},ce=({isOpen:e})=>{const{isDrawerOpen:t,isDrawerSuppressed:n,activeDrawerView:o}=(0,i.useSelect)((e=>({isDrawerOpen:e(c.M).isDrawerOpened(),isDrawerSuppressed:e(c.M).isDrawerSuppressed(),activeDrawerView:e(c.M).getActiveDrawerView()})),[]),{setIsDrawerOpened:s}=(0,i.useDispatch)(c.M),l=(0,a.useRef)();return(0,a.useEffect)((()=>{t||l?.current?.focus()}),[t]),o&&(0,r.createElement)(N.__unstableMotion.div,{className:x()("nfd-onboarding-drawer__toggle",{"is-open":t}),whileHover:"expand"},(0,r.createElement)(N.Button,{className:`nfd-onboarding-drawer__toggle-button has-icon ${!n||"is-suppressed"}`,label:(0,p.__)("Toggle Navigation","wp-module-onboarding"),ref:l,"aria-pressed":e,onClick:()=>{n||s(!t)}},(0,r.createElement)("div",{style:{width:"36px",height:"36px",backgroundImage:"var(--nfd-onboarding-icon)",backgroundSize:"contain"}})))},le=(0,a.memo)((({isDefaultOpen:e=!1})=>{const t=(0,o.useViewportMatch)("medium"),{setIsDrawerOpened:n}=(0,i.useDispatch)(c.M);return(0,a.useEffect)((()=>{n(e&&t)}),[e,t,n]),(0,r.createElement)(a.Fragment,null,(0,r.createElement)(ce,null),(0,r.createElement)(se,null))})),ue=()=>{const{isSidebarOpened:e,sideBarView:t,sidebars:n}=(0,i.useSelect)((e=>({isSidebarOpened:e(c.M).isSidebarOpened(),sideBarView:e(c.M).getSidebarView(),sidebars:e(c.M).getSidebars()})));return(0,r.createElement)(a.Fragment,null,(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},n.map((e=>(0,r.createElement)(a.Fragment,{key:e.id},e?.sidebar&&(0,r.createElement)(e.sidebar,null),e?.menu&&(0,r.createElement)(e.menu,null))))),(0,r.createElement)("div",{className:x()("nfd-onboarding-sidebar__panel",{"is-open":e&&t})},(0,r.createElement)("div",{className:"nfd-onboarding-sidebar__panel-inner"},e&&t&&(0,r.createElement)(N.Slot,{name:`${u.St}/${t}`}))))},de=()=>{const{footers:e,footerActiveView:t}=(0,i.useSelect)((e=>({footers:e(c.M).getFooters(),footerActiveView:e(c.M).getFooterActiveView()})));return(0,r.createElement)("div",{className:"nfd-onboarding-footer"},(0,r.createElement)(a.Suspense,{fallback:(0,r.createElement)(a.Fragment,null)},e.map((e=>(0,r.createElement)(a.Fragment,{key:e.id},(0,r.createElement)(e.footer,null))))),(0,r.createElement)("div",{className:"nfd-onboarding-footer__start"},(0,r.createElement)(N.Slot,{name:`${t}/${u.vd}`})),(0,r.createElement)("div",{className:"nfd-onboarding-footer__end"},(0,r.createElement)(N.Slot,{name:`${t}/${u.gb}`})))},pe=n.p+"images/ai_bg.55900f2d.png";var he=n(9269);const me=(0,a.forwardRef)((function({footer:e,header:t,sidebar:n,secondarySidebar:i,notices:s,content:c,drawer:l,actions:d,labels:h,className:m,shortcuts:g,interactionDisabled:f},_){const v=(0,N.__unstableUseNavigateRegions)(g);if("sitegen"===window.nfdOnboarding.currentFlow){const{theme:e}=(0,a.useContext)(he.D);!function(e,t){(0,a.useEffect)((()=>{const n=new Image;n.src=pe,n.onload=()=>{document.querySelector(".nfd-onboarding-skeleton--sitegen")&&(document.querySelector(".nfd-onboarding-skeleton--sitegen").style.background=t?`url('${pe}')`:"#ededed")};const r=document&&document.querySelector(`html:not(.${e})`);if(r)return r.classList.toggle(e),()=>{r.classList.toggle(e)}}),[e,t])}("nfd-interface-interface-skeleton__html-container",e===u.fS)}const b={ +/* translators: accessibility text for the nav bar landmark region. */ +drawer:(0,p.__)("Drawer","wp-module-onboarding"), +/* translators: accessibility text for the top bar landmark region. */ +header:(0,p.__)("Header","wp-module-onboarding"), +/* translators: accessibility text for the content landmark region. */ +body:(0,p.__)("Content","wp-module-onboarding"), +/* translators: accessibility text for the secondary sidebar landmark region. */ +secondarySidebar:(0,p.__)("Block Library","wp-module-onboarding"), +/* translators: accessibility text for the settings landmark region. */ +sidebar:(0,p.__)("Settings","wp-module-onboarding"), +/* translators: accessibility text for the publish landmark region. */ +actions:(0,p.__)("Publish","wp-module-onboarding"), +/* translators: accessibility text for the footer landmark region. */ +footer:(0,p.__)("Footer","wp-module-onboarding"),...h};return(0,r.createElement)("div",{...v,ref:(0,o.useMergeRefs)([_,v.ref]),className:x()(m,"nfd-interface-interface-skeleton",v.className,!!e&&"has-footer")},!!l&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__drawer",role:"region","aria-label":b.drawer,tabIndex:"-1"},l),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__editor"},!!t&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__header",role:"region","aria-label":b.header,tabIndex:"-1"},t),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__body"},!!i&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__secondary-sidebar",role:"region","aria-label":b.secondarySidebar,tabIndex:"-1"},i),!!s&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__notices"},s),(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__content",role:"region","aria-label":b.body,tabIndex:"-1"},c),!!n&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__sidebar",role:"region","aria-label":b.sidebar,tabIndex:"-1"},n),!!d&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__actions",role:"region","aria-label":b.actions,tabIndex:"-1"},d))),!!e&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__footer",role:"region","aria-label":b.footer,tabIndex:"-1"},e),f&&(0,r.createElement)("div",{className:"nfd-interface-interface-skeleton__overlay--disabled"}))}));var ge=n(9034),fe=n(3731),_e=n(6436);const ve=(e,t,n,i=!0)=>o=>{const{theme:s}=(0,a.useContext)(he.D),c=s===u.fS,l=void 0===i||i,d=x()(o.className,{[t]:c&&l,[n]:!c&&l});return(0,r.createElement)(e,{...o,className:d})};var be=n(8559),we=n(1455),ye=n.n(we);const Se=()=>{ye()({url:`${u.SF}/wp-cron.php`,method:"GET",parse:!1}).catch((e=>{console.error(e)}))};var Ee=n(8294),ke=n(2014),Te=n(5171),xe=n(6188),Ce=n(2538);const Ne=()=>{const e=(0,_.zy)(),t=(0,o.useViewportMatch)("medium"),n=(0,C.kebabCase)(e.pathname),{isDrawerOpen:s,newfoldBrand:d,onboardingFlow:p,currentData:h,currentStep:g,lastChapter:f,socialData:S,firstStep:E,allSteps:k,experienceLevel:T,topPriority:N,brandConfig:A,initialize:I,pluginInstallHash:P,instaWpMigrationUrl:R}=(0,i.useSelect)((e=>({isDrawerOpen:e(c.M).isDrawerOpened(),newfoldBrand:e(c.M).getNewfoldBrand(),onboardingFlow:e(c.M).getOnboardingFlow(),currentData:e(c.M).getCurrentOnboardingData(),socialData:e(c.M).getOnboardingSocialData(),firstStep:e(c.M).getFirstStep(),allSteps:e(c.M).getAllSteps(),topPriority:e(c.M).getTopPriority(),experienceLevel:e(c.M).getExperienceLevel(),currentStep:e(c.M).getCurrentStep(),lastChapter:e(c.M).getCurrentChapter(),brandConfig:e(c.M).getNewfoldBrandConfig(),initialize:e(c.M).getInitialize(),pluginInstallHash:e(c.M).getPluginInstallHash(),instaWpMigrationUrl:e(c.M).getinstaWpMigrationUrl()})),[e.pathname]),[$,L]=(0,a.useState)(!1),[z,V]=(0,a.useState)(!1),[H,U]=(0,a.useState)(!1),{setActiveChapter:W,flushQueue:B,enqueueRequest:j,setOnboardingSocialData:G,updateAllSteps:q,updateRoutes:Y,updateTopSteps:K,updateDesignRoutes:J,setCurrentOnboardingData:Q}=(0,i.useDispatch)(c.M);const Z=()=>{g?.path===fe.O?.path&&R&&(0,_e.A)().then((e=>(0,M.SV)(new M.iC(e.nfd_migrate_site?F.nS:F.o_,R))))};(0,a.useEffect)((()=>{(()=>{Z(),e.pathname===E.path&&(0,M.v)(new M.iC(F.p$));const t=g?.chapter;var n;f!==t&&(f&&(h.data.chapters[f]&&(h.data.chapters[f].completed=!0),(0,M.v)(new M.iC(F.vY,f))),t&&(h.data.chapters[t]&&(h.data.chapters[t].completed=!1),(0,M.v)(new M.iC(F.j7,t))),W(t)),t&&h.data.chapters[t]&&(h.data.chapters[t].lastStep=null!==(n=g?.path)&&void 0!==n?n:"")})()}),[g]),(0,a.useEffect)((()=>{Z()}),[R]),(0,a.useEffect)((()=>{I&&((0,be.Ts)(P),(0,l.Ts)(),(0,ke.n_)(),setInterval(Se,45e3))}),[I]),(0,a.useEffect)((()=>{if(!1!==A?.prioritization)return(()=>{const e=window.nfdOnboarding.currentFlow,t=(0,y.Pq)(e),n=(0,b.qn)("chapter");let r;r=n?(0,xe.Ny)(n):(0,xe.py)(t,N,T);const i=(0,y.Sg)(e)(r,n);h.data.chapters=(0,xe.AZ)(t,h.data.chapters,g),Q(h),q(i.steps),K(i.topSteps),Y(i.routes),J(i.designRoutes)})()}),[T,N]),(0,a.useEffect)((()=>{document.body.classList.add(`nfd-brand-${d}`)}),[d]),(0,a.useEffect)((()=>{(async function(){if(h&&e?.pathname!==E?.path&&!$){if(L(!0),H&&await async function(){const{address:e}=h.storeDetails;let t={};void 0!==e&&(delete e.country,delete e.state,t=e),(0,Te.Im)(t)||await(0,Te.mj)(t),delete h.storeDetails.address,delete h.storeDetails.tax,U(!1)}(),z){const e=await async function(){const e=await(0,ke.mt)(),t=await(0,ke.oc)(S);return V(!1),null!==t?.error?e?.body:t?.body}();e&&G(e)}B(),j(u.L5.SET_FLOW,(()=>(0,m.V1)(h))),L(!1)}e?.pathname.includes("basic-info")&&V(!0),e?.pathname.includes("ecommerce")&&U(!0)})(),(()=>{const t=window.nfdOnboarding?.previousStep;if("object"!=typeof t)return window.nfdOnboarding.previousStep={path:e.pathname,url:window.location.href},void v.y.dispatchEvents(F.XJ);const n=t.path,r=t.url;if(n.includes("basic-info")){const e=h.data.blogName,t=h.data.blogDescription,n=h.data.siteLogo.url;e&&(0,M.v)(new M.iC(F.rf,e,{},r)),t&&(0,M.v)(new M.iC(F.Fi,t,{},r)),n&&(0,M.v)(new M.iC(F.WT,void 0,{},r));const i=Object.keys((0,Ce.Z)(S));i.length&&i.forEach((e=>{(0,M.v)(new M.iC(F.wo,e,{},r))}))}if(n.includes("site-pages")){const e=h.data.sitePages?.other;e&&!1!==e?(0,M.v)(new M.iC(F.o3,e.map((e=>e.key)),{count:e.length},r)):(0,M.v)(new M.iC(F.o3,[],{count:0},r))}if(n.includes("site-features")){const e=h.data.siteFeatures;for(const t in e)!1!==e[t]&&(0,M.v)(new M.iC(F.Zt,t,{},r))}window.nfdOnboarding.previousStep={path:e.pathname,url:window.location.href},v.y.dispatchEvents(F.XJ)})(),function(){if(e?.pathname.includes("colors")||e?.pathname.includes("typography")){const e=(0,w.xG)(k,Ee.x.conditionalSteps);q(e.allSteps),h.data.customDesign||(h.data.customDesign=!0,Q(h))}}()}),[e.pathname,p]),(0,a.useEffect)((()=>{(0,M.SV)(new M.iC(F.oA))}),[e.pathname]);const X=g===ge.O||g===fe.O||"sitegen"===window.nfdOnboarding.currentFlow,ee=ve(me,"nfd-onboarding-sitegen-dark","nfd-onboarding-sitegen-light",X),te={className:x()("nfd-onboarding-skeleton",`brand-${d}`,`path-${n}`,{"is-drawer-open":s},{"is-large-viewport":t},{"is-small-viewport":!t},{"nfd-onboarding-skeleton--sitegen":X}),header:(0,r.createElement)(D,null),drawer:(0,r.createElement)(le,null),content:(0,r.createElement)(O,null),sidebar:(0,r.createElement)(ue,null),footer:X?(0,r.createElement)(de,null):null};return ne=X?ee:me,X?(0,r.createElement)(he.N,null,(0,r.createElement)(ne,{...te})):(0,r.createElement)(ne,{...te});var ne};var Ae=n(3582),Ie=n(7708);const De=ve(me,"nfd-onboarding-sitegen-dark","nfd-onboarding-sitegen-light"),Oe=()=>{const[e,t]=(0,a.useState)([]),[n,o]=(0,a.useState)(!1),{currentData:s,initialize:d,pluginInstallHash:p,siteGenErrorStatus:h,interactionDisabled:g,newfoldBrand:f,currentStep:v,lastChapter:b}=(0,i.useSelect)((e=>({currentData:e(c.M).getCurrentOnboardingData(),initialize:e(c.M).getInitialize(),pluginInstallHash:e(c.M).getPluginInstallHash(),siteGenErrorStatus:e(c.M).getSiteGenErrorStatus(),interactionDisabled:e(c.M).getInteractionDisabled(),newfoldBrand:e(c.M).getNewfoldBrand(),currentStep:e(c.M).getCurrentStep(),lastChapter:e(c.M).getCurrentChapter()}))),{setCurrentOnboardingData:w,updateSiteGenErrorStatus:y,setActiveChapter:S,setIsGeneratingHomepages:E}=(0,i.useDispatch)(c.M),{getEditedEntityRecord:k}=(0,i.useSelect)((e=>e(Ae.store)),[]),{editEntityRecord:T}=(0,i.useDispatch)(Ae.store),C=(0,_.zy)(),N=(0,a.useRef)();async function A(e,n,r,i=1){const a=await(0,Ie.iQ)(e,n,r);if(a.error)return ie.includes(n)?e:[...e,n])),(0,M.v)(new M.iC(F.cW,n,{source:I.d0})),!1===h&&(y(!0),o(!1)),void(window.nfdOnboarding.siteGenTimerInterval&&clearInterval(window.nfdOnboarding.siteGenTimerInterval)));if("site_config"===n&&T("root","site",void 0,{title:a.body.site_title,description:a.body.tagline}),s.sitegen.siteGenMetaStatus.currentStatus+=1,s.sitegen.siteGenMetaStatus.currentStatus===s.sitegen.siteGenMetaStatus.totalCount){s.sitegen.skipCache=!1,o(!1),E(!0);const e=await(0,Ie.c7)(s.sitegen.siteDetails.prompt);if(e.error)return(0,M.v)(new M.iC(F.cW,"homepages",{source:I.d0})),y(!0),E(!1),void w(s);s.sitegen.homepages.data=e.body,E(!1)}w(s)}async function P(){if(!0===h||!0===n||!C.pathname.includes("site-logo")&&!C.pathname.includes("experience"))return;if(s.sitegen.siteGenMetaStatus.currentStatus===s.sitegen.siteGenMetaStatus.totalCount)return;if(s.sitegen?.siteGenErrorMeta?.retryCount>=s.sitegen?.siteGenErrorMeta?.maxRetryCount)return void y(!0);let r;o(!0),window.nfdOnboarding?.siteGenTimerInterval||(window.nfdOnboarding.siteGenTime=0,window.nfdOnboarding.siteGenTimerInterval=setInterval((()=>{window.nfdOnboarding.siteGenTime+=1}),1e3)),Array.isArray(e)&&e.length>0?(r=e,t([])):(r=await(0,Ie.kA)(),r=r.body,s.sitegen.siteGenMetaStatus.currentStatus=0,w(s));const i={site_description:s.sitegen?.siteDetails?.prompt},a=s.sitegen?.skipCache;r.forEach((e=>{A(i,e,a)}))}(0,a.useEffect)((()=>{(0,l.Ts)(),(0,ke.n_)(),k("root","site")}),[]),(0,a.useEffect)((()=>{document.body.classList.add(`nfd-brand-${f}`)}),[f]),(0,a.useEffect)((()=>{$()}),[v]),(0,a.useEffect)((()=>{d&&((0,be.Ts)(p),setInterval(Se,45e3))}),[d]),(0,a.useEffect)((()=>{!async function(){s&&C?.pathname!==ge.O.path&&(await(0,m.V1)(s)).body}(),P(),R(),(0,M.SV)(new M.iC(F.oA))}),[C.pathname]),(0,a.useEffect)((()=>{!0===N.current&&!1===h&&P(),N.current=h}),[h]);const R=()=>{window.nfdOnboarding;window.nfdOnboarding.previousStep={path:C.pathname,url:window.location.href}},$=()=>{const e=v?.chapter;var t;b!==e&&(b&&(s.data.chapters[b]&&(s.data.chapters[b].completed=!0),(0,M.v)(new M.iC(F.vY,b,{source:I.d0}))),e&&(s.data.chapters[e]&&(s.data.chapters[e].completed=!1),(0,M.v)(new M.iC(F.j7,e,{source:I.d0}))),S(e)),e&&s.data.chapters[e]&&(s.data.chapters[e].lastStep=null!==(t=v?.path)&&void 0!==t?t:"")};return(0,r.createElement)(he.N,null,(0,r.createElement)(De,{id:"nfd-onboarding-skeleton--sitegen",className:x()("nfd-onboarding-skeleton--sitegen",`brand-${f}`),header:(0,r.createElement)(D,null),content:(0,r.createElement)(O,null),sidebar:(0,r.createElement)(ue,null),footer:(0,r.createElement)(de,null),interactionDisabled:g}))},Pe=()=>{const[e,t]=(0,a.useState)(!1),{brandConfig:n,onboardingFlow:o}=(0,i.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),onboardingFlow:e(c.M).getOnboardingFlow()})),[]),{setIsDrawerOpened:s,setIsDrawerSuppressed:l,setIsHeaderNavigationEnabled:d,setSidebarActiveView:p,setActiveFlow:h,setActiveStep:g,updateAllSteps:S,updateTopSteps:E,updateRoutes:T,updateInitialize:x}=(0,i.useDispatch)(c.M),C=(0,_.zy)();(0,a.useEffect)((()=>{if(window.nfdOnboarding?.newFlow){const e=window.nfdOnboarding.newFlow;D(),t(e),A(e),window.nfdOnboarding.newFlow=void 0}else C.pathname.includes("/step")&&(h(o),g(C.pathname))}),[C.pathname]);const N=async(e,n=0)=>{if(n>=u.WH)return t(!1);const r=await(0,m.HR)(e);if(r?.error)return N(e,n+=1);await v.y.dispatchEvents();const i=ie.E.steps[0],a=(0,f.getFragment)(window.location.href),o=(0,b.qm)(window.location.href,"flow").replace(a,"");window.location.replace(`${o}#${i.path}`),window.location.reload()},A=async e=>{if((0,w.nC)(n,e))return e===I.eS?N(e):void 0},D=()=>{s(!1),l(!0),d(!1),p(!1)};return(0,r.createElement)(r.Fragment,null,(()=>{if(e===I.eS)return(0,r.createElement)(k,null);switch(window.nfdOnboarding.currentFlow){case I.rA:case I.eS:return(()=>{if(!(0,w.nC)(n,I.d0)){const e=(0,y.Sg)(window.nfdOnboarding.currentFlow)(),t=(0,w.x9)(e.steps,[ge.O]);S(t.allSteps);const n=(0,w.p1)(e?.topSteps,[ge.O]);E(n.topSteps);const r=(0,w.Jp)(e.routes,[ge.O]);T(r.routes),x(!0)}})(),(0,r.createElement)(Ne,null);case I.d0:return(0,r.createElement)(Oe,null)}})())};var Me=n(3988),Re=n(7673);const $e=()=>{const e=(0,_.Zp)(),t=(0,o.useViewportMatch)("small"),[n,s]=(0,a.useState)(!1),{setIsHeaderEnabled:l,setSidebarActiveView:d,setHeaderActiveView:h,setDrawerActiveView:g,setHideFooterNav:f,setIsHeaderNavigationEnabled:v,updateAllSteps:b,updateTopSteps:S,updateRoutes:E,updateDesignRoutes:k,updateInitialize:T,setCurrentOnboardingData:C,updateSiteGenErrorStatus:A}=(0,i.useDispatch)(c.M);(0,a.useEffect)((()=>{f(!0),l(!0),h(u.Ix),v(!0),g(!1),d(!1),s(O.sitegen?.siteGenErrorMeta?.retryCount>O.sitegen?.siteGenErrorMeta?.maxRetryCount)}),[]);const{brandConfig:D,currentData:O,currentStep:P,previousStep:M,allSteps:R}=(0,i.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),currentData:e(c.M).getCurrentOnboardingData(),currentStep:e(c.M).getCurrentStep(),previousStep:e(c.M).getPreviousStep(),allSteps:e(c.M).getAllSteps()}))),$=P?.path===fe.O?.path,L=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:I.rA,z=async()=>{A(!1),await(0,m.V1)(O)},F=(V=$?"siteMigrationErrorContent":"siteGenErrorContent",{siteGenErrorContent:{heading:(0,p.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,p.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,p.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,p.__)("Try again","wp-module-onboarding"),buttonSkip:(0,p.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,p.__)("exit to WordPress","wp-module-onboarding")},siteMigrationErrorContent:{heading:(0,p.__)("Sorry, we're having trouble starting the site transfer process.","wp-module-onboarding"),subHeading:(0,p.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,p.__)("If you continue to get this error, please contact our support team at 1-888-401-4678.","wp-module-onboarding"),buttonText:(0,p.__)("Try again","wp-module-onboarding"),buttonExit:(0,p.__)("Go back","wp-module-onboarding")}}[V]||{});var V;return(0,r.createElement)(Me.A,{className:x()("nfd-onboarding-step--site-gen__error",{"nfd-onboarding-step--site-gen__migrationerror":$})},(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,r.createElement)(Re.A,{height:"100px"})),(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},F.heading)),(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},F.subHeading),(0,r.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},F.message,!$&&(0,r.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:u.R0},F.buttonExit))),$?(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(()=>{A(!1);const t=(0,w.x9)(R,[fe.O]);b(t.allSteps),e(M.path)})()}},F.buttonExit),(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{z()}},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText))):(0,r.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,w.nC)(D,t))return!1;const n=window.nfdOnboarding.currentFlow,r=(0,y.Sg)(t)();b(r.steps),S(r?.topSteps),E(r.routes),k(r?.designRoutes),I.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,O.activeFlow=t,O.continueWithoutAi=!0,C(O),I.d0!==t&&T(!0),e(r.steps[1].path)})(L)}},F.buttonSkip),t?(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{z()},disabled:!0===n},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText)):(0,r.createElement)(N.Fill,{name:`${u.Sr}/${u.gb}`},(0,r.createElement)(N.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{z()},disabled:!0===n},(0,r.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText))))))},Le=({children:e})=>{const{siteGenErrorStatus:t}=(0,i.useSelect)((e=>({currentStepPath:e(c.M).getCurrentStepPath(),siteGenErrorStatus:e(c.M).getSiteGenErrorStatus()})));return(0,r.createElement)(a.Fragment,null,t?(0,r.createElement)($e,null):e)}},9269:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,N:()=>u});var r=n(1609),i=n(8468),a=n(7143),o=n(7675),s=n(6079),c=n(8969);const l=(0,i.createContext)(),u=({children:e})=>{const{currentData:t}=(0,a.useSelect)((e=>({currentData:e(o.M).getCurrentOnboardingData()}))),n=function(e){return e.sitegenThemeMode?e.sitegenThemeMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?c.fS:c.Vw}(t),[u,d]=(0,i.useState)(n),{setCurrentOnboardingData:p}=(0,a.useDispatch)(o.M);return(0,i.useEffect)((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{const n=e.matches?c.fS:c.Vw;d(n),t.sitegenThemeMode=n,p(t),(0,s.V1)(t)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),(0,r.createElement)(l.Provider,{value:{theme:u,toggleTheme:()=>{d((e=>{const n=e===c.fS?c.Vw:c.fS;return t.sitegenThemeMode=n,p(t),(0,s.V1)(t),n}))}}},e)}},8744:(e,t,n)=>{"use strict";n.d(t,{d0:()=>a,eS:()=>i,rA:()=>r});const r="wp-setup",i="ecommerce",a="sitegen"},6478:(e,t,n)=>{"use strict";n.d(t,{Pq:()=>Te,Tk:()=>ke,FI:()=>ye,o2:()=>Se,Zq:()=>Ee,Sg:()=>xe});var r=n(8744),i=n(6087),a=n(2895),o=n(8294),s=n(7831),c=n(9729),l=n(67),u=n(8468),d=n(2502);const p=(0,u.lazy)((()=>n.e(270).then(n.bind(n,1270)))),h=new d.p({slug:"complete",path:"/wp-setup/step/complete",Component:p});var m=n(7723),g=n(3290),f=n(1609),_=n(7143),v=n(7675),b=n(3474);const w=(0,u.lazy)((()=>n.e(206).then(n.bind(n,3206)))),y=(0,u.lazy)((()=>n.e(672).then(n.bind(n,6672)))),S=(0,u.lazy)((()=>n.e(993).then(n.bind(n,1993)))),E=(0,u.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),k=(0,u.lazy)((()=>n.e(97).then(n.bind(n,9097)))),T=(0,u.lazy)((()=>n.e(508).then(n.bind(n,6508)))),x=(0,u.lazy)((()=>n.e(994).then(n.bind(n,994)))),C=new d.p({slug:"what-next",path:"/wp-setup/step/what-next",title:(0,m.__)("What Next","wp-module-onboarding"),Component:x,icon:g.A,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:r}=(0,_.useSelect)((e=>({brandName:e(v.M).getNewfoldBrandName(),techSupportLink:e(v.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(v.M).getfullServiceCreativeTeamUrl(),brandConfig:e(v.M).getNewfoldBrandConfig()}))),i=((e,t,n)=>({introduction:{heading:(0,m.__)("What’s Next","wp-module-onboarding"),subheading:(0,m.sprintf)(/* translators: 1: website or store 2: website or store */ /* translators: 1: website or store 2: website or store */ +(0,m.__)("The beginning of your %1$s journey is complete. We’re here to support your next steps and %2$s goals!","wp-module-onboarding"),(0,b.P)("website"),(0,b.P)("website")),icon:g.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-what-next-illustration"},information:{headingWithDescriptions:[{heading:(0,m.__)("Add, adjust and launch!","wp-module-onboarding"),description:(0,m.sprintf)(/* translators: 1: site or store 2: Brand 3: site or store */ /* translators: 1: site or store 2: Brand 3: site or store */ +(0,m.__)("Now that you’ve setup the basics, use WordPress to edit your pages, %1$s design and explore the unlimited destinations you can chart for your %2$s %3$s.","wp-module-onboarding"),(0,b.P)("site"),e,(0,b.P)("site"))},{description:(0,m.sprintf)(/* translators: %s: website */ /* translators: %s: website */ +(0,m.__)("Our support team, %s experts and professional designers are always just a chat or call away if you ever need directions.","wp-module-onboarding"),(0,b.P)("website"))}]},help:{fullService:{text:(0,m.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,m.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,f.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__what-next"},(0,f.createElement)(T,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==r?.views?.sidebar?.illustration?.shown&&(0,f.createElement)(w,{cssIcon:i.illustration.icon,baseClassName:"nfd-onboarding-sidebar-learn-more__what-next",backgroundPosition:"right bottom"}),(0,f.createElement)(y,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,f.createElement)(S,null,!1!==r?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,f.createElement)(E,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,f.createElement)(k,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{tooltipText:(0,m.__)("How else can we help?","wp-module-onboarding")}});var N=n(5573);const A=(0,f.createElement)(N.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,f.createElement)(N.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var I=n(3988),D=n(4639),O=n(8969),P=n(9491);class M{constructor({path:e,title:t,Component:n,icon:r}){this.path=e,this.title=t,this.Component=n,this.icon=r}}const R=new M({path:"*",title:(0,m.__)("Error 404","wp-module-onboarding"),Component:()=>{const e=(0,P.useViewportMatch)("medium"),{setIsDrawerOpened:t,setDrawerActiveView:n,setSidebarActiveView:r,setIsDrawerSuppressed:i}=(0,_.useDispatch)(v.M);(0,u.useEffect)((()=>{e&&t(!0),r(O.Qe),i(!1),n(O.yY)}),[]);const a={heading:(0,m.__)("Error 404","wp-module-onboarding"),subheading:(0,m.__)("Please Check Again!","wp-module-onboarding")};return(0,f.createElement)(I.A,{isVerticallyCentered:!0},(0,f.createElement)(D.A,{title:a.heading,subtitle:a.subheading}))},Icon:A});class $ extends d.p{constructor({path:e,title:t,icon:n,drawerView:r,sidebars:i,data:a}){super({path:e,title:t,Component:null,icon:n,drawerView:r,sidebars:i,data:a})}}var L=n(148);const z=new M({path:"/",title:"",Component:()=>{const e=(0,L.Zp)(),{firstStep:t}=(0,_.useSelect)((e=>({firstStep:e(v.M).getFirstStep()})),[]);return(0,u.useEffect)((()=>{e(t.path,{replace:!0,state:{origin:"index-redirect"}})})),(0,f.createElement)(u.Fragment,null)},Icon:(0,f.createElement)(f.Fragment,null)});var F=n(3175),V=n(9034),H=n(3731);const U=[z,R],W=[a._,o.x,s.G,c.q],B=(e=W)=>{let t=[];return t.push(V.O),t.push(l.H),e.forEach((e=>{t=t.concat([...e.steps])})),t=t.concat([h,C]),t},j=(e=W)=>{let t=[...U];return t.push(V.O),t.push(l.H),t.push(H.O),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t=t.concat([h,C]),t},G=e=>{const t=[...e],n=t.findIndex((e=>e.path.includes("/step/get-started")));-1!==n&&(t[n]=(e=>{const t={...e};return t.title=(0,m.__)("Get Started","wp-module-onboarding"),t.data.tooltipText=(0,m.__)("Get Started","wp-module-onboarding"),t.data.primaryDrawerActiveLinkIncludes="/wp-setup/step/get-started/",new $(t)})(e[n]));const r=t.findIndex((e=>e.path.includes("/step/design")));return-1!==r&&(t[r]=(e=>{const t={...e};return t.title=(0,m.__)("Design","wp-module-onboarding"),t.icon=F.A,t.data.primaryDrawerActiveLinkIncludes="/wp-setup/step/design/",new $(t)})(t[r])),(0,i.filter)(t,(e=>e instanceof $||!e.path.includes("/step/get-started")&&!e.path.includes("/step/design")&&!e.path.includes("/step/complete")&&!e.path.includes("/step/interstitial")))},q=e=>{const t=[...e];return(0,i.filter)(t,(e=>e.path.includes("/step/design/")&&!e.path.includes("/theme-styles/preview")))};var Y=n(19),K=n(8690);const J=[z,R],Q=[a._,Y.E,o.x,s.G,c.q],Z=(e=Q)=>{let t=[];return t.push(V.O),t.push(l.H),e.forEach((e=>{t=t.concat([...e.steps])})),t=t.concat([h,C]),(0,i.filter)(t,(e=>!e.path.includes("/wp-setup/step/top-priority")))},X=(e=Q)=>{let t=[...J];return t.push(V.O),t.push(l.H),t.push(H.O),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t=t.concat([h,C]),(0,i.filter)(t,(e=>!e.path.includes("/wp-setup/step/top-priority")))},ee=e=>{const t=(e=G(e)).findIndex((e=>e.path.includes("/ecommerce/step")));return-1!==t&&(e[t]=(e=>{const t={...e};return t.title=(0,m.__)("Store Info","wp-module-onboarding"),t.icon=K.A,t.data.primaryDrawerActiveLinkIncludes="/ecommerce/step/",new $(t)})(e[t])),(0,i.filter)(e,(e=>e instanceof $||!e.path.includes("/ecommerce/step")&&!e.path.includes("/wp-setup/step/top-priority")))};var te=n(7767),ne=n(4487),re=n(5822);const ie=(0,u.lazy)((()=>n.e(619).then(n.bind(n,619)))),ae=[new d.p({slug:"sitegen-preview",path:"/sitegen/step/preview",title:(0,m.__)("Page Layouts","wp-module-onboarding"),Component:ie,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}}),ne.b],oe=new te.I({id:O.$P,name:(0,m.__)("Sitegen Design","wp-module-onboarding"),steps:ae}),se=(0,u.lazy)((()=>n.e(287).then(n.bind(n,5287)))),ce=[new d.p({slug:"sitegen-experience",path:"/sitegen/step/experience",title:(0,m.__)("Page Layouts","wp-module-onboarding"),Component:se,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}})],le=new te.I({id:O.W6,name:(0,m.__)("Sitegen Features","wp-module-onboarding"),steps:ce}),ue=(0,u.lazy)((()=>n.e(705).then(n.bind(n,8705)))),de=new d.p({slug:"sitegen-site-details",path:"/sitegen/step/site-details",title:(0,m.__)("Site Details","wp-module-onboarding"),Component:ue,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}}),pe=(0,u.lazy)((()=>n.e(996).then(n.bind(n,9996)))),he=[de,new d.p({slug:"sitegen-site-logo",path:"/sitegen/step/site-logo",title:(0,m.__)("Page Layouts","wp-module-onboarding"),Component:pe,icon:re.A,sidebars:{LearnMore:{SidebarComponents:[]}}})],me=new te.I({id:O.qy,name:(0,m.__)("Sitegen Core","wp-module-onboarding"),steps:he}),ge=[z,R],fe=[me,le,oe],_e=(e=fe)=>{let t=[];return t.push(V.O),e.forEach((e=>{t=t.concat([...e.steps])})),t},ve=(e=fe)=>{let t=[...ge];return t.push(V.O,H.O),e.forEach((e=>{t=t.concat([...e.steps,...e.conditionalSteps])})),t},be=()=>{var e;return null!==(e=window.nfdOnboarding.currentFlow)&&void 0!==e?e:r.rA},we={[r.rA]:{getRoutes:j,getSteps:B,getTopSteps:G,chapters:W,getData:(e=W,t=!1)=>{let n=B(e),r=j(e);return t&&(n=n.filter((e=>!e.path.includes("/interstitial"))),r=r.filter((e=>!e.path.includes("/interstitial")))),{steps:n,routes:r,topSteps:G(n),designRoutes:q(r)}},getDesignRoutes:q},[r.eS]:{getRoutes:X,getSteps:Z,getTopSteps:ee,chapters:Q,getData:(e=Q)=>{const t=Z(e),n=X(e);return{steps:t,routes:n,topSteps:ee(t),designRoutes:q(n)}},getDesignRoutes:q},[r.d0]:{getRoutes:ve,getSteps:_e,chapters:fe,getData:()=>({steps:_e(),routes:ve()}),getTopSteps:()=>[],getDesignRoutes:()=>[]}},ye=we[be()].getRoutes(),Se=we[be()].getSteps(),Ee=we[be()].getTopSteps(Se),ke=we[be()].getDesignRoutes(ye),Te=e=>we[e].chapters,xe=(we[be()].getRoutes,we[be()].getSteps,we[be()].getTopSteps,e=>(e=e||be(),we[e].getData));we[be()].getDesignRoutes},2940:(e,t,n)=>{"use strict";n.d(t,{Jp:()=>p,Ti:()=>l,gK:()=>h,nC:()=>u,p1:()=>d,x9:()=>s,xG:()=>o});var r=n(6087),i=n(1869),a=n(3731);const o=(e,t)=>{const n=s(e,t),r=[...t];return{allSteps:c(n.allSteps,i.S,r)}},s=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{allSteps:(0,r.filter)(e,(e=>!n.has(e.path)))}},c=(e,t,n)=>{const r=e.findIndex((e=>e.path===t.path));return e.splice(r+1,0,...n),e},l=(e,t,n)=>{const r=e.findIndex((e=>e.id===t.id));return e.splice(r+1,0,n),e},u=(e,t)=>{var n;const r=null!==(n=e?.enabled_flows)&&void 0!==n?n:{};return t in r&&!0===r[t]},d=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{topSteps:(0,r.filter)(e,(e=>!n.has(e.path)))}},p=(e,t)=>{const n=new Set(t.map((e=>e.path)));return{routes:(0,r.filter)(e,(e=>!n.has(e.path)))}},h=(e,t)=>({allSteps:c(e,t,[a.O])})},7767:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});class r{constructor({id:e,name:t,steps:n,conditionalSteps:r=[],initialSteps:i=[],topSteps:a=[],interstitialSteps:o=[]}){this.id=e,this.name=t,this.steps=n.map((e=>(e.chapter=this.id,e))),this.conditionalSteps=r.map((e=>(e.chapter=this.id,e))),this.initialSteps=i,this.topSteps=a,this.interstitialSteps=o}}},2502:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});class r{constructor({slug:e,path:t,title:n,Component:r,icon:i,drawerView:a,sidebars:o,header:s,data:c,drawerNavigation:l}){this.slug=e,this.path=t,this.title=n,this.Component=r,this.icon=i,this.drawerView=a,this.sidebars=o,this.data=c,this.header=s,this.drawerNavigation=null==l||l}}},1869:(e,t,n)=>{"use strict";n.d(t,{S:()=>w});var r=n(7589),i=n(8468),a=n(7723),o=n(2502),s=n(1609),c=n(7143),l=n(7675),u=n(3474),d=n(3175);const p=(0,i.lazy)((()=>n.e(206).then(n.bind(n,3206)))),h=(0,i.lazy)((()=>n.e(672).then(n.bind(n,6672)))),m=(0,i.lazy)((()=>n.e(993).then(n.bind(n,1993)))),g=(0,i.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),f=(0,i.lazy)((()=>n.e(97).then(n.bind(n,9097)))),_=(0,i.lazy)((()=>n.e(508).then(n.bind(n,6508))));var v=n(8969);const b=(0,i.lazy)((()=>n.e(367).then(n.bind(n,367)))),w=new o.p({slug:"design-theme-styles-preview",path:"/wp-setup/step/design/theme-styles/preview",title:(0,a.__)("Theme Styles","wp-module-onboarding"),Component:b,icon:r.A,drawerView:v.PE,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,techSupportLink:t,fullServiceCreativeTeamLink:n,brandConfig:r}=(0,c.useSelect)((e=>({brandName:e(l.M).getNewfoldBrandName(),techSupportLink:e(l.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(l.M).getfullServiceCreativeTeamUrl(),brandConfig:e(l.M).getNewfoldBrandConfig()}))),i=((e,t,n)=>({introduction:{heading:(0,a.__)("Theme Styles","wp-module-onboarding"),subheading:(0,a.__)("Professionally-designed website templates ready for their public debut featuring your great ideas.","wp-module-onboarding"),icon:d.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-design-theme-styles-illustration"},information:{headingWithDescriptions:[{heading:(0,a.__)("Show the web you have style with modern colors and elevated fonts","wp-module-onboarding"),description:(0,a.sprintf)(/* translators: 1: Brand 2: site or store */ /* translators: 1: Brand 2: site or store */ +(0,a.__)("Pick one of these professionally-designed website styles to start your %1$s %2$s.","wp-module-onboarding"),e,(0,u.P)("site"))},{description:(0,a.sprintf)(/* translators: %s: site or store */ /* translators: %s: site or store */ +(0,a.__)("In the next steps and in the future, you can change the specific colors and fonts to fit your aesthetic vision for your %s.","wp-module-onboarding"),(0,u.P)("site"))}]},help:{fullService:{text:(0,a.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:n},support:{text:(0,a.__)("Technical Support","wp-module-onboarding"),link:t}}}))(e,t,n);return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-theme-styles-preview"},(0,s.createElement)(_,{heading:i.introduction.heading,subheading:i.introduction.subheading,icon:i.introduction.icon}),!1!==r?.views?.sidebar?.illustration?.shown&&(0,s.createElement)(p,{cssIcon:i.illustration.icon}),(0,s.createElement)(h,{headingWithDescriptions:i.information.headingWithDescriptions}),(0,s.createElement)(m,null,!1!==r?.views?.sidebar?.fullService?.shown&&i.help.fullService.link&&(0,s.createElement)(g,{text:i.help.fullService.text,onClick:()=>window.open(i.help.fullService.link,"_blank")}),(0,s.createElement)(f,{text:i.help.support.text,link:i.help.support.link})))}]}},data:{designDrawerActiveLinkIncludes:"/wp-setup/step/design/theme-styles/",patternId:"theme-styles"}})},6436:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5171);async function i(){return await(0,r.JK)().catch((()=>({})))}},67:(e,t,n)=>{"use strict";n.d(t,{H:()=>w});var r=n(9572),i=n(8468),a=n(1609),o=n(7143),s=n(7675),c=n(7723),l=n(3474);const u=(0,i.lazy)((()=>n.e(206).then(n.bind(n,3206)))),d=(0,i.lazy)((()=>n.e(672).then(n.bind(n,6672)))),p=(0,i.lazy)((()=>n.e(993).then(n.bind(n,1993)))),h=(0,i.lazy)((()=>Promise.resolve().then(n.bind(n,6517)))),m=(0,i.lazy)((()=>Promise.resolve().then(n.bind(n,8590)))),g=(0,i.lazy)((()=>n.e(97).then(n.bind(n,9097)))),f=(0,i.lazy)((()=>n.e(508).then(n.bind(n,6508))));var _=n(2502),v=n(8969);const b=(0,i.lazy)((()=>n.e(51).then(n.bind(n,4051)))),w=new _.p({slug:"get-started-welcome",path:"/wp-setup/step/get-started/welcome",title:(0,c.__)("Welcome","wp-module-onboarding"),Component:b,icon:r.A,drawerView:v.lf,sidebars:{LearnMore:{SidebarComponents:[()=>{const{brandName:e,expertsLink:t,techSupportLink:n,fullServiceCreativeTeamLink:i,brandConfig:_}=(0,o.useSelect)((e=>({brandName:e(s.M).getNewfoldBrandName(),expertsLink:e(s.M).getExpertsUrl(),techSupportLink:e(s.M).getTechSupportUrl(),fullServiceCreativeTeamLink:e(s.M).getfullServiceCreativeTeamUrl(),brandConfig:e(s.M).getNewfoldBrandConfig()}))),v=((e,t,n,i)=>({introduction:{heading:(0,c.__)("Start Setup","wp-module-onboarding"),subheading:(0,c.sprintf)(/* translators: 1: Brand 2: website or store */ /* translators: 1: Brand 2: website or store */ +(0,c.__)("Lay the foundation for a successful %1$s %2$s using our WordPress Onboarding. ","wp-module-onboarding"),e,(0,l.P)("website")),icon:r.A},illustration:{icon:"nfd-onboarding-sidebar-learn-more-get-started-welcome-illustration"},information:{headingWithDescriptions:[{heading:(0,c.sprintf)(/* translators: %s: website or store */ /* translators: %s: website or store */ +(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(4097),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}"] > div.block-editor-block-preview__container > div > div > .block-editor-iframe__scale-container > iframe`)||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:[]}}})},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:()=>Q,getHideFooterNav:()=>ne,getHireExpertsUrl:()=>se,getInitialize:()=>Ie,getInteractionDisabled:()=>Ke,getIsFooterNavAllowed:()=>te,getIsFreshInstallation:()=>Je,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:()=>J,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 J(e){return e.header.isEnabled}function Q(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 Je(e){return e.runtime.isFreshInstallation}var Qe=n(7143),Ze=n(8969),Xe=n(6478),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,Qe.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,Qe.createReduxStore)("newfold/onboarding",pt);(0,Qe.register)(ht)},2202:(e,t,n)=>{"use strict";n.d(t,{DN:()=>g,Dl:()=>z,Ep:()=>p,Fi:()=>b,Hf:()=>D,N0:()=>o,Nz:()=>O,Qh:()=>C,Qp:()=>A,TH:()=>P,Vg:()=>i,WN:()=>N,WT:()=>w,Wi:()=>I,XJ:()=>L,Zt:()=>_,aq:()=>l,cB:()=>M,cW:()=>$,ce:()=>h,f2:()=>y,gH:()=>c,hi:()=>d,j7:()=>S,k2:()=>u,nS:()=>x,o3:()=>f,oA:()=>a,o_:()=>T,p$:()=>r,r2:()=>m,rf:()=>v,uv:()=>R,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="mfe_migration_initiated",C="fork_option_selected",N="site_details_prompt_set",A="logo_skipped",I="homepage_selected",D="homepage_regenerated",O="homepage_favorited",P="homepage_renamed",M="sidebar_opened",R="site_generation_time",$="error_state_triggered",L="wonder_start",z={[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",[C]:"flow",[N]:"prompt",social_connected:"platform",[I]:"version",[D]:"version",[O]:"version",[M]:"type",[P]:"version",[R]:"time",[T]:"path",[x]:"path",[$]:"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:()=>Q,fS:()=>ce,g5:()=>p,gR:()=>ee,gb:()=>H,h0:()=>u,iQ:()=>S,jK:()=>O,lf:()=>x,lp:()=>B,me:()=>z,mp:()=>J,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",J="inactive",Q="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.9"}}},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__,J=[];function Q(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 Je="sentry.source",Qe="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[Qe];null!=s&&(n.sample_rate=`${s}`);const c=o[Je];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",Jt=globalThis;function Qt(e,t,n){const r=n||Jt,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 Jt))return e();const t=Jt.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]}))}}((()=>{Jt.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=Jt,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=Jt;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 Jn(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=Qn(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=Qn(e,t,n,r),j(a,`${t}`,void 0),G(a,{synthetic:!0}),a)}function Qn(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=Jn(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=Qn(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=Jt,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}=Jt;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}=Jt;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}(Jn(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)}`}]}}:Jn(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=Jr(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 Jr(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(k(r[i],Error)){Qr(o,s);const a=e(t,r[i]),l=c.length;Zr(a,i,l,s),c=Jr(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,a)=>{if(k(r,Error)){Qr(o,s);const l=e(t,r),u=c.length;Zr(l,`errors[${a}]`,u,s),c=Jr(e,t,n,r,i,[l,...c],l,u)}})),c}function Qr(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:Q(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(Jt),Jt}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(Qt("defaultCurrentScope",(()=>new Ti)),Qt("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:Qi(c),op:r[zi],origin:r[Fi],_metrics_summary:Ri(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Ji(e){const{traceFlags:t}=e.spanContext();return t===ji}function Qi(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(Ji(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:Qi(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)&&Ji(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]&&Ji(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=Ji(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=Ji(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}))},Ja=[200,500],Qa=()=>(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(Qa()/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,Ja,t.reportAllChanges),a&&("PerformanceEventTiming"in bn&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),Pa((()=>{i(a.takeRecords()),n.value<0&&Qa()>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[Je],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 Jo="__SENTRY_SUPPRESS_TRACING__";function Qo(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[Jo]&&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[Jo]?[!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?Qo({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?Qo({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[Je]="custom",r.attributes=c),_.name=r.name,_.source=c[Je];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:{[Je]:"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:{[Je]:"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:{[Je]: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(6478),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 Js=`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:Js,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.8/sitegen-theme-marker.asset.php b/build/2.3.9/sitegen-theme-marker.asset.php similarity index 100% rename from build/2.3.8/sitegen-theme-marker.asset.php rename to build/2.3.9/sitegen-theme-marker.asset.php diff --git a/build/2.3.8/sitegen-theme-marker.css.asset.php b/build/2.3.9/sitegen-theme-marker.css.asset.php similarity index 100% rename from build/2.3.8/sitegen-theme-marker.css.asset.php rename to build/2.3.9/sitegen-theme-marker.css.asset.php diff --git a/build/2.3.8/sitegen-theme-marker.css.css b/build/2.3.9/sitegen-theme-marker.css.css similarity index 100% rename from build/2.3.8/sitegen-theme-marker.css.css rename to build/2.3.9/sitegen-theme-marker.css.css diff --git a/build/2.3.8/sitegen-theme-marker.css.js b/build/2.3.9/sitegen-theme-marker.css.js similarity index 100% rename from build/2.3.8/sitegen-theme-marker.css.js rename to build/2.3.9/sitegen-theme-marker.css.js diff --git a/build/2.3.8/sitegen-theme-marker.js b/build/2.3.9/sitegen-theme-marker.js similarity index 100% rename from build/2.3.8/sitegen-theme-marker.js rename to build/2.3.9/sitegen-theme-marker.js diff --git a/composer.lock b/composer.lock index 254063a3a..4e4cf9e81 100644 --- a/composer.lock +++ b/composer.lock @@ -393,16 +393,16 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.6.0", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "6af57da8765a4db2d89e7ee737726f797945de0b" + "reference": "49dc91eec8053872354db9cddd355e45f2de49e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/6af57da8765a4db2d89e7ee737726f797945de0b", - "reference": "6af57da8765a4db2d89e7ee737726f797945de0b", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/49dc91eec8053872354db9cddd355e45f2de49e4", + "reference": "49dc91eec8053872354db9cddd355e45f2de49e4", "shasum": "" }, "require": { @@ -484,10 +484,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.0", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.1", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-07-16T23:30:45+00:00" + "time": "2024-07-25T16:37:25+00:00" }, { "name": "newfold-labs/wp-module-facebook", @@ -771,16 +771,16 @@ }, { "name": "newfold-labs/wp-module-onboarding-data", - "version": "1.1.14", + "version": "1.1.16", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding-data.git", - "reference": "0b57747f6a67d8a9308b26c0434d196d023925d0" + "reference": "fe195d1bddc75b812e32d20e758544e5358e59de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/0b57747f6a67d8a9308b26c0434d196d023925d0", - "reference": "0b57747f6a67d8a9308b26c0434d196d023925d0", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/fe195d1bddc75b812e32d20e758544e5358e59de", + "reference": "fe195d1bddc75b812e32d20e758544e5358e59de", "shasum": "" }, "require": { @@ -816,23 +816,23 @@ ], "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.14", + "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.16", "issues": "https://github.com/newfold-labs/wp-module-onboarding-data/issues" }, - "time": "2024-07-16T04:54:52+00:00" + "time": "2024-07-31T11:51:46+00:00" }, { "name": "newfold-labs/wp-module-patterns", - "version": "2.2.0", + "version": "2.2.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c" + "reference": "1b19a0268fdc8d6ef49cc44f963efd77333f1e0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c", - "reference": "dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/1b19a0268fdc8d6ef49cc44f963efd77333f1e0a", + "reference": "1b19a0268fdc8d6ef49cc44f963efd77333f1e0a", "shasum": "" }, "require": { @@ -870,10 +870,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.2.0", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.2.1", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-07-24T11:13:40+00:00" + "time": "2024-07-31T10:23:49+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -3912,16 +3912,16 @@ }, { "name": "symfony/finder", - "version": "v5.4.40", + "version": "v5.4.42", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "f51cff4687547641c7d8180d74932ab40b2205ce" + "reference": "0724c51fa067b198e36506d2864e09a52180998a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/f51cff4687547641c7d8180d74932ab40b2205ce", - "reference": "f51cff4687547641c7d8180d74932ab40b2205ce", + "url": "https://api.github.com/repos/symfony/finder/zipball/0724c51fa067b198e36506d2864e09a52180998a", + "reference": "0724c51fa067b198e36506d2864e09a52180998a", "shasum": "" }, "require": { @@ -3955,7 +3955,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.40" + "source": "https://github.com/symfony/finder/tree/v5.4.42" }, "funding": [ { @@ -3971,7 +3971,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:33:22+00:00" + "time": "2024-07-22T08:53:29+00:00" }, { "name": "symfony/polyfill-php80", @@ -4105,16 +4105,16 @@ }, { "name": "wp-cli/i18n-command", - "version": "2.6.1", + "version": "v2.6.2", "source": { "type": "git", "url": "https://github.com/wp-cli/i18n-command.git", - "reference": "7538d684d4f06b0e10c8a0166ce4e6d9e1687aa1" + "reference": "53518a11f314119e320597c7a8274f11b1295bdc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/7538d684d4f06b0e10c8a0166ce4e6d9e1687aa1", - "reference": "7538d684d4f06b0e10c8a0166ce4e6d9e1687aa1", + "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/53518a11f314119e320597c7a8274f11b1295bdc", + "reference": "53518a11f314119e320597c7a8274f11b1295bdc", "shasum": "" }, "require": { @@ -4168,9 +4168,9 @@ "homepage": "https://github.com/wp-cli/i18n-command", "support": { "issues": "https://github.com/wp-cli/i18n-command/issues", - "source": "https://github.com/wp-cli/i18n-command/tree/2.6.1" + "source": "https://github.com/wp-cli/i18n-command/tree/v2.6.2" }, - "time": "2024-02-28T11:27:34+00:00" + "time": "2024-07-03T12:50:00+00:00" }, { "name": "wp-cli/mustangostang-spyc", diff --git a/package-lock.json b/package-lock.json index fe50a17bb..2f9ee623c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.8", + "version": "2.3.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.8", + "version": "2.3.9", "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 d16f79e0f..de808310d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.8", + "version": "2.3.9", "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "license": "GPL-2.0-or-later", "private": true,