You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
venv/PyCharm 2025.2.1.1/plugins/python/jupyter-web/8132.js

1 line
6.5 KiB

"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[8132],{48132:(q,v,b)=>{b.r(v),b.d(v,{xQuery:()=>B});var d=function(){function e(M){return{type:M,style:"keyword"}}for(var n=e("operator"),t={type:"atom",style:"atom"},o={type:"axis_specifier",style:"qualifier"},l={",":{type:"punctuation",style:null}},g=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],r=0,a=g.length;r<a;r++)l[g[r]]=e(g[r]);var y=["xs:anyAtomicType","xs:anySimpleType","xs:anyType","xs:anyURI","xs:base64Binary","xs:boolean","xs:byte","xs:date","xs:dateTime","xs:dateTimeStamp","xs:dayTimeDuration","xs:decimal","xs:double","xs:duration","xs:ENTITIES","xs:ENTITY","xs:float","xs:gDay","xs:gMonth","xs:gMonthDay","xs:gYear","xs:gYearMonth","xs:hexBinary","xs:ID","xs:IDREF","xs:IDREFS","xs:int","xs:integer","xs:item","xs:java","xs:language","xs:long","xs:Name","xs:NCName","xs:negativeInteger","xs:NMTOKEN","xs:NMTOKENS","xs:nonNegativeInteger","xs:nonPositiveInteger","xs:normalizedString","xs:NOTATION","xs:numeric","xs:positiveInteger","xs:precisionDecimal","xs:QName","xs:short","xs:string","xs:time","xs:token","xs:unsignedByte","xs:unsignedInt","xs:unsignedLong","xs:unsignedShort","xs:untyped","xs:untypedAtomic","xs:yearMonthDuration"];for(r=0,a=y.length;r<a;r++)l[y[r]]=t;var f=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(r=0,a=f.length;r<a;r++)l[f[r]]=n;var z=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"];for(r=0,a=z.length;r<a;r++)l[z[r]]=o;return l}();function p(e,n,t){return n.tokenize=t,t(e,n)}function c(e,n){var t=e.next(),i=!1,o=function _(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}(e);if("<"==t){if(e.match("!--",!0))return p(e,n,E);if(e.match("![CDATA",!1))return n.tokenize=A,"tag";if(e.match("?",!1))return p(e,n,D);var l=e.eat("/");e.eatSpace();for(var r,g="";r=e.eat(/[^\s\u00a0=<>\"\'\/?]/);)g+=r;return p(e,n,function N(e,n){return function(t,i){return t.eatSpace(),n&&t.eat(">")?(u(i),i.tokenize=c,"tag"):(t.eat("/")||s(i,{type:"tag",name:e,tokenize:c}),t.eat(">")?(i.tokenize=c,"tag"):(i.tokenize=k,"tag"))}}(g,l))}if("{"==t)return s(n,{type:"codeblock"}),null;if("}"==t)return u(n),null;if(w(n))return">"==t?"tag":"/"==t&&e.eat(">")?(u(n),"tag"):"variable";if(/\d/.test(t))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===t&&e.eat(":"))return s(n,{type:"comment"}),p(e,n,I);if(!o&&('"'===t||"'"===t))return m(e,n,t);if("$"===t)return p(e,n,T);if(":"===t&&e.eat("="))return"keyword";if("("===t)return s(n,{type:"paren"}),null;if(")"===t)return u(n),null;if("["===t)return s(n,{type:"bracket"}),null;if("]"===t)return u(n),null;var a=d.propertyIsEnumerable(t)&&d[t];if(o&&'"'===t)for(;'"'!==e.next(););if(o&&"'"===t)for(;"'"!==e.next(););a||e.eatWhile(/[\w\$_-]/);var y=e.eat(":");!e.eat(":")&&y&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(i=!0);var f=e.current();return a=d.propertyIsEnumerable(f)&&d[f],i&&!a&&(a={type:"function_call",style:"def"}),function C(e){return h(e,"xmlconstructor")}(n)?(u(n),"variable"):(("element"==f||"attribute"==f||"axis_specifier"==a.type)&&s(n,{type:"xmlconstructor"}),a?a.style:"variable")}function I(e,n){for(var l,t=!1,i=!1,o=0;l=e.next();){if(")"==l&&t){if(!(o>0)){u(n);break}o--}else":"==l&&i&&o++;t=":"==l,i="("==l}return"comment"}function m(e,n,t,i){let o=function S(e,n){return function(t,i){for(var o;o=t.next();){if(o==e){u(i),n&&(i.tokenize=n);break}if(t.match("{",!1)&&x(i))return s(i,{type:"codeblock"}),i.tokenize=c,"string"}return"string"}}(t,i);return s(n,{type:"string",name:t,tokenize:o}),p(e,n,o)}function T(e,n){var t=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(t),e.match(":=",!1)||e.eat(":");return e.eatWhile(t),n.tokenize=c,"variable"}function k(e,n){var t=e.next();return"/"==t&&e.eat(">")?(x(n)&&u(n),w(n)&&u(n),"tag"):">"==t?(x(n)&&u(n),"tag"):"="==t?null:'"'==t||"'"==t?m(e,n,t,k):(x(n)||s(n,{type:"attribute",tokenize:k}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(u(n),n.tokenize=c),"attribute")}function E(e,n){for(var t;t=e.next();)if("-"==t&&e.match("->",!0))return n.tokenize=c,"comment"}function A(e,n){for(var t;t=e.next();)if("]"==t&&e.match("]",!0))return n.tokenize=c,"comment"}function D(e,n){for(var t;t=e.next();)if("?"==t&&e.match(">",!0))return n.tokenize=c,"processingInstruction"}function w(e){return h(e,"tag")}function x(e){return h(e,"attribute")}function h(e,n){return e.stack.length&&e.stack[e.stack.length-1].type==n}function s(e,n){e.stack.push(n)}function u(e){e.stack.pop();var n=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=n||c}const B={name:"xquery",startState:function(){return{tokenize:c,cc:[],stack:[]}},token:function(e,n){return e.eatSpace()?null:n.tokenize(e,n)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}}}}]);