{"version":3,"file":"3108.8f30bf9e3324a376f4ee.js","mappings":"qFAsWAA,EAAOC,QA1VP,SAAgBC,GAwUd,MAAO,CACLC,KAAM,SACNC,QAAS,CACP,QACA,MAEFC,kBAAkB,EAClBC,QAAS,0CACTC,SAAU,CACRC,SAAU,2BACVC,QAhVa,CACf,SACA,SACA,YACA,iBACA,WACA,cACA,QACA,UACA,YACA,WACA,WACA,UACA,iBACA,oBACA,kBACA,iBACA,SACA,qBACA,WACA,qBACA,UACA,aACA,MACA,aACA,YACA,UACA,mBACA,iBACA,SACA,YACA,aACA,UACA,SACA,SACA,WACA,WACA,WACA,MACA,KACA,KACA,MACA,QACA,QACA,QACA,KACA,SACA,KACA,OACA,OACA,WACA,UACA,SACA,QACA,OACA,OACA,MACA,WACA,OACA,SACA,YACA,aACA,WACA,QACA,WACA,QACA,OACA,QACA,YACA,SACA,OACA,aACA,MACA,QACA,MACA,KACA,KACA,QACA,YACA,WACA,KACA,QACA,KACA,WACA,OACA,MACA,QACA,SACA,SACA,OACA,UACA,QACA,SACA,OACA,SACA,UAkPEC,KA7OU,CACZ,OACA,gBACA,OACA,YACA,WACA,UACA,UACA,YACA,iBACA,yBACA,OACA,eACA,mBACA,mBACA,cACA,UACA,aACA,WACA,YACA,gBACA,WACA,eACA,YACA,UACA,aACA,kBACA,eACA,YACA,WACA,cACA,cACA,mBACA,UACA,YACA,sBACA,WACA,cACA,aACA,UACA,YACA,QACA,WACA,YACA,aACA,wBACA,qBACA,UACA,SACA,WACA,UACA,wBACA,mBACA,iBACA,mBACA,kBACA,qBACA,uBACA,sBAoLEC,QAjLa,CACf,KACA,KACA,KACA,KACA,KACA,KACA,KACA,SACA,UACA,eACA,uBACA,cACA,cACA,sBACA,WACA,aACA,qBACA,cACA,sBACA,QA+JAC,SA1Be,CA/EL,CACVC,UAAW,WACXC,MAAO,eApDQ,CACfD,UAAW,WACXE,SAAU,CACR,CACED,MAAO,WACPE,IAAK,6IAEP,CACEF,MAAO,SACPE,IAAK,qEAEP,CACEF,MAAO,UACPE,IAAK,4EAEP,CACEF,MAAO,QACPE,IAAK,KACLC,YAAY,GAEd,CACEH,MAAO,QACPE,IAAK,KACLC,YAAY,GAGd,CAAEH,MAAO,+2DACT,CACEA,MAAO,WACPE,IAAK,KACLC,YAAY,GAEd,CACEH,MAAO,SACPE,IAAK,sEAEP,CACEF,MAAO,uCACPE,IAAK,KACLC,YAAY,KAsBH,CACbJ,UAAW,SACXE,SAAU,CACR,CACED,MAAO,IACPE,IAAK,IACLJ,SAAU,CACR,CACEE,MAAO,KACPI,UAAW,KAIjB,CACEJ,MAAO,IACPE,IAAK,IACLJ,SAAU,CACR,CACEE,MAAO,KACPI,UAAW,OAzBN,CACbL,UAAW,SACXC,MAAO,uEACPI,UAAW,GAkCG,CACdL,UAAW,UACXC,MAAO,MACPE,IAAK,MACLE,UAAW,GACXN,SAAU,CACR,CACEC,UAAW,SACXC,MAAO,UAbM,CACjBD,UAAW,OACXC,MAAO,aA7CK,CACZD,UAAW,QACXC,MAAO,qDACPE,IAAK,KA6DU,CACfG,cAAe,4DACfH,IAAK,KACLC,YAAY,GAIC,CACbH,MAAO,sCACPE,IAAK,iBACLI,YAAa,MACbR,SAAU,CACR,CACEE,MAAO,KACPE,IAAK,KACLI,YAAa,UAEf","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/xquery.js"],"sourcesContent":["/*\nLanguage: XQuery\nAuthor: Dirk Kirsten \nContributor: Duncan Paterson\nDescription: Supports XQuery 3.1 including XQuery Update 3, so also XPath (as it is a superset)\nRefactored to process xml constructor syntax and function-bodies. Added missing data-types, xpath operands, inbuilt functions, and query prologs\nWebsite: https://www.w3.org/XML/Query/\nCategory: functional\nAudit: 2020\n*/\n\n/** @type LanguageFn */\nfunction xquery(_hljs) {\n // see https://www.w3.org/TR/xquery/#id-terminal-delimitation\n const KEYWORDS = [\n \"module\",\n \"schema\",\n \"namespace\",\n \"boundary-space\",\n \"preserve\",\n \"no-preserve\",\n \"strip\",\n \"default\",\n \"collation\",\n \"base-uri\",\n \"ordering\",\n \"context\",\n \"decimal-format\",\n \"decimal-separator\",\n \"copy-namespaces\",\n \"empty-sequence\",\n \"except\",\n \"exponent-separator\",\n \"external\",\n \"grouping-separator\",\n \"inherit\",\n \"no-inherit\",\n \"lax\",\n \"minus-sign\",\n \"per-mille\",\n \"percent\",\n \"schema-attribute\",\n \"schema-element\",\n \"strict\",\n \"unordered\",\n \"zero-digit\",\n \"declare\",\n \"import\",\n \"option\",\n \"function\",\n \"validate\",\n \"variable\",\n \"for\",\n \"at\",\n \"in\",\n \"let\",\n \"where\",\n \"order\",\n \"group\",\n \"by\",\n \"return\",\n \"if\",\n \"then\",\n \"else\",\n \"tumbling\",\n \"sliding\",\n \"window\",\n \"start\",\n \"when\",\n \"only\",\n \"end\",\n \"previous\",\n \"next\",\n \"stable\",\n \"ascending\",\n \"descending\",\n \"allowing\",\n \"empty\",\n \"greatest\",\n \"least\",\n \"some\",\n \"every\",\n \"satisfies\",\n \"switch\",\n \"case\",\n \"typeswitch\",\n \"try\",\n \"catch\",\n \"and\",\n \"or\",\n \"to\",\n \"union\",\n \"intersect\",\n \"instance\",\n \"of\",\n \"treat\",\n \"as\",\n \"castable\",\n \"cast\",\n \"map\",\n \"array\",\n \"delete\",\n \"insert\",\n \"into\",\n \"replace\",\n \"value\",\n \"rename\",\n \"copy\",\n \"modify\",\n \"update\"\n ];\n\n // Node Types (sorted by inheritance)\n // atomic types (sorted by inheritance)\n const TYPES = [\n \"item\",\n \"document-node\",\n \"node\",\n \"attribute\",\n \"document\",\n \"element\",\n \"comment\",\n \"namespace\",\n \"namespace-node\",\n \"processing-instruction\",\n \"text\",\n \"construction\",\n \"xs:anyAtomicType\",\n \"xs:untypedAtomic\",\n \"xs:duration\",\n \"xs:time\",\n \"xs:decimal\",\n \"xs:float\",\n \"xs:double\",\n \"xs:gYearMonth\",\n \"xs:gYear\",\n \"xs:gMonthDay\",\n \"xs:gMonth\",\n \"xs:gDay\",\n \"xs:boolean\",\n \"xs:base64Binary\",\n \"xs:hexBinary\",\n \"xs:anyURI\",\n \"xs:QName\",\n \"xs:NOTATION\",\n \"xs:dateTime\",\n \"xs:dateTimeStamp\",\n \"xs:date\",\n \"xs:string\",\n \"xs:normalizedString\",\n \"xs:token\",\n \"xs:language\",\n \"xs:NMTOKEN\",\n \"xs:Name\",\n \"xs:NCName\",\n \"xs:ID\",\n \"xs:IDREF\",\n \"xs:ENTITY\",\n \"xs:integer\",\n \"xs:nonPositiveInteger\",\n \"xs:negativeInteger\",\n \"xs:long\",\n \"xs:int\",\n \"xs:short\",\n \"xs:byte\",\n \"xs:nonNegativeInteger\",\n \"xs:unisignedLong\",\n \"xs:unsignedInt\",\n \"xs:unsignedShort\",\n \"xs:unsignedByte\",\n \"xs:positiveInteger\",\n \"xs:yearMonthDuration\",\n \"xs:dayTimeDuration\"\n ];\n\n const LITERALS = [\n \"eq\",\n \"ne\",\n \"lt\",\n \"le\",\n \"gt\",\n \"ge\",\n \"is\",\n \"self::\",\n \"child::\",\n \"descendant::\",\n \"descendant-or-self::\",\n \"attribute::\",\n \"following::\",\n \"following-sibling::\",\n \"parent::\",\n \"ancestor::\",\n \"ancestor-or-self::\",\n \"preceding::\",\n \"preceding-sibling::\",\n \"NaN\"\n ];\n\n // functions (TODO: find regex for op: without breaking build)\n const BUILT_IN = {\n className: 'built_in',\n variants: [\n {\n begin: /\\barray:/,\n end: /(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\\b/\n },\n {\n begin: /\\bmap:/,\n end: /(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\\b/\n },\n {\n begin: /\\bmath:/,\n end: /(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\\b/\n },\n {\n begin: /\\bop:/,\n end: /\\(/,\n excludeEnd: true\n },\n {\n begin: /\\bfn:/,\n end: /\\(/,\n excludeEnd: true\n },\n // do not highlight inbuilt strings as variable or xml element names\n { begin: /[^/,\n end: /(\\/[\\w._:-]+>)/,\n subLanguage: 'xml',\n contains: [\n {\n begin: /\\{/,\n end: /\\}/,\n subLanguage: 'xquery'\n },\n 'self'\n ]\n };\n\n const CONTAINS = [\n VAR,\n BUILT_IN,\n STRING,\n NUMBER,\n COMMENT,\n ANNOTATION,\n TITLE,\n COMPUTED,\n DIRECT\n ];\n\n return {\n name: 'XQuery',\n aliases: [\n 'xpath',\n 'xq'\n ],\n case_insensitive: false,\n illegal: /(proc)|(abstract)|(extends)|(until)|(#)/,\n keywords: {\n $pattern: /[a-zA-Z$][a-zA-Z0-9_:-]*/,\n keyword: KEYWORDS,\n type: TYPES,\n literal: LITERALS\n },\n contains: CONTAINS\n };\n}\n\nmodule.exports = xquery;\n"],"names":["module","exports","_hljs","name","aliases","case_insensitive","illegal","keywords","$pattern","keyword","type","literal","contains","className","begin","variants","end","excludeEnd","relevance","beginKeywords","subLanguage"],"sourceRoot":""}