PageSourceSearch

https://textiaa.com/chunk-RPRT6JT3.js

js textiaa.com collected 2026-09-24 13:40:41 UTC 58,009 bytes, 38 lines download raw bytes

1import{a as De,b as it}from"./chunk-4Z2FIWXU.js";import{a as Ne,b as nt}from"./chunk-ZEONSQ4A.js";import"./chunk-5PW3IXDN.js";import{c as Me,d as tt}from"./chunk-WMWTXPHF.js";import"./chunk-P27FRGFY.js";import{a as Pe,b as at}from"./chunk-LZ4XC2TM.js";import{B as Ye,C as je,b as Ue,c as Re,e as V,k as Ge,l as Be,q as qe,t as He,u as $e,v as Fe,w as Ve,x as ze,z as Ke}from"./chunk-TT2QA5N2.js";import{a as F,b as Le}from"./chunk-6MOVM5NX.js";import{i as Ie,m as ye,n as Te}from"./chunk-REXD3XXG.js";import"./chunk-XZTRQ27X.js";import{b as Oe,c as Se,e as we,f as ke}from"./chunk-OVGYRFXU.js";import{G as Ae,M as et,o as be,z as Je}from"./chunk-MZWCCPRN.js";import{Ca as We,G as Q,Hc as Ee,Ic as $,Kc as Ce,Lb as D,Nb as A,Ob as I,Oc as d,Pb as fe,Pc as c,Qb as ae,Qc as oe,Rb as B,Sb as q,Tb as _,U as ce,Ub as o,Vb as r,Wb as w,Xa as ne,Ya as me,Yc as P,Z as N,bc as K,da as L,ea as M,fa as ie,fc as y,ga as pe,gb as n,hc as h,kb as R,lb as G,lc as he,mc as ge,nc as xe,pa as O,sc as _e,tc as H,td as Z,ub as ue,wc as l,xc as C,yc as m,zc as ve}from"./chunk-JXIB5BED.js";import{a as te,e as se,k as de}from"./chunk-J6LPXIX4.js";function rt(a,p,e,t){let i=typeof a=="number"?a:Number(a);if(!Number.isFinite(i))return t;let s=Math.trunc(i);return Math.min(e,Math.max(p,s))}function lt(a){let p=[],e=new Set;for(let t of a??[]){let i=(t??"").trim();i&&(e.has(i)||/^https?:\/\//i.test(i)&&(e.add(i),p.push(i)))}return p}var re,Qe=se(()=>{"use strict";Z();et();Le();Z();re=(()=>{class a{http=N(Ae);baseUrl=`${F.apiUrl}/api/v1/academic`;generate(e){let t=`${this.baseUrl}/outline-generator/generate`,i=lt(e.source_urls),s=te(te({title:(e.title??"").trim(),mode:e.mode,words:rt(e.words,200,2e5,1e3),citation_style:e.citation_style,use_only_my_sources:!!e.use_only_my_sources},i.length?{source_urls:i}:{}),e.locale?{locale:e.locale}:{});return this.http.post(t,s)}exportOutlineGeneratorPdf(e){let t=`${this.baseUrl}/outline-generator/export?format=pdf`;return this.http.post(t,e)}getOutlineQuota(){return this.http.get(`${this.baseUrl}/outline-generator/quota`)}saveEssay(e){return this.http.post(`${this.baseUrl}/outline-generator/save`,e,{withCredentials:!0})}getSavedEssays(){return this.http.get(`${this.baseUrl}/outline-generator/history`,{withCredentials:!0})}deleteEssay(e){return this.http.delete(`${this.baseUrl}/outline-generator/history/${e}`,{withCredentials:!0})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=ce({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()});function xt(a,p){if(a&1&&(o(0,"option",20),l(1),d(2,"translate"),r()),a&2){let e=p.$implicit;_("ngValue",e.code),n(),C(c(2,2,e.labelKey))}}function _t(a,p){a&1&&(o(0,"p",22),l(1),d(2,"translate"),r()),a&2&&(n(),m(" ",c(2,1,"ACADEMIC_OUTLINE.TITLE_REQUIRED")," "))}function vt(a,p){a&1&&(l(0),d(1,"translate")),a&2&&m(" ",c(1,1,"ACADEMIC_OUTLINE.LENGTH_HELP_WORDS")," ")}function Et(a,p){a&1&&(l(0),d(1,"translate")),a&2&&m(" ",c(1,1,"ACADEMIC_OUTLINE.LENGTH_HELP_DETAIL")," ")}function Ct(a,p){a&1&&(o(0,"p",27),l(1),d(2,"translate"),r()),a&2&&(n(),m(" ",c(2,1,"ACADEMIC_OUTLINE.FULL_DRAFT_CITATION_HELP")," "))}function bt(a,p){if(a&1){let e=K();o(0,"span",90),l(1),o(2,"button",91),d(3,"translate"),y("click",function(){let i=L(e).$index,s=h(2);return M(s.removeUrl(i))}),r()()}if(a&2){let e=p.$implicit;n(),m(" ",e.url," "),n(),D("aria-label",c(3,2,"ACADEMIC_OUTLINE.REMOVE"))}}function At(a,p){if(a&1&&(o(0,"div",46)(1,"div",89),B(2,bt,4,4,"span",90,ht),r()()),a&2){let e=h();n(2),q(e.sourceUrls())}}function It(a,p){a&1&&(o(0,"span"),l(1),d(2,"translate"),r()),a&2&&(n(),C(c(2,1,"ACADEMIC_OUTLINE.GENERATE")))}function yt(a,p){a&1&&(o(0,"span"),l(1),d(2,"translate"),r()),a&2&&(n(),C(c(2,1,"ACADEMIC_OUTLINE.GENERATING")))}function Tt(a,p){a&1&&(l(0),d(1,"translate"),o(2,"a",94),d(3,"langLink"),l(4),d(5,"translate"),r()),a&2&&(m(" ",c(1,3,"ACADEMIC_OUTLINE.QUOTA.EXCEEDED")," "),n(2),_("routerLink",c(3,5,$(9,mt))),n(2),m(" ",c(5,7,"ACADEMIC_OUTLINE.QUOTA.UPGRADE")," "))}function Ot(a,p){a&1&&(l(0),d(1,"translate")),a&2&&m(" ",c(1,1,"ACADEMIC_OUTLINE.QUOTA.UNLIMITED")," ")}function St(a,p){if(a&1&&(l(0),d(1,"translate")),a&2){let e=h(2);m(" ",oe(1,1,"ACADEMIC_OUTLINE.QUOTA.BADGE",Ce(4,ut,e.quota().used,e.quota().limit))," ")}}function wt(a,p){if(a&1&&(o(0,"div",92)(1,"span",93),l(2),r(),o(3,"span"),A(4,Tt,6,10)(5,Ot,2,3)(6,St,2,7),r()()),a&2){let e=h();H("quota-badge--danger",e.quotaExceeded()),n(2),m(" ",e.quotaExceeded()?"lock":"auto_awesome"," "),n(2),I(e.quotaExceeded()?4:e.quota().unlimited?5:6)}}function kt(a,p){a&1&&(o(0,"div",67)(1,"p",95),l(2),d(3,"translate"),r()()),a&2&&(n(2),C(c(3,1,"ACADEMIC_OUTLINE.EMPTY_STATE")))}function Lt(a,p){if(a&1&&(o(0,"div",68),l(1),r()),a&2){let e=h();n(),C(e.error())}}function Mt(a,p){a&1&&(ie(),o(0,"svg",105),w(1,"circle",108)(2,"path",109),r())}function Dt(a,p){a&1&&w(0,"span",106)}function Nt(a,p){a&1&&w(0,"span",107)}function Pt(a,p){if(a&1&&(o(0,"div",103)(1,"span",104),A(2,Mt,3,0,":svg:svg",105)(3,Dt,1,0,"span",106)(4,Nt,1,0,"span",107),r(),o(5,"span"),l(6),r()()),a&2){let e=p.$implicit,t=p.$index,i=h(2);H("ao-step--done",t<i.loadingStepIndex())("ao-step--active",t===i.loadingStepIndex())("ao-step--pending",t>i.loadingStepIndex()),n(2),I(t<i.loadingStepIndex()?2:t===i.loadingStepIndex()?3:4),n(4),C(e)}}function Ut(a,p){if(a&1&&(o(0,"div",69)(1,"div",96)(2,"div",97),ie(),o(3,"svg",98),w(4,"circle",99)(5,"circle",100),r()(),pe(),o(6,"div",101),B(7,Pt,7,8,"div",102,fe),r()()()),a&2){let e=h();n(7),q(e.loadingSteps())}}function Rt(a,p){if(a&1){let e=K();o(0,"div",110),d(1,"translate"),y("input",function(i){L(e);let s=h();return M(!s.loading()&&s.onEditorInput(i))})("mousemove",function(i){L(e);let s=h();return M(!s.loading()&&s.onEditorMouseMove(i))})("click",function(i){L(e);let s=h();return M(!s.loading()&&s.onEditorClick(i))})("mouseleave",function(){L(e);let i=h();
1return M(i.hideRefPopover())}),r()}if(a&2){let e=h();H("editor-disabled",e.loading())("is-rtl",e.isRtl()),_("innerHTML",e.editorHtml(),ne),D("dir",e.isRtl()?"rtl":"ltr")("contenteditable",e.loading()?"false":"true")("aria-disabled",e.loading()?"true":"false")("aria-label",c(1,9,"ACADEMIC_OUTLINE.EDITOR_ARIA"))}}function Gt(a,p){if(a&1&&(o(0,"div",114)(1,"span",116),l(2,"\u{1F464}"),r(),o(3,"span"),l(4),r()()),a&2){let e=h(2);n(4),C(e.refPopover().data?.authors)}}function Bt(a,p){if(a&1&&(o(0,"div",114)(1,"span",116),l(2,"\u{1F4D8}"),r(),o(3,"span"),l(4),r()()),a&2){let e=h(2);n(4),C(e.refPopover().data?.source)}}function qt(a,p){if(a&1&&(o(0,"div",114)(1,"span",116),l(2,"\u{1F4C5}"),r(),o(3,"span"),l(4),r()()),a&2){let e=h(2);n(4),C(e.refPopover().data?.year)}}function Ht(a,p){if(a&1&&(o(0,"div",114)(1,"span",116),l(2,"\u{1F517}"),r(),o(3,"a",117),l(4),d(5,"translate"),r()()),a&2){let e,t=h(2);n(3),_("href",(e=t.refPopover().data)==null?null:e.url,me),n(),m(" ",c(5,2,"ACADEMIC_OUTLINE.OPEN_SOURCE")," ")}}function $t(a,p){a&1&&(o(0,"div",115),l(1),d(2,"translate"),r()),a&2&&(n(),m(" ",c(2,1,"ACADEMIC_OUTLINE.REF_NOT_PARSED")," "))}function Ft(a,p){if(a&1&&(o(0,"div",111)(1,"div",112)(2,"div",113),l(3),r(),A(4,Gt,5,1,"div",114),A(5,Bt,5,1,"div",114),A(6,qt,5,1,"div",114),A(7,Ht,6,4,"div",114),A(8,$t,3,3,"div",115),r()()),a&2){let e=h();_e("left",e.refPopover().x,"px")("top",e.refPopover().y,"px"),n(3),m(" ",e.refPopover().data?.title||e.refPopover().data?.key," "),n(),I(e.refPopover().data?.authors?4:-1),n(),I(e.refPopover().data?.source?5:-1),n(),I(e.refPopover().data?.year?6:-1),n(),I(e.refPopover().data?.url?7:-1),n(),I(e.refPopover().data?.key&&!e.refPopover().data?.title?8:-1)}}function Vt(a,p){a&1&&(o(0,"div",120)(1,"span",121),l(2,"bookmark_border"),r(),o(3,"p"),l(4),d(5,"translate"),r()()),a&2&&(n(4),C(c(5,1,"ACADEMIC_OUTLINE.HISTORY.EMPTY")))}function zt(a,p){if(a&1&&(o(0,"span",130),l(1),r()),a&2){let e=h().$implicit;n(),C(e.citation_style.toUpperCase())}}function Kt(a,p){if(a&1){let e=K();o(0,"div",125),d(1,"translate"),y("click",function(){let i=L(e).$implicit,s=h(3);return M(s.loadFromHistory(i))}),o(2,"div",126)(3,"p",127),l(4),r(),o(5,"div",128)(6,"span",129),l(7),d(8,"translate"),r(),A(9,zt,2,1,"span",130),o(10,"span",131),l(11),d(12,"date"),r()()(),o(13,"div",132),y("click",function(i){return i.stopPropagation()}),o(14,"button",133),d(15,"translate"),y("click",function(){let i=L(e).$implicit,s=h(3);return M(s.copyHistoryItem(i))}),o(16,"span",62),w(17,"i",63),r()(),o(18,"button",134),d(19,"translate"),y("click",function(){let i=L(e).$implicit,s=h(3);return M(s.deleteHistoryItem(i.id))}),o(20,"span",62),w(21,"i",135),r()()()()}if(a&2){let e=p.$implicit;D("title",c(1,7,"ACADEMIC_OUTLINE.HISTORY.LOAD")),n(4),C(e.title),n(3),m(" ",c(8,9,"ACADEMIC_OUTLINE.HISTORY.MODE_"+e.mode.toUpperCase())," "),n(2),I(e.citation_style&&e.citation_style!=="none"?9:-1),n(2),C(oe(12,11,e.created_at,"dd/MM/yyyy")),n(3),D("title",c(15,14,"ACADEMIC_OUTLINE.HISTORY.COPY")),n(4),D("title",c(19,16,"ACADEMIC_OUTLINE.HISTORY.DELETE"))}}function Yt(a,p){if(a&1){let e=K();o(0,"div",124)(1,"button",136),y("click",function(){L(e);let i=h(3);return M(i.historyPage.set(i.historyPage()-1))}),l(2," \u2039 "),r(),o(3,"span",137),l(4),r(),o(5,"button",136),y("click",function(){L(e);let i=h(3);return M(i.historyPage.set(i.historyPage()+1))}),l(6," \u203A "),r()()}if(a&2){let e=h(3);n(),_("disabled",e.historyPage()===1),n(3),ve("",e.historyPage()," / ",e.historyTotalPages()),n(),_("disabled",e.historyPage()===e.historyTotalPages())}}function jt(a,p){if(a&1&&(o(0,"div",122),B(1,Kt,22,18,"div",123,gt),r(),A(3,Yt,7,4,"div",124)),a&2){let e=h(2);n(),q(e.paginatedHistory()),n(2),I(e.historyTotalPages()>1?3:-1)}}function Qt(a,p){if(a&1&&(o(0,"div",72)(1,"h3",118)(2,"span",119),l(3,"history"),r(),l(4),d(5,"translate"),r(),A(6,Vt,6,3,"div",120)(7,jt,4,1),r()),a&2){let e=h();n(4),m(" ",c(5,2,"ACADEMIC_OUTLINE.HISTORY.TITLE")," "),n(2),I(e.history().length===0?6:7)}}function Zt(a,p){if(a&1&&(o(0,"div",77)(1,"span",138),l(2),r(),o(3,"h3",139),l(4),d(5,"translate"),r(),o(6,"p",140),l(7),d(8,"translate"),r()()),a&2){let e=p.$implicit,t=h();n(2),C(t.featureIcons[e-1]),n(2),m(" ",c(5,3,"ACADEMIC_OUTLINE.FEATURES.F"+e+"_TITLE")," "),n(3),m(" ",c(8,5,"ACADEMIC_OUTLINE.FEATURES.F"+e+"_DESC")," ")}}function Xt(a,p){if(a&1){let e=K();o(0,"div",141)(1,"button",142),y("click",function(){let i=L(e).$implicit,s=h();return M(s.toggleFaq(i))}),o(2,"span"),l(3),d(4,"translate"),r(),o(5,"span",143),l(6),r()(),o(7,"div",144)(8,"p"),l(9),d(10,"translate"),r()()()}if(a&2){let e=p.$implicit,t=h();H("ao-faq-item--open",t.openFaqIndex===e),n(),_("id","ao-faq-btn-"+e),D("aria-expanded",t.openFaqIndex===e)("aria-controls","ao-faq-answer-"+e),n(2),C(c(4,10,"ACADEMIC_OUTLINE.FAQ.Q"+e)),n(3),C(t.openFaqIndex===e?"expand_less":"expand_more"),n(),_("id","ao-faq-answer-"+e),D("aria-labelledby","ao-faq-btn-"+e),n(2),C(c(10,12,"ACADEMIC_OUTLINE.FAQ.A"+e))}}var st,dt,ct,Ze,pt,mt,ut,ft,ht,gt,Xe,yi,Wt=se(()=>{Z();je();Te();ke();Je();We();nt();at();Le();Qe();tt();it();Z();je();Te();ke();st=["resultAnchor"],dt=()=>["citation-generator"],ct=()=>["ai-grammar"],Ze=()=>["academic"],pt=()=>["ai-homework"],mt=()=>["/plans"],ut=(a,p)=>({used:a,limit:p}),ft=(a,p)=>p.code,ht=(a,p)=>p.url,gt=(a,p)=>p.id;Xe=[{code:"fr",labelKey:"COMMON.LANGUAGES.FR"},{code:"en",labelKey:"COMMON.LANGUAGES.EN"},{code:"es",labelKey:"COMMON.LANGUAGES.ES"},{code:"de",labelKey:"COMMON.LANGUAGES.DE"},{code:"it",labelKey:"COMMON.LANGUAGES.IT"},{code:"pl",labelKey:"COMMON.LANGUAGES.PL"},{code:"pt",labelKey:"COMMON.LANGUAGES.PT"},{code:"nl",labelKey:"COMMON.LANGUAGES.NL"},{code:"ru",labelKey:"COMMON.LANGUAGES.RU"},{code:"zh",labelKey:"COMMON.LANGUAGES.ZH"},{code:"ja",labelKey:"COMMON.LANGUAGES.JA"},{code:"ko",labelKey:"COMMON.LANGUAGES.KO"},{code:"ar",labelKey:"COMMON.LANGUAGES.AR"},{code:"tr",labelKey:"COMMON.LANGUAGES.TR"}],yi=(()=>{class a{fb=N(Ke);api=N(re);i18n=N(Oe);seo=N(Pe);auth=N(Me);loginModal=N(De);langSub;resultAnchor;locales=Xe;loading=O(!1);exportingPdf=O(!1);error=O(null);quota=O(null);quotaExceeded=P(()=>{let e=this.quota();return e!==null&&!e.unlimited&&e.remaining<=0});featureItems=[1,2,3,4,5,6];featureIcons=["format_list_bulleted","format_quote","language","tune","edit_note","school"];faqItems=[1,2,3,4,5,6,7];openFaqIndex=null;toggleFaq(e){this.openFaqIndex=this.openFaqIndex===e?null:e}history=O([]);historyPage=O(1);savingEssay=O(!1);historyPerPage=5;paginatedHistory=P(()=>{let e=this.historyPage();return this.history().slice((e-1)*this.historyPerPage,e*this.historyPerPage)});historyTotalPages=P(()=>Math.max(1,Math.ceil(this.history().length/this.historyPerPage)));urlDraft=O("");sourceUrls=O([]);rawText=O("");editorHtml=O("");hasResult=P(()=>!!this.rawText().trim());refsByKey=O({});refPopover=O({open:!1,x:0,y:0,data:null});isPlanMode=P(()=>this.form.controls.mode.value==="outline");isFullDraftMode=P(()=>this.form.controls.mode.value==="full_draft");isRtl=P(()=>(this.form.controls.locale.value||"fr")==="ar");_supportedLocaleCodes=Xe.map(e=>e.code);_pickLocale(e){let t=(e||"").toLowerCase();return this._supportedLocaleCodes.includes(t)?t:"en"}form=this.fb.group({locale:this.fb.control(this._pickLocale(this.i18n.currentLang||this.i18n.getDefaultLang()||"en"),{validators:[V.required]}),title:this.fb.control("",{validators:[V.required,V.minLength(8)]}),mode:this.fb.control("outline",{validators:[V.required]}),words:this.fb.control(1600,{validators:[V.required]}),citationStyle:this.fb.control("apa7",{validators:[V.required]}),useOnlyMySources:this.fb.control(!1)});isFullDraft=()=>this.form.controls.mode.value==="full_draft";ngOnInit(){this.setSeo(),this.langSub=this.i18n.onLangChange.subscribe(({lang:e})=>{this.setSeo(),this.form.controls.locale.setValue(this._pickLocale(e))}),this.loadQuota(),this.loadHistory()}loadQuota(){this.auth.isLoggedIn()&&this.api.getOutlineQuota().subscribe({next:e=>this.quota.set(e),error:()=>{}})}loadHistory(){this.auth.isLoggedIn()&&this.api.getSavedEssays().subscribe({next:e=>{this.history.set(e),this.historyPage.set(1)},error:()=>{}})}saveEssay(){if(!this.hasResult()||this.savingEssay())return;this.savingEssay.set(!0);let e={title:this.form.controls.title.value,mode:this.form.controls.mode.value,citation_style:this.form.controls.citationStyle.value||null,locale:this.form.controls.locale.value||null,raw_text:this.rawText()};this.api.saveEssay(e).pipe(Q(()=>this.savingEssay.set(!1))).subscribe({next:()=>this.loadHistory(),error:()=>{}})}deleteHistoryItem(e){this.api.deleteEssay(e).subscribe({next:()=>this.loadHistory(),error:()=>{}})}copyHistoryItem(e){navigator.clipboard?.writeText(e.raw_text).catch(()=>{})}loadFromHistory(e){let t=this.extractKeysFromText(e.raw_text);this.rawText.set(e.raw_text),this.editorHtml.set(this.decorateCitationsAsHtml(e.raw_text,t)),this.error.set(""),requestAnimationFrame(()=>{let i=this.resultAnchor?.nativeElement;i&&i.scrollIntoView({behavior:"smooth",block:"start"})})}ngOnDestroy(){this.langSub?.unsubscribe()}setSeo(){let e=this.i18n.currentLang||"fr",t=this.i18n.instant("ACADEMIC_OUTLINE.SEO.TITLE"),i=this.i18n.instant("ACADEMIC_OUTLINE.SEO.DESCRIPTION");this.seo.setTitle(t),this.seo.setDescription(i),this.seo.setRobotsIndex(),this.seo.setCanonical(),this.seo.setOgBasics({siteName:"Textiaa",type:"website",image:`${F.appBaseUrl}/assets/og/og-image.jpg`}),this.seo.setHreflangsAuto(F.appBaseUrl,F.supportedLangs||["fr","en","pl","es","de","it","ar","pt","pt","tr"]),this.seo.setJsonLd({"@context":"https://schema.org","@type":"SoftwareApplication",name:t,applicationCategory:"EducationalApplication",operatingSystem:"Web",description:i,inLanguage:e,offers:{"@type":"Offer",price:"0",priceCurrency:"EUR",availability:"https://schema.org/OnlineOnly",category:"FreeTrial"},publisher:{"@type":"Organization",name:"Textiaa",url:F.appBaseUrl}})}constructor(){}canAddUrl(){let e=this.urlDraft();if(!e)return!1;try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch(t){return!1}}addUrl(){if(!this.canAddUrl())return;let e=this.urlDraft();this.sourceUrls().some(i=>i.url===e)||this.sourceUrls.set([...this.sourceUrls(),{url:e}]),this.urlDraft.set("")}removeUrl(e){let t=[...this.sourceUrls()];t.splice(e,1),this.sourceUrls.set(t)}ensureVerifiedEmailOrShowError(){return this.auth.isLoggedIn()?this.auth.emailVerified()?!0:(this.error.set(this.i18n.instant("UPLOAD.ERRORS.EMAIL_NOT_VERIFIED")),!1):(this.loginModal.open(),!1)}reset(){this.form.reset({locale:this.i18n.currentLang||"fr",title:"",mode:"outline",words:1600,citationStyle:"apa7",useOnlyMySources:!1}),this.sourceUrls.set([]),this.urlDraft.set(""),this.rawText.set(""),this.editorHtml.set(""),this.refsByKey.set({}
1),this.error.set(null),this.hideRefPopover()}loadingTimer=null;loadingStepIndex=O(0);loadingSteps=P(()=>[this.i18n.instant("ACADEMIC_OUTLINE.LOADING.STEP_1"),this.i18n.instant("ACADEMIC_OUTLINE.LOADING.STEP_2"),this.i18n.instant("ACADEMIC_OUTLINE.LOADING.STEP_3"),this.i18n.instant("ACADEMIC_OUTLINE.LOADING.STEP_4")]);startLoadingSteps(){this.loadingStepIndex.set(0),this.stopLoadingSteps(),this.loadingTimer=setInterval(()=>{let e=this.loadingSteps().length-1;this.loadingStepIndex.set(Math.min(e,this.loadingStepIndex()+1))},900)}stopLoadingSteps(){this.loadingTimer&&(clearInterval(this.loadingTimer),this.loadingTimer=null)}scrollToResultIfMobile(){if(typeof window>"u"||!window.matchMedia("(max-width: 1023px)").matches)return;let i=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";requestAnimationFrame(()=>{let s=this.resultAnchor?.nativeElement;if(!s)return;s.scrollIntoView({behavior:i,block:"start"});let u=window.scrollY-8;window.scrollTo({top:Math.max(0,u),behavior:i})})}extractKeysFromText(e){let t=new Set,i=/\[([A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2})\]/g,s;for(;(s=i.exec(e))!==null;)t.add(s[1]);return t}onGenerate(){if(this.form.invalid||this.loading()||!this.ensureVerifiedEmailOrShowError())return;this.error.set(null),this.loading.set(!0),this.startLoadingSteps(),this.hideRefPopover(),this.scrollToResultIfMobile();let e={title:this.form.controls.title.value,mode:this.form.controls.mode.value,words:this.form.controls.words.value,citation_style:this.form.controls.citationStyle.value,use_only_my_sources:this.form.controls.useOnlyMySources.value,source_urls:this.sourceUrls().map(t=>t.url),locale:this.form.controls.locale.value};this.api.generate(e).pipe(Q(()=>{this.loading.set(!1),this.stopLoadingSteps()})).subscribe({next:t=>{let i=(t.text??"").trim(),s=this.normalizeGeneratedText(i);this.loadQuota(),this.rawText.set(s);let u=this.parseReferencesFromText(s);this.refsByKey.set(u);let g=this.extractKeysFromText(s),f=new Set([...Object.keys(u),...g]);this.editorHtml.set(this.decorateCitationsAsHtml(s,f)),this.scrollToResultIfMobile()},error:t=>{let i=t?.error?.detail||t?.error?.message;typeof i=="string"&&i.trim()?this.error.set(i):this.error.set(this.i18n.instant("ACADEMIC_OUTLINE.ERROR_GENERIC"))}})}copyToClipboard(){return de(this,null,function*(){try{yield navigator.clipboard.writeText(this.rawText())}catch(e){}})}onEditorClick(e){let t=e.target;if(!t)return;let i=window.getSelection?.();if(i&&!i.isCollapsed)return;let s=t.closest?.("a");if(s?.href){e.preventDefault(),e.stopPropagation(),window.open(s.href,"_blank","noopener,noreferrer");return}let u=t.closest?.(".cite");if(!u)return;let g=u.getAttribute("data-key")||"";if(!g)return;let f=this.refsByKey()[g];f?.url&&window.open(f.url,"_blank","noopener,noreferrer")}onEditorInput(e){let t=e.target;if(!t)return;let i=(t.innerText??"").replace(/\u00A0/g," ");this.rawText.set(i)}onEditorMouseMove(e){let t=e.target;if(!t)return;let i=t.closest?.(".cite");if(!i)return;let s=i.getAttribute("data-key")||"";if(!s)return;let u=this.refsByKey()[s]??{key:s};this.refPopover.set({open:!0,x:e.clientX,y:e.clientY,data:u})}hideRefPopover(){this.refPopover.set({open:!1,x:0,y:0,data:null})}normalizeGeneratedText(e){let t=(e??"").replace(/\r\n/g,`
2`).trim();if(!t)return"";let i=/(\s)(?=(?:[IVXLCDM]{1,8}\.\s+|[IVXLCDM]{1,8}\s*(?:[.)-])\s+|[A-ZÀ-ÖØ-Ý]\.\s+|\d+(?:\.\d+)*[.)-]\s+|[一二三四五六七八九十]+[、..]\s+))/g;t=t.replace(i,`
3
4`),t=t.replace(/([^\n])\s+([A-ZÀ-ÖØ-Ý]\.)\s+/g,`$1
5
6$2 `),t=t.replace(/\n{3,}/g,`
7
8`).trim(),t=t.replace(/^([IVXLCDM]{1,8}\.)\s*\n(?![IVXLCDM]{1,8}[.)\s–—]|[A-ZÀ-ÖØ-Ÿ][.)\s–—]|[0-9])/gim,"$1 "),t=t.replace(/^(?<head>(?:[IVXLCDM]{1,8}\.)\s+.{8,120}?)(\s+)(?=[A-ZÀ-ÖØ-Ý].{30,})/gm,`$<head>
9`),t=t.replace(/^(?<head>[A-ZÀ-ÖØ-Ý]\.)\s+(?<title>.{8,120}?)(\s+)(?=(?:Résumé:|[A-ZÀ-ÖØ-Ý].{30,}))/gm,`$<head> $<title>
10`),t=t.replace(/([.!?])\s+(Introduction|Conclusion|Perspectives?|R[eé]sum[eé]|Abstract|Discussion|Analyse|Analysis|Contexte|Backgroun
10d|Résultats?|Results?|Méthodes?|Methods?)\b/g,(u,g,f)=>`${g}
11
12${f}`);let s="References|R\xE9f\xE9rences|Referencias|Bibliography|Bibliographie|Literaturverzeichnis|Bibliograf\xEDa|\u0627\u0644\u0645\u0631\u0627\u062C\u0639|\u53C2\u8003\u6587\u732E|\u0421\u043F\u0438\u0441\u043E\u043A \u043B\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044B|Riferimenti|Literatura|Kaynak\xE7a";return t=t.replace(new RegExp(`([.!?;])\\s+(${s})\\s*[-\u2013\u2014]?\\s*(?=\\[)`,"gi"),(u,g,f)=>`${g}
13
14${f}
15`),t=t.replace(new RegExp(`(\\n|^)\\s*(${s})\\s*[-\u2013\u2014]?\\s*(?=\\[)`,"gi"),(u,g,f)=>`${g}
16${f}
17`),t=t.replace(new RegExp(`(\\n(?:${s})\\n)([^\\n]+)`,"gi"),(u,g,f)=>{let b=String(f).replace(/\s*[-–—]?\s*(?=\[[A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2}\])/g,`
18`);return g+b.trim()}),t}cleanRefLine(e){return(e??"").trim().replace(/^[-•*]\s+/,"").replace(/^\[\d+\]\s*/,"").replace(/^\d+\s*([.)-])\s*/,"").trim()}extractUrlOrDoi(e){let t=e.match(/https?:\/\/\S+/);if(t)return t[0].replace(/[),.;]+$/g,"");let i=e.match(/(?:DOI:\s*)?(10\.\d{4,9}\/[-._;()/:A-Z0-9]+)/i);if(i)return`https://doi.org/${i[1]}`}extractLeadingKey(e){return(e??"").trim().match(/^([A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2})\b/)?.[1]}extractExistingRefKey(e){return(e??"").match(/\[([A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2})\]/)?.[1]}stripInlineCitations(e){return(e??"").replace(/\[[A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2}\]/g,"").replace(/\s{2,}/g," ").trim()}getReferencesTitleByLocale(e){switch(e){case"fr":return"R\xE9f\xE9rences";case"zh":return"\u53C2\u8003\u6587\u732E";case"ru":return"\u0421\u043F\u0438\u0441\u043E\u043A \u043B\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044B";case"ar":return"\u0627\u0644\u0645\u0631\u0627\u062C\u0639";case"es":return"Referencias";case"de":return"Literaturverzeichnis";case"it":return"Riferimenti";case"pl":return"Bibliografia";case"pt":return"Refer\xEAncias";case"nl":return"Referenties";case"ja":return"\u53C2\u8003\u6587\u732E";case"ko":return"\uCC38\uACE0\uBB38\uD5CC";default:return"References"}}isReferencesHeadingLine(e){let i=(e||"").trim().replace(/^[•*\-–—]+\s*/,"").replace(/[::\-–—]\s*$/,"").trim().toLowerCase();return["references","r\xE9f\xE9rences","bibliography","bibliographie","bibliograf\xEDa","riferimenti","literatura","kaynak\xE7a","\u53C2\u8003\u6587\u732E","\u6587\u732E","\u0441\u043F\u0438\u0441\u043E\u043A \u043B\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044B","\u043B\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430","\u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438","\u0627\u0644\u0645\u0631\u0627\u062C\u0639","\u0627\u0644\u0645\u0635\u0627\u062F\u0631","\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0631\u0627\u062C\u0639","\uCC38\uACE0\uBB38\uD5CC"].map(u=>u.toLowerCase()).includes(i)}buildKeyFromSurnameYear(e,t){let i=(e??"").replace(/[^A-Za-zÀ-ÖØ-öø-ÿ]/g,""),s=i?i.slice(0,3):"Ref",u=s.charAt(0).toUpperCase()+s.slice(1).toLowerCase(),g=t?String(t).slice(-2):"00";return`${u}${g}`}parseReferencesFromText(e){let t={},i=e.replace(/\r\n/g,`
19`).split(`
20`),s=i.findIndex(u=>this.isReferencesHeadingLine(u));if(s===-1)return t;for(let u=s+1;u<i.length;u++){let g=(i[u]??"").trim();if(!g)continue;let f=g.split(/(?=\[[A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2}\])/g).map(b=>b.trim()).filter(Boolean);for(let b of f){let x=this.cleanRefLine(b);if(!x)continue;let E=x.match(/\b(19|20)\d{2}\b/),S=E?Number(E[0]):void 0,v=this.extractUrlOrDoi(x),T=x,k=x.indexOf('"');k!==-1&&(T=x.slice(0,k).trim());let z=T.indexOf(".");z!==-1&&(T=T.slice(0,z).trim());let W=((T.split(",")[0]?.trim()??"").split(/\s+/).slice(-1)[0]??"").trim(),J,U=x.match(/"([^"]{6,300})"/);U&&(J=U[1].trim());let Y;if(U){let ee=x.slice(x.indexOf(U[0])+U[0].length).split(",")[0]?.trim();ee&&ee.length<120&&(Y=ee)}let le=this.extractExistingRefKey(x)??this.buildKeyFromSurnameYear(W,S);t[le]={key:le,title:J,authors:T||void 0,year:S,source:Y,url:v}}}return t}escapeHtml(e){return(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}processInline(e,t){if(!e)return"";let i=(e??"").replace(/\u00A0/g," "),s=[],u=/(https?:\/\/[^\s<]+|www\.[^\s<]+|\bDOI:\s*10\.\d{4,9}\/[-._;()/:A-Z0-9]+|\b10\.\d{4,9}\/[-._;()/:A-Z0-9]+)/gi,g=0,f;for(;(f=u.exec(i))!==null;){let E=f.index,S=f[0];E>g&&s.push(this.escapeHtml(i.slice(g,E)));let v=S.replace(/[),.;]+$/g,""),T=v.match(/^DOI:\s*(10\.\d{4,9}\/.+)$/i);if(T){let k=T[1],z=`https://doi.org/${k}`;s.push(`<a class="doc-link" href="${z}" target="_blank" rel="noopener noreferrer">DOI: ${this.escapeHtml(k)}</a>`)}else if(/^10\.\d{4,9}\//i.test(v)){let k=`https://doi.org/${v}`;s.push(`<a class="doc-link" href="${k}" target="_blank" rel="noopener noreferrer">${this.escapeHtml(v)}</a>`)}else if(/^www\./i.test(v)){let k=`https://${v}`;s.push(`<a class="doc-link" href="${k}" target="_blank" rel="noopener noreferrer">${this.escapeHtml(v)}</a>`)}else s.push(`<a class="doc-link" href="${v}" target="_blank" rel="noopener noreferrer">${this.escapeHtml(v)}</a>`);g=E+S.length}g<i.length&&s.push(this.escapeHtml(i.slice(g)));let b=s.join(""),x=[];return b=b.replace(/<a\b[^>]*>.*?<\/a>/gis,E=>(x.push(E),`__AO_ANCHOR_${x.length-1}__`)),b=b.replace(/\(([A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2})\)/g,(E,S)=>{let v=String(S);return t.has(v)?`<span class="cite" data-key="${v}" role="link" tabindex="0">[${v}]</span>`:`(${v})`}
20),b=b.replace(/\[([A-Za-zÀ-ÖØ-öø-ÿ]{2,10}\d{2})\]/g,(E,S)=>{let v=String(S);return t.has(v)?`<span class="cite" data-key="${v}" role="link" tabindex="0">[${v}]</span>`:`[${v}]`}),b=b.replace(/__AO_ANCHOR_(\d+)__/g,(E,S)=>x[Number(S)]??""),b}splitIfHeadingContainsBody(e){let t=(e||"").trim();if(!t)return{heading:"",rest:""};let i=t.toLowerCase().indexOf("r\xE9sum\xE9:");if(i>0)return{heading:t.slice(0,i).trim(),rest:t.slice(i).trim()};let s=140;if(t.length<=s)return{heading:t,rest:""};let u=t.lastIndexOf(" ",s);return u<40?{heading:t,rest:""}:{heading:t.slice(0,u).trim(),rest:t.slice(u).trim()}}renderBodyAsHtml(e,t){if(!e)return"";let i=e.split(/\n{2,}/g).map(u=>u.trim()).filter(Boolean),s=[];for(let u of i){let g=u.split(`
21`).map(x=>(x??"").replace(/\u00A0/g," ").trim()).filter(Boolean),f=[],b=()=>{let x=f.join(" ").trim();x&&s.push(`<p class="doc-p">${this.processInline(x,t)}</p>`),f=[]};for(let x of g){let E=x.replace(/^[•*\-–—]+\s*/,"").trim();if(!E)continue;let S=/^(?:[IVXLCDM]+)\s*(?:[.)]|[-–—])\s+.+/i.test(E),v=E.match(/^(\d+(?:\.\d+)*)(?:[.)]|[-–—])\s+(.+)/),T=!!v,k=v?v[1].split(".").length:0,z=/^(?:[IVXLCDM]+)\.\s*$/i.test(E),X=new RegExp("^\\p{L}\\s*(?:[.)]|[-\u2013\u2014])\\s+.+","u").test(E),W=/^[一二三四五六七八九十]+[、..]\s*.+/.test(E);if(S||z||T||X||W){b();let{heading:U,rest:Y}=this.splitIfHeadingContainsBody(E),j=this.processInline(U,t);T&&k>=2?s.push(`<h3 class="doc-h3">${j}</h3>`):X?s.push(`<h3 class="doc-h3">${j}</h3>`):s.push(`<h2 class="doc-h2">${j}</h2>`),Y&&s.push(`<p class="doc-p">${this.processInline(Y,t)}</p>`);continue}f.push(E)}b()}return s.join(`
22`)}renderReferencesAsHtml(e,t){let s=e.map(f=>this.cleanRefLine(f)).filter(Boolean).sort((f,b)=>{let x=this.extractExistingRefKey(f)||this.extractLeadingKey(f)||"",E=this.extractExistingRefKey(b)||this.extractLeadingKey(b)||"";return x.localeCompare(E)}).map(f=>{let b=this.extractExistingRefKey(f)||this.extractLeadingKey(f),x=f.match(/\b(19|20)\d{2}\b/),E=x?Number(x[0]):void 0,v=((f.split(",")[0]??"").trim().split(/\s+/).slice(-1)[0]??"").trim(),T=b??this.buildKeyFromSurnameYear(v,E),k=this.stripInlineCitations(f);return`
23<li class="ref-item">
24  <span class="cite" data-key="${T}" role="link" tabindex="0">[${T}]</span>
25  <span class="ref-text"> ${this.processInline(k,t)}</span>
26</li>
27`.trim()}).join(`
28`),u=this.form.controls.locale.value||"fr";return`
29<h2 class="doc-h2 doc-refs-title">${this.getReferencesTitleByLocale(u)}</h2>
30<ul class="refs-list">
31  ${s}
32</ul>
33`}decorateCitationsAsHtml(e,t){let s=(e??"").replace(/\r\n/g,`
34`).split(`
35`),u=s.findIndex(E=>this.isReferencesHeadingLine(E)),g=u===-1?s:s.slice(0,u),f=u===-1?[]:s.slice(u+1),b=this.renderBodyAsHtml(g.join(`
36`).trim(),t),x=f.length?this.renderReferencesAsHtml(f,t):"";return`${b}${x}`}exportPdf(){if(!this.hasResult()||this.loading()||this.exportingPdf()||!this.ensureVerifiedEmailOrShowError())return;this.exportingPdf.set(!0);let e={title:this.form.controls.title.value||"Document",locale:this.form.controls.locale.value||this.i18n.currentLang||"fr",text:this.rawText()};this.api.exportOutlineGeneratorPdf(e).pipe(Q(()=>this.exportingPdf.set(!1))).subscribe({next:t=>{t?.url&&window.open(t.url,"_blank","noopener,noreferrer")},error:()=>{}})}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=ue({type:a,selectors:[["app-academic-outline-generator-page"]],viewQuery:function(t,i){if(t&1&&he(st,5),t&2){let s;ge(s=xe())&&(i.resultAnchor=s.first)}},features:[Ee([re])],decls:235,vars:195,consts:[["resultAnchor",""],[1,"section","page","ao-root"],[1,"container"],[1,"hero-head"],[1,"title","is-2","mb-2","gradient-1"],[1,"subtitle","is-5","has-text-grey"],[1,"columns","is-variable","is-6","mt-4","outline-layout"],[1,"column","is-5","left-panel"],[1,"card"],[1,"card-content"],[1,"level","mb-3"],[1,"level-left"],[1,"title","is-5","mb-0"],[3,"ngSubmit","formGroup"],[3,"disabled"],[1,"field"],[1,"label"],[1,"control"],[1,"select","is-fullwidth"],["formControlName","locale"],[3,"ngValue"],["type","text","formControlName","title",1,"input",3,"placeholder"],[1,"help","is-danger"],["formControlName","mode"],["value","outline"],["value","outline_summary"],["value","full_draft"],[1,"help"],[3,"innerHTML"],["formControlName","words"],["formControlName","citationStyle"],["value","none"],["value","mla9"],["value","apa7"],["value","harvard"],["value","oxford"],["value","chicago"],["value","ieee"],["value","vancouver"],["value","ama11"],[1,"box","is-shadowless","sources-box"],[1,"mb-2","has-text-grey"],[1,"field","has-addons"],[1,"control","is-expanded"],["type","url",1,"input",3,"input","placeholder","value"],["type","button",1,"button","is-light",3,"click","disabled"],[1,"mt-3"],[1,"my-3"],[1,"checkbox"],["type","checkbox","formControlName","useOnlyMySources"],[1,"help","has-text-grey"],[1,"field","is-grouped","is-grouped-right","mt-4"],["type","button",1,"button",3,"click","disabled"],["type","submit",1,"button","is-link",3,"disabled"],["role","status",1,"quota-badge","mt-3",3,"quota-badge--danger"],[1,"help","mt-2","has-text-grey"],[1,"column","is-7","right-panel"],[1,"card","editor-card"],[1,"card-content","editor-card-content"],[1,"level"],[1,"level-right"],["type","button",1,"button","is-light","is-small",3,"click","disabled"],[1,"icon"],["aria-hidden","true",1,"pi","pi-copy"],["aria-hidden","true",1,"pi","pi-file-pdf"],[1,"material-icons",2,"font-size","1.1rem"],[1,"editor-shell"],[1,"empty-state"],[1,"notification","is-danger","is-light"],[1,"editor-overlay"],["spellcheck","true",1,"word-editor",3,"editor-disabled","is-rtl","innerHTML"],[1,"ref-popover",3,"left","top"],[1,"container","ao-history-container"],["aria-labelledby","ao-seo-heading",1,"ao-seo-section"],[1,"container","ao-seo-container"],["id","ao-seo-heading",1,"ao-seo-title"],[1,"ao-features-grid"],[1,"ao-feature-card"],[1,"ao-related-section"],[1,"container","ao-related-container"],[1,"ao-related-title"],[1,"ao-related-links"],[1,"ao-related-link",3,"routerLink"],[1,"material-icons"],["aria-labelledby","ao-faq-heading",1,"ao-faq-section"],[1,"container","ao-faq-container"],["id","ao-faq-heading",1,"ao-faq-title"],[1,"ao-faq-list"],[1,"ao-faq-item",3,"ao-faq-item--open"],[1,"tags"],[1,"tag","is-info","is-light"],["type","button",1,"delete","is-small","ml-2",3,"click"],["role","status",1,"quota-badge","mt-3"],[1,"material-icons","quota-icon"],[1,"quota-upgrade-link",3,"routerLink"],[1,"has-text-grey"],[1,"editor-overlay-inner"],[1,"ao-spinner"],["viewBox","0 0 44 44","aria-hidden","true",1,"ao-spinner-svg"],["cx","22","cy","22","r","18","fill","none","stroke-width","3.5",1,"ao-spinner-track"],["cx","22","cy","22","r","18","fill","none","stroke-width","3.5","stroke-linecap","round",1,"ao-spinner-arc"],[1,"ao-steps"],[1,"ao-step",3,"ao-step--done","ao-step--active","ao-step--pending"],[1,"ao-step"],[1,"ao-step-bullet"],["width","16","height","16","viewBox","0 0 16 16","fill","none","aria-hidden","true"],[1,"ao-dot","ao-dot--active"],[1,"ao-dot","ao-dot--idle"],["cx","8","cy","8","r","8","fill","#22c55e"],["d","M5 8.5l2 2 4-4","stroke","#fff","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round"],["spellcheck","true",1,"word-editor",3,"input","mousemove","click","mouseleave","innerHTML"],[1,"ref-popover"],[1,"ref-popover-card"],[1,"ref-popover-title"],[1,"ref-popover-row"],[1,"ref-popover-muted"],[1,"ref-icon"],["target","_blank","rel","noopener",3,"href"],[1,"ao-history-title"],[1,"material-icons","ao-history-title-icon"],[1,"ao-history-empty"],[1,"material-icons","ao-history-empty-icon"],[1,"ao-history-list"],[1,"ao-history-card",2,"cursor","pointer"],[1,"ao-history-pagination"],[1,"ao-history-card",2,"cursor","pointer",3,"click"],[1,"ao-history-card-body"],[1,"ao-history-card-topic"],[1,"ao-history-card-meta"],[1,"tag","is-light","ao-history-mode-tag"],[1,"tag","is-light"],[1,"ao-history-date"],[1,"ao-history-card-actions",3,"click"],["type","button",1,"button","is-light","is-small",3,"click"],["type","button",1,"button","is-danger","is-light","is-small",3,"click"],["aria-hidden","true",1,"pi","pi-trash"],[1,"button","is-small","is-light",3,"click","disabled"],[1,"ao-history-page-info"],[1,"material-icons","ao-feature-icon"],[1,"ao-feature-title"],[1,"ao-feature-desc"],[1,"ao-faq-item"],[1,"ao-faq-question",3,"click","id"],[1,"material-icons","ao-faq-chevron"],["role","regi
36on",1,"ao-faq-answer",3,"id"]],template:function(t,i){t&1&&(o(0,"section",1)(1,"div",2)(2,"div",3)(3,"h1",4),l(4),d(5,"translate"),r(),o(6,"p",5),l(7),d(8,"translate"),r()(),o(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"div",11)(15,"h2",12),l(16),d(17,"translate"),r()()(),o(18,"form",13),y("ngSubmit",function(){return i.onGenerate()}),o(19,"fieldset",14)(20,"div",15)(21,"label",16),l(22),d(23,"translate"),r(),o(24,"div",17)(25,"div",18)(26,"select",19),B(27,xt,3,4,"option",20,ft),r(),R(),r()()(),o(29,"div",15)(30,"label",16),l(31),d(32,"translate"),r(),o(33,"div",17),w(34,"input",21),d(35,"translate"),R(),r(),A(36,_t,3,3,"p",22),r(),o(37,"div",15)(38,"label",16),l(39),d(40,"translate"),r(),o(41,"div",17)(42,"div",18)(43,"select",23)(44,"option",24),l(45),d(46,"translate"),r(),o(47,"option",25),l(48),d(49,"translate"),r(),o(50,"option",26),l(51),d(52,"translate"),r()(),R(),r()(),o(53,"p",27),w(54,"span",28),d(55,"translate"),r()(),o(56,"div",15)(57,"label",16),l(58),d(59,"translate"),r(),o(60,"div",17)(61,"div",18)(62,"select",29)(63,"option",20),l(64),d(65,"translate"),r(),o(66,"option",20),l(67),d(68,"translate"),r(),o(69,"option",20),l(70),d(71,"translate"),r()(),R(),r()(),o(72,"p",27),A(73,vt,2,3)(74,Et,2,3),r()(),o(75,"div",15)(76,"label",16),l(77),d(78,"translate"),r(),o(79,"div",17)(80,"div",18)(81,"select",30)(82,"option",31),l(83),d(84,"translate"),r(),o(85,"option",32),l(86),d(87,"translate"),r(),o(88,"option",33),l(89),d(90,"translate"),r(),o(91,"option",34),l(92),d(93,"translate"),r(),o(94,"option",35),l(95),d(96,"translate"),r(),o(97,"option",36),l(98),d(99,"translate"),r(),o(100,"option",37),l(101),d(102,"translate"),r(),o(103,"option",38),l(104),d(105,"translate"),r(),o(106,"option",39),l(107),d(108,"translate"),r()(),R(),r()(),A(109,Ct,3,3,"p",27),r(),o(110,"div",15)(111,"label",16),l(112),d(113,"translate"),r(),o(114,"div",40)(115,"p",41),l(116),d(117,"translate"),r(),o(118,"div",42)(119,"div",43)(120,"input",44),d(121,"translate"),y("input",function(u){return i.urlDraft.set((u.target.value||"").trim())}),r()(),o(122,"div",17)(123,"button",45),y("click",function(){return i.addUrl()}),l(124),d(125,"translate"),r()()(),A(126,At,4,0,"div",46),w(127,"hr",47),o(128,"div",15)(129,"label",48),w(130,"input",49),R(),l(131),d(132,"translate"),r(),o(133,"p",50),l(134),d(135,"translate"),r()()()()(),o(136,"div",51)(137,"div",17)(138,"button",52),y("click",function(){return i.reset()}),l(139),d(140,"translate"),r()(),o(141,"div",17)(142,"button",53),A(143,It,3,3,"span")(144,yt,3,3,"span"),r()()(),A(145,wt,7,4,"div",54),o(146,"p",55),l(147),d(148,"translate"),r()()()()(),o(149,"div",56),w(150,"div",null,0),o(152,"div",57)(153,"div",58)(154,"div",59)(155,"div",11)(156,"h2",12),l(157),d(158,"translate"),r()(),o(159,"div",60)(160,"button",61),d(161,"translate"),d(162,"translate"),y("click",function(){return i.copyToClipboard()}),o(163,"span",62),w(164,"i",63),r()(),o(165,"button",61),d(166,"translate"),d(167,"translate"),y("click",function(){return i.exportPdf()}),o(168,"span",62),w(169,"i",64),r()(),o(170,"button",61),d(171,"translate"),d(172,"translate"),y("click",function(){return i.saveEssay()}),o(173,"span",62)(174,"span",65),l(175,"bookmark_add"),r()()()()(),o(176,"div",66),A(177,kt,4,3,"div",67),A(178,Lt,2,1,"div",68),A(179,Ut,9,0,"div",69),A(180,Rt,2,11,"div",70),r(),A(181,Ft,9,10,"div",71),r()()()()(),A(182,Qt,8,4,"div",72),r(),o(183,"section",73)(184,"div",74)(185,"h2",75),l(186),d(187,"translate"),r(),o(188,"div",76),B(189,Zt,9,7,"div",77,ae),r()()(),o(191,"section",78)(192,"div",79)(193,"h3",80),l(194),d(195,"translate"),r(),o(196,"div",81)(197,"a",82),d(198,"langLink"),o(199,"span",83),l(200,"format_quote"),r(),l(201),d(202,"translate"),r(),o(203,"a",82),d(204,"langLink"),o(205,"span",83),l(206,"spellcheck"),r(),l(207),d(208,"translate"),r(),o(209,"a",82),d(210,"langLink"),o(211,"span",83),l(212,"menu_book"),r(),l(213),d(214,"translate"),r(),o(215,"a",82),d(216,"langLink"),o(217,"span",83),l(218,"library_books"),r(),l(219),d(220,"translate"),r(),o(221,"a",82),d(222,"langLink"),o(223,"span",83),l(224,"assignment"),r(),l(225),d(226,"translate"),r()()()(),o(227,"section",84)(228,"div",85)(229,"h2",8
366),l(230),d(231,"translate"),r(),o(232,"div",87),B(233,Xt,11,14,"div",88,ae),r()()()),t&2&&(n(4),m(" ",c(5,84,"ACADEMIC_OUTLINE.PAGE_TITLE")," "),n(3),m(" ",c(8,86,"ACADEMIC_OUTLINE.PAGE_SUBTITLE")," "),n(9),m(" ",c(17,88,"ACADEMIC_OUTLINE.YOUR_REQUEST")," "),n(2),_("formGroup",i.form),n(),_("disabled",i.loading()),n(3),C(c(23,90,"ACADEMIC_OUTLINE.DOC_LANGUAGE")),n(4),G(),n(),q(i.locales),n(4),C(c(32,92,"ACADEMIC_OUTLINE.TOPIC_TITLE")),n(3),_("placeholder",c(35,94,"ACADEMIC_OUTLINE.TOPIC_PLACEHOLDER")),G(),n(2),I(i.form.controls.title.touched&&i.form.controls.title.invalid?36:-1),n(3),C(c(40,96,"ACADEMIC_OUTLINE.OUTPUT")),n(4),G(),n(2),m(" ",c(46,98,"ACADEMIC_OUTLINE.MODES.OUTLINE")," "),n(3),m(" ",c(49,100,"ACADEMIC_OUTLINE.MODES.OUTLINE_SUMMARY")," "),n(3),m(" ",c(52,102,"ACADEMIC_OUTLINE.MODES.FULL_DRAFT")," "),n(3),_("innerHTML",c(55,104,"ACADEMIC_OUTLINE.MODE_HELP"),ne),n(4),C(c(59,106,"ACADEMIC_OUTLINE.TARGET_LENGTH")),n(4),G(),n(),_("ngValue",600),n(),m(" ",c(65,108,"ACADEMIC_OUTLINE.LENGTH.SHORT")," "),n(2),_("ngValue",1600),n(),m(" ",c(68,110,"ACADEMIC_OUTLINE.LENGTH.DETAILED")," "),n(2),_("ngValue",2200),n(),m(" ",c(71,112,"ACADEMIC_OUTLINE.LENGTH.VERY_DETAILED")," "),n(3),I(i.form.controls.mode.value==="full_draft"?73:74),n(4),C(c(78,114,"ACADEMIC_OUTLINE.CITATION_STYLE")),n(4),G(),n(2),m(" ",c(84,116,"ACADEMIC_OUTLINE.CITATION_STYLES.NONE")," "),n(3),m(" ",c(87,118,"ACADEMIC_OUTLINE.CITATION_STYLES.MLA9")," "),n(3),m(" ",c(90,120,"ACADEMIC_OUTLINE.CITATION_STYLES.APA7")," "),n(3),m(" ",c(93,122,"ACADEMIC_OUTLINE.CITATION_STYLES.HARVARD")," "),n(3),m(" ",c(96,124,"ACADEMIC_OUTLINE.CITATION_STYLES.OXFORD")," "),n(3),m(" ",c(99,126,"ACADEMIC_OUTLINE.CITATION_STYLES.CHICAGO")," "),n(3),m(" ",c(102,128,"ACADEMIC_OUTLINE.CITATION_STYLES.IEEE")," "),n(3),m(" ",c(105,130,"ACADEMIC_OUTLINE.CITATION_STYLES.VANCOUVER")," "),n(3),m(" ",c(108,132,"ACADEMIC_OUTLINE.CITATION_STYLES.AMA11")," "),n(2),I(i.isFullDraft()?109:-1),n(3),C(c(113,134,"ACADEMIC_OUTLINE.SOURCES_OPTIONAL")),n(4),m(" ",c(117,136,"ACADEMIC_OUTLINE.SOURCES_HELP")," "),n(4),_("placeholder",c(121,138,"ACADEMIC_OUTLINE.SOURCES_URL_PLACEHOLDER"))("value",i.urlDraft()),n(3),_("disabled",!i.canAddUrl()),n(),m(" ",c(125,140,"ACADEMIC_OUTLINE.ADD")," "),n(2),I(i.sourceUrls().length>0?126:-1),n(4),G(),n(),m(" ",c(132,142,"ACADEMIC_OUTLINE.USE_ONLY_MY_SOURCES")," "),n(3),m(" ",c(135,144,"ACADEMIC_OUTLINE.USE_ONLY_MY_SOURCES_HELP")," "),n(4),_("disabled",i.loading()),n(),m(" ",c(140,146,"ACADEMIC_OUTLINE.RESET")," "),n(3),_("disabled",i.form.invalid||i.loading()||i.quotaExceeded()),n(),I(i.loading()?144:143),n(2),I(i.quota()?145:-1),n(2),m(" ",c(148,148,"ACADEMIC_OUTLINE.EDU_NOTE")," "),n(2),H("is-rtl",i.isRtl()),n(8),C(c(158,150,"ACADEMIC_OUTLINE.RESULT")),n(3),_("disabled",!i.hasResult()),D("aria-label",c(161,152,"ACADEMIC_OUTLINE.COPY"))("title",c(162,154,"ACADEMIC_OUTLINE.COPY")),n(5),_("disabled",!i.hasResult()||i.loading()),D("aria-label",c(166,156,"ACADEMIC_OUTLINE.EXPORT_PDF"))("title",c(167,158,"ACADEMIC_OUTLINE.EXPORT_PDF")),n(5),_("disabled",!i.hasResult()||i.loading()||i.savingEssay()),D("aria-label",c(171,160,"ACADEMIC_OUTLINE.HISTORY.SAVE"))("title",c(172,162,"ACADEMIC_OUTLINE.HISTORY.SAVE")),n(6),H("is-rtl",i.isRtl())("ao-has-result",i.hasResult()),D("dir",i.isRtl()?"rtl":"ltr"),n(),I(!i.hasResult()&&!i.loading()?177:-1),n(),I(i.error()?178:-1),n(),I(i.loading()?179:-1),n(),I(i.hasResult()?180:-1),n(),I(i.refPopover().open?181:-1),n(),I(i.auth.isLoggedIn()?182:-1),n(4),m(" ",c(187,164,"ACADEMIC_OUTLINE.FEATURES.TITLE")," "),n(3),q(i.featureItems),n(5),C(c(195,166,"ACADEMIC_OUTLINE.RELATED.TITLE")),n(3),_("routerLink",c(198,168,$(190,dt))),n(4),m(" ",c(202,170,"ACADEMIC_OUTLINE.RELATED.CITATIONS")," "),n(2),_("routerLink",c(204,172,$(191,ct))),n(4),m(" ",c(208,174,"ACADEMIC_OUTLINE.RELATED.GRAMMAR")," "),n(2),_("routerLink",c(210,176,$(192,Ze))),n(4),m(" ",c(214,178,"ACADEMIC_OUTLINE.RELATED.THESIS")," "),n(2),_("routerLink",c(216,180,$(193,Ze))),n(4),m(" ",c(220,182,"ACADEMIC_OUTLINE.RELATED.MEMOIRE")," "),n(2),_("routerLink",c(222,184,$(194,pt))),n(4),m(" ",c(226,186,"ACADEMIC_OUTLINE.RELATED.HOMEWORK")," "),n(5),m(" ",c(231,188,"ACADEMIC_OUTLINE.FAQ.TITLE")," "),n(3),q(i.faqItems))},dependencies:[Ye,qe,Ve,ze,Re,Ue,Fe,Ge,Be,$e,He,we,ye,Ie,Se,Ne,be],styles:[`@charset "UTF-8";.ao-root{--ao-surface: #ffffff;--ao-surface-2: #fafafa;--ao-text: #111827;--ao-muted: #6b7280;--ao-border: rgba(17, 24, 39, .12);--ao-border-2: rgba(17, 24, 39, .18);--ao-shadow: 0 10px 28px rgba(0, 0, 0, .12);--ao-overlay: rgba(255, 255, 255, .72);--ao-link: #485fc7}.dark .ao-root,.theme-dark .ao-root,[data-theme=dark] .ao-root{--ao-surface: #0b0b0b;--ao-surface-2: #0f0f0f;--ao-text: #e5e7eb;--ao-muted: #9ca3af;--ao-border: rgba(255, 255, 255, .1);--ao-border-2: rgba(255, 255, 255, .16);--ao-shadow: 0 14px 40px rgba(0, 0, 0, .45);--ao-overlay: rgba(0, 0, 0, .62);--ao-link: #93c5fd}.ao-root .word-editor a,.ao-root .word-editor a.doc-link{color:var(--ao-link, #485fc7)!important;text-decoration:underline;text-underline-offset:2px}.ao-root .ref-item .cite{margin-right:8px}.ao-root .ref-item .ref-text{display:inline}:host-context(.dark) .ao-spinner-arc,:host-context(.theme-dark) .ao-spinner-arc,:host-context([data-theme=dark]) .ao-spinner-arc{stroke:#93c5fd}:host-context(.dark) .notification.is-info.is-light,:host-context(.theme-dark) .notification.is-info.is-light,:host-context([data-theme=dark]) .notification.is-info.is-light{background:#38bdf81f!important;color:var(--ao-text)!important;border:1px solid rgba(56,189,248,.22)!important}:host-context(.dark) .has-text-grey,:host-context(.theme-dark) .has-text-grey,:host-context([data-theme=dark]) .has-text-grey{color:var(--ao-muted)!important}.page{min-height:auto}main.page-content>section.ao-root{flex:0 0 auto}.ao-root .ref-tag{margin-right:8px}.word-editor.is-rtl{direction:rtl;text-align:right;unicode-bidi:plaintext}.word-editor.is-rtl a,.word-editor.is-rtl .doc-link,.word-editor.is-rtl .cite{direction:ltr;unicode-bidi:isolate}.word-editor.is-rtl .doc-p,.word-editor.is-rtl .doc-h1,.word-editor.is-rtl .doc-h2,.word-editor.is-rtl .doc-h3,.word-editor.is-rtl .ref-item,.word-editor.is-rtl .doc-refs-title{text-align:right!important}.word-editor.is-rtl .refs-list{padding-left:0;padding-right:1.25rem}.word-editor.is-rtl .doc-refs-title,.word-editor.is-rtl .ref-item{text-align:right}.sources-box{background:var(--ao-surface-2)!important;border:1px dashed var(--ao-border-2)!important}.outline-layout{position:relative}.left-panel{transition:width .18s ease,opacity .18s ease}.outline-layout{align-items:flex-start}
36.right-panel{transition:width .18s ease;position:relative}@media(max-width:1023px){.outline-layout{display:block}.left-panel{width:100%!important}}.ao-steps{display:flex;flex-direction:column;gap:10px;align-self:stretch}.ao-step{display:flex;align-items:center;gap:10px;font-size:.875rem;transition:opacity .3s ease}.ao-step--done{color:var(--ao-text);opacity:1}.ao-step--active{color:var(--ao-text);font-weight:600;opacity:1}.ao-step--pending{color:var(--ao-muted);opacity:.4}.ao-step-bullet{width:18px;height:18px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.ao-dot{display:inline-block;width:8px;height:8px;border-radius:50%}.ao-dot--active{background:#485fc7;animation:ao-pulse 1s ease-in-out infinite}.ao-dot--idle{background:var(--ao-border-2);border:1px solid var(--ao-border)}@keyframes ao-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.35}}.left-fab{position:fixed;left:14px;top:50%;transform:translateY(-50%);z-index:10000;border-radius:999px;padding:10px 12px;border:1px solid #e8e8e8;background:#fff;box-shadow:0 10px 28px #0000001f;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.left-fab:disabled{opacity:.6;cursor:not-allowed}.left-fab-icon{font-size:18px;line-height:1}.left-fab-text{font-weight:600}.has-tip{position:absolute}.has-tip:after{content:attr(data-tip);position:absolute;left:44px;top:50%;transform:translateY(-50%);white-space:nowrap;background:#000c;color:#fff;font-size:12px;padding:6px 8px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .12s ease}.has-tip:hover:after{opacity:1}@media(max-width:1023px){.left-fab{top:auto;bottom:18px;transform:none}}.empty-state{padding:2rem;border:1px dashed var(--ao-border-2)!important;border-radius:12px}.editor-card,.editor-card-content{position:relative}.word-editor{min-height:62vh;max-height:70vh;overflow:auto;border-radius:14px;padding:18px;background:var(--ao-surface)!important;color:var(--ao-text)!important;border:1px solid var(--ao-border-2)!important;line-height:1.7;font-size:1rem;outline:none}.ao-has-result .word-editor{min-height:0}.word-editor .doc-h1{font-size:1.75rem;font-weight:900;line-height:1.2;margin:0 0 1rem}.word-editor .doc-h2{font-size:1.35rem;font-weight:900;line-height:1.25;margin:1.2rem 0 .6rem}.word-editor .doc-h3{font-size:1.15rem;font-weight:800;line-height:1.3;margin:1rem 0 .5rem}.word-editor .doc-p{margin:0 0 .95rem;text-align:justify}.word-editor .doc-refs-title{margin-top:1.8rem}.word-editor .refs-list{margin:.5rem 0 0;padding-left:1.25rem}.word-editor .ref-item{margin:.35rem 0;line-height:1.55}.has-tooltip-bottom[data-tooltip]{position:relative}.has-tooltip-bottom[data-tooltip]:after{content:attr(data-tooltip);position:absolute;bottom:-2.2rem;left:50%;transform:translate(-50%);background:#363636;color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:10}.has-tooltip-bottom[data-tooltip]:hover:after{opacity:1}.word-editor a{color:var(--ao-link)!important;cursor:pointer}.word-editor .doc-h2{font-size:1.35rem;font-weight:800;margin:1.2rem 0 .6rem;line-height:1.25}.word-editor .doc-p{margin:0 0 .9rem}.word-editor .doc-refs-title{margin-top:1.6rem}.word-editor .refs-list{margin:.4rem 0 0;padding-left:1.2rem}.word-editor .ref-item{margin:.35rem 0}.word-editor a.doc-link,.word-editor a{color:var(--ao-link)!important;text-decoration:underline;text-underline-offset:2px}.word-editor a.doc-link:hover,.word-editor a:hover{opacity:.9}.word-editor:focus{border-color:#485fc773!important;box-shadow:0 0 0 3px #485fc72e!important}.editor-disabled{pointer-events:none;opacity:.75;filter:grayscale(.2)}.cite{color:var(--ao-link, #485fc7)!important;font-weight:700;background:transparent!important;border-bottom:1px solid currentColor;padding:0 1px;border-radius:0;cursor:pointer;white-space:nowrap;text-decoration:none;text-underline-offset:2px}.cite:hover{opacity:.9}.word-editor.is-rtl .cite{direction:ltr;unicode-bidi:isolate}.editor-shell{position:relative;min-height:62vh}
36.editor-shell.ao-has-result{min-height:0}.editor-overlay{position:absolute;inset:0;border-radius:14px;background:var(--ao-overlay)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;z-index:2}.editor-overlay-inner{display:flex;flex-direction:column;align-items:center;gap:20px;padding:32px 40px;background:var(--ao-surface);border:1px solid var(--ao-border);border-radius:20px;box-shadow:0 20px 48px #0000001f;min-width:260px}.ao-spinner{width:52px;height:52px}.ao-spinner-svg{width:100%;height:100%;animation:ao-spin 1s linear infinite;transform-origin:center;transform-box:fill-box;overflow:visible}.ao-spinner-track{stroke:var(--ao-border)}.ao-spinner-arc{stroke:#485fc7;stroke-dasharray:85 28}@keyframes ao-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.word-editor,.word-editor .doc-h1,.word-editor .doc-h2,.word-editor .doc-h3{font-synthesis:weight}.ref-popover{position:fixed;z-index:9999;transform:translate(12px,12px);pointer-events:none}.ref-popover-card{pointer-events:auto;width:320px;background:var(--ao-surface)!important;border:1px solid var(--ao-border)!important;box-shadow:var(--ao-shadow)!important;color:var(--ao-text)!important;border-radius:14px;padding:12px}.ref-popover-title{font-weight:700;margin-bottom:8px;font-size:.95rem}.ref-popover-row{display:flex;gap:8px;align-items:flex-start;font-size:.9rem;margin-bottom:6px}.ref-icon{width:18px;opacity:.8}.ref-popover-muted{color:var(--ao-muted)!important;font-size:.85rem;opacity:.7;margin-top:6px}.ref-popover-card a{color:var(--ao-link)!important}.quota-badge{display:flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;color:#6b7280;background:#6b728014;border:1px solid rgba(107,114,128,.18);border-radius:8px;padding:.35rem .75rem}.quota-badge--danger{color:#dc2626;background:#dc262612;border-color:#dc262638}.quota-icon{font-size:1rem;line-height:1}.quota-upgrade-link{color:#485fc7!important;font-weight:700;text-decoration:underline;margin-left:.3rem}[data-theme=dark] .quota-badge{color:#9ca3af;background:#ffffff0d;border-color:#ffffff1f}[data-theme=dark] .quota-badge--danger{color:#f87171;background:#ef44441a;border-color:#ef444440}.word-editor .doc-h1{color:#1e3a8a}.word-editor .doc-h2:not(.doc-refs-title){color:var(--ao-link);border-left:3px solid var(--ao-link);padding-left:.65rem}.word-editor .doc-h3{color:var(--ao-link);opacity:.85;padding-left:.4rem}.word-editor .doc-refs-title{color:var(--ao-link)!important;border-top:2px solid var(--ao-border-2)!important;border-left:none!important;padding-top:1rem!important;padding-left:0!important;margin-top:2.2rem!important}.word-editor .refs-list{list-style:none!important;padding-left:0!important}.word-editor .ref-item{display:flex;align-items:baseline;gap:.5rem;padding:.4rem;border-radius:4px;border-bottom:1px solid var(--ao-border)}.word-editor .ref-item:last-child{border-bottom:none}.word-editor .ref-item:nth-child(2n){background:#485fc709}.word-editor.is-rtl .doc-h2:not(.doc-refs-title){border-left:none!important;border-right:3px solid var(--ao-link);padding-left:0!important;padding-right:.65rem}.word-editor.is-rtl .doc-h3{padding-left:0!important;padding-right:.4rem}
37`,`.ao-history-container{max-width:1200px;margin:0 auto;padding-top:2rem;padding-bottom:1.5rem}.ao-history-title{display:flex;align-items:center;gap:.5rem;font-size:1.1rem;font-weight:700;color:#111827;margin-bottom:1rem}.ao-history-title-icon{font-size:1.2rem;color:#485fc7}[data-theme=dark] .ao-history-title{color:#e5e7eb}[data-theme=dark] .ao-history-title-icon{color:#93c5fd}.ao-history-list{display:flex;flex-direction:column;gap:.6rem}.ao-history-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:.85rem 1rem;transition:box-shadow .15s}.ao-history-card:hover{box-shadow:0 2px 10px #00000012}[data-theme=dark] .ao-history-card{background:#1a1a1a;border-color:#2d2d2d}.ao-history-card-body{flex:1;min-width:0}.ao-history-card-topic{font-size:.9rem;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 .35rem}[data-theme=dark] .ao-history-card-topic{color:#e5e7eb}.ao-history-card-meta{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.ao-history-mode-tag{font-size:.75rem!important}.ao-history-date{font-size:.78rem;color:#9ca3af}.ao-history-card-actions{display:flex;gap:.4rem;flex-shrink:0}.ao-history-empty{display:flex;align-items:center;gap:.6rem;color:#9ca3af;font-size:.9rem;padding:1rem 0}.ao-history-empty-icon{font-size:1.2rem}.ao-history-empty p{margin:0}
37.ao-history-pagination{display:flex;align-items:center;gap:.75rem;justify-content:center;margin-top:1rem}.ao-history-page-info{font-size:.85rem;color:#6b7280}.ao-seo-section{background:#f5f5f5;padding:3.5rem 1rem}[data-theme=dark] .ao-seo-section{background:var(--bulma-box-background-color, #14161a)}.ao-seo-container{max-width:1200px;margin:0 auto}.ao-seo-title{font-size:1.6rem;font-weight:700;text-align:center;margin-bottom:2.5rem;color:#1a1a2e}[data-theme=dark] .ao-seo-title{color:#e5e7eb}.ao-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}@media(max-width:900px){.ao-features-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.ao-features-grid{grid-template-columns:1fr}}.ao-feature-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.75rem 1.5rem;transition:box-shadow .2s,transform .2s}.ao-feature-card:hover{box-shadow:0 8px 24px #0000001a;transform:translateY(-2px)}[data-theme=dark] .ao-feature-card{background:#1a1a1a!important;border-color:#2d2d2d!important}.ao-feature-icon{font-size:2rem;color:#485fc7;margin-bottom:.75rem;display:block}[data-theme=dark] .ao-feature-icon{color:#93c5fd}.ao-feature-title{font-size:1rem;font-weight:600;margin-bottom:.5rem;color:#111827}[data-theme=dark] .ao-feature-title{color:#e5e7eb}.ao-feature-desc{font-size:.9rem;color:#6b7280;line-height:1.6;margin:0}[data-theme=dark] .ao-feature-desc{color:#9ca3af}.ao-related-section{background:#f5f5f5;padding:2rem 1rem;border-top:1px solid #e5e7eb}[data-theme=dark] .ao-related-section{background:var(--bulma-box-background-color, #14161a);border-top-color:#2d2d2d}.ao-related-container{max-width:1200px;margin:0 auto}.ao-related-title{font-size:.85rem;font-weight:600;color:var(--text-muted, #6b7280);text-transform:uppercase;letter-spacing:.05em;margin-bottom:1rem}.ao-related-links{display:flex;flex-wrap:wrap;gap:.75rem}.ao-related-link{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border:1px solid rgba(79,70,229,.3);border-radius:999px;font-size:.88rem;color:#4f46e5;font-weight:500;text-decoration:none;transition:background .15s,color .15s}.ao-related-link .material-icons{font-size:1rem}.ao-related-link:hover{background:#4f46e5;color:#fff}[data-theme=dark] .ao-related-link{border-color:#818cf84d;color:#818cf8}[data-theme=dark] .ao-related-link:hover{background:#4f46e5;color:#fff}.ao-faq-section{background:#eef0f3;padding:3.5rem 1rem}[data-theme=dark] .ao-faq-section{background:var(--bulma-box-background-color, #14161a)}.ao-faq-container{max-width:860px;margin:0 auto}.ao-faq-title{font-size:1.6rem;font-weight:700;text-align:center;margin-bottom:2.5rem;color:#1a1a2e}[data-theme=dark] .ao-faq-title{color:#e5e7eb}.ao-faq-list{display:flex;flex-direction:column;gap:.75rem}.ao-faq-item{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;transition:border-color .2s}.ao-faq-item.ao-faq-item--open{border-color:#4f46e5;box-shadow:0 4px 16px #00000014}[data-theme=dark] .ao-faq-item{background:#1a1a1a;border-color:#2d2d2d}[data-theme=dark] .ao-faq-item.ao-faq-item--open{border-color:#3b82f6;box-shadow:0 4px 16px #0000004d}.ao-faq-question{width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;background:transparent;border:none;cursor:pointer;text-align:left;font-size:.95rem;font-weight:600;color:#111827;transition:background .15s}.ao-faq-question:hover{background:#00000008}[data-theme=dark] .ao-faq-question{color:#e5e7eb}[data-theme=dark] .ao-faq-question:hover{background:#ffffff0a}.ao-faq-chevron{font-size:1.25rem;color:#6b7280;flex-shrink:0;transition:transform .2s}.ao-faq-item--open .ao-faq-chevron{color:#4f46e5}[data-theme=dark] .ao-faq-item--open .ao-faq-chevron{color:#3b82f6}.ao-faq-answer{max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease;padding:0 1.25rem}.ao-faq-item--open .ao-faq-answer{max-height:400px;padding:0 1.25rem 1.1rem}.ao-faq-answer p{font-size:.9rem;color:#6b7280;line-height:1.7;margin:0}[data-theme=dark] .ao-faq-answer p{color:#9ca3af}
38`],encapsulation:2,changeDetection:1})}return a})()});Wt();export{yi as AcademicOutlineGeneratorPageComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.