{"version":3,"file":"MemberstackAccess.D4lId63j.mjs","names":["useState","useCallback","startTransition","useRef"],"sources":["https:/framerusercontent.com/modules/4tdoKjvhwjqEKoeeXyIU/bi1Nc9hUUbEG7aLkRBMS/MemberstackAccess.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{forwardRef,startTransition,useCallback,useEffect,useRef,useState}from\"react\";// User request: Create MemberstackAccess.tsx with MemberAuthForm, withMemberGate, and MemberLogout using Memberstack v2 script loading without site-wide custom code, French UX/messages, Framer-safe static renderer behavior, and redirect handling.\nconst MEMBERSTACK_APP_ID=\"app_cmuwqyrb400se0sugbtk4a77t\";const MEMBERSTACK_SCRIPT_SRC=\"https://static.memberstack.com/scripts/v2/memberstack.js\";let memberstackLoadPromise=null;function getExistingMemberstackScript(){if(typeof document===\"undefined\")return null;return document.querySelector(`script[src=\"${MEMBERSTACK_SCRIPT_SRC}\"]`);}function loadMemberstackDomSdk(){if(typeof window===\"undefined\"||typeof document===\"undefined\"){return Promise.reject(new Error(\"Memberstack indisponible c\\xf4t\\xe9 serveur.\"));}const existingGlobal=window.$memberstackDom;if(existingGlobal)return Promise.resolve(existingGlobal);if(memberstackLoadPromise)return memberstackLoadPromise;memberstackLoadPromise=new Promise((resolve,reject)=>{const resolveWhenReady=()=>{const ms=window.$memberstackDom;if(ms){resolve(ms);}else{reject(new Error(\"Le script Memberstack est charg\\xe9, mais le SDK est introuvable.\"));}};const existingScript=getExistingMemberstackScript();if(existingScript){if(!existingScript.getAttribute(\"data-memberstack-app\")){existingScript.setAttribute(\"data-memberstack-app\",MEMBERSTACK_APP_ID);}if(existingScript.getAttribute(\"data-ms-loaded\")===\"true\"){resolveWhenReady();return;}existingScript.addEventListener(\"load\",resolveWhenReady,{once:true});existingScript.addEventListener(\"error\",()=>reject(new Error(\"Impossible de charger Memberstack.\")),{once:true});return;}const script=document.createElement(\"script\");script.src=MEMBERSTACK_SCRIPT_SRC;script.async=true;script.defer=true;script.setAttribute(\"data-memberstack-app\",MEMBERSTACK_APP_ID);script.addEventListener(\"load\",()=>{script.setAttribute(\"data-ms-loaded\",\"true\");resolveWhenReady();},{once:true});script.addEventListener(\"error\",()=>reject(new Error(\"Impossible de charger Memberstack.\")),{once:true});document.head.appendChild(script);}).catch(error=>{memberstackLoadPromise=null;throw error;});return memberstackLoadPromise;}function getMemberstackErrorMessage(error){const raw=error?.message||error?.error||error?.data?.message||error?.response?.data?.message||\"Une erreur est survenue.\";const normalized=String(raw).toLowerCase();if(normalized.includes(\"password\"))return\"Mot de passe invalide.\";if(normalized.includes(\"email\"))return\"Adresse e-mail invalide.\";if(normalized.includes(\"exist\"))return\"Un compte existe d\\xe9j\\xe0 avec cette adresse e-mail.\";if(normalized.includes(\"not found\")||normalized.includes(\"no member\"))return\"Compte introuvable.\";if(normalized.includes(\"invalid\"))return\"Identifiants invalides. V\\xe9rifiez vos informations.\";return String(raw);}async function loginWithFallback(ms,email,password){const fn=ms?.loginMemberEmailPassword;if(typeof fn!==\"function\"){throw new Error(\"M\\xe9thode de connexion Memberstack indisponible.\");}try{await fn({email,password});return;}catch(_first){await fn(email,password);}}async function signupWithFallback(ms,email,password,customFields){const fn=ms?.signupMemberEmailPassword;if(typeof fn!==\"function\"){throw new Error(\"M\\xe9thode d'inscription Memberstack indisponible.\");}try{await fn({email,password,customFields});return;}catch(_first){try{await fn({auth:{email,password},customFields});return;}catch(_second){try{await fn({email,password});return;}catch(_third){await fn(email,password,customFields);}}}}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export function MemberAuthForm(props){const{mode,redirectAfter,loginPath,signupPath,background,textColor,borderColor,buttonBackground,buttonTextColor,heading,fontSize,style}=props;const isStatic=useIsStaticRenderer();const[fullName,setFullName]=useState(\"\");const[profileType,setProfileType]=useState(\"\");const[activity,setActivity]=useState(\"\");const[companyName,setCompanyName]=useState(\"\");const[email,setEmail]=useState(\"\");const[password,setPassword]=useState(\"\");const[isSubmitting,setIsSubmitting]=useState(false);const[isLoadingSdk,setIsLoadingSdk]=useState(false);const[error,setError]=useState(\"\");const[status,setStatus]=useState(\"\");const isSignup=mode===\"signup\";const onSubmit=useCallback(async event=>{event.preventDefault();if(isStatic){startTransition(()=>setStatus(\"Aper\\xe7u Canvas : authentification d\\xe9sactiv\\xe9e.\"));return;}if(!email.trim()){startTransition(()=>setError(\"Veuillez saisir votre adresse e-mail.\"));return;}if(!password.trim()){startTransition(()=>setError(\"Veuillez saisir votre mot de passe.\"));return;}if(isSignup&&!fullName.trim()){startTransition(()=>setError(\"Veuillez saisir votre nom complet.\"));return;}if(isSignup&&!profileType.trim()){startTransition(()=>setError(\"Veuillez s\\xe9lectionner votre type de profil.\"));return;}if(isSignup&&!activity.trim()){startTransition(()=>setError(\"Veuillez s\\xe9lectionner votre activit\\xe9.\"));return;}startTransition(()=>{setError(\"\");setStatus(\"\");setIsSubmitting(true);setIsLoadingSdk(true);});try{const ms=await loadMemberstackDomSdk();startTransition(()=>setIsLoadingSdk(false));if(isSignup){await signupWithFallback(ms,email.trim(),password,{\"nom-complet\":fullName.trim(),\"type-profil\":profileType.trim(),activite:activity.trim(),\"nom-societe\":companyName.trim()||undefined});}else{await loginWithFallback(ms,email.trim(),password);}const path=(redirectAfter||\"/bibliotheque\").trim()||\"/bibliotheque\";if(typeof window!==\"undefined\"){window.location.assign(path);}}catch(e){startTransition(()=>{setError(getMemberstackErrorMessage(e));setIsSubmitting(false);setIsLoadingSdk(false);});}},[activity,companyName,email,fullName,isSignup,isStatic,password,profileType,redirectAfter]);const switchHref=isSignup?loginPath:signupPath;const switchLabel=isSignup?\"D\\xe9j\\xe0 membre ? Se connecter\":\"Pas encore membre ? S'inscrire\";const defaultHeading=isSignup?\"INSCRIPTION\":\"CONNEXION\";return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"auto\",background,color:textColor,border:`1px solid ${borderColor}`,borderRadius:0,padding:20,boxSizing:\"border-box\",fontFamily:\"Inter, sans-serif\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:\"0 0 16px 0\",fontSize:fontSize+2,lineHeight:1.2,letterSpacing:\"0.04em\",textTransform:\"uppercase\",fontWeight:600},children:heading||defaultHeading}),/*#__PURE__*/_jsxs(\"form\",{onSubmit:onSubmit,style:{display:\"grid\",gap:10},children:[isSignup&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:6},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"memberstack-full-name\",style:{fontSize},children:\"Nom complet\"}),/*#__PURE__*/_jsx(\"input\",{id:\"memberstack-full-name\",name:\"fullName\",type:\"text\",value:fullName,required:isSignup,disabled:isSubmitting,onChange:e=>startTransition(()=>setFullName(e.currentTarget.value)),style:{width:\"100%\",border:`1px solid ${borderColor}`,borderRadius:0,padding:\"10px 12px\",fontSize,color:textColor,background:\"rgba(255,255,255,0.4)\",boxSizing:\"border-box\"}})]}),isSignup&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:6},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"memberstack-profile-type\",style:{fontSize},children:\"Type de profil\"}),/*#__PURE__*/_jsxs(\"select\",{id:\"memberstack-profile-type\",name:\"profileType\",value:profileType,required:isSignup,disabled:isSubmitting,onChange:e=>startTransition(()=>setProfileType(e.currentTarget.value)),style:{width:\"100%\",border:`1px solid ${borderColor}`,borderRadius:0,padding:\"10px 12px\",fontSize,color:textColor,background:\"rgba(255,255,255,0.4)\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:\"S\\xe9lectionner…\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Soci\\xe9t\\xe9\",children:\"Soci\\xe9t\\xe9\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Professionnel ind\\xe9pendant\",children:\"Professionnel ind\\xe9pendant\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Particulier\",children:\"Particulier\"}),/*#__PURE__*/_jsx(\"option\",{value:\"\\xc9tudiant\",children:\"\\xc9tudiant\"})]})]}),isSignup&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:6},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"memberstack-activity\",style:{fontSize},children:\"Activit\\xe9\"}),/*#__PURE__*/_jsxs(\"select\",{id:\"memberstack-activity\",name:\"activity\",value:activity,required:isSignup,disabled:isSubmitting,onChange:e=>startTransition(()=>setActivity(e.currentTarget.value)),style:{width:\"100%\",border:`1px solid ${borderColor}`,borderRadius:0,padding:\"10px 12px\",fontSize,color:textColor,background:\"rgba(255,255,255,0.4)\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:\"S\\xe9lectionner…\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Architecte\",children:\"Architecte\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Ing\\xe9nieur\",children:\"Ing\\xe9nieur\"}),/*#__PURE__*/_jsx(\"option\",{value:\"BIM Manager / Coordinateur\",children:\"BIM Manager / Coordinateur\"}),/*#__PURE__*/_jsx(\"option\",{value:\"BIM Modeleur\",children:\"BIM Modeleur\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Dessinateur-projeteur\",children:\"Dessinateur-projeteur\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Entreprise de construction\",children:\"Entreprise de construction\"}),/*#__PURE__*/_jsx(\"option\",{value:\"\\xc9tudiant\",children:\"\\xc9tudiant\"}),/*#__PURE__*/_jsx(\"option\",{value:\"Autre\",children:\"Autre\"})]})]}),isSignup&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:6},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"memberstack-company-name\",style:{fontSize},children:\"Nom de la soci\\xe9t\\xe9 (optionnel)\"}),/*#__PURE__*/_jsx(\"input\",{id:\"memberstack-company-name\",name:\"companyName\",type:\"text\",value:companyName,disabled:isSubmitting,onChange:e=>startTransition(()=>setCompanyName(e.currentTarget.value)),style:{width:\"100%\",border:`1px solid ${borderColor}`,borderRadius:0,padding:\"10px 12px\",fontSize,color:textColor,background:\"rgba(255,255,255,0.4)\",boxSizing:\"border-box\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:6},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"memberstack-email\",style:{fontSize},children:\"E-mail\"}),/*#__PURE__*/_jsx(\"input\",{id:\"memberstack-email\",name:\"email\",type:\"email\",autoComplete:\"email\",value:email,disabled:isSubmitting,onChange:e=>startTransition(()=>setEmail(e.currentTarget.value)),style:{width:\"100%\",border:`1px solid ${borderColor}`,borderRadius:0,padding:\"10px 12px\",fontSize,color:textColor,background:\"rgba(255,255,255,0.4)\",boxSizing:\"border-box\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:6},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"memberstack-password\",style:{fontSize},children:\"Mot de passe\"}),/*#__PURE__*/_jsx(\"input\",{id:\"memberstack-password\",name:\"password\",type:\"password\",autoComplete:isSignup?\"new-password\":\"current-password\",value:password,disabled:isSubmitting,onChange:e=>startTransition(()=>setPassword(e.currentTarget.value)),style:{width:\"100%\",border:`1px solid ${borderColor}`,borderRadius:0,padding:\"10px 12px\",fontSize,color:textColor,background:\"rgba(255,255,255,0.4)\",boxSizing:\"border-box\"}})]}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",disabled:isSubmitting,\"aria-busy\":isSubmitting,style:{marginTop:6,border:`1px solid ${borderColor}`,borderRadius:0,padding:\"11px 14px\",fontSize,letterSpacing:\"0.04em\",textTransform:\"uppercase\",fontWeight:600,background:buttonBackground,color:buttonTextColor,cursor:isSubmitting?\"wait\":\"pointer\"},children:isSubmitting?isLoadingSdk?\"Chargement…\":\"Traitement…\":isSignup?\"S'inscrire\":\"Se connecter\"})]}),error?/*#__PURE__*/_jsx(\"p\",{role:\"alert\",style:{margin:\"12px 0 0 0\",fontSize,color:\"#8B0000\"},children:error}):null,status?/*#__PURE__*/_jsx(\"p\",{style:{margin:\"12px 0 0 0\",fontSize,opacity:.8},children:status}):null,/*#__PURE__*/_jsx(\"a\",{href:switchHref||(isSignup?\"/connexion\":\"/inscription\"),style:{display:\"inline-block\",marginTop:12,color:textColor,fontSize:Math.max(12,fontSize-1),opacity:.85,textDecoration:\"none\",borderBottom:`1px solid ${borderColor}`,lineHeight:1.5},children:switchLabel})]});}addPropertyControls(MemberAuthForm,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"login\",\"signup\"],optionTitles:[\"Login\",\"Signup\"],defaultValue:\"login\",displaySegmentedControl:true},redirectAfter:{type:ControlType.String,title:\"Redirect\",defaultValue:\"/bibliotheque\"},loginPath:{type:ControlType.String,title:\"Login Path\",defaultValue:\"/connexion\"},signupPath:{type:ControlType.String,title:\"Signup Path\",defaultValue:\"/inscription\"},heading:{type:ControlType.String,title:\"Titre\",defaultValue:\"CONNEXION\"},fontSize:{type:ControlType.Number,title:\"Texte\",defaultValue:14,min:12,max:20,step:1},background:{type:ControlType.Color,title:\"Fond\",defaultValue:\"rgba(255,255,255,0.62)\"},textColor:{type:ControlType.Color,title:\"Texte Couleur\",defaultValue:\"#000000\"},borderColor:{type:ControlType.Color,title:\"Bordure\",defaultValue:\"rgba(0,0,0,0.2)\"},buttonBackground:{type:ControlType.Color,title:\"Btn Fond\",defaultValue:\"rgba(255,255,255,0.7)\"},buttonTextColor:{type:ControlType.Color,title:\"Btn Texte\",defaultValue:\"#000000\"}});/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export function MemberLogout(props){const{label,redirectTo,background,textColor,borderColor,fontSize,style}=props;const isStatic=useIsStaticRenderer();const[loading,setLoading]=useState(false);const[error,setError]=useState(\"\");const onLogout=useCallback(async()=>{if(isStatic)return;startTransition(()=>{setError(\"\");setLoading(true);});try{const ms=await loadMemberstackDomSdk();if(typeof ms?.logout===\"function\"){await ms.logout();}else if(typeof ms?.logoutMember===\"function\"){await ms.logoutMember();}if(typeof window!==\"undefined\"){window.location.assign(redirectTo||\"/connexion\");}}catch(e){startTransition(()=>{setError(getMemberstackErrorMessage(e));setLoading(false);});}},[isStatic,redirectTo]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"max-content\",minWidth:\"max-content\",fontFamily:\"Inter, sans-serif\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:onLogout,disabled:loading,\"aria-busy\":loading,style:{border:`1px solid ${borderColor}`,borderRadius:0,background,color:textColor,padding:\"10px 12px\",fontSize,lineHeight:1,textTransform:\"uppercase\",letterSpacing:\"0.04em\",fontWeight:600,cursor:loading?\"wait\":\"pointer\"},children:loading?\"D\\xe9connexion…\":label}),error?/*#__PURE__*/_jsx(\"p\",{role:\"alert\",style:{margin:\"8px 0 0 0\",fontSize:12,color:\"#8B0000\"},children:error}):null]});}addPropertyControls(MemberLogout,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Se d\\xe9connecter\"},redirectTo:{type:ControlType.String,title:\"Redirect\",defaultValue:\"/connexion\"},fontSize:{type:ControlType.Number,title:\"Texte\",defaultValue:13,min:11,max:18,step:1},background:{type:ControlType.Color,title:\"Fond\",defaultValue:\"rgba(255,255,255,0.62)\"},textColor:{type:ControlType.Color,title:\"Texte Couleur\",defaultValue:\"#000000\"},borderColor:{type:ControlType.Color,title:\"Bordure\",defaultValue:\"rgba(0,0,0,0.2)\"}});export function withMemberGate(Component){return /*#__PURE__*/forwardRef(function MemberGateOverride(props,ref){const isStatic=useIsStaticRenderer();const[checking,setChecking]=useState(false);const[allowed,setAllowed]=useState(true);const redirectedRef=useRef(false);useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const pathname=window.location.pathname||\"\";if(pathname===\"/connexion\"||pathname===\"/inscription\"){startTransition(()=>{setAllowed(true);setChecking(false);});return;}startTransition(()=>{setChecking(true);setAllowed(false);});let cancelled=false;const checkAccess=async()=>{try{const ms=await loadMemberstackDomSdk();const getter=ms?.getCurrentMember;if(typeof getter!==\"function\"){throw new Error(\"M\\xe9thode de v\\xe9rification Memberstack indisponible.\");}const result=await getter();const member=result?.data||result?.member||result;if(cancelled)return;if(member){startTransition(()=>{setAllowed(true);setChecking(false);});return;}startTransition(()=>{setAllowed(false);setChecking(false);});if(!redirectedRef.current){redirectedRef.current=true;const redirectTarget=encodeURIComponent(\"/bibliotheque\");window.location.assign(`/connexion?redirect=${redirectTarget}`);}}catch(_e){if(cancelled)return;startTransition(()=>{setAllowed(false);setChecking(false);});if(!redirectedRef.current){redirectedRef.current=true;const redirectTarget=encodeURIComponent(\"/bibliotheque\");window.location.assign(`/connexion?redirect=${redirectTarget}`);}}};checkAccess();return()=>{cancelled=true;};},[isStatic]);if(isStatic){return /*#__PURE__*/_jsx(Component,{ref:ref,...props});}if(checking){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:\"Inter, sans-serif\",background:\"rgba(255,255,255,0.62)\",color:\"#000000\",border:\"1px solid rgba(0,0,0,0.2)\"},children:/*#__PURE__*/_jsx(\"div\",{\"aria-live\":\"polite\",style:{padding:\"10px 12px\",textTransform:\"uppercase\",letterSpacing:\"0.04em\",fontSize:12},children:\"V\\xe9rification de votre acc\\xe8s…\"})});}if(!allowed)return null;return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withMemberGate\":{\"type\":\"reactHoc\",\"name\":\"withMemberGate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MemberLogout\":{\"type\":\"reactComponent\",\"name\":\"MemberLogout\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"MemberAuthForm\":{\"type\":\"reactComponent\",\"name\":\"MemberAuthForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MemberstackAccess.map"],"mappings":"qOACiL,SAAS,GAA8B,CAA8C,OAA1C,OAAO,SAAW,IAAmB,KAAY,SAAS,cAAc,eAAe,EAAuB,GAAG,CAAE,CAAC,SAAS,GAAuB,CAAC,GAAU,IAAS,QAAa,OAAO,SAAW,IAAa,OAAO,QAAQ,OAAW,MAAM,wCAA8C,CAAC,EAAG,IAAM,EAAe,EAAO,gBAA+yC,OAA5xC,EAAsB,QAAQ,QAAQ,CAAc,EAAK,IAAqD,EAAuB,IAAI,SAAS,EAAQ,IAAS,CAAC,IAAM,MAAqB,CAAC,IAAM,EAAG,EAAO,gBAAmB,EAAI,EAAQ,CAAE,EAAQ,EAAW,MAAM,gEAAmE,CAAC,CAAG,EAAQ,EAAe,EAA6B,EAAE,GAAG,EAAe,CAAkI,GAA7H,EAAe,aAAa,sBAAsB,GAAG,EAAe,aAAa,uBAAuB,CAAkB,EAAM,EAAe,aAAa,gBAAgB,IAAI,OAAO,CAAC,EAAiB,EAAE,MAAO,CAAC,EAAe,iBAAiB,OAAO,EAAiB,CAAC,KAAK,EAAI,CAAC,EAAE,EAAe,iBAAiB,YAAY,EAAW,MAAM,oCAAoC,CAAC,EAAE,CAAC,KAAK,EAAI,CAAC,EAAE,MAAO,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,EAAuB,EAAO,MAAM,GAAK,EAAO,MAAM,GAAK,EAAO,aAAa,uBAAuB,CAAkB,EAAE,EAAO,iBAAiB,WAAW,CAAC,EAAO,aAAa,iBAAiB,MAAM,EAAE,EAAiB,CAAE,EAAE,CAAC,KAAK,EAAI,CAAC,EAAE,EAAO,iBAAiB,YAAY,EAAW,MAAM,oCAAoC,CAAC,EAAE,CAAC,KAAK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