filesbox/web/dist/17282.de213dad.async.js
2024-07-26 14:10:54 +08:00

2 lines
6.0 KiB
JavaScript

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[17282],{17282:function(k,p,v){k=v.nmd(k),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(i,h,x){"use strict";var d=i("../lib/oop"),g=i("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};d.inherits(r,g),h.JsonHighlightRules=r}),ace.define("ace/mode/json5_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/json_highlight_rules"],function(i,h,x){"use strict";var d=i("../lib/oop"),g=i("./json_highlight_rules").JsonHighlightRules,r=function(){g.call(this);var l=[{token:"variable",regex:/[a-zA-Z$_\u00a1-\uffff][\w$\u00a1-\uffff]*\s*(?=:)/},{token:"variable",regex:/['](?:(?:\\.)|(?:[^'\\]))*?[']\s*(?=:)/},{token:"constant.language.boolean",regex:/(?:null)\b/},{token:"string",regex:/'/,next:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,consumeLineEnd:!0},{token:"string",regex:/'|$/,next:"start"},{defaultToken:"string"}]},{token:"string",regex:/"(?![^"]*":)/,next:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\/bfnrt]|$)/,consumeLineEnd:!0},{token:"string",regex:/"|$/,next:"start"},{defaultToken:"string"}]},{token:"constant.numeric",regex:/[+-]?(?:Infinity|NaN)\b/}];for(var e in this.$rules)this.$rules[e].unshift.apply(this.$rules[e],l);this.normalizeRules()};d.inherits(r,g),h.Json5HighlightRules=r}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(i,h,x){"use strict";var d=i("../range").Range,g=function(){};(function(){this.checkOutdent=function(r,l){return/^\s+$/.test(r)?/^\s*\}/.test(l):!1},this.autoOutdent=function(r,l){var e=r.getLine(l),n=e.match(/^(\s*\})/);if(!n)return 0;var t=n[1].length,s=r.findMatchingBracket({row:l,column:t});if(!s||s.row==l)return 0;var o=this.$getIndent(r.getLine(s.row));r.replace(new d(l,0,l,t-1),o)},this.$getIndent=function(r){return r.match(/^\s*/)[0]}}).call(g.prototype),h.MatchingBraceOutdent=g}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(i,h,x){"use strict";var d=i("../../lib/oop"),g=i("../../range").Range,r=i("./fold_mode").FoldMode,l=h.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};d.inherits(l,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,n,t){var s=e.getLine(t);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var o=this._getFoldWidgetBase(e,n,t);return!o&&this.startRegionRe.test(s)?"start":o},this.getFoldWidgetRange=function(e,n,t,s){var o=e.getLine(t);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,t);var a=o.match(this.foldingStartMarker);if(a){var c=a.index;if(a[1])return this.openingBracketBlock(e,a[1],t,c);var u=e.getCommentFoldRange(t,c+a[0].length,1);return u&&!u.isMultiLine()&&(s?u=this.getSectionRange(e,t):n!="all"&&(u=null)),u}if(n!=="markbegin"){var a=o.match(this.foldingStopMarker);if(a){var c=a.index+a[0].length;return a[1]?this.closingBracketBlock(e,a[1],t,c):e.getCommentFoldRange(t,c,-1)}}},this.getSectionRange=function(e,n){var t=e.getLine(n),s=t.search(/\S/),o=n,a=t.length;n=n+1;for(var c=n,u=e.getLength();++n<u;){t=e.getLine(n);var m=t.search(/\S/);if(m!==-1){if(s>m)break;var f=this.getFoldWidgetRange(e,"all",n);if(f){if(f.start.row<=o)break;if(f.isMultiLine())n=f.end.row;else if(s==m)break}c=n}}return new g(o,a,c,e.getLine(c).length)},this.getCommentRegionBlock=function(e,n,t){for(var s=n.search(/\s*$/),o=e.getLength(),a=t,c=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,u=1;++t<o;){n=e.getLine(t);var m=c.exec(n);if(!!m&&(m[1]?u--:u++,!u))break}var f=t;if(f>a)return new g(a,s,f,n.length)}}.call(l.prototype)}),ace.define("ace/mode/json5",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json5_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(i,h,x){"use strict";var d=i("../lib/oop"),g=i("./text").Mode,r=i("./json5_highlight_rules").Json5HighlightRules,l=i("./matching_brace_outdent").MatchingBraceOutdent,e=i("./behaviour/cstyle").CstyleBehaviour,n=i("./folding/cstyle").FoldMode,t=function(){this.HighlightRules=r,this.$outdent=new l,this.$behaviour=new e,this.foldingRules=new n};d.inherits(t,g),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.checkOutdent=function(s,o,a){return this.$outdent.checkOutdent(o,a)},this.autoOutdent=function(s,o,a){this.$outdent.autoOutdent(o,a)},this.$id="ace/mode/json5"}.call(t.prototype),h.Mode=t}),function(){ace.require(["ace/mode/json5"],function(i){k&&(k.exports=i)})}()}}]);