/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/**
 * @license RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
 RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2010, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
*/
(function(){var x=this;if(!x.define)x.define=function(z){x.orion=x.orion||{};x.orion.PluginProvider=z();x.eclipse=x.orion;delete x.define}})();
define("orion/plugin",[],function(){return function(x){function z(b){p&&(typeof ArrayBuffer==="undefined"&&(b=JSON.stringify(b)),p===self?p.postMessage(b):p.postMessage(b,"*"))}function E(b,c){return c&&c instanceof XMLHttpRequest?{status:c.status,statusText:c.statusText}:c}function A(b){var c=b?JSON.parse(JSON.stringify(b,E)):b;if(b instanceof Error)c.__isError=!0,c.message=c.message||b.message,c.name=c.name||b.name;return c}function u(b){return function(c){t&&z({serviceId:b,method:"dispatchEvent",
params:[c]})}}function c(b){if(b.source===p){var c=typeof b.data!=="string"?b.data:JSON.parse(b.data);if(typeof c.cancel==="string"){var h=j[c.id];h&&(delete j[c.id],h.cancel&&h.cancel(c.cancel))}else{var b=c.serviceId,r=c.method,t=c.params,T=l[b],y=T.implementation,x=y[r];r==="addEventListener"?(r=t[0],T.listeners[r]=T.listeners[r]||u(b),t=[r,T.listeners[r]]):r==="removeEventListener"&&(r=t[0],t=[r,T.listeners[r]],delete T.listeners[r]);var F={id:c.id,result:null,error:null};try{(h=x.apply(y,t))&&
typeof h.then==="function"?(j[c.id]=h,h.then(function(b){delete j[c.id];F.result=b;z(F)},function(b){if(j[c.id])delete j[c.id],F.error=A(b),z(F)},function(){z({requestId:c.id,method:"progress",params:Array.prototype.slice.call(arguments)})})):(F.result=h,z(F))}catch(E){F.error=A(E),z(F)}}}}var h=x,l=[],t=!1,j={},p=null;this.updateHeaders=function(b){if(t)throw Error("Cannot update headers. Plugin Provider is connected");h=b};this.registerServiceProvider=this.registerService=function(b,c,h){if(t)throw Error("Cannot register service. Plugin Provider is connected");
typeof b==="string"?b=[b]:Array.isArray(b)||(b=[]);var j=null,p=[];for(j in c)typeof c[j]==="function"&&p.push(j);l[l.length]={names:b,methods:p,implementation:c,properties:h||{},listeners:{}}};this.connect=function(b,q){if(!t){if(typeof window==="undefined")p=self;else if(window!==window.parent)p=window.parent;else if(window.opener!==null)p=window.opener;else{q&&q("No valid plugin target");return}addEventListener("message",c,!1);for(var j=[],r=0;r<l.length;r++)j.push({serviceId:r,names:l[r].names,
methods:l[r].methods,properties:l[r].properties});z({method:"plugin",params:[{headers:h||{},services:j}]});t=!0}b&&b()};this.disconnect=function(){t&&(removeEventListener("message",c),p=null,t=!1)}}});if(!this.JSON)this.JSON={};
(function(){function x(c){return c<10?"0"+c:c}function z(c){u.lastIndex=0;return u.test(c)?'"'+c.replace(u,function(c){var b=l[c];return typeof b==="string"?b:"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+c+'"'}function E(l,p){var b,q,w,r,B=c,u,y=p[l];y&&typeof y==="object"&&typeof y.toJSON==="function"&&(y=y.toJSON(l));typeof t==="function"&&(y=t.call(p,l,y));switch(typeof y){case "string":return z(y);case "number":return isFinite(y)?String(y):"null";case "boolean":case "null":return String(y);
case "object":if(!y)return"null";c+=h;u=[];if(Object.prototype.toString.apply(y)==="[object Array]"){r=y.length;for(b=0;b<r;b+=1)u[b]=E(b,y)||"null";w=u.length===0?"[]":c?"[\n"+c+u.join(",\n"+c)+"\n"+B+"]":"["+u.join(",")+"]";c=B;return w}if(t&&typeof t==="object"){r=t.length;for(b=0;b<r;b+=1)q=t[b],typeof q==="string"&&(w=E(q,y))&&u.push(z(q)+(c?": ":":")+w)}else for(q in y)Object.hasOwnProperty.call(y,q)&&(w=E(q,y))&&u.push(z(q)+(c?": ":":")+w);w=u.length===0?"{}":c?"{\n"+c+u.join(",\n"+c)+"\n"+
B+"}":"{"+u.join(",")+"}";c=B;return w}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+x(this.getUTCMonth()+1)+"-"+x(this.getUTCDate())+"T"+x(this.getUTCHours())+":"+x(this.getUTCMinutes())+":"+x(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var A=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,h,l={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;if(typeof JSON.stringify!=="function")JSON.stringify=function(l,p,b){var q;h=c="";if(typeof b==="number")for(q=0;q<b;q+=1)h+=" ";else typeof b==="string"&&(h=b);if((t=p)&&typeof p!=="function"&&(typeof p!=="object"||typeof p.length!=="number"))throw Error("JSON.stringify");return E("",
{"":l})};if(typeof JSON.parse!=="function")JSON.parse=function(c,l){function b(c,h){var q,t,j=c[h];if(j&&typeof j==="object")for(q in j)Object.hasOwnProperty.call(j,q)&&(t=b(j,q),t!==void 0?j[q]=t:delete j[q]);return l.call(c,h,j)}var h,c=String(c);A.lastIndex=0;A.test(c)&&(c=c.replace(A,function(c){return"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return h=eval("("+c+")"),typeof l==="function"?b({"":h},""):h;throw new SyntaxError("JSON.parse");}})();
var JSLINT=function(){function x(){}function z(a,f){return Object.prototype.hasOwnProperty.call(a,f)}function E(a,f){for(var d in f)z(f,d)&&(a[d]=f[d])}function A(){i.safe||(i.rhino&&E(G,ob),i.devel&&E(G,pb),i.browser&&E(G,qb),i.windows&&E(G,rb),i.widget&&E(G,sb))}function u(a,f,d){throw{name:"JSLintError",line:f,character:d,message:a+" ("+Math.floor(f/na.length*100)+"% scanned)."};}function c(e,f,d,c,b,m){var l,f=f||a;f.id==="(end)"&&(f=g);l=f.line||0;f=f.from||0;d={id:"(error)",raw:e,evidence:na[l-
1]||"",line:l,character:f,a:d,b:c,c:b,d:m};d.reason=e.supplant(d);JSLINT.errors.push(d);i.passfail&&u("Stopping. ",l,f);Ia+=1;Ia>=i.maxerr&&u("Too many errors.",l,f);return d}function h(a,f,d,b,g,m,i){return c(a,{line:f,from:d},b,g,m,i)}function l(a,f,d,b,g,m){a=c(a,f,d,b,g,m);u("Stopping, unable to continue.",a.line,a.character)}function t(a,f,d,b,c,g,i){return l(a,{line:f,from:d},b,c,g,i)}function j(e,f){i.safe&&k["(global)"]&&typeof G[e]!=="boolean"?c("ADsafe global: "+e+".",g):e==="hasOwnProperty"&&
c("'hasOwnProperty' is a really bad name.");z(k,e)&&!k["(global)"]&&c(k[e]===!0?"'{a}' was used before it was defined.":"'{a}' is already defined.",a,e);k[e]=f;k["(global)"]?(eb[e]=k,z(aa,e)&&(c("'{a}' was used before it was defined.",a,e),delete aa[e])):H[e]=k}function p(a){for(var a=a||0,f=0,d;f<=a;)(d=wa[f])||(d=wa[f]=U.token()),f+=1;return d}function b(e,f){switch(g.id){case "(number)":a.id==="."&&c("A dot following a number can be confused with a decimal point.",g);break;case "-":(a.id==="-"||
a.id==="--")&&c("Confusing minusses.");break;case "+":(a.id==="+"||a.id==="++")&&c("Confusing plusses.")}if(g.type==="(string)"||g.identifier)Ja=g.value;e&&a.id!==e&&(f?a.id==="(end)"?c("Unmatched '{a}'.",f,f.id):c("Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.",a,e,f.id,f.line,a.value):(a.type!=="(identifier)"||a.value!==e)&&c("Expected '{a}' and instead saw '{b}'.",a,e,a.value));M=g;for(g=a;;){a=wa.shift()||U.token();if(a.id==="(end)"||a.id==="(error)")break;if(a.type==="special"){var d=
void 0,b=void 0,n=void 0,m=a.value,h=d=void 0;switch(m){case "*/":l("Unbegun comment.");break;case "/*members":case "/*member":m="/*members";da||(da={});b=da;break;case "/*jslint":i.safe&&c("ADsafe restriction.");b=i;n=tb;break;case "/*global":i.safe&&c("ADsafe restriction."),b=G}d=U.token();a:for(;;){for(;;){if(d.type==="special"&&d.value==="*/")break a;if(d.id!=="(endline)"&&d.id!==",")break;d=U.token()}d.type!=="(string)"&&d.type!=="(identifier)"&&m!=="/*members"&&l("Bad option.",d);h=U.token();
h.id===":"?(h=U.token(),b===da&&l("Expected '{a}' and instead saw '{b}'.",d,"*/",":"),d.value==="indent"&&m==="/*jslint"?(d=+h.value,(typeof d!=="number"||!isFinite(d)||d<=0||Math.floor(d)!==d)&&l("Expected a small integer and instead saw '{a}'.",h,h.value),b.white=!0,b.indent=d):d.value==="maxerr"&&m==="/*jslint"?(d=+h.value,(typeof d!=="number"||!isFinite(d)||d<=0||Math.floor(d)!==d)&&l("Expected a small integer and instead saw '{a}'.",h,h.value),b.maxerr=d):d.value==="maxlen"&&m==="/*jslint"?(d=
+h.value,(typeof d!=="number"||!isFinite(d)||d<=0||Math.floor(d)!==d)&&l("Expected a small integer and instead saw '{a}'.",h,h.value),b.maxlen=d):h.value==="true"?b[d.value]=!0:h.value==="false"?b[d.value]=!1:l("Bad option value.",h),d=U.token()):(m==="/*jslint"&&l("Missing option value.",d),b[d.value]=!1,d=h)}n&&A()}else if(a.id!=="(endline)")break}}function q(e,f){var d;a.id==="(end)"&&l("Unexpected early end of program.",g);b();i.safe&&typeof G[g.value]==="boolean"&&a.id!=="("&&a.id!=="."&&c("ADsafe violation.",
g);if(f)Ja="anonymous",k["(verb)"]=g.value;if(f===!0&&g.fud)d=g.fud();else{if(g.nud)d=g.nud();else if(a.type==="(number)"&&g.id===".")return c("A leading decimal point can be confused with a dot: '.{a}'.",g,a.value),b(),g;else l("Expected an identifier and instead saw '{a}'.",g,g.id);for(;e<a.lbp;)b(),g.led?d=g.led(d):l("Expected an operator and instead saw '{a}'.",g,g.id)}return d}function w(e,f){e=e||g;f=f||a;(i.white||v==="styleproperty"||v==="style")&&e.character!==f.from&&e.line===f.line&&c("Unexpected space after '{a}'.",
f,e.value)}function r(e,f){e=e||g;f=f||a;i.white&&!e.comment&&e.line===f.line&&w(e,f)}function B(e,f){i.white&&(e=e||g,f=f||a,e.line===f.line&&e.character===f.from&&c("Missing space after '{a}'.",a,e.value))}function T(e,f){e=e||g;f=f||a;!i.laxbreak&&e.line!==f.line?c("Bad line breaking before '{a}'.",f,f.id):i.white&&(e=e||g,f=f||a,e.character===f.from&&c("Missing space after '{a}'.",a,e.value))}function y(e){i.white&&a.id!=="(end)"&&(e=J+(e||0),a.from!==e&&c("Expected '{a}' to have an indentation at {b} instead at {c}.",
a,a.value,e,a.from))}function Z(e){e=e||g;e.line!==a.line&&c("Line breaking error '{a}'.",e,e.value)}function F(){g.line!==a.line?i.laxbreak||c("Bad line breaking before '{a}'.",g,a.id):g.character!==a.from&&i.white&&c("Unexpected space after '{a}'.",a,g.value);b(",");B(g,a)}function $(a,f){var d=O[a];if(!d||typeof d!=="object")O[a]=d={id:a,lbp:f,value:a};return d}function I(a){return $(a,0)}function ba(a,f){var d=I(a);d.identifier=d.reserved=!0;d.fud=f;return d}function ga(a,f){var d=ba(a,f);d.block=
!0;return d}function Ka(a){var f=a.id.charAt(0);if(f>="a"&&f<="z"||f>="A"&&f<="Z")a.identifier=a.reserved=!0;return a}function R(a,f){var d=$(a,150);Ka(d);d.nud=typeof f==="function"?f:function(){this.right=q(150);this.arity="unary";if(this.id==="++"||this.id==="--")i.plusplus?c("Unexpected use of '{a}'.",this,this.id):(!this.right.identifier||this.right.reserved)&&this.right.id!=="."&&this.right.id!=="["&&c("Bad operand.",this);return this};return d}function xa(a,f){var d=I(a);d.type=a;d.nud=f;return d}
function D(a,f){var d=xa(a,f);d.identifier=d.reserved=!0;return d}function V(a){return D(a,function(){if(this.id==="this"||this.id==="arguments"||this.id==="eval")La&&k["(global)"]?c("Strict violation.",this):i.safe&&c("ADsafe violation.",this);return this})}function N(e,f,d,b){e=$(e,d);Ka(e);e.led=function(e){b||(T(M,g),B(g,a));return typeof f==="function"?f(e,this):(this.left=e,this.right=q(d),this)};return e}function ca(e,f){var d=$(e,100);d.led=function(e){T(M,g);B(g,a);var d=q(100);e&&e.id===
"NaN"||d&&d.id==="NaN"?c("Use the isNaN function to compare with NaN.",this):f&&f.apply(this,[e,d]);e.id==="!"&&c("Confusing use of '{a}'.",e,"!");d.id==="!"&&c("Confusing use of '{a}'.",e,"!");this.left=e;this.right=d;return this};return d}function ya(a){return a&&(a.type==="(number)"&&+a.value===0||a.type==="(string)"&&a.value===" "||a.type==="true"||a.type==="false"||a.type==="undefined"||a.type==="null")}function ha(a){$(a,20).exps=!0;return N(a,function(a,e){var b;e.left=a;G[a.value]===!1&&H[a.value]["(global)"]===
!0&&c("Read only.",a);if(i.safe){b=a;do typeof G[b.value]==="boolean"&&c("ADsafe violation.",b),b=b.left;while(b)}if(a){if(a.id==="."||a.id==="[")return(!a.left||a.left.value==="arguments")&&c("Bad assignment.",e),e.right=q(19),e;else if(a.identifier&&!a.reserved)return k[a.value]==="exception"&&c("Do not assign to the exception parameter.",a),e.right=q(19),e;a===O["function"]&&c("Expected an identifier in an assignment and instead saw a function invocation.",g)}l("Bad assignment.",e)},20)}function ia(a,
f,d){a=$(a,d);Ka(a);a.led=typeof f==="function"?f:function(a){i.bitwise&&c("Unexpected use of '{a}'.",this,this.id);this.left=a;this.right=q(d);return this};return a}function ja(e){$(e,20).exps=!0;return N(e,function(e,d){i.bitwise&&c("Unexpected use of '{a}'.",d,d.id);B(M,g);B(g,a);if(e){if(e.id==="."||e.id==="["||e.identifier&&!e.reserved)return q(19),d;e===O["function"]&&c("Expected an identifier in an assignment, and instead saw a function invocation.",g);return d}l("Bad assignment.",d)},20)}
function fb(a){a=$(a,150);a.led=function(a){i.plusplus?c("Unexpected use of '{a}'.",this,this.id):(!a.identifier||a.reserved)&&a.id!=="."&&a.id!=="["&&c("Bad operand.",this);this.left=a;return this};return a}function Ma(){if(a.identifier)return b(),i.safe&&Na[g.value]?c("ADsafe violation: '{a}'.",g,g.value):g.reserved&&c("Expected an identifier and instead saw '{a}' (a reserved word).",g,g.id),g.value}function oa(){var e=Ma();if(e)return e;g.id==="function"&&a.id==="("?c("Missing name in function statement."):
l("Expected an identifier and instead saw '{a}'.",a,a.value)}function za(e){var b=0,d;if(!(a.id!==";"||Oa))for(;;){d=p(b);if(d.reach)break;if(d.id!=="(endline)"){if(d.id==="function"){c("Inner functions should be listed at the top of the outer function.",d);break}c("Unreachable '{a}' after '{b}'.",d,d.value,e);break}b+=1}}function Pa(e){var f=J,d=H,K=a;if(K.id===";")c("Unnecessary semicolon.",K),b(";");else{if(K.identifier&&!K.reserved&&p().id===":")b(),b(":"),H=Object.create(d),j(K.value,"label"),
a.labelled||c("Label '{a}' on {b} statement.",a,K.value,a.value),Qa.test(K.value+":")&&c("Label '{a}' looks like a javascript url.",K,K.value),a.label=K.value,K=a;e||y();e=q(0,!0);K.block||(!e||!e.exps?c("Expected an assignment or function call and instead saw an expression.",g):e.id==="("&&e.left.id==="new"&&c("Do not use 'new' for side effects."),a.id!==";"?h("Missing semicolon.",g.line,g.from+g.value.length):(w(g,a),b(";"),B(g,a)));J=f;H=d;return e}}function gb(){return a.value==="use strict"?
(b(),b(";"),La=!0):!1}function pa(e){var f=[],d;e&&!gb()&&i.strict&&c('Missing "use strict" statement.',a);if(i.adsafe)switch(e){case "script":ka||(a.value!=="ADSAFE"||p(0).id!=="."||p(1).value!=="id"&&p(1).value!=="go")&&l("ADsafe violation: Missing ADSAFE.id or ADSAFE.go.",a);a.value==="ADSAFE"&&p(0).id==="."&&p(1).value==="id"&&(ka&&l("ADsafe violation.",a),b("ADSAFE"),b("."),b("id"),b("("),a.value!==Q&&l("ADsafe violation: id does not match.",a),b("(string)"),b(")"),b(";"),ka=!0);break;case "lib":if(a.value===
"ADSAFE")return b("ADSAFE"),b("."),b("lib"),b("("),b("(string)"),F(),e=q(0),e.id!=="function"&&l("The second argument to lib must be a function.",e),(d=(d=e.funct["(params)"])&&d.join(", "))&&d!=="lib"&&l("Expected '{a}' and instead saw '{b}'.",e,"(lib)","("+d+")"),b(")"),b(";"),f;else l("ADsafe lib violation.")}for(;!a.reach&&a.id!=="(end)";)a.id===";"?(c("Unnecessary semicolon."),b(";")):f.push(Pa());return f}function S(e){var f,d=qa,K=J,n=H,m;qa=e;H=Object.create(H);B(g,a);m=a;if(a.id==="{"){b("{");
if(a.id!=="}"||g.line!==a.line){for(J+=i.indent;!e&&a.from>J;)J+=i.indent;e||gb();f=pa();J-=i.indent;y()}b("}",m);J=K}else c("Expected '{a}' and instead saw '{b}'.",a,"{",a.value),Oa=!0,f=[Pa()],Oa=!1;k["(verb)"]=null;H=n;qa=d;return f}function hb(){return this}function Aa(a){da&&typeof da[a]!=="boolean"&&c("Unexpected /*member '{a}'.",g,a);typeof ea[a]==="number"?ea[a]+=1:ea[a]=1}function Ra(a){var b=a.value,a=a.line,d=aa[b];typeof d==="function"&&(d=!1);d?d[d.length-1]!==a&&d.push(a):(d=[a],aa[b]=
d)}function Sa(){if(a.identifier)return b(),!0}function Ba(){a.id==="-"&&(b("-"),w(),Z());if(a.type==="(number)")return b("(number)"),!0}function Ta(){if(a.type==="(string)")return b(),!0}function W(){var e,f,d;if(a.identifier)if(d=a.value,d==="rgb"||d==="rgba"){b();b("(");for(e=0;e<3;e+=1)e&&b(","),f=a.value,a.type!=="(number)"||f<0?(c("Expected a positive number and instead saw '{a}'",a,f),b()):(b(),a.id==="%"?(b("%"),f>100&&c("Expected a percentage and instead saw '{a}'",g,f)):f>255&&c("Expected a small number and instead saw '{a}'",
g,f));d==="rgba"&&(b(","),f=+a.value,(a.type!=="(number)"||f<0||f>1)&&c("Expected a number between 0 and 1 and instead saw '{a}'",a,f),b(),a.id==="%"&&(c("Unexpected '%'."),b("%")));b(")");return!0}else{if(ub[a.value]===!0)return b(),!0}else if(a.type==="(color)")return b(),!0;return!1}function C(){a.id==="-"&&(b("-"),w(),Z());return a.type==="(number)"?(b(),a.type!=="(string)"&&ib[a.value]===!0?(w(),b()):+g.value!==0&&c("Expected a linear unit and instead saw '{a}'.",a,a.value),!0):!1}function la(){if(a.identifier)switch(a.value){case "thin":case "medium":case "thick":return b(),
!0}else return C()}function ra(){if(a.identifier){if(a.value==="auto")return b(),!0}else return C()}function fa(){var e,f;if(a.identifier&&a.value==="url"){a=U.range("(",")");f=a.value;e=f.charAt(0);if(e==='"'||e==="'")f.slice(-1)!==e?c("Bad url string."):(f=f.slice(1,-1),f.indexOf(e)>=0&&c("Bad url string."));f||c("Missing url.");b();i.safe&&jb.test(f)&&l("ADsafe URL violation.");sa.push(f);return!0}return!1}function Ua(e){var f=0,d,c,g,m=0;switch(typeof e){case "function":return e();case "string":return a.identifier&&
a.value===e?(b(),!0):!1}for(;;){if(f>=e.length)return!1;g=e[f];f+=1;if(g===!0)break;else typeof g==="number"?(d=g,g=e[f],f+=1):d=1;for(c=!1;d>0;)if(Ua(g))c=!0,d-=1;else break;if(c)return!0}m=f;for(d=[];;){g=!1;for(f=m;f<e.length;f+=1)if(!d[f]&&Ua(Ca[e[f]])){g=c=!0;d[f]=!0;break}if(!g)return c}}function kb(){for(var e;;){if(a.id==="}"||a.id==="(end)"||P&&a.id===P)break;for(;a.id===";";)c("Misplaced ';'."),b(";");for(e=void 0;a.id==="*"||a.id==="#"||a.value==="_";)i.css||c("Unexpected '{a}'.",a,a.value),
b();a.id==="-"?(i.css||c("Unexpected '{a}'.",a,a.value),b("-"),a.identifier||c("Expected a non-standard style attribute and instead saw '{a}'.",a,a.value),b(),e=Va):(a.identifier?z(Ca,a.value)?e=Ca[a.value]:(e=Va,i.css||c("Unrecognized style attribute '{a}'.",a,a.value)):c("Excepted a style attribute, and instead saw '{a}'.",a,a.value),b());b(":");a.identifier&&a.value==="inherit"?b():Ua(e)||(c("Unexpected token '{a}'.",a,a.value),b());a.id==="!"&&(b("!"),w(),a.identifier&&a.value==="important"?b():
c("Expected '{a}' and instead saw '{b}'.",a,"important",a.value));a.id==="}"||a.id===P?c("Missing '{a}'.",a,";"):b(";")}}function Wa(){if(a.identifier)z(Xa,a.value)||c("Expected a tagName, and instead saw {a}.",a,a.value),b();else switch(a.id){case ">":case "+":b();Wa();break;case ":":b(":");switch(a.value){case "active":case "after":case "before":case "checked":case "disabled":case "empty":case "enabled":case "first-child":case "first-letter":case "first-line":case "first-of-type":case "focus":case "hover":case "last-of-type":case "link":case "only-of-type":case "root":case "target":case "visited":b();
break;case "lang":b();b("(");a.identifier||c("Expected a lang code, and instead saw :{a}.",a,a.value);b(")");break;case "nth-child":case "nth-last-child":case "nth-last-of-type":case "nth-of-type":b();b("(");a:if(a.id==="(number)")b(),a.value==="n"&&a.identifier&&(w(),b(),a.id==="+"&&(w(),b("+"),w(),b("(number)")));else{switch(a.value){case "odd":case "even":if(a.identifier){b();break a}}c("Unexpected token '{a}'.",a,a.value)}b(")");break;case "not":b();b("(");a.id===":"&&p(0).value==="not"&&c("Nested not.");
Wa();b(")");break;default:c("Expected a pseudo, and instead saw :{a}.",a,a.value)}break;case "#":b("#");a.identifier||c("Expected an id, and instead saw #{a}.",a,a.value);b();break;case "*":b("*");break;case ".":b(".");a.identifier||c("Expected a class, and instead saw #.{a}.",a,a.value);b();break;case "[":b("[");a.identifier||c("Expected an attribute, and instead saw [{a}].",a,a.value);b();if(a.id==="="||a.value==="~="||a.value==="$="||a.value==="|="||a.id==="*="||a.id==="^=")b(),a.type!=="(string)"&&
c("Expected a string, and instead saw {a}.",a,a.value),b();b("]");break;default:l("Expected a CSS selector, and instead saw {a}.",a,a.value)}}function lb(){for(var e;a.id==="@";)if(e=p(),e.identifier&&e.value==="import")b("@"),b(),fa()||(c("Expected '{a}' and instead saw '{b}'.",a,"url",a.value),b()),b(";");else break;for(;a.id!=="</"&&a.id!=="(end)";){a:{e=void 0;if(a.id==="{")c("Expected a style pattern, and instead saw '{a}'.",a,a.id);else if(a.id==="@"){b("@");e=a.value;if(a.identifier&&vb[e]===
!0){b();break a}c("Expected an at-rule, and instead saw @{a}.",a,e)}for(;;){Wa();if(a.id==="</"||a.id==="{"||a.id==="(end)")break a;a.id===","&&F()}}v="styleproperty";a.id===";"?b(";"):(b("{"),kb(),v="style",b("}"))}}function Ya(){var e=Ma(!0);if(!e)a.id==="(string)"?(e=a.value,b()):a.id==="(number)"&&(e=a.value.toString(),b());return e}function Da(e){var c,d=H;H=Object.create(d);c=k={"(name)":e||'"'+Ja+'"',"(line)":a.line,"(context)":k,"(breakage)":0,"(loopage)":0,"(scope)":H};g.funct=k;ta.push(k);
e&&j(e,"function");var e=k,K;a:{var i,m=a,h=[];b("(");r();if(a.id===")")b(")"),r(M,g),K=void 0;else for(;;)if(i=oa(),h.push(i),j(i,"parameter"),a.id===",")F();else{b(")",m);r(M,g);K=h;break a}}e["(params)"]=K;S(!1);H=d;k["(last)"]=g.line;k=k["(context)"];return c}function Za(e){var f,d;k["(onevar)"]&&i.onevar?c("Too many var statements."):k["(global)"]||(k["(onevar)"]=!0);for(this.first=[];;){B(g,a);f=oa();k["(global)"]&&G[f]===!1&&c("Redefinition of '{a}'.",g,f);j(f,"unused");if(e)break;d=g;this.first.push(g);
if(a.id==="=")B(g,a),b("="),B(g,a),a.id==="undefined"&&c("It is not necessary to initialize '{a}' to 'undefined'.",g,f),p(0).id==="="&&a.identifier&&l("Variable {a} was not declared correctly.",a,a.value),f=q(0),d.first=f;if(a.id!==",")break;F()}return this}function $a(){function e(){var e={},f=a;b("{");if(a.id!=="}")for(;;){if(a.id==="(end)")l("Missing '}' to match '{' from line {a}.",a,f.line);else if(a.id==="}"){c("Unexpected comma.",g);break}else a.id===","?l("Unexpected comma.",a):a.id!=="(string)"&&
c("Expected a string and instead saw {a}.",a,a.value);e[a.value]===!0?c("Duplicate key '{a}'.",a,a.value):a.value==="__proto__"?c("Stupid key '{a}'.",a,a.value):e[a.value]=!0;b();b(":");$a();if(a.id!==",")break;b(",")}b("}")}function f(){var e=a;b("[");if(a.id!=="]")for(;;){if(a.id==="(end)")l("Missing ']' to match '[' from line {a}.",a,e.line);else if(a.id==="]"){c("Unexpected comma.",g);break}else a.id===","&&l("Unexpected comma.",a);$a();if(a.id!==",")break;b(",")}b("]")}switch(a.id){case "{":e();
break;case "[":f();break;case "true":case "false":case "null":case "(number)":case "(string)":b();break;case "-":b("-");g.character!==a.from&&c("Unexpected space after '-'.",g);w(g,a);b("(number)");break;default:l("Expected a JSON value.",a)}}function mb(a){var b=[],d;for(d in a)z(a,d)&&b.push(d);return b}var Q,ka,ua,Ja,Ea,vb={media:!0,"font-face":!0,page:!0},wb={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},Na={arguments:!0,callee:!0,caller:!0,
constructor:!0,eval:!0,prototype:!0,stack:!0,unwatch:!0,valueOf:!0,watch:!0},tb={adsafe:!0,bitwise:!0,browser:!0,cap:!0,css:!0,debug:!0,devel:!0,eqeqeq:!0,es5:!0,evil:!0,forin:!0,fragment:!0,immed:!0,laxbreak:!0,newcap:!0,nomen:!0,on:!0,onevar:!0,passfail:!0,plusplus:!0,regexp:!0,rhino:!0,undef:!0,safe:!0,windows:!0,strict:!0,sub:!0,white:!0,widget:!0},qb={addEventListener:!1,blur:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,defaultStatus:!1,document:!1,event:!1,focus:!1,frames:!1,getComputedStyle:!1,
history:!1,Image:!1,length:!1,location:!1,moveBy:!1,moveTo:!1,name:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,opener:!1,Option:!1,parent:!1,print:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,setInterval:!1,setTimeout:!1,status:!1,top:!1,XMLHttpRequest:!1},Ca,Va,ub={aliceblue:!0,antiquewhite:!0,aqua:!0,aquamarine:!0,azure:!0,beige:!0,bisque:!0,black:!0,blanchedalmond:!0,blue:!0,blueviolet:!0,
brown:!0,burlywood:!0,cadetblue:!0,chartreuse:!0,chocolate:!0,coral:!0,cornflowerblue:!0,cornsilk:!0,crimson:!0,cyan:!0,darkblue:!0,darkcyan:!0,darkgoldenrod:!0,darkgray:!0,darkgreen:!0,darkkhaki:!0,darkmagenta:!0,darkolivegreen:!0,darkorange:!0,darkorchid:!0,darkred:!0,darksalmon:!0,darkseagreen:!0,darkslateblue:!0,darkslategray:!0,darkturquoise:!0,darkviolet:!0,deeppink:!0,deepskyblue:!0,dimgray:!0,dodgerblue:!0,firebrick:!0,floralwhite:!0,forestgreen:!0,fuchsia:!0,gainsboro:!0,ghostwhite:!0,gold:!0,
goldenrod:!0,gray:!0,green:!0,greenyellow:!0,honeydew:!0,hotpink:!0,indianred:!0,indigo:!0,ivory:!0,khaki:!0,lavender:!0,lavenderblush:!0,lawngreen:!0,lemonchiffon:!0,lightblue:!0,lightcoral:!0,lightcyan:!0,lightgoldenrodyellow:!0,lightgreen:!0,lightpink:!0,lightsalmon:!0,lightseagreen:!0,lightskyblue:!0,lightslategray:!0,lightsteelblue:!0,lightyellow:!0,lime:!0,limegreen:!0,linen:!0,magenta:!0,maroon:!0,mediumaquamarine:!0,mediumblue:!0,mediumorchid:!0,mediumpurple:!0,mediumseagreen:!0,mediumslateblue:!0,
mediumspringgreen:!0,mediumturquoise:!0,mediumvioletred:!0,midnightblue:!0,mintcream:!0,mistyrose:!0,moccasin:!0,navajowhite:!0,navy:!0,oldlace:!0,olive:!0,olivedrab:!0,orange:!0,orangered:!0,orchid:!0,palegoldenrod:!0,palegreen:!0,paleturquoise:!0,palevioletred:!0,papayawhip:!0,peachpuff:!0,peru:!0,pink:!0,plum:!0,powderblue:!0,purple:!0,red:!0,rosybrown:!0,royalblue:!0,saddlebrown:!0,salmon:!0,sandybrown:!0,seagreen:!0,seashell:!0,sienna:!0,silver:!0,skyblue:!0,slateblue:!0,slategray:!0,snow:!0,
springgreen:!0,steelblue:!0,tan:!0,teal:!0,thistle:!0,tomato:!0,turquoise:!0,violet:!0,wheat:!0,white:!0,whitesmoke:!0,yellow:!0,yellowgreen:!0},X,ab,ib={"%":!0,cm:!0,em:!0,ex:!0,"in":!0,mm:!0,pc:!0,pt:!0,px:!0},Fa,pb={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},xb={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"/":"\\/","\\":"\\\\"},k,va="closure,exception,global,label,outer,unused,var".split(","),ta,eb,Xa={a:{},abbr:{},acronym:{},address:{},applet:{},area:{empty:!0,
parent:" map "},article:{},aside:{},audio:{},b:{},base:{empty:!0,parent:" head "},bdo:{},big:{},blockquote:{},body:{parent:" html noframes "},br:{empty:!0},button:{},canvas:{parent:" body p div th td "},caption:{parent:" table "},center:{},cite:{},code:{},col:{empty:!0,parent:" table colgroup "},colgroup:{parent:" table "},command:{parent:" menu "},datalist:{},dd:{parent:" dl "},del:{},details:{},dialog:{},dfn:{},dir:{},div:{},dl:{},dt:{parent:" dl "},em:{},embed:{},fieldset:{},figure:{},font:{},
footer:{},form:{},frame:{empty:!0,parent:" frameset "},frameset:{parent:" html frameset "},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{parent:" html "},header:{},hgroup:{},html:{parent:"*"},hr:{empty:!0},i:{},iframe:{},img:{empty:!0},input:{empty:!0},ins:{},kbd:{},keygen:{},label:{},legend:{parent:" details fieldset figure "},li:{parent:" dir menu ol ul "},link:{empty:!0,parent:" head "},map:{},mark:{},menu:{},meta:{empty:!0,parent:" head noframes noscript "},meter:{},nav:{},noframes:{parent:" html body "},
noscript:{parent:" body head noframes "},object:{},ol:{},optgroup:{parent:" select "},option:{parent:" optgroup select "},output:{},p:{},param:{empty:!0,parent:" applet object "},pre:{},progress:{},q:{},rp:{},rt:{},ruby:{},samp:{},script:{empty:!0,parent:" body div frame head iframe p pre span "},section:{},select:{},small:{},span:{},source:{},strong:{},style:{parent:" head ",empty:!0},sub:{},sup:{},table:{},tbody:{parent:" table "},td:{parent:" tr "},textarea:{},tfoot:{parent:" table "},th:{parent:" tr "},
thead:{parent:" table "},time:{},title:{parent:" head "},tr:{parent:" table tbody thead tfoot "},tt:{},u:{},ul:{},"var":{},video:{}},Ga,aa,qa,J,ma,na,wa,ea,da,a,Oa,i,G,bb,M,ob={defineClass:!1,deserialize:!1,gc:!1,help:!1,load:!1,loadClass:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},H,rb={ActiveXObject:!1,CScript:!1,Debug:!1,Enumerator:!1,System:!1,VBArray:!1,WScript:!1},Ha,L,yb={Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,
encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},zb={E:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,PI:!0,SQRT1_2:!0,SQRT2:!0,MAX_VALUE:!0,MIN_VALUE:!0,NEGATIVE_INFINITY:!0,POSITIVE_INFINITY:!0},La,O={},cb,g,sa,Ia,sb={alert:!0,animator:!0,appleScript:!0,beep:!0,bytesToUIString:!0,Canvas:!0,
chooseColor:!0,chooseFile:!0,chooseFolder:!0,closeWidget:!0,COM:!0,convertPathToHFS:!0,convertPathToPlatform:!0,CustomAnimation:!0,escape:!0,FadeAnimation:!0,filesystem:!0,Flash:!0,focusWidget:!0,form:!0,FormField:!0,Frame:!0,HotKey:!0,Image:!0,include:!0,isApplicationRunning:!0,iTunes:!0,konfabulatorVersion:!0,log:!0,md5:!0,MenuItem:!0,MoveAnimation:!0,openURL:!0,play:!0,Point:!0,popupMenu:!0,preferenceGroups:!0,preferences:!0,print:!0,prompt:!0,random:!0,Rectangle:!0,reloadWidget:!0,ResizeAnimation:!0,
resolvePath:!0,resumeUpdates:!0,RotateAnimation:!0,runCommand:!0,runCommandInBg:!0,saveAs:!0,savePreferences:!0,screen:!0,ScrollBar:!0,showWidgetPreferences:!0,sleep:!0,speak:!0,Style:!0,suppressUpdates:!0,system:!0,tellWidget:!0,Text:!0,TextArea:!0,Timer:!0,unescape:!0,updateNow:!0,URL:!0,Web:!0,widget:!0,Window:!0,XMLDOM:!0,XMLHttpRequest:!0,yahooCheckLogin:!0,yahooLogin:!0,yahooLogout:!0},v,P,db=/@cc|<\/?|script|\]*s\]|<\s*!|&lt/i,Ab=/[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,
Bb=/^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jslint|members?|global)?|=|\/)?|\*[\/=]?|\+[+=]?|-[\-=]?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/;X=/^\s*(['"=>\/&#]|<(?:\/|\!(?:--)?)?|[a-zA-Z][a-zA-Z0-9_\-]*|[0-9]+|--)/;var Cb=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,Db=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
Eb=/[>&]|<[\/!]?|--/,Fb=/\*\/|\/\*/,nb=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,Qa=/^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i,jb=/&|\+|\u00AD|\.\.|\/\*|%[^;]|base64|url|expression|data|mailto/i,Gb=/[^a-zA-Z0-9+\-_\/ ]/,Hb=/[\[\]\/\\"'*<>.&:(){}+=#]/,Ib={outer:X,html:X,style:/^\s*([{:#%.=,>+\[\]@()"';]|\*=?|\$=|\|=|\^=|~=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,styleproperty:/^\s*([@#!"'};:\-%.=,+\[\]()*_]|[a-zA-Z][a-zA-Z0-9._\-]*|\/\*?|\d+(?:\.\d+)?|<\/)/};if(typeof Object.create!==
"function")Object.create=function(a){x.prototype=a;return new x};String.prototype.entityify=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};String.prototype.isAlpha=function(){return this>="a"&&this<="z\uffff"||this>="A"&&this<="Z\uffff"};String.prototype.isDigit=function(){return this>="0"&&this<="9"};String.prototype.supplant=function(a){return this.replace(/\{([^{}]*)\}/g,function(b,d){var c=a[d];return typeof c==="string"||typeof c==="number"?c:b})};String.prototype.name=
function(){return nb.test(this)?this:Cb.test(this)?'"'+this.replace(Db,function(a){var b=xb[a];return b?b:"\\u"+("0000"+a.charCodeAt().toString(16)).slice(-4)})+'"':'"'+this+'"'};var U=function(){function a(){var b;if(n>=na.length)return!1;d=1;m=na[n];n+=1;b=m.search(/ \t/);b>=0&&h("Mixed spaces and tabs.",n,b+1);m=m.replace(/\t/g,cb);b=m.search(Ab);b>=0&&h("Unsafe character.",n,b);i.maxlen&&i.maxlen<m.length&&h("Line too long.",n,m.length);return!0}function b(a,e){var f,g;g=a==="(color)"?{type:a}:
a==="(punctuator)"||a==="(identifier)"&&z(O,e)?O[e]||O["(error)"]:O[a];g=Object.create(g);(a==="(string)"||a==="(range)")&&Qa.test(e)&&h("Script URL.",n,c);if(a==="(identifier)")g.identifier=!0,e==="__iterator__"||e==="__proto__"?t("Reserved name '{a}'.",n,c,e):i.nomen&&(e.charAt(0)==="_"||e.charAt(e.length-1)==="_")&&h("Unexpected {a} in '{b}'.",n,c,"dangling '_'",e);g.value=e;g.line=n;g.character=d;g.from=c;f=g.id;f!=="(endline)"&&(bb=f&&("(,=:[!&|?{};".indexOf(f.charAt(f.length-1))>=0||f==="return"));
return g}var d,c,n,m;return{init:function(b){na=typeof b==="string"?b.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n"):b;n=0;a();c=1},range:function(a,e){var g,i="";c=d;for(m.charAt(0)!==a&&t("Expected '{a}' and instead saw '{b}'.",n,d,a,m.charAt(0));;){m=m.slice(1);d+=1;g=m.charAt(0);switch(g){case "":t("Missing '{a}'.",n,d,g);break;case e:return m=m.slice(1),d+=1,b("(range)",i);case P:case "\\":h("Unexpected '{a}'.",n,d,g)}i+=g}},token:function(){function l(a){if(a=a.exec(m))return s=a[0].length,
a=a[1],o=a.charAt(0),m=m.substr(s),c=d+s-a.length,d+=s,a}function q(g){function l(a){var b=parseInt(m.substr(k+1,a),16);k+=a;b>=32&&b<=126&&b!==34&&b!==92&&b!==39&&h("Unnecessary escapement.",n,d);d+=a;j=String.fromCharCode(b)}var j,k,o="";ma&&g!=='"'&&h("Strings must use doublequote.",n,d);if(P===g||v==="scriptstring"&&!P)return b("(punctuator)",g);for(k=0;;){for(;k>=m.length;)k=0,(v!=="html"||!a())&&t("Unclosed string.",n,c);j=m.charAt(k);if(j===g)return d+=1,m=m.substr(k+1),b("(string)",o,g);if(j<
" "){if(j==="\n"||j==="\r")break;h("Control character in string: {a}.",n,d+k,m.slice(0,k))}else if(j===P)h("Bad HTML string",n,d+k);else if(j==="<")i.safe&&v==="html"?h("ADsafe string violation.",n,d+k):m.charAt(k+1)==="/"&&(v||i.safe)?h("Expected '<\\/' and instead saw '</'.",n,d):m.charAt(k+1)==="!"&&(v||i.safe)&&h("Unexpected '<!' in a string.",n,d);else if(j==="\\")if(v==="html")i.safe&&h("ADsafe string violation.",n,d+k);else if(v==="styleproperty")k+=1,d+=1,j=m.charAt(k),j!==g&&h("Escapement in style string.",
n,d+k);else switch(k+=1,d+=1,j=m.charAt(k),j){case P:h("Bad HTML string",n,d+k);break;case "\\":case "'":case '"':case "/":break;case "b":j="\u0008";break;case "f":j="\u000c";break;case "n":j="\n";break;case "r":j="\r";break;case "t":j="\t";break;case "u":l(4);break;case "v":j="\u000b";break;case "x":ma&&h("Avoid \\x-.",n,d);l(2);break;default:h("Bad escapement.",n,d)}o+=j;d+=1;k+=1}}for(var p,o,j,k,s,r;;){if(!m)return b(a()?"(endline)":"(end)","");for(;v==="outer";)if(k=m.search(Eb),k===0)break;
else if(k>0){d+=1;m=m.slice(k);break}else if(!a())return b("(end)","");if(j=l(Ib[v]||Bb)){if(o.isAlpha()||o==="_"||o==="$")return b("(identifier)",j);if(o.isDigit())return v!=="style"&&!isFinite(Number(j))&&h("Bad number '{a}'.",n,d,j),v!=="style"&&v!=="styleproperty"&&m.substr(0,1).isAlpha()&&h("Missing space after '{a}'.",n,d,j),o==="0"&&(k=j.substr(1,1),k.isDigit()?g.id!=="."&&v!=="styleproperty"&&h("Don't use extra leading zeros '{a}'.",n,d,j):ma&&(k==="x"||k==="X")&&h("Avoid 0x-. '{a}'.",n,d,
j)),j.substr(j.length-1)==="."&&h("A trailing decimal point can be confused with a dot '{a}'.",n,d,j),b("(number)",j);switch(j){case '"':case "'":return q(j);case "//":Ha||v&&v!=="script"?h("Unexpected comment.",n,d):v==="script"&&/<\s*\//i.test(m)?h("Unexpected </ in comment.",n,d):(i.safe||v==="script")&&db.test(m)&&h("Dangerous comment.",n,d);m="";g.comment=!0;break;case "/*":(Ha||v&&v!=="script"&&v!=="style"&&v!=="styleproperty")&&h("Unexpected comment.",n,d);for(i.safe&&db.test(m)&&h("ADsafe comment violation.",
n,d);;){k=m.search(Fb);if(k>=0)break;a()?i.safe&&db.test(m)&&h("ADsafe comment violation.",n,d):t("Unclosed comment.",n,d)}d+=k+2;m.substr(k,1)==="/"&&t("Nested comment.",n,d);m=m.substr(k+2);g.comment=!0;break;case "/*members":case "/*member":case "/*jslint":case "/*global":case "*/":return{value:j,type:"special",line:n,character:d,from:c};case "":break;case "/":g.id==="/="&&t("A regular expression literal can be confused with '/='.",n,c);if(bb){for(s=j=k=0;;){p=!0;o=m.charAt(s);s+=1;switch(o){case "":t("Unclosed regular expression.",
n,c);return;case "/":k>0&&h("Unescaped '{a}'.",n,c+s,"/");o=m.substr(0,s-1);for(r={g:!0,i:!0,m:!0};r[m.charAt(s)]===!0;)r[m.charAt(s)]=!1,s+=1;d+=s;m=m.substr(s);r=m.charAt(0);(r==="/"||r==="*")&&t("Confusing regular expression.",n,c);return b("(regexp)",o);case "\\":o=m.charAt(s);o<" "?h("Unexpected control character in regular expression.",n,c+s):o==="<"&&h("Unexpected escaped character '{a}' in regular expression.",n,c+s,o);s+=1;break;case "(":k+=1;p=!1;if(m.charAt(s)==="?")switch(s+=1,m.charAt(s)){case ":":case "=":case "!":s+=
1;break;default:h("Expected '{a}' and instead saw '{b}'.",n,c+s,":",m.charAt(s))}else j+=1;break;case "|":p=!1;break;case ")":k===0?h("Unescaped '{a}'.",n,c+s,")"):k-=1;break;case " ":for(r=1;m.charAt(s)===" ";)s+=1,r+=1;r>1&&h("Spaces are hard to count. Use {{a}}.",n,c+s,r);break;case "[":o=m.charAt(s);o==="^"&&(s+=1,i.regexp&&h("Insecure '{a}'.",n,c+s,o));r=!1;o==="]"&&(h("Empty class.",n,c+s-1),r=!0);a:do switch(o=m.charAt(s),s+=1,o){case "[":case "^":h("Unescaped '{a}'.",n,c+s,o);r=!0;break;case "-":r?
r=!1:(h("Unescaped '{a}'.",n,c+s,"-"),r=!0);break;case "]":r||h("Unescaped '{a}'.",n,c+s-1,"-");break a;case "\\":o=m.charAt(s);o<" "?h("Unexpected control character in regular expression.",n,c+s):o==="<"&&h("Unexpected escaped character '{a}' in regular expression.",n,c+s,o);s+=1;r=!0;break;case "/":h("Unescaped '{a}'.",n,c+s-1,"/");r=!0;break;case "<":v==="script"&&(o=m.charAt(s),(o==="!"||o==="/")&&h("HTML confusion in regular expression '<{a}'.",n,c+s,o));r=!0;break;default:r=!0}while(o);break;
case ".":i.regexp&&h("Insecure '{a}'.",n,c+s,o);break;case "]":case "?":case "{":case "}":case "+":case "*":h("Unescaped '{a}'.",n,c+s,o);break;case "<":v==="script"&&(o=m.charAt(s),(o==="!"||o==="/")&&h("HTML confusion in regular expression '<{a}'.",n,c+s,o))}if(p)switch(m.charAt(s)){case "?":case "+":case "*":s+=1;m.charAt(s)==="?"&&(s+=1);break;case "{":s+=1;o=m.charAt(s);(o<"0"||o>"9")&&h("Expected a number and instead saw '{a}'.",n,c+s,o);s+=1;for(r=+o;;){o=m.charAt(s);if(o<"0"||o>"9")break;
s+=1;r=+o+r*10}p=r;if(o===","&&(s+=1,p=Infinity,o=m.charAt(s),o>="0"&&o<="9")){s+=1;for(p=+o;;){o=m.charAt(s);if(o<"0"||o>"9")break;s+=1;p=+o+p*10}}m.charAt(s)!=="}"?h("Expected '{a}' and instead saw '{b}'.",n,c+s,"}",o):s+=1;m.charAt(s)==="?"&&(s+=1);r>p&&h("'{a}' should not be greater than '{b}'.",n,c+s,r,p)}}o=m.substr(0,s-1);d+=s;m=m.substr(s);return b("(regexp)",o)}return b("(punctuator)",j);case "<\!--":s=n;for(o=d;;){k=m.indexOf("--");if(k>=0)break;k=m.indexOf("<!");k>=0&&t("Nested HTML comment.",
n,d+k);a()||t("Unclosed HTML comment.",s,o)}s=m.indexOf("<!");s>=0&&s<k&&t("Nested HTML comment.",n,d+s);d+=k;m[k+2]!==">"&&t("Expected --\>.",n,d);d+=3;m=m.slice(k+3);break;case "#":if(v==="html"||v==="styleproperty"){for(;;){o=m.charAt(0);if((o<"0"||o>"9")&&(o<"a"||o>"f")&&(o<"A"||o>"F"))break;d+=1;m=m.substr(1);j+=o}j.length!==4&&j.length!==7&&h("Bad hex color '{a}'.",n,c+s,j);return b("(color)",j)}return b("(punctuator)",j);default:if(v==="outer"&&o==="&"){d+=1;for(m=m.substr(1);;){o=m.charAt(0);
d+=1;m=m.substr(1);if(o===";")break;o>="0"&&o<="9"||o>="a"&&o<="z"||o==="#"||t("Bad entity",n,c+s,d)}break}return b("(punctuator)",j)}}else{for(o=j="";m&&m<"!";)m=m.substr(1);if(m)if(v==="html")return j=m.charAt(0),m=m.substr(1),b("(error)",j);else t("Unexpected '{a}'.",n,d,m.substr(0,1))}}}}}();Va=[fa,function(){for(;;)if(a.identifier)switch(a.value.toLowerCase()){case "url":fa();break;case "expression":c("Unexpected expression '{a}'.",a,a.value);b();break;default:b()}else{if(a.id===";"||a.id===
"!"||a.id==="(end)"||a.id==="}")return!0;b()}}];X="none,hidden,dotted,dashed,solid,double,ridge,inset,outset".split(",");ab=["auto","always","avoid","left","right"];Fa=["auto","hidden","scroll","visible"];Ca={background:[!0,"background-attachment","background-color","background-image","background-position","background-repeat"],"background-attachment":["scroll","fixed"],"background-color":["transparent",W],"background-image":["none",fa],"background-position":[2,[C,"top","bottom","left","right","center"]],
"background-repeat":["repeat","repeat-x","repeat-y","no-repeat"],border:[!0,"border-color","border-style","border-width"],"border-bottom":[!0,"border-bottom-color","border-bottom-style","border-bottom-width"],"border-bottom-color":W,"border-bottom-style":X,"border-bottom-width":la,"border-collapse":["collapse","separate"],"border-color":["transparent",4,W],"border-left":[!0,"border-left-color","border-left-style","border-left-width"],"border-left-color":W,"border-left-style":X,"border-left-width":la,
"border-right":[!0,"border-right-color","border-right-style","border-right-width"],"border-right-color":W,"border-right-style":X,"border-right-width":la,"border-spacing":[2,C],"border-style":[4,X],"border-top":[!0,"border-top-color","border-top-style","border-top-width"],"border-top-color":W,"border-top-style":X,"border-top-width":la,"border-width":[4,la],bottom:[C,"auto"],"caption-side":["bottom","left","right","top"],clear:["both","left","none","right"],clip:[function(){var e;if(a.identifier&&a.value===
"rect"){b();b("(");for(e=0;e<4;e+=1)if(!C()){c("Expected a number and instead saw '{a}'.",a,a.value);break}b(")");return!0}return!1},"auto"],color:W,content:["open-quote","close-quote","no-open-quote","no-close-quote",Ta,fa,function(){if(a.identifier&&a.value==="counter")return b(),b("("),b(),a.id===","&&(F(),a.type!=="(string)"&&c("Expected a string and instead saw '{a}'.",a,a.value),b()),b(")"),!0;return a.identifier&&a.value==="counters"?(b(),b("("),a.identifier||c("Expected a name and instead saw '{a}'.",
a,a.value),b(),a.id===","&&(F(),a.type!=="(string)"&&c("Expected a string and instead saw '{a}'.",a,a.value),b()),a.id===","&&(F(),a.type!=="(string)"&&c("Expected a string and instead saw '{a}'.",a,a.value),b()),b(")"),!0):!1},function(){return a.identifier&&a.value==="attr"?(b(),b("("),a.identifier||c("Expected a name and instead saw '{a}'.",a,a.value),b(),b(")"),!0):!1}],"counter-increment":[Sa,"none"],"counter-reset":[Sa,"none"],cursor:[fa,"auto","crosshair","default","e-resize","help","move",
"n-resize","ne-resize","nw-resize","pointer","s-resize","se-resize","sw-resize","w-resize","text","wait"],direction:["ltr","rtl"],display:"block,compact,inline,inline-block,inline-table,list-item,marker,none,run-in,table,table-caption,table-cell,table-column,table-column-group,table-footer-group,table-header-group,table-row,table-row-group".split(","),"empty-cells":["show","hide"],"float":["left","none","right"],font:["caption","icon","menu","message-box","small-caption","status-bar",!0,"font-size",
"font-style","font-weight","font-family"],"font-family":function(){for(;a.id!==";";){!Sa()&&!Ta()&&c("Expected a name and instead saw '{a}'.",a,a.value);if(a.id!==",")return!0;F()}},"font-size":["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller",C],"font-size-adjust":["none",Ba],"font-stretch":"normal,wider,narrower,ultra-condensed,extra-condensed,condensed,semi-condensed,semi-expanded,expanded,extra-expanded".split(","),"font-style":["normal","italic","oblique"],
"font-variant":["normal","small-caps"],"font-weight":["normal","bold","bolder","lighter",Ba],height:[C,"auto"],left:[C,"auto"],"letter-spacing":["normal",C],"line-height":["normal",function(){a.id==="-"&&(b("-"),w());return a.type==="(number)"?(b(),a.type!=="(string)"&&ib[a.value]===!0&&(w(),b()),!0):!1}],"list-style":[!0,"list-style-image","list-style-position","list-style-type"],"list-style-image":["none",fa],"list-style-position":["inside","outside"],"list-style-type":"circle,disc,square,decimal,decimal-leading-zero,lower-roman,upper-roman,lower-greek,lower-alpha,lower-latin,upper-alpha,upper-latin,hebrew,katakana,hiragana-iroha,katakana-oroha,none".split(","),
margin:[4,ra],"margin-bottom":ra,"margin-left":ra,"margin-right":ra,"margin-top":ra,"marker-offset":[C,"auto"],"max-height":[C,"none"],"max-width":[C,"none"],"min-height":C,"min-width":C,opacity:Ba,outline:[!0,"outline-color","outline-style","outline-width"],"outline-color":["invert",W],"outline-style":"dashed,dotted,double,groove,inset,none,outset,ridge,solid".split(","),"outline-width":la,overflow:Fa,"overflow-x":Fa,"overflow-y":Fa,padding:[4,C],"padding-bottom":C,"padding-left":C,"padding-right":C,
"padding-top":C,"page-break-after":ab,"page-break-before":ab,position:["absolute","fixed","relative","static"],quotes:[8,Ta],right:[C,"auto"],"table-layout":["auto","fixed"],"text-align":["center","justify","left","right"],"text-decoration":["none","underline","overline","line-through","blink"],"text-indent":C,"text-shadow":["none",4,[W,C]],"text-transform":["capitalize","uppercase","lowercase","none"],top:[C,"auto"],"unicode-bidi":["normal","embed","bidi-override"],"vertical-align":["baseline","bottom",
"sub","super","top","text-top","middle","text-bottom",C],visibility:["visible","hidden","collapse"],"white-space":"normal,nowrap,pre,pre-line,pre-wrap,inherit".split(","),width:[C,"auto"],"word-spacing":["normal",C],"word-wrap":["break-word","normal"],"z-index":["auto",Ba]};xa("(number)",hb);xa("(string)",hb);O["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var a=this.value,b=H[a],d;typeof b==="function"?b=void 0:typeof b==="boolean"&&(d=k,k=ta[0],j(a,"var"),b=k,k=d);if(k===
b)switch(k[a]){case "unused":k[a]="var";break;case "label":c("'{a}' is a statement label.",g,a)}else if(k["(global)"])i.undef&&G[a]!=="boolean"&&c("'{a}' is not defined.",g,a),Ra(g);else switch(k[a]){case "closure":case "function":case "var":case "unused":c("'{a}' used out of scope.",g,a);break;case "label":c("'{a}' is a statement label.",g,a);break;case "outer":case "global":break;default:if(b===!0)k[a]=!0;else if(b===null)c("'{a}' is not allowed.",g,a),Ra(g);else if(typeof b!=="object")i.undef?
c("'{a}' is not defined.",g,a):k[a]=!0,Ra(g);else switch(b[a]){case "function":case "var":case "unused":b[a]="closure";k[a]=b["(global)"]?"global":"outer";break;case "closure":case "parameter":k[a]=b["(global)"]?"global":"outer";break;case "label":c("'{a}' is a statement label.",g,a)}}return this},led:function(){l("Expected an operator and instead saw '{a}'.",a,a.value)}};xa("(regexp)",function(){return this});I("(endline)");I("(begin)");I("(end)").reach=!0;I("</").reach=!0;I("<!");I("<\!--");I("--\>");
I("(error)").reach=!0;I("}").reach=!0;I(")");I("]");I('"').reach=!0;I("'").reach=!0;I(";");I(":").reach=!0;I(",");I("#");I("@");D("else");D("case").reach=!0;D("catch");D("default").reach=!0;D("finally");V("arguments");V("eval");V("false");V("Infinity");V("NaN");V("null");V("this");V("true");V("undefined");ha("=","assign",20);ha("+=","assignadd",20);ha("-=","assignsub",20);ha("*=","assignmult",20);ha("/=","assigndiv",20).nud=function(){l("A regular expression literal can be confused with '/='.")};
ha("%=","assignmod",20);ja("&=","assignbitand",20);ja("|=","assignbitor",20);ja("^=","assignbitxor",20);ja("<<=","assignshiftleft",20);ja(">>=","assignshiftright",20);ja(">>>=","assignshiftrightunsigned",20);N("?",function(a,c){c.left=a;c.right=q(10);b(":");c["else"]=q(10);return c},30);N("||","or",40);N("&&","and",50);ia("|","bitor",70);ia("^","bitxor",80);ia("&","bitand",90);ca("==",function(a,b){i.eqeqeq?c("Expected '{a}' and instead saw '{b}'.",this,"===","=="):ya(a)?c("Use '{a}' to compare with '{b}'.",
this,"===",a.value):ya(b)&&c("Use '{a}' to compare with '{b}'.",this,"===",b.value);return this});ca("===");ca("!=",function(a,b){i.eqeqeq?c("Expected '{a}' and instead saw '{b}'.",this,"!==","!="):ya(a)?c("Use '{a}' to compare with '{b}'.",this,"!==",a.value):ya(b)&&c("Use '{a}' to compare with '{b}'.",this,"!==",b.value);return this});ca("!==");ca("<");ca(">");ca("<=");ca(">=");ia("<<","shiftleft",120);ia(">>","shiftright",120);ia(">>>","shiftrightunsigned",120);N("in","in",120);N("instanceof",
"instanceof",120);N("+",function(a,b){var d=q(130);if(a&&d&&a.id==="(string)"&&d.id==="(string)")return a.value+=d.value,a.character=d.character,Qa.test(a.value)&&c("JavaScript URL.",a),a;b.left=a;b.right=d;return b},130);R("+","num");N("-","sub",130);R("-","neg");N("*","mult",140);N("/","div",140);N("%","mod",140);fb("++","postinc");R("++","preinc");O["++"].exps=!0;fb("--","postdec");R("--","predec");O["--"].exps=!0;R("delete",function(){var b=q(0);(!b||b.id!=="."&&b.id!=="[")&&c("Expected '{a}' and instead saw '{b}'.",
a,".",a.value);this.first=b;return this}).exps=!0;R("~",function(){i.bitwise&&c("Unexpected '{a}'.",this,"~");q(150);return this});R("!",function(){this.right=q(150);this.arity="unary";wb[this.right.id]===!0&&c("Confusing use of '{a}'.",this,"!");return this});R("typeof","typeof");R("new",function(){var e=q(155),f;if(e&&e.id!=="function")if(e.identifier)switch(e["new"]=!0,e.value){case "Object":c("Use the object literal notation {}.",g);break;case "Array":return a.id!=="("?c("Use the array literal notation [].",
g):(b("("),a.id===")"?c("Use the array literal notation [].",g):(f=q(0),e.dimension=f,(f.id==="(number)"&&/[.+\-Ee]/.test(f.value)||f.id==="-"&&!f.right||f.id==="(string)"||f.id==="["||f.id==="{"||f.id==="true"||f.id==="false"||f.id==="null"||f.id==="undefined"||f.id==="Infinity")&&c("Use the array literal notation [].",g),a.id!==")"&&l("Use the array literal notation [].",g)),b(")")),this.first=e,this;case "Number":case "String":case "Boolean":case "Math":case "JSON":c("Do not use {a} as a constructor.",
g,e.value);break;case "Function":i.evil||c("The Function constructor is eval.");break;case "Date":case "RegExp":break;default:e.id!=="function"&&(f=e.value.substr(0,1),i.newcap&&(f<"A"||f>"Z")&&c("A constructor name should start with an uppercase letter.",g))}else e.id!=="."&&e.id!=="["&&e.id!=="("&&c("Bad constructor.",g);else c("Weird construction. Delete 'new'.",this);w(g,a);a.id!=="("&&c("Missing '()' invoking a constructor.");this.first=e;return this});O["new"].exps=!0;N(".",function(e,f){w(M,
g);var d=oa();typeof d==="string"&&Aa(d);f.left=e;f.right=d;!i.evil&&e&&e.value==="document"&&(d==="write"||d==="writeln")?c("document.write can be a form of eval.",e):i.adsafe&&e&&e.value==="ADSAFE"&&(d==="id"||d==="lib"?c("ADsafe violation.",f):d==="go"&&(v!=="script"?c("ADsafe violation.",f):(ua||a.id!=="("||p(0).id!=="(string)"||p(0).value!==Q||p(1).id!==",")&&l("ADsafe violation: go.",f),ua=!0,ka=!1));if(!i.evil&&(d==="eval"||d==="execScript"))c("eval is evil.");else if(i.safe)for(;;){Na[d]===
!0&&c("ADsafe restricted word '{a}'.",g,d);if(typeof G[e.value]!=="boolean"||a.id==="(")break;if(zb[d]===!0){a.id==="."&&c("ADsafe violation.",f);break}if(a.id!=="."){c("ADsafe violation.",f);break}b(".");g.left=f;g.right=d;f=g;d=oa();typeof d==="string"&&Aa(d)}return f},160,!0);N("(",function(e,f){w(M,g);r();var d=0,h=[];e&&(e.type==="(identifier)"?e.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&e.value!=="Number"&&e.value!=="String"&&e.value!=="Boolean"&&e.value!=="Date"&&(e.value===
"Math"?c("Math is not a function.",e):i.newcap&&c("Missing 'new' prefix when invoking a constructor.",e)):e.id==="."&&i.safe&&e.left.value==="Math"&&e.right==="random"&&c("ADsafe violation.",e));if(a.id!==")")for(;;){h[h.length]=q(10);d+=1;if(a.id!==",")break;F()}b(")");i.immed&&e.id==="function"&&a.id!==")"&&c("Wrap the entire immediate function invocation in parens.",f);r(M,g);typeof e==="object"&&(e.value==="parseInt"&&d===1&&c("Missing radix parameter.",e),i.evil||(e.value==="eval"||e.value===
"Function"||e.value==="execScript"?c("eval is evil.",e):h[0]&&h[0].id==="(string)"&&(e.value==="setTimeout"||e.value==="setInterval")&&c("Implied eval is evil. Pass a function instead of a string.",e)),!e.identifier&&e.id!=="."&&e.id!=="["&&e.id!=="("&&e.id!=="&&"&&e.id!=="||"&&e.id!=="?"&&c("Bad invocation.",e));f.left=e;return f},155,!0).exps=!0;R("(",function(){r();var e=q(0);b(")",this);r(M,g);i.immed&&e.id==="function"&&(a.id==="("?c("Move the invocation into the parens that contain the function.",
a):c("Do not wrap function literals in parens unless they are to be immediately invoked.",this));return e});N("[",function(a,f){r();var d=q(0),h;d&&d.type==="(string)"?(i.safe&&Na[d.value]===!0?c("ADsafe restricted word '{a}'.",f,d.value):!i.evil&&(d.value==="eval"||d.value==="execScript")?c("eval is evil.",f):i.safe&&(d.value.charAt(0)==="_"||d.value.charAt(0)==="-")&&c("ADsafe restricted subscript '{a}'.",f,d.value),Aa(d.value),!i.sub&&nb.test(d.value)&&(h=O[d.value],(!h||!h.reserved)&&c("['{a}'] is better written in dot notation.",
d,d.value))):(!d||d.type!=="(number)"||d.value<0)&&i.safe&&c("ADsafe subscripting.");b("]",f);r(M,g);f.left=a;f.right=d;return f},160,!0);R("[",function(){var e=g.line!==a.line;this.first=[];e&&(J+=i.indent,a.from===J+i.indent&&(J+=i.indent));for(;a.id!=="(end)";){for(;a.id===",";)c("Extra comma."),b(",");if(a.id==="]")break;e&&g.line!==a.line&&y();this.first.push(q(10));if(a.id===","){if(F(),a.id==="]"){c("Extra comma.",g);break}}else break}e&&(J-=i.indent,y());b("]",this);return this},160);(function(e){e.nud=
function(){var e,d,h,n,m={};if(e=g.line!==a.line)J+=i.indent,a.from===J+i.indent&&(J+=i.indent);for(;;){if(a.id==="}")break;e&&y();if(a.value==="get"&&p().id!==":")b("get"),i.es5||l("get/set are ES5 features."),(h=Ya())||l("Missing property name."),n=a,w(g,a),d=Da(h),k["(loopage)"]&&c("Don't make functions within a loop.",n),(d=d["(params)"])&&c("Unexpected parameter '{a}' in get {b} function.",n,d[0],h),w(g,a),b(","),y(),b("set"),n=Ya(),h!==n&&l("Expected {a} and instead saw {b}.",g,h,n),n=a,w(g,
a),d=Da(h),d=d["(params)"],(!d||d.length!==1||d[0]!=="value")&&c("Expected (value) in set {a} function.",n,h);else{h=Ya();if(typeof h!=="string")break;b(":");B(g,a);q(10)}m[h]===!0&&c("Duplicate member '{a}'.",a,h);m[h]=!0;Aa(h);if(a.id===",")F(),a.id===","?c("Extra comma.",g):a.id==="}"&&c("Extra comma.",g);else break}e&&(J-=i.indent,y());b("}",this);return this};e.fud=function(){l("Expected to see a statement and instead saw a block.",g)}})(I("{"));ba("var",Za).exps=!0;ga("function",function(){qa&&
c("Function statements cannot be placed in blocks. Use a function expression or move the statement to the top of the outer function.",g);var b=oa();w(g,a);j(b,"unused");Da(b);a.id==="("&&a.line===g.line&&l("Function statements are not invocable. Wrap the whole function invocation in parens.");return this});R("function",function(){var b=Ma();b?w(g,a):B(g,a);Da(b);k["(loopage)"]&&c("Don't make functions within a loop.");return this});ga("if",function(){var e=a;b("(");B(this,e);r();q(20);a.id==="="&&
(c("Expected a conditional expression and instead saw an assignment."),b("="),q(20));b(")",e);r(M,g);S(!0);a.id==="else"&&(B(g,a),b("else"),a.id==="if"||a.id==="switch"?Pa(!0):S(!0));return this});ga("try",function(){var e,f;i.adsafe&&c("ADsafe try violation.",this);S(!1);if(a.id==="catch")b("catch"),B(g,a),b("("),f=H,H=Object.create(f),e=a.value,a.type!=="(identifier)"?c("Expected an identifier and instead saw '{a}'.",a,e):j(e,"exception"),b(),b(")"),S(!1),e=!0,H=f;if(a.id==="finally")b("finally"),
S(!1);else return e||l("Expected '{a}' and instead saw '{b}'.",a,"catch",a.value),this});ga("while",function(){var e=a;k["(breakage)"]+=1;k["(loopage)"]+=1;b("(");B(this,e);r();q(20);a.id==="="&&(c("Expected a conditional expression and instead saw an assignment."),b("="),q(20));b(")",e);r(M,g);S(!0);k["(breakage)"]-=1;k["(loopage)"]-=1;return this}).labelled=!0;D("with");ga("switch",function(){var e=a,f=!1;k["(breakage)"]+=1;b("(");B(this,e);r();this.condition=q(20);b(")",e);r(M,g);B(g,a);e=a;b("{");
B(g,a);J+=i.indent;for(this.cases=[];;)switch(a.id){case "case":switch(k["(verb)"]){case "break":case "case":case "continue":case "return":case "switch":case "throw":break;default:c("Expected a 'break' statement before 'case'.",g)}y(-i.indent);b("case");this.cases.push(q(20));f=!0;b(":");k["(verb)"]="case";break;case "default":switch(k["(verb)"]){case "break":case "continue":case "return":case "throw":break;default:c("Expected a 'break' statement before 'default'.",g)}y(-i.indent);b("default");f=
!0;b(":");break;case "}":J-=i.indent;y();b("}",e);(this.cases.length===1||this.condition.id==="true"||this.condition.id==="false")&&c("This 'switch' should be an 'if'.",this);k["(breakage)"]-=1;k["(verb)"]=void 0;return;case "(end)":l("Missing '{a}'.",a,"}");return;default:if(f)switch(g.id){case ",":l("Each value should have its own case label.");return;case ":":pa();break;default:l("Missing ':' on a case clause.",g)}else l("Expected '{a}' and instead saw '{b}'.",a,"case",a.value)}}).labelled=!0;
ba("debugger",function(){i.debug||c("All 'debugger' statements should be removed.");return this}).exps=!0;(function(){var e=ba("do",function(){k["(breakage)"]+=1;k["(loopage)"]+=1;this.first=S(!0);b("while");var e=a;B(g,e);b("(");r();q(20);a.id==="="&&(c("Expected a conditional expression and instead saw an assignment."),b("="),q(20));b(")",e);r(M,g);k["(breakage)"]-=1;k["(loopage)"]-=1;return this});e.labelled=!0;e.exps=!0})();ga("for",function(){var e=i.forin,f;f=a;k["(breakage)"]+=1;k["(loopage)"]+=
1;b("(");B(this,f);r();if(p(a.id==="var"?1:0).id==="in"){if(a.id==="var")b("var"),Za(!0);else{switch(k[a.value]){case "unused":k[a.value]="var";break;case "var":break;default:c("Bad for in variable '{a}'.",a,a.value)}b()}b("in");q(20);b(")",f);f=S(!0);!e&&(f.length>1||typeof f[0]!=="object"||f[0].value!=="if")&&c("The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",this)}else{if(a.id!==";")if(a.id==="var")b("var"),Za();else for(;;){q(0,"for");
if(a.id!==",")break;F()}Z(g);b(";");a.id!==";"&&(q(20),a.id==="="&&(c("Expected a conditional expression and instead saw an assignment."),b("="),q(20)));Z(g);b(";");a.id===";"&&l("Expected '{a}' and instead saw '{b}'.",a,")",";");if(a.id!==")")for(;;){q(0,"for");if(a.id!==",")break;F()}b(")",f);r(M,g);S(!0)}k["(breakage)"]-=1;k["(loopage)"]-=1;return this}).labelled=!0;ba("break",function(){var e=a.value;k["(breakage)"]===0&&c("Unexpected '{a}'.",a,this.value);Z(this);if(a.id!==";"&&g.line===a.line)k[e]!==
"label"?c("'{a}' is not a statement label.",a,e):H[e]!==k&&c("'{a}' is out of scope.",a,e),this.first=a,b();za("break");return this}).exps=!0;ba("continue",function(){var e=a.value;k["(breakage)"]===0&&c("Unexpected '{a}'.",a,this.value);Z(this);if(a.id!==";"){if(g.line===a.line)k[e]!=="label"?c("'{a}' is not a statement label.",a,e):H[e]!==k&&c("'{a}' is out of scope.",a,e),this.first=a,b()}else k["(loopage)"]||c("Unexpected '{a}'.",a,this.value);za("continue");return this}).exps=!0;ba("return",
function(){Z(this);a.id==="(regexp)"&&c("Wrap the /regexp/ literal in parens to disambiguate the slash operator.");if(a.id!==";"&&!a.reach)B(g,a),this.first=q(20);za("return");return this}).exps=!0;ba("throw",function(){Z(this);B(g,a);this.first=q(20);za("throw");return this}).exps=!0;D("void");D("class");D("const");D("enum");D("export");D("extends");D("import");D("super");D("let");D("yield");D("implements");D("interface");D("package");D("private");D("protected");D("public");D("static");"abstract boolean byte char class double extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile".split(" ").forEach(D);
var Y=function(e,f){var d,h;JSLINT.errors=[];G=Object.create(yb);if(f){d=f.predef;if(d instanceof Array)for(h=0;h<d.length;h+=1)G[d[h]]=!0;if(f.adsafe)f.safe=!0;if(f.safe)f.browser=!1,f.css=!1,f.debug=!1,f.devel=!1,f.eqeqeq=!0,f.evil=!1,f.forin=!1,f.nomen=!0,f.on=!1,f.rhino=!1,f.safe=!0,f.windows=!1,f.strict=!0,f.sub=!1,f.undef=!0,f.widget=!1,G.Date=null,G.eval=null,G.Function=null,G.Object=null,G.ADSAFE=!1,G.lib=!1;i=f}else i={};i.indent=i.indent||4;i.maxerr=i.maxerr||50;Q="";ua=ka=!1;Ea={};if(i.approved)for(h=
0;h<i.approved.length;h+=1)Ea[i.approved[h]]=i.approved[h];else Ea.test="test";cb="";for(h=0;h<i.indent;h+=1)cb+=" ";J=1;H=eb=Object.create(G);k={"(global)":!0,"(name)":"(global)","(scope)":H,"(breakage)":0,"(loopage)":0};ta=[k];Ga={};sa=[];v=Ha=!1;L=null;ea={};da=null;aa={};qa=!1;wa=[];ma=!1;Ia=0;U.init(e);bb=!0;La=!1;M=g=a=O["(begin)"];A();try{b();if(a.value.charAt(0)==="<"){a:{var n,m,j,q,r,o,p,t=i.white,s;v="html";P="";for(L=null;;){switch(a.value){case "<":v="html";b("<");m={};o=a;o.identifier||
c("Bad identifier {a}.",o,o.value);q=o.value;i.cap&&(q=q.toLowerCase());o.name=q;b();if(!L)L=[],d=q,d!=="html"&&!i.fragment&&(d==="div"&&i.adsafe?l("ADSAFE: Use the fragment option."):l("Expected '{a}' and instead saw '{b}'.",g,"html",d)),i.adsafe&&(d==="html"&&l("Currently, ADsafe does not operate on whole HTML documents. It operates on <div> fragments and .js files.",g),i.fragment?d!=="div"&&l("ADsafe violation: Wrap the widget in a div.",g):l("Use the fragment option.",g)),i.browser=!0,A();p=Xa[q];
typeof p!=="object"&&l("Unrecognized tag '<{a}>'.",o,q);j=p.empty;for(o.type=q;;){if(a.id==="/"){b("/");a.id!==">"&&c("Expected '{a}' and instead saw '{b}'.",a,">",a.value);break}if(a.id&&a.id.substr(0,1)===">")break;a.identifier||((a.id==="(end)"||a.id==="(error)")&&l("Missing '>'.",a),c("Bad identifier."));i.white=!0;B(g,a);n=a.value;i.white=t;b();!i.cap&&n!==n.toLowerCase()&&c("Attribute '{a}' not all lower case.",a,n);n=n.toLowerCase();P="";z(m,n)&&c("Attribute '{a}' repeated.",a,n);n.slice(0,
2)==="on"?(i.on||c("Avoid HTML event handlers."),v="scriptstring",b("="),r=a.id,r!=='"'&&r!=="'"&&l("Missing quote."),P=r,s=i.white,i.white=!1,b(r),pa("on"),i.white=s,a.id!==r&&l("Missing close quote on script attribute."),v="html",P="",b(r),p=!1):n==="style"?(v="scriptstring",b("="),r=a.id,r!=='"'&&r!=="'"&&l("Missing quote."),v="styleproperty",P=r,b(r),kb(),v="html",P="",b(r),p=!1):a.id==="="?(b("="),p=a.value,!a.identifier&&a.id!=='"'&&a.id!=="'"&&a.type!=="(string)"&&a.type!=="(number)"&&a.type!==
"(color)"&&c("Expected an attribute value and instead saw '{a}'.",g,n),b()):p=!0;m[n]=p;d=n;h=p;var u=void 0,w=void 0;d==="id"?(u=typeof h==="string"?h.toUpperCase():"",Ga[u]===!0&&c("Duplicate id='{a}'.",a,h),/^[A-Za-z][A-Za-z0-9._:\-]*$/.test(h)?i.adsafe&&(Q?h.slice(0,Q.length)!==Q?c("ADsafe violation: An id must have a '{a}' prefix",a,Q):/^[A-Z]+_[A-Z]+$/.test(h)||c("ADSAFE violation: bad id."):(Q=h,/^[A-Z]+_$/.test(h)||c("ADSAFE violation: bad id."))):c("Bad id: '{a}'.",a,h),w=h.search(Hb),w>=
0&&c("Unexpected character '{a}' in {b}.",g,h.charAt(w),d),Ga[u]=!0):d==="class"||d==="type"||d==="name"?(w=h.search(Gb),w>=0&&c("Unexpected character '{a}' in {b}.",g,h.charAt(w),d),Ga[u]=!0):d==="href"||d==="background"||d==="content"||d==="data"||d.indexOf("src")>=0||d.indexOf("url")>=0?(i.safe&&jb.test(h)&&l("ADsafe URL violation."),sa.push(h)):d==="for"?i.adsafe&&(Q?h.slice(0,Q.length)!==Q?c("ADsafe violation: An id must have a '{a}' prefix",a,Q):/^[A-Z]+_[A-Z]+$/.test(h)||c("ADSAFE violation: bad id."):
c("ADSAFE violation: bad id.")):d==="name"&&i.adsafe&&h.indexOf("_")>=0&&c("ADsafe name violation.")}d=q;h=m;var u=void 0,y=Xa[d],w=void 0;Ha=!1;y||l("Unrecognized tag '<{a}>'.",a,d===d.toLowerCase()?d:d+" (capitalization error)");if(L.length>0)if(d==="html"&&l("Too many <html> tags.",g),w=y.parent)w.indexOf(" "+L[L.length-1].name+" ")<0&&l("A '<{a}>' must be within '<{b}>'.",g,d,w);else if(!i.adsafe&&!i.fragment){u=L.length;do u<=0&&l("A '<{a}>' must be within '<{b}>'.",g,d,"body"),u-=1;while(L[u].name!==
"body")}switch(d){case "div":i.adsafe&&L.length===1&&!Q&&c("ADSAFE violation: missing ID_.");break;case "script":v="script";b(">");J=a.from;h.lang&&c("lang is deprecated.",g);i.adsafe&&L.length!==1&&c("ADsafe script placement violation.",g);h.src?(i.adsafe&&(!ka||!Ea[h.src])&&c("ADsafe unapproved script source.",g),h.type&&c("type is unnecessary.",g)):(ua&&l("ADsafe script violation.",g),pa("script"));v="html";b("</");!a.identifier&&a.value!=="script"&&c("Expected '{a}' and instead saw '{b}'.",a,
"script",a.value);b();v="outer";break;case "style":v="style";b(">");lb();v="html";b("</");!a.identifier&&a.value!=="style"&&c("Expected '{a}' and instead saw '{b}'.",a,"style",a.value);b();v="outer";break;case "input":switch(h.type){case "radio":case "checkbox":case "button":case "reset":case "submit":break;case "text":case "password":case "file":case "hidden":case "image":i.adsafe&&h.autocomplete!=="off"&&c("ADsafe autocomplete violation.");break;default:c("Bad input type.")}break;case "applet":case "body":case "embed":case "frame":case "frameset":case "head":case "iframe":case "noembed":case "noframes":case "object":case "param":i.adsafe&&
c("ADsafe violation: Disallowed tag: "+d)}j||L.push(o);v="outer";b(">");break;case "</":v="html";b("</");a.identifier||c("Bad identifier.");q=a.value;i.cap&&(q=q.toLowerCase());b();L||l("Unexpected '{a}'.",a,"</"+q+">");(o=L.pop())||l("Unexpected '{a}'.",a,"</"+q+">");o.name!==q&&l("Expected '{a}' and instead saw '{b}'.",a,"</"+o.name+">","</"+q+">");a.id!==">"&&l("Missing '{a}'.",a,">");v="outer";b(">");break;case "<!":i.safe&&c("ADsafe HTML violation.");for(v="html";;){b();if(a.id===">"||a.id===
"(end)")break;a.value.indexOf("--")>=0&&c("Unexpected --.");a.value.indexOf("<")>=0&&c("Unexpected <.");a.value.indexOf(">")>=0&&c("Unexpected >.")}v="outer";b(">");break;case "(end)":break a;default:a.id==="(end)"?l("Missing '{a}'.",a,"</"+L[L.length-1].value+">"):b()}if(L&&L.length===0&&(i.adsafe||!i.fragment||a.id==="(end)"))break}a.id!=="(end)"&&l("Unexpected material after the end.")}i.adsafe&&!ua&&c("ADsafe violation: Missing ADSAFE.go.",this)}else switch(a.id){case "{":case "[":ma=i.laxbreak=
!0;$a();break;case "@":case "*":case "#":case ".":case ":":v="style";b();(g.id!=="@"||!a.identifier||a.value!=="charset"||g.line!==1||g.from!==1)&&l('A css file should begin with @charset "UTF-8";');b();a.type!=="(string)"&&a.value!=="UTF-8"&&l('A css file should begin with @charset "UTF-8";');b();b(";");lb();break;default:i.adsafe&&i.fragment&&l("Expected '{a}' and instead saw '{b}'.",a,"<div>",a.value),pa("lib")}b("(end)")}catch(x){x&&JSLINT.errors.push({reason:x.message,line:x.line||a.line,character:x.character||
a.from},null)}return JSLINT.errors.length===0};Y.data=function(){var a={functions:[]},b;b=[];var c,g,h,i,j=[];if(Y.errors.length)a.errors=Y.errors;if(ma)a.json=!0;for(i in aa)z(aa,i)&&b.push({name:i,line:aa[i]});if(b.length>0)a.implieds=b;if(sa.length>0)a.urls=sa;b=mb(H);if(b.length>0)a.globals=b;for(g=1;g<ta.length;g+=1){c=ta[g];b={};for(h=0;h<va.length;h+=1)b[va[h]]=[];for(i in c)z(c,i)&&i.charAt(0)!=="("&&(h=c[i],Object.prototype.toString.apply(b[h])==="[object Array]"&&(b[h].push(i),h==="unused"&&
j.push({name:i,line:c["(line)"],"function":c["(name)"]})));for(h=0;h<va.length;h+=1)b[va[h]].length===0&&delete b[va[h]];b.name=c["(name)"];b.param=c["(params)"];b.line=c["(line)"];b.last=c["(last)"];a.functions.push(b)}if(j.length>0)a.unused=j;for(i in ea)if(typeof ea[i]==="number"){a.member=ea;break}return a};Y.report=function(a){function b(a,c){var d,e,f;if(c){k.push("<div><i>"+a+"</i> ");c=c.sort();for(e=0;e<c.length;e+=1)c[e]!==f&&(f=c[e],k.push((d?", ":"")+f),d=!0);k.push("</div>")}}var c=Y.data(),
g=[],h,i,j;h="";var l,k=[];if(c.errors||c.implieds||c.unused){i=!0;k.push("<div id=errors><i>Error:</i>");if(c.errors)for(j=0;j<c.errors.length;j+=1)if(g=c.errors[j])h=g.evidence||"",k.push("<p>Problem"+(isFinite(g.line)?" at line "+g.line+" character "+g.character:"")+": "+g.reason.entityify()+"</p><p class=evidence>"+(h&&(h.length>80?h.slice(0,77)+"...":h).entityify())+"</p>");if(c.implieds){g=[];for(j=0;j<c.implieds.length;j+=1)g[j]="<code>"+c.implieds[j].name+"</code>&nbsp;<i>"+c.implieds[j].line+
"</i>";k.push("<p><i>Implied global:</i> "+g.join(", ")+"</p>")}if(c.unused){g=[];for(j=0;j<c.unused.length;j+=1)g[j]="<code><u>"+c.unused[j].name+"</u></code>&nbsp;<i>"+c.unused[j].line+"</i> <code>"+c.unused[j]["function"]+"</code>";k.push("<p><i>Unused variable:</i> "+g.join(", ")+"</p>")}c.json&&k.push("<p>JSON: bad.</p>");k.push("</div>")}if(!a){k.push("<br><div id=functions>");c.urls&&b("URLs<br>",c.urls,"<br>");v==="style"?k.push("<p>CSS.</p>"):c.json&&!i?k.push("<p>JSON: good.</p>"):c.globals?
k.push("<div><i>Global</i> "+c.globals.sort().join(", ")+"</div>"):k.push("<div><i>No new global variables introduced.</i></div>");for(j=0;j<c.functions.length;j+=1)a=c.functions[j],k.push("<br><div class=function><i>"+a.line+"-"+a.last+"</i> "+(a.name||"")+"("+(a.param?a.param.join(", "):"")+")</div>"),b("<big><b>Unused</b></big>",a.unused),b("Closure",a.closure),b("Variable",a["var"]),b("Exception",a.exception),b("Outer",a.outer),b("Global",a.global),b("Label",a.label);if(c.member){g=mb(c.member);
if(g.length){g=g.sort();h="<br><pre id=members>/*members ";i=10;for(j=0;j<g.length;j+=1)a=g[j],l=a.name(),i+l.length>72&&(k.push(h+"<br>"),h="    ",i=1),i+=l.length+2,c.member[a]===1&&(l="<i>"+l+"</i>"),j<g.length-1&&(l+=", "),h+=l;k.push(h+"<br>*/</pre>")}k.push("</div>")}}return k.join("")};Y.jslint=Y;Y.edition="2010-04-06";return Y}();define("orion/jslintworker",function(){});
define("domReady",[],function(){function x(b){for(var c=0,j;j=b[c];c++)j(h)}function z(){var b=l,h=t;c&&(b.length&&(l=[],x(b)),j.resourcesDone&&h.length&&(t=[],x(h)))}function E(){c||(c=!0,b&&clearInterval(b),z())}function A(b){c?b(h):l.push(b);return A}var u=typeof window!=="undefined"&&window.document,c=!u,h=u?document:null,l=[],t=[],j=requirejs||require||{},p=j.resourcesReady,b;if("resourcesReady"in j)j.resourcesReady=function(b){p&&p(b);b&&z()};u&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
E,!1),window.addEventListener("load",E,!1)):window.attachEvent&&(window.attachEvent("onload",E),self===self.top&&(b=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),E())}catch(b){}},30))),document.readyState==="complete"&&E());A.withResources=function(b){c&&j.resourcesDone?b(h):t.push(b);return A};A.version="1.0.0";A.load=function(b,c,h,j){j.isBuild?h(null):A(h)};return A});
define("plugins/jslintPlugin",["orion/plugin","orion/jslintworker","domReady!"],function(x){function z(u){JSLINT(u,A);return JSLINT.data()}function E(u){function c(c,l,t){for(var j=u.description,p=0;p<c.length;p++){var b=c[p],q=typeof b==="string"?null:b[1],b=j.indexOf(typeof b==="string"?b:b[0])!==-1;if(t||b)u.severity=l;if(b&&q)u.description=q}}c([["Expected '{'","Statement body should be inside '{ }' braces."]],"warning",!0);c("Missing semicolon;Extra comma;Missing property name;Unmatched ; and instead saw; is not defined;Unclosed string;Stopping, unable to continue".split(";"),
"error");return function(){for(var c=["Dangerous comment"],l=u.description,t=0;t<c.length;t++)if(l.indexOf(c[t])!==-1)return!0;return!1}(u)?null:u}var A={bitwise:!1,eqeqeq:!0,es5:!0,immed:!0,indent:1,maxerr:300,newcap:!0,nomen:!1,onevar:!1,plusplus:!1,regexp:!0,strict:!1,undef:!0,white:!1},x=new x({name:"Orion JSLint Service",version:"1.0",description:"This plugin provides JSLint functionality for outlining and validating JavaScript code."});x.registerService(["orion.edit.validator","orion.cm.managedservice"],
{updated:function(u){if(u&&typeof u.options==="string"&&(u=u.options,!/^\s*$/.test(u))){var c={};u.split(/,/).forEach(function(h){var l=/\s*(\w+)\s*:\s*(\w+)\s*/.exec(h);l===null?console.log("JSLINT ignoring bad option: "+h):c[l[1]]=l[2]});Object.keys(c).length>0&&(A=c,console.log("JSLINT using custom options: "+Object.keys(A).map(function(h){return h+":"+c[h]}).join(",")))}},checkSyntax:function(u,c){var h=z(c),l=[],t;if(h.errors){var j=h.errors;for(t=0;t<j.length;t++){var p=j[t];if(p){var b=p.character-
1,q=b+1;p.evidence&&(b=p.evidence.substring(b).search(/.\b/),b>-1&&(q+=b));p.description=p.reason;p.start=p.character;p.end=q;(p=E(p))&&l.push(p)}}}if(h.functions){var h=h.functions,w;for(t=0;t<h.length;t++)if(j=h[t],(p=j.unused)&&p.length!==0){w||(w=c.split(/\r?\n/));for(var b=(q=j.name[0]==='"')?j.name.substring(1,j.name.length-1):j.name,r=w[j.line-1],x=0;x<p.length;x++){var A=r.indexOf(b),A=q?r.indexOf("function",A):r.lastIndexOf("function",A);A!==-1&&l.push({reason:"Function declares unused variable '"+
p[x]+"'.",line:j.line,character:A+1,end:A+8,severity:"warning"})}}}return{problems:l}}},{contentType:["application/javascript","text/html"],pid:"jslint.config"});x.registerService("orion.edit.outliner",{getOutline:function(u,c){if(/\.js$/.test(c)){var h=[],l=z(u).functions,t;for(t in l){var j=l[t],p=j.name;if(p[0]==='"')j.name=p=p.substring(1,p.length-1);p+="(";if(j.param){var b=[],q;for(q in j.param)b.push(j.param[q]);p+=b.join(",")}p+=")";h.push({label:p,children:null,line:j.line,text:j.name})}return h}else if(/\.html?$/.test(c)){h=
[];for(l=/id=['"]\S*["']/gi;(j=l.exec(u))!==null;)t=j.index,j=j[0],j[0]==="<"?(j="&lt;"+j.substring(1)+"&gt;",t+=1):(t+=4,j=j.substring(4,j.length-1)),h.push({label:j,children:null,start:t,end:t+j.length});return h}}},{contentType:["application/javascript","text/html"],nameKey:"Flat outline",nls:"orion/editor/nls/messages",id:"orion.edit.outliner.jslint"});x.registerService("orion.core.setting",{},{settings:[{pid:"jslint.config",name:"JSLint Validator",tags:"validation javascript js jslint".split(" "),
category:"validation",properties:[{id:"options",name:"Default Options",type:"string"}]}]});x.connect()});