@goperigon/perigon-ts 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1251 -410
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -205,6 +205,11 @@ await perigon.searchTopics({ size: 10 });
|
|
|
205
205
|
|
|
206
206
|
---
|
|
207
207
|
|
|
208
|
+
## Usage Examples
|
|
209
|
+
We have put together basic and advanced examples of accessing and using the Perigon API using the python SDK inside the **examples/** folder.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
208
213
|
## 🪪 License
|
|
209
214
|
|
|
210
215
|
MIT © Perigon
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var Nn="https://api.perigon.io".replace(/\/+$/,""),oe=class{constructor(n={}){this.configuration=n;}set config(n){this.configuration=n;}get basePath(){return this.configuration.basePath??Nn}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||me}get accessToken(){let n=this.configuration.apiKey;return n?typeof n=="function"?n:async()=>n:void 0}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}},On=new oe,U=class U{constructor(n=On){this.configuration=n;this.fetchApi=async(n,o)=>{let t={url:n,init:o};for(let a of this.middleware)a.pre&&(t=await a.pre({fetch:this.fetchApi,...t})||t);let r;try{r=await(this.configuration.fetchApi||fetch)(t.url,t.init);}catch(a){for(let i of this.middleware)i.onError&&(r=await i.onError({fetch:this.fetchApi,url:t.url,init:t.init,error:a,response:r?r.clone():void 0})||r);if(r===void 0)throw a instanceof Error?new ie(a,"The request failed and the interceptors did not return an alternative response"):a}for(let a of this.middleware)a.post&&(r=await a.post({fetch:this.fetchApi,url:t.url,init:t.init,response:r.clone()})||r);return r};this.middleware=n.middleware;}withMiddleware(...n){let o=this.clone();return o.middleware=o.middleware.concat(...n),o}withPreMiddleware(...n){let o=n.map(t=>({pre:t}));return this.withMiddleware(...o)}withPostMiddleware(...n){let o=n.map(t=>({post:t}));return this.withMiddleware(...o)}isJsonMime(n){return n?U.jsonRegex.test(n):false}async request(n,o){let{url:t,init:r}=await this.createFetchParams(n,o),a=await this.fetchApi(t,r);if(a&&a.status>=200&&a.status<300)return a;throw new re(a,"Response returned an error code")}async createFetchParams(n,o){let t=this.configuration.basePath+n.path;n.query!==void 0&&Object.keys(n.query).length!==0&&(t+="?"+this.configuration.queryParamsStringify(n.query));let r=Object.assign({},this.configuration.headers,n.headers);Object.keys(r).forEach(de=>r[de]===void 0?delete r[de]:{});let a=typeof o=="function"?o:async()=>o,i={method:n.method,headers:r,body:n.body,credentials:this.configuration.credentials},l={...i,...await a({init:i,context:n})},_;An(l.body)||l.body instanceof URLSearchParams||Rn(l.body)?_=l.body:this.isJsonMime(r["Content-Type"])?_=JSON.stringify(l.body):_=l.body;let xn={...l,body:_};return {url:t,init:xn}}clone(){let n=this.constructor,o=new n(this.configuration);return o.middleware=this.middleware.slice(),o}};U.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");var B=U;function Rn(e){return typeof Blob<"u"&&e instanceof Blob}function An(e){return typeof FormData<"u"&&e instanceof FormData}var re=class extends Error{constructor(o,t){super(t);this.response=o;this.name="ResponseError";}},ie=class extends Error{constructor(o,t){super(t);this.cause=o;this.name="FetchError";}},x=class extends Error{constructor(o,t){super(t);this.field=o;this.name="RequiredError";}},Vo={csv:",",ssv:" ",tsv:" ",pipes:"|"};function me(e,n=""){return Object.keys(e).map(o=>fe(o,e[o],n)).filter(o=>o.length>0).join("&")}function fe(e,n,o=""){let t=o+(o.length?`[${e}]`:e);if(n instanceof Array){let r=n.map(a=>encodeURIComponent(String(a))).join(`&${encodeURIComponent(t)}=`);return `${encodeURIComponent(t)}=${r}`}if(n instanceof Set){let r=Array.from(n);return fe(e,r,o)}return n instanceof Date?`${encodeURIComponent(t)}=${encodeURIComponent(n.toISOString())}`:n instanceof Object?me(n,t):`${encodeURIComponent(t)}=${encodeURIComponent(String(n))}`}function Go(e,n){let o=e[n];return o!=null}function Qo(e,n){let o={};for(let t of Object.keys(e))o[t]=n(e[t]);return o}function Ko(e){for(let n of e)if(n.contentType==="multipart/form-data")return true;return false}var d=class{constructor(n,o=t=>t){this.raw=n;this.transformer=o;}async value(){return this.transformer(await this.raw.json())}},se=class{constructor(n){this.raw=n;}async value(){}},pe=class{constructor(n){this.raw=n;}async value(){return await this.raw.blob()}},ye=class{constructor(n){this.raw=n;}async value(){return await this.raw.text()}};var ae={Relevance:"relevance",Date:"date",ReverseDate:"reverseDate",ReverseAddDate:"reverseAddDate",AddDate:"addDate",PubDate:"pubDate",RefreshDate:"refreshDate"};function Yo(e){for(let n in ae)if(Object.prototype.hasOwnProperty.call(ae,n)&&ae[n]===e)return true;return false}function $o(e){return bn(e)}function bn(e,n){return e}function Po(e){return e}function Xo(e,n){return e}function qo(e){return true}function N(e){return Cn(e)}function Cn(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function O(e){return In(e,false)}function In(e,n=false){return e==null?e:{name:e.name,count:e.count}}function jo(e){return true}function R(e){return Jn(e)}function Jn(e,n){return e==null?e:{country:e.country==null?void 0:e.country,state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,area:e.area==null?void 0:e.area}}function A(e){return En(e,false)}function En(e,n=false){return e==null?e:{country:e.country,state:e.state,county:e.county,city:e.city,area:e.area}}function lr(e){return true}function h(e){return Fn(e)}function Fn(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,fullName:e.fullName==null?void 0:e.fullName,headline:e.headline==null?void 0:e.headline,description:e.description==null?void 0:e.description,title:e.title==null?void 0:e.title,locations:e.locations==null?void 0:e.locations.map(R),updatedAt:e.updatedAt==null?void 0:e.updatedAt,topTopics:e.topTopics==null?void 0:e.topTopics.map(N),topSources:e.topSources==null?void 0:e.topSources.map(N),topCategories:e.topCategories==null?void 0:e.topCategories.map(N),topLabels:e.topLabels==null?void 0:e.topLabels.map(N),topCountries:e.topCountries==null?void 0:e.topCountries.map(N),avgMonthlyPosts:e.avgMonthlyPosts==null?void 0:e.avgMonthlyPosts,twitterHandle:e.twitterHandle==null?void 0:e.twitterHandle,twitterBio:e.twitterBio==null?void 0:e.twitterBio,imageUrl:e.imageUrl==null?void 0:e.imageUrl,linkedinUrl:e.linkedinUrl==null?void 0:e.linkedinUrl,linkedinConnections:e.linkedinConnections==null?void 0:e.linkedinConnections,linkedinFollowers:e.linkedinFollowers==null?void 0:e.linkedinFollowers,facebookUrl:e.facebookUrl==null?void 0:e.facebookUrl,instagramUrl:e.instagramUrl==null?void 0:e.instagramUrl,websiteUrl:e.websiteUrl==null?void 0:e.websiteUrl,blogUrl:e.blogUrl==null?void 0:e.blogUrl,tumblrUrl:e.tumblrUrl==null?void 0:e.tumblrUrl,youtubeUrl:e.youtubeUrl==null?void 0:e.youtubeUrl}}function W(e){return Hn(e,false)}function Hn(e,n=false){return e==null?e:{id:e.id,name:e.name,fullName:e.fullName,headline:e.headline,description:e.description,title:e.title,locations:e.locations==null?void 0:e.locations.map(A),updatedAt:e.updatedAt,topTopics:e.topTopics==null?void 0:e.topTopics.map(O),topSources:e.topSources==null?void 0:e.topSources.map(O),topCategories:e.topCategories==null?void 0:e.topCategories.map(O),topLabels:e.topLabels==null?void 0:e.topLabels.map(O),topCountries:e.topCountries==null?void 0:e.topCountries.map(O),avgMonthlyPosts:e.avgMonthlyPosts,twitterHandle:e.twitterHandle,twitterBio:e.twitterBio,imageUrl:e.imageUrl,linkedinUrl:e.linkedinUrl,linkedinConnections:e.linkedinConnections,linkedinFollowers:e.linkedinFollowers,facebookUrl:e.facebookUrl,instagramUrl:e.instagramUrl,websiteUrl:e.websiteUrl,blogUrl:e.blogUrl,tumblrUrl:e.tumblrUrl,youtubeUrl:e.youtubeUrl}}function cr(e){return true}function z(e){return Dn(e)}function Dn(e,n){return e==null?e:{lat:e.lat==null?void 0:e.lat,lon:e.lon==null?void 0:e.lon}}function V(e){return kn(e,false)}function kn(e,n=false){return e==null?e:{lat:e.lat,lon:e.lon}}function mr(e){return true}function G(e){return wn(e)}function wn(e,n){return e==null?e:{country:e.country==null?void 0:e.country,state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,coordinates:e.coordinates==null?void 0:z(e.coordinates)}}function Q(e){return Mn(e,false)}function Mn(e,n=false){return e==null?e:{country:e.country,state:e.state,county:e.county,city:e.city,coordinates:V(e.coordinates)}}function xr(e){return true}function K(e){return Ln(e)}function Ln(e,n){return e==null?e:{domain:e.domain==null?void 0:e.domain,paywall:e.paywall==null?void 0:e.paywall,location:e.location==null?void 0:G(e.location)}}function Y(e){return _n(e,false)}function _n(e,n=false){return e==null?e:{domain:e.domain,paywall:e.paywall,location:Q(e.location)}}function Or(e){return true}function $(e){return Bn(e)}function Bn(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,domains:e.domains==null?void 0:e.domains,symbols:e.symbols==null?void 0:e.symbols}}function P(e){return Un(e,false)}function Un(e,n=false){return e==null?e:{id:e.id,name:e.name,domains:e.domains,symbols:e.symbols}}function Ar(e){return true}function Se(e){return Wn(e)}function Wn(e,n){return e==null?e:{data:e.data==null?void 0:e.data,type:e.type==null?void 0:e.type,mentions:e.mentions==null?void 0:e.mentions}}function Te(e){return zn(e,false)}function zn(e,n=false){return e==null?e:{data:e.data,type:e.type,mentions:e.mentions}}function br(e){return true}function I(e){return Vn(e)}function Vn(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function J(e){return Gn(e,false)}function Gn(e,n=false){return e==null?e:{name:e.name}}function Ir(e){return true}function X(e){return Qn(e)}function Qn(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,name:e.name==null?void 0:e.name}}function Z(e){return Kn(e,false)}function Kn(e,n=false){return e==null?e:{wikidataId:e.wikidataId,name:e.name}}function Er(e){return true}function ge(e){return Yn(e)}function Yn(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function xe(e){return $n(e,false)}function $n(e,n=false){return e==null?e:{name:e.name}}function Hr(e){return true}function E(e){return Pn(e)}function Pn(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function F(e){return Xn(e,false)}function Xn(e,n=false){return e==null?e:{name:e.name,count:e.count}}function kr(e){return true}function Ne(e){return Zn(e)}function Zn(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function Oe(e){return qn(e,false)}function qn(e,n=false){return e==null?e:{wikidataId:e.wikidataId,name:e.name,count:e.count}}function Mr(e){return true}function Re(e){return vn(e)}function vn(e,n){return e==null?e:{state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,area:e.area==null?void 0:e.area,count:e.count==null?void 0:e.count}}function Ae(e){return jn(e,false)}function jn(e,n=false){return e==null?e:{state:e.state,county:e.county,city:e.city,area:e.area,count:e.count}}function _r(e){return true}function he(e){return et(e)}function et(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,domains:e.domains==null?void 0:e.domains,symbols:e.symbols==null?void 0:e.symbols,count:e.count==null?void 0:e.count}}function be(e){return nt(e,false)}function nt(e,n=false){return e==null?e:{id:e.id,name:e.name,domains:e.domains,symbols:e.symbols,count:e.count}}function Ur(e){return true}function Ce(e){return tt(e)}function tt(e,n){return e==null?e:{point:e.point==null?void 0:e.point,references:e.references==null?void 0:e.references}}function Ie(e){return ot(e,false)}function ot(e,n=false){return e==null?e:{point:e.point,references:e.references}}function zr(e){return true}function q(e){return rt(e)}function rt(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function v(e){return it(e,false)}function it(e,n=false){return e==null?e:{name:e.name}}function Gr(e){return true}function Je(e){return at(e)}function at(e,n){return e==null?e:{question:e.question==null?void 0:e.question,answer:e.answer==null?void 0:e.answer,references:e.references==null?void 0:e.references}}function Ee(e){return lt(e,false)}function lt(e,n=false){return e==null?e:{question:e.question,answer:e.answer,references:e.references}}function Kr(e){return true}function j(e){return ut(e)}function ut(e,n){return e==null?e:{positive:e.positive==null?void 0:e.positive,negative:e.negative==null?void 0:e.negative,neutral:e.neutral==null?void 0:e.neutral}}function ee(e){return ct(e,false)}function ct(e,n=false){return e==null?e:{positive:e.positive,negative:e.negative,neutral:e.neutral}}function Mi(e){return true}function ne(e){return dt(e)}function dt(e,n){return e==null?e:{createdAt:e.createdAt==null?void 0:e.createdAt,updatedAt:e.updatedAt==null?void 0:e.updatedAt,initializedAt:e.initializedAt==null?void 0:e.initializedAt,id:e.id==null?void 0:e.id,duplicateOf:e.duplicateOf==null?void 0:e.duplicateOf,slug:e.slug==null?void 0:e.slug,name:e.name==null?void 0:e.name,summary:e.summary==null?void 0:e.summary,shortSummary:e.shortSummary==null?void 0:e.shortSummary,summaryReferences:e.summaryReferences==null?void 0:e.summaryReferences,imageSource:e.imageSource==null?void 0:K(e.imageSource),imageUrl:e.imageUrl==null?void 0:e.imageUrl,keyPoints:e.keyPoints==null?void 0:e.keyPoints.map(Ce),questions:e.questions==null?void 0:e.questions.map(Je),uniqueSources:e.uniqueSources==null?void 0:e.uniqueSources,selectedArticles:e.selectedArticles==null?void 0:e.selectedArticles.map(T),sentiment:e.sentiment==null?void 0:j(e.sentiment),uniqueCount:e.uniqueCount==null?void 0:e.uniqueCount,reprintCount:e.reprintCount==null?void 0:e.reprintCount,totalCount:e.totalCount==null?void 0:e.totalCount,countries:e.countries==null?void 0:e.countries.map(E),topCountries:e.topCountries==null?void 0:e.topCountries,topics:e.topics==null?void 0:e.topics.map(E),topTopics:e.topTopics==null?void 0:e.topTopics.map(q),categories:e.categories==null?void 0:e.categories.map(E),topCategories:e.topCategories==null?void 0:e.topCategories.map(I),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(E),topTaxonomies:e.topTaxonomies==null?void 0:e.topTaxonomies.map(I),people:e.people==null?void 0:e.people.map(Ne),topPeople:e.topPeople==null?void 0:e.topPeople.map(X),companies:e.companies==null?void 0:e.companies.map(he),topCompanies:e.topCompanies==null?void 0:e.topCompanies.map($),locations:e.locations==null?void 0:e.locations.map(Re),topLocations:e.topLocations==null?void 0:e.topLocations.map(R),highlights:e.highlights==null?void 0:e.highlights}}function te(e){return st(e,false)}function st(e,n=false){return e==null?e:{createdAt:e.createdAt,updatedAt:e.updatedAt,initializedAt:e.initializedAt,id:e.id,duplicateOf:e.duplicateOf,slug:e.slug,name:e.name,summary:e.summary,shortSummary:e.shortSummary,summaryReferences:e.summaryReferences,imageSource:Y(e.imageSource),imageUrl:e.imageUrl,keyPoints:e.keyPoints==null?void 0:e.keyPoints.map(Ie),questions:e.questions==null?void 0:e.questions.map(Ee),uniqueSources:e.uniqueSources,selectedArticles:e.selectedArticles==null?void 0:e.selectedArticles.map(g),sentiment:ee(e.sentiment),uniqueCount:e.uniqueCount,reprintCount:e.reprintCount,totalCount:e.totalCount,countries:e.countries==null?void 0:e.countries.map(F),topCountries:e.topCountries,topics:e.topics==null?void 0:e.topics.map(F),topTopics:e.topTopics==null?void 0:e.topTopics.map(v),categories:e.categories==null?void 0:e.categories.map(F),topCategories:e.topCategories==null?void 0:e.topCategories.map(J),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(F),topTaxonomies:e.topTaxonomies==null?void 0:e.topTaxonomies.map(J),people:e.people==null?void 0:e.people.map(Oe),topPeople:e.topPeople==null?void 0:e.topPeople.map(Z),companies:e.companies==null?void 0:e.companies.map(be),topCompanies:e.topCompanies==null?void 0:e.topCompanies.map(P),locations:e.locations==null?void 0:e.locations.map(Ae),topLocations:e.topLocations==null?void 0:e.topLocations.map(A),highlights:e.highlights}}function _i(e){return true}function Fe(e){return pt(e)}function pt(e,n){return e==null?e:{name:e.name==null?void 0:e.name,weight:e.weight==null?void 0:e.weight}}function He(e){return yt(e,false)}function yt(e,n=false){return e==null?e:{name:e.name,weight:e.weight}}function Ui(e){return true}function De(e){return mt(e)}function mt(e,n){return e==null?e:{name:e.name==null?void 0:e.name,type:e.type==null?void 0:e.type}}function ke(e){return ft(e,false)}function ft(e,n=false){return e==null?e:{name:e.name,type:e.type}}function zi(e){return true}function we(e){return St(e)}function St(e,n){return e==null?e:{name:e.name==null?void 0:e.name,score:e.score==null?void 0:e.score}}function Me(e){return Tt(e,false)}function Tt(e,n=false){return e==null?e:{name:e.name,score:e.score}}function Yi(e){return true}function Le(e){return gt(e)}function gt(e,n){return e==null?e:{osmId:e.osmId==null?void 0:e.osmId,road:e.road==null?void 0:e.road,quarter:e.quarter==null?void 0:e.quarter,suburb:e.suburb==null?void 0:e.suburb,city:e.city==null?void 0:e.city,town:e.town==null?void 0:e.town,county:e.county==null?void 0:e.county,stateDistrict:e.stateDistrict==null?void 0:e.stateDistrict,state:e.state==null?void 0:e.state,postcode:e.postcode==null?void 0:e.postcode,country:e.country==null?void 0:e.country,countryCode:e.countryCode==null?void 0:e.countryCode,amenity:e.amenity==null?void 0:e.amenity,neighbourhood:e.neighbourhood==null?void 0:e.neighbourhood,coordinates:e.coordinates==null?void 0:z(e.coordinates)}}function _e(e){return xt(e,false)}function xt(e,n=false){return e==null?e:{osmId:e.osmId,road:e.road,quarter:e.quarter,suburb:e.suburb,city:e.city,town:e.town,county:e.county,stateDistrict:e.stateDistrict,state:e.state,postcode:e.postcode,country:e.country,countryCode:e.countryCode,amenity:e.amenity,neighbourhood:e.neighbourhood,coordinates:V(e.coordinates)}}function Pi(e){return true}function Be(e){return Nt(e)}function Nt(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name}}function Ue(e){return Ot(e,false)}function Ot(e,n=false){return e==null?e:{id:e.id,name:e.name}}function Qa(e){return true}function T(e){return Rt(e)}function Rt(e,n){return e==null?e:{url:e.url==null?void 0:e.url,authorsByline:e.authorsByline==null?void 0:e.authorsByline,articleId:e.articleId==null?void 0:e.articleId,clusterId:e.clusterId==null?void 0:e.clusterId,source:e.source==null?void 0:K(e.source),imageUrl:e.imageUrl==null?void 0:e.imageUrl,country:e.country==null?void 0:e.country,language:e.language==null?void 0:e.language,pubDate:e.pubDate==null?void 0:e.pubDate,addDate:e.addDate==null?void 0:e.addDate,refreshDate:e.refreshDate==null?void 0:e.refreshDate,score:e.score==null?void 0:e.score,title:e.title==null?void 0:e.title,description:e.description==null?void 0:e.description,content:e.content==null?void 0:e.content,medium:e.medium==null?void 0:e.medium,links:e.links==null?void 0:e.links,labels:e.labels==null?void 0:e.labels.map(ge),eventTypes:e.eventTypes==null?void 0:e.eventTypes.map(De),matchedAuthors:e.matchedAuthors==null?void 0:e.matchedAuthors.map(Be),claim:e.claim==null?void 0:e.claim,verdict:e.verdict==null?void 0:e.verdict,keywords:e.keywords==null?void 0:e.keywords.map(Fe),topics:e.topics==null?void 0:e.topics.map(q),categories:e.categories==null?void 0:e.categories.map(I),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(we),entities:e.entities==null?void 0:e.entities.map(Se),companies:e.companies==null?void 0:e.companies.map($),sentiment:e.sentiment==null?void 0:j(e.sentiment),summary:e.summary==null?void 0:e.summary,shortSummary:e.shortSummary==null?void 0:e.shortSummary,translation:e.translation==null?void 0:e.translation,translatedTitle:e.translatedTitle==null?void 0:e.translatedTitle,translatedDescription:e.translatedDescription==null?void 0:e.translatedDescription,translatedSummary:e.translatedSummary==null?void 0:e.translatedSummary,locations:e.locations==null?void 0:e.locations.map(R),reprint:e.reprint==null?void 0:e.reprint,reprintGroupId:e.reprintGroupId==null?void 0:e.reprintGroupId,places:e.places==null?void 0:e.places.map(Le),people:e.people==null?void 0:e.people.map(X),cluster:e.cluster==null?void 0:ne(e.cluster),journalists:e.journalists==null?void 0:e.journalists.map(h),highlights:e.highlights==null?void 0:e.highlights}}function g(e){return At(e,false)}function At(e,n=false){return e==null?e:{url:e.url,authorsByline:e.authorsByline,articleId:e.articleId,clusterId:e.clusterId,source:Y(e.source),imageUrl:e.imageUrl,country:e.country,language:e.language,pubDate:e.pubDate,addDate:e.addDate,refreshDate:e.refreshDate,score:e.score,title:e.title,description:e.description,content:e.content,medium:e.medium,links:e.links,labels:e.labels==null?void 0:e.labels.map(xe),eventTypes:e.eventTypes==null?void 0:e.eventTypes.map(ke),matchedAuthors:e.matchedAuthors==null?void 0:e.matchedAuthors.map(Ue),claim:e.claim,verdict:e.verdict,keywords:e.keywords==null?void 0:e.keywords.map(He),topics:e.topics==null?void 0:e.topics.map(v),categories:e.categories==null?void 0:e.categories.map(J),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(Me),entities:e.entities==null?void 0:e.entities.map(Te),companies:e.companies==null?void 0:e.companies.map(P),sentiment:ee(e.sentiment),summary:e.summary,shortSummary:e.shortSummary,translation:e.translation,translatedTitle:e.translatedTitle,translatedDescription:e.translatedDescription,translatedSummary:e.translatedSummary,locations:e.locations==null?void 0:e.locations.map(A),reprint:e.reprint,reprintGroupId:e.reprintGroupId,places:e.places==null?void 0:e.places.map(_e),people:e.people==null?void 0:e.people.map(Z),cluster:te(e.cluster),journalists:e.journalists==null?void 0:e.journalists.map(W),highlights:e.highlights}}function Ya(e){return true}function le(e){return ht(e)}function ht(e,n){return e==null?e:{lat:e.lat==null?void 0:e.lat,lon:e.lon==null?void 0:e.lon,radius:e.radius==null?void 0:e.radius}}function ue(e){return bt(e,false)}function bt(e,n=false){return e==null?e:{lat:e.lat,lon:e.lon,radius:e.radius}}function qa(e){return true}function H(e){return Ct(e)}function Ct(e,n){return e==null?e:{articleId:e.articleId==null?void 0:e.articleId,clusterId:e.clusterId==null?void 0:e.clusterId,source:e.source==null?void 0:e.source,excludeSource:e.excludeSource==null?void 0:e.excludeSource,sourceGroup:e.sourceGroup==null?void 0:e.sourceGroup,language:e.language==null?void 0:e.language,excludeLanguage:e.excludeLanguage==null?void 0:e.excludeLanguage,label:e.label==null?void 0:e.label,excludeLabel:e.excludeLabel==null?void 0:e.excludeLabel,taxonomy:e.taxonomy==null?void 0:e.taxonomy,category:e.category==null?void 0:e.category,topic:e.topic==null?void 0:e.topic,excludeTopic:e.excludeTopic==null?void 0:e.excludeTopic,country:e.country==null?void 0:e.country,excludeCountry:e.excludeCountry==null?void 0:e.excludeCountry,locationsCountry:e.locationsCountry==null?void 0:e.locationsCountry,excludeLocationsCountry:e.excludeLocationsCountry==null?void 0:e.excludeLocationsCountry,state:e.state==null?void 0:e.state,excludeState:e.excludeState==null?void 0:e.excludeState,county:e.county==null?void 0:e.county,excludeCounty:e.excludeCounty==null?void 0:e.excludeCounty,city:e.city==null?void 0:e.city,excludeCity:e.excludeCity==null?void 0:e.excludeCity,sourceCountry:e.sourceCountry==null?void 0:e.sourceCountry,sourceState:e.sourceState==null?void 0:e.sourceState,sourceCounty:e.sourceCounty==null?void 0:e.sourceCounty,sourceCity:e.sourceCity==null?void 0:e.sourceCity,coordinates:e.coordinates==null?void 0:le(e.coordinates),sourceCoordinates:e.sourceCoordinates==null?void 0:le(e.sourceCoordinates),companyId:e.companyId==null?void 0:e.companyId,excludeCompanyId:e.excludeCompanyId==null?void 0:e.excludeCompanyId,companyDomain:e.companyDomain==null?void 0:e.companyDomain,excludeCompanyDomain:e.excludeCompanyDomain==null?void 0:e.excludeCompanyDomain,companySymbol:e.companySymbol==null?void 0:e.companySymbol,excludeCompanySymbol:e.excludeCompanySymbol==null?void 0:e.excludeCompanySymbol,companyName:e.companyName==null?void 0:e.companyName,personWikidataId:e.personWikidataId==null?void 0:e.personWikidataId,excludePersonWikidataId:e.excludePersonWikidataId==null?void 0:e.excludePersonWikidataId,personName:e.personName==null?void 0:e.personName,excludePersonName:e.excludePersonName==null?void 0:e.excludePersonName,aND:e.AND==null?void 0:e.AND.map(H),oR:e.OR==null?void 0:e.OR.map(H),nOT:e.NOT==null?void 0:e.NOT.map(H)}}function D(e){return It(e,false)}function It(e,n=false){return e==null?e:{articleId:e.articleId,clusterId:e.clusterId,source:e.source,excludeSource:e.excludeSource,sourceGroup:e.sourceGroup,language:e.language,excludeLanguage:e.excludeLanguage,label:e.label,excludeLabel:e.excludeLabel,taxonomy:e.taxonomy,category:e.category,topic:e.topic,excludeTopic:e.excludeTopic,country:e.country,excludeCountry:e.excludeCountry,locationsCountry:e.locationsCountry,excludeLocationsCountry:e.excludeLocationsCountry,state:e.state,excludeState:e.excludeState,county:e.county,excludeCounty:e.excludeCounty,city:e.city,excludeCity:e.excludeCity,sourceCountry:e.sourceCountry,sourceState:e.sourceState,sourceCounty:e.sourceCounty,sourceCity:e.sourceCity,coordinates:ue(e.coordinates),sourceCoordinates:ue(e.sourceCoordinates),companyId:e.companyId,excludeCompanyId:e.excludeCompanyId,companyDomain:e.companyDomain,excludeCompanyDomain:e.excludeCompanyDomain,companySymbol:e.companySymbol,excludeCompanySymbol:e.excludeCompanySymbol,companyName:e.companyName,personWikidataId:e.personWikidataId,excludePersonWikidataId:e.excludePersonWikidataId,personName:e.personName,excludePersonName:e.excludePersonName,AND:e.aND==null?void 0:e.aND.map(D),OR:e.oR==null?void 0:e.oR.map(D),NOT:e.nOT==null?void 0:e.nOT.map(D)}}function tl(e){return !(!("prompt"in e)||e.prompt===void 0)}function ol(e){return Jt(e)}function Jt(e,n){return e==null?e:{prompt:e.prompt,filter:e.filter==null?void 0:H(e.filter),pubDateFrom:e.pubDateFrom==null?void 0:new Date(e.pubDateFrom),pubDateTo:e.pubDateTo==null?void 0:new Date(e.pubDateTo),showReprints:e.showReprints==null?void 0:e.showReprints,size:e.size==null?void 0:e.size,page:e.page==null?void 0:e.page,addDateFrom:e.addDateFrom==null?void 0:new Date(e.addDateFrom),addDateTo:e.addDateTo==null?void 0:new Date(e.addDateTo),scoreThreshold:e.scoreThreshold==null?void 0:e.scoreThreshold}}function We(e){return Et(e,false)}function Et(e,n=false){return e==null?e:{prompt:e.prompt,filter:D(e.filter),pubDateFrom:e.pubDateFrom==null?void 0:e.pubDateFrom.toISOString(),pubDateTo:e.pubDateTo==null?void 0:e.pubDateTo.toISOString(),showReprints:e.showReprints,size:e.size,page:e.page,addDateFrom:e.addDateFrom==null?void 0:e.addDateFrom.toISOString(),addDateTo:e.addDateTo==null?void 0:e.addDateTo.toISOString(),scoreThreshold:e.scoreThreshold}}function il(e){return true}function u(e){return Ft(e)}function Ft(e,n){return e==null?e:{classLoaderName:e.classLoaderName==null?void 0:e.classLoaderName,moduleName:e.moduleName==null?void 0:e.moduleName,moduleVersion:e.moduleVersion==null?void 0:e.moduleVersion,methodName:e.methodName==null?void 0:e.methodName,fileName:e.fileName==null?void 0:e.fileName,lineNumber:e.lineNumber==null?void 0:e.lineNumber,nativeMethod:e.nativeMethod==null?void 0:e.nativeMethod,className:e.className==null?void 0:e.className}}function c(e){return Ht(e,false)}function Ht(e,n=false){return e==null?e:{classLoaderName:e.classLoaderName,moduleName:e.moduleName,moduleVersion:e.moduleVersion,methodName:e.methodName,fileName:e.fileName,lineNumber:e.lineNumber,nativeMethod:e.nativeMethod,className:e.className}}function dl(e){return true}function s(e){return Dt(e)}function Dt(e,n){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(u),message:e.message==null?void 0:e.message,localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function p(e){return kt(e,false)}function kt(e,n=false){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,localizedMessage:e.localizedMessage}}function fl(e){return true}function y(e){return wt(e)}function wt(e,n){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(u),message:e.message==null?void 0:e.message,localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function m(e){return Mt(e,false)}function Mt(e,n=false){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,localizedMessage:e.localizedMessage}}var Cl={_100Continue:"100 CONTINUE",_101SwitchingProtocols:"101 SWITCHING_PROTOCOLS",_102Processing:"102 PROCESSING",_103Checkpoint:"103 CHECKPOINT",_200Ok:"200 OK",_201Created:"201 CREATED",_202Accepted:"202 ACCEPTED",_203NonAuthoritativeInformation:"203 NON_AUTHORITATIVE_INFORMATION",_204NoContent:"204 NO_CONTENT",_205ResetContent:"205 RESET_CONTENT",_206PartialContent:"206 PARTIAL_CONTENT",_207MultiStatus:"207 MULTI_STATUS",_208AlreadyReported:"208 ALREADY_REPORTED",_226ImUsed:"226 IM_USED",_300MultipleChoices:"300 MULTIPLE_CHOICES",_301MovedPermanently:"301 MOVED_PERMANENTLY",_302Found:"302 FOUND",_302MovedTemporarily:"302 MOVED_TEMPORARILY",_303SeeOther:"303 SEE_OTHER",_304NotModified:"304 NOT_MODIFIED",_305UseProxy:"305 USE_PROXY",_307TemporaryRedirect:"307 TEMPORARY_REDIRECT",_308PermanentRedirect:"308 PERMANENT_REDIRECT",_400BadRequest:"400 BAD_REQUEST",_401Unauthorized:"401 UNAUTHORIZED",_402PaymentRequired:"402 PAYMENT_REQUIRED",_403Forbidden:"403 FORBIDDEN",_404NotFound:"404 NOT_FOUND",_405MethodNotAllowed:"405 METHOD_NOT_ALLOWED",_406NotAcceptable:"406 NOT_ACCEPTABLE",_407ProxyAuthenticationRequired:"407 PROXY_AUTHENTICATION_REQUIRED",_408RequestTimeout:"408 REQUEST_TIMEOUT",_409Conflict:"409 CONFLICT",_410Gone:"410 GONE",_411LengthRequired:"411 LENGTH_REQUIRED",_412PreconditionFailed:"412 PRECONDITION_FAILED",_413PayloadTooLarge:"413 PAYLOAD_TOO_LARGE",_413RequestEntityTooLarge:"413 REQUEST_ENTITY_TOO_LARGE",_414UriTooLong:"414 URI_TOO_LONG",_414RequestUriTooLong:"414 REQUEST_URI_TOO_LONG",_415UnsupportedMediaType:"415 UNSUPPORTED_MEDIA_TYPE",_416RequestedRangeNotSatisfiable:"416 REQUESTED_RANGE_NOT_SATISFIABLE",_417ExpectationFailed:"417 EXPECTATION_FAILED",_418IAmATeapot:"418 I_AM_A_TEAPOT",_419InsufficientSpaceOnResource:"419 INSUFFICIENT_SPACE_ON_RESOURCE",_420MethodFailure:"420 METHOD_FAILURE",_421DestinationLocked:"421 DESTINATION_LOCKED",_422UnprocessableEntity:"422 UNPROCESSABLE_ENTITY",_423Locked:"423 LOCKED",_424FailedDependency:"424 FAILED_DEPENDENCY",_425TooEarly:"425 TOO_EARLY",_426UpgradeRequired:"426 UPGRADE_REQUIRED",_428PreconditionRequired:"428 PRECONDITION_REQUIRED",_429TooManyRequests:"429 TOO_MANY_REQUESTS",_431RequestHeaderFieldsTooLarge:"431 REQUEST_HEADER_FIELDS_TOO_LARGE",_451UnavailableForLegalReasons:"451 UNAVAILABLE_FOR_LEGAL_REASONS",_500InternalServerError:"500 INTERNAL_SERVER_ERROR",_501NotImplemented:"501 NOT_IMPLEMENTED",_502BadGateway:"502 BAD_GATEWAY",_503ServiceUnavailable:"503 SERVICE_UNAVAILABLE",_504GatewayTimeout:"504 GATEWAY_TIMEOUT",_505HttpVersionNotSupported:"505 HTTP_VERSION_NOT_SUPPORTED",_506VariantAlsoNegotiates:"506 VARIANT_ALSO_NEGOTIATES",_507InsufficientStorage:"507 INSUFFICIENT_STORAGE",_508LoopDetected:"508 LOOP_DETECTED",_509BandwidthLimitExceeded:"509 BANDWIDTH_LIMIT_EXCEEDED",_510NotExtended:"510 NOT_EXTENDED",_511NetworkAuthenticationRequired:"511 NETWORK_AUTHENTICATION_REQUIRED"};function Il(e){return true}function Jl(e){return Lt(e)}function Lt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(u),statusCode:e.statusCode==null?void 0:e.statusCode,message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function El(e){return _t(e,false)}function _t(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),statusCode:e.statusCode,message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage}}function Hl(e){return true}function ze(e){return Bt(e)}function Bt(e,n){return e==null?e:{symbol:e.symbol==null?void 0:e.symbol,exchange:e.exchange==null?void 0:e.exchange,exchangeShortName:e.exchangeShortName==null?void 0:e.exchangeShortName,ipoDate:e.ipoDate==null?void 0:e.ipoDate}}function Ve(e){return Ut(e,false)}function Ut(e,n=false){return e==null?e:{symbol:e.symbol,exchange:e.exchange,exchangeShortName:e.exchangeShortName,ipoDate:e.ipoDate}}function kl(e){return true}function Ge(e){return Wt(e)}function Wt(e,n){return e==null?e:{careers:e.careers==null?void 0:e.careers,about:e.about==null?void 0:e.about,blog:e.blog==null?void 0:e.blog,events:e.events==null?void 0:e.events,sitemap:e.sitemap==null?void 0:e.sitemap,updates:e.updates==null?void 0:e.updates,linkedin:e.linkedin==null?void 0:e.linkedin,facebook:e.facebook==null?void 0:e.facebook,instagram:e.instagram==null?void 0:e.instagram,medium:e.medium==null?void 0:e.medium,reddit:e.reddit==null?void 0:e.reddit,threads:e.threads==null?void 0:e.threads,tiktok:e.tiktok==null?void 0:e.tiktok,x:e.x==null?void 0:e.x,wellfound:e.wellfound==null?void 0:e.wellfound,youtube:e.youtube==null?void 0:e.youtube,wikipedia:e.wikipedia==null?void 0:e.wikipedia}}function Qe(e){return zt(e,false)}function zt(e,n=false){return e==null?e:{careers:e.careers,about:e.about,blog:e.blog,events:e.events,sitemap:e.sitemap,updates:e.updates,linkedin:e.linkedin,facebook:e.facebook,instagram:e.instagram,medium:e.medium,reddit:e.reddit,threads:e.threads,tiktok:e.tiktok,x:e.x,wellfound:e.wellfound,youtube:e.youtube,wikipedia:e.wikipedia}}function zl(e){return true}function Ke(e){return Vt(e)}function Vt(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,updatedAt:e.updatedAt==null?void 0:e.updatedAt,primaryRecordId:e.primaryRecordId==null?void 0:e.primaryRecordId,altNames:e.altNames==null?void 0:e.altNames,domains:e.domains==null?void 0:e.domains,monthlyVisits:e.monthlyVisits==null?void 0:e.monthlyVisits,globalRank:e.globalRank==null?void 0:e.globalRank,description:e.description==null?void 0:e.description,ceo:e.ceo==null?void 0:e.ceo,industry:e.industry==null?void 0:e.industry,sector:e.sector==null?void 0:e.sector,country:e.country==null?void 0:e.country,fullTimeEmployees:e.fullTimeEmployees==null?void 0:e.fullTimeEmployees,address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,state:e.state==null?void 0:e.state,zip:e.zip==null?void 0:e.zip,logo:e.logo==null?void 0:e.logo,favicon:e.favicon==null?void 0:e.favicon,isEtf:e.isEtf==null?void 0:e.isEtf,isActivelyTrading:e.isActivelyTrading==null?void 0:e.isActivelyTrading,isFund:e.isFund==null?void 0:e.isFund,isAdr:e.isAdr==null?void 0:e.isAdr,symbols:e.symbols==null?void 0:e.symbols.map(ze),naics:e.naics==null?void 0:e.naics,sic:e.sic==null?void 0:e.sic,yearFounded:e.yearFounded==null?void 0:e.yearFounded,revenue:e.revenue==null?void 0:e.revenue,webResources:e.webResources==null?void 0:Ge(e.webResources)}}function Ye(e){return Gt(e,false)}function Gt(e,n=false){return e==null?e:{id:e.id,name:e.name,updatedAt:e.updatedAt,primaryRecordId:e.primaryRecordId,altNames:e.altNames,domains:e.domains,monthlyVisits:e.monthlyVisits,globalRank:e.globalRank,description:e.description,ceo:e.ceo,industry:e.industry,sector:e.sector,country:e.country,fullTimeEmployees:e.fullTimeEmployees,address:e.address,city:e.city,state:e.state,zip:e.zip,logo:e.logo,favicon:e.favicon,isEtf:e.isEtf,isActivelyTrading:e.isActivelyTrading,isFund:e.isFund,isAdr:e.isAdr,symbols:e.symbols==null?void 0:e.symbols.map(Ve),naics:e.naics,sic:e.sic,yearFounded:e.yearFounded,revenue:e.revenue,webResources:Qe(e.webResources)}}function Yl(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function $e(e){return Qt(e)}function Qt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(Ke)}}function $l(e){return Kt(e,false)}function Kt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(Ye)}}function ru(e){return true}function iu(e){return Yt(e)}function Yt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(u),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function au(e){return $t(e,false)}function $t(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage}}function uu(e){return true}function b(e){return Pt(e)}function Pt(e,n){return e==null?e:{url:e.url==null?void 0:e.url}}function C(e){return Xt(e,false)}function Xt(e,n=false){return e==null?e:{url:e.url}}function xu(e){return true}function Nu(e){return Zt(e)}function Zt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(u),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Ou(e){return qt(e,false)}function qt(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage}}function Cu(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function Pe(e){return vt(e)}function vt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(h)}}function Iu(e){return jt(e,false)}function jt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(W)}}function Bu(e){return true}function Uu(e){return eo(e)}function eo(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(u),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Wu(e){return no(e,false)}function no(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage}}function Vu(e){return true}function f(e){return to(e)}function to(e,n){return e==null?e:{time:e.time==null?void 0:e.time,precision:e.precision==null?void 0:e.precision}}function S(e){return oo(e,false)}function oo(e,n=false){return e==null?e:{time:e.time,precision:e.precision}}function $u(e){return true}function Xe(e){return ro(e)}function ro(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label,startTime:e.startTime==null?void 0:f(e.startTime),endTime:e.endTime==null?void 0:f(e.endTime)}}function Ze(e){return io(e,false)}function io(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label,startTime:S(e.startTime),endTime:S(e.endTime)}}function Xu(e){return true}function k(e){return ao(e)}function ao(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label}}function w(e){return lo(e,false)}function lo(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label}}function oc(e){return true}function qe(e){return uo(e)}function uo(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label,startTime:e.startTime==null?void 0:f(e.startTime),endTime:e.endTime==null?void 0:f(e.endTime),employer:e.employer==null?void 0:k(e.employer)}}function ve(e){return co(e,false)}function co(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label,startTime:S(e.startTime),endTime:S(e.endTime),employer:w(e.employer)}}function Nc(e){return true}function je(e){return so(e)}function so(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,createdAt:e.createdAt==null?void 0:e.createdAt,updatedAt:e.updatedAt==null?void 0:e.updatedAt,name:e.name==null?void 0:e.name,gender:e.gender==null?void 0:k(e.gender),dateOfBirth:e.dateOfBirth==null?void 0:f(e.dateOfBirth),dateOfDeath:e.dateOfDeath==null?void 0:f(e.dateOfDeath),description:e.description==null?void 0:e.description,aliases:e.aliases==null?void 0:e.aliases,occupation:e.occupation==null?void 0:e.occupation.map(k),position:e.position==null?void 0:e.position.map(qe),politicalParty:e.politicalParty==null?void 0:e.politicalParty.map(Xe),image:e.image==null?void 0:b(e.image),_abstract:e.abstract==null?void 0:e.abstract}}function en(e){return po(e,false)}function po(e,n=false){return e==null?e:{wikidataId:e.wikidataId,createdAt:e.createdAt,updatedAt:e.updatedAt,name:e.name,gender:w(e.gender),dateOfBirth:S(e.dateOfBirth),dateOfDeath:S(e.dateOfDeath),description:e.description,aliases:e.aliases,occupation:e.occupation==null?void 0:e.occupation.map(w),position:e.position==null?void 0:e.position.map(ve),politicalParty:e.politicalParty==null?void 0:e.politicalParty.map(Ze),image:C(e.image),abstract:e._abstract}}function bc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function nn(e){return yo(e)}function yo(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(je)}}function Cc(e){return mo(e,false)}function mo(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(en)}}function Hc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("articles"in e)||e.articles===void 0)}function tn(e){return fo(e)}function fo(e,n){return e==null?e:{status:e.status,numResults:e.numResults,articles:e.articles.map(T)}}function Dc(e){return So(e,false)}function So(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,articles:e.articles.map(g)}}function _c(e){return true}function on(e){return To(e)}function To(e,n){return e==null?e:{score:e.score==null?void 0:e.score,data:e.data==null?void 0:T(e.data)}}function rn(e){return go(e,false)}function go(e,n=false){return e==null?e:{score:e.score,data:g(e.data)}}var ce={CreatedAt:"createdAt",UpdatedAt:"updatedAt",Relevance:"relevance",Count:"count",TotalCount:"totalCount"};function Uc(e){for(let n in ce)if(Object.prototype.hasOwnProperty.call(ce,n)&&ce[n]===e)return true;return false}function Wc(e){return xo(e)}function xo(e,n){return e}function zc(e){return e}function Vc(e,n){return e}function Qc(e){return true}function M(e){return No(e)}function No(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function L(e){return Oo(e,false)}function Oo(e,n=false){return e==null?e:{name:e.name,count:e.count}}function nd(e){return true}function an(e){return Ro(e)}function Ro(e,n){return e==null?e:{id:e.id==null?void 0:e.id,domain:e.domain==null?void 0:e.domain,name:e.name==null?void 0:e.name,primaryRecordId:e.primaryRecordId==null?void 0:e.primaryRecordId,updatedAt:e.updatedAt==null?void 0:e.updatedAt,altNames:e.altNames==null?void 0:e.altNames,description:e.description==null?void 0:e.description,avgMonthlyPosts:e.avgMonthlyPosts==null?void 0:e.avgMonthlyPosts,paywall:e.paywall==null?void 0:e.paywall,location:e.location==null?void 0:G(e.location),topCategories:e.topCategories==null?void 0:e.topCategories.map(M),topTopics:e.topTopics==null?void 0:e.topTopics.map(M),topCountries:e.topCountries==null?void 0:e.topCountries.map(M),topLabels:e.topLabels==null?void 0:e.topLabels.map(M),avgBiasRating:e.avgBiasRating==null?void 0:e.avgBiasRating,adFontesBiasRating:e.adFontesBiasRating==null?void 0:e.adFontesBiasRating,allSidesBiasRating:e.allSidesBiasRating==null?void 0:e.allSidesBiasRating,mbfcBiasRating:e.mbfcBiasRating==null?void 0:e.mbfcBiasRating,monthlyVisits:e.monthlyVisits==null?void 0:e.monthlyVisits,globalRank:e.globalRank==null?void 0:e.globalRank,logoLarge:e.logoLarge==null?void 0:b(e.logoLarge),logoFavIcon:e.logoFavIcon==null?void 0:b(e.logoFavIcon),logoSquare:e.logoSquare==null?void 0:b(e.logoSquare)}}function ln(e){return Ao(e,false)}function Ao(e,n=false){return e==null?e:{id:e.id,domain:e.domain,name:e.name,primaryRecordId:e.primaryRecordId,updatedAt:e.updatedAt,altNames:e.altNames,description:e.description,avgMonthlyPosts:e.avgMonthlyPosts,paywall:e.paywall,location:Q(e.location),topCategories:e.topCategories==null?void 0:e.topCategories.map(L),topTopics:e.topTopics==null?void 0:e.topTopics.map(L),topCountries:e.topCountries==null?void 0:e.topCountries.map(L),topLabels:e.topLabels==null?void 0:e.topLabels.map(L),avgBiasRating:e.avgBiasRating,adFontesBiasRating:e.adFontesBiasRating,allSidesBiasRating:e.allSidesBiasRating,mbfcBiasRating:e.mbfcBiasRating,monthlyVisits:e.monthlyVisits,globalRank:e.globalRank,logoLarge:C(e.logoLarge),logoFavIcon:C(e.logoFavIcon),logoSquare:C(e.logoSquare)}}function ad(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function un(e){return ho(e)}function ho(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(an)}}function ld(e){return bo(e,false)}function bo(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(ln)}}function pd(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function cn(e){return Co(e)}function Co(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(ne)}}function yd(e){return Io(e,false)}function Io(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(te)}}var fd={Title:"TITLE",Content:"CONTENT",Summary:"SUMMARY"},Sd={Articles:"ARTICLES",Clusters:"CLUSTERS"},Td={Gpt4o:"gpt-4o",Gpt4oMini:"gpt-4o-mini",Gpt41:"gpt-4.1",Gpt41Mini:"gpt-4.1-mini",Gpt41Nano:"gpt-4.1-nano",Llama3370bVersatile:"llama-3.3-70b-versatile",DeepseekR1DistillLlama70b:"deepseek-r1-distill-llama-70b"};function gd(e){return true}function xd(e){return Jo(e)}function Jo(e,n){return e==null?e:{prompt:e.prompt==null?void 0:e.prompt,maxArticleCount:e.maxArticleCount==null?void 0:e.maxArticleCount,returnedArticleCount:e.returnedArticleCount==null?void 0:e.returnedArticleCount,summarizeFields:e.summarizeFields==null?void 0:e.summarizeFields,method:e.method==null?void 0:e.method,model:e.model==null?void 0:e.model,temperature:e.temperature==null?void 0:e.temperature,topP:e.topP==null?void 0:e.topP,maxTokens:e.maxTokens==null?void 0:e.maxTokens}}function dn(e){return Eo(e,false)}function Eo(e,n=false){return e==null?e:{prompt:e.prompt,maxArticleCount:e.maxArticleCount,returnedArticleCount:e.returnedArticleCount,summarizeFields:e.summarizeFields,method:e.method,model:e.model,temperature:e.temperature,topP:e.topP,maxTokens:e.maxTokens}}function hd(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("summary"in e)||e.summary===void 0||!("results"in e)||e.results===void 0)}function sn(e){return Fo(e)}function Fo(e,n){return e==null?e:{status:e.status,numResults:e.numResults,summary:e.summary,results:e.results.map(T)}}function bd(e){return Ho(e,false)}function Ho(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,summary:e.summary,results:e.results.map(g)}}var Ld={_100Continue:"100 CONTINUE",_101SwitchingProtocols:"101 SWITCHING_PROTOCOLS",_102Processing:"102 PROCESSING",_103Checkpoint:"103 CHECKPOINT",_200Ok:"200 OK",_201Created:"201 CREATED",_202Accepted:"202 ACCEPTED",_203NonAuthoritativeInformation:"203 NON_AUTHORITATIVE_INFORMATION",_204NoContent:"204 NO_CONTENT",_205ResetContent:"205 RESET_CONTENT",_206PartialContent:"206 PARTIAL_CONTENT",_207MultiStatus:"207 MULTI_STATUS",_208AlreadyReported:"208 ALREADY_REPORTED",_226ImUsed:"226 IM_USED",_300MultipleChoices:"300 MULTIPLE_CHOICES",_301MovedPermanently:"301 MOVED_PERMANENTLY",_302Found:"302 FOUND",_302MovedTemporarily:"302 MOVED_TEMPORARILY",_303SeeOther:"303 SEE_OTHER",_304NotModified:"304 NOT_MODIFIED",_305UseProxy:"305 USE_PROXY",_307TemporaryRedirect:"307 TEMPORARY_REDIRECT",_308PermanentRedirect:"308 PERMANENT_REDIRECT",_400BadRequest:"400 BAD_REQUEST",_401Unauthorized:"401 UNAUTHORIZED",_402PaymentRequired:"402 PAYMENT_REQUIRED",_403Forbidden:"403 FORBIDDEN",_404NotFound:"404 NOT_FOUND",_405MethodNotAllowed:"405 METHOD_NOT_ALLOWED",_406NotAcceptable:"406 NOT_ACCEPTABLE",_407ProxyAuthenticationRequired:"407 PROXY_AUTHENTICATION_REQUIRED",_408RequestTimeout:"408 REQUEST_TIMEOUT",_409Conflict:"409 CONFLICT",_410Gone:"410 GONE",_411LengthRequired:"411 LENGTH_REQUIRED",_412PreconditionFailed:"412 PRECONDITION_FAILED",_413PayloadTooLarge:"413 PAYLOAD_TOO_LARGE",_413RequestEntityTooLarge:"413 REQUEST_ENTITY_TOO_LARGE",_414UriTooLong:"414 URI_TOO_LONG",_414RequestUriTooLong:"414 REQUEST_URI_TOO_LONG",_415UnsupportedMediaType:"415 UNSUPPORTED_MEDIA_TYPE",_416RequestedRangeNotSatisfiable:"416 REQUESTED_RANGE_NOT_SATISFIABLE",_417ExpectationFailed:"417 EXPECTATION_FAILED",_418IAmATeapot:"418 I_AM_A_TEAPOT",_419InsufficientSpaceOnResource:"419 INSUFFICIENT_SPACE_ON_RESOURCE",_420MethodFailure:"420 METHOD_FAILURE",_421DestinationLocked:"421 DESTINATION_LOCKED",_422UnprocessableEntity:"422 UNPROCESSABLE_ENTITY",_423Locked:"423 LOCKED",_424FailedDependency:"424 FAILED_DEPENDENCY",_425TooEarly:"425 TOO_EARLY",_426UpgradeRequired:"426 UPGRADE_REQUIRED",_428PreconditionRequired:"428 PRECONDITION_REQUIRED",_429TooManyRequests:"429 TOO_MANY_REQUESTS",_431RequestHeaderFieldsTooLarge:"431 REQUEST_HEADER_FIELDS_TOO_LARGE",_451UnavailableForLegalReasons:"451 UNAVAILABLE_FOR_LEGAL_REASONS",_500InternalServerError:"500 INTERNAL_SERVER_ERROR",_501NotImplemented:"501 NOT_IMPLEMENTED",_502BadGateway:"502 BAD_GATEWAY",_503ServiceUnavailable:"503 SERVICE_UNAVAILABLE",_504GatewayTimeout:"504 GATEWAY_TIMEOUT",_505HttpVersionNotSupported:"505 HTTP_VERSION_NOT_SUPPORTED",_506VariantAlsoNegotiates:"506 VARIANT_ALSO_NEGOTIATES",_507InsufficientStorage:"507 INSUFFICIENT_STORAGE",_508LoopDetected:"508 LOOP_DETECTED",_509BandwidthLimitExceeded:"509 BANDWIDTH_LIMIT_EXCEEDED",_510NotExtended:"510 NOT_EXTENDED",_511NetworkAuthenticationRequired:"511 NETWORK_AUTHENTICATION_REQUIRED"};function _d(e){return true}function Bd(e){return Do(e)}function Do(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(u),status:e.status==null?void 0:e.status,message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Ud(e){return ko(e,false)}function ko(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),status:e.status,message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage}}function zd(e){return true}function pn(e){return wo(e)}function wo(e,n){return e==null?e:{category:e.category==null?void 0:e.category,subcategory:e.subcategory==null?void 0:e.subcategory}}function yn(e){return Mo(e,false)}function Mo(e,n=false){return e==null?e:{category:e.category,subcategory:e.subcategory}}function Yd(e){return true}function mn(e){return Lo(e)}function Lo(e,n){return e==null?e:{id:e.id==null?void 0:e.id,createdAt:e.createdAt==null?void 0:new Date(e.createdAt),updatedAt:e.updatedAt==null?void 0:new Date(e.updatedAt),name:e.name==null?void 0:e.name,labels:e.labels==null?void 0:pn(e.labels)}}function fn(e){return _o(e,false)}function _o(e,n=false){return e==null?e:{id:e.id,createdAt:e.createdAt==null?void 0:e.createdAt.toISOString(),updatedAt:e.updatedAt==null?void 0:e.updatedAt.toISOString(),name:e.name,labels:yn(e.labels)}}function qd(e){return !(!("total"in e)||e.total===void 0||!("data"in e)||e.data===void 0)}function Sn(e){return Bo(e)}function Bo(e,n){return e==null?e:{total:e.total,data:e.data.map(mn)}}function vd(e){return Uo(e,false)}function Uo(e,n=false){return e==null?e:{total:e.total,data:e.data.map(fn)}}function os(e){return !(!("status"in e)||e.status===void 0||!("results"in e)||e.results===void 0)}function Tn(e){return Wo(e)}function Wo(e,n){return e==null?e:{status:e.status,results:e.results.map(on)}}function rs(e){return zo(e,false)}function zo(e,n=false){return e==null?e:{status:e.status,results:e.results.map(rn)}}var gn=class extends B{async getJournalistByIdRaw(n,o){if(n.id==null)throw new x("id",'Required parameter "id" was null or undefined when calling getJournalistById().');let t={},r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/journalists/{id}".replace("{id}",encodeURIComponent(String(n.id))),method:"GET",headers:r,query:t},o);return new d(a,i=>h(i))}async getJournalistById(n,o){return await(await this.getJournalistByIdRaw(n,o)).value()}async searchArticlesRaw(n,o){let t={};n.q!=null&&(t.q=n.q),n.title!=null&&(t.title=n.title),n.desc!=null&&(t.desc=n.desc),n.content!=null&&(t.content=n.content),n.url!=null&&(t.url=n.url),n.articleId!=null&&(t.articleId=n.articleId),n.clusterId!=null&&(t.clusterId=n.clusterId),n.sortBy!=null&&(t.sortBy=n.sortBy),n.page!=null&&(t.page=n.page),n.size!=null&&(t.size=n.size),n.from!=null&&(t.from=n.from.toISOString()),n.to!=null&&(t.to=n.to.toISOString()),n.addDateFrom!=null&&(t.addDateFrom=n.addDateFrom.toISOString()),n.addDateTo!=null&&(t.addDateTo=n.addDateTo.toISOString()),n.refreshDateFrom!=null&&(t.refreshDateFrom=n.refreshDateFrom.toISOString()),n.refreshDateTo!=null&&(t.refreshDateTo=n.refreshDateTo.toISOString()),n.medium!=null&&(t.medium=n.medium),n.source!=null&&(t.source=n.source),n.sourceGroup!=null&&(t.sourceGroup=n.sourceGroup),n.excludeSourceGroup!=null&&(t.excludeSourceGroup=n.excludeSourceGroup),n.excludeSource!=null&&(t.excludeSource=n.excludeSource),n.paywall!=null&&(t.paywall=n.paywall),n.byline!=null&&(t.byline=n.byline),n.author!=null&&(t.author=n.author),n.excludeAuthor!=null&&(t.excludeAuthor=n.excludeAuthor),n.journalistId!=null&&(t.journalistId=n.journalistId),n.excludeJournalistId!=null&&(t.excludeJournalistId=n.excludeJournalistId),n.language!=null&&(t.language=n.language),n.excludeLanguage!=null&&(t.excludeLanguage=n.excludeLanguage),n.searchTranslation!=null&&(t.searchTranslation=n.searchTranslation),n.label!=null&&(t.label=n.label),n.excludeLabel!=null&&(t.excludeLabel=n.excludeLabel),n.category!=null&&(t.category=n.category),n.excludeCategory!=null&&(t.excludeCategory=n.excludeCategory),n.topic!=null&&(t.topic=n.topic),n.excludeTopic!=null&&(t.excludeTopic=n.excludeTopic),n.linkTo!=null&&(t.linkTo=n.linkTo),n.showReprints!=null&&(t.showReprints=n.showReprints),n.reprintGroupId!=null&&(t.reprintGroupId=n.reprintGroupId),n.city!=null&&(t.city=n.city),n.excludeCity!=null&&(t.excludeCity=n.excludeCity),n.area!=null&&(t.area=n.area),n.state!=null&&(t.state=n.state),n.excludeState!=null&&(t.excludeState=n.excludeState),n.county!=null&&(t.county=n.county),n.excludeCounty!=null&&(t.excludeCounty=n.excludeCounty),n.locationsCountry!=null&&(t.locationsCountry=n.locationsCountry),n.country!=null&&(t.country=n.country),n.excludeLocationsCountry!=null&&(t.excludeLocationsCountry=n.excludeLocationsCountry),n.location!=null&&(t.location=n.location),n.lat!=null&&(t.lat=n.lat),n.lon!=null&&(t.lon=n.lon),n.maxDistance!=null&&(t.maxDistance=n.maxDistance),n.sourceCity!=null&&(t.sourceCity=n.sourceCity),n.sourceCounty!=null&&(t.sourceCounty=n.sourceCounty),n.sourceCountry!=null&&(t.sourceCountry=n.sourceCountry),n.sourceState!=null&&(t.sourceState=n.sourceState),n.sourceLat!=null&&(t.sourceLat=n.sourceLat),n.sourceLon!=null&&(t.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(t.sourceMaxDistance=n.sourceMaxDistance),n.personWikidataId!=null&&(t.personWikidataId=n.personWikidataId),n.excludePersonWikidataId!=null&&(t.excludePersonWikidataId=n.excludePersonWikidataId),n.personName!=null&&(t.personName=n.personName),n.excludePersonName!=null&&(t.excludePersonName=n.excludePersonName),n.companyId!=null&&(t.companyId=n.companyId),n.excludeCompanyId!=null&&(t.excludeCompanyId=n.excludeCompanyId),n.companyName!=null&&(t.companyName=n.companyName),n.companyDomain!=null&&(t.companyDomain=n.companyDomain),n.excludeCompanyDomain!=null&&(t.excludeCompanyDomain=n.excludeCompanyDomain),n.companySymbol!=null&&(t.companySymbol=n.companySymbol),n.excludeCompanySymbol!=null&&(t.excludeCompanySymbol=n.excludeCompanySymbol),n.showNumResults!=null&&(t.showNumResults=n.showNumResults),n.positiveSentimentFrom!=null&&(t.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(t.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(t.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(t.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(t.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(t.negativeSentimentTo=n.negativeSentimentTo),n.taxonomy!=null&&(t.taxonomy=n.taxonomy),n.prefixTaxonomy!=null&&(t.prefixTaxonomy=n.prefixTaxonomy);let r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/all",method:"GET",headers:r,query:t},o);return new d(a,i=>tn(i))}async searchArticles(n={},o){return await(await this.searchArticlesRaw(n,o)).value()}async searchCompaniesRaw(n,o){let t={};n.id!=null&&(t.id=n.id),n.symbol!=null&&(t.symbol=n.symbol),n.domain!=null&&(t.domain=n.domain),n.country!=null&&(t.country=n.country),n.exchange!=null&&(t.exchange=n.exchange),n.numEmployeesFrom!=null&&(t.numEmployeesFrom=n.numEmployeesFrom),n.numEmployeesTo!=null&&(t.numEmployeesTo=n.numEmployeesTo),n.ipoFrom!=null&&(t.ipoFrom=n.ipoFrom.toISOString()),n.ipoTo!=null&&(t.ipoTo=n.ipoTo.toISOString()),n.q!=null&&(t.q=n.q),n.name!=null&&(t.name=n.name),n.industry!=null&&(t.industry=n.industry),n.sector!=null&&(t.sector=n.sector),n.size!=null&&(t.size=n.size),n.page!=null&&(t.page=n.page);let r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/companies/all",method:"GET",headers:r,query:t},o);return new d(a,i=>$e(i))}async searchCompanies(n={},o){return await(await this.searchCompaniesRaw(n,o)).value()}async searchJournalists1Raw(n,o){let t={};n.id!=null&&(t.id=n.id),n.q!=null&&(t.q=n.q),n.name!=null&&(t.name=n.name),n.twitter!=null&&(t.twitter=n.twitter),n.size!=null&&(t.size=n.size),n.page!=null&&(t.page=n.page),n.source!=null&&(t.source=n.source),n.topic!=null&&(t.topic=n.topic),n.category!=null&&(t.category=n.category),n.label!=null&&(t.label=n.label),n.minMonthlyPosts!=null&&(t.minMonthlyPosts=n.minMonthlyPosts),n.maxMonthlyPosts!=null&&(t.maxMonthlyPosts=n.maxMonthlyPosts),n.country!=null&&(t.country=n.country),n.updatedAtFrom!=null&&(t.updatedAtFrom=n.updatedAtFrom.toISOString()),n.updatedAtTo!=null&&(t.updatedAtTo=n.updatedAtTo.toISOString()),n.showNumResults!=null&&(t.showNumResults=n.showNumResults);let r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/journalists/all",method:"GET",headers:r,query:t},o);return new d(a,i=>Pe(i))}async searchJournalists1(n={},o){return await(await this.searchJournalists1Raw(n,o)).value()}async searchPeopleRaw(n,o){let t={};n.name!=null&&(t.name=n.name),n.wikidataId!=null&&(t.wikidataId=n.wikidataId),n.occupationId!=null&&(t.occupationId=n.occupationId),n.occupationLabel!=null&&(t.occupationLabel=n.occupationLabel),n.page!=null&&(t.page=n.page),n.size!=null&&(t.size=n.size);let r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/people/all",method:"GET",headers:r,query:t},o);return new d(a,i=>nn(i))}async searchPeople(n={},o){return await(await this.searchPeopleRaw(n,o)).value()}async searchSourcesRaw(n,o){let t={};n.domain!=null&&(t.domain=n.domain),n.name!=null&&(t.name=n.name),n.sourceGroup!=null&&(t.sourceGroup=n.sourceGroup),n.sortBy!=null&&(t.sortBy=n.sortBy),n.page!=null&&(t.page=n.page),n.size!=null&&(t.size=n.size),n.minMonthlyVisits!=null&&(t.minMonthlyVisits=n.minMonthlyVisits),n.maxMonthlyVisits!=null&&(t.maxMonthlyVisits=n.maxMonthlyVisits),n.minMonthlyPosts!=null&&(t.minMonthlyPosts=n.minMonthlyPosts),n.maxMonthlyPosts!=null&&(t.maxMonthlyPosts=n.maxMonthlyPosts),n.country!=null&&(t.country=n.country),n.sourceCountry!=null&&(t.sourceCountry=n.sourceCountry),n.sourceState!=null&&(t.sourceState=n.sourceState),n.sourceCounty!=null&&(t.sourceCounty=n.sourceCounty),n.sourceCity!=null&&(t.sourceCity=n.sourceCity),n.sourceLat!=null&&(t.sourceLat=n.sourceLat),n.sourceLon!=null&&(t.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(t.sourceMaxDistance=n.sourceMaxDistance),n.category!=null&&(t.category=n.category),n.topic!=null&&(t.topic=n.topic),n.label!=null&&(t.label=n.label),n.paywall!=null&&(t.paywall=n.paywall),n.showSubdomains!=null&&(t.showSubdomains=n.showSubdomains),n.showNumResults!=null&&(t.showNumResults=n.showNumResults);let r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/sources/all",method:"GET",headers:r,query:t},o);return new d(a,i=>un(i))}async searchSources(n={},o){return await(await this.searchSourcesRaw(n,o)).value()}async searchStoriesRaw(n,o){let t={};n.q!=null&&(t.q=n.q),n.name!=null&&(t.name=n.name),n.clusterId!=null&&(t.clusterId=n.clusterId),n.sortBy!=null&&(t.sortBy=n.sortBy),n.page!=null&&(t.page=n.page),n.size!=null&&(t.size=n.size),n.from!=null&&(t.from=n.from.toISOString()),n.to!=null&&(t.to=n.to.toISOString()),n.topic!=null&&(t.topic=n.topic),n.category!=null&&(t.category=n.category),n.taxonomy!=null&&(t.taxonomy=n.taxonomy),n.source!=null&&(t.source=n.source),n.sourceGroup!=null&&(t.sourceGroup=n.sourceGroup),n.minUniqueSources!=null&&(t.minUniqueSources=n.minUniqueSources),n.personWikidataId!=null&&(t.personWikidataId=n.personWikidataId),n.personName!=null&&(t.personName=n.personName),n.companyId!=null&&(t.companyId=n.companyId),n.companyName!=null&&(t.companyName=n.companyName),n.companyDomain!=null&&(t.companyDomain=n.companyDomain),n.companySymbol!=null&&(t.companySymbol=n.companySymbol),n.country!=null&&(t.country=n.country),n.state!=null&&(t.state=n.state),n.city!=null&&(t.city=n.city),n.area!=null&&(t.area=n.area),n.minClusterSize!=null&&(t.minClusterSize=n.minClusterSize),n.maxClusterSize!=null&&(t.maxClusterSize=n.maxClusterSize),n.nameExists!=null&&(t.nameExists=n.nameExists),n.positiveSentimentFrom!=null&&(t.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(t.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(t.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(t.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(t.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(t.negativeSentimentTo=n.negativeSentimentTo),n.initializedFrom!=null&&(t.initializedFrom=n.initializedFrom.toISOString()),n.initializedTo!=null&&(t.initializedTo=n.initializedTo.toISOString()),n.updatedFrom!=null&&(t.updatedFrom=n.updatedFrom.toISOString()),n.updatedTo!=null&&(t.updatedTo=n.updatedTo.toISOString()),n.showStoryPageInfo!=null&&(t.showStoryPageInfo=n.showStoryPageInfo),n.showNumResults!=null&&(t.showNumResults=n.showNumResults),n.showDuplicates!=null&&(t.showDuplicates=n.showDuplicates),n.excludeClusterId!=null&&(t.excludeClusterId=n.excludeClusterId);let r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/stories/all",method:"GET",headers:r,query:t},o);return new d(a,i=>cn(i))}async searchStories(n={},o){return await(await this.searchStoriesRaw(n,o)).value()}async searchSummarizerRaw(n,o){if(n.summaryBody==null)throw new x("summaryBody",'Required parameter "summaryBody" was null or undefined when calling searchSummarizer().');let t={};n.q!=null&&(t.q=n.q),n.title!=null&&(t.title=n.title),n.desc!=null&&(t.desc=n.desc),n.content!=null&&(t.content=n.content),n.url!=null&&(t.url=n.url),n.articleId!=null&&(t.articleId=n.articleId),n.clusterId!=null&&(t.clusterId=n.clusterId),n.sortBy!=null&&(t.sortBy=n.sortBy),n.page!=null&&(t.page=n.page),n.size!=null&&(t.size=n.size),n.from!=null&&(t.from=n.from.toISOString()),n.to!=null&&(t.to=n.to.toISOString()),n.addDateFrom!=null&&(t.addDateFrom=n.addDateFrom.toISOString()),n.addDateTo!=null&&(t.addDateTo=n.addDateTo.toISOString()),n.refreshDateFrom!=null&&(t.refreshDateFrom=n.refreshDateFrom.toISOString()),n.refreshDateTo!=null&&(t.refreshDateTo=n.refreshDateTo.toISOString()),n.medium!=null&&(t.medium=n.medium),n.source!=null&&(t.source=n.source),n.sourceGroup!=null&&(t.sourceGroup=n.sourceGroup),n.excludeSourceGroup!=null&&(t.excludeSourceGroup=n.excludeSourceGroup),n.excludeSource!=null&&(t.excludeSource=n.excludeSource),n.paywall!=null&&(t.paywall=n.paywall),n.byline!=null&&(t.byline=n.byline),n.author!=null&&(t.author=n.author),n.excludeAuthor!=null&&(t.excludeAuthor=n.excludeAuthor),n.journalistId!=null&&(t.journalistId=n.journalistId),n.excludeJournalistId!=null&&(t.excludeJournalistId=n.excludeJournalistId),n.language!=null&&(t.language=n.language),n.excludeLanguage!=null&&(t.excludeLanguage=n.excludeLanguage),n.searchTranslation!=null&&(t.searchTranslation=n.searchTranslation),n.label!=null&&(t.label=n.label),n.excludeLabel!=null&&(t.excludeLabel=n.excludeLabel),n.category!=null&&(t.category=n.category),n.excludeCategory!=null&&(t.excludeCategory=n.excludeCategory),n.topic!=null&&(t.topic=n.topic),n.excludeTopic!=null&&(t.excludeTopic=n.excludeTopic),n.linkTo!=null&&(t.linkTo=n.linkTo),n.showReprints!=null&&(t.showReprints=n.showReprints),n.reprintGroupId!=null&&(t.reprintGroupId=n.reprintGroupId),n.city!=null&&(t.city=n.city),n.excludeCity!=null&&(t.excludeCity=n.excludeCity),n.area!=null&&(t.area=n.area),n.state!=null&&(t.state=n.state),n.excludeState!=null&&(t.excludeState=n.excludeState),n.county!=null&&(t.county=n.county),n.excludeCounty!=null&&(t.excludeCounty=n.excludeCounty),n.locationsCountry!=null&&(t.locationsCountry=n.locationsCountry),n.country!=null&&(t.country=n.country),n.excludeLocationsCountry!=null&&(t.excludeLocationsCountry=n.excludeLocationsCountry),n.location!=null&&(t.location=n.location),n.lat!=null&&(t.lat=n.lat),n.lon!=null&&(t.lon=n.lon),n.maxDistance!=null&&(t.maxDistance=n.maxDistance),n.sourceCity!=null&&(t.sourceCity=n.sourceCity),n.sourceCounty!=null&&(t.sourceCounty=n.sourceCounty),n.sourceCountry!=null&&(t.sourceCountry=n.sourceCountry),n.sourceState!=null&&(t.sourceState=n.sourceState),n.sourceLat!=null&&(t.sourceLat=n.sourceLat),n.sourceLon!=null&&(t.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(t.sourceMaxDistance=n.sourceMaxDistance),n.personWikidataId!=null&&(t.personWikidataId=n.personWikidataId),n.excludePersonWikidataId!=null&&(t.excludePersonWikidataId=n.excludePersonWikidataId),n.personName!=null&&(t.personName=n.personName),n.excludePersonName!=null&&(t.excludePersonName=n.excludePersonName),n.companyId!=null&&(t.companyId=n.companyId),n.excludeCompanyId!=null&&(t.excludeCompanyId=n.excludeCompanyId),n.companyName!=null&&(t.companyName=n.companyName),n.companyDomain!=null&&(t.companyDomain=n.companyDomain),n.excludeCompanyDomain!=null&&(t.excludeCompanyDomain=n.excludeCompanyDomain),n.companySymbol!=null&&(t.companySymbol=n.companySymbol),n.excludeCompanySymbol!=null&&(t.excludeCompanySymbol=n.excludeCompanySymbol),n.showNumResults!=null&&(t.showNumResults=n.showNumResults),n.positiveSentimentFrom!=null&&(t.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(t.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(t.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(t.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(t.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(t.negativeSentimentTo=n.negativeSentimentTo),n.taxonomy!=null&&(t.taxonomy=n.taxonomy),n.prefixTaxonomy!=null&&(t.prefixTaxonomy=n.prefixTaxonomy);let r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/summarize",method:"POST",headers:r,query:t,body:dn(n.summaryBody)},o);return new d(a,i=>sn(i))}async searchSummarizer(n,o){return await(await this.searchSummarizerRaw(n,o)).value()}async searchTopicsRaw(n,o){let t={};n.name!=null&&(t.name=n.name),n.category!=null&&(t.category=n.category),n.subcategory!=null&&(t.subcategory=n.subcategory),n.page!=null&&(t.page=n.page),n.size!=null&&(t.size=n.size);let r={};if(this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/topics/all",method:"GET",headers:r,query:t},o);return new d(a,i=>Sn(i))}async searchTopics(n={},o){return await(await this.searchTopicsRaw(n,o)).value()}async vectorSearchArticlesRaw(n,o){if(n.articleSearchParams==null)throw new x("articleSearchParams",'Required parameter "articleSearchParams" was null or undefined when calling vectorSearchArticles().');let t={},r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let i=this.configuration.accessToken,l=await i("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/vector/news/all",method:"POST",headers:r,query:t,body:We(n.articleSearchParams)},o);return new d(a,i=>Tn(i))}async vectorSearchArticles(n,o){return await(await this.vectorSearchArticlesRaw(n,o)).value()}};
|
|
2
|
-
exports.AllEndpointSortBy=ae;exports.AllEndpointSortByFromJSON=$o;exports.AllEndpointSortByFromJSONTyped=bn;exports.AllEndpointSortByToJSON=Po;exports.AllEndpointSortByToJSONTyped=Xo;exports.ArticleFromJSON=T;exports.ArticleFromJSONTyped=Rt;exports.ArticleSearchFilterFromJSON=H;exports.ArticleSearchFilterFromJSONTyped=Ct;exports.ArticleSearchFilterToJSON=D;exports.ArticleSearchFilterToJSONTyped=It;exports.ArticleSearchParamsFromJSON=ol;exports.ArticleSearchParamsFromJSONTyped=Jt;exports.ArticleSearchParamsToJSON=We;exports.ArticleSearchParamsToJSONTyped=Et;exports.ArticleToJSON=g;exports.ArticleToJSONTyped=At;exports.AuthExceptionFromJSON=Jl;exports.AuthExceptionFromJSONTyped=Lt;exports.AuthExceptionStatusCodeEnum=Cl;exports.AuthExceptionToJSON=El;exports.AuthExceptionToJSONTyped=_t;exports.BASE_PATH=Nn;exports.BaseAPI=B;exports.BlobApiResponse=pe;exports.COLLECTION_FORMATS=Vo;exports.CategoryHolderFromJSON=I;exports.CategoryHolderFromJSONTyped=Vn;exports.CategoryHolderToJSON=J;exports.CategoryHolderToJSONTyped=Gn;exports.CategoryWithScoreHolderFromJSON=we;exports.CategoryWithScoreHolderFromJSONTyped=St;exports.CategoryWithScoreHolderToJSON=Me;exports.CategoryWithScoreHolderToJSONTyped=Tt;exports.CompanyCountFromJSON=he;exports.CompanyCountFromJSONTyped=et;exports.CompanyCountToJSON=be;exports.CompanyCountToJSONTyped=nt;exports.CompanyFromJSON=Ke;exports.CompanyFromJSONTyped=Vt;exports.CompanyHolderFromJSON=$;exports.CompanyHolderFromJSONTyped=Bn;exports.CompanyHolderToJSON=P;exports.CompanyHolderToJSONTyped=Un;exports.CompanySearchResultFromJSON=$e;exports.CompanySearchResultFromJSONTyped=Qt;exports.CompanySearchResultToJSON=$l;exports.CompanySearchResultToJSONTyped=Kt;exports.CompanyToJSON=Ye;exports.CompanyToJSONTyped=Gt;exports.Configuration=oe;exports.CoordinateFilterFromJSON=le;exports.CoordinateFilterFromJSONTyped=ht;exports.CoordinateFilterToJSON=ue;exports.CoordinateFilterToJSONTyped=bt;exports.CoordinateFromJSON=z;exports.CoordinateFromJSONTyped=Dn;exports.CoordinateToJSON=V;exports.CoordinateToJSONTyped=kn;exports.DefaultConfig=On;exports.EntityHolderFromJSON=Se;exports.EntityHolderFromJSONTyped=Wn;exports.EntityHolderToJSON=Te;exports.EntityHolderToJSONTyped=zn;exports.EventTypeHolderFromJSON=De;exports.EventTypeHolderFromJSONTyped=mt;exports.EventTypeHolderToJSON=ke;exports.EventTypeHolderToJSONTyped=ft;exports.FetchError=ie;exports.IdNameHolderFromJSON=Be;exports.IdNameHolderFromJSONTyped=Nt;exports.IdNameHolderToJSON=Ue;exports.IdNameHolderToJSONTyped=Ot;exports.IllegalParameterExceptionFromJSON=iu;exports.IllegalParameterExceptionFromJSONTyped=Yt;exports.IllegalParameterExceptionToJSON=au;exports.IllegalParameterExceptionToJSONTyped=$t;exports.ImageHolderFromJSON=b;exports.ImageHolderFromJSONTyped=Pt;exports.ImageHolderToJSON=C;exports.ImageHolderToJSONTyped=Xt;exports.InternalErrorExceptionFromJSON=Nu;exports.InternalErrorExceptionFromJSONTyped=Zt;exports.InternalErrorExceptionToJSON=Ou;exports.InternalErrorExceptionToJSONTyped=qt;exports.JSONApiResponse=d;exports.JournalistFromJSON=h;exports.JournalistFromJSONTyped=Fn;exports.JournalistSearchResultFromJSON=Pe;exports.JournalistSearchResultFromJSONTyped=vt;exports.JournalistSearchResultToJSON=Iu;exports.JournalistSearchResultToJSONTyped=jt;exports.JournalistToJSON=W;exports.JournalistToJSONTyped=Hn;exports.KeyPointFromJSON=Ce;exports.KeyPointFromJSONTyped=tt;exports.KeyPointToJSON=Ie;exports.KeyPointToJSONTyped=ot;exports.KeywordHolderFromJSON=Fe;exports.KeywordHolderFromJSONTyped=pt;exports.KeywordHolderToJSON=He;exports.KeywordHolderToJSONTyped=yt;exports.LabelHolderFromJSON=ge;exports.LabelHolderFromJSONTyped=Yn;exports.LabelHolderToJSON=xe;exports.LabelHolderToJSONTyped=$n;exports.LocationCountFromJSON=Re;exports.LocationCountFromJSONTyped=vn;exports.LocationCountToJSON=Ae;exports.LocationCountToJSONTyped=jn;exports.LocationHolderFromJSON=R;exports.LocationHolderFromJSONTyped=Jn;exports.LocationHolderToJSON=A;exports.LocationHolderToJSONTyped=En;exports.NameCountFromJSON=N;exports.NameCountFromJSONTyped=Cn;exports.NameCountToJSON=O;exports.NameCountToJSONTyped=In;exports.NewsClusterFromJSON=ne;exports.NewsClusterFromJSONTyped=dt;exports.NewsClusterToJSON=te;exports.NewsClusterToJSONTyped=st;exports.NotFoundExceptionFromJSON=Uu;exports.NotFoundExceptionFromJSONTyped=eo;exports.NotFoundExceptionToJSON=Wu;exports.NotFoundExceptionToJSONTyped=no;exports.PeopleSearchResultFromJSON=nn;exports.PeopleSearchResultFromJSONTyped=yo;exports.PeopleSearchResultToJSON=Cc;exports.PeopleSearchResultToJSONTyped=mo;exports.PersonCountFromJSON=Ne;exports.PersonCountFromJSONTyped=Zn;exports.PersonCountToJSON=Oe;exports.PersonCountToJSONTyped=qn;exports.PersonFromJSON=je;exports.PersonFromJSONTyped=so;exports.PersonHolderFromJSON=X;exports.PersonHolderFromJSONTyped=Qn;exports.PersonHolderToJSON=Z;exports.PersonHolderToJSONTyped=Kn;exports.PersonToJSON=en;exports.PersonToJSONTyped=po;exports.PlaceFromJSON=Le;exports.PlaceFromJSONTyped=gt;exports.PlaceToJSON=_e;exports.PlaceToJSONTyped=xt;exports.QuerySearchResultFromJSON=tn;exports.QuerySearchResultFromJSONTyped=fo;exports.QuerySearchResultToJSON=Dc;exports.QuerySearchResultToJSONTyped=So;exports.QuestionFromJSON=Je;exports.QuestionFromJSONTyped=at;exports.QuestionToJSON=Ee;exports.QuestionToJSONTyped=lt;exports.RecordStatHolderFromJSON=E;exports.RecordStatHolderFromJSONTyped=Pn;exports.RecordStatHolderToJSON=F;exports.RecordStatHolderToJSONTyped=Xn;exports.RequiredError=x;exports.ResponseError=re;exports.ScoredArticleFromJSON=on;exports.ScoredArticleFromJSONTyped=To;exports.ScoredArticleToJSON=rn;exports.ScoredArticleToJSONTyped=go;exports.SentimentHolderFromJSON=j;exports.SentimentHolderFromJSONTyped=ut;exports.SentimentHolderToJSON=ee;exports.SentimentHolderToJSONTyped=ct;exports.SortBy=ce;exports.SortByFromJSON=Wc;exports.SortByFromJSONTyped=xo;exports.SortByToJSON=zc;exports.SortByToJSONTyped=Vc;exports.SourceFromJSON=an;exports.SourceFromJSONTyped=Ro;exports.SourceHolderFromJSON=K;exports.SourceHolderFromJSONTyped=Ln;exports.SourceHolderToJSON=Y;exports.SourceHolderToJSONTyped=_n;exports.SourceLocationFromJSON=G;exports.SourceLocationFromJSONTyped=wn;exports.SourceLocationToJSON=Q;exports.SourceLocationToJSONTyped=Mn;exports.SourceSearchResultFromJSON=un;exports.SourceSearchResultFromJSONTyped=ho;exports.SourceSearchResultToJSON=ld;exports.SourceSearchResultToJSONTyped=bo;exports.SourceToJSON=ln;exports.SourceToJSONTyped=Ao;exports.SourceTopStatHolderFromJSON=M;exports.SourceTopStatHolderFromJSONTyped=No;exports.SourceTopStatHolderToJSON=L;exports.SourceTopStatHolderToJSONTyped=Oo;exports.StorySearchResultFromJSON=cn;exports.StorySearchResultFromJSONTyped=Co;exports.StorySearchResultToJSON=yd;exports.StorySearchResultToJSONTyped=Io;exports.SummaryBodyFromJSON=xd;exports.SummaryBodyFromJSONTyped=Jo;exports.SummaryBodyMethodEnum=Sd;exports.SummaryBodyModelEnum=Td;exports.SummaryBodySummarizeFieldsEnum=fd;exports.SummaryBodyToJSON=dn;exports.SummaryBodyToJSONTyped=Eo;exports.SummarySearchResultFromJSON=sn;exports.SummarySearchResultFromJSONTyped=Fo;exports.SummarySearchResultToJSON=bd;exports.SummarySearchResultToJSONTyped=Ho;exports.SymbolHolderFromJSON=ze;exports.SymbolHolderFromJSONTyped=Bt;exports.SymbolHolderToJSON=Ve;exports.SymbolHolderToJSONTyped=Ut;exports.TextApiResponse=ye;exports.TooManyRequestsExceptionCauseFromJSON=s;exports.TooManyRequestsExceptionCauseFromJSONTyped=Dt;exports.TooManyRequestsExceptionCauseStackTraceInnerFromJSON=u;exports.TooManyRequestsExceptionCauseStackTraceInnerFromJSONTyped=Ft;exports.TooManyRequestsExceptionCauseStackTraceInnerToJSON=c;exports.TooManyRequestsExceptionCauseStackTraceInnerToJSONTyped=Ht;exports.TooManyRequestsExceptionCauseToJSON=p;exports.TooManyRequestsExceptionCauseToJSONTyped=kt;exports.TooManyRequestsExceptionFromJSON=Bd;exports.TooManyRequestsExceptionFromJSONTyped=Do;exports.TooManyRequestsExceptionStatusEnum=Ld;exports.TooManyRequestsExceptionSuppressedInnerFromJSON=y;exports.TooManyRequestsExceptionSuppressedInnerFromJSONTyped=wt;exports.TooManyRequestsExceptionSuppressedInnerToJSON=m;exports.TooManyRequestsExceptionSuppressedInnerToJSONTyped=Mt;exports.TooManyRequestsExceptionToJSON=Ud;exports.TooManyRequestsExceptionToJSONTyped=ko;exports.TopicDtoFromJSON=mn;exports.TopicDtoFromJSONTyped=Lo;exports.TopicDtoToJSON=fn;exports.TopicDtoToJSONTyped=_o;exports.TopicHolderFromJSON=q;exports.TopicHolderFromJSONTyped=rt;exports.TopicHolderToJSON=v;exports.TopicHolderToJSONTyped=it;exports.TopicLabelsFromJSON=pn;exports.TopicLabelsFromJSONTyped=wo;exports.TopicLabelsToJSON=yn;exports.TopicLabelsToJSONTyped=Mo;exports.TopicSearchResultFromJSON=Sn;exports.TopicSearchResultFromJSONTyped=Bo;exports.TopicSearchResultToJSON=vd;exports.TopicSearchResultToJSONTyped=Uo;exports.V1Api=gn;exports.VectorSearchResultFromJSON=Tn;exports.VectorSearchResultFromJSONTyped=Wo;exports.VectorSearchResultToJSON=rs;exports.VectorSearchResultToJSONTyped=zo;exports.VoidApiResponse=se;exports.WebResourcesFromJSON=Ge;exports.WebResourcesFromJSONTyped=Wt;exports.WebResourcesToJSON=Qe;exports.WebResourcesToJSONTyped=zt;exports.WikidataDateHolderFromJSON=f;exports.WikidataDateHolderFromJSONTyped=to;exports.WikidataDateHolderToJSON=S;exports.WikidataDateHolderToJSONTyped=oo;exports.WikidataLabelHolderFromJSON=k;exports.WikidataLabelHolderFromJSONTyped=ao;exports.WikidataLabelHolderToJSON=w;exports.WikidataLabelHolderToJSONTyped=lo;exports.WikidataPoliticalPartyHolderFromJSON=Xe;exports.WikidataPoliticalPartyHolderFromJSONTyped=ro;exports.WikidataPoliticalPartyHolderToJSON=Ze;exports.WikidataPoliticalPartyHolderToJSONTyped=io;exports.WikidataPositionHolderFromJSON=qe;exports.WikidataPositionHolderFromJSONTyped=uo;exports.WikidataPositionHolderToJSON=ve;exports.WikidataPositionHolderToJSONTyped=co;exports.canConsumeForm=Ko;exports.exists=Go;exports.instanceOfAllEndpointSortBy=Yo;exports.instanceOfArticle=Qa;exports.instanceOfArticleSearchFilter=qa;exports.instanceOfArticleSearchParams=tl;exports.instanceOfAuthException=Il;exports.instanceOfCategoryHolder=br;exports.instanceOfCategoryWithScoreHolder=zi;exports.instanceOfCompany=zl;exports.instanceOfCompanyCount=_r;exports.instanceOfCompanyHolder=Or;exports.instanceOfCompanySearchResult=Yl;exports.instanceOfCoordinate=cr;exports.instanceOfCoordinateFilter=Ya;exports.instanceOfEntityHolder=Ar;exports.instanceOfEventTypeHolder=Ui;exports.instanceOfIdNameHolder=Pi;exports.instanceOfIllegalParameterException=ru;exports.instanceOfImageHolder=uu;exports.instanceOfInternalErrorException=xu;exports.instanceOfJournalist=lr;exports.instanceOfJournalistSearchResult=Cu;exports.instanceOfKeyPoint=Ur;exports.instanceOfKeywordHolder=_i;exports.instanceOfLabelHolder=Er;exports.instanceOfLocationCount=Mr;exports.instanceOfLocationHolder=jo;exports.instanceOfNameCount=qo;exports.instanceOfNewsCluster=Mi;exports.instanceOfNotFoundException=Bu;exports.instanceOfPeopleSearchResult=bc;exports.instanceOfPerson=Nc;exports.instanceOfPersonCount=kr;exports.instanceOfPersonHolder=Ir;exports.instanceOfPlace=Yi;exports.instanceOfQuerySearchResult=Hc;exports.instanceOfQuestion=Gr;exports.instanceOfRecordStatHolder=Hr;exports.instanceOfScoredArticle=_c;exports.instanceOfSentimentHolder=Kr;exports.instanceOfSortBy=Uc;exports.instanceOfSource=nd;exports.instanceOfSourceHolder=xr;exports.instanceOfSourceLocation=mr;exports.instanceOfSourceSearchResult=ad;exports.instanceOfSourceTopStatHolder=Qc;exports.instanceOfStorySearchResult=pd;exports.instanceOfSummaryBody=gd;exports.instanceOfSummarySearchResult=hd;exports.instanceOfSymbolHolder=Hl;exports.instanceOfTooManyRequestsException=_d;exports.instanceOfTooManyRequestsExceptionCause=dl;exports.instanceOfTooManyRequestsExceptionCauseStackTraceInner=il;exports.instanceOfTooManyRequestsExceptionSuppressedInner=fl;exports.instanceOfTopicDto=Yd;exports.instanceOfTopicHolder=zr;exports.instanceOfTopicLabels=zd;exports.instanceOfTopicSearchResult=qd;exports.instanceOfVectorSearchResult=os;exports.instanceOfWebResources=kl;exports.instanceOfWikidataDateHolder=Vu;exports.instanceOfWikidataLabelHolder=Xu;exports.instanceOfWikidataPoliticalPartyHolder=$u;exports.instanceOfWikidataPositionHolder=oc;exports.mapValues=Qo;exports.querystring=me;//# sourceMappingURL=index.cjs.map
|
|
1
|
+
'use strict';var Hn="https://api.perigon.io".replace(/\/+$/,""),oe=class{constructor(n={}){this.configuration=n;}set config(n){this.configuration=n;}get basePath(){return this.configuration.basePath??Hn}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Se}get accessToken(){let n=this.configuration.apiKey;return n?typeof n=="function"?n:async()=>n:void 0}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}},Dn=new oe,z=class z{constructor(n=Dn){this.configuration=n;this.fetchApi=async(n,t)=>{let i={url:n,init:t};for(let a of this.middleware)a.pre&&(i=await a.pre({fetch:this.fetchApi,...i})||i);let r;try{r=await(this.configuration.fetchApi||fetch)(i.url,i.init);}catch(a){for(let o of this.middleware)o.onError&&(r=await o.onError({fetch:this.fetchApi,url:i.url,init:i.init,error:a,response:r?r.clone():void 0})||r);if(r===void 0)throw a instanceof Error?new le(a,"The request failed and the interceptors did not return an alternative response"):a}for(let a of this.middleware)a.post&&(r=await a.post({fetch:this.fetchApi,url:i.url,init:i.init,response:r.clone()})||r);return r};this.middleware=n.middleware;}withMiddleware(...n){let t=this.clone();return t.middleware=t.middleware.concat(...n),t}withPreMiddleware(...n){let t=n.map(i=>({pre:i}));return this.withMiddleware(...t)}withPostMiddleware(...n){let t=n.map(i=>({post:i}));return this.withMiddleware(...t)}isJsonMime(n){return n?z.jsonRegex.test(n):false}async request(n,t){let{url:i,init:r}=await this.createFetchParams(n,t),a=await this.fetchApi(i,r);if(a&&a.status>=200&&a.status<300)return a;throw new ae(a,"Response returned an error code")}async createFetchParams(n,t){let i=this.configuration.basePath+n.path;n.query!==void 0&&Object.keys(n.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(n.query));let r=Object.assign({},this.configuration.headers,n.headers);Object.keys(r).forEach(pe=>r[pe]===void 0?delete r[pe]:{});let a=typeof t=="function"?t:async()=>t,o={method:n.method,headers:r,body:n.body,credentials:this.configuration.credentials},l={...o,...await a({init:o,context:n})},B;Wn(l.body)||l.body instanceof URLSearchParams||Ln(l.body)?B=l.body:this.isJsonMime(r["Content-Type"])?B=JSON.stringify(l.body):B=l.body;let wn={...l,body:B};return {url:i,init:wn}}clone(){let n=this.constructor,t=new n(this.configuration);return t.middleware=this.middleware.slice(),t}};z.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");var U=z;function Ln(e){return typeof Blob<"u"&&e instanceof Blob}function Wn(e){return typeof FormData<"u"&&e instanceof FormData}var ae=class extends Error{constructor(t,i){super(i);this.response=t;this.name="ResponseError";}},le=class extends Error{constructor(t,i){super(i);this.cause=t;this.name="FetchError";}},O=class extends Error{constructor(t,i){super(i);this.field=t;this.name="RequiredError";}},Sr={csv:",",ssv:" ",tsv:" ",pipes:"|"};function Se(e,n=""){return Object.keys(e).map(t=>ge(t,e[t],n)).filter(t=>t.length>0).join("&")}function ge(e,n,t=""){let i=t+(t.length?`[${e}]`:e);if(n instanceof Array){let r=n.map(a=>encodeURIComponent(String(a))).join(`&${encodeURIComponent(i)}=`);return `${encodeURIComponent(i)}=${r}`}if(n instanceof Set){let r=Array.from(n);return ge(e,r,t)}return n instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(n.toISOString())}`:n instanceof Object?Se(n,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(n))}`}function gr(e,n){let t=e[n];return t!=null}function Tr(e,n){let t={};for(let i of Object.keys(e))t[i]=n(e[i]);return t}function hr(e){for(let n of e)if(n.contentType==="multipart/form-data")return true;return false}var u=class{constructor(n,t=i=>i){this.raw=n;this.transformer=t;}async value(){return this.transformer(await this.raw.json())}},me=class{constructor(n){this.raw=n;}async value(){}},ye=class{constructor(n){this.raw=n;}async value(){return await this.raw.blob()}},fe=class{constructor(n){this.raw=n;}async value(){return await this.raw.text()}};var ue={Relevance:"relevance",Date:"date",ReverseDate:"reverseDate",ReverseAddDate:"reverseAddDate",AddDate:"addDate",PubDate:"pubDate",RefreshDate:"refreshDate"};function Ar(e){for(let n in ue)if(Object.prototype.hasOwnProperty.call(ue,n)&&ue[n]===e)return true;return false}function Or(e){return Mn(e)}function Mn(e,n){return e}function Nr(e){return e}function xr(e,n){return e}function br(e){return true}function N(e){return Bn(e)}function Bn(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function x(e){return Un(e,false)}function Un(e,n=false){return e==null?e:{name:e.name,count:e.count}}function kr(e){return true}function R(e){return zn(e)}function zn(e,n){return e==null?e:{country:e.country==null?void 0:e.country,state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,area:e.area==null?void 0:e.area}}function b(e){return Vn(e,false)}function Vn(e,n=false){return e==null?e:{country:e.country,state:e.state,county:e.county,city:e.city,area:e.area}}function Lr(e){return true}function I(e){return Gn(e)}function Gn(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,fullName:e.fullName==null?void 0:e.fullName,headline:e.headline==null?void 0:e.headline,description:e.description==null?void 0:e.description,title:e.title==null?void 0:e.title,locations:e.locations==null?void 0:e.locations.map(R),updatedAt:e.updatedAt==null?void 0:e.updatedAt,topTopics:e.topTopics==null?void 0:e.topTopics.map(N),topSources:e.topSources==null?void 0:e.topSources.map(N),topCategories:e.topCategories==null?void 0:e.topCategories.map(N),topLabels:e.topLabels==null?void 0:e.topLabels.map(N),topCountries:e.topCountries==null?void 0:e.topCountries.map(N),avgMonthlyPosts:e.avgMonthlyPosts==null?void 0:e.avgMonthlyPosts,twitterHandle:e.twitterHandle==null?void 0:e.twitterHandle,twitterBio:e.twitterBio==null?void 0:e.twitterBio,imageUrl:e.imageUrl==null?void 0:e.imageUrl,linkedinUrl:e.linkedinUrl==null?void 0:e.linkedinUrl,linkedinConnections:e.linkedinConnections==null?void 0:e.linkedinConnections,linkedinFollowers:e.linkedinFollowers==null?void 0:e.linkedinFollowers,facebookUrl:e.facebookUrl==null?void 0:e.facebookUrl,instagramUrl:e.instagramUrl==null?void 0:e.instagramUrl,websiteUrl:e.websiteUrl==null?void 0:e.websiteUrl,blogUrl:e.blogUrl==null?void 0:e.blogUrl,tumblrUrl:e.tumblrUrl==null?void 0:e.tumblrUrl,youtubeUrl:e.youtubeUrl==null?void 0:e.youtubeUrl}}function V(e){return Qn(e,false)}function Qn(e,n=false){return e==null?e:{id:e.id,name:e.name,fullName:e.fullName,headline:e.headline,description:e.description,title:e.title,locations:e.locations==null?void 0:e.locations.map(b),updatedAt:e.updatedAt,topTopics:e.topTopics==null?void 0:e.topTopics.map(x),topSources:e.topSources==null?void 0:e.topSources.map(x),topCategories:e.topCategories==null?void 0:e.topCategories.map(x),topLabels:e.topLabels==null?void 0:e.topLabels.map(x),topCountries:e.topCountries==null?void 0:e.topCountries.map(x),avgMonthlyPosts:e.avgMonthlyPosts,twitterHandle:e.twitterHandle,twitterBio:e.twitterBio,imageUrl:e.imageUrl,linkedinUrl:e.linkedinUrl,linkedinConnections:e.linkedinConnections,linkedinFollowers:e.linkedinFollowers,facebookUrl:e.facebookUrl,instagramUrl:e.instagramUrl,websiteUrl:e.websiteUrl,blogUrl:e.blogUrl,tumblrUrl:e.tumblrUrl,youtubeUrl:e.youtubeUrl}}function _r(e){return true}function G(e){return Kn(e)}function Kn(e,n){return e==null?e:{lat:e.lat==null?void 0:e.lat,lon:e.lon==null?void 0:e.lon}}function Q(e){return Pn(e,false)}function Pn(e,n=false){return e==null?e:{lat:e.lat,lon:e.lon}}function Vr(e){return true}function K(e){return Yn(e)}function Yn(e,n){return e==null?e:{country:e.country==null?void 0:e.country,state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,coordinates:e.coordinates==null?void 0:G(e.coordinates)}}function P(e){return $n(e,false)}function $n(e,n=false){return e==null?e:{country:e.country,state:e.state,county:e.county,city:e.city,coordinates:Q(e.coordinates)}}function Yr(e){return true}function Y(e){return Xn(e)}function Xn(e,n){return e==null?e:{domain:e.domain==null?void 0:e.domain,paywall:e.paywall==null?void 0:e.paywall,location:e.location==null?void 0:K(e.location)}}function $(e){return Zn(e,false)}function Zn(e,n=false){return e==null?e:{domain:e.domain,paywall:e.paywall,location:P(e.location)}}function Xr(e){return true}function X(e){return vn(e)}function vn(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,domains:e.domains==null?void 0:e.domains,symbols:e.symbols==null?void 0:e.symbols}}function Z(e){return qn(e,false)}function qn(e,n=false){return e==null?e:{id:e.id,name:e.name,domains:e.domains,symbols:e.symbols}}function vr(e){return true}function Te(e){return jn(e)}function jn(e,n){return e==null?e:{data:e.data==null?void 0:e.data,type:e.type==null?void 0:e.type,mentions:e.mentions==null?void 0:e.mentions}}function he(e){return ei(e,false)}function ei(e,n=false){return e==null?e:{data:e.data,type:e.type,mentions:e.mentions}}function jr(e){return true}function J(e){return ni(e)}function ni(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function F(e){return ii(e,false)}function ii(e,n=false){return e==null?e:{name:e.name}}function no(e){return true}function v(e){return ti(e)}function ti(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,name:e.name==null?void 0:e.name}}function q(e){return ri(e,false)}function ri(e,n=false){return e==null?e:{wikidataId:e.wikidataId,name:e.name}}function to(e){return true}function Ae(e){return oi(e)}function oi(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function Oe(e){return ai(e,false)}function ai(e,n=false){return e==null?e:{name:e.name}}function oo(e){return true}function E(e){return li(e)}function li(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function w(e){return ui(e,false)}function ui(e,n=false){return e==null?e:{name:e.name,count:e.count}}function lo(e){return true}function Ne(e){return di(e)}function di(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function xe(e){return ci(e,false)}function ci(e,n=false){return e==null?e:{wikidataId:e.wikidataId,name:e.name,count:e.count}}function co(e){return true}function Re(e){return si(e)}function si(e,n){return e==null?e:{state:e.state==null?void 0:e.state,county:e.county==null?void 0:e.county,city:e.city==null?void 0:e.city,area:e.area==null?void 0:e.area,count:e.count==null?void 0:e.count}}function be(e){return pi(e,false)}function pi(e,n=false){return e==null?e:{state:e.state,county:e.county,city:e.city,area:e.area,count:e.count}}function po(e){return true}function Ie(e){return mi(e)}function mi(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,domains:e.domains==null?void 0:e.domains,symbols:e.symbols==null?void 0:e.symbols,count:e.count==null?void 0:e.count}}function ke(e){return yi(e,false)}function yi(e,n=false){return e==null?e:{id:e.id,name:e.name,domains:e.domains,symbols:e.symbols,count:e.count}}function yo(e){return true}function Ce(e){return fi(e)}function fi(e,n){return e==null?e:{point:e.point==null?void 0:e.point,references:e.references==null?void 0:e.references}}function Je(e){return Si(e,false)}function Si(e,n=false){return e==null?e:{point:e.point,references:e.references}}function So(e){return true}function j(e){return gi(e)}function gi(e,n){return e==null?e:{name:e.name==null?void 0:e.name}}function ee(e){return Ti(e,false)}function Ti(e,n=false){return e==null?e:{name:e.name}}function To(e){return true}function Fe(e){return hi(e)}function hi(e,n){return e==null?e:{question:e.question==null?void 0:e.question,answer:e.answer==null?void 0:e.answer,references:e.references==null?void 0:e.references}}function Ee(e){return Ai(e,false)}function Ai(e,n=false){return e==null?e:{question:e.question,answer:e.answer,references:e.references}}function Ao(e){return true}function ne(e){return Oi(e)}function Oi(e,n){return e==null?e:{positive:e.positive==null?void 0:e.positive,negative:e.negative==null?void 0:e.negative,neutral:e.neutral==null?void 0:e.neutral}}function ie(e){return Ni(e,false)}function Ni(e,n=false){return e==null?e:{positive:e.positive,negative:e.negative,neutral:e.neutral}}function ca(e){return true}function te(e){return xi(e)}function xi(e,n){return e==null?e:{createdAt:e.createdAt==null?void 0:e.createdAt,updatedAt:e.updatedAt==null?void 0:e.updatedAt,initializedAt:e.initializedAt==null?void 0:e.initializedAt,id:e.id==null?void 0:e.id,duplicateOf:e.duplicateOf==null?void 0:e.duplicateOf,slug:e.slug==null?void 0:e.slug,name:e.name==null?void 0:e.name,summary:e.summary==null?void 0:e.summary,shortSummary:e.shortSummary==null?void 0:e.shortSummary,summaryReferences:e.summaryReferences==null?void 0:e.summaryReferences,imageSource:e.imageSource==null?void 0:Y(e.imageSource),imageUrl:e.imageUrl==null?void 0:e.imageUrl,keyPoints:e.keyPoints==null?void 0:e.keyPoints.map(Ce),questions:e.questions==null?void 0:e.questions.map(Fe),uniqueSources:e.uniqueSources==null?void 0:e.uniqueSources,selectedArticles:e.selectedArticles==null?void 0:e.selectedArticles.map(h),sentiment:e.sentiment==null?void 0:ne(e.sentiment),uniqueCount:e.uniqueCount==null?void 0:e.uniqueCount,reprintCount:e.reprintCount==null?void 0:e.reprintCount,totalCount:e.totalCount==null?void 0:e.totalCount,countries:e.countries==null?void 0:e.countries.map(E),topCountries:e.topCountries==null?void 0:e.topCountries,topics:e.topics==null?void 0:e.topics.map(E),topTopics:e.topTopics==null?void 0:e.topTopics.map(j),categories:e.categories==null?void 0:e.categories.map(E),topCategories:e.topCategories==null?void 0:e.topCategories.map(J),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(E),topTaxonomies:e.topTaxonomies==null?void 0:e.topTaxonomies.map(J),people:e.people==null?void 0:e.people.map(Ne),topPeople:e.topPeople==null?void 0:e.topPeople.map(v),companies:e.companies==null?void 0:e.companies.map(Ie),topCompanies:e.topCompanies==null?void 0:e.topCompanies.map(X),locations:e.locations==null?void 0:e.locations.map(Re),topLocations:e.topLocations==null?void 0:e.topLocations.map(R),highlights:e.highlights==null?void 0:e.highlights}}function re(e){return Ri(e,false)}function Ri(e,n=false){return e==null?e:{createdAt:e.createdAt,updatedAt:e.updatedAt,initializedAt:e.initializedAt,id:e.id,duplicateOf:e.duplicateOf,slug:e.slug,name:e.name,summary:e.summary,shortSummary:e.shortSummary,summaryReferences:e.summaryReferences,imageSource:$(e.imageSource),imageUrl:e.imageUrl,keyPoints:e.keyPoints==null?void 0:e.keyPoints.map(Je),questions:e.questions==null?void 0:e.questions.map(Ee),uniqueSources:e.uniqueSources,selectedArticles:e.selectedArticles==null?void 0:e.selectedArticles.map(A),sentiment:ie(e.sentiment),uniqueCount:e.uniqueCount,reprintCount:e.reprintCount,totalCount:e.totalCount,countries:e.countries==null?void 0:e.countries.map(w),topCountries:e.topCountries,topics:e.topics==null?void 0:e.topics.map(w),topTopics:e.topTopics==null?void 0:e.topTopics.map(ee),categories:e.categories==null?void 0:e.categories.map(w),topCategories:e.topCategories==null?void 0:e.topCategories.map(F),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(w),topTaxonomies:e.topTaxonomies==null?void 0:e.topTaxonomies.map(F),people:e.people==null?void 0:e.people.map(xe),topPeople:e.topPeople==null?void 0:e.topPeople.map(q),companies:e.companies==null?void 0:e.companies.map(ke),topCompanies:e.topCompanies==null?void 0:e.topCompanies.map(Z),locations:e.locations==null?void 0:e.locations.map(be),topLocations:e.topLocations==null?void 0:e.topLocations.map(b),highlights:e.highlights}}function pa(e){return true}function we(e){return bi(e)}function bi(e,n){return e==null?e:{name:e.name==null?void 0:e.name,weight:e.weight==null?void 0:e.weight}}function He(e){return Ii(e,false)}function Ii(e,n=false){return e==null?e:{name:e.name,weight:e.weight}}function ya(e){return true}function De(e){return ki(e)}function ki(e,n){return e==null?e:{name:e.name==null?void 0:e.name,type:e.type==null?void 0:e.type}}function Le(e){return Ci(e,false)}function Ci(e,n=false){return e==null?e:{name:e.name,type:e.type}}function Sa(e){return true}function We(e){return Ji(e)}function Ji(e,n){return e==null?e:{name:e.name==null?void 0:e.name,score:e.score==null?void 0:e.score}}function _e(e){return Fi(e,false)}function Fi(e,n=false){return e==null?e:{name:e.name,score:e.score}}function Oa(e){return true}function Me(e){return Ei(e)}function Ei(e,n){return e==null?e:{osmId:e.osmId==null?void 0:e.osmId,road:e.road==null?void 0:e.road,quarter:e.quarter==null?void 0:e.quarter,suburb:e.suburb==null?void 0:e.suburb,city:e.city==null?void 0:e.city,town:e.town==null?void 0:e.town,county:e.county==null?void 0:e.county,stateDistrict:e.stateDistrict==null?void 0:e.stateDistrict,state:e.state==null?void 0:e.state,postcode:e.postcode==null?void 0:e.postcode,country:e.country==null?void 0:e.country,countryCode:e.countryCode==null?void 0:e.countryCode,amenity:e.amenity==null?void 0:e.amenity,neighbourhood:e.neighbourhood==null?void 0:e.neighbourhood,coordinates:e.coordinates==null?void 0:G(e.coordinates)}}function Be(e){return wi(e,false)}function wi(e,n=false){return e==null?e:{osmId:e.osmId,road:e.road,quarter:e.quarter,suburb:e.suburb,city:e.city,town:e.town,county:e.county,stateDistrict:e.stateDistrict,state:e.state,postcode:e.postcode,country:e.country,countryCode:e.countryCode,amenity:e.amenity,neighbourhood:e.neighbourhood,coordinates:Q(e.coordinates)}}function xa(e){return true}function Ue(e){return Hi(e)}function Hi(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name}}function ze(e){return Di(e,false)}function Di(e,n=false){return e==null?e:{id:e.id,name:e.name}}function hl(e){return true}function h(e){return Li(e)}function Li(e,n){return e==null?e:{url:e.url==null?void 0:e.url,authorsByline:e.authorsByline==null?void 0:e.authorsByline,articleId:e.articleId==null?void 0:e.articleId,clusterId:e.clusterId==null?void 0:e.clusterId,source:e.source==null?void 0:Y(e.source),imageUrl:e.imageUrl==null?void 0:e.imageUrl,country:e.country==null?void 0:e.country,language:e.language==null?void 0:e.language,pubDate:e.pubDate==null?void 0:e.pubDate,addDate:e.addDate==null?void 0:e.addDate,refreshDate:e.refreshDate==null?void 0:e.refreshDate,score:e.score==null?void 0:e.score,title:e.title==null?void 0:e.title,description:e.description==null?void 0:e.description,content:e.content==null?void 0:e.content,medium:e.medium==null?void 0:e.medium,links:e.links==null?void 0:e.links,labels:e.labels==null?void 0:e.labels.map(Ae),eventTypes:e.eventTypes==null?void 0:e.eventTypes.map(De),matchedAuthors:e.matchedAuthors==null?void 0:e.matchedAuthors.map(Ue),claim:e.claim==null?void 0:e.claim,verdict:e.verdict==null?void 0:e.verdict,keywords:e.keywords==null?void 0:e.keywords.map(we),topics:e.topics==null?void 0:e.topics.map(j),categories:e.categories==null?void 0:e.categories.map(J),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(We),entities:e.entities==null?void 0:e.entities.map(Te),companies:e.companies==null?void 0:e.companies.map(X),sentiment:e.sentiment==null?void 0:ne(e.sentiment),summary:e.summary==null?void 0:e.summary,shortSummary:e.shortSummary==null?void 0:e.shortSummary,translation:e.translation==null?void 0:e.translation,translatedTitle:e.translatedTitle==null?void 0:e.translatedTitle,translatedDescription:e.translatedDescription==null?void 0:e.translatedDescription,translatedSummary:e.translatedSummary==null?void 0:e.translatedSummary,locations:e.locations==null?void 0:e.locations.map(R),reprint:e.reprint==null?void 0:e.reprint,reprintGroupId:e.reprintGroupId==null?void 0:e.reprintGroupId,places:e.places==null?void 0:e.places.map(Me),people:e.people==null?void 0:e.people.map(v),cluster:e.cluster==null?void 0:te(e.cluster),journalists:e.journalists==null?void 0:e.journalists.map(I),highlights:e.highlights==null?void 0:e.highlights}}function A(e){return Wi(e,false)}function Wi(e,n=false){return e==null?e:{url:e.url,authorsByline:e.authorsByline,articleId:e.articleId,clusterId:e.clusterId,source:$(e.source),imageUrl:e.imageUrl,country:e.country,language:e.language,pubDate:e.pubDate,addDate:e.addDate,refreshDate:e.refreshDate,score:e.score,title:e.title,description:e.description,content:e.content,medium:e.medium,links:e.links,labels:e.labels==null?void 0:e.labels.map(Oe),eventTypes:e.eventTypes==null?void 0:e.eventTypes.map(Le),matchedAuthors:e.matchedAuthors==null?void 0:e.matchedAuthors.map(ze),claim:e.claim,verdict:e.verdict,keywords:e.keywords==null?void 0:e.keywords.map(He),topics:e.topics==null?void 0:e.topics.map(ee),categories:e.categories==null?void 0:e.categories.map(F),taxonomies:e.taxonomies==null?void 0:e.taxonomies.map(_e),entities:e.entities==null?void 0:e.entities.map(he),companies:e.companies==null?void 0:e.companies.map(Z),sentiment:ie(e.sentiment),summary:e.summary,shortSummary:e.shortSummary,translation:e.translation,translatedTitle:e.translatedTitle,translatedDescription:e.translatedDescription,translatedSummary:e.translatedSummary,locations:e.locations==null?void 0:e.locations.map(b),reprint:e.reprint,reprintGroupId:e.reprintGroupId,places:e.places==null?void 0:e.places.map(Be),people:e.people==null?void 0:e.people.map(q),cluster:re(e.cluster),journalists:e.journalists==null?void 0:e.journalists.map(V),highlights:e.highlights}}function Ol(e){return true}function de(e){return _i(e)}function _i(e,n){return e==null?e:{lat:e.lat==null?void 0:e.lat,lon:e.lon==null?void 0:e.lon,radius:e.radius==null?void 0:e.radius}}function ce(e){return Mi(e,false)}function Mi(e,n=false){return e==null?e:{lat:e.lat,lon:e.lon,radius:e.radius}}function Il(e){return true}function H(e){return Bi(e)}function Bi(e,n){return e==null?e:{articleId:e.articleId==null?void 0:e.articleId,clusterId:e.clusterId==null?void 0:e.clusterId,source:e.source==null?void 0:e.source,excludeSource:e.excludeSource==null?void 0:e.excludeSource,sourceGroup:e.sourceGroup==null?void 0:e.sourceGroup,language:e.language==null?void 0:e.language,excludeLanguage:e.excludeLanguage==null?void 0:e.excludeLanguage,label:e.label==null?void 0:e.label,excludeLabel:e.excludeLabel==null?void 0:e.excludeLabel,taxonomy:e.taxonomy==null?void 0:e.taxonomy,category:e.category==null?void 0:e.category,topic:e.topic==null?void 0:e.topic,excludeTopic:e.excludeTopic==null?void 0:e.excludeTopic,country:e.country==null?void 0:e.country,excludeCountry:e.excludeCountry==null?void 0:e.excludeCountry,locationsCountry:e.locationsCountry==null?void 0:e.locationsCountry,excludeLocationsCountry:e.excludeLocationsCountry==null?void 0:e.excludeLocationsCountry,state:e.state==null?void 0:e.state,excludeState:e.excludeState==null?void 0:e.excludeState,county:e.county==null?void 0:e.county,excludeCounty:e.excludeCounty==null?void 0:e.excludeCounty,city:e.city==null?void 0:e.city,excludeCity:e.excludeCity==null?void 0:e.excludeCity,sourceCountry:e.sourceCountry==null?void 0:e.sourceCountry,sourceState:e.sourceState==null?void 0:e.sourceState,sourceCounty:e.sourceCounty==null?void 0:e.sourceCounty,sourceCity:e.sourceCity==null?void 0:e.sourceCity,coordinates:e.coordinates==null?void 0:de(e.coordinates),sourceCoordinates:e.sourceCoordinates==null?void 0:de(e.sourceCoordinates),companyId:e.companyId==null?void 0:e.companyId,excludeCompanyId:e.excludeCompanyId==null?void 0:e.excludeCompanyId,companyDomain:e.companyDomain==null?void 0:e.companyDomain,excludeCompanyDomain:e.excludeCompanyDomain==null?void 0:e.excludeCompanyDomain,companySymbol:e.companySymbol==null?void 0:e.companySymbol,excludeCompanySymbol:e.excludeCompanySymbol==null?void 0:e.excludeCompanySymbol,companyName:e.companyName==null?void 0:e.companyName,personWikidataId:e.personWikidataId==null?void 0:e.personWikidataId,excludePersonWikidataId:e.excludePersonWikidataId==null?void 0:e.excludePersonWikidataId,personName:e.personName==null?void 0:e.personName,excludePersonName:e.excludePersonName==null?void 0:e.excludePersonName,aND:e.AND==null?void 0:e.AND.map(H),oR:e.OR==null?void 0:e.OR.map(H),nOT:e.NOT==null?void 0:e.NOT.map(H)}}function D(e){return Ui(e,false)}function Ui(e,n=false){return e==null?e:{articleId:e.articleId,clusterId:e.clusterId,source:e.source,excludeSource:e.excludeSource,sourceGroup:e.sourceGroup,language:e.language,excludeLanguage:e.excludeLanguage,label:e.label,excludeLabel:e.excludeLabel,taxonomy:e.taxonomy,category:e.category,topic:e.topic,excludeTopic:e.excludeTopic,country:e.country,excludeCountry:e.excludeCountry,locationsCountry:e.locationsCountry,excludeLocationsCountry:e.excludeLocationsCountry,state:e.state,excludeState:e.excludeState,county:e.county,excludeCounty:e.excludeCounty,city:e.city,excludeCity:e.excludeCity,sourceCountry:e.sourceCountry,sourceState:e.sourceState,sourceCounty:e.sourceCounty,sourceCity:e.sourceCity,coordinates:ce(e.coordinates),sourceCoordinates:ce(e.sourceCoordinates),companyId:e.companyId,excludeCompanyId:e.excludeCompanyId,companyDomain:e.companyDomain,excludeCompanyDomain:e.excludeCompanyDomain,companySymbol:e.companySymbol,excludeCompanySymbol:e.excludeCompanySymbol,companyName:e.companyName,personWikidataId:e.personWikidataId,excludePersonWikidataId:e.excludePersonWikidataId,personName:e.personName,excludePersonName:e.excludePersonName,AND:e.aND==null?void 0:e.aND.map(D),OR:e.oR==null?void 0:e.oR.map(D),NOT:e.nOT==null?void 0:e.nOT.map(D)}}function El(e){return !(!("prompt"in e)||e.prompt===void 0)}function wl(e){return zi(e)}function zi(e,n){return e==null?e:{prompt:e.prompt,filter:e.filter==null?void 0:H(e.filter),pubDateFrom:e.pubDateFrom==null?void 0:new Date(e.pubDateFrom),pubDateTo:e.pubDateTo==null?void 0:new Date(e.pubDateTo),showReprints:e.showReprints==null?void 0:e.showReprints,size:e.size==null?void 0:e.size,page:e.page==null?void 0:e.page}}function Ve(e){return Vi(e,false)}function Vi(e,n=false){return e==null?e:{prompt:e.prompt,filter:D(e.filter),pubDateFrom:e.pubDateFrom==null?void 0:e.pubDateFrom.toISOString(),pubDateTo:e.pubDateTo==null?void 0:e.pubDateTo.toISOString(),showReprints:e.showReprints,size:e.size,page:e.page}}function _l(e){return true}function Ge(e){return Gi(e)}function Gi(e,n){return e==null?e:{score:e.score==null?void 0:e.score,data:e.data==null?void 0:h(e.data)}}function Qe(e){return Qi(e,false)}function Qi(e,n=false){return e==null?e:{score:e.score,data:A(e.data)}}function Vl(e){return !(!("status"in e)||e.status===void 0||!("results"in e)||e.results===void 0)}function Ke(e){return Ki(e)}function Ki(e,n){return e==null?e:{status:e.status,results:e.results.map(Ge)}}function Gl(e){return Pi(e,false)}function Pi(e,n=false){return e==null?e:{status:e.status,results:e.results.map(Qe)}}function Kl(e){return true}function d(e){return Yi(e)}function Yi(e,n){return e==null?e:{classLoaderName:e.classLoaderName==null?void 0:e.classLoaderName,moduleName:e.moduleName==null?void 0:e.moduleName,moduleVersion:e.moduleVersion==null?void 0:e.moduleVersion,methodName:e.methodName==null?void 0:e.methodName,fileName:e.fileName==null?void 0:e.fileName,lineNumber:e.lineNumber==null?void 0:e.lineNumber,nativeMethod:e.nativeMethod==null?void 0:e.nativeMethod,className:e.className==null?void 0:e.className}}function c(e){return $i(e,false)}function $i(e,n=false){return e==null?e:{classLoaderName:e.classLoaderName,moduleName:e.moduleName,moduleVersion:e.moduleVersion,methodName:e.methodName,fileName:e.fileName,lineNumber:e.lineNumber,nativeMethod:e.nativeMethod,className:e.className}}function Zl(e){return true}function s(e){return Xi(e)}function Xi(e,n){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function p(e){return Zi(e,false)}function Zi(e,n=false){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,localizedMessage:e.localizedMessage}}function nu(e){return true}function m(e){return vi(e)}function vi(e,n){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function y(e){return qi(e,false)}function qi(e,n=false){return e==null?e:{stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,localizedMessage:e.localizedMessage}}var pu={_100Continue:"100 CONTINUE",_101SwitchingProtocols:"101 SWITCHING_PROTOCOLS",_102Processing:"102 PROCESSING",_103Checkpoint:"103 CHECKPOINT",_200Ok:"200 OK",_201Created:"201 CREATED",_202Accepted:"202 ACCEPTED",_203NonAuthoritativeInformation:"203 NON_AUTHORITATIVE_INFORMATION",_204NoContent:"204 NO_CONTENT",_205ResetContent:"205 RESET_CONTENT",_206PartialContent:"206 PARTIAL_CONTENT",_207MultiStatus:"207 MULTI_STATUS",_208AlreadyReported:"208 ALREADY_REPORTED",_226ImUsed:"226 IM_USED",_300MultipleChoices:"300 MULTIPLE_CHOICES",_301MovedPermanently:"301 MOVED_PERMANENTLY",_302Found:"302 FOUND",_302MovedTemporarily:"302 MOVED_TEMPORARILY",_303SeeOther:"303 SEE_OTHER",_304NotModified:"304 NOT_MODIFIED",_305UseProxy:"305 USE_PROXY",_307TemporaryRedirect:"307 TEMPORARY_REDIRECT",_308PermanentRedirect:"308 PERMANENT_REDIRECT",_400BadRequest:"400 BAD_REQUEST",_401Unauthorized:"401 UNAUTHORIZED",_402PaymentRequired:"402 PAYMENT_REQUIRED",_403Forbidden:"403 FORBIDDEN",_404NotFound:"404 NOT_FOUND",_405MethodNotAllowed:"405 METHOD_NOT_ALLOWED",_406NotAcceptable:"406 NOT_ACCEPTABLE",_407ProxyAuthenticationRequired:"407 PROXY_AUTHENTICATION_REQUIRED",_408RequestTimeout:"408 REQUEST_TIMEOUT",_409Conflict:"409 CONFLICT",_410Gone:"410 GONE",_411LengthRequired:"411 LENGTH_REQUIRED",_412PreconditionFailed:"412 PRECONDITION_FAILED",_413PayloadTooLarge:"413 PAYLOAD_TOO_LARGE",_413RequestEntityTooLarge:"413 REQUEST_ENTITY_TOO_LARGE",_414UriTooLong:"414 URI_TOO_LONG",_414RequestUriTooLong:"414 REQUEST_URI_TOO_LONG",_415UnsupportedMediaType:"415 UNSUPPORTED_MEDIA_TYPE",_416RequestedRangeNotSatisfiable:"416 REQUESTED_RANGE_NOT_SATISFIABLE",_417ExpectationFailed:"417 EXPECTATION_FAILED",_418IAmATeapot:"418 I_AM_A_TEAPOT",_419InsufficientSpaceOnResource:"419 INSUFFICIENT_SPACE_ON_RESOURCE",_420MethodFailure:"420 METHOD_FAILURE",_421DestinationLocked:"421 DESTINATION_LOCKED",_422UnprocessableEntity:"422 UNPROCESSABLE_ENTITY",_423Locked:"423 LOCKED",_424FailedDependency:"424 FAILED_DEPENDENCY",_425TooEarly:"425 TOO_EARLY",_426UpgradeRequired:"426 UPGRADE_REQUIRED",_428PreconditionRequired:"428 PRECONDITION_REQUIRED",_429TooManyRequests:"429 TOO_MANY_REQUESTS",_431RequestHeaderFieldsTooLarge:"431 REQUEST_HEADER_FIELDS_TOO_LARGE",_451UnavailableForLegalReasons:"451 UNAVAILABLE_FOR_LEGAL_REASONS",_500InternalServerError:"500 INTERNAL_SERVER_ERROR",_501NotImplemented:"501 NOT_IMPLEMENTED",_502BadGateway:"502 BAD_GATEWAY",_503ServiceUnavailable:"503 SERVICE_UNAVAILABLE",_504GatewayTimeout:"504 GATEWAY_TIMEOUT",_505HttpVersionNotSupported:"505 HTTP_VERSION_NOT_SUPPORTED",_506VariantAlsoNegotiates:"506 VARIANT_ALSO_NEGOTIATES",_507InsufficientStorage:"507 INSUFFICIENT_STORAGE",_508LoopDetected:"508 LOOP_DETECTED",_509BandwidthLimitExceeded:"509 BANDWIDTH_LIMIT_EXCEEDED",_510NotExtended:"510 NOT_EXTENDED",_511NetworkAuthenticationRequired:"511 NETWORK_AUTHENTICATION_REQUIRED"};function mu(e){return true}function yu(e){return ji(e)}function ji(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),statusCode:e.statusCode==null?void 0:e.statusCode,message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function fu(e){return et(e,false)}function et(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),statusCode:e.statusCode,message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function gu(e){return true}function Pe(e){return nt(e)}function nt(e,n){return e==null?e:{symbol:e.symbol==null?void 0:e.symbol,exchange:e.exchange==null?void 0:e.exchange,exchangeShortName:e.exchangeShortName==null?void 0:e.exchangeShortName,ipoDate:e.ipoDate==null?void 0:e.ipoDate}}function Ye(e){return it(e,false)}function it(e,n=false){return e==null?e:{symbol:e.symbol,exchange:e.exchange,exchangeShortName:e.exchangeShortName,ipoDate:e.ipoDate}}function hu(e){return true}function $e(e){return tt(e)}function tt(e,n){return e==null?e:{careers:e.careers==null?void 0:e.careers,about:e.about==null?void 0:e.about,blog:e.blog==null?void 0:e.blog,events:e.events==null?void 0:e.events,sitemap:e.sitemap==null?void 0:e.sitemap,updates:e.updates==null?void 0:e.updates,linkedin:e.linkedin==null?void 0:e.linkedin,facebook:e.facebook==null?void 0:e.facebook,instagram:e.instagram==null?void 0:e.instagram,medium:e.medium==null?void 0:e.medium,reddit:e.reddit==null?void 0:e.reddit,threads:e.threads==null?void 0:e.threads,tiktok:e.tiktok==null?void 0:e.tiktok,x:e.x==null?void 0:e.x,wellfound:e.wellfound==null?void 0:e.wellfound,youtube:e.youtube==null?void 0:e.youtube,wikipedia:e.wikipedia==null?void 0:e.wikipedia}}function Xe(e){return rt(e,false)}function rt(e,n=false){return e==null?e:{careers:e.careers,about:e.about,blog:e.blog,events:e.events,sitemap:e.sitemap,updates:e.updates,linkedin:e.linkedin,facebook:e.facebook,instagram:e.instagram,medium:e.medium,reddit:e.reddit,threads:e.threads,tiktok:e.tiktok,x:e.x,wellfound:e.wellfound,youtube:e.youtube,wikipedia:e.wikipedia}}function ku(e){return true}function Ze(e){return ot(e)}function ot(e,n){return e==null?e:{id:e.id==null?void 0:e.id,name:e.name==null?void 0:e.name,updatedAt:e.updatedAt==null?void 0:e.updatedAt,primaryRecordId:e.primaryRecordId==null?void 0:e.primaryRecordId,altNames:e.altNames==null?void 0:e.altNames,domains:e.domains==null?void 0:e.domains,monthlyVisits:e.monthlyVisits==null?void 0:e.monthlyVisits,globalRank:e.globalRank==null?void 0:e.globalRank,description:e.description==null?void 0:e.description,ceo:e.ceo==null?void 0:e.ceo,industry:e.industry==null?void 0:e.industry,sector:e.sector==null?void 0:e.sector,country:e.country==null?void 0:e.country,fullTimeEmployees:e.fullTimeEmployees==null?void 0:e.fullTimeEmployees,address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,state:e.state==null?void 0:e.state,zip:e.zip==null?void 0:e.zip,logo:e.logo==null?void 0:e.logo,favicon:e.favicon==null?void 0:e.favicon,isEtf:e.isEtf==null?void 0:e.isEtf,isActivelyTrading:e.isActivelyTrading==null?void 0:e.isActivelyTrading,isFund:e.isFund==null?void 0:e.isFund,isAdr:e.isAdr==null?void 0:e.isAdr,symbols:e.symbols==null?void 0:e.symbols.map(Pe),naics:e.naics==null?void 0:e.naics,sic:e.sic==null?void 0:e.sic,yearFounded:e.yearFounded==null?void 0:e.yearFounded,revenue:e.revenue==null?void 0:e.revenue,webResources:e.webResources==null?void 0:$e(e.webResources)}}function ve(e){return at(e,false)}function at(e,n=false){return e==null?e:{id:e.id,name:e.name,updatedAt:e.updatedAt,primaryRecordId:e.primaryRecordId,altNames:e.altNames,domains:e.domains,monthlyVisits:e.monthlyVisits,globalRank:e.globalRank,description:e.description,ceo:e.ceo,industry:e.industry,sector:e.sector,country:e.country,fullTimeEmployees:e.fullTimeEmployees,address:e.address,city:e.city,state:e.state,zip:e.zip,logo:e.logo,favicon:e.favicon,isEtf:e.isEtf,isActivelyTrading:e.isActivelyTrading,isFund:e.isFund,isAdr:e.isAdr,symbols:e.symbols==null?void 0:e.symbols.map(Ye),naics:e.naics,sic:e.sic,yearFounded:e.yearFounded,revenue:e.revenue,webResources:Xe(e.webResources)}}function wu(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function qe(e){return lt(e)}function lt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(Ze)}}function Hu(e){return ut(e,false)}function ut(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(ve)}}function Qu(e){return true}function Ku(e){return dt(e)}function dt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Pu(e){return ct(e,false)}function ct(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function $u(e){return true}function k(e){return st(e)}function st(e,n){return e==null?e:{url:e.url==null?void 0:e.url}}function C(e){return pt(e,false)}function pt(e,n=false){return e==null?e:{url:e.url}}function od(e){return true}function ad(e){return mt(e)}function mt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function ld(e){return yt(e,false)}function yt(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function pd(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function je(e){return ft(e)}function ft(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(I)}}function md(e){return St(e,false)}function St(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(V)}}function Rd(e){return true}function bd(e){return gt(e)}function gt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Id(e){return Tt(e,false)}function Tt(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function Cd(e){return true}function f(e){return ht(e)}function ht(e,n){return e==null?e:{time:e.time==null?void 0:e.time,precision:e.precision==null?void 0:e.precision}}function S(e){return At(e,false)}function At(e,n=false){return e==null?e:{time:e.time,precision:e.precision}}function Hd(e){return true}function en(e){return Ot(e)}function Ot(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label,startTime:e.startTime==null?void 0:f(e.startTime),endTime:e.endTime==null?void 0:f(e.endTime)}}function nn(e){return Nt(e,false)}function Nt(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label,startTime:S(e.startTime),endTime:S(e.endTime)}}function Ld(e){return true}function g(e){return xt(e)}function xt(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label}}function T(e){return Rt(e,false)}function Rt(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label}}function Gd(e){return true}function tn(e){return bt(e)}function bt(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,label:e.label==null?void 0:e.label,startTime:e.startTime==null?void 0:f(e.startTime),endTime:e.endTime==null?void 0:f(e.endTime),employer:e.employer==null?void 0:g(e.employer)}}function rn(e){return It(e,false)}function It(e,n=false){return e==null?e:{wikidataId:e.wikidataId,label:e.label,startTime:S(e.startTime),endTime:S(e.endTime),employer:T(e.employer)}}function ac(e){return true}function on(e){return kt(e)}function kt(e,n){return e==null?e:{wikidataId:e.wikidataId==null?void 0:e.wikidataId,createdAt:e.createdAt==null?void 0:e.createdAt,updatedAt:e.updatedAt==null?void 0:e.updatedAt,name:e.name==null?void 0:e.name,gender:e.gender==null?void 0:g(e.gender),dateOfBirth:e.dateOfBirth==null?void 0:f(e.dateOfBirth),dateOfDeath:e.dateOfDeath==null?void 0:f(e.dateOfDeath),description:e.description==null?void 0:e.description,aliases:e.aliases==null?void 0:e.aliases,occupation:e.occupation==null?void 0:e.occupation.map(g),position:e.position==null?void 0:e.position.map(tn),politicalParty:e.politicalParty==null?void 0:e.politicalParty.map(en),image:e.image==null?void 0:k(e.image),_abstract:e.abstract==null?void 0:e.abstract}}function an(e){return Ct(e,false)}function Ct(e,n=false){return e==null?e:{wikidataId:e.wikidataId,createdAt:e.createdAt,updatedAt:e.updatedAt,name:e.name,gender:T(e.gender),dateOfBirth:S(e.dateOfBirth),dateOfDeath:S(e.dateOfDeath),description:e.description,aliases:e.aliases,occupation:e.occupation==null?void 0:e.occupation.map(T),position:e.position==null?void 0:e.position.map(rn),politicalParty:e.politicalParty==null?void 0:e.politicalParty.map(nn),image:C(e.image),abstract:e._abstract}}function sc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function ln(e){return Jt(e)}function Jt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(on)}}function pc(e){return Ft(e,false)}function Ft(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(an)}}function gc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("articles"in e)||e.articles===void 0)}function un(e){return Et(e)}function Et(e,n){return e==null?e:{status:e.status,numResults:e.numResults,articles:e.articles.map(h)}}function Tc(e){return wt(e,false)}function wt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,articles:e.articles.map(A)}}function xc(e){return true}function dn(e){return Ht(e)}function Ht(e,n){return e==null?e:{pageId:e.pageId==null?void 0:e.pageId,sectionId:e.sectionId==null?void 0:e.sectionId,wikiPageId:e.wikiPageId==null?void 0:e.wikiPageId,wikiRevisionId:e.wikiRevisionId==null?void 0:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs==null?void 0:e.wikiRevisionTs,wikiCode:e.wikiCode==null?void 0:e.wikiCode,wikiNamespace:e.wikiNamespace==null?void 0:e.wikiNamespace,wikiTitle:e.wikiTitle==null?void 0:e.wikiTitle,wikidataId:e.wikidataId==null?void 0:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(g),redirectTitles:e.redirectTitles==null?void 0:e.redirectTitles,pageviews:e.pageviews==null?void 0:e.pageviews,title:e.title==null?void 0:e.title,styleLevel:e.styleLevel==null?void 0:e.styleLevel,content:e.content==null?void 0:e.content}}function cn(e){return Dt(e,false)}function Dt(e,n=false){return e==null?e:{pageId:e.pageId,sectionId:e.sectionId,wikiPageId:e.wikiPageId,wikiRevisionId:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs,wikiCode:e.wikiCode,wikiNamespace:e.wikiNamespace,wikiTitle:e.wikiTitle,wikidataId:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(T),redirectTitles:e.redirectTitles,pageviews:e.pageviews,title:e.title,styleLevel:e.styleLevel,content:e.content}}function Cc(e){return true}function sn(e){return Lt(e)}function Lt(e,n){return e==null?e:{score:e.score==null?void 0:e.score,data:e.data==null?void 0:dn(e.data)}}function pn(e){return Wt(e,false)}function Wt(e,n=false){return e==null?e:{score:e.score,data:cn(e.data)}}var se={CreatedAt:"createdAt",UpdatedAt:"updatedAt",Relevance:"relevance",Count:"count",TotalCount:"totalCount"};function Fc(e){for(let n in se)if(Object.prototype.hasOwnProperty.call(se,n)&&se[n]===e)return true;return false}function Ec(e){return _t(e)}function _t(e,n){return e}function wc(e){return e}function Hc(e,n){return e}function Lc(e){return true}function L(e){return Mt(e)}function Mt(e,n){return e==null?e:{name:e.name==null?void 0:e.name,count:e.count==null?void 0:e.count}}function W(e){return Bt(e,false)}function Bt(e,n=false){return e==null?e:{name:e.name,count:e.count}}function Pc(e){return true}function mn(e){return Ut(e)}function Ut(e,n){return e==null?e:{id:e.id==null?void 0:e.id,domain:e.domain==null?void 0:e.domain,name:e.name==null?void 0:e.name,primaryRecordId:e.primaryRecordId==null?void 0:e.primaryRecordId,updatedAt:e.updatedAt==null?void 0:e.updatedAt,altNames:e.altNames==null?void 0:e.altNames,description:e.description==null?void 0:e.description,avgMonthlyPosts:e.avgMonthlyPosts==null?void 0:e.avgMonthlyPosts,paywall:e.paywall==null?void 0:e.paywall,location:e.location==null?void 0:K(e.location),topCategories:e.topCategories==null?void 0:e.topCategories.map(L),topTopics:e.topTopics==null?void 0:e.topTopics.map(L),topCountries:e.topCountries==null?void 0:e.topCountries.map(L),topLabels:e.topLabels==null?void 0:e.topLabels.map(L),avgBiasRating:e.avgBiasRating==null?void 0:e.avgBiasRating,adFontesBiasRating:e.adFontesBiasRating==null?void 0:e.adFontesBiasRating,allSidesBiasRating:e.allSidesBiasRating==null?void 0:e.allSidesBiasRating,mbfcBiasRating:e.mbfcBiasRating==null?void 0:e.mbfcBiasRating,monthlyVisits:e.monthlyVisits==null?void 0:e.monthlyVisits,globalRank:e.globalRank==null?void 0:e.globalRank,logoLarge:e.logoLarge==null?void 0:k(e.logoLarge),logoFavIcon:e.logoFavIcon==null?void 0:k(e.logoFavIcon),logoSquare:e.logoSquare==null?void 0:k(e.logoSquare)}}function yn(e){return zt(e,false)}function zt(e,n=false){return e==null?e:{id:e.id,domain:e.domain,name:e.name,primaryRecordId:e.primaryRecordId,updatedAt:e.updatedAt,altNames:e.altNames,description:e.description,avgMonthlyPosts:e.avgMonthlyPosts,paywall:e.paywall,location:P(e.location),topCategories:e.topCategories==null?void 0:e.topCategories.map(W),topTopics:e.topTopics==null?void 0:e.topTopics.map(W),topCountries:e.topCountries==null?void 0:e.topCountries.map(W),topLabels:e.topLabels==null?void 0:e.topLabels.map(W),avgBiasRating:e.avgBiasRating,adFontesBiasRating:e.adFontesBiasRating,allSidesBiasRating:e.allSidesBiasRating,mbfcBiasRating:e.mbfcBiasRating,monthlyVisits:e.monthlyVisits,globalRank:e.globalRank,logoLarge:C(e.logoLarge),logoFavIcon:C(e.logoFavIcon),logoSquare:C(e.logoSquare)}}function vc(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function fn(e){return Vt(e)}function Vt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(mn)}}function qc(e){return Gt(e,false)}function Gt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(yn)}}function ts(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function Sn(e){return Qt(e)}function Qt(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(te)}}function rs(e){return Kt(e,false)}function Kt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(re)}}var as={Title:"TITLE",Content:"CONTENT",Summary:"SUMMARY"},ls={Articles:"ARTICLES",Clusters:"CLUSTERS"},us={Gpt4o:"gpt-4o",Gpt4oMini:"gpt-4o-mini",Gpt41:"gpt-4.1",Gpt41Mini:"gpt-4.1-mini",Gpt41Nano:"gpt-4.1-nano",Llama3370bVersatile:"llama-3.3-70b-versatile",DeepseekR1DistillLlama70b:"deepseek-r1-distill-llama-70b"};function ds(e){return true}function cs(e){return Pt(e)}function Pt(e,n){return e==null?e:{prompt:e.prompt==null?void 0:e.prompt,maxArticleCount:e.maxArticleCount==null?void 0:e.maxArticleCount,returnedArticleCount:e.returnedArticleCount==null?void 0:e.returnedArticleCount,summarizeFields:e.summarizeFields==null?void 0:e.summarizeFields,method:e.method==null?void 0:e.method,model:e.model==null?void 0:e.model,temperature:e.temperature==null?void 0:e.temperature,topP:e.topP==null?void 0:e.topP,maxTokens:e.maxTokens==null?void 0:e.maxTokens}}function gn(e){return Yt(e,false)}function Yt(e,n=false){return e==null?e:{prompt:e.prompt,maxArticleCount:e.maxArticleCount,returnedArticleCount:e.returnedArticleCount,summarizeFields:e.summarizeFields,method:e.method,model:e.model,temperature:e.temperature,topP:e.topP,maxTokens:e.maxTokens}}function fs(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("summary"in e)||e.summary===void 0||!("results"in e)||e.results===void 0)}function Tn(e){return $t(e)}function $t(e,n){return e==null?e:{status:e.status,numResults:e.numResults,summary:e.summary,results:e.results.map(h)}}function Ss(e){return Xt(e,false)}function Xt(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,summary:e.summary,results:e.results.map(A)}}var ks={_100Continue:"100 CONTINUE",_101SwitchingProtocols:"101 SWITCHING_PROTOCOLS",_102Processing:"102 PROCESSING",_103Checkpoint:"103 CHECKPOINT",_200Ok:"200 OK",_201Created:"201 CREATED",_202Accepted:"202 ACCEPTED",_203NonAuthoritativeInformation:"203 NON_AUTHORITATIVE_INFORMATION",_204NoContent:"204 NO_CONTENT",_205ResetContent:"205 RESET_CONTENT",_206PartialContent:"206 PARTIAL_CONTENT",_207MultiStatus:"207 MULTI_STATUS",_208AlreadyReported:"208 ALREADY_REPORTED",_226ImUsed:"226 IM_USED",_300MultipleChoices:"300 MULTIPLE_CHOICES",_301MovedPermanently:"301 MOVED_PERMANENTLY",_302Found:"302 FOUND",_302MovedTemporarily:"302 MOVED_TEMPORARILY",_303SeeOther:"303 SEE_OTHER",_304NotModified:"304 NOT_MODIFIED",_305UseProxy:"305 USE_PROXY",_307TemporaryRedirect:"307 TEMPORARY_REDIRECT",_308PermanentRedirect:"308 PERMANENT_REDIRECT",_400BadRequest:"400 BAD_REQUEST",_401Unauthorized:"401 UNAUTHORIZED",_402PaymentRequired:"402 PAYMENT_REQUIRED",_403Forbidden:"403 FORBIDDEN",_404NotFound:"404 NOT_FOUND",_405MethodNotAllowed:"405 METHOD_NOT_ALLOWED",_406NotAcceptable:"406 NOT_ACCEPTABLE",_407ProxyAuthenticationRequired:"407 PROXY_AUTHENTICATION_REQUIRED",_408RequestTimeout:"408 REQUEST_TIMEOUT",_409Conflict:"409 CONFLICT",_410Gone:"410 GONE",_411LengthRequired:"411 LENGTH_REQUIRED",_412PreconditionFailed:"412 PRECONDITION_FAILED",_413PayloadTooLarge:"413 PAYLOAD_TOO_LARGE",_413RequestEntityTooLarge:"413 REQUEST_ENTITY_TOO_LARGE",_414UriTooLong:"414 URI_TOO_LONG",_414RequestUriTooLong:"414 REQUEST_URI_TOO_LONG",_415UnsupportedMediaType:"415 UNSUPPORTED_MEDIA_TYPE",_416RequestedRangeNotSatisfiable:"416 REQUESTED_RANGE_NOT_SATISFIABLE",_417ExpectationFailed:"417 EXPECTATION_FAILED",_418IAmATeapot:"418 I_AM_A_TEAPOT",_419InsufficientSpaceOnResource:"419 INSUFFICIENT_SPACE_ON_RESOURCE",_420MethodFailure:"420 METHOD_FAILURE",_421DestinationLocked:"421 DESTINATION_LOCKED",_422UnprocessableEntity:"422 UNPROCESSABLE_ENTITY",_423Locked:"423 LOCKED",_424FailedDependency:"424 FAILED_DEPENDENCY",_425TooEarly:"425 TOO_EARLY",_426UpgradeRequired:"426 UPGRADE_REQUIRED",_428PreconditionRequired:"428 PRECONDITION_REQUIRED",_429TooManyRequests:"429 TOO_MANY_REQUESTS",_431RequestHeaderFieldsTooLarge:"431 REQUEST_HEADER_FIELDS_TOO_LARGE",_451UnavailableForLegalReasons:"451 UNAVAILABLE_FOR_LEGAL_REASONS",_500InternalServerError:"500 INTERNAL_SERVER_ERROR",_501NotImplemented:"501 NOT_IMPLEMENTED",_502BadGateway:"502 BAD_GATEWAY",_503ServiceUnavailable:"503 SERVICE_UNAVAILABLE",_504GatewayTimeout:"504 GATEWAY_TIMEOUT",_505HttpVersionNotSupported:"505 HTTP_VERSION_NOT_SUPPORTED",_506VariantAlsoNegotiates:"506 VARIANT_ALSO_NEGOTIATES",_507InsufficientStorage:"507 INSUFFICIENT_STORAGE",_508LoopDetected:"508 LOOP_DETECTED",_509BandwidthLimitExceeded:"509 BANDWIDTH_LIMIT_EXCEEDED",_510NotExtended:"510 NOT_EXTENDED",_511NetworkAuthenticationRequired:"511 NETWORK_AUTHENTICATION_REQUIRED"};function Cs(e){return true}function Js(e){return Zt(e)}function Zt(e,n){return e==null?e:{cause:e.cause==null?void 0:s(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(d),status:e.status==null?void 0:e.status,message:e.message==null?void 0:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(m),localizedMessage:e.localizedMessage==null?void 0:e.localizedMessage}}function Fs(e){return vt(e,false)}function vt(e,n=false){return e==null?e:{cause:p(e.cause),stackTrace:e.stackTrace==null?void 0:e.stackTrace.map(c),status:e.status,message:e.message,suppressed:e.suppressed==null?void 0:e.suppressed.map(y),localizedMessage:e.localizedMessage}}function ws(e){return true}function hn(e){return qt(e)}function qt(e,n){return e==null?e:{category:e.category==null?void 0:e.category,subcategory:e.subcategory==null?void 0:e.subcategory}}function An(e){return jt(e,false)}function jt(e,n=false){return e==null?e:{category:e.category,subcategory:e.subcategory}}function _s(e){return true}function On(e){return er(e)}function er(e,n){return e==null?e:{id:e.id==null?void 0:e.id,createdAt:e.createdAt==null?void 0:new Date(e.createdAt),updatedAt:e.updatedAt==null?void 0:new Date(e.updatedAt),name:e.name==null?void 0:e.name,labels:e.labels==null?void 0:hn(e.labels)}}function Nn(e){return nr(e,false)}function nr(e,n=false){return e==null?e:{id:e.id,createdAt:e.createdAt==null?void 0:e.createdAt.toISOString(),updatedAt:e.updatedAt==null?void 0:e.updatedAt.toISOString(),name:e.name,labels:An(e.labels)}}function Vs(e){return !(!("total"in e)||e.total===void 0||!("data"in e)||e.data===void 0)}function xn(e){return ir(e)}function ir(e,n){return e==null?e:{total:e.total,data:e.data.map(On)}}function Gs(e){return tr(e,false)}function tr(e,n=false){return e==null?e:{total:e.total,data:e.data.map(Nn)}}function Ks(e){return true}function Rn(e){return rr(e)}function rr(e,n){return e==null?e:{id:e.id==null?void 0:e.id,title:e.title==null?void 0:e.title,styleLevel:e.styleLevel==null?void 0:e.styleLevel,loc:e.loc==null?void 0:e.loc,textRaw:e.textRaw==null?void 0:e.textRaw,textRich:e.textRich==null?void 0:e.textRich}}function bn(e){return or(e,false)}function or(e,n=false){return e==null?e:{id:e.id,title:e.title,styleLevel:e.styleLevel,loc:e.loc,textRaw:e.textRaw,textRich:e.textRich}}function js(e){return true}function In(e){return ar(e)}function ar(e,n){return e==null?e:{id:e.id==null?void 0:e.id,scrapedAt:e.scrapedAt==null?void 0:e.scrapedAt,wikiPageId:e.wikiPageId==null?void 0:e.wikiPageId,wikiRevisionId:e.wikiRevisionId==null?void 0:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs==null?void 0:e.wikiRevisionTs,wikiCode:e.wikiCode==null?void 0:e.wikiCode,wikiNamespace:e.wikiNamespace==null?void 0:e.wikiNamespace,wikiTitle:e.wikiTitle==null?void 0:e.wikiTitle,url:e.url==null?void 0:e.url,topImage:e.topImage==null?void 0:e.topImage,wikidataId:e.wikidataId==null?void 0:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(g),redirectTitles:e.redirectTitles==null?void 0:e.redirectTitles,summary:e.summary==null?void 0:e.summary,sections:e.sections==null?void 0:e.sections.map(Rn),categories:e.categories==null?void 0:e.categories,externalLinks:e.externalLinks==null?void 0:e.externalLinks,references:e.references==null?void 0:e.references,pageviews:e.pageviews==null?void 0:e.pageviews}}function kn(e){return lr(e,false)}function lr(e,n=false){return e==null?e:{id:e.id,scrapedAt:e.scrapedAt,wikiPageId:e.wikiPageId,wikiRevisionId:e.wikiRevisionId,wikiRevisionTs:e.wikiRevisionTs,wikiCode:e.wikiCode,wikiNamespace:e.wikiNamespace,wikiTitle:e.wikiTitle,url:e.url,topImage:e.topImage,wikidataId:e.wikidataId,wikidataInstanceOf:e.wikidataInstanceOf==null?void 0:e.wikidataInstanceOf.map(T),redirectTitles:e.redirectTitles,summary:e.summary,sections:e.sections==null?void 0:e.sections.map(bn),categories:e.categories,externalLinks:e.externalLinks,references:e.references,pageviews:e.pageviews}}function np(e){return true}function _(e){return ur(e)}function ur(e,n){return e==null?e:{pageId:e.pageId==null?void 0:e.pageId,sectionId:e.sectionId==null?void 0:e.sectionId,wikiPageId:e.wikiPageId==null?void 0:e.wikiPageId,wikiRevisionId:e.wikiRevisionId==null?void 0:e.wikiRevisionId,wikiCode:e.wikiCode==null?void 0:e.wikiCode,wikiNamespace:e.wikiNamespace==null?void 0:e.wikiNamespace,wikidataId:e.wikidataId==null?void 0:e.wikidataId,wikidataInstanceOfId:e.wikidataInstanceOfId==null?void 0:e.wikidataInstanceOfId,wikidataInstanceOfLabel:e.wikidataInstanceOfLabel==null?void 0:e.wikidataInstanceOfLabel,aND:e.AND==null?void 0:e.AND.map(_),oR:e.OR==null?void 0:e.OR.map(_),nOT:e.NOT==null?void 0:e.NOT.map(_)}}function M(e){return dr(e,false)}function dr(e,n=false){return e==null?e:{pageId:e.pageId,sectionId:e.sectionId,wikiPageId:e.wikiPageId,wikiRevisionId:e.wikiRevisionId,wikiCode:e.wikiCode,wikiNamespace:e.wikiNamespace,wikidataId:e.wikidataId,wikidataInstanceOfId:e.wikidataInstanceOfId,wikidataInstanceOfLabel:e.wikidataInstanceOfLabel,AND:e.aND==null?void 0:e.aND.map(M),OR:e.oR==null?void 0:e.oR.map(M),NOT:e.nOT==null?void 0:e.nOT.map(M)}}function ap(e){return !(!("prompt"in e)||e.prompt===void 0)}function lp(e){return cr(e)}function cr(e,n){return e==null?e:{prompt:e.prompt,filter:e.filter==null?void 0:_(e.filter),wikiRevisionFrom:e.wikiRevisionFrom==null?void 0:new Date(e.wikiRevisionFrom),wikiRevisionTo:e.wikiRevisionTo==null?void 0:new Date(e.wikiRevisionTo),pageviewsFrom:e.pageviewsFrom==null?void 0:e.pageviewsFrom,pageviewsTo:e.pageviewsTo==null?void 0:e.pageviewsTo,size:e.size==null?void 0:e.size,page:e.page==null?void 0:e.page}}function Cn(e){return sr(e,false)}function sr(e,n=false){return e==null?e:{prompt:e.prompt,filter:M(e.filter),wikiRevisionFrom:e.wikiRevisionFrom==null?void 0:e.wikiRevisionFrom.toISOString(),wikiRevisionTo:e.wikiRevisionTo==null?void 0:e.wikiRevisionTo.toISOString(),pageviewsFrom:e.pageviewsFrom,pageviewsTo:e.pageviewsTo,size:e.size,page:e.page}}function pp(e){return !(!("status"in e)||e.status===void 0||!("numResults"in e)||e.numResults===void 0||!("results"in e)||e.results===void 0)}function Jn(e){return pr(e)}function pr(e,n){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(In)}}function mp(e){return mr(e,false)}function mr(e,n=false){return e==null?e:{status:e.status,numResults:e.numResults,results:e.results.map(kn)}}function Tp(e){return !(!("status"in e)||e.status===void 0||!("results"in e)||e.results===void 0)}function Fn(e){return yr(e)}function yr(e,n){return e==null?e:{status:e.status,results:e.results.map(sn)}}function hp(e){return fr(e,false)}function fr(e,n=false){return e==null?e:{status:e.status,results:e.results.map(pn)}}var En=class extends U{async getJournalistByIdRaw(n,t){if(n.id==null)throw new O("id",'Required parameter "id" was null or undefined when calling getJournalistById().');let i={},r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/journalists/{id}".replace("{id}",encodeURIComponent(String(n.id))),method:"GET",headers:r,query:i},t);return new u(a,o=>I(o))}async getJournalistById(n,t){return await(await this.getJournalistByIdRaw(n,t)).value()}async searchArticlesRaw(n,t){let i={};n.q!=null&&(i.q=n.q),n.title!=null&&(i.title=n.title),n.desc!=null&&(i.desc=n.desc),n.content!=null&&(i.content=n.content),n.url!=null&&(i.url=n.url),n.articleId!=null&&(i.articleId=n.articleId),n.clusterId!=null&&(i.clusterId=n.clusterId),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.from!=null&&(i.from=n.from.toISOString()),n.to!=null&&(i.to=n.to.toISOString()),n.addDateFrom!=null&&(i.addDateFrom=n.addDateFrom.toISOString()),n.addDateTo!=null&&(i.addDateTo=n.addDateTo.toISOString()),n.refreshDateFrom!=null&&(i.refreshDateFrom=n.refreshDateFrom.toISOString()),n.refreshDateTo!=null&&(i.refreshDateTo=n.refreshDateTo.toISOString()),n.medium!=null&&(i.medium=n.medium),n.source!=null&&(i.source=n.source),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.excludeSourceGroup!=null&&(i.excludeSourceGroup=n.excludeSourceGroup),n.excludeSource!=null&&(i.excludeSource=n.excludeSource),n.paywall!=null&&(i.paywall=n.paywall),n.byline!=null&&(i.byline=n.byline),n.author!=null&&(i.author=n.author),n.excludeAuthor!=null&&(i.excludeAuthor=n.excludeAuthor),n.journalistId!=null&&(i.journalistId=n.journalistId),n.excludeJournalistId!=null&&(i.excludeJournalistId=n.excludeJournalistId),n.language!=null&&(i.language=n.language),n.excludeLanguage!=null&&(i.excludeLanguage=n.excludeLanguage),n.searchTranslation!=null&&(i.searchTranslation=n.searchTranslation),n.label!=null&&(i.label=n.label),n.excludeLabel!=null&&(i.excludeLabel=n.excludeLabel),n.category!=null&&(i.category=n.category),n.excludeCategory!=null&&(i.excludeCategory=n.excludeCategory),n.topic!=null&&(i.topic=n.topic),n.excludeTopic!=null&&(i.excludeTopic=n.excludeTopic),n.linkTo!=null&&(i.linkTo=n.linkTo),n.showReprints!=null&&(i.showReprints=n.showReprints),n.reprintGroupId!=null&&(i.reprintGroupId=n.reprintGroupId),n.city!=null&&(i.city=n.city),n.excludeCity!=null&&(i.excludeCity=n.excludeCity),n.area!=null&&(i.area=n.area),n.state!=null&&(i.state=n.state),n.excludeState!=null&&(i.excludeState=n.excludeState),n.county!=null&&(i.county=n.county),n.excludeCounty!=null&&(i.excludeCounty=n.excludeCounty),n.locationsCountry!=null&&(i.locationsCountry=n.locationsCountry),n.country!=null&&(i.country=n.country),n.excludeLocationsCountry!=null&&(i.excludeLocationsCountry=n.excludeLocationsCountry),n.location!=null&&(i.location=n.location),n.lat!=null&&(i.lat=n.lat),n.lon!=null&&(i.lon=n.lon),n.maxDistance!=null&&(i.maxDistance=n.maxDistance),n.sourceCity!=null&&(i.sourceCity=n.sourceCity),n.sourceCounty!=null&&(i.sourceCounty=n.sourceCounty),n.sourceCountry!=null&&(i.sourceCountry=n.sourceCountry),n.sourceState!=null&&(i.sourceState=n.sourceState),n.sourceLat!=null&&(i.sourceLat=n.sourceLat),n.sourceLon!=null&&(i.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(i.sourceMaxDistance=n.sourceMaxDistance),n.personWikidataId!=null&&(i.personWikidataId=n.personWikidataId),n.excludePersonWikidataId!=null&&(i.excludePersonWikidataId=n.excludePersonWikidataId),n.personName!=null&&(i.personName=n.personName),n.excludePersonName!=null&&(i.excludePersonName=n.excludePersonName),n.companyId!=null&&(i.companyId=n.companyId),n.excludeCompanyId!=null&&(i.excludeCompanyId=n.excludeCompanyId),n.companyName!=null&&(i.companyName=n.companyName),n.companyDomain!=null&&(i.companyDomain=n.companyDomain),n.excludeCompanyDomain!=null&&(i.excludeCompanyDomain=n.excludeCompanyDomain),n.companySymbol!=null&&(i.companySymbol=n.companySymbol),n.excludeCompanySymbol!=null&&(i.excludeCompanySymbol=n.excludeCompanySymbol),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.positiveSentimentFrom!=null&&(i.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(i.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(i.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(i.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(i.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(i.negativeSentimentTo=n.negativeSentimentTo),n.taxonomy!=null&&(i.taxonomy=n.taxonomy),n.prefixTaxonomy!=null&&(i.prefixTaxonomy=n.prefixTaxonomy),n.showHighlighting!=null&&(i.showHighlighting=n.showHighlighting),n.highlightFragmentSize!=null&&(i.highlightFragmentSize=n.highlightFragmentSize),n.highlightNumFragments!=null&&(i.highlightNumFragments=n.highlightNumFragments),n.highlightPreTag!=null&&(i.highlightPreTag=n.highlightPreTag),n.highlightPostTag!=null&&(i.highlightPostTag=n.highlightPostTag),n.highlightQ!=null&&(i.highlightQ=n.highlightQ);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/articles/all",method:"GET",headers:r,query:i},t);return new u(a,o=>un(o))}async searchArticles(n={},t){return await(await this.searchArticlesRaw(n,t)).value()}async searchCompaniesRaw(n,t){let i={};n.id!=null&&(i.id=n.id),n.symbol!=null&&(i.symbol=n.symbol),n.domain!=null&&(i.domain=n.domain),n.country!=null&&(i.country=n.country),n.exchange!=null&&(i.exchange=n.exchange),n.numEmployeesFrom!=null&&(i.numEmployeesFrom=n.numEmployeesFrom),n.numEmployeesTo!=null&&(i.numEmployeesTo=n.numEmployeesTo),n.ipoFrom!=null&&(i.ipoFrom=n.ipoFrom.toISOString()),n.ipoTo!=null&&(i.ipoTo=n.ipoTo.toISOString()),n.q!=null&&(i.q=n.q),n.name!=null&&(i.name=n.name),n.industry!=null&&(i.industry=n.industry),n.sector!=null&&(i.sector=n.sector),n.size!=null&&(i.size=n.size),n.page!=null&&(i.page=n.page);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/companies/all",method:"GET",headers:r,query:i},t);return new u(a,o=>qe(o))}async searchCompanies(n={},t){return await(await this.searchCompaniesRaw(n,t)).value()}async searchJournalistsRaw(n,t){let i={};n.id!=null&&(i.id=n.id),n.q!=null&&(i.q=n.q),n.name!=null&&(i.name=n.name),n.twitter!=null&&(i.twitter=n.twitter),n.size!=null&&(i.size=n.size),n.page!=null&&(i.page=n.page),n.source!=null&&(i.source=n.source),n.topic!=null&&(i.topic=n.topic),n.category!=null&&(i.category=n.category),n.label!=null&&(i.label=n.label),n.minMonthlyPosts!=null&&(i.minMonthlyPosts=n.minMonthlyPosts),n.maxMonthlyPosts!=null&&(i.maxMonthlyPosts=n.maxMonthlyPosts),n.country!=null&&(i.country=n.country),n.updatedAtFrom!=null&&(i.updatedAtFrom=n.updatedAtFrom.toISOString()),n.updatedAtTo!=null&&(i.updatedAtTo=n.updatedAtTo.toISOString()),n.showNumResults!=null&&(i.showNumResults=n.showNumResults);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/journalists/all",method:"GET",headers:r,query:i},t);return new u(a,o=>je(o))}async searchJournalists(n={},t){return await(await this.searchJournalistsRaw(n,t)).value()}async searchPeopleRaw(n,t){let i={};n.name!=null&&(i.name=n.name),n.wikidataId!=null&&(i.wikidataId=n.wikidataId),n.occupationId!=null&&(i.occupationId=n.occupationId),n.occupationLabel!=null&&(i.occupationLabel=n.occupationLabel),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/people/all",method:"GET",headers:r,query:i},t);return new u(a,o=>ln(o))}async searchPeople(n={},t){return await(await this.searchPeopleRaw(n,t)).value()}async searchSourcesRaw(n,t){let i={};n.domain!=null&&(i.domain=n.domain),n.name!=null&&(i.name=n.name),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.minMonthlyVisits!=null&&(i.minMonthlyVisits=n.minMonthlyVisits),n.maxMonthlyVisits!=null&&(i.maxMonthlyVisits=n.maxMonthlyVisits),n.minMonthlyPosts!=null&&(i.minMonthlyPosts=n.minMonthlyPosts),n.maxMonthlyPosts!=null&&(i.maxMonthlyPosts=n.maxMonthlyPosts),n.country!=null&&(i.country=n.country),n.sourceCountry!=null&&(i.sourceCountry=n.sourceCountry),n.sourceState!=null&&(i.sourceState=n.sourceState),n.sourceCounty!=null&&(i.sourceCounty=n.sourceCounty),n.sourceCity!=null&&(i.sourceCity=n.sourceCity),n.sourceLat!=null&&(i.sourceLat=n.sourceLat),n.sourceLon!=null&&(i.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(i.sourceMaxDistance=n.sourceMaxDistance),n.category!=null&&(i.category=n.category),n.topic!=null&&(i.topic=n.topic),n.label!=null&&(i.label=n.label),n.paywall!=null&&(i.paywall=n.paywall),n.showSubdomains!=null&&(i.showSubdomains=n.showSubdomains),n.showNumResults!=null&&(i.showNumResults=n.showNumResults);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/sources/all",method:"GET",headers:r,query:i},t);return new u(a,o=>fn(o))}async searchSources(n={},t){return await(await this.searchSourcesRaw(n,t)).value()}async searchStoriesRaw(n,t){let i={};n.q!=null&&(i.q=n.q),n.name!=null&&(i.name=n.name),n.clusterId!=null&&(i.clusterId=n.clusterId),n.excludeClusterId!=null&&(i.excludeClusterId=n.excludeClusterId),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.from!=null&&(i.from=n.from.toISOString()),n.to!=null&&(i.to=n.to.toISOString()),n.initializedFrom!=null&&(i.initializedFrom=n.initializedFrom.toISOString()),n.initializedTo!=null&&(i.initializedTo=n.initializedTo.toISOString()),n.updatedFrom!=null&&(i.updatedFrom=n.updatedFrom.toISOString()),n.updatedTo!=null&&(i.updatedTo=n.updatedTo.toISOString()),n.topic!=null&&(i.topic=n.topic),n.category!=null&&(i.category=n.category),n.taxonomy!=null&&(i.taxonomy=n.taxonomy),n.source!=null&&(i.source=n.source),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.minUniqueSources!=null&&(i.minUniqueSources=n.minUniqueSources),n.personWikidataId!=null&&(i.personWikidataId=n.personWikidataId),n.personName!=null&&(i.personName=n.personName),n.companyId!=null&&(i.companyId=n.companyId),n.companyName!=null&&(i.companyName=n.companyName),n.companyDomain!=null&&(i.companyDomain=n.companyDomain),n.companySymbol!=null&&(i.companySymbol=n.companySymbol),n.country!=null&&(i.country=n.country),n.state!=null&&(i.state=n.state),n.city!=null&&(i.city=n.city),n.area!=null&&(i.area=n.area),n.minClusterSize!=null&&(i.minClusterSize=n.minClusterSize),n.maxClusterSize!=null&&(i.maxClusterSize=n.maxClusterSize),n.nameExists!=null&&(i.nameExists=n.nameExists),n.positiveSentimentFrom!=null&&(i.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(i.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(i.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(i.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(i.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(i.negativeSentimentTo=n.negativeSentimentTo),n.showStoryPageInfo!=null&&(i.showStoryPageInfo=n.showStoryPageInfo),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.showDuplicates!=null&&(i.showDuplicates=n.showDuplicates),n.showHighlighting!=null&&(i.showHighlighting=n.showHighlighting),n.highlightFragmentSize!=null&&(i.highlightFragmentSize=n.highlightFragmentSize),n.highlightNumFragments!=null&&(i.highlightNumFragments=n.highlightNumFragments),n.highlightPreTag!=null&&(i.highlightPreTag=n.highlightPreTag),n.highlightPostTag!=null&&(i.highlightPostTag=n.highlightPostTag),n.highlightQ!=null&&(i.highlightQ=n.highlightQ);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/stories/all",method:"GET",headers:r,query:i},t);return new u(a,o=>Sn(o))}async searchStories(n={},t){return await(await this.searchStoriesRaw(n,t)).value()}async searchSummarizerRaw(n,t){if(n.summaryBody==null)throw new O("summaryBody",'Required parameter "summaryBody" was null or undefined when calling searchSummarizer().');let i={};n.q!=null&&(i.q=n.q),n.title!=null&&(i.title=n.title),n.desc!=null&&(i.desc=n.desc),n.content!=null&&(i.content=n.content),n.url!=null&&(i.url=n.url),n.articleId!=null&&(i.articleId=n.articleId),n.clusterId!=null&&(i.clusterId=n.clusterId),n.sortBy!=null&&(i.sortBy=n.sortBy),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.from!=null&&(i.from=n.from.toISOString()),n.to!=null&&(i.to=n.to.toISOString()),n.addDateFrom!=null&&(i.addDateFrom=n.addDateFrom.toISOString()),n.addDateTo!=null&&(i.addDateTo=n.addDateTo.toISOString()),n.refreshDateFrom!=null&&(i.refreshDateFrom=n.refreshDateFrom.toISOString()),n.refreshDateTo!=null&&(i.refreshDateTo=n.refreshDateTo.toISOString()),n.medium!=null&&(i.medium=n.medium),n.source!=null&&(i.source=n.source),n.sourceGroup!=null&&(i.sourceGroup=n.sourceGroup),n.excludeSourceGroup!=null&&(i.excludeSourceGroup=n.excludeSourceGroup),n.excludeSource!=null&&(i.excludeSource=n.excludeSource),n.paywall!=null&&(i.paywall=n.paywall),n.byline!=null&&(i.byline=n.byline),n.author!=null&&(i.author=n.author),n.excludeAuthor!=null&&(i.excludeAuthor=n.excludeAuthor),n.journalistId!=null&&(i.journalistId=n.journalistId),n.excludeJournalistId!=null&&(i.excludeJournalistId=n.excludeJournalistId),n.language!=null&&(i.language=n.language),n.excludeLanguage!=null&&(i.excludeLanguage=n.excludeLanguage),n.searchTranslation!=null&&(i.searchTranslation=n.searchTranslation),n.label!=null&&(i.label=n.label),n.excludeLabel!=null&&(i.excludeLabel=n.excludeLabel),n.category!=null&&(i.category=n.category),n.excludeCategory!=null&&(i.excludeCategory=n.excludeCategory),n.topic!=null&&(i.topic=n.topic),n.excludeTopic!=null&&(i.excludeTopic=n.excludeTopic),n.linkTo!=null&&(i.linkTo=n.linkTo),n.showReprints!=null&&(i.showReprints=n.showReprints),n.reprintGroupId!=null&&(i.reprintGroupId=n.reprintGroupId),n.city!=null&&(i.city=n.city),n.excludeCity!=null&&(i.excludeCity=n.excludeCity),n.area!=null&&(i.area=n.area),n.state!=null&&(i.state=n.state),n.excludeState!=null&&(i.excludeState=n.excludeState),n.county!=null&&(i.county=n.county),n.excludeCounty!=null&&(i.excludeCounty=n.excludeCounty),n.locationsCountry!=null&&(i.locationsCountry=n.locationsCountry),n.country!=null&&(i.country=n.country),n.excludeLocationsCountry!=null&&(i.excludeLocationsCountry=n.excludeLocationsCountry),n.location!=null&&(i.location=n.location),n.lat!=null&&(i.lat=n.lat),n.lon!=null&&(i.lon=n.lon),n.maxDistance!=null&&(i.maxDistance=n.maxDistance),n.sourceCity!=null&&(i.sourceCity=n.sourceCity),n.sourceCounty!=null&&(i.sourceCounty=n.sourceCounty),n.sourceCountry!=null&&(i.sourceCountry=n.sourceCountry),n.sourceState!=null&&(i.sourceState=n.sourceState),n.sourceLat!=null&&(i.sourceLat=n.sourceLat),n.sourceLon!=null&&(i.sourceLon=n.sourceLon),n.sourceMaxDistance!=null&&(i.sourceMaxDistance=n.sourceMaxDistance),n.personWikidataId!=null&&(i.personWikidataId=n.personWikidataId),n.excludePersonWikidataId!=null&&(i.excludePersonWikidataId=n.excludePersonWikidataId),n.personName!=null&&(i.personName=n.personName),n.excludePersonName!=null&&(i.excludePersonName=n.excludePersonName),n.companyId!=null&&(i.companyId=n.companyId),n.excludeCompanyId!=null&&(i.excludeCompanyId=n.excludeCompanyId),n.companyName!=null&&(i.companyName=n.companyName),n.companyDomain!=null&&(i.companyDomain=n.companyDomain),n.excludeCompanyDomain!=null&&(i.excludeCompanyDomain=n.excludeCompanyDomain),n.companySymbol!=null&&(i.companySymbol=n.companySymbol),n.excludeCompanySymbol!=null&&(i.excludeCompanySymbol=n.excludeCompanySymbol),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.positiveSentimentFrom!=null&&(i.positiveSentimentFrom=n.positiveSentimentFrom),n.positiveSentimentTo!=null&&(i.positiveSentimentTo=n.positiveSentimentTo),n.neutralSentimentFrom!=null&&(i.neutralSentimentFrom=n.neutralSentimentFrom),n.neutralSentimentTo!=null&&(i.neutralSentimentTo=n.neutralSentimentTo),n.negativeSentimentFrom!=null&&(i.negativeSentimentFrom=n.negativeSentimentFrom),n.negativeSentimentTo!=null&&(i.negativeSentimentTo=n.negativeSentimentTo),n.taxonomy!=null&&(i.taxonomy=n.taxonomy),n.prefixTaxonomy!=null&&(i.prefixTaxonomy=n.prefixTaxonomy),n.showHighlighting!=null&&(i.showHighlighting=n.showHighlighting),n.highlightFragmentSize!=null&&(i.highlightFragmentSize=n.highlightFragmentSize),n.highlightNumFragments!=null&&(i.highlightNumFragments=n.highlightNumFragments),n.highlightPreTag!=null&&(i.highlightPreTag=n.highlightPreTag),n.highlightPostTag!=null&&(i.highlightPostTag=n.highlightPostTag),n.highlightQ!=null&&(i.highlightQ=n.highlightQ);let r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/summarize",method:"POST",headers:r,query:i,body:gn(n.summaryBody)},t);return new u(a,o=>Tn(o))}async searchSummarizer(n,t){return await(await this.searchSummarizerRaw(n,t)).value()}async searchTopicsRaw(n,t){let i={};n.name!=null&&(i.name=n.name),n.category!=null&&(i.category=n.category),n.subcategory!=null&&(i.subcategory=n.subcategory),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/topics/all",method:"GET",headers:r,query:i},t);return new u(a,o=>xn(o))}async searchTopics(n={},t){return await(await this.searchTopicsRaw(n,t)).value()}async searchWikipediaRaw(n,t){let i={};n.q!=null&&(i.q=n.q),n.title!=null&&(i.title=n.title),n.summary!=null&&(i.summary=n.summary),n.text!=null&&(i.text=n.text),n.reference!=null&&(i.reference=n.reference),n.id!=null&&(i.id=n.id),n.wikiPageId!=null&&(i.wikiPageId=n.wikiPageId),n.wikiRevisionId!=null&&(i.wikiRevisionId=n.wikiRevisionId),n.wikiCode!=null&&(i.wikiCode=n.wikiCode),n.wikiNamespace!=null&&(i.wikiNamespace=n.wikiNamespace),n.wikidataId!=null&&(i.wikidataId=n.wikidataId),n.wikidataInstanceOfId!=null&&(i.wikidataInstanceOfId=n.wikidataInstanceOfId),n.wikidataInstanceOfLabel!=null&&(i.wikidataInstanceOfLabel=n.wikidataInstanceOfLabel),n.category!=null&&(i.category=n.category),n.sectionId!=null&&(i.sectionId=n.sectionId),n.wikiRevisionFrom!=null&&(i.wikiRevisionFrom=n.wikiRevisionFrom.toISOString()),n.wikiRevisionTo!=null&&(i.wikiRevisionTo=n.wikiRevisionTo.toISOString()),n.scrapedAtFrom!=null&&(i.scrapedAtFrom=n.scrapedAtFrom.toISOString()),n.scrapedAtTo!=null&&(i.scrapedAtTo=n.scrapedAtTo.toISOString()),n.pageviewsFrom!=null&&(i.pageviewsFrom=n.pageviewsFrom),n.pageviewsTo!=null&&(i.pageviewsTo=n.pageviewsTo),n.withPageviews!=null&&(i.withPageviews=n.withPageviews),n.showNumResults!=null&&(i.showNumResults=n.showNumResults),n.page!=null&&(i.page=n.page),n.size!=null&&(i.size=n.size),n.sortBy!=null&&(i.sortBy=n.sortBy);let r={};if(this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/wikipedia/all",method:"GET",headers:r,query:i},t);return new u(a,o=>Jn(o))}async searchWikipedia(n={},t){return await(await this.searchWikipediaRaw(n,t)).value()}async vectorSearchArticlesRaw(n,t){if(n.articleSearchParams==null)throw new O("articleSearchParams",'Required parameter "articleSearchParams" was null or undefined when calling vectorSearchArticles().');let i={},r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/vector/news/all",method:"POST",headers:r,query:i,body:Ve(n.articleSearchParams)},t);return new u(a,o=>Ke(o))}async vectorSearchArticles(n,t){return await(await this.vectorSearchArticlesRaw(n,t)).value()}async vectorSearchWikipediaRaw(n,t){if(n.wikipediaSearchParams==null)throw new O("wikipediaSearchParams",'Required parameter "wikipediaSearchParams" was null or undefined when calling vectorSearchWikipedia().');let i={},r={};if(r["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){let o=this.configuration.accessToken,l=await o("apiKeyAuth",[]);l&&(r.Authorization=`Bearer ${l}`);}let a=await this.request({path:"/v1/vector/wikipedia/all",method:"POST",headers:r,query:i,body:Cn(n.wikipediaSearchParams)},t);return new u(a,o=>Fn(o))}async vectorSearchWikipedia(n,t){return await(await this.vectorSearchWikipediaRaw(n,t)).value()}};
|
|
2
|
+
exports.AllEndpointSortBy=ue;exports.AllEndpointSortByFromJSON=Or;exports.AllEndpointSortByFromJSONTyped=Mn;exports.AllEndpointSortByToJSON=Nr;exports.AllEndpointSortByToJSONTyped=xr;exports.ArticleFromJSON=h;exports.ArticleFromJSONTyped=Li;exports.ArticleSearchFilterFromJSON=H;exports.ArticleSearchFilterFromJSONTyped=Bi;exports.ArticleSearchFilterToJSON=D;exports.ArticleSearchFilterToJSONTyped=Ui;exports.ArticleSearchParamsFromJSON=wl;exports.ArticleSearchParamsFromJSONTyped=zi;exports.ArticleSearchParamsToJSON=Ve;exports.ArticleSearchParamsToJSONTyped=Vi;exports.ArticleToJSON=A;exports.ArticleToJSONTyped=Wi;exports.ArticlesVectorSearchResultFromJSON=Ke;exports.ArticlesVectorSearchResultFromJSONTyped=Ki;exports.ArticlesVectorSearchResultToJSON=Gl;exports.ArticlesVectorSearchResultToJSONTyped=Pi;exports.AuthExceptionCauseFromJSON=s;exports.AuthExceptionCauseFromJSONTyped=Xi;exports.AuthExceptionCauseStackTraceInnerFromJSON=d;exports.AuthExceptionCauseStackTraceInnerFromJSONTyped=Yi;exports.AuthExceptionCauseStackTraceInnerToJSON=c;exports.AuthExceptionCauseStackTraceInnerToJSONTyped=$i;exports.AuthExceptionCauseToJSON=p;exports.AuthExceptionCauseToJSONTyped=Zi;exports.AuthExceptionFromJSON=yu;exports.AuthExceptionFromJSONTyped=ji;exports.AuthExceptionStatusCodeEnum=pu;exports.AuthExceptionSuppressedInnerFromJSON=m;exports.AuthExceptionSuppressedInnerFromJSONTyped=vi;exports.AuthExceptionSuppressedInnerToJSON=y;exports.AuthExceptionSuppressedInnerToJSONTyped=qi;exports.AuthExceptionToJSON=fu;exports.AuthExceptionToJSONTyped=et;exports.BASE_PATH=Hn;exports.BaseAPI=U;exports.BlobApiResponse=ye;exports.COLLECTION_FORMATS=Sr;exports.CategoryHolderFromJSON=J;exports.CategoryHolderFromJSONTyped=ni;exports.CategoryHolderToJSON=F;exports.CategoryHolderToJSONTyped=ii;exports.CategoryWithScoreHolderFromJSON=We;exports.CategoryWithScoreHolderFromJSONTyped=Ji;exports.CategoryWithScoreHolderToJSON=_e;exports.CategoryWithScoreHolderToJSONTyped=Fi;exports.CompanyCountFromJSON=Ie;exports.CompanyCountFromJSONTyped=mi;exports.CompanyCountToJSON=ke;exports.CompanyCountToJSONTyped=yi;exports.CompanyFromJSON=Ze;exports.CompanyFromJSONTyped=ot;exports.CompanyHolderFromJSON=X;exports.CompanyHolderFromJSONTyped=vn;exports.CompanyHolderToJSON=Z;exports.CompanyHolderToJSONTyped=qn;exports.CompanySearchResultFromJSON=qe;exports.CompanySearchResultFromJSONTyped=lt;exports.CompanySearchResultToJSON=Hu;exports.CompanySearchResultToJSONTyped=ut;exports.CompanyToJSON=ve;exports.CompanyToJSONTyped=at;exports.Configuration=oe;exports.CoordinateFilterFromJSON=de;exports.CoordinateFilterFromJSONTyped=_i;exports.CoordinateFilterToJSON=ce;exports.CoordinateFilterToJSONTyped=Mi;exports.CoordinateFromJSON=G;exports.CoordinateFromJSONTyped=Kn;exports.CoordinateToJSON=Q;exports.CoordinateToJSONTyped=Pn;exports.DefaultConfig=Dn;exports.EntityHolderFromJSON=Te;exports.EntityHolderFromJSONTyped=jn;exports.EntityHolderToJSON=he;exports.EntityHolderToJSONTyped=ei;exports.EventTypeHolderFromJSON=De;exports.EventTypeHolderFromJSONTyped=ki;exports.EventTypeHolderToJSON=Le;exports.EventTypeHolderToJSONTyped=Ci;exports.FetchError=le;exports.IdNameHolderFromJSON=Ue;exports.IdNameHolderFromJSONTyped=Hi;exports.IdNameHolderToJSON=ze;exports.IdNameHolderToJSONTyped=Di;exports.IllegalParameterExceptionFromJSON=Ku;exports.IllegalParameterExceptionFromJSONTyped=dt;exports.IllegalParameterExceptionToJSON=Pu;exports.IllegalParameterExceptionToJSONTyped=ct;exports.ImageHolderFromJSON=k;exports.ImageHolderFromJSONTyped=st;exports.ImageHolderToJSON=C;exports.ImageHolderToJSONTyped=pt;exports.InternalErrorExceptionFromJSON=ad;exports.InternalErrorExceptionFromJSONTyped=mt;exports.InternalErrorExceptionToJSON=ld;exports.InternalErrorExceptionToJSONTyped=yt;exports.JSONApiResponse=u;exports.JournalistFromJSON=I;exports.JournalistFromJSONTyped=Gn;exports.JournalistSearchResultFromJSON=je;exports.JournalistSearchResultFromJSONTyped=ft;exports.JournalistSearchResultToJSON=md;exports.JournalistSearchResultToJSONTyped=St;exports.JournalistToJSON=V;exports.JournalistToJSONTyped=Qn;exports.KeyPointFromJSON=Ce;exports.KeyPointFromJSONTyped=fi;exports.KeyPointToJSON=Je;exports.KeyPointToJSONTyped=Si;exports.KeywordHolderFromJSON=we;exports.KeywordHolderFromJSONTyped=bi;exports.KeywordHolderToJSON=He;exports.KeywordHolderToJSONTyped=Ii;exports.LabelHolderFromJSON=Ae;exports.LabelHolderFromJSONTyped=oi;exports.LabelHolderToJSON=Oe;exports.LabelHolderToJSONTyped=ai;exports.LocationCountFromJSON=Re;exports.LocationCountFromJSONTyped=si;exports.LocationCountToJSON=be;exports.LocationCountToJSONTyped=pi;exports.LocationHolderFromJSON=R;exports.LocationHolderFromJSONTyped=zn;exports.LocationHolderToJSON=b;exports.LocationHolderToJSONTyped=Vn;exports.NameCountFromJSON=N;exports.NameCountFromJSONTyped=Bn;exports.NameCountToJSON=x;exports.NameCountToJSONTyped=Un;exports.NewsClusterFromJSON=te;exports.NewsClusterFromJSONTyped=xi;exports.NewsClusterToJSON=re;exports.NewsClusterToJSONTyped=Ri;exports.NotFoundExceptionFromJSON=bd;exports.NotFoundExceptionFromJSONTyped=gt;exports.NotFoundExceptionToJSON=Id;exports.NotFoundExceptionToJSONTyped=Tt;exports.PeopleSearchResultFromJSON=ln;exports.PeopleSearchResultFromJSONTyped=Jt;exports.PeopleSearchResultToJSON=pc;exports.PeopleSearchResultToJSONTyped=Ft;exports.PersonCountFromJSON=Ne;exports.PersonCountFromJSONTyped=di;exports.PersonCountToJSON=xe;exports.PersonCountToJSONTyped=ci;exports.PersonFromJSON=on;exports.PersonFromJSONTyped=kt;exports.PersonHolderFromJSON=v;exports.PersonHolderFromJSONTyped=ti;exports.PersonHolderToJSON=q;exports.PersonHolderToJSONTyped=ri;exports.PersonToJSON=an;exports.PersonToJSONTyped=Ct;exports.PlaceFromJSON=Me;exports.PlaceFromJSONTyped=Ei;exports.PlaceToJSON=Be;exports.PlaceToJSONTyped=wi;exports.QuerySearchResultFromJSON=un;exports.QuerySearchResultFromJSONTyped=Et;exports.QuerySearchResultToJSON=Tc;exports.QuerySearchResultToJSONTyped=wt;exports.QuestionFromJSON=Fe;exports.QuestionFromJSONTyped=hi;exports.QuestionToJSON=Ee;exports.QuestionToJSONTyped=Ai;exports.RecordStatHolderFromJSON=E;exports.RecordStatHolderFromJSONTyped=li;exports.RecordStatHolderToJSON=w;exports.RecordStatHolderToJSONTyped=ui;exports.RequiredError=O;exports.ResponseError=ae;exports.ScoredDataArticleFromJSON=Ge;exports.ScoredDataArticleFromJSONTyped=Gi;exports.ScoredDataArticleToJSON=Qe;exports.ScoredDataArticleToJSONTyped=Qi;exports.ScoredDataWikiDataFromJSON=sn;exports.ScoredDataWikiDataFromJSONTyped=Lt;exports.ScoredDataWikiDataToJSON=pn;exports.ScoredDataWikiDataToJSONTyped=Wt;exports.SentimentHolderFromJSON=ne;exports.SentimentHolderFromJSONTyped=Oi;exports.SentimentHolderToJSON=ie;exports.SentimentHolderToJSONTyped=Ni;exports.SortBy=se;exports.SortByFromJSON=Ec;exports.SortByFromJSONTyped=_t;exports.SortByToJSON=wc;exports.SortByToJSONTyped=Hc;exports.SourceFromJSON=mn;exports.SourceFromJSONTyped=Ut;exports.SourceHolderFromJSON=Y;exports.SourceHolderFromJSONTyped=Xn;exports.SourceHolderToJSON=$;exports.SourceHolderToJSONTyped=Zn;exports.SourceLocationFromJSON=K;exports.SourceLocationFromJSONTyped=Yn;exports.SourceLocationToJSON=P;exports.SourceLocationToJSONTyped=$n;exports.SourceSearchResultFromJSON=fn;exports.SourceSearchResultFromJSONTyped=Vt;exports.SourceSearchResultToJSON=qc;exports.SourceSearchResultToJSONTyped=Gt;exports.SourceToJSON=yn;exports.SourceToJSONTyped=zt;exports.SourceTopStatHolderFromJSON=L;exports.SourceTopStatHolderFromJSONTyped=Mt;exports.SourceTopStatHolderToJSON=W;exports.SourceTopStatHolderToJSONTyped=Bt;exports.StorySearchResultFromJSON=Sn;exports.StorySearchResultFromJSONTyped=Qt;exports.StorySearchResultToJSON=rs;exports.StorySearchResultToJSONTyped=Kt;exports.SummaryBodyFromJSON=cs;exports.SummaryBodyFromJSONTyped=Pt;exports.SummaryBodyMethodEnum=ls;exports.SummaryBodyModelEnum=us;exports.SummaryBodySummarizeFieldsEnum=as;exports.SummaryBodyToJSON=gn;exports.SummaryBodyToJSONTyped=Yt;exports.SummarySearchResultFromJSON=Tn;exports.SummarySearchResultFromJSONTyped=$t;exports.SummarySearchResultToJSON=Ss;exports.SummarySearchResultToJSONTyped=Xt;exports.SymbolHolderFromJSON=Pe;exports.SymbolHolderFromJSONTyped=nt;exports.SymbolHolderToJSON=Ye;exports.SymbolHolderToJSONTyped=it;exports.TextApiResponse=fe;exports.TooManyRequestsExceptionFromJSON=Js;exports.TooManyRequestsExceptionFromJSONTyped=Zt;exports.TooManyRequestsExceptionStatusEnum=ks;exports.TooManyRequestsExceptionToJSON=Fs;exports.TooManyRequestsExceptionToJSONTyped=vt;exports.TopicDtoFromJSON=On;exports.TopicDtoFromJSONTyped=er;exports.TopicDtoToJSON=Nn;exports.TopicDtoToJSONTyped=nr;exports.TopicHolderFromJSON=j;exports.TopicHolderFromJSONTyped=gi;exports.TopicHolderToJSON=ee;exports.TopicHolderToJSONTyped=Ti;exports.TopicLabelsFromJSON=hn;exports.TopicLabelsFromJSONTyped=qt;exports.TopicLabelsToJSON=An;exports.TopicLabelsToJSONTyped=jt;exports.TopicSearchResultFromJSON=xn;exports.TopicSearchResultFromJSONTyped=ir;exports.TopicSearchResultToJSON=Gs;exports.TopicSearchResultToJSONTyped=tr;exports.V1Api=En;exports.VoidApiResponse=me;exports.WebResourcesFromJSON=$e;exports.WebResourcesFromJSONTyped=tt;exports.WebResourcesToJSON=Xe;exports.WebResourcesToJSONTyped=rt;exports.WikiDataFromJSON=dn;exports.WikiDataFromJSONTyped=Ht;exports.WikiDataToJSON=cn;exports.WikiDataToJSONTyped=Dt;exports.WikiPageFromJSON=In;exports.WikiPageFromJSONTyped=ar;exports.WikiPageSectionHolderFromJSON=Rn;exports.WikiPageSectionHolderFromJSONTyped=rr;exports.WikiPageSectionHolderToJSON=bn;exports.WikiPageSectionHolderToJSONTyped=or;exports.WikiPageToJSON=kn;exports.WikiPageToJSONTyped=lr;exports.WikidataDateHolderFromJSON=f;exports.WikidataDateHolderFromJSONTyped=ht;exports.WikidataDateHolderToJSON=S;exports.WikidataDateHolderToJSONTyped=At;exports.WikidataLabelHolderFromJSON=g;exports.WikidataLabelHolderFromJSONTyped=xt;exports.WikidataLabelHolderToJSON=T;exports.WikidataLabelHolderToJSONTyped=Rt;exports.WikidataPoliticalPartyHolderFromJSON=en;exports.WikidataPoliticalPartyHolderFromJSONTyped=Ot;exports.WikidataPoliticalPartyHolderToJSON=nn;exports.WikidataPoliticalPartyHolderToJSONTyped=Nt;exports.WikidataPositionHolderFromJSON=tn;exports.WikidataPositionHolderFromJSONTyped=bt;exports.WikidataPositionHolderToJSON=rn;exports.WikidataPositionHolderToJSONTyped=It;exports.WikipediaSearchFilterFromJSON=_;exports.WikipediaSearchFilterFromJSONTyped=ur;exports.WikipediaSearchFilterToJSON=M;exports.WikipediaSearchFilterToJSONTyped=dr;exports.WikipediaSearchParamsFromJSON=lp;exports.WikipediaSearchParamsFromJSONTyped=cr;exports.WikipediaSearchParamsToJSON=Cn;exports.WikipediaSearchParamsToJSONTyped=sr;exports.WikipediaSearchResultFromJSON=Jn;exports.WikipediaSearchResultFromJSONTyped=pr;exports.WikipediaSearchResultToJSON=mp;exports.WikipediaSearchResultToJSONTyped=mr;exports.WikipediaVectorSearchResultFromJSON=Fn;exports.WikipediaVectorSearchResultFromJSONTyped=yr;exports.WikipediaVectorSearchResultToJSON=hp;exports.WikipediaVectorSearchResultToJSONTyped=fr;exports.canConsumeForm=hr;exports.exists=gr;exports.instanceOfAllEndpointSortBy=Ar;exports.instanceOfArticle=hl;exports.instanceOfArticleSearchFilter=Il;exports.instanceOfArticleSearchParams=El;exports.instanceOfArticlesVectorSearchResult=Vl;exports.instanceOfAuthException=mu;exports.instanceOfAuthExceptionCause=Zl;exports.instanceOfAuthExceptionCauseStackTraceInner=Kl;exports.instanceOfAuthExceptionSuppressedInner=nu;exports.instanceOfCategoryHolder=jr;exports.instanceOfCategoryWithScoreHolder=Sa;exports.instanceOfCompany=ku;exports.instanceOfCompanyCount=po;exports.instanceOfCompanyHolder=Xr;exports.instanceOfCompanySearchResult=wu;exports.instanceOfCoordinate=_r;exports.instanceOfCoordinateFilter=Ol;exports.instanceOfEntityHolder=vr;exports.instanceOfEventTypeHolder=ya;exports.instanceOfIdNameHolder=xa;exports.instanceOfIllegalParameterException=Qu;exports.instanceOfImageHolder=$u;exports.instanceOfInternalErrorException=od;exports.instanceOfJournalist=Lr;exports.instanceOfJournalistSearchResult=pd;exports.instanceOfKeyPoint=yo;exports.instanceOfKeywordHolder=pa;exports.instanceOfLabelHolder=to;exports.instanceOfLocationCount=co;exports.instanceOfLocationHolder=kr;exports.instanceOfNameCount=br;exports.instanceOfNewsCluster=ca;exports.instanceOfNotFoundException=Rd;exports.instanceOfPeopleSearchResult=sc;exports.instanceOfPerson=ac;exports.instanceOfPersonCount=lo;exports.instanceOfPersonHolder=no;exports.instanceOfPlace=Oa;exports.instanceOfQuerySearchResult=gc;exports.instanceOfQuestion=To;exports.instanceOfRecordStatHolder=oo;exports.instanceOfScoredDataArticle=_l;exports.instanceOfScoredDataWikiData=Cc;exports.instanceOfSentimentHolder=Ao;exports.instanceOfSortBy=Fc;exports.instanceOfSource=Pc;exports.instanceOfSourceHolder=Yr;exports.instanceOfSourceLocation=Vr;exports.instanceOfSourceSearchResult=vc;exports.instanceOfSourceTopStatHolder=Lc;exports.instanceOfStorySearchResult=ts;exports.instanceOfSummaryBody=ds;exports.instanceOfSummarySearchResult=fs;exports.instanceOfSymbolHolder=gu;exports.instanceOfTooManyRequestsException=Cs;exports.instanceOfTopicDto=_s;exports.instanceOfTopicHolder=So;exports.instanceOfTopicLabels=ws;exports.instanceOfTopicSearchResult=Vs;exports.instanceOfWebResources=hu;exports.instanceOfWikiData=xc;exports.instanceOfWikiPage=js;exports.instanceOfWikiPageSectionHolder=Ks;exports.instanceOfWikidataDateHolder=Cd;exports.instanceOfWikidataLabelHolder=Ld;exports.instanceOfWikidataPoliticalPartyHolder=Hd;exports.instanceOfWikidataPositionHolder=Gd;exports.instanceOfWikipediaSearchFilter=np;exports.instanceOfWikipediaSearchParams=ap;exports.instanceOfWikipediaSearchResult=pp;exports.instanceOfWikipediaVectorSearchResult=Tp;exports.mapValues=Tr;exports.querystring=Se;//# sourceMappingURL=index.cjs.map
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|