2024-06-05 20:41:18 +08:00
import { Ga as at , Ia as Ft , J as Ht , Pa as Pt , Qa as C , b as Nt , c as Ut , db as vt , fb as Lt , gb as Ct , h as ct , hb as zt , ib as Et , jb as Dt , kb as It , lb as mt , n as Tt , nb as dt } from "./chunk-VNKGKUEF.js" ; import { a as tt , h as qt } from "./chunk-3NXJ7VWC.js" ; var ce = qt ( Nt ( ) , 1 ) , de = qt ( Ut ( ) , 1 ) , ue = qt ( Ht ( ) , 1 ) ; var _t = function ( ) { var e = function ( K , n , r , o ) { for ( r = r || { } , o = K . length ; o -- ; r [ K [ o ] ] = n ) ; return r } , s = [ 1 , 3 ] , h = [ 1 , 4 ] , x = [ 1 , 5 ] , f = [ 1 , 6 ] , d = [ 1 , 7 ] , c = [ 1 , 5 , 13 , 15 , 17 , 19 , 20 , 25 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 , 37 , 38 , 40 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 , 49 , 50 ] , g = [ 1 , 5 , 6 , 13 , 15 , 17 , 19 , 20 , 25 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 , 37 , 38 , 40 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 , 49 , 50 ] , i = [ 32 , 33 , 34 ] , y = [ 2 , 7 ] , p = [ 1 , 13 ] , B = [ 1 , 17 ] , N = [ 1 , 18 ] , V = [ 1 , 19 ] , I = [ 1 , 20 ] , b = [ 1 , 21 ] , M = [ 1 , 22 ] , X = [ 1 , 23 ] , z = [ 1 , 24 ] , nt = [ 1 , 25 ] , st = [ 1 , 26 ] , rt = [ 1 , 27 ] , U = [ 1 , 30 ] , H = [ 1 , 31 ] , T = [ 1 , 32 ] , _ = [ 1 , 33 ] , m = [ 1 , 34 ] , t = [ 1 , 35 ] , A = [ 1 , 36 ] , S = [ 1 , 37 ] , k = [ 1 , 38 ] , F = [ 1 , 39 ] , P = [ 1 , 40 ] , v = [ 1 , 41 ] , L = [ 1 , 42 ] , O = [ 1 , 57 ] , Y = [ 1 , 58 ] , E = [ 5 , 22 , 26 , 32 , 33 , 34 , 40 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 , 49 , 50 , 51 ] , ut = { trace : function ( ) { } , yy : { } , symbols _ : { error : 2 , start : 3 , eol : 4 , SPACE : 5 , QUADRANT : 6 , document : 7 , line : 8 , statement : 9 , axisDetails : 10 , quadrantDetails : 11 , points : 12 , title : 13 , title _value : 14 , acc _title : 15 , acc _title _value : 16 , acc _descr : 17 , acc _descr _value : 18 , acc _descr _multiline _value : 19 , section : 20 , text : 21 , point _start : 22 , point _x : 23 , point _y : 24 , "X-AXIS" : 25 , "AXIS-TEXT-DELIMITER" : 26 , "Y-AXIS" : 27 , QUADRANT _1 : 28 , QUADRANT _2 : 29 , QUADRANT _3 : 30 , QUADRANT _4 : 31 , NEWLINE : 32 , SEMI : 33 , EOF : 34 , alphaNumToken : 35 , textNoTagsToken : 36 , STR : 37 , MD _STR : 38 , alphaNum : 39 , PUNCTUATION : 40 , AMP : 41 , NUM : 42 , ALPHA : 43 , COMMA : 44 , PLUS : 45 , EQUALS : 46 , MULT : 47 , DOT : 48 , BRKT : 49 , UNDERSCORE : 50 , MINUS : 51 , $accept : 0 , $end : 1 } , terminals _ : { 2 : "error" , 5 : "SPACE" , 6 : "QUADRANT" , 13 : "title" , 14 : "title_value" , 15 : "acc_title" , 16 : "acc_title_value" , 17 : "acc_descr" , 18 : "acc_descr_value" , 19 : "acc_descr_multiline_value" , 20 : "section" , 22 : "point_start" , 23 : "point_x" , 24 : "point_y" , 25 : "X-AXIS" , 26 : "AXIS-TEXT-DELIMITER" , 27 : "Y-AXIS" , 28 : "QUADRANT_1" , 29 : "QUADRANT_2" , 30 : "QUADRANT_3" , 31 : "QUADRANT_4" , 32 : "NEWLINE" , 33 : "SEMI" , 34 : "EOF" , 37 : "STR" , 38 : "MD_STR" , 40 : "PUNCTUATION" , 41 : "AMP" , 42 : "NUM" , 43 : "ALPHA" , 44 : "COMMA" , 45 : "PLUS" , 46 : "EQUALS" , 47 : "MULT" , 48 : "DOT" , 49 : "BRKT" , 50 : "UNDERSCORE" , 51 : "MINUS" } , productions _ : [ 0 , [ 3 , 2 ] , [ 3 , 2 ] , [ 3 , 2 ] , [ 7 , 0 ] , [ 7 , 2 ] , [ 8 , 2 ] , [ 9 , 0 ] , [ 9 , 2 ] , [ 9 , 1 ] , [ 9 , 1 ] , [ 9 , 1 ] , [ 9 , 2 ] , [ 9 , 2 ] , [ 9 , 2 ] , [ 9 , 1 ] , [ 9 , 1 ] , [ 12 , 4 ] , [ 10 , 4 ] , [ 10 , 3 ] , [ 10 , 2 ] , [ 10 , 4 ] , [ 10 , 3 ] , [ 10 , 2 ] , [ 11 , 2 ] , [ 11 , 2 ] , [ 11 , 2 ] , [ 11 , 2 ] , [ 4 , 1 ] , [ 4 , 1 ] , [ 4 , 1 ] , [ 21 , 1 ] , [ 21 , 2 ] , [ 21 , 1 ] , [ 21 , 1 ] , [ 39 , 1 ] , [ 39 , 2 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 35 , 1 ] , [ 36 , 1 ] , [ 36 , 1 ] , [ 36 , 1 ] ] , performAction : function ( n , r , o , l , q , a , it ) { var u = a . length - 1 ; switch ( q ) { case 12 : this . $ = a [ u ] . trim ( ) , l . setDiagramTitle ( this . $ ) ; break ; case 13 : this . $ = a [ u ] . trim ( ) , l . setAccTitle ( this . $ ) ; break ; case 14 : case 15 : this . $ = a [ u ] . trim ( ) , l . setAccDescription ( this . $ ) ; break ; case 16 : l . addSection ( a [ u ] . substr ( 8 ) ) , this . $ = a [ u ] . substr ( 8 ) ; break ; case 17 : l . addPoint ( a [ u - 3 ] , a [ u - 1 ] , a [ u ] ) ; break ; case 18 : l . setXAxisLeftText ( a [ u - 2 ] ) , l . setXAxisRightText ( a [ u ] ) ; break ; case 19 : a [ u - 1 ] . text += " \u27F6 " , l . setXAxisLeftText ( a [ u - 1 ] ) ; break ; case 20 : l . setXAxisLeftText ( a [ u ] ) ; break ; case 21 : l . setYAxisBottomText ( a [ u - 2 ] ) , l . setYAxisTopText ( a [ u ] ) ; break ; case 22 : a [ u - 1 ] . text += " \u27F6 " , l . setYAxisBottomText ( a [ u - 1 ] ) ; break ; case 23 : l . setYAxisBottomText ( a [ u ] ) ; break ; case 24 : l . setQuadrant1Text ( a [ u ] ) ; break ; case 25 : l . setQuadrant2Text ( a [ u ] ) ; break ; case 26 : l . setQuadrant3Text ( a [ u ] ) ; break ; case 27 : l . setQuadrant4Text ( a [ u ] ) ; break ; case 31 : this . $ = { text : a [ u ] , type : "text" } ; break ; case 32 : this . $ = { text : a [ u - 1 ] . text + "" + a [ u ] , type : a [ u - 1 ] . type } ; break ; case 33 : this . $ = { text : a [ u ] , type : "text" } ; break ; case 34 : this . $ = { text : a [ u ] , type : "markdown" } ; break ; case 35 : this . $ = a [ u ] ; break ; case 36 : this . $ = a [ u - 1 ] + "" + a [ u ] ; break } } , table : [ { 3 : 1 , 4 : 2 , 5 : s , 6 : h , 32 : x , 33 : f , 34 : d } , { 1 : [ 3 ] } , { 3 : 8 , 4 : 2 , 5 : s , 6 : h , 32 : x , 33 : f , 34 : d } , { 3 : 9 , 4 : 2 , 5 : s , 6 : h , 32 : x , 33 : f , 34 : d } , e ( c , [ 2 , 4 ] , { 7 : 10 } ) , e ( g , [ 2 , 28 ] ) , e ( g , [ 2 , 29 ] ) , e ( g , [ 2 , 30 ] ) , { 1 : [ 2 , 1 ] } , { 1 : [ 2 , 2 ] } , e ( i , y , { 8 : 11 , 9 : 12 , 10 : 14 , 11 : 15 , 12 : 16 , 21 : 28 , 35 : 29 , 1 : [ 2 , 3 ] , 5 : p , 13 : B , 15 : N , 17 : V , 19 : I , 20 : b , 25 : M , 27 : X , 28 : z , 29 : nt , 30 : st , 31 : rt , 37 : U , 38 : H , 40 : T , 41 : _ , 42 : m , 43 : t , 44 : A , 45 : S , 46 : k , 47 : F , 48 : P , 49 : v , 50 : L } ) , e ( c , [ 2 , 5 ] ) , { 4 : 43 , 32 : x , 33 : f , 34 : d } , e ( i , y , { 10 : 14 , 11 : 15 , 12 : 16 , 21 : 28 , 35 : 29 , 9 : 44 , 5 : p , 13 : B , 15 : N , 17 : V , 19 : I , 20 : b , 25 : M , 27 : X , 28 : z , 29 : nt , 30 : st , 31 : rt , 37 : U ,
2024-05-10 22:42:52 +08:00
` +this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,o,l,q){switch(l){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?! \{ )[^ \n ]*)/i,/^(?:[^ \} ]%%[^ \n ]*)/i,/^(?:[ \n \r ]+)/i,/^(?:%%[^ \n ]*)/i,/^(?:title \b )/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accTitle \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s *: \s *)/i,/^(?:(?! \n ||)*[^ \n ]*)/i,/^(?:accDescr \s * \{ \s *)/i,/^(?:[ \} ])/i,/^(?:[^ \} ]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][ ` ] ) / i , /^(?:[^`"]+)/i , /^(?:[`]["])/i , /^(?:["])/i , /^(?:["])/i , /^(?:[^"]*)/i , /^(?:\s*:\s*\[\s*)/i , /^(?:(1)|(0(.\d+)?))/i , /^(?:\s*\] *)/i , /^(?:\s*,\s*)/i , /^(?:(1)|(0(.\d+)?))/i , /^(?: *quadrantChart *)/i , /^(?:[A-Za-z]+)/i , /^(?::)/i , /^(?:\+)/i , /^(?:,)/i , /^(?:=)/i , /^(?:=)/i , /^(?:\*)/i , /^(?:#)/i , /^(?:[\_])/i , /^(?:\.)/i , /^(?:&)/i , /^(?:-)/i , /^(?:[0-9]+)/i , /^(?:\s)/i , /^(?:;)/i , /^(?:[!"#$%&'*+,-.`?\\_/])/i , /^(?:$)/i ] , conditions : { point _y : { rules : [ 30 ] , inclusive : ! 1 } , point _x : { rules : [ 29 ] , inclusive : ! 1 } , point _start : { rules : [ 27 , 28 ] , inclusive : ! 1 } , acc _descr _multiline : { rules : [ 11 , 12 ] , inclusive : ! 1 } , acc _descr : { rules : [ 9 ] , inclusive : ! 1 } , acc _title : { rules : [ 7 ] , inclusive : ! 1 } , title : { rules : [ 5 ] , inclusive : ! 1 } , md _string : { rules : [ 21 , 22 ] , inclusive : ! 1 } , string : { rules : [ 24 , 25 ] , inclusive : ! 1 } , INITIAL : { rules : [ 0 , 1 , 2 , 3 , 4 , 6 , 8 , 10 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 23 , 26 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 ] , inclusive : ! 0 } } } ; return K } ( ) ; ut . lexer = Bt ; function xt ( ) { this . yy = { } } return xt . prototype = ut , ut . Parser = xt , new xt } ( ) ; _t . parser = _t ; var Qt = _t , R = Pt ( ) , bt = class { constructor ( ) { this . config = this . getDefaultConfig ( ) , this . themeConfig = this . getDefaultThemeConfig ( ) , this . data = this . getDefaultData ( ) } getDefaultData ( ) { return { titleText : "" , quadrant1Text : "" , quadrant2Text : "" , quadrant3Text : "" , quadrant4Text : "" , xAxisLeftText : "" , xAxisRightText : "" , yAxisBottomText : "" , yAxisTopText : "" , points : [ ] } } getDefaultConfig ( ) { var s , h , x , f , d , c , g , i , y , p , B , N , V , I , b , M , X , z ; return { showXAxis : ! 0 , showYAxis : ! 0 , showTitle : ! 0 , chartHeight : ( ( s = C . quadrantChart ) == null ? void 0 : s . chartWidth ) || 500 , chartWidth : ( ( h = C . quadrantChart ) == null ? void 0 : h . chartHeight ) || 500 , titlePadding : ( ( x = C . quadrantChart ) == null ? void 0 :