Commits

mic  committed 7448b84

Modify how node values are set

  • Participants
  • Parent commits 1991f21

Comments (0)

Files changed (3)

 			<a class="lib" href="javascript:void(0)" onclick="loadLib('sizzle');">Sizzle</a>
 			<a class="lib" href="javascript:void(0)" onclick="loadLib('sly');">Sly</a> - 
 			<a class="lib" href="javascript:void(0)" onclick="loadLib('pure');">PURE Alone (modern browsers only)</a>
-			<p>Or look at the source code of the tutorials:<br/><a href="tutorial/tuto1.html">Tuto 1</a> <a href="tutorial/tuto2.html">Tuto 2</a> <a href="tutorial/tuto3.html">Tuto 3</a> <a href="tutorial/tuto4.html">Tuto 4</a> <a href="tutorial/tuto5.html">Tuto 5</a> <a href="tutorial/tuto5b.html">Tuto 5b</a> <a href="tutorial/tuto6.html">Tuto 6</a> </p>
+			<p>Or look at the source code of the tutorials:<br/><a href="tutorial/tuto1.html">Tuto 1</a> <a href="tutorial/tuto2.html">Tuto 2</a> <a href="tutorial/tuto3.html">Tuto 3</a> <a href="tutorial/tuto4.html">Tuto 4</a> <a href="tutorial/tuto5.html">Tuto 5</a> <a href="tutorial/tuto5b.html">Tuto 5b</a> <a href="tutorial/tuto6.html">Tuto 6</a>  <a href="tutorial/tuto7.html">Tuto 7</a> </p>
 		</div>
 	
 		<div id="examples">

File libs/pure.js

 	Copyright (c) 2010 Michael Cvilic - BeeBole.com
 
 	Thanks to Rog Peppe for the functional JS jump
-	revision: 2.36
+	revision: 2.37
 */
 
 var $p, pure = $p = function(){
 				error('cannot append with loop (sel: ' + osel + ')');
 			}
 		}
-		var setstr, getstr, quotefn, isStyle, isClass, attName;
+		var setstr, getstr, quotefn, isStyle, isClass, attName, setfn;
 		if(attr){
 			isStyle = (/^style$/i).test(attr);
 			isClass = (/^class$/i).test(attr);
 					isClass && node.removeAttribute(attName);
 				}
 			};
