[Sweetspot]update Sweetspot(tizen_2.1)
[samples/web/Sweetspot.git] / app / lib / jq.mobi.min.js
1 if(!window.jq||typeof jq!=="function"){var jq=function(g){function y(a,c,b){var d=h.createDocumentFragment();if(b){for(b=a.length-1;b>=0;b--)d.insertBefore(a[b],d.firstChild);c.insertBefore(d,c.firstChild)}else{for(b=0;b<a.length;b++)d.appendChild(a[b]);c.appendChild(d)}}function v(a){return a in w?w[a]:w[a]=RegExp("(^|\\s)"+a+"(\\s|$)")}function q(a){for(var c=0;c<a.length;c++)a.indexOf(a[c])!=c&&(a.splice(c,1),c--);return a}function z(a,c){var b=[];if(a==f)return b;for(;a;a=a.nextSibling)a.nodeType==
2 1&&a!==c&&b.push(a);return b}function A(a,c){try{return c.querySelectorAll(a)}catch(b){return[]}}function r(a,c){if(a){if(a.nodeType)return c[c.length++]=a;for(var b=0,d=a.length;b<d;b++)c[c.length++]=a[b]}}function p(){}function B(a,c){a.os={};a.os.webkit=c.match(/WebKit\/([\d.]+)/)?!0:!1;a.os.android=c.match(/(Android)\s+([\d.]+)/)||c.match(/Silk-Accelerated/)?!0:!1;a.os.androidICS=a.os.android&&c.match(/(Android)\s4/)?!0:!1;a.os.ipad=c.match(/(iPad).*OS\s([\d_]+)/)?!0:!1;a.os.iphone=!a.os.ipad&&
3 c.match(/(iPhone\sOS)\s([\d_]+)/)?!0:!1;a.os.webos=c.match(/(webOS|hpwOS)[\s\/]([\d.]+)/)?!0:!1;a.os.touchpad=a.os.webos&&c.match(/TouchPad/)?!0:!1;a.os.ios=a.os.ipad||a.os.iphone;a.os.playbook=c.match(/PlayBook/)?!0:!1;a.os.blackberry=a.os.playbook||c.match(/BlackBerry/)?!0:!1;a.os.blackberry10=a.os.blackberry&&c.match(/Safari\/536/)?!0:!1;a.os.chrome=c.match(/Chrome/)?!0:!1;a.os.opera=c.match(/Opera/)?!0:!1;a.os.fennec=c.match(/fennec/i)?!0:c.match(/Firefox/)?!0:!1;a.os.ie=c.match(/MSIE 10.0/i)?
4 !0:!1;a.os.ieTouch=a.os.ie&&c.toLowerCase().match(/touch/i)?!0:!1;a.os.supportsTouch=g.DocumentTouch&&h instanceof g.DocumentTouch||"ontouchstart"in g;a.feat={};var b=h.documentElement.getElementsByTagName("head")[0];a.feat.nativeTouchScroll=typeof b.style["-webkit-overflow-scrolling"]!=="undefined"&&a.os.ios;a.feat.cssPrefix=a.os.webkit?"Webkit":a.os.fennec?"Moz":a.os.ie?"ms":a.os.opera?"O":"";a.feat.cssTransformStart=!a.os.opera?"3d(":"(";a.feat.cssTransformEnd=!a.os.opera?",0)":")";if(a.os.android&&
5 !a.os.webkit)a.os.android=!1}function s(a){return a._jqmid||(a._jqmid=L++)}function M(a,c,b,d){c=C(c);if(c.ns)var e=RegExp("(?:^| )"+c.ns.replace(" "," .* ?")+"(?: |$)");return(i[s(a)]||[]).filter(function(a){return a&&(!c.e||a.e==c.e)&&(!c.ns||e.test(a.ns))&&(!b||a.fn==b||typeof a.fn==="function"&&typeof b==="function"&&""+a.fn===""+b)&&(!d||a.sel==d)})}function C(a){a=(""+a).split(".");return{e:a[0],ns:a.slice(1).sort().join(" ")}}function D(a,c,b){e.isObject(a)?e.each(a,b):a.split(/\s/).forEach(function(a){b(a,
6 c)})}function t(a,c,b,d,j){var f=s(a),g=i[f]||(i[f]=[]);D(c,b,function(b,c){var f=j&&j(c,b),l=f||c,h=function(b){var c=l.apply(a,[b].concat(b.data));c===!1&&b.preventDefault();return c},f=e.extend(C(b),{fn:c,proxy:h,sel:d,del:f,i:g.length});g.push(f);a.addEventListener(f.e,h,!1)})}function u(a,c,b,d){var e=s(a);D(c||"",b,function(b,c){M(a,b,c,d).forEach(function(b){delete i[e][b.i];a.removeEventListener(b.e,b.proxy,!1)})})}function N(a){var c=e.extend({originalEvent:a},a);e.each(O,function(b,d){c[b]=
7 function(){this[d]=P;if(b=="stopImmediatePropagation"||b=="stopPropagation")if(a.cancelBubble=!0,!a[b])return;return a[b].apply(a,arguments)};c[d]=Q});return c}function E(a,c){if(c&&a.dispatchEvent){var b=e.Event("destroy",{bubbles:!1});a.dispatchEvent(b)}if((b=s(a))&&i[b]){for(var d in i[b])a.removeEventListener(i[b][d].e,i[b][d].proxy,!1);delete i[b]}}function F(a,c){if(a){var b=a.childNodes;if(b&&b.length>0)for(var d in b)F(b[d],c);E(a,c)}}var f,h=g.document,n=[],G=n.slice,w={},R=1,S=/^\s*<(\w+)[^>]*>/,
8 k={},o={},m=function(a,c){this.length=0;if(a)if(a instanceof m&&c==f)return a;else if(e.isFunction(a))return e(h).ready(a);else if(e.isArray(a)&&a.length!=f){for(var b=0;b<a.length;b++)this[this.length++]=a[b];return this}else if(e.isObject(a)&&e.isObject(c)){if(a.length==f)a.parentNode==c&&(this[this.length++]=a);else for(b=0;b<a.length;b++)a[b].parentNode==c&&(this[this.length++]=a[b]);return this}else if(e.isObject(a)&&c==f)return this[this.length++]=a,this;else if(c!==f){if(c instanceof m)return c.find(a)}else c=
9 h;else return this;return this.selector(a,c)},e=function(a,c){return new m(a,c)};e.is$=function(a){return a instanceof m};e.map=function(a,c){var b,d=[],j;if(e.isArray(a))for(j=0;j<a.length;j++)b=c(a[j],j),b!==f&&d.push(b);else if(e.isObject(a))for(j in a)a.hasOwnProperty(j)&&(b=c(a[j],j),b!==f&&d.push(b));return e([d])};e.each=function(a,c){var b;if(e.isArray(a))for(b=0;b<a.length;b++){if(c(b,a[b])===!1)break}else if(e.isObject(a))for(b in a)if(a.hasOwnProperty(b)&&c(b,a[b])===!1)break;return a};
10 e.extend=function(a){a==f&&(a=this);if(arguments.length===1){for(var c in a)this[c]=a[c];return this}else G.call(arguments,1).forEach(function(b){for(var c in b)a[c]=b[c]});return a};e.isArray=function(a){return a instanceof Array&&a.push!=f};e.isFunction=function(a){return typeof a==="function"&&!(a instanceof RegExp)};e.isObject=function(a){return typeof a==="object"};e.fn=m.prototype={constructor:m,forEach:n.forEach,reduce:n.reduce,push:n.push,indexOf:n.indexOf,concat:n.concat,selector:function(a,
11 c){a=a.trim();if(a[0]==="#"&&a.indexOf(".")==-1&&a.indexOf(" ")===-1&&a.indexOf(">")===-1)c==h?r(c.getElementById(a.replace("#","")),this):r(A(a,c),this);else if(a[0]==="<"&&a[a.length-1]===">"){var b=h.createElement("div");b.innerHTML=a.trim();r(b.childNodes,this)}else r(A(a,c),this);return this},oldElement:f,slice:n.slice,setupOld:function(a){if(a==f)return e();a.oldElement=this;return a},map:function(a){var c,b=[],d;for(d=0;d<this.length;d++)c=a(d,this[d]),c!==f&&b.push(c);return e([b])},each:function(a){this.forEach(function(c,
12 b){a.call(c,b,c)});return this},ready:function(a){h.readyState==="complete"||h.readyState==="loaded"||!e.os.ie&&h.readyState==="interactive"?a():h.addEventListener("DOMContentLoaded",a,!1);return this},find:function(a){if(this.length===0)return this;for(var c=[],b,d=0;d<this.length;d++){b=e(a,this[d]);for(var f=0;f<b.length;f++)c.push(b[f])}return e(q(c))},html:function(a,c){if(this.length===0)return this;if(a===f)return this[0].innerHTML;for(var b=0;b<this.length;b++)c!==!1&&e.cleanUpContent(this[b],
13 !1,!0),this[b].innerHTML=a;return this},text:function(a){if(this.length===0)return this;if(a===f)return this[0].textContent;for(var c=0;c<this.length;c++)this[c].textContent=a;return this},css:function(a,c,b){b=b!=f?b:this[0];if(this.length===0)return this;if(c==f&&typeof a==="string")return g.getComputedStyle(b),b.style[a]?b.style[a]:g.getComputedStyle(b)[a];for(b=0;b<this.length;b++)if(e.isObject(a))for(var d in a)this[b].style[d]=a[d];else this[b].style[a]=c;return this},vendorCss:function(a,c,
14 b){return this.css(e.feat.cssPrefix+a,c,b)},empty:function(){for(var a=0;a<this.length;a++)e.cleanUpContent(this[a],!1,!0),this[a].innerHTML="";return this},hide:function(){if(this.length===0)return this;for(var a=0;a<this.length;a++)if(this.css("display",null,this[a])!="none")this[a].setAttribute("jqmOldStyle",this.css("display",null,this[a])),this[a].style.display="none";return this},show:function(){if(this.length===0)return this;for(var a=0;a<this.length;a++)if(this.css("display",null,this[a])==
15 "none")this[a].style.display=this[a].getAttribute("jqmOldStyle")?this[a].getAttribute("jqmOldStyle"):"block",this[a].removeAttribute("jqmOldStyle");return this},toggle:function(a){for(var c=a===!0?!0:!1,b=0;b<this.length;b++)g.getComputedStyle(this[b]).display!=="none"||a!==f&&c===!1?(this[b].setAttribute("jqmOldStyle",this[b].style.display),this[b].style.display="none"):(this[b].style.display=this[b].getAttribute("jqmOldStyle")!=f?this[b].getAttribute("jqmOldStyle"):"block",this[b].removeAttribute("jqmOldStyle"));
16 return this},val:function(a){if(this.length===0)return a===f?f:this;if(a==f)return this[0].value;for(var c=0;c<this.length;c++)this[c].value=a;return this},attr:function(a,c){if(this.length===0)return c===f?f:this;if(c===f&&!e.isObject(a))return this[0].jqmCacheId&&k[this[0].jqmCacheId][a]?this[0].jqmCacheId&&k[this[0].jqmCacheId][a]:this[0].getAttribute(a);for(var b=0;b<this.length;b++)if(e.isObject(a))for(var d in a)e(this[b]).attr(d,a[d]);else if(e.isArray(c)||e.isObject(c)||e.isFunction(c)){if(!this[b].jqmCacheId)this[b].jqmCacheId=
17 e.uuid();k[this[b].jqmCacheId]||(k[this[b].jqmCacheId]={});k[this[b].jqmCacheId][a]=c}else c==null&&c!==f?(this[b].removeAttribute(a),this[b].jqmCacheId&&k[this[b].jqmCacheId][a]&&delete k[this[b].jqmCacheId][a]):this[b].setAttribute(a,c);return this},removeAttr:function(a){for(var c=this,b=0;b<this.length;b++)a.split(/\s+/g).forEach(function(d){c[b].removeAttribute(d);c[b].jqmCacheId&&k[c[b].jqmCacheId][a]&&delete k[c[b].jqmCacheId][a]});return this},prop:function(a,c){if(this.length===0)return c===
18 f?f:this;if(c===f&&!e.isObject(a)){var b;return this[0].jqmCacheId&&o[this[0].jqmCacheId][a]?this[0].jqmCacheId&&o[this[0].jqmCacheId][a]:!(b=this[0][a])&&a in this[0]?this[0][a]:b}for(b=0;b<this.length;b++)if(e.isObject(a))for(var d in a)e(this[b]).prop(d,a[d]);else if(e.isArray(c)||e.isObject(c)||e.isFunction(c)){if(!this[b].jqmCacheId)this[b].jqmCacheId=e.uuid();o[this[b].jqmCacheId]||(o[this[b].jqmCacheId]={});o[this[b].jqmCacheId][a]=c}else c==null&&c!==f?e(this[b]).removeProp(a):this[b][a]=
19 c;return this},removeProp:function(a){for(var c=this,b=0;b<this.length;b++)a.split(/\s+/g).forEach(function(d){c[b][d]&&delete c[b][d];c[b].jqmCacheId&&o[c[b].jqmCacheId][a]&&delete o[c[b].jqmCacheId][a]});return this},remove:function(a){a=e(this).filter(a);if(a==f)return this;for(var c=0;c<a.length;c++)e.cleanUpContent(a[c],!0,!0),a[c].parentNode.removeChild(a[c]);return this},addClass:function(a){for(var c=0;c<this.length;c++){var b=this[c].className,d=[],e=this;a.split(/\s+/g).forEach(function(a){e.hasClass(a,
20 e[c])||d.push(a)});this[c].className+=(b?" ":"")+d.join(" ");this[c].className=this[c].className.trim()}return this},removeClass:function(a){for(var c=0;c<this.length;c++){if(a==f){this[c].className="";break}var b=this[c].className;a.split(/\s+/g).forEach(function(a){b=b.replace(v(a)," ")});this[c].className=b.length>0?b.trim():""}return this},replaceClass:function(a,c){for(var b=0;b<this.length;b++)if(a==f)this[b].className=c;else{var d=this[b].className;a.split(/\s+/g).concat(c.split(/\s+/g)).forEach(function(a){d=
21 d.replace(v(a)," ")});d=d.trim();this[b].className=d.length>0?(d+" "+c).trim():c}return this},hasClass:function(a,c){if(this.length===0)return!1;c||(c=this[0]);return v(a).test(c.className)},append:function(a,c){if(a&&a.length!=f&&a.length===0)return this;if(e.isArray(a)||e.isObject(a))a=e(a);var b;for(b=0;b<this.length;b++)if(a.length&&typeof a!="string")a=e(a),y(a,this[b],c);else{var d=S.test(a)?e(a):f;if(d==f||d.length==0)d=h.createTextNode(a);d.nodeName!=f&&d.nodeName.toLowerCase()=="script"&&
22 (!d.type||d.type.toLowerCase()==="text/javascript")?g.eval(d.innerHTML):d instanceof m?y(d,this[b],c):c!=f?this[b].insertBefore(d,this[b].firstChild):this[b].appendChild(d)}return this},appendTo:function(a){e(a).append(this);return this},prependTo:function(a){e(a).append(this,!0);return this},prepend:function(a){return this.append(a,1)},insertBefore:function(a,c){if(this.length==0)return this;a=e(a).get(0);if(!a)return this;for(var b=0;b<this.length;b++)c?a.parentNode.insertBefore(this[b],a.nextSibling):
23 a.parentNode.insertBefore(this[b],a);return this},insertAfter:function(a){this.insertBefore(a,!0)},get:function(a){a=a==f?0:a;a<0&&(a+=this.length);return this[a]?this[a]:f},offset:function(){if(this.length===0)return this;if(this[0]==g)return{left:0,top:0,right:0,bottom:0,width:g.innerWidth,height:g.innerHeight};else var a=this[0].getBoundingClientRect();return{left:a.left+g.pageXOffset,top:a.top+g.pageYOffset,right:a.right+g.pageXOffset,bottom:a.bottom+g.pageYOffset,width:a.right-a.left,height:a.bottom-
24 a.top}},height:function(a){if(this.length===0)return this;if(a!=f)return this.css("height",a);if(this[0]==this[0].window)return g.innerHeight;return this[0].nodeType==this[0].DOCUMENT_NODE?this[0].documentElement.offsetheight:(a=this.css("height").replace("px",""))?a:this.offset().height},width:function(a){if(this.length===0)return this;if(a!=f)return this.css("width",a);if(this[0]==this[0].window)return g.innerWidth;return this[0].nodeType==this[0].DOCUMENT_NODE?this[0].documentElement.offsetwidth:
25 (a=this.css("width").replace("px",""))?a:this.offset().width},parent:function(a,c){if(this.length==0)return this;for(var b=[],d=0;d<this.length;d++)for(var f=this[d];f.parentNode&&f.parentNode!=h;){b.push(f.parentNode);if(f.parentNode)f=f.parentNode;if(!c)break}return this.setupOld(e(q(b)).filter(a))},parents:function(a){return this.parent(a,!0)},children:function(a){if(this.length==0)return this;for(var c=[],b=0;b<this.length;b++)c=c.concat(z(this[b].firstChild));return this.setupOld(e(c).filter(a))},
26 siblings:function(a){if(this.length==0)return this;for(var c=[],b=0;b<this.length;b++)this[b].parentNode&&(c=c.concat(z(this[b].parentNode.firstChild,this[b])));return this.setupOld(e(c).filter(a))},closest:function(a,c){if(this.length==0)return this;var b=this[0],d=e(a,c);if(d.length==0)return e();for(;b&&d.indexOf(b)==-1;)b=b!==c&&b!==h&&b.parentNode;return e(b)},filter:function(a){if(this.length==0)return this;if(a==f)return this;for(var c=[],b=0;b<this.length;b++){var d=this[b];d.parentNode&&
27 e(a,d.parentNode).indexOf(d)>=0&&c.push(d)}return this.setupOld(e(q(c)))},not:function(a){if(this.length==0)return this;for(var c=[],b=0;b<this.length;b++){var d=this[b];d.parentNode&&e(a,d.parentNode).indexOf(d)==-1&&c.push(d)}return this.setupOld(e(q(c)))},data:function(a,c){return this.attr("data-"+a,c)},end:function(){return this.oldElement!=f?this.oldElement:e()},clone:function(a){a=a===!1?!1:!0;if(this.length==0)return this;for(var c=[],b=0;b<this.length;b++)c.push(this[b].cloneNode(a));return e(c)},
28 size:function(){return this.length},serialize:function(){if(this.length==0)return"";for(var a=[],c=0;c<this.length;c++)this.slice.call(this[c].elements).forEach(function(b){var c=b.getAttribute("type");if(b.nodeName.toLowerCase()!="fieldset"&&!b.disabled&&c!="submit"&&c!="reset"&&c!="button"&&(c!="radio"&&c!="checkbox"||b.checked)&&b.getAttribute("name"))if(b.type=="select-multiple")for(c=0;c<b.options.length;c++)b.options[c].selected&&a.push(b.getAttribute("name")+"="+encodeURIComponent(b.options[c].value));
29 else a.push(b.getAttribute("name")+"="+encodeURIComponent(b.value))});return a.join("&")},eq:function(a){return e(this.get(a))},index:function(a){return a?this.indexOf(e(a)[0]):this.parent().children().indexOf(this[0])},is:function(a){return!!a&&this.filter(a).length>0}};var H={type:"GET",beforeSend:p,success:p,error:p,complete:p,context:f,timeout:0,crossDomain:null};e.jsonP=function(a){var c="jsonp_callback"+ ++R,b="",d=h.createElement("script");g[c]=function(f){clearTimeout(b);e(d).remove();delete g[c];
30 a.success.call(void 0,f)};d.src=a.url.replace(/=\?/,"="+c);if(a.error)d.onerror=function(){clearTimeout(b);a.error.call(void 0,"","error")};e("head").append(d);a.timeout>0&&(b=setTimeout(function(){a.error.call(void 0,"","timeout")},a.timeout));return{}};e.ajax=function(a){var c;try{var b=a||{},d;for(d in H)typeof b[d]=="undefined"&&(b[d]=H[d]);if(!b.url)b.url=g.location;if(!b.contentType)b.contentType="application/x-www-form-urlencoded";if(!b.headers)b.headers={};if(!("async"in b)||b.async!==!1)b.async=
31 !0;if(b.dataType)switch(b.dataType){case "script":b.dataType="text/javascript, application/javascript";break;case "json":b.dataType="application/json";break;case "xml":b.dataType="application/xml, text/xml";break;case "html":b.dataType="text/html";break;case "text":b.dataType="text/plain";break;default:b.dataType="text/html";break;case "jsonp":return e.jsonP(a)}else b.dataType="text/html";if(e.isObject(b.data))b.data=e.param(b.data);b.type.toLowerCase()==="get"&&b.data&&(b.url+=b.url.indexOf("?")===
32 -1?"?"+b.data:"&"+b.data);if(/=\?/.test(b.url))return e.jsonP(b);if(b.crossDomain===null)b.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(b.url)&&RegExp.$2!=g.location.host;if(!b.crossDomain)b.headers=e.extend({"X-Requested-With":"XMLHttpRequest"},b.headers);var f,l=b.context,h=/^([\w-]+:)\/\//.test(b.url)?RegExp.$1:g.location.protocol;c=new g.XMLHttpRequest;c.onreadystatechange=function(){var a=b.dataType;if(c.readyState===4){clearTimeout(f);var d,g=!1;if(c.status>=200&&c.status<300||c.status===0&&h==
33 "file:"){if(a==="application/json"&&!/^\s*$/.test(c.responseText))try{d=JSON.parse(c.responseText)}catch(i){g=i}else a==="application/xml, text/xml"?d=c.responseXML:a=="text/html"?(d=c.responseText,e.parseJS(d)):d=c.responseText;c.status===0&&d.length===0&&(g=!0);g?b.error.call(l,c,"parsererror",g):b.success.call(l,d,"success",c)}else g=!0,b.error.call(l,c,"error");b.complete.call(l,c,g?"error":"success")}};c.open(b.type,b.url,b.async);if(b.withCredentials)c.withCredentials=!0;if(b.contentType)b.headers["Content-Type"]=
34 b.contentType;for(var i in b.headers)c.setRequestHeader(i,b.headers[i]);if(b.beforeSend.call(l,c,b)===!1)return c.abort(),!1;b.timeout>0&&(f=setTimeout(function(){c.onreadystatechange=p;c.abort();b.error.call(l,c,"timeout")},b.timeout));c.send(b.data)}catch(k){console.log(k),b.error.call(l,c,"error",k)}return c};e.get=function(a,c){return this.ajax({url:a,success:c})};e.post=function(a,c,b,d){typeof c==="function"&&(b=c,c={});d===f&&(d="html");return this.ajax({url:a,type:"POST",data:c,dataType:d,
35 success:b})};e.getJSON=function(a,c,b){typeof c==="function"&&(b=c,c={});return this.ajax({url:a,data:c,success:b,dataType:"json"})};e.param=function(a,c){var b=[];if(a instanceof m)a.each(function(){b.push((c?c+"[]":this.id)+"="+encodeURIComponent(this.value))});else for(var d in a){var f=c?c+"["+d+"]":d,g=a[d];b.push(e.isObject(g)?e.param(g,f):f+"="+encodeURIComponent(g))}return b.join("&")};e.parseJSON=function(a){return JSON.parse(a)};e.parseXML=function(a){return(new DOMParser).parseFromString(a,
36 "text/xml")};B(e,navigator.userAgent);e.__detectUA=B;if(typeof String.prototype.trim!=="function")String.prototype.trim=function(){this.replace(/(\r\n|\n|\r)/gm,"").replace(/^\s+|\s+$/,"");return this};e.uuid=function(){var a=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()};e.getCssMatrix=function(a){if(a==f)return g.WebKitCSSMatrix||g.MSCSSMatrix||{a:0,b:0,c:0,d:0,e:0,f:0};try{if(g.WebKitCSSMatrix)return new WebKitCSSMatrix(g.getComputedStyle(a).webkitTransform);
37 else if(g.MSCSSMatrix)return new MSCSSMatrix(g.getComputedStyle(a).transform);else{var c=g.getComputedStyle(a)[e.feat.cssPrefix+"Transform"].replace(/[^0-9\-.,]/g,"").split(",");return{a:+c[0],b:+c[1],c:+c[2],d:+c[3],e:+c[4],f:+c[5]}}}catch(b){return{a:0,b:0,c:0,d:0,e:0,f:0}}};var i={},L=1;e.event={add:t,remove:u};e.fn.bind=function(a,c){for(var b=0;b<this.length;b++)t(this[b],a,c);return this};e.fn.unbind=function(a,c){for(var b=0;b<this.length;b++)u(this[b],a,c);return this};e.fn.one=function(a,
38 c){return this.each(function(b,d){t(this,a,c,null,function(a,b){return function(){var c=a.apply(d,arguments);u(d,b,a);return c}})})};var P=function(){return!0},Q=function(){return!1},O={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(a,c,b){for(var d=0;d<this.length;d++){var f=this[d];t(f,c,b,a,function(b){return function(c){var d,g=e(c.target).closest(a,f).get(0);if(g)return d=e.extend(N(c),
39 {currentTarget:g,liveFired:f}),b.apply(g,[d].concat([].slice.call(arguments,1)))}})}return this};e.fn.undelegate=function(a,c,b){for(var d=0;d<this.length;d++)u(this[d],c,b,a);return this};e.fn.on=function(a,c,b){return c===f||e.isFunction(c)?this.bind(a,c):this.delegate(c,a,b)};e.fn.off=function(a,c,b){return c===f||e.isFunction(c)?this.unbind(a,c):this.undelegate(c,a,b)};e.fn.trigger=function(a,c,b){typeof a=="string"&&(a=e.Event(a,b));a.data=c;for(c=0;c<this.length;c++)this[c].dispatchEvent(a);
40 return this};e.Event=function(a,c){var b=h.createEvent("Events"),d=!0;if(c)for(var e in c)e=="bubbles"?d=!!c[e]:b[e]=c[e];b.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null);return b};e.bind=function(a,c,b){if(!a.__events)a.__events={};e.isArray(c)||(c=[c]);for(var d=0;d<c.length;d++)a.__events[c[d]]||(a.__events[c[d]]=[]),a.__events[c[d]].push(b)};e.trigger=function(a,c,b){var d=!0;if(!a.__events)return d;e.isArray(c)||(c=[c]);e.isArray(b)||(b=[]);for(var f=0;f<c.length;f++)if(a.__events[c[f]])for(var g=
41 a.__events[c[f]],h=0;h<g.length;h++)e.isFunction(g[h])&&g[h].apply(a,b)===!1&&(d=!1);return d};e.unbind=function(a,c,b){if(a.__events){e.isArray(c)||(c=[c]);for(var d=0;d<c.length;d++)if(a.__events[c[d]])for(var g=a.__events[c[d]],h=0;h<g.length;h++)if(b==f&&delete g[h],g[h]==b){g.splice(h,1);break}}};e.proxy=function(a,c,b){return function(){if(b)return a.apply(c,b);return a.apply(c,arguments)}};var T=function(a,c){for(var b=0;b<a.length;b++)F(a[b],c)};e.cleanUpContent=function(a,c,b){if(a){var d=
42 a.childNodes;d&&d.length>0&&e.asap(T,{},[G.apply(d,[0]),b]);c&&E(a,b)}};var x=[],I=[],J=[];e.asap=function(a,c,b){if(!e.isFunction(a))throw"$.asap - argument is not a valid function";x.push(a);I.push(c?c:{});J.push(b?b:[]);g.postMessage("jqm-asap","*")};g.addEventListener("message",function(a){a.source==g&&a.data=="jqm-asap"&&(a.stopPropagation(),x.length>0&&x.shift().apply(I.shift(),J.shift()))},!0);var K={};e.parseJS=function(a){if(a){if(typeof a=="string"){var c=h.createElement("div");c.innerHTML=
43 a;a=c}a=a.getElementsByTagName("script");for(c=0;c<a.length;c++)if(a[c].src.length>0&&!K[a[c].src]){var b=h.createElement("script");b.type=a[c].type;b.src=a[c].src;h.getElementsByTagName("head")[0].appendChild(b);K[a[c].src]=1}else g.eval(a[c].innerHTML)}};["click","keydown","keyup","keypress","submit","load","resize","change","select","error"].forEach(function(a){e.fn[a]=function(c){return c?this.bind(a,c):this.trigger(a)}});return e}(window);"$"in window||(window.$=jq);if(!window.numOnly)window.numOnly=
44 function(g){if(g===void 0||g==="")return 0;if(isNaN(parseFloat(g)))if(g.replace)g=g.replace(/[^0-9.-]/,"");else return 0;return parseFloat(g)}};