1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3178],{2219:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(95155),s=r(12115),n=r(54073),a=r(24026);let o=s.forwardRef(({className:e,...t},r)=>(0,i.jsxs)(n.bL,{ref:r,className:(0,a.cn)("relative flex w-full touch-none select-none items-center",e),...t,children:[(0,i.jsx)(n.CC,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,i.jsx)(n.Q6,{className:"absolute h-full bg-primary"})}),(0,i.jsx)(n.zi,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));o.displayName=n.bL.displayName},5196:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(19946).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},11500:(e,t,r)=>{function i(){return"undefined"!=typeof window}r.d(t,{u4:()=>a});function s(){return(i()?window.vam:function(){return"production"}())||"production"}function n(){return"production"===s()}function a(e,t,r){var a,o;if(!i()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(n())console.warn(e);else throw Error(e);return}if(!t){null==(a=window.va)||a.call(window,"event",{name:e,options:r});return}try{let i=function(e,t){if(!e)return;let r=e,i=[];for(let[s,n]of Object.entries(e))"object"==typeof n&&null!==n&&(t.strip?r=function(e,{[e]:t,...r}){return r}(s,r):i.push(s));if(i.length>0&&!t.strip)throw Error(`The following properties are not valid: ${i.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return r}(t,{strip:n()});null==(o=window.va)||o.call(window,"event",{name:e,data:i,options:r})}catch(e){e instanceof Error&&"development"===s()&&console.error(e)}}},19946:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(12115);let s=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,i.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:l,iconNode:c,...d},u)=>(0,i.createElement)("svg",{ref:u,...n,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:s("lucide",o),...d},[...c.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(l)?l:[l]])),o=(e,t)=>{let r=(0,i.forwardRef)(({className:r,...n},o)=>(0,i.createElement)(a,{ref:o,iconNode:t,className:s(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n}));return r.displayName=`${e}`,r}},23796:(e,t,r)=>{r.r(t),r.d(t,{ConversionTracker:()=>l,calculateConversionRates:()=>o,trackABTestVariant:()=>c,trackConversionError:()=>a,trackConversionEvent:()=>n,trackPerformanceMetric:()=>d,trackPremiumCTA:()=>u,trackPremiumCTAABTest:()=>p,trackPremiumConversionFunnel:()=>m});var i=r(11500),s=r(39039);function n(e){let t=(0,s.getConverterBySlug)(e.converter);t&&((0,i.u4)(`converter_${e.step}`,{converter:e.converter,searchVolume:t.searchVolume,priority:t.priority,success:e.success,...e.metadata}),"conversion_completed"===e.step&&e.success&&function(e,t){let r=(0,s.getConverterBySlug)(e);if(!r)return;let n=t?.fileSize&&t?.outputSize?(t.outputSize/t.fileSize).toFixed(2):void 0;(0,i.u4)("conversion_success",{converter:e,searchVolume:r.searchVolume,fromFormat:r.fromFormat,toFormat:r.toFormat,conversionTime:t?.conversionTime||0,inputSize:t?.fileSize||0,outputSize:t?.outputSize||0,compressionRatio:n||"0"})}(e.converter,e.metadata))}function a(e,t,r){let n=(0,s.getConverterBySlug)(e);n&&(0,i.u4)("conversion_error",{converter:e,searchVolume:n.searchVolume,error:t,...r})}function o(e){return{...e,conversionRate:e.pageViews>0?e.conversionsCompleted/e.pageViews*100:0,dropoffRates:{viewToSelect:e.pageViews>0?(e.pageViews-e.fileSelections)/e.pageViews*100:0,selectToStart:e.fileSelections>0?(e.fileSelections-e.conversionsStarted)/e.fileSelections*100:0,startToComplete:e.conversionsStarted>0?(e.conversionsStarted-e.conversionsCompleted)/e.conversionsStarted*100:0,completeToDownload:e.conversionsCompleted>0?(e.conversionsCompleted-e.downloads)/e.conversionsCompleted*100:0}}}class l{constructor(e){this.events=[],this.converterSlug=e,this.sessionId=this.generateSessionId(),this.startTime=Date.now(),this.trackEvent("page_view",!0)}generateSessionId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}trackEvent(e,t,r){let i={converter:this.converterSlug,step:e,success:t,metadata:{...r,sessionId:this.sessionId,sessionDuration:Date.now()-this.startTime}};this.events.push(i),n(i)}trackFileSelected(e,t){this.trackEvent("file_selected",!0,{fileSize:e,f
1ileType:t})}trackConversionStarted(){this.trackEvent("conversion_started",!0)}trackConversionCompleted(e,t){this.trackEvent("conversion_completed",e,{...t,conversionTime:Date.now()-this.startTime})}trackDownload(e=!0){this.trackEvent("download_completed",e)}getSessionSummary(){return{sessionId:this.sessionId,converter:this.converterSlug,duration:Date.now()-this.startTime,events:this.events,funnel:{hasSelectedFile:this.events.some(e=>"file_selected"===e.step),hasStartedConversion:this.events.some(e=>"conversion_started"===e.step),hasCompletedConversion:this.events.some(e=>"conversion_completed"===e.step&&e.success),hasDownloaded:this.events.some(e=>"download_completed"===e.step)}}}}function c(e,t,r,s){(0,i.u4)("ab_test_result",{converter:e,testName:t,variant:r,outcome:s})}function d(e,t,r){let n=(0,s.getConverterBySlug)(e);n&&(0,i.u4)("performance_metric",{converter:e,searchVolume:n.searchVolume,metric:t,value:r,isHighTraffic:n.searchVolume>=1e4})}function u(e){let t=(0,s.getConverterBySlug)(e.converterType);(0,i.u4)("premium_cta_interaction",{converter:e.converterType,searchVolume:t?.searchVolume||0,priority:t?.priority||"unknown",ctaPlacement:e.ctaPlacement,ctaVariant:e.ctaVariant,targetTool:e.targetTool,action:e.action,isHighTraffic:(t?.searchVolume||0)>=1e4})}function m(e,t,r,n){let a=(0,s.getConverterBySlug)(t);(0,i.u4)("premium_conversion_funnel",{stage:e,converter:t,searchVolume:a?.searchVolume||0,targetTool:r,priority:a?.priority||"unknown",isHighTraffic:(a?.searchVolume||0)>=1e4,...n})}function p(e,t,r,n){let a=(0,s.getConverterBySlug)(e);(0,i.u4)("premium_cta_ab_test",{converter:e,searchVolume:a?.searchVolume||0,testName:t,variant:r,outcome:n,isHighTraffic:(a?.searchVolume||0)>=1e4})}},23837:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(19946).A)("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]])},29621:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(19946).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},29869:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(19946).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},33178:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var i=r(95155),s=r(12115),n=r(88482),a=r(97168),o=r(82714),l=r(90088),c=r(2219),d=r(99474),u=r(34964),m=r(29869),p=r(29621),f=r(51154),v=r(23837),h=r(5196),g=r(91788),x=r(53311),b=r(56671),y=r(41397),w=r(6874),k=r.n(w),j=r(79567);let N={removeMetadata:!0,removeComments:!0,removeEmptyElements:!0,mergePaths:!0,removeHiddenElements:!0,roundNumbers:!0,precision:2,preserveAnimations:!1};function C({initialSvgContent:e}={}){let[t,w]=(0,s.useState)(""),[S,z]=(0,s.useState)(""),[_,V]=(0,s.useState)(!1),[T,A]=(0,s.useState)(null),[E,R]=(0,s.useState)(N),[B,L]=(0,s.useState)(!1),$=(0,s.useRef)(null),F=(0,j.st)("svg-optimizer");(0,s.useEffect)(()=>{if(e){w(e),b.toast.success("SVG loaded from your generated design"),new Blob([e]).size>51200&&setTimeout(()=>{let e=document.getElementById("optimize-button");e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.classList.add("animate-pulse","ring-4","ring-primary","ring-opacity-50"),b.toast.info("Large SVG detected! Click the button below to optimize.",{duration:4e3}),setTimeout(()=>{e.classList.remove("animate-pulse","ring-4","ring-primary","ring-opacity-50")},3e3))},500),window.sessionStorage.removeItem("optimizerSvgContent");return}let t=0,r=()=>{try{let e=window.sessionStorage.getItem("optimizerSvgContent");if(e&&e.length>0)return w(e),window.sessionStorage.removeItem("optimizerSvgContent"),b.toast.success("SVG loaded from your generated design"),new Blob([e]).size,!0}catch(e){console.error("Error accessing sessionStorage:",e)}return!1};if(r())return;let i=setInterval(()=>{t++,(r()||t>=10)&&clearInterval(i)},200);return()=>clearInterval(i)},[e]);let M=async()=>
1{if(!t)return void b.toast.error("Please upload an SVG file first");V(!0),z(""),A(null),L(!1);let e=Date.now();try{let{optimizeSVG:i}=await Promise.all([r.e(4134),r.e(7179),r.e(8362),r.e(7878)]).then(r.bind(r,57878)),s=await i(t,E);z(s.optimizedSvg),A(s),s.reduction>0?b.toast.success(`Optimized! Reduced by ${s.reduction}%`):b.toast.info(s.optimizedSize>s.originalSize?"These settings produced a larger file. Compare it with your original.":"Optimization finished without a smaller file."),L(!0);let n=Date.now()-e;F.trackEvent("optimization_completed",{reduction:s.reduction,originalSize:s.originalSize,optimizedSize:s.optimizedSize}),F.trackPerformance("processing_time",n),F.trackEvent("optimize_funnel",{reduction:s.reduction,originalSize:s.originalSize,optimizedSize:s.optimizedSize,processingTime:n}),s.reduction<20&&F.trackEvent("upgrade_intent",{type:"ai-generation",reason:"small-reduction"})}catch(e){console.error("Optimization error:",e),b.toast.error(e instanceof Error?e.message:"Optimization failed. Check your SVG code and try again."),F.trackError("optimization_error","SVG could not be optimized"),F.trackError("optimization_failed","SVG could not be optimized")}finally{V(!1)}},G=e=>{if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(1))+" "+["B","KB","MB"][t]};return(0,i.jsxs)("div",{className:"space-y-6",children:[(0,i.jsxs)(n.Zp,{children:[(0,i.jsx)(n.aR,{children:(0,i.jsx)(n.ZB,{children:"Add Your SVG"})}),(0,i.jsxs)(n.Wu,{children:[(0,i.jsxs)(u.Tabs,{defaultValue:"upload",className:"w-full",children:[(0,i.jsxs)(u.TabsList,{className:"grid w-full grid-cols-2",children:[(0,i.jsxs)(u.TabsTrigger,{value:"upload",children:[(0,i.jsx)(m.A,{className:"w-4 h-4 mr-2"}),"Upload File"]}),(0,i.jsxs)(u.TabsTrigger,{value:"paste",children:[(0,i.jsx)(p.A,{className:"w-4 h-4 mr-2"}),"Paste Code"]}
1)]}),(0,i.jsx)(u.TabsContent,{value:"upload",className:"mt-4",children:(0,i.jsxs)("div",{className:"border-2 border-dashed rounded-lg p-8 text-center cursor-pointer hover:border-primary transition-colors",role:"button",tabIndex:0,"aria-label":"Upload an SVG file",onClick:()=>$.current?.click(),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),$.current?.click())},children:[(0,i.jsx)(m.A,{className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),(0,i.jsx)("p",{className:"text-lg font-medium mb-2",children:"Click to upload an SVG file"}),(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:"Supports .svg files up to 10MB"}),(0,i.jsx)("input",{ref:$,type:"file",accept:".svg,image/svg+xml",onChange:e=>{let t=e.target.files?.[0];if(!t)return;if("image/svg+xml"!==t.type&&!t.name.toLowerCase().endsWith(".svg"))return void b.toast.error("Please upload an SVG file");if(t.size>0xa00000)return void b.toast.error("SVG files must be 10 MB or smaller.");let r=new FileReader;r.onload=e=>{w(e.target?.result),z(""),A(null),L(!1),b.toast.success("SVG file loaded - ready to optimize!"),t.size>51200&&(setTimeout(()=>{let e=document.getElementById("optimize-button");e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.classList.add("animate-pulse","ring-4","ring-primary","ring-opacity-50"),b.toast.info("Large file detected! Click the button below to optimize.",{duration:4e3}),setTimeout(()=>{e.classList.remove("animate-pulse","ring-4","ring-primary","ring-opacity-50")},3e3))},500),F.trackEvent("large_file_detected",{size:t.size})),F.trackEvent("file_uploaded",{size:t.size}),F.trackEvent("file_upload",{fileSize:t.size,fileType:t.type})},r.readAsText(t)},className:"hidden"})]})}),(0,i.jsx)(u.TabsContent,{value:"paste",className:"mt-4",children:(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(d.T,{"aria-label":"SVG code to optimize",placeholder:"Paste your SVG code here... (e.g., <svg xmlns='http://www.w3.org/2000/svg'>...</svg>)",className:"min-h-[200px] font-mono text-sm",value:t,onChange:e=>{w(e.target.value),z(""),A(null),L(!1),new Blob([e.target.value]).size>51200&&e.target.value.length>0&&setTimeout(()=>{let e=document.getElementById("optimize-button");e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.classList.add("animate-pulse","ring-4","ring-primary","ring-opacity-50"),b.toast.info("Large SVG detected! Click the button below to optimize.",{duration:4e3}),setTimeout(()=>{e.classList.remove("animate-pulse","ring-4","ring-primary","ring-opacity-50")},3e3))},500)}}),(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:"Paste SVG code directly from Illustrator, Figma, or any code editor"})]})})]}),t&&(0,i.jsx)("div",{className:"mt-4 p-4 bg-muted/30 rounded-lg",children:(0,i.jsxs)("p",{className:"text-sm font-medium",children:["SVG loaded: ",G(new Blob([t]).size)]})})]})]}),(0,i.jsxs)(n.Zp,{children:[(0,i.jsx)(n.aR,{children:(0,i.jsx)(n.ZB,{children:"Optimization Options"})}),(0,i.jsxs)(n.Wu,{className:"space-y-6",children:[(0,i.jsxs)("div",{className:"grid gap-4",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(o.J,{htmlFor:"remove-metadata",children:"Remove metadata"}),(0,i.jsx)(l.d,{id:"remove-metadata",checked:E.removeMetadata,onCheckedChange:e=>R({...E,removeMetadata:e})})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(o.J,{htmlFor:"remove-comments",children:"Remove comments"}),(0,i.jsx)(l.d,{id:"remove-comments",checked:E.removeComments,onCheckedChange:e=>R({...E,removeComments:e})})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(o.J,{htmlFor:"merge-paths",children:"Merge similar paths"}),(0,i.jsx)(l.d,{id:"merge-paths",checked:E.mergePaths,onCheckedChange:e=>R({...E,mergePaths:e})})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(o.J,{htmlFor:"preserve-animations",children:"Preserve animation structure"}),(0,i.jsx)(l.d,{id:"preserve-animations",checked:E.preserveAnimations,onCheckedChange:e=>R({...E,preserveAnimations:e})})]}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsxs)(o.J,{htmlFor:"precision",children:["Number precision: ",E.precision]}),(0,i.jsx)(c.A,{id:"precision",min:0,max:5,step:1,value:[E.precision],onValueChange:e=>R({...E,precision:e[0]})})]})]}),(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:"Preserve animation structure keeps shapes, IDs, hidden elements and numeric values intact. Check animation behavior in y
1our intended application after optimization."}),(0,i.jsx)(a.$,{id:"optimize-button",onClick:M,disabled:!t||_,className:"w-full",size:"lg",children:_?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Optimizing..."]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{className:"mr-2 h-4 w-4"}),"Optimize SVG"]})})]})]}),T&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.Zp,{className:"border-primary/20",children:[(0,i.jsx)(n.aR,{children:(0,i.jsx)(n.ZB,{children:"Optimization Results"})}),(0,i.jsxs)(n.Wu,{className:"space-y-4",children:[(0,i.jsxs)("div",{className:"grid grid-cols-3 gap-4 text-center",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:"Original Size"}),(0,i.jsx)("p",{className:"text-xl font-bold",children:G(T.originalSize)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:"Optimized Size"}),(0,i.jsx)("p",{className:"text-xl font-bold text-primary",children:G(T.optimizedSize)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:"Reduction"}),(0,i.jsx)("p",{className:`text-xl font-bold ${T.reduction>0?"text-green-500":"text-muted-foreground"}`,children:T.reduction>0?`${T.reduction}%`:T.reduction<0?`${Math.abs(T.reduction)}% larger`:"0%"})]})]}),(0,i.jsx)(y.k,{value:T.reduction>0?T.reduction:0,className:"h-2"}),(0,i.jsxs)("div",{className:"flex items-center justify-center gap-2 text-green-500",children:[(0,i.jsx)(h.A,{className:"w-5 h-5"}),(0,i.jsx)("span",{className:"font-medium",children:"Optimization complete!"})]}),(0,i.jsxs)(a.$,{onClick:()=>{if(!S)return;let e=new Blob([S],{type:"image/svg+xml"}),t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download="optimized.svg",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t),b.toast.success("Optimized SVG downloaded"),F.trackEvent("optimized_svg_downloaded"),F.trackFeature("download",{size:S.length}),F.trackEvent("download_optimized")},size:"lg",className:"w-full",children:[(0,i.jsx)(g.A,{className:"mr-2 h-4 w-4"}),"Download Optimized SVG"]})]})]}),B&&(0,i.jsxs)(n.Zp,{children:[(0,i.jsx)(n.aR,{children:(0,i.jsx)(n.ZB,{children:"Check your optimized SVG"})}),(0,i.jsxs)(n.Wu,{className:"space-y-4",children:[(0,i.jsx)("p",{className:"text-sm text-muted-foreground",children:"Open the downloaded file in its intended application. Compare its appearance, text, accessibility information and animation with the original before replacing it."}),(0,i.jsx)(k(),{href:"/",children:(0,i.jsxs)(a.$,{variant:"outline",className:"gap-2",onClick:()=>{F.trackEvent("cta_clicked",{location:"success-modal"}),F.trackUpgrade("ai-generation","success-optimization")},children:[(0,i.jsx)(x.A,{className:"w-4 h-4"}),"Create a new SVG with AI"]})})]})]})]})]})}},34964:(e,t,r)=>{r.r(t),r.d(t,{Tabs:()=>o,TabsContent:()=>d,TabsList:()=>l,TabsTrigger:()=>c});var i=r(95155),s=r(12115),n=r(60704),a=r(24026);let o=n.bL,l=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)(n.B8,{ref:r,className:(0,a.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-slate-700",e),...t}));l.displayName=n.B8.displayName;let c=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)(n.l9,{ref:r,className:(0,a.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));c.displayName=n.l9.displayName;let d=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)(n.UC,{ref:r,className:(0,a.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));d.displayName=n.UC.displayName},41397:(e,t,r)=>{r.d(t,{k:()=>o});var i=r(95155),s=r(12115),n=r(55863),a=r(24026);let o=s.forwardRef(({className:e,value:t,...r},s)=>{let o=null==t;return(0,i.jsx)(n.bL,{ref:s,className:(0,a.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:(0,i.jsx)(n.C1,{className:(0,a.cn)("h-full w-full flex-1 bg-primary transition-all",o&&"animate-pulse"),style:{transform:o?void 0:`translateX(-${100-(t||0)}%)`}})})});o.displayName=n.bL.displayName},51154:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(19946).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},53311:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(19946).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},74466:(e,t,r)=>{r.d(t,{F:()=>a});var i=r(52596);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=i.$,a=(e,t)=>r=>{var i;if((null==t?void 0:t.variants)==null)return n(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],i=null==o?void 0:o[e];if(null===t)return null;let n=s(t)||s(i);return a[e][n]}),c=r&&Object.entries(r).reduce((e,t)=>
1{let[r,i]=t;return void 0===i||(e[r]=i),e},{});return n(e,l,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:i,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...c}[t]):({...o,...c})[t]===r})?[...e,r,i]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},79567:(e,t,r)=>{r.d(t,{sr:()=>o,st:()=>a});var i=r(12115),s=r(11500),n=r(23796);function a(e){let t=(0,i.useCallback)((t,r)=>{(0,s.u4)(`${e}_${t}`,r)},[e]),r=(0,i.useCallback)((t,r,i)=>{(0,s.u4)(`${e}_error`,{error_type:t,error_message:r,...i})},[e]),n=(0,i.useCallback)((t,r)=>{(0,s.u4)(`${e}_performance`,{metric:t,value:Math.round(r)})},[e]),a=(0,i.useCallback)((t,r)=>{(0,s.u4)(`${e}_feature`,{feature:t,...r})},[e]),o=(0,i.useCallback)((t,r,i)=>{(0,s.u4)(`${e}_engagement`,{action:t,duration:r||0,...i})},[e]),l=(0,i.useCallback)((t,r)=>{(0,s.u4)("upgrade_conversion",{from_tool:e,to_feature:t,cta_location:r})},[e]),c=(0,i.useCallback)(()=>{o("session_started")},[o]),d=(0,i.useCallback)(e=>{o("session_ended",e)},[o]);return{trackEvent:t,trackError:r,trackPerformance:n,trackFeature:a,trackEngagement:o,trackUpgrade:l,startSession:c,endSession:d}}function o(e){let t=(0,i.useMemo)(()=>new n.ConversionTracker(e),[e]),r=(0,i.useCallback)((r,i)=>{t.trackFileSelected(r,i),(0,s.u4)(`${e}_file_selected`,{fileSize:r,fileType:i})},[e,t]),a=(0,i.useCallback)(()=>{t.trackConversionStarted(),(0,s.u4)(`${e}_conversion_started`)},[e,t]),o=(0,i.useCallback)((r,i)=>{t.trackConversionCompleted(r,i),(0,s.u4)(`${e}_conversion_completed`,{success:r,...i})},[e,t]),l=(0,i.useCallback)((r=!0)=>{t.trackDownload(r),(0,s.u4)(`${e}_download`,{success:r})},[e,t]);return{conversionTracker:t,trackFileSelected:r,trackConversionStarted:a,trackConversionCompleted:o,trackDownload:l}}},82714:(e,t,r)=>{r.d(t,{J:()=>c});var i=r(95155),s=r(12115),n=r(40968),a=r(74466),o=r(24026);let l=(0,a.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)(n.b,{ref:r,className:(0,o.cn)(l(),e),...t}));c.displayName=n.b.displayName},88482:(e,t,r)=>{r.d(t,{BT:()=>c,Wu:()=>d,ZB:()=>l,Zp:()=>a,aR:()=>o,wL:()=>u});var i=r(95155),s=r(12115),n=r(24026);let a=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)("div",{ref:r,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));a.displayName="Card";let o=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)("div",{ref:r,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",e),...t}));o.displayName="CardHeader";let l=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)("div",{ref:r,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",e),...t}));l.displayName="CardTitle";let c=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)("div",{ref:r,className:(0,n.cn)("text-sm text-muted-foreground",e),...t}));c.displayName="CardDescription";let d=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)("div",{ref:r,className:(0,n.cn)("p-6 pt-0",e),...t}));d.displayName="CardContent";let u=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)("div",{ref:r,className:(0,n.cn)("flex items-center p-6 pt-0",e),...t}));u.displayName="CardFooter"},90088:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(95155),s=r(12115),n=r(4884),a=r(24026);let o=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)(n.bL,{className:(0,a.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:(0,i.jsx)(n.zi,{className:(0,a.cn)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));o.displayName=n.bL.displayName},91788:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(19946).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},97168:(e,t,r)=>{r.d(t,{$:()=>c,r:()=>l});var i=r(95155),s=r(12115),n=r(99708),a=r(74466),o=r(24026);let l=(0,a.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-12 px-4 py-2 min-h-[48px]",sm:"h-12 rounded-md px-3 min-h-[48px]",lg:"h-14 roun
1ded-md px-8 min-h-[56px]",icon:"h-12 w-12 min-h-[48px] min-w-[48px]"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef(({className:e,variant:t,size:r,asChild:s=!1,...a},c)=>{let d=s?n.DX:"button";return(0,i.jsx)(d,{className:(0,o.cn)(l({variant:t,size:r,className:e})),ref:c,...a})});c.displayName="Button"},99474:(e,t,r)=>{r.d(t,{T:()=>a});var i=r(95155),s=r(12115),n=r(24026);let a=s.forwardRef(({className:e,...t},r)=>(0,i.jsx)("textarea",{className:(0,n.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));a.displayName="Textarea"}}]);
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.