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.

2 lines
93 KiB

5 months ago
import{eJ as S,eF as o,eG as $,eK as t,eH as l,eC as x,eD as e,eP as R,eE as V,eQ as r,eZ as U,eI as v,e_ as u}from"./index-6b91f299.js";const b=1,m=2,p=263,k=3,c=264,s=265,Y=266,Z=4,w=5,_=6,h=7,X=8,j=9,G=10,f=11,g=12,E=13,I=14,N=15,F=16,C=17,L=18,A=19,H=20,K=21,D=22,B=23,M=24,J=25,OO=26,$O=27,QO=28,iO=29,yO=30,aO=31,zO=32,SO=33,PO=34,eO=35,WO=36,TO=37,sO=38,XO=39,dO=40,nO=41,qO=42,oO=43,tO=44,lO=45,xO=46,RO=47,VO=48,rO=49,UO=50,vO=51,uO=52,bO=53,mO=54,pO=55,kO=56,cO=57,YO=58,ZO=59,wO=60,_O=61,W=62,hO=63,jO=64,GO=65,fO={abstract:Z,and:w,array:_,as:h,true:X,false:X,break:j,case:G,catch:f,clone:g,const:E,continue:I,declare:F,default:N,do:C,echo:L,else:A,elseif:H,enddeclare:K,endfor:D,endforeach:B,endif:M,endswitch:J,endwhile:OO,enum:$O,extends:QO,final:iO,finally:yO,fn:aO,for:zO,foreach:SO,from:PO,function:eO,global:WO,goto:TO,if:sO,implements:XO,include:dO,include_once:nO,instanceof:qO,insteadof:oO,interface:tO,list:lO,match:xO,namespace:RO,new:VO,null:rO,or:UO,print:vO,require:uO,require_once:bO,return:mO,switch:pO,throw:kO,trait:cO,try:YO,unset:ZO,use:wO,var:_O,public:W,private:W,protected:W,while:hO,xor:jO,yield:GO,__proto__:null};function d(O){let Q=fO[O.toLowerCase()];return Q??-1}function n(O){return O==9||O==10||O==13||O==32}function q(O){return O>=97&&O<=122||O>=65&&O<=90}function a(O){return O==95||O>=128||q(O)}function T(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}const gO={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},EO=new S(O=>{if(O.next==40){O.advance();let Q=0;for(;n(O.peek(Q));)Q++;let i="",y;for(;q(y=O.peek(Q));)i+=String.fromCharCode(y),Q++;for(;n(O.peek(Q));)Q++;O.peek(Q)==41&&gO[i.toLowerCase()]&&O.acceptToken(b)}else if(O.next==60&&O.peek(1)==60&&O.peek(2)==60){for(let y=0;y<3;y++)O.advance();for(;O.next==32||O.next==9;)O.advance();let Q=O.next==39;if(Q&&O.advance(),!a(O.next))return;let i=String.fromCharCode(O.next);for(;O.advance(),!(!a(O.next)&&!(O.next>=48&&O.next<=55));)i+=String.fromCharCode(O.next);if(Q){if(O.next!=39)return;O.advance()}if(O.next!=10&&O.next!=13)return;for(;;){let y=O.next==10||O.next==13;if(O.advance(),O.next<0)return;if(y){for(;O.next==32||O.next==9;)O.advance();let z=!0;for(let P=0;P<i.length;P++){if(O.next!=i.charCodeAt(P)){z=!1;break}O.advance()}if(z)return O.acceptToken(m)}}}}),IO=new S(O=>{O.next<0&&O.acceptToken(Y)}),NO=new S((O,Q)=>{O.next==63&&Q.canShift(s)&&O.peek(1)==62&&O.acceptToken(s)});function FO(O){let Q=O.peek(1);if(Q==110||Q==114||Q==116||Q==118||Q==101||Q==102||Q==92||Q==36||Q==34||Q==123)return 2;if(Q>=48&&Q<=55){let i=2,y;for(;i<5&&(y=O.peek(i))>=48&&y<=55;)i++;return i}if(Q==120&&T(O.peek(2)))return T(O.peek(3))?4:3;if(Q==117&&O.peek(2)==123)for(let i=3;;i++){let y=O.peek(i);if(y==125)return i==2?0:i+1;if(!T(y))break}return 0}const CO=new S((O,Q)=>{let i=!1;for(;!(O.next==34||O.next<0||O.next==36&&(a(O.peek(1))||O.peek(1)==123)||O.next==123&&O.peek(1)==36);i=!0){if(O.next==92){let y=FO(O);if(y){if(i)break;return O.acceptToken(k,y)}}else if(!i&&(O.next==91||O.next==45&&O.peek(1)==62&&a(O.peek(2))||O.next==63&&O.peek(1)==45&&O.peek(2)==62&&a(O.peek(3)))&&Q.canShift(c))break;O.advance()}i&&O.acceptToken(p)}),LO=o({"Visibility abstract final static":$.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":$.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":$.controlKeyword,"and or xor yield unset clone instanceof insteadof":$.operatorKeyword,"function fn class trait implements extends const enum global interface use var":$.definitionKeyword,"include include_once require require_once namespace":$.moduleKeyword,"new from echo print array list as":$.keyword,null:$.null,Boolean:$.bool,VariableName:$.variableName,"NamespaceName/...":$.namespace,"NamedType/...":$.typeName,Name:$.name,"CallExpression/Name":$.function($.variableName),"LabelStatement/Name":$.labelName,"MemberExpression/Name":$.propertyName,"MemberExpression/VariableName":$.special($.propertyName),"ScopedExpression/ClassMemb