1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="802e8cb5-4f12-5d5b-83f1-a8873cea2cd3")}catch(e){}}(); 3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,644319,e=>{"use strict";var t=e.i(476764),a=e.i(780470);e.i(578705);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}class n extends Error{status;constructor(e){super(`POST /extract-colors returned HTTP ${e} HTML managed challenge`),this.status=e}}let s={"Content-Type":"application/json",Accept:"application/json"},i=e=>{let t=e.headers.get("content-type")||"";console.error("API ERROR",{status:e.status,statusText:e.statusText,contentType:t,path:e.url})},o=async(e,r)=>{let{timeoutMs:o,...l}=r??{},d={};if(l.headers?l.headers={...l.headers,...d}:l.headers={...s,...d},l.body instanceof FormData){let e=l.headers;delete e["Content-Type"]}let u=`${(0,a.getApiUrl)()}${e}`;return(0,t.withFailureBackoff)({key:`${l.method??"GET"} ${u}`,method:l.method,signal:l.signal,run:async()=>{let a=(0,t.startRequestDeadline)({method:l.method,signal:l.signal,timeoutMs:o});try{let t,r=await fetch(u,a?{...l,signal:a.signal}:l);if(r.headers.get("content-type")?.includes("application/json"))t=await r.json();else{let t;i(r);let a=await r.text();if(t=l.method,"/extract-colors"===e&&t?.toUpperCase()==="POST"&&r.status>=400&&r.headers.get("content-type")?.split(";")[0].trim().toLowerCase()==="text/html"&&/window\._cf_chl_opt\s*=\s*\{/.test(a)&&/\bcType\s*:\s*['"]managed['"]/.test(a))throw new n(r.status);let s=JSON.stringify({status:r.status,statusText:r.statusText,contentType:r.headers.get("content-type"),body:a});throw Error(s)}if(r.status>=300)throw i(r),Error(JSON.stringify(t));return t}catch(e){if(a?.hasTimedOut())throw new t.ApiTimeoutError(u,a.timeoutMs,{cause:e});throw e}finally{a?.stop()}}})};e.s(["ColorExtractionChallengeError",0,n,"apiFetcher",0,o])},307848,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}class a extends Error{status;data;constructor(e,t,a){super(e),this.status=t,this.data=a,this.name="RouteError"}}let r=async e=>{let t="";try{let a=await e.json(),r=a?.error;"string"==typeof r&&(t=r)}catch{}let r=t||`Request failed with ${e.status}`;return new a(r,e.status,{message:r})};e.s(["RouteError",0,a,"routeErrorFrom",0,r])},900585,e=>{"use strict";var t=e.i(780320),a=e.i(782964);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let n="/api/v3/stitch/uploads",s="LIST",i=t.api.injectEndpoints({endpoints:e=>({getUpload:e.query({query:({id:e})=>({url:`${n}/${e}`}),providesTags:(e,t,{id:a})=>[{type:"Uploads",id:a}]}),listUploads:e.query({query:(e={})=>({url:`${n}/`,params:e}),providesTags:()=>[{type:"Uploads",id:s}]}),listPaginatedUploads:e.infiniteQuery({query:({pageParam:e,queryArg:t})=>({url:`${n}/`,params:{...t,skip:e,take:t.take??20}}),infiniteQueryOptions:{initialPageParam:0,getNextPageParam:(e,t,a)=>e.has_more?a+(e.data.length||20):void 0},providesTags:e=>e?[...e.pages.flatMap(e=>e.data.map(({id:e})=>({type:"Uploads",id:e}))),{type:"Uploads",id:s}]:[{type:"Uploads",id:s}]}),createUpload:e.mutation({query:({public:e,file:t,name:a,description:r,expires_in_days:s,metadata:i})=>{let o=new FormData;return o.append("public",e+""),o.append("file",t,a),o.append("name",a),r&&""!==r.trim()&&o.append("description",r),void 0!==s&&o.append("expires_in_days",s.toString()),void 0!==i&&o.append("metadata",JSON.stringify(i)),{url:`${n}/`,method:"POST",body:o}},invalidatesTags:e=>[{type:"Uploads",id:e?.id},{type:"Uploads",id:s}]}),copyUpload:e.mutation({queryFn:async e=>{try{let{source_upload_id:t,data:r}=e;return{data:await (0,a.copyUpload)(t,r??{}),error:void 0}}catch(e){return{error:{status:"CUSTOM_ERROR",error:String(e)}}}},invalidatesTags:e=>[{type:"Uploads",id:e?.id},{type:"Uploads",id:s}]}),updateUpload:e.mutation({query:({id:e,data:t})=>({url:`${n}/${e}`,method:"PATCH",body:t}),invalidatesTags:(e,t,{id:a})=>[{type:"Uploads",id:a},{type:"Uploads",id:s}]}),deleteUpload:e.mutation({query:({id:e})=>({url:`${n}/${e}`,method:"DELETE"}),invalidatesTags:(e,t,{id:a})=>[{type:"Uploads",id:a},{type:"Uploads",id:s}]}),deleteUploads:e.mutation({query:e=>({url:`${n}/batch`,method:"DELETE",body:e}),invalidatesTags:(e,t,{ids:a})=>[...a.map(e=>({type:"Uploads",id:e})),{type:"Uploads",id:s}]})})}),{useGetUploadQuery:o,useListUploadsQuery:l,useListPaginatedUploadsInfiniteQuery:d,useLazyGetUploadQuery:u,useCreateUploadMutation:c,useUpd
3ateUploadMutation:p,useDeleteUploadMutation:y,useDeleteUploadsMutation:M,useCopyUploadMutation:g}=i;e.s(["useCopyUploadMutation",0,g,"useCreateUploadMutation",0,c,"useDeleteUploadMutation",0,y,"useDeleteUploadsMutation",0,M,"useGetUploadQuery",0,o,"useLazyGetUploadQuery",0,u,"useListPaginatedUploadsInfiniteQuery",0,d,"useListUploadsQuery",0,l,"useUpdateUploadMutation",0,p,"websiteBuilderAPI",0,i])},61050,e=>{"use strict";var t=e.i(788888),a=e.i(644319),r=e.i(894450),n=e.i(629900),s=e.i(900585),i=e.i(655190),o=e.i(476764);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}var d=async e=>(0,o.customFetch)("/api/v3/users/me",{...e,method:"GET"}),u=e.i(305071),c=e.i(176354),p=e.i(270300),y=e.i(51112);e.i(587715);var M=e.i(9880),g=e.i(322604),m=e.i(22037);try{var f=window;f._sentryModuleMetadata=f._sentryModuleMetadata||{},f._sentryModuleMetadata[(new f.Error).stack]=Object.assign({},f._sentryModuleMetadata[(new f.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}e.s(["usePublicUploads",0,({content:e,acceptedFormats:o}={})=>{let l=(0,M.useRouter)(),[f,_]=(0,m.useState)(!1),w=(0,m.useContext)(g.ReactReduxContext),h=w?.store.dispatch,E=async(a,r)=>{let n=1048576*(e?.maximumFileSize||5),s=e?.minimumImageDimension||50,l=e?.maximumImageDimension||3e3,d=(o||i.ACCEPTED_IMAGE_FILE_FORMATS).split(",").map(e=>e.trim());if(a.length>(r||1))return u.toast.error("You can only upload a maximum of 1 file(s) at a time"),!1;for(let r of a){let a="image/svg+xml"===r.type,i=d.map(e=>e.replace(".",""));if(!i.some(e=>"svg"===e?"image/svg+xml"===r.type:r.type.endsWith(e))){let t=i.join(", ");return u.toast.error((0,y.renderContent)(e?.toast?.fileFormatError||"The uploaded file format is not supported. Please upload one of the following formats: {ACCEPTED_FORMATS}.",{ACCEPTED_FORMATS:t})),!1}if(r.size>n){let t=(n/1048576).toFixed(0);return u.toast.error((0,y.renderContent)(e?.toast?.largeFileError||"File must be smaller than {MAX_FILE_SIZE_MB}MB.",{MAX_FILE_SIZE_MB:t})),!1}if(!a){let a=await (0,t.validateImageDimensions)(r,s,l);if(!a.isValid){let t="min"===a.errorType?(0,y.renderContent)(e?.toast?.minimumDimensionError||"Image dimensions must be at least ${MIN_IMAGE_DIMENSION}px.",{MIN_IMAGE_DIMENSION:s.toString()}):(0,y.renderContent)(e?.toast?.maximumDimensionError||"Image dimensions must be at most ${MAX_IMAGE_DIMENSION}px.",{MAX_IMAGE_DIMENSION:l.toString()});return u.toast.error(t),!1}}}return!0};return{isLoading:f,handleUpload:async(e,{signal:t,onComplete:i,isPublic:o,expiresInDays:y,maxAllowedFiles:M}={})=>{_(!0);try{if(!await E(e,M))return void _(!1);let g=!0;try{await d(),g=!1}catch{}if(t?.aborted)return void _(!1);let m=[];for(let n of e){let e;if(t?.aborted)return void _(!1);try{if(g)e=await (0,r.createPublicUpload)({file:n,expiresInDays:7,signal:t});else{let t=new FormData;t.append("public",String(o||!1)),t.append("file",n,n.name),t.append("name",n.name),void 0!==y&&t.append("expires_in_days",y.toString()),e=await (0,a.apiFetcher)("/api/v3/stitch/uploads",{method:"POST",headers:{},body:t})}}catch{if(t?.aborted){let e=Error("Upload cancelled");throw e.name="AbortError",e}u.toast.error("Failed to upload file. Please try again."),_(!1);return}m.push(e),!g&&h&&h(s.websiteBuilderAPI.util.invalidateTags([{type:"Uploads",id:e.id},{type:"Uploads",id:"LIST"}]))}if(t?.aborted)return void _(!1);if(g){let e=(0,p.getSessionStorageValue)(n.USER_PUBLIC_UPLOAD_IDS),t=e?JSON.parse(e):[],a=m.map(e=>e.id),r=[...t,...a];(0,p.setSessionStorageValue)(n.USER_PUBLIC_UPLOAD_IDS,JSON.stringify(r))}_(!1),i?i(m):l.push((0,c.addParamsToUrl)("/stitch/new-design",{upload_id:m[0].id}))}catch(e){if("AbortError"===e.name||"Upload cancelled"===e.message)return void _(!1);console.error("Upload failed:",e),u.toast.error("Upload failed. Please try again."),_(!1)}},validateFiles:E}}],61050)},655190,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let a=50,r=6e3,n=["image/png","image/jpeg","image/jpg","image/webp"],s=[...n,"image/gif"],i={"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/jpg":[".jpg",".jpeg"],"image/svg+xml":[".svg"],"image/webp":[".webp"],"image/gif":[".gif"]},o=async e=>{if(!("image/svg+xml"===e.type.toLowerCase()||e.name.toLowerCase().endsWith(".svg")))return{isValid:!1,message:"Only SVG files can be imported into logos."};if(e.size>25600)return{isValid:!1,message:"SVG files must be 25 KB or smaller."};try{let t=new DOMParser().parseFromString(await e.text(),"image/svg+xml");if(t.querySelector("parsererror")||"svg"!==t.documentElement.localName.toLowerCase())return{isValid:!1,message:"We couldn't read this SVG file."};if(t.documentElement.querySelectorAll("*").length>100)return{isValid:!1,message:"SVG files can contain at most 100 elements."}}catch{return{isValid:!1,message:"We couldn't read this SVG file."}}return{isValid:!0}};e.s(["ACCEPTED_IMAGE_FILE_FORMATS",0,".png, .jpg, .jpeg, .svg, .webp","ACCEPTED_IMAGE_FORMATS_MIME_TYPE",0,["image/png","image/jpeg","image/jpg","image/svg+xml","
3image/webp"],"ACCEPTED_RASTER_IMAGE_FILE_FORMATS",0,".png, .jpg, .jpeg, .webp","ACCEPTED_RASTER_IMAGE_MIME_TYPES",0,n,"DEFAULT_MAXIMUM_RASTER_IMAGE_DIMENSION",0,r,"DEFAULT_MINIMUM_RASTER_IMAGE_DIMENSION",0,a,"MAX_IMAGE_UPLOAD_FILE_SIZE_IN_MEGA_BYTES",0,5,"MAX_LOGO_SVG_ELEMENT_COUNT",0,100,"MAX_LOGO_SVG_FILE_SIZE_IN_BYTES",0,25600,"buildImageUploadFooterText",0,e=>`Uploaded files must be smaller than 5MB. Accepted formats: ${Array.from(new Set(e.flatMap(e=>{let t=e.trim().toLowerCase();return t?t.startsWith(".")?[t]:i[t]??[t]:[]}))).join(", ")}.`,"validateLogoSvgFile",0,o,"validateRasterImageDimensions",0,(e,t=a,n=r)=>{let i;return(i=e.type,s.includes(i.trim().toLowerCase()))?new Promise(a=>{let r=new Image,s=URL.createObjectURL(e),i=()=>{URL.revokeObjectURL(s)};r.onload=()=>{i();let e=r.naturalWidth||r.width,s=r.naturalHeight||r.height;e<t||s<t?a({isValid:!1,errorType:"min"}):e>n||s>n?a({isValid:!1,errorType:"max"}):a({isValid:!0})},r.onerror=()=>{i(),a({isValid:!1,errorType:"decode"})},r.src=s}):Promise.resolve({isValid:!0})}])},788888,894450,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}e.s(["validateImageDimensions",0,(e,t,a)=>new Promise(r=>{let n=new Image,s=URL.createObjectURL(e);n.onload=()=>(URL.revokeObjectURL(s),n.width<t||n.height<t)?r({isValid:!1,errorType:"min"}):n.width>a||n.height>a?r({isValid:!1,errorType:"max"}):void r({isValid:!0}),n.onerror=()=>{URL.revokeObjectURL(s),r({isValid:!1})},n.src=s})],788888);var a=e.i(307848);try{var r=window;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let n=async({file:e,expiresInDays:t,signal:r})=>{let n=new FormData;n.append("file",e),n.append("name",e.name),n.append("expires_in_days",t.toString());let s=await fetch("/internal/api/public-upload",{method:"POST",body:n,cache:"no-store",signal:r});if(!s.ok)throw await (0,a.routeErrorFrom)(s);return s.json()};e.s(["createPublicUpload",0,n],894450)},882310,e=>{"use strict";try{var t="u">typeof window?window:e.g;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let a=new Map;function r(e,t){let r=JSON.stringify({locale:e,options:t}),n=a.get(r);if(n)return n;let s=new Intl.NumberFormat(e,t);return a.set(r,s),s}function n(e,t,a){return null==e?"":r(t,a).format(e)}e.s(["formatNumber",0,n,"formatNumberMaxPrecision",0,function(e,t,a){return n(e,t,{...a,maximumFractionDigits:20})},"formatNumberValue",0,function(e,t,a){return null==e?"":a?n(e,t,a):n(e/100,t,{style:"percent"})},"getFormatter",0,r])},285908,e=>{"use strict";try{var t="u">typeof window?window:e.g;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}e.s(["valueToPercent",0,function(e,t,a){return(e-t)*100/(a-t)}])},460233,517012,e=>{"use strict";var t=e.i(22037);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let r="Almost there! Your image is being created and should be ready in about 60 seconds",n=[{title:"Sparking Up the Magic â¨",description:r,startPercentage:0},{title:"Analyzing Your Prompt ð",description:r,startPercentage:14},{title:"Gathering Inspiration ð¡",description:r,startPercentage:28},{title:"Drafting the Layout ð",description:r,startPercentage:42},{title:"Crafting Your Masterpiece ðï¸",description:r,startPercentage:57},{title:"Polishing the Details ð ",description:r,startPercentage:71},{title:"Finalizing Your Asset ð",description:r,startPercentage:85}],s=5e3,i=750;e.s(["AI_IMAGE_LOADING_STEPS",0,n,"DEFAULT_DURATION",0,s,"DEFAULT_INTERVAL",0,i,"DEFAULT_LOADING_DESCRIPTION",0,r,"DEFAULT_LOADING_TEXT",0,[{title:"Sparking Up the Magic â¨",description:"Setting things in motion and preparing something amazing...",startPercentage:0},{title:"Crafting Something Special ð¯",description:"Putting all the pieces together and making it happen...",startPercentage:33},{title:"Bringing It All Together ð",description:"Final touches in progressâalmost ready to go!",startPercentage:66}],"MAX_PROGRESS",0,100,"MAX_RANDOM_MULTIPLIER",0,1.5,"MIN_PROGRESS",0,0,"MIN_RANDOM_MULTIPLIER",0,.5],517012);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}e.s(["useProgressController",0,({duration:e=s,intervalTime:a=i,pauseThreshold:r,paused:n=!1,complete:o=!1,completionDuration:l=650,maxLoadTime:d,onError:u,onComplete:c,onProgressInterval:p}={})=>{let[y,M]=(0,t.useState)(0),[g,m]=(0,t.useState)(!0),[f,_]=(0,t.useState)(null),w=(0,t.useRef)(0),h=n||void 0!==r&&y>=r;return(0,t.useEffect)(()=>
3{if(!d||!u||!g){null!==f&&_(null);return}null===f&&_(Date.now())},[g,d,u,f]),(0,t.useEffect)(()=>{if(!e||e<=0||!g||o)return;let t=100/(e/a),r=setInterval(()=>{let e=0;M(a=>{if(e=a,h)return a;let r=Math.min(t*(.5+ +Math.random()),100-a),n=Math.min(a+r,100);return e=n,w.current=n,n}),p?.(e),e>=100&&(clearInterval(r),c?.())},a);return()=>clearInterval(r)},[o,e,a,r,h,c,p,g]),(0,t.useEffect)(()=>{if(!o||!g)return;let e=w.current;if(e>=100||l<=0){w.current=100,M(100),m(!1),p?.(100),c?.();return}let t=Date.now(),r=setInterval(()=>{let a=Math.min(e+(100-e)*Math.min((Date.now()-t)/l,1),100);w.current=a,M(a),p?.(a),a>=100&&(clearInterval(r),m(!1),c?.())},Math.min(a,50));return()=>clearInterval(r)},[o,l,a,g,c,p]),(0,t.useEffect)(()=>{if(!d||!u||!g||null===f)return;let e=setInterval(()=>{Date.now()-f>=d&&(m(!1),M(0),u(),clearInterval(e))},1e3);return()=>clearInterval(e)},[d,u,f,g]),{progress:y,isPaused:h,resetProgress:(0,t.useCallback)(()=>{w.current=0,M(0),_(null),m(!1),setTimeout(()=>m(!0),0)},[])}}],460233)},130252,e=>{"use strict";var t,a=e.i(717001);try{var r="u">typeof window?window:e.g;r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[(new r.Error).stack]=Object.assign({},r._sentryModuleMetadata[(new r.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}e.s([],887274),e.i(887274);var n=e.i(22037),s=e.i(604663),i=e.i(987119),o=e.i(882310),l=e.i(876689),d=e.i(173979);try{var u="u">typeof window?window:e.g;u._sentryModuleMetadata=u._sentryModuleMetadata||{},u._sentryModuleMetadata[(new u.Error).stack]=Object.assign({},u._sentryModuleMetadata[(new u.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let c=n.createContext(void 0);function p(){let e=n.useContext(c);if(void 0===e)throw Error((0,d.default)(51));return e}try{var y="u">typeof window?window:e.g;y._sentryModuleMetadata=y._sentryModuleMetadata||{},y._sentryModuleMetadata[(new y.Error).stack]=Object.assign({},y._sentryModuleMetadata[(new y.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let M=((t={}).complete="data-complete",t.indeterminate="data-indeterminate",t.progressing="data-progressing",t);try{var g="u">typeof window?window:e.g;g._sentryModuleMetadata=g._sentryModuleMetadata||{},g._sentryModuleMetadata[(new g.Error).stack]=Object.assign({},g._sentryModuleMetadata[(new g.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let m={status:e=>"progressing"===e?{[M.progressing]:""}:"complete"===e?{[M.complete]:""}:"indeterminate"===e?{[M.indeterminate]:""}:null};try{var f="u">typeof window?window:e.g;f._sentryModuleMetadata=f._sentryModuleMetadata||{},f._sentryModuleMetadata[(new f.Error).stack]=Object.assign({},f._sentryModuleMetadata[(new f.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}function _(e,t){return null==t?"indeterminate progress":e||`${t}%`}let w=n.forwardRef(function(e,t){let{format:r,getAriaValueText:d=_,locale:u,max:p=100,min:y=0,value:M,render:g,className:f,children:w,style:h,...E}=e,[v,b]=n.useState(),A=(0,s.useValueAsRef)(r),I="indeterminate";Number.isFinite(M)&&(I=M===p?"complete":"progressing");let T=(0,o.formatNumberValue)(M,u,A.current),P=n.useMemo(()=>({status:I}),[I]),S={"aria-labelledby":v,"aria-valuemax":p,"aria-valuemin":y,"aria-valuenow":M??void 0,"aria-valuetext":d(T,M),role:"progressbar",children:(0,a.jsxs)(n.Fragment,{children:[w,(0,a.jsx)("span",{role:"presentation",style:i.visuallyHidden,children:"x"})]})},U=n.useMemo(()=>({formattedValue:T,max:p,min:y,setLabelId:b,state:P,status:I,value:M}),[T,p,y,b,P,I,M]),O=(0,l.useRenderElement)("div",e,{state:P,ref:t,props:[S,E],stateAttributesMapping:m});return(0,a.jsx)(c.Provider,{value:U,children:O})});try{var h="u">typeof window?window:e.g;h._sentryModuleMetadata=h._sentryModuleMetadata||{},h._sentryModuleMetadata[(new h.Error).stack]=Object.assign({},h._sentryModuleMetadata[(new h.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let E=n.forwardRef(function(e,t){let{render:a,className:r,style:n,...s}=e,{state:i}=p();return(0,l.useRenderElement)("div",e,{state:i,ref:t,props:s,stateAttributesMapping:m})});var v=e.i(285908);try{var b="u">typeof window?window:e.g;b._sentryModuleMetadata=b._sentryModuleMetadata||{},b._sentryModuleMetadata[(new b.Error).stack]=Object.assign({},b._sentryModuleMetadata[(new b.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let A=n.forwardRef(function(e,t){let{render:a,className:r,style:s,...i}=e,{max:o,min:d,value:u,state:c}=p(),y=Number.isFinite(u)&&null!==u?(0,v.valueToPercent)(u,d,o):null,M=n.useCallback(()=>null==y?{}:{insetInlineStart:0,height:"inherit",width:`${y}%`},[y]);return(0,l.useRenderElement)("div",e,{state:c,ref:t,props:[{style:M()},i],stateAttributesMapping:m})});try{var I="u">typeof window?window:e.g;I._sentryModuleMetadata=I._sentryModuleMetadata||{},I._sentryModuleMetadata[(new I.Error).stack]=Object.assign({},I._sentryModuleMetadata[(new I.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let T=n.forwardRef(function(e,t){let{className:a,render:r,children:n,style:s,...i}=e,{value:o,formattedValue:d,state:u}=p(),c=null==o?"indeterminate":d,y=null==o?null:d;return(0,l.useRenderElement)("span",e,{state:u,ref:t,props:[{"aria-hidden":!0,
3children:"function"==typeof n?n(c,o):y},i],stateAttributesMapping:m})});var P=e.i(199128);try{var S="u">typeof window?window:e.g;S._sentryModuleMetadata=S._sentryModuleMetadata||{},S._sentryModuleMetadata[(new S.Error).stack]=Object.assign({},S._sentryModuleMetadata[(new S.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let U=n.forwardRef(function(e,t){let{render:a,className:r,style:n,id:s,...i}=e,{setLabelId:o,state:d}=p(),u=(0,P.useRegisteredLabelId)(s,o);return(0,l.useRenderElement)("span",e,{state:d,ref:t,props:[{id:u,role:"presentation"},i],stateAttributesMapping:m})});e.s(["Indicator",0,A,"Label",0,U,"Root",0,w,"Track",0,E,"Value",0,T],244365);var O=e.i(244365),O=O,x=e.i(631670);try{var R=window;R._sentryModuleMetadata=R._sentryModuleMetadata||{},R._sentryModuleMetadata[(new R.Error).stack]=Object.assign({},R._sentryModuleMetadata[(new R.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let j={default:"rounded-full bg-secondary h-3 p-px","no-container":"rounded-none bg-secondary h-2"},k={default:"rounded-full bg-gradient-to-r from-blue-100 via-blue-600 via-75% to-blue-600 transition-[width]","no-container":"rounded-r-full bg-gradient-to-r from-blue-100 via-blue-600 via-75% to-blue-600 transition-[width]"};e.s(["Progress",0,({value:e,min:t=0,max:r=100,variant:n="default",valueText:s,className:i})=>(0,a.jsx)(O.Root,{value:e,min:t,max:r,"aria-valuetext":s,className:(0,x.classNames)("w-full",i),children:(0,a.jsx)(O.Track,{className:(0,x.classNames)("relative w-full overflow-hidden",j[n]),children:(0,a.jsx)(O.Indicator,{className:(0,x.classNames)("h-full",k[n])})})})],130252)},400029,e=>{"use strict";var t=e.i(717001),a=e.i(608938),r=e.i(631670),n=e.i(210114),s=e.i(172224),i=e.i(66790);try{var o=window;o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[(new o.Error).stack]=Object.assign({},o._sentryModuleMetadata[(new o.Error).stack],{"_sentryBundlerPluginAppKey:8c54d7ff-5945-42f2-9062-0038c71ec796":!0})}catch(e){}let l=({score:e,totalStars:r})=>{let s=`inset(0 ${100-(e-Math.floor(e))*100}% 0 0)`;return(0,t.jsx)("div",{className:"flex items-center",role:"img","aria-label":`${e} out of ${r} stars`,children:(0,n.createArrayOfLength)(r).map((r,n)=>{let i=n+1,o=i<=Math.floor(e),l=i>Math.floor(e)&&i<=Math.ceil(e);return(0,t.jsxs)("div",{className:"relative size-5","aria-hidden":!0,children:[(0,t.jsx)(a.StarIcon,{className:"absolute inset-0 size-5 fill-disabled"}),o&&(0,t.jsx)(a.StarIcon,{className:"absolute inset-0 size-5 fill-yellow-400"}),l&&(0,t.jsx)(a.StarIcon,{className:"absolute inset-0 size-5 fill-yellow-400",style:{clipPath:s}})]},n)})})};e.s(["ReviewRating",0,({totalStars:e,score:a,link:n,platformName:o,showReviewRating:d,showReviewRatingText:u=!0,className:c})=>{if(!d||"number"!=typeof a||"number"!=typeof e)return null;let p=Number(a.toFixed(2)),y=n?.numberOfReviews,M=n?.linkToReview,g="number"==typeof y?`${y.toLocaleString()} reviews`:null,m=o?` on ${o}`:"";return(0,t.jsxs)("div",{className:(0,r.classNames)("flex items-center gap-2",c),children:[(0,t.jsx)(l,{score:a,totalStars:e}),u&&(0,t.jsx)(i.Text,{as:"span",textTheme:"paragraph-1-emphasis",children:p}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-secondary",children:"·"}),(0,t.jsxs)(i.Text,{as:"span",textTheme:"paragraph-1",className:"text-secondary",children:[M?(0,t.jsx)(s.Link,{href:M,target:"_blank",rel:"noopener noreferrer",className:"text-secondary underline",children:g}):g,m]})]})]})}])}]); 4 5//# debugId=802e8cb5-4f12-5d5b-83f1-a8873cea2cd3
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.