物管理前端
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.

1 line
93 KiB

  1. import{e as S,C as o,W as $,_ as t,S as R,Y as x,U as W,b as l,q as V,g as u,v as U,k as v,s as r}from"./index-Bo-aCpEW.js";const b=1,m=2,p=263,k=3,Y=264,s=265,c=266,Z=4,h=5,w=6,j=7,X=8,_=9,G=10,g=11,f=12,E=13,I=14,F=15,N=16,C=17,L=18,A=19,K=20,H=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,WO=35,TO=36,eO=37,sO=38,XO=39,nO=40,dO=41,qO=42,oO=43,tO=44,RO=45,xO=46,lO=47,VO=48,uO=49,UO=50,vO=51,rO=52,bO=53,mO=54,pO=55,kO=56,YO=57,cO=58,ZO=59,hO=60,wO=61,T=62,jO=63,_O=64,GO=65,gO={abstract:Z,and:h,array:w,as:j,true:X,false:X,break:_,case:G,catch:g,clone:f,const:E,continue:I,declare:N,default:F,do:C,echo:L,else:A,elseif:K,enddeclare:H,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:WO,global:TO,goto:eO,if:sO,implements:XO,include:nO,include_once:dO,instanceof:qO,insteadof:oO,interface:tO,list:RO,match:xO,namespace:lO,new:VO,null:uO,or:UO,print:vO,require:rO,require_once:bO,return:mO,switch:pO,throw:kO,trait:YO,try:cO,unset:ZO,use:hO,var:wO,public:T,private:T,protected:T,while:jO,xor:_O,yield:GO,__proto__:null};function n(O){return gO[O.toLowerCase()]??-1}function d(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 e(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}const fO={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(;d(O.peek(Q));)Q++;let i="",y;for(;q(y=O.peek(Q));)i+=String.fromCharCode(y),Q++;for(;d(O.peek(Q));)Q++;O.peek(Q)==41&&fO[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(c)}),FO=new S((O,Q)=>{O.next==63&&Q.canShift(s)&&O.peek(1)==62&&O.acceptToken(s)});function NO(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&&e(O.peek(2)))return e(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(!e(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=NO(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(Y))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/ClassMemberName/Name":$.proper