1import{Aa as e,At as t,C as n,Cn as r,Ct as i,Et as a,Fo as o,Io as s,Ja as c,Lg as l,Lo as u,Ma as d,Mg as f,Oa as p,Po as m,S as h,Sn as g,St as _,Tn as v,Tt as y,Ug as b,Ya as x,_ as S,a as C,b as w,bn as T,bt as E,dr as D,i as O,ja as k,jt as A,ka as j,qa as ee,r as M,ur as te,v as ne,wn as re,wt as ie,x as ae,xn as oe,xt as se,y as ce,yt as le,zg as ue}from"./messages-B7vy2gX4.js";import{t as de}from"./navigation-DVitfQce.js";import{t as N}from"./arrow-right-QCuCyViq.js";import{t as fe}from"./braces-DnNKDgiI.js";import{t as pe}from"./posts-BbyOAPiz.js";import{t as me}from"./chevron-down-v3RMRywQ.js";import{t as he}from"./chevron-up-B2JB6EAP.js";import{t as ge}from"./clipboard-paste-BN5as6Oz.js";import{t as _e}from"./download-7OtECDDf.js";import{n as ve,t as P}from"./list-tree-DSgIitg2.js";import{t as F}from"./file-code-2-CVgW2Ew2.js";import{t as ye}from"./file-image-Bgl0B5LT.js";import{t as I}from"./file-text-S5FBMYk7.js";import{t as be}from"./file-type-N8sU9n3_.js";import{n as xe,t as Se}from"./header-BuguHzTE.js";import{t as Ce}from"./image-B6KAFty3.js";import{t as we}from"./presentation-BlunZkWu.js";import{t as Te}from"./sparkles-BS1nff9f.js";import{t as Ee}from"./table-2-C5J_NWZ7.js";import{t as L}from"./upload-B_6mcJWH.js";import{d as De,s as Oe}from"./index-CI4CH93Q.js";import{t as R}from"./utils-DXalBF5w.js";import{B as z,D as B,E as V,R as ke,a as H,n as Ae,r as je,t as Me}from"./button-scB-LEnO.js";import{H as U,h as Ne,t as W,u as Pe}from"./createBaseUIEventDetails-DqK8p_0w.js";import{$ as Fe,Ht as Ie,Kt as Le,Q as Re,c as ze,et as Be,f as Ve,it as He,l as Ue,nt as We,rt as G,s as Ge,tt as Ke,u as qe}from"./useOpenInteractionType-BwaDuis4.js";import{t as Je}from"./useControlled-maph6Vm_.js";import{c as Ye,n as Xe,s as Ze}from"./useCompositeListItem-CIkrUWnT.js";import{t as K}from"./dynamic-DR3V6llA.js";import{t as Qe}from"./blog-card-720eyLqn.js";var $e=De(`file-search`,[[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3`,key:`ms7g94`}],[`path`,{d:`m9 18-1.5-1.5`,key:`1j6qii`}],[`circle`,{cx:`5`,cy:`14`,r:`3`,key:`ufru5t`}]]),q=b(ue(),1),J=l();function et(e){return[{key:`markdown-pdf`,title:e.markdownPdf,description:e.markdownPdfDescription,href:`/markdown-to-pdf`,accept:`.md,.markdown,.txt,text/markdown,text/plain`,icon:I},{key:`pdf-markdown`,title:e.pdfMarkdown,description:e.pdfMarkdownDescription,href:`/pdf-to-markdown`,accept:`.pdf,application/pdf`,icon:I},{key:`word-markdown`,title:e.wordMarkdown,description:e.wordMarkdownDescription,href:`/word-to-markdown`,accept:`.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document`,icon:be},{key:`image-markdown`,title:e.imageMarkdown,description:e.imageMarkdownDescription,href:`/image-to-markdown`,accept:`image/*`,icon:ye},{key:`html-markdown`,title:e.htmlMarkdown,description:e.htmlMarkdownDescription,href:`/html-to-markdown`,accept:`.html,.htm,text/html`,icon:F},{key:`json-markdown`,title:e.jsonMarkdown,description:e.jsonMarkdownDescription,href:`/json-to-markdown`,accept:`.json,application/json`,icon:fe},{key:`csv-markdown`,title:e.csvMarkdown,description:e.csvMarkdownDescription,href:`/csv-to-markdown`,accept:`.csv,.tsv,text/csv,text/tab-separated-values,text/plain`,icon:Ee},{key:`pptx-markdown`,title:e.pptxMarkdown,description:e.pptxMarkdownDescription,href:`/pptx-to-markdown`,accept:`.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation`,icon:we},{key:`epub-markdown`,title:e.epubMarkdown,description:e.epubMarkdownDescription,href:`/epub-to-markdown`,accept:`.epub,application/epub+zip`,icon:P}]}function tt({tools:e,labels:t,className:n}){return typeof window>`u`?(0,J.jsx)(rt,{labels:t,className:n}):(0,J.jsx)(nt,{tools:e,labels:t,className:n})}function nt({tools:e,labels:t,className:n}){let[r,i]=(0,q.useState)(!1),a=(0,q.useRef)(null),o=e.map(e=>e.accept).join(`,`);function s(t){let n=t.name.toLowerCase();return t.type.startsWith(`image/`)?e.find(e=>e.key===`image-markdown`):t.type===`application/pdf`||n.endsWith(`.pdf`)?e.find(e=>e.key===`pdf-markdown`):n.endsWith(`.doc`)||n.endsWith(`.docx`)?e.find(e=>e.key===`word-markdown`):t.type===`text/html`||n.endsWith(`.html`)||n.endsWith(`.htm`)?e.find(e=>e.key===`html-markdown`):t.type===`application/json`||n.endsWith(`.json`)?e.find(e=>e.key===`json-markdown`):n.endsWith(`.csv`)||n.endsWith(`.tsv`)||t.type===`text/csv`||t.type===`text/tab-separated-values`?e.find(e=>e.key===`csv-markdown`):n.endsWith(`.pptx`)?e.find(e=>e.key===`pptx-markdown`):n.endsWith(`.epub`)?e.find(e=>e.key===`epub-markdown`):e.find(e=>
1e.key===`markdown-pdf`)??e[0]}async function c(e,t){if(t===`markdown-pdf`){sessionStorage.setItem(`to-md.initialMarkdown`,await e.text()),sessionStorage.setItem(`to-md.initialFileName`,e.name);return}if(t===`image-markdown`){let t=await new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result??``)),r.onerror=()=>n(r.error),r.readAsDataURL(e)});sessionStorage.setItem(`to-md.initialImageDataUrl`,t),sessionStorage.setItem(`to-md.initialImageFileName`,e.name)}}async function l(t){let n=t?s(t):e[0];n&&(t&&await c(t,n.key),window.location.assign(n.href))}function u(e){let t=e.target.files?.[0];l(t),e.target.value=``}function d(e){e.preventDefault(),i(!1);let t=e.dataTransfer.files?.[0];l(t)}return(0,J.jsx)(`div`,{className:R(`w-full overflow-hidden rounded-2xl border border-border bg-card shadow-2xl shadow-primary/10`,n),children:(0,J.jsxs)(`div`,{className:R(`flex min-h-[160px] flex-col items-center justify-center border-dashed p-4 text-center transition-colors sm:min-h-[190px] sm:p-6`,r&&`bg-primary/10`),onDragOver:e=>{e.preventDefault(),i(!0)},onDragLeave:()=>i(!1),onDrop:d,children:[(0,J.jsx)(`input`,{ref:a,type:`file`,className:`sr-only`,accept:o,onChange:u}),(0,J.jsx)(`div`,{className:`mb-2 flex size-10 items-center justify-center rounded-xl bg-primary/10 text-primary`,children:(0,J.jsx)(L,{className:`size-5`,strokeWidth:1.8})}),(0,J.jsx)(`h2`,{className:`mt-1 max-w-xl font-serif text-xl font-medium tracking-normal sm:text-2xl`,children:t.dropTitle}),(0,J.jsx)(`p`,{className:`mt-1.5 max-w-md text-sm leading-5 text-muted-foreground`,children:t.dropDescription}),(0,J.jsxs)(Me,{type:`button`,size:`lg`,className:`mt-3 h-9 rounded-full px-5`,onClick:()=>a.current?.click(),children:[(0,J.jsx)(L,{className:`size-4`}),t.browse]})]})})}function rt({labels:e,className:t}){return(0,J.jsx)(`div`,{className:R(`w-full overflow-hidden rounded-2xl border border-border bg-card shadow-2xl shadow-primary/10`,t),children:(0,J.jsxs)(`div`,{className:`flex min-h-[160px] flex-col items-center justify-center p-4 text-center sm:min-h-[190px] sm:p-6`,children:[(0,J.jsx)(`div`,{className:`mb-2 flex size-10 items-center justify-center rounded-xl bg-primary/10 text-primary`,children:(0,J.jsx)(L,{className:`size-5`,strokeWidth:1.8})}),(0,J.jsx)(`h2`,{className:`mt-1 max-w-xl font-serif text-xl font-medium tracking-normal sm:text-2xl`,children:e.dropTitle}),(0,J.jsx)(`p`,{className:`mt-1.5 max-w-md text-sm leading-5 text-muted-foreground`,children:e.dropDescription}),(0,J.jsxs)(`span`,{className:`mt-3 inline-flex h-9 items-center gap-2 rounded-full bg-primary px-5 text-sm font-medium text-primary-foreground`,children:[(0,J.jsx)(L,{className:`size-4`}),e.browse]})]})})}function it(){let e=[{href:`/image-to-markdown`,label:oe()},{href:`/pdf-to-markdown`,label:v()},{href:`/word-to-markdown`,label:r()},{href:`/markdown-to-pdf`,label:D()}],n=et({markdownPdf:D(),markdownPdfDescription:te(),pdfMarkdown:v(),pdfMarkdownDescription:re(),wordMarkdown:r(),wordMarkdownDescription:g(),imageMarkdown:oe(),imageMarkdownDescription:T(),htmlMarkdown:A(),htmlMarkdownDescription:t(),jsonMarkdown:ie(),jsonMarkdownDescription:i(),csvMarkdown:a(),csvMarkdownDescription:y(),pptxMarkdown:_(),pptxMarkdownDescription:se(),epubMarkdown:E(),epubMarkdownDescription:le()});return(0,J.jsxs)(`section`,{className:`relative isolate overflow-hidden border-b border-border bg-background px-4 pb-8 pt-6 sm:pb-12 sm:pt-10`,children:[(0,J.jsx)(`div`,{className:`absolute inset-0 -z-10 bg-[linear-gradient(to_bottom,#ffffff,transparent_38%),radial-gradient(circle_at_20%_12%,rgba(29,78,216,0.12),transparent_28%),radial-gradient(circle_at_82%_22%,rgba(245,158,11,0.16),transparent_24%)] dark:bg-[linear-gradient(to_bottom,rgba(255,255,255,0.06),transparent_36%),radial-gradient(circle_at_20%_12%,rgba(96,165,250,0.16),transparent_28%),radial-gradient(circle_at_82%_22%,rgba(245,158,11,0.15),transparent_24%)]`}),(0,J.jsxs)(`div`,{className:`mx-auto flex max-w-6xl flex-col items-center text-center`,children:[(0,J.jsx)(`p`,{className:`mb-2 text-xs font-medium uppercase tracking-normal text-muted-foreground`,children:u()}),(0,J.jsx)(`h1`,{className:`max-w-4xl font-serif text-3xl font-medium leading-tight tracking-normal text-foreground sm:text-5xl`,children:s()}),(0,J.jsx)(`p`,{className:`mt-3 max-w-3xl text-sm leading-6 text-muted-foreground sm:text-base`,children:o()}),(0,J.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center justify-center gap-1.5`,children:[(0,J.jsx)(`span`,{className:`text-xs font-medium text-muted-foreground`,children:m()}),e.map(e=>(0,J.jsx)(de,{href:e.href,className:`rounded-full border border-border bg-background px-2.5 py-1 text-xs font-medium text-foreground transition-colors hover:border-primary/50 hover:text-primary`,children:e.label},e.href))]}),(0,J.jsx)(`div`,{id:`conversion-upload`,className:`mt-5 w-full scroll-mt-24`,children:(0,J.jsx)(tt,{tools:n,labels:{dropTitle:x(),dropDescription:c(),browse:ee()}})})]})]})}var at=[{key:`rich_text_markdown`,icon:I,href:`/rich-text-to-markdown`},{key:`view_md_file`,icon:$e,href:`/view-md-file`},{key:`markdown_pdf`,icon:I,href:`/markdown-to-pdf`},{key:`pdf_markdown`,icon:I,href:`/pdf-to-markdown`},{key:`word_markdown`,icon:be,href:`/word-to-markdown`},{key:`image_markdown`,icon:ye,href:`/image-to-markdown`},{key:`html_markdown`,icon:F,href:`/html-to-markdown`},{key:`markdown_html`,icon:ve,href:`/markdown-to-html`}],ot=[{key:`markdown_rich_text`,icon:I,href:`/markdown-to-rich-text`},{key:`markdown_text`,icon:I,href:`/markdown-to-text`},{key:`text_markdown`,icon:I,href:`/text-to-markdown`},{key:`csv_markdown`,icon:Ee,href:`/csv-to-markdown`},{key:`json_markdown`,icon:fe,href:`/json-to-markdown`},{key:`pptx_markdown`,icon:we,href:`/pptx-to-markdown`},{key:`epub_markdown`,icon:P,href:`/epub-to-markdown`},{key:`markdown_image`,icon:Ce,href:`/markdown-to-image`}];function st(){return(0,J.jsx)(`section`,{id:`tools`,className:`px-4 py-20 sm:py-24`,children:(0,J.jsxs)(`div`,{id:`features`,className:`mx-auto max-w-6xl scroll-mt-20`,children:[(0,J.jsxs)(`div`,{className:`mb-10 max-w-2xl`,children:[(0,J.jsx)(`p`,{className:`text-sm font-medium text-muted-foreground`,children:d()}),(0,J.jsx)(`h2`,{className:`mt-3 font-serif text-3xl font-medium leading-tight tracking-normal sm:text-5xl`,children:k()}),(0,J.jsx)(`p`,{className:`mt-4 text-sm leading-6 text-muted-foreground sm:text-base`,children:e()})]}),(0,J.jsx)(ct,{title:j(),tools:at}),(0,J.jsx)(ct,{title:p(),tools:ot,className:`mt-12`})]})})}function ct({title:e,tools:t,className:n}){return(0,J.jsxs)(`div`,{className:n,children:[(0,J.jsx)(`h3`,{className:`mb-4 text-sm font-semibold uppercase tracking-normal text-muted-foreground`,children:e}),(0,J.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`,children:t.map(({key:e,icon:t,href:n})=>(0,J.jsxs)(`a`,{href:n,className:`group flex min-h-32 items-start gap-4 roun
1ded-lg border border-border bg-card p-5 transition-colors hover:border-foreground/30 hover:bg-muted/30`,children:[(0,J.jsx)(`span`,{className:`flex size-11 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground`,children:(0,J.jsx)(t,{className:`size-5`,strokeWidth:1.75})}),(0,J.jsxs)(`span`,{className:`min-w-0 flex-1 text-left`,children:[(0,J.jsxs)(`span`,{className:`flex items-center justify-between gap-3`,children:[(0,J.jsx)(`span`,{className:`text-base font-medium`,children:K(`landing.tools.${e}.title`)}),(0,J.jsx)(N,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5 group-hover:text-foreground`})]}),(0,J.jsx)(`span`,{className:`mt-2 block text-sm leading-6 text-muted-foreground`,children:K(`landing.tools.${e}.description`)})]})]},e))})]})}var lt=q.createContext(void 0);function Y(){let e=q.useContext(lt);if(e===void 0)throw Error(z(10));return e}var ut={value:()=>null},dt=q.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,hiddenUntilFound:a,keepMounted:o,loopFocus:s=!0,onValueChange:c,multiple:l=!1,orientation:u=`vertical`,value:d,defaultValue:f,...p}=e,m=Ze(),h=q.useMemo(()=>{if(d===void 0)return f??[]},[d,f]),g=V(c),_=q.useRef([]),[v,y]=Je({controlled:d,default:h,name:`Accordion`,state:`value`}),b=V((e,t)=>{let n=W(Pe);if(!l){let t=v[0]===e?[]:[e];if(g(t,n),n.isCanceled)return;y(t)}else if(t){let t=v.slice();if(t.push(e),g(t,n),n.isCanceled)return;y(t)}else{let t=v.filter(t=>t!==e);if(g(t,n),n.isCanceled)return;y(t)}}),x=q.useMemo(()=>({value:v,disabled:i,orientation:u}),[v,i,u]),S=q.useMemo(()=>({accordionItemRefs:_,direction:m,disabled:i,handleValueChange:b,hiddenUntilFound:a??!1,keepMounted:o??!1,loopFocus:s,orientation:u,state:x,value:v}),[m,i,b,a,o,s,u,x,v]),C=B(`div`,e,{state:x,ref:t,props:[{dir:m,role:`region`},p],stateAttributesMapping:ut});return(0,J.jsx)(lt.Provider,{value:S,children:(0,J.jsx)(Ye,{elementsRef:_,children:C})})});function ft(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,a=t!==void 0,[o,s]=Je({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:c,setMounted:l,transitionStatus:u}=Re(o,!0,!0),[d,f]=q.useState(o),[{height:p,width:m},h]=q.useState({height:void 0,width:void 0}),g=U(),[_,v]=q.useState(),y=_??g,[b,x]=q.useState(!1),[S,C]=q.useState(!1),w=q.useRef(null),T=q.useRef(null),E=q.useRef(null),D=q.useRef(null),O=Be(D,!1),k=V(e=>{let t=!o,n=W(Ne,e.nativeEvent);if(r(t,n),n.isCanceled)return;let i=D.current;T.current===`css-animation`&&i!=null&&i.style.removeProperty(`animation-name`),!b&&!S&&(T.current!=null&&T.current!==`css-animation`&&!c&&t&&l(!0),T.current===`css-animation`&&(!d&&t&&f(!0),!c&&t&&l(!0))),s(t),T.current===`none`&&c&&!t&&l(!1)});return H(()=>{a&&T.current===`none`&&!S&&!o&&l(!1)},[a,S,o,t,l]),q.useMemo(()=>({abortControllerRef:w,animationTypeRef:T,disabled:i,handleTrigger:k,height:p,mounted:c,open:o,panelId:y,panelRef:D,runOnceAnimationsFinish:O,setDimensions:h,setHiddenUntilFound:x,setKeepMounted:C,setMounted:l,setOpen:s,setPanelIdState:v,setVisible:f,transitionDimensionRef:E,transitionStatus:u,visible:d,width:m}),[w,T,i,k,p,c,o,y,D,O,h,x,C,l,s,f,E,u,d,m])}var pt=q.createContext(void 0);function mt(){let e=q.useContext(pt);if(e===void 0)throw Error(z(15));return e}var ht=q.createContext(void 0);function X(){let e=q.useContext(ht);if(e===void 0)throw Error(z(9));return e}var Z=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ke.startingStyle]=`startingStyle`,e[e.endingStyle=Ke.endingStyle]=`endingStyle`,e}({}),gt=function(e){return e.panelOpen=`data-panel-open`,e}({}),_t={[Z.open]:``},vt={[Z.closed]:``},yt={open(e){return e?{[gt.panelOpen]:``}:null}},bt={open(e){return e?_t:vt}},xt=function(e){return e.index=`data-index`,e.disabled=`data-disabled`,e.open=`data-open`,e}({}),Q={...bt,index:e=>Number.isInteger(e)?{[xt.index]:String(e)}:null,...We,value:()=>null},St=q.forwardRef(function(e,t){let{className:n,disabled:r=!1,onOpenChange:i,render:a,value:o,...s}=e,{ref:c,index:l}=Xe(),u=ke(t,c),{disabled:d,handleValueChange:f,state:p,value:m}=Y(),h=U(),g=o??h,_=r||d,v=q.useMemo(()=>
1{if(!m)return!1;for(let e=0;e<m.length;e+=1)if(m[e]===g)return!0;return!1},[m,g]),y=V((e,t)=>{i?.(e,t),!t.isCanceled&&f(g,e)}),b=ft({open:v,onOpenChange:y,disabled:_}),x=q.useMemo(()=>({open:b.open,disabled:b.disabled,hidden:!b.mounted,transitionStatus:b.transitionStatus}),[b.open,b.disabled,b.mounted,b.transitionStatus]),S=q.useMemo(()=>({...b,onOpenChange:y,state:x}),[b,x,y]),C=q.useMemo(()=>({...p,index:l,disabled:_,open:v}),[_,l,v,p]),[w,T]=q.useState(U()),E=q.useMemo(()=>({open:v,state:C,setTriggerId:T,triggerId:w}),[v,C,T,w]),D=B(`div`,e,{state:C,ref:u,props:s,stateAttributesMapping:Q});return(0,J.jsx)(pt.Provider,{value:S,children:(0,J.jsx)(ht.Provider,{value:E,children:D})})}),Ct=q.forwardRef(function(e,t){let{render:n,className:r,...i}=e,{state:a}=X();return B(`h3`,e,{state:a,ref:t,props:i,stateAttributesMapping:Q})});function wt(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Tt=new Set([Ge,qe,Ue,ze,Ve,`End`]);function Et(e){let{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){let r=t[e];if(!wt(r)){let e=r?.querySelector(`[type="button"], [role="button"]`);e&&!wt(e)&&n.push(e)}}return n}var Dt=q.forwardRef(function(e,t){let{disabled:n,className:r,id:i,render:a,nativeButton:o=!0,...s}=e,{panelId:c,open:l,handleTrigger:u,disabled:d}=mt(),{getButtonProps:f,buttonRef:p}=je({disabled:n??d,focusableWhenDisabled:!0,native:o,composite:!0}),{accordionItemRefs:m,direction:h,loopFocus:g,orientation:_}=Y(),v=h===`rtl`,y=_===`horizontal`,{state:b,setTriggerId:x,triggerId:S}=X();H(()=>(i&&x(i),()=>{x(void 0)}),[i,x]);let C=q.useMemo(()=>({"aria-controls":l?c:void 0,"aria-expanded":l,id:S,tabIndex:0,onClick:u,onKeyDown(e){if(!Tt.has(e.key))return;Ie(e);let t=Et(m),n=t.length-1,r=-1,i=t.indexOf(e.target);function a(){r=g?i+1>n?0:i+1:Math.min(i+1,n)}function o(){r=g&&i===0?n:i-1}switch(e.key){case Ge:y||a();break;case qe:y||o();break;case Ue:y&&(v?o():a());break;case ze:y&&(v?a():o());break;case`Home`:r=0;break;case`End`:r=n;break;default:break}r>-1&&t[r].focus()}}),[m,u,S,y,v,g,l,c]);return B(`button`,e,{state:b,ref:[t,p],props:[C,s,f],stateAttributesMapping:yt})}),Ot=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e}({});function kt(e){let{abortControllerRef:t,animationTypeRef:n,externalRef:r,height:i,hiddenUntilFound:a,keepMounted:o,id:s,mounted:c,onOpenChange:l,open:u,panelRef:d,runOnceAnimationsFinish:f,setDimensions:p,setMounted:m,setOpen:h,setVisible:g,transitionDimensionRef:_,visible:v,width:y}=e,b=q.useRef(!1),x=q.useRef(null),S=q.useRef(u),C=q.useRef(u),w=He(),T=q.useMemo(()=>n.current===`css-animation`?!v:!u&&!c,[u,c,v,n]),E=ke(r,d,V(e=>{if(!e)return;if(n.current==null||_.current==null){let t=getComputedStyle(e),r=t.animationName!==`none`&&t.animationName!==``,i=t.transitionDuration!==`0s`&&t.transitionDuration!==``;r&&i||(t.animationName===`none`&&t.transitionDuration!==`0s`?n.current=`css-transition`:t.animationName!==`none`&&t.transitionDuration===`0s`?n.current=`css-animation`:n.current=`none`),e.getAttribute(Ot.orientation)===`horizontal`||t.transitionProperty.indexOf(`width`)>-1?_.current=`width`:_.current=`height`}if(n.current!==`css-transition`)return;(i===void 0||y===void 0)&&(p({height:e.scrollHeight,width:e.scrollWidth}),C.current&&e.style.setProperty(`transition-duration`,`0s`));let t=-1,r=-1;return t=G.request(()=>{C.current=!1,r=G.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})}),()=>{G.cancel(t),G.cancel(r)}}));return H(()=>{if(n.current!==`css-transition`)return;let e=d.current;if(!e)return;let r=-1;if(t.current!=null&&(t.current.abort(),t.current=null),u){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)}),!C.current&&!o&&e.setAttribute(Z.startingStyle,``),p({height:e.scrollHeight,width:e.scrollWidth}),r=G.request(()=>{Object.entries(t).forEach(([t,n])=>{n===``?e.style.removeProperty(t):e.style.setProperty(t,n)})})}else{if(e.scrollHeight===0&&e.scrollWidth===0)return;p({height:e.scrollHeight,width:e.scrollWidth}
1);let n=new AbortController;t.current=n;let r=n.signal,i=null,a=Z.endingStyle;return i=new MutationObserver(o=>{o.some(e=>e.type===`attributes`&&e.attributeName===a)&&(i?.disconnect(),i=null,f(()=>{p({height:0,width:0}),e.style.removeProperty(`content-visibility`),m(!1),t.current===n&&(t.current=null)},r))}),i.observe(e,{attributes:!0,attributeFilter:[a]}),()=>{i?.disconnect(),w.cancel(),t.current===n&&(n.abort(),t.current=null)}}return()=>{G.cancel(r)}},[t,n,w,a,o,c,u,d,f,p,m]),H(()=>{if(n.current!==`css-animation`)return;let e=d.current;e&&(x.current=e.style.animationName||x.current,e.style.setProperty(`animation-name`,`none`),p({height:e.scrollHeight,width:e.scrollWidth}),!S.current&&!b.current&&e.style.removeProperty(`animation-name`),u?(t.current!=null&&(t.current.abort(),t.current=null),m(!0),g(!0)):(t.current=new AbortController,f(()=>{m(!1),g(!1),t.current=null},t.current.signal)))},[t,n,u,d,f,p,m,g,v]),Le(()=>{let e=G.request(()=>{S.current=!1});return()=>G.cancel(e)}),H(()=>{if(!a)return;let e=d.current;if(!e)return;let t=-1,n=-1;return u&&b.current&&(e.style.transitionDuration=`0s`,p({height:e.scrollHeight,width:e.scrollWidth}),t=G.request(()=>{b.current=!1,n=G.request(()=>{setTimeout(()=>{e.style.removeProperty(`transition-duration`)})})})),()=>{G.cancel(t),G.cancel(n)}},[a,u,d,p]),H(()=>{let e=d.current;e&&a&&T&&(e.setAttribute(`hidden`,`until-found`),n.current===`css-transition`&&e.setAttribute(Z.startingStyle,``))},[a,T,n,d]),q.useEffect(function(){let e=d.current;if(!e)return;function t(e){b.current=!0,h(!0),l(!0,W(Pe,e))}return e.addEventListener(`beforematch`,t),()=>{e.removeEventListener(`beforematch`,t)}},[l,d,h]),q.useMemo(()=>({props:{hidden:T,id:s,ref:E}}),[T,s,E])}var $=function(e){return e.accordionPanelHeight=`--accordion-panel-height`,e.accordionPanelWidth=`--accordion-panel-width`,e}({}),At=q.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,id:a,render:o,...s}=e,{hiddenUntilFound:c,keepMounted:l}=Y(),{abortControllerRef:u,animationTypeRef:d,height:f,mounted:p,onOpenChange:m,open:h,panelId:g,panelRef:_,runOnceAnimationsFinish:v,setDimensions:y,setHiddenUntilFound:b,setKeepMounted:x,setMounted:S,setOpen:C,setVisible:w,transitionDimensionRef:T,visible:E,width:D,setPanelIdState:O,transitionStatus:k}=mt(),A=r??c,j=i??l;H(()=>{if(a)return O(a),()=>{O(void 0)}},[a,O]),H(()=>{b(A)},[b,A]),H(()=>{x(j)},[x,j]),Fe({open:h&&k===`idle`,ref:_,onComplete(){h&&y({width:void 0,height:void 0})}});let{props:ee}=kt({abortControllerRef:u,animationTypeRef:d,externalRef:t,height:f,hiddenUntilFound:A,id:a??g,keepMounted:j,mounted:p,onOpenChange:m,open:h,panelRef:_,runOnceAnimationsFinish:v,setDimensions:y,setMounted:S,setOpen:C,setVisible:w,transitionDimensionRef:T,visible:E,width:D}),{state:M,triggerId:te}=X(),ne=B(`div`,e,{state:q.useMemo(()=>({...M,transitionStatus:k}),[M,k]),ref:[t,_],props:[ee,{"aria-labelledby":te,role:`region`,style:{[$.accordionPanelHeight]:f===void 0?`auto`:`${f}px`,[$.accordionPanelWidth]:D===void 0?`auto`:`${D}px`}},s],stateAttributesMapping:Q});return j||A||!j&&p?ne:null});function jt({className:e,...t}){return(0,J.jsx)(dt,{"data-slot":`accordion`,className:R(`flex w-full flex-col`,e),...t})}function Mt({className:e,...t}){return(0,J.jsx)(St,{"data-slot":`accordion-item`,className:R(`not-last:border-b`,e),...t})}function Nt({className:e,children:t,...n}){return(0,J.jsx)(Ct,{className:`flex`,children:(0,J.jsxs)(Dt,{"data-slot":`accordion-trigger`,className:R(`group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground`,e),...n,children:[t,(0,J.jsx)(me,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),(0,J.jsx)(he,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function Pt({className:e,children:t,...n}){return(0,J.jsx)(At,{"data-slot":`accordion-content`,className:`overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up`,...n,children:(0,J.jsx)(`div`,{className:R(`h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,e),children:t})})}var Ft=[`privacy`,`formats`,`ocr`,`llm`,`free`];function It(){if(typeof window>`u`)return(0,J.jsx)(Lt,{});let[e,t]=(0,q.useState)(!1);return(0,q.useEffect)(()=>{t(!0)},[]),e?(0,J.jsx)(`section`,{id:`faq`,className:`border-t border-border px-4 py-20 sm:py-24`,children:(0,J.jsxs)(`div`,{className:`mx-auto max-w-3xl`,children:[(0,J.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,J.jsx)(`h2`,{className:`font-serif font-medium text-3xl leading-tight tracking-normal sm:text-5xl`,children:n()}),(0,J.jsx)(`p`,{className:`mt-5 text-muted-foreground`,children:h()})]}),(0,J.jsx)(jt,{className:`w-full`,children:Ft.map(e=>
1(0,J.jsxs)(Mt,{value:e,children:[(0,J.jsx)(Nt,{className:`cursor-pointer py-6 text-left text-base font-medium hover:no-underline`,children:K(`landing.faq.${e}.question`)}),(0,J.jsx)(Pt,{className:`pb-6 text-muted-foreground leading-relaxed`,children:K(`landing.faq.${e}.answer`)})]},e))})]})}):(0,J.jsx)(Lt,{})}function Lt(){return(0,J.jsx)(`section`,{id:`faq`,className:`border-t border-border px-4 py-20 sm:py-24`,children:(0,J.jsxs)(`div`,{className:`mx-auto max-w-3xl`,children:[(0,J.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,J.jsx)(`h2`,{className:`font-serif font-medium text-3xl leading-tight tracking-normal sm:text-5xl`,children:n()}),(0,J.jsx)(`p`,{className:`mt-5 text-muted-foreground`,children:h()})]}),(0,J.jsx)(`div`,{className:`divide-y divide-border`,children:Ft.map(e=>(0,J.jsxs)(`div`,{className:`py-6`,children:[(0,J.jsx)(`h3`,{className:`text-base font-medium`,children:K(`landing.faq.${e}.question`)}),(0,J.jsx)(`p`,{className:`mt-3 leading-relaxed text-muted-foreground`,children:K(`landing.faq.${e}.answer`)})]},e))})]})})}var Rt=[{key:`paste`,icon:ge},{key:`convert`,icon:Te},{key:`export`,icon:_e}];function zt(){return(0,J.jsx)(`section`,{id:`start-conversion`,className:`border-t border-border px-4 py-20 sm:py-24`,children:(0,J.jsx)(`div`,{className:`mx-auto max-w-6xl`,children:(0,J.jsxs)(`div`,{className:`grid gap-10 rounded-lg border border-border bg-primary/5 p-8 lg:grid-cols-[0.9fr_1.1fr] lg:items-start`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`p`,{className:`text-sm font-medium text-muted-foreground`,children:ae()}),(0,J.jsx)(`h2`,{className:`mt-3 font-serif text-3xl font-medium leading-tight tracking-normal sm:text-5xl`,children:ce()}),(0,J.jsx)(`p`,{className:`mt-5 text-base leading-7 text-muted-foreground`,children:ne()}),(0,J.jsxs)(`a`,{href:`#conversion-upload`,className:R(Ae({size:`lg`}),`mt-7 h-11 gap-2 rounded-full px-6`),children:[S(),(0,J.jsx)(N,{className:`size-4`})]})]}),(0,J.jsx)(`div`,{className:`grid gap-3`,children:Rt.map(({key:e,icon:t},n)=>(0,J.jsxs)(`div`,{className:`flex gap-4 rounded-lg border border-border bg-card p-5`,children:[(0,J.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground`,children:(0,J.jsx)(t,{className:`size-5`,strokeWidth:1.75})}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`p`,{className:`text-xs font-medium uppercase tracking-normal text-muted-foreground`,children:w({number:n+1})}),(0,J.jsx)(`h3`,{className:`mt-1 text-lg font-medium`,children:K(`landing.how.${e}.title`)}),(0,J.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-muted-foreground`,children:K(`landing.how.${e}.description`)})]})]},e))})]})})})}function Bt({posts:e}){let t=f();return e.length===0?null:(0,J.jsx)(`section`,{id:`blog`,className:`px-4 py-24 sm:py-32`,children:(0,J.jsxs)(`div`,{className:`mx-auto max-w-5xl`,children:[(0,J.jsxs)(`div`,{className:`text-center mb-20`,children:[(0,J.jsx)(`h2`,{className:`font-serif font-normal text-4xl sm:text-5xl tracking-tight`,children:C()}),(0,J.jsx)(`p`,{className:`mt-5 text-muted-foreground max-w-lg mx-auto`,children:O()})]}),(0,J.jsx)(`div`,{className:`grid gap-5 sm:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>(0,J.jsx)(Qe,{href:`/blog/${e.slug}`,title:e.title,description:e.description,image:e.image,date:pe(e.createdAt,t),authorName:e.authorName,authorImage:e.authorImage},e.slug))}),(0,J.jsx)(`div`,{className:`mt-10 text-center`,children:(0,J.jsxs)(de,{href:`/blog`,className:`inline-flex items-center gap-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground`,children:[M(),(0,J.jsx)(N,{className:`size-4`})]})})]})})}function Vt(){let{posts:e}=Oe.useLoaderData();return(0,J.jsxs)(`div`,{className:`min-h-screen flex flex-col bg-background text-foreground`,children:[(0,J.jsx)(Se,{}),(0,J.jsxs)(`main`,{children:[(0,J.jsx)(it,{}),(0,J.jsx)(st,{}),(0,J.jsx)(It,{}),(0,J.jsx)(Bt,{posts:e}),(0,J.jsx)(zt,{})]}),(0,J.jsx)(xe,{})]})}export{Vt as component};
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.