{"version":3,"file":"PolymathForm.BGTrHybw.mjs","names":["useRef","useState","useCallback","_Fragment","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","l","_e","p","init_jsx_runtime","de","init_framer_B6PCHH0A","ControlType","addPropertyControls","readHutk","match","PolymathForm","props","chipList","showChips","chips","hasChips","projectProps","propChanging","propSize","propLaunch","propLaunched","optionalSuffix","websiteRequired","websiteOptionalSuffix","formRef","loadedAtRef","chosenChip","setChosenChip","chipDefault","invalid","setInvalid","status","setStatus","errorText","setErrorText","handleSubmit","event","form","read","el","name","MIN_FILL_MS","consentEl","required","EMAIL_RE","showProjectFields","PROJECT_FIELDS","field","messageRequired","nextInvalid","firstBad","mappedFields","projectLines","value","property","parts","freeText","message","values","fields","FIELD_MAP","key","hutk","response","formId","detail","body","error","ariaInvalid","style","CSS","successTitle","successNote","showTitle","title","sub","websiteHint","option","label","messageLabel","messagePlaceholder","submitLabel","note","init_PolymathForm"],"sources":["https:/framerusercontent.com/modules/F0QqaiLdlppFZvAtX1YP/2bEaybc52GW68cdmwang/PolymathForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback,useRef,useState}from\"react\";/*\n * POLYMATH — form. Built from polymath-form-embed.html FINAL (v3, 10 Oct 2026).\n * Markup, CSS, field names, validation rules and copy match that file.\n *\n * Posts to the existing HubSpot forms, portal 247578346, with hubspotutk\n * attribution and page context. No HubSpot-side changes required.\n *\n * Shared by the contact, snapshot and migration pages. Anything added here is\n * opt-in per instance and defaults off, so one page's field set cannot change\n * another's: `showProjectFields` (30 Oct 2026) is on for the migration page\n * only, and `showTitle` is on everywhere except that page.\n */const PORTAL_ID=\"247578346\";/*\n * HubSpot property INTERNAL names. Verified in HubSpot 10 Oct 2026 and\n * identical on all three forms. `what_can_we_help_with_` carries a trailing\n * underscore and is NOT `message` — a wrong name here returns 400 and the\n * entire submission is lost.\n */const FIELD_MAP={firstname:\"firstname\",email:\"email\",website:\"website\",message:\"what_can_we_help_with_\"};const EMAIL_RE=/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/;const MIN_FILL_MS=2500;const PROJECT_FIELDS=[{name:\"pm_changing\",label:\"What’s changing?\",options:[\"Domain move\",\"Platform or CMS change\",\"Redesign\",\"Several of these\",\"Not decided yet\"]},{name:\"pm_size\",label:\"Roughly how big?\",options:[\"Under 1,000 URLs\",\"1,000–10,000\",\"10,000+\",\"Not sure\"]},{name:\"pm_launch\",label:\"Target launch\",placeholder:\"Q1, or not set\"},{name:\"pm_launched\",label:\"Already launched?\",options:[\"Not yet\",\"Launched, all fine\",\"Launched, traffic dropped\"]}];const CSS=`\n  .pm-form-wrap{\n    --pm-ink:#101012; --pm-ink-soft:#545454; --pm-line:#CFCFCF;\n    --pm-stone:#F4F1E9; --pm-paper:#FFFFFF; --pm-lime:#C7FF3C; --pm-err:#B3261E;\n    font-family:\"Geist\",\"Geist Placeholder\",ui-sans-serif,system-ui,sans-serif;\n    -webkit-font-smoothing:antialiased; box-sizing:border-box;\n  }\n  .pm-form-wrap *,.pm-form-wrap *::before,.pm-form-wrap *::after{box-sizing:inherit;}\n\n  .pm-form-card{background:var(--pm-stone);border:1px solid var(--pm-line);border-radius:16px;padding:36px 32px;}\n  @media (min-width:1200px){ .pm-form-card{max-width:620px;margin-inline:auto;} }\n  @media (max-width:600px){ .pm-form-card{padding:24px 20px;border-radius:12px;} }\n\n  .pm-form-title{font-weight:500;font-size:26px;letter-spacing:-0.65px;line-height:1.16;color:var(--pm-ink);margin:0 0 6px;}\n  .pm-form-sub{font-size:14px;line-height:1.5;color:var(--pm-ink-soft);margin:0 0 24px;}\n\n  .pm-field{display:block;margin-bottom:16px;}\n  .pm-label{display:block;font-size:13px;font-weight:500;letter-spacing:-0.1px;color:var(--pm-ink);margin-bottom:7px;}\n  .pm-opt{font-style:normal;font-weight:400;color:var(--pm-ink-soft);}\n  .pm-hint{display:block;font-size:12px;color:var(--pm-ink-soft);margin-top:6px;line-height:1.45;}\n\n  .pm-field input,.pm-field textarea{\n    width:100%;font:inherit;font-size:15px;color:var(--pm-ink);background:var(--pm-paper);\n    border:1px solid var(--pm-line);border-radius:10px;padding:12px 14px;outline:none;\n    transition:border-color .15s ease, box-shadow .15s ease;-webkit-appearance:none;appearance:none;\n  }\n  .pm-field textarea{resize:vertical;min-height:104px;line-height:1.5;}\n  .pm-field input::placeholder,.pm-field textarea::placeholder{color:#A09C94;}\n  .pm-field input:focus,.pm-field textarea:focus{border-color:var(--pm-ink);box-shadow:0 0 0 3px rgba(199,255,60,.6);}\n  .pm-field input[aria-invalid=\"true\"],.pm-field textarea[aria-invalid=\"true\"]{border-color:var(--pm-err);}\n\n  .pm-field select{\n    width:100%;font:inherit;font-size:15px;color:var(--pm-ink);background-color:var(--pm-paper);\n    border:1px solid var(--pm-line);border-radius:10px;padding:12px 40px 12px 14px;outline:none;\n    transition:border-color .15s ease, box-shadow .15s ease;-webkit-appearance:none;appearance:none;\n    cursor:pointer;line-height:1.3;\n    background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23545454' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n    background-repeat:no-repeat;background-position:right 14px center;\n  }\n  .pm-field select[data-empty=\"true\"]{color:#A09C94;}\n  .pm-field select:focus{border-color:var(--pm-ink);box-shadow:0 0 0 3px rgba(199,255,60,.6);}\n  .pm-field select[aria-invalid=\"true\"]{border-color:var(--pm-err);}\n  .pm-field select option{color:var(--pm-ink);}\n\n  .pm-chips-block{margin-bottom:18px;}\n  .pm-chips{display:flex;flex-wrap:wrap;gap:8px;}\n  .pm-chip{\n    font:inherit;font-size:13px;line-height:1;color:var(--pm-ink);background:var(--pm-paper);\n    border:1px solid var(--pm-line);border-radius:999px;padding:9px 14px;cursor:pointer;\n    transition:background .14s ease,border-color .14s ease;\n  }\n  .pm-chip:hover{border-color:var(--pm-ink);}\n  .pm-chip[aria-checked=\"true\"]{background:var(--pm-lime);border-color:var(--pm-ink);font-weight:500;}\n\n  .pm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;}\n\n  .pm-consent{display:flex;gap:10px;align-items:flex-start;margin:4px 0 22px;font-size:12.5px;line-height:1.5;color:var(--pm-ink-soft);cursor:pointer;}\n  .pm-consent input{flex:0 0 auto;margin-top:2px;width:15px;height:15px;accent-color:var(--pm-ink);}\n  .pm-consent a{color:var(--pm-ink);text-decoration:underline;text-underline-offset:2px;}\n\n  .pm-submit{\n    font:inherit;font-size:15px;font-weight:500;letter-spacing:-0.2px;color:var(--pm-ink);\n    background:var(--pm-lime);border:1px solid var(--pm-ink);border-radius:999px;padding:12px 28px;cursor:pointer;\n    transition:transform .12s ease,background .15s ease,opacity .15s ease;\n  }\n  .pm-submit:hover{background:#D4FF63;}\n  .pm-submit:active{transform:translateY(1px);}\n  .pm-submit[disabled]{opacity:.55;cursor:default;}\n\n  .pm-note{font-size:12px;line-height:1.5;color:var(--pm-ink-soft);margin:16px 0 0;}\n  .pm-error{font-size:13px;color:var(--pm-err);margin:12px 0 0;}\n\n  @media (prefers-reduced-motion:reduce){ .pm-form-wrap *{transition:none!important;} }\n`;function readHutk(){if(typeof document===\"undefined\")return\"\";const match=document.cookie.match(/(^|;)\\s*hubspotutk=([^;]+)/);return match?match[2]:\"\";}/**\n * Polymath Form\n *\n * @framerIntrinsicWidth 560\n * @framerIntrinsicHeight 720\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function PolymathForm(props){const{formId,websiteRequired,showChips,chips,chipDefault,showTitle,showProjectFields,propChanging,propSize,propLaunch,propLaunched,title,sub,messageLabel,messagePlaceholder,messageRequired,submitLabel,websiteOptionalSuffix,websiteHint,note,successTitle,successNote,style}=props;const chipList=showChips?(chips??[]).filter(Boolean):[];const hasChips=chipList.length>0;const projectProps={pm_changing:(propChanging??\"\").trim(),pm_size:(propSize??\"\").trim(),pm_launch:(propLaunch??\"\").trim(),pm_launched:(propLaunched??\"\").trim()};// A required Website is never labelled \"(optional)\". Framer falls back to a\n// control's defaultValue when an instance sets it to \"\", so the suffix is\n// derived here rather than cleared per page.\nconst optionalSuffix=websiteRequired?\"\":websiteOptionalSuffix;const formRef=useRef(null);const loadedAtRef=useRef(Date.now());const[chosenChip,setChosenChip]=useState(hasChips?chipDefault:\"\");const[invalid,setInvalid]=useState({});const[status,setStatus]=useState(\"idle\");const[errorText,setErrorText]=useState(\"\");const handleSubmit=useCallback(async event=>{event.preventDefault();setErrorText(\"\");const form=formRef.current;if(!form)return;const read=name=>{const el=form.elements.namedItem(name);return el?el.value:\"\";};// Honeypot: a filled hidden field means a bot. Fail silently.\nif(read(\"pm_org_hp\")!==\"\")return;// Submitted faster than a human can type. Fail silently.\nif(Date.now()-loadedAtRef.current<MIN_FILL_MS)return;const consentEl=form.elements.namedItem(\"pm_consent\");const required=[{name:\"firstname\",bad:!read(\"firstname\").trim()},{name:\"email\",bad:!read(\"email\").trim()||!EMAIL_RE.test(read(\"email\").trim())},{name:\"website\",bad:websiteRequired&&!read(\"website\").trim()},// Project-shape fields sit between Website and the free text,\n// so validation order matches DOM order and focus lands on the\n// first empty field a visitor can actually see.\n...showProjectFields?PROJECT_FIELDS.map(field=>({name:field.name,bad:!read(field.name).trim()})):[],{name:\"message\",bad:messageRequired&&!read(\"message\").trim()},{name:\"pm_consent\",bad:!(consentEl&&consentEl.checked)}];const nextInvalid={};for(const field of required)nextInvalid[field.name]=field.bad;setInvalid(nextInvalid);const firstBad=required.find(field=>field.bad);if(firstBad){setErrorText(\"Please complete the highlighted fields.\");const el=form.elements.namedItem(firstBad.name);if(el&&typeof el.focus===\"function\")el.focus();return;}setStatus(\"sending\");// A project answer goes to its own HubSpot property when this\n// instance names one, and into the enquiry body when it does not,\n// so an unmapped field is never silently dropped.\nconst mappedFields=[];const projectLines=[];if(showProjectFields){for(const field of PROJECT_FIELDS){const value=read(field.name).trim();if(!value)continue;const property=projectProps[field.name];if(property)mappedFields.push({name:property,value});else projectLines.push(field.label+\" \"+value);}}const parts=[];if(chosenChip)parts.push(\"[\"+chosenChip+\"]\");if(projectLines.length)parts.push(projectLines.join(\"\\n\"));const freeText=read(\"message\").trim();if(freeText)parts.push(freeText);const message=parts.join(\"\\n\\n\");const values={firstname:read(\"firstname\").trim(),email:read(\"email\").trim(),website:read(\"website\").trim(),message};const fields=Object.keys(FIELD_MAP).filter(key=>values[key]!==\"\").map(key=>({objectTypeId:\"0-1\",name:FIELD_MAP[key],value:values[key]})).concat(mappedFields.map(field=>({objectTypeId:\"0-1\",name:field.name,value:field.value})));const hutk=readHutk();try{const response=await fetch(\"https://api.hsforms.com/submissions/v3/integration/submit/\"+PORTAL_ID+\"/\"+formId,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({fields,context:{hutk:hutk||undefined,pageUri:typeof window!==\"undefined\"?window.location.href:undefined,pageName:typeof document!==\"undefined\"?document.title:undefined},legalConsentOptions:{consent:{consentToProcess:true,text:\"I agree to Polymath Digital storing this information to reply to me.\"}}})});if(!response.ok){let detail=\"HTTP \"+response.status;try{const body=await response.json();if(body&&body.message)detail=body.message;}catch{/* keep the status-code detail */}throw new Error(detail);}setStatus(\"done\");if(typeof window!==\"undefined\"&&window.dataLayer){window.dataLayer.push({event:\"form_submit\",form_id:formId});}}catch(error){const detail=error instanceof Error?error.message:String(error);console.error(\"[PolymathForm] HubSpot submission failed:\",detail);setStatus(\"idle\");setErrorText(\"That didn't send. Email hello@polymathdigital.co and we'll pick it up.\");}},[chosenChip,formId,websiteRequired,messageRequired,showProjectFields,propChanging,propSize,propLaunch,propLaunched]);const ariaInvalid=name=>invalid[name]?\"true\":\"false\";return /*#__PURE__*/_jsxs(\"div\",{className:\"pm-form-wrap\",style:{...style,position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"pm-form-card\",children:status===\"done\"?/*#__PURE__*/_jsxs(\"div\",{className:\"pm-success\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"pm-form-title\",children:successTitle}),successNote?/*#__PURE__*/_jsx(\"p\",{className:\"pm-form-sub\",children:successNote}):null]}):/*#__PURE__*/_jsxs(_Fragment,{children:[showTitle?/*#__PURE__*/_jsx(\"h2\",{className:\"pm-form-title\",children:title}):null,sub?/*#__PURE__*/_jsx(\"p\",{className:\"pm-form-sub\",children:sub}):null,/*#__PURE__*/_jsxs(\"form\",{className:\"pm-form\",noValidate:true,ref:formRef,onSubmit:handleSubmit,children:[/*#__PURE__*/_jsxs(\"label\",{className:\"pm-field\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"pm-label\",children:\"Name\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:\"firstname\",autoComplete:\"name\",required:true,\"aria-invalid\":ariaInvalid(\"firstname\")})]}),/*#__PURE__*/_jsxs(\"label\",{className:\"pm-field\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"pm-label\",children:\"Work email\"}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",name:\"email\",autoComplete:\"email\",required:true,\"aria-invalid\":ariaInvalid(\"email\")})]}),/*#__PURE__*/_jsxs(\"label\",{className:\"pm-field\",children:[/*#__PURE__*/_jsxs(\"span\",{className:\"pm-label\",children:[\"Website\",optionalSuffix?/*#__PURE__*/_jsxs(_Fragment,{children:[\" \",/*#__PURE__*/_jsx(\"em\",{className:\"pm-opt\",children:optionalSuffix})]}):null]}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:\"website\",inputMode:\"url\",placeholder:\"yourdomain.com\",required:websiteRequired,\"aria-invalid\":ariaInvalid(\"website\")}),websiteHint?/*#__PURE__*/_jsx(\"span\",{className:\"pm-hint\",children:websiteHint}):null]}),showProjectFields?PROJECT_FIELDS.map(field=>/*#__PURE__*/_jsxs(\"label\",{className:\"pm-field\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"pm-label\",children:field.label}),field.options?/*#__PURE__*/_jsxs(\"select\",{name:field.name,defaultValue:\"\",\"data-empty\":\"true\",required:true,\"aria-invalid\":ariaInvalid(field.name),onChange:event=>{event.currentTarget.dataset.empty=event.currentTarget.value===\"\"?\"true\":\"false\";},children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:\"Select one\"}),field.options.map(option=>/*#__PURE__*/_jsx(\"option\",{value:option,children:option},option))]}):/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:field.name,placeholder:field.placeholder,required:true,\"aria-invalid\":ariaInvalid(field.name)})]},field.name)):null,hasChips?/*#__PURE__*/_jsxs(\"div\",{className:\"pm-chips-block\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"pm-label\",children:\"What's the situation?\"}),/*#__PURE__*/_jsx(\"div\",{className:\"pm-chips\",role:\"radiogroup\",\"aria-label\":\"What's the situation?\",children:chipList.map(label=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"pm-chip\",role:\"radio\",\"aria-checked\":label===chosenChip?\"true\":\"false\",onClick:()=>setChosenChip(label),children:label},label))})]}):null,/*#__PURE__*/_jsxs(\"label\",{className:\"pm-field\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"pm-label\",children:messageLabel}),/*#__PURE__*/_jsx(\"textarea\",{name:\"message\",rows:4,placeholder:messagePlaceholder,required:messageRequired,\"aria-invalid\":ariaInvalid(\"message\")})]}),/*#__PURE__*/_jsx(\"div\",{className:\"pm-hp\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"label\",{children:[\"Organisation\",/*#__PURE__*/_jsx(\"input\",{type:\"text\",name:\"pm_org_hp\",tabIndex:-1,autoComplete:\"off\"})]})}),/*#__PURE__*/_jsxs(\"label\",{className:\"pm-consent\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",name:\"pm_consent\",required:true,\"aria-invalid\":ariaInvalid(\"pm_consent\")}),/*#__PURE__*/_jsxs(\"span\",{children:[\"I agree to Polymath Digital storing this information to reply to me. See the\",\" \",/*#__PURE__*/_jsx(\"a\",{href:\"/privacy\",children:\"privacy notice\"}),\".\"]})]}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",className:\"pm-submit\",disabled:status===\"sending\",children:/*#__PURE__*/_jsx(\"span\",{className:\"pm-submit-label\",children:status===\"sending\"?\"Sending…\":submitLabel})}),note?/*#__PURE__*/_jsx(\"p\",{className:\"pm-note\",children:note}):null,errorText?/*#__PURE__*/_jsx(\"p\",{className:\"pm-error\",role:\"alert\",children:errorText}):null]})]})})]});}addPropertyControls(PolymathForm,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"d24efa82-51a0-4f82-875e-cc8bf659027d\",description:\"HubSpot form GUID for this page.\"},websiteRequired:{type:ControlType.Boolean,title:\"Website req.\",defaultValue:false},// Off on the migration page, where the heading sits in the band above the\n// card so the section keeps its own voice. Default true: a control set to\n// \"\" falls back to the defaultValue, so the heading has to be switched off\n// rather than blanked.\nshowTitle:{type:ControlType.Boolean,title:\"Card title\",defaultValue:true},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Tell us what's happening.\",hidden:props=>!props.showTitle},showProjectFields:{type:ControlType.Boolean,title:\"Project fields\",defaultValue:false,description:\"What's changing / how big / target launch / already launched.\"},propChanging:{type:ControlType.String,title:\"Changing prop\",defaultValue:\"\",placeholder:\"HubSpot internal name\",hidden:props=>!props.showProjectFields},propSize:{type:ControlType.String,title:\"Size prop\",defaultValue:\"\",placeholder:\"HubSpot internal name\",hidden:props=>!props.showProjectFields},propLaunch:{type:ControlType.String,title:\"Launch prop\",defaultValue:\"\",placeholder:\"HubSpot internal name\",hidden:props=>!props.showProjectFields},propLaunched:{type:ControlType.String,title:\"Launched prop\",defaultValue:\"\",placeholder:\"HubSpot internal name\",hidden:props=>!props.showProjectFields},messageLabel:{type:ControlType.String,title:\"Message label\",defaultValue:\"What's happening?\"},messagePlaceholder:{type:ControlType.String,title:\"Message hint\",defaultValue:\"What you're seeing, and where.\"},// The message is the enquiry on the contact and migration forms, so it\n// stays required there. On the Snapshot form, name, email and website are\n// enough to run it. Default true so existing instances are unaffected.\nmessageRequired:{type:ControlType.Boolean,title:\"Message req.\",defaultValue:true},submitLabel:{type:ControlType.String,title:\"Submit label\",defaultValue:\"Send\"},websiteOptionalSuffix:{type:ControlType.String,title:\"Website suffix\",defaultValue:\"(optional)\"},websiteHint:{type:ControlType.String,title:\"Website hint\",defaultValue:\"\"},note:{type:ControlType.String,title:\"Note\",displayTextArea:true,defaultValue:\"We'll reply within one business day and suggest a time to talk.\"},successTitle:{type:ControlType.String,title:\"Success title\",defaultValue:\"Got it.\"},successNote:{type:ControlType.String,title:\"Success note\",displayTextArea:true,defaultValue:\"We'll read it properly and come back within one business day.\"},showChips:{type:ControlType.Boolean,title:\"Chip row\",defaultValue:true},chips:{type:ControlType.Array,title:\"Chips\",control:{type:ControlType.String,defaultValue:\"Not sure yet\"},defaultValue:[\"Not sure yet\",\"Traffic dropped\",\"Migration coming up\",\"Not cited in AI answers\",\"Pages not indexed\",\"Numbers don't match\"],hidden:props=>!props.showChips},chipDefault:{type:ControlType.String,title:\"Chip default\",defaultValue:\"Not sure yet\",hidden:props=>!props.showChips}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PolymathForm\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"720\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"560\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PolymathForm.map"],"mappings":"A,oNAyFE,SAASiB,GAAU,CAAC,GAAG,OAAO,SAAW,IAAY,MAAM,GAAG,IAAMC,EAAM,SAAS,OAAO,MAAM,4BAA4B,EAAE,OAAOA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