All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.kuangkie.hydrogen.bundle.6e2ee3c99ce13a7c4919.js Maven / Gradle / Ivy

The newest version!
"use strict";(self.webpackChunkhydrogen_react=self.webpackChunkhydrogen_react||[]).push([[9157],{59157:function(e,t,n){n.r(t),n.d(t,{default:function(){return N}});var a=n(35466),r=n(65223),o=n(11893),i=n(46820),l=n(43734),s=n(17550),c=n(91770),d=n(65147);const u=20,f=21;function p(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function O(e,t,n){for(let a=!1;;){if(e.next<0)return;if(e.next==t&&!a)return void e.advance();a=n&&!a&&92==e.next,e.advance()}}function m(e,t){for(;95==e.next||p(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function h(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function k(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),43!=e.next&&45!=e.next||e.advance();e.next>=48&&e.next<=57;)e.advance()}function v(e){for(;!(e.next<0||10==e.next);)e.advance()}function Q(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',words:x("absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ","array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ")};function C(e){return new c.Jq((t=>{var n;let{next:a}=t;if(t.advance(),Q(a,g)){for(;Q(t.next,g);)t.advance();t.acceptToken(36)}else if(36==a&&36==t.next&&e.doubleDollarQuotedStrings)!function(e){for(;;){if(e.next<0||e.peek(1)<0)return;if(36==e.next&&36==e.peek(1))return void e.advance(2);e.advance()}}(t),t.acceptToken(3);else if(39==a||34==a&&e.doubleQuotedStrings)O(t,a,e.backslashEscapes),t.acceptToken(3);else if(35==a&&e.hashComments||47==a&&47==t.next&&e.slashComments)v(t),t.acceptToken(1);else if(45!=a||45!=t.next||e.spaceAfterDashes&&32!=t.peek(1))if(47==a&&42==t.next){t.advance();for(let e=1;;){let n=t.next;if(t.next<0)break;if(t.advance(),42==n&&47==t.next){if(e--,t.advance(),!e)break}else 47==n&&42==t.next&&(e++,t.advance())}t.acceptToken(2)}else if(101!=a&&69!=a||39!=t.next)if(110!=a&&78!=a||39!=t.next||!e.charSetCasts)if(95==a&&e.charSetCasts)for(let n=0;;n++){if(39==t.next&&n>1){t.advance(),O(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!p(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==a||81==a)&&39==t.next&&t.peek(1)>0&&!Q(t.peek(1),g)){let e=t.peek(1);t.advance(2),function(e,t){let n="[{<(".indexOf(String.fromCharCode(t)),a=n<0?t:"]}>)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==a&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(40==a)t.acceptToken(7);else if(41==a)t.acceptToken(8);else if(123==a)t.acceptToken(9);else if(125==a)t.acceptToken(10);else if(91==a)t.acceptToken(11);else if(93==a)t.acceptToken(12);else if(59==a)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==a&&98==t.next)t.advance(),h(t),t.acceptToken(22);else if(98!=a&&66!=a||39!=t.next&&34!=t.next){if(48==a&&(120==t.next||88==t.next)||(120==a||88==a)&&39==t.next){let e=39==t.next;for(t.advance();(r=t.next)>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==a&&t.next>=48&&t.next<=57)k(t,!0),t.acceptToken(4);else if(46==a)t.acceptToken(14);else if(a>=48&&a<=57)k(t,!1),t.acceptToken(4);else if(Q(a,e.operatorChars)){for(;Q(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(Q(a,e.specialVar))t.next==a&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),O(e,t,!1)}else m(e)}(t),t.acceptToken(17);else if(Q(a,e.identifierQuotes))O(t,a,!1),t.acceptToken(19);else if(58==a||44==a)t.acceptToken(16);else if(p(a)){let r=m(t,String.fromCharCode(a));t.acceptToken(46==t.next?18:null!==(n=e.words[r.toLowerCase()])&&void 0!==n?n:18)}}else{const n=t.next;t.advance(),e.treatBitsAsBytes?(O(t,n,e.backslashEscapes),t.acceptToken(23)):(h(t,n),t.acceptToken(22))}else t.advance(),O(t,39,e.backslashEscapes),t.acceptToken(3);else t.advance(),O(t,39,!0);else v(t),t.acceptToken(1);var r}))}const y=C(b),P=c.WQ.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,y],topRules:{Script:[0,25]},tokenPrec:0});function S(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function w(e,t){let n=e.sliceString(t.from,t.to),a=/^([`'"])(.*)\1$/.exec(n);return a?a[2]:n}function T(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function U(e,t){if("CompositeIdentifier"==t.name){let n=[];for(let a=t.firstChild;a;a=a.nextSibling)T(a)&&n.push(w(e,a));return n}return[w(e,t)]}function X(e,t){for(let n=[];;){if(!t||"."!=t.name)return n;let a=S(t);if(!T(a))return n;n.unshift(w(e,a)),t=S(a)}}const _=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" ")),q=/^\w*$/,J=/^[`'"]?\w*[`'"]?$/;class B{constructor(){this.list=[],this.children=void 0}child(e,t){let n=this.children||(this.children=Object.create(null));return n[e]||(e&&this.list.push(R(e,"type",t)),n[e]=new B)}addCompletions(e){for(let t of e){let e=this.list.findIndex((e=>e.label==t.label));e>-1?this.list[e]=t:this.list.push(t)}}}function R(e,t,n){return/[^\w\xb5-\uffff]/.test(e)?{label:e,type:t,apply:n+e+n}:{label:e,type:t}}let Z=P.configure({props:[l.uj.add({Statement:(0,l.tC)()}),l.x0.add({Statement(e){return{from:e.firstChild.to,to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}}),(0,s.Gv)({Keyword:s.pJ.keyword,Type:s.pJ.typeName,Builtin:s.pJ.standard(s.pJ.name),Bits:s.pJ.number,Bytes:s.pJ.string,Bool:s.pJ.bool,Null:s.pJ.null,Number:s.pJ.number,String:s.pJ.string,Identifier:s.pJ.name,QuotedIdentifier:s.pJ.special(s.pJ.string),SpecialVar:s.pJ.special(s.pJ.name),LineComment:s.pJ.lineComment,BlockComment:s.pJ.blockComment,Operator:s.pJ.operator,"Semi Punctuation":s.pJ.punctuation,"( )":s.pJ.paren,"{ }":s.pJ.brace,"[ ]":s.pJ.squareBracket})]});class j{constructor(e,t,n){this.dialect=e,this.language=t,this.spec=n}get extension(){return this.language.extension}static define(e){let t=function(e,t,n,a){let r={};for(let t in b)r[t]=(e.hasOwnProperty(t)?e:b)[t];return t&&(r.words=x(t,n||"",a)),r}(e,e.keywords,e.types,e.builtin),n=l.qp.define({name:"sql",parser:Z.configure({tokenizers:[{from:y,to:C(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new j(t,n,e)}}function E(e,t=!1){return function(e,t){let n=Object.keys(e).map((n=>({label:t?n.toUpperCase():n,type:e[n]==f?"type":e[n]==u?"keyword":"variable",boost:-1})));return(0,d.eC)(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],(0,d.Mb)(n))}(e.dialect.words,t)}function I(e,t=!1){return e.language.data.of({autocomplete:E(e,t)})}function z(e){return e.schema?function(e,t,n,a,r,o){var i;let s=new B,c=(null===(i=null==o?void 0:o.spec.identifierQuotes)||void 0===i?void 0:i[0])||'"',d=s.child(r||"",c);for(let t in e){let n=t.replace(/\\?\./g,(e=>"."==e?"\0":e)).split("\0"),a=1==n.length?d:s;for(let e of n)a=a.child(e.replace(/\\\./g,"."),c);for(let n of e[t])n&&a.list.push("string"==typeof n?R(n,"property",c):n)}return t&&d.addCompletions(t),n&&s.addCompletions(n),s.addCompletions(d.list),a&&s.addCompletions(d.child(a,c).list),e=>{let{parents:t,from:n,quoted:r,empty:o,aliases:i}=function(e,t){let n=(0,l.qz)(e).resolveInner(t,-1),a=function(e,t){let n;for(let e=t;!n;e=e.parent){if(!e)return null;"Statement"==e.name&&(n=e)}let a=null;for(let t=n.firstChild,r=!1,o=null;t;t=t.nextSibling){let n="Keyword"==t.name?e.sliceString(t.from,t.to).toLowerCase():null,i=null;if(r)if("as"==n&&o&&T(t.nextSibling))i=w(e,t.nextSibling);else{if(n&&_.has(n))break;o&&T(t)&&(i=w(e,t))}else r="from"==n;i&&(a||(a=Object.create(null)),a[i]=U(e,o)),o=/Identifier$/.test(t.name)?t:null}return a}(e.doc,n);return"Identifier"==n.name||"QuotedIdentifier"==n.name||"Keyword"==n.name?{from:n.from,quoted:"QuotedIdentifier"==n.name?e.doc.sliceString(n.from,n.from+1):null,parents:X(e.doc,S(n)),aliases:a}:"."==n.name?{from:t,quoted:null,parents:X(e.doc,n),aliases:a}:{from:t,quoted:null,parents:[],empty:!0,aliases:a}}(e.state,e.pos);if(o&&!e.explicit)return null;i&&1==t.length&&(t=i[t[0]]||t);let u=s;for(let e of t){for(;!u.children||!u.children[e];)if(u==s)u=d;else{if(u!=d||!a)return null;u=u.child(a,c)}u=u.child(e,c)}let f=r&&e.state.sliceDoc(e.pos,e.pos+1)==r,p=u.list;return u==s&&i&&(p=p.concat(Object.keys(i).map((e=>({label:e,type:"constant"}))))),{from:n,to:f?e.pos+1:void 0,options:(O=r,m=p,O?m.map((e=>Object.assign(Object.assign({},e),{label:O+e.label+O,apply:void 0}))):m),validFor:r?J:q};var O,m}}(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||$):()=>null}function D(e){return e.schema?(e.dialect||$).language.data.of({autocomplete:z(e)}):[]}function V(e={}){let t=e.dialect||$;return new l.ri(t.language,[D(e),I(t,!!e.upperCaseKeywords)])}const $=j.define({});var W=n(40802);const G=e=>{const t=(0,a.useRef)(null);let n=new W.F6;return(0,a.useEffect)((()=>{const a=W.yy.create({doc:e.value,extensions:[o.Xy,i.tk.updateListener.of((t=>{t.docChanged&&e.handleChange(r.state.doc)})),V(),n.of(W.yy.readOnly.of(!!e.readOnly&&e.readOnly))]}),r=new i.tk({state:a,parent:t.current});return()=>{r.destroy()}}),[]),a.createElement("div",{id:"CMEditor"},a.createElement("div",{ref:t}))};class L extends a.PureComponent{constructor(){super(...arguments),this.state={},this.handleChange=e=>{console.log(e),this.props.onChange(e)}}componentDidMount(){}render(){const{value:e,viewOrEdit:t}=this.props;return a.createElement(r.Z,{size:"small",bodyStyle:{padding:"2px"}},a.createElement(G,{handleChange:this.handleChange,readOnly:"view"==t,value:e}))}}L.defaultProps={};var N=L}}]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy