filesbox/web/dist/6201.fd6129e3.async.js

27 lines
147 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6201],{6201:function(G,q,H){var j=H(48764).Buffer;(function(L){if(typeof L.window!="undefined"&&L.document||L.require&&L.define)return;L.console||(L.console=function(){var P=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:P})},L.console.error=L.console.warn=L.console.log=L.console.trace=L.console),L.window=L,L.ace=L,L.onerror=function(P,v,m,b,y){postMessage({type:"error",data:{message:P,data:y&&y.data,file:v,line:m,col:b,stack:y&&y.stack}})},L.normalizeModule=function(P,v){if(v.indexOf("!")!==-1){var m=v.split("!");return L.normalizeModule(P,m[0])+"!"+L.normalizeModule(P,m[1])}if(v.charAt(0)=="."){var b=P.split("/").slice(0,-1).join("/");for(v=(b?b+"/":"")+v;v.indexOf(".")!==-1&&y!=v;){var y=v;v=v.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return v},L.require=function(v,m){if(m||(m=v,v=null),!m.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");m=L.normalizeModule(v,m);var b=L.require.modules[m];if(b)return b.initialized||(b.initialized=!0,b.exports=b.factory().exports),b.exports;if(!L.require.tlns)return console.log("unable to load "+m);var y=D(m,L.require.tlns);return y.slice(-3)!=".js"&&(y+=".js"),L.require.id=m,L.require.modules[m]={},importScripts(y),L.require(v,m)};function D(P,v){for(var m=P,b="";m;){var y=v[m];if(typeof y=="string")return y+b;if(y)return y.location.replace(/\/*$/,"/")+(b||y.main||y.name);if(y===!1)return"";var k=m.lastIndexOf("/");if(k===-1)break;b=m.substr(k)+b,m=m.slice(0,k)}return P}L.require.modules={},L.require.tlns={},L.define=function(P,v,m){if(arguments.length==2?(m=v,typeof P!="string"&&(v=P,P=L.require.id)):arguments.length==1&&(m=P,v=[],P=L.require.id),typeof m!="function"){L.require.modules[P]={exports:m,initialized:!0};return}v.length||(v=["require","exports","module"]);var b=function(y){return L.require(P,y)};L.require.modules[P]={exports:{},factory:function(){var y=this,k=m.apply(this,v.slice(0,m.length).map(function(e){switch(e){case"require":return b;case"exports":return y.exports;case"module":return y;default:return b(e)}}));return k&&(y.exports=k),y}}},L.define.amd={},L.require.tlns={},L.initBaseUrls=function(v){for(var m in v)this.require.tlns[m]=v[m]},L.initSender=function(){var v=L.require("ace/lib/event_emitter").EventEmitter,m=L.require("ace/lib/oop"),b=function(){};return function(){m.implement(this,v),this.callback=function(y,k){postMessage({type:"call",id:k,data:y})},this.emit=function(y,k){postMessage({type:"event",name:y,data:k})}}.call(b.prototype),new b};var Y=L.main=null,N=L.sender=null;L.onmessage=function(P){var v=P.data;if(v.event&&N)N._signal(v.event,v.data);else if(v.command)if(Y[v.command])Y[v.command].apply(Y,v.args);else if(L[v.command])L[v.command].apply(L,v.args);else throw new Error("Unknown command:"+v.command);else if(v.init){L.initBaseUrls(v.tlns),N=L.sender=L.initSender();var m=this.require(v.module)[v.classname];Y=L.main=new m(N)}}})(this),ace.define("ace/lib/oop",[],function(L,D,Y){"use strict";D.inherits=function(N,P){N.super_=P,N.prototype=Object.create(P.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}})},D.mixin=function(N,P){for(var v in P)N[v]=P[v];return N},D.implement=function(N,P){D.mixin(N,P)}}),ace.define("ace/lib/lang",[],function(L,D,Y){"use strict";D.last=function(v){return v[v.length-1]},D.stringReverse=function(v){return v.split("").reverse().join("")},D.stringRepeat=function(v,m){for(var b="";m>0;)m&1&&(b+=v),(m>>=1)&&(v+=v);return b};var N=/^\s\s*/,P=/\s\s*$/;D.stringTrimLeft=function(v){return v.replace(N,"")},D.stringTrimRight=function(v){return v.replace(P,"")},D.copyObject=function(v){var m={};for(var b in v)m[b]=v[b];return m},D.copyArray=function(v){for(var m=[],b=0,y=v.length;b<y;b++)v[b]&&typeof v[b]=="object"?m[b]=this.copyObject(v[b]):m[b]=v[b];return m},D.deepCopy=function v(m){if(typeof m!="object"||!m)return m;var b;if(Array.isArray(m)){b=[];for(var y=0;y<m.length;y++)b[y]=v(m[y]);return b}if(Object.prototype.toString.call(m)!=="[o
`,this._signal("changeNewLineMode")},k.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
`;case"unix":return`
`;default:return this.$autoNewLine||`
`}},k.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},k.prototype.getNewLineMode=function(){return this.$newLineMode},k.prototype.isNewLine=function(e){return e==`\r
`||e=="\r"||e==`
`},k.prototype.getLine=function(e){return this.$lines[e]||""},k.prototype.getLines=function(e,n){return this.$lines.slice(e,n+1)},k.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},k.prototype.getLength=function(){return this.$lines.length},k.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},k.prototype.getLinesForRange=function(e){var n;if(e.start.row===e.end.row)n=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{n=this.getLines(e.start.row,e.end.row),n[0]=(n[0]||"").substring(e.start.column);var f=n.length-1;e.end.row-e.start.row==f&&(n[f]=n[f].substring(0,e.end.column))}return n},k.prototype.insertLines=function(e,n){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,n)},k.prototype.removeLines=function(e,n){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,n)},k.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},k.prototype.insert=function(e,n){return this.getLength()<=1&&this.$detectNewLine(n),this.insertMergedLines(e,this.$split(n))},k.prototype.insertInLine=function(e,n){var f=this.clippedPos(e.row,e.column),h=this.pos(e.row,e.column+n.length);return this.applyDelta({start:f,end:h,action:"insert",lines:[n]},!0),this.clonePos(h)},k.prototype.clippedPos=function(e,n){var f=this.getLength();e===void 0?e=f:e<0?e=0:e>=f&&(e=f-1,n=void 0);var h=this.getLine(e);return n==null&&(n=h.length),n=Math.min(Math.max(n,0),h.length),{row:e,column:n}},k.prototype.clonePos=function(e){return{row:e.row,column:e.column}},k.prototype.pos=function(e,n){return{row:e,column:n}},k.prototype.$clipPosition=function(e){var n=this.getLength();return e.row>=n?(e.row=Math.max(0,n-1),e.column=this.getLine(n-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},k.prototype.insertFullLines=function(e,n){e=Math.min(Math.max(e,0),this.getLength());var f=0;e<this.getLength()?(n=n.concat([""]),f=0):(n=[""].concat(n),e--,f=this.$lines[e].length),this.insertMergedLines({row:e,column:f},n)},k.prototype.insertMergedLines=function(e,n){var f=this.clippedPos(e.row,e.column),h={row:f.row+n.length-1,column:(n.length==1?f.column:0)+n[n.length-1].length};return this.applyDelta({start:f,end:h,action:"insert",lines:n}),this.clonePos(h)},k.prototype.remove=function(e){var n=this.clippedPos(e.start.row,e.start.column),f=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:n,end:f,action:"remove",lines:this.getLinesForRange({start:n,end:f})}),this.clonePos(n)},k.prototype.removeInLine=function(e,n,f){var h=this.clippedPos(e,n),s=this.clippedPos(e,f);return this.applyDelta({start:h,end:s,action:"remove",lines:this.getLinesForRange({start:h,end:s})},!0),this.clonePos(h)},k.prototype.removeFullLines=function(e,n){e=Math.min(Math.max(0,e),this.getLength()-1),n=Math.min(Math.max(0,n),this.getLength()-1);var f=n==this.getLength()-1&&e>0,h=n<this.getLength()-1,s=f?e-1:e,a=f?this.getLine(s).length:0,o=h?n+1:n,t=h?0:this.getLine(o).length,l=new m(s,a,o,t),d=this.$lines.slice(e,n+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),d},k.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},k.prototype.replace=function(e,n){if(e instanceof m||(e=m.fromPoints(e.start,e.end)),n.length===0&&e.isEmpty())return e.start;if(n==this.getTextRange(e))return e.end;this.remove(e);var f;return n?f=this.insert(e.start,n):f=e.start,f},k.prototype.applyDeltas=function(e){for(var n=0;n<e.length;n++)this.applyDelta(e[n])},k.prototype.revertDeltas=function(e){for(var n=e.length-1;n>=0;n--)this.revertDelta(e[n])},k.prototype.applyDelta=function(e,n){var f=e.action=="insert"
`).split(`
`)}:function(k){return k.split(/\r\n|\r|\n/)},y.prototype.$autoNewLine="",y.prototype.$newLineMode="auto",N.implement(y.prototype,v),D.Document=y}),ace.define("ace/worker/mirror",[],function(L,D,Y){"use strict";var N=L("../document").Document,P=L("../lib/lang"),v=D.Mirror=function(m){this.sender=m;var b=this.doc=new N(""),y=this.deferredUpdate=P.delayedCall(this.onUpdate.bind(this)),k=this;m.on("change",function(e){var n=e.data;if(n[0].start)b.applyDeltas(n);else for(var f=0;f<n.length;f+=2){var h,s;if(Array.isArray(n[f+1])?h={action:"insert",start:n[f],lines:n[f+1]}:h={action:"remove",start:n[f],end:n[f+1]},(h.action=="insert"?h.start:h.end).row>=b.$lines.length)throw s=new Error("Invalid delta"),s.data={path:k.$path,linesLength:b.$lines.length,start:h.start,end:h.end},s;b.applyDelta(h,!0)}if(k.$timeout)return y.schedule(k.$timeout);k.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(m){this.$timeout=m},this.setValue=function(m){this.doc.setValue(m),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(m){this.sender.callback(this.doc.getValue(),m)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(v.prototype)}),ace.define("ace/mode/css/csslint",[],function(L,D,Y){var N=function(){var P=P||{},v=v||{},m=function(){var e;return e=function(){function n(f,h,s){function a(l,d){if(!h[l]){if(!f[l]){var g=typeof e=="function"&&e;if(!d&&g)return g(l,!0);if(o)return o(l,!0);var w=new Error("Cannot find module '"+l+"'");throw w.code="MODULE_NOT_FOUND",w}var S=h[l]={exports:{}};f[l][0].call(S.exports,function(E){var T=f[l][1][E];return a(T||E)},S,S.exports,n,f,h,s)}return h[l].exports}for(var o=typeof e=="function"&&e,t=0;t<s.length;t++)a(s[t]);return a}return n}()({1:[function(n,f,h){"use strict";var s=f.exports={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee"
`&&(p+=M,M=x.read()),E(M))p+=M;else continue}}else{if(M===u)break;if(T(x.peek())){R=o.INVALID;break}}M=x.read()}return M===null&&(R=o.INVALID),this.createToken(R,p,r,i)},unicodeRangeToken:function(_,r,i){var u=this._reader,p=_,x,R=o.CHAR;return u.peek()==="+"&&(u.mark(),p+=u.read(),p+=this.readUnicodeRangePart(!0),p.length===2?u.reset():(R=o.UNICODE_RANGE,p.indexOf("?")===-1&&u.peek()==="-"&&(u.mark(),x=u.read(),x+=this.readUnicodeRangePart(!1),x.length===1?u.reset():p+=x))),this.createToken(R,p,r,i)},whitespaceToken:function(_,r,i){var u=_+this.readWhitespace();return this.createToken(o.S,u,r,i)},readUnicodeRangePart:function(_){for(var r=this._reader,i="",u=r.peek();w(u)&&i.length<6;)r.read(),i+=u,u=r.peek();if(_)for(;u==="?"&&i.length<6;)r.read(),i+=u,u=r.peek();return i},readWhitespace:function(){for(var _=this._reader,r="",i=_.peek();E(i);)_.read(),r+=i,i=_.peek();return r},readNumber:function(_){for(var r=this._reader,i=_,u=_===".",p=r.peek();p;){if(S(p))i+=r.read();else if(p==="."){if(u)break;u=!0,i+=r.read()}else break;p=r.peek()}return i},readString:function(){var _=this.stringToken(this._reader.read(),0,0);return _.type===o.INVALID?null:_.value},readURI:function(_){for(var r=this._reader,i=_,u="",p=r.peek();p&&E(p);)r.read(),p=r.peek();for(p==="'"||p==='"'?(u=this.readString(),u!==null&&(u=a.parseString(u))):u=this.readUnquotedURL(),p=r.peek();p&&E(p);)r.read(),p=r.peek();return u===null||p!==")"?i=null:i+=a.serializeString(u)+r.read(),i},readUnquotedURL:function(_){var r=this._reader,i=_||"",u;for(u=r.peek();u;u=r.peek())if(l.test(u)||/^[-!#$%&*-[\]-~]$/.test(u))i+=u,r.read();else if(u==="\\")if(/^[^\r\n\f]$/.test(r.peek(2)))i+=this.readEscape(r.read(),!0);else break;else break;return i},readName:function(_){var r=this._reader,i=_||"",u;for(u=r.peek();u;u=r.peek())if(u==="\\")if(/^[^\r\n\f]$/.test(r.peek(2)))i+=this.readEscape(r.read(),!0);else break;else if(O(u))i+=r.read();else break;return i},readEscape:function(_,r){var i=this._reader,u=_||"",p=0,x=i.peek();if(w(x))do u+=i.read(),x=i.peek();while(x&&w(x)&&++p<6);if(u.length===1)if(/^[^\r\n\f0-9a-f]$/.test(x)){if(i.read(),r)return x}else throw new Error("Bad escape sequence.");else x==="\r"?(i.read(),i.peek()===`
`&&(x+=i.read())):/^[ \t\n\f]$/.test(x)?i.read():x="";if(r){var R=parseInt(u.slice(_.length),16);return String.fromCodePoint?String.fromCodePoint(R):String.fromCharCode(R)}return u+x},readComment:function(_){var r=this._reader,i=_||"",u=r.read();if(u==="*"){for(;u;){if(i+=u,i.length>2&&u==="*"&&r.peek()==="/"){i+=r.read();break}u=r.read()}return i}else return""}})},{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(n,f,h){"use strict";var s=f.exports=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"SUPPORTS_SYM",text:"@supports"},{name:"VIEWPORT_SYM",text:["@viewport","@-ms-viewport","@-o-viewport"]},{name:"DOCUMENT_SYM",text:["@document","@-moz-document"]},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];(function(){var a=[],o=Object.create(null);s.UNKNOWN=-1,s.unshift({name:"EOF"});for(var t=0,l=s.length;t<l;t++)if(a.push(s[t].name),s[s[t].name]=t,s[t].text)if(s[t].text instanceof Array)for(var d=0;d<s[t].text.length;d++)o[s[t].text[d]]=t;else o[s[t].text]=t;s.name=function(g){return a[g]},s.type=function(g){return o[g]||-1}})()},{}],19:[function(n,f,h){"use strict";var s=n("./Matcher"),a=n("./Properties"),o=n("./ValidationTypes"),t=n("./ValidationError"),l=n("./PropertyValueIterator"),d=f.exports={validate:function(g,w){var S=g.toString().toLowerCase(),E=new l(w),T=a[S],A;if(T){if(typeof T!="number"){if(o.isAny(E,"inherit | initial | unset")){if(E.hasNext())throw A=E.next(),new t("Expected end of value but found '"+A+"'.",A.line,A.col);return}this.singleProperty(T,E)}}else if(S.indexOf("-")!==0)throw new t("Unknown property '"+g+"'.",g.line,g.col)},singleProperty:function(g,w){var S=!1,E=w.value,T;if(S=s.parse(g).match(w),S){if(w.hasNext())throw T=w.next(),new t("Expected end of value but found '"+T+"'.",T.line,T.col)}else throw w.hasNext()&&!w.isFirst()?(T=w.peek(),new t("Expected end of value but found '"+T+"'.",T.line,T.col)):new t("Expected ("+o.describe(g)+") but found '"+E+"'.",E.line,E.col)}}},{"./Matcher":3,"./Properties":7,"./PropertyValueIterator":10,"./Vali
`),this._line=1,this._col=1,this._cursor=0}s.prototype={constructor:s,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor===this._input.length},peek:function(a){var o=null;return a=typeof a=="undefined"?1:a,this._cursor<this._input.length&&(o=this._input.charAt(this._cursor+a-1)),o},read:function(){var a=null;return this._cursor<this._input.length&&(this._input.charAt(this._cursor)===`
`?(this._line++,this._col=1):this._col++,a=this._input.charAt(this._cursor++)),a},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},peekCount:function(a){return a=typeof a=="undefined"?1:Math.max(a,0),this._input.substring(this._cursor,this._cursor+a)},readTo:function(a){for(var o="",t;o.length<a.length||o.lastIndexOf(a)!==o.length-a.length;)if(t=this.read(),t)o+=t;else throw new Error('Expected "'+a+'" at line '+this._line+", col "+this._col+".");return o},readWhile:function(a){for(var o="",t=this.peek();t!==null&&a(t);)o+=this.read(),t=this.peek();return o},readMatch:function(a){var o=this._input.substring(this._cursor),t=null;return typeof a=="string"?o.slice(0,a.length)===a&&(t=this.readCount(a.length)):a instanceof RegExp&&a.test(o)&&(t=this.readCount(RegExp.lastMatch.length)),t},readCount:function(a){for(var o="";a--;)o+=this.read();return o}}},{}],25:[function(n,f,h){"use strict";f.exports=s;function s(a,o,t){Error.call(this),this.name=this.constructor.name,this.col=t,this.line=o,this.message=a}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s},{}],26:[function(n,f,h){"use strict";f.exports=s;function s(a,o,t,l){this.col=t,this.line=o,this.text=a,this.type=l}s.fromToken=function(a){return new s(a.value,a.startLine,a.startCol)},s.prototype={constructor:s,valueOf:function(){return this.toString()},toString:function(){return this.text}}},{}],27:[function(n,f,h){"use strict";f.exports=o;var s=n("./StringReader"),a=n("./SyntaxError");function o(t,l){this._reader=new s(t?t.toString():""),this._token=null,this._tokenData=l,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}o.createTokenData=function(t){var l=[],d=Object.create(null),g=t.concat([]),w=0,S=g.length+1;for(g.UNKNOWN=-1,g.unshift({name:"EOF"});w<S;w++)l.push(g[w].name),g[g[w].name]=w,g[w].text&&(d[g[w].text]=w);return g.name=function(E){return l[E]},g.type=function(E){return d[E]},g},o.prototype={constructor:o,match:function(t,l){t instanceof Array||(t=[t]);for(var d=this.get(l),g=0,w=t.length;g<w;)if(d===t[g++])return!0;return this.unget(),!1},mustMatch:function(t){var l;if(t instanceof Array||(t=[t]),!this.match.apply(this,arguments))throw l=this.LT(1),new a("Expected "+this._tokenData[t[0]].name+" at line "+l.startLine+", col "+l.startCol+".",l.startLine,l.startCol)},advance:function(t,l){for(;this.LA(0)!==0&&!this.match(t,l);)this.get();return this.LA(0)},get:function(t){var l=this._tokenData,d=0,g,w;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(d++,this._token=this._lt[this._ltIndex++],w=l[this._token.type];typeof w.channel!="undefined"&&t!==w.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],w=l[this._token.type],d++;if((typeof w.channel=="undefined"||t===w.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(d),this._token.type}return g=this._getToken(),g.type>-1&&!l[g.type].hide&&(g.channel=l[g.type].channel,this._token=g,this._lt.push(g),this._ltIndexCache.push(this._lt.length-this._ltIndex+d),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),w=l[g.type],w&&(w.hide||typeof w.channel!="undefined"&&t!==w.channel)?this.get(t):g.type},LA:function(t){var l=t,d;if(t>0){if(t>5)throw new Error("Too much lookahead.");for(;l;)d=this.get(),l--;for(;l<t;)this.unget(),l++}else if(t<0)if(this._lt[this._ltIndex+t])d=this._lt[this._ltIndex+t].type;else throw new Error("Too much lookbehind.");else d=this._token.type;return d},LT:function(t){return this.LA(t),this._lt[this._ltIndex+t-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(t){return t<0||t>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[t].name},tokenType:function(t){return this._tokenData[t]||-1},unget:function(){if(this._ltIndexCache.length)this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltI
`:s+=n+": line "+o.line+", col "+o.col+", "+a(o.type)+" - "+o.message+" ("+o.rule.id+`)
`}),s)}}),y.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><csslint>'},endFormat:function(){"use strict";return"</csslint>"},formatResults:function(e,n){"use strict";var f=e.messages,h=[],s=function(a){return!a||a.constructor!==String?"":a.replace(/"/g,"'").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};return f.length>0&&(h.push('<file name="'+n+'">'),y.Util.forEach(f,function(a){a.rollup?h.push('<issue severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>'):h.push('<issue line="'+a.line+'" char="'+a.col+'" severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>')}),h.push("</file>")),h.join("")}}),y.addFormatter({id:"json",name:"JSON",startFormat:function(){"use strict";return this.json=[],""},endFormat:function(){"use strict";var e="";return this.json.length>0&&(this.json.length===1?e=JSON.stringify(this.json[0]):e=JSON.stringify(this.json)),e},formatResults:function(e,n,f){"use strict";return(e.messages.length>0||!f.quiet)&&this.json.push({filename:n,messages:e.messages,stats:e.stats}),""}}),y.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><testsuites>'},endFormat:function(){"use strict";return"</testsuites>"},formatResults:function(e,n){"use strict";var f=e.messages,h=[],s={error:0,failure:0},a=function(t){return!t||!("name"in t)?"":"net.csslint."+t.name.replace(/\s/g,"")},o=function(t){return!t||t.constructor!==String?"":t.replace(/"/g,"'").replace(/</g,"&lt;").replace(/>/g,"&gt;")};return f.length>0&&(f.forEach(function(t){var l=t.type==="warning"?"error":t.type;t.rollup||(h.push('<testcase time="0" name="'+a(t.rule)+'">'),h.push("<"+l+' message="'+o(t.message)+'"><![CDATA['+t.line+":"+t.col+":"+o(t.evidence)+"]]></"+l+">"),h.push("</testcase>"),s[l]+=1)}),h.unshift('<testsuite time="0" tests="'+f.length+'" skipped="0" errors="'+s.error+'" failures="'+s.failure+'" package="net.csslint" name="'+n+'">'),h.push("</testsuite>")),h.join("")}}),y.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><lint>'},endFormat:function(){"use strict";return"</lint>"},formatResults:function(e,n){"use strict";var f=e.messages,h=[],s=function(a){return!a||a.constructor!==String?"":a.replace(/"/g,"'").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};return f.length>0&&(h.push('<file name="'+n+'">'),y.Util.forEach(f,function(a){if(a.rollup)h.push('<issue severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>');else{var o="";a.rule&&a.rule.id&&(o='rule="'+s(a.rule.id)+'" '),h.push("<issue "+o+'line="'+a.line+'" char="'+a.col+'" severity="'+a.type+'" reason="'+s(a.message)+'" evidence="'+s(a.evidence)+'"/>')}}),h.push("</file>")),h.join("")}}),y.addFormatter({id:"text",name:"Plain Text",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,n,f){"use strict";var h=e.messages,s="";if(f=f||{},h.length===0)return f.quiet?"":`
csslint: No errors in `+n+".";s=`
csslint: There `,h.length===1?s+="is 1 problem":s+="are "+h.length+" problems",s+=" in "+n+".";var a=n.lastIndexOf("/"),o=n;return a===-1&&(a=n.lastIndexOf("\\")),a>-1&&(o=n.substring(a+1)),y.Util.forEach(h,function(t,l){s=s+`
`+o,t.rollup?(s+=`
`+(l+1)+": "+t.type,s+=`
`+t.message):(s+=`
`+(l+1)+": "+t.type+" at line "+t.line+", col "+t.col,s+=`
`+t.message,s+=`
`+t.evidence)}),s}}),y}();Y.exports.CSSLint=N}),ace.define("ace/mode/css_worker",[],function(L,D,Y){"use strict";var N=L("../lib/oop"),P=L("../lib/lang"),v=L("../worker/mirror").Mirror,m=L("./css/csslint").CSSLint,b=D.Worker=function(y){v.call(this,y),this.setTimeout(400),this.ruleset=null,this.setDisabledRules("ids|order-alphabetical"),this.setInfoRules("adjoining-classes|zero-units|gradients|box-model|import|outline-none|vendor-prefix")};N.inherits(b,v),function(){this.setInfoRules=function(y){typeof y=="string"&&(y=y.split("|")),this.infoRules=P.arrayToMap(y),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.setDisabledRules=function(y){if(!y)this.ruleset=null;else{typeof y=="string"&&(y=y.split("|"));var k={};m.getRules().forEach(function(e){k[e.id]=!0}),y.forEach(function(e){delete k[e]}),this.ruleset=k}this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var y=this.doc.getValue();if(!y)return this.sender.emit("annotate",[]);var k=this.infoRules,e=m.verify(y,this.ruleset);this.sender.emit("annotate",e.messages.map(function(n){return{row:n.line-1,column:n.col-1,text:n.message,type:k[n.rule.id]?"info":n.type,rule:n.rule.name}}))}}.call(b.prototype)})}}]);