{"version":3,"file":"shared-lib.Buy5W7lQ.mjs","names":["useState","useMemo","useCallback","useRef","useId","_Fragment","c","g","__esmMin","ie","init_ssg_sandbox_shims","navigator","ne","window","_e","init_npm_react_dom_18_3_1","de","Ha","pe","p","c","init_jsx_runtime","init_npm_react_18_3_1","ce","addPropertyControls","init_framer_CaDWdxiz","RenderTarget","ControlType","isLabelTitle","s","t","re","m","w","ABBR_WORD","knowledgeLabel","line","max","cleanLine","splitBody","MAX_ENTRY_BODY","out","rest","body","win","cut","parsePastedKnowledge","raw","text","push","b","title","parts","i","part","category","lines","heading","l","buf","topLevelOnly","flush","block","bl","first","lab","labeled","words","compileKnowledge","blocks","item","input","q","a","pasted","chunks","usedSplit","seenEntry","e","key","f","fieldLines","owner","pageBlock","pageTextBlock","page","withPageText","k","pageText","stem","terms","STOP","docOf","hit","DOC_CACHE","head","bodyCount","d","indexOf","INDEX_CACHE","docs","df","idx","retrieveKnowledge","KNOWLEDGE_BUDGET","size","blockSize","n","budget","question","ctx","context","N","idf","phrases","scoreOf","add","inHead","inBody","scored","picked","used","x","sz","keep","buildSystemPrompt","r","opts","catalog","remainder","titles","pb","pageBody","trimSlash","u","resolveChatUrl","req","base","PROVIDER_URLS","prettyCite","kindOf","human","SOURCE_LABELS","tagged","kind","anywhere","parseCitationAndHandoff","clean","citation","handoff","from","streamChat","url","usingProxy","headers","response","handlers","status","code","reader","dec","full","finish","data","json","obj","choice","piece","done","value","parsed","readVisiblePageText","walker","root","el","node","style","total","cap","shouldFallback","provider","streamChatWithFallback","userSignal","userAborted","markUserAbort","run","tokens","finished","ac","onUser","timer","FIRST_TOKEN_TIMEOUT_MS","model","meta","err","resolve","FALLBACK_NOTE","second","WORKING_DEFAULT_MODEL","sampleStem","sampleTokens","SAMPLE_SYNONYMS","SAMPLE_STOP","sentence","sampleAnswer","entries","sampleEntries","qn","sampleNorm","qk","qw","close","closeScore","ew","shared","score","best","bestScore","fk","SAMPLE_CACHE","buildSampleEntries","fieldList","val","streamSampleAnswer","reply","signal","wait","onAbort","ms","pieces","step","positionParts","pillAnchor","r2","v","o","h","firstPaintAnchor","phone","badgeGap","currentTarget","isExportTarget","exp","hostKind","EDITOR_HOSTS","FRAMER_PUBLISHED_HOSTS","isEditorTarget","badgeClearance","BADGE_CLEARANCE","isCanvas","setupParam","onFramerEditorHost","hasSlot","parseColor","hexm","visibleEl","SKIP_SELECTOR","readHost","fallbackHost","HOST_SAMPLE_CAP","pick","list","sel","per","ok","wrapper","bg","stack","start","cur","bs","hs","btn","btn2","contrast","bts","fg","link","card","bodyFont","para","DEFAULT_TOKENS","fallbackHostLight","surface","guardContrast","bgc","nf","hex","rgba","deriveTokens","ov","deriveFromHost","P","has","hasP","hasS","hasT","hasR","flipHost","prim","tint","mix","nbg","toLight","nfg","acc","natural","lum","light","primary","onP","accent","pill","rctl","R","surfaceCol","inner","tokenStyle","hasConnection","cleanEndpoint","proxy","safeHref","squash","scheme","safeEmail","workerBase","chatSummary","messages","handoffMailto","addr","to","pageAddress","chatVault","CHAT_MEMORY","slot","createChatVault","useSharedCss","on","CSS_ID","ASKPILL_VERSION","STYLES","CSS_USERS","onSampleHost","SAMPLE_HOSTS","isExampleMode","isExampleTheme","sameCol","EXAMPLE_STYLE","exampleLeftovers","content","same","ex","pairs","defaultBusiness","defaultShortName","defaultLabel","defaultGreeting","defaultChips","defaultKnowledge","defaultFaqs","defaultHours","defaultServices","defaultContact","defaultPolicies","defaultHandoffEmail","name","pageIsExample","untouched","rows","norm","isDefaultKnowledge","isEmptyScan","decodeScan","shouldAutoScan","themeControls","nameFromTitle","GENERIC_TITLE","business","namesFor","shortName","label","siteTitle","doc","site","readSiteName","here","onHome","everyPage","TITLE_STORE","resolveNames","ownName","fromTitle","derive","Askpill","scanUi","setScanUi","liveScan","setLiveScan","kbView","setKbView","SCAN_STORE","scanCode","rawProps","scanData","props","applyScan","EXAMPLES","leftovers","businessP","shortNameP","labelP","greetingP","primaryP","surfaceP","textColorP","matchedThemeP","bookingUrlP","handoffEmailP","handoffEmail","bookingUrl","titleNames","setTitleNames","names","greeting","rawEntries","ownEntries","pastedEntries","pasteKnowledge","scannedEntries","knowledgeEntries","allEntries","mounted","setMounted","open","setOpen","hover","setHover","progress","setProgress","setPhone","host","setHost","hostRead","setHostRead","ver","setVer","forceRender","kb","setKb","announce","setAnnounce","showCode","setShowCode","codeCopied","setCodeCopied","tweaking","setTweaking","manualHint","setManualHint","refining","setRefining","scanCopied","setScanCopied","examplePage","setExamplePage","panel","setPanel","setInput","setMessages","stream","setStream","fallbackNote","setFallbackNote","errorMsg","setErrorMsg","setCitation","setHandoff","emailDraft","setEmailDraft","handoffSend","setHandoffSend","copied","setCopied","openIdx","setOpenIdx","activeChip","setActiveChip","inlineInputRef","progressRef","rafRef","shellRef","pillRef","panelRef","inputRef","abortRef","lastH","sessionRef","SHARED_SESSION","handledRef","returnFocusRef","uid","panelId","reduced","proxyUrl","proxyInvalid","endpoint","customUrl","connected","apiKey","css","editor","demo","setDemo","knowledge","faqs","exampleAnswers","ready","live","hostRef","buildRequestRef","readFailedRef","matchRef","createAutoMatch","match","autoTheme","mode","refineWithAI","matchedTheme","textColor","radius","runMatch","knowledgeDefault","knowledgeDefaultRef","scanAbort","runScan","auto","scanNow","sig","MAX_PAGES","origin","pages","crawlSite","ct","html","totalText","MIN_TEXT","draft","extract","acceptScanRef","scanSite","acceptScan","encodeScan","AUTO_SCAN","sub","connKey","autoScanOk","id","canvasNow","wantsLauncher","LAUNCHER","rmq","onRm","onResize","fonts","apply","prev","deb","later","mo","mq","onEnd","animateTo","instant","target","dur","OPEN_MS","CLOSE_MS","clamp","now","focusTimer","openPanel","inp","closePanel","active","inside","back","askRef","openRef","notifyLauncher","ownsLauncher","otherLauncher","vv","onKey","shell","panelEl","vw","vh","isPhone","ph","pp","position","atTop","vGap","mb","p0","hv","arrow","pw","Rr","nat","g","phoneLayout","rm","isClosing","eW","inOut","eH","cubicOut","lerp","mp","edge","bottom","rTop","rBot","vert","width","ci","scrim","ico","buildRequest","customModel","toneText","tone","faqList","compiledBase","hours","services","contact","policies","streamBuf","pushStream","resetStream","editorHint","ask","partial","learnFromPage","compiled","lastUser","system","lengthHint","replyLength","history","messagesForApi","fullBuf","runStream","note","handoffWhen","msg","kept","stop","view","viewOf","restoredRef","keepChat","CHAT_KEEPERS","mine","hb","visitorEmail","sendHandoff","last","attachChat","mailtoHandoff","short","placeholder","showChips","chips","dot","lockedCode","headFont","corners","spacing","schemeName","swatches","matchBar","IconSparkS","IconCheck","IconKey","liveChat","POSITION_OPTIONS","header","avatar","IconSpark","IconMin","IconX","BotMsg","IconMail","IconExt","bookingLabel","c$1","IconStop","IconUp","launcher","iconOnly","leftContent","scannedNow","scanBusy","scanned","scanSaved","scanButton","steps","autoScan","setDraft","patch","scanPanel","setEntry","j","setFaq","entryGroups","groupBy","faqGroups","en","notice","showSetupNotice","index","ASKPILL_WORKER_SOURCE","advancedNote","canvas","pending","shownOpen","inlineBar","c$2","isOpen","it","chipsRow","c$3","cite","caret","GEMINI_OPENAI_URL","POSITION_TITLES","init_Askpill","PREFIX","STORE","RADII","parse","y","describeHost","col","safe","check","controls","pr","askOnce","reject","refine","deps","encode","decode","cfg","state","saved","stale","set","rawControls","naturalScheme","lockIsStale","store","pickSaved","next","ai","shown","SCAN_PREFIX","SCAN_PREFIX_V1","PER_PAGE","ENTRY_BODY","ASSET","tidy","normaliseUrl","href","path","seenText","walk","foot","linksOf","seen","sitemapUrls","xml","sitemapIndexUrls","IMPORTANT","pathPriority","segs","deadline","startUrl","queue","queued","order","take","bi","maxPages","maps","robots","readMaps","texts","readOne","room","batch","RULES","pathOf","corpus","perPage","batchPages","len","maxChars","profilePages","sorted","profileMessages","batchMessages","faqMessages","digest","parseJson","keyOf","cleanEntries","source","cleanFaqs","cleanScan","str","em","sleep","gap","gate","started","call","attempt","makeRequest","batches","tick","firstError","profileP","results","profile","batchFaqs","es","cross","cleaned","B64","bitLen","widthFor","pack","bin","dict","nb","emit","wc","unpack","pos","bitsLeft","read","c0","plain","packed","groups","items","by","isUnedited","example","normList","isExample","scan","examples","own","VAULT_PREFIX","VAULT_IDLE_MS","DB_STORE","enc","b64","bytes","unb64","idbKeyStore","idb","tx","db","fn","memoryKeyStore","defaultStorage","cleanRecord","session","views","storage","subtle","cryptoObj","keyStore","slotName","keyId","aad","keyP","available","getKey","create","fresh","clear","job","record","iv","pt"],"sources":["https:/framerusercontent.com/modules/0SzWWBKlUJHYTJnUZtEX/fCUnIcMwABhWSRWlgb7N/Askpill.js"],"sourcesContent":["/**\n * Askpill engine: knowledge compile, system prompt, and OpenAI-compatible\n * SSE streaming. No SDKs. This module never stores or logs an API key.\n *\n * Gemini default endpoint:\n *   https://generativelanguage.googleapis.com/v1beta/openai/chat/completions\n *\n * Working default (Ilya Bot, Nov 11, 2026, relaying Zac): gemini-3.5-flash-lite.\n * gemini-3.8-flash stays in the model list but is not the selected default.\n * If a selected Gemini model 503s or hangs with zero tokens, fall back\n * automatically to gemini-3.5-flash-lite.\n */import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";export const GEMINI_OPENAI_URL=\"https://generativelanguage.googleapis.com/v1beta/openai/chat/completions\";export const WORKING_DEFAULT_MODEL=\"gemini-3.5-flash-lite\";/** @deprecated use WORKING_DEFAULT_MODEL */export const VERIFIED_FALLBACK_MODEL=WORKING_DEFAULT_MODEL;/** Available in the model dropdown; not the selected default. */export const OPTIONAL_GEMINI_MODELS=[\"gemini-3.5-flash-lite\",\"gemini-3.8-flash\",\"gemini-3.1-flash-lite\",\"gemini-flash-lite-latest\"];export const FIRST_TOKEN_TIMEOUT_MS=2e4;export const PROVIDER_URLS={gemini:GEMINI_OPENAI_URL,xai:\"https://api.x.ai/v1/chat/completions\",groq:\"https://api.groq.com/openai/v1/chat/completions\",openrouter:\"https://openrouter.ai/api/v1/chat/completions\"};/** Longest single Knowledge base entry body. Longer pasted sections are split into parts. */export const MAX_ENTRY_BODY=1500;/** Knowledge (owner notes, FAQs, entries) sent with one question, in characters. Keeps a request well under the Worker's 64 KB body cap. */export const KNOWLEDGE_BUDGET=18e3;/** Page text sent with one question when Learn from page is on. */export const PAGE_BUDGET=4e3;/** Short words that end in a period but do not end a sentence (St. Mary's, Dr. Lee, 9 a.m. pickup). */const ABBR_WORD=/^(st|dr|mr|mrs|ms|mt|no|nr|ave|inc|co|corp|ltd|jr|sr|vs|etc|approx|dept|est|ft|rd|blvd|hwy|apt|ste|e\\.g|i\\.e|a\\.m|p\\.m|u\\.s|u\\.k)$/i;/**\n * True when text before a colon reads as a title, not a sentence. A period inside a word or number\n * (1.2.1, example.com, a.m.) and after a common abbreviation (St., Dr.) is fine. A sentence end\n * (\". \" after an ordinary word), \"!\" or \"?\" is not. 1.2.1: titles may contain periods.\n */export function isLabelTitle(t){const s=String(t||\"\").trim();if(s.length<2||/[!?]/.test(s))return false;const re=/(\\S+)\\.(?=\\s|$)/g;let m;while(m=re.exec(s)){const w=m[1].replace(/^[(\"'\\u201c]+/,\"\");if(!ABBR_WORD.test(w)&&!/^[A-Za-z]$/.test(w)&&!/\\./.test(w))return false;}return true;}/** \"Title: text\" on one line or block, with a title of up to max characters. Null when it is not a label. */export function knowledgeLabel(line,max=40){const m=String(line||\"\").match(new RegExp(\"^(.{2,\"+max+\"}?):\\\\s+([\\\\s\\\\S]+)$\"));if(!m||!isLabelTitle(m[1]))return null;return{title:m[1].trim(),body:m[2]};}function cleanLine(s){return s.replace(/\\s*[\\u2014\\u2013]\\s*/g,m=>/\\s/.test(m)?\", \":\"-\").replace(/[ \\t]+/g,\" \").trim();}/** Split a long body at paragraph or sentence ends into parts no longer than max. */export function splitBody(body,max=MAX_ENTRY_BODY){const out=[];let rest=body.trim();while(rest.length>max){const win=rest.slice(0,max);let cut=Math.max(win.lastIndexOf(\"\\n\\n\"),win.lastIndexOf(\"\\n\"));if(cut<max*.4)cut=Math.max(win.lastIndexOf(\". \"),win.lastIndexOf(\"? \"),win.lastIndexOf(\"! \"))+1;if(cut<max*.4)cut=win.lastIndexOf(\" \");if(cut<max*.4)cut=max;out.push(rest.slice(0,cut).trim());rest=rest.slice(cut).trim();}if(rest)out.push(rest);return out;}/**\n * Paste knowledge: turn one big pasted text (docs, notes, site copy) into Knowledge base entries.\n * Markdown headings start entries (# sets the category for the ## and ### under it). Without headings,\n * each blank-line block is one entry, titled by its first line when that line is short, or by a\n * \"Topic: text\" label. Long sections are split into numbered parts.\n */export function parsePastedKnowledge(text,source=\"Paste knowledge\"){const raw=String(text||\"\").replace(/\\r\\n?/g,\"\\n\").trim();if(!raw)return[];const out=[];const push=(title,body,category)=>{const b=body.split(\"\\n\").map(cleanLine).join(\"\\n\").replace(/\\n{3,}/g,\"\\n\\n\").trim();const t=cleanLine(title).replace(/[:.]+$/,\"\").slice(0,80)||\"Note\";if(!b)return;const parts=splitBody(b);parts.forEach((part,i)=>out.push({title:parts.length>1?`${t} (${i+1})`:t,body:part,...category?{category:cleanLine(category).slice(0,40)}:{},source}));};const lines=raw.split(\"\\n\");const heading=/^(#{1,4})\\s+(.+?)\\s*#*\\s*$/;if(lines.some(l=>heading.test(l))){let category=\"\",title=\"\",buf=[];const topLevelOnly=!lines.some(l=>/^#{2,4}\\s/.test(l));const flush=()=>{if(buf.join(\"\").trim())push(title||category||\"Note\",buf.join(\"\\n\"),category||undefined);buf=[];};for(const l of lines){const m=l.match(heading);if(m){flush();if(m[1].length===1&&!topLevelOnly){category=m[2];title=m[2];}else title=m[2];continue;}buf.push(l);}flush();return out;}for(const block of raw.split(/\\n\\s*\\n/)){const bl=block.split(\"\\n\").map(l=>l.trim()).filter(Boolean);if(!bl.length)continue;const first=bl[0];const lab=knowledgeLabel(first,60);const labeled=lab?[first,lab.title,lab.body]:null;const isTitle=bl.length>1&&first.length<=70&&!/[.!?,;]$/.test(first);if(isTitle)push(first.replace(/:$/,\"\"),bl.slice(1).join(\"\\n\"));else if(labeled)push(labeled[1],[labeled[2],...bl.slice(1)].join(\"\\n\"));else{const words=first.split(/\\s+/).slice(0,6).join(\" \").replace(/[.,;:!?]+$/,\"\");push(words.length>3?words:\"Note\",bl.join(\"\\n\"));}}return out;}/** CMS first, then pasted Knowledge, then structured fields, then optional page text. Owner knowledge always wins over page text. */export function compileKnowledge(input){const blocks=[];for(const item of input.cmsItems||[]){const q=(item.question||\"\").trim();const a=(item.answer||\"\").trim();if(!q||!a)continue;const title=item.category?`${item.category}: ${q}`:q;blocks.push({source:\"cms\",title,body:`Q: ${q}\nA: ${a}`});}const pasted=(input.knowledge||\"\").trim();if(pasted){const chunks=pasted.split(/\\n+/).map(s=>s.trim()).filter(Boolean);const parts=chunks.length>1?chunks:[pasted];let usedSplit=false;for(const part of parts){const labeled=knowledgeLabel(part);if(labeled){blocks.push({source:\"pasted\",title:labeled.title,body:part});usedSplit=true;}else if(parts.length===1){blocks.push({source:\"pasted\",title:\"Knowledge\",body:part});}else{const first=part.split(/[.!?]/)[0].trim();const title=first.length>4&&first.length<=40?first:\"Knowledge\";blocks.push({source:\"pasted\",title,body:part});usedSplit=true;}}if(!usedSplit&&!blocks.some(b=>b.source===\"pasted\")){blocks.push({source:\"pasted\",title:\"Knowledge\",body:pasted});}}const seenEntry=new Set;for(const e of input.entries||[]){const title=(e&&e.title?String(e.title):\"\").trim();const body=(e&&e.body?String(e.body):\"\").trim();if(!body)continue;const key=(title||body.slice(0,40)).toLowerCase();if(seenEntry.has(key))continue;// the first one (the designer's) wins\nseenEntry.add(key);const category=e.category?String(e.category).trim():\"\";blocks.push({source:\"entry\",title:title||\"Knowledge\",body:e.source&&String(e.source).trim()!==\"Paste knowledge\"?`${body}\n(Source: ${String(e.source).trim()})`:body,...category?{category}:{}});}const f=input.fields||{};const fieldLines=[f.hours&&`Hours: ${f.hours.trim()}`,f.services&&`Services: ${f.services.trim()}`,f.contact&&`Contact: ${f.contact.trim()}`,f.policies&&`Policies: ${f.policies.trim()}`].filter(Boolean);if(fieldLines.length){blocks.push({source:\"fields\",title:\"Profile\",body:fieldLines.join(\"\\n\")});}const owner=blocks.slice();const pageBlock=pageTextBlock(input.pageText);if(pageBlock)blocks.push(pageBlock);return{business:(input.business||\"this business\").trim()||\"this business\",blocks,tone:(input.tone||\"\").trim()||\"Warm, clear, and concise. Speak as the business, using we and us.\",owner};}function pageTextBlock(text){const page=(text||\"\").trim();if(!page)return null;const capped=page.length>6e3?page.slice(0,6e3)+\"\\n[truncated]\":page;return{source:\"page\",title:\"Visible page text\",body:capped};}/**\n * 1.2.1 performance: compile the owner knowledge once (it only changes when the properties change) and add\n * this question's page text here. The result is the same as compileKnowledge with pageText, and the owner\n * blocks keep their identity, so retrieval reuses its word index instead of rebuilding it per question.\n */export function withPageText(k,pageText){const owner=k.owner||k.blocks.filter(b=>b.source!==\"page\");const page=pageTextBlock(pageText);return{...k,owner,blocks:page?[...owner,page]:owner.slice()};}/**\n * System prompt. Confines answers to Knowledge, offers handoff when unsure,\n * asks the model to cite a source with a FROM tag when a specific FAQ is used.\n * No em-dashes. Do not put secrets in Knowledge (documented for owners).\n */// ---------- retrieval: pick the knowledge that matches this question ----------\nconst STOP=new Set((\"a an the and or but if of to in on at by for with from as is are was were be been being do does did \"+\"have has had i me my we us our you your it its this that these those there here what which who whom whose when where why how \"+\"can could would should will shall may might must not no yes any some all about into than then so very just also more most \"+\"get got tell know want need please hi hello thanks thank\").split(\" \"));function stem(w){if(w.length>5&&w.endsWith(\"ing\"))return w.slice(0,-3);if(w.length>4&&w.endsWith(\"ies\"))return w.slice(0,-3)+\"y\";if(w.length>4&&w.endsWith(\"ed\"))return w.slice(0,-2);if(w.length>4&&w.endsWith(\"es\")&&/(ch|sh|ss|x|z)es$/.test(w))return w.slice(0,-2);if(w.length>3&&w.endsWith(\"s\")&&!w.endsWith(\"ss\"))return w.slice(0,-1);return w;}export function terms(text){return(String(text||\"\").toLowerCase().normalize(\"NFKD\").replace(/[\\u0300-\\u036f]/g,\"\").match(/[a-z0-9$]+(?:'[a-z]+)?/g)||[]).map(w=>w.replace(/'[a-z]+$/,\"\")).filter(w=>(w.length>2||/^\\d+$/.test(w))&&!STOP.has(w)).map(stem);}// 1.2.1 performance: the word index of a block (and of a whole owner list) is built once and reused for\n// every question while the knowledge is unchanged. Weak maps, so nothing outlives the knowledge it indexes.\nconst DOC_CACHE=new WeakMap;const INDEX_CACHE=new WeakMap;const blockSize=b=>b.title.length+b.body.length+24;function docOf(b){// Blocks are never edited after compileKnowledge makes them, so the block object is the cache key.\nconst hit=DOC_CACHE.get(b);if(hit)return hit;const head=new Set(terms(b.title+\" \"+(b.category||\"\")));const body=terms(b.body);const bodyCount=new Map;for(const t of body)bodyCount.set(t,(bodyCount.get(t)||0)+1);const d={b,head,bodyCount,text:body.join(\" \")+\" \"+[...head].join(\" \")};DOC_CACHE.set(b,d);return d;}function indexOf(owner){const hit=INDEX_CACHE.get(owner);if(hit&&hit.docs.length===owner.length&&hit.docs.every((d,i)=>d.b===owner[i]))return hit;const docs=owner.map(docOf);const df=new Map;for(const d of docs){for(const t of d.head)df.set(t,(df.get(t)||0)+1);for(const t of d.bodyCount.keys())if(!d.head.has(t))df.set(t,(df.get(t)||0)+1);}const idx={docs,df};INDEX_CACHE.set(owner,idx);return idx;}/**\n * Choose the owner knowledge to send with one question. When everything fits the budget, everything\n * is sent (small sites behave exactly as before). Otherwise each FAQ, note and entry is scored against\n * the question (title and category count more than body text; rarer words count more), the\n * business profile is always kept, and the best matches are sent in order of score until the budget\n * is used. The rest are listed by title so the assistant knows they exist.\n */export function retrieveKnowledge(k,question,budget=KNOWLEDGE_BUDGET,context=\"\"){const owner=k.owner||k.blocks.filter(b=>b.source!==\"page\");const size=blockSize;const total=owner.reduce((n,b)=>n+size(b),0);if(total<=budget)return{blocks:owner,omitted:[],all:true};const q=terms(question);const ctx=terms(context).filter(t=>!q.includes(t));const{docs,df}=indexOf(owner);const N=docs.length;const idf=t=>Math.log(1+N/(1+(df.get(t)||0)));const phrases=[];for(let i=0;i+1<q.length;i++)phrases.push(q[i]+\" \"+q[i+1]);const scoreOf=d=>{let s=0;const add=(t,w)=>{if(!df.has(t))return;const inHead=d.head.has(t)?3:0;const c=d.bodyCount.get(t)||0;const inBody=c?1+Math.log(c):0;s+=w*idf(t)*(inHead+inBody);};q.forEach(t=>add(t,1));ctx.forEach(t=>add(t,.35));// Phrase bonus: two question words next to each other in the text.\nfor(const p of phrases)if(d.text.includes(p))s+=2;if(d.b.source===\"cms\")s*=1.15// FAQs are written as answers\n;return s;};const scored=docs.map((d,i)=>({d,i,s:d.b.source===\"fields\"?Infinity:scoreOf(d)}));scored.sort((a,b)=>b.s-a.s||a.i-b.i);const picked=[];let used=0;for(const x of scored){const sz=size(x.d.b);if(x.s!==Infinity&&x.s<=0&&picked.length>=3)continue;if(used+sz>budget)continue;picked.push({b:x.d.b,i:x.i});used+=sz;}const keep=new Set(picked.map(p=>p.b));// Keep the owner's own order within what was picked, so related notes stay together.\nreturn{blocks:owner.filter(b=>keep.has(b)),omitted:owner.filter(b=>!keep.has(b)),all:false};}export function buildSystemPrompt(k,opts={}){const r=opts.question!==undefined?retrieveKnowledge(k,opts.question,opts.budget??KNOWLEDGE_BUDGET,opts.context||\"\"):{blocks:k.blocks.filter(b=>b.source!==\"page\"),omitted:[],all:true};const catalog=r.blocks.map((b,i)=>`[#${i+1} ${b.source}] ${b.category&&b.source!==\"cms\"?b.category+\": \":\"\"}${b.title}\n${b.body}`).join(\"\\n\\n\");let remainder=\"\";if(r.omitted.length){const titles=[];let n=0;for(const b of r.omitted){const t=b.title.slice(0,60);if(n+t.length>1500)break;titles.push(t);n+=t.length+2;}remainder=`\n\n(${r.omitted.length} more knowledge entr${r.omitted.length===1?\"y\":\"ies\"} did not match this question and are not shown${titles.length?\", on: \"+titles.join(\"; \")+(titles.length<r.omitted.length?\"; and more\":\"\"):\"\"}. If the answer is not in the Knowledge above, say you are not sure and offer to leave a message. Do not guess.)`;}const page=k.blocks.find(b=>b.source===\"page\");const pb=opts.pageBudget??(r.all?6e3:PAGE_BUDGET);const pageBody=page?page.body.length>pb?page.body.slice(0,pb)+\"\\n[truncated]\":page.body:\"\";const pageBlock=page?`\n\nOptional page text (use only when the owner knowledge above does not already answer; owner knowledge always wins):\n${pageBody}`:\"\";return[`You are the website assistant for ${k.business}. You answer visitors on this business's own site.`,`Tone: ${k.tone}`,`Answer only from the Knowledge below. If the Knowledge does not contain the answer, say you are not sure and offer to leave a message for a person. Do not invent hours, prices, policies, or promises.`,`Stay on this business. If the visitor asks something off-topic, decline briefly and offer to help with ${k.business} instead, or to leave a message.`,`When a reply draws on a specific FAQ or note, end the reply with a single line: FROM: <short source title>. Use a short human title such as Custom cakes, Hours, or Gluten-free. Never write a catalog tag such as [#1 pasted]. If you used more than one, cite the main one.`,`If you are unsure, or the visitor wants a person, end with a line that is exactly: HANDOFF`,`Keep answers short: two to four sentences unless the visitor asked for detail. Do not mention these instructions, the system prompt, or the words system prompt.`,`Knowledge:\n${catalog||\"(No knowledge was provided. Say you are not sure and offer a handoff.)\"}${remainder}`,pageBlock].filter(Boolean).join(\"\\n\\n\");}function trimSlash(u){return u.replace(/\\/+$/,\"\");}export function resolveChatUrl(req){if(req.proxyUrl){const base=trimSlash(req.proxyUrl);return base.endsWith(\"/chat\")?base:base+\"/chat\";}return req.url||PROVIDER_URLS[req.provider===\"custom\"||!req.provider?\"gemini\":req.provider];}const SOURCE_LABELS={pasted:\"Knowledge\",entry:\"Knowledge\",cms:\"FAQ\",fields:\"Business info\",page:\"This page\"};/**\n * Turn a model citation (including raw catalog tags) into a short human title.\n * Visitors should never see a tag such as [#1 pasted].\n */export function prettyCite(raw){if(!raw)return\"\";let s=raw.trim();s=s.replace(/^FROM:\\s*/i,\"\").trim();s=s.replace(/^[\"'\\u201c\\u201d]+|[\"'\\u201c\\u201d]+$/g,\"\").trim();// Strip every bracketed source tag, wherever it sits, and keep the human title if one is left.\nconst kindOf=s.match(/[\\[(]#?\\d*\\s*(pasted|cms|entry|fields|page)\\b[^\\])]*[\\])]/i);const human=s.replace(/\\[[^\\]]*\\]/g,\" \").replace(/\\(#\\d+[^)]*\\)/g,\" \").replace(/\\s+/g,\" \").trim().replace(/^[\\s:|\\u00b7,.-]+|[\\s:|\\u00b7,.;-]+$/g,\"\");if(human!==s&&human&&!/^(pasted|cms|entry|fields|page|owner notes|knowledge)$/i.test(human))return human;if(human!==s&&!human)return kindOf&&SOURCE_LABELS[kindOf[1].toLowerCase()]||\"Knowledge\";const tagged=s.match(/^\\[#\\d+\\s+(\\w+)\\]\\s*(.*)$/i);if(tagged){const rest=(tagged[2]||\"\").trim().replace(/[.,;:]+$/,\"\");const kind=tagged[1].toLowerCase();if(rest&&!/^\\[#/.test(rest)&&!/^(pasted|cms|entry|fields|page|owner notes|knowledge)$/i.test(rest)){return rest;}return SOURCE_LABELS[kind]||\"Knowledge\";}const anywhere=s.match(/\\[#\\d+\\s+(\\w+)\\]/i);if(anywhere)return SOURCE_LABELS[anywhere[1].toLowerCase()]||\"Knowledge\";if(/\\[#\\d+/.test(s))return\"Knowledge\";if(/^owner notes$/i.test(s))return\"Knowledge\";if(/^profile$/i.test(s))return\"Business info\";if(/^visible page text$/i.test(s))return\"This page\";return s.replace(/[.,;:]+$/,\"\");}export function parseCitationAndHandoff(text){let clean=text;let citation;let handoff=false;const from=clean.match(/\\n?\\s*FROM:\\s*(.+)\\s*$/m);if(from){citation=prettyCite(from[1].trim());clean=clean.replace(/\\n?\\s*FROM:\\s*.+\\s*$/m,\"\").trimEnd();}if(/\\n?\\s*HANDOFF\\s*$/m.test(clean)){handoff=true;clean=clean.replace(/\\n?\\s*HANDOFF\\s*$/m,\"\").trimEnd();}// Never leave a catalog tag in the visible reply.\nclean=clean.replace(/\\s*\\[#\\d+\\s+\\w+\\][^\\n]*/g,\"\").trimEnd();return{clean,citation,handoff};}/** One fetch + ReadableStream SSE parser. No SDK. */export async function streamChat(req,handlers){const url=resolveChatUrl(req);const usingProxy=Boolean(req.proxyUrl);const headers={\"Content-Type\":\"application/json\",Accept:\"text/event-stream\"};if(!usingProxy&&req.apiKey)headers.Authorization=\"Bearer \"+req.apiKey;const body={model:req.model,stream:true,max_tokens:Math.min(req.maxTokens??600,2048),messages:req.messages};if(typeof req.temperature===\"number\")body.temperature=req.temperature;if(usingProxy&&req.provider)body.provider=req.provider;let response;try{response=await fetch(url,{method:\"POST\",headers,body:JSON.stringify(body),signal:req.signal});}catch(e){const name=e instanceof Error?e.name:\"\";if(name===\"AbortError\")return;handlers.onError({code:\"network\",message:\"The assistant could not reach the provider. Try again, or leave a message.\"});return;}if(!response.ok){const status=response.status;let code=\"provider\";if(status===401||status===403)code=\"auth\";else if(status===429)code=\"rate\";else if(status>=500)code=\"down\";handlers.onError({code,status,message:status===429?\"The assistant is busy right now. Please try again in a moment, or leave a message.\":\"The assistant could not complete that reply. You can try again or leave a message.\"});return;}const reader=response.body?.getReader();if(!reader){handlers.onError({code:\"stream\",message:\"The assistant returned an empty reply.\"});return;}const dec=new TextDecoder;let buf=\"\";let full=\"\";let finish;/** One SSE line. False when the stream reported an error (already passed to onError). */const line=raw=>{const l=raw.trim();if(!l.startsWith(\"data:\"))return true;const data=l.slice(5).trim();if(data===\"[DONE]\")return true;let json;try{json=JSON.parse(data);}catch{return true;}const obj=json;// OpenRouter may set finish_reason: \"error\" mid-stream. The provider's own error text is never shown.\nconst choice=(obj&&obj.choices||[])[0];if(obj&&obj.error||choice&&choice.finish_reason===\"error\"){handlers.onError({code:\"provider\",message:\"The assistant ran into a problem mid-reply. You can try again or leave a message.\"});return false;}if(!choice)return true;const piece=choice.delta&&choice.delta.content||\"\";if(piece){full+=piece;handlers.onDelta(piece,full);}if(choice.finish_reason)finish=choice.finish_reason;return true;};try{for(;;){const{value,done}=await reader.read();if(done)break;buf+=dec.decode(value,{stream:true});for(;;){const n=buf.indexOf(\"\\n\");if(n<0)break;const l=buf.slice(0,n);buf=buf.slice(n+1);if(!line(l))return;}}// 1.2.1: a last \"data:\" line with no newline after it (some proxies end that way) is no longer dropped.\nbuf+=dec.decode();if(buf.trim()&&!line(buf))return;}catch(e){const name=e instanceof Error?e.name:\"\";if(name===\"AbortError\")return;handlers.onError({code:\"stream\",message:\"The reply was interrupted. You can try again or leave a message.\"});return;}const parsed=parseCitationAndHandoff(full);handlers.onDone(parsed.clean,{finish,handoff:parsed.handoff,citation:parsed.citation});}/** Visible page text only: skip nav, footer, forms, hidden, and the Askpill itself. Cap ~6k. */export function readVisiblePageText(root=document,cap=6e3){const skip=\"nav,footer,form,script,style,noscript,iframe,[hidden],[aria-hidden=true],[data-askpill],[data-askpill-ignore],[data-tb-ignore]\";const parts=[];const walker=document.createTreeWalker(root,NodeFilter.SHOW_TEXT,{acceptNode(node){const el=node.parentElement;if(!el)return NodeFilter.FILTER_REJECT;if(el.closest(skip))return NodeFilter.FILTER_REJECT;const style=window.getComputedStyle(el);if(style.display===\"none\"||style.visibility===\"hidden\")return NodeFilter.FILTER_REJECT;const t=(node.textContent||\"\").replace(/\\s+/g,\" \").trim();if(t.length<2)return NodeFilter.FILTER_REJECT;return NodeFilter.FILTER_ACCEPT;}});let n;let total=0;while(n=walker.nextNode()){const t=(n.textContent||\"\").replace(/\\s+/g,\" \").trim();parts.push(t);total+=t.length;if(total>=cap)break;}return parts.join(\" \").slice(0,cap);}/** Decide whether to retry with the working default. Never fallback on a bad key or a user stop. */export function shouldFallback(opts){const provider=opts.provider||\"gemini\";if(opts.abortedByUser)return false;if(opts.tokens>0)return false;if(provider!==\"gemini\")return false;if(opts.model===WORKING_DEFAULT_MODEL)return false;if(opts.code===\"auth\")return false;if(opts.status===401||opts.status===403)return false;if(opts.status===400)return false;// 503, 5xx, rate-limit, hang (no tokens, no auth error), network, down\nif(opts.status===429||opts.code===\"rate\")return true;if(opts.status&&opts.status>=500)return true;if(opts.code===\"down\"||opts.code===\"network\"||opts.code===\"stream\")return true;if(!opts.status&&!opts.code)return true// timeout with zero tokens\n;return true;}export const FALLBACK_NOTE=\"Replied with a faster model because the selected one was unavailable.\";/**\n * Stream a reply. If the selected Gemini model 503s or hangs with zero tokens,\n * retry once with gemini-3.5-flash-lite and surface a calm note (not an error wall).\n */export async function streamChatWithFallback(req,handlers){const userSignal=req.signal;let userAborted=false;const markUserAbort=()=>{userAborted=true;};if(userSignal){if(userSignal.aborted)return;userSignal.addEventListener(\"abort\",markUserAbort);}const run=model=>{return new Promise(async resolve=>{let tokens=0;let status;let code;let finished=false;const ac=new AbortController;const onUser=()=>ac.abort();userSignal?.addEventListener(\"abort\",onUser);const timer=setTimeout(()=>{if(tokens===0&&!userAborted)ac.abort();},FIRST_TOKEN_TIMEOUT_MS);try{await streamChat({...req,model,signal:ac.signal},{onDelta(piece,full){tokens+=piece.length;handlers.onDelta(piece,full);},onDone(full,meta){// 1.2.1: an empty reply from a model that can fall back is not shown (it used to show an empty\n// bubble and then a second answer). The fallback runs instead.\nif(tokens===0&&!userAborted&&model!==WORKING_DEFAULT_MODEL&&(req.provider||\"gemini\")===\"gemini\"){code=\"empty\";return;}finished=true;handlers.onDone(full,meta);},onError(err){status=err.status;code=err.code;// Only surface the error if we will not fallback.\nresolve({tokens,status,code,finished});}});if(finished)resolve({tokens,status,code,finished});else resolve({tokens,status,code,finished});}finally{clearTimeout(timer);userSignal?.removeEventListener(\"abort\",onUser);}});};try{const first=await run(req.model);if(userAborted)return;if(first.finished&&first.tokens>0)return;if(shouldFallback({model:req.model,provider:req.provider,tokens:first.tokens,status:first.status,code:first.code,abortedByUser:userAborted})){handlers.onFallbackNote?.(FALLBACK_NOTE);const second=await run(WORKING_DEFAULT_MODEL);if(userAborted)return;// Finished (even empty) means onDone already ran; never follow it with an error.\nif(second.finished)return;handlers.onError({code:second.code||first.code||\"down\",status:second.status||first.status,message:\"The assistant could not complete that reply. You can try again or leave a message.\"});return;}if(first.finished)return;handlers.onError({code:first.code||\"down\",status:first.status,message:first.code===\"rate\"?\"The assistant is busy right now. Please try again in a moment, or leave a message.\":\"The assistant could not complete that reply. You can try again or leave a message.\"});}finally{userSignal?.removeEventListener(\"abort\",markUserAbort);}}const SAMPLE_STOP=new Set(\"a an the and or but if then so to of in on at for from with by is are was were be been am do does did can could would should will i im me my we us our you your it its this that these those there here what when where which who how any anything some get got have has about please just today tomorrow\".split(\" \"));const SAMPLE_SYNONYMS={open:[\"hour\"],opening:[\"hour\"],close:[\"hour\"],closed:[\"hour\"],closing:[\"hour\"],hour:[\"hour\"],time:[\"hour\"],monday:[\"hour\",\"monday\"],tuesday:[\"hour\"],wednesday:[\"hour\"],thursday:[\"hour\"],friday:[\"hour\"],saturday:[\"hour\"],sunday:[\"hour\",\"sunday\"],weekend:[\"hour\",\"sunday\"],cake:[\"cake\"],birthday:[\"cake\"],celebration:[\"cake\"],layer:[\"cake\"],wedding:[\"cake\"],custom:[\"cake\"],order:[\"cake\",\"order\"],gluten:[\"gluten\",\"allergen\"],glutenfree:[\"gluten\",\"allergen\"],celiac:[\"gluten\",\"allergen\"],coeliac:[\"gluten\",\"allergen\"],allergy:[\"allergen\"],allergen:[\"allergen\"],nut:[\"allergen\"],dairy:[\"allergen\"],vegan:[\"allergen\"],wholesale:[\"wholesale\"],cafe:[\"wholesale\"],restaurant:[\"wholesale\"],bulk:[\"wholesale\"],stock:[\"wholesale\"],supply:[\"wholesale\"],address:[\"address\"],where:[\"address\"],locate:[\"address\"],location:[\"address\"],direction:[\"address\"],find:[\"address\"],street:[\"address\"],visit:[\"address\"],price:[\"price\"],cost:[\"price\"],much:[\"price\"],expensive:[\"price\"],pickup:[\"pickup\"],collect:[\"pickup\"],pick:[\"pickup\"],email:[\"contact\"],contact:[\"contact\"],phone:[\"contact\"],call:[\"contact\"],reach:[\"contact\"]};function sampleStem(w){if(w.length>5&&w.endsWith(\"ing\"))return w.slice(0,-3);if(w.length>4&&w.endsWith(\"ies\"))return w.slice(0,-3)+\"y\";if(w.length>3&&w.endsWith(\"s\")&&!w.endsWith(\"ss\"))return w.slice(0,-1);return w;}function sampleTokens(text){const out=new Set;const words=(text||\"\").toLowerCase().replace(/gluten[\\s-]+free/g,\"glutenfree\").replace(/[^a-z0-9$\\s]/g,\" \").split(/\\s+/).filter(Boolean);for(const raw of words){for(const s of SAMPLE_SYNONYMS[raw]||[])out.add(\"~\"+s);if(SAMPLE_STOP.has(raw))continue;const w=sampleStem(raw);if(SAMPLE_STOP.has(w)||w.length<2)continue;out.add(w);for(const s of SAMPLE_SYNONYMS[w]||SAMPLE_SYNONYMS[raw]||[])out.add(\"~\"+s);}return out;}function sentence(s){const t=s.trim();if(!t)return t;const cap=t.charAt(0).toUpperCase()+t.slice(1);return/[.!?]$/.test(cap)?cap:cap+\".\";}/** Build the reply text for the example mode, in the same wire format a model uses (FROM / HANDOFF tags). */export function sampleAnswer(input){const q=(input.question||\"\").trim();if(/^(hi|hey|hello|hiya|yo|good (morning|afternoon|evening))\\b[!.\\s]*$/i.test(q)){const g=(input.greeting||\"\").trim();return g||\"Hi! What would you like to know?\";}if(/^(thanks|thank you|cheers|ty)\\b/i.test(q)){return\"You're welcome. Anything else I can help with?\";}const entries=sampleEntries(input);// 1.2.1 matching fix: a question that matches an FAQ question or a knowledge title word for word\n// is answered from it directly. Questions like \"What do you do?\" are made only of common words,\n// so token scoring alone has nothing to match on.\nconst qn=sampleNorm(q);if(qn){for(const e of entries)if(e.qnorm===qn)return`${e.text}\nFROM: ${e.title}`;}const qk=sampleTokens(q);if(qn&&![...qk].some(t=>!t.startsWith(\"~\"))){// Only common words left: fall back to the closest FAQ question or title by its words.\nconst qw=new Set(qn.split(\" \"));let close=null;let closeScore=0;for(const e of entries){if(!e.qnorm)continue;const ew=new Set(e.qnorm.split(\" \"));let shared=0;for(const w of qw)if(ew.has(w))shared++;const score=shared/(qw.size+ew.size-shared)// word overlap, 1 means the same words\n;if(score>closeScore){closeScore=score;close=e;}}if(close&&closeScore>=.75&&qw.size>=2)return`${close.text}\nFROM: ${close.title}`;}let best=null;let bestScore=0;for(const e of entries){let score=0;for(const t of qk){if(e.titleKeys.has(t))score+=t.startsWith(\"~\")?1.5:2;else if(e.keys.has(t))score+=t.startsWith(\"~\")?.75:1;}score*=e.weight;if(score>bestScore){bestScore=score;best=e;}}if(!best||bestScore<1.5){return\"I don't have that in my notes, so I won't guess. Leave your email and someone will get back to you.\\nHANDOFF\";}return`${best.text}\nFROM: ${best.title}`;}/** Lowercase, no punctuation, single spaces. Used for word-for-word question matches. */function sampleNorm(text){return(text||\"\").toLowerCase().replace(/['\\u2019]/g,\"\").replace(/[^a-z0-9$]+/g,\" \").trim();}// 1.2.1 performance: the sample index is built once per knowledge, not once per question.\nlet SAMPLE_CACHE=null;function sampleEntries(input){const fk=JSON.stringify(input.fields||{});const c=SAMPLE_CACHE;if(c&&c.faqs===input.faqs&&c.knowledge===input.knowledge&&c.entries===input.entries&&c.fields===fk)return c.out;const out=buildSampleEntries(input);SAMPLE_CACHE={faqs:input.faqs,knowledge:input.knowledge,entries:input.entries,fields:fk,out};return out;}function buildSampleEntries(input){const entries=[];for(const f of input.faqs||[]){if(!f||!f.question||!f.answer)continue;const title=(f.category||\"\").trim()||f.question.trim().replace(/[?.!]+$/,\"\");entries.push({title,text:f.answer.trim(),keys:sampleTokens(f.question+\" \"+f.answer+\" \"+(f.category||\"\")),titleKeys:sampleTokens(f.question+\" \"+(f.category||\"\")),weight:1.2,qnorm:sampleNorm(f.question)});}for(const line of(input.knowledge||\"\").split(/\\n+/)){const m=knowledgeLabel(line.trim());if(!m)continue;entries.push({title:m.title,text:sentence(m.body),keys:sampleTokens(line),titleKeys:sampleTokens(m.title),weight:1,qnorm:sampleNorm(m.title)});}for(const e of input.entries||[]){const body=(e&&e.body?String(e.body):\"\").trim();const title=(e&&e.title?String(e.title):\"\").trim().replace(/\\s*\\(\\d+\\)$/,\"\");if(!body||!title)continue;// A short answer: the first two sentences of the entry, at most about 400 characters.\nconst first=(body.replace(/\\s+/g,\" \").match(/[^.!?]+[.!?]+(\\s|$)/g)||[body]).slice(0,2).join(\"\").trim();const text=first.length>420?first.slice(0,400).replace(/\\s+\\S*$/,\"\")+\"...\":first;entries.push({title,text:sentence(text),keys:sampleTokens(title+\" \"+(e.category||\"\")+\" \"+body),titleKeys:sampleTokens(title+\" \"+(e.category||\"\")),weight:.95,qnorm:sampleNorm(title)});}const f=input.fields||{};const fieldList=[[\"Hours\",f.hours],[\"Services\",f.services],[\"Contact\",f.contact],[\"Policies\",f.policies]];for(const[title,val]of fieldList){if(!val||!val.trim())continue;entries.push({title,text:sentence(val),keys:sampleTokens(title+\" \"+val),titleKeys:sampleTokens(title),weight:.8});}return entries;}/**\n * Stream a sample answer word by word through the same handlers as streamChat.\n * Honors the AbortSignal (Stop and close). With reduced motion it streams in larger steps.\n */export async function streamSampleAnswer(input,handlers){const reply=sampleAnswer(input);const signal=input.signal;// 1.2.1: each wait removes its own abort listener, so a long answer does not pile up listeners.\nconst wait=ms=>new Promise(resolve=>{const onAbort=()=>{clearTimeout(t);resolve();};const t=setTimeout(()=>{signal?.removeEventListener(\"abort\",onAbort);resolve();},ms);signal?.addEventListener(\"abort\",onAbort,{once:true});});await wait(input.reduced?120:420)// a short think, like a first token\n;const pieces=reply.match(/\\S+\\s*/g)||[reply];const step=input.reduced?6:1;let full=\"\";for(let i=0;i<pieces.length;i+=step){if(signal?.aborted)return;const piece=pieces.slice(i,i+step).join(\"\");full+=piece;handlers.onDelta(piece,full);await wait(input.reduced?40:26+Math.round(Math.random()*22));}if(signal?.aborted)return;const parsed=parseCitationAndHandoff(full);handlers.onDone(parsed.clean,{finish:\"stop\",handoff:parsed.handoff,citation:parsed.citation});}// ---- Askpill Auto-match module (src/AskpillAutoMatch.ts, unchanged, wrapped in a scope) ----\nconst AskpillAutoMatch=(()=>{const PREFIX=\"apm1.\";const STORE=\"askpill:match:\"+(typeof location!==\"undefined\"?location.hostname:\"\")// buyer's browser only, Preview convenience\n;const RADII=[\"auto\",\"0\",\"8\",\"16\",\"pill\"];function parse(c){if(Array.isArray(c)&&c.length>=3)return[Number(c[0]),Number(c[1]),Number(c[2])]// readHost colors are [r,g,b,a]\n;if(typeof c!==\"string\")return null;const m=c.match(/rgba?\\(([^)]+)\\)/);if(m){const p=m[1].split(/[,\\s/]+/).filter(Boolean).map(Number);return[p[0],p[1],p[2]];}const h=c.trim().match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!h)return null;const s=h[1].length===3?h[1].split(\"\").map(x=>x+x).join(\"\"):h[1];return[parseInt(s.slice(0,2),16),parseInt(s.slice(2,4),16),parseInt(s.slice(4,6),16)];}const hex=c=>\"#\"+c.map(v=>Math.max(0,Math.min(255,Math.round(v))).toString(16).padStart(2,\"0\")).join(\"\");function lum(c){const f=v=>{v/=255;return v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4);};return .2126*f(c[0])+.7152*f(c[1])+.0722*f(c[2]);}const contrast=(a,b)=>{const x=lum(a),y=lum(b);return(Math.max(x,y)+.05)/(Math.min(x,y)+.05);};// ---------- what is sent to the model: design values only ----------\n// No page copy, no form values, no customer data. Colors become hex, everything else is a short string or number.\nfunction describeHost(host){const out={};for(const k of Object.keys(host)){const v=host[k],c=parse(v);if(c)out[k]=hex(c);else if(typeof v===\"number\")out[k]=Math.round(v*100)/100;else if(typeof v===\"string\"&&v.length<=80)out[k]=v;}return out;}// ---------- validation: a match can never make Askpill unreadable ----------\nfunction clean(raw){const o=raw&&typeof raw===\"object\"?raw:{};const col=k=>{const c=parse(o[k]);return c?hex(c):undefined;};const out={primary:col(\"primary\"),surface:col(\"surface\"),textColor:col(\"textColor\")};if(typeof o.radius===\"string\"&&RADII.includes(o.radius))out.radius=o.radius;if(o.scheme===\"light\"||o.scheme===\"dark\")out.scheme=o.scheme;Object.keys(out).forEach(k=>out[k]===undefined&&delete out[k]);return out;}function safe(match,host,derive,controls){const m={...match};const check=()=>{const t=derive(host,{...m,...controls});const bg=parse(t.surface)??parse(t.bg),fg=parse(t.fg),pr=parse(t.primary),on=parse(t.onPrimary);return{text:!!bg&&!!fg&&contrast(fg,bg)>=4.5,primary:!!pr&&!!on&&contrast(on,pr)>=4.5};};let r=check();if(!r.text){delete m.textColor;r=check();}if(!r.text){delete m.surface;delete m.scheme;r=check();}if(!r.primary)delete m.primary;return m;}// ---------- the one AI call, through the existing streaming function ----------\nfunction askOnce(stream,req){return new Promise((resolve,reject)=>{stream(req,{onDelta(){},onDone:full=>resolve(full),onError:e=>reject(new Error(e.code+\": \"+e.message))}).catch(reject);});}async function refine(host,deps){const messages=[{role:\"system\",content:\"You tune the look of a small support widget so it feels native to a website. Reply with one JSON object and nothing else.\"},{role:\"user\",content:\"These design values were read from the site: \"+JSON.stringify(describeHost(host))+\"\\n\"+'Return any of: \"primary\", \"surface\", \"textColor\" (hex colors), \"radius\" (one of \"auto\",\"0\",\"8\",\"16\",\"pill\"), \"scheme\" (\"light\" or \"dark\"). '+\"Leave a key out to keep what was read. Text must stay at least 4.5:1 on the surface.\"}];const reply=await askOnce(deps.stream,{...deps.makeRequest(messages),maxTokens:200,temperature:0});return clean(JSON.parse(reply.slice(reply.indexOf(\"{\"),reply.lastIndexOf(\"}\")+1)));}const encode=s=>PREFIX+btoa(unescape(encodeURIComponent(JSON.stringify(s))));function decode(code){if(!code||!code.startsWith(PREFIX))return null;try{const o=JSON.parse(decodeURIComponent(escape(atob(code.slice(PREFIX.length)))));return{light:o.light?clean(o.light):undefined,dark:o.dark?clean(o.dark):undefined};}catch{return null;}}// ---------- controller ----------\nfunction createAutoMatch(deps){let cfg={enabled:true,refine:false,controls:{}};let state={status:\"idle\"};let saved={};let stale={};try{saved=decode(typeof localStorage!==\"undefined\"?localStorage.getItem(STORE):null)??{};stale=JSON.parse(typeof localStorage!==\"undefined\"&&localStorage.getItem(STORE+\":stale\")||\"{}\")||{};}catch{}const set=s=>{state=s;deps.onChange?.();};const rawControls=()=>{const c={};Object.keys(cfg.controls).forEach(k=>{const v=cfg.controls[k];if(v!==undefined&&v!==\"\"&&v!==\"auto\")c[k]=v;});return c;};/** Property controls that still apply: a value left exactly as it was at Accept is a leftover and is skipped. */const controls=()=>{const c=rawControls(),s=stale.controls||{};Object.keys(c).forEach(k=>{if(s[k]!==undefined&&String(s[k]).toLowerCase()===String(c[k]).toLowerCase())delete c[k];});return c;};/** The page's own scheme, with no overrides. Saved matches are keyed by it, so a Dark tweak on a light page is found again. */const naturalScheme=host=>deps.deriveTokens(host,{}).scheme;const lockIsStale=()=>!!cfg.lockedCode&&!!stale.lock&&cfg.lockedCode.trim()===stale.lock.trim();const store=()=>{if(cfg.lockedCode&&!lockIsStale())return decode(cfg.lockedCode)??saved// a pasted code wins over the Preview convenience copy\n;return saved;};const pickSaved=host=>{const s=store(),k=naturalScheme(host);return s[k]??(s.light&&!s.dark?s.light:!s.light&&s.dark?s.dark:undefined)??{};};return{get state(){return state;},/** Updates settings only. Never touches an open preview or its tweaks. */configure(next){cfg={...cfg,...next};},/** Tokens to render with. Drop-in for the existing deriveTokens(readHost(), controls) call. */tokens(){// An open preview is a fresh read of this page plus the tweaks: leftover controls and codes do not apply.\nif(state.status===\"preview\")return deps.deriveTokens(deps.readHost(),state.match);if(!cfg.enabled)return deps.deriveTokens(deps.readHost(),cfg.controls)// auto-theme off: exactly today's behavior\n;const host=deps.readHost();return deps.deriveTokens(host,{...pickSaved(host),...controls()})// property controls are applied last\n;},/** Style controls and Matched theme that the last Accept replaced and that the designer should clear. */get leftovers(){const out=[],c=rawControls(),s=stale.controls||{};const names={primary:\"Primary\",surface:\"Surface\",textColor:\"Text\",radius:\"Radius\",scheme:\"Scheme\"};Object.keys(names).forEach(k=>{if(c[k]!==undefined&&s[k]!==undefined&&String(s[k]).toLowerCase()===String(c[k]).toLowerCase())out.push(names[k]);});if(lockIsStale())out.push(\"Matched theme\");return out;},/** Code for the Matched theme property, once something is accepted. */get code(){const s=store();return s.light||s.dark?encode(s):\"\";},async run(){set({status:\"scanning\"});let host;try{host=deps.readHost();}catch{return set({status:\"failed\",reason:\"unreadable\"});}if(!host||!parse(host.bg))return set({status:\"failed\",reason:\"unreadable\"});// The host found nothing of the page (only Askpill, or an empty canvas): say so instead of showing a default as a match.\nif(host.preset||typeof host.found===\"number\"&&host.found<2)return set({status:\"failed\",reason:\"no-page\"});set({status:\"preview\",match:{},source:\"styles\"})// the plain read shows at once, with no key\n;if(!cfg.refine||!deps.stream||!deps.makeRequest)return;try{const ai=safe(await refine(host,deps),host,deps.deriveTokens,{});if(state.status===\"preview\")set({status:\"preview\",match:ai,source:\"ai\"});}catch{}},accept(){if(state.status!==\"preview\")return;const host=deps.readHost();const scheme=naturalScheme(host);// Keep what was previewed, exactly: the tweaks plus the scheme that was showing.\nconst shown=deps.deriveTokens(host,state.match).scheme;const keep={...state.match};if(shown!==scheme)keep.scheme=shown;// Accept replaces the pasted code: the new code holds this Accept plus earlier Accepts made in this browser\n// (a site with a light and a dark mode is accepted once in each), never the old pasted values.\nsaved={...saved,[scheme]:keep};// Whatever was set before this Accept is a leftover from now on (until it is edited or replaced).\nstale={lock:cfg.lockedCode&&cfg.lockedCode.trim()&&cfg.lockedCode.trim()!==encode(saved)?cfg.lockedCode.trim():undefined,controls:rawControls()};try{localStorage.setItem(STORE,encode(saved));localStorage.setItem(STORE+\":stale\",JSON.stringify(stale));}catch{}set({status:\"idle\"});},tweak(patch){if(state.status!==\"preview\")return;// Tweaks win over property controls while the preview is open, so they are checked on their own.\nset({...state,match:safe(clean({...state.match,...patch}),deps.readHost(),deps.deriveTokens,{})});},revert(){set({status:\"idle\"});},clear(){saved={};stale={};try{localStorage.removeItem(STORE);localStorage.removeItem(STORE+\":stale\");}catch{}set({status:\"idle\"});}};}return{createAutoMatch,describeHost,encode,decode,refine};})();const{createAutoMatch}=AskpillAutoMatch;// ---- Askpill Site-scan module (src/AskpillSiteScan.ts, unchanged, wrapped in a scope) ----\nconst AskpillSiteScan=(()=>{const SCAN_PREFIX=\"aps2.\";const SCAN_PREFIX_V1=\"aps1.\";/** Most pages one scan reads. */const MAX_PAGES=100;/** Most characters read from one page. */const PER_PAGE=6e3;/** Most characters read from the whole site. */const TOTAL_BUDGET=45e4;/** The crawl stops reading new pages after this long and writes from what it has. */const CRAWL_TIME_MS=24e4;const CRAWL_CONCURRENCY=4;/** Knowledge base caps for one scan. */const MAX_ENTRIES=250;const MAX_FAQS=60;const ENTRY_BODY=1200;/** Pages per extract request, and the most page text in one request (well under the Worker's 64 KB body cap). */const BATCH_PAGES=3;const BATCH_CHARS=12e3;/** Requests in flight at once, and the gap between request starts (the Worker allows 20 a minute). */const EXTRACT_CONCURRENCY=2;const EXTRACT_GAP_MS=3500;/** Below this many characters of real text the scan says \"found almost nothing\" and changes nothing. */const MIN_TEXT=200;const ASSET=/\\.(png|jpe?g|gif|webp|avif|svg|ico|pdf|zip|mp4|webm|mov|mp3|wav|css|js|mjs|json|xml|txt|woff2?|ttf|otf|eot)(\\?|#|$)/i;const SKIP_TEXT=\"script,style,noscript,template,svg,iframe,form,[hidden],[aria-hidden=true],[data-askpill],[data-askpill-ignore],[data-tb-ignore]\";/** Visible copy rules: no em or en dashes, no runaway whitespace. */function tidy(s,max=400){if(typeof s!==\"string\")return\"\";return s.replace(/\\s*[\\u2014\\u2013]\\s*/g,m=>/\\s/.test(m)?\", \":\"-\").replace(/[ \\t]+/g,\" \").replace(/\\n{3,}/g,\"\\n\\n\").trim().slice(0,max);}/** One same-origin page URL, normalized, or null for assets, anchors, mail links and other hosts. */function normaliseUrl(href,base,origin){if(!href||/^(mailto|tel|javascript|data|blob):/i.test(href.trim()))return null;let u;try{u=new URL(href,base);}catch{return null;}if(u.origin!==origin)return null;if(ASSET.test(u.pathname))return null;if(/\\/(api|_next|_framer|cdn-cgi)\\//.test(u.pathname))return null;u.hash=\"\";u.search=\"\";let path=u.pathname.replace(/\\/+$/,\"\")||\"/\";return u.origin+path;}/** Readable text of one document: title, headings and body copy, never Askpill's own UI. */function pageText(doc,cap=PER_PAGE){const root=doc.querySelector(\"main\")||doc.body;if(!root)return{title:\"\",text:\"\"};const parts=[];const seenText=new Set// Framer renders each breakpoint's copy; read each line once\n;let total=0;const walk=el=>{if(total>=cap)return;if(el.matches(SKIP_TEXT))return;for(const n of Array.from(el.childNodes)){if(total>=cap)return;if(n.nodeType===3){const t=(n.textContent||\"\").replace(/\\s+/g,\" \").trim();if(t.length>=2&&!seenText.has(t)){seenText.add(t);parts.push(t);total+=t.length+1;}}else if(n.nodeType===1)walk(n);}};walk(root);// Footer often has hours and contact; read it when main did not include it.\nconst foot=doc.querySelector(\"footer\");if(foot&&!root.contains(foot)&&total<cap)walk(foot);const text=parts.join(\" \");return{title:tidy(doc.title||\"\",120),text:text.slice(0,cap)};}/** Same-origin page links in priority order: nav, header, footer, then the rest of the page. */function linksOf(doc,base,origin){const seen=new Set,out=[];const groups=[\"nav a[href]\",\"header a[href]\",\"footer a[href]\",\"a[href]\"];for(const sel of groups){for(const a of Array.from(doc.querySelectorAll(sel))){if(a.closest(\"[data-askpill],[data-askpill-ignore],[data-tb-ignore]\"))continue;const u=normaliseUrl(a.getAttribute(\"href\")||\"\",base,origin);if(u&&!seen.has(u)){seen.add(u);out.push(u);}}}return out;}function sitemapUrls(xml,origin){const out=[];const re=/<loc>\\s*(?:<!\\[CDATA\\[)?\\s*([^<\\s\\]]+)\\s*(?:\\]\\]>)?\\s*<\\/loc>/gi;let m;while(m=re.exec(xml)){const u=normaliseUrl(m[1].replace(/&amp;/g,\"&\"),origin+\"/\",origin);if(u&&!out.includes(u))out.push(u);}return out;}/** Child sitemaps listed in a sitemap index (same origin, .xml allowed here). */function sitemapIndexUrls(xml,origin){if(!/<sitemapindex/i.test(xml))return[];const out=[];const re=/<sitemap>[\\s\\S]*?<loc>\\s*(?:<!\\[CDATA\\[)?\\s*([^<\\s\\]]+)\\s*(?:\\]\\]>)?\\s*<\\/loc>[\\s\\S]*?<\\/sitemap>/gi;let m;while(m=re.exec(xml)){try{const u=new URL(m[1].replace(/&amp;/g,\"&\"),origin+\"/\");if(u.origin===origin&&!out.includes(u.href))out.push(u.href);}catch{}}return out;}const IMPORTANT=/^(about|about-us|company|team|story|our-story|pricing|prices|plans|rates|services|service|what-we-do|offer|offers|packages|products|shop|menu|faq|faqs|help|support|questions|contact|contact-us|location|locations|visit|hours|book|booking|work|portfolio|projects|case-studies|clients|blog|news|journal|policies|policy|terms|privacy|shipping|delivery|returns|refunds|careers|jobs)$/i;/** Lower is read first: the home page, then important pages (about, pricing, services, faq, contact, work, blog...), then shallow pages, then the rest. */function pathPriority(url){let path=\"/\";try{path=new URL(url).pathname;}catch{}const segs=path.split(\"/\").filter(Boolean);if(!segs.length)return 0;const first=segs[0];if(segs.length===1&&IMPORTANT.test(first))return 1;if(IMPORTANT.test(first))return 2+Math.min(segs.length,4)*.1// a post under /blog, a service under /services\n;return 3+segs.length;}/**\n * Crawl this site. Current page first. Then the sitemap (sitemap.xml, a sitemap index, or the Sitemap line\n * in robots.txt), nav, header, footer and in-page links, always reading the most important unread page next\n * (home, about, pricing, services, faq, contact, work, blog, then shallow pages). Same origin only. Stops at\n * maxPages, the text budget, or the time budget, whichever comes first.\n */async function crawlSite(d,maxPages=MAX_PAGES){const now=d.now||(()=>Date.now());const deadline=now()+(d.timeBudgetMs??CRAWL_TIME_MS);const pages=[];const seen=new Set;const startUrl=normaliseUrl(d.startUrl,d.startUrl,d.origin)||d.origin+\"/\";seen.add(startUrl);const first=pageText(d.startDoc);pages.push({url:startUrl,...first});let budget=TOTAL_BUDGET-first.text.length;// Queue with priority: lower pathPriority first, then the order links were found.\nconst queue=[];const queued=new Set;let order=0;const add=list=>{for(const u of list)if(!seen.has(u)&&!queued.has(u)){queued.add(u);queue.push({url:u,pr:pathPriority(u),n:order++});}};const take=()=>{let bi=0;for(let i=1;i<queue.length;i++)if(queue[i].pr<queue[bi].pr||queue[i].pr===queue[bi].pr&&queue[i].n<queue[bi].n)bi=i;const it=queue.splice(bi,1)[0];queued.delete(it.url);return it.url;};add([d.origin+\"/\"]);add(linksOf(d.startDoc,d.startUrl,d.origin));if(maxPages>1){const maps=[d.origin+\"/sitemap.xml\"];try{const robots=await d.fetchText(d.origin+\"/robots.txt\");if(robots)for(const m of robots.matchAll(/^\\s*sitemap:\\s*(\\S+)/gim)){try{const u=new URL(m[1]);if(u.origin===d.origin&&!maps.includes(u.href))maps.push(u.href);}catch{}}}catch{}const readMaps=new Set;for(let i=0;i<maps.length&&readMaps.size<10;i++){if(readMaps.has(maps[i]))continue;readMaps.add(maps[i]);try{const xml=await d.fetchText(maps[i]);if(!xml)continue;for(const c of sitemapIndexUrls(xml,d.origin))if(!maps.includes(c))maps.push(c);if(/<urlset|<url>/i.test(xml))add(sitemapUrls(xml,d.origin));}catch{}}}const texts=new Set([first.text.slice(0,400)]);const total=()=>Math.min(maxPages,pages.length+queue.length);d.onProgress?.(pages.length,total());const readOne=async url=>{let html=null;try{html=await d.fetchText(url);}catch{html=null;}if(!html||!/<html|<body|<main|<p[\\s>]/i.test(html))return;let doc;try{doc=d.parse(html);}catch{return;}add(linksOf(doc,url,d.origin));if(pages.length>=maxPages||budget<=200)return;const t=pageText(doc,Math.min(PER_PAGE,budget));const key=t.text.slice(0,400);if(t.text.length<20||texts.has(key))return;// duplicate or empty page\ntexts.add(key);pages.push({url,...t});budget-=t.text.length;};while(queue.length&&pages.length<maxPages&&budget>200&&now()<deadline){if(d.signal?.aborted)break;const room=Math.min(CRAWL_CONCURRENCY,maxPages-pages.length);const batch=[];while(batch.length<room&&queue.length){const u=take();if(!seen.has(u)){seen.add(u);batch.push(u);}}if(!batch.length)break;await Promise.all(batch.map(readOne));d.onProgress?.(pages.length,total());}d.onProgress?.(pages.length,pages.length);return pages;}function totalText(pages){return pages.reduce((n,p)=>n+p.text.length,0);}// ---------- the AI extract: many small batched calls through the existing chat path (Worker caps replies at 1024 tokens) ----------\nconst RULES=\"Use ONLY facts written in the site text. Never invent hours, prices, addresses, emails, phone numbers, policies or promises. \"+\"If something is unclear or missing, leave that key out. Write in plain language, in the site's own voice, using we and us. \"+\"Do not use em dashes or en dashes. Do not write sales slogans. Reply with one JSON object and nothing else.\";const pathOf=url=>url.replace(/^https?:\\/\\/[^/]+/,\"\")||\"/\";function corpus(pages,perPage=PER_PAGE){return pages.map((p,i)=>`### Page ${i+1}: ${p.title||\"(untitled)\"} (${pathOf(p.url)})\n${p.text.slice(0,perPage)}`).join(\"\\n\\n\");}/** Group pages into extract batches: at most BATCH_PAGES pages and BATCH_CHARS characters each. */function batchPages(pages,maxPages=BATCH_PAGES,maxChars=BATCH_CHARS){const out=[];let cur=[],n=0;for(const p of pages){const len=Math.min(p.text.length,maxChars);if(cur.length&&(cur.length>=maxPages||n+len>maxChars)){out.push(cur);cur=[];n=0;}cur.push(len<p.text.length?{...p,text:p.text.slice(0,maxChars)}:p);n+=len;}if(cur.length)out.push(cur);return out;}/** The pages that best describe the business (home, about, contact, services, pricing...), trimmed, for the profile call. */function profilePages(pages,maxChars=2e4){const sorted=pages.map((p,i)=>({p,i,pr:pathPriority(p.url)})).sort((a,b)=>a.pr-b.pr||a.i-b.i);const out=[];let n=0;for(const{p}of sorted){const per=Math.min(p.text.length,2500,maxChars-n);if(per<200)break;out.push({...p,text:p.text.slice(0,per)});n+=per;}return out;}function profileMessages(pages){return[{role:\"system\",content:\"You read a small business website and write the profile its website assistant answers from. \"+RULES},{role:\"user\",content:\"Site text:\\n\\n\"+corpus(pages,2500)+\"\\n\\n\"+'Return JSON with any of these keys: \"business\" (the business name), \"shortName\" (one or two words), \"label\" (text for a small chat button, at most 22 characters, for example \"Ask Harbor\"), '+'\"greeting\" (one or two friendly sentences), \"chips\" (up to 3 short questions a visitor would ask), \"hours\", \"services\" (what is offered, one per line), \"contact\" (address, phone or email exactly as written), \"email\" (one contact email if written), \"policies\" (one per line).'}];}function batchMessages(pages){return[{role:\"system\",content:\"You turn pages of a small business website into Knowledge base entries for its website assistant. \"+RULES},{role:\"user\",content:\"Pages:\\n\\n\"+corpus(pages)+\"\\n\\n\"+'Return JSON: {\"entries\":[{\"title\":\"...\",\"body\":\"...\",\"category\":\"...\",\"source\":\"/path\"}],\"faqs\":[{\"question\":\"...\",\"answer\":\"...\",\"category\":\"...\"}]}. '+\"Write one or more entries for each page that has real facts (prices, offers, process, people, places, times, policies, products, work). \"+\"Each entry covers one topic. Its body lists the facts in short plain sentences or lines, at most 600 characters. Title is two to six words. \"+\"Category is one or two words such as About, Services, Pricing, Products, Work, Policies, Contact, Blog. Source is the path of the page it came from. \"+\"Then up to 4 FAQs a real visitor would ask about these pages, each answered in one to three sentences from the text. Category is one or two words. \"+\"Skip navigation, cookie banners and footer text repeated on every page. Keep the whole reply under 650 words.\"}];}/** Cross-page FAQs, written from the organized entries (a digest of the whole site). */function faqMessages(entries,maxChars=2e4){let digest=\"\";for(const e of entries){const line=\"url\"in e&&e.url!==undefined?`### ${e.title||pathOf(e.url)} (${pathOf(e.url)})\n${e.text}`:`### ${e.category?e.category+\": \":\"\"}${e.title}\n${e.body}`;if(digest.length+line.length>maxChars){if(!digest)digest=line.slice(0,maxChars);break;}digest+=(digest?\"\\n\\n\":\"\")+line;}return[{role:\"system\",content:\"You write the FAQ list for a small business website assistant. \"+RULES},{role:\"user\",content:\"Site notes:\\n\\n\"+digest+\"\\n\\n\"+'Return JSON: {\"faqs\":[{\"question\":\"...\",\"answer\":\"...\",\"category\":\"...\"}]}. Up to 15 questions a real visitor would ask, especially ones whose answer joins facts from more than one page, each answered in one to three sentences from the notes only. Category is one or two words. Skip any question the notes do not answer.'}];}function askOnce(stream,req){return new Promise((resolve,reject)=>{stream(req,{onDelta(){},onDone:full=>resolve(String(full||\"\")),onError:e=>reject(new Error(e.code+\": \"+e.message))}).catch(reject);});}function parseJson(reply){const a=reply.indexOf(\"{\"),b=reply.lastIndexOf(\"}\");if(a<0||b<=a)return null;try{const o=JSON.parse(reply.slice(a,b+1));return o&&typeof o===\"object\"?o:null;}catch{return null;}}const keyOf=s=>s.toLowerCase().replace(/[^a-z0-9]+/g,\" \").trim();function cleanEntries(list,max=MAX_ENTRIES){if(!Array.isArray(list))return[];const seen=new Set,out=[];for(const x of list){const r=x&&typeof x===\"object\"?x:{};const title=tidy(r.title,80),body=tidy(r.body,ENTRY_BODY),category=tidy(r.category,30),source=tidy(r.source,120);if(!title||!body)continue;const k=keyOf(title)+\"|\"+keyOf(body.slice(0,80));if(seen.has(k))continue;seen.add(k);const e={title,body};if(category)e.category=category;if(source)e.source=source;out.push(e);if(out.length>=max)break;}return out;}function cleanFaqs(list,max=MAX_FAQS){if(!Array.isArray(list))return[];const seen=new Set,out=[];for(const x of list){const r=x&&typeof x===\"object\"?x:{};const q=tidy(r.question,160),a=tidy(r.answer,600),c=tidy(r.category,30);if(!q||!a||seen.has(keyOf(q)))continue;seen.add(keyOf(q));out.push(c?{question:q,answer:a,category:c}:{question:q,answer:a});if(out.length>=max)break;}return out;}/** Validates and caps everything a model returned. Unknown keys and non-strings are dropped. */function cleanScan(raw){const o=raw||{};const out={};const str=(k,max)=>{const v=tidy(o[k],max);if(v)out[k]=v;};str(\"business\",60);str(\"shortName\",24);str(\"label\",26);str(\"greeting\",220);str(\"hours\",600);str(\"services\",2e3);str(\"contact\",600);str(\"policies\",2e3);str(\"knowledge\",6e3);const em=tidy(o.email,120);if(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(em))out.email=em;if(Array.isArray(o.chips)){const c=o.chips.map(x=>tidy(x,60)).filter(Boolean).slice(0,3);if(c.length)out.chips=c;}const entries=cleanEntries(o.entries);if(entries.length)out.entries=entries;const faqs=cleanFaqs(o.faqs);if(faqs.length)out.faqs=faqs;if(typeof o.pages===\"number\"&&o.pages>0)out.pages=Math.min(999,Math.round(o.pages));return out;}/** When a batch cannot be written, each of its pages still contributes its own text as an entry. */function rawEntries(pages){return pages.filter(p=>p.text.trim().length>=40).map(p=>({title:tidy((p.title||\"\").split(/\\s[|\\u00b7\\-]\\s/)[0]||pathOf(p.url),80)||pathOf(p.url),body:tidy(p.text,ENTRY_BODY),category:\"Pages\",source:pathOf(p.url)}));}/**\n * The extract: one profile call, one call per batch of pages (entries and FAQs from those pages), then one\n * cross-page FAQ call over the organized entries. Requests are paced for the Worker's rate limit and a\n * rate-limited call is retried. A batch that still fails keeps its pages as plain entries. If every\n * call fails, the error is thrown.\n */async function extract(pages,stream,makeRequest,opts={}){const sleep=opts.sleep||(ms=>new Promise(r=>setTimeout(r,ms)));const gap=opts.gapMs??EXTRACT_GAP_MS;// Request starts are spaced by gap, in order (the Worker allows 20 requests a minute).\nlet gate=Promise.resolve();let started=0;const slot=()=>{const g=gate;gate=g.then(()=>started++?sleep(gap):undefined);return gate;};const call=async m=>{for(let attempt=0;;attempt++){await slot();if(opts.signal?.aborted)throw new Error(\"aborted\");try{return parseJson(await askOnce(stream,{...makeRequest(m),maxTokens:1024,temperature:0}));}catch(e){if(attempt<3&&/^rate\\b|429/.test(String(e?.message||\"\"))){await sleep(8e3*(attempt+1));continue;}throw e;}}};const batches=batchPages(pages);const total=batches.length+2;let done=0,ok=0;const tick=()=>{done++;opts.onProgress?.(done,total);};opts.onProgress?.(0,total);let firstError=null;const profileP=call(profileMessages(profilePages(pages))).then(r=>{ok++;tick();return r;},e=>{firstError=firstError||e;tick();return null;});const results=new Array(batches.length).fill(null);let next=0;const worker=async()=>{while(next<batches.length){const i=next++;try{results[i]=await call(batchMessages(batches[i]));if(results[i])ok++;}catch(e){firstError=firstError||e;}tick();}};await Promise.all(Array.from({length:Math.max(1,opts.concurrency??EXTRACT_CONCURRENCY)},worker));const profile=await profileP;const entries=[];const batchFaqs=[];batches.forEach((b,i)=>{const r=results[i];const es=r?cleanEntries(r.entries,40):[];if(es.length)entries.push(...es);else entries.push(...rawEntries(b))// every page still contributes\n;if(r&&Array.isArray(r.faqs))batchFaqs.push(...r.faqs);});let cross=[];const cleaned=cleanEntries(entries);if(!opts.signal?.aborted&&cleaned.length){try{const r=await call(faqMessages(cleaned));if(r&&Array.isArray(r.faqs)){cross=r.faqs;ok++;}}catch(e){firstError=firstError||e;}}tick();if(!ok)throw firstError||new Error(\"The scan could not write anything.\");return cleanScan({...profile||{},entries:cleaned,faqs:[...cross,...batchFaqs],pages:pages.length});}// ---------- Scanned site code: compact JSON, LZW-compressed, base64url ----------\nconst B64=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\";const bitLen=n=>{let b=0;while(n>0){b++;n>>>=1;}return Math.max(b,1);};const widthFor=k=>bitLen(Math.min(256+k-2,65535));/** LZW over the UTF-8 bytes of a string, packed into base64url. Synchronous, so a code decodes during render. */function pack(text){const bin=unescape(encodeURIComponent(text));const dict=new Map;for(let i=0;i<256;i++)dict.set(String.fromCharCode(i),i);let size=256,w=\"\",k=0,acc=0,nb=0,out=\"\";const emit=code=>{k++;const width=widthFor(k);for(let b=width-1;b>=0;b--){acc=acc<<1|code>>>b&1;nb++;if(nb===6){out+=B64[acc];acc=0;nb=0;}}};for(let i=0;i<bin.length;i++){const c=bin[i],wc=w+c;if(dict.has(wc)){w=wc;continue;}emit(dict.get(w));if(size<65536)dict.set(wc,size++);w=c;}if(w)emit(dict.get(w));if(nb)out+=B64[acc<<6-nb];return out;}function unpack(code){let acc=0,nb=0,pos=0;const bitsLeft=()=>(code.length-pos)*6+nb;const read=width=>{let v=0;for(let b=0;b<width;b++){if(!nb){const x=B64.indexOf(code[pos++]);if(x<0)throw new Error(\"bad code\");acc=x;nb=6;}nb--;v=v<<1|acc>>nb&1;}return v;};if(!code)return\"\";const dict=[];for(let i=0;i<256;i++)dict.push(String.fromCharCode(i));let k=1;const c0=read(widthFor(k));if(c0>=256)throw new Error(\"bad code\");let w=dict[c0];const parts=[w];while(bitsLeft()>=widthFor(k+1)){k++;const c=read(widthFor(k));let e;if(c<dict.length)e=dict[c];else if(c===dict.length)e=w+w[0];else throw new Error(\"bad code\");parts.push(e);if(dict.length<65536)dict.push(w+e[0]);w=e;}return decodeURIComponent(escape(parts.join(\"\")));}/** The shorter of the two forms: plain base64 (\"aps1.\", what 1.1 shipped with) for a small scan, compressed (\"aps2.\") for a large one. */function encodeScan(s){const json=JSON.stringify(cleanScan(s));const plain=SCAN_PREFIX_V1+btoa(unescape(encodeURIComponent(json)));if(plain.length<2e3)return plain;const packed=SCAN_PREFIX+pack(json);return packed.length<plain.length?packed:plain;}function decodeScan(code){if(!code||typeof code!==\"string\")return null;const c=code.trim().replace(/\\s+/g,\"\");try{if(c.startsWith(SCAN_PREFIX))return cleanScan(JSON.parse(unpack(c.slice(SCAN_PREFIX.length))));if(c.startsWith(SCAN_PREFIX_V1))return cleanScan(JSON.parse(decodeURIComponent(escape(atob(c.slice(SCAN_PREFIX_V1.length))))));}catch{return null;}return null;}function isEmptyScan(s){return!s||!(s.knowledge||s.entries&&s.entries.length||s.faqs&&s.faqs.length||s.hours||s.services||s.contact||s.policies);}/** Group entries (or FAQs) for the review list: by category, or by source page. */function groupBy(items,by=\"category\"){const groups=new Map;items.forEach((item,index)=>{const name=(by===\"page\"?item.source:item.category)||(by===\"page\"?\"Other\":\"General\");if(!groups.has(name))groups.set(name,[]);groups.get(name).push({item,index});});return Array.from(groups,([name,list])=>({name,items:list}));}/** A field counts as unedited when it is missing, empty, or still the shipped example value. */function isUnedited(value,example){if(value===undefined||value===null)return true;if(typeof value===\"string\")return!value.trim()||typeof example===\"string\"&&value.trim()===example.trim();if(Array.isArray(value)){if(!value.length)return true;return JSON.stringify(normList(value))===JSON.stringify(normList(Array.isArray(example)?example:[]));}return false;}/** Still exactly the example value (an empty field is the designer's choice and is left alone). */function isExample(value,example){if(value===undefined)return true;if(typeof value===\"string\")return!!value.trim()&&value.trim()===String(example??\"\").trim();if(Array.isArray(value))return value.length>0&&JSON.stringify(normList(value))===JSON.stringify(normList(Array.isArray(example)?example:[]));return false;}function normList(a){return a.map(x=>typeof x===\"string\"?x.trim():x&&typeof x===\"object\"?{q:String(x.question||\"\").trim(),a:String(x.answer||\"\").trim()}:x);}function applyScan(props,scan,examples){if(!scan||isEmptyScan(scan))return props;const out={...props};const take=(k,v)=>{if(v===undefined||Array.isArray(v)&&!v.length)return;if(isUnedited(props[k],examples[k]))out[k]=v;};take(\"business\",scan.business);take(\"shortName\",scan.shortName);take(\"label\",scan.label);take(\"greeting\",scan.greeting);take(\"chips\",scan.chips);take(\"knowledge\",scan.knowledge);take(\"faqs\",scan.faqs);take(\"hours\",scan.hours);take(\"services\",scan.services);take(\"contact\",scan.contact);take(\"policies\",scan.policies);take(\"handoffEmail\",scan.email);// Knowledge base: the designer's own entries stay and come first; scanned entries are added after them,\n// except one with the same title as a designer entry (the designer's wins).\nif(scan.entries&&scan.entries.length){const own=Array.isArray(props.knowledgeEntries)?props.knowledgeEntries.filter(e=>e&&(e.title||e.body)):[];const titles=new Set(own.map(e=>keyOf(String(e.title||\"\"))));out.knowledgeEntries=[...own,...scan.entries.filter(e=>!titles.has(keyOf(e.title)))];}[\"knowledge\",\"hours\",\"services\",\"contact\",\"policies\",\"handoffEmail\",\"greeting\"].forEach(k=>{const sk=k===\"handoffEmail\"?\"email\":k;if(scan[sk]===undefined&&isExample(props[k],examples[k]))out[k]=\"\";});[\"faqs\",\"chips\"].forEach(k=>{if(!(scan[k]&&scan[k].length)&&isExample(props[k],examples[k]))out[k]=[];});return out;}return{crawlSite,extract,encodeScan,decodeScan,applyScan,isEmptyScan,totalText,cleanScan,groupBy,MAX_PAGES,MIN_TEXT};})();const{crawlSite,extract,encodeScan,decodeScan,applyScan,isEmptyScan,totalText,groupBy,MAX_PAGES,MIN_TEXT}=AskpillSiteScan;const AskpillVault=(()=>{/**\n * Askpill chat vault (1.2.1): encrypted, tab-only storage for the Keep chat option.\n *\n * What it does\n *  - Encrypts the chat with AES-GCM (256-bit key, 96-bit random IV per write) using Web Crypto.\n *  - The key is generated in the browser as a NON-EXTRACTABLE CryptoKey. Page scripts can ask the browser\n *    to encrypt or decrypt with it, but can never read its bytes. It is kept in IndexedDB (the browser\n *    stores the key object itself, still non-extractable) so a reload in the same tab can decrypt.\n *    If IndexedDB is not available, the key lives in memory only and nothing survives a reload.\n *  - The ciphertext goes to sessionStorage, so it is scoped to this tab and is cleared when the tab closes.\n *  - Each record carries its own time and is discarded after IDLE_MS (30 minutes) without a new message.\n *  - The storage slot name is bound into the ciphertext as additional data, so a record copied to another\n *    slot does not decrypt. A record that does not decrypt is deleted, never shown.\n *  - Nothing in this module logs, and plaintext is never written to any storage.\n *\n * What it does not do (documented in SECURITY.md and SETUP.md)\n *  - It does not protect a chat from a script running on the same page (an XSS or a hostile embed can use\n *    the same key through Web Crypto). It protects against someone reading the browser's storage files or\n *    DevTools storage panel, sync or backup of storage, and a later user of a shared computer after the tab\n *    is closed or the 30 minutes pass.\n *  - The AI provider still reads each question. Encryption at rest in the browser does not change that.\n */const VAULT_PREFIX=\"apv1.\";const VAULT_IDLE_MS=30*60*1e3;const VAULT_MAX_MESSAGES=24;const VAULT_MAX_CHARS=4e3;const DB_NAME=\"askpill-vault\";const DB_STORE=\"keys\";const enc=new TextEncoder;const dec=new TextDecoder;function b64(bytes){let s=\"\";for(let i=0;i<bytes.length;i+=32768)s+=String.fromCharCode.apply(null,Array.from(bytes.subarray(i,i+32768)));return btoa(s);}function unb64(s){const bin=atob(s);const out=new Uint8Array(new ArrayBuffer(bin.length));for(let i=0;i<bin.length;i++)out[i]=bin.charCodeAt(i);return out;}/** IndexedDB key store. The CryptoKey object is stored with structured clone and stays non-extractable. */function idbKeyStore(idb=typeof indexedDB!==\"undefined\"?indexedDB:null){if(!idb)return null;const open=()=>new Promise((resolve,reject)=>{const req=idb.open(DB_NAME,1);req.onupgradeneeded=()=>{try{req.result.createObjectStore(DB_STORE);}catch{}};req.onsuccess=()=>resolve(req.result);req.onerror=()=>reject(req.error);});const run=(mode,fn)=>open().then(db=>new Promise((resolve,reject)=>{const tx=db.transaction(DB_STORE,mode);const req=fn(tx.objectStore(DB_STORE));tx.oncomplete=()=>{db.close();resolve(req?req.result:undefined);};tx.onerror=()=>{db.close();reject(tx.error);};tx.onabort=()=>{db.close();reject(tx.error);};}));return{get:id=>run(\"readonly\",s=>s.get(id)),put:(id,key)=>run(\"readwrite\",s=>s.put(key,id)).then(()=>undefined)};}/** Memory-only key store: the key is gone on reload, so nothing stored can be read after it. */function memoryKeyStore(){const m=new Map;return{get:async id=>m.get(id),put:async(id,k)=>{m.set(id,k);}};}function defaultStorage(){try{return typeof sessionStorage!==\"undefined\"?sessionStorage:null;}catch{return null;}}/** Keep only well-formed, capped messages. */function cleanRecord(r){const o=r&&typeof r===\"object\"?r:{};const msg=(m,key)=>m&&(m.role===\"user\"||m.role===\"assistant\")&&typeof m[key]===\"string\"&&m[key].trim();const cap=s=>s.slice(0,VAULT_MAX_CHARS);const session=(Array.isArray(o.session)?o.session:[]).filter(m=>msg(m,\"content\")).slice(-VAULT_MAX_MESSAGES).map(m=>({role:m.role,content:cap(m.content)}));const views={};const v=o.views&&typeof o.views===\"object\"?o.views:{};for(const k of Object.keys(v).slice(0,4)){if(!/^[a-z]{1,12}$/.test(k)||!Array.isArray(v[k]))continue;views[k]=v[k].filter(m=>msg(m,\"text\")).slice(-VAULT_MAX_MESSAGES).map(m=>({role:m.role,text:cap(m.text)}));}return{session,views};}function createChatVault(deps){const storage=deps.storage===undefined?defaultStorage():deps.storage;const subtle=(deps.crypto===undefined?typeof crypto!==\"undefined\"?crypto:null:deps.crypto)?.subtle||null;const cryptoObj=deps.crypto===undefined?typeof crypto!==\"undefined\"?crypto:null:deps.crypto;const keyStore=deps.keyStore===undefined?idbKeyStore()||memoryKeyStore():deps.keyStore||memoryKeyStore();const now=deps.now||(()=>Date.now());const slotName=\"askpill:chat:\"+deps.slot;const keyId=\"chat:\"+deps.slot;const aad=enc.encode(\"askpill-vault-v1|\"+slotName);let keyP=null;// Writes run one after another, so an older write never lands after a newer one.\nlet queue=Promise.resolve();const available=()=>!!(storage&&subtle&&cryptoObj&&typeof cryptoObj.getRandomValues===\"function\");const getKey=create=>{if(!subtle)return Promise.resolve(null);if(keyP)return keyP;const p=(async()=>{let k;try{k=await keyStore.get(keyId);}catch{k=undefined;}if(k)return k;if(!create)return null;const fresh=await subtle.generateKey({name:\"AES-GCM\",length:256},false,[\"encrypt\",\"decrypt\"]);try{await keyStore.put(keyId,fresh);}catch{}return fresh;})().catch(()=>null);// Only a found or created key is cached; a \"no key yet\" answer is asked again next time.\nkeyP=p.then(k=>{if(!k)keyP=null;return k;});return keyP;};const clear=()=>{try{storage?.removeItem(slotName);}catch{}};return{slotName,available,/** Encrypt and write the record. Never writes plaintext: on any failure the slot is cleared instead. */save(record){const job=queue.then(async()=>{if(!available())return;const clean=cleanRecord(record);if(!clean.session.length&&!Object.values(clean.views).some(v=>v.length)){clear();return;}try{const key=await getKey(true);if(!key){clear();return;}const iv=cryptoObj.getRandomValues(new Uint8Array(12));const data=enc.encode(JSON.stringify({t:now(),...clean}));const ct=new Uint8Array(await subtle.encrypt({name:\"AES-GCM\",iv,additionalData:aad},key,data));storage.setItem(slotName,VAULT_PREFIX+b64(iv)+\".\"+b64(ct));}catch{clear();}});queue=job.catch(()=>undefined);return job;},/** Read and decrypt. Null when empty, expired, tampered, or the key is gone; a bad record is deleted. */async load(){await queue;if(!available())return null;let raw=null;try{raw=storage.getItem(slotName);}catch{return null;}if(!raw)return null;const m=raw.match(/^apv1\\.([A-Za-z0-9+/=]+)\\.([A-Za-z0-9+/=]+)$/);if(!m){clear();return null;}try{const key=await getKey(false);if(!key){clear();return null;}const pt=await subtle.decrypt({name:\"AES-GCM\",iv:unb64(m[1]),additionalData:aad},key,unb64(m[2]));const o=JSON.parse(dec.decode(pt));if(!o||typeof o.t!==\"number\"||now()-o.t>VAULT_IDLE_MS||o.t-now()>6e4){clear();return null;}return cleanRecord(o);}catch{clear();return null;}},clear(){const job=queue.then(()=>clear());queue=job.catch(()=>undefined);return job;}};}return{createChatVault,idbKeyStore,memoryKeyStore,cleanRecord,VAULT_PREFIX,VAULT_IDLE_MS};})();const{createChatVault}=AskpillVault;// @framerSupportedLayoutWidth auto\n// @framerSupportedLayoutHeight auto\n/**\n * Askpill: launcher pill. A no-code Framer site assistant.\n * Every visible string says Askpill. No em-dashes in visible copy.\n * Skip any page element with data-askpill-ignore (data-tb-ignore still works as an alias).\n * The API key is never defaulted, logged, or shipped.\n * 1.2.1: nothing here logs chat text, knowledge, emails or keys. Chats are kept in memory only, unless\n * Keep chat is On, and then only encrypted (AES-GCM, see AskpillVault) in this tab's storage.\n */import{useCallback,useEffect,useId,useMemo,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const ASKPILL_WORKER_SOURCE='/**\\n * Askpill Worker: paste this whole file into a Cloudflare Worker.\\n * You do not write any JavaScript. Follow the click-by-click walkthrough\\n * on the Setup page (or WALKTHROUGH.md in this folder).\\n *\\n * What this does: it keeps your Gemini key on Cloudflare, not in your site.\\n * Askpill sends the chat here. This Worker adds the secret, forwards the\\n * request, and streams the reply back.\\n *\\n * Cloudflare dashboard (Free plan is enough: 100,000 requests a day):\\n *   1. Open https://dash.cloudflare.com and sign in (create a free account if needed).\\n *   2. Click Workers & Pages, then Create, then Worker, then \"Hello World\".\\n *   3. Click Deploy, then Edit code. Select all, delete it, and paste this file.\\n *   4. Click Deploy.\\n *   5. Open Settings, then Variables and Secrets, and add:\\n *        GEMINI_API_KEY   (Secret)  your key from Google AI Studio. This is the default.\\n *        ALLOWED_ORIGINS  (Text)    your live site and your Framer preview, comma-separated,\\n *                                   for example https://www.yourbakery.com,https://yourbakery.framer.website\\n *      Optional:\\n *        ALLOWED_MODELS   (Text)    comma-separated list. Leave empty to allow any model.\\n *        OWNER_EMAIL      (Text)    where handoff messages should be sent.\\n *        HANDOFF_WEBHOOK  (Text)    a Slack, Zapier, or HTTPS URL for the same payload.\\n *        LOG_TOKEN        (Secret)  a password you choose, to view the unanswered log.\\n *                                   With no LOG_TOKEN, the Worker keeps no log at all.\\n *        RESEND_API_KEY   (Secret)  only if you want the Worker to send email through Resend.\\n *        XAI_API_KEY, GROQ_API_KEY, OPENROUTER_API_KEY  (Secret)  only if you use those providers.\\n *   6. Copy the Worker URL (https://<name>.<you>.workers.dev).\\n *   7. In Framer, select Askpill. In the right-hand properties, turn on Advanced, paste that URL\\n *      into Worker URL, and clear the API Key field.\\n *\\n * Wrangler is optional (for developers). Dashboard first is the default path.\\n *\\n * The Origin check stops other websites from using your Worker from a browser.\\n * Requests with no Origin header are refused. It cannot stop a script that\\n * fakes the Origin header, so set a spend cap with your AI provider and keep\\n * ALLOWED_ORIGINS tight.\\n *\\n * Privacy (1.2.1): this Worker never logs prompts, replies, keys or emails (there is no console\\n * output at all), and it keeps no chat history. Chat requests are passed to the AI provider and\\n * the reply is streamed straight back. The only thing it can keep is the unanswered-question log\\n * (the question and page, never the visitor\\'s email or the chat), and only when you set LOG_TOKEN.\\n * Handoff messages are sent on to OWNER_EMAIL or HANDOFF_WEBHOOK and are not stored here.\\n *\\n * A rate limit is on by default: 20 requests a minute for each site and visitor.\\n * With Wrangler, the RATE_LIMITER binding in wrangler.toml.example enforces it\\n * across Cloudflare. Without that binding, the built-in limit below applies.\\n */\\n\\nconst PROVIDERS = {\\n  gemini: {\\n    url: \"https://generativelanguage.googleapis.com/v1beta/openai/chat/completions\",\\n    keyVar: \"GEMINI_API_KEY\",\\n  },\\n  xai: { url: \"https://api.x.ai/v1/chat/completions\", keyVar: \"XAI_API_KEY\" },\\n  groq: { url: \"https://api.groq.com/openai/v1/chat/completions\", keyVar: \"GROQ_API_KEY\" },\\n  openrouter: { url: \"https://openrouter.ai/api/v1/chat/completions\", keyVar: \"OPENROUTER_API_KEY\" },\\n};\\n\\nconst LIMITS = {\\n  maxBodyBytes: 64 * 1024,\\n  maxMessages: 40,\\n  maxMessageChars: 40000,\\n  maxTokensCap: 1024,\\n  maxLogItems: 50,\\n  upstreamTimeoutMs: 60000,\\n};\\n\\n// In-memory unanswered log for the Free plan when no KV binding is present.\\n// It resets when the Worker isolates recycle. Bind a KV namespace named\\n// ASKPILL_LOG in the dashboard if you want the log to last.\\nconst memoryLog = [];\\n\\n// Built-in rate limit, used when no RATE_LIMITER binding is present.\\n// It counts per Worker instance, so it is a floor, not a guarantee.\\nconst BUILT_IN_RATE = { limit: 20, periodMs: 60 * 1000 };\\nconst hits = new Map();\\nfunction builtInLimit(key) {\\n  const now = Date.now();\\n  const rec = hits.get(key);\\n  if (!rec || now - rec.start > BUILT_IN_RATE.periodMs) {\\n    if (hits.size > 5000) hits.clear();\\n    hits.set(key, { start: now, n: 1 });\\n    return true;\\n  }\\n  rec.n += 1;\\n  return rec.n <= BUILT_IN_RATE.limit;\\n}\\n\\nfunction list(v) {\\n  return (v || \"\").split(\",\").map((s) => s.trim()).filter(Boolean);\\n}\\n\\nfunction corsHeaders(origin) {\\n  return {\\n    \"Access-Control-Allow-Origin\": origin,\\n    \"Access-Control-Allow-Methods\": \"POST, GET, OPTIONS\",\\n    \"Access-Control-Allow-Headers\": \"Content-Type, Authorization\",\\n    \"Access-Control-Max-Age\": \"86400\",\\n    Vary: \"Origin\",\\n  };\\n}\\n\\nfunction json(status, body, origin) {\\n  return new Response(JSON.stringify(body), {\\n    status,\\n    headers: {\\n      \"Content-Type\": \"application/json\",\\n      \"Cache-Control\": \"no-store\",\\n      \"X-Content-Type-Options\": \"nosniff\",\\n      ...(origin ? corsHeaders(origin) : {}),\\n    },\\n  });\\n}\\n\\n// Compares two strings in constant time for their length, so the log password cannot be guessed by timing.\\nfunction sameSecret(a, b) {\\n  const x = new TextEncoder().encode(String(a));\\n  const y = new TextEncoder().encode(String(b));\\n  let diff = x.length ^ y.length;\\n  for (let i = 0; i < Math.max(x.length, y.length); i++) diff |= (x[i] || 0) ^ (y[i] || 0);\\n  return diff === 0;\\n}\\n\\nconst EMAIL = /^[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9-]+(\\\\.[A-Za-z0-9-]+)+$/;\\nconst oneLine = (v, max) => (typeof v === \"string\" ? v.replace(/[\\\\r\\\\n\\\\t]+/g, \" \").trim().slice(0, max) : \"\");\\n\\nfunction pathOf(request) {\\n  try {\\n    return new URL(request.url).pathname.replace(/\\\\/+$/, \"\") || \"/\";\\n  } catch {\\n    return \"/\";\\n  }\\n}\\n\\nasync function readJson(request, origin) {\\n  // Refuse a large body before reading it, then check the real size in bytes.\\n  const declared = Number(request.headers.get(\"Content-Length\") || 0);\\n  if (declared > LIMITS.maxBodyBytes) return { error: json(413, { error: { code: \"too_large\" } }, origin) };\\n  const buf = await request.arrayBuffer();\\n  if (buf.byteLength > LIMITS.maxBodyBytes) return { error: json(413, { error: { code: \"too_large\" } }, origin) };\\n  const raw = new TextDecoder().decode(buf);\\n  try {\\n    return { body: JSON.parse(raw) };\\n  } catch {\\n    return { error: json(400, { error: { code: \"bad_json\" } }, origin) };\\n  }\\n}\\n\\nasync function appendLog(env, entry) {\\n  // No LOG_TOKEN means nobody can read the log, so nothing is kept.\\n  if (!(env.LOG_TOKEN || \"\").trim()) return;\\n  const item = { kind: entry.kind, question: entry.question, pageUrl: entry.pageUrl, at: new Date().toISOString() };\\n  if (env.ASKPILL_LOG && typeof env.ASKPILL_LOG.get === \"function\") {\\n    const prev = JSON.parse((await env.ASKPILL_LOG.get(\"unanswered\")) || \"[]\");\\n    prev.unshift(item);\\n    await env.ASKPILL_LOG.put(\"unanswered\", JSON.stringify(prev.slice(0, LIMITS.maxLogItems)));\\n    return;\\n  }\\n  memoryLog.unshift(item);\\n  if (memoryLog.length > LIMITS.maxLogItems) memoryLog.length = LIMITS.maxLogItems;\\n}\\n\\nasync function readLog(env) {\\n  if (env.ASKPILL_LOG && typeof env.ASKPILL_LOG.get === \"function\") {\\n    return JSON.parse((await env.ASKPILL_LOG.get(\"unanswered\")) || \"[]\");\\n  }\\n  return memoryLog.slice();\\n}\\n\\nasync function notifyOwner(env, payload) {\\n  const results = { webhook: \"skipped\", email: \"skipped\" };\\n  const hook = (env.HANDOFF_WEBHOOK || \"\").trim();\\n  if (hook && !/^https:\\\\/\\\\//i.test(hook)) {\\n    results.webhook = \"failed:not_https\";\\n  } else if (hook) {\\n    try {\\n      const r = await fetch(hook, {\\n        method: \"POST\",\\n        headers: { \"Content-Type\": \"application/json\" },\\n        body: JSON.stringify(payload),\\n      });\\n      results.webhook = r.ok ? \"sent\" : \"failed:\" + r.status;\\n    } catch {\\n      results.webhook = \"failed\";\\n    }\\n  }\\n  const resend = (env.RESEND_API_KEY || \"\").trim();\\n  const to = (env.OWNER_EMAIL || \"\").trim();\\n  if (resend && to) {\\n    try {\\n      const subject = payload.kind === \"handoff\"\\n        ? \"Askpill: someone asked to talk to a person\"\\n        : \"Askpill: a question went unanswered\";\\n      const lines = [\\n        payload.kind === \"handoff\" ? \"A visitor asked to talk to a person.\" : \"The assistant was unsure.\",\\n        payload.visitorEmail ? \"Visitor email: \" + payload.visitorEmail : null,\\n        payload.pageUrl ? \"Page: \" + payload.pageUrl : null,\\n        payload.question ? \"Question: \" + payload.question : null,\\n        payload.transcript ? \"\\\\nChat:\\\\n\" + payload.transcript : null,\\n      ].filter(Boolean);\\n      const r = await fetch(\"https://api.resend.com/emails\", {\\n        method: \"POST\",\\n        headers: {\\n          \"Content-Type\": \"application/json\",\\n          Authorization: \"Bearer \" + resend,\\n        },\\n        body: JSON.stringify({\\n          from: \"Askpill <askpill@updates.resend.dev>\",\\n          to: [to],\\n          subject,\\n          text: lines.join(\"\\\\n\"),\\n        }),\\n      });\\n      results.email = r.ok ? \"sent\" : \"failed:\" + r.status;\\n    } catch {\\n      results.email = \"failed\";\\n    }\\n  }\\n  return results;\\n}\\n\\nasync function handleChat(request, env, origin) {\\n  const parsed = await readJson(request, origin);\\n  if (parsed.error) return parsed.error;\\n  const body = parsed.body;\\n\\n  const providerId = body.provider || \"gemini\";\\n  const provider = PROVIDERS[providerId];\\n  if (!provider) return json(400, { error: { code: \"unknown_provider\" } }, origin);\\n  const key = env[provider.keyVar];\\n  if (!key) return json(500, { error: { code: \"provider_not_configured\", provider: providerId } }, origin);\\n\\n  const models = list(env.ALLOWED_MODELS);\\n  if (typeof body.model !== \"string\" || (models.length && !models.includes(body.model))) {\\n    return json(400, { error: { code: \"model_not_allowed\" } }, origin);\\n  }\\n  if (!Array.isArray(body.messages) || body.messages.length === 0 || body.messages.length > LIMITS.maxMessages) {\\n    return json(400, { error: { code: \"bad_messages\" } }, origin);\\n  }\\n  const messages = body.messages\\n    .filter((m) => m && [\"system\", \"user\", \"assistant\"].includes(m.role) && typeof m.content === \"string\")\\n    .map((m) => ({ role: m.role, content: m.content.slice(0, LIMITS.maxMessageChars) }));\\n  if (!messages.length) return json(400, { error: { code: \"bad_messages\" } }, origin);\\n\\n  // Only allow-listed fields go upstream. The client never chooses the key or URL.\\n  // Any client-sent key is ignored.\\n  const upstreamBody = {\\n    model: body.model,\\n    messages,\\n    stream: body.stream !== false,\\n    max_tokens: Math.min(Number(body.max_tokens) || 600, LIMITS.maxTokensCap),\\n  };\\n  if (typeof body.temperature === \"number\") {\\n    upstreamBody.temperature = Math.max(0, Math.min(1.5, body.temperature));\\n  }\\n\\n  const headers = { \"Content-Type\": \"application/json\", Authorization: \"Bearer \" + key };\\n  if (providerId === \"openrouter\") {\\n    headers[\"HTTP-Referer\"] = origin;\\n    headers[\"X-Title\"] = \"Askpill\";\\n  }\\n\\n  let upstream;\\n  try {\\n    upstream = await fetch(provider.url, {\\n      method: \"POST\",\\n      headers,\\n      body: JSON.stringify(upstreamBody),\\n      signal: AbortSignal.timeout ? AbortSignal.timeout(LIMITS.upstreamTimeoutMs) : undefined,\\n    });\\n  } catch {\\n    // The provider could not be reached. No details are passed on (they can name internal hosts).\\n    return json(502, { error: { code: \"upstream_unreachable\" } }, origin);\\n  }\\n  if (!upstream.ok) {\\n    // The provider\\'s own error body is not passed on: it can echo parts of the request.\\n    return json(upstream.status === 429 ? 429 : upstream.status >= 500 ? 502 : upstream.status,\\n      { error: { code: upstream.status === 429 ? \"rate_limited\" : \"upstream_error\", status: upstream.status } }, origin);\\n  }\\n\\n  const out = new Headers(corsHeaders(origin));\\n  out.set(\"Content-Type\", upstream.headers.get(\"Content-Type\") || \"text/event-stream\");\\n  out.set(\"Cache-Control\", \"no-store\");\\n  const retry = upstream.headers.get(\"Retry-After\");\\n  if (retry) out.set(\"Retry-After\", retry);\\n  return new Response(upstream.body, { status: upstream.status, headers: out });\\n}\\n\\nasync function handleHandoff(request, env, origin) {\\n  const parsed = await readJson(request, origin);\\n  if (parsed.error) return parsed.error;\\n  const b = parsed.body || {};\\n  const visitorEmail = oneLine(b.visitorEmail, 200);\\n  if (!EMAIL.test(visitorEmail)) return json(400, { error: { code: \"bad_email\" } }, origin);\\n  const payload = {\\n    kind: \"handoff\",\\n    visitorEmail,\\n    question: oneLine(b.question, 2000),\\n    pageUrl: oneLine(b.pageUrl, 500).replace(/[?#].*$/, \"\"),\\n    transcript: typeof b.transcript === \"string\" ? b.transcript.slice(0, 8000) : \"\",\\n  };\\n  // The log keeps the question and page only, never the email or the chat.\\n  if (payload.question) await appendLog(env, { kind: \"handoff\", question: payload.question, pageUrl: payload.pageUrl });\\n  const notify = await notifyOwner(env, payload);\\n  return json(200, { ok: true, notify }, origin);\\n}\\n\\nasync function handleUnanswered(request, env, origin) {\\n  const parsed = await readJson(request, origin);\\n  if (parsed.error) return parsed.error;\\n  const b = parsed.body || {};\\n  const entry = {\\n    kind: \"unanswered\",\\n    question: oneLine(b.question, 2000),\\n    pageUrl: oneLine(b.pageUrl, 500).replace(/[?#].*$/, \"\"),\\n  };\\n  if (!entry.question) return json(400, { error: { code: \"missing_question\" } }, origin);\\n  await appendLog(env, entry);\\n  const notify = await notifyOwner(env, entry);\\n  return json(200, { ok: true, notify }, origin);\\n}\\n\\nasync function handleLog(request, env, origin) {\\n  const url = new URL(request.url);\\n  // The Authorization header is preferred. ?token= still works for opening the log in a browser tab,\\n  // but it can end up in browser history, so use it only on your own computer.\\n  const token = request.headers.get(\"Authorization\") || url.searchParams.get(\"token\") || \"\";\\n  const expected = (env.LOG_TOKEN || \"\").trim();\\n  if (!expected || !sameSecret(token.replace(/^Bearer\\\\s+/i, \"\"), expected)) {\\n    return json(401, { error: { code: \"unauthorized\" } }, origin);\\n  }\\n  const items = await readLog(env);\\n  return json(200, { items }, origin);\\n}\\n\\nexport default {\\n  async fetch(request, env) {\\n    const origin = request.headers.get(\"Origin\") || \"\";\\n    const allowed = list(env.ALLOWED_ORIGINS);\\n    const path = pathOf(request);\\n\\n    // The log view can be opened in a browser tab (no Origin), so it uses LOG_TOKEN instead.\\n    // Another website\\'s page can never read it: CORS is only granted to ALLOWED_ORIGINS.\\n    if (request.method === \"GET\" && (path === \"/log\" || path === \"/unanswered\")) {\\n      return handleLog(request, env, origin && allowed.includes(origin) ? origin : \"\");\\n    }\\n\\n    // Browsers always send Origin on these requests. No Origin means no access.\\n    if (!origin) return json(403, { error: { code: \"origin_missing\" } });\\n    const originOk = allowed.includes(origin);\\n    if (request.method === \"OPTIONS\") {\\n      return originOk\\n        ? new Response(null, { status: 204, headers: corsHeaders(origin) })\\n        : new Response(null, { status: 403 });\\n    }\\n    if (!originOk) return json(403, { error: { code: \"origin_not_allowed\" } });\\n    if (request.method !== \"POST\") return json(405, { error: { code: \"method_not_allowed\" } }, origin);\\n\\n    const ip = request.headers.get(\"CF-Connecting-IP\") || \"unknown\";\\n    if (env.RATE_LIMITER) {\\n      const { success } = await env.RATE_LIMITER.limit({ key: origin + \"|\" + ip });\\n      if (!success) return json(429, { error: { code: \"rate_limited\" } }, origin);\\n    } else if (!builtInLimit(origin + \"|\" + ip)) {\\n      return json(429, { error: { code: \"rate_limited\" } }, origin);\\n    }\\n\\n    if (path === \"/handoff\") return handleHandoff(request, env, origin);\\n    if (path === \"/unanswered\") return handleUnanswered(request, env, origin);\\n    return handleChat(request, env, origin);\\n  },\\n};\\n';// end worker source\n/** Component version. Shown in the Version control and kept in step with the changelog. */export const ASKPILL_VERSION=\"1.2.1\";const OPEN_MS=480;const CLOSE_MS=320;export const defaultChips=[\"Anything gluten-free today?\",\"Can I order a birthday cake?\",\"When do you open Sunday?\"];export const defaultGreeting=\"Hi! I'm the Oddloaf helper. Ask me about today's bakes, pickup times, allergens, or custom cakes.\";export const defaultKnowledge=[\"Hours: Tuesday to Saturday 7am-4pm, Sunday 8am-2pm. Closed Monday.\",\"Address: 14 Linden Row.\",\"Custom cakes: Custom cakes need 48 hours notice. Saturday pickup works if you order by Thursday at 5pm. 8-inch layer cakes start at $46. Pickup opens at 8am.\",\"Gluten-free: almond cake and brownies daily, made in a shared kitchen.\",\"Wholesale: email Mara at hello@oddloaf.example.\"].join(\"\\n\");export const POSITION_OPTIONS=[\"right\",\"left\",\"bottom-center\",\"top-right\",\"top-left\",\"top-center\"];export const POSITION_TITLES=[\"Bottom Right\",\"Bottom Left\",\"Bottom Center\",\"Top Right\",\"Top Left\",\"Top Center\"];export function positionParts(p){switch(p){case\"left\":case\"bottom-left\":return{v:\"bottom\",h:\"left\"};case\"bottom-center\":return{v:\"bottom\",h:\"center\"};case\"top-right\":return{v:\"top\",h:\"right\"};case\"top-left\":return{v:\"top\",h:\"left\"};case\"top-center\":return{v:\"top\",h:\"center\"};default:return{v:\"bottom\",h:\"right\"};}}/**\n * The CSS anchor of the floating pill (and the panel it opens into) for a Position.\n * edge: inset from the side edge. vert: inset from the top or bottom edge (the safe area is added).\n * width: the shell's current width, used to center it. safe: how much of the safe area to add (\"1\" = all).\n */export function pillAnchor(p,o){const{v,h}=positionParts(p);const r2=n=>Math.round(n*100)/100;const out={left:\"auto\",right:\"auto\",top:\"auto\",bottom:\"auto\"};out[v]=`calc(${r2(o.vert)}px + env(safe-area-inset-${v}, 0px) * ${o.safe??\"1\"})`;if(h===\"center\")out.left=o.width!=null?`calc(50% - ${r2(o.width/2)}px)`:\"50%\";else out[h]=r2(o.edge)+\"px\";return out;}/** First paint, before the pill is measured. Bottom Right keeps 1.1's exact behavior (CSS corner, badge clearance only). */export function firstPaintAnchor(p,badgeGap,phone=typeof window!==\"undefined\"&&window.innerWidth<600){const{v,h}=positionParts(p);const m=phone?16:24;if(v===\"bottom\"&&h===\"right\")return badgeGap?{bottom:`calc(${m+badgeGap}px + env(safe-area-inset-bottom, 0px))`}:undefined;const a=pillAnchor(p,{edge:m,vert:m+(v===\"bottom\"?badgeGap:0)});return h===\"center\"?{...a,transform:\"translateX(-50%)\"}:a;}export const defaultFaqs=[{category:\"Hours\",question:\"When do you open Sunday?\",answer:\"Sundays from 8 am to 2 pm. We are closed Monday. Tuesday to Saturday we are open 7 am to 4 pm.\"},{category:\"Cakes\",question:\"Can I order a birthday cake?\",answer:\"Yes. Custom cakes need 48 hours notice. An 8-inch layer cake starts at $46. For a Saturday pickup, order by Thursday at 5 pm.\"},{category:\"Allergens\",question:\"Anything gluten-free today?\",answer:\"We always have almond cake and brownies. They are made in a shared kitchen, so they are not suitable if you need a dedicated gluten-free space.\"},{category:\"Wholesale\",question:\"Do you wholesale?\",answer:\"Yes. Email Mara at hello@oddloaf.example and she will send this week's list.\"}];export const defaultHours=\"Tue-Sat 7am-4pm, Sun 8am-2pm. Closed Monday.\";export const defaultServices=\"Daily bakes, custom cakes with 48 hours notice, wholesale.\";export const defaultContact=\"14 Linden Row. hello@oddloaf.example\";export const defaultPolicies=\"Gluten-free items are made in a shared kitchen. Custom cakes need 48 hours notice.\";export const defaultHandoffEmail=\"hello@oddloaf.example\";export const defaultBusiness=\"Oddloaf Bakery\";export const defaultShortName=\"Oddloaf\";export const defaultLabel=\"Ask Oddloaf\";/** The example site's look, as it appears in a pasted instance (Primary, Surface, Text and its Matched theme). */export const EXAMPLE_STYLE={primary:\"#b4532a\",surface:\"#fffaf2\",textColor:\"#2b1d14\"};function currentTarget(){try{return RenderTarget.current();}catch{return null;}}function isExportTarget(){try{const exp=RenderTarget.export;return!!(exp!=null&&currentTarget()===exp);}catch{return false;}}/**\n * Host checks. The editor canvas, Framer Preview and local dev run on these hosts.\n * Anything else (*.framer.app, *.framer.website, a buyer's custom domain) is a\n * published visitor page.\n */const EDITOR_HOSTS=/(^|\\.)(framercanvas\\.com|framer\\.com|framer\\.media)$|^(localhost|127\\.0\\.0\\.1)$/i;const FRAMER_PUBLISHED_HOSTS=/(^|\\.)(framer\\.app|framer\\.website)$/i;/** \"editor\" | \"framer-published\" | \"published\" | \"unknown\" (no readable host name). */function hostKind(){let h=\"\";try{h=String(window.location.hostname||\"\");}catch{return\"unknown\";}if(!h)return\"unknown\";if(EDITOR_HOSTS.test(h))return\"editor\";if(FRAMER_PUBLISHED_HOSTS.test(h))return\"framer-published\";return\"published\";}function isEditorTarget(){const t=currentTarget();if(t===RenderTarget.canvas||isExportTarget())return true;if(t==null){// Server render has no window. Only published pages are prerendered, so\n// the notice is never baked into the live HTML.\nif(typeof window===\"undefined\")return false;// Null target: trust it as the editor only when the host looks like the editor\n// (or cannot be read). Published hosts, including custom domains, are never the editor.\nconst k=hostKind();return k===\"editor\"||k===\"unknown\";}// Framer Preview runs on the editor hosts. A \"preview\" target on any other host\n// (*.framer.app, *.framer.website, a custom domain) is the live site.\nif(t===RenderTarget.preview){if(typeof window===\"undefined\")return false;const k=hostKind();return k===\"editor\"||k===\"unknown\";}return false;}/**\n * Bottom clearance for the \"Made in Framer\" badge, which sits bottom right on\n * free *.framer.app / *.framer.website sites and would cover the pill.\n * 0 in the editor, Preview, localhost and on custom domains.\n */const BADGE_CLEARANCE=60;function badgeClearance(){if(typeof window===\"undefined\")return 0;if(currentTarget()===RenderTarget.canvas||isExportTarget())return 0;return hostKind()===\"framer-published\"?BADGE_CLEARANCE:0;}function isCanvas(){// True for the editor canvas and for Framer export/screenshot, which is\n// not preview and not the live site. Those must not portal to document.body.\ntry{return currentTarget()===RenderTarget.canvas||isExportTarget();}catch{return false;}}/**\n * Setup on the published site: adding ?askpill=scan to your own site's address shows the Setup Notice and\n * Scan this site in YOUR browser only, so the scan can read the real, published pages. Visitors who do not\n * add it never see either. Read only in the browser, never during prerender.\n */function setupParam(){try{return typeof window!==\"undefined\"&&/[?&]askpill=scan(&|$)/.test(window.location.search);}catch{return false;}}/** Framer's own editor and Preview hosts: other paths here are Framer's pages, not the buyer's, so a crawl reads only this page. */function onFramerEditorHost(){try{return/(^|\\.)(framercanvas\\.com|framer\\.com|framer\\.media)$/i.test(window.location.hostname);}catch{return false;}}function isPublished(){if(typeof window===\"undefined\")return true;return!isEditorTarget();}/** Framer passes an empty array for an unconnected ComponentInstance slot, which is truthy in JS. */function hasSlot(node){if(node==null||node===false||node===true)return false;if(Array.isArray(node))return node.some(hasSlot);if(typeof node===\"string\")return node.trim().length>0;return true;}function parseColor(c){if(!c)return null;const hexm=c.trim().match(/^#([0-9a-f]{3,8})$/i);if(hexm){let h=hexm[1];if(h.length===3)h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2];return[parseInt(h.slice(0,2),16),parseInt(h.slice(2,4),16),parseInt(h.slice(4,6),16),1];}const m=c.match(/rgba?\\(([^)]+)\\)/);if(!m)return null;const a=m[1].split(/[ ,/]+/).filter(Boolean).map(Number);return[a[0],a[1],a[2],a.length>3?a[3]:1];}const hex=c=>\"#\"+c.slice(0,3).map(v=>Math.round(v).toString(16).padStart(2,\"0\")).join(\"\");const lum=c=>{const f=v=>{v/=255;return v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4);};return .2126*f(c[0])+.7152*f(c[1])+.0722*f(c[2]);};const contrast=(a,b)=>{const x=lum(a),y=lum(b);return(Math.max(x,y)+.05)/(Math.min(x,y)+.05);};const mix=(a,b,t)=>[0,1,2].map(i=>a[i]+(b[i]-a[i])*t).concat(1);const rgba=(c,a)=>`rgba(${c.slice(0,3).map(Math.round).join(\",\")},${a})`;function visibleEl(el){const r=el.getBoundingClientRect();return r.width>20&&r.height>16&&!el.closest(SKIP_SELECTOR);}/** Elements Askpill never reads. data-askpill-ignore is the documented name; data-tb-ignore is kept as an alias. */const SKIP_SELECTOR=\"[data-askpill],[data-askpill-ignore],[data-tb-ignore]\";/** readHost() looks at no more than this many elements in total. */const HOST_SAMPLE_CAP=40;export function readHost(){if(typeof document===\"undefined\")return fallbackHost();let budget=HOST_SAMPLE_CAP;// Look at a few candidates per query and never more than HOST_SAMPLE_CAP elements overall.\nconst pick=(sel,per,ok)=>{const list=document.querySelectorAll(sel);const n=Math.min(list.length,per);for(let i=0;i<n&&budget>0;i++){budget--;if(ok(list[i]))return list[i];}return undefined;};let el=document.body;let wrapper=false;let bg=null;for(const e of[document.querySelector(\"main\"),document.body,document.documentElement]){if(!e)continue;budget--;const c=parseColor(getComputedStyle(e).backgroundColor);if(c&&c[3]>.5){bg=c;el=e;break;}}if(!bg&&typeof document.elementsFromPoint===\"function\"&&typeof window!==\"undefined\"){// Page color on a wrapper and not on body: walk up from the middle of the viewport.\nconst stack=document.elementsFromPoint(window.innerWidth/2,Math.min(window.innerHeight/2,400));for(const start of stack){if(start.closest(SKIP_SELECTOR))continue;let cur=start;while(cur&&cur!==document.documentElement&&budget>0){budget--;const c=parseColor(getComputedStyle(cur).backgroundColor);const r=cur.getBoundingClientRect();if(c&&c[3]>.5&&r.width>=window.innerWidth*.6){bg=c;el=cur;wrapper=true;break;}cur=cur.parentElement;}break;}}bg=bg||[255,255,255,1];const bs=getComputedStyle(wrapper?el:document.body);const h=pick(\"h1,h2\",8,visibleEl)||document.body;const hs=getComputedStyle(h);const btn=pick(\"button,a.btn,.btn,[role=button],input[type=submit]\",12,e=>visibleEl(e)&&(parseColor(getComputedStyle(e).backgroundColor)||[0,0,0,0])[3]>.5);// Framer and other builders draw buttons as links with a filled background, not <button>.\n// Only used when no real button was found, and only a fill that stands out from the page.\nconst btn2=btn||pick(\"a\",16,e=>{if(!visibleEl(e))return false;const c=parseColor(getComputedStyle(e).backgroundColor);return!!(c&&c[3]>.5&&contrast(c,bg)>1.6);});const bts=btn2?getComputedStyle(btn2):null;const fg=parseColor(bs.color)||[17,17,17,1];const link=pick(\"main a,section a,p a,a\",8,a=>{if(!visibleEl(a)||a.matches(\".btn,button\"))return false;const c=parseColor(getComputedStyle(a).color);return!!(c&&contrast(c,fg)>1.4);});const card=pick(\".card,[class*=card]\",4,visibleEl)||pick(\"img,section,article\",6,e=>visibleEl(e)&&parseFloat(getComputedStyle(e).borderTopLeftRadius)>0);// Framer sets body to the bare \"sans-serif\" and puts the real font on each text layer,\n// so a generic body font falls back to the font of the first visible paragraph.\nlet bodyFont=bs.fontFamily;const para=pick(\"p\",8,visibleEl);if(/^\\s*[\"']?(sans-serif|serif|system-ui|monospace)[\"']?\\s*$/i.test(bodyFont||\"\")){if(para)bodyFont=getComputedStyle(para).fontFamily||bodyFont;}// How much of the real page was seen (Askpill's own UI is never sampled). Below 2, Match Now\n// says it could not read the page instead of showing a default as if it were a match.\nconst found=[h!==document.body,!!btn2,!!link,!!card,!!para].filter(Boolean).length;return{found,bodyFont,headFont:hs.fontFamily,headWeight:hs.fontWeight,headTransform:hs.textTransform,headSpacing:hs.letterSpacing===\"normal\"?\"normal\":(parseFloat(hs.letterSpacing)/parseFloat(hs.fontSize)).toFixed(3)+\"em\",bg,fg,primary:bts?parseColor(bts.backgroundColor)||fallbackHost().primary:fallbackHost().primary,// A link-drawn button keeps its label color on the text layer inside it.\nonPrimary:bts?parseColor(getComputedStyle(!btn&&btn2&&btn2.querySelector(\"p,span,div\")||btn2).color)||fallbackHost().onPrimary:fallbackHost().onPrimary,accent:link?parseColor(getComputedStyle(link).color):null,btnRadius:bts?parseFloat(bts.borderTopLeftRadius):8,btnHeight:btn2?btn2.getBoundingClientRect().height:44,cardRadius:card?parseFloat(getComputedStyle(card).borderTopLeftRadius):null};}/**\n * The neutral default: black and green. Used before the page is read and whenever\n * auto-theme is off. It is not a sample brand and loads no web font.\n */export const DEFAULT_TOKENS={font:\"Inter, system-ui, -apple-system, sans-serif\",head:\"Inter, system-ui, -apple-system, sans-serif\",headW:\"600\",headTT:\"none\",headLS:\"normal\",bg:\"#0e1013\",surface:\"#16181d\",fg:\"#eceef2\",muted:\"rgba(236,238,242,0.62)\",primary:\"#c8f04a\",onPrimary:\"#0d1004\",accent:\"#c8f04a\",border:\"rgba(255,255,255,0.11)\",user:\"#22262d\",chip:\"rgba(255,255,255,0.06)\",shadow:\"0 30px 80px -16px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.04)\",R:14,rctl:8,scheme:\"dark\"};function fallbackHost(){return{bodyFont:DEFAULT_TOKENS.font,headFont:DEFAULT_TOKENS.head,headWeight:\"600\",headTransform:\"none\",headSpacing:\"normal\",bg:[14,16,19,1],fg:[236,238,242,1],primary:[200,240,74,1],onPrimary:[13,16,4,1],accent:[200,240,74,1],btnRadius:8,btnHeight:44,cardRadius:14,// Marks the neutral default so deriveTokens returns the exact default values.\npreset:DEFAULT_TOKENS};}/** Neutral light base, used only when Scheme is set to Light while the default is showing. */function fallbackHostLight(surface){// When Surface is set, the light base starts from it, so first paint has no gray inputs.\nconst s=surface?parseColor(String(surface)):null;return{...fallbackHost(),preset:undefined,bg:s||[244,245,247,1],fg:[17,19,23,1],accent:[17,19,23,1]};}/** Contrast guard: text on the panel and text on primary must reach 4.5:1, or become black or white. */function guardContrast(t){const out={...t};const pick=bgc=>{const w=contrast([255,255,255],bgc),b=contrast([0,0,0],bgc);return w>=b?[255,255,255,1]:[0,0,0,1];};const s=parseColor(out.surface),f=parseColor(out.fg);if(s&&f&&contrast(f,s)<4.5){const nf=pick(s);out.fg=hex(nf);out.muted=rgba(nf,.6);}const p=parseColor(out.primary),o=parseColor(out.onPrimary);if(p&&o&&contrast(o,p)<4.5)out.onPrimary=hex(pick(p));// Accent colors \"Talk to a Person\" and other links. A pale page-link color, or a Light\n// flip that kept a light accent, can vanish on a light panel. Require 4.5:1 on the surface.\nconst a=parseColor(out.accent);if(s&&a&&contrast(a,s)<4.5){const link=parseColor(out.fg);out.accent=link&&contrast(link,s)>=4.5?out.fg:hex(pick(s));}return out;}export function deriveTokens(h,ov={}){if(h&&h.preset){if(ov.scheme===\"light\")return guardContrast(deriveFromHost(fallbackHostLight(ov.surface),ov));const P=h.preset;const t=deriveFromHost(h,ov);const has=k=>!!(ov[k]&&parseColor(String(ov[k])));const hasP=has(\"primary\"),hasS=has(\"surface\"),hasT=has(\"textColor\");const hasR=ov.radius!=null&&ov.radius!==\"\"&&ov.radius!==\"auto\";return guardContrast({...P,font:ov.font||P.font,head:ov.headFont||P.head,primary:hasP?t.primary:P.primary,onPrimary:hasP?t.onPrimary:P.onPrimary,accent:hasP?t.primary:P.accent,surface:hasS?t.surface:P.surface,fg:hasT?t.fg:P.fg,muted:hasT?t.muted:P.muted,border:hasT?t.border:P.border,chip:hasT?t.chip:P.chip,user:hasS||hasP?t.user:P.user,R:hasR?t.R:P.R});}return guardContrast(deriveFromHost(h,ov));}/**\n * A real opposite palette from this page's colors, for Scheme Light or Dark on a page of the other kind.\n * Dark: a near-black tinted with the page color and near-white text. Light: the reverse.\n * Primary (the site's button color) is kept; contrast is guarded afterwards.\n */function flipHost(h,toLight){const bg=h.bg,prim=h.primary||bg;const tint=mix(bg,prim,.25);const nbg=toLight?mix([250,250,249,1],tint,.06):mix([15,16,19,1],tint,.1);const nfg=toLight?mix([20,21,24,1],tint,.12):mix([238,239,242,1],tint,.06);const acc=h.accent&&contrast(h.accent,nbg)>=3?h.accent:null;return{...h,bg:nbg.slice(0,3).concat(1),fg:nfg.slice(0,3).concat(1),accent:acc};}function deriveFromHost(h,ov={}){const natural=lum(h.bg)>.4;const light=ov.scheme===\"dark\"?false:ov.scheme===\"light\"?true:natural;if(light!==natural)h=flipHost(h,light);const primary=ov.primary?parseColor(String(ov.primary))||h.primary:h.primary;let onP=h.onPrimary;if(!onP||contrast(onP,primary)<3)onP=lum(primary)>.45?[17,17,17,1]:[255,255,255,1];const accent=h.accent||primary;const pill=h.btnRadius>=h.btnHeight/2-1;const rctl=pill?999:Math.round(h.btnRadius);let R;if(ov.radius===0||ov.radius===\"0\")R=0;else if(ov.radius===\"8\")R=8;else if(ov.radius===\"16\")R=16;else if(ov.radius===\"pill\")R=28;else R=pill?22:Math.max(4,Math.min(22,Math.round(h.cardRadius!=null?h.cardRadius:h.btnRadius*1.6)));const surfaceCol=ov.surface?parseColor(String(ov.surface))||(light?mix(h.bg,[255,255,255],.55):mix(h.bg,[255,255,255],.06)):light?mix(h.bg,[255,255,255],.55):mix(h.bg,[255,255,255],.06);const inner=light?mix(h.bg,[255,255,255],.85):mix(h.bg,[0,0,0],.35);const fg=ov.textColor?parseColor(String(ov.textColor))||h.fg:h.fg;return{font:ov.font||h.bodyFont,head:ov.headFont||h.headFont,headW:h.headWeight,headTT:h.headTransform,headLS:h.headSpacing,bg:hex(inner),surface:hex(surfaceCol),fg:hex(fg),muted:rgba(fg,.6),primary:hex(primary),onPrimary:hex(onP),accent:hex(accent),border:rgba(fg,light?.1:.14),user:hex(mix(surfaceCol,primary,light?.13:.22)),chip:rgba(fg,light?.045:.07),shadow:light?\"0 30px 70px -24px rgba(40,25,10,.38),0 2px 10px rgba(0,0,0,.07)\":\"0 30px 80px -20px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.06)\",R,rctl,scheme:light?\"light\":\"dark\"};}function tokenStyle(t){return{[\"--ap-font\"]:t.font,[\"--ap-head\"]:t.head,[\"--ap-head-w\"]:t.headW,[\"--ap-head-tt\"]:t.headTT,[\"--ap-head-ls\"]:t.headLS,[\"--ap-bg\"]:t.bg,[\"--ap-surface\"]:t.surface,[\"--ap-fg\"]:t.fg,[\"--ap-muted\"]:t.muted,[\"--ap-primary\"]:t.primary,[\"--ap-on-primary\"]:t.onPrimary,[\"--ap-accent\"]:t.accent,[\"--ap-border\"]:t.border,[\"--ap-user\"]:t.user,[\"--ap-chip\"]:t.chip,[\"--ap-shadow\"]:t.shadow,[\"--ap-r\"]:t.R+\"px\",[\"--ap-r-ctl\"]:t.rctl+\"px\",fontFamily:t.font,color:t.fg};}const clamp=v=>Math.max(0,Math.min(1,v));const back=(p,s=.9)=>{p-=1;return p*p*((s+1)*p+s)+1;};const cubicOut=p=>1-Math.pow(1-p,3);const inOut=p=>p<.5?4*p*p*p:1-Math.pow(-2*p+2,3)/2;const lerp=(a,b,t)=>a+(b-a)*t;const IconSpark=({size=18})=>/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M4 12.5c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8c-1.3 0-2.6-.3-3.7-.9L4 20.5l1-3.9A7.9 7.9 0 0 1 4 12.5Z\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 8.6l.9 2.5 2.5.9-2.5.9-.9 2.5-.9-2.5-2.5-.9 2.5-.9.9-2.5Z\",fill:\"currentColor\"})]});const IconSparkS=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 3l2.2 6.8L21 12l-6.8 2.2L12 21l-2.2-6.8L3 12l6.8-2.2L12 3Z\",fill:\"currentColor\"})});const IconX=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 6l12 12M18 6L6 18\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\"})});const IconMin=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 9l6 6 6-6\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const IconUp=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 19V5M5.5 11.5 12 5l6.5 6.5\",stroke:\"currentColor\",strokeWidth:\"2.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const IconStop=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"rect\",{x:\"4\",y:\"4\",width:\"16\",height:\"16\",rx:\"3\",fill:\"currentColor\"})});const IconMail=()=>/*#__PURE__*/_jsxs(\"svg\",{width:\"15\",height:\"15\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"5\",width:\"18\",height:\"14\",rx:\"2.5\",stroke:\"currentColor\",strokeWidth:\"1.9\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m4 7 8 6 8-6\",stroke:\"currentColor\",strokeWidth:\"1.9\",strokeLinecap:\"round\"})]});const IconExt=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5\",stroke:\"currentColor\",strokeWidth:\"1.9\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const IconKey=()=>/*#__PURE__*/_jsxs(\"svg\",{width:\"15\",height:\"15\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"8\",cy:\"15\",r:\"4\",stroke:\"currentColor\",strokeWidth:\"1.9\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11.5 13.5 20 5v4\",stroke:\"currentColor\",strokeWidth:\"1.9\",strokeLinecap:\"round\"})]});const IconCheck=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12.5 10 17.5 19 7\",stroke:\"currentColor\",strokeWidth:\"2.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const STYLES=`\n[data-askpill],[data-askpill] :where(:not(svg):not(svg *)){all:revert}\n[data-askpill],[data-askpill] *,[data-askpill] *::before,[data-askpill] *::after{box-sizing:border-box}\n[data-askpill]{font:400 14.5px/1.5 var(--ap-font,Inter,system-ui,-apple-system,sans-serif);line-height:1.5;color:var(--ap-fg,#eceef2);text-align:left}\n[data-askpill] style{display:none}\n[data-askpill] :focus-visible{outline:2px solid var(--ap-primary,#0a84ff);outline-offset:2px}\n.ap[data-askpill]{position:fixed;inset:0;pointer-events:none;z-index:2147483000;font-family:var(--ap-font);color:var(--ap-fg);-webkit-font-smoothing:antialiased}\n.ap[data-askpill][data-canvas=\"1\"]{position:relative;inset:auto;width:100%;height:100%;min-height:420px;pointer-events:auto;z-index:1}\n[data-askpill] .ap-scrim{position:absolute;inset:0;background:rgba(0,0,0,.38);opacity:0;pointer-events:none}\n[data-askpill] .ap-shell{position:absolute;overflow:hidden;background:var(--ap-primary);box-shadow:var(--ap-shadow);will-change:width,height,border-radius;pointer-events:auto;width:max-content;min-width:168px;height:54px;border-radius:999px;right:24px;bottom:24px}\n[data-askpill] .ap-pillc{position:absolute;right:0;bottom:0;display:flex;align-items:center;gap:10px;padding:0 22px 0 8px;white-space:nowrap;color:var(--ap-on-primary);font:500 15px/1 var(--ap-font);cursor:pointer;border:0;background:transparent;width:max-content;height:54px;text-align:left}\n[data-askpill] .ap-pillc .ap-ico{width:36px;height:36px;border-radius:999px;display:grid;place-items:center;background:color-mix(in srgb,var(--ap-on-primary) 16%,transparent);flex:none}\n[data-askpill] .ap-pillc .ap-arrow{opacity:0;width:0;overflow:hidden;font-size:15px;flex:none;display:inline-block;transition:opacity .16s ease}\n[data-askpill] .ap-pillc .ap-ico{transition:transform .16s ease}\n@media (prefers-reduced-motion: reduce){[data-askpill] .ap-pillc .ap-arrow,[data-askpill] .ap-pillc .ap-ico{transition:none}}\n[data-askpill] .ap-panelc{position:absolute;right:0;bottom:0;display:flex;flex-direction:column;background:var(--ap-surface);color:var(--ap-fg);overflow:hidden}\n[data-askpill] .ap-panelc:has(.ap-editor-tag){padding-top:18px}\n[data-askpill] .ap-grab{display:none;width:40px;height:5px;border-radius:9px;background:color-mix(in srgb,var(--ap-fg) 18%,transparent);margin:8px auto 0;flex:none}\n.ap[data-askpill][data-device=phone] .ap-grab{display:block}\n[data-askpill] .ap-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 18px;border-bottom:1px solid var(--ap-border);flex:none}\n[data-askpill] .ap-av{width:36px;height:36px;border-radius:min(var(--ap-r-ctl),12px);background:var(--ap-primary);color:var(--ap-on-primary);display:grid;place-items:center;flex:none}\n[data-askpill] .ap-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--ap-head);font-weight:var(--ap-head-w);font-size:17px;line-height:1.15;text-transform:var(--ap-head-tt);letter-spacing:var(--ap-head-ls)}\n[data-askpill] .ap-sub{font-size:12px;color:var(--ap-muted);margin-top:3px;display:flex;align-items:center;gap:6px}\n[data-askpill] .ap-dot{width:7px;height:7px;border-radius:9px;background:#22c55e;box-shadow:0 0 0 3px color-mix(in srgb,#22c55e 22%,transparent);flex:none}\n[data-askpill] .ap-dot.off{background:#9ca3af;box-shadow:none}\n[data-askpill] .ap-dot.warn{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.2)}\n[data-askpill] .ap-hbtn{margin-left:auto;display:flex;gap:4px}\n[data-askpill] .ap-ib{position:relative;width:32px;height:32px;border-radius:999px;display:grid;place-items:center;color:var(--ap-muted);border:0;background:transparent;cursor:pointer;padding:0}\n[data-askpill] .ap-ib::after{content:\"\";position:absolute;inset:-6px}\n[data-askpill] .ap-ib:hover,[data-askpill] .ap-ib:focus-visible{background:var(--ap-chip)}\n[data-askpill] .ap-body{flex:1;overflow:auto;padding:18px 18px 8px;display:flex;flex-direction:column;gap:14px;justify-content:flex-end}\n[data-askpill] .ap-msg{font-size:14.5px;line-height:1.55;max-width:92%;overflow-wrap:anywhere;min-width:0}\n[data-askpill] .ap-bot{display:flex;gap:10px;align-items:flex-start}\n[data-askpill] .ap-bot .ap-mini{width:22px;height:22px;border-radius:999px;background:var(--ap-chip);border:1px solid var(--ap-border);display:grid;place-items:center;flex:none;margin-top:1px;color:var(--ap-primary)}\n[data-askpill] .ap-user{overflow-wrap:anywhere;align-self:flex-end;background:var(--ap-user);padding:9px 14px;border-radius:min(calc(var(--ap-r) * .9),18px);border-bottom-right-radius:min(6px,var(--ap-r))}\n[data-askpill] .ap-caret{display:inline-block;width:7px;height:15px;background:var(--ap-primary);border-radius:2px;vertical-align:-2px;margin-left:2px;animation:ap-blink 1s step-end infinite}\n@keyframes ap-blink{50%{opacity:0}}\n[data-askpill] .ap-typing{display:inline-flex;gap:4px;padding:8px 0}\n[data-askpill] .ap-typing i{width:6px;height:6px;border-radius:9px;background:var(--ap-muted);display:block;animation:ap-pulse 1s ease-in-out infinite}\n[data-askpill] .ap-typing i:nth-child(2){animation-delay:.15s}\n[data-askpill] .ap-typing i:nth-child(3){animation-delay:.3s}\n@keyframes ap-pulse{0%,100%{opacity:.3}50%{opacity:1}}\n[data-askpill] .ap-chips{display:flex;flex-wrap:wrap;gap:8px;padding:2px 18px 12px;flex:none}\n[data-askpill] .ap-chip{position:relative;font:500 13px/1.25 var(--ap-font);padding:9px 13px;min-height:40px;border-radius:var(--ap-r-ctl);background:var(--ap-chip);border:1px solid var(--ap-border);color:var(--ap-fg);white-space:normal;text-align:left;max-width:100%;overflow-wrap:anywhere;cursor:pointer}\n[data-askpill] .ap-chip::after{content:\"\";position:absolute;inset:-2px 0}\n[data-askpill] .ap-chip:hover,[data-askpill] .ap-chip:focus-visible{border-color:var(--ap-primary);background:color-mix(in srgb,var(--ap-primary) 10%,transparent)}\n[data-askpill] .ap-compose{margin:0 14px 10px;display:flex;align-items:center;gap:8px;padding:6px 6px 6px 16px;border:1px solid var(--ap-border);border-radius:var(--ap-r-ctl);background:var(--ap-bg);flex:none}\n[data-askpill] .ap-compose .ap-in{flex:1;font-size:14.5px;color:var(--ap-fg);padding:8px 0;border:0;background:transparent;outline:none;font-family:var(--ap-font);min-width:0}\n[data-askpill] .ap-compose .ap-in::placeholder{color:var(--ap-muted)}\n[data-askpill] .ap-send{position:relative;width:36px;height:36px;border-radius:var(--ap-r-ctl);background:var(--ap-primary);color:var(--ap-on-primary);display:grid;place-items:center;flex:none;border:0;cursor:pointer;padding:0}\n[data-askpill] .ap-send::after{content:\"\";position:absolute;inset:-4px}\n[data-askpill] .ap-send:disabled,[data-askpill] .ap-send.dim{opacity:.35;cursor:default}\n[data-askpill] .ap-compose:focus-within,[data-askpill] .ap-inl-bar:focus-within{border-color:var(--ap-primary)}\n[data-askpill] .ap-foot{font-size:11.5px;color:var(--ap-muted);text-align:center;padding:0 16px 12px;flex:none}\n[data-askpill] .ap-foot a,[data-askpill] .ap-foot button.link{color:var(--ap-fg);text-decoration:underline;text-underline-offset:2px;background:none;border:0;cursor:pointer;font:inherit;font-weight:600;padding:0}\n[data-askpill] .ap-card{border:1px solid var(--ap-border);background:var(--ap-bg);border-radius:min(var(--ap-r),16px);padding:14px;display:flex;flex-direction:column;gap:10px;margin-left:32px}\n[data-askpill] .ap-card h5{margin:0;font:600 14px/1.3 var(--ap-font);display:flex;align-items:center;gap:6px}\n[data-askpill] .ap-card p{margin:0;font-size:13px;line-height:1.45;color:var(--ap-muted)}\n[data-askpill] .ap-btn{display:flex;align-items:center;justify-content:center;gap:8px;font:600 12.5px/1.2 var(--ap-font);text-transform:uppercase;letter-spacing:.08em;min-height:44px;text-align:center;padding:11px 14px;border-radius:var(--ap-r-ctl);background:var(--ap-primary);color:var(--ap-on-primary);border:0;cursor:pointer;text-decoration:none}\n[data-askpill] .ap-btn.ghost{background:transparent;color:var(--ap-fg);border:1px solid var(--ap-border)}\n[data-askpill] .ap-warn{border-color:color-mix(in srgb,#f59e0b 45%,transparent);background:color-mix(in srgb,#f59e0b 8%,var(--ap-surface));margin-left:0}\n[data-askpill] .ap-note{font-size:12px;color:var(--ap-muted);padding:0 18px;margin:0}\n[data-askpill] .ap-cite{font-size:11.5px;color:var(--ap-muted);margin-top:6px}\n[data-askpill] .ap-editor-tag{position:absolute;top:-1px;left:50%;transform:translateX(-50%);font:600 10px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;background:#0d99ff;color:#fff;padding:5px 8px;border-radius:0 0 6px 6px;z-index:2}\n.ap-notice[data-askpill]{font-family:Inter,system-ui,sans-serif;background:#fff;color:#111;border:1px solid rgba(0,0,0,.1);border-radius:16px;padding:16px 16px 14px;box-shadow:0 8px 28px rgba(0,0,0,.08);max-width:320px;position:relative}\n.ap-notice[data-askpill] h4{margin:0 0 6px;font:650 15px/1.3 Inter,system-ui}\n.ap-notice[data-askpill] p{margin:0 0 12px;font-size:12.5px;line-height:1.45;color:#555}\n.ap-notice[data-askpill] ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}\n.ap-notice[data-askpill] li{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:1.4;color:#222}\n.ap-notice[data-askpill] .ap-step{width:18px;height:18px;border-radius:99px;display:grid;place-items:center;flex:none;font:650 10px/1 Inter;background:#f3f3f4;color:#666;margin-top:1px}\n.ap-notice[data-askpill] .ap-step.ok{background:#16a34a;color:#fff}\n.ap-notice[data-askpill] .ap-step.miss{background:#f59e0b;color:#fff}\n.ap-notice[data-askpill] .ap-nfoot{margin-top:12px;display:flex;flex-direction:column;gap:6px}\n.ap-notice[data-askpill] .ap-nfoot button,.ap-notice[data-askpill] .ap-nfoot a{font:600 12px/1 Inter,system-ui;text-transform:uppercase;letter-spacing:.08em;min-height:44px;display:flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:10px;border:1px solid rgba(0,0,0,.12);background:#111;color:#fff;cursor:pointer;text-align:center;text-decoration:none}\n.ap-notice[data-askpill] .ap-nfoot button.ghost,.ap-notice[data-askpill] .ap-nfoot a.ghost{background:#fff;color:#111}\n[data-askpill] .ap-demo-note{font-size:11.5px;line-height:1.45;color:#14532d;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:8px 10px;margin-top:8px}\n[data-askpill] .ap-keywarn{font-size:11.5px;line-height:1.4;color:#92400e;background:#fff7ed;border:1px solid #fde68a;border-radius:10px;padding:8px 10px;margin-top:8px}\n.ap-adv[data-askpill]{font-size:13px;line-height:1.5;padding:16px;max-width:360px;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:16px;color:#222}\n\n.ap[data-askpill][data-flow=\"in\"]{position:relative;inset:auto;width:100%;height:auto;min-height:0;pointer-events:auto;z-index:1;overflow:visible}\n[data-askpill] .ap-inline{width:100%;max-width:720px;font-family:var(--ap-font);color:var(--ap-fg);-webkit-font-smoothing:antialiased}\n[data-askpill] .ap-inl-bar{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 18px;background:var(--ap-surface);border:1px solid var(--ap-border);border-radius:var(--ap-r-ctl);box-shadow:0 10px 30px -18px rgba(0,0,0,.35)}\n[data-askpill] .ap-inl-ico{color:var(--ap-primary);display:grid;place-items:center;flex:none}\n[data-askpill] .ap-inl-in{flex:1;font-size:16px;color:var(--ap-fg);padding:10px 0;border:0;background:transparent;outline:none;font-family:var(--ap-font);min-width:0;overflow:hidden;text-overflow:ellipsis}\n[data-askpill] .ap-inl-in::placeholder{color:var(--ap-muted)}\n[data-askpill] .ap-inl-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}\n[data-askpill] .ap-inl-chip{font:500 13.5px/1.2 var(--ap-font);min-height:40px;max-width:100%;overflow-wrap:anywhere;padding:10px 14px;border-radius:var(--ap-r-ctl);border:1px solid var(--ap-border);background:var(--ap-chip);color:var(--ap-fg);cursor:pointer;text-align:left}\n[data-askpill] .ap-inl-chip:hover,[data-askpill] .ap-inl-chip:focus-visible{border-color:var(--ap-primary)}\n[data-askpill] .ap-inl-list{margin-top:18px;border-top:1px solid var(--ap-border)}\n[data-askpill] .ap-inl-item{border-bottom:1px solid var(--ap-border)}\n[data-askpill] .ap-inl-q{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 4px;font-weight:600;font-size:16px;width:100%;border:0;background:transparent;color:var(--ap-fg);cursor:pointer;font-family:var(--ap-font);text-align:left}\n[data-askpill] .ap-inl-item:not(.open) .ap-inl-q{color:var(--ap-muted);font-weight:500}\n[data-askpill] .ap-inl-item.open .ap-inl-chev{transform:rotate(180deg)}\n[data-askpill] .ap-inl-chev{display:grid;transition:transform .2s ease;flex:none;color:var(--ap-muted)}\n[data-askpill] .ap-inl-a{padding:0 4px 22px;font-size:15.5px;line-height:1.65;max-width:620px;overflow-wrap:anywhere}\n[data-askpill] .ap-inl-q>span:first-child{min-width:0;overflow-wrap:anywhere}\n[data-askpill] .ap-inl-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:12.5px;color:var(--ap-muted);align-items:center}\n[data-askpill] .ap-inl-meta a{color:var(--ap-fg);text-decoration:underline;text-underline-offset:2px;font-weight:600}\n.ap-chrow[data-askpill]{font-family:var(--ap-font);display:flex;flex-wrap:wrap;gap:10px;align-items:center;width:100%;-webkit-font-smoothing:antialiased}\n[data-askpill] .ap-ch-lab{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ap-muted);margin-right:4px;width:100%}\n[data-askpill] .ap-qchip{max-width:100%;min-height:44px;overflow-wrap:anywhere;display:inline-flex;align-items:center;gap:8px;font:500 14.5px/1.2 var(--ap-font);padding:12px 16px;border-radius:var(--ap-r-ctl);border:1px solid var(--ap-border);background:color-mix(in srgb,var(--ap-surface) 70%,transparent);color:var(--ap-fg);backdrop-filter:blur(6px);cursor:pointer;text-align:left}\n[data-askpill] .ap-qchip svg{color:var(--ap-primary);flex:none}\n[data-askpill] .ap-qchip.hl{border-color:var(--ap-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ap-primary) 25%,transparent)}\n[data-askpill] .ap-qchip.more{background:transparent;border-style:dashed}\n@media (prefers-reduced-motion: reduce){\n  [data-askpill] .ap-caret{animation:none}\n  [data-askpill] .ap-inl-chev{transition:none}\n  [data-askpill] .ap-typing i{animation:none;opacity:.6}\n}\n[data-askpill] .ap-pillc{min-width:0;max-width:calc(100vw - 32px)}\n[data-askpill] .ap-lab{overflow:hidden;text-overflow:ellipsis;min-width:0}\n[data-askpill] .ap-head>div:nth-child(2){min-width:0}\n[data-askpill] .ap-card .ap-in{background:var(--ap-surface);color:var(--ap-fg);width:100%;min-height:44px}\n[data-askpill] .ap-foot button.link{position:relative}\n[data-askpill] .ap-foot button.link::after{content:\"\";position:absolute;inset:-14px -6px}\n.ap[data-askpill][data-device=phone] .ap-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px))}\n.ap[data-askpill][data-pos^=top] .ap-grab{display:none}\n.ap[data-askpill][data-device=phone][data-pos^=top] .ap-panelc{padding-top:env(safe-area-inset-top, 0px)}\n.ap[data-askpill][data-device=phone][data-pos^=top] .ap-foot{padding-bottom:12px}\n[data-askpill] .ap-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}\n.ap-notice[data-askpill] .ap-match{display:flex;flex-direction:column;gap:2px;margin-top:6px}\n.ap-notice[data-askpill] .ap-match button{font:600 12.5px/1.3 Inter,system-ui;color:#0a84ff;background:none;border:0;padding:0;cursor:pointer;text-align:left;min-height:24px}\n.ap-notice[data-askpill] .ap-match span{font-size:11.5px;color:#666}\n.ap-notice[data-askpill][data-wide=\"1\"]{max-width:380px}\n.ap-notice[data-askpill] .ap-ver{font:600 10.5px/1 Inter,system-ui;color:#666;background:#f3f3f4;border-radius:6px;padding:3px 6px;vertical-align:2px;margin-left:4px}\n.ap-notice[data-askpill] .ap-match button.ap-scanbtn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:4px 0 4px;padding:0 16px;border-radius:999px;background:#111;color:#fff;font:600 12px/1 Inter,system-ui;letter-spacing:.04em}\n.ap-notice[data-askpill] .ap-match button.ap-scanbtn:disabled{opacity:.6;cursor:progress}\n.ap-notice[data-askpill] .ap-leftover{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#fff7e6;border:1px solid #f5d38a;font-size:12px;line-height:1.45;color:#5a3b00}\n.ap-notice[data-askpill] .ap-leftover strong{display:block;margin-bottom:2px;color:#3d2800}\n.ap-notice[data-askpill] .ap-scan{margin-top:12px;padding:12px;border-radius:12px;background:#f7f7f8;border:1px solid rgba(0,0,0,.08);display:flex;flex-direction:column;gap:8px;font-size:12px;color:#222}\n.ap-notice[data-askpill] .ap-scan strong{font:650 13px/1.3 Inter,system-ui}\n.ap-notice[data-askpill] .ap-scan p{margin:0;font-size:12px;color:#555}\n.ap-notice[data-askpill] .ap-scan label{display:flex;flex-direction:column;gap:3px;font:600 11px/1.3 Inter,system-ui;color:#444}\n.ap-notice[data-askpill] .ap-scan input,.ap-notice[data-askpill] .ap-scan textarea{font:400 12.5px/1.4 Inter,system-ui;color:#111;background:#fff;border:1px solid rgba(0,0,0,.15);border-radius:8px;padding:7px 9px;width:100%;resize:vertical}\n.ap-notice[data-askpill] .ap-sfaq-h{font:650 11.5px/1.3 Inter,system-ui;color:#444;margin-top:4px}\n.ap-notice[data-askpill] .ap-sfaq{display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:8px;background:#fff;border:1px solid rgba(0,0,0,.08)}\n.ap-notice[data-askpill] .ap-sbody{display:flex;flex-direction:column;gap:8px;max-height:560px;overflow:auto;padding-right:2px}\n.ap-notice[data-askpill] .ap-sgrp{border:1px solid rgba(0,0,0,.08);border-radius:8px;background:#fff;padding:6px 8px}\n.ap-notice[data-askpill] .ap-sgrp>summary{cursor:pointer;font:650 12px/1.4 Inter,system-ui;color:#222;min-height:28px;display:list-item}\n.ap-notice[data-askpill] .ap-sgrp>summary span{color:#666;font-weight:500}\n.ap-notice[data-askpill] .ap-sgrp[open]>summary{margin-bottom:6px}\n.ap-notice[data-askpill] .ap-sgrp .ap-sfaq{margin-bottom:6px}\n.ap-notice[data-askpill] .ap-ssrc{font:500 11px/1.3 Inter,system-ui;color:#666}\n.ap-notice[data-askpill] .ap-sview{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#666}\n.ap-notice[data-askpill] .ap-sview button{font:600 11px/1 Inter,system-ui;min-height:28px;padding:0 10px;border-radius:999px;border:1px solid rgba(0,0,0,.15);background:#fff;color:#333;cursor:pointer}\n.ap-notice[data-askpill] .ap-sview button[aria-pressed=true]{background:#111;color:#fff;border-color:#111}\n.ap-notice[data-askpill] .ap-sbtns{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}\n.ap-notice[data-askpill] .ap-sb{font:600 11.5px/1 Inter,system-ui;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid rgba(0,0,0,.18);background:#fff;color:#111;cursor:pointer;align-self:flex-start}\n.ap-notice[data-askpill] .ap-sb.solid{background:#111;color:#fff;border-color:#111}\n.ap-notice[data-askpill] .ap-slink{font:500 11.5px/1 Inter,system-ui;color:#b42318;background:none;border:0;padding:4px 0;cursor:pointer;align-self:flex-start}\n.ap-notice[data-askpill] .ap-scode{display:flex;gap:6px;align-items:center}\n.ap-notice[data-askpill] .ap-scode code{flex:1;min-width:0;font:500 11px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:8px;padding:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n[data-askpill] .ap-hsent{font-size:13px;line-height:1.45;color:var(--ap-fg);margin:0}\n.ap-mbar[data-askpill]{position:absolute;right:var(--ap-bar-r,24px);left:var(--ap-bar-l,auto);bottom:var(--ap-bar-b,96px);top:var(--ap-bar-t,auto);width:min(384px,calc(100vw - 32px));pointer-events:auto;font:400 13px/1.45 Inter,system-ui,-apple-system,sans-serif;color:#f2f2f3;background:rgba(32,33,36,.97);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:18px 16px 14px;box-shadow:0 24px 60px -20px rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;z-index:3}\n.ap-mbar[data-askpill][data-flow=\"in\"]{position:relative;right:auto;left:auto;bottom:auto;top:auto;margin-bottom:12px}\n.ap-mbar[data-askpill] .ap-editor-tag{top:-10px;border-radius:6px}\n.ap-mbar[data-askpill] .ap-mh{display:flex;gap:10px;align-items:flex-start}\n.ap-mbar[data-askpill] .ap-mi{width:28px;height:28px;border-radius:999px;background:rgba(255,255,255,.1);display:grid;place-items:center;flex:none;color:#f2f2f3}\n.ap-mbar[data-askpill] h6{margin:0;font:600 14px/1.3 Inter,system-ui,sans-serif;color:#fff}\n.ap-mbar[data-askpill] p{margin:2px 0 0;font-size:12px;line-height:1.45;color:rgba(242,242,243,.68)}\n.ap-mbar[data-askpill] .ap-mrows{list-style:none;margin:12px 0 0;padding:10px 0 0;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:8px}\n.ap-mbar[data-askpill] .ap-mrows li{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:rgba(242,242,243,.85)}\n.ap-mbar[data-askpill] .ap-mrows li span:last-child{color:rgba(242,242,243,.6);text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}\n.ap-mbar[data-askpill] .ap-msum{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.06);font-size:12px;color:rgba(242,242,243,.85)}\n.ap-mbar[data-askpill] .ap-sw{display:flex;gap:4px;flex:none}\n.ap-mbar[data-askpill] .ap-sw i{width:16px;height:16px;border-radius:999px;display:block;border:1px solid rgba(255,255,255,.25)}\n.ap-mbar[data-askpill] .ap-mbtns{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}\n.ap-mbar[data-askpill] .ap-mb{font:600 11.5px/1 Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:transparent;color:#f2f2f3;cursor:pointer}\n.ap-mbar[data-askpill] .ap-mb.solid{background:#fff;color:#111;border-color:#fff}\n.ap-mbar[data-askpill] .ap-mlink{font:500 12px/1.3 Inter,system-ui,sans-serif;color:#f2f2f3;text-decoration:underline;text-underline-offset:2px;background:none;border:0;padding:6px 4px;cursor:pointer;min-height:44px}\n.ap-mbar[data-askpill] .ap-mnote{margin-top:10px;font-size:11.5px;color:rgba(242,242,243,.6)}\n.ap-mbar[data-askpill] .ap-mbarline{height:2px;border-radius:2px;background:rgba(255,255,255,.12);margin-top:12px;overflow:hidden}\n.ap-mbar[data-askpill] .ap-mbarline i{display:block;height:100%;width:45%;background:#fff;border-radius:2px}\n.ap-mbar[data-askpill] .ap-code{margin-top:12px;display:flex;gap:8px;align-items:center}\n.ap-mbar[data-askpill] .ap-code code{flex:1;min-width:0;font:500 11.5px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(255,255,255,.08);border-radius:8px;padding:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}\n.ap-mbar[data-askpill] .ap-tw{margin-top:12px;display:flex;flex-direction:column;gap:8px}\n.ap-mbar[data-askpill] .ap-tw div{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}\n.ap-mbar[data-askpill] .ap-tw label{min-width:56px;color:rgba(242,242,243,.7)}\n.ap-mbar[data-askpill] .ap-tw button{font:500 12px/1 Inter,system-ui,sans-serif;min-height:32px;min-width:44px;padding:0 10px;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#f2f2f3;cursor:pointer}\n.ap-mbar[data-askpill] .ap-tw button[aria-pressed=\"true\"]{background:#fff;color:#111}\n.ap-mbar[data-askpill] .ap-tw input[type=color]{width:44px;height:32px;border:0;background:transparent;padding:0;cursor:pointer}\n\n`;/**\n * One session per page. A pill, an inline bar and chips on the same page share\n * the conversation history, and only one launcher is mounted.\n */const SHARED_SESSION={current:[]};const LAUNCHER={owner:null,subs:new Set};const notifyLauncher=()=>LAUNCHER.subs.forEach(f=>f());function hasConnection(key,proxy){return Boolean(key&&key.trim()||cleanEndpoint(proxy));}// ---- 1.2.1 security: every URL and email from properties, a scan or a model is checked before use ----\n/** Strips spaces and control characters that browsers ignore inside a URL scheme (\"java\\tscript:\"). */const squash=v=>String(v??\"\").replace(/[\\u0000-\\u0020\\u007f-\\u009f]+/g,\"\");/**\n * A link Askpill may put in an href: https, http, mailto, tel, or a path on this site.\n * javascript:, data:, vbscript:, file: and every other scheme give \"\" (no link).\n */export function safeHref(url){const raw=String(url??\"\").trim();if(!raw)return\"\";const s=squash(raw);const scheme=s.match(/^([a-z][a-z0-9+.-]*):/i);if(scheme)return/^(https?|mailto|tel)$/i.test(scheme[1])?raw:\"\";if(/^\\/\\//.test(s))return\"https:\"+raw.replace(/^\\s*/,\"\");return/^[\\/#?.]|^[\\w-]/.test(s)?raw:\"\";}/** One plain email address, or \"\". Anything that could add mailto fields (?, &, spaces, line breaks) gives \"\". */export function safeEmail(v){const e=String(v??\"\").trim();return/^[A-Za-z0-9._%+-]{1,64}@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,}$/.test(e)&&e.length<=200?e:\"\";}/**\n * Worker URL and Endpoint: https only (http only for localhost while testing). Anything else gives \"\",\n * so a chat is never sent in the clear or to a script URL.\n */export function cleanEndpoint(v){const s=String(v??\"\").trim();if(!s)return\"\";try{const u=new URL(s);if(u.username||u.password)return\"\";if(u.protocol===\"https:\")return s;if(u.protocol===\"http:\"&&/^(localhost|127\\.0\\.0\\.1|\\[::1\\])$/i.test(u.hostname))return s;}catch{}return\"\";}/** The Worker's base URL (a Worker URL pasted with /chat at the end still works). */export function workerBase(proxy){const s=cleanEndpoint(proxy);return s?s.replace(/\\/+$/,\"\").replace(/\\/chat$/,\"\"):\"\";}/** A short plain-text summary of the chat for a handoff: the last messages, newest last, capped. */export function chatSummary(messages,max=4e3){const lines=(messages||[]).filter(m=>m&&m.text&&m.text.trim()).slice(-10).map(m=>(m.role===\"user\"?\"Visitor: \":\"Assistant: \")+m.text.replace(/\\s+/g,\" \").trim());let out=lines.join(\"\\n\");if(out.length>max)out=\"...\"+out.slice(out.length-max+3);return out;}/** mailto link for a handoff: subject, plus the visitor's email and (with Attach chat) the chat in the body. */export function handoffMailto(to,o){const addr=safeEmail(to);if(!addr)return\"\";const body=[safeEmail(o.visitorEmail)?\"My email: \"+safeEmail(o.visitorEmail):\"\",o.summary?\"Our chat so far:\\n\"+o.summary.slice(-1500):\"\"].filter(Boolean).join(\"\\n\\n\");return`mailto:${addr}?subject=${encodeURIComponent(\"Question for \"+o.business)}`+(body?`&body=${encodeURIComponent(body)}`:\"\");}/** The page address without its query or hash, which can hold tokens or personal details. */function pageAddress(){try{return window.location.origin+window.location.pathname;}catch{return\"\";}}// ---- 1.2.1: Keep chat. One vault per page; it only exists when an instance has Keep chat On ----\nconst CHAT_MEMORY={record:{session:[],views:{}},loadP:null,vault:null};const CHAT_KEEPERS={n:0};function chatVault(){if(CHAT_MEMORY.vault)return CHAT_MEMORY.vault;if(typeof window===\"undefined\")return null;let slot=\"\";try{slot=window.location.origin;}catch{return null;}CHAT_MEMORY.vault=createChatVault({slot});return CHAT_MEMORY.vault;}/** The view a mode's messages are kept under: the pill panel (also opened by chips) or the inline bar. */const viewOf=mode=>mode===\"inline\"?\"inline\":\"panel\";// ---- 1.2.1 performance: Askpill's CSS is in the page once, not once per instance and mode ----\nconst CSS_ID=\"askpill-css-\"+\"1-2-1\";const CSS_USERS={n:0};function useSharedCss(on){useEffect(()=>{if(!on||typeof document===\"undefined\")return;CSS_USERS.n++;let el=document.getElementById(CSS_ID);if(!el){el=document.createElement(\"style\");el.id=CSS_ID;el.setAttribute(\"data-askpill-css\",ASKPILL_VERSION);el.textContent=STYLES;document.head.appendChild(el);}return()=>{CSS_USERS.n--;if(CSS_USERS.n<=0){CSS_USERS.n=0;document.getElementById(CSS_ID)?.remove();}};},[on]);}/**\n * Example answers: the pill answers from this instance's Knowledge, FAQs and\n * notes with no key and no Worker. All of these must be true:\n *  1. Example answers is on (default).\n *  2. No API key and no Worker URL are set (a real connection always wins).\n *  3. The page runs in the Framer canvas or Preview, on a Framer subdomain\n *     (framer.app, framer.website, framer.media), or on localhost.\n * A custom domain gets the normal setup or offline path, so a live site on\n * your own domain never gets example answers. A Framer-hosted preview can\n * use any Knowledge (the product site, an example site, or a buyer's own).\n */const SAMPLE_HOSTS=/(^|\\.)(framer\\.app|framer\\.website|framer\\.media|framercanvas\\.com|framer\\.com)$|^(localhost|127\\.0\\.0\\.1)$/i;function onSampleHost(){if(isEditorTarget())return true;try{return SAMPLE_HOSTS.test(window.location.hostname);}catch{return false;}}function isSampleContent(p){const business=(p.business??\"Oddloaf Bakery\").trim();if(business!==\"Oddloaf Bakery\")return false;if((p.knowledgeEntries||[]).some(e=>e&&(e.body||\"\").trim()))return false;if((p.pasteKnowledge||\"\").trim())return false;const k=(p.knowledge??defaultKnowledge).trim();if(k&&k!==defaultKnowledge.trim())return false;const faqs=(p.faqs??defaultFaqs).filter(f=>f&&f.question&&f.answer);return faqs.every(f=>defaultFaqs.some(d=>d.question===f.question.trim()&&d.answer===f.answer.trim()));}export function isExampleMode(p){if(p.exampleAnswers===false)return false;// Any key or Worker URL turns example answers off, even a Worker URL that is not valid yet\n// (the Setup Notice then says what to fix), so a typo never looks like a working setup.\nif(hasConnection(p.apiKey,p.proxyUrl)||(p.proxyUrl||\"\").trim())return false;return onSampleHost();}function hasKnowledge(p){const faqs=(p.faqs||[]).some(f=>f&&f.question&&f.answer);const entries=(p.knowledgeEntries||[]).some(e=>e&&(e.body||\"\").trim());return Boolean(p.knowledge&&p.knowledge.trim()||faqs||entries||p.pasteKnowledge&&p.pasteKnowledge.trim()||p.hours&&p.hours.trim()||p.services&&p.services.trim());}/** The example values a scan may replace. Fields still equal to these count as unedited. */export const EXAMPLES={business:defaultBusiness,shortName:defaultShortName,label:defaultLabel,greeting:defaultGreeting,chips:defaultChips,knowledge:defaultKnowledge,faqs:defaultFaqs,hours:defaultHours,services:defaultServices,contact:defaultContact,policies:defaultPolicies,handoffEmail:defaultHandoffEmail};const sameCol=(a,b)=>{const x=a?parseColor(a):null,y=b?parseColor(b):null;return!!(x&&y&&hex(x)===hex(y));};/** True when a Matched theme code holds the example site's colors (terracotta #b4532a or cream #fffaf2). */export function isExampleTheme(code){if(!code||!code.trim().startsWith(\"apm1.\"))return false;try{const o=JSON.parse(decodeURIComponent(escape(atob(code.trim().slice(5)))))||{};return[o.light,o.dark].some(m=>m&&(sameCol(m.primary,EXAMPLE_STYLE.primary)||sameCol(m.surface,EXAMPLE_STYLE.surface)));}catch{return false;}}/**\n * What this instance still carries from the example site, as the property names the designer sees.\n * content: Name, Short name, Label, Greeting, Suggested, Knowledge, FAQs, Hours, Services, Contact, Policies, Email.\n * style: Primary, Surface, Text, Matched theme (only when they hold the example's colors).\n */export function exampleLeftovers(p){const content=[],style=[];const same=(v,ex)=>{if(v===undefined)return true;if(typeof v===\"string\")return v.trim()===String(ex).trim();if(Array.isArray(v))return JSON.stringify(v.map(x=>typeof x===\"string\"?x.trim():[String(x?.question||\"\").trim(),String(x?.answer||\"\").trim()]))===JSON.stringify(ex.map(x=>typeof x===\"string\"?x.trim():[x.question,x.answer]));return false;};const pairs=[[\"business\",\"Name\",defaultBusiness],[\"shortName\",\"Short name\",defaultShortName],[\"label\",\"Label\",defaultLabel],[\"greeting\",\"Greeting\",defaultGreeting],[\"chips\",\"Suggested\",defaultChips],[\"knowledge\",\"Knowledge\",defaultKnowledge],[\"faqs\",\"FAQs\",defaultFaqs],[\"hours\",\"Hours\",defaultHours],[\"services\",\"Services\",defaultServices],[\"contact\",\"Contact\",defaultContact],[\"policies\",\"Policies\",defaultPolicies],[\"handoffEmail\",\"Email\",defaultHandoffEmail]];for(const[k,name,ex]of pairs)if(same(p[k],ex))content.push(name);// Knowledge and FAQs that still mention the example business also count.\nif(!content.includes(\"Knowledge\")&&/oddloaf/i.test(p.knowledge||\"\"))content.push(\"Knowledge\");if(!content.includes(\"FAQs\")&&(p.faqs||[]).some(f=>/oddloaf/i.test((f?.question||\"\")+(f?.answer||\"\"))))content.push(\"FAQs\");if(sameCol(p.primary,EXAMPLE_STYLE.primary))style.push(\"Primary\");if(sameCol(p.surface,EXAMPLE_STYLE.surface))style.push(\"Surface\");if(sameCol(p.textColor,EXAMPLE_STYLE.textColor))style.push(\"Text\");if(isExampleTheme(p.matchedTheme))style.push(\"Matched theme\");return{content,style};}/** The page itself is the example site (the remix), where the example content is expected. */function pageIsExample(){if(typeof document===\"undefined\")return false;try{return/oddloaf/i.test((document.title||\"\")+\" \"+readVisiblePageText(document,3e3));}catch{return false;}}// ---- 1.2 first run: Theme on drop, Scan this site on its own, Name from the site title ----\n/** A field the designer has not filled in: missing, empty, or still the example's value. */function untouched(v,ex){if(v===undefined||v===null)return true;if(typeof v===\"string\")return!v.trim()||v.trim()===String(ex??\"\").trim();if(Array.isArray(v)){const rows=v.filter(x=>typeof x===\"string\"?x.trim():x&&(String(x.question||\"\").trim()||String(x.answer||\"\").trim()||String(x.body||\"\").trim()));if(!rows.length)return true;const norm=a=>a.map(x=>typeof x===\"string\"?x.trim():[String(x?.question||\"\").trim(),String(x?.answer||\"\").trim()]);return JSON.stringify(norm(rows))===JSON.stringify(norm(Array.isArray(ex)?ex:[]));}return false;}/**\n * True when every knowledge field is still the Oddloaf sample (or empty): Knowledge, FAQs, Hours, Services,\n * Contact, Policies and Email, no Paste knowledge, no Knowledge base entries, and no real Scanned site code.\n * Only then may a scan replace the knowledge on its own, with no review step.\n */export function isDefaultKnowledge(p){if((p.pasteKnowledge||\"\").trim())return false;if((p.knowledgeEntries||[]).some(e=>e&&(String(e.body||\"\").trim()||String(e.title||\"\").trim())))return false;if(p.scannedSite&&p.scannedSite.trim()&&!isEmptyScan(decodeScan(p.scannedSite)))return false;const pairs=[[p.knowledge,defaultKnowledge],[p.faqs,defaultFaqs],[p.hours,defaultHours],[p.services,defaultServices],[p.contact,defaultContact],[p.policies,defaultPolicies],[p.handoffEmail,defaultHandoffEmail]];return pairs.every(([v,ex])=>untouched(v,ex));}/** When auto Scan this site may start: Scan is On, a key or Worker is set, the knowledge is still the sample, and it has not run for this key yet. */export function shouldAutoScan(o){return o.autoScan!==false&&o.connected&&o.editor&&o.defaultKnowledge&&!o.scanned&&!o.busy;}/** Primary, Surface, Text and Matched theme with the example site's leftover values removed, so the host look wins while Theme is On. */export function themeControls(p){const on=p.autoTheme!==false;return{primary:on&&sameCol(p.primary,EXAMPLE_STYLE.primary)?undefined:p.primary,surface:on&&sameCol(p.surface,EXAMPLE_STYLE.surface)?undefined:p.surface,textColor:on&&sameCol(p.textColor,EXAMPLE_STYLE.textColor)?undefined:p.textColor,matchedTheme:on&&isExampleTheme(p.matchedTheme)?\"\":p.matchedTheme||\"\"};}// Words that name a page or the tool, not the business. \"Classes | Stillwell Yoga Loft\" gives Stillwell Yoga Loft.\nconst GENERIC_TITLE=/^(home|homepage|home page|welcome|index|untitled|new page|page|page \\d+|framer|framer canvas|framer preview|my framer site|site|website|preview|loading\\.*|about|about us|contact|contact us|menu|shop|store|blog|news|pricing|prices|services|faq|faqs|classes|schedule|team|careers|gallery|portfolio|work|book|booking|locations|setup|changelog|404|not found|page not found)$/i;/** Name, Short name and Label from a page title such as \"Stillwell Yoga Loft | Classes in Portland\". Null when the title is not usable. */export function nameFromTitle(title){const raw=String(title||\"\").replace(/\\s+/g,\" \").trim();if(!raw)return null;const parts=raw.split(/\\s+[|\\u00b7\\u2022\\u2013\\u2014-]\\s+|\\s*[|\\u00b7\\u2022]\\s*|\\s*:\\s+/).map(s=>s.trim()).filter(Boolean);const best=parts.find(s=>!GENERIC_TITLE.test(s)&&/[a-z0-9]/i.test(s));if(!best)return null;const business=best.length>60?best.slice(0,60).replace(/\\s+\\S*$/,\"\").trim():best;if(!business||GENERIC_TITLE.test(business))return null;return{business,...namesFor(business)};}/** Short name and Label for a Name: the first word (\"The\" and \"A\" keep the next word), and \"Ask\" plus that. */export function namesFor(business){const words=business.trim().split(/\\s+/).filter(Boolean);let shortName=/^(the|a|an)$/i.test(words[0]||\"\")&&words[1]?words[0]+\" \"+words[1]:words[0]||business;shortName=shortName.replace(/[.,;:!?]+$/,\"\").slice(0,24);const label=(\"Ask \"+shortName).length<=22?\"Ask \"+shortName:\"Ask us\";return{shortName,label};}/** The best site title in a document: og:site_name, then application-name, then the title tag, then og:title. */export function siteTitle(doc){if(!doc)return\"\";try{const meta=sel=>(doc.querySelector(sel)?.getAttribute(\"content\")||\"\").trim();const site=meta('meta[property=\"og:site_name\"]')||meta('meta[name=\"application-name\"]');if(site&&nameFromTitle(site))return site;return doc.title||meta('meta[property=\"og:title\"]')||\"\";}catch{return\"\";}}const TITLE_STORE=()=>\"askpill:title:\"+(typeof location!==\"undefined\"?location.hostname:\"\");/**\n * The site's name for a Name still at the example, from this page's title. With Every page On the pill is in\n * the Layout Template, so off the home page the home page's title is used (fetched once from the same site\n * and kept in this browser), and the pill does not take a page's own title.\n */async function readSiteName(everyPage=false){if(typeof document===\"undefined\")return null;const here=nameFromTitle(siteTitle(document));let onHome=true;try{onHome=!location.pathname||location.pathname===\"/\";}catch{}if(!everyPage||onHome||onFramerEditorHost()){if(here&&onHome){try{localStorage.setItem(TITLE_STORE(),here.business);}catch{}}return here;}try{const c=localStorage.getItem(TITLE_STORE());const n=c?nameFromTitle(c):null;if(n)return n;}catch{}try{const r=await fetch(\"/\",{credentials:\"same-origin\",redirect:\"follow\"});if(r.ok&&typeof DOMParser!==\"undefined\"){const n=nameFromTitle(siteTitle(new DOMParser().parseFromString(await r.text(),\"text/html\")));if(n){try{localStorage.setItem(TITLE_STORE(),n.business);}catch{}return n;}}}catch{}return here;}/**\n * Names to show at runtime. Framer cannot write the Name property from code, so a Name, Short name and Label\n * still at the Oddloaf example (or empty) are filled from the site title here. A Name the designer typed wins,\n * and a Short name and Label still at the example follow that Name.\n */export function resolveNames(p,title){const ownName=!untouched(p.business,defaultBusiness);const business=ownName?String(p.business).trim():title?title.business:p.business||defaultBusiness;const fromTitle=!ownName&&!!title;const derive=ownName||fromTitle?namesFor(business):null;const shortName=derive&&untouched(p.shortName,defaultShortName)?derive.shortName:p.shortName??defaultShortName;const askFor=n=>(\"Ask \"+n).length<=22?\"Ask \"+n:\"Ask us\";const label=derive&&untouched(p.label,defaultLabel)?askFor(shortName):p.label??defaultLabel;// The example greeting names Oddloaf, so it gives way to \"Hi! Ask me anything about {Name}.\" once the Name is filled.\nconst greeting=derive&&untouched(p.greeting,defaultGreeting)?\"\":p.greeting;return{business,shortName,label,greeting,fromTitle};}/** Instances on this page share one auto scan, so the canvas does not scan once for each Askpill. */const AUTO_SCAN={busy:false,keys:new Set,subs:new Set};const SCAN_STORE=()=>\"askpill:scan:\"+(typeof location!==\"undefined\"?location.hostname:\"\");export default function Askpill(rawProps){// ---- Scan this site: an accepted scan applies at once in this browser; the Scanned site code makes it permanent ----\nconst[scanUi,setScanUi]=useState({s:\"idle\"});const[liveScan,setLiveScan]=useState(\"\");const[kbView,setKbView]=useState(\"category\");useEffect(()=>{try{const c=localStorage.getItem(SCAN_STORE());if(c&&decodeScan(c)&&(isEditorTarget()||setupParam()))setLiveScan(c);}catch{}},[]);const scanCode=(isEditorTarget()||setupParam())&&liveScan||rawProps.scannedSite||\"\";const scanData=useMemo(()=>decodeScan(scanCode),[scanCode]);const props=useMemo(()=>applyScan(rawProps,scanData,EXAMPLES),[rawProps,scanData]);const leftovers=useMemo(()=>exampleLeftovers(rawProps),[rawProps]);const{business:businessP,shortName:shortNameP,label:labelP,iconOnly=false,greeting:greetingP,chips=defaultChips,knowledge=defaultKnowledge,faqs=defaultFaqs,hours=\"\",services=\"\",contact=\"\",policies=\"\",tone=\"friendly\",replyLength=\"medium\",learnFromPage=true,mode=\"pill\",position=\"right\",phoneLayout=\"sheet\",everyPage=false,knowledgeEntries=[],pasteKnowledge=\"\",autoTheme=true,autoScan=true,primary:primaryP,surface:surfaceP,textColor:textColorP,radius=\"auto\",scheme=\"auto\",refineWithAI=false,matchedTheme:matchedThemeP=\"\",provider=\"gemini\",model=WORKING_DEFAULT_MODEL,customModel=\"\",customUrl=\"\",apiKey=\"\",proxyUrl=\"\",handoffWhen=\"unsure\",bookingLabel=\"Order a custom cake\",bookingUrl:bookingUrlP=\"\",attachChat=true,keepChat=false,handoffEmail:handoffEmailP,showSetupNotice=true,exampleAnswers=true,style,launcher,header,avatar}=props;// 1.2.1: a link or email that is not safe (javascript:, data:, extra mailto fields) is not shown at all.\nconst handoffEmail=safeEmail(handoffEmailP===undefined?defaultHandoffEmail:handoffEmailP);const bookingUrl=safeHref(bookingUrlP);// Theme On: the example site's leftover Primary, Surface, Text and Matched theme count as unset, so this site's look wins.\nconst{primary,surface,textColor,matchedTheme}=themeControls({autoTheme,primary:primaryP,surface:surfaceP,textColor:textColorP,matchedTheme:matchedThemeP});// Name from the site title (read after mount). A Name you typed, or one from a scan, wins.\nconst[titleNames,setTitleNames]=useState(null);const names=resolveNames({business:businessP,shortName:shortNameP,label:labelP,greeting:greetingP},titleNames);const{business,shortName,label}=names;const greetingProp=names.greeting===undefined?defaultGreeting:names.greeting;const greeting=greetingProp||`Hi! Ask me anything about ${business}.`;// Knowledge base for answers: the designer's own entries first, then Paste knowledge, then scanned entries.\nconst rawEntries=rawProps.knowledgeEntries;const ownEntries=useMemo(()=>(rawEntries||[]).filter(e=>e&&String(e.body||\"\").trim()),[rawEntries]);const pastedEntries=useMemo(()=>parsePastedKnowledge(pasteKnowledge),[pasteKnowledge]);const scannedEntries=useMemo(()=>(knowledgeEntries||[]).filter(e=>e&&!(rawEntries||[]).includes(e)),[knowledgeEntries,rawEntries]);const allEntries=useMemo(()=>[...ownEntries,...pastedEntries,...scannedEntries],[ownEntries,pastedEntries,scannedEntries]);const[mounted,setMounted]=useState(false);const[open,setOpen]=useState(false);const[hover,setHover]=useState(false);const[progress,setProgress]=useState(0);const[phone,setPhone]=useState(false);// The host read starts as the neutral default, so first paint is black and green.\nconst[host,setHost]=useState(()=>fallbackHost());const[hostRead,setHostRead]=useState(false);const[ver,setVer]=useState(0);const forceRender=useCallback(()=>setVer(v=>v+1),[]);const[kb,setKb]=useState(0);const[announce,setAnnounce]=useState(\"\");const[showCode,setShowCode]=useState(false);const[codeCopied,setCodeCopied]=useState(false);const[tweaking,setTweaking]=useState(false);const[manualHint,setManualHint]=useState(false);const[refining,setRefining]=useState(false);const[scanCopied,setScanCopied]=useState(false);const[examplePage,setExamplePage]=useState(false);const[panel,setPanel]=useState(\"open\");const[input,setInput]=useState(\"\");const[messages,setMessages]=useState([]);const[stream,setStream]=useState(\"\");const[fallbackNote,setFallbackNote]=useState(\"\");const[errorMsg,setErrorMsg]=useState(\"\");const[citation,setCitation]=useState(\"\");const[handoff,setHandoff]=useState(false);const[emailDraft,setEmailDraft]=useState(\"\");const[handoffSend,setHandoffSend]=useState(\"idle\");const[copied,setCopied]=useState(false);const[openIdx,setOpenIdx]=useState(null);const[activeChip,setActiveChip]=useState(\"\");const inlineInputRef=useRef(null);const progressRef=useRef(0);const rafRef=useRef(0);const shellRef=useRef(null);const pillRef=useRef(null);const panelRef=useRef(null);const inputRef=useRef(null);const abortRef=useRef(null);const lastH=useRef(null);const sessionRef=SHARED_SESSION;const handledRef=useRef(null);const returnFocusRef=useRef(null);const uid=\"askpill-\"+useId().replace(/[^a-zA-Z0-9_-]/g,\"\");const panelId=uid+\"-panel\";const reduced=useRef(false);// 1.2.1: Worker URL and Endpoint must be https (http only on localhost). The Setup Notice says when one is not.\nconst proxy=cleanEndpoint(proxyUrl);const proxyInvalid=!!proxyUrl.trim()&&!proxy;const endpoint=cleanEndpoint(customUrl);const connected=hasConnection(apiKey,proxyUrl);useSharedCss(true);// Inline <style> only until mount (server render and hydration); after that the one shared copy in <head> is used.\nconst css=mounted?null:/*#__PURE__*/_jsx(\"style\",{children:STYLES});const editor=isEditorTarget()||setupParam();// Badge clearance, fixed for this mount and applied as the shell's first-paint bottom\n// so the pill does not jump when the geometry effect runs.\nconst[badgeGap]=useState(()=>badgeClearance());// Example answers (see isExampleMode). Decided after mount so the host name is known.\nconst[demo,setDemo]=useState(false);useEffect(()=>{setDemo(isExampleMode({...props,business:businessP??defaultBusiness,knowledge,faqs,knowledgeEntries,pasteKnowledge,apiKey,proxyUrl,exampleAnswers}));// eslint-disable-next-line react-hooks/exhaustive-deps\n},[businessP,knowledge,faqs,knowledgeEntries,pasteKnowledge,apiKey,proxyUrl,exampleAnswers]);const ready=connected||demo;useEffect(()=>{if(!mounted)return;const ex=pageIsExample();setExamplePage(ex);// The example site keeps its Oddloaf names. Anywhere else, the site title fills a Name still at the example.\nif(ex){setTitleNames(null);return;}let live=true;void readSiteName(everyPage).then(n=>{if(live)setTitleNames(n);});return()=>{live=false;};},[mounted,everyPage]);// ---- Auto-match this site (wired as the module header describes) ----\nconst hostRef=useRef(host);hostRef.current=host;const buildRequestRef=useRef(()=>({}));const readFailedRef=useRef(false);const matchRef=useRef(null);if(!matchRef.current){matchRef.current=createAutoMatch({// readHost is passed as the last real read (or the default before the page is read\n// and whenever auto-theme is off), so tokens() does not re-read the page on every render.\nreadHost:()=>{// A failed fresh read is reported to the module once, so it shows \"Could not read this page\".\nif(readFailedRef.current){readFailedRef.current=false;throw new Error(\"unreadable\");}return hostRef.current;},deriveTokens,stream:streamChatWithFallback,makeRequest:messages=>buildRequestRef.current(messages),onChange:()=>forceRender()});}const match=matchRef.current;match.configure({enabled:autoTheme&&hostRead&&mode!==\"headless\",refine:refineWithAI&&connected,lockedCode:matchedTheme,controls:{primary,surface,textColor,radius,scheme}});const tokens=useMemo(()=>match.tokens(),// eslint-disable-next-line react-hooks/exhaustive-deps\n[host,hostRead,ver,autoTheme,refineWithAI,matchedTheme,primary,surface,textColor,radius,scheme,mode,connected]);const runMatch=useCallback(()=>{// Editor and Preview only, and never in headless mode.\nif(!editor||mode===\"headless\"||typeof document===\"undefined\")return;setShowCode(false);setTweaking(false);setManualHint(false);try{const h=readHost();hostRef.current=h;setHost(h);setHostRead(true);}catch{readFailedRef.current=true// the module reports an unreadable page and keeps the current theme\n;}setRefining(refineWithAI&&connected);void match.run().finally(()=>setRefining(false));},[match,mode,refineWithAI,connected,editor]);// ---- Scan this site: full-site crawl, then the connected key or Worker writes Knowledge and FAQs ----\n// 1.2: while the knowledge is still the Oddloaf sample, a finished scan replaces it at once (no review step).\n// Knowledge you changed yourself is never replaced on its own: a scan you start then opens the review first.\nconst knowledgeDefault=useMemo(()=>isDefaultKnowledge(rawProps),[rawProps]);const knowledgeDefaultRef=useRef(knowledgeDefault);knowledgeDefaultRef.current=knowledgeDefault;const scanAbort=useRef({aborted:false});const runScan=useCallback(async(auto=false)=>{if(!editor||typeof document===\"undefined\"||typeof window===\"undefined\")return;if(!connected){setScanUi({s:\"idle\"});return;}if(auto)AUTO_SCAN.busy=true;try{await scanNow(auto);}finally{if(auto)AUTO_SCAN.busy=false;}},[editor,connected]);const scanNow=async auto=>{scanAbort.current.aborted=true;const sig={aborted:false};scanAbort.current=sig;setScanUi({s:\"crawling\",done:0,total:MAX_PAGES});try{const origin=window.location.origin;const pages=await crawlSite({fetchText:async u=>{try{const r=await fetch(u,{credentials:\"same-origin\",redirect:\"follow\"});const ct=r.headers.get(\"content-type\")||\"\";return r.ok&&(/html|xml|text/i.test(ct)||!ct)?await r.text():null;}catch{return null;}},parse:html=>new DOMParser().parseFromString(html,\"text/html\"),startDoc:document,startUrl:window.location.href,origin,onProgress:(done,total)=>{if(!sig.aborted)setScanUi({s:\"crawling\",done,total});},signal:sig},onFramerEditorHost()?1:MAX_PAGES);if(sig.aborted)return;if(totalText(pages)<MIN_TEXT){setScanUi({s:\"empty\",pages:pages.length});return;}setScanUi({s:\"writing\",pages:pages.length});const draft=await extract(pages,streamChatWithFallback,m=>buildRequestRef.current(m),{signal:sig,onProgress:(done,total)=>{if(!sig.aborted)setScanUi({s:\"writing\",pages:pages.length,done,total});}});if(sig.aborted)return;if(isEmptyScan(draft)){setScanUi({s:\"empty\",pages:pages.length});return;}if(knowledgeDefaultRef.current)acceptScanRef.current(draft,true);else setScanUi({s:\"review\",draft});}catch{if(!sig.aborted)setScanUi({s:\"error\",msg:auto?\"The scan could not reach your API Key or Worker provider. Check the key or Worker URL. Askpill scans again on its own when the key changes, or click Scan again.\":\"The scan could not reach your API Key or Worker provider. Check the key or Worker URL, then click Scan again.\"});}};// Theme already applies on drop. Scan this site only refreshes the look when Refine with AI is On.\nconst scanSite=useCallback(()=>{if(refineWithAI&&autoTheme)runMatch();void runScan(false);},[runMatch,runScan,refineWithAI,autoTheme]);const acceptScan=useCallback((draft,auto=false)=>{const code=encodeScan(draft);try{localStorage.setItem(SCAN_STORE(),code);}catch{}setLiveScan(code);AUTO_SCAN.subs.forEach(f=>f(code));setScanUi({s:\"accepted\",code,auto});},[]);const acceptScanRef=useRef(acceptScan);acceptScanRef.current=acceptScan;// Other Askpills on this page pick up an accepted scan too.\nuseEffect(()=>{const sub=code=>setLiveScan(code);AUTO_SCAN.subs.add(sub);return()=>{AUTO_SCAN.subs.delete(sub);};},[]);// 1.2.1: a scan stops when its Askpill is removed (page change in Preview), instead of crawling on unseen.\nuseEffect(()=>()=>{scanAbort.current.aborted=true;},[]);// Scan this site, On by default: once a key or Worker is set and the knowledge is still the sample, scan on its own.\n// Waits a moment after the key stops changing, so a half-typed key is not used. Runs once per key on this page.\nconst connKey=(apiKey||\"\").trim()+\"|\"+(proxyUrl||\"\").trim();const autoScanOk=mounted&&!isExportTarget()&&shouldAutoScan({autoScan,connected,editor,defaultKnowledge:knowledgeDefault,scanned:!!liveScan||!!scanData});useEffect(()=>{if(!autoScanOk||AUTO_SCAN.keys.has(connKey))return;const id=window.setTimeout(()=>{if(AUTO_SCAN.busy||AUTO_SCAN.keys.has(connKey)||!knowledgeDefaultRef.current)return;AUTO_SCAN.keys.add(connKey);void runScan(true);},1500);return()=>window.clearTimeout(id);},[autoScanOk,connKey,runScan]);// ---- one launcher per page ----\nconst canvasNow=isCanvas();const wantsLauncher=mode===\"pill\"&&!canvasNow;useEffect(()=>{LAUNCHER.subs.add(forceRender);return()=>{LAUNCHER.subs.delete(forceRender);};},[forceRender]);useEffect(()=>{setMounted(true);if(typeof window!==\"undefined\"){const rmq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");reduced.current=rmq.matches;const onRm=e=>{reduced.current=e.matches;};rmq.addEventListener?.(\"change\",onRm);const onResize=()=>setPhone(window.innerWidth<600);onResize();window.addEventListener(\"resize\",onResize);const fonts=document.fonts;let live=true;if(fonts&&fonts.ready)fonts.ready.then(()=>{if(live)forceRender();});return()=>{live=false;window.removeEventListener(\"resize\",onResize);rmq.removeEventListener?.(\"change\",onRm);};}},[]);useEffect(()=>{if(!mounted||!autoTheme||typeof document===\"undefined\"){setHost(fallbackHost());setHostRead(false);return;}// Tokens come from match.tokens(), which replaces deriveTokens(readHost(), controls).\nconst apply=()=>{const h=readHost();setHost(prev=>JSON.stringify(prev)===JSON.stringify(h)?prev:h);setHostRead(true);};apply();const id=window.setTimeout(apply,400);// Light/dark follow: re-read when the host changes appearance.\nlet deb=0;const later=()=>{window.clearTimeout(deb);deb=window.setTimeout(apply,150);};const mo=typeof MutationObserver!==\"undefined\"?new MutationObserver(later):null;const opts={attributes:true,attributeFilter:[\"class\",\"style\",\"data-theme\"]};if(mo){mo.observe(document.documentElement,opts);if(document.body)mo.observe(document.body,opts);}const mq=window.matchMedia?window.matchMedia(\"(prefers-color-scheme: dark)\"):null;mq?.addEventListener?.(\"change\",later);// Sites that animate their theme change finish after the debounce, so read once more when the page color settles.\nconst onEnd=e=>{const t=e.target;if(t&&(t===document.documentElement||t===document.body||t.matches?.(\"main,#main\"))&&/color|background|all/.test(e.propertyName||\"all\"))later();};document.addEventListener(\"transitionend\",onEnd,true);return()=>{window.clearTimeout(id);window.clearTimeout(deb);mo?.disconnect();mq?.removeEventListener?.(\"change\",later);document.removeEventListener(\"transitionend\",onEnd,true);};},[mounted,autoTheme,primary,surface,textColor,radius,scheme]);useEffect(()=>{if(mounted&&isCanvas()&&mode===\"pill\"){animateTo(1,true);setOpen(true);if(!ready)setPanel(\"setup\");}// First canvas look is the open panel, guided, not a blank pill.\n// eslint-disable-next-line react-hooks/exhaustive-deps\n},[mounted]);const animateTo=useCallback((target,instant=false)=>{cancelAnimationFrame(rafRef.current);if(instant){progressRef.current=target;setProgress(target);return;}const from=progressRef.current;const dur=target>from?OPEN_MS:CLOSE_MS;const start=performance.now();const step=now=>{const t=clamp((now-start)/dur);const v=from+(target-from)*t;progressRef.current=v;setProgress(v);if(t<1)rafRef.current=requestAnimationFrame(step);};rafRef.current=requestAnimationFrame(step);},[]);const focusTimer=useRef(0);useEffect(()=>()=>{window.clearTimeout(focusTimer.current);cancelAnimationFrame(rafRef.current);},[]);const openPanel=useCallback(()=>{if(typeof document!==\"undefined\"&&!open)returnFocusRef.current=document.activeElement;setOpen(true);if(!ready)setPanel(editor?\"setup\":\"offline\");else if(panel===\"setup\"||panel===\"offline\")setPanel(\"open\");animateTo(1);window.clearTimeout(focusTimer.current);focusTimer.current=window.setTimeout(()=>{const inp=inputRef.current;if(inp&&!inp.disabled)inp.focus();else panelRef.current?.focus();},500);},[animateTo,ready,editor,panel,open]);const closePanel=useCallback(()=>{abortRef.current?.abort();setOpen(false);animateTo(0);if(typeof document!==\"undefined\"){const active=document.activeElement;const inside=!!(active&&panelRef.current&&panelRef.current.contains(active));const back=returnFocusRef.current||pillRef.current;if(inside||active===document.body){setTimeout(()=>{const target=back&&document.contains(back)?back:pillRef.current;target?.focus?.();},0);}}},[animateTo]);// Claim the page's launcher (first pill on the page wins).\nconst askRef=useRef(()=>{});const openRef=useRef(()=>{});useEffect(()=>{if(!wantsLauncher)return;if(!LAUNCHER.owner){LAUNCHER.owner={id:uid,ask:q=>askRef.current(q),open:()=>openRef.current()};notifyLauncher();}return()=>{if(LAUNCHER.owner&&LAUNCHER.owner.id===uid){LAUNCHER.owner=null;notifyLauncher();}};},[wantsLauncher,uid]);const ownsLauncher=!!(LAUNCHER.owner&&LAUNCHER.owner.id===uid);const otherLauncher=!canvasNow&&LAUNCHER.owner&&LAUNCHER.owner.id!==uid?LAUNCHER.owner:null;// Phone sheet locks page scroll while open and restores it on close.\nuseEffect(()=>{if(!open||!phone||canvasNow||typeof document===\"undefined\"||mode===\"inline\")return;const de=document.documentElement,b=document.body;const prev=[de.style.overflow,b.style.overflow];de.style.overflow=\"hidden\";b.style.overflow=\"hidden\";return()=>{de.style.overflow=prev[0];b.style.overflow=prev[1];};},[open,phone,canvasNow,mode]);// With the iOS keyboard open, keep the composer above it.\nuseEffect(()=>{const vv=typeof window!==\"undefined\"?window.visualViewport:null;if(!open||!phone||!vv){setKb(0);return;}const on=()=>setKb(Math.max(0,Math.round(window.innerHeight-vv.height-vv.offsetTop)));on();vv.addEventListener(\"resize\",on);vv.addEventListener(\"scroll\",on);return()=>{vv.removeEventListener(\"resize\",on);vv.removeEventListener(\"scroll\",on);};},[open,phone]);// A closed panel is out of the tab order and the accessibility tree.\nuseEffect(()=>{const el=panelRef.current;if(!el)return;if(open){el.removeAttribute(\"inert\");el.removeAttribute(\"aria-hidden\");}else{el.setAttribute(\"inert\",\"\");el.setAttribute(\"aria-hidden\",\"true\");}},[open,mounted,ownsLauncher]);useEffect(()=>{if(!open)return;const onKey=e=>{if(e.key===\"Escape\")closePanel();};window.addEventListener(\"keydown\",onKey);return()=>window.removeEventListener(\"keydown\",onKey);},[open,closePanel]);useEffect(()=>{const shell=shellRef.current;const pill=pillRef.current;const panelEl=panelRef.current;const root=shell?.parentElement;if(!shell||!pill||!panelEl||!root||typeof window===\"undefined\")return;const vw=window.innerWidth,vh=window.innerHeight;const isPhone=vw<600;const ph=isPhone?50:54;const m=isPhone?16:24;const pp=positionParts(position);const atTop=pp.v===\"top\";const vGap=atTop?0:badgeGap// the \"Made in Framer\" badge sits at the bottom\n;const mb=m+vGap// inset from the top or bottom edge; equals m except at the bottom on *.framer.app / *.framer.website\n;// Hover reveals the arrow BEFORE the pill is measured, so the shell (the one filled shape)\n// grows to fit it in the same frame. No translate or scale: one aligned pill, no ghost.\nconst rm0=reduced.current;const p0=rm0?progress>0?1:0:progress;const hv=hover&&p0<.2?1-clamp(p0/.2):0;const arrow=pill.querySelector(\".ap-arrow\");if(arrow){arrow.style.opacity=String(.9*hv);arrow.style.width=(hv>0?14:0)+\"px\";}pill.style.height=ph+\"px\"// the pill button is exactly the shell's height (50 on a phone), so the label sits centered\n;const pw=Math.ceil(Math.max(pill.scrollWidth,pill.getBoundingClientRect().width))+2;const Rr=tokens.R;panelEl.style.width=(isPhone?vw:392)+\"px\";panelEl.style.height=\"auto\";const nat=panelEl.scrollHeight;const g=isPhone?{phone:true,ph,pw,m,mb,W:vw,H:Math.round(Math.max(vh*(phoneLayout===\"full\"?.92:.5),Math.min(vh*.9,nat+8))),mR:0,mB:vGap,R:atTop?[0,Math.min(Math.max(Rr,12),26)]:[Math.min(Math.max(Rr,12),26),0]}:{phone:false,ph,pw,m,mb,W:392,H:Math.max(400,Math.min(640,vh-m-mb,nat)),mR:m,mB:mb,R:[Rr,Rr]};if(g.phone&&kb>0)g.H=Math.min(g.H,Math.round((vh-kb)*.92));if(g.phone&&vGap)g.H=Math.min(g.H,vh-kb-vGap-8);if(lastH.current!=null)g.H=lastH.current+(g.H-lastH.current)*.3;lastH.current=g.H;// Reduced motion: geometry snaps to the end state and the shell fades over the same 480 / 320 ms.\nconst rm=reduced.current;const p=rm?progress>0?1:0:progress;const isClosing=!open;let eW=isClosing?inOut(p):back(clamp(p),.55);let eH=isClosing?inOut(p):back(clamp((p-.05)/.95),.45);if(g.phone){eW=isClosing?inOut(clamp(p/.6)):cubicOut(clamp(p/.5));eH=isClosing?inOut(p):back(clamp((p-.08)/.92),.35);}const w=lerp(g.pw,g.W,eW);const h=lerp(g.ph,g.H,eH);const mp=g.phone?clamp(p/.5):p;const edge=lerp(g.m,g.mR,isClosing?inOut(mp):cubicOut(mp));const bottom=lerp(g.mb,g.mB,isClosing?inOut(mp):cubicOut(mp));const rTop=lerp(g.ph/2,g.R[0],cubicOut(clamp(p*1.4)));const rBot=lerp(g.ph/2,g.R[1],cubicOut(clamp(p*1.4)));const vert=bottom+(g.phone&&!atTop?kb:0);Object.assign(shell.style,{width:w+\"px\",height:h+\"px\",...pillAnchor(position,{edge,vert,width:w,safe:g.phone?(1-clamp(p)).toFixed(3):\"1\"}),borderRadius:`${rTop}px ${rTop}px ${rBot}px ${rBot}px`});// The pill and the panel sit at the same corner (or center) of the shell as the shell sits on the page.\nconst inner=(el,width)=>Object.assign(el.style,{top:atTop?\"0px\":\"auto\",bottom:atTop?\"auto\":\"0px\",left:pp.h===\"right\"?\"auto\":pp.h===\"left\"?\"0px\":Math.round((w-width)/2)+\"px\",right:pp.h===\"right\"?\"0px\":\"auto\"});inner(pill,g.pw);inner(panelEl,g.W);shell.style.opacity=rm&&progress>0&&progress<1?String(progress):\"1\";// The Scan this site bar sits next to the pill: above it at the bottom, below it at the top.\nroot.style.setProperty(\"--ap-bar-b\",atTop?\"auto\":Math.round(vert+h+12)+\"px\");root.style.setProperty(\"--ap-bar-t\",atTop?Math.round(vert+h+12)+\"px\":\"auto\");root.style.setProperty(\"--ap-bar-r\",pp.h===\"right\"?Math.round(edge)+\"px\":\"auto\");root.style.setProperty(\"--ap-bar-l\",pp.h===\"left\"?Math.round(edge)+\"px\":pp.h===\"center\"?\"calc(50% - min(192px, 50vw - 16px))\":\"auto\");const c=clamp(p/.32);shell.style.background=`color-mix(in srgb, var(--ap-surface) ${Math.round(c*100)}%, var(--ap-primary))`;pill.style.opacity=String(1-clamp(p/.16));pill.style.pointerEvents=p>.08?\"none\":\"auto\";const ci=isClosing?clamp((p-.45)/.55):clamp((p-.2)/.36);Object.assign(panelEl.style,{width:g.W+\"px\",height:g.H+\"px\",opacity:String(ci),transform:rm?\"none\":`translateY(${(1-ci)*(atTop?-12:12)}px)`,pointerEvents:ci>.6?\"auto\":\"none\"});const scrim=root.querySelector(\".ap-scrim\");if(scrim){scrim.style.opacity=String(g.phone?.4*clamp(p):0);scrim.style.pointerEvents=g.phone&&p>.2?\"auto\":\"none\";}shell.style.transform=\"none\";shell.style.minWidth=\"0px\";shell.style.boxShadow=hv?\"var(--ap-shadow),0 10px 26px -10px rgba(0,0,0,.42)\":\"var(--ap-shadow)\";const ico=pill.querySelector(\".ap-ico\");if(ico)ico.style.transform=hv&&!rm?`rotate(${-8*hv}deg)`:\"none\";root.setAttribute(\"data-device\",g.phone?\"phone\":\"desktop\");},[progress,hover,open,tokens,position,phoneLayout,phone,kb,ownsLauncher,badgeGap]);/** The StreamRequest ask() sends, minus maxTokens and signal. Auto-match reuses it. */// 1.2.1: with a Worker URL the key is never sent from the page, even if API Key still has one.\n// An Endpoint that is not https is ignored (the provider's own URL is used).\nconst buildRequest=messages=>({url:provider===\"custom\"&&endpoint||(provider===\"gemini\"||provider===\"custom\"||!provider?GEMINI_OPENAI_URL:\"\"),model:((customModel&&provider!==\"gemini\"?customModel:model)||WORKING_DEFAULT_MODEL).trim(),messages,apiKey:proxy?undefined:apiKey.trim()||undefined,proxyUrl:proxy||undefined,provider});buildRequestRef.current=buildRequest;// ---- 1.2.1 performance: the owner knowledge is compiled once per change of the properties, not per question ----\nconst toneText=tone===\"brief\"?\"Brief and clear. Keep replies short.\":tone===\"formal\"?\"Warm but formal.\":\"Friendly and helpful, like a teammate at the front counter.\";const faqList=useMemo(()=>(faqs||[]).filter(f=>f&&f.question&&f.answer),[faqs]);const compiledBase=useMemo(()=>compileKnowledge({business,knowledge,cmsItems:faqList,entries:allEntries,fields:{hours,services,contact,policies},tone:toneText}),[business,knowledge,faqList,allEntries,hours,services,contact,policies,toneText]);// ---- 1.2.1 performance: streamed text is drawn at most once per frame, not once per network chunk ----\nconst streamBuf=useRef({text:\"\",raf:0});const pushStream=useCallback(full=>{const b=streamBuf.current;b.text=full;if(b.raf)return;if(typeof requestAnimationFrame===\"undefined\"){setStream(full);return;}b.raf=requestAnimationFrame(()=>{b.raf=0;setStream(b.text);});},[]);const resetStream=useCallback(()=>{const b=streamBuf.current;if(b.raf&&typeof cancelAnimationFrame!==\"undefined\")cancelAnimationFrame(b.raf);b.raf=0;b.text=\"\";setStream(\"\");},[]);useEffect(()=>()=>{const b=streamBuf.current;if(b.raf&&typeof cancelAnimationFrame!==\"undefined\")cancelAnimationFrame(b.raf);},[]);/** Editor and Preview only: a clearer reason when the key or Worker fails. Visitors keep the short message. */const editorHint=err=>{if(!editor)return\"\";if(proxy){if(err.status===401||err.status===403)return\"Editor and Preview only: the Worker refused this request. Check that ALLOWED_ORIGINS in the Worker lists this site's address, and that its GEMINI_API_KEY secret is right. Visitors see a short message instead.\";if(err.status===404)return\"Editor and Preview only: there is no Worker at Worker URL. Check the address, then try again. Visitors see a short message instead.\";if(err.code===\"network\")return\"Editor and Preview only: Askpill could not reach the Worker. Check Worker URL and that the Worker is deployed. Visitors see a short message instead.\";return\"\";}if(err.status===400||err.status===401||err.status===403)return\"Editor and Preview only: the provider refused this key or model. Check API Key in Google AI Studio and the Model. Visitors see a short message instead.\";return\"\";};const ask=useCallback(async text=>{const q=text.trim();if(!q)return;if(!ready){setPanel(editor?\"setup\":\"offline\");openPanel();return;}// 1.2.1: a new question while a reply is still streaming (a chip, the inline bar, or another mode)\n// stops that reply first and keeps what had arrived, so two replies never stream into one bubble.\nconst prev=abortRef.current;if(prev&&!prev.signal.aborted){handledRef.current=prev;prev.abort();const partial=parseCitationAndHandoff(streamBuf.current.text).clean;if(partial)setMessages(m=>[...m,{role:\"assistant\",text:partial}]);}setInput(\"\");setFallbackNote(\"\");setErrorMsg(\"\");setCitation(\"\");setHandoff(false);setHandoffSend(\"idle\");resetStream();setAnnounce(\"\");setMessages(m=>[...m,{role:\"user\",text:q}]);setPanel(\"streaming\");if(mode!==\"inline\"&&!open)openPanel();if(mode===\"inline\")setOpenIdx(null);const pageText=learnFromPage&&typeof document!==\"undefined\"?readVisiblePageText(document,6e3):\"\";const compiled=withPageText(compiledBase,pageText);// A large Knowledge base is not sent whole: the entries and FAQs that match this question are.\nconst lastUser=[...sessionRef.current].reverse().find(m=>m.role===\"user\");const system=buildSystemPrompt(compiled,{question:q,context:lastUser?lastUser.content:\"\"});const lengthHint=replyLength===\"short\"?\"Keep the reply to two short sentences.\":replyLength===\"long\"?\"You may be thorough, still clear.\":\"A short paragraph is enough.\";const history=sessionRef.current.slice(-8);const messagesForApi=[{role:\"system\",content:system+\"\\n\"+lengthHint},...history,{role:\"user\",content:q}];const ac=new AbortController;abortRef.current=ac;let fullBuf=\"\";// Same ask() path and handlers. With example answers (no key, no Worker, on a Framer host),\n// the reply comes from this instance's Knowledge and FAQs instead of the network.\nconst useSample=!connected&&demo;const runStream=useSample?(req,h)=>streamSampleAnswer({question:q,knowledge,faqs:faqList,entries:allEntries,greeting,fields:{hours,services,contact,policies},signal:req.signal,reduced:reduced.current},h):streamChatWithFallback;try{await runStream({...buildRequest(messagesForApi),maxTokens:replyLength===\"long\"?900:replyLength===\"short\"?220:600,signal:ac.signal},{onDelta(_piece,full){if(ac.signal.aborted)return;fullBuf=full;pushStream(full);},onFallbackNote(note){setFallbackNote(note||FALLBACK_NOTE);},onDone(full,meta){if(ac.signal.aborted)return;const out=full||fullBuf;resetStream();setMessages(m=>[...m,{role:\"assistant\",text:out}]);sessionRef.current=[...history,{role:\"user\",content:q},{role:\"assistant\",content:out}];if(meta?.citation)setCitation(meta.citation);// Announced once, on completion, not per token.\nsetAnnounce(parseCitationAndHandoff(out).clean+(meta?.citation?\" From: \"+prettyCite(meta.citation):\"\"));// 1.2.1: Handoff Off means the card is never opened on its own (Talk to a Person in the footer still works).\nif(handoffWhen!==\"off\"&&(meta?.handoff||handoffWhen===\"always\")){setHandoff(true);setPanel(\"handoff\");}else setPanel(\"answered\");if(abortRef.current===ac)abortRef.current=null;},onError(err){if(ac.signal.aborted)return;resetStream();const msg=editorHint(err)||err.message;setErrorMsg(msg);setAnnounce(msg);setPanel(\"error\");if(abortRef.current===ac)abortRef.current=null;}});}catch{if(!ac.signal.aborted){resetStream();setErrorMsg(\"The assistant could not complete that reply. You can try again or leave a message.\");setPanel(\"error\");}}// Aborted stream (closed mid-reply): keep what arrived and leave the streaming state.\nif(ac.signal.aborted&&handledRef.current!==ac){const kept=parseCitationAndHandoff(fullBuf).clean;resetStream();if(kept)setMessages(m=>[...m,{role:\"assistant\",text:kept}]);setPanel(p=>p===\"streaming\"?kept?\"answered\":\"open\":p);}// eslint-disable-next-line react-hooks/exhaustive-deps\n},[connected,demo,ready,editor,open,openPanel,business,knowledge,faqList,allEntries,compiledBase,greeting,hours,services,contact,policies,learnFromPage,replyLength,model,customModel,endpoint,apiKey,proxy,provider,handoffWhen,mode,pushStream,resetStream]);const stop=()=>{handledRef.current=abortRef.current;abortRef.current?.abort();// The latest text, even if it has not been drawn yet this frame.\nconst partial=parseCitationAndHandoff(streamBuf.current.text).clean;if(partial){setMessages(m=>[...m,{role:\"assistant\",text:partial}]);resetStream();setPanel(\"answered\");}else{resetStream();setPanel(p=>p===\"streaming\"?\"open\":p);}};askRef.current=q=>{void ask(q);};openRef.current=()=>openPanel();// ---- 1.2.1: Keep chat. Off by default. When On, the chat survives a reload in this tab, encrypted ----\nconst view=viewOf(mode);const restoredRef=useRef(false);useEffect(()=>{if(!mounted||isCanvas()||typeof window===\"undefined\")return;if(!keepChat){restoredRef.current=false;// Turning Keep chat Off removes a stored chat, unless another Askpill on the page still keeps it.\nconst id=window.setTimeout(()=>{if(CHAT_KEEPERS.n!==0)return;CHAT_MEMORY.record={session:[],views:{}};void chatVault()?.clear();},0);return()=>window.clearTimeout(id);}CHAT_KEEPERS.n++;let live=true;const v=chatVault();if(v){if(!CHAT_MEMORY.loadP)CHAT_MEMORY.loadP=v.load().then(r=>{if(r){CHAT_MEMORY.record=r;if(!SHARED_SESSION.current.length)SHARED_SESSION.current=r.session.map(m=>({role:m.role,content:m.content}));}return r;});void CHAT_MEMORY.loadP.then(()=>{if(!live)return;// The latest chat: from storage on a reload, from memory after a page change in the same site.\nconst mine=CHAT_MEMORY.record.views[view];if(mine&&mine.length)setMessages(m=>m.length?m:mine);restoredRef.current=true;});}return()=>{live=false;CHAT_KEEPERS.n--;};},[mounted,keepChat,view]);// Saved after each change to the conversation (a question or a finished reply), never per streamed token.\nuseEffect(()=>{if(!keepChat||!restoredRef.current)return;const v=chatVault();if(!v)return;CHAT_MEMORY.record={session:SHARED_SESSION.current.filter(m=>m.role!==\"system\").map(m=>({role:m.role,content:m.content})),views:{...CHAT_MEMORY.record.views,[view]:messages}};void v.save(CHAT_MEMORY.record);},[messages,keepChat,view]);// ---- Talk to a Person: with a Worker, the visitor's email (and, with Attach chat, a short chat summary) is sent to you ----\nconst hb=workerBase(proxyUrl);const visitorEmail=safeEmail(emailDraft);const sendHandoff=async()=>{if(!hb||!visitorEmail||handoffSend===\"sending\")return;setHandoffSend(\"sending\");try{const last=[...messages].reverse().find(m=>m.role===\"user\");const r=await fetch(hb+\"/handoff\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({visitorEmail,question:last?last.text.slice(0,2e3):\"\",pageUrl:pageAddress(),transcript:attachChat?chatSummary(messages,7e3):\"\"})});setHandoffSend(r.ok?\"sent\":\"error\");setAnnounce(r.ok?`Sent. We will reply to ${visitorEmail}.`:\"That did not send. You can email us instead.\");}catch{setHandoffSend(\"error\");setAnnounce(\"That did not send. You can email us instead.\");}};const mailtoHandoff=handoffMailto(handoffEmail,{business,visitorEmail:emailDraft,summary:attachChat?chatSummary(messages):\"\"});useEffect(()=>{if(typeof window===\"undefined\")return;window.__ASKPILL={open:openPanel,close:closePanel,ask,setProgress:v=>{progressRef.current=v;setProgress(v);setOpen(v>.5);},setPanel,setHover,match,runMatch,tokens:()=>tokens,host:()=>hostRef.current,state:()=>({open,panel,progress,connected:hasConnection(apiKey,proxyUrl),example:demo,model,match:match.state,code:match.code})};},[openPanel,closePanel,ask,open,panel,progress,apiKey,proxyUrl,demo,model,match,runMatch,tokens]);const short=shortName||business.split(\" \")[0];const placeholder=ready?`Ask ${short} anything...`:\"Chat unavailable\";const showChips=(panel===\"open\"||panel===\"setup\")&&messages.length===0&&(chips||[]).length>0;const sub=panel===\"setup\"?\"Setup needed\":panel===\"offline\"||panel===\"error\"?\"Chat is offline right now\":panel===\"streaming\"?\"Typing...\":demo&&!connected?\"Example answers\":\"AI assistant \\xb7 answers instantly\";const dot=panel===\"setup\"?\"warn\":panel===\"offline\"||panel===\"error\"?\"off\":\"\";// ---- Auto-match preview bar: Editor and Preview only, never for visitors ----\nconst ms=match.state;const lockedCode=match.code;const headFont=String(tokens.head||\"\").split(\",\")[0].replace(/[\"']/g,\"\").trim()||\"System font\";const corners=tokens.R<=2?\"Square corners\":tokens.rctl>=999||tokens.R>=22?\"Round corners\":\"Soft corners\";const spacing=host&&typeof host.btnHeight===\"number\"&&host.btnHeight>=46?\"Comfortable\":\"Compact\";const schemeName=tokens.scheme===\"light\"?\"Light\":\"Dark\";const swatches=/*#__PURE__*/_jsxs(\"span\",{className:\"ap-sw\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"i\",{style:{background:tokens.surface}}),/*#__PURE__*/_jsx(\"i\",{style:{background:tokens.fg}}),/*#__PURE__*/_jsx(\"i\",{style:{background:tokens.primary}})]});const matchBarVisible=editor&&mode!==\"headless\"&&(ms.status!==\"idle\"||showCode||manualHint);const matchBar=matchBarVisible?/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mbar\",\"data-askpill\":\"true\",\"data-flow\":mode===\"pill\"?undefined:\"in\",role:\"region\",\"aria-label\":\"Auto-match preview\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"ap-editor-tag\",children:\"Editor & Preview only\"}),ms.status===\"scanning\"&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mh\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-mi\",children:/*#__PURE__*/_jsx(IconSparkS,{})}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h6\",{children:\"Matching this site\"}),/*#__PURE__*/_jsx(\"p\",{children:\"Reading color, type and shape from the page. Nothing changes until you accept.\"})]})]}),/*#__PURE__*/_jsxs(\"ul\",{className:\"ap-mrows\",children:[/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"span\",{children:\"Color\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Reading colors\"})]}),/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"span\",{children:\"Type\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Reading type\"})]}),/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"span\",{children:\"Shape\"}),/*#__PURE__*/_jsx(\"span\",{children:\"Reading corners\"})]}),/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"span\",{children:\"Spacing\"}),/*#__PURE__*/_jsx(\"span\",{})]}),/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"span\",{children:\"Light or dark\"}),/*#__PURE__*/_jsx(\"span\",{})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ap-mbarline\",children:/*#__PURE__*/_jsx(\"i\",{})}),/*#__PURE__*/_jsx(\"div\",{className:\"ap-mbtns\",children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mb\",onClick:()=>match.revert(),children:\"Cancel\"})})]}),ms.status===\"preview\"&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mh\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-mi\",children:/*#__PURE__*/_jsx(IconCheck,{})}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h6\",{children:\"Matched to this site\"}),/*#__PURE__*/_jsx(\"p\",{children:\"A fresh read of this page. Primary, Surface, Text, Radius, Scheme and Matched theme from before are ignored while you preview. Accept to keep it, or Revert to the theme you had.\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-msum\",children:[swatches,/*#__PURE__*/_jsxs(\"span\",{children:[headFont,\" \\xb7 \",corners,\" \\xb7 \",spacing,\" \\xb7 \",schemeName]})]}),tweaking&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-tw\",children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"label\",{children:\"Scheme\"}),[\"light\",\"dark\"].map(v=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-pressed\":tokens.scheme===v,onClick:()=>match.tweak({scheme:v}),children:v===\"light\"?\"Light\":\"Dark\"},v))]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"label\",{children:\"Corners\"}),[\"0\",\"8\",\"16\",\"pill\"].map(v=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-pressed\":(ms.match.radius||\"\")===v,onClick:()=>match.tweak({radius:v}),children:v===\"pill\"?\"Pill\":v},v))]}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"label\",{children:\"Primary\"}),/*#__PURE__*/_jsx(\"input\",{type:\"color\",\"aria-label\":\"Primary color\",value:/^#[0-9a-f]{6}$/i.test(tokens.primary)?tokens.primary:\"#c8f04a\",onChange:e=>match.tweak({primary:e.target.value})})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mbtns\",children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mb solid\",onClick:()=>{match.accept();setTweaking(false);setShowCode(true);},children:\"Accept\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mb\",\"aria-pressed\":tweaking,onClick:()=>setTweaking(v=>!v),children:\"Tweak\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mb\",onClick:()=>{match.revert();setTweaking(false);},children:\"Revert\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ap-mnote\",children:ms.source===\"ai\"?\"Refined with your AI key\":refining?\"Refining with your AI key…\":\"Read from this page's styles\"})]}),ms.status===\"failed\"&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mh\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-mi\",children:/*#__PURE__*/_jsx(IconKey,{})}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h6\",{children:\"Could not read this page\"}),/*#__PURE__*/_jsx(\"p\",{children:\"Open Preview on the actual site page and Askpill reads it again on its own. It kept the theme you already had and did not apply a default as a match.\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mbtns\",children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mb solid\",onClick:runMatch,children:\"Try again\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mlink\",onClick:()=>{match.revert();setManualHint(true);},children:\"Use Manual Theme\"})]})]}),ms.status===\"idle\"&&showCode&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mh\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-mi\",children:/*#__PURE__*/_jsx(IconCheck,{})}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h6\",{children:\"Theme code\"}),/*#__PURE__*/_jsx(\"p\",{children:\"Copy this and paste it into Matched theme in the right-hand properties, so every visitor gets this look.\"})]})]}),match.leftovers.length>0&&/*#__PURE__*/_jsxs(\"p\",{className:\"ap-mnote\",style:{color:\"#fbbf24\"},children:[\"Then clear \",match.leftovers.filter(n=>n!==\"Matched theme\"&&n!==\"Radius\"&&n!==\"Scheme\").join(\", \")||\"nothing else\",match.leftovers.includes(\"Radius\")||match.leftovers.includes(\"Scheme\")?\", and set Radius and Scheme to Auto\":\"\",\". They were left from before and would still win on your live site. Preview ignores them until you change them.\"]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-code\",children:[/*#__PURE__*/_jsx(\"code\",{title:lockedCode,children:lockedCode}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mb solid\",onClick:async()=>{try{await navigator.clipboard.writeText(lockedCode);setCodeCopied(true);setTimeout(()=>setCodeCopied(false),2e3);}catch{setCodeCopied(false);}},children:codeCopied?\"Copied\":\"Copy\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ap-mbtns\",children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mlink\",onClick:()=>setShowCode(false),children:\"Done\"})})]}),ms.status===\"idle\"&&!showCode&&manualHint&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ap-mh\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-mi\",children:/*#__PURE__*/_jsx(IconSparkS,{})}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h6\",{children:\"Manual theme\"}),/*#__PURE__*/_jsx(\"p\",{children:\"Set Primary, Surface, Text, Radius and Scheme in the right-hand properties. A value you set by hand always wins over a match.\"})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ap-mbtns\",children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-mlink\",onClick:()=>setManualHint(false),children:\"Done\"})})]})]}):null;const liveChat=/*#__PURE__*/_jsxs(\"div\",{className:\"ap\",\"data-askpill\":\"true\",\"data-canvas\":isCanvas()?\"1\":undefined,\"data-pos\":POSITION_OPTIONS.includes(position)?position:\"right\",\"data-state\":open?panel:\"rest\",style:tokenStyle(tokens),children:[css,/*#__PURE__*/_jsx(\"div\",{className:\"ap-scrim\",onClick:closePanel}),mode===\"pill\"?matchBar:null,/*#__PURE__*/_jsx(\"div\",{className:\"ap-sr\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",children:announce}),/*#__PURE__*/_jsxs(\"div\",{ref:shellRef,className:\"ap-shell\",style:firstPaintAnchor(position,badgeGap),children:[/*#__PURE__*/_jsxs(\"div\",{ref:panelRef,className:\"ap-panelc\",id:panelId,role:\"dialog\",\"aria-label\":`${business} chat`,\"aria-modal\":open&&phone?true:undefined,tabIndex:-1,children:[editor&&!ready&&panel===\"setup\"&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-editor-tag\",children:\"Editor & Preview only\"}),/*#__PURE__*/_jsx(\"div\",{className:\"ap-grab\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-head\",children:[hasSlot(header)?header:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{className:\"ap-av\",children:hasSlot(avatar)?avatar:/*#__PURE__*/_jsx(IconSpark,{})}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{className:\"ap-title\",children:business}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sub\",children:[/*#__PURE__*/_jsx(\"i\",{className:`ap-dot ${dot}`}),sub]})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-hbtn\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"ap-ib\",\"aria-label\":\"Minimize\",onClick:closePanel,type:\"button\",children:/*#__PURE__*/_jsx(IconMin,{})}),/*#__PURE__*/_jsx(\"button\",{className:\"ap-ib\",\"aria-label\":\"Close\",onClick:closePanel,type:\"button\",children:/*#__PURE__*/_jsx(IconX,{})})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-body\",children:[panel===\"setup\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-card ap-warn\",style:{marginLeft:0},children:[/*#__PURE__*/_jsxs(\"h5\",{children:[/*#__PURE__*/_jsx(IconKey,{}),\" Add a Gemini key to go live\"]}),/*#__PURE__*/_jsx(\"p\",{children:\"Askpill cannot answer yet. Select Askpill, then in the right-hand properties paste a free Google Gemini key into API Key (under Provider and Model). For a live domain, paste a Worker URL into Worker URL and clear API Key.\"}),/*#__PURE__*/_jsx(\"a\",{className:\"ap-btn\",href:\"https://aistudio.google.com/apikey\",target:\"_blank\",rel:\"noreferrer\",children:\"Get a free Gemini key\"}),/*#__PURE__*/_jsx(\"p\",{style:{textAlign:\"left\"},children:\"Visitors never see this message. On your live site the chat shows your contact options instead.\"})]}),panel===\"offline\"&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(BotMsg,{text:\"Sorry, our chat assistant is taking a short break. You can still reach us directly.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-card\",children:[handoffEmail&&/*#__PURE__*/_jsxs(\"a\",{className:\"ap-btn\",href:`mailto:${handoffEmail}`,children:[/*#__PURE__*/_jsx(IconMail,{}),\" Email \",short]}),handoffEmail&&/*#__PURE__*/_jsx(\"p\",{children:handoffEmail}),bookingUrl&&/*#__PURE__*/_jsxs(\"a\",{className:\"ap-btn ghost\",href:bookingUrl,children:[/*#__PURE__*/_jsx(IconExt,{}),\" \",bookingLabel||\"Visit this page\"]})]})]}),panel!==\"setup\"&&panel!==\"offline\"&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(BotMsg,{text:greeting}),messages.map((m,i)=>m.role===\"user\"?/*#__PURE__*/_jsx(\"div\",{className:\"ap-msg ap-user\",dir:\"auto\",children:m.text},i):/*#__PURE__*/_jsx(BotMsg,{text:m.text,citation:i===messages.length-1?citation:\"\"},i)),panel===\"streaming\"&&!stream&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-bot\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-mini\",children:/*#__PURE__*/_jsx(IconSparkS,{})}),/*#__PURE__*/_jsxs(\"span\",{className:\"ap-typing\",\"aria-label\":\"The assistant is typing\",children:[/*#__PURE__*/_jsx(\"i\",{}),/*#__PURE__*/_jsx(\"i\",{}),/*#__PURE__*/_jsx(\"i\",{})]})]}),panel===\"streaming\"&&stream&&(()=>{const live=parseCitationAndHandoff(stream);return /*#__PURE__*/_jsx(BotMsg,{text:live.clean,caret:true,citation:live.citation});})(),fallbackNote&&/*#__PURE__*/_jsx(\"p\",{className:\"ap-note\",children:fallbackNote}),panel===\"error\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-card ap-warn\",style:{marginLeft:0},children:[/*#__PURE__*/_jsx(\"h5\",{children:\"We could not finish that reply\"}),/*#__PURE__*/_jsx(\"p\",{children:errorMsg||\"You can try again, or leave a message for a person.\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:8},children:[/*#__PURE__*/_jsx(\"button\",{className:\"ap-btn\",type:\"button\",onClick:()=>{const last=[...messages].reverse().find(m=>m.role===\"user\");if(last)ask(last.text);},children:\"Try again\"}),/*#__PURE__*/_jsx(\"button\",{className:\"ap-btn ghost\",type:\"button\",onClick:()=>{setHandoff(true);setPanel(\"handoff\");},children:\"Leave a message\"})]})]}),(panel===\"handoff\"||handoff)&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-card\",children:[/*#__PURE__*/_jsx(\"h5\",{children:\"Talk to a person\"}),handoffSend===\"sent\"?/*#__PURE__*/_jsxs(\"p\",{className:\"ap-hsent\",children:[\"Sent. We will reply to \",visitorEmail,\".\"]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"p\",{children:\"Leave your email. We usually reply within a day.\"}),/*#__PURE__*/_jsx(\"input\",{className:\"ap-in\",type:\"email\",placeholder:\"Your email\",value:emailDraft,\"aria-label\":\"Your email\",autoComplete:\"email\",inputMode:\"email\",maxLength:200,onChange:e=>{setEmailDraft(e.target.value);if(handoffSend===\"error\")setHandoffSend(\"idle\");},onKeyDown:e=>{if(e.key===\"Enter\"&&hb&&visitorEmail){e.preventDefault();void sendHandoff();}},style:{border:\"1px solid var(--ap-border)\",borderRadius:10,padding:\"10px 12px\",font:\"14px var(--ap-font)\"}}),hb&&/*#__PURE__*/_jsxs(\"button\",{className:\"ap-btn\",type:\"button\",disabled:!visitorEmail||handoffSend===\"sending\",onClick:()=>void sendHandoff(),children:[/*#__PURE__*/_jsx(IconMail,{}),\" \",handoffSend===\"sending\"?\"Sending...\":`Send to ${short}`]}),handoffSend===\"error\"&&/*#__PURE__*/_jsx(\"p\",{role:\"alert\",children:\"That did not send. You can email us instead.\"}),mailtoHandoff&&/*#__PURE__*/_jsxs(\"a\",{className:hb?\"ap-btn ghost\":\"ap-btn\",href:mailtoHandoff,children:[/*#__PURE__*/_jsx(IconMail,{}),\" Email \",short]})]}),bookingUrl&&/*#__PURE__*/_jsxs(\"a\",{className:\"ap-btn ghost\",href:bookingUrl,children:[/*#__PURE__*/_jsx(IconExt,{}),\" \",bookingLabel||\"Open this page\"]})]})]})]}),showChips&&panel!==\"setup\"&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-chips\",children:(chips||[]).filter(Boolean).map((c,i)=>/*#__PURE__*/_jsx(\"button\",{className:\"ap-chip\",type:\"button\",onClick:()=>ask(c),children:c},i+\":\"+c))}),/*#__PURE__*/_jsxs(\"form\",{className:\"ap-compose\",onSubmit:e=>{e.preventDefault();if(panel===\"streaming\"){stop();return;}ask(input);},children:[/*#__PURE__*/_jsx(\"input\",{ref:inputRef,className:\"ap-in\",dir:\"auto\",value:input,onChange:e=>setInput(e.target.value),placeholder:placeholder,disabled:panel===\"setup\"||panel===\"offline\",\"aria-label\":placeholder}),/*#__PURE__*/_jsx(\"button\",{className:`ap-send${panel!==\"streaming\"&&!input.trim()?\" dim\":\"\"}`,type:\"submit\",disabled:panel!==\"streaming\"&&!input.trim(),\"aria-label\":panel===\"streaming\"?\"Stop\":\"Send\",children:panel===\"streaming\"?/*#__PURE__*/_jsx(IconStop,{}):/*#__PURE__*/_jsx(IconUp,{})})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-foot\",children:[demo&&!connected?\"Sample answers from this demo\":\"AI answers can be wrong\",\" \\xb7\",\" \",/*#__PURE__*/_jsx(\"button\",{className:\"link\",type:\"button\",onClick:()=>{setHandoff(true);setPanel(\"handoff\");if(!open)openPanel();},children:\"Talk to a Person\"})]})]}),/*#__PURE__*/_jsx(\"button\",{ref:pillRef,className:\"ap-pillc\",type:\"button\",onClick:openPanel,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),onFocus:()=>setHover(true),onBlur:()=>setHover(false),\"aria-label\":label,\"aria-expanded\":open,\"aria-controls\":panelId,\"aria-haspopup\":\"dialog\",tabIndex:open?-1:0,children:hasSlot(launcher)?launcher:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-ico\",children:/*#__PURE__*/_jsx(IconSpark,{})}),!iconOnly&&/*#__PURE__*/_jsx(\"span\",{className:\"ap-lab\",children:label}),/*#__PURE__*/_jsx(\"span\",{className:\"ap-arrow\",children:\"→\"})]})})]})]});// ---- Setup Notice (canvas and Preview only; never on the published visitor site) ----\n// 1.2 first run: 1 API Key, 2 Theme (already applied), 3 Scan this site (runs on its own), then Name.\n// Names filled from the site title and anything a scan replaced are no longer leftovers to fix by hand.\nconst leftContent=names.fromTitle?leftovers.content.filter(n=>![\"Name\",\"Short name\",\"Label\",\"Greeting\"].includes(n)):leftovers.content;const scannedNow=!!liveScan||!isEmptyScan(scanData);const pasted=!examplePage&&!scannedNow&&(leftContent.length>0||!autoTheme&&leftovers.style.length>0);const scanBusy=scanUi.s===\"crawling\"||scanUi.s===\"writing\"||ms.status===\"scanning\";const scanned=scannedNow;const scanSaved=!!liveScan&&!!rawProps.scannedSite&&rawProps.scannedSite.trim()===liveScan;const scanButton=text=>/*#__PURE__*/_jsxs(\"span\",{className:\"ap-match\",children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-scanbtn\",onClick:scanSite,disabled:scanBusy||!connected,children:scanBusy?\"Scanning...\":text}),connected&&/*#__PURE__*/_jsx(\"span\",{children:\"Page text from this site is sent to your API Key or Worker provider for the scan. Your key goes only to that provider.\"})]});const steps=[{ok:connected,label:connected?proxy?\"Worker URL is set. If API Key still has a key, clear it before a live domain.\":\"A Gemini key is in API Key. Before a live domain, turn on Advanced, paste a Worker URL into Worker URL and clear API Key.\":\"Paste a Gemini key into API Key, the first field in the right-hand properties. That is the only thing to fill in. Worker URL is in Advanced.\"},{ok:autoTheme,label:autoTheme?/*#__PURE__*/_jsxs(_Fragment,{children:[\"Theme is On, so this site's look is already applied: \",swatches,\" \",headFont,\" \\xb7 \",corners,\" \\xb7 \",schemeName,\". Nothing to click.\",leftovers.style.length>0&&!examplePage&&\" The example site's colors left in this Askpill are ignored.\"]}):\"Theme is Off. Set Primary, Surface, Text, Radius and Scheme in the right-hand properties, or turn Theme On to use this site's look.\"},{ok:scanned||!knowledgeDefault,label:scanBusy?\"Scan this site is reading your site now. The sample knowledge is replaced with yours as soon as it finishes.\":scanned?/*#__PURE__*/_jsxs(_Fragment,{children:[scanSaved?\"Your site is scanned and saved in Scanned site, so visitors get it too.\":\"Your site is scanned and its knowledge is in use in Preview. One step left for visitors: copy the code below, turn on Advanced, and paste it into Scanned site.\",onFramerEditorHost()&&\" Framer Preview can only read this page. For every page, publish, open your site with ?askpill=scan at the end of the address, and it scans the whole site.\",mode!==\"headless\"&&scanButton(\"Scan again\")]}):!knowledgeDefault?/*#__PURE__*/_jsxs(_Fragment,{children:[\"You have your own knowledge, so Scan this site never replaces it on its own. To read your site anyway, click Scan this site and review what it found before anything changes.\",mode!==\"headless\"&&scanButton(\"Scan this site\")]}):!autoScan?/*#__PURE__*/_jsxs(_Fragment,{children:[\"Scan this site is Off. Add your knowledge in Advanced, or click Scan this site to read your site now.\",mode!==\"headless\"&&scanButton(\"Scan this site\")]}):connected?`Scan this site is On and starts on its own in a moment. It reads up to ${MAX_PAGES} pages and replaces the sample knowledge with yours.`:\"Scan this site is On. Once you add an API Key, Askpill reads your site and replaces the sample knowledge with yours.\"},{ok:business!==defaultBusiness&&!!business.trim(),label:names.fromTitle?`Name is ${business}, filled from your site's title. Change Name if you want.`:business!==defaultBusiness&&business.trim()?`Name is ${business}. Short name is ${shortName}, Label is ${label}.`:\"Name is still the example's Oddloaf Bakery. Type yours into Name, or Scan this site fills it.\"},{ok:true,label:/*#__PURE__*/_jsxs(_Fragment,{children:[everyPage?\"Every page is On. Place this Askpill once in your site's Layout Template (the layout all your pages use), outside the content slot, not on a single page.\":\"Optional: to show the pill on every page, turn on Advanced, then Every page, and place Askpill once in your site's Layout Template.\",everyPage&&mode!==\"pill\"&&\" Every page is for Launcher pill. Inline answer bar and chips stay where you place them.\"]})},{ok:false,label:\"Open Preview and ask a question. It should answer in a few seconds.\"}];const setDraft=patch=>setScanUi(u=>u.s===\"review\"?{s:\"review\",draft:{...u.draft,...patch}}:u);const scanPanel=(()=>{const u=scanUi;if(u.s===\"idle\")return null;if(u.s===\"crawling\")return /*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",role:\"status\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Reading this site\"}),/*#__PURE__*/_jsxs(\"p\",{children:[\"Read \",Math.max(1,u.done),\" of \",Math.max(u.total,u.done,1),\" page\",Math.max(u.total,u.done,1)===1?\"\":\"s\",\" found so far (up to \",MAX_PAGES,\"). \",knowledgeDefault?\"The sample knowledge is replaced with yours when it finishes.\":\"Nothing changes until you accept.\"]})]});if(u.s===\"writing\")return /*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",role:\"status\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Writing your Knowledge base\"}),/*#__PURE__*/_jsxs(\"p\",{children:[\"Read \",u.pages,\" page\",u.pages===1?\"\":\"s\",\". Your API Key or Worker is writing entries and FAQs from that text only\",u.total?`, part ${Math.min(u.done||0,u.total)} of ${u.total}`:\"\",\". A large site takes a few minutes. Keep this tab open.\"]})]});if(u.s===\"empty\")return /*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",role:\"status\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"The scan found almost nothing\"}),/*#__PURE__*/_jsxs(\"p\",{children:[\"Read \",u.pages,\" page\",u.pages===1?\"\":\"s\",\", with too little text to write from. Your Knowledge and FAQs were left as they are. Add them in the right-hand properties, or scan from the page with the most text.\"]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb\",onClick:()=>setScanUi({s:\"idle\"}),children:\"Done\"})]});if(u.s===\"error\")return /*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",role:\"alert\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Scan did not finish\"}),/*#__PURE__*/_jsx(\"p\",{children:u.msg}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb\",onClick:()=>setScanUi({s:\"idle\"}),children:\"Done\"})]});if(u.s===\"accepted\")return /*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",children:[/*#__PURE__*/_jsx(\"strong\",{children:u.auto?\"Your site is scanned\":\"Scan applied in Preview\"}),/*#__PURE__*/_jsx(\"p\",{children:u.auto?`Askpill replaced the sample knowledge with what it found${scanData&&scanData.pages?` on ${scanData.pages} page${scanData.pages===1?\"\":\"s\"}`:\"\"}. Ask a question in Preview now.`:\"Ask a question in Preview now.\"}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"b\",{children:\"One step left for visitors:\"}),\" click Copy, turn on Advanced in the right-hand properties, and paste the code into Scanned site. Framer does not let a component fill its own properties, so this paste is the only thing Askpill cannot do for you.\"]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-scode\",children:[/*#__PURE__*/_jsxs(\"code\",{title:u.code,children:[u.code.slice(0,40),\"...\"]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb solid\",onClick:async()=>{try{await navigator.clipboard.writeText(u.code);setScanCopied(true);setTimeout(()=>setScanCopied(false),2e3);}catch{setScanCopied(false);}},children:scanCopied?\"Copied\":\"Copy\"})]}),/*#__PURE__*/_jsxs(\"p\",{children:[\"Code size: \",Math.max(1,Math.round(u.code.length/1024)),\" KB.\",u.code.length>15e4?\" This is a large code. If it does not paste in full, add some of your own knowledge in Advanced, click Scan again, and remove some entries in the review.\":\"\"]}),/*#__PURE__*/_jsx(\"p\",{children:\"Fields you have changed yourself (not the example's) always win over the scan. Entries you typed in Knowledge base stay, and win over a scanned entry with the same title.\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb\",onClick:()=>setScanUi({s:\"idle\"}),children:\"Done\"})]});const d=u.draft;const faqs=d.faqs||[];const entries=d.entries||[];const setEntry=(i,patch)=>setDraft({entries:entries.map((x,j)=>j===i?{...x,...patch}:x)});const setFaq=(i,patch)=>setDraft({faqs:faqs.map((x,j)=>j===i?{...x,...patch}:x)});const entryGroups=groupBy(entries,kbView);const faqGroups=groupBy(faqs,\"category\");return /*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Review what the scan found\"}),/*#__PURE__*/_jsxs(\"p\",{children:[\"Written only from \",d.pages||\"the\",\" page\",d.pages===1?\"\":\"s\",\" of this site: \",entries.length,\" Knowledge base entr\",entries.length===1?\"y\":\"ies\",\" and \",faqs.length,\" FAQ\",faqs.length===1?\"\":\"s\",\". Edit anything, then Accept.\"]}),onFramerEditorHost()&&/*#__PURE__*/_jsx(\"p\",{children:\"Framer Preview can only read this page. For the whole site, publish, open your site with ?askpill=scan at the end of the address, and click Scan this site there.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sbody\",children:[/*#__PURE__*/_jsxs(\"label\",{children:[\"Name\",/*#__PURE__*/_jsx(\"input\",{value:d.business||\"\",onChange:e=>setDraft({business:e.target.value})})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"Short name\",/*#__PURE__*/_jsx(\"input\",{value:d.shortName||\"\",onChange:e=>setDraft({shortName:e.target.value})})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"Label\",/*#__PURE__*/_jsx(\"input\",{value:d.label||\"\",onChange:e=>setDraft({label:e.target.value})})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"Greeting\",/*#__PURE__*/_jsx(\"input\",{value:d.greeting||\"\",onChange:e=>setDraft({greeting:e.target.value})})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"Suggested (one per line)\",/*#__PURE__*/_jsx(\"textarea\",{rows:3,value:(d.chips||[]).join(\"\\n\"),onChange:e=>setDraft({chips:e.target.value.split(\"\\n\").map(x=>x.trim()).filter(Boolean).slice(0,6)})})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sfaq-h\",children:[\"Knowledge base (\",entries.length,\")\"]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sview\",role:\"group\",\"aria-label\":\"Group entries by\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"Group by\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-pressed\":kbView===\"category\",onClick:()=>setKbView(\"category\"),children:\"Category\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-pressed\":kbView===\"page\",onClick:()=>setKbView(\"page\"),children:\"Page\"})]}),entryGroups.map(g=>/*#__PURE__*/_jsxs(\"details\",{className:\"ap-sgrp\",children:[/*#__PURE__*/_jsxs(\"summary\",{children:[g.name,\" \",/*#__PURE__*/_jsxs(\"span\",{children:[\"(\",g.items.length,\")\"]})]}),g.items.map(({item:en,index:i})=>/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sfaq\",children:[/*#__PURE__*/_jsx(\"input\",{\"aria-label\":`Entry ${i+1} title`,value:en.title,onChange:e=>setEntry(i,{title:e.target.value})}),/*#__PURE__*/_jsx(\"input\",{\"aria-label\":`Entry ${i+1} category`,placeholder:\"Category\",value:en.category||\"\",onChange:e=>setEntry(i,{category:e.target.value})}),/*#__PURE__*/_jsx(\"textarea\",{\"aria-label\":`Entry ${i+1} text`,rows:3,value:en.body,onChange:e=>setEntry(i,{body:e.target.value})}),en.source&&/*#__PURE__*/_jsxs(\"span\",{className:\"ap-ssrc\",children:[\"From \",en.source]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-slink\",onClick:()=>setDraft({entries:entries.filter((_,j)=>j!==i)}),children:\"Remove\"})]},i))]},kbView+g.name)),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-slink\",onClick:()=>setDraft({entries:[...entries,{title:\"New entry\",body:\"\",category:\"General\"}]}),children:\"Add entry\"}),d.knowledge?/*#__PURE__*/_jsxs(\"label\",{children:[\"Knowledge\",/*#__PURE__*/_jsx(\"textarea\",{rows:4,value:d.knowledge||\"\",onChange:e=>setDraft({knowledge:e.target.value})})]}):null,/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sfaq-h\",children:[\"FAQs (\",faqs.length,\")\"]}),faqGroups.map(g=>/*#__PURE__*/_jsxs(\"details\",{className:\"ap-sgrp\",children:[/*#__PURE__*/_jsxs(\"summary\",{children:[g.name,\" \",/*#__PURE__*/_jsxs(\"span\",{children:[\"(\",g.items.length,\")\"]})]}),g.items.map(({item:f,index:i})=>/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sfaq\",children:[/*#__PURE__*/_jsx(\"input\",{\"aria-label\":`Question ${i+1}`,value:f.question,onChange:e=>setFaq(i,{question:e.target.value})}),/*#__PURE__*/_jsx(\"textarea\",{\"aria-label\":`Answer ${i+1}`,rows:2,value:f.answer,onChange:e=>setFaq(i,{answer:e.target.value})}),/*#__PURE__*/_jsx(\"input\",{\"aria-label\":`Question ${i+1} category`,placeholder:\"Category\",value:f.category||\"\",onChange:e=>setFaq(i,{category:e.target.value})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-slink\",onClick:()=>setDraft({faqs:faqs.filter((_,j)=>j!==i)}),children:\"Remove\"})]},i))]},\"faq\"+g.name)),/*#__PURE__*/_jsxs(\"label\",{children:[\"Hours\",/*#__PURE__*/_jsx(\"input\",{value:d.hours||\"\",onChange:e=>setDraft({hours:e.target.value})})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"Services\",/*#__PURE__*/_jsx(\"textarea\",{rows:2,value:d.services||\"\",onChange:e=>setDraft({services:e.target.value})})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"Contact\",/*#__PURE__*/_jsx(\"input\",{value:d.contact||\"\",onChange:e=>setDraft({contact:e.target.value})})]}),/*#__PURE__*/_jsxs(\"label\",{children:[\"Policies\",/*#__PURE__*/_jsx(\"textarea\",{rows:2,value:d.policies||\"\",onChange:e=>setDraft({policies:e.target.value})})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sbtns\",children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb solid\",onClick:()=>acceptScan(d),children:\"Accept\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb\",onClick:()=>void runScan(),children:\"Scan again\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb\",onClick:()=>setScanUi({s:\"idle\"}),children:\"Discard\"})]})]});})();const notice=showSetupNotice&&editor?/*#__PURE__*/_jsxs(\"div\",{className:\"ap-notice\",\"data-askpill\":\"true\",\"data-wide\":scanUi.s===\"review\"?\"1\":undefined,children:[css,/*#__PURE__*/_jsx(\"div\",{className:\"ap-editor-tag\",style:{position:\"absolute\"},children:\"Editor & Preview only\"}),/*#__PURE__*/_jsxs(\"h4\",{style:{marginTop:12},children:[\"Set up Askpill \",/*#__PURE__*/_jsx(\"span\",{className:\"ap-ver\",children:ASKPILL_VERSION})]}),/*#__PURE__*/_jsx(\"p\",{children:\"No code is needed. Every field named here is in the right-hand properties when Askpill is selected. This card never appears on your live site.\"}),pasted&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-leftover\",role:\"note\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"This Askpill still has some of the example site's settings.\"}),leftContent.length>0&&/*#__PURE__*/_jsxs(\"span\",{children:[\" Content: \",leftContent.join(\", \"),\".\"]}),leftContent.length>0&&/*#__PURE__*/_jsxs(\"span\",{children:[\" \",scanned?\"Your scan replaces it in Preview. Paste the Scanned site code so visitors get it too.\":!knowledgeDefault?\"Change these in Advanced, or click Scan this site and review what it finds.\":autoScan?connected?\"Scan this site replaces it as soon as it finishes.\":\"Add an API Key and Scan this site replaces it on its own.\":\"Turn Scan this site On, or change these in Advanced.\"]}),!autoTheme&&leftovers.style.length>0&&/*#__PURE__*/_jsxs(\"span\",{children:[\" Colors: \",leftovers.style.join(\", \"),\". Change them, or turn Theme On to use this site's look.\"]})]}),/*#__PURE__*/_jsx(\"ol\",{children:steps.map((s,i)=>/*#__PURE__*/_jsxs(\"li\",{children:[/*#__PURE__*/_jsx(\"span\",{className:`ap-step ${s.ok?\"ok\":\"miss\"}`,children:s.ok?/*#__PURE__*/_jsx(IconCheck,{}):i+1}),/*#__PURE__*/_jsx(\"span\",{children:s.label})]},i))}),scanPanel,liveScan&&scanUi.s===\"idle\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"A scan is applied in this browser\"}),/*#__PURE__*/_jsx(\"p\",{children:scanSaved?\"It matches Scanned site, so visitors get it too.\":\"Click Show code, turn on Advanced, and paste the code into Scanned site so visitors get it too.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sbtns\",children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb\",onClick:()=>setScanUi({s:\"accepted\",code:liveScan}),children:\"Show code\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-sb\",onClick:()=>{try{localStorage.removeItem(SCAN_STORE());}catch{}setLiveScan(\"\");},children:\"Remove from Preview\"})]})]}),allEntries.length>0&&scanUi.s!==\"review\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-scan\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Knowledge base\"}),/*#__PURE__*/_jsxs(\"p\",{children:[allEntries.length,\" entr\",allEntries.length===1?\"y\":\"ies\",\" (\",[ownEntries.length?`${ownEntries.length} typed in Knowledge base`:\"\",pastedEntries.length?`${pastedEntries.length} from Paste knowledge`:\"\",scannedEntries.length?`${scannedEntries.length} from Scanned site`:\"\"].filter(Boolean).join(\", \"),\")\",` and ${(faqs||[]).filter(f=>f&&f.question&&f.answer).length} FAQs. Each answer uses the entries and FAQs that match the question.`]}),pastedEntries.length>0&&/*#__PURE__*/_jsxs(\"details\",{className:\"ap-sgrp\",children:[/*#__PURE__*/_jsxs(\"summary\",{children:[\"What Paste knowledge found \",/*#__PURE__*/_jsxs(\"span\",{children:[\"(\",pastedEntries.length,\")\"]})]}),groupBy(pastedEntries,\"category\").map(g=>/*#__PURE__*/_jsxs(\"div\",{className:\"ap-sfaq\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-ssrc\",children:g.name}),g.items.map(({item,index})=>/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"b\",{children:item.title}),\" \",item.body.length>140?item.body.slice(0,140)+\"...\":item.body]},index))]},g.name)),/*#__PURE__*/_jsx(\"p\",{children:\"To change an entry, edit its text in Paste knowledge. Headings or blank lines start a new entry.\"})]})]}),demo&&!connected&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-demo-note\",children:\"Example answers are on. The pill answers from this instance's Knowledge and FAQs with no key, so you can try it right away. Add a key or Worker, or publish to your own domain, and it switches to your real setup.\"}),connected&&apiKey.trim()&&!proxy&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-keywarn\",children:\"This key lives in the page, so anyone can read it. Before you publish to a live domain, paste a Worker URL into Worker URL and clear the API Key field. The Setup page has a click-by-click walkthrough and a Copy Worker button.\"}),apiKey.trim()&&proxy&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-keywarn\",children:\"Worker URL is set, so Askpill never sends this key. It is still in API Key, though, and everything in the right-hand properties is part of your published page. Clear API Key before you publish.\"}),proxyInvalid&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-keywarn\",children:\"Worker URL must be a full https address, for example https://askpill.you.workers.dev. Askpill does not use it until it is.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-nfoot\",children:[/*#__PURE__*/_jsx(\"a\",{href:\"https://aistudio.google.com/apikey\",target:\"_blank\",rel:\"noreferrer\",children:\"Get a free Gemini key\"}),/*#__PURE__*/_jsx(\"a\",{className:\"ghost\",href:\"/setup\",children:\"Open the Setup page\"}),/*#__PURE__*/_jsx(\"button\",{className:\"ghost\",type:\"button\",onClick:async()=>{try{const text=ASKPILL_WORKER_SOURCE||window.__ASKPILL_WORKER_SOURCE||\"Open the Setup page in this remix for the complete Worker file and a click-by-click walkthrough.\";await navigator.clipboard.writeText(text);setCopied(true);setTimeout(()=>setCopied(false),2e3);}catch{setCopied(false);}},children:copied?\"Worker copied\":\"Copy Worker\"})]})]}):null;const advancedNote=mode===\"headless\"?/*#__PURE__*/_jsxs(\"div\",{className:\"ap-adv\",\"data-askpill\":\"true\",children:[css,/*#__PURE__*/_jsx(\"strong\",{children:\"Headless is optional and advanced.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"8px 0 0\",color:\"#555\"},children:\"Use Framer's Code Overrides dropdown. You do not write any code. Setup, theming, knowledge, and the three primary modes (launcher pill, inline bar, suggested chips) work without Overrides.\"})]}):null;const canvas=isCanvas();const pairs=[];{let pending=null;for(const m of messages){if(m.role===\"user\"){if(pending)pairs.push({q:pending,a:\"\"});pending=m.text;}else if(pending){const live=parseCitationAndHandoff(m.text);pairs.push({q:pending,a:live.clean,citation:live.citation||citation,handoff:live.handoff||handoff});pending=null;}}if(pending){const live=parseCitationAndHandoff(stream);pairs.push({q:pending,a:live.clean,streaming:panel===\"streaming\",citation:live.citation||citation,handoff:live.handoff||handoff});}}const shownOpen=openIdx==null?pairs.length-1:openIdx;const inlineBar=/*#__PURE__*/_jsxs(\"div\",{className:\"ap\",\"data-askpill\":\"true\",\"data-flow\":\"in\",\"data-mode\":\"inline\",\"data-canvas\":isCanvas()?\"1\":undefined,\"data-state\":panel,style:tokenStyle(tokens),children:[css,/*#__PURE__*/_jsx(\"div\",{className:\"ap-sr\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",children:announce}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-inline\",children:[/*#__PURE__*/_jsxs(\"form\",{className:\"ap-inl-bar\",onSubmit:e=>{e.preventDefault();ask(input);},children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-inl-ico\",children:/*#__PURE__*/_jsx(IconSparkS,{})}),/*#__PURE__*/_jsx(\"input\",{ref:inlineInputRef,className:\"ap-inl-in\",dir:\"auto\",value:input,onChange:e=>setInput(e.target.value),placeholder:ready?`Ask a question…`:\"Chat unavailable\",\"aria-label\":`Ask ${business}`,disabled:!ready&&!editor}),/*#__PURE__*/_jsx(\"button\",{className:\"ap-send\",type:panel===\"streaming\"?\"button\":\"submit\",onClick:panel===\"streaming\"?stop:undefined,disabled:panel!==\"streaming\"&&!input.trim(),\"aria-label\":panel===\"streaming\"?\"Stop\":\"Send\",children:panel===\"streaming\"?/*#__PURE__*/_jsx(IconStop,{}):/*#__PURE__*/_jsx(IconUp,{})})]}),panel===\"setup\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-card ap-warn\",style:{marginLeft:0,marginTop:14},children:[/*#__PURE__*/_jsxs(\"h5\",{children:[/*#__PURE__*/_jsx(IconKey,{}),\" Add a Gemini key to go live\"]}),/*#__PURE__*/_jsx(\"p\",{children:\"Askpill cannot answer yet. Select Askpill, then in the right-hand properties paste a free Google Gemini key into API Key (under Provider and Model). For a live domain, paste a Worker URL into Worker URL and clear API Key.\"}),/*#__PURE__*/_jsx(\"a\",{className:\"ap-btn\",href:\"https://aistudio.google.com/apikey\",target:\"_blank\",rel:\"noreferrer\",children:\"Get a free Gemini key\"})]}),(panel===\"offline\"||panel===\"error\")&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-card\",style:{marginLeft:0,marginTop:14},children:[/*#__PURE__*/_jsx(\"h5\",{children:\"Chat is offline right now\"}),/*#__PURE__*/_jsx(\"p\",{children:errorMsg||\"The assistant could not complete that reply. You can still reach us directly.\"}),handoffEmail&&/*#__PURE__*/_jsxs(\"a\",{className:\"ap-btn\",href:`mailto:${handoffEmail}`,children:[\"Email \",short]})]}),pairs.length===0&&(chips||[]).length>0&&panel!==\"setup\"&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-inl-chips\",children:(chips||[]).filter(Boolean).map((c,i)=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"ap-inl-chip\",onClick:()=>{setInput(c);ask(c);},children:c},i+\":\"+c))}),fallbackNote?/*#__PURE__*/_jsx(\"p\",{className:\"ap-note\",style:{padding:\"10px 4px 0\"},children:fallbackNote}):null,pairs.length>0&&/*#__PURE__*/_jsx(\"div\",{className:\"ap-inl-list\",children:pairs.map((it,k)=>{const isOpen=k===shownOpen;return /*#__PURE__*/_jsxs(\"div\",{className:`ap-inl-item${isOpen?\" open\":\"\"}`,children:[/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"ap-inl-q\",\"aria-expanded\":isOpen,onClick:()=>setOpenIdx(isOpen?-1:k),children:[/*#__PURE__*/_jsx(\"span\",{dir:\"auto\",children:it.q}),/*#__PURE__*/_jsx(\"span\",{className:\"ap-inl-chev\",children:/*#__PURE__*/_jsx(IconMin,{})})]}),isOpen&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-inl-a\",dir:\"auto\",children:[it.a,it.streaming?/*#__PURE__*/_jsx(\"span\",{className:\"ap-caret\"}):null,!it.streaming&&it.a&&/*#__PURE__*/_jsxs(\"div\",{className:\"ap-inl-meta\",children:[prettyCite(it.citation)?/*#__PURE__*/_jsxs(\"span\",{children:[\"From: \",prettyCite(it.citation)]}):/*#__PURE__*/_jsxs(\"span\",{children:[\"Answered from \",short,\"'s knowledge\"]}),handoffEmail&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{children:\"\\xb7\"}),/*#__PURE__*/_jsxs(\"a\",{href:`mailto:${handoffEmail}`,children:[\"Still Need Help? Email \",short]})]})]})]})]},`${it.q}-${k}`);})})]})]});const chipsRow=/*#__PURE__*/_jsxs(\"div\",{className:\"ap-chrow\",\"data-askpill\":\"true\",\"data-mode\":\"chips\",style:tokenStyle(tokens),children:[css,/*#__PURE__*/_jsxs(\"div\",{className:\"ap-ch-lab\",children:[/*#__PURE__*/_jsx(\"i\",{className:\"ap-dot\"}),\"Ask \",short,\", answers in seconds\"]}),(chips||[]).filter(Boolean).map((c,i)=>/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:`ap-qchip${activeChip===c?\" hl\":\"\"}`,onClick:()=>{setActiveChip(c);if(otherLauncher)otherLauncher.ask(c);else ask(c);},children:[/*#__PURE__*/_jsx(IconSparkS,{}),c]},i+\":\"+c)),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:`ap-qchip more${activeChip===\"__more__\"?\" hl\":\"\"}`,onClick:()=>{setActiveChip(\"__more__\");if(otherLauncher){otherLauncher.open();return;}openPanel();setTimeout(()=>inputRef.current?.focus(),500);},children:\"Ask something else…\"})]});return /*#__PURE__*/_jsxs(\"div\",{\"data-askpill-ignore\":\"\",style:{...style,position:\"relative\",display:\"flex\",flexDirection:\"column\",gap:canvas||mode===\"inline\"||mode===\"chips\"?16:undefined,alignItems:canvas&&mode===\"pill\"?\"flex-start\":undefined,minWidth:canvas&&mode===\"pill\"?392:undefined,width:mode===\"inline\"||mode===\"chips\"?\"100%\":undefined},children:[notice,advancedNote,mode===\"inline\"||mode===\"chips\"?matchBar:null,mode===\"chips\"?chipsRow:null,mode===\"inline\"?inlineBar:null,mode===\"pill\"&&canvas?liveChat:null,mode===\"pill\"&&!canvas&&mounted&&ownsLauncher&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(liveChat,document.body):null,mode===\"chips\"&&open&&canvas?liveChat:null,mode===\"chips\"&&open&&!canvas&&!otherLauncher&&mounted&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(liveChat,document.body):null]});}function BotMsg({text,caret,citation}){const cite=prettyCite(citation);return /*#__PURE__*/_jsxs(\"div\",{className:\"ap-bot\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ap-mini\",children:/*#__PURE__*/_jsx(IconSparkS,{})}),/*#__PURE__*/_jsxs(\"div\",{className:\"ap-msg\",dir:\"auto\",children:[text,caret?/*#__PURE__*/_jsx(\"span\",{className:\"ap-caret\"}):null,cite?/*#__PURE__*/_jsxs(\"div\",{className:\"ap-cite\",children:[\"From: \",cite]}):null]})]});}Askpill.displayName=\"Askpill\";addPropertyControls(Askpill,{apiKey:{type:ControlType.String,title:\"API Key\",defaultValue:\"\",description:\"[Get a free Gemini key](https://aistudio.google.com/apikey) and paste it here. That is the only thing to fill in: the theme is already applied, and Scan this site fills in your knowledge. Worker URL is in Advanced.\\nThis key is in the page, so anyone can read it. Before a live domain, turn on Advanced, paste a Worker URL into Worker URL and clear this field.\"},autoTheme:{type:ControlType.Boolean,title:\"Theme\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Applies your site's fonts, colors and corners as soon as you add Askpill to a page. Turn off to set colors yourself.\"},primary:{type:ControlType.Color,title:\"Primary\",optional:true,description:\"The button color. Shown when Theme is Off. Clear it to use the default.\",hidden(props){return props.autoTheme!==false;}},surface:{type:ControlType.Color,title:\"Surface\",optional:true,description:\"Panel background. Shown when Theme is Off. Clear it to use the default.\",hidden(props){return props.autoTheme!==false;}},textColor:{type:ControlType.Color,title:\"Text\",optional:true,description:\"Panel text color. Shown when Theme is Off. Clear it to use the default.\",hidden(props){return props.autoTheme!==false;}},radius:{type:ControlType.Enum,title:\"Radius\",options:[\"auto\",\"0\",\"8\",\"16\",\"pill\"],optionTitles:[\"Auto\",\"0\",\"8\",\"16\",\"Pill\"],defaultValue:\"auto\",displaySegmentedControl:true,description:\"Corner rounding. Auto follows this site's buttons and cards.\",hidden(props){return props.autoTheme!==false;}},scheme:{type:ControlType.Enum,title:\"Scheme\",options:[\"auto\",\"light\",\"dark\"],optionTitles:[\"Auto\",\"Light\",\"Dark\"],defaultValue:\"auto\",displaySegmentedControl:true,description:\"Auto follows the page background. Light or Dark builds a matching palette from this site's colors.\",hidden(props){return props.autoTheme!==false;}},autoScan:{type:ControlType.Boolean,title:\"Scan this site\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Once you add an API Key, Askpill reads your site and replaces the sample knowledge with yours. Turn off to enter knowledge yourself.\"},business:{type:ControlType.String,title:\"Name\",defaultValue:\"Oddloaf Bakery\",description:\"Filled from your site's title when you add Askpill. Change it if you want.\"},advanced:{type:ControlType.Boolean,title:\"Advanced\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Every page, Position, Knowledge, Tone, Phone, Handoff, and the rest.\"},proxyUrl:{type:ControlType.String,title:\"Worker URL\",defaultValue:\"\",placeholder:\"https://askpill.you.workers.dev\",description:\"Recommended for any live site. Paste your Cloudflare Worker URL here (the Setup page has a Copy Worker button and a click-by-click walkthrough). Then clear the API Key field. You never write JavaScript.\",hidden(props){return!props.advanced;}},provider:{type:ControlType.Enum,title:\"Provider\",options:[\"gemini\",\"xai\",\"groq\",\"openrouter\",\"custom\"],optionTitles:[\"Google Gemini (free tier)\",\"Grok (xAI)\",\"Groq\",\"OpenRouter\",\"Custom OpenAI-compatible\"],defaultValue:\"gemini\",description:\"Google Gemini's free tier is the default. Gemini may use free-tier prompts to improve its models. For a live site, put the key in a Worker, not in this panel.\",hidden(props){return!props.advanced;}},model:{type:ControlType.Enum,title:\"Model\",options:[\"gemini-3.5-flash-lite\",\"gemini-3.8-flash\",\"gemini-3.1-flash-lite\",\"gemini-flash-lite-latest\"],optionTitles:[\"gemini-3.5-flash-lite (recommended)\",\"gemini-3.8-flash\",\"gemini-3.1-flash-lite\",\"gemini-flash-lite-latest\"],defaultValue:\"gemini-3.5-flash-lite\",description:\"gemini-3.5-flash-lite is the recommended default: it replies quickly and reliably. If another Gemini model is busy or slow to start, Askpill falls back to gemini-3.5-flash-lite and shows a short note.\",hidden(props){return!props.advanced||Boolean(props.provider&&props.provider!==\"gemini\");}},customModel:{type:ControlType.String,title:\"Model id\",defaultValue:\"\",description:\"The exact model id for Grok, Groq, OpenRouter, or a custom provider.\",hidden(props){return!props.advanced||Boolean(!props.provider||props.provider===\"gemini\");}},customUrl:{type:ControlType.String,title:\"Endpoint\",defaultValue:\"\",description:\"HTTPS URL of an OpenAI-compatible chat completions endpoint. Leave blank for the built-in providers.\",hidden(props){return!props.advanced||Boolean(props.provider!==\"custom\");}},version:{type:ControlType.Enum,title:\"Version\",options:[ASKPILL_VERSION],optionTitles:[ASKPILL_VERSION],defaultValue:ASKPILL_VERSION,displaySegmentedControl:true,description:\"The Askpill component version. Nothing to fill in. See the changelog on the Askpill preview site.\",hidden(props){return!props.advanced;}},mode:{type:ControlType.Enum,title:\"Mode\",options:[\"pill\",\"inline\",\"chips\",\"headless\"],optionTitles:[\"Launcher pill\",\"Inline answer bar\",\"Suggested-question chips\",\"Headless (advanced)\"],defaultValue:\"pill\",description:\"Launcher pill is the default. Headless is optional and uses Framer's Code Overrides dropdown. The other modes do not need Overrides.\",hidden(props){return!props.advanced;}},everyPage:{type:ControlType.Boolean,title:\"Every page\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Show the pill on every page. Turn this on, then place Askpill once in your site's Layout Template (the layout all your pages use), outside the content slot. Askpill only runs where it is placed, so on a single page it shows on that page only.\",hidden(props){return!props.advanced;}},position:{type:ControlType.Enum,title:\"Position\",options:POSITION_OPTIONS,optionTitles:POSITION_TITLES,defaultValue:\"right\",description:\"Where the hovering pill sits. The open panel opens from the same spot. On a phone, Top positions open from the top and Bottom positions open as a bottom sheet. Inline answer bar and chips stay where you place them.\",hidden(props){return!props.advanced;}},shortName:{type:ControlType.String,title:\"Short name\",defaultValue:\"Oddloaf\",description:\"Used in the input placeholder, for example 'Ask Oddloaf anything...'.\",hidden(props){return!props.advanced;}},knowledge:{type:ControlType.String,title:\"Knowledge\",defaultValue:defaultKnowledge,displayTextArea:true,description:\"Short notes the assistant may use: hours, prices, policies, allergens, how to order. For a lot of material use Paste knowledge or Knowledge base below. All of it wins over page text.\",hidden(props){return!props.advanced;}},pasteKnowledge:{type:ControlType.String,title:\"Paste knowledge\",defaultValue:\"\",displayTextArea:true,placeholder:\"Paste docs, notes or site copy. Start each topic with a heading or leave a blank line between topics.\",description:\"Paste a lot of text at once. Askpill splits it into Knowledge base entries: each heading (# Category, ## Topic) or each blank-line block becomes one entry. The Setup Notice shows what it found.\",hidden(props){return!props.advanced;}},knowledgeEntries:{type:ControlType.Array,title:\"Knowledge base\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},body:{type:ControlType.String,title:\"Text\",displayTextArea:true},category:{type:ControlType.String,title:\"Category\"},source:{type:ControlType.String,title:\"Source\",placeholder:\"Optional, for example /pricing\"}}},defaultValue:[],description:\"Organized entries, one topic each, grouped by Category. Add as many as you need. Each answer uses the entries that match the question. These win over a Scanned site entry with the same title.\",hidden(props){return!props.advanced;}},faqs:{type:ControlType.Array,title:\"FAQs\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true},category:{type:ControlType.String,title:\"Category\"}}},defaultValue:defaultFaqs,description:\"Bind a CMS collection, or type questions and answers here, with a Category for each. A teammate who is not a developer can update these safely. FAQs are used first, before Knowledge and Knowledge base.\",hidden(props){return!props.advanced;}},hours:{type:ControlType.String,title:\"Hours\",defaultValue:\"Tue-Sat 7am-4pm, Sun 8am-2pm. Closed Monday.\",description:\"Opening hours in plain language. Shown to the assistant as a structured field.\",hidden(props){return!props.advanced;}},services:{type:ControlType.String,title:\"Services\",defaultValue:\"Daily bakes, custom cakes with 48 hours notice, wholesale.\",displayTextArea:true,description:\"What you offer, in plain language.\",hidden(props){return!props.advanced;}},contact:{type:ControlType.String,title:\"Contact\",defaultValue:\"14 Linden Row. hello@oddloaf.example\",description:\"Address, email, or phone the assistant may share.\",hidden(props){return!props.advanced;}},policies:{type:ControlType.String,title:\"Policies\",defaultValue:\"Gluten-free items are made in a shared kitchen. Custom cakes need 48 hours notice.\",displayTextArea:true,description:\"Allergens, refunds, notice periods, anything a visitor might need to know.\",hidden(props){return!props.advanced;}},learnFromPage:{type:ControlType.Boolean,title:\"Learn from page\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Read visible text on the page (skipped if your Knowledge already answers). Your Knowledge always wins.\",hidden(props){return!props.advanced;}},tone:{type:ControlType.Enum,title:\"Tone\",options:[\"friendly\",\"brief\",\"formal\"],optionTitles:[\"Friendly\",\"Brief\",\"Formal\"],defaultValue:\"friendly\",description:\"How the assistant sounds. Friendly is the default.\",hidden(props){return!props.advanced;}},greeting:{type:ControlType.String,title:\"Greeting\",defaultValue:defaultGreeting,displayTextArea:true,description:\"The first message visitors see when they open the panel. Write it in your voice.\",hidden(props){return!props.advanced;}},chips:{type:ControlType.Array,title:\"Suggested\",control:{type:ControlType.String},defaultValue:defaultChips,maxCount:6,description:\"Starter questions shown as chips. Tap one to ask it. A client can edit these anytime.\",hidden(props){return!props.advanced;}},replyLength:{type:ControlType.Enum,title:\"Reply length\",options:[\"short\",\"medium\",\"long\"],optionTitles:[\"Short\",\"Medium\",\"Long\"],defaultValue:\"medium\",displaySegmentedControl:true,description:\"How long answers should be.\",hidden(props){return!props.advanced;}},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Ask Oddloaf\",description:\"The text on the closed pill. Keep it short.\",hidden(props){return!props.advanced;}},iconOnly:{type:ControlType.Boolean,title:\"Icon only\",defaultValue:false,description:\"Hide the label and show only the spark icon on the closed pill.\",hidden(props){return!props.advanced;}},phoneLayout:{type:ControlType.Enum,title:\"Phone\",options:[\"sheet\",\"full\"],optionTitles:[\"Bottom sheet\",\"Full screen\"],defaultValue:\"sheet\",description:\"How the open panel looks on a phone.\",hidden(props){return!props.advanced;}},refineWithAI:{type:ControlType.Boolean,title:\"Refine with AI\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Optional. Theme already reads your site's look. With this On, Scan again on the Setup Notice also asks your API Key or Worker to review the color read and tune it. Only design values are sent for this step.\",hidden(props){return!props.advanced;}},matchedTheme:{type:ControlType.String,title:\"Matched theme\",defaultValue:\"\",placeholder:\"apm1.\",description:\"Optional. Paste a theme code from Accept to lock the look for every visitor, with no AI call. A code left from the example site is ignored while Theme is On.\",hidden(props){return!props.advanced;}},scannedSite:{type:ControlType.String,title:\"Scanned site\",defaultValue:\"\",placeholder:\"aps1.\",description:\"Paste the code from the Setup Notice after Scan this site, so every visitor gets the scanned Knowledge base, FAQs, hours, services, contact, policies and names. Fields you have changed yourself still win, and so do your own Knowledge base entries.\",hidden(props){return!props.advanced;}},handoffWhen:{type:ControlType.Enum,title:\"Handoff\",options:[\"off\",\"unsure\",\"always\"],optionTitles:[\"Off\",\"When unsure\",\"Always\"],defaultValue:\"unsure\",description:\"When to offer 'Talk to a person'. When unsure is the default: the assistant offers a handoff if Knowledge does not contain the answer.\",hidden(props){return!props.advanced;}},handoffEmail:{type:ControlType.String,title:\"Email\",defaultValue:\"hello@oddloaf.example\",description:\"Used for the leave-your-email form and the mailto button.\",hidden(props){return!props.advanced;}},bookingLabel:{type:ControlType.String,title:\"Link label\",defaultValue:\"Order a custom cake\",description:\"Label on the optional booking or action link.\",hidden(props){return!props.advanced;}},bookingUrl:{type:ControlType.String,title:\"Link URL\",defaultValue:\"\",description:\"Optional page, for example a custom-order form. Leave blank to hide the link.\",hidden(props){return!props.advanced;}},attachChat:{type:ControlType.Boolean,title:\"Attach chat\",defaultValue:true,description:\"Include a short chat summary when someone leaves their email. With a Worker it is sent to you with their email. Without one it goes in the email they send you.\",hidden(props){return!props.advanced;}},keepChat:{type:ControlType.Boolean,title:\"Keep chat\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Off: a chat ends when the visitor reloads or leaves, and nothing is stored. On: it survives a reload in the same tab for 30 minutes, encrypted in the browser, and is gone when the tab closes.\",hidden(props){return!props.advanced;}},showSetupNotice:{type:ControlType.Boolean,title:\"Setup notice\",defaultValue:true,description:\"Show the step-by-step Setup Notice on the canvas and in Preview. It never appears on the published visitor site.\",hidden(props){return!props.advanced;}},exampleAnswers:{type:ControlType.Boolean,title:\"Example answers\",defaultValue:true,description:\"Lets the pill answer from this instance's Knowledge and FAQs with no key, on the Framer canvas, Preview, and Framer-hosted sites. It turns itself off when you add a key or Worker, or publish to your own domain.\",hidden(props){return!props.advanced;}},launcher:{type:ControlType.ComponentInstance,title:\"Launcher\",description:\"Optional. Connect a layer to replace the built-in pill. Leave empty to use the built-in spark and label.\",hidden(props){return!props.advanced;}},header:{type:ControlType.ComponentInstance,title:\"Header\",description:\"Optional. Connect a layer to replace the panel header.\",hidden(props){return!props.advanced;}},avatar:{type:ControlType.ComponentInstance,title:\"Avatar\",description:\"Optional. Connect a layer to replace the built-in spark avatar.\",hidden(props){return!props.advanced;}}});\nexport const __FramerMetadata__ = {\"exports\":{\"workerBase\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"POSITION_TITLES\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AskpillProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GEMINI_OPENAI_URL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"KnowledgeInput\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"streamSampleAnswer\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"prettyCite\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"knowledgeLabel\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"namesFor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"WORKING_DEFAULT_MODEL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Askpill\",\"slots\":[\"launcher\",\"header\",\"avatar\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"Retrieved\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"VERIFIED_FALLBACK_MODEL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"exampleLeftovers\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultGreeting\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"chatSummary\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultChips\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"KnowledgeBlock\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_TOKENS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultServices\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CompiledKnowledge\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"shouldFallback\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"nameFromTitle\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isDefaultKnowledge\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"sampleAnswer\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"splitBody\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parsePastedKnowledge\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"streamChatWithFallback\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildSystemPrompt\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isExampleMode\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContact\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"safeEmail\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PAGE_BUDGET\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FALLBACK_NOTE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"readHost\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CmsFaq\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SampleInput\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isLabelTitle\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"compileKnowledge\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"OPTIONAL_GEMINI_MODELS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"positionParts\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultFaqs\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"KnowledgeEntry\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultKnowledge\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EXAMPLE_STYLE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"handoffMailto\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parseCitationAndHandoff\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StreamRequest\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PROVIDER_URLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isExampleTheme\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"siteTitle\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FallbackHandlers\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProviderId\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"terms\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FIRST_TOKEN_TIMEOUT_MS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultLabel\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ASKPILL_VERSION\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"shouldAutoScan\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PillPosition\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"POSITION_OPTIONS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MAX_ENTRY_BODY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pillAnchor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultHours\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"retrieveKnowledge\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"deriveTokens\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EXAMPLES\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultShortName\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultPolicies\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StructuredFields\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"streamChat\":{\"type\":\"function\",\"isAsync\":true,\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultHandoffEmail\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"KNOWLEDGE_BUDGET\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"firstPaintAnchor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPageText\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultBusiness\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"readVisiblePageText\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ChatMessage\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PromptOptions\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StreamHandlers\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"safeHref\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cleanEndpoint\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"themeControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"resolveNames\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"resolveChatUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Askpill.map"],"mappings":"A,sQAeG,SAAgB4B,EAAa,EAAE,CAAC,IAAMC,EAAE,OAAOC,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE,GAAGD,EAAE,OAAO,GAAG,OAAO,KAAKA,CAAC,EAAE,MAAO,GAAM,IAAME,EAAG,mBAAuBC,EAAE,KAAM,EAAED,EAAG,KAAKF,CAAC,GAAE,CAAC,IAAMI,EAAED,EAAE,EAAE,CAAC,QAAQ,gBAAgB,EAAE,EAAE,GAAG,CAACE,GAAU,KAAKD,CAAC,GAAG,CAAC,aAAa,KAAKA,CAAC,GAAG,CAAC,KAAK,KAAKA,CAAC,EAAE,MAAO,EAAM,CAAC,MAAO,EAAK,CAA8G,SAAgBE,EAAe,EAAK,EAAI,GAAG,CAAC,IAAMH,EAAE,OAAOI,GAAM,EAAE,CAAC,CAAC,MAAU,OAAO,SAASC,EAAI,sBAAsB,CAAC,EAAyC,MAApC,CAACL,GAAG,CAACJ,EAAaI,EAAE,EAAE,EAAS,KAAW,CAAC,MAAMA,EAAE,EAAE,CAAC,KAAK,EAAE,KAAKA,EAAE,EAAE,CAAE,CAAC,SAASM,EAAU,EAAE,CAAC,OAAOT,EAAE,QAAQ,wBAAwB,GAAG,KA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