if(typeof bespin==="undefined")bespin={};if(typeof document!=="undefined"){var link=document.getElementById("bespin_base");if(link){var href=link.href;bespin.base=href.substring(href.length-1)!=="/"?href+"/":href}else bespin.base=""}
(function(){if("undefined"===typeof R)var R=function(){function u(Q,H){P.push({m:Q,a:H})}var P=[],Y={isBootstrap:true,queue:P,register:function(Q,H){if(Q.match(/^tiki/)&&this.ENV)if(this.ENV.app==="tiki"&&this.ENV.mode==="test"){if(!H.dependencies)H.dependencies={};H.dependencies.core_test="~"}u("register",arguments);return this},module:function(Q,H){if(Q.match(/\:tiki$/))this.tikiFactory=H;u("module",arguments);return this},start:function(){var Q={};this.tikiFactory(null,Q,null);Q=Q.Browser.start(this.ENV,
this.ARGS,P);P=null;return Q}};if("undefined"!==typeof ENV)Y.ENV=ENV;if("undefined"!==typeof ARGV)Y.ARGS=ARGV;if("undefined"!==typeof ARGS)Y.ARGS=ARGS;return Y}();R.register("::tiki/1.0.0",{name:"tiki",version:"1.0.0"});R.module("::tiki/1.0.0:tiki",function(u,P){var Y=/^::/,Q=function(d){return!!Y.exec(d)},H=function(){P.debug.apply(this,arguments)};P.debug=function(){var d=Array.prototype.join.call(arguments,"");u("sys").debug(d)};var q;q=Array.isArray?Array.isArray:function(d){if("object"!==typeof d)return false;
if(d instanceof Array)return true;return d.constructor&&d.constructor.name==="Array"};P.isArray=q;var y;if(Object.create)y=Object.create;else{var I=function(){},W=I.prototype;y=function(d){if(!d)d=Object.prototype;I.prototype=d;var h=new I;h.prototype=d;I.prototype=W;return h}}P.createObject=y;var J,M,m;J=function(){return function(){return this.init?this.init.apply(this,arguments):this}};M=function(){return m(this)};m=function(d){var h=J();h.prototype=y(d.prototype);h.prototype.constructor=h;h.super_=
d;h.extend=M;return h};P.extend=m;var s=function(d,h){if(h&&!h.displayName)h.displayName="parallel#fn";return function(i){if(d.length===0)return i(null,[]);var l=d.length,v=l,x=false,O,U=function(Z){if(!x){if(Z){x=true;return i(Z)}--v<=0&&i()}};U.displayName="parallel#tail";for(O=0;O<l;O++)h(d[O],U)}};s.displayName="parallel";var w;w=Array.prototype.map?function(d,h){return d.map(h)}:function(d,h){var i,l=d.length,v=[];for(i=0;i<l;i++)v[i]=h(d[i],i);return v};w.displayName="map";var K=function(d,
h){var i="pending",l=[],v=false,x=null,O=function(U){h||(h=this);switch(i){case "ready":U.apply(null,x);break;case "running":l.push(U);break;case "pending":l.push(U);i="running";d.call(h,function(){x=Array.prototype.slice.call(arguments);var Z=l,ea=x;if(v){i="pending";l=[];x=null;v=false}else{i="ready";l=null}Z&&Z.forEach(function(ja){ja.apply(null,ea)})});break}return this};O.displayName="once#handler";O.reset=function(){switch(i){case "ready":i="pending";l=[];x=null;break;case "running":v=true;
break}};O.reset.displayName="once#handler.reset";return O};P.once=K;var c=function(d,h){var i,l;for(i in d)if(d.hasOwnProperty(i)){l=d[i];if("function"===typeof l)if(!l.displayName){l.displayName=h?h+"."+i:i;c(l.prototype,l.displayName)}}return d},T=m(Error);T.prototype.init=function(d,h){d=d+" not found";if(h)d="string"===typeof h?d+" "+h:d+" in package "+(h.id||"(unknown)");this.message=d;return this};P.NotFound=T;var fa=m(Error);fa.prototype.init=function(d,h){if("undefined"!==typeof JSON)d=JSON.stringify(d);
this.message="Invalid package definition. "+h+" "+d};P.InvalidPackageDef=fa;var G=function(){var d=function(l){return l.charCodeAt(0)<=32},h=function(l){l=l.charCodeAt(0);return l>=48&&l<=57},i=function(l,v){for(var x=0,O=0,U=0,Z,ea;;O++,U++){Z=l.charAt(O);ea=v.charAt(U);if(!h(Z)&&!h(ea))return x;else if(h(Z))if(h(ea)){if(Z<ea)if(x===0)x=-1;else if(Z>ea)if(x===0)x=+1;else if(Z===0&&ea===0)return x}else return+1;else return-1}};return function(l,v){for(var x=0,O=0,U=0,Z=0,ea,ja,xa;;){U=Z=0;ea=l.charAt(x);
for(ja=v.charAt(O);d(ea)||ea=="0";){if(ea=="0")U++;else U=0;ea=l.charAt(++x)}for(;d(ja)||ja=="0";){if(ja=="0")Z++;else Z=0;ja=v.charAt(++O)}if(h(ea)&&h(ja))if((xa=i(l.substring(x),v.substring(O)))!==0)return xa;if(ea===0&&ja===0)return U-Z;if(ea<ja)return-1;else if(ea>ja)return+1;++x;++O}}}();P.natcompare=G;var ia=function(d){return new Error(""+d+" is an invalid version string")};ia.displayName="invalidVers";var ra=function(d,h,i,l){i=Number(i);l=Number(l);if(isNaN(i))throw ia(d);if(isNaN(l))throw ia(h);
return i-l};ra.displayName="compareNum";var r,da={parse:function(d){d=d.match(/^(=|~)?([\d]+?)(\.([\d]+?)(\.(.+))?)?$/);if(!d)return null;return[d,d[2],d[4]||"0",d[6]||"0",d[1]]},major:function(d){return Number(r(d)[1])},minor:function(d){return Number(r(d)[2])},patch:function(d){d=r(d)[3];return isNaN(Number(d))?d:Number(d)},STRICT:"strict",NORMAL:"normal",mode:function(d){return r(d)[4]==="="?da.STRICT:da.NORMAL},comparePatch:function(d,h){var i,l;if(d===h)return 0;i=Number(d);l=Number(h);return isNaN(i)?
isNaN(l)?G(d,h):-1:isNaN(l)?1:i<l?-1:i>l?1:0},compare:function(d,h){var i;if(d===h)return 0;if(d)d=r(d);if(h)h=r(h);if(!d&&!h)return 0;if(!d)return-1;if(!h)return 1;i=ra(d[0],h[0],d[1],h[1]);if(i===0){i=ra(d[0],h[0],d[2],h[2]);if(i===0)i=da.comparePatch(d[3],h[3])}return i<0?-1:i>0?1:0},compatible:function(d,h){if(!d)return true;if(d===h)return true;if(d&&!r(d))d=null;if(h&&!r(h))h=null;if(!d)return true;if(d===h)return true;if(da.mode(d)===da.STRICT)return h&&da.compare(d,h)===0;else{if(!h)return true;
if(da.major(d)!==da.major(h))return false;return da.compare(d,h)<=0}},normalize:function(d){var h;if(!d||d.length===0)return null;d=da.parse(d);if(!d)return null;h=Number(d[3]);if(isNaN(h))h=d[3];return[Number(d[1]),Number(d[2]),h].join(".")}};P.semver=da;r=da.parse;var pa=P.extend(Object);P.Factory=pa;pa.prototype.init=function(d,h,i){this.id=d;this.pkg=h;this.factory=i};pa.prototype.call=function(d,h){var i=this.factory,l=this.__filename,v=this.__dirname;if("string"===typeof i)i=this.factory=pa.compile(i,
this.pkg.id+":"+this.id);d=d.createRequire(h);var x=h.exports;i.call(x,d,x,h,l,v);return h.exports};var sa=["(function(require, exports, module) {",null,"\n});\n//@ sourceURL=",null,"\n"];pa.compile=function(d,h){sa[1]=d;sa[3]=h||"(unknown module)";d=sa.join("");d=eval(d);sa[1]=sa[3]=null;return d};P.Factory=pa;var oa=P.extend(Object);P.Module=oa;oa.prototype.init=function(d,h,i){this.id=d;this.ownerPackage=h;this.exports={};var l=this;this.resource=function(v){return i.resource(v,l.id,h)}};var la=
P.extend(Object);P.Package=la;la.prototype.init=function(d,h){Q(d)||(d="::"+d);this.id=d;this.config=h;this.isReady=true};la.prototype.get=function(d){return this.config?this.config[d]:undefined};la.prototype.set=function(d,h){if(!this.config)this.config={};this.config[d]=h;return this};la.prototype.requiredVersion=function(d){var h=this.get("dependencies");return h?h[d]:null};la.prototype.canonicalPackageId=function(d,h){if(d===this.get("name")&&da.compatible(h,this.get("version")))return this.id;
return null};la.prototype.packageFor=function(d){if(d===this.id)return this;return null};la.prototype.ensurePackage=function(d,h){return d===this.id?h():h(new T(d,this))};la.prototype.catalogPackages=function(){return[this]};la.prototype.exists=function(d){return!!(this.factories&&this.factories[d])};la.prototype.load=function(d){return this.factories?this.factories[d]:null};var k=function(d,h){return d+":"+h},t=P.extend(Object);P.Loader=t;t.prototype.init=function(d){this.sources=d||[];this.clear()};
t.prototype.clear=function(){this.factories={};this.canonicalIds={};this.packages={};this.packageSources={};this.canonicalPackageIds={}};t.prototype.defaultPackage=new la("default",{name:"default"});t.prototype.anonymousPackage=new la("(anonymous)",{name:"(anonymous)"});t.prototype.canonical=function(d,h,i){var l,v,x,O;if(h&&"string"!==typeof h){i=h;h=null}if(Q(d))return d;if(!i)i=this.anonymousPackage;d=this._resolve(d,h,i);if(Q(d))return d;l=i?i.id:"(null)";h=this.canonicalIds;if(!h)h=this.canonicalIds=
{};h[l]||(h[l]={});h=h[l];if(h[d])return h[d];l=d;v=d.indexOf(":");if(v>=0){x=d.slice(0,v);d=d.slice(v+1);if(d[0]==="/")throw new Error("Absolute path not allowed with packageId");}v=null;if(x&&x.length>0){if(x=this._canonicalPackageId(x,null,i))v=k(x,d)}else{if(i&&i.exists(d))v=k(i.id,d);else{if(x=this._canonicalPackageId(d,null,i))O=this._packageFor(x,i);if(O)if(O.exists("index"))v=k(O.id,"index");else if(O.exists(d))v=k(O.id,d)}if(!v){if(this.defaultPackage)x=this.defaultPackage.id;else if(this.workingPackage)x=
this.workingPackage.id;else if(this.anonymousPackage)x=this.anonymousPackage.id;else return null;if(x)v=k(x,d)}}return h[l]=v};t.prototype.load=function(d,h,i){var l,v,x;if(!h)h=this.anonymousPackage;l=this.factories;if(!l)l=this.factories={};if(l[d])return l[d];v=d.indexOf(":",2);x=d.slice(0,v);v=d.slice(v+1);(h=this._packageFor(x,h))||H("Loader#load - "+x+" not found for "+v);if(!h)return null;i=h.load(v,i);return l[d]=i};t.prototype.catalogPackages=function(d){if(!d)d=this.anonymousPackage;var h=
[],i,l,v={};this.defaultPackage&&h.push(this.defaultPackage);var x=function(O){var U,Z,ea,ja;if(O){Z=O.length;for(U=0;U<Z;U++){ja=O[U];(ea=v[ja.get("name")])||(ea=v[ja.get("name")]={});if(!ea[ja.get("version")]){h.push(ja);ea[ja.get("version")]=ja}}}};d&&x(d.catalogPackages());d=this.sources;l=d.length;for(i=0;i<l;i++)x(d[i].catalogPackages());v=null;return h};t.prototype.canonicalPackageId=function(d,h,i){var l;if(d instanceof la)return d.id;if(Q(d)){l=d.indexOf(":",2);if(l>=0)d=d.slice(0,l);return d}if(h&&
"string"!==typeof h){i=h;h=null}if(!i)i=this.anonymousPackage;l=d.indexOf(":");if(l>=0)d=d.slice(0,l);return this._canonicalPackageId(d,h,i)};t.prototype.packageFor=function(d,h){if(!h)h=this.anonymousPackage;var i=d.indexOf(":",2);if(i>=0)d=d.slice(0,i);return this._packageFor(d,h)};t.prototype.ready=function(d,h){if(!h)h=this.anonymousPackage;var i=d.indexOf(":",2),l;if(i>=0){l=d.slice(i+1);d=d.slice(0,i)}if(this._packageReady(d,h,{})){d=this._packageFor(d,h);if(!d)return false;return!!d.exists(l)}else return false};
t.prototype.ensurePackage=function(d,h,i,l){if(h&&"string"!==typeof h){l=i;i=h;h=null}if(i&&"function"===typeof i){l=i;i=null}if(!i)i=this.anonymousPackage;this._ensurePackage(d,h,i,{},l)};t.prototype._ensurePackage=function(d,h,i,l,v){var x=this,O;O=this._canonicalPackageId(d,h,i);if(!O)return v(new T(d,i));if(l[O])return v();l[O]=true;d=this._sourceForCanonicalPackageId(O,i);if(!d)return v(new T(O,i));d.ensurePackage(O,function(U){var Z,ea,ja;if(U)return v(U);Z=x.packageFor(O,i);if(!Z)return v(new T(O,
i));U=Z.get("dependencies");if(!U)return v();ja=[];for(ea in U)U.hasOwnProperty(ea)&&ja.push({packageId:ea,vers:U[ea]});s(ja,function(xa,ta){x._ensurePackage(xa.packageId,xa.vers,Z,l,ta)})(v)})};t.prototype._canonicalPackageId=function(d,h,i){if(d instanceof la)return d.id;if(Q(d))return d;if(d==="default"&&this.defaultPackage)return this.defaultPackage.id;var l=this.canonicalPackageIds,v,x,O,U,Z;if(!i)i=this.anonymousPackage;if(!i)throw new Error("working package is required");h||(h=i.requiredVersion(d));
v=i.id;if(!l)l=this.canonicalPackageIds={};l[v]||(l[v]={});l=l[v];l[d]||(l[d]={});l=l[d];if(l[h])return l[h];v=this.sources;x=i.canonicalPackageId(d,h);Z=i;if(!x)if(x=i.canonicalPackageId(d,null))throw new Error(i.get("name")+" contains an incompatible nested package "+d+" (expected: "+h+")");if(!x&&v){U=v.length;for(O=0;!x&&O<U;O++){Z=v[O];x=Z.canonicalPackageId(d,h)}}x&&this._cachePackageSource(x,i,Z);return l[h]=x};t.prototype._cachePackageSource=function(d,h,i){var l=this.packageSources;h=h.id;
if(!l)l=this.packageSources={};l[h]||(l[h]={});l=l[h];l[d]=i};t.prototype._sourceForCanonicalPackageId=function(d,h){var i=this.packageSources,l=h.id,v,x;if(!i)i=this.packageSources={};i[l]||(i[l]={});i=i[l];if(i[d])return i[d];l=this.sources;if(h)if(v=h.packageFor(d))x=h;if(!x&&l){h=l.length;for(v=0;!x&&v<h;v++){x=l[v];x.packageFor(d)||(x=null)}}return i[d]=x};t.prototype._packageFor=function(d,h){var i,l;if(this.defaultPackage&&d===this.defaultPackage.id)return this.defaultPackage;i=this.packages;
if(!i)i=this.packages={};if(i[d])return i[d];if(h=this._sourceForCanonicalPackageId(d,h))l=h.packageFor(d);return i[d]=l};t.prototype._packageReady=function(d,h,i){var l;if(i[d])return true;i[d]=true;h=this._packageFor(d,h);if(!h)return false;d=h.get("dependencies");for(l in d)if(d.hasOwnProperty(l)){d=d[l];d=this._canonicalPackageId(l,d,h);if(!d)return false;return this._packageReady(d,h,i)}return true};t.prototype._resolve=function(d,h,i){var l,v,x,O;if(d[0]==="/"&&d.indexOf(":")<0)return this.anonymousPackage.id+
":"+d;if(d.match(/(^\.\.?\/)|(\/\.\.?\/)|(\/\.\.?\/?$)/)){if((l=d.indexOf(":"))>=0){O=d.slice(0,l);d=d.slice(l+1);h=[]}else if(d.match(/^\.\.?\//)){if(!h)throw new Error("id required to resolve relative id: "+d);if(h.indexOf(":")>=0)throw new Error("current moduleId cannot contain packageId");if(i)O=i.id;h=h.split("/");h.pop()}else h=[];x=d.split("/");i=x.length;for(l=0;l<i;l++){v=x[l];if(v===".."){if(h.length<1)throw new Error("invalid path: "+d);h.pop()}else v!=="."&&h.push(v)}d=h.join("/");if(O)d=
k(O,d)}return d};var C=P.extend(Object);P.Sandbox=C;C.prototype.init=function(d,h,i,l){this.loader=d;this.env=h;this.args=i;l&&this.main(l);this.clear()};C.prototype.catalogPackages=function(d){return this.loader.catalogPackages(d)};C.prototype.createRequire=function(d){var h=this,i=d.id,l=d.ownerPackage,v=function(x,O){if(O&&x.indexOf(":")<0){if(O.isPackage)O=O.id;x=O+":"+x}return h.require(x,i,l)};d=v.displayName=(i||"(unknown)")+"#require";v.nativeRequire=h.nativeRequire;v.ensure=function(x,O){if(!q(x)){x=
Array.prototype.slice.call(arguments);O=x.pop()}s(x,function(U,Z){h.ensure(U,i,l,Z)})(function(U){if(U)return O(U);if(O.length<=1)return O();O(null,w(x,function(Z){return h.require(Z,i,l)}))})};v.ensure.displayName=d+".ensure";v.ready=function(x){var O,U;q(x)||(x=Array.prototype.slice.call(arguments));U=x.length;for(O=0;O<U;O++)if(!h.ready(x[O],i,l))return false;return true};v.ready.displayName=d+".ready";v.packageFor=function(x,O){return h.packageFor(x,O,l)};v.packageFor.displayName=d+".packageFor";
v.ensurePackage=function(x,O,U){h.ensurePackage(x,O,l,function(Z){if(Z)return U(Z);if(U.length<=1)return U();U(null,h.packageFor(x,O,l))})};v.ensurePackage.displayName=d+".ensurePackage.displayName";v.catalogPackages=function(){return h.catalogPackages(l)};v.main=h.main();v.env=h.env;v.args=h.args;v.sandbox=h;v.loader=h.loader;v.isTiki=true;return v};C.prototype.Module=oa;C.prototype.module=function(d,h,i){var l,v,x;h=this.loader.canonical(d,h,i);if(!h)throw new T(d,i);l=this.modules;if(!l)l=this.modules=
{};if(d=l[h])return d;v=h.indexOf(":",2);d=h.slice(v+1);v=h.slice(0,v);x=this.loader.packageFor(v,i);if(!x)throw new T(v,i);return d=l[h]=new this.Module(d,x,this)};C.prototype.main=function(d,h){if(d!==undefined){this._mainModule=null;this._mainModuleId=d;this._mainModuleWorkingPackage=h;return this}else{if(!this._mainModule&&this._mainModuleId){h=this._mainModuleWorkingPackage;this._mainModule=this.module(this._mainModuleId,h)}return this._mainModule}};C.prototype.require=function(d,h,i){var l,
v;h=this.loader.canonical(d,h,i);if(!h)throw new T(d,i);v=this.exports;d=this.usedExports;if(!v)v=this.exports={};if(!d)d=this.usedExports={};if(l=v[h]){l=l.exports;d[h]||(d[h]=l);return l}l=this.loader.load(h,i,this);if(!l)throw new T(h,i);i=this.module(h,i);v[h]=i;v=l.call(this,i);i.exports=v;if(d[h]&&d[h]!==v)throw new Error("cyclical requires() in "+h);return v};C.prototype.ready=function(d,h,i){return(d=this.loader.canonical(d,h,i))?this.loader.ready(d):false};C.prototype.ensure=function(d,h,
i,l){var v,x,O;if(h&&"string"!==typeof h){l=i;i=h;h=null}if(i&&"function"===typeof i){l=i;i=null}h=this.loader.canonical(d,h,i);if(!h)return l(new T(d,i));O=h.indexOf(":",2);d=h.slice(O+1);x=h.slice(0,O);v=this.loader;v.ensurePackage(x,i,function(U){if(U)return l(U);U=v.packageFor(x,i);U.exists(d)?l():l(new T(d,U))})};C.prototype.packageFor=function(d,h,i){d=this.loader.canonicalPackageId(d,h,i);if(!d)return null;return this.loader.packageFor(d)};C.prototype.ensurePackage=function(d,h,i,l){if(h&&
"string"!==typeof h){l=i;i=h;h=null}if(i&&"function"===typeof i){l=i;i=null}h=this.loader.canonicalPackageId(d,h,i);if(!h)return l(new T(d,i));this.loader.ensurePackage(h,l)};C.prototype.resource=function(d,h,i){if(!i.resource)return null;return i.resource(d,h)};C.prototype.clear=function(){this.exports={};this.modules={};this.usedExports={};return this};var B=P.extend(Object);P.Browser=B;B.prototype.init=function(){this._ready={};this._unload={};this.clear()};B.prototype.clear=function(){this.packageInfoByName=
{};this.packageInfoById={};this.packages={};this.factories={};this.stylesheetActions={};this.scriptActions={};this.ensureActions={}};B.start=function(d,h,i){var l;l=new B;l.loader=new t([l]);l.sandbox=new C(l.loader,d,h);l.queue=i;l.require=l.sandbox.createRequire({id:"index",ownerPackage:l.loader.anonymousPackage});return l};B.prototype.replay=function(){var d=this.queue,h=d?d.length:0,i,l;this.queue=null;for(i=0;i<h;i++){l=d[i];this[l.m].apply(this,l.a)}return this};B.prototype.start=function(){return this};
B.prototype.global=function(d){if(!ka&&!Aa)return this;var h=function(){return this}(),i,l,v,x,O,U,Z,ea;i=this.globals;if(!i)i=this.globals={};l=this.packageFor(d);if(!l)throw new Error(d+" package not found");v=l.get("dependencies");if(!v)return this;for(x in v)if(v.hasOwnProperty(x)){d=this.loader.canonical(x,l);if(!i[d]){i[d]=true;if(this.sandbox.ready(x,l)){d=this.sandbox.require(x,l);if(O=d.__globals__){ea=O.length;for(Z=0;Z<ea;Z++){U=O[Z];h[U]=d[U]}}else for(U in d)if(d.hasOwnProperty(U))h[U]=
d[U]}}}return this};var V=function(d){var h,i;if(d.length===1){h=null;i=d[0];d=Array.prototype.slice.call(d,1)}else{h=d[0];i=d[1];d=Array.prototype.slice.call(d,2)}return{target:h,method:i,args:d}},ca=function(d,h,i){d[h]||(d[h]=[]);d[h].push(V(i))};B.prototype.addReadyListener=function(){if(this._ready&&this._ready.isReady)this._invoke(V(arguments));else{this._setupReadyListener();ca(this._ready,"queue",arguments)}};B.prototype.addMainListener=function(){if(this._ready&&this._ready.isReady)this._invoke(V(arguments));
else{this._setupReadyListener();ca(this._ready,"mqueue",arguments)}};B.prototype.addUnloadListener=function(){if(this._unload&&this._unload.isUnloading)this._invoke(V(arguments));else{this._setupUnloadListener();ca(this._unload,"queue",arguments)}};B.prototype._invoke=function(d){var h=d.target,i=d.method;if("string"===typeof h)h=this.require(h);if("string"===typeof i)i=h[i];i&&i.apply(h,d.args);d.target=d.method=d.args=null};B.prototype._setupReadyListener=function(){if(this._ready.setup)return this;
this._ready.setup=true;var d=this._ready,h=this,i;i=function(){if(!d.isReady){d.isReady=true;d.cleanup&&d.cleanup();d.cleanup=null;var l,v,x;v=(l=d.queue)?l.length:0;d.queue=null;for(x=0;x<v;x++)h._invoke(l[x]);v=(l=d.mqueue)?l.length:0;d.mqueue=null;for(x=0;x<v;x++)h._invoke(l[x]);h._runMain()}};if("undefined"!==typeof document)if(document.addEventListener){d.cleanup=function(){document.removeEventListener("DOMContentLoaded",i,false);document.removeEventListener("load",i,false)};document.addEventListener("DOMContentLoaded",
i,false);document.addEventListener("load",i,false)}else if(document.attachEvent){d.cleanup=function(){document.detachEvent("onreadystatechange",i);document.detachEvent("onload",i);d.ieHandler=null};document.attachEvent("onreadystatechange",i);document.attachEvent("onload",i);if(document.documentElement.doScroll&&window==window.top){d.ieHandler=function(){if(d.ieHandler&&!d.isReady)try{document.documentElement.doScroll("left")}catch(l){setTimeout(d.ieHandler,0);return}i()};d.ieHandler()}}};B._scheduleUnloadListener=
function(){if(this._unload.setup)return this;this._unload.setup=true;var d=this._unload,h=this,i;d.isUnloading=false;i=function(){if(!d.isUnloading){d.isUnloading=true;d.cleanup&&d.cleanup();d.cleanup=null;var l=d.queue,v=l?l.length:0,x;d.queue=null;for(x=0;x<v;x++)h._invoke(l[x])}};if("undefined"!==typeof document)if(document.addEventListener){d.cleanup=function(){document.removeEventListener("unload",i)};document.addEventListener("unload",i,false)}else if(document.attachEvent){d.cleanup=function(){document.detachEvent("onunload",
i)};document.attachEvent("unload",i)}};B.prototype.main=function(d,h){this.sandbox&&this.sandbox.main(d);this._setupReadyListener();this._main={id:d,method:h}};B.prototype._runMain=function(){if(this._main){var d=this._main.id,h=this._main.method,i=this.require;if(d&&i){this._main=null;i.ensure(d,function(l){if(l)throw l;l=i(d);if("string"===typeof h)h=l[h];h&&h.call(l)})}}};B.prototype._action=function(d){var h;return h=K(function(i){h.resolve=function(l,v){h.resolve=null;i(l,v)};d()})};B.prototype._resolve=
function(d,h,i){if(d[h])d[h].resolve&&d[h].resolve(null,i);else d[h]=function(l){l(null,i)};return this};B.prototype._fail=function(d,h,i){d[h].resolve&&d[h].resolve(i)};B.prototype._normalize=function(d,h){Q(h)||(h="::"+h);d.id=h;d.version=da.normalize(d.version);d["tiki:external"]=!!d["tiki:external"];d["tiki:private"]=!!d["tiki:private"];var i=d["tiki:base"];if(d["tiki:resources"])d["tiki:resources"]=w(d["tiki:resources"],function(x){if("string"===typeof x)x={id:h+":"+x,name:x};if(!x.name)throw new fa(d,
"resources must have a name");if(!x.id)x.id=h+":"+x.name;if(!Q(x.id))x.id="::"+x.id;if(!x.type)x.type=x.name.match(/\.js$/)?"script":x.name.match(/\.css$/)?"stylesheet":"resource";if(!x.url)x.url=i?i+"/"+x.name:x.id+x.name;return x});if(!d.dependencies)d.dependencies={};var l=d["tiki:nested"],v;if(l)for(v in l){if(l.hasOwnProperty(v))Q(l[v])||(l[v]="::"+l[v])}else d["tiki:nested"]={};return d};B.prototype.register=function(d,h){var i,l,v,x=-1;h=this._normalize(h,d);d=h.id;i=this.packageInfoById;if(!i)i=
this.packageInfoById={};if(i[d]){if(!i[d]["tiki:external"])return this;l=i[d]}i[d]=h;if(h.name){d=h.name;v=h.version;i=this.packageInfoByName;if(!i)i=this.packageInfoByName={};i[d]||(i[d]={});i=i[d];if(!i[v]||i[v].length<=1)i[v]=[h];else{if(l)x=i[v].indexOf(l);if(x>=0)i[v]=i[v].slice(0,x).concat(i[v].slice(x+1));i[v].push(h)}}return this};B.prototype.module=function(d,h){Q(d)||(d="::"+d);this.factories[d]=h;return this};B.prototype.script=function(d){Q(d)||(d="::"+d);this._resolve(this.scriptActions,
d,true)};B.prototype.stylesheet=function(d){Q(d)||(d="::"+d);this._resolve(this.stylesheetActions,d,true)};var ka="undefined"!==typeof document&&document.createElement,Aa="undefined"!==typeof XMLHttpRequest;B.prototype.xhr=!ka;B.prototype.autowrap=false;var Fa=function(d){if(!d)return null;for(var h=d.length;--h>=0;)if(!d[h]["tiki:private"])return d[h];return null};B.prototype.canonicalPackageId=function(d,h){d=this.packageInfoByName[d];var i,l,v;if(h)h=da.normalize(h);if(!d)return null;if(d[h]&&
d[h].length===1)return d[h][0].id;for(l in d)if(d.hasOwnProperty(l))if(da.compatible(h,l))if(!i||da.compare(v,l)<0)if(i=Fa(d[l]))v=l;return i?i.id:null};B.prototype.packageFor=function(d){var h=this.packages[d];if(h)return h;if((h=this.packageInfoById[d])&&!h["tiki:external"]){h=new this.Package(d,h,this);return this.packages[d]=h}return null};B.prototype.ensurePackage=function(d,h){var i=this.ensureActions[d];if(i)return i(h);var l=this.packageInfoById[d];if(!l)return h(new T(d,"browser package info"));
var v=this;i=K(function(x){var O=1,U=false,Z,ea=function(Ba){if(!Z){if(Ba){Z=true;return x(Ba)}O-=1;if(O<=0&&U)return x(null,l)}},ja=l.dependencies,xa=l["tiki:nested"],ta,qa;for(ta in ja)if(ja.hasOwnProperty(ta)){qa=xa[ta];if(!qa){qa=ja[ta];qa=v.canonicalPackageId(ta,qa)}if(qa&&v.packageInfoById[d]){O++;v.ensurePackage(qa,ea)}}xa=(ja=l["tiki:resources"])?ja.length:0;for(ta=0;ta<xa;ta++){qa=ja[ta];if(qa.type!=="resource")if(qa.type==="script"){O++;v.ensureScript(qa.id,qa.url,ea)}else if(qa.type===
"stylesheet"){O++;v.ensureStylesheet(qa.id,qa.url,ea)}}U=true;ea()});this.ensureActions[d]=i;i(h)};B.prototype.ensureScript=function(d,h,i){var l=this.scriptActions[d];if(l)return l(i);var v=this;l=this._action(function(){v._loadScript(d,h)});this.scriptActions[d]=l;return l(i)};B.prototype.ensureStylesheet=function(d,h,i){var l=this.stylesheetActions[d];if(l)return l(i);var v=this;l=this._action(function(){v._loadStylesheet(d,h)});this.stylesheetActions[d]=l;return l(i)};B.prototype._injectScript=
function(d,h){var i;d=document.body;i=document.createElement("script");i.src=h;d.appendChild(i)};B.prototype._xhrScript=function(d,h){var i=this.autowrap,l=new XMLHttpRequest;l.open("GET",h,true);l.onreadystatechange=function(){if(!(l.readyState!==4||l.status!==200&&l.status!==0)){var v=l.responseText;if(i)v="tiki.module('"+d+"', function(require, exports, module) {"+v+"});tiki.script('"+d+"');";eval(v+"\n//@ sourceURL="+h)}};l.send(null)};B.prototype._loadScript=function(d,h){if(this.autowrap){this.xhr=
true;Aa||H("Autowrap is on but XHR is not available. Danger ahead.")}if(Aa&&ka)if(this.xhr)try{return this._xhrScript(d,h)}catch(i){return this._injectScript(d,h)}else try{return this._injectScript(d,h)}catch(l){return this._xhrScript(d,h)}else if(Aa)return this._xhrScript(d,h);else if(ka)return this._injectScript(d,h);H("Browser#_loadScript() not supported on this platform.");this.script(d)};B.prototype._loadStylesheet=ka?function(d,h){var i,l;i=document.getElementsByTagName("head")[0]||document.body;
l=document.createElement("link");l.rel="stylesheet";l.href=h;l.type="text/css";i.appendChild(l);this.stylesheet(d)}:function(d){H("Browser#_loadStylesheet() not supported on this platform.");this.stylesheet(d)};oa=la.extend();B.prototype.Package=oa;oa.prototype.init=function(d,h,i){la.prototype.init.call(this,d,h);this.source=i};oa.prototype.canonicalPackageId=function(d,h){var i;if(i=la.prototype.canonicalPackageId.call(this,d,h))return i;i=(this.get("tiki:nested")||{})[d];if(!i)return null;return(d=
this.source.packageInfoById[i])&&da.compatible(h,d.version)?i:null};oa.prototype.packageFor=function(d){var h=la.prototype.packageFor.call(this,d);return h?h:this.source.packageFor(d)};oa.prototype.ensurePackage=function(d,h){if(d===this.id)return h();this.source.ensurePackage(d,h)};oa.prototype.catalogPackages=function(){var d=[this],h,i;h=this.get("tiki:nested")||{};for(i in h)h.hasOwnProperty(i)&&d.push(this.source.packageFor(h[i]));return d};oa.prototype.exists=function(d){return!!this.source.factories[this.id+
":"+d]};oa.prototype.load=function(d){var h;return(h=this.source.factories[this.id+":"+d])?new this.Factory(d,this,h):null};oa.prototype.Factory=pa;c(P,"tiki")});R=R.start();R.replay();bespin.tiki=R})();bespin.tiki.register("::jquery",{name:"jquery",dependencies:{}});
bespin.tiki.module("jquery:index",function(R,u){function P(){if(!c.isReady){try{G.documentElement.doScroll("left")}catch(a){setTimeout(P,1);return}c.ready()}}function Y(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function Q(a,b,e,g,f,o){var p=a.length;if(typeof b==="object"){for(var F in b)Q(a,F,b[F],g,f,e);return a}if(e!==undefined){g=!o&&g&&c.isFunction(e);for(F=0;F<p;F++)f(a[F],b,g?e.call(a[F],
F,f(a[F],b)):e,o);return a}return p?f(a[0],b):undefined}function H(){return(new Date).getTime()}function q(){return false}function y(){return true}function I(a,b,e){e[0].type=a;return c.event.handle.apply(b,e)}function W(a){var b,e=[],g=[],f=arguments,o,p,F,z,E,S;p=c.data(this,"events");if(!(a.liveFired===this||!p||!p.live||a.button&&a.type==="click")){a.liveFired=this;var $=p.live.slice(0);for(z=0;z<$.length;z++){p=$[z];p.origType.replace(Z,"")===a.type?g.push(p.selector):$.splice(z--,1)}o=c(a.target).closest(g,
a.currentTarget);E=0;for(S=o.length;E<S;E++)for(z=0;z<$.length;z++){p=$[z];if(o[E].selector===p.selector){F=o[E].elem;g=null;if(p.preType==="mouseenter"||p.preType==="mouseleave")g=c(a.relatedTarget).closest(p.selector)[0];if(!g||g!==F)e.push({elem:F,handleObj:p})}}E=0;for(S=e.length;E<S;E++){o=e[E];a.currentTarget=o.elem;a.data=o.handleObj.data;a.handleObj=o.handleObj;if(o.handleObj.origHandler.apply(o.elem,f)===false){b=false;break}}return b}}function J(a,b){return"live."+(a&&a!=="*"?a+".":"")+
b.replace(/\./g,"`").replace(/ /g,"&")}function M(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function m(a,b){var e=0;b.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var g=c.data(a[e++]),f=c.data(this,g);if(g=g&&g.events){delete f.handle;f.events={};for(var o in g)for(var p in g[o])c.event.add(this,o,g[o][p],g[o][p].data)}}})}function s(a,b,e){var g,f,o;b=b&&b[0]?b[0].ownerDocument||b[0]:G;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===G&&!Qa.test(a[0])&&(c.support.checkClone||
!Ra.test(a[0]))){f=true;if(o=c.fragments[a[0]])if(o!==1)g=o}if(!g){g=b.createDocumentFragment();c.clean(a,b,g,e)}if(f)c.fragments[a[0]]=o?g:1;return{fragment:g,cacheable:f}}function w(a,b){var e={};c.each(Sa.concat.apply([],Sa.slice(0,b)),function(){e[this]=a});return e}function K(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},T=window.jQuery,fa=window.$,G=window.document,ia,ra=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,
r=/^.[^:#\[\.,]*$/,da=/\S/,pa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,sa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;R=navigator.userAgent;var oa=false,la=[],k,t=Object.prototype.toString,C=Object.prototype.hasOwnProperty,B=Array.prototype.push,V=Array.prototype.slice,ca=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var e,g;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=G;this[0]=G.body;this.selector="body";this.length=1;return this}if(typeof a===
"string")if((e=ra.exec(a))&&(e[1]||!b))if(e[1]){g=b?b.ownerDocument||b:G;if(a=sa.exec(a))if(c.isPlainObject(b)){a=[G.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[g.createElement(a[1])];else{a=s([e[1]],[g]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=G.getElementById(e[2])){if(b.id!==e[2])return ia.find(a);this.length=1;this[0]=b}this.context=G;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=G;a=G.getElementsByTagName(a);
return c.merge(this,a)}else return!b||b.jquery?(b||ia).find(a):c(b).find(a);else if(c.isFunction(a))return ia.ready(a);if(a.selector!==undefined){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return V.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,e){var g=c();c.isArray(a)?B.apply(g,a):c.merge(g,a);g.prevObject=this;
g.context=this.context;if(b==="find")g.selector=this.selector+(this.selector?" ":"")+e;else if(b)g.selector=this.selector+"."+b+"("+e+")";return g},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(G,c);else la&&la.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(V.apply(this,arguments),"slice",V.call(arguments).join(","))},
map:function(a){return this.pushStack(c.map(this,function(b,e){return a.call(b,e,b)}))},end:function(){return this.prevObject||c(null)},push:B,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,f,o,p,F;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(e===b){a=this;--b}for(;b<e;b++)if((f=arguments[b])!=null)for(o in f){p=a[o];F=f[o];if(a!==F)if(g&&F&&(c.isPlainObject(F)||
c.isArray(F))){p=p&&(c.isPlainObject(p)||c.isArray(p))?p:c.isArray(F)?[]:{};a[o]=c.extend(g,p,F)}else if(F!==undefined)a[o]=F}return a};c.extend({noConflict:function(a){window.$=fa;if(a)window.jQuery=T;return c},isReady:false,ready:function(){if(!c.isReady){if(!G.body)return setTimeout(c.ready,13);c.isReady=true;if(la){for(var a,b=0;a=la[b++];)a.call(G,c);la=null}c.fn.triggerHandler&&c(G).triggerHandler("ready")}},bindReady:function(){if(!oa){oa=true;if(G.readyState==="complete")return c.ready();
if(G.addEventListener){G.addEventListener("DOMContentLoaded",k,false);window.addEventListener("load",c.ready,false)}else if(G.attachEvent){G.attachEvent("onreadystatechange",k);window.attachEvent("onload",c.ready);var a=false;try{a=window.frameElement==null}catch(b){}G.documentElement.doScroll&&a&&P()}}},isFunction:function(a){return t.call(a)==="[object Function]"},isArray:function(a){return t.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||t.call(a)!=="[object Object]"||a.nodeType||
a.setInterval)return false;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===undefined||C.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return window.JSON&&window.JSON.parse?window.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&da.test(a)){var b=G.getElementsByTagName("head")[0]||G.documentElement,e=G.createElement("script");e.type="text/javascript";if(c.support.scriptEval)e.appendChild(G.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===
b.toUpperCase()},each:function(a,b,e){var g,f=0,o=a.length,p=o===undefined||c.isFunction(a);if(e)if(p)for(g in a){if(b.apply(a[g],e)===false)break}else for(;f<o;){if(b.apply(a[f++],e)===false)break}else if(p)for(g in a){if(b.call(a[g],g,a[g])===false)break}else for(e=a[0];f<o&&b.call(e,f,e)!==false;e=a[++f]);return a},trim:function(a){return(a||"").replace(pa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?
B.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var e=0,g=b.length;e<g;e++)if(b[e]===a)return e;return-1},merge:function(a,b){var e=a.length,g=0;if(typeof b.length==="number")for(var f=b.length;g<f;g++)a[e++]=b[g];else for(;b[g]!==undefined;)a[e++]=b[g++];a.length=e;return a},grep:function(a,b,e){for(var g=[],f=0,o=a.length;f<o;f++)!e!==!b(a[f],f)&&g.push(a[f]);return g},map:function(a,b,e){for(var g=[],f,o=0,p=a.length;o<p;o++){f=b(a[o],o,e);if(f!=null)g[g.length]=
f}return g.concat.apply([],g)},guid:1,proxy:function(a,b,e){if(arguments.length===2)if(typeof b==="string"){e=a;a=e[b];b=undefined}else if(b&&!c.isFunction(b)){e=b;b=undefined}if(!b&&a)b=function(){return a.apply(e||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||
"",version:a[2]||"0"}},browser:{}});R=c.uaMatch(R);if(R.browser){c.browser[R.browser]=true;c.browser.version=R.version}if(c.browser.webkit)c.browser.safari=true;if(ca)c.inArray=function(a,b){return ca.call(b,a)};ia=c(G);if(G.addEventListener)k=function(){G.removeEventListener("DOMContentLoaded",k,false);c.ready()};else if(G.attachEvent)k=function(){if(G.readyState==="complete"){G.detachEvent("onreadystatechange",k);c.ready()}};(function(){c.support={};var a=G.documentElement,b=G.createElement("script"),
e=G.createElement("div"),g="script"+H();e.style.display="none";e.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=e.getElementsByTagName("*"),o=e.getElementsByTagName("a")[0];if(!(!f||!f.length||!o)){c.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(o.getAttribute("style")),hrefNormalized:o.getAttribute("href")===
"/a",opacity:/^0.55$/.test(o.style.opacity),cssFloat:!!o.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:G.createElement("select").appendChild(G.createElement("option")).selected,parentNode:e.removeChild(e.appendChild(G.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(G.createTextNode("window."+g+"=1;"))}catch(p){}a.insertBefore(b,a.firstChild);
if(window[g]){c.support.scriptEval=true;delete window[g]}try{delete b.test}catch(F){c.support.deleteExpando=false}a.removeChild(b);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function z(){c.support.noCloneEvent=false;e.detachEvent("onclick",z)});e.cloneNode(true).fireEvent("onclick")}e=G.createElement("div");e.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=G.createDocumentFragment();a.appendChild(e.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;
c(function(){var z=G.createElement("div");z.style.width=z.style.paddingLeft="1px";G.body.appendChild(z);c.boxModel=c.support.boxModel=z.offsetWidth===2;G.body.removeChild(z).style.display="none"});a=function(z){var E=G.createElement("div");z="on"+z;var S=z in E;if(!S){E.setAttribute(z,"return;");S=typeof E[z]==="function"}return S};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=e=f=o=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",
cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ka="jQuery"+H(),Aa=0,Fa={};c.extend({cache:{},expando:ka,noData:{embed:true,object:true,applet:true},data:function(a,b,e){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==window?Fa:a;var g=a[ka],f=c.cache;if(!g&&typeof b==="string"&&e===undefined)return null;g||(g=++Aa);if(typeof b==="object"){a[ka]=g;f[g]=c.extend(true,{},b)}else if(!f[g]){a[ka]=g;f[g]={}}a=f[g];
if(e!==undefined)a[b]=e;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==window?Fa:a;var e=a[ka],g=c.cache,f=g[e];if(b){if(f){delete f[b];c.isEmptyObject(f)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);delete g[e]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,
a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===undefined){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===undefined&&this.length)g=c.data(this[0],a);return g===undefined&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,e){if(a){b=(b||"fx")+"queue";var g=c.data(a,b);if(!e)return g||[];if(!g||c.isArray(e))g=c.data(a,
b,c.makeArray(e));else g.push(e);return g}},dequeue:function(a,b){b=b||"fx";var e=c.queue(a,b),g=e.shift();if(g==="inprogress")g=e.shift();if(g){b==="fx"&&e.unshift("inprogress");g.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===undefined)return c.queue(this[0],a);return this.each(function(){var e=c.queue(this,a,b);a==="fx"&&e[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},
delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var e=this;setTimeout(function(){c.dequeue(e,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var d=/[\n\t]/g,h=/\s+/,i=/\r/g,l=/href|src|style/,v=/(button|input)/i,x=/(button|input|object|select|textarea)/i,O=/^(a|area)$/i,U=/radio|checkbox/;c.fn.extend({attr:function(a,b){return Q(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},
addClass:function(a){if(c.isFunction(a))return this.each(function(E){var S=c(this);S.addClass(a.call(this,E,S.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(h),e=0,g=this.length;e<g;e++){var f=this[e];if(f.nodeType===1)if(f.className){for(var o=" "+f.className+" ",p=f.className,F=0,z=b.length;F<z;F++)if(o.indexOf(" "+b[F]+" ")<0)p+=" "+b[F];f.className=c.trim(p)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(z){var E=c(this);
E.removeClass(a.call(this,z,E.attr("class")))});if(a&&typeof a==="string"||a===undefined)for(var b=(a||"").split(h),e=0,g=this.length;e<g;e++){var f=this[e];if(f.nodeType===1&&f.className)if(a){for(var o=(" "+f.className+" ").replace(d," "),p=0,F=b.length;p<F;p++)o=o.replace(" "+b[p]+" "," ");f.className=c.trim(o)}else f.className=""}return this},toggleClass:function(a,b){var e=typeof a,g=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var o=c(this);o.toggleClass(a.call(this,
f,o.attr("class"),b),b)});return this.each(function(){if(e==="string")for(var f,o=0,p=c(this),F=b,z=a.split(h);f=z[o++];){F=g?F:!p.hasClass(f);p[F?"addClass":"removeClass"](f)}else if(e==="undefined"||e==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,e=this.length;b<e;b++)if((" "+this[b].className+" ").replace(d," ").indexOf(a)>-1)return true;return false},
val:function(a){if(a===undefined){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var e=b.selectedIndex,g=[],f=b.options;b=b.type==="select-one";if(e<0)return null;var o=b?e:0;for(e=b?e+1:f.length;o<e;o++){var p=f[o];if(p.selected){a=c(p).val();if(b)return a;g.push(a)}}return g}if(U.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(i,"")}}else{var F=c.isFunction(a);
return this.each(function(z){var E=c(this),S=a;if(this.nodeType===1){if(F)S=a.call(this,z,E.val());if(typeof S==="number")S+="";if(c.isArray(S)&&U.test(this.type))this.checked=c.inArray(E.val(),S)>=0;else if(c.nodeName(this,"select")){var $=c.makeArray(S);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),$)>=0});if(!$.length)this.selectedIndex=-1}else this.value=S}})}}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,
b,e,g){if(!(!a||a.nodeType===3||a.nodeType===8)){if(g&&b in c.attrFn)return c(a)[b](e);g=a.nodeType!==1||!c.isXMLDoc(a);var f=e!==undefined;b=g&&c.props[b]||b;if(a.nodeType===1){var o=l.test(b);if(b in a&&g&&!o){if(f){b==="type"&&v.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=e}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:x.test(a.nodeName)||O.test(a.nodeName)&&
a.href?0:undefined;return a[b]}if(!c.support.style&&g&&b==="style"){if(f)a.style.cssText=""+e;return a.style.cssText}f&&a.setAttribute(b,""+e);a=!c.support.hrefNormalized&&g&&o?a.getAttribute(b,2):a.getAttribute(b);return a===null?undefined:a}return c.style(a,b,e)}}});var Z=/\.(.*)$/,ea=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,e,g){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==window&&!a.frameElement)a=window;var f,o;if(e.handler){f=
e;e=f.handler}if(!e.guid)e.guid=c.guid++;if(o=c.data(a)){var p=o.events=o.events||{},F=o.handle;if(!F)o.handle=F=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(F.elem,arguments):undefined};F.elem=a;b=b.split(" ");for(var z,E=0,S;z=b[E++];){o=f?c.extend({},f):{handler:e,data:g};if(z.indexOf(".")>-1){S=z.split(".");z=S.shift();o.namespace=S.slice(0).sort().join(".")}else{S=[];o.namespace=""}o.type=z;o.guid=e.guid;var $=p[z],ha=c.event.special[z]||{};if(!$){$=p[z]=
[];if(!ha.setup||ha.setup.call(a,g,S,F)===false)if(a.addEventListener)a.addEventListener(z,F,false);else a.attachEvent&&a.attachEvent("on"+z,F)}if(ha.add){ha.add.call(a,o);if(!o.handler.guid)o.handler.guid=e.guid}$.push(o);c.event.global[z]=true}a=null}}},global:{},remove:function(a,b,e,g){if(!(a.nodeType===3||a.nodeType===8)){var f,o=0,p,F,z,E,S,$,ha=c.data(a),na=ha&&ha.events;if(ha&&na){if(b&&b.type){e=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in na)c.event.remove(a,
f+b)}else{for(b=b.split(" ");f=b[o++];){E=f;p=f.indexOf(".")<0;F=[];if(!p){F=f.split(".");f=F.shift();z=new RegExp("(^|\\.)"+c.map(F.slice(0).sort(),ea).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(S=na[f])if(e){E=c.event.special[f]||{};for(ma=g||0;ma<S.length;ma++){$=S[ma];if(e.guid===$.guid){if(p||z.test($.namespace)){g==null&&S.splice(ma--,1);E.remove&&E.remove.call(a,$)}if(g!=null)break}}if(S.length===0||g!=null&&S.length===1){if(!E.teardown||E.teardown.call(a,F)===false)ja(a,f,ha.handle);delete na[f]}}else for(var ma=
0;ma<S.length;ma++){$=S[ma];if(p||z.test($.namespace)){c.event.remove(a,E,$.handler,ma);S.splice(ma--,1)}}}if(c.isEmptyObject(na)){if(b=ha.handle)b.elem=null;delete ha.events;delete ha.handle;c.isEmptyObject(ha)&&c.removeData(a)}}}}},trigger:function(a,b,e,g){var f=a.type||a;if(!g){a=typeof a==="object"?a[ka]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!e){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&
c.event.trigger(a,b,this.handle.elem)})}if(!e||e.nodeType===3||e.nodeType===8)return;a.result=undefined;a.target=e;b=c.makeArray(b);b.unshift(a)}a.currentTarget=e;(g=c.data(e,"handle"))&&g.apply(e,b);g=e.parentNode||e.ownerDocument;try{if(!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()]))if(e["on"+f]&&e["on"+f].apply(e,b)===false)a.result=false}catch(o){}if(!a.isPropagationStopped()&&g)c.event.trigger(a,b,g,true);else if(!a.isDefaultPrevented()){g=a.target;var p,F=c.nodeName(g,"a")&&f==="click",
z=c.event.special[f]||{};if((!z._default||z._default.call(e,a)===false)&&!F&&!(g&&g.nodeName&&c.noData[g.nodeName.toLowerCase()])){try{if(g[f]){if(p=g["on"+f])g["on"+f]=null;c.event.triggered=true;g[f]()}}catch(E){}if(p)g["on"+f]=p;c.event.triggered=false}}},handle:function(a){var b,e,g,f;a=arguments[0]=c.event.fix(a||window.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();g=new RegExp("(^|\\.)"+e.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}f=
c.data(this,"events");e=f[a.type];if(f&&e){e=e.slice(0);f=0;for(var o=e.length;f<o;f++){var p=e[f];if(b||g.test(p.namespace)){a.handler=p.handler;a.data=p.data;a.handleObj=p;p=p.handler.apply(this,arguments);if(p!==undefined){a.result=p;if(p===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[ka])return a;var b=a;a=c.Event(b);for(var e=this.props.length,g;e;){g=this.props[--e];a[g]=b[g]}if(!a.target)a.target=a.srcElement||G;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=G.documentElement;e=G.body;a.pageX=a.clientX+(b&&b.scrollLeft||e&&e.scrollLeft||0)-(b&&b.clientLeft||e&&e.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
e&&e.scrollTop||0)-(b&&b.clientTop||e&&e.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==undefined)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:W}))},remove:function(a){var b=true,e=a.origType.replace(Z,"");c.each(c.data(this,
"events").live||[],function(){if(e===this.origType.replace(Z,""))return b=false});b&&c.event.remove(this,a.origType,W)}},beforeunload:{setup:function(a,b,e){if(this.setInterval)this.onbeforeunload=e;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var ja=G.removeEventListener?function(a,b,e){a.removeEventListener(b,e,false)}:function(a,b,e){a.detachEvent("on"+b,e)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=H();this[ka]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=y;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:q,isPropagationStopped:q,
isImmediatePropagationStopped:q};var xa=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(e){}},ta=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(e){c.event.add(this,b,e&&e.selector?ta:xa,a)},teardown:function(e){c.event.remove(this,b,e&&e.selector?ta:xa)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,e=b.type;if((e==="submit"||e==="image")&&c(b).closest("form").length)return I("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,e=b.type;if((e==="text"||e==="password")&&c(b).closest("form").length&&a.keyCode===13)return I("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var qa=
/textarea|input|select/i,Ba,Ta=function(a){var b=a.type,e=a.value;if(b==="radio"||b==="checkbox")e=a.checked;else if(b==="select-multiple")e=a.selectedIndex>-1?c.map(a.options,function(g){return g.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")e=a.selectedIndex;return e},Ja=function(a,b){var e=a.target,g,f;if(!(!qa.test(e.nodeName)||e.readOnly)){g=c.data(e,"_change_data");f=Ta(e);if(a.type!=="focusout"||e.type!=="radio")c.data(e,"_change_data",f);if(!(g===undefined||f===g))if(g!=
null||f){a.type="change";return c.event.trigger(a,b,e)}}};c.event.special.change={filters:{focusout:Ja,click:function(a){var b=a.target,e=b.type;if(e==="radio"||e==="checkbox"||b.nodeName.toLowerCase()==="select")return Ja.call(this,a)},keydown:function(a){var b=a.target,e=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(e==="checkbox"||e==="radio")||e==="select-multiple")return Ja.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Ta(a))}},
setup:function(){if(this.type==="file")return false;for(var a in Ba)c.event.add(this,a+".specialChange",Ba[a]);return qa.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return qa.test(this.nodeName)}};Ba=c.event.special.change.filters}G.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function e(g){g=c.event.fix(g);g.type=b;return c.event.handle.call(this,g)}c.event.special[b]={setup:function(){this.addEventListener(a,e,true)},teardown:function(){this.removeEventListener(a,
e,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(e,g,f){if(typeof e==="object"){for(var o in e)this[b](o,g,e[o],f);return this}if(c.isFunction(g)){f=g;g=undefined}var p=b==="one"?c.proxy(f,function(z){c(this).unbind(z,p);return f.apply(this,arguments)}):f;if(e==="unload"&&b!=="one")this.one(e,g,f);else{o=0;for(var F=this.length;o<F;o++)c.event.add(this[o],e,p,g)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var e in a)this.unbind(e,
a[e]);else{e=0;for(var g=this.length;e<g;e++)c.event.remove(this[e],a,b)}return this},delegate:function(a,b,e,g){return this.live(b,e,g,a)},undelegate:function(a,b,e){return arguments.length===0?this.unbind("live"):this.die(b,null,e,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,e=1;e<
b.length;)c.proxy(a,b[e++]);return this.click(c.proxy(a,function(g){var f=(c.data(this,"lastToggle"+a.guid)||0)%e;c.data(this,"lastToggle"+a.guid,f+1);g.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ua={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(e,g,f,o){var p,F=0,z,E,S=o||this.selector,$=o?this:c(this.context);if(c.isFunction(g)){f=
g;g=undefined}for(e=(e||"").split(" ");(p=e[F++])!=null;){o=Z.exec(p);z="";if(o){z=o[0];p=p.replace(Z,"")}if(p==="hover")e.push("mouseenter"+z,"mouseleave"+z);else{E=p;if(p==="focus"||p==="blur"){e.push(Ua[p]+z);p+=z}else p=(Ua[p]||p)+z;b==="live"?$.each(function(){c.event.add(this,J(p,S),{data:g,selector:S,handler:f,origType:p,origHandler:f,preType:E})}):$.unbind(J(p,S),f)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){c.fn[b]=function(e){return e?this.bind(b,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});window.attachEvent&&!window.addEventListener&&window.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(j){for(var n="",A,D=0;j[D];D++){A=j[D];if(A.nodeType===3||A.nodeType===4)n+=A.nodeValue;else if(A.nodeType!==8)n+=a(A.childNodes)}return n}function b(j,n,A,D,N,L){N=0;for(var aa=D.length;N<
aa;N++){var X=D[N];if(X){X=X[j];for(var ga=false;X;){if(X.sizcache===A){ga=D[X.sizset];break}if(X.nodeType===1&&!L){X.sizcache=A;X.sizset=N}if(X.nodeName.toLowerCase()===n){ga=X;break}X=X[j]}D[N]=ga}}}function e(j,n,A,D,N,L){N=0;for(var aa=D.length;N<aa;N++){var X=D[N];if(X){X=X[j];for(var ga=false;X;){if(X.sizcache===A){ga=D[X.sizset];break}if(X.nodeType===1){if(!L){X.sizcache=A;X.sizset=N}if(typeof n!=="string"){if(X===n){ga=true;break}}else if(z.filter(n,[X]).length>0){ga=X;break}}X=X[j]}D[N]=
ga}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f=0,o=Object.prototype.toString,p=false,F=true;[0,0].sort(function(){F=false;return 0});var z=function(j,n,A,D){A=A||[];var N=n=n||G;if(n.nodeType!==1&&n.nodeType!==9)return[];if(!j||typeof j!=="string")return A;for(var L=[],aa,X,ga,Ea,ya=true,Ca=ba(n),za=j;(g.exec(""),aa=g.exec(za))!==null;){za=aa[3];L.push(aa[1]);if(aa[2]){Ea=aa[3];break}}if(L.length>1&&
S.exec(j))if(L.length===2&&E.relative[L[0]])X=Ka(L[0]+L[1],n);else for(X=E.relative[L[0]]?[n]:z(L.shift(),n);L.length;){j=L.shift();if(E.relative[j])j+=L.shift();X=Ka(j,X)}else{if(!D&&L.length>1&&n.nodeType===9&&!Ca&&E.match.ID.test(L[0])&&!E.match.ID.test(L[L.length-1])){aa=z.find(L.shift(),n,Ca);n=aa.expr?z.filter(aa.expr,aa.set)[0]:aa.set[0]}if(n){aa=D?{expr:L.pop(),set:ha(D)}:z.find(L.pop(),L.length===1&&(L[0]==="~"||L[0]==="+")&&n.parentNode?n.parentNode:n,Ca);X=aa.expr?z.filter(aa.expr,aa.set):
aa.set;if(L.length>0)ga=ha(X);else ya=false;for(;L.length;){var ua=L.pop();aa=ua;if(E.relative[ua])aa=L.pop();else ua="";if(aa==null)aa=n;E.relative[ua](ga,aa,Ca)}}else ga=[]}ga||(ga=X);ga||z.error(ua||j);if(o.call(ga)==="[object Array]")if(ya)if(n&&n.nodeType===1)for(j=0;ga[j]!=null;j++){if(ga[j]&&(ga[j]===true||ga[j].nodeType===1&&va(n,ga[j])))A.push(X[j])}else for(j=0;ga[j]!=null;j++)ga[j]&&ga[j].nodeType===1&&A.push(X[j]);else A.push.apply(A,ga);else ha(ga,A);if(Ea){z(Ea,N,A,D);z.uniqueSort(A)}return A};
z.uniqueSort=function(j){if(ma){p=F;j.sort(ma);if(p)for(var n=1;n<j.length;n++)j[n]===j[n-1]&&j.splice(n--,1)}return j};z.matches=function(j,n){return z(j,null,null,n)};z.find=function(j,n,A){var D,N;if(!j)return[];for(var L=0,aa=E.order.length;L<aa;L++){var X=E.order[L];if(N=E.leftMatch[X].exec(j)){var ga=N[1];N.splice(1,1);if(ga.substr(ga.length-1)!=="\\"){N[1]=(N[1]||"").replace(/\\/g,"");D=E.find[X](N,n,A);if(D!=null){j=j.replace(E.match[X],"");break}}}}D||(D=n.getElementsByTagName("*"));return{set:D,
expr:j}};z.filter=function(j,n,A,D){for(var N=j,L=[],aa=n,X,ga,Ea=n&&n[0]&&ba(n[0]);j&&n.length;){for(var ya in E.filter)if((X=E.leftMatch[ya].exec(j))!=null&&X[2]){var Ca=E.filter[ya],za,ua;ua=X[1];ga=false;X.splice(1,1);if(ua.substr(ua.length-1)!=="\\"){if(aa===L)L=[];if(E.preFilter[ya])if(X=E.preFilter[ya](X,aa,A,L,D,Ea)){if(X===true)continue}else ga=za=true;if(X)for(var Ga=0;(ua=aa[Ga])!=null;Ga++)if(ua){za=Ca(ua,X,Ga,aa);var Va=D^!!za;if(A&&za!=null)if(Va)ga=true;else aa[Ga]=false;else if(Va){L.push(ua);
ga=true}}if(za!==undefined){A||(aa=L);j=j.replace(E.match[ya],"");if(!ga)return[];break}}}if(j===N)if(ga==null)z.error(j);else break;N=j}return aa};z.error=function(j){throw"Syntax error, unrecognized expression: "+j;};var E=z.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(j){return j.getAttribute("href")}},relative:{"+":function(j,n){var A=typeof n==="string",D=A&&!/\W/.test(n);A=A&&!D;if(D)n=n.toLowerCase();D=0;for(var N=j.length,L;D<N;D++)if(L=j[D]){for(;(L=L.previousSibling)&&
L.nodeType!==1;);j[D]=A||L&&L.nodeName.toLowerCase()===n?L||false:L===n}A&&z.filter(n,j,true)},">":function(j,n){var A=typeof n==="string";if(A&&!/\W/.test(n)){n=n.toLowerCase();for(var D=0,N=j.length;D<N;D++){var L=j[D];if(L){A=L.parentNode;j[D]=A.nodeName.toLowerCase()===n?A:false}}}else{D=0;for(N=j.length;D<N;D++)if(L=j[D])j[D]=A?L.parentNode:L.parentNode===n;A&&z.filter(n,j,true)}},"":function(j,n,A){var D=f++,N=e;if(typeof n==="string"&&!/\W/.test(n)){var L=n=n.toLowerCase();N=b}N("parentNode",
n,D,j,L,A)},"~":function(j,n,A){var D=f++,N=e;if(typeof n==="string"&&!/\W/.test(n)){var L=n=n.toLowerCase();N=b}N("previousSibling",n,D,j,L,A)}},find:{ID:function(j,n,A){if(typeof n.getElementById!=="undefined"&&!A)return(j=n.getElementById(j[1]))?[j]:[]},NAME:function(j,n){if(typeof n.getElementsByName!=="undefined"){var A=[];n=n.getElementsByName(j[1]);for(var D=0,N=n.length;D<N;D++)n[D].getAttribute("name")===j[1]&&A.push(n[D]);return A.length===0?null:A}},TAG:function(j,n){return n.getElementsByTagName(j[1])}},
preFilter:{CLASS:function(j,n,A,D,N,L){j=" "+j[1].replace(/\\/g,"")+" ";if(L)return j;L=0;for(var aa;(aa=n[L])!=null;L++)if(aa)if(N^(aa.className&&(" "+aa.className+" ").replace(/[\t\n]/g," ").indexOf(j)>=0))A||D.push(aa);else if(A)n[L]=false;return false},ID:function(j){return j[1].replace(/\\/g,"")},TAG:function(j){return j[1].toLowerCase()},CHILD:function(j){if(j[1]==="nth"){var n=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(j[2]==="even"&&"2n"||j[2]==="odd"&&"2n+1"||!/\D/.test(j[2])&&"0n+"+j[2]||j[2]);j[2]=
n[1]+(n[2]||1)-0;j[3]=n[3]-0}j[0]=f++;return j},ATTR:function(j,n,A,D,N,L){n=j[1].replace(/\\/g,"");if(!L&&E.attrMap[n])j[1]=E.attrMap[n];if(j[2]==="~=")j[4]=" "+j[4]+" ";return j},PSEUDO:function(j,n,A,D,N){if(j[1]==="not")if((g.exec(j[3])||"").length>1||/^\w/.test(j[3]))j[3]=z(j[3],null,null,n);else{j=z.filter(j[3],n,A,true^N);A||D.push.apply(D,j);return false}else if(E.match.POS.test(j[0])||E.match.CHILD.test(j[0]))return true;return j},POS:function(j){j.unshift(true);return j}},filters:{enabled:function(j){return j.disabled===
false&&j.type!=="hidden"},disabled:function(j){return j.disabled===true},checked:function(j){return j.checked===true},selected:function(j){return j.selected===true},parent:function(j){return!!j.firstChild},empty:function(j){return!j.firstChild},has:function(j,n,A){return!!z(A[3],j).length},header:function(j){return/h\d/i.test(j.nodeName)},text:function(j){return"text"===j.type},radio:function(j){return"radio"===j.type},checkbox:function(j){return"checkbox"===j.type},file:function(j){return"file"===
j.type},password:function(j){return"password"===j.type},submit:function(j){return"submit"===j.type},image:function(j){return"image"===j.type},reset:function(j){return"reset"===j.type},button:function(j){return"button"===j.type||j.nodeName.toLowerCase()==="button"},input:function(j){return/input|select|textarea|button/i.test(j.nodeName)}},setFilters:{first:function(j,n){return n===0},last:function(j,n,A,D){return n===D.length-1},even:function(j,n){return n%2===0},odd:function(j,n){return n%2===1},
lt:function(j,n,A){return n<A[3]-0},gt:function(j,n,A){return n>A[3]-0},nth:function(j,n,A){return A[3]-0===n},eq:function(j,n,A){return A[3]-0===n}},filter:{PSEUDO:function(j,n,A,D){var N=n[1],L=E.filters[N];if(L)return L(j,A,n,D);else if(N==="contains")return(j.textContent||j.innerText||a([j])||"").indexOf(n[3])>=0;else if(N==="not"){n=n[3];A=0;for(D=n.length;A<D;A++)if(n[A]===j)return false;return true}else z.error("Syntax error, unrecognized expression: "+N)},CHILD:function(j,n){var A=n[1],D=
j;switch(A){case "only":case "first":for(;D=D.previousSibling;)if(D.nodeType===1)return false;if(A==="first")return true;D=j;case "last":for(;D=D.nextSibling;)if(D.nodeType===1)return false;return true;case "nth":A=n[2];var N=n[3];if(A===1&&N===0)return true;n=n[0];var L=j.parentNode;if(L&&(L.sizcache!==n||!j.nodeIndex)){var aa=0;for(D=L.firstChild;D;D=D.nextSibling)if(D.nodeType===1)D.nodeIndex=++aa;L.sizcache=n}j=j.nodeIndex-N;return A===0?j===0:j%A===0&&j/A>=0}},ID:function(j,n){return j.nodeType===
1&&j.getAttribute("id")===n},TAG:function(j,n){return n==="*"&&j.nodeType===1||j.nodeName.toLowerCase()===n},CLASS:function(j,n){return(" "+(j.className||j.getAttribute("class"))+" ").indexOf(n)>-1},ATTR:function(j,n){var A=n[1];j=E.attrHandle[A]?E.attrHandle[A](j):j[A]!=null?j[A]:j.getAttribute(A);A=j+"";var D=n[2];n=n[4];return j==null?D==="!=":D==="="?A===n:D==="*="?A.indexOf(n)>=0:D==="~="?(" "+A+" ").indexOf(n)>=0:!n?A&&j!==false:D==="!="?A!==n:D==="^="?A.indexOf(n)===0:D==="$="?A.substr(A.length-
n.length)===n:D==="|="?A===n||A.substr(0,n.length+1)===n+"-":false},POS:function(j,n,A,D){var N=E.setFilters[n[2]];if(N)return N(j,A,n,D)}}},S=E.match.POS;for(var $ in E.match){E.match[$]=new RegExp(E.match[$].source+/(?![^\[]*\])(?![^\(]*\))/.source);E.leftMatch[$]=new RegExp(/(^(?:.|\r|\n)*?)/.source+E.match[$].source.replace(/\\(\d+)/g,function(j,n){return"\\"+(n-0+1)}))}var ha=function(j,n){j=Array.prototype.slice.call(j,0);if(n){n.push.apply(n,j);return n}return j};try{Array.prototype.slice.call(G.documentElement.childNodes,
0)}catch(na){ha=function(j,n){n=n||[];if(o.call(j)==="[object Array]")Array.prototype.push.apply(n,j);else if(typeof j.length==="number")for(var A=0,D=j.length;A<D;A++)n.push(j[A]);else for(A=0;j[A];A++)n.push(j[A]);return n}}var ma;if(G.documentElement.compareDocumentPosition)ma=function(j,n){if(!j.compareDocumentPosition||!n.compareDocumentPosition){if(j==n)p=true;return j.compareDocumentPosition?-1:1}j=j.compareDocumentPosition(n)&4?-1:j===n?0:1;if(j===0)p=true;return j};else if("sourceIndex"in
G.documentElement)ma=function(j,n){if(!j.sourceIndex||!n.sourceIndex){if(j==n)p=true;return j.sourceIndex?-1:1}j=j.sourceIndex-n.sourceIndex;if(j===0)p=true;return j};else if(G.createRange)ma=function(j,n){if(!j.ownerDocument||!n.ownerDocument){if(j==n)p=true;return j.ownerDocument?-1:1}var A=j.ownerDocument.createRange(),D=n.ownerDocument.createRange();A.setStart(j,0);A.setEnd(j,0);D.setStart(n,0);D.setEnd(n,0);j=A.compareBoundaryPoints(Range.START_TO_END,D);if(j===0)p=true;return j};(function(){var j=
G.createElement("div"),n="script"+(new Date).getTime();j.innerHTML="<a name='"+n+"'/>";var A=G.documentElement;A.insertBefore(j,A.firstChild);if(G.getElementById(n)){E.find.ID=function(D,N,L){if(typeof N.getElementById!=="undefined"&&!L)return(N=N.getElementById(D[1]))?N.id===D[1]||typeof N.getAttributeNode!=="undefined"&&N.getAttributeNode("id").nodeValue===D[1]?[N]:undefined:[]};E.filter.ID=function(D,N){var L=typeof D.getAttributeNode!=="undefined"&&D.getAttributeNode("id");return D.nodeType===
1&&L&&L.nodeValue===N}}A.removeChild(j);A=j=null})();(function(){var j=G.createElement("div");j.appendChild(G.createComment(""));if(j.getElementsByTagName("*").length>0)E.find.TAG=function(n,A){A=A.getElementsByTagName(n[1]);if(n[1]==="*"){n=[];for(var D=0;A[D];D++)A[D].nodeType===1&&n.push(A[D]);A=n}return A};j.innerHTML="<a href='#'></a>";if(j.firstChild&&typeof j.firstChild.getAttribute!=="undefined"&&j.firstChild.getAttribute("href")!=="#")E.attrHandle.href=function(n){return n.getAttribute("href",
2)};j=null})();G.querySelectorAll&&function(){var j=z,n=G.createElement("div");n.innerHTML="<p class='TEST'></p>";if(!(n.querySelectorAll&&n.querySelectorAll(".TEST").length===0)){z=function(D,N,L,aa){N=N||G;if(!aa&&N.nodeType===9&&!ba(N))try{return ha(N.querySelectorAll(D),L)}catch(X){}return j(D,N,L,aa)};for(var A in j)z[A]=j[A];n=null}}();(function(){var j=G.createElement("div");j.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!j.getElementsByClassName||j.getElementsByClassName("e").length===
0)){j.lastChild.className="e";if(j.getElementsByClassName("e").length!==1){E.order.splice(1,0,"CLASS");E.find.CLASS=function(n,A,D){if(typeof A.getElementsByClassName!=="undefined"&&!D)return A.getElementsByClassName(n[1])};j=null}}})();var va=G.compareDocumentPosition?function(j,n){return!!(j.compareDocumentPosition(n)&16)}:function(j,n){return j!==n&&(j.contains?j.contains(n):true)},ba=function(j){return(j=(j?j.ownerDocument||j:0).documentElement)?j.nodeName!=="HTML":false},Ka=function(j,n){var A=
[],D="",N;for(n=n.nodeType?[n]:n;N=E.match.PSEUDO.exec(j);){D+=N[0];j=j.replace(E.match.PSEUDO,"")}j=E.relative[j]?j+"*":j;N=0;for(var L=n.length;N<L;N++)z(j,n[N],A);return z.filter(D,A)};c.find=z;c.expr=z.selectors;c.expr[":"]=c.expr.filters;c.unique=z.uniqueSort;c.text=a;c.isXMLDoc=ba;c.contains=va})();var db=/Until$/,eb=/^(?:parents|prevUntil|prevAll)/,fb=/,/;V=Array.prototype.slice;var Wa=function(a,b,e){if(c.isFunction(b))return c.grep(a,function(f,o){return!!b.call(f,o,f)===e});else if(b.nodeType)return c.grep(a,
function(f){return f===b===e});else if(typeof b==="string"){var g=c.grep(a,function(f){return f.nodeType===1});if(r.test(b))return c.filter(b,g,!e);else b=c.filter(b,g)}return c.grep(a,function(f){return c.inArray(f,b)>=0===e})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,f=this.length;g<f;g++){e=b.length;c.find(a,this[g],b);if(g>0)for(var o=e;o<b.length;o++)for(var p=0;p<e;p++)if(b[p]===b[o]){b.splice(o--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var e=
0,g=b.length;e<g;e++)if(c.contains(this,b[e]))return true})},not:function(a){return this.pushStack(Wa(this,a,false),"not",a)},filter:function(a){return this.pushStack(Wa(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var e=[],g=this[0],f,o={},p;if(g&&a.length){f=0;for(var F=a.length;f<F;f++){p=a[f];o[p]||(o[p]=c.expr.match.POS.test(p)?c(p,b||this.context):p)}for(;g&&g.ownerDocument&&g!==b;){for(p in o){f=o[p];if(f.jquery?f.index(g)>
-1:c(g).is(f)){e.push({selector:p,elem:g});delete o[p]}}g=g.parentNode}}return e}var z=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(E,S){for(;S&&S.ownerDocument&&S!==b;){if(z?z.index(S)>-1:c(S).is(a))return S;S=S.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),
a);return this.pushStack(M(a[0])||M(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,e){return c.dir(a,"parentNode",e)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},
nextUntil:function(a,b,e){return c.dir(a,"nextSibling",e)},prevUntil:function(a,b,e){return c.dir(a,"previousSibling",e)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(e,g){var f=c.map(this,b,e);db.test(a)||(g=e);if(g&&typeof g==="string")f=c.filter(g,f);f=this.length>1?c.unique(f):
f;if((this.length>1||fb.test(g))&&eb.test(a))f=f.reverse();return this.pushStack(f,a,V.call(arguments).join(","))}});c.extend({filter:function(a,b,e){if(e)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,e){var g=[];for(a=a[b];a&&a.nodeType!==9&&(e===undefined||a.nodeType!==1||!c(a).is(e));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,e){b=b||1;for(var g=0;a;a=a[e])if(a.nodeType===1&&++g===b)break;return a},sibling:function(a,b){for(var e=[];a;a=a.nextSibling)a.nodeType===
1&&a!==b&&e.push(a);return e}});var Xa=/ jQuery\d+="(?:\d+|null)"/g,Ha=/^\s+/,Ya=/(<([\w:]+)[^>]*?)\/>/g,gb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Za=/<([\w:]+)/,hb=/<tbody/i,ib=/<|&#?\w+;/,Qa=/<script|<object|<embed|<option|<style/i,Ra=/checked\s*(?:[^=]|=\s*.checked.)/i,$a=function(a,b,e){return gb.test(e)?a:b+"></"+e+">"},wa={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],
td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};wa.optgroup=wa.option;wa.tbody=wa.tfoot=wa.colgroup=wa.caption=wa.thead;wa.th=wa.td;if(!c.support.htmlSerialize)wa._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var e=c(this);e.text(a.call(this,b,e.text()))});if(typeof a!=="object"&&a!==undefined)return this.empty().append((this[0]&&
this[0].ownerDocument||G).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(e){c(this).wrapAll(a.call(this,e))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});
return this.each(function(){var b=c(this),e=b.contents();e.length?e.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,
this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);
a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var e=0,g;(g=this[e])!=null;e++)if(!a||c.filter(a,[g]).length){if(!b&&g.nodeType===1){c.cleanData(g.getElementsByTagName("*"));c.cleanData([g])}g.parentNode&&g.parentNode.removeChild(g)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&
!c.isXMLDoc(this)){var e=this.outerHTML,g=this.ownerDocument;if(!e){e=g.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return c.clean([e.replace(Xa,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(Ha,"")],g)[0]}else return this.cloneNode(true)});if(a===true){m(this,b);m(this.find("*"),b.find("*"))}return b},html:function(a){if(a===undefined)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Xa,""):null;else if(typeof a==="string"&&!Qa.test(a)&&(c.support.leadingWhitespace||
!Ha.test(a))&&!wa[(Za.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ya,$a);try{for(var b=0,e=this.length;b<e;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(g){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var o=c(this),p=o.html();o.empty().append(function(){return a.call(this,f,p)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var e=
c(this),g=e.html();e.replaceWith(a.call(this,b,g))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,e=this.parentNode;c(this).remove();b?c(b).before(a):c(e).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,e){function g($){return c.nodeName($,"table")?$.getElementsByTagName("tbody")[0]||$.appendChild($.ownerDocument.createElement("tbody")):$}var f,o,p=a[0],
F=[],z;if(!c.support.checkClone&&arguments.length===3&&typeof p==="string"&&Ra.test(p))return this.each(function(){c(this).domManip(a,b,e,true)});if(c.isFunction(p))return this.each(function($){var ha=c(this);a[0]=p.call(this,$,b?ha.html():undefined);ha.domManip(a,b,e)});if(this[0]){f=p&&p.parentNode;f=c.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length?{fragment:f}:s(a,this,F);z=f.fragment;if(o=z.childNodes.length===1?(z=z.firstChild):z.firstChild){b=b&&c.nodeName(o,"tr");
for(var E=0,S=this.length;E<S;E++)e.call(b?g(this[E],o):this[E],E>0||f.cacheable||this.length>1?z.cloneNode(true):z)}F.length&&c.each(F,Y)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(e){var g=[];e=c(e);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&e.length===1){e[b](this[0]);return this}else{f=0;for(var o=e.length;f<o;f++){var p=
(f>0?this.clone(true):this).get();c.fn[b].apply(c(e[f]),p);g=g.concat(p)}return this.pushStack(g,a,e.selector)}}});c.extend({clean:function(a,b,e,g){b=b||G;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||G;for(var f=[],o=0,p;(p=a[o])!=null;o++){if(typeof p==="number")p+="";if(p){if(typeof p==="string"&&!ib.test(p))p=b.createTextNode(p);else if(typeof p==="string"){p=p.replace(Ya,$a);var F=(Za.exec(p)||["",""])[1].toLowerCase(),z=wa[F]||wa._default,E=z[0],S=b.createElement("div");
for(S.innerHTML=z[1]+p+z[2];E--;)S=S.lastChild;if(!c.support.tbody){E=hb.test(p);F=F==="table"&&!E?S.firstChild&&S.firstChild.childNodes:z[1]==="<table>"&&!E?S.childNodes:[];for(z=F.length-1;z>=0;--z)c.nodeName(F[z],"tbody")&&!F[z].childNodes.length&&F[z].parentNode.removeChild(F[z])}!c.support.leadingWhitespace&&Ha.test(p)&&S.insertBefore(b.createTextNode(Ha.exec(p)[0]),S.firstChild);p=S.childNodes}if(p.nodeType)f.push(p);else f=c.merge(f,p)}}if(e)for(o=0;f[o];o++)if(g&&c.nodeName(f[o],"script")&&
(!f[o].type||f[o].type.toLowerCase()==="text/javascript"))g.push(f[o].parentNode?f[o].parentNode.removeChild(f[o]):f[o]);else{f[o].nodeType===1&&f.splice.apply(f,[o+1,0].concat(c.makeArray(f[o].getElementsByTagName("script"))));e.appendChild(f[o])}return f},cleanData:function(a){for(var b,e,g=c.cache,f=c.event.special,o=c.support.deleteExpando,p=0,F;(F=a[p])!=null;p++)if(e=F[c.expando]){b=g[e];if(b.events)for(var z in b.events)f[z]?c.event.remove(F,z):ja(F,z,b.handle);if(o)delete F[c.expando];else F.removeAttribute&&
F.removeAttribute(c.expando);delete g[e]}}});var jb=/z-?index|font-?weight|opacity|zoom|line-?height/i,ab=/alpha\([^)]*\)/,bb=/opacity=([^)]*)/,La=/float/i,Ma=/-([a-z])/ig,kb=/([A-Z])/g,lb=/^-?\d+(?:px)?$/i,mb=/^-?\d/,nb={position:"absolute",visibility:"hidden",display:"block"},ob=["Left","Right"],pb=["Top","Bottom"],qb=G.defaultView&&G.defaultView.getComputedStyle,cb=c.support.cssFloat?"cssFloat":"styleFloat",Na=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return Q(this,a,b,true,
function(e,g,f){if(f===undefined)return c.curCSS(e,g);if(typeof f==="number"&&!jb.test(g))f+="px";c.style(e,g,f)})};c.extend({style:function(a,b,e){if(!(!a||a.nodeType===3||a.nodeType===8)){if((b==="width"||b==="height")&&parseFloat(e)<0)e=undefined;var g=a.style||a,f=e!==undefined;if(!c.support.opacity&&b==="opacity"){if(f){g.zoom=1;b=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=g.filter||c.curCSS(a,"filter")||"";g.filter=ab.test(a)?a.replace(ab,b):b}return g.filter&&g.filter.indexOf("opacity=")>=
0?parseFloat(bb.exec(g.filter)[1])/100+"":""}if(La.test(b))b=cb;b=b.replace(Ma,Na);if(f)g[b]=e;return g[b]}},css:function(a,b,e,g){if(b==="width"||b==="height"){var f,o=b==="width"?ob:pb;e=function(){f=b==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&c.each(o,function(){g||(f-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(g==="margin")f+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else f-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?e():c.swap(a,nb,e);return Math.max(0,
Math.round(f))}return c.curCSS(a,b,e)},curCSS:function(a,b,e){var g,f=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){g=bb.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return g===""?"1":g}if(La.test(b))b=cb;if(!e&&f&&f[b])g=f[b];else if(qb){if(La.test(b))b="float";b=b.replace(kb,"-$1").toLowerCase();f=a.ownerDocument.defaultView;if(!f)return null;if(a=f.getComputedStyle(a,null))g=a.getPropertyValue(b);if(b==="opacity"&&g==="")g="1"}else if(a.currentStyle){e=b.replace(Ma,
Na);g=a.currentStyle[b]||a.currentStyle[e];if(!lb.test(g)&&mb.test(g)){b=f.left;var o=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;f.left=e==="fontSize"?"1em":g||0;g=f.pixelLeft+"px";f.left=b;a.runtimeStyle.left=o}}return g},swap:function(a,b,e){var g={};for(var f in b){g[f]=a.style[f];a.style[f]=b[f]}e.call(a);for(f in b)a.style[f]=g[f]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,e=a.offsetHeight,g=a.nodeName.toLowerCase()==="tr";return b===
0&&e===0&&!g?true:b>0&&e>0&&!g?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var rb=H(),sb=/<script(.|\s)*?\/script>/gi,tb=/select|textarea/i,ub=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Da=/=\?(&|$)/,Oa=/\?/,vb=/(\?|&)_=.*?(&|$)/,wb=/^(\w+:)?\/\/([^\/?#]+)/,xb=/%20/g,yb=c.fn.load;c.fn.extend({load:function(a,b,e){if(typeof a!=="string")return yb.call(this,a);else if(!this.length)return this;
var g=a.indexOf(" ");if(g>=0){var f=a.slice(g,a.length);a=a.slice(0,g)}g="GET";if(b)if(c.isFunction(b)){e=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);g="POST"}var o=this;c.ajax({url:a,type:g,dataType:"html",data:b,complete:function(p,F){if(F==="success"||F==="notmodified")o.html(f?c("<div />").append(p.responseText.replace(sb,"")).find(f):p.responseText);e&&o.each(e,[p.responseText,F,p])}});return this},serialize:function(){return c.param(this.serializeArray())},
serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||tb.test(this.nodeName)||ub.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(e){return{name:b.name,value:e}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(e){return this.bind(b,
e)}});c.extend({get:function(a,b,e,g){if(c.isFunction(b)){g=g||e;e=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:e,dataType:g})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,e){return c.get(a,b,e,"json")},post:function(a,b,e,g){if(c.isFunction(b)){g=g||e;e=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:e,dataType:g})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,xhr:window.XMLHttpRequest&&(window.location.protocol!=="file:"||!window.ActiveXObject)?function(){return new window.XMLHttpRequest}:function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){f.success&&f.success.call(z,
F,p,ba);f.global&&g("ajaxSuccess",[ba,f])}function e(){f.complete&&f.complete.call(z,ba,p);f.global&&g("ajaxComplete",[ba,f]);f.global&&!--c.active&&c.event.trigger("ajaxStop")}function g(N,L){(f.context?c(f.context):c.event).trigger(N,L)}var f=c.extend(true,{},c.ajaxSettings,a),o,p,F,z=a&&a.context||f,E=f.type.toUpperCase();if(f.data&&f.processData&&typeof f.data!=="string")f.data=c.param(f.data,f.traditional);if(f.dataType==="jsonp"){if(E==="GET")Da.test(f.url)||(f.url+=(Oa.test(f.url)?"&":"?")+
(f.jsonp||"callback")+"=?");else if(!f.data||!Da.test(f.data))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType==="json"&&(f.data&&Da.test(f.data)||Da.test(f.url))){o=f.jsonpCallback||"jsonp"+rb++;if(f.data)f.data=(f.data+"").replace(Da,"="+o+"$1");f.url=f.url.replace(Da,"="+o+"$1");f.dataType="script";window[o]=window[o]||function(N){F=N;b();e();window[o]=undefined;try{delete window[o]}catch(L){}ha&&ha.removeChild(na)}}if(f.dataType==="script"&&f.cache===null)f.cache=
false;if(f.cache===false&&E==="GET"){var S=H(),$=f.url.replace(vb,"$1_="+S+"$2");f.url=$+($===f.url?(Oa.test(f.url)?"&":"?")+"_="+S:"")}if(f.data&&E==="GET")f.url+=(Oa.test(f.url)?"&":"?")+f.data;f.global&&!c.active++&&c.event.trigger("ajaxStart");S=(S=wb.exec(f.url))&&(S[1]&&S[1]!==location.protocol||S[2]!==location.host);if(f.dataType==="script"&&E==="GET"&&S){var ha=G.getElementsByTagName("head")[0]||G.documentElement,na=G.createElement("script");na.src=f.url;if(f.scriptCharset)na.charset=f.scriptCharset;
if(!o){var ma=false;na.onload=na.onreadystatechange=function(){if(!ma&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){ma=true;b();e();na.onload=na.onreadystatechange=null;ha&&na.parentNode&&ha.removeChild(na)}}}ha.insertBefore(na,ha.firstChild)}else{var va=false,ba=f.xhr();if(ba){f.username?ba.open(E,f.url,f.async,f.username,f.password):ba.open(E,f.url,f.async);try{if(f.data||a&&a.contentType)ba.setRequestHeader("Content-Type",f.contentType);if(f.ifModified){c.lastModified[f.url]&&
ba.setRequestHeader("If-Modified-Since",c.lastModified[f.url]);c.etag[f.url]&&ba.setRequestHeader("If-None-Match",c.etag[f.url])}S||ba.setRequestHeader("X-Requested-With","XMLHttpRequest");ba.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?f.accepts[f.dataType]+", */*":f.accepts._default)}catch(Ka){}if(f.beforeSend&&f.beforeSend.call(z,ba,f)===false){f.global&&!--c.active&&c.event.trigger("ajaxStop");ba.abort();return false}f.global&&g("ajaxSend",[ba,f]);var j=ba.onreadystatechange=function(N){if(!ba||
ba.readyState===0||N==="abort"){va||e();va=true;if(ba)ba.onreadystatechange=c.noop}else if(!va&&ba&&(ba.readyState===4||N==="timeout")){va=true;ba.onreadystatechange=c.noop;p=N==="timeout"?"timeout":!c.httpSuccess(ba)?"error":f.ifModified&&c.httpNotModified(ba,f.url)?"notmodified":"success";var L;if(p==="success")try{F=c.httpData(ba,f.dataType,f)}catch(aa){p="parsererror";L=aa}if(p==="success"||p==="notmodified")o||b();else c.handleError(f,ba,p,L);e();N==="timeout"&&ba.abort();if(f.async)ba=null}};
try{var n=ba.abort;ba.abort=function(){ba&&n.call(ba);j("abort")}}catch(A){}f.async&&f.timeout>0&&setTimeout(function(){ba&&!va&&j("timeout")},f.timeout);try{ba.send(E==="POST"||E==="PUT"||E==="DELETE"?f.data:null)}catch(D){c.handleError(f,ba,null,D);e()}f.async||j();return ba}}},handleError:function(a,b,e,g){if(a.error)a.error.call(a.context||a,b,e,g);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,g])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol===
"file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var e=a.getResponseHeader("Last-Modified"),g=a.getResponseHeader("Etag");if(e)c.lastModified[b]=e;if(g)c.etag[b]=g;return a.status===304||a.status===0},httpData:function(a,b,e){var g=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&g.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");
if(e&&e.dataFilter)a=e.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&g.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&g.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function e(p,F){if(c.isArray(F))c.each(F,function(z,E){b||/\[\]$/.test(p)?g(p,E):e(p+"["+(typeof E==="object"||c.isArray(E)?z:"")+"]",E)});else!b&&F!=null&&typeof F==="object"?c.each(F,function(z,E){e(p+"["+z+"]",E)}):g(p,F)}function g(p,F){F=c.isFunction(F)?F():F;f[f.length]=encodeURIComponent(p)+
"="+encodeURIComponent(F)}var f=[];if(b===undefined)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){g(this.name,this.value)});else for(var o in a)e(o,a[o]);return f.join("&").replace(xb,"+")}});var Pa={},zb=/toggle|show|hide/,Ab=/^([+-]=)?([\d+-.]+)(.*)$/,Ia,Sa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(w("show",
3),a,b);else{a=0;for(b=this.length;a<b;a++){var e=c.data(this[a],"olddisplay");this[a].style.display=e||"";if(c.css(this[a],"display")==="none"){e=this[a].nodeName;var g;if(Pa[e])g=Pa[e];else{var f=c("<"+e+" />").appendTo("body");g=f.css("display");if(g==="none")g="block";f.remove();Pa[e]=g}c.data(this[a],"olddisplay",g)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(w("hide",3),a,b);else{a=0;for(b=
this.length;a<b;a++){var e=c.data(this[a],"olddisplay");!e&&e!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var g=e?a:c(this).is(":hidden");c(this)[g?"show":"hide"]()}):this.animate(w("toggle",3),a,b);return this},fadeTo:function(a,b,
e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,e)},animate:function(a,b,e,g){var f=c.speed(b,e,g);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var o=c.extend({},f),p,F=this.nodeType===1&&c(this).is(":hidden"),z=this;for(p in a){var E=p.replace(Ma,Na);if(p!==E){a[E]=a[p];delete a[p];p=E}if(a[p]==="hide"&&F||a[p]==="show"&&!F)return o.complete.call(this);if((p==="height"||p==="width")&&this.style){o.display=
c.css(this,"display");o.overflow=this.style.overflow}if(c.isArray(a[p])){(o.specialEasing=o.specialEasing||{})[p]=a[p][1];a[p]=a[p][0]}}if(o.overflow!=null)this.style.overflow="hidden";o.curAnim=c.extend({},a);c.each(a,function(S,$){var ha=new c.fx(z,o,S);if(zb.test($))ha[$==="toggle"?F?"show":"hide":$](a);else{var na=Ab.exec($),ma=ha.cur(true)||0;if(na){$=parseFloat(na[2]);var va=na[3]||"px";if(va!=="px"){z.style[S]=($||1)+va;ma=($||1)/ha.cur(true)*ma;z.style[S]=ma+va}if(na[1])$=(na[1]==="-="?-1:
1)*$+ma;ha.custom(ma,$,va)}else ha.custom(ma,$,"")}});return true})},stop:function(a,b){var e=c.timers;a&&this.queue([]);this.each(function(){for(var g=e.length-1;g>=0;g--)if(e[g].elem===this){b&&e[g](true);e.splice(g,1)}});b||this.dequeue();return this}});c.each({slideDown:w("show",1),slideUp:w("hide",1),slideToggle:w("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(e,g){return this.animate(b,e,g)}});c.extend({speed:function(a,b,e){var g=a&&typeof a===
"object"?a:{complete:e||!e&&b||c.isFunction(a)&&a,duration:a,easing:e&&b||b&&!c.isFunction(b)&&b};g.duration=c.fx.off?0:typeof g.duration==="number"?g.duration:c.fx.speeds[g.duration]||c.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&c(this).dequeue();c.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(a,b,e,g){return e+g*a},swing:function(a,b,e,g){return(-Math.cos(a*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(a,b,e){this.options=b;this.elem=a;this.prop=
e;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||
0},custom:function(a,b,e){function g(o){return f.step(o)}this.startTime=H();this.start=a;this.end=b;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;g.elem=this.elem;if(g()&&c.timers.push(g)&&!Ia)Ia=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,
this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=H(),e=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var g in this.options.curAnim)if(this.options.curAnim[g]!==true)e=false;if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")===
"none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)c.style(this.elem,f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{f=b-this.startTime;this.state=f/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,f,0,1,this.options.duration);this.now=this.start+
(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(Ia);Ia=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});
if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in G.documentElement?function(a){var b=this[0];if(a)return this.each(function(f){c.offset.setOffset(this,a,f)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var e=b.getBoundingClientRect(),g=b.ownerDocument;b=g.body;g=g.documentElement;return{top:e.top+(self.pageYOffset||c.support.boxModel&&
g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:e.left+(self.pageXOffset||c.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(S){c.offset.setOffset(this,a,S)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var e=b.offsetParent,g=b,f=b.ownerDocument,o,p=f.documentElement,F=f.body;g=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
for(var z=b.offsetTop,E=b.offsetLeft;(b=b.parentNode)&&b!==F&&b!==p;){if(c.offset.supportsFixedPosition&&g.position==="fixed")break;o=f?f.getComputedStyle(b,null):b.currentStyle;z-=b.scrollTop;E-=b.scrollLeft;if(b===e){z+=b.offsetTop;E+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){z+=parseFloat(o.borderTopWidth)||0;E+=parseFloat(o.borderLeftWidth)||0}g=e;e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&o.overflow!==
"visible"){z+=parseFloat(o.borderTopWidth)||0;E+=parseFloat(o.borderLeftWidth)||0}g=o}if(g.position==="relative"||g.position==="static"){z+=F.offsetTop;E+=F.offsetLeft}if(c.offset.supportsFixedPosition&&g.position==="fixed"){z+=Math.max(p.scrollTop,F.scrollTop);E+=Math.max(p.scrollLeft,F.scrollLeft)}return{top:z,left:E}};c.offset={initialize:function(){var a=G.body,b=G.createElement("div"),e,g,f,o=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);e=b.firstChild;g=e.firstChild;f=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=
f.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==o;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,
"marginTop",true))||0;e+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var g=c(a),f=g.offset(),o=parseInt(c.curCSS(a,"top",true),10)||0,p=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,e,f);e={top:b.top-f.top+o,left:b.left-f.left+p};"using"in b?b.using.call(a,e):g.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),
e=this.offset(),g=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;e.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;g.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;g.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:e.top-g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||G.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=
a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var e="scroll"+b;c.fn[e]=function(g){var f=this[0],o;if(!f)return null;if(g!==undefined)return this.each(function(){if(o=K(this))o.scrollTo(!a?g:c(o).scrollLeft(),a?g:c(o).scrollTop());else this[e]=g});else return(o=K(f))?"pageXOffset"in o?o[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&o.document.documentElement[e]||o.document.body[e]:f[e]}});c.each(["Height","Width"],function(a,b){var e=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?
c.css(this[0],e,false,"padding"):null};c.fn["outer"+b]=function(g){return this[0]?c.css(this[0],e,false,g?"margin":"border"):null};c.fn[e]=function(g){var f=this[0];if(!f)return g==null?null:this;if(c.isFunction(g))return this.each(function(o){var p=c(this);p[e](g.call(this,o,p[e]()))});return"scrollTo"in f&&f.document?f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType===9?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+
b],f.body["offset"+b],f.documentElement["offset"+b]):g===undefined?c.css(f,e):this.css(e,typeof g==="string"?g:g+"px")}});u.$=u.jQuery=c});bespin.tiki.register("::bespin",{name:"bespin",dependencies:{jquery:"0.0.0"}});bespin.bootLoaded=true;
bespin.tiki.module("bespin:builtins",function(R,u){u.metadata={bespin:{provides:[{ep:"extensionpoint",name:"extensionpoint",description:"Defines a new extension point",params:[{name:"name",type:"string",description:"the extension point's name",required:true},{name:"description",type:"string",description:"description of what the extension point is for"},{name:"params",type:"array of objects",description:"parameters that provide the metadata for a given extension. Each object should have name and description, minimally. It can also have a 'type' (eg string, pointer, or array) and required to denote whether or not this parameter must be present on the extension."},
{name:"indexOn",type:"string",description:"You can provide an 'indexOn' property to name a property of extensions through which you'd like to be able to easily look up the extension."},{name:"register",type:"pointer",description:"function that is called when a new extension is discovered. Note that this should be used sparingly, because it will cause your plugin to be loaded whenever a matching plugin appears."},{name:"unregister",type:"pointer",description:"function that is called when an extension is removed. Note that this should be used sparingly, because it will cause your plugin to be loaded whenever a matching plugin appears."}]},
{ep:"extensionpoint",name:"extensionhandler",description:"Used to attach listeners ",params:[{name:"name",type:"string",description:"name of the extension point to listen to",required:true},{name:"register",type:"pointer",description:"function that is called when a new extension is discovered. Note that this should be used sparingly, because it will cause your plugin to be loaded whenever a matching plugin appears."},{name:"unregister",type:"pointer",description:"function that is called when an extension is removed. Note that this should be used sparingly, because it will cause your plugin to be loaded whenever a matching plugin appears."}]},
{ep:"extensionpoint",name:"factory",description:"Provides a factory for singleton components. Each extension needs to provide a name, a pointer and an action. The action can be 'call' (if the pointer refers to a function), 'new' (if the pointer refers to a traditional JS object) or 'value' (if the pointer refers to the object itself that is the component).",indexOn:"name"},{ep:"factory",name:"hub",action:"create",pointer:"util/hub#Hub"},{ep:"extensionpoint",name:"command",description:"Editor commands/actions. TODO: list parameters here."}]}}});
bespin.tiki.module("bespin:console",function(R,u){R=R("util/util");var P=function(){},Y=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","log","profile","profileEnd","time","timeEnd","trace","warn"];if(typeof window==="undefined"){var Q={};Y.forEach(function(H){Q[H]=function(){var q=Array.prototype.slice.call(arguments);postMessage(JSON.stringify({op:"log",method:H,args:q}))}});u.console=Q}else if(R.isSafari||R.isChrome)u.console=window.console;else{u.console={};Y.forEach(function(H){u.console[H]=
window.console&&window.console[H]?window.console[H]:P})}});
bespin.tiki.module("bespin:globals",function(){if(!Object.defineProperty)Object.defineProperty=function(R,u,P){var Y=Object.prototype.hasOwnProperty;if(typeof P=="object"&&R.__defineGetter__){if(Y.call(P,"value")){if(!R.__lookupGetter__(u)&&!R.__lookupSetter__(u))R[u]=P.value;if(Y.call(P,"get")||Y.call(P,"set"))throw new TypeError("Object doesn't support this action");}else typeof P.get=="function"&&R.__defineGetter__(u,P.get);typeof P.set=="function"&&R.__defineSetter__(u,P.set)}return R};if(!Object.defineProperties)Object.defineProperties=
function(R,u){for(var P in u)Object.prototype.hasOwnProperty.call(u,P)&&Object.defineProperty(R,P,u[P]);return R};(function(){if(!Array.isArray)Array.isArray=function(R){return R&&Object.prototype.toString.call(R)=="[object Array]"};if(!Object.keys)Object.keys=function(R){var u,P=[];for(u in R)R.hasOwnProperty(u)&&P.push(u);return P};if(!Function.prototype.bind)Function.prototype.bind=function(){var R=Array.prototype.slice.call(arguments),u=this,P=function(){return u.call.apply(u,R.concat(Array.prototype.slice.call(arguments)))};
P.name=this.name;P.displayName=this.displayName;P.length=this.length;P.unbound=u;return P}})()});bespin.tiki.module("bespin:index",function(R,u){u.versionNumber="0.8.0";u.versionCodename="Cheviot";u.apiVersion="4"});
bespin.tiki.module("bespin:plugins",function(R,u){R("globals");var P=R("promise").Promise,Y=R("promise").group,Q=R("builtins"),H=R("console").console,q=R("util/util");R("util/stacktrace");var y=R.loader.sources[0],I=function(m,s){if(s){s=s.split("#");return{modName:s[0]?m+":"+s[0]:m,objName:s[1]}}},W=function(m){var s=R(m.modName);if(m.objName)return s[m.objName];return s};u.Extension=function(m){this.pluginName=null;for(property in m)if(m.hasOwnProperty(property))this[property]=m[property];this._observers=
[]};u.Extension.prototype={load:function(m,s){var w=new P,K=function(T){m&&m(T);w.resolve(T)};s=this[s||"pointer"];if(q.isFunction(s)){K(s);return w}var c=I(this.pluginName,s);if(!c){H.error("Extension cannot be loaded because it has no 'pointer'");H.log(this);w.reject(new Error("Extension has no 'pointer' to call"));return w}u.catalog.loadPlugin(this.pluginName).then(function(){R.ensure(c.modName,function(){var T=W(c);K(T)})});return w},observe:function(m,s,w){this._observers.push({plugin:m,callback:s,
property:w});this.load(s,w)},getPluginName:function(){return this.pluginName},_getLoaded:function(m){m=this._getPointer(m);return W(m)}};u.ExtensionPoint=function(m,s){this.name=m;this.catalog=s;this.indexOn=this.pluginName=undefined;this.extensions=[];this.handlers=[]};u.ExtensionPoint.prototype={getImplementingPlugins:function(){var m={};this.extensions.forEach(function(w){m[w.pluginName]=true});var s=Object.keys(m);s.sort();return s},getDefiningPluginName:function(){return this.pluginName},getByKey:function(m){var s=
this.indexOn;if(s)for(var w=0;w<this.extensions.length;w++)if(this.extensions[w][s]==m)return this.extensions[w]},register:function(m){this.extensions.push(m);this.handlers.forEach(function(s){s.register&&s.load(function(w){w?w(m):H.error("missing register function for pluginName=",m.pluginName,", extension=",m.name)},"register")})},unregister:function(m){this.extensions.splice(this.extensions.indexOf(m),1);this.handlers.forEach(function(s){s.unregister&&s.load(function(w){w?w(m):H.error("missing unregister function for pluginName=",
m.pluginName,", extension=",m.name)},"unregister")})},orderExtensions:function(m){for(var s=[],w=0;w<m.length;w++)for(var K=0;K!=this.extensions.length;)if(this.extensions[K].pluginName===m[w]){s.push(this.extensions[K]);this.extensions.splice(K,1)}else K++;this.extensions=s.concat(this.extensions)}};u.Plugin=function(m){this.name=this.catalog=null;this.provides=[];this.stylesheets=[];this.reloadPointer=this.reloadURL=null;for(property in m)if(m.hasOwnProperty(property))this[property]=m[property]};
u.Plugin.prototype={register:function(){this.provides.forEach(function(m){this.catalog.getExtensionPoint(m.ep,true).register(m)},this)},unregister:function(){this.provides.forEach(function(m){this.catalog.getExtensionPoint(m.ep,true).unregister(m)},this)},_getObservers:function(){var m={};this.provides.forEach(function(s){H.log("ep: ",s.ep);H.log(s._observers);m[s.ep]=s._observers});return m},_findDependents:function(m,s){var w=this.name,K=this;m.forEach(function(c){if(c!=w){var T=K.catalog.plugins[c];
if(T&&T.dependencies)for(dependName in T.dependencies)if(dependName==w&&!s[c]){s[c]={keepModule:false};T._findDependents(m,s)}}})},_cleanup:function(){this.stylesheets.forEach(function(T){for(var fa=document.getElementsByTagName("link"),G=0;G<fa.length;G++)if(fa[G].href.indexOf(T.url)!=-1){fa[G].parentNode.removeChild(fa[G]);break}});var m=this.name,s=new RegExp("^"+m+"$"),w=new RegExp("^::"+m+":");m=new RegExp("^::"+m+"$");var K=R.sandbox,c=R.loader;M(w,c.factories);M(m,c.canonicalIds);M(m,c.canonicalPackageIds);
M(m,c.packageSources);M(m,c.packages);M(w,K.exports);M(w,K.modules);M(w,K.usedExports);M(s,y.packageInfoByName);M(w,y.factories);M(w,y.scriptActions);M(w,y.stylesheetActions);M(m,y.packages);M(m,y.ensureActions);M(m,y.packageInfoById)},reload:function(m){if(this.reloadURL){if(this.reloadPointer){var s=I(this.name,this.reloadPointer);if(func=W(s))func();else{H.error("Reload function could not be loaded. Aborting reload.");return}}var w={};this._findDependents(Object.keys(this.catalog.plugins),w);var K=
{pluginName:this.name,dependents:w};for(var c in w){s=this.catalog.plugins[c];if(s.preRefresh){s=I(c,s.preRefresh);if(func=W(s))w[c]=func(K)}}this.unregister();for(c in w)this.catalog.plugins[c].unregister();this._cleanup(this.name);s=[];var T=R.sandbox,fa=Object.keys(T.modules),G=fa.length,ia=[];for(c in w)w[c].keepModule||ia.push(new RegExp("^::"+c+":"));for(var ra=new RegExp("^::"+this.name+":");--G>=0;){var r=fa[G];if(ra.exec(r))s.push(r);else for(var da=ia.length;--da>=0;)if(ia[da].exec(r)){s.push(r);
break}}s.forEach(function(pa){delete T.exports[pa];delete T.modules[pa];delete T.usedExports[pa]});s=function(){this.catalog.loadPlugin(this.name).then(function(){for(c in w)this.catalog.plugins[c].register();for(c in w)if(w[c].callPointer){var pa=I(c,w[c].callPointer);(pa=W(pa))&&pa(K)}m&&m()}.bind(this))}.bind(this);fa=function(){H.error("Failed to load metadata from "+this.reloadURL)}.bind(this);this.catalog.loadMetadataFromURL(this.reloadURL).then(s,fa)}}};var J=function(m,s,w){s=s.split(".");
m=m;var K=s.length-1;if(K>0)for(var c=0;c<K;c++)m=m[s[c]];m[K]=w};u.Catalog=function(){this.points={};this.plugins={};this.deactivatedPlugins={};this._extensionsOrdering=[];this.instances={};this.instancesLoadPromises={};this._objectDescriptors={};this.getExtensionPoint("extensionpoint",true).indexOn="name";this.loadMetadata(Q.metadata)};u.Catalog.prototype={registerObject:function(m,s){this._objectDescriptors[m]=s},_setObject:function(m,s){this.instances[m]=s},createObject:function(m){if(this.instancesLoadPromises[m]!==
undefined)return this.instancesLoadPromises[m];var s=this.instancesLoadPromises[m]=new P,w=this._objectDescriptors[m];if(w===undefined)throw new Error('Tried to create object "'+m+'" but that object is not registered.');var K=w.factory||m,c=this.getExtensionByKey("factory",K);if(c===undefined)throw new Error('When creating object "'+m+'", there is no factory called "'+K+'" available."');var T=w.arguments||[];K=[];if(w.objects){w=w.objects;for(var fa in w){var G=this.createObject(w[fa]);K.push(G);
G.location=fa;G.then(function(ia){J(T,G.location,ia)})}}Y(K).then(function(){c.load().then(function(ia){var ra=c.action;if(ra==="call")ia=ia.apply(ia,T);else if(ra==="new"){if(T.length>1){s.reject(new Error("For object "+m+", create a simple factory function and change the action to call because JS cannot handle this case."));return}ia=new ia(T[0])}else if(ra==="value")ia=ia;else{s.reject(new Error("Create action must be call|new|value. Found"+ra));return}this.instances[m]=ia;s.resolve(ia)}.bind(this))}.bind(this));
return s},getObject:function(m){return this.instances[m]},getExtensionPoint:function(m,s){if(s&&this.points[m]===undefined)this.points[m]=new u.ExtensionPoint(m,this);return this.points[m]},getExtensions:function(m){m=this.getExtensionPoint(m);if(m===undefined)return[];return m.extensions},orderExtensions:function(m){m=m||this._extensionsOrdering;for(name in this.points)this.points[name].orderExtensions(m);this._extensionsOrdering=m},getExtensionsOrdering:function(){return this._extensionsOrdering},
getExtensionByKey:function(m,s){m=this.getExtensionPoint(m);if(m!==undefined)return m.getByKey(s)},_registerExtensionPoint:function(m){var s=this.getExtensionPoint(m.name,true);s.description=m.description;s.pluginName=m.pluginName;s.params=m.params;if(m.indexOn)s.indexOn=m.indexOn;if(m.register||m.unregister)this._registerExtensionHandler(m)},_registerExtensionHandler:function(m){var s=this.getExtensionPoint(m.name,true);s.handlers.push(m);if(m.register){var w=q.clone(s.extensions);m.load(function(K){if(!K)throw m.name+
" is not ready";w.forEach(function(c){K(c)})},"register")}},_toposort:function(m){var s=[],w={},K=function(T){if(!(T in w||!(T in m))){w[T]=true;var fa=m[T].dependencies;if(!q.none(fa))for(var G in fa)K(G);s.push(T)}};for(var c in m)K(c);return s},loadMetadata:function(m){var s=this.plugins,w;for(w in m)if(!this.deactivatedPlugins[w]){var K=m[w];if(K.errors){H.error("Plugin ",w," has errors:");K.errors.forEach(function(c){H.error(c)});delete m[w]}else{if(K.dependencies)K.depends=Object.keys(K.dependencies);
K.name=w;K.version=null;y.canonicalPackageId(w)===null&&y.register("::"+w,K)}}this._toposort(m).forEach(function(c){var T=m[c],fa=!this.deactivatedPlugins[c];T.catalog=this;T.name=c;var G=new u.Plugin(T);s[c]=G;if(T.provides&&fa){T=T.provides;for(fa=0;fa<T.length;fa++){G=new u.Extension(T[fa]);G.pluginName=c;T[fa]=G;var ia=G.ep;if(ia=="extensionpoint")this._registerExtensionPoint(G);else ia=="extensionhandler"&&this._registerExtensionHandler(G);this.getExtensionPoint(G.ep,true).register(G)}}else T.provides=
[]},this);for(w in m)this._checkLoops(w,s,[]);this.orderExtensions()},loadPlugin:function(m){var s=new P,w=this.plugins[m];if(w.objects){var K=[];w.objects.forEach(function(c){K.push(this.createObject(c))}.bind(this));Y(K).then(function(){R.ensurePackage(m,function(){s.resolve()})})}else R.ensurePackage(m,function(){s.resolve()});return s},loadMetadataFromURL:function(m){var s=new P,w=new XMLHttpRequest;w.onreadystatechange=function(){if(w.readyState===4){var K=w.status;if(K!==0&&K!==200)s.reject("XHR error: "+
w.statusText);else{this.loadMetadata(JSON.parse(w.responseText));s.resolve()}}}.bind(this);w.open("GET",m,true);w.send();return s},deactivatePlugin:function(m){var s=this.plugins[m];if(s!==undefined){s.unregister();s._cleanup()}this.deactivatedPlugins[m]=true},removePlugin:function(m){var s=this.plugins[m];if(s==undefined)throw new Error("Attempted to remove plugin "+m+" which does not exist.");s.unregister();s._cleanup();delete this.plugins[m]},getResourceURL:function(m){var s=document.getElementById("bespin_base"),
w="";if(s){w+=s.href;q.endsWith(w,"/")||(w+="/")}m=this.plugins[m];if(m!=undefined)return w+m.resourceURL},_checkLoops:function(m,s,w){var K=false;w.forEach(function(fa){if(m===fa){H.error("Circular dependency",m,w);K=true}});if(K)return true;w.push(m);if(s[m]){if(s[m].dependencies)for(var c in s[m].dependencies){var T=w.slice();if(this._checkLoops(c,s,T)){H.error("Errors found when looking at ",m);return true}}}else H.error("Missing metadata for ",m);return false},getPlugins:function(m){var s=[],
w=m.onlyType;for(var K in this.plugins){var c=this.plugins[K];w&&c.type&&c.type!=w||c.name=="bespin"||s.push(c)}var T=m.sortBy;T||(T=["name"]);s.sort(function(fa,G){for(var ia=0;ia<T.length;ia++){K=T[ia];if(fa[K]<G[K])return-1;else if(G[K]<fa[K])return 1}return 0});return s},loadObjectForPropertyPath:function(m,s){var w=new P,K=/^([^:]+):([^#]+)#(.*)$/.exec(m);if(K===null)throw new Error("loadObjectForPropertyPath: malformed path: '"+m+"'");K=K[1];if(K===""){if(q.none(s))throw new Error("loadObjectForPropertyPath: no plugin name supplied and no context is present");
K=s}R.ensurePackage(K,function(){w.resolve(this.objectForPropertyPath(m))}.bind(this));return w},objectForPropertyPath:function(m,s,w){w=w==undefined?m.length:w;s||(s=window);var K=m.split("#");if(K.length!==1){s=R(K[0]);if(s===undefined)return;m=K[1];s=s;w-=K[0].length}for(var c=0;s&&c<w;){K=m.indexOf(".",c);if(K<0||K>w)K=w;c=m.slice(c,K);s=s[c];c=K+1}if(c<w)s=undefined;return s},publish:function(m,s,w,K){this.getExtensions(s).forEach(function(c){if(c.match&&!c.regexp)c.regexp=new RegExp(c.match);
if(c.regexp&&c.regexp.test(w)||c.key===w||q.none(c.key)&&q.none(w))c.load().then(function(T){T(m,w,K)})})},registerExtension:function(m,s){s=new u.Extension(s);s.pluginName="__dynamic";this.getExtensionPoint(m).register(s)}};u.catalog=new u.Catalog;var M=function(m,s){for(var w=Object.keys(s),K=w.length;--K>0;)m.exec(w[K])&&delete s[w[K]]};u.getUserPlugins=function(){return u.catalog.getPlugins({onlyType:"user"})}});
bespin.tiki.module("bespin:promise",function(R,u){var P=R("bespin:console").console;R("bespin:util/stacktrace");var Y=0;u._outstanding=[];u._recent=[];u.Promise=function(){this._status=0;this._value=undefined;this._onSuccessHandlers=[];this._onErrorHandlers=[];this._id=Y++;u._outstanding[this._id]=this};u.Promise.prototype.isPromise=true;u.Promise.prototype.isComplete=function(){return this._status!=0};u.Promise.prototype.isResolved=function(){return this._status==1};u.Promise.prototype.isRejected=
function(){return this._status==-1};u.Promise.prototype.then=function(Q,H){Q!==null&&Q!==undefined&&this._onSuccessHandlers.push(Q);H!==null&&H!==undefined&&this._onErrorHandlers.push(H);this._status===1&&Q.call(null,this._value);this._status===-1&&H.call(null,this._value);return this};u.Promise.prototype.chainPromise=function(Q){var H=new u.Promise;H._chainedFrom=this;this.then(function(q){try{H.resolve(Q(q))}catch(y){H.reject(y)}},function(q){H.reject(q)});return H};u.Promise.prototype.resolve=
function(Q){return this._complete(this._onSuccessHandlers,1,Q,"resolve")};u.Promise.prototype.reject=function(Q){return this._complete(this._onErrorHandlers,-1,Q,"reject")};u.Promise.prototype._complete=function(Q,H,q,y){if(this._status!=0){P.group("Promise already closed");P.error("Attempted "+y+"() with ",q);P.error("Previous status = ",this._status,", previous value = ",this._value);P.trace();if(this._completeTrace){P.error("Trace of previous completion:");this._completeTrace.log(5)}P.groupEnd();
return this}this._status=H;this._value=q;Q.forEach(function(I){I.call(null,this._value)},this);this._onSuccessHandlers.length=0;this._onErrorHandlers.length=0;delete u._outstanding[this._id];for(u._recent.push(this);u._recent.length>20;)u._recent.shift();return this};u.group=function(Q){Q instanceof Array||(Q=Array.prototype.slice.call(arguments));if(Q.length===0)return(new u.Promise).resolve([]);var H=new u.Promise,q=[],y=0,I=function(W){return function(J){q[W]=J;y++;H._status!==-1&&y===Q.length&&
H.resolve(q)}};Q.forEach(function(W,J){J=I(J);var M=H.reject.bind(H);W.then(J,M)});return H}});
bespin.tiki.module("bespin:util/cookie",function(R,u){var P=function(Y,Q){return Y.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(H){if(Q&&Q.indexOf(H)!=-1)return H;return"\\"+H})};u.get=function(Y){Y=new RegExp("(?:^|; )"+P(Y)+"=([^;]*)");return(Y=document.cookie.match(Y))?decodeURIComponent(Y[1]):undefined};u.set=function(Y,Q,H){H=H||{};if(typeof H.expires=="number"){var q=new Date;q.setTime(q.getTime()+H.expires*24*60*60*1E3);H.expires=q}if(H.expires&&H.expires.toUTCString)H.expires=H.expires.toUTCString();
Q=encodeURIComponent(Q);Y=Y+"="+Q;var y;for(y in H){Y+="; "+y;Q=H[y];if(Q!==true)Y+="="+Q}document.cookie=Y};u.remove=function(Y){u.set(Y,"",{expires:-1})};u.isSupported=function(){if(!("cookieEnabled"in navigator)){u.set("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=u.get("__djCookieTest__")=="CookiesAllowed";navigator.cookieEnabled&&u.remove("__djCookieTest__")}return navigator.cookieEnabled}});
bespin.tiki.module("bespin:util/scratchcanvas",function(R,u){var P=R("bespin:util/util"),Y=function(){this._canvas=document.getElementById("bespin-scratch-canvas");if(P.none(this._canvas)){this._canvas=document.createElement("canvas");this._canvas.id="bespin-scratch-canvas";this._canvas.width=400;this._canvas.height=300;this._canvas.style.position="absolute";this._canvas.style.top="-10000px";this._canvas.style.left="-10000px";document.body.appendChild(this._canvas)}};Y.prototype.getContext=function(){return this._canvas.getContext("2d")};
Y.prototype.measureStringWidth=function(H,q){if(P.none(q))q="M";var y=this.getContext();y.save();y.font=H;H=y.measureText(q).width;y.restore();return H};var Q=null;u.get=function(){if(Q===null)Q=new Y;return Q}});
bespin.tiki.module("bespin:util/stacktrace",function(R,u){function P(J){for(var M=0;M<J.length;++M){var m=J[M];if(typeof m=="object")J[M]="#object";else if(typeof m=="function")J[M]="#function";else if(typeof m=="string")J[M]='"'+m+'"'}return J.join(",")}function Y(){}var Q=R("bespin:util/util"),H=R("bespin:console").console,q=function(){if(Q.isMozilla)return"firefox";else if(Q.isOpera)return"opera";else if(Q.isSafari)return"other";try{0()}catch(J){if(J.arguments)return"chrome";if(J.stack)return"firefox";
if(window.opera&&!("stacktrace"in J))return"opera"}return"other"}(),y={chrome:function(J){var M=J.stack;if(!M){H.log(J);return[]}return M.replace(/^.*?\n/,"").replace(/^.*?\n/,"").replace(/^.*?\n/,"").replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@").split("\n")},firefox:function(J){var M=J.stack;if(!M){H.log(J);return[]}M=M.replace(/(?:\n@:0)?\s+$/m,"");M=M.replace(/^\(/gm,"{anonymous}(");return M.split("\n")},opera:function(J){J=J.message.split("\n");
var M=/Line\s+(\d+).*?script\s+(http\S+)(?:.*?in\s+function\s+(\S+))?/i,m,s,w;m=4;s=0;for(w=J.length;m<w;m+=2)if(M.test(J[m]))J[s++]=(RegExp.$3?RegExp.$3+"()@"+RegExp.$2+RegExp.$1:"{anonymous}()@"+RegExp.$2+":"+RegExp.$1)+" -- "+J[m+1].replace(/^\s+/,"");J.splice(s,J.length-s);return J},other:function(J){for(var M=/function\s*([\w\-$]+)?\s*\(/i,m=[],s=0,w,K;J&&m.length<10;){w=M.test(J.toString())?RegExp.$1||"{anonymous}":"{anonymous}";K=Array.prototype.slice.call(J.arguments);m[s++]=w+"("+P(K)+")";
if(J===J.caller&&window.opera)break;J=J.caller}return m}};Y.prototype={sourceCache:{},ajax:function(J){var M=this.createXMLHTTPObject();if(M){M.open("GET",J,false);M.setRequestHeader("User-Agent","XMLHTTP/1.0");M.send("");return M.responseText}},createXMLHTTPObject:function(){for(var J,M=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],m=0;m<
M.length;m++)try{J=M[m]();this.createXMLHTTPObject=M[m];return J}catch(s){}},getSource:function(J){J in this.sourceCache||(this.sourceCache[J]=this.ajax(J).split("\n"));return this.sourceCache[J]},guessFunctions:function(J){for(var M=0;M<J.length;++M){var m=J[M],s=/{anonymous}\(.*\)@(\w+:\/\/([-\w\.]+)+(:\d+)?[^:]+):(\d+):?(\d+)?/.exec(m);if(s){var w=s[1];s=s[4];if(w&&s){w=this.guessFunctionName(w,s);J[M]=m.replace("{anonymous}",w)}}}return J},guessFunctionName:function(J,M){try{return this.guessFunctionNameFromLines(M,
this.getSource(J))}catch(m){return"getSource failed with url: "+J+", exception: "+m.toString()}},guessFunctionNameFromLines:function(J,M){for(var m=/function ([^(]*)\(([^)]*)\)/,s=/['"]?([0-9A-Za-z_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,w="",K=0;K<10;++K){w=M[J-K]+w;if(w!==undefined){var c=s.exec(w);if(c)return c[1];else c=m.exec(w);if(c&&c[1])return c[1]}}return"(?)"}};var I=new Y,W=[/http:\/\/localhost:4020\/sproutcore.js:/];u.ignoreFramesMatching=function(J){W.push(J)};u.Trace=function(J,
M){this._ex=J;this._stack=y[q](J);if(M)this._stack=I.guessFunctions(this._stack)};u.Trace.prototype.log=function(J){if(J<=0)J=999999999;for(var M=0,m=0;m<this._stack.length&&M<J;m++){var s=this._stack[m],w=true;W.forEach(function(K){if(K.test(s))w=false});if(w){H.debug(s);M++}}}});
bespin.tiki.module("bespin:util/util",function(R,u){u.queryToObject=function(q,y){var I={};q=q.split(y||"&");var W=decodeURIComponent;q.forEach(function(J){if(J.length){var M=J.split("=");J=W(M.shift());M=W(M.join("="));if(u.isString(I[J]))I[J]=[I[J]];if(Array.isArray(I[J]))I[J].push(M);else I[J]=M}});return I};u.objectToQuery=function(q){var y=encodeURIComponent,I=[],W={};for(var J in q){var M=q[J];if(M!=W[J]){var m=y(J)+"=";if(M.isArray)for(var s=0;s<M.length;s++)I.push(m+y(M[s]));else I.push(m+
y(M))}}return I.join("&")};var P=0,Y={};u.rateLimit=function(q,y,I){if(q){var W=P++;return function(){Y[W]&&clearTimeout(Y[W]);Y[W]=setTimeout(function(){I.apply(y,arguments);delete Y[W]},q)}}};u.isString=function(q){return typeof q=="string"||q instanceof String};u.isBoolean=function(q){return typeof q=="boolean"};u.isNumber=function(q){return typeof q=="number"&&isFinite(q)};u.isObject=function(q){return q!==undefined&&(q===null||typeof q=="object"||Array.isArray(q)||u.isFunction(q))};u.isFunction=
function(){var q=function(y){var I=typeof y;return y&&(I=="function"||y instanceof Function)&&!y.nodeType};return u.isSafari?function(y){if(typeof y=="function"&&y=="[object NodeList]")return false;return q(y)}:q}();u.endsWith=function(q,y){if(!q)return false;return q.match(new RegExp(y+"$"))};u.include=function(q,y){return q.indexOf(y)>-1};u.indexOfProperty=function(q,y,I){for(var W=0;W<q.length;W++)if(q[W][y]==I)return W;return null};u.last=function(q){if(Array.isArray(q))return q[q.length-1]};
u.shrinkArray=function(q){var y=[],I=true;q.reverse().forEach(function(W){if(!(I&&W===undefined)){I=false;y.push(W)}});return y.reverse()};u.makeArray=function(q,y){if(q<1)return[];y||(y=" ");for(var I=[],W=0;W<q;W++)I.push(y);return I};u.repeatString=function(q,y){for(var I="",W=0;W<y;W++)I+=q;return I};u.leadingSpaces=function(q){for(var y=0,I=0;I<q.length;I++)if(q[I]==" "||q[I]==""||q[I]===undefined)y++;else return y;return y};u.leadingTabs=function(q){for(var y=0,I=0;I<q.length;I++)if(q[I]=="\t"||
q[I]==""||q[I]===undefined)y++;else return y;return y};u.leadingWhitespace=function(q){for(var y=[],I=0;I<q.length;I++)if(q[I]==" "||q[I]=="\t"||q[I]==""||q[I]===undefined)y.push(q[I]);else return y;return y};u.englishFromCamel=function(q){q.replace(/([A-Z])/g,function(y){return" "+y.toLowerCase()}).trim()};u.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"};R=navigator.userAgent;var Q=navigator.appVersion;u.isLinux=Q.indexOf("Linux")>=0;u.isWindows=Q.indexOf("Win")>=0;u.isWebKit=parseFloat(R.split("WebKit/")[1])||
undefined;u.isChrome=parseFloat(R.split("Chrome/")[1])||undefined;u.isMac=Q.indexOf("Macintosh")>=0;u.isMozilla=Q.indexOf("Gecko/")>=0;if(R.indexOf("AdobeAIR")>=0)u.isAIR=1;var H=Math.max(Q.indexOf("WebKit"),Q.indexOf("Safari"),0);if(H&&!u.isChrome){u.isSafari=parseFloat(Q.split("Version/")[1]);if(!u.isSafari||parseFloat(Q.substr(H+7))<=419.3)u.isSafari=2}if(R.indexOf("Gecko")>=0&&!u.isWebKit)u.isMozilla=parseFloat(Q);u.getOS=function(){return u.isMac?u.OS.MAC:u.isLinux?u.OS.LINUX:u.OS.WINDOWS};u.contains=
typeof document!=="undefined"&&document.compareDocumentPosition?function(q,y){return q.compareDocumentPosition(y)&16}:function(q,y){return q!==y&&(q.contains?q.contains(y):true)};u.stopEvent=function(q){q.preventDefault();q.stopPropagation()};u.randomPassword=function(q){q=q||16;for(var y="",I=0;I<q;I++){var W=Math.floor(Math.random()*62);y+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890".charAt(W)}return y};u.isEmpty=function(q){for(var y in q)if(q.hasOwnProperty(y))return false;
return true};u.isMyProject=function(q){return q.indexOf("+")==-1};u.formatDate=function(q){if(!q)return"Unknown";return q.getDate()+" "+u.formatDate.shortMonths[q.getMonth()]+" "+q.getFullYear()};u.formatDate.shortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];u.addClass=function(q,y){y=y.split(/\s+/);for(var I=" "+q.className+" ",W=0,J=y.length,M;W<J;++W)if((M=y[W])&&I.indexOf(" "+M+" ")<0)I+=M+" ";q.className=I.trim()};u.removeClass=function(q,y){if(y!==undefined){var I=
y.split(/\s+/);y=" "+q.className+" ";for(var W=0,J=I.length;W<J;++W)y=y.replace(" "+I[W]+" "," ");y=y.trim()}else y="";if(q.className!=y)q.className=y};u.setClass=function(q,y,I){I?u.addClass(q,y):u.removeClass(q,y)};u.none=function(q){return q===null||q===undefined};u.clone=function(q){if(Array.isArray(q))return q.slice();if(typeof q==="object"){if(q===null)return null;var y={};for(var I in q)y[I]=q[I];return y}if(q.clone&&typeof q.clone==="function")return q.clone();return q};u.mixin=function(q,
y){for(var I in y){var W=y.__lookupGetter__(I),J=y.__lookupSetter__(I);if(W||J){W&&q.__defineGetter__(I,W);J&&q.__defineSetter__(I,J)}else q[I]=y[I]}return q};u.replace=function(q,y,I,W){return q.slice(0,y).concat(W).concat(q.slice(y+I))};u.rectsEqual=function(q,y,I){if(!q||!y)return q==y;if(!I&&I!==0)I=0.1;if(q.y!=y.y&&Math.abs(q.y-y.y)>I)return false;if(q.x!=y.x&&Math.abs(q.x-y.x)>I)return false;if(q.width!=y.width&&Math.abs(q.width-y.width)>I)return false;if(q.height!=y.height&&Math.abs(q.height-
y.height)>I)return false;return true}});bespin.tiki.register("::syntax_directory",{name:"syntax_directory",dependencies:{}});
bespin.tiki.module("syntax_directory:index",function(R,u){function P(H){this.extension=H;this.name=H.name;this.fileExts=H.hasOwnProperty("fileexts")?H.fileexts:[]}function Y(H){Q.register(H)}R("bespin:plugins");var Q={_fileExts:{},_syntaxInfo:{},get:function(H){return this._syntaxInfo[H]},hasSyntax:function(H){return this._syntaxInfo.hasOwnProperty(H)},register:function(H){var q=new P(H);this._syntaxInfo[q.name]=q;var y=this._fileExts;q.fileExts.forEach(function(I){y[I]=q.name})},syntaxForFileExt:function(H){H=
H.toLowerCase();var q=this._fileExts;return q.hasOwnProperty(H)?q[H]:"plain"}};u.syntaxDirectory=Q;u.discoveredNewSyntax=Y});bespin.tiki.register("::underscore",{name:"underscore",dependencies:{}});
bespin.tiki.module("underscore:index",function(R,u){(function(){var P=this,Y=P._,Q=typeof StopIteration!=="undefined"?StopIteration:"__break__",H=function(k){return k.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},q=Array.prototype,y=Object.prototype,I=q.slice,W=q.unshift,J=y.toString,M=y.hasOwnProperty,m=q.forEach,s=q.map,w=q.reduce,K=q.reduceRight,c=q.filter,T=q.every,fa=q.some,G=q.indexOf,ia=q.lastIndexOf;y=Array.isArray;var ra=Object.keys,r=function(k){return new sa(k)};if(typeof u!=="undefined")u._=
r;P._=r;r.VERSION="1.0.2";var da=r.forEach=function(k,t,C){try{if(m&&k.forEach===m)k.forEach(t,C);else if(r.isNumber(k.length))for(var B=0,V=k.length;B<V;B++)t.call(C,k[B],B,k);else for(B in k)M.call(k,B)&&t.call(C,k[B],B,k)}catch(ca){if(ca!=Q)throw ca;}return k};r.map=function(k,t,C){if(s&&k.map===s)return k.map(t,C);var B=[];da(k,function(V,ca,ka){B.push(t.call(C,V,ca,ka))});return B};r.reduce=function(k,t,C,B){if(w&&k.reduce===w)return k.reduce(r.bind(C,B),t);da(k,function(V,ca,ka){t=C.call(B,
t,V,ca,ka)});return t};r.reduceRight=function(k,t,C,B){if(K&&k.reduceRight===K)return k.reduceRight(r.bind(C,B),t);k=r.clone(r.toArray(k)).reverse();return r.reduce(k,t,C,B)};r.detect=function(k,t,C){var B;da(k,function(V,ca,ka){if(t.call(C,V,ca,ka)){B=V;r.breakLoop()}});return B};r.filter=function(k,t,C){if(c&&k.filter===c)return k.filter(t,C);var B=[];da(k,function(V,ca,ka){t.call(C,V,ca,ka)&&B.push(V)});return B};r.reject=function(k,t,C){var B=[];da(k,function(V,ca,ka){!t.call(C,V,ca,ka)&&B.push(V)});
return B};r.every=function(k,t,C){t=t||r.identity;if(T&&k.every===T)return k.every(t,C);var B=true;da(k,function(V,ca,ka){(B=B&&t.call(C,V,ca,ka))||r.breakLoop()});return B};r.some=function(k,t,C){t=t||r.identity;if(fa&&k.some===fa)return k.some(t,C);var B=false;da(k,function(V,ca,ka){if(B=t.call(C,V,ca,ka))r.breakLoop()});return B};r.include=function(k,t){if(G&&k.indexOf===G)return k.indexOf(t)!=-1;var C=false;da(k,function(B){if(C=B===t)r.breakLoop()});return C};r.invoke=function(k,t){var C=r.rest(arguments,
2);return r.map(k,function(B){return(t?B[t]:B).apply(B,C)})};r.pluck=function(k,t){return r.map(k,function(C){return C[t]})};r.max=function(k,t,C){if(!t&&r.isArray(k))return Math.max.apply(Math,k);var B={computed:-Infinity};da(k,function(V,ca,ka){ca=t?t.call(C,V,ca,ka):V;ca>=B.computed&&(B={value:V,computed:ca})});return B.value};r.min=function(k,t,C){if(!t&&r.isArray(k))return Math.min.apply(Math,k);var B={computed:Infinity};da(k,function(V,ca,ka){ca=t?t.call(C,V,ca,ka):V;ca<B.computed&&(B={value:V,
computed:ca})});return B.value};r.sortBy=function(k,t,C){return r.pluck(r.map(k,function(B,V,ca){return{value:B,criteria:t.call(C,B,V,ca)}}).sort(function(B,V){B=B.criteria;V=V.criteria;return B<V?-1:B>V?1:0}),"value")};r.sortedIndex=function(k,t,C){C=C||r.identity;for(var B=0,V=k.length;B<V;){var ca=B+V>>1;C(k[ca])<C(t)?(B=ca+1):(V=ca)}return B};r.toArray=function(k){if(!k)return[];if(k.toArray)return k.toArray();if(r.isArray(k))return k;if(r.isArguments(k))return I.call(k);return r.values(k)};r.size=
function(k){return r.toArray(k).length};r.first=function(k,t,C){return t&&!C?I.call(k,0,t):k[0]};r.rest=function(k,t,C){return I.call(k,r.isUndefined(t)||C?1:t)};r.last=function(k){return k[k.length-1]};r.compact=function(k){return r.filter(k,function(t){return!!t})};r.flatten=function(k){return r.reduce(k,[],function(t,C){if(r.isArray(C))return t.concat(r.flatten(C));t.push(C);return t})};r.without=function(k){var t=r.rest(arguments);return r.filter(k,function(C){return!r.include(t,C)})};r.uniq=
function(k,t){return r.reduce(k,[],function(C,B,V){if(0==V||(t===true?r.last(C)!=B:!r.include(C,B)))C.push(B);return C})};r.intersect=function(k){var t=r.rest(arguments);return r.filter(r.uniq(k),function(C){return r.every(t,function(B){return r.indexOf(B,C)>=0})})};r.zip=function(){for(var k=r.toArray(arguments),t=r.max(r.pluck(k,"length")),C=new Array(t),B=0;B<t;B++)C[B]=r.pluck(k,String(B));return C};r.indexOf=function(k,t){if(G&&k.indexOf===G)return k.indexOf(t);for(var C=0,B=k.length;C<B;C++)if(k[C]===
t)return C;return-1};r.lastIndexOf=function(k,t){if(ia&&k.lastIndexOf===ia)return k.lastIndexOf(t);for(var C=k.length;C--;)if(k[C]===t)return C;return-1};r.range=function(k,t,C){var B=r.toArray(arguments),V=B.length<=1;k=V?0:B[0];t=V?B[0]:B[1];C=B[2]||1;B=Math.ceil((t-k)/C);if(B<=0)return[];B=new Array(B);V=k;for(var ca=0;;V+=C){if((C>0?V-t:t-V)>=0)return B;B[ca++]=V}};r.bind=function(k,t){var C=r.rest(arguments,2);return function(){return k.apply(t||{},C.concat(r.toArray(arguments)))}};r.bindAll=
function(k){var t=r.rest(arguments);if(t.length==0)t=r.functions(k);da(t,function(C){k[C]=r.bind(k[C],k)});return k};r.delay=function(k,t){var C=r.rest(arguments,2);return setTimeout(function(){return k.apply(k,C)},t)};r.defer=function(k){return r.delay.apply(r,[k,1].concat(r.rest(arguments)))};r.wrap=function(k,t){return function(){var C=[k].concat(r.toArray(arguments));return t.apply(t,C)}};r.compose=function(){var k=r.toArray(arguments);return function(){for(var t=r.toArray(arguments),C=k.length-
1;C>=0;C--)t=[k[C].apply(this,t)];return t[0]}};r.keys=ra||function(k){if(r.isArray(k))return r.range(0,k.length);var t=[];for(var C in k)M.call(k,C)&&t.push(C);return t};r.values=function(k){return r.map(k,r.identity)};r.functions=function(k){return r.filter(r.keys(k),function(t){return r.isFunction(k[t])}).sort()};r.extend=function(k){da(r.rest(arguments),function(t){for(var C in t)k[C]=t[C]});return k};r.clone=function(k){if(r.isArray(k))return k.slice(0);return r.extend({},k)};r.tap=function(k,
t){t(k);return k};r.isEqual=function(k,t){if(k===t)return true;var C=typeof k;if(C!=typeof t)return false;if(k==t)return true;if(!k&&t||k&&!t)return false;if(k.isEqual)return k.isEqual(t);if(r.isDate(k)&&r.isDate(t))return k.getTime()===t.getTime();if(r.isNaN(k)&&r.isNaN(t))return true;if(r.isRegExp(k)&&r.isRegExp(t))return k.source===t.source&&k.global===t.global&&k.ignoreCase===t.ignoreCase&&k.multiline===t.multiline;if(C!=="object")return false;if(k.length&&k.length!==t.length)return false;C=r.keys(k);
var B=r.keys(t);if(C.length!=B.length)return false;for(var V in k)if(!(V in t)||!r.isEqual(k[V],t[V]))return false;return true};r.isEmpty=function(k){if(r.isArray(k)||r.isString(k))return k.length===0;for(var t in k)if(M.call(k,t))return false;return true};r.isElement=function(k){return!!(k&&k.nodeType==1)};r.isArray=y||function(k){return!!(k&&k.concat&&k.unshift&&!k.callee)};r.isArguments=function(k){return k&&k.callee};r.isFunction=function(k){return!!(k&&k.constructor&&k.call&&k.apply)};r.isString=
function(k){return!!(k===""||k&&k.charCodeAt&&k.substr)};r.isNumber=function(k){return k===+k||J.call(k)==="[object Number]"};r.isBoolean=function(k){return k===true||k===false};r.isDate=function(k){return!!(k&&k.getTimezoneOffset&&k.setUTCFullYear)};r.isRegExp=function(k){return!!(k&&k.test&&k.exec&&(k.ignoreCase||k.ignoreCase===false))};r.isNaN=function(k){return r.isNumber(k)&&isNaN(k)};r.isNull=function(k){return k===null};r.isUndefined=function(k){return typeof k=="undefined"};r.noConflict=function(){P._=
Y;return this};r.identity=function(k){return k};r.times=function(k,t,C){for(var B=0;B<k;B++)t.call(C,B)};r.breakLoop=function(){throw Q;};r.mixin=function(k){da(r.functions(k),function(t){la(t,r[t]=k[t])})};var pa=0;r.uniqueId=function(k){var t=pa++;return k?k+t:t};r.templateSettings={start:"<%",end:"%>",interpolate:/<%=(.+?)%>/g};r.template=function(k,t){var C=r.templateSettings,B=new RegExp("'(?=[^"+C.end.substr(0,1)+"]*"+H(C.end)+")","g");k=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+
k.replace(/[\r\t\n]/g," ").replace(B,"\t").split("'").join("\\'").split("\t").join("'").replace(C.interpolate,"',$1,'").split(C.start).join("');").split(C.end).join("p.push('")+"');}return p.join('');");return t?k(t):k};r.each=r.forEach;r.foldl=r.inject=r.reduce;r.foldr=r.reduceRight;r.select=r.filter;r.all=r.every;r.any=r.some;r.head=r.first;r.tail=r.rest;r.methods=r.functions;var sa=function(k){this._wrapped=k},oa=function(k,t){return t?r(k).chain():k},la=function(k,t){sa.prototype[k]=function(){var C=
r.toArray(arguments);W.call(C,this._wrapped);return oa(t.apply(r,C),this._chain)}};r.mixin(r);da(["pop","push","reverse","shift","sort","splice","unshift"],function(k){var t=q[k];sa.prototype[k]=function(){t.apply(this._wrapped,arguments);return oa(this._wrapped,this._chain)}});da(["concat","join","slice"],function(k){var t=q[k];sa.prototype[k]=function(){return oa(t.apply(this._wrapped,arguments),this._chain)}});sa.prototype.chain=function(){this._chain=true;return this};sa.prototype.value=function(){return this._wrapped}})();
u._.noConflict()});
bespin.tiki.require("bespin:plugins").catalog.loadMetadata({jquery:{testmodules:[],resourceURL:"resources/jquery/",name:"jquery",type:"plugins/thirdparty"},bespin:{resourceURL:"resources/bespin/",name:"bespin",environments:{main:true,worker:true},dependencies:{jquery:"1.4.0"},testmodules:[],type:"plugins/boot"},syntax_directory:{resourceURL:"resources/syntax_directory/",name:"syntax_directory",environments:{main:true,worker:true},dependencies:{},testmodules:[],provides:[{register:"#discoveredNewSyntax",ep:"extensionhandler",
name:"syntax"}],type:"plugins/supported",description:"Catalogs the available syntax engines"},underscore:{testmodules:[],type:"plugins/thirdparty",resourceURL:"resources/underscore/",description:"Functional Programming Aid for Javascript. Works well with jQuery.",name:"underscore"}});typeof window==="undefined"?importScripts("BespinWorker.js"):function(){var R=document.createElement("script");R.setAttribute("src",bespin.base+"BespinMain.js");document.getElementsByTagName("head")[0].appendChild(R)}();