-			if(isStyle) {
-				getstr = function(node){ return node.style.cssText; };
-			}else if(isClass) {
-				getstr = function(node){ return node.className;	};
-			}else{
-				getstr = function(node){ return node.getAttribute(attr); };
-			}
 			if (isStyle || isClass) {//IE no quotes special care
+				if(isStyle){
+					getstr = function(n){ return n.style.cssText; };
+				}else{
+					getstr = function(n){ return n.className;	};
+				}
 				quotefn = function(s){ return s.replace(/\"/g, '&quot;'); };
 			}else {
+				getstr = function(n){ return n.getAttribute(attr); };
 				quotefn = function(s){ return s.replace(/\"/g, '&quot;').replace(/\s/g, '&nbsp;'); };
 			}
+			if(prepend){
+				setfn = function(node, s){ setstr( node, s + getstr( node )); };
+			}else if(append){
+				setfn = function(node, s){ setstr( node, getstr( node ) + s); };
+			}else{
+				setfn = function(node, s){ setstr( node, s ); };
+			}
 		}else{
-			if(isloop){
-				setstr = function(node, s){
-					// we can have a null parent node
-					// if we get overlapping targets.
+			if (isloop) {
+				setfn = function(node, s) {
 					var pn = node.parentNode;
-					if(pn){
+					if (pn) {
 						//replace node with s
-						pn.insertBefore( document.createTextNode( s ), node.nextSibling );
-						pn.removeChild( node );
+						pn.insertBefore(document.createTextNode(s), node.nextSibling);
+						pn.removeChild(node);
 					}
 				};
-			}else{
-				getstr = function(node){ 
-					return node.innerHTML;
-				};
-				setstr = function(node, s, ap){
-					if(ap === true){
-						node.innerHTML = s;
-					}else{
-						node.innerHTML = '';
-						node.appendChild( document.createTextNode( s ));
-					}
-				};
+			} else {
+				if (prepend) {
+					setfn = function(node, s) { node.insertBefore(document.createTextNode(s), node.firstChild);	};
+				} else if (append) {
+					setfn = function(node, s) { node.appendChild(document.createTextNode(s));};
+				} else {
+					setfn = function(node, s) {
+						while (node.firstChild) { node.removeChild(node.firstChild); }
+						node.appendChild(document.createTextNode(s));
+					};
+				}
 			}
-			quotefn = function(s){ 
-				return s;
-			};
+			quotefn = function(s) { return s; };
 		}
-		var setfn;
-		if(prepend){
-			setfn = function(node, s){ 
-				setstr( node, s + getstr( node ) , true);
-			};
-		}else if(append){
-			setfn = function(node, s){ 
-				setstr( node, getstr( node ) + s , true);
-			};
-		}else{
-			setfn = function(node, s){ 
-				setstr( node, s );
-			};
-		}
-		return {attr: attr, nodes: target, set: setfn, sel: osel, quotefn: quotefn};
+		return { attr: attr, nodes: target, set: setfn, sel: osel, quotefn: quotefn };
 	}
 
 	function setsig(target, n){
 			}
 		}
 		if(!ls){
-			error('no loop spec');
+			error('Error in the selector: ' + sel + '\nA directive action must be a string, a function or a loop(<-)');
 		}
 		var dsel = loop[ls];
 		// if it's a simple data selector then we default to contents, not replacement.

File libs/pure_packed.js

     Copyright (c) 2010 Michael Cvilic - BeeBole.com
 
 	Thanks to Rog Peppe for the functional JS jump
-    revision: 2.36
+    revision: 2.37
 */
-var $p,pure=$p=function(){var sel=arguments[0],ctxt=false;if(typeof sel==='string'){ctxt=arguments[1]||false}return $p.core(sel,ctxt)};$p.core=function(sel,ctxt,plugins){var plugins=getPlugins(),templates=[];switch(typeof sel){case'string':templates=plugins.find(ctxt||document,sel);if(templates.length===0){error('The template "'+sel+'" was not found')}break;case'undefined':error('The template root is undefined, check your selector');break;default:templates=[sel]}for(var i=0,ii=templates.length;i<ii;i++){plugins[i]=templates[i]}plugins.length=ii;var Sig='_s'+Math.floor(Math.random()*1000000)+'_',attPfx='_a'+Math.floor(Math.random()*1000000)+'_',selRx=/^(\+)?([^\@\+]+)?\@?([^\+]+)?(\+)?$/,autoAttr={IMG:'src',INPUT:'value'};return plugins;function error(e){alert(e);if(typeof console!=='undefined'){console.log(e);debugger}throw('pure error: '+e);}function getPlugins(){var plugins=$p.plugins,f=function(){};f.prototype=plugins;f.prototype.compile=plugins.compile||compile;f.prototype.render=plugins.render||render;f.prototype.autoRender=plugins.autoRender||autoRender;f.prototype.find=plugins.find||find;f.prototype._compiler=compiler;f.prototype._error=error;return new f()}function outerHTML(node){return node.outerHTML||(function(n){var div=document.createElement('div'),h;div.appendChild(n.cloneNode(true));h=div.innerHTML;div=null;return h})(node)}function isArray(o){return Object.prototype.toString.call(o)==="[object Array]"}function wrapquote(qfn,f){return function(ctxt){return qfn(''+f.call(ctxt.context,ctxt))}}function domify(ns,pa){pa=pa||document.createDocumentFragment();var nn,leaf;for(var n in ns){nn=document.createElement(n);pa.appendChild(nn);if(typeof ns[n]==='object'){leaf=domify(ns[n],nn)}else{leaf=document.createElement(ns[n]);nn.appendChild(leaf)}}return leaf};function find(n,sel){if(typeof n==='string'){sel=n;n=false}if(typeof document.querySelectorAll!=='undefined'){return(n||document).querySelectorAll(sel)}else{error('You can test PURE standalone with: iPhone, FF3.5+, Safari4+ and IE8+\n\nTo run PURE on your browser, you need a JS library/framework with a CSS selector engine')}}function concatenator(parts,fns){return function(ctxt){var strs=[parts[0]],n=parts.length,fnVal,pVal,attLine,pos;for(var i=1;i<n;i++){fnVal=fns[i](ctxt);pVal=parts[i];if(fnVal===''){attLine=strs[strs.length-1];if((pos=attLine.search(/[\w]+=\"?$/))>-1){strs[strs.length-1]=attLine.substring(0,pos);pVal=pVal.substr(1)}}strs[strs.length]=fnVal;strs[strs.length]=pVal}return strs.join('')}}function parseloopspec(p){var m=p.match(/^(\w+)\s*<-\s*(\S+)?$/);if(m===null){error('bad loop spec: "'+p+'"')}if(m[1]==='item'){error('"item<-..." is a reserved word for the current running iteration.\n\nPlease choose another name for your loop.')}if(!m[2]||(m[2]&&(/context/i).test(m[2]))){m[2]=function(ctxt){return ctxt.context}}return{name:m[1],sel:m[2]}}function dataselectfn(sel){if(typeof(sel)==='function'){return sel}var m=sel.match(/^[a-zA-Z$_][\w$]*(\.[\w$-]*[^\.])*$/);if(m===null){var found=false,s=sel,parts=[],pfns=[],i=0,retStr;if(/\'|\"/.test(s.charAt(0))){if(/\'|\"/.test(s.charAt(s.length-1))){retStr=s.substring(1,s.length-1);return function(){return retStr}}}else{while((m=s.match(/#\{([^{}]+)\}/))!==null){found=true;parts[i++]=s.slice(0,m.index);pfns[i]=dataselectfn(m[1]);s=s.slice(m.index+m[0].length,s.length)}}if(!found){error('bad data selector syntax: '+sel)}parts[i]=s;return concatenator(parts,pfns)}m=sel.split('.');return function(ctxt){var data=ctxt.context;if(!data){return''}var v=ctxt[m[0]],i=0;if(v&&v.item){data=v.item;i+=1}var n=m.length;for(;i<n;i++){if(!data){break}data=data[m[i]]}return(!data&&data!==0)?'':data}}function gettarget(dom,sel,isloop){var osel,prepend,selector,attr,append,target=[];if(typeof sel==='string'){osel=sel;var m=sel.match(selRx);if(!m){error('bad selector syntax: '+sel)}prepend=m[1];selector=m[2];attr=m[3];append=m[4];if(selector==='.'||(!selector&&attr)){target[0]=dom}else{target=plugins.find(dom,selector)}if(!target||target.length===0){return error('The node "'+sel+'" was not found in the template')}}else{prepend=sel.prepend;attr=sel.attr;append=sel.append;target=[dom]}if(prepend||append){if(prepend&&append){error('append/prepend cannot take place at the same time')}else if(isloop){error('no append/prepend/replace modifiers allowed for loop target')}else if(append&&isloop){error('cannot append with loop (sel: '+osel+')')}}var setstr,getstr,quotefn,isStyle,isClass,attName;if(attr){isStyle=(/^style$/i).test(attr);isClass=(/^class$/i).test(attr);attName=isClass?'className':attr;setstr=function(node,s){node.setAttribute(attPfx+attr,s);if(attName in node&&!isStyle){node[attName]=''}if(node.nodeType===1){node.removeAttribute(attr);isClass&&node.removeAttribute(attName)}};if(isStyle){getstr=function(node){return node.style.cssText}}else if(isClass){getstr=function(node){return node.className}}else{getstr=function(node){return node.getAttribute(attr)}}if(isStyle||isClass){quotefn=function(s){return s.replace(/\"/g,'&quot;')}}else{quotefn=function(s){return s.replace(/\"/g,'&quot;').replace(/\s/g,'&nbsp;')}}}else{if(isloop){setstr=function(node,s){var pn=node.parentNode;if(pn){pn.insertBefore(document.createTextNode(s),node.nextSibling);pn.removeChild(node)}}}else{getstr=function(node){return node.innerHTML};setstr=function(node,s,ap){if(ap===true){node.innerHTML=s}else{node.innerHTML='';node.appendChild(document.createTextNode(s))}}}quotefn=function(s){return s}}var setfn;if(prepend){setfn=function(node,s){setstr(node,s+getstr(node),true)}}else if(append){setfn=function(node,s){setstr(node,getstr(node)+s,true)}}else{setfn=function(node,s){setstr(node,s)}}return{attr:attr,nodes:target,set:setfn,sel:osel,quotefn:quotefn}}function setsig(target,n){var sig=Sig+n+':';for(var i=0;i<target.nodes.length;i++){target.set(target.nodes[i],sig)}}function loopfn(name,dselect,inner,sorter,filter){return function(ctxt){var a=dselect(ctxt),old=ctxt[name],temp={items:a},filtered=0,length,strs=[],buildArg=function(idx,temp,ftr,len){ctxt.pos=temp.pos=idx;ctxt.item=temp.item=a[idx];ctxt.items=a;typeof len!=='undefined'&&(ctxt.length=len);if(typeof ftr==='function'&&!ftr(ctxt)){filtered++;return}strs.push(inner.call(temp,ctxt))};ctxt[name]=temp;if(isArray(a)){length=a.length||0;if(typeof sorter==='function'){a.sort(sorter)}for(var i=0,ii=length;i<ii;i++){buildArg(i,temp,filter,length-filtered)}}else{if(a&&typeof sorter!=='undefined'){error('sort is only available on arrays, not objects')}for(var prop in a){a.hasOwnProperty(prop)&&buildArg(prop,temp,filter)}}typeof old!=='undefined'?ctxt[name]=old:delete ctxt[name];return strs.join('')}}function loopgen(dom,sel,loop,fns){var already=false,ls,sorter,filter,prop;for(prop in loop){if(loop.hasOwnProperty(prop)){if(prop==='sort'){sorter=loop.sort;continue}else if(prop==='filter'){filter=loop.filter;continue}if(already){error('cannot have more than one loop on a target')}ls=prop;already=true}}if(!ls){error('no loop spec')}var dsel=loop[ls];if(typeof(dsel)==='string'||typeof(dsel)==='function'){loop={};loop[ls]={root:dsel};return loopgen(dom,sel,loop,fns)}var spec=parseloopspec(ls),itersel=dataselectfn(spec.sel),target=gettarget(dom,sel,true),nodes=target.nodes;for(i=0;i<nodes.length;i++){var node=nodes[i],inner=compiler(node,dsel);fns[fns.length]=wrapquote(target.quotefn,loopfn(spec.name,itersel,inner,sorter,filter));target.nodes=[node];setsig(target,fns.length-1)}}function getAutoNodes(n,data){var ns=n.getElementsByTagName('*'),an=[],openLoops={a:[],l:{}},cspec,isNodeValue,i,ii,j,jj,ni,cs,cj;for(i=-1,ii=ns.length;i<ii;i++){ni=i>-1?ns[i]:n;if(ni.nodeType===1&&ni.className!==''){cs=ni.className.split(' ');for(j=0,jj=cs.length;j<jj;j++){cj=cs[j];cspec=checkClass(cj,ni.tagName);if(cspec!==false){isNodeValue=(/nodevalue/i).test(cspec.attr);if(cspec.sel.indexOf('@')>-1||isNodeValue){ni.className=ni.className.replace('@'+cspec.attr,'');if(isNodeValue){cspec.attr=false}}an.push({n:ni,cspec:cspec})}}}}return an;function checkClass(c,tagName){var ca=c.match(selRx),attr=ca[3]||autoAttr[tagName],cspec={prepend:!!ca[1],prop:ca[2],attr:attr,append:!!ca[4],sel:c},i,ii,loopi,loopil,val;for(i=openLoops.a.length-1;i>=0;i--){loopi=openLoops.a[i];loopil=loopi.l[0];val=loopil&&loopil[cspec.prop];if(typeof val!=='undefined'){cspec.prop=loopi.p+'.'+cspec.prop;if(openLoops.l[cspec.prop]===true){val=val[0]}break}}if(typeof val==='undefined'){val=isArray(data)?data[0][cspec.prop]:data[cspec.prop];if(typeof val==='undefined'){return false}}if(isArray(val)){openLoops.a.push({l:val,p:cspec.prop});openLoops.l[cspec.prop]=true;cspec.t='loop'}else{cspec.t='str'}return cspec}}function compiler(dom,directive,data,ans){var fns=[];ans=ans||data&&getAutoNodes(dom,data);if(data){var j,jj,cspec,n,target,nodes,itersel,node,inner;while(ans.length>0){cspec=ans[0].cspec;n=ans[0].n;ans.splice(0,1);if(cspec.t==='str'){target=gettarget(n,cspec,false);setsig(target,fns.length);fns[fns.length]=wrapquote(target.quotefn,dataselectfn(cspec.prop))}else{itersel=dataselectfn(cspec.sel);target=gettarget(n,cspec,true);nodes=target.nodes;for(j=0,jj=nodes.length;j<jj;j++){node=nodes[j];inner=compiler(node,false,data,ans);fns[fns.length]=wrapquote(target.quotefn,loopfn(cspec.sel,itersel,inner));target.nodes=[node];setsig(target,fns.length-1)}}}}var target,dsel;for(var sel in directive){if(directive.hasOwnProperty(sel)){dsel=directive[sel];if(typeof(dsel)==='function'||typeof(dsel)==='string'){target=gettarget(dom,sel,false);setsig(target,fns.length);fns[fns.length]=wrapquote(target.quotefn,dataselectfn(dsel))}else{loopgen(dom,sel,dsel,fns)}}}var h=outerHTML(dom),pfns=[];h=h.replace(/<([^>]+)\s(value\=""|selected)\s?([^>]*)>/ig,"<$1 $3>");h=h.split(attPfx).join('');var parts=h.split(Sig),p;for(var i=1;i<parts.length;i++){p=parts[i];pfns[i]=fns[parseInt(p,10)];parts[i]=p.substring(p.indexOf(':')+1)}return concatenator(parts,pfns)}function compile(directive,ctxt,template){var rfn=compiler((template||this[0]).cloneNode(true),directive,ctxt);return function(context){return rfn({context:context})}}function render(ctxt,directive){var fn=typeof directive==='function'?directive:plugins.compile(directive,false,this[0]);for(var i=0,ii=this.length;i<ii;i++){this[i]=replaceWith(this[i],fn(ctxt,false))}context=null;return this}function autoRender(ctxt,directive){var fn=plugins.compile(directive,ctxt,this[0]);for(var i=0,ii=this.length;i<ii;i++){this[i]=replaceWith(this[i],fn(ctxt,false))}context=null;return this}function replaceWith(elm,html){var tagName=elm.tagName,ne,pa,ep,parent={TABLE:{}};if((/TD|TR|TH/).test(tagName)){var parents={TR:{TABLE:'TBODY'},TD:{TABLE:{TBODY:'TR'}},TH:{TABLE:{THEAD:'TR'}}};pa=domify(parents[tagName])}else if((/TBODY|THEAD|TFOOT/).test(tagName)){pa=document.createElement('TABLE')}else{pa=document.createElement('SPAN')}ep=elm.parentNode;ep.insertBefore(pa,elm);ep.removeChild(elm);pa.style.display='none';pa.innerHTML=html;ne=pa.firstChild;ep.insertBefore(ne,pa);ep.removeChild(pa);elm=ne;pa=ne=ep=null;return elm}};$p.plugins={};$p.libs={dojo:function(){if(typeof document.querySelector==='undefined'){$p.plugins.find=function(n,sel){return dojo.query(sel,n)}}},domassistant:function(){if(typeof document.querySelector==='undefined'){$p.plugins.find=function(n,sel){return $(n).cssSelect(sel)}}DOMAssistant.attach({publicMethods:['compile','render','autoRender'],compile:function(directive,ctxt){return $p(this).compile(directive,ctxt)},render:function(ctxt,directive){return $($p(this).render(ctxt,directive))[0]},autoRender:function(ctxt,directive){return $($p(this).autoRender(ctxt,directive))[0]}})},jquery:function(){if(typeof document.querySelector==='undefined'){$p.plugins.find=function(n,sel){return $(n).find(sel)}}jQuery.fn.extend({compile:function(directive,ctxt){return $p(this[0]).compile(directive,ctxt)},render:function(ctxt,directive){return jQuery($p(this[0]).render(ctxt,directive))},autoRender:function(ctxt,directive){return jQuery($p(this[0]).autoRender(ctxt,directive))}})},mootools:function(){if(typeof document.querySelector==='undefined'){$p.plugins.find=function(n,sel){return $(n).getElements(sel)}}Element.implement({compile:function(directive,ctxt){return $p(this).compile(directive,ctxt)},render:function(ctxt,directive){return $p(this).render(ctxt,directive)},autoRender:function(ctxt,directive){return $p(this).autoRender(ctxt,directive)}})},prototype:function(){if(typeof document.querySelector==='undefined'){$p.plugins.find=function(n,sel){n=n===document?n.body:n;return typeof n==='string'?$$(n):$(n).select(sel)}}Element.addMethods({compile:function(element,directive,ctxt){return $p(element).compile(directive,ctxt)},render:function(element,ctxt,directive){return $p(element).render(ctxt,directive)},autoRender:function(element,ctxt,directive){return $p(element).autoRender(ctxt,directive)}})},sizzle:function(){if(typeof document.querySelector==='undefined'){$p.plugins.find=function(n,sel){return Sizzle(sel,n)}}},sly:function(){if(typeof document.querySelector==='undefined'){$p.plugins.find=function(n,sel){return Sly(sel,n)}}}};(function(){var libkey=typeof dojo!=='undefined'&&'dojo'||typeof DOMAssistant!=='undefined'&&'domassistant'||typeof jQuery!=='undefined'&&'jquery'||typeof MooTools!=='undefined'&&'mootools'||typeof Prototype!=='undefined'&&'prototype'||typeof Sizzle!=='undefined'&&'sizzle'||typeof Sly!=='undefined'&&'sly';libkey&&$p.libs[libkey]()})();
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 $p,3o=$p=6(){9 a=3h[0],27=M;7(y a===\'16\'){27=3h[1]||M}8 $p.3d(a,27)};$p.3d=6(q,r,t){9 t=3a(),1e=[];4y(y q){37\'16\':1e=t.K(r||C,q);7(1e.x===0){G(\'2b 2l "\'+q+\'" 36 25 2C\')}21;37\'A\':G(\'2b 2l 34 2j A, 4r 2o X\');21;4q:1e=[q]}E(9 i=0,O=1e.x;i<O;i++){t[i]=1e[i]}t.x=O;9 u=\'4m\'+1Z.32(1Z.31()*30)+\'2q\',2s=\'4c\'+1Z.32(1Z.31()*30)+\'2q\',23=/^(\\+)?([^\\@\\+]+)?\\@?([^\\+]+)?(\\+)?$/,2W={4a:\'49\',48:\'2V\'};8 t;6 G(e){46(e);7(y 2U!==\'A\'){2U.42(e);41}3O(\'3o G: \'+e);}6 3a(){9 a=$p.11,f=6(){};f.W=a;f.W.I=a.I||I;f.W.N=a.N||N;f.W.Q=a.Q||Q;f.W.K=a.K||K;f.W.3N=1v;f.W.3M=G;8 3L f()}6 2d(b){8 b.2d||(6(n){9 a=C.1C(\'3K\'),h;a.1F(n.2R(14));h=a.2Q;a=18;8 h})(b)}6 1O(o){8 3C.W.3B.22(o)==="[2P 3y]"}6 1t(b,f){8 6(a){8 b(\'\'+f.22(a.1c,a))}}6 29(a,b){b=b||C.3x();9 c,1B;E(9 n 1a a){c=C.1C(n);b.1F(c);7(y a[n]===\'2P\'){1B=29(a[n],c)}B{1B=C.1C(a[n]);c.1F(1B)}}8 1B};6 K(n,a){7(y n===\'16\'){a=n;n=M}7(y C.2N!==\'A\'){8(n||C).2N(a)}B{G(\'3v 3u 12 2M 3s 2n: 3q, 3p.5+, 52+ 51 4I+\\n\\4G 4B 2M 2y 2o 4A, 4z 43 a 4w 4u/4t 2n a 4j X 47\')}}6 28(c,d){8 6(a){9 b=[c[0]],n=c.x,1I,1G,1J,1u;E(9 i=1;i<n;i++){1I=d[i](a);1G=c[i];7(1I===\'\'){1J=b[b.x-1];7((1u=1J.45(/[\\w]+=\\"?$/))>-1){b[b.x-1]=1J.2e(0,1u);1G=1G.3P(1)}}b[b.x]=1I;b[b.x]=1G}8 b.2g(\'\')}}6 2G(p){9 m=p.1s(/^(\\w+)\\s*<-\\s*(\\S+)?$/);7(m===18){G(\'2m 19 3D: "\'+p+\'"\')}7(m[1]===\'1k\'){G(\'"1k<-..." 2j a 3A 3z E 1T 3w 3t 4M.\\n\\3I 3r 4S 2z E 2o 19.\')}7(!m[2]||(m[2]&&(/1c/i).12(m[2]))){m[2]=6(a){8 a.1c}}8{2z:m[1],15:m[2]}}6 1l(c){7(y(c)===\'6\'){8 c}9 m=c.1s(/^[a-4x-Z$2q][\\w$]*(\\.[\\w$-]*[^\\.])*$/);7(m===18){9 d=M,s=c,1W=[],1n=[],i=0,2v;7(/\\\'|\\"/.12(s.35(0))){7(/\\\'|\\"/.12(s.35(s.x-1))){2v=s.2e(1,s.x-1);8 6(){8 2v}}}B{2u((m=s.1s(/#\\{([^{}]+)\\}/))!==18){d=14;1W[i++]=s.2D(0,m.2E);1n[i]=1l(m[1]);s=s.2D(m.2E+m[0].x,s.x)}}7(!d){G(\'2m 50 X 2F: \'+c)}1W[i]=s;8 28(1W,1n)}m=c.1U(\'.\');8 6(a){9 b=a.1c;7(!b){8\'\'}9 v=a[m[0]],i=0;7(v&&v.1k){b=v.1k;i+=1}9 n=m.x;E(;i<n;i++){7(!b){21}b=b[m[i]]}8(!b&&b!==0)?\'\':b}}6 1A(c,d,e){9 f,T,X,D,P,J=[];7(y d===\'16\'){f=d;9 m=d.1s(23);7(!m){G(\'2m X 2F: \'+d)}T=m[1];X=m[2];D=m[3];P=m[4];7(X===\'.\'||(!X&&D)){J[0]=c}B{J=t.K(c,X)}7(!J||J.x===0){8 G(\'2b 1E "\'+d+\'" 36 25 2C 1a 1T 2l\')}}B{T=d.T;D=d.D;P=d.P;J=[c]}7(T||P){7(T&&P){G(\'P/T 26 4b 4d 4e 1T 4g 4h\')}B 7(e){G(\'4i P/T/1d 4k 4s E 19 J\')}B 7(P&&e){G(\'26 P 2n 19 (15: \'+f+\')\')}}9 g,1h,U,1z,1y,1x,Y;7(D){1z=(/^2t$/i).12(D);1y=(/^4H$/i).12(D);1x=1y?\'1f\':D;g=6(a,s){a.4K(2s+D,s);7(1x 1a a&&!1z){a[1x]=\'\'}7(a.2H===1){a.2I(D);1y&&a.2I(1x)}};7(1z||1y){7(1z){1h=6(n){8 n.2t.4P}}B{1h=6(n){8 n.1f}}U=6(s){8 s.1d(/\\"/g,\'&2J;\')}}B{1h=6(n){8 n.4U(D)};U=6(s){8 s.1d(/\\"/g,\'&2J;\').1d(/\\s/g,\'&4Z;\')}}7(T){Y=6(a,s){g(a,s+1h(a))}}B 7(P){Y=6(a,s){g(a,1h(a)+s)}}B{Y=6(a,s){g(a,s)}}}B{7(e){Y=6(a,s){9 b=a.2K;7(b){b.1H(C.1K(s),a.55);b.1L(a)}}}B{7(T){Y=6(a,s){a.1H(C.1K(s),a.1M)}}B 7(P){Y=6(a,s){a.1F(C.1K(s))}}B{Y=6(a,s){2u(a.1M){a.1L(a.1M)}a.1F(C.1K(s))}}}U=6(s){8 s}}8{D:D,L:J,2L:Y,15:f,U:U}}6 1q(a,n){9 b=u+n+\':\';E(9 i=0;i<a.L.x;i++){a.2L(a.L[i],b)}}6 2i(h,j,k,l,m){8 6(f){9 a=j(f),24=f[h],1N={2O:a},2B=0,x,2A=[],2x=6(b,c,d,e){f.1u=c.1u=b;f.1k=c.1k=a[b];f.2O=a;y e!==\'A\'&&(f.x=e);7(y d===\'6\'&&!d(f)){2B++;8}2A.2r(k.22(c,f))};f[h]=1N;7(1O(a)){x=a.x||0;7(y l===\'6\'){a.1P(l)}E(9 i=0,O=x;i<O;i++){2x(i,1N,m,x-2B)}}B{7(a&&y l!==\'A\'){G(\'1P 2j 3E 3F 2y 3G, 25 3H\')}E(9 g 1a a){a.2k(g)&&2x(g,1N,m)}}y 24!==\'A\'?f[h]=24:3J f[h];8 2A.2g(\'\')}}6 2c(a,b,c,d){9 e=M,1i,2w,1w,H;E(H 1a c){7(c.2k(H)){7(H===\'1P\'){2w=c.1P;2S}B 7(H===\'1w\'){1w=c.1w;2S}7(e){G(\'26 3Q 3R 3S 3T 19 2y a J\')}1i=H;e=14}}7(!1i){G(\'3U 1a 1T X: \'+b+\'\\3V 3W 3X 3Y 3Z a 16, a 6 40 a 19(<-)\')}9 f=c[1i];7(y(f)===\'16\'||y(f)===\'6\'){c={};c[1i]={34:f};8 2c(a,b,c,d)}9 g=2G(1i),1p=1l(g.15),J=1A(a,b,14),L=J.L;E(i=0;i<L.x;i++){9 h=L[i],1o=1v(h,f);d[d.x]=1t(J.U,2i(g.2z,1p,1o,2w,1w));J.L=[h];1q(J,d.x-1)}}6 2T(n,d){9 e=n.44(\'*\'),2h=[],1g={a:[],l:{}},z,1S,i,O,j,1m,13,1V,2p;E(i=-1,O=e.x;i<O;i++){13=i>-1?e[i]:n;7(13.2H===1&&13.1f!==\'\'){1V=13.1f.1U(\' \');E(j=0,1m=1V.x;j<1m;j++){2p=1V[j];z=2X(2p,13.2Y);7(z!==M){1S=(/4f/i).12(z.D);7(z.15.2Z(\'@\')>-1||1S){13.1f=13.1f.1d(\'@\'+z.D,\'\');7(1S){z.D=M}}2h.2r({n:13,z:z})}}}}8 2h;6 2X(c,a){9 b=c.1s(23),D=b[3]||2W[a],z={T:!!b[1],H:b[2],D:D,P:!!b[4],15:c},i,O,1X,1Y,V;E(i=1g.a.x-1;i>=0;i--){1X=1g.a[i];1Y=1X.l[0];V=1Y&&1Y[z.H];7(y V!==\'A\'){z.H=1X.p+\'.\'+z.H;7(1g.l[z.H]===14){V=V[0]}21}}7(y V===\'A\'){V=1O(d)?d[0][z.H]:d[z.H];7(y V===\'A\'){8 M}}7(1O(V)){1g.a.2r({l:V,p:z.H});1g.l[z.H]=14;z.t=\'19\'}B{z.t=\'33\'}8 z}}6 1v(a,b,c,d){9 e=[];d=d||c&&2T(a,c);7(c){9 j,1m,z,n,f,L,1p,1E,1o;2u(d.x>0){z=d[0].z;n=d[0].n;d.4l(0,1);7(z.t===\'33\'){f=1A(n,z,M);1q(f,e.x);e[e.x]=1t(f.U,1l(z.H))}B{1p=1l(z.15);f=1A(n,z,14);L=f.L;E(j=0,1m=L.x;j<1m;j++){1E=L[j];1o=1v(1E,M,c,d);e[e.x]=1t(f.U,2i(z.15,1p,1o));f.L=[1E];1q(f,e.x-1)}}}}9 f,1j;E(9 g 1a b){7(b.2k(g)){1j=b[g];7(y(1j)===\'6\'||y(1j)===\'16\'){f=1A(a,g,M);1q(f,e.x);e[e.x]=1t(f.U,1l(1j))}B{2c(a,g,1j,e)}}}9 h=2d(a),1n=[];h=h.1d(/<([^>]+)\\s(2V\\=""|4n)\\s?([^>]*)>/4o,"<$1 $3>");h=h.1U(2s).2g(\'\');9 k=h.1U(u),p;E(9 i=1;i<k.x;i++){p=k[i];1n[i]=e[4p(p,10)];k[i]=p.2e(p.2Z(\':\')+1)}8 28(k,1n)}6 I(b,c,d){9 e=1v((d||F[0]).2R(14),b,c);8 6(a){8 e({1c:a})}}6 N(a,b){9 c=y b===\'6\'?b:t.I(b,M,F[0]);E(9 i=0,O=F.x;i<O;i++){F[i]=2f(F[i],c(a,M))}1c=18;8 F}6 Q(a,b){9 c=t.I(b,a,F[0]);E(9 i=0,O=F.x;i<O;i++){F[i]=2f(F[i],c(a,M))}1c=18;8 F}6 2f(a,b){9 c=a.2Y,1r,R,17,4v={1D:{}};7((/38|1R|39/).12(c)){9 d={1R:{1D:\'2a\'},38:{1D:{2a:\'1R\'}},39:{1D:{3b:\'1R\'}}};R=29(d[c])}B 7((/2a|3b|4C/).12(c)){R=C.1C(\'1D\')}B{R=C.1C(\'4D\')}17=a.2K;17.1H(R,a);17.1L(a);R.2t.4E=\'4F\';R.2Q=b;1r=R.1M;17.1H(1r,R);17.1L(R);a=1r;R=1r=17=18;8 a}};$p.11={};$p.3c={1Q:6(){7(y C.1b===\'A\'){$p.11.K=6(n,a){8 1Q.4J(a,n)}}},3e:6(){7(y C.1b===\'A\'){$p.11.K=6(n,a){8 $(n).4L(a)}}3f.4N({4O:[\'I\',\'N\',\'Q\'],I:6(a,b){8 $p(F).I(a,b)},N:6(a,b){8 $($p(F).N(a,b))[0]},Q:6(a,b){8 $($p(F).Q(a,b))[0]}})},3g:6(){7(y C.1b===\'A\'){$p.11.K=6(n,a){8 $(n).K(a)}}20.4Q.4R({I:6(a,b){8 $p(F[0]).I(a,b)},N:6(a,b){8 20($p(F[0]).N(a,b))},Q:6(a,b){8 20($p(F[0]).Q(a,b))}})},3i:6(){7(y C.1b===\'A\'){$p.11.K=6(n,a){8 $(n).4T(a)}}3j.4V({I:6(a,b){8 $p(F).I(a,b)},N:6(a,b){8 $p(F).N(a,b)},Q:6(a,b){8 $p(F).Q(a,b)}})},W:6(){7(y C.1b===\'A\'){$p.11.K=6(n,a){n=n===C?n.4W:n;8 y n===\'16\'?$$(n):$(n).4X(a)}}3j.4Y({I:6(a,b,c){8 $p(a).I(b,c)},N:6(a,b,c){8 $p(a).N(b,c)},Q:6(a,b,c){8 $p(a).Q(b,c)}})},3k:6(){7(y C.1b===\'A\'){$p.11.K=6(n,a){8 3l(a,n)}}},3m:6(){7(y C.1b===\'A\'){$p.11.K=6(n,a){8 3n(a,n)}}}};(6(){9 a=y 1Q!==\'A\'&&\'1Q\'||y 3f!==\'A\'&&\'3e\'||y 20!==\'A\'&&\'3g\'||y 53!==\'A\'&&\'3i\'||y 54!==\'A\'&&\'W\'||y 3l!==\'A\'&&\'3k\'||y 3n!==\'A\'&&\'3m\';a&&$p.3c[a]()})();',62,316,'||||||function|if|return|var||||||||||||||||||||||||length|typeof|cspec|undefined|else|document|attr|for|this|error|prop|compile|target|find|nodes|false|render|ii|append|autoRender|pa||prepend|quotefn|val|prototype|selector|setfn|||plugins|test|ni|true|sel|string|ep|null|loop|in|querySelector|context|replace|templates|className|openLoops|getstr|ls|dsel|item|dataselectfn|jj|pfns|inner|itersel|setsig|ne|match|wrapquote|pos|compiler|filter|attName|isClass|isStyle|gettarget|leaf|createElement|TABLE|node|appendChild|pVal|insertBefore|fnVal|attLine|createTextNode|removeChild|firstChild|temp|isArray|sort|dojo|TR|isNodeValue|the|split|cs|parts|loopi|loopil|Math|jQuery|break|call|selRx|old|not|cannot|ctxt|concatenator|domify|TBODY|The|loopgen|outerHTML|substring|replaceWith|join|an|loopfn|is|hasOwnProperty|template|bad|with|your|cj|_|push|attPfx|style|while|retStr|sorter|buildArg|on|name|strs|filtered|found|slice|index|syntax|parseloopspec|nodeType|removeAttribute|quot|parentNode|set|PURE|querySelectorAll|items|object|innerHTML|cloneNode|continue|getAutoNodes|console|value|autoAttr|checkClass|tagName|indexOf|1000000|random|floor|str|root|charAt|was|case|TD|TH|getPlugins|THEAD|libs|core|domassistant|DOMAssistant|jquery|arguments|mootools|Element|sizzle|Sizzle|sly|Sly|pure|FF3|iPhone|choose|standalone|running|can|You|current|createDocumentFragment|Array|word|reserved|toString|Object|spec|only|available|arrays|objects|nPlease|delete|div|new|_error|_compiler|throw|substr|have|more|than|one|Error|nA|directive|action|must|be|or|debugger|log|need|getElementsByTagName|search|alert|engine|INPUT|src|IMG|take|_a|place|at|nodevalue|same|time|no|CSS|modifiers|splice|_s|selected|ig|parseInt|default|check|allowed|framework|library|parent|JS|zA|switch|you|browser|run|TFOOT|SPAN|display|none|nTo|class|IE8|query|setAttribute|cssSelect|iteration|attach|publicMethods|cssText|fn|extend|another|getElements|getAttribute|implement|body|select|addMethods|nbsp|data|and|Safari4|MooTools|Prototype|nextSibling'.split('|'),0,{}))