芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/web/dist/vendor/ckeditor/plugins/codemirror/js/beautify.min.js
(function(){function r(p,b){return(new z(p,b)).beautify()}function z(p,b){var m,V,t,e,ba,w,r,Q,u,H,C,I,A,v,c,o,W,R;function ea(a,f){return{mode:f,last_text:a?a.last_text:"",last_word:a?a.last_word:"",var_line:!1,var_line_tainted:!1,var_line_reindented:!1,in_html_comment:!1,multiline_array:!1,if_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:a?a.indentation_level+(a.var_line&&a.var_line_reindented?1:0):0,ternary_depth:0}}function fa(a){for(a=void 0=== a?!1:a;n.length&&(" "===n[n.length-1]||n[n.length-1]===D||n[n.length-1]===S||a&&("\n"===n[n.length-1]||"\r"===n[n.length-1]));)n.pop()}function J(a){return a.replace(/^\s\s*|\s\s*$/,"")}function E(){return n.length&&"\n"===n[n.length-1]}function X(a){if(a=void 0===a?!1:a,m&&!a){var f="",d=0,c;a:{c=n.length-1;0>c&&(c+=n.length);c>n.length-1&&(c=n.length-1);for(c++;0
=m&&(a=!0))}(V&&F||a)&& !E()&&(g(!1,!0),T=!0,F=!1)}function g(d,f){if(T=!1,h=!1,!f&&";"!==a.last_text)for(;a.mode===v&&!a.if_block;)K();(a.mode===c&&(a.multiline_array=!0),n.length)&&(d||!E())&&n.push("\n")}function ca(d){if(void 0===d?d=1:"number"!=typeof d&&(d=d?1:0),""!==a.last_text)for(var f=0;f
=s)return!1;c=l.charAt(f)}return c===a}function ha(){var c,f,b,o,g;if(y=0,d>=s)return["","TK_EOF"];F=!1;L=[];f=l.charAt(d);for(d+=1;q(f,da);){if("\n"===f?(y+=1,L=[]):y&&(f===D?L.push(D):"\r"!==f&&L.push(" ")),d>=s)return["","TK_EOF"];f=l.charAt(d);d+=1}if(q(f,aa)){if(d
=s););return d+=2,o&&0===y?["/*"+b+"*/","TK_INLINE_COMMENT"]:["/*"+b+"*/","TK_BLOCK_COMMENT"]}if("/"=== l.charAt(d)){for(b=f;"\r"!==l.charAt(d)&&"\n"!==l.charAt(d)&&!(b+=l.charAt(d),d+=1,d>=s););return[b,"TK_COMMENT"]}}if("'"===f||'"'===f||("/"===f||e&&"<"===f&&l.slice(d-1).match(/^<[a-zA-Z:0-9]+\s*([a-zA-Z:0-9]+="[^"]*"\s*)*\/?\s*>/))&&("TK_WORD"===j&&U(a.last_text)||"TK_END_EXPR"===j&&q(B.mode,[R,W])||q(j,"TK_COMMENT TK_START_EXPR TK_START_BLOCK TK_END_BLOCK TK_OPERATOR TK_EQUALS TK_EOF TK_SEMICOLON TK_COMMA".split(" ")))){b=f;var i=o=!1;if(c=f,d
=s)return[c,"TK_STRING"]}else if(e&&"<"===b){f=/<(\/?)([a-zA-Z:0-9]+)\s*([a-zA-Z:0-9]+="[^"]*"\s*)*(\/?)\s*>/g;o=l.slice(d-1);var h=f.exec(o);if(h&&0===h.index){b=h[2];for(c=0;h;){var i=!!h[1],k=!!h[h.length-1];if(h[2]!==b||k||(i?--c:++c),0>=c)break;h=f.exec(o)}return g=h?h.index+h[0].length:o.length,d+=g-1,[o.slice(0,g),"TK_STRING"]}}else for(;o||l.charAt(d)!==b;)if(c+=l.charAt(d),o?(("x"===l.charAt(d)|| "u"===l.charAt(d))&&(i=!0),o=!1):o="\\"===l.charAt(d),d+=1,d>=s)return[c,"TK_STRING"];d+=1;c+=b;if(i&&ba){a:{g=c;f=!1;o="";h=0;c="";for(i=0;f||h
i)o+="x"===k?"\\x"+c:"\\u"+c;else if(34===i||39===i||92===i)o+="\\"+String.fromCharCode(i);else{if("x"===k&&126
=i)break a;o+=String.fromCharCode(i)}}else"\\"=== k?f=!0:o+=k;g=o}c=g}if("/"===b)for(;d
"===l.substring(d-1,d+2))return a.in_html_comment=!1,d+=2,["--\>","TK_COMMENT"];if("."===f)return[f,"TK_DOT"];if(q(f,M)){for(;d
=s););return","===f?[f,"TK_COMMA"]:"="===f?[f,"TK_EQUALS"]:[f,"TK_OPERATOR"]}return[f,"TK_UNKNOWN"]}var l,n,k,N,j,O,D,a,B,$,da,aa,M,d,P,ia,x,Z,F,T,h,s,y,L,ja,S="";da=["\n","\r","\t"," "]; aa="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$".split("");ia="0123456789".split("");M="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! !! , : ? ^ ^= |= ::";M+=" <%= <% %> = ?>";M=M.split(" ");P="continue try throw return var if switch case default for while break function".split(" ");v="Statement";c="ArrayLiteral";W="ForInitializer";R="Conditional";o="Expression";ja={TK_START_EXPR:function(){if(z(),"["===k){if("TK_WORD"===j|| ")"===a.last_text){q(a.last_text,P)&&(h=!0);G(o);i();w&&(h=!0);return}a.mode===c&&("["===a.last_text||","===a.last_text&&("]"===O||"}"===O))&&(t||g())}else"for"===a.last_text?G(W):q(a.last_text,["if","while"])?G(R):G(o);";"===a.last_text||"TK_START_BLOCK"===j?g():"TK_END_EXPR"===j||"TK_START_EXPR"===j||"TK_END_BLOCK"===j||"."===a.last_text?F&&g():"TK_WORD"!==j&&"TK_OPERATOR"!==j?h=!0:"function"===a.last_word||"typeof"===a.last_word?r&&(h=!0):(q(a.last_text,P)||"catch"===a.last_text)&&Q&&(h=!0);"("=== k&&("TK_EQUALS"===j||"TK_OPERATOR"===j)&&"ObjectLiteral"!==a.mode&&X();i();w&&(h=!0);"["===k&&(G(c),a.indentation_level+=1);Z&&(Z=!1,a.indentation_level+=1)},TK_END_EXPR:function(){for(;a.mode===v;)K();"]"===k&&a.mode===c&&a.multiline_array&&!t&&g();K();w&&(h=!0);i();a.do_while&&B.mode===R&&(B.mode=o,a.do_block=!1,a.do_while=!1)},TK_START_BLOCK:function(){G("BlockStatement");var d=ga("}")&&"function"===a.last_word&&"TK_END_EXPR"===j;"expand"===u?"TK_OPERATOR"!==j&&(d||"TK_EQUALS"===j||U(a.last_text)&& "else"!==a.last_text)?h=!0:g():"TK_OPERATOR"!==j&&"TK_START_EXPR"!==j?"TK_START_BLOCK"===j?g():h=!0:B.mode===c&&","===a.last_text&&("}"===O?h=!0:g());i();a.indentation_level+=1},TK_END_BLOCK:function(){for(;a.mode===v;)K();K();var d="TK_START_BLOCK"===j;"expand"===u?d||g():d||(a.mode===c&&t?(t=!1,g(),t=!0):g());i()},TK_WORD:function(){if(z()||F&&!Y(a.mode)&&("TK_OPERATOR"!==j||"--"===a.last_text||"++"===a.last_text)&&"TK_EQUALS"!==j&&(V||"var"!==a.last_text)&&g(),a.do_block&&!a.do_while){if("while"=== k){h=!0;i();h=!0;a.do_while=!0;return}g();a.do_block=!1}if(Z&&U(k)&&(Z=!1),a.if_block&&"else"!==k){for(;a.mode===v;)K();a.if_block=!1}"function"===k?(a.var_line&&"TK_EQUALS"!==j&&(a.var_line_reindented=!0),(E()||";"===a.last_text||"}"===a.last_text)&&"{"!==a.last_text&&a.mode!==c&&(E()||g(!0),E()&&0
A&&(y=A),V&&1
=this.input.length)return b.length?b.join(""):["","TK_EOF"];if(c=this.input.charAt(this.pos), this.pos++,this.line_char_count++,this.Utils.in_array(c,this.Utils.whitespace))b.length&&(e=!0),this.line_char_count--;else{if(e){if(this.line_char_count>=this.max_char){b.push("\n");for(e=0;e
","igm");return c.lastIndex=this.pos, b=c.exec(this.input),e=b?b.index:this.input.length,this.pos
=this.input.length)return c&&(this.pos=t,this.line_char_count= v),e.length?e.join(""):["","TK_EOF"];(b=this.input.charAt(this.pos),this.pos++,this.line_char_count++,this.Utils.in_array(b,this.Utils.whitespace))?(p=!0,this.line_char_count--):(("'"===b||'"'===b)&&(e[1]&&"!"===e[1]||(b+=this.get_unformatted(b),p=!0)),"="===b&&(p=!1),e.length&&"="!==e[e.length-1]&&">"!==b&&p&&(this.line_char_count>=this.max_char?(this.print_newline(!1,e),this.line_char_count=0):(e.push(" "),this.line_char_count++),p=!1),"<"===b&&(r=this.pos-1),e.push(b))}while(">"!==b);return g= e.join(""),w=-1!==g.indexOf(" ")?g.indexOf(" "):g.indexOf(">"),i=g.substring(1,w).toLowerCase(),"/"===g.charAt(g.length-2)||this.Utils.in_array(i,this.Utils.single_token)?c||(this.tag_type="SINGLE"):"script"===i?c||(this.record_tag(i),this.tag_type="SCRIPT"):"style"===i?c||(this.record_tag(i),this.tag_type="STYLE"):this.is_unformatted(i,u)?(m=this.get_unformatted(""+i+">",g),e.push(m),0
",g),e.push(m)),c||(this.tag_type="START")):-1!==i.indexOf("[endif")?(this.tag_type="END",this.unindent()):-1!==i.indexOf("[cdata[")?(m=this.get_unformatted("]]\>",g),e.push(m),c||(this.tag_type="SINGLE")):(m=this.get_unformatted("--\>",g),e.push(m),this.tag_type="SINGLE"):c|| ("/"===i.charAt(0)?(this.retrieve_tag(i.substring(1)),this.tag_type="END"):(this.record_tag(i),this.tag_type="START"),this.Utils.in_array(i,this.Utils.extra_liners)&&this.print_newline(!0,this.output)),c&&(this.pos=t,this.line_char_count=v),e.join("")},this.get_unformatted=function(c,b){if(b&&-1!==b.toLowerCase().indexOf(c))return"";var e="",m="",p=!0;do{if(this.pos>=this.input.length)break;if(e=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(e,this.Utils.whitespace)){if(!p){this.line_char_count--; continue}if("\n"===e||"\r"===e){m+="\n";this.line_char_count=0;continue}}m+=e;this.line_char_count++;p=!0}while(-1===m.toLowerCase().indexOf(c));return m},this.get_token=function(){var c,b,e;return"TK_TAG_SCRIPT"===this.last_token||"TK_TAG_STYLE"===this.last_token?(b=this.last_token.substr(7),c=this.get_contents_to(b),"string"!=typeof c)?c:[c,"TK_"+b]:"CONTENT"===this.current_mode?(c=this.get_content(),"string"!=typeof c?c:[c,"TK_CONTENT"]):"TAG"===this.current_mode?(c=this.get_tag(),"string"!=typeof c? c:(e="TK_TAG_"+this.tag_type,[c,e])):void 0},this.get_full_indent=function(c){return(c=this.indent_level+c||0,1>c)?"":Array(c+1).join(this.indent_string)},this.is_unformatted=function(c,b){if(!this.Utils.in_array(c,b))return!1;if("a"!==c.toLowerCase()||!this.Utils.in_array("a",b))return!0;var e=(this.get_tag(!0)||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!e||this.Utils.in_array(e,b)?!0:!1},this.printer=function(c,b,e,m,p){this.input=c||"";this.output=[];this.indent_character=b;this.indent_string= "";this.indent_size=e;this.brace_style=p;this.indent_level=0;this.max_char=m;for(c=this.line_char_count=0;c