UNPKG

16.6 kBJavaScriptView Raw
1function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}var t,o=function(t){return Object.entries(t).reduce(function(t,o){var n,r=o[1];return void 0===r?t:e({},t,((n={})[o[0]]=r,n))},{})},n=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Entity"})},r=function(t){return e({},o(t),{type:"Cite"})},i=function(t){return e({},o(t),{type:"CiteGroup"})},a=function(t){return e({},o(t),{type:"Code"})},u=function(t){return e({},o(t),{type:"CodeBlock"})},s=function(t){return e({},o(t),{type:"CodeExecutable"})},d=function(t){return e({},o(t),{type:"CodeChunk"})},c=function(t){return e({},o(t),{type:"CodeExpression"})},l=function(t){return e({},o(t),{type:"CodeFragment"})},p=function(t){return e({},o(t),{type:"CodeError"})},y=function(t){return e({},o(t),{type:"Date"})},C=function(t){return e({},o(t),{type:"Mark"})},m=function(t){return e({},o(t),{type:"Delete"})},f=function(t){return e({},o(t),{type:"Emphasis"})},b=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Thing"})},I=function(t){return e({},o(t),{type:"Brand"})},B=function(t){return void 0===t&&(t={}),e({},o(t),{type:"ContactPoint"})},g=function(t){return void 0===t&&(t={}),e({},o(t),{type:"CreativeWork"})},A=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Article"})},h=function(t){return e({},o(t),{type:"Claim"})},S=function(t){return e({},o(t),{type:"Collection"})},P=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Comment"})},v=function(t){return e({},o(t),{type:"Datatable"})},V=function(t){return e({},o(t),{type:"MediaObject"})},D=function(t){return e({},o(t),{type:"AudioObject"})},E=function(t){return e({},o(t),{type:"DatatableColumn"})},O=function(t){return e({},o(t),{type:"DefinedTerm"})},k=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Validator"})},F=function(t){return void 0===t&&(t={}),e({},o(t),{type:"ArrayValidator"})},T=function(t){return void 0===t&&(t={}),e({},o(t),{type:"BooleanValidator"})},M=function(t){return void 0===t&&(t={}),e({},o(t),{type:"ConstantValidator"})},j=function(t){return void 0===t&&(t={}),e({},o(t),{type:"EnumValidator"})},R=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Enumeration"})},w=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Figure"})},x=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Function"})},W=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Grant"})},G=function(t){return e({},o(t),{type:"Heading"})},L=function(t){return e({},o(t),{type:"ImageObject"})},Q=function(t){return e({},o(t),{type:"Include"})},N=function(t){return void 0===t&&(t={}),e({},o(t),{type:"IntegerValidator"})},U=function(t){return e({},o(t),{type:"Link"})},z=function(t){return e({},o(t),{type:"List"})},H=function(t){return void 0===t&&(t={}),e({},o(t),{type:"ListItem"})},q=function(t){return e({},o(t),{type:"Math"})},J=function(t){return e({},o(t),{type:"MathBlock"})},K=function(t){return e({},o(t),{type:"MathFragment"})},X=function(t){return void 0===t&&(t={}),e({},o(t),{type:"MonetaryGrant"})},Y=function(t){return e({},o(t),{type:"NontextualAnnotation"})},Z=function(t){return e({},o(t),{type:"Note"})},$=function(t){return void 0===t&&(t={}),e({},o(t),{type:"NumberValidator"})},_=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Organization"})},ee=function(t){return e({},o(t),{type:"Paragraph"})},te=function(t){return e({},o(t),{type:"Parameter"})},oe=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Periodical"})},ne=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Person"})},re=function(t){return void 0===t&&(t={}),e({},o(t),{type:"PostalAddress"})},ie=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Product"})},ae=function(t){return e({},o(t),{type:"PropertyValue"})},ue=function(t){return void 0===t&&(t={}),e({},o(t),{type:"PublicationIssue"})},se=function(t){return void 0===t&&(t={}),e({},o(t),{type:"PublicationVolume"})},de=function(t){return e({},o(t),{type:"Quote"})},ce=function(t){return e({},o(t),{type:"QuoteBlock"})},le=function(t){return void 0===t&&(t={}),e({},o(t),{type:"Review"})},pe=function(t){return void 0===t&&(t={}),e({},o(t),{type:"SoftwareApplication"})},ye=function(t){return e({},o(t),{type:"SoftwareEnvironment"})},Ce=function(t){return void 0===t&&(t={}),e({},o(t),{type:"SoftwareSession"})},me=function(t){return void 0===t&&(t={}),e({},o(t),{type:"SoftwareSourceCode"})},fe=function(t){return void 0===t&&(t={}),e({},o(t),{type:"StringValidator"})},be=function(t){return e({},o(t),{type:"Strong"})},Ie=function(t){return e({},o(t),{type:"Subscript"})},Be=function(t){return e({},o(t),{type:"Superscript"})},ge=function(t){return e({},o(t),{type:"Table"})},Ae=function(t){return void 0===t&&(t={}),e({},o(t),{type:"TableCell"})},he=function(t){return e({},o(t),{type:"TableRow"})},Se=function(t){return void 0===t&&(t={}),e({},o(t),{type:"ThematicBreak"})},Pe=function(t){return void 0===t&&(t={}),e({},o(t),{type:"TupleValidator"})},ve=function(t){return e({},o(t),{type:"Variable"})},Ve=function(t){return e({},o(t),{type:"VideoObject"})},De=function(t){return e({},o(t),{type:"VolumeMount"})};!function(e){e.AgreesWith="AgreesWith",e.CitesAsAuthority="CitesAsAuthority",e.CitesAsDataSource="CitesAsDataSource",e.CitesAsEvidence="CitesAsEvidence",e.CitesAsMetadataDocument="CitesAsMetadataDocument",e.CitesAsPotentialSolution="CitesAsPotentialSolution",e.CitesAsRecommendedReading="CitesAsRecommendedReading",e.CitesAsRelated="CitesAsRelated",e.CitesAsSourceDocument="CitesAsSourceDocument",e.CitesForInformation="CitesForInformation",e.Compiles="Compiles",e.Confirms="Confirms",e.ContainsAssertionFrom="ContainsAssertionFrom",e.Corrects="Corrects",e.Credits="Credits",e.Critiques="Critiques",e.Derides="Derides",e.Describes="Describes",e.DisagreesWith="DisagreesWith",e.Discusses="Discusses",e.Disputes="Disputes",e.Documents="Documents",e.Extends="Extends",e.GivesBackgroundTo="GivesBackgroundTo",e.GivesSupportTo="GivesSupportTo",e.HasReplyFrom="HasReplyFrom",e.IncludesExcerptFrom="IncludesExcerptFrom",e.IncludesQuotationFrom="IncludesQuotationFrom",e.IsAgreedWithBy="IsAgreedWithBy",e.IsCitedAsAuthorityBy="IsCitedAsAuthorityBy",e.IsCitedAsDataSourceBy="IsCitedAsDataSourceBy",e.IsCitedAsEvidenceBy="IsCitedAsEvidenceBy",e.IsCitedAsMetadataDocumentBy="IsCitedAsMetadataDocumentBy",e.IsCitedAsPontentialSolutionBy="IsCitedAsPontentialSolutionBy",e.IsCitedAsRecommendedReadingBy="IsCitedAsRecommendedReadingBy",e.IsCitedAsRelatedBy="IsCitedAsRelatedBy",e.IsCitedAsSourceDocumentBy="IsCitedAsSourceDocumentBy",e.IsCitedBy="IsCitedBy",e.IsCitedForInformationBy="IsCitedForInformationBy",e.IsCompiledBy="IsCompiledBy",e.IsConfirmedBy="IsConfirmedBy",e.IsCorrectedBy="IsCorrectedBy",e.IsCreditedBy="IsCreditedBy",e.IsCritiquedBy="IsCritiquedBy",e.IsDeridedBy="IsDeridedBy",e.IsDescribedBy="IsDescribedBy",e.IsDisagreedWithBy="IsDisagreedWithBy",e.IsDiscussedBy="IsDiscussedBy",e.IsDisputedBy="IsDisputedBy",e.IsDocumentedBy="IsDocumentedBy",e.IsExtendedBy="IsExtendedBy",e.IsLinkedToBy="IsLinkedToBy",e.IsParodiedBy="IsParodiedBy",e.IsPlagiarizedBy="IsPlagiarizedBy",e.IsQualifiedBy="IsQualifiedBy",e.IsRefutedBy="IsRefutedBy",e.IsRetractedBy="IsRetractedBy",e.IsReviewedBy="IsReviewedBy",e.IsRidiculedBy="IsRidiculedBy",e.IsSpeculatedOnBy="IsSpeculatedOnBy",e.IsSupportedBy="IsSupportedBy",e.IsUpdatedBy="IsUpdatedBy",e.Likes="Likes",e.LinksTo="LinksTo",e.ObtainsBackgroundFrom="ObtainsBackgroundFrom",e.ObtainsSupportFrom="ObtainsSupportFrom",e.Parodies="Parodies",e.Plagiarizes="Plagiarizes",e.ProvidesAssertionFor="ProvidesAssertionFor",e.ProvidesConclusionsFor="ProvidesConclusionsFor",e.ProvidesDataFor="ProvidesDataFor",e.ProvidesExcerptFor="ProvidesExcerptFor",e.ProvidesMethodFor="ProvidesMethodFor",e.ProvidesQuotationFor="ProvidesQuotationFor",e.Qualifies="Qualifies",e.Refutes="Refutes",e.RepliesTo="RepliesTo",e.Retracts="Retracts",e.Reviews="Reviews",e.Ridicules="Ridicules",e.SharesAuthorInstitutionWith="SharesAuthorInstitutionWith",e.SharesAuthorWith="SharesAuthorWith",e.SharesFundingAgencyWith="SharesFundingAgencyWith",e.SharesJournalWith="SharesJournalWith",e.SharesPublicationVenueWith="SharesPublicationVenueWith",e.SpeculatesOn="SpeculatesOn",e.Supports="Supports",e.Updates="Updates",e.UsesConclusionsFrom="UsesConclusionsFrom",e.UsesDataFrom="UsesDataFrom",e.UsesMethodIn="UsesMethodIn"}(t||(t={}));var Ee={CodeExecutable:"CodeExecutable",CodeChunk:"CodeChunk",CodeExpression:"CodeExpression"},Oe={Code:"Code",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",CodeExecutable:"CodeExecutable",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment"},ke={ContactPoint:"ContactPoint",PostalAddress:"PostalAddress"},Fe={CreativeWork:"CreativeWork",Article:"Article",AudioObject:"AudioObject",Claim:"Claim",Collection:"Collection",Comment:"Comment",Datatable:"Datatable",Figure:"Figure",ImageObject:"ImageObject",MediaObject:"MediaObject",Periodical:"Periodical",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareSourceCode:"SoftwareSourceCode",Table:"Table",VideoObject:"VideoObject"},Te={Entity:"Entity",ArrayValidator:"ArrayValidator",Article:"Article",AudioObject:"AudioObject",BooleanValidator:"BooleanValidator",Brand:"Brand",CitationIntentEnumeration:"CitationIntentEnumeration",Cite:"Cite",CiteGroup:"CiteGroup",Claim:"Claim",Code:"Code",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",CodeError:"CodeError",CodeExecutable:"CodeExecutable",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment",Collection:"Collection",Comment:"Comment",ConstantValidator:"ConstantValidator",ContactPoint:"ContactPoint",CreativeWork:"CreativeWork",Datatable:"Datatable",DatatableColumn:"DatatableColumn",Date:"Date",DefinedTerm:"DefinedTerm",Delete:"Delete",Emphasis:"Emphasis",EnumValidator:"EnumValidator",Enumeration:"Enumeration",Figure:"Figure",Function:"Function",Grant:"Grant",Heading:"Heading",ImageObject:"ImageObject",Include:"Include",IntegerValidator:"IntegerValidator",Link:"Link",List:"List",ListItem:"ListItem",Mark:"Mark",Math:"Math",MathBlock:"MathBlock",MathFragment:"MathFragment",MediaObject:"MediaObject",MonetaryGrant:"MonetaryGrant",NontextualAnnotation:"NontextualAnnotation",Note:"Note",NumberValidator:"NumberValidator",Organization:"Organization",Paragraph:"Paragraph",Parameter:"Parameter",Periodical:"Periodical",Person:"Person",PostalAddress:"PostalAddress",Product:"Product",PropertyValue:"PropertyValue",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Quote:"Quote",QuoteBlock:"QuoteBlock",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareEnvironment:"SoftwareEnvironment",SoftwareSession:"SoftwareSession",SoftwareSourceCode:"SoftwareSourceCode",StringValidator:"StringValidator",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript",Table:"Table",TableCell:"TableCell",TableRow:"TableRow",ThematicBreak:"ThematicBreak",Thing:"Thing",TupleValidator:"TupleValidator",Validator:"Validator",Variable:"Variable",VideoObject:"VideoObject",VolumeMount:"VolumeMount"},Me={Enumeration:"Enumeration",CitationIntentEnumeration:"CitationIntentEnumeration"},je={Grant:"Grant",MonetaryGrant:"MonetaryGrant"},Re={Mark:"Mark",Delete:"Delete",Emphasis:"Emphasis",NontextualAnnotation:"NontextualAnnotation",Quote:"Quote",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript"},we={Math:"Math",MathBlock:"MathBlock",MathFragment:"MathFragment"},xe={MediaObject:"MediaObject",AudioObject:"AudioObject",ImageObject:"ImageObject",VideoObject:"VideoObject"},We={Thing:"Thing",Article:"Article",AudioObject:"AudioObject",Brand:"Brand",CitationIntentEnumeration:"CitationIntentEnumeration",Claim:"Claim",Collection:"Collection",Comment:"Comment",ContactPoint:"ContactPoint",CreativeWork:"CreativeWork",Datatable:"Datatable",DatatableColumn:"DatatableColumn",DefinedTerm:"DefinedTerm",Enumeration:"Enumeration",Figure:"Figure",Grant:"Grant",ImageObject:"ImageObject",ListItem:"ListItem",MediaObject:"MediaObject",MonetaryGrant:"MonetaryGrant",Organization:"Organization",Periodical:"Periodical",Person:"Person",PostalAddress:"PostalAddress",Product:"Product",PropertyValue:"PropertyValue",PublicationIssue:"PublicationIssue",PublicationVolume:"PublicationVolume",Review:"Review",SoftwareApplication:"SoftwareApplication",SoftwareEnvironment:"SoftwareEnvironment",SoftwareSession:"SoftwareSession",SoftwareSourceCode:"SoftwareSourceCode",Table:"Table",VideoObject:"VideoObject",VolumeMount:"VolumeMount"},Ge={Validator:"Validator",ArrayValidator:"ArrayValidator",BooleanValidator:"BooleanValidator",ConstantValidator:"ConstantValidator",EnumValidator:"EnumValidator",IntegerValidator:"IntegerValidator",NumberValidator:"NumberValidator",StringValidator:"StringValidator",TupleValidator:"TupleValidator"},Le={Claim:"Claim",CodeBlock:"CodeBlock",CodeChunk:"CodeChunk",Collection:"Collection",Figure:"Figure",Heading:"Heading",Include:"Include",List:"List",MathBlock:"MathBlock",Paragraph:"Paragraph",QuoteBlock:"QuoteBlock",Table:"Table",ThematicBreak:"ThematicBreak"},Qe={AudioObject:"AudioObject",Cite:"Cite",CiteGroup:"CiteGroup",CodeExpression:"CodeExpression",CodeFragment:"CodeFragment",Delete:"Delete",Emphasis:"Emphasis",ImageObject:"ImageObject",Link:"Link",MathFragment:"MathFragment",NontextualAnnotation:"NontextualAnnotation",Note:"Note",Parameter:"Parameter",Quote:"Quote",Strong:"Strong",Subscript:"Subscript",Superscript:"Superscript",VideoObject:"VideoObject"},Ne={CodeExecutableTypes:Ee,CodeTypes:Oe,ContactPointTypes:ke,CreativeWorkTypes:Fe,EntityTypes:Te,EnumerationTypes:Me,GrantTypes:je,MarkTypes:Re,MathTypes:we,MediaObjectTypes:xe,ThingTypes:We,ValidatorTypes:Ge,BlockContent:Le,InlineContent:Qe},Ue=function(e){return function(t){return!!He(t)&&Object.keys(e).includes(t.type)}},ze=function(e){var t=typeof e;return null===e||"boolean"===t||"number"===t||"string"===t||!!Array.isArray(e)||"object"===t&&!Object.prototype.hasOwnProperty.call(e,"type")},He=function(e){return null!=e&&Object.prototype.hasOwnProperty.call(e,"type")},qe=function(e,t){return He(t)&&t.type===e},Je=function(e){return function(t){return qe(e,t)}},Ke=function(e,t){return He(t)&&t.type in Ne[e]},Xe=function(e){return function(t){return Ke(e,t)}},Ye=function(e){return ze(e)||Ke("InlineContent",e)},Ze=function(e){return Ke("BlockContent",e)},$e=function(e){return null===e?"Null":"boolean"==typeof e?"Boolean":"number"==typeof e?"Number":"string"==typeof e?"String":Array.isArray(e)?"Array":He(e)?e.type:"Object"},_e="1.11.3",et="1.11.3".split(".")[0],tt="1.11.3".split(".").slice(0,2).join(".");export{t as CitationIntentEnumeration,F as arrayValidator,A as article,D as audioObject,Le as blockContentTypes,T as booleanValidator,I as brand,r as cite,i as citeGroup,h as claim,a as code,u as codeBlock,d as codeChunk,p as codeError,s as codeExecutable,Ee as codeExecutableTypes,c as codeExpression,l as codeFragment,Oe as codeTypes,S as collection,P as comment,M as constantValidator,B as contactPoint,ke as contactPointTypes,g as creativeWork,Fe as creativeWorkTypes,v as datatable,E as datatableColumn,y as date,O as definedTerm,m as del,f as emphasis,n as entity,Te as entityTypes,j as enumValidator,R as enumeration,Me as enumerationTypes,w as figure,x as function_,W as grant,je as grantTypes,G as heading,L as imageObject,Q as include,Qe as inlineContentTypes,N as integerValidator,qe as isA,Ze as isBlockContent,He as isEntity,Ke as isIn,Ue as isInTypeMap,Ye as isInlineContent,Xe as isMember,ze as isPrimitive,Je as isType,U as link,z as list,H as listItem,C as mark,Re as markTypes,q as math,J as mathBlock,K as mathFragment,we as mathTypes,V as mediaObject,xe as mediaObjectTypes,X as monetaryGrant,$e as nodeType,Y as nontextualAnnotation,Z as note,$ as numberValidator,_ as organization,ee as paragraph,te as parameter,oe as periodical,ne as person,re as postalAddress,ie as product,ae as propertyValue,ue as publicationIssue,se as publicationVolume,de as quote,ce as quoteBlock,le as review,pe as softwareApplication,ye as softwareEnvironment,Ce as softwareSession,me as softwareSourceCode,fe as stringValidator,be as strong,Ie as subscript,Be as superscript,ge as table,Ae as tableCell,he as tableRow,Se as thematicBreak,b as thing,We as thingTypes,Pe as tupleValidator,Ne as unions,k as validator,Ge as validatorTypes,ve as variable,_e as version,et as versionMajor,tt as versionMinor,Ve as videoObject,De as volumeMount};
2//# sourceMappingURL=schema.mjs.map