"use strict";(self.webpackChunkflow_web_extension=self.webpackChunkflow_web_extension||[]).push([["3923"],{548581:function(e,i,n){n.d(i,{S:()=>t});var a,t=((a={}).AISearch="ai_search",a.DeepSearch="deep_search",a.AcademicSearch="academic_search",a.WritingOutlineSearch="writing_outline_search",a.ComplexSearch="complex_search",a.SimpleSearch="simple_search",a)},639581:function(e,i,n){n.r(i),n.d(i,{receiveAcademicSearchTextContentMatcher:()=>c});var a=n(642494),t=n(487382),r=n(185356),d=n(267943),c={pluginIdentifier:r.d,matchPlugin:e=>{var i;return!(0,a.VuA)(e)&&(0,t._B)(null!==(i=null==e?void 0:e.meta_infos)&&void 0!==i?i:[]).filter(d.SF).length>0&&(0,a.G7Q)(e)&&!(0,a.jSN)(e)}}},267943:function(e,i,n){n.d(i,{Ap:()=>u,C2:()=>s,DT:()=>f,JO:()=>o,P1:()=>_,SF:()=>h,aJ:()=>S,ge:()=>p});var a=n(698127),t=n(706790),r=n(642494),d=n(65379),c=n(771396),l=n(548581),o=()=>"undefined"!=typeof document&&!!document.querySelector('[data-testid="search-guidance-page-show"]'),u=()=>"undefined"!=typeof document&&!!document.querySelector('[data-testid="academic-guidance-page-show"]'),p=(e,i)=>{var n=(0,r.f9R)(e)||(0,r.lcM)(e),a=(0,r.TjU)(e)||i,t=(0,r.qZZ)(e)||(0,r.BPl)(e),d=(0,r.$sc)(e);return n?l.S.DeepSearch:a?l.S.AcademicSearch:t?l.S.WritingOutlineSearch:d?l.S.ComplexSearch:l.S.AISearch},h=e=>e.type===d.MetaType.WebAcademicReference,_=e=>e.type===d.MetaType.WebAcademicPreview,v=e=>{var i,n,r,d,c;return(null==e?void 0:null===(i=e.paper)||void 0===i?void 0:i.title)?(0,t._)((0,a._)({},e),{paper:(0,t._)((0,a._)({},e.paper),{unique_id:e.paper.title.concat(null!==(c=null===(d=e.paper)||void 0===d?void 0:null===(r=d.authors)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:n.name)&&void 0!==c?c:"")})}):e},S=(e,i,n)=>i.map(i=>{var r,d,l=v(i.data);return(0,t._)((0,a._)({},i),{data:(0,a._)((0,t._)((0,a._)({},l),{index:(0,c.K)(e,l.index)}),n&&n.length>0?{paper:JSON.parse(null!==(d=null===(r=n.find(e=>e.index===l.citation_index))||void 0===r?void 0:r.info)&&void 0!==d?d:"{}")}:{})})}),s=(e,i,n)=>i.map(i=>{var r,d,l=v(i.data);return(0,t._)((0,a._)({},i),{data:(0,a._)((0,t._)((0,a._)({},l),{index:(0,c.K)(e,l.index)}),n&&n.length>0?{paper:JSON.parse(null!==(d=null===(r=n.find(e=>e.index===l.citation_index))||void 0===r?void 0:r.info)&&void 0!==d?d:"{}")}:{})})}),f=(e,i)=>0===e.length&&0===i.length||e.length===i.length&&(e.forEach(e=>{var n=i.findIndex(i=>i===e);if(-1===n)return!1;i.splice(n,1)}),0===i.length)}}]);
//# sourceMappingURL=3923.js.map