/** vim: et:ts=4:sw=4:sts=4
 * @license RequireJS 2.1.6 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */

/**
 * @license AngularJS v1.0.7
 * (c) 2010-2012 Google, Inc. http://angularjs.org
 * License: MIT
 */

/*! jQuery v2.0.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-2.0.2.min.map
*/

/*
 * angular-mobile-nav by Andy Joslin
 * http://github.com/ajoslin/angular-mobile-nav
 * @license MIT License http://goo.gl/Z8Nlo
 */

// moment.js
// version : 2.0.0
// author : Tim Wood
// license : MIT
// momentjs.com

// angular-moment.js / v0.1.0 / (c) 2013 Uri Shaked / Apache License

var requirejs,require,define;(function(global){function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var n;for(n=0;e.length>n&&(!e[n]||!t(e[n],n,e));n+=1);}}function eachReverse(e,t){if(e){var n;for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){(n||!hasProp(e,i))&&(r&&"string"!=typeof t?(e[i]||(e[i]={}),mixin(e[i],t,n,r)):e[i]=t)}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function t(e){var t,n;for(t=0;e[t];t+=1)if(n=e[t],"."===n)e.splice(t,1),t-=1;else if(".."===n){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function n(e,n,r){var i,o,a,s,u,c,l,f,p,h,d,m=n&&n.split("/"),g=m,v=C.map,y=v&&v["*"];if(e&&"."===e.charAt(0)&&(n?(g=getOwn(C.pkgs,n)?m=[n]:m.slice(0,m.length-1),e=g.concat(e.split("/")),t(e),o=getOwn(C.pkgs,i=e[0]),e=e.join("/"),o&&e===i+"/"+o.main&&(e=i)):0===e.indexOf("./")&&(e=e.substring(2))),r&&v&&(m||y)){for(s=e.split("/"),u=s.length;u>0;u-=1){if(l=s.slice(0,u).join("/"),m)for(c=m.length;c>0;c-=1)if(a=getOwn(v,m.slice(0,c).join("/")),a&&(a=getOwn(a,l))){f=a,p=u;break}if(f)break;!h&&y&&getOwn(y,l)&&(h=getOwn(y,l),d=u)}!f&&h&&(f=h,p=d),f&&(s.splice(0,p,f),e=s.join("/"))}return e}function r(e){isBrowser&&each(scripts(),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===b.contextName?(t.parentNode.removeChild(t),!0):void 0})}function i(e){var t=getOwn(C.paths,e);return t&&isArray(t)&&t.length>1?(r(e),t.shift(),b.require.undef(e),b.require([e]),!0):void 0}function o(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function a(e,t,r,i){var a,s,u,c,l=null,f=t?t.name:null,p=e,h=!0,d="";return e||(h=!1,e="_@r"+(D+=1)),c=o(e),l=c[0],e=c[1],l&&(l=n(l,f,i),s=getOwn(M,l)),e&&(l?d=s&&s.normalize?s.normalize(e,function(e){return n(e,f,i)}):n(e,f,i):(d=n(e,f,i),c=o(d),l=c[0],d=c[1],r=!0,a=b.nameToUrl(d))),u=!l||s||r?"":"_unnormalized"+(A+=1),{prefix:l,name:d,parentMap:t,unnormalized:!!u,url:a,originalName:p,isDefine:h,id:(l?l+"!"+d:d)+u}}function s(e){var t=e.id,n=getOwn(S,t);return n||(n=S[t]=new b.Module(e)),n}function u(e,t,n){var r=e.id,i=getOwn(S,r);!hasProp(M,r)||i&&!i.defineEmitComplete?(i=s(e),i.error&&"error"===t?n(i.error):i.on(t,n)):"defined"===t&&n(M[r])}function c(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(S,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function l(){globalDefQueue.length&&(apsp.apply(E,[E.length-1,0].concat(globalDefQueue)),globalDefQueue=[])}function f(e){delete S[e],delete T[e]}function p(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var o=r.id,a=getOwn(S,o);!a||e.depMatched[i]||n[o]||(getOwn(t,o)?(e.defineDep(i,M[o]),e.check()):p(a,t,n))}),n[r]=!0)}function h(){var e,t,n,o,a=1e3*C.waitSeconds,s=a&&b.startTime+a<(new Date).getTime(),u=[],l=[],f=!1,d=!0;if(!y){if(y=!0,eachProp(T,function(n){if(e=n.map,t=e.id,n.enabled&&(e.isDefine||l.push(n),!n.error))if(!n.inited&&s)i(t)?(o=!0,f=!0):(u.push(t),r(t));else if(!n.inited&&n.fetched&&e.isDefine&&(f=!0,!e.prefix))return d=!1}),s&&u.length)return n=makeError("timeout","Load timeout for modules: "+u,null,u),n.contextName=b.contextName,c(n);d&&each(l,function(e){p(e,{},{})}),s&&!o||!f||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,h()},50)),y=!1}}function d(e){hasProp(M,e[0])||s(a(e[0],null,!0)).init(e[1],e[2])}function m(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function g(e){var t=e.currentTarget||e.srcElement;return m(t,b.onScriptLoad,"load","onreadystatechange"),m(t,b.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function v(){var e;for(l();E.length;){if(e=E.shift(),null===e[0])return c(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));d(e)}}var y,$,b,x,w,C={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},S={},T={},k={},E=[],M={},j={},D=1,A=1;return x={require:function(e){return e.require?e.require:e.require=b.makeRequire(e.map)},exports:function(e){return e.usingExports=!0,e.map.isDefine?e.exports?e.exports:e.exports=M[e.map.id]={}:void 0},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){var t,n=getOwn(C.pkgs,e.map.id);return t=n?getOwn(C.config,e.map.id+"/"+n.main):getOwn(C.config,e.map.id),t||{}},exports:M[e.map.id]}}},$=function(e){this.events=getOwn(k,e.id)||{},this.map=e,this.shim=getOwn(C.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},$.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,b.startTime=(new Date).getTime();var e=this.map;return this.shim?(b.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()})),void 0):e.prefix?this.callPlugin():this.load()}},load:function(){var e=this.map.url;j[e]||(j[e]=!0,b.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id,r=this.depExports,i=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,1>this.depCount&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{i=b.execCb(n,o,r,i)}catch(a){e=a}else i=b.execCb(n,o,r,i);if(this.map.isDefine&&(t=this.module,t&&void 0!==t.exports&&t.exports!==this.exports?i=t.exports:void 0===i&&this.usingExports&&(i=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else i=o;this.exports=i,this.map.isDefine&&!this.ignore&&(M[n]=i,req.onResourceLoad&&req.onResourceLoad(b,this.map,this.depMaps)),f(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,r=a(e.prefix);this.depMaps.push(r),u(r,"defined",bind(this,function(r){var i,o,l,p=this.map.name,h=this.map.parentMap?this.map.parentMap.name:null,d=b.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(r.normalize&&(p=r.normalize(p,function(e){return n(e,h,!0)})||""),o=a(e.prefix+"!"+p,this.map.parentMap),u(o,"defined",bind(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),l=getOwn(S,o.id),l&&(this.depMaps.push(o),this.events.error&&l.on("error",bind(this,function(e){this.emit("error",e)})),l.enable()),void 0):(i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(S,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&f(e.map.id)}),c(e)}),i.fromText=bind(this,function(n,r){var o=e.name,u=a(o),l=useInteractive;r&&(n=r),l&&(useInteractive=!1),s(u),hasProp(C.config,t)&&(C.config[o]=C.config[t]);try{req.exec(n)}catch(f){return c(makeError("fromtexteval","fromText eval for "+t+" failed: "+f,f,[t]))}l&&(useInteractive=!0),this.depMaps.push(u),b.completeLoad(o),d([o],i)}),r.load(e.name,d,i,C),void 0)})),b.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){T[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,r,i;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,i=getOwn(x,e.id))return this.depExports[t]=i(this),void 0;this.depCount+=1,u(e,"defined",bind(this,function(e){this.defineDep(t,e),this.check()})),this.errback&&u(e,"error",bind(this,this.errback))}n=e.id,r=S[n],hasProp(x,n)||!r||r.enabled||b.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(S,e.id);t&&!t.enabled&&b.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},b={config:C,contextName:e,registry:S,defined:M,urlFetched:j,defQueue:E,Module:$,makeModuleMap:a,nextTick:req.nextTick,onError:c,configure:function(e){e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/");var t=C.pkgs,n=C.shim,r={paths:!0,config:!0,map:!0};eachProp(e,function(e,t){r[t]?"map"===t?(C.map||(C.map={}),mixin(C[t],e,!0,!0)):mixin(C[t],e,!0):C[t]=e}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=b.makeShimExports(e)),n[t]=e}),C.shim=n),e.packages&&(each(e.packages,function(e){var n;e="string"==typeof e?{name:e}:e,n=e.location,t[e.name]={name:e.name,location:n||e.name,main:(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}}),C.pkgs=t),eachProp(S,function(e,t){e.inited||e.map.unnormalized||(e.map=a(t))}),(e.deps||e.callback)&&b.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,r){function i(n,o,u){var l,f,p;return r.enableBuildCallback&&o&&isFunction(o)&&(o.__requireJsBuild=!0),"string"==typeof n?isFunction(o)?c(makeError("requireargs","Invalid require call"),u):t&&hasProp(x,n)?x[n](S[t.id]):req.get?req.get(b,n,t,i):(f=a(n,t,!1,!0),l=f.id,hasProp(M,l)?M[l]:c(makeError("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(v(),b.nextTick(function(){v(),p=s(a(null,t)),p.skipMap=r.skipMap,p.init(n,o,u,{enabled:!0}),h()}),i)}return r=r||{},mixin(i,{isBrowser:isBrowser,toUrl:function(e){var r,i=e.lastIndexOf("."),o=e.split("/")[0],a="."===o||".."===o;return-1!==i&&(!a||i>1)&&(r=e.substring(i,e.length),e=e.substring(0,i)),b.nameToUrl(n(e,t&&t.id,!0),r,!0)},defined:function(e){return hasProp(M,a(e,t,!1,!0).id)},specified:function(e){return e=a(e,t,!1,!0).id,hasProp(M,e)||hasProp(S,e)}}),t||(i.undef=function(e){l();var n=a(e,t,!0),r=getOwn(S,e);delete M[e],delete j[n.url],delete k[e],r&&(r.events.defined&&(k[e]=r.events),f(e))}),i},enable:function(e){var t=getOwn(S,e.id);t&&s(e).enable()},completeLoad:function(e){var t,n,r,o=getOwn(C.shim,e)||{},a=o.exports;for(l();E.length;){if(n=E.shift(),null===n[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);d(n)}if(r=getOwn(S,e),!t&&!hasProp(M,e)&&r&&!r.inited){if(!(!C.enforceDefine||a&&getGlobal(a)))return i(e)?void 0:c(makeError("nodefine","No define call for "+e,null,[e]));d([e,o.deps||[],o.exportsFn])}h()},nameToUrl:function(e,t,n){var r,i,o,a,s,u,c,l,f;if(req.jsExtRegExp.test(e))l=e+(t||"");else{for(r=C.paths,i=C.pkgs,s=e.split("/"),u=s.length;u>0;u-=1){if(c=s.slice(0,u).join("/"),o=getOwn(i,c),f=getOwn(r,c)){isArray(f)&&(f=f[0]),s.splice(0,u,f);break}if(o){a=e===o.name?o.location+"/"+o.main:o.location,s.splice(0,u,a);break}}l=s.join("/"),l+=t||(/\?/.test(l)||n?"":".js"),l=("/"===l.charAt(0)||l.match(/^[\w\+\.\-]+:/)?"":C.baseUrl)+l}return C.urlArgs?l+((-1===l.indexOf("?")?"?":"&")+C.urlArgs):l},load:function(e,t){req.load(b,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=g(e);b.completeLoad(t.id)}},onScriptError:function(e){var t=g(e);return i(t.id)?void 0:c(makeError("scripterror","Script error for: "+t.id,e,[t.id]))}},b.require=b.makeRequire(),b}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){return"interactive"===e.readyState?interactiveScript=e:void 0}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.1.6",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,apsp=ap.splice,isBrowser=!("undefined"==typeof window||!navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"==""+opera,contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(void 0===define){if(requirejs!==void 0){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,n,r){var i,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=n,n=r):e=[]),o&&o.context&&(a=o.context),i=getOwn(contexts,a),i||(i=contexts[a]=req.s.newContext(a)),o&&i.configure(o),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.load=function(e,t,n){var r,i=e&&e.config||{};if(isBrowser)return r=i.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),r.type=i.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r.setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&0>(""+r.attachEvent).indexOf("[native code")||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{importScripts(n),e.completeLoad(t)}catch(o){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,o,[t]))}},isBrowser&&eachReverse(scripts(),function(e){return head||(head=e.parentNode),dataMain=e.getAttribute("data-main"),dataMain?(mainScript=dataMain,cfg.baseUrl||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0):void 0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&((""+n).replace(commentRegExp,"").replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript(),r&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")])),(i?i.defQueue:globalDefQueue).push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}})(this),define("requireLib",function(){}),function(e,t,n){function r(e){return e&&"number"==typeof e.length?"function"!=typeof e.hasOwnProperty&&"function"!=typeof e.constructor?!0:e instanceof ot||Xn&&e instanceof Xn||"[object Object]"!==er.call(e)||"function"==typeof e.callee:!1}function i(e,t,n){var o;if(e)if(C(e))for(o in e)"prototype"!=o&&"length"!=o&&"name"!=o&&e.hasOwnProperty(o)&&t.call(n,e[o],o);else if(e.forEach&&e.forEach!==i)e.forEach(t,n);else if(r(e))for(o=0;e.length>o;o++)t.call(n,e[o],o);else for(o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o);return e}function o(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t.sort()}function a(e,t,n){for(var r=o(e),i=0;r.length>i;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function u(){for(var e,t=nr.length;t;){if(t--,e=nr[t].charCodeAt(0),57==e)return nr[t]="A",nr.join("");if(90!=e)return nr[t]=String.fromCharCode(e+1),nr.join("");nr[t]="0"}return nr.unshift("0"),nr.join("")}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function l(e){var t=e.$$hashKey;return i(arguments,function(t){t!==e&&i(t,function(t,n){e[n]=t})}),c(e,t),e}function f(e){return parseInt(e,10)}function p(e,t){return l(new(l(function(){},{prototype:e})),t)}function h(){}function d(e){return e}function m(e){return function(){return e}}function g(e){return e===n}function v(e){return e!==n}function y(e){return null!=e&&"object"==typeof e}function $(e){return"string"==typeof e}function b(e){return"number"==typeof e}function x(e){return"[object Date]"==er.apply(e)}function w(e){return"[object Array]"==er.apply(e)}function C(e){return"function"==typeof e}function S(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function T(e){return e&&e.$evalAsync&&e.$watch}function k(e){return"[object File]"===er.apply(e)}function E(e){return $(e)?e.replace(/^\s*/,"").replace(/\s*$/,""):e}function M(e){return e&&(e.nodeName||e.bind&&e.find)}function j(e,t,n){var r=[];return i(e,function(e,i,o){r.push(t.call(n,e,i,o))}),r}function D(e,t){return-1!=A(e,t)}function A(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;e.length>n;n++)if(t===e[n])return n;return-1}function _(e,t){var n=A(e,t);return n>=0&&e.splice(n,1),t}function N(e,t){if(S(e)||T(e))throw Error("Can't copy Window or Scope");if(t){if(e===t)throw Error("Can't copy equivalent objects or arrays");if(w(e)){t.length=0;for(var n=0;e.length>n;n++)t.push(N(e[n]))}else{var r=t.$$hashKey;i(t,function(e,n){delete t[n]});for(var o in e)t[o]=N(e[o]);c(t,r)}}else t=e,e&&(w(e)?t=N(e,[]):x(e)?t=new Date(e.getTime()):y(e)&&(t=N(e,{})));return t}function O(e,t){t=t||{};for(var n in e)e.hasOwnProperty(n)&&"$$"!==n.substr(0,2)&&(t[n]=e[n]);return t}function q(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var r,i,o,a=typeof e,s=typeof t;if(a==s&&"object"==a){if(!w(e)){if(x(e))return x(t)&&e.getTime()==t.getTime();if(T(e)||T(t)||S(e)||S(t))return!1;o={};for(i in e)if("$"!==i.charAt(0)&&!C(e[i])){if(!q(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!o[i]&&"$"!==i.charAt(0)&&t[i]!==n&&!C(t[i]))return!1;return!0}if((r=e.length)==t.length){for(i=0;r>i;i++)if(!q(e[i],t[i]))return!1;return!0}}return!1}function P(e,t,n){return e.concat(Kn.call(t,n))}function L(e,t){return Kn.call(e,t||0)}function R(e,t){var n=arguments.length>2?L(arguments,2):[];return!C(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,n.concat(Kn.call(arguments,0))):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function H(e,r){var i=r;return/^\$+/.test(e)?i=n:S(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":T(r)&&(i="$SCOPE"),i}function F(e,t){return JSON.stringify(e,H,t?"  ":null)}function I(e){return $(e)?JSON.parse(e):e}function U(e){if(e&&0!==e.length){var t=Yn(""+e);e=!("f"==t||"0"==t||"false"==t||"no"==t||"n"==t||"[]"==t)}else e=!1;return e}function Y(e){e=Wn(e).clone();try{e.html("")}catch(t){}var n=3,r=Wn("<div>").append(e).html();try{return e[0].nodeType===n?Yn(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Yn(t)})}catch(t){return Yn(r)}}function B(e){var t,n,r={};return i((e||"").split("&"),function(e){e&&(t=e.split("="),n=decodeURIComponent(t[0]),r[n]=v(t[1])?decodeURIComponent(t[1]):!0)}),r}function V(e){var t=[];return i(e,function(e,n){t.push(W(n,!0)+(e===!0?"":"="+W(e,!0)))}),t.length?t.join("&"):""}function z(e){return W(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function W(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function X(e,n){function r(e){e&&s.push(e)}var o,a,s=[e],u=["ng:app","ng-app","x-ng-app","data-ng-app"],c=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;i(u,function(n){u[n]=!0,r(t.getElementById(n)),n=n.replace(":","\\:"),e.querySelectorAll&&(i(e.querySelectorAll("."+n),r),i(e.querySelectorAll("."+n+"\\:"),r),i(e.querySelectorAll("["+n+"]"),r))}),i(s,function(e){if(!o){var t=" "+e.className+" ",n=c.exec(t);n?(o=e,a=(n[2]||"").replace(/\s+/g,",")):i(e.attributes,function(t){!o&&u[t.name]&&(o=e,a=t.value)})}}),o&&n(o,a?[a]:[])}function G(t,r){var o=function(){t=Wn(t),r=r||[],r.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.unshift("ng");var e=St(r);return e.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),e},a=/^NG_DEFER_BOOTSTRAP!/;return e&&!a.test(e.name)?o():(e.name=e.name.replace(a,""),tr.resumeBootstrap=function(e){i(e,function(e){r.push(e)}),o()},n)}function Z(e,t){return t=t||"_",e.replace(rr,function(e,n){return(n?t:"")+e.toLowerCase()})}function J(){Xn=e.jQuery,Xn?(Wn=Xn,l(Xn.fn,{scope:pr.scope,controller:pr.controller,injector:pr.injector,inheritedData:pr.inheritedData}),it("remove",!0),it("empty"),it("html")):Wn=ot,tr.element=Wn}function K(e,t,n){if(!e)throw Error("Argument '"+(t||"?")+"' is "+(n||"required"));return e}function Q(e,t,n){return n&&w(e)&&(e=e[e.length-1]),K(C(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function et(e){function t(e,t,n){return e[t]||(e[t]=n())}return t(t(e,"angular",Object),"module",function(){var e={};return function(n,r,i){return r&&e.hasOwnProperty(n)&&(e[n]=null),t(e,n,function(){function e(e,n,r){return function(){return t[r||"push"]([e,n,arguments]),s}}if(!r)throw Error("No module: "+n);var t=[],o=[],a=e("$injector","invoke"),s={_invokeQueue:t,_runBlocks:o,requires:r,name:n,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:a,run:function(e){return o.push(e),this}};return i&&a(i),s})}})}function tt(t){l(t,{bootstrap:G,copy:N,extend:l,equals:q,element:Wn,forEach:i,injector:St,noop:h,bind:R,toJson:F,fromJson:I,identity:d,isUndefined:g,isDefined:v,isString:$,isFunction:C,isObject:y,isNumber:b,isElement:M,isArray:w,version:ir,isDate:x,lowercase:Yn,uppercase:Bn,callbacks:{counter:0}}),Gn=et(e);try{Gn("ngLocale")}catch(n){Gn("ngLocale",[]).provider("$locale",vn)}Gn("ng",["ngLocale"],["$provide",function(e){e.provider("$compile",Dt).directive({a:Pr,input:zr,textarea:zr,form:Fr,script:Mi,select:Di,style:_i,option:Ai,ngBind:ii,ngBindHtmlUnsafe:ai,ngBindTemplate:oi,ngClass:si,ngClassEven:ci,ngClassOdd:ui,ngCsp:pi,ngCloak:li,ngController:fi,ngForm:Ir,ngHide:xi,ngInclude:mi,ngInit:gi,ngNonBindable:vi,ngPluralize:yi,ngRepeat:$i,ngShow:bi,ngSubmit:di,ngStyle:wi,ngSwitch:Ci,ngSwitchWhen:Si,ngSwitchDefault:Ti,ngOptions:ji,ngView:Ei,ngTransclude:ki,ngModel:Kr,ngList:ti,ngChange:Qr,required:ei,ngRequired:ei,ngValue:ri}).directive(Lr).directive(hi),e.provider({$anchorScroll:Tt,$browser:Et,$cacheFactory:Mt,$controller:_t,$document:Nt,$exceptionHandler:Ot,$filter:$n,$interpolate:qt,$http:dn,$httpBackend:mn,$location:Wt,$log:Xt,$parse:tn,$route:on,$routeParams:an,$rootScope:sn,$q:nn,$sniffer:un,$templateCache:jt,$timeout:yn,$window:cn})}])}function nt(){return++sr}function rt(e){return e.replace(lr,function(e,t,n,r){return r?n.toUpperCase():n}).replace(fr,"Moz$1")}function it(e,t){function n(){for(var e,n,i,o,a,s,u,c=[this],l=t;c.length;)for(e=c.shift(),n=0,i=e.length;i>n;n++)for(o=Wn(e[n]),l?o.triggerHandler("$destroy"):l=!l,a=0,s=(u=o.children()).length;s>a;a++)c.push(Xn(u[a]));return r.apply(this,arguments)}var r=Xn.fn[e];r=r.$original||r,n.$original=r,Xn.fn[e]=n}function ot(e){if(e instanceof ot)return e;if(!(this instanceof ot)){if($(e)&&"<"!=e.charAt(0))throw Error("selectors not implemented");return new ot(e)}if($(e)){var n=t.createElement("div");n.innerHTML="<div>&#160;</div>"+e,n.removeChild(n.firstChild),mt(this,n.childNodes),this.remove()}else mt(this,e)}function at(e){return e.cloneNode(!0)}function st(e){ct(e);for(var t=0,n=e.childNodes||[];n.length>t;t++)st(n[t])}function ut(e,t,n){var r=lt(e,"events"),o=lt(e,"handle");o&&(g(t)?i(r,function(t,n){cr(e,n,t),delete r[n]}):g(n)?(cr(e,t,r[t]),delete r[t]):_(r[t],n))}function ct(e){var t=e[ar],r=or[t];r&&(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),ut(e)),delete or[t],e[ar]=n)}function lt(e,t,r){var i=e[ar],o=or[i||-1];return v(r)?(o||(e[ar]=i=nt(),o=or[i]={}),o[t]=r,n):o&&o[t]}function ft(e,t,n){var r=lt(e,"data"),i=v(n),o=!i&&v(t),a=o&&!y(t);if(r||a||lt(e,"data",r={}),i)r[t]=n;else{if(!o)return r;if(a)return r&&r[t];l(r,t)}}function pt(e,t){return(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function ht(e,t){t&&i(t.split(" "),function(t){e.className=E((" "+e.className+" ").replace(/[\n\t]/g," ").replace(" "+E(t)+" "," "))})}function dt(e,t){t&&i(t.split(" "),function(t){pt(e,t)||(e.className=E(e.className+" "+E(t)))})}function mt(e,t){if(t){t=t.nodeName||!v(t.length)||S(t)?[t]:t;for(var n=0;t.length>n;n++)e.push(t[n])}}function gt(e,t){return vt(e,"$"+(t||"ngController")+"Controller")}function vt(e,t,n){for(e=Wn(e),9==e[0].nodeType&&(e=e.find("html"));e.length;){if(n=e.data(t))return n;e=e.parent()}}function yt(e,t){var n=hr[t.toLowerCase()];return n&&dr[e.nodeName]&&n}function $t(e,n){var r=function(r,o){if(r.preventDefault||(r.preventDefault=function(){r.returnValue=!1}),r.stopPropagation||(r.stopPropagation=function(){r.cancelBubble=!0}),r.target||(r.target=r.srcElement||t),g(r.defaultPrevented)){var a=r.preventDefault;r.preventDefault=function(){r.defaultPrevented=!0,a.call(r)},r.defaultPrevented=!1}r.isDefaultPrevented=function(){return r.defaultPrevented},i(n[o||r.type],function(t){t.call(e,r)}),8>=Jn?(r.preventDefault=null,r.stopPropagation=null,r.isDefaultPrevented=null):(delete r.preventDefault,delete r.stopPropagation,delete r.isDefaultPrevented)};return r.elem=e,r}function bt(e){var t,r=typeof e;return"object"==r&&null!==e?"function"==typeof(t=e.$$hashKey)?t=e.$$hashKey():t===n&&(t=e.$$hashKey=u()):t=e,r+":"+t}function xt(e){i(e,this.put,this)}function wt(){}function Ct(e){var t,n,r,o;return"function"==typeof e?(t=e.$inject)||(t=[],n=(""+e).replace($r,""),r=n.match(gr),i(r[1].split(vr),function(e){e.replace(yr,function(e,n,r){t.push(r)})}),e.$inject=t):w(e)?(o=e.length-1,Q(e[o],"fn"),t=e.slice(0,o)):Q(e,"fn",!0),t}function St(e){function t(e){return function(t,r){return y(t)?(i(t,s(e)),n):e(t,r)}}function r(e,t){if((C(t)||w(t))&&(t=S.instantiate(t)),!t.$get)throw Error("Provider "+e+" must define $get factory method.");return x[e+g]=t}function o(e,t){return r(e,{$get:t})}function a(e,t){return o(e,["$injector",function(e){return e.instantiate(t)}])}function u(e,t){return o(e,m(t))}function c(e,t){x[e]=t,T[e]=t}function l(e,t){var n=S.get(e+g),r=n.$get;n.$get=function(){var e=k.invoke(r,n);return k.invoke(t,null,{$delegate:e})}}function f(e){var t=[];return i(e,function(e){if(!b.get(e))if(b.put(e,!0),$(e)){var n=Gn(e);t=t.concat(f(n.requires)).concat(n._runBlocks);try{for(var r=n._invokeQueue,i=0,o=r.length;o>i;i++){var a=r[i],s="$injector"==a[0]?S:S.get(a[0]);s[a[1]].apply(s,a[2])}}catch(u){throw u.message&&(u.message+=" from "+e),u}}else if(C(e))try{t.push(S.invoke(e))}catch(u){throw u.message&&(u.message+=" from "+e),u}else if(w(e))try{t.push(S.invoke(e))}catch(u){throw u.message&&(u.message+=" from "+(e[e.length-1]+"")),u}else Q(e,"module")}),t}function p(e,t){function n(n){if("string"!=typeof n)throw Error("Service name expected");if(e.hasOwnProperty(n)){if(e[n]===d)throw Error("Circular dependency: "+v.join(" <- "));return e[n]}try{return v.unshift(n),e[n]=d,e[n]=t(n)}finally{v.shift()}}function r(e,t,r){var i,o,a,s=[],u=Ct(e);for(o=0,i=u.length;i>o;o++)a=u[o],s.push(r&&r.hasOwnProperty(a)?r[a]:n(a));switch(e.$inject||(e=e[i]),t?-1:s.length){case 0:return e();case 1:return e(s[0]);case 2:return e(s[0],s[1]);case 3:return e(s[0],s[1],s[2]);case 4:return e(s[0],s[1],s[2],s[3]);case 5:return e(s[0],s[1],s[2],s[3],s[4]);case 6:return e(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6]);case 8:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]);case 9:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8]);case 10:return e(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9]);default:return e.apply(t,s)}}function i(e,t){var n,i,o=function(){};return o.prototype=(w(e)?e[e.length-1]:e).prototype,n=new o,i=r(e,n,t),y(i)?i:n}return{invoke:r,instantiate:i,get:n,annotate:Ct}}var d={},g="Provider",v=[],b=new xt,x={$provide:{provider:t(r),factory:t(o),service:t(a),value:t(u),constant:t(c),decorator:l}},S=p(x,function(){throw Error("Unknown provider: "+v.join(" <- "))}),T={},k=T.$injector=p(T,function(e){var t=S.get(e+g);return k.invoke(t.$get,t)});return i(f(e),function(e){k.invoke(e||h)}),k}function Tt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function o(e){var t=null;return i(e,function(e){t||"a"!==Yn(e.nodeName)||(t=e)}),t}function a(){var e,r=n.hash();r?(e=s.getElementById(r))?e.scrollIntoView():(e=o(s.getElementsByName(r)))?e.scrollIntoView():"top"===r&&t.scrollTo(0,0):t.scrollTo(0,0)}var s=t.document;return e&&r.$watch(function(){return n.hash()},function(){r.$evalAsync(a)}),a}]}function kt(e,t,r,o){function a(e){try{e.apply(null,L(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(t){r.error(t)}}}function s(e,t){(function n(){i(w,function(e){e()}),x=t(n,e)})()}function u(){C!=c.url()&&(C=c.url(),i(T,function(e){e(c.url())}))}var c=this,l=t[0],f=e.location,p=e.history,d=e.setTimeout,m=e.clearTimeout,v={};c.isMock=!1;var y=0,b=[];c.$$completeOutstandingRequest=a,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(e){i(w,function(e){e()}),0===y?e():b.push(e)};var x,w=[];c.addPollFn=function(e){return g(x)&&s(100,d),w.push(e),e};var C=f.href,S=t.find("base");c.url=function(e,t){if(e){if(C==e)return;return C=e,o.history?t?p.replaceState(null,"",e):(p.pushState(null,"",e),S.attr("href",S.attr("href"))):t?f.replace(e):f.href=e,c}return f.href.replace(/%27/g,"'")};var T=[],k=!1;c.onUrlChange=function(t){return k||(o.history&&Wn(e).bind("popstate",u),o.hashchange?Wn(e).bind("hashchange",u):c.addPollFn(u),k=!0),T.push(t),t},c.baseHref=function(){var e=S.attr("href");return e?e.replace(/^https?\:\/\/[^\/]*/,""):""};var E={},M="",j=c.baseHref();c.cookies=function(e,t){var i,o,a,s,u;if(!e){if(l.cookie!==M)for(M=l.cookie,o=M.split("; "),E={},s=0;o.length>s;s++)if(a=o[s],u=a.indexOf("="),u>0){var e=unescape(a.substring(0,u));E[e]===n&&(E[e]=unescape(a.substring(u+1)))
}return E}t===n?l.cookie=escape(e)+"=;path="+j+";expires=Thu, 01 Jan 1970 00:00:00 GMT":$(t)&&(i=(l.cookie=escape(e)+"="+escape(t)+";path="+j).length+1,i>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},c.defer=function(e,t){var n;return y++,n=d(function(){delete v[n],a(e)},t||0),v[n]=!0,n},c.defer.cancel=function(e){return v[e]?(delete v[e],m(e),a(h),!0):!1}}function Et(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new kt(e,r,t,n)}]}function Mt(){this.$get=function(){function e(e,n){function r(e){e!=f&&(p?p==e&&(p=e.n):p=e,i(e.n,e.p),i(e,f),f=e,f.n=null)}function i(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw Error("cacheId "+e+" taken");var o=0,a=l({},n,{id:e}),s={},u=n&&n.capacity||Number.MAX_VALUE,c={},f=null,p=null;return t[e]={put:function(e,t){var n=c[e]||(c[e]={key:e});r(n),g(t)||(e in s||o++,s[e]=t,o>u&&this.remove(p.key))},get:function(e){var t=c[e];if(t)return r(t),s[e]},remove:function(e){var t=c[e];t&&(t==f&&(f=t.p),t==p&&(p=t.n),i(t.n,t.p),delete c[e],delete s[e],o--)},removeAll:function(){s={},o=0,c={},f=p=null},destroy:function(){s=null,a=null,c=null,delete t[e]},info:function(){return l({},a,{size:o})}}}var t={};return e.info=function(){var e={};return i(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function jt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Dt(e){var r={},o="Directive",a=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,u=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,c="Template must have exactly one root element. was: ",f=/^\s*(https?|ftp|mailto|file):/;this.directive=function p(t,n){return $(t)?(K(n,"directive"),r.hasOwnProperty(t)||(r[t]=[],e.factory(t+o,["$injector","$exceptionHandler",function(e,n){var o=[];return i(r[t],function(r){try{var i=e.invoke(r);C(i)?i={compile:m(i)}:!i.compile&&i.link&&(i.compile=m(i.link)),i.priority=i.priority||0,i.name=i.name||t,i.require=i.require||i.controller&&i.name,i.restrict=i.restrict||"A",o.push(i)}catch(a){n(a)}}),o}])),r[t].push(n)):i(t,s(p)),this},this.urlSanitizationWhitelist=function(e){return v(e)?(f=e,this):f},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document",function(e,s,p,h,g,v,b,x,S){function T(e,t,n){e instanceof Wn||(e=Wn(e)),i(e,function(t,n){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(e[n]=Wn(t).wrap("<span></span>").parent()[0])});var r=M(e,t,e,n);return function(t,n){K(t,"scope");for(var i=n?pr.clone.call(e):e,o=0,a=i.length;a>o;o++){var s=i[o];(1==s.nodeType||9==s.nodeType)&&i.eq(o).data("$scope",t)}return k(i,"ng-scope"),n&&n(i,t),r&&r(t,i,i),i}}function k(e,t){try{e.addClass(t)}catch(n){}}function M(e,t,r,i){function o(e,r,i,o){var a,s,u,c,l,p,h,d,m=[];for(p=0,h=r.length;h>p;p++)m.push(r[p]);for(p=0,d=0,h=f.length;h>p;d++)u=m[d],a=f[p++],s=f[p++],a?(a.scope?(c=e.$new(y(a.scope)),Wn(u).data("$scope",c)):c=e,l=a.transclude,l||!o&&t?a(s,c,u,i,function(t){return function(n){var r=e.$new();return r.$$transcluded=!0,t(r,n).bind("$destroy",R(r,r.$destroy))}}(l||t)):a(s,c,u,n,o)):s&&s(e,u.childNodes,n,o)}for(var a,s,u,c,l,f=[],p=0;e.length>p;p++)c=new I,u=j(e[p],[],c,i),a=u.length?D(u,e[p],c,t,r):null,s=a&&a.terminal||!e[p].childNodes||!e[p].childNodes.length?null:M(e[p].childNodes,a?a.transclude:t),f.push(a),f.push(s),l=l||a||s;return l?o:null}function j(e,t,n,r){var i,o,s=e.nodeType,c=n.$attr;switch(s){case 1:A(t,At(Zn(e).toLowerCase()),"E",r);for(var l,f,p,h,d=e.attributes,m=0,g=d&&d.length;g>m;m++)l=d[m],l.specified&&(f=l.name,p=At(f.toLowerCase()),c[p]=f,n[p]=h=E(Jn&&"href"==f?decodeURIComponent(e.getAttribute(f,2)):l.value),yt(e,p)&&(n[p]=!0),H(e,t,h,p),A(t,p,"A",r));if(o=e.className,$(o)&&""!==o)for(;i=u.exec(o);)p=At(i[2]),A(t,p,"C",r)&&(n[p]=E(i[3])),o=o.substr(i.index+i[0].length);break;case 3:L(t,e.nodeValue);break;case 8:try{i=a.exec(e.nodeValue),i&&(p=At(i[1]),A(t,p,"M",r)&&(n[p]=E(i[2])))}catch(v){}}return t.sort(q),t}function D(e,r,o,a,s){function u(e,t){e&&(e.require=h.require,A.push(e)),t&&(t.require=h.require,q.push(t))}function l(e,t){var n,r="data",o=!1;if($(e)){for(;"^"==(n=e.charAt(0))||"?"==n;)e=e.substr(1),"^"==n&&(r="inheritedData"),o=o||"?"==n;if(n=t[r]("$"+e+"Controller"),!n&&!o)throw Error("No controller: "+e);return n}return w(e)&&(n=[],i(e,function(e){n.push(l(e,t))})),n}function f(e,t,a,s,u){var c,f,h,d,m,g;if(c=r===a?o:O(o,new I(Wn(a),o.$attr)),f=c.$$element,R){var y=/^\s*([@=&])\s*(\w*)\s*$/,$=t.$parent||t;i(R.scope,function(e,n){var r,i,o,a=e.match(y)||[],s=a[2]||n,u=a[1];switch(t.$$isolateBindings[n]=u+s,u){case"@":c.$observe(s,function(e){t[n]=e}),c.$$observers[s].$$scope=$;break;case"=":i=v(c[s]),o=i.assign||function(){throw r=t[n]=i($),Error(br+c[s]+" (directive: "+R.name+")")},r=t[n]=i($),t.$watch(function(){var e=i($);return e!==t[n]&&(e!==r?r=t[n]=e:o($,e=r=t[n])),e});break;case"&":i=v(c[s]),t[n]=function(e){return i($,e)};break;default:throw Error("Invalid isolate scope definition for directive "+R.name+": "+e)}})}for(x&&i(x,function(e){var n={$scope:t,$element:f,$attrs:c,$transclude:u};g=e.controller,"@"==g&&(g=c[e.name]),f.data("$"+e.name+"Controller",b(g,n))}),h=0,d=A.length;d>h;h++)try{m=A[h],m(t,f,c,m.require&&l(m.require,f))}catch(w){p(w,Y(f))}for(e&&e(t,a.childNodes,n,u),h=0,d=q.length;d>h;h++)try{m=q[h],m(t,f,c,m.require&&l(m.require,f))}catch(w){p(w,Y(f))}}for(var h,d,m,g,x,S,M,D=-Number.MAX_VALUE,A=[],q=[],L=null,R=null,H=null,U=o.$$element=Wn(r),B=a,V=0,W=e.length;W>V&&(h=e[V],m=n,!(D>h.priority));V++){if((M=h.scope)&&(P("isolated scope",R,h,U),y(M)&&(k(U,"ng-isolate-scope"),R=h),k(U,"ng-scope"),L=L||h),d=h.name,(M=h.controller)&&(x=x||{},P("'"+d+"' controller",x[d],h,U),x[d]=h),(M=h.transclude)&&(P("transclusion",g,h,U),g=h,D=h.priority,"element"==M?(m=Wn(r),U=o.$$element=Wn(t.createComment(" "+d+": "+o[d]+" ")),r=U[0],F(s,Wn(m[0]),r),B=T(m,a,D)):(m=Wn(at(r)).contents(),U.html(""),B=T(m,a))),M=h.template)if(P("template",H,h,U),H=h,M=z(M),h.replace){if(m=Wn("<div>"+E(M)+"</div>").contents(),r=m[0],1!=m.length||1!==r.nodeType)throw Error(c+M);F(s,U,r);var X={$attr:{}};e=e.concat(j(r,e.splice(V+1,e.length-(V+1)),X)),_(o,X),W=e.length}else U.html(M);if(h.templateUrl)P("template",H,h,U),H=h,f=N(e.splice(V,e.length-V),f,U,o,s,h.replace,B),W=e.length;else if(h.compile)try{S=h.compile(U,o,B),C(S)?u(null,S):S&&u(S.pre,S.post)}catch(G){p(G,Y(U))}h.terminal&&(f.terminal=!0,D=Math.max(D,h.priority))}return f.scope=L&&L.scope,f.transclude=g&&B,f}function A(t,i,a,s){var u=!1;if(r.hasOwnProperty(i))for(var c,l=e.get(i+o),f=0,h=l.length;h>f;f++)try{c=l[f],(s===n||s>c.priority)&&-1!=c.restrict.indexOf(a)&&(t.push(c),u=!0)}catch(d){p(d)}return u}function _(e,t){var n=t.$attr,r=e.$attr,o=e.$$element;i(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),i(t,function(t,i){"class"==i?(k(o,t),e["class"]=(e["class"]?e["class"]+" ":"")+t):"style"==i?o.attr("style",o.attr("style")+";"+t):"$"==i.charAt(0)||e.hasOwnProperty(i)||(e[i]=t,r[i]=n[i])})}function N(e,t,n,r,i,o,a){var s,u,f=[],p=n[0],d=e.shift(),m=l({},d,{controller:null,templateUrl:null,transclude:null,scope:null});return n.html(""),h.get(d.templateUrl,{cache:g}).success(function(l){var h,d,g;if(l=z(l),o){if(g=Wn("<div>"+E(l)+"</div>").contents(),h=g[0],1!=g.length||1!==h.nodeType)throw Error(c+l);d={$attr:{}},F(i,n,h),j(h,e,d),_(r,d)}else h=p,n.html(l);for(e.unshift(m),s=D(e,h,r,a),u=M(n[0].childNodes,a);f.length;){var v=f.pop(),y=f.pop(),$=f.pop(),b=f.pop(),x=h;$!==p&&(x=at(h),F(y,Wn($),x)),s(function(){t(u,b,x,i,v)},b,x,i,v)}f=null}).error(function(e,t,n,r){throw Error("Failed to load template: "+r.url)}),function(e,n,r,i,o){f?(f.push(n),f.push(r),f.push(i),f.push(o)):s(function(){t(u,n,r,i,o)},n,r,i,o)}}function q(e,t){return t.priority-e.priority}function P(e,t,n,r){if(t)throw Error("Multiple directives ["+t.name+", "+n.name+"] asking for "+e+" on: "+Y(r))}function L(e,t){var n=s(t,!0);n&&e.push({priority:0,compile:m(function(e,t){var r=t.parent(),i=r.data("$binding")||[];i.push(n),k(r.data("$binding",i),"ng-binding"),e.$watch(n,function(e){t[0].nodeValue=e})})})}function H(e,t,r,i){var o=s(r,!0);o&&t.push({priority:100,compile:m(function(e,t,r){var a=r.$$observers||(r.$$observers={});"class"===i&&(o=s(r[i],!0)),r[i]=n,(a[i]||(a[i]=[])).$$inter=!0,(r.$$observers&&r.$$observers[i].$$scope||e).$watch(o,function(e){r.$set(i,e)})})})}function F(e,t,n){var r,i,o=t[0],a=o.parentNode;if(e)for(r=0,i=e.length;i>r;r++)if(e[r]==o){e[r]=n;break}a&&a.replaceChild(n,o),n[Wn.expando]=o[Wn.expando],t[0]=n}var I=function(e,t){this.$$element=e,this.$attr=t||{}};I.prototype={$normalize:At,$set:function(e,t,r,o){var a,s=yt(this.$$element[0],e),u=this.$$observers;s&&(this.$$element.prop(e,t),o=s),this[e]=t,o?this.$attr[e]=o:(o=this.$attr[e],o||(this.$attr[e]=o=Z(e,"-"))),"A"===Zn(this.$$element[0])&&"href"===e&&(U.setAttribute("href",t),a=U.href,a.match(f)||(this[e]=t="unsafe:"+a)),r!==!1&&(null===t||t===n?this.$$element.removeAttr(o):this.$$element.attr(o,t)),u&&i(u[e],function(e){try{e(t)}catch(n){p(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers={}),i=r[e]||(r[e]=[]);return i.push(t),x.$evalAsync(function(){i.$$inter||t(n[e])}),t}};var U=S[0].createElement("a"),B=s.startSymbol(),V=s.endSymbol(),z="{{"==B||"}}"==V?d:function z(e){return e.replace(/\{\{/g,B).replace(/}}/g,V)};return T}]}function At(e){return rt(e.replace(xr,""))}function _t(){var e={};this.register=function(t,n){y(t)?l(e,t):e[t]=n},this.$get=["$injector","$window",function(t,n){return function(r,i){if($(r)){var o=r;r=e.hasOwnProperty(o)?e[o]:Kt(i.$scope,o,!0)||Kt(n,o,!0),Q(r,o,!0)}return t.instantiate(r,i)}}]}function Nt(){this.$get=["$window",function(e){return Wn(e.document)}]}function Ot(){this.$get=["$log",function(e){return function(){e.error.apply(e,arguments)}}]}function qt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse",function(r){function i(i,s){for(var u,c,l,f,p=0,h=[],d=i.length,m=!1,g=[];d>p;)-1!=(u=i.indexOf(e,p))&&-1!=(c=i.indexOf(t,u+o))?(p!=u&&h.push(i.substring(p,u)),h.push(l=r(f=i.substring(u+o,c))),l.exp=f,p=c+a,m=!0):(p!=d&&h.push(i.substring(p)),p=d);return(d=h.length)||(h.push(""),d=1),!s||m?(g.length=d,l=function(e){for(var t,r=0,i=d;i>r;r++)"function"==typeof(t=h[r])&&(t=t(e),null==t||t==n?t="":"string"!=typeof t&&(t=F(t))),g[r]=t;return g.join("")},l.exp=i,l.parts=h,l):n}var o=e.length,a=t.length;return i.startSymbol=function(){return e},i.endSymbol=function(){return t},i}]}function Pt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=z(t[n]);return t.join("/")}function Lt(e,t){var n=wr.exec(e);return n={protocol:n[1],host:n[3],port:f(n[5])||Tr[n[1]]||null,path:n[6]||"/",search:n[8],hash:n[10]},t&&(t.$$protocol=n.protocol,t.$$host=n.host,t.$$port=n.port),n}function Rt(e,t,n){return e+"://"+t+(n==Tr[e]?"":":"+n)}function Ht(e){return e.substr(0,e.lastIndexOf("/"))}function Ft(e,t,n){var r=Lt(e);return decodeURIComponent(r.path)!=t||g(r.hash)||0!==r.hash.indexOf(n)?e:Rt(r.protocol,r.host,r.port)+Ht(t)+r.hash.substr(n.length)}function It(e,t,n){var r=Lt(e);if(decodeURIComponent(r.path)!=t||g(r.hash)||0!==r.hash.indexOf(n)){var i=r.search&&"?"+r.search||"",o=r.hash&&"#"+r.hash||"",a=Ht(t),s=r.path.substr(a.length);if(0!==r.path.indexOf(a))throw Error('Invalid url "'+e+'", missing path prefix "'+a+'" !');return Rt(r.protocol,r.host,r.port)+t+"#"+n+s+i+o}return e}function Ut(e,t,r){t=t||"",this.$$parse=function(e){var n=Lt(e,this);if(0!==n.path.indexOf(t))throw Error('Invalid url "'+e+'", missing path prefix "'+t+'" !');this.$$path=decodeURIComponent(n.path.substr(t.length)),this.$$search=B(n.search),this.$$hash=n.hash&&decodeURIComponent(n.hash)||"",this.$$compose()},this.$$compose=function(){var e=V(this.$$search),n=this.$$hash?"#"+z(this.$$hash):"";this.$$url=Pt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=Rt(this.$$protocol,this.$$host,this.$$port)+t+this.$$url},this.$$rewriteAppUrl=function(e){return 0==e.indexOf(r)?e:n},this.$$parse(e)}function Yt(e,t,r){var i;this.$$parse=function(e){var n=Lt(e,this);if(n.hash&&0!==n.hash.indexOf(t))throw Error('Invalid url "'+e+'", missing hash prefix "'+t+'" !');i=n.path+(n.search?"?"+n.search:""),n=Sr.exec((n.hash||"").substr(t.length)),this.$$path=n[1]?("/"==n[1].charAt(0)?"":"/")+decodeURIComponent(n[1]):"",this.$$search=B(n[3]),this.$$hash=n[5]&&decodeURIComponent(n[5])||"",this.$$compose()},this.$$compose=function(){var e=V(this.$$search),n=this.$$hash?"#"+z(this.$$hash):"";this.$$url=Pt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=Rt(this.$$protocol,this.$$host,this.$$port)+i+(this.$$url?"#"+t+this.$$url:"")},this.$$rewriteAppUrl=function(e){return 0==e.indexOf(r)?e:n},this.$$parse(e)}function Bt(e,t,r,i){Yt.apply(this,arguments),this.$$rewriteAppUrl=function(e){return 0==e.indexOf(r)?r+i+"#"+t+e.substr(r.length):n}}function Vt(e){return function(){return this[e]}}function zt(e,t){return function(n){return g(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Wt(){var t="",r=!1;this.hashPrefix=function(e){return v(e)?(t=e,this):t},this.html5Mode=function(e){return v(e)?(r=e,this):r},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(i,o,a,s){function u(e){i.$broadcast("$locationChangeSuccess",c.absUrl(),e)}var c,l,f,p,h=o.url(),d=Lt(h);r?(l=o.baseHref()||"/",f=Ht(l),p=Rt(d.protocol,d.host,d.port)+f+"/",c=a.history?new Ut(Ft(h,l,t),f,p):new Bt(It(h,l,t),t,p,l.substr(f.length+1))):(p=Rt(d.protocol,d.host,d.port)+(d.path||"")+(d.search?"?"+d.search:"")+"#"+t+"/",c=new Yt(h,t,p)),s.bind("click",function(t){if(!t.ctrlKey&&!t.metaKey&&2!=t.which){for(var n=Wn(t.target);"a"!==Yn(n[0].nodeName);)if(n[0]===s[0]||!(n=n.parent())[0])return;var r=n.prop("href"),o=c.$$rewriteAppUrl(r);r&&!n.attr("target")&&o&&(c.$$parse(o),i.$apply(),t.preventDefault(),e.angular["ff-684208-preventDefault"]=!0)}}),c.absUrl()!=h&&o.url(c.absUrl(),!0),o.onUrlChange(function(e){if(c.absUrl()!=e){if(i.$broadcast("$locationChangeStart",e,c.absUrl()).defaultPrevented)return o.url(c.absUrl()),n;i.$evalAsync(function(){var t=c.absUrl();c.$$parse(e),u(t)}),i.$$phase||i.$digest()}});var m=0;return i.$watch(function(){var e=o.url(),t=c.$$replace;return m&&e==c.absUrl()||(m++,i.$evalAsync(function(){i.$broadcast("$locationChangeStart",c.absUrl(),e).defaultPrevented?c.$$parse(e):(o.url(c.absUrl(),t),u(e))})),c.$$replace=!1,m}),c}]}function Xt(){this.$get=["$window",function(e){function t(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function n(n){var r=e.console||{},o=r[n]||r.log||h;return o.apply?function(){var e=[];return i(arguments,function(n){e.push(t(n))}),o.apply(r,e)}:function(e,t){o(e,t)}}return{log:n("log"),warn:n("warn"),info:n("info"),error:n("error")}}]}function Gt(e,t){function r(e){return-1!=e.indexOf(g)}function i(e){return-1!=e.indexOf(x)}function o(){return e.length>$+1?e.charAt($+1):!1}function a(e){return e>="0"&&"9">=e}function s(e){return" "==e||"\r"==e||"  "==e||"\n"==e||""==e||" "==e}function u(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"==e||"$"==e}function c(e){return"-"==e||"+"==e||a(e)}function f(t,n,r){throw r=r||$,Error("Lexer Error: "+t+" at column"+(v(n)?"s "+n+"-"+$+" ["+e.substring(n,r)+"]":" "+r)+" in expression ["+e+"].")}function p(){for(var t="",n=$;e.length>$;){var r=Yn(e.charAt($));if("."==r||a(r))t+=r;else{var i=o();if("e"==r&&c(i))t+=r;else if(c(r)&&i&&a(i)&&"e"==t.charAt(t.length-1))t+=r;else{if(!c(r)||i&&a(i)||"e"!=t.charAt(t.length-1))break;f("Invalid exponent")}}$++}t=1*t,y.push({index:n,text:t,json:!0,fn:function(){return t}})}function h(){for(var n,r,i,o,c="",f=$;e.length>$&&(o=e.charAt($),"."==o||u(o)||a(o));)"."==o&&(n=$),c+=o,$++;if(n)for(r=$;e.length>r;){if(o=e.charAt(r),"("==o){i=c.substr(n-f+1),c=c.substr(0,n-f),$=r;break}if(!s(o))break;r++}var p={index:f,text:c};if(kr.hasOwnProperty(c))p.fn=p.json=kr[c];else{var h=en(c,t);p.fn=l(function(e,t){return h(e,t)},{assign:function(e,t){return Jt(e,c,t)}})}y.push(p),i&&(y.push({index:n,text:".",json:!1}),y.push({index:n+1,text:i,json:!1}))}function d(t){var r=$;$++;for(var i="",o=t,a=!1;e.length>$;){var s=e.charAt($);if(o+=s,a){if("u"==s){var u=e.substring($+1,$+5);u.match(/[\da-f]{4}/i)||f("Invalid unicode escape [\\u"+u+"]"),$+=4,i+=String.fromCharCode(parseInt(u,16))}else{var c=Er[s];i+=c?c:s}a=!1}else if("\\"==s)a=!0;else{if(s==t)return $++,y.push({index:r,text:o,string:i,json:!0,fn:function(){return i}}),n;i+=s}$++}f("Unterminated quote",r)}for(var m,g,y=[],$=0,b=[],x=":";e.length>$;){if(g=e.charAt($),r("\"'"))d(g);else if(a(g)||r(".")&&a(o()))p();else if(u(g))h(),i("{,")&&"{"==b[0]&&(m=y[y.length-1])&&(m.json=-1==m.text.indexOf("."));else if(r("(){}[].,;:"))y.push({index:$,text:g,json:i(":[,")&&r("{[")||r("}]:,")}),r("{[")&&b.unshift(g),r("}]")&&b.shift(),$++;else{if(s(g)){$++;continue}var w=g+o(),C=kr[g],S=kr[w];S?(y.push({index:$,text:w,fn:S}),$+=2):C?(y.push({index:$,text:g,fn:C,json:i("[,:")&&r("+-")}),$+=1):f("Unexpected next character ",$,$+1)}x=g}return y}function Zt(e,t,r,i){function o(t,n){throw Error("Syntax Error: Token '"+n.text+"' "+t+" at column "+(n.index+1)+" of the expression ["+e+"] starting at ["+e.substring(n.index)+"].")}function a(){if(0===q.length)throw Error("Unexpected end of expression: "+e);return q[0]}function s(e,t,n,r){if(q.length>0){var i=q[0],o=i.text;if(o==e||o==t||o==n||o==r||!e&&!t&&!n&&!r)return i}return!1}function u(e,n,r,i){var a=s(e,n,r,i);return a?(t&&!a.json&&o("is not valid json",a),q.shift(),a):!1}function c(e){u(e)||o("is unexpected, expecting ["+e+"]",s())}function f(e,t){return function(n,r){return e(n,r,t)}}function p(e,t,n){return function(r,i){return t(r,i,e,n)}}function d(){for(var e=[];;)if(q.length>0&&!s("}",")",";","]")&&e.push(F()),!u(";"))return 1==e.length?e[0]:function(t,n){for(var r,i=0;e.length>i;i++){var o=e[i];o&&(r=o(t,n))}return r}}function g(){for(var e,t=y();;){if(!(e=u("|")))return t;t=p(t,e.fn,v())}}function v(){for(var e=u(),t=r(e.text),n=[];;){if(!(e=u(":"))){var i=function(e,r,i){for(var o=[i],a=0;n.length>a;a++)o.push(n[a](e,r));return t.apply(e,o)};return function(){return i}}n.push(y())}}function y(){return P()}function $(){var t,n,r=b();return(n=u("="))?(r.assign||o("implies assignment but ["+e.substring(0,n.index)+"] can not be assigned to",n),t=b(),function(e,n){return r.assign(e,t(e,n),n)}):r}function b(){for(var e,t=x();;){if(!(e=u("||")))return t;t=p(t,e.fn,x())}}function x(){var e,t=w();return(e=u("&&"))&&(t=p(t,e.fn,x())),t}function w(){var e,t=C();return(e=u("==","!="))&&(t=p(t,e.fn,w())),t}function C(){var e,t=S();return(e=u("<",">","<=",">="))&&(t=p(t,e.fn,C())),t}function S(){for(var e,t=T();e=u("+","-");)t=p(t,e.fn,T());return t}function T(){for(var e,t=k();e=u("*","/","%");)t=p(t,e.fn,k());return t}function k(){var e;return u("+")?E():(e=u("-"))?p(O,e.fn,k()):(e=u("!"))?f(e.fn,k()):E()}function E(){var e;if(u("("))e=F(),c(")");else if(u("["))e=A();else if(u("{"))e=_();else{var t=u();e=t.fn,e||o("not a primary expression",t)}for(var n,r;n=u("(","[",".");)"("===n.text?(e=L(e,r),r=null):"["===n.text?(r=e,e=H(e)):"."===n.text?(r=e,e=R(e)):o("IMPOSSIBLE");return e}function M(e){var t=u().text,n=en(t,i);return l(function(t,r,i){return n(i||e(t,r),r)},{assign:function(n,r,i){return Jt(e(n,i),t,r)}})}function j(e){var t=y();return c("]"),l(function(r,i){var o,a,s=e(r,i),u=t(r,i);return s?(o=s[u],o&&o.then&&(a=o,"$$v"in o||(a.$$v=n,a.then(function(e){a.$$v=e})),o=o.$$v),o):n},{assign:function(n,r,i){return e(n,i)[t(n,i)]=r}})}function D(e,t){var n=[];if(")"!=a().text)do n.push(y());while(u(","));return c(")"),function(r,i){for(var o=[],a=t?t(r,i):r,s=0;n.length>s;s++)o.push(n[s](r,i));var u=e(r,i,a)||h;return u.apply?u.apply(a,o):u(o[0],o[1],o[2],o[3],o[4])}}function A(){var e=[];if("]"!=a().text)do e.push(y());while(u(","));return c("]"),function(t,n){for(var r=[],i=0;e.length>i;i++)r.push(e[i](t,n));return r}}function _(){var e=[];if("}"!=a().text)do{var t=u(),n=t.string||t.text;c(":");var r=y();e.push({key:n,value:r})}while(u(","));return c("}"),function(t,n){for(var r={},i=0;e.length>i;i++){var o=e[i];r[o.key]=o.value(t,n)}return r}}var N,O=m(0),q=Gt(e,i),P=$,L=D,R=M,H=j,F=g;return t?(P=b,L=R=H=F=function(){o("is not valid json",{text:e,index:0})},N=E()):N=d(),0!==q.length&&o("is an unexpected token",q[0]),N}function Jt(e,t,n){for(var r=t.split("."),i=0;r.length>1;i++){var o=r.shift(),a=e[o];a||(a={},e[o]=a),e=a}return e[r.shift()]=n,n}function Kt(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;a>s;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&C(e)?R(o,e):e}function Qt(e,t,r,i,o){return function(a,s){var u,c=s&&s.hasOwnProperty(e)?s:a;return null===c||c===n?c:(c=c[e],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),t&&null!==c&&c!==n?(c=c[t],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),r&&null!==c&&c!==n?(c=c[r],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),i&&null!==c&&c!==n?(c=c[i],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),o&&null!==c&&c!==n?(c=c[o],c&&c.then&&("$$v"in c||(u=c,u.$$v=n,u.then(function(e){u.$$v=e})),c=c.$$v),c):c):c):c):c)}}function en(e,t){if(Mr.hasOwnProperty(e))return Mr[e];var r,o=e.split("."),a=o.length;if(t)r=6>a?Qt(o[0],o[1],o[2],o[3],o[4]):function(e,t){var r,i=0;do r=Qt(o[i++],o[i++],o[i++],o[i++],o[i++])(e,t),t=n,e=r;while(a>i);return r};else{var s="var l, fn, p;\n";i(o,function(e,t){s+="if(s === null || s === undefined) return s;\nl=s;\ns="+(t?"s":'((k&&k.hasOwnProperty("'+e+'"))?k:s)')+'["'+e+'"]'+";\n"+"if (s && s.then) {\n"+' if (!("$$v" in s)) {\n'+" p=s;\n"+" p.$$v = undefined;\n"+" p.then(function(v) {p.$$v=v;});\n"+"}\n"+" s=s.$$v\n"+"}\n"}),s+="return s;",r=Function("s","k",s),r.toString=function(){return s}}return Mr[e]=r}function tn(){var e={};this.$get=["$filter","$sniffer",function(t,n){return function(r){switch(typeof r){case"string":return e.hasOwnProperty(r)?e[r]:e[r]=Zt(r,!1,t,n.csp);case"function":return r;default:return h}}}]}function nn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return rn(function(t){e.$evalAsync(t)},t)}]}function rn(e,t){function r(e){return e}function o(e){return c(e)}function a(e){var t=s(),n=e.length,r=[];return n?i(e,function(e,i){u(e).then(function(e){i in r||(r[i]=e,--n||t.resolve(r))},function(e){i in r||t.reject(e)})}):t.resolve(r),t.promise}var s=function(){var i,a,l=[];return a={resolve:function(t){if(l){var r=l;l=n,i=u(t),r.length&&e(function(){for(var e,t=0,n=r.length;n>t;t++)e=r[t],i.then(e[0],e[1])})}},reject:function(e){a.resolve(c(e))},promise:{then:function(e,n){var a=s(),u=function(n){try{a.resolve((e||r)(n))}catch(i){t(i),a.reject(i)}},c=function(e){try{a.resolve((n||o)(e))}catch(r){t(r),a.reject(r)}};return l?l.push([u,c]):i.then(u,c),a.promise}}}},u=function(t){return t&&t.then?t:{then:function(n){var r=s();return e(function(){r.resolve(n(t))}),r.promise}}},c=function(t){return{then:function(n,r){var i=s();return e(function(){i.resolve((r||o)(t))}),i.promise}}},l=function(n,i,a){var l,f=s(),p=function(e){try{return(i||r)(e)}catch(n){return t(n),c(n)}},h=function(e){try{return(a||o)(e)}catch(n){return t(n),c(n)}};return e(function(){u(n).then(function(e){l||(l=!0,f.resolve(u(e).then(p,h)))},function(e){l||(l=!0,f.resolve(h(e)))})}),f.promise};return{defer:s,reject:c,when:l,all:a}}function on(){var e={};this.when=function(t,n){if(e[t]=l({reloadOnSearch:!0},n),t){var r="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";e[r]={redirectTo:t}}return this},this.otherwise=function(e){return this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache",function(t,n,r,o,a,s,u){function c(e,t){t="^"+t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"$";for(var n,r="",o=[],a={},s=/:(\w+)/g,u=0;null!==(n=s.exec(t));)r+=t.slice(u,n.index),r+="([^\\/]*)",o.push(n[1]),u=s.lastIndex;r+=t.substr(u);var c=e.match(RegExp(r));return c&&i(o,function(e,t){a[e]=c[t+1]}),c?a:null}function f(){var e=h(),c=g.current;e&&c&&e.$$route===c.$$route&&q(e.pathParams,c.pathParams)&&!e.reloadOnSearch&&!m?(c.params=e.params,N(c.params,r),t.$broadcast("$routeUpdate",c)):(e||c)&&(m=!1,t.$broadcast("$routeChangeStart",e,c),g.current=e,e&&e.redirectTo&&($(e.redirectTo)?n.path(d(e.redirectTo,e.params)).search(e.params).replace():n.url(e.redirectTo(e.pathParams,n.path(),n.search())).replace()),o.when(e).then(function(){if(e){var t,n=[],r=[];return i(e.resolve||{},function(e,t){n.push(t),r.push($(e)?a.get(e):a.invoke(e))}),v(t=e.template)||v(t=e.templateUrl)&&(t=s.get(t,{cache:u}).then(function(e){return e.data})),v(t)&&(n.push("$template"),r.push(t)),o.all(r).then(function(e){var t={};return i(e,function(e,r){t[n[r]]=e}),t})}}).then(function(n){e==g.current&&(e&&(e.locals=n,N(e.params,r)),t.$broadcast("$routeChangeSuccess",e,c))},function(n){e==g.current&&t.$broadcast("$routeChangeError",e,c,n)}))}function h(){var t,r;return i(e,function(e,i){!r&&(t=c(n.path(),i))&&(r=p(e,{params:l({},n.search(),t),pathParams:t}),r.$$route=e)}),r||e[null]&&p(e[null],{params:{},pathParams:{}})}function d(e,t){var n=[];return i((e||"").split(":"),function(e,r){if(0==r)n.push(e);else{var i=e.match(/(\w+)(.*)/),o=i[1];n.push(t[o]),n.push(i[2]||""),delete t[o]}}),n.join("")}var m=!1,g={routes:e,reload:function(){m=!0,t.$evalAsync(f)}};return t.$on("$locationChangeSuccess",f),g}]}function an(){this.$get=m({})}function sn(){var e=10;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse",function(t,n,r){function i(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$listeners={},this.$$isolateBindings={}}function o(e){if(l.$$phase)throw Error(l.$$phase+" already in progress");l.$$phase=e}function a(){l.$$phase=null}function s(e,t){var n=r(e);return Q(n,t),n}function c(){}i.prototype={$new:function(e){var t,n;if(C(e))throw Error("API-CHANGE: Use $controller to instantiate controllers.");return e?(n=new i,n.$root=this.$root):(t=function(){},t.prototype=this,n=new t,n.$id=u()),n["this"]=n,n.$$listeners={},n.$parent=this,n.$$asyncQueue=[],n.$$watchers=n.$$nextSibling=n.$$childHead=n.$$childTail=null,n.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=n,this.$$childTail=n):this.$$childHead=this.$$childTail=n,n},$watch:function(e,t,n){var r=this,i=s(e,"watch"),o=r.$$watchers,a={fn:t,last:c,get:i,exp:e,eq:!!n};if(!C(t)){var u=s(t||h,"listener");a.fn=function(e,t,n){u(n)}}return o||(o=r.$$watchers=[]),o.unshift(a),function(){_(o,a)}},$digest:function(){var t,r,i,s,u,l,f,p,h,d,m,g=e,v=this,y=[];o("$digest");do{f=!1,h=v;do{for(u=h.$$asyncQueue;u.length;)try{h.$eval(u.shift())}catch($){n($)}if(s=h.$$watchers)for(l=s.length;l--;)try{t=s[l],(r=t.get(h))===(i=t.last)||(t.eq?q(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))||(f=!0,t.last=t.eq?N(r):r,t.fn(r,i===c?r:i,h),5>g&&(d=4-g,y[d]||(y[d]=[]),m=C(t.exp)?"fn: "+(t.exp.name||""+t.exp):t.exp,m+="; newVal: "+F(r)+"; oldVal: "+F(i),y[d].push(m)))}catch($){n($)}if(!(p=h.$$childHead||h!==v&&h.$$nextSibling))for(;h!==v&&!(p=h.$$nextSibling);)h=h.$parent}while(h=p);if(f&&!g--)throw a(),Error(e+" $digest() iterations reached. Aborting!\n"+"Watchers fired in the last 5 iterations: "+F(y))}while(f||u.length);a()},$destroy:function(){if(l!=this&&!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null}},$eval:function(e,t){return r(e)(this,t)},$evalAsync:function(e){this.$$asyncQueue.push(e)},$apply:function(e){try{return o("$apply"),this.$eval(e)}catch(t){n(t)}finally{a();try{l.$digest()}catch(t){throw n(t),t}}},$on:function(e,t){var n=this.$$listeners[e];return n||(this.$$listeners[e]=n=[]),n.push(t),function(){n[A(n,t)]=null}},$emit:function(e){var t,r,i,o=[],a=this,s=!1,u={name:e,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=P([u],arguments,1);do{for(t=a.$$listeners[e]||o,u.currentScope=a,r=0,i=t.length;i>r;r++)if(t[r])try{if(t[r].apply(null,c),s)return u}catch(l){n(l)}else t.splice(r,1),r--,i--;a=a.$parent}while(a);return u},$broadcast:function(e){var t,r,i,o=this,a=o,s=o,u={name:e,targetScope:o,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=P([u],arguments,1);do{for(a=s,u.currentScope=a,t=a.$$listeners[e]||[],r=0,i=t.length;i>r;r++)if(t[r])try{t[r].apply(null,c)}catch(l){n(l)}else t.splice(r,1),r--,i--;if(!(s=a.$$childHead||a!==o&&a.$$nextSibling))for(;a!==o&&!(s=a.$$nextSibling);)a=a.$parent}while(a=s);return u}};var l=new i;return l}]}function un(){this.$get=["$window",function(e){var t={},n=f((/android (\d+)/.exec(Yn(e.navigator.userAgent))||[])[1]);return{history:!(!e.history||!e.history.pushState||4>n),hashchange:"onhashchange"in e&&(!e.document.documentMode||e.document.documentMode>7),hasEvent:function(n){if("input"==n&&9==Jn)return!1;if(g(t[n])){var r=e.document.createElement("div");t[n]="on"+n in r}return t[n]},csp:!1}}]}function cn(){this.$get=m(e)}function ln(e){var t,n,r,o={};return e?(i(e.split("\n"),function(e){r=e.indexOf(":"),t=Yn(E(e.substr(0,r))),n=E(e.substr(r+1)),t&&(o[t]?o[t]+=", "+n:o[t]=n)}),o):o}function fn(e){var t=y(e)?e:n;return function(n){return t||(t=ln(e)),n?t[Yn(n)]||null:t}}function pn(e,t,n){return C(n)?n(e,t):(i(n,function(n){e=n(e,t)}),e)}function hn(e){return e>=200&&300>e}function dn(){var e=/^\s*(\[|\{[^\{])/,t=/[\}\]]\s*$/,r=/^\)\]\}',?\n/,o=this.defaults={transformResponse:[function(n){return $(n)&&(n=n.replace(r,""),e.test(n)&&t.test(n)&&(n=I(n,!0))),n}],transformRequest:[function(e){return y(e)&&!k(e)?F(e):e}],headers:{common:{Accept:"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest"},post:{"Content-Type":"application/json;charset=utf-8"},put:{"Content-Type":"application/json;charset=utf-8"}}},s=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(e,t,r,u,c,f){function p(e){function n(e){var t=l({},e,{data:pn(e.data,e.headers,s)});return hn(e.status)?t:c.reject(t)}e.method=Bn(e.method);var r,a=e.transformRequest||o.transformRequest,s=e.transformResponse||o.transformResponse,u=o.headers,f=l({"X-XSRF-TOKEN":t.cookies()["XSRF-TOKEN"]},u.common,u[Yn(e.method)],e.headers),p=pn(e.data,fn(f),a);return g(e.data)&&delete f["Content-Type"],r=m(e,p,f),r=r.then(n,n),i(x,function(e){r=e(r)}),r.success=function(t){return r.then(function(n){t(n.data,n.status,n.headers,e)}),r},r.error=function(t){return r.then(null,function(n){t(n.data,n.status,n.headers,e)}),r},r}function h(){i(arguments,function(e){p[e]=function(t,n){return p(l(n||{},{method:e,url:t}))}})}function d(){i(arguments,function(e){p[e]=function(t,n,r){return p(l(r||{},{method:e,url:t,data:n}))}})}function m(t,n,r){function i(e,t,n){s&&(hn(e)?s.put(d,[e,t,ln(n)]):s.remove(d)),o(t,e,n),u.$apply()}function o(e,n,r){n=Math.max(n,0),(hn(n)?f.resolve:f.reject)({data:e,status:n,headers:fn(r),config:t})}function a(){var e=A(p.pendingRequests,t);-1!==e&&p.pendingRequests.splice(e,1)}var s,l,f=c.defer(),h=f.promise,d=v(t.url,t.params);if(p.pendingRequests.push(t),h.then(a,a),t.cache&&"GET"==t.method&&(s=y(t.cache)?t.cache:b),s)if(l=s.get(d)){if(l.then)return l.then(a,a),l;w(l)?o(l[1],l[0],N(l[2])):o(l,200,{})}else s.put(d,h);return l||e(t.method,d,n,i,r,t.timeout,t.withCredentials),h}function v(e,t){if(!t)return e;
var r=[];return a(t,function(e,t){null!=e&&e!=n&&(y(e)&&(e=F(e)),r.push(encodeURIComponent(t)+"="+encodeURIComponent(e)))}),e+(-1==e.indexOf("?")?"?":"&")+r.join("&")}var b=r("$http"),x=[];return i(s,function(e){x.push($(e)?f.get(e):f.invoke(e))}),p.pendingRequests=[],h("get","delete","head","jsonp"),d("post","put"),p.defaults=o,p}]}function mn(){this.$get=["$browser","$window","$document",function(e,t,n){return gn(e,jr,e.defer,t.angular.callbacks,n[0],t.location.protocol.replace(":",""))}]}function gn(e,t,n,r,o,a){function s(e,t){var n=o.createElement("script"),r=function(){o.body.removeChild(n),t&&t()};n.type="text/javascript",n.src=e,Jn?n.onreadystatechange=function(){/loaded|complete/.test(n.readyState)&&r()}:n.onload=n.onerror=r,o.body.appendChild(n)}return function(o,u,c,l,f,p,d){function m(t,n,r,i){var o=(u.match(wr)||["",a])[1];n="file"==o?r?200:404:n,n=1223==n?204:n,t(n,r,i),e.$$completeOutstandingRequest(h)}if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==Yn(o)){var g="_"+(r.counter++).toString(36);r[g]=function(e){r[g].data=e},s(u.replace("JSON_CALLBACK","angular.callbacks."+g),function(){r[g].data?m(l,200,r[g].data):m(l,-2),delete r[g]})}else{var v=new t;v.open(o,u,!0),i(f,function(e,t){e&&v.setRequestHeader(t,e)});var y;v.onreadystatechange=function(){if(4==v.readyState){var e=v.getAllResponseHeaders(),t=["Cache-Control","Content-Language","Content-Type","Expires","Last-Modified","Pragma"];e||(e="",i(t,function(t){var n=v.getResponseHeader(t);n&&(e+=t+": "+n+"\n")})),m(l,y||v.status,v.responseText,e)}},d&&(v.withCredentials=!0),v.send(c||""),p>0&&n(function(){y=-1,v.abort()},p)}}}function vn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(e){return 1===e?"one":"other"}}}}function yn(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(e,t,n,r){function i(i,a,s){var u,c,l=n.defer(),f=l.promise,p=v(s)&&!s;return u=t.defer(function(){try{l.resolve(i())}catch(t){l.reject(t),r(t)}p||e.$apply()},a),c=function(){delete o[f.$$timeoutId]},f.$$timeoutId=u,o[u]=l,f.then(c,c),f}var o={};return i.cancel=function(e){return e&&e.$$timeoutId in o?(o[e.$$timeoutId].reject("canceled"),t.defer.cancel(e.$$timeoutId)):!1},i}]}function $n(e){function t(t,r){return e.factory(t+n,r)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",xn),t("date",jn),t("filter",bn),t("json",Dn),t("limitTo",An),t("lowercase",Or),t("number",wn),t("orderBy",_n),t("uppercase",qr)}function bn(){return function(e,t){if(!w(e))return e;var n=[];n.check=function(e){for(var t=0;n.length>t;t++)if(!n[t](e))return!1;return!0};var r=function(e,t){if("!"===t.charAt(0))return!r(e,t.substr(1));switch(typeof e){case"boolean":case"number":case"string":return(""+e).toLowerCase().indexOf(t)>-1;case"object":for(var n in e)if("$"!==n.charAt(0)&&r(e[n],t))return!0;return!1;case"array":for(var i=0;e.length>i;i++)if(r(e[i],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(var i in t)"$"==i?function(){var e=(""+t[i]).toLowerCase();e&&n.push(function(t){return r(t,e)})}():function(){var e=i,o=(""+t[i]).toLowerCase();o&&n.push(function(t){return r(Kt(t,e),o)})}();break;case"function":n.push(t);break;default:return e}for(var o=[],a=0;e.length>a;a++){var s=e[a];n.check(s)&&o.push(s)}return o}}function xn(e){var t=e.NUMBER_FORMATS;return function(e,n){return g(n)&&(n=t.CURRENCY_SYM),Cn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function wn(e){var t=e.NUMBER_FORMATS;return function(e,n){return Cn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Cn(e,t,n,r,i){if(isNaN(e)||!isFinite(e))return"";var o=0>e;e=Math.abs(e);var a=e+"",s="",u=[],c=!1;if(-1!==a.indexOf("e")){var l=a.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>i+1?a="0":(s=a,c=!0)}if(!c){var f=(a.split(Dr)[1]||"").length;g(i)&&(i=Math.min(Math.max(t.minFrac,f),t.maxFrac));var p=Math.pow(10,i);e=Math.round(e*p)/p;var h=(""+e).split(Dr),d=h[0];h=h[1]||"";var m=0,v=t.lgSize,y=t.gSize;if(d.length>=v+y){m=d.length-v;for(var $=0;m>$;$++)0===(m-$)%y&&0!==$&&(s+=n),s+=d.charAt($)}for($=m;d.length>$;$++)0===(d.length-$)%v&&0!==$&&(s+=n),s+=d.charAt($);for(;i>h.length;)h+="0";i&&"0"!==i&&(s+=r+h.substr(0,i))}return u.push(o?t.negPre:t.posPre),u.push(s),u.push(o?t.negSuf:t.posSuf),u.join("")}function Sn(e,t,n){var r="";for(0>e&&(r="-",e=-e),e=""+e;t>e.length;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function Tn(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Sn(o,t,r)}}function kn(e,t){return function(n,r){var i=n["get"+e](),o=Bn(t?"SHORT"+e:e);return r[o][i]}}function En(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=Sn(Math[t>0?"floor":"ceil"](t/60),2)+Sn(Math.abs(t%60),2)}function Mn(e,t){return 12>e.getHours()?t.AMPMS[0]:t.AMPMS[1]}function jn(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0;return t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),r.setUTCFullYear(f(t[1]),f(t[2])-1,f(t[3])),r.setUTCHours(f(t[4]||0)-i,f(t[5]||0)-o,f(t[6]||0),f(t[7]||0)),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r){var o,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,$(n)&&(n=Nr.test(n)?f(n):t(n)),b(n)&&(n=new Date(n)),!x(n))return n;for(;r;)a=_r.exec(r),a?(u=P(u,a,1),r=u.pop()):(u.push(r),r=null);return i(u,function(t){o=Ar[t],s+=o?o(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Dn(){return function(e){return F(e,!0)}}function An(){return function(e,t){if(!(e instanceof Array))return e;t=f(t);var n,r,i=[];if(!(e&&e instanceof Array))return i;for(t>e.length?t=e.length:-e.length>t&&(t=-e.length),t>0?(n=0,r=t):(n=e.length+t,r=e.length);r>n;n++)i.push(e[n]);return i}}function _n(e){return function(t,n,r){function i(e,t){for(var r=0;n.length>r;r++){var i=n[r](e,t);if(0!==i)return i}return 0}function o(e,t){return U(t)?function(t,n){return e(n,t)}:e}function a(e,t){var n=typeof e,r=typeof t;return n==r?("string"==n&&(e=e.toLowerCase()),"string"==n&&(t=t.toLowerCase()),e===t?0:t>e?-1:1):r>n?-1:1}if(!w(t))return t;if(!n)return t;n=w(n)?n:[n],n=j(n,function(t){var n=!1,r=t||d;return $(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0),t=t.substring(1)),r=e(t)),o(function(e,t){return a(r(e),r(t))},n)});for(var s=[],u=0;t.length>u;u++)s.push(t[u]);return s.sort(o(i,r))}}function Nn(e){return C(e)&&(e={link:e}),e.restrict=e.restrict||"AC",m(e)}function On(e,t){function n(t,n){n=n?"-"+Z(n,"-"):"",e.removeClass((t?Xr:Wr)+n).addClass((t?Wr:Xr)+n)}var r=this,o=e.parent().controller("form")||Rr,a=0,s=r.$error={};r.$name=t.name,r.$dirty=!1,r.$pristine=!0,r.$valid=!0,r.$invalid=!1,o.$addControl(r),e.addClass(Gr),n(!0),r.$addControl=function(e){e.$name&&!r.hasOwnProperty(e.$name)&&(r[e.$name]=e)},r.$removeControl=function(e){e.$name&&r[e.$name]===e&&delete r[e.$name],i(s,function(t,n){r.$setValidity(n,!0,e)})},r.$setValidity=function(e,t,i){var u=s[e];if(t)u&&(_(u,i),u.length||(a--,a||(n(t),r.$valid=!0,r.$invalid=!1),s[e]=!1,n(!0,e),o.$setValidity(e,!0,r)));else{if(a||n(t),u){if(D(u,i))return}else s[e]=u=[],a++,n(!1,e),o.$setValidity(e,!1,r);u.push(i),r.$valid=!1,r.$invalid=!0}},r.$setDirty=function(){e.removeClass(Gr).addClass(Zr),r.$dirty=!0,r.$pristine=!1,o.$setDirty()}}function qn(e){return g(e)||""===e||null===e||e!==e}function Pn(e,t,r,i,o,a){var s=function(){var n=E(t.val());i.$viewValue!==n&&e.$apply(function(){i.$setViewValue(n)})};if(o.hasEvent("input"))t.bind("input",s);else{var u,c=function(){u||(u=a.defer(function(){s(),u=null}))};t.bind("keydown",function(e){var t=e.keyCode;91===t||t>15&&19>t||t>=37&&40>=t||c()}),t.bind("change",s),o.hasEvent("paste")&&t.bind("paste cut",c)}i.$render=function(){t.val(qn(i.$viewValue)?"":i.$viewValue)};var l,p=r.ngPattern,h=function(e,t){return qn(t)||e.test(t)?(i.$setValidity("pattern",!0),t):(i.$setValidity("pattern",!1),n)};if(p&&(p.match(/^\/(.*)\/$/)?(p=RegExp(p.substr(1,p.length-2)),l=function(e){return h(p,e)}):l=function(t){var n=e.$eval(p);if(!n||!n.test)throw Error("Expected "+p+" to be a RegExp but was "+n);return h(n,t)},i.$formatters.push(l),i.$parsers.push(l)),r.ngMinlength){var d=f(r.ngMinlength),m=function(e){return!qn(e)&&d>e.length?(i.$setValidity("minlength",!1),n):(i.$setValidity("minlength",!0),e)};i.$parsers.push(m),i.$formatters.push(m)}if(r.ngMaxlength){var g=f(r.ngMaxlength),v=function(e){return!qn(e)&&e.length>g?(i.$setValidity("maxlength",!1),n):(i.$setValidity("maxlength",!0),e)};i.$parsers.push(v),i.$formatters.push(v)}}function Ln(e,t,r,i,o,a){if(Pn(e,t,r,i,o,a),i.$parsers.push(function(e){var t=qn(e);return t||Br.test(e)?(i.$setValidity("number",!0),""===e?null:t?e:parseFloat(e)):(i.$setValidity("number",!1),n)}),i.$formatters.push(function(e){return qn(e)?"":""+e}),r.min){var s=parseFloat(r.min),u=function(e){return!qn(e)&&s>e?(i.$setValidity("min",!1),n):(i.$setValidity("min",!0),e)};i.$parsers.push(u),i.$formatters.push(u)}if(r.max){var c=parseFloat(r.max),l=function(e){return!qn(e)&&e>c?(i.$setValidity("max",!1),n):(i.$setValidity("max",!0),e)};i.$parsers.push(l),i.$formatters.push(l)}i.$formatters.push(function(e){return qn(e)||b(e)?(i.$setValidity("number",!0),e):(i.$setValidity("number",!1),n)})}function Rn(e,t,r,i,o,a){Pn(e,t,r,i,o,a);var s=function(e){return qn(e)||Ur.test(e)?(i.$setValidity("url",!0),e):(i.$setValidity("url",!1),n)};i.$formatters.push(s),i.$parsers.push(s)}function Hn(e,t,r,i,o,a){Pn(e,t,r,i,o,a);var s=function(e){return qn(e)||Yr.test(e)?(i.$setValidity("email",!0),e):(i.$setValidity("email",!1),n)};i.$formatters.push(s),i.$parsers.push(s)}function Fn(e,t,n,r){g(n.name)&&t.attr("name",u()),t.bind("click",function(){t[0].checked&&e.$apply(function(){r.$setViewValue(n.value)})}),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function In(e,t,n,r){var i=n.ngTrueValue,o=n.ngFalseValue;$(i)||(i=!0),$(o)||(o=!1),t.bind("click",function(){e.$apply(function(){r.$setViewValue(t[0].checked)})}),r.$render=function(){t[0].checked=r.$viewValue},r.$formatters.push(function(e){return e===i}),r.$parsers.push(function(e){return e?i:o})}function Un(e,t){return e="ngClass"+e,Nn(function(r,i,o){function a(e){(t===!0||r.$index%2===t)&&(c&&!q(e,c)&&s(c),u(e)),c=N(e)}function s(e){y(e)&&!w(e)&&(e=j(e,function(e,t){return e?t:n})),i.removeClass(w(e)?e.join(" "):e)}function u(e){y(e)&&!w(e)&&(e=j(e,function(e,t){return e?t:n})),e&&i.addClass(w(e)?e.join(" "):e)}var c=n;r.$watch(o[e],a,!0),o.$observe("class",function(){var t=r.$eval(o[e]);a(t,t)}),"ngClass"!==e&&r.$watch("$index",function(n,i){var a=1&n;1&a!==i&&(a===t?u(r.$eval(o[e])):s(r.$eval(o[e])))})})}var Yn=function(e){return $(e)?e.toLowerCase():e},Bn=function(e){return $(e)?e.toUpperCase():e},Vn=function(e){return $(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},zn=function(e){return $(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Yn=Vn,Bn=zn);var Wn,Xn,Gn,Zn,Jn=f((/msie (\d+)/.exec(Yn(navigator.userAgent))||[])[1]),Kn=[].slice,Qn=[].push,er=Object.prototype.toString,tr=e.angular||(e.angular={}),nr=["0","0","0"];h.$inject=[],d.$inject=[],Zn=9>Jn?function(e){return e=e.nodeName?e:e[0],e.scopeName&&"HTML"!=e.scopeName?Bn(e.scopeName+":"+e.nodeName):e.nodeName}:function(e){return e.nodeName?e.nodeName:e[0].nodeName};var rr=/[A-Z]/g,ir={full:"1.0.7",major:1,minor:0,dot:7,codeName:"monochromatic-rainbow"},or=ot.cache={},ar=ot.expando="ng-"+(new Date).getTime(),sr=1,ur=e.document.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:function(e,t,n){e.attachEvent("on"+t,n)},cr=e.document.removeEventListener?function(e,t,n){e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent("on"+t,n)},lr=/([\:\-\_]+(.))/g,fr=/^moz([A-Z])/,pr=ot.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1;this.bind("DOMContentLoaded",n),ot(e).bind("load",n)},toString:function(){var e=[];return i(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return e>=0?Wn(this[e]):Wn(this[this.length+e])},length:0,push:Qn,sort:[].sort,splice:[].splice},hr={};i("multiple,selected,checked,disabled,readOnly,required".split(","),function(e){hr[Yn(e)]=e});var dr={};i("input,select,option,textarea,button,form".split(","),function(e){dr[Bn(e)]=!0}),i({data:ft,inheritedData:vt,scope:function(e){return vt(e,"$scope")},controller:gt,injector:function(e){return vt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:pt,css:function(e,t,r){if(t=rt(t),!v(r)){var i;return 8>=Jn&&(i=e.currentStyle&&e.currentStyle[t],""===i&&(i="auto")),i=i||e.style[t],8>=Jn&&(i=""===i?n:i),i}e.style[t]=r},attr:function(e,t,r){var i=Yn(t);if(hr[i]){if(!v(r))return e[t]||(e.attributes.getNamedItem(t)||h).specified?i:n;r?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(v(r))e.setAttribute(t,r);else if(e.getAttribute){var o=e.getAttribute(t,2);return null===o?n:o}},prop:function(e,t,r){return v(r)?(e[t]=r,n):e[t]},text:l(9>Jn?function(e,t){if(1==e.nodeType){if(g(t))return e.innerText;e.innerText=t}else{if(g(t))return e.nodeValue;e.nodeValue=t}}:function(e,t){return g(t)?e.textContent:(e.textContent=t,n)},{$dv:""}),val:function(e,t){return g(t)?e.value:(e.value=t,n)},html:function(e,t){if(g(t))return e.innerHTML;for(var n=0,r=e.childNodes;r.length>n;n++)st(r[n]);e.innerHTML=t}},function(e,t){ot.prototype[t]=function(t,r){var i,o;if((2==e.length&&e!==pt&&e!==gt?t:r)!==n){for(i=0;this.length>i;i++)e(this[i],t,r);return this}if(y(t)){for(i=0;this.length>i;i++)if(e===ft)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}return this.length?e(this[0],t,r):e.$dv}}),i({removeData:ct,dealoc:st,bind:function mr(e,n,r){var o=lt(e,"events"),a=lt(e,"handle");o||lt(e,"events",o={}),a||lt(e,"handle",a=$t(e,o)),i(n.split(" "),function(n){var i=o[n];if(!i){if("mouseenter"==n||"mouseleave"==n){var s=t.body.contains||t.body.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1};o[n]=[];var u={mouseleave:"mouseout",mouseenter:"mouseover"};mr(e,u[n],function(e){var t=this,r=e.relatedTarget;(!r||r!==t&&!s(t,r))&&a(e,n)})}else ur(e,n,a),o[n]=[];i=o[n]}i.push(r)})},unbind:ut,replaceWith:function(e,t){var n,r=e.parentNode;st(e),i(new ot(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return i(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.childNodes||[]},append:function(e,t){i(new ot(t),function(t){1===e.nodeType&&e.appendChild(t)})},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;i(new ot(t),function(t){n?e.insertBefore(t,n):(e.appendChild(t),n=t)})}},wrap:function(e,t){t=Wn(t)[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:function(e){st(e);var t=e.parentNode;t&&t.removeChild(e)},after:function(e,t){var n=e,r=e.parentNode;i(new ot(t),function(e){r.insertBefore(e,n.nextSibling),n=e})},addClass:dt,removeClass:ht,toggleClass:function(e,t,n){g(n)&&(n=!pt(e,t)),(n?dt:ht)(e,t)},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){if(e.nextElementSibling)return e.nextElementSibling;for(var t=e.nextSibling;null!=t&&1!==t.nodeType;)t=t.nextSibling;return t},find:function(e,t){return e.getElementsByTagName(t)},clone:at,triggerHandler:function(e,t){var n=(lt(e,"events")||{})[t];i(n,function(t){t.call(e,null)})}},function(e,t){ot.prototype[t]=function(t,r){for(var i,o=0;this.length>o;o++)i==n?(i=e(this[o],t,r),i!==n&&(i=Wn(i))):mt(i,e(this[o],t,r));return i==n?this:i}}),xt.prototype={put:function(e,t){this[bt(e)]=t},get:function(e){return this[bt(e)]},remove:function(e){var t=this[e=bt(e)];return delete this[e],t}},wt.prototype={push:function(e,t){var n=this[e=bt(e)];n?n.push(t):this[e]=[t]},shift:function(e){var t=this[e=bt(e)];return t?1==t.length?(delete this[e],t[0]):t.shift():n},peek:function(e){var t=this[bt(e)];return t?t[0]:n}};var gr=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,vr=/,/,yr=/^\s*(_?)(\S+?)\1\s*$/,$r=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,br="Non-assignable model expression: ";Dt.$inject=["$provide"];var xr=/^(x[\:\-_]|data[\:\-_])/i,wr=/^([^:]+):\/\/(\w+:{0,1}\w*@)?(\{?[\w\.-]*\}?)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,Cr=/^([^\?#]*)?(\?([^#]*))?(#(.*))?$/,Sr=Cr,Tr={http:80,https:443,ftp:21};Ut.prototype={$$replace:!1,absUrl:Vt("$$absUrl"),url:function(e,t){if(g(e))return this.$$url;var n=Cr.exec(e);return n[1]&&this.path(decodeURIComponent(n[1])),(n[2]||n[1])&&this.search(n[3]||""),this.hash(n[5]||"",t),this},protocol:Vt("$$protocol"),host:Vt("$$host"),port:Vt("$$port"),path:zt("$$path",function(e){return"/"==e.charAt(0)?e:"/"+e}),search:function(e,t){return g(e)?this.$$search:(v(t)?null===t?delete this.$$search[e]:this.$$search[e]=t:this.$$search=$(e)?B(e):e,this.$$compose(),this)},hash:zt("$$hash",d),replace:function(){return this.$$replace=!0,this}},Yt.prototype=p(Ut.prototype),Bt.prototype=p(Yt.prototype);var kr={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:h,"+":function(e,t,r,i){return r=r(e,t),i=i(e,t),v(r)?v(i)?r+i:r:v(i)?i:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(v(n)?n:0)-(v(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"^":function(e,t,n,r){return n(e,t)^r(e,t)},"=":h,"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"&":function(e,t,n,r){return n(e,t)&r(e,t)},"|":function(e,t,n,r){return r(e,t)(e,t,n(e,t))},"!":function(e,t,n){return!n(e,t)}},Er={n:"\n",f:"\f",r:"\r",t:"  ",v:"","'":"'",'"':'"'},Mr={},jr=e.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(n){}throw Error("This browser does not support XMLHttpRequest.")};$n.$inject=["$provide"],xn.$inject=["$locale"],wn.$inject=["$locale"];var Dr=".",Ar={yyyy:Tn("FullYear",4),yy:Tn("FullYear",2,0,!0),y:Tn("FullYear",1),MMMM:kn("Month"),MMM:kn("Month",!0),MM:Tn("Month",2,1),M:Tn("Month",1,1),dd:Tn("Date",2),d:Tn("Date",1),HH:Tn("Hours",2),H:Tn("Hours",1),hh:Tn("Hours",2,-12),h:Tn("Hours",1,-12),mm:Tn("Minutes",2),m:Tn("Minutes",1),ss:Tn("Seconds",2),s:Tn("Seconds",1),EEEE:kn("Day"),EEE:kn("Day",!0),a:Mn,Z:En},_r=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Nr=/^\d+$/;jn.$inject=["$locale"];var Or=m(Yn),qr=m(Bn);_n.$inject=["$parse"];var Pr=m({restrict:"E",compile:function(e,n){return 8>=Jn&&(n.href||n.name||n.$set("href",""),e.append(t.createComment("IE fix"))),function(e,t){t.bind("click",function(e){t.attr("href")||e.preventDefault()})}}}),Lr={};i(hr,function(e,t){var n=At("ng-"+t);Lr[n]=function(){return{priority:100,compile:function(){return function(e,r,i){e.$watch(i[n],function(e){i.$set(t,!!e)})}}}}}),i(["src","href"],function(e){var t=At("ng-"+e);Lr[t]=function(){return{priority:99,link:function(n,r,i){i.$observe(t,function(t){t&&(i.$set(e,t),Jn&&r.prop(e,i[e]))})}}}});var Rr={$addControl:h,$removeControl:h,$setValidity:h,$setDirty:h};On.$inject=["$element","$attrs","$scope"];var Hr=function(e){return["$timeout",function(t){var r={name:"form",restrict:"E",controller:On,compile:function(){return{pre:function(e,r,i,o){if(!i.action){var a=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1};ur(r[0],"submit",a),r.bind("$destroy",function(){t(function(){cr(r[0],"submit",a)},0,!1)})}var s=r.parent().controller("form"),u=i.name||i.ngForm;u&&(e[u]=o),s&&r.bind("$destroy",function(){s.$removeControl(o),u&&(e[u]=n),l(o,Rr)})}}}};return e?l(N(r),{restrict:"EAC"}):r}]},Fr=Hr(),Ir=Hr(!0),Ur=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Yr=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/,Br=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Vr={text:Pn,number:Ln,url:Rn,email:Hn,radio:Fn,checkbox:In,hidden:h,button:h,submit:h,reset:h},zr=["$browser","$sniffer",function(e,t){return{restrict:"E",require:"?ngModel",link:function(n,r,i,o){o&&(Vr[Yn(i.type)]||Vr.text)(n,r,i,o,t,e)}}}],Wr="ng-valid",Xr="ng-invalid",Gr="ng-pristine",Zr="ng-dirty",Jr=["$scope","$exceptionHandler","$attrs","$element","$parse",function(e,t,n,r,o){function a(e,t){t=t?"-"+Z(t,"-"):"",r.removeClass((e?Xr:Wr)+t).addClass((e?Wr:Xr)+t)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var s=o(n.ngModel),u=s.assign;if(!u)throw Error(br+n.ngModel+" ("+Y(r)+")");this.$render=h;var c=r.inheritedData("$formController")||Rr,l=0,f=this.$error={};r.addClass(Gr),a(!0),this.$setValidity=function(e,t){f[e]!==!t&&(t?(f[e]&&l--,l||(a(!0),this.$valid=!0,this.$invalid=!1)):(a(!1),this.$invalid=!0,this.$valid=!1,l++),f[e]=!t,a(t,e),c.$setValidity(e,t,this))},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,r.removeClass(Gr).addClass(Zr),c.$setDirty()),i(this.$parsers,function(e){n=e(n)}),this.$modelValue!==n&&(this.$modelValue=n,u(e,n),i(this.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}}))};var p=this;e.$watch(function(){var t=s(e);if(p.$modelValue!==t){var n=p.$formatters,r=n.length;for(p.$modelValue=t;r--;)t=n[r](t);p.$viewValue!==t&&(p.$viewValue=t,p.$render())}})}],Kr=function(){return{require:["ngModel","^?form"],controller:Jr,link:function(e,t,n,r){var i=r[0],o=r[1]||Rr;o.$addControl(i),t.bind("$destroy",function(){o.$removeControl(i)})}}},Qr=m({require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ei=function(){return{require:"?ngModel",link:function(e,t,r,i){if(i){r.required=!0;var o=function(e){return r.required&&(qn(e)||e===!1)?(i.$setValidity("required",!1),n):(i.$setValidity("required",!0),e)};i.$formatters.push(o),i.$parsers.unshift(o),r.$observe("required",function(){o(i.$viewValue)})}}}},ti=function(){return{require:"ngModel",link:function(e,t,r,o){var a=/\/(.*)\//.exec(r.ngList),s=a&&RegExp(a[1])||r.ngList||",",u=function(e){var t=[];return e&&i(e.split(s),function(e){e&&t.push(E(e))}),t};o.$parsers.push(u),o.$formatters.push(function(e){return w(e)?e.join(", "):n})}}},ni=/^(true|false|\d+)$/,ri=function(){return{priority:100,compile:function(e,t){return ni.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e,!1)})}}}},ii=Nn(function(e,t,r){t.addClass("ng-binding").data("$binding",r.ngBind),e.$watch(r.ngBind,function(e){t.text(e==n?"":e)})}),oi=["$interpolate",function(e){return function(t,n,r){var i=e(n.attr(r.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",i),r.$observe("ngBindTemplate",function(e){n.text(e)})}}],ai=[function(){return function(e,t,n){t.addClass("ng-binding").data("$binding",n.ngBindHtmlUnsafe),e.$watch(n.ngBindHtmlUnsafe,function(e){t.html(e||"")})}}],si=Un("",!0),ui=Un("Odd",0),ci=Un("Even",1),li=Nn({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),fi=[function(){return{scope:!0,controller:"@"}}],pi=["$sniffer",function(e){return{priority:1e3,compile:function(){e.csp=!0}}}],hi={};i("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave".split(" "),function(e){var t=At("ng-"+e);hi[t]=["$parse",function(n){return function(r,i,o){var a=n(o[t]);i.bind(Yn(e),function(e){r.$apply(function(){a(r,{$event:e})})})}}]});var di=Nn(function(e,t,n){t.bind("submit",function(){e.$apply(n.ngSubmit)})}),mi=["$http","$templateCache","$anchorScroll","$compile",function(e,t,n,r){return{restrict:"ECA",terminal:!0,compile:function(i,o){var a=o.ngInclude||o.src,s=o.onload||"",u=o.autoscroll;return function(i,o){var c,l=0,f=function(){c&&(c.$destroy(),c=null),o.html("")};i.$watch(a,function(a){var p=++l;a?e.get(a,{cache:t}).success(function(e){p===l&&(c&&c.$destroy(),c=i.$new(),o.html(e),r(o.contents())(c),!v(u)||u&&!i.$eval(u)||n(),c.$emit("$includeContentLoaded"),i.$eval(s))}).error(function(){p===l&&f()}):f()})}}}}],gi=Nn({compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),vi=Nn({terminal:!0,priority:1e3}),yi=["$locale","$interpolate",function(e,t){var n=/{}/g;return{restrict:"EA",link:function(r,o,a){var s=a.count,u=o.attr(a.$attr.when),c=a.offset||0,l=r.$eval(u),f={},p=t.startSymbol(),h=t.endSymbol();i(l,function(e,r){f[r]=t(e.replace(n,p+s+"-"+c+h))}),r.$watch(function(){var t=parseFloat(r.$eval(s));return isNaN(t)?"":(t in l||(t=e.pluralCat(t-c)),f[t](r,o,!0))},function(e){o.text(e)})}}}],$i=Nn({transclude:"element",priority:1e3,terminal:!0,compile:function(e,t,n){return function(e,t,r){var i,o,a,s,u=r.ngRepeat,c=u.match(/^\s*(.+)\s+in\s+(.*)\s*$/);if(!c)throw Error("Expected ngRepeat in form of '_item_ in _collection_' but got '"+u+"'.");if(i=c[1],o=c[2],c=i.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!c)throw Error("'item' in 'item in collection' should be identifier or (key, value) but got '"+i+"'.");a=c[3]||c[1],s=c[2];var l=new wt;e.$watch(function(e){var r,i,u,c,f,p,h,d,m=e.$eval(o),g=t,v=new wt;if(w(m))h=m||[];else{h=[];for(f in m)m.hasOwnProperty(f)&&"$"!=f.charAt(0)&&h.push(f);h.sort()}for(u=h.length-1,r=0,i=h.length;i>r;r++)f=m===h?r:h[r],p=m[f],d=l.shift(p),d?(c=d.scope,v.push(p,d),r===d.index?g=d.element:(d.index=r,g.after(d.element),g=d.element)):c=e.$new(),c[a]=p,s&&(c[s]=f),c.$index=r,c.$first=0===r,c.$last=r===u,c.$middle=!(c.$first||c.$last),d||n(c,function(e){g.after(e),d={scope:c,element:g=e,index:r},v.push(p,d)});for(f in l)if(l.hasOwnProperty(f))for(h=l[f];h.length;)p=h.pop(),p.element.remove(),p.scope.$destroy();l=v})}}}),bi=Nn(function(e,t,n){e.$watch(n.ngShow,function(e){t.css("display",U(e)?"":"none")})}),xi=Nn(function(e,t,n){e.$watch(n.ngHide,function(e){t.css("display",U(e)?"none":"")})}),wi=Nn(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&i(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Ci=m({restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,t,n,r){var i,o,a,s=n.ngSwitch||n.on;e.$watch(s,function(s){o&&(a.$destroy(),o.remove(),o=a=null),(i=r.cases["!"+s]||r.cases["?"])&&(e.$eval(n.change),a=e.$new(),i(a,function(e){o=e,t.append(e)}))})}}),Si=Nn({transclude:"element",priority:500,require:"^ngSwitch",compile:function(e,t,n){return function(e,r,i,o){o.cases["!"+t.ngSwitchWhen]=n}}}),Ti=Nn({transclude:"element",priority:500,require:"^ngSwitch",compile:function(e,t,n){return function(e,t,r,i){i.cases["?"]=n}}}),ki=Nn({controller:["$transclude","$element",function(e,t){e(function(e){t.append(e)})}]}),Ei=["$http","$templateCache","$route","$anchorScroll","$compile","$controller",function(e,t,n,r,i,o){return{restrict:"ECA",terminal:!0,link:function(e,t,a){function s(){l&&(l.$destroy(),l=null)}function u(){t.html(""),s()}function c(){var a=n.current&&n.current.locals,c=a&&a.$template;if(c){t.html(c),s();var p,h=i(t.contents()),d=n.current;l=d.scope=e.$new(),d.controller&&(a.$scope=l,p=o(d.controller,a),t.children().data("$ngControllerController",p)),h(l),l.$emit("$viewContentLoaded"),l.$eval(f),r()}else u()}var l,f=a.onload||"";e.$on("$routeChangeSuccess",c),c()}}}],Mi=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],ji=m({terminal:!0}),Di=["$compile","$parse",function(e,r){var a=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/,s={$setViewValue:h};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,i,o=this,a={},u=s;o.databound=n.ngModel,o.init=function(e,t,n){u=e,r=t,i=n},o.addOption=function(t){a[t]=!0,u.$viewValue==t&&(e.val(t),i.parent()&&i.remove())},o.removeOption=function(e){this.hasOption(e)&&(delete a[e],u.$viewValue==e&&this.renderUnknownOption(e))},o.renderUnknownOption=function(t){var n="? "+bt(t)+" ?";i.val(n),e.prepend(i),e.val(n),i.prop("selected",!0)},o.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",function(){o.renderUnknownOption=h})}],link:function(s,u,c,l){function f(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(S.parent()&&S.remove(),t.val(e),""===e&&d.prop("selected",!0)):g(e)&&d?t.val(""):r.renderUnknownOption(e)},t.bind("change",function(){e.$apply(function(){S.parent()&&S.remove(),n.$setViewValue(t.val())})})}function p(e,t,n){var r;n.$render=function(){var e=new xt(n.$viewValue);i(t.find("option"),function(t){t.selected=v(e.get(t.value))})},e.$watch(function(){q(r,n.$viewValue)||(r=N(n.$viewValue),n.$render())}),t.bind("change",function(){e.$apply(function(){var e=[];i(t.find("option"),function(t){t.selected&&e.push(t.value)}),n.$setViewValue(e)})})}function h(t,i,s){function u(){var e,r,a,u,c,v,y,b,S,T,k,E,M,j,D={"":[]},A=[""],_=s.$modelValue,N=m(t)||[],O=p?o(N):N,q={},P=!1;for($&&(P=new xt(_)),T=0;b=O.length,b>T;T++)q[f]=N[p?q[p]=O[T]:T],e=h(t,q)||"",(r=D[e])||(r=D[e]=[],A.push(e)),$?k=P.remove(d(t,q))!=n:(k=_===d(t,q),P=P||k),j=l(t,q),j=j===n?"":j,r.push({id:p?O[T]:T,label:j,selected:k});for($||(x||null===_?D[""].unshift({id:"",label:"",selected:!P}):P||D[""].unshift({id:"?",label:"",selected:!0})),S=0,y=A.length;y>S;S++){for(e=A[S],r=D[e],S>=g.length?(u={element:C.clone().attr("label",e),label:r.label},c=[u],g.push(c),i.append(u.element)):(c=g[S],u=c[0],u.label!=e&&u.element.attr("label",u.label=e)),E=null,T=0,b=r.length;b>T;T++)a=r[T],(v=c[T+1])?(E=v.element,v.label!==a.label&&E.text(v.label=a.label),v.id!==a.id&&E.val(v.id=a.id),E[0].selected!==a.selected&&E.prop("selected",v.selected=a.selected)):(""===a.id&&x?M=x:(M=w.clone()).val(a.id).attr("selected",a.selected).text(a.label),c.push(v={element:M,label:a.label,id:a.id,selected:a.selected}),E?E.after(M):u.element.append(M),E=M);for(T++;c.length>T;)c.pop().element.remove()}for(;g.length>S;)g.pop()[0].element.remove()}var c;if(!(c=b.match(a)))throw Error("Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '"+b+"'.");var l=r(c[2]||c[1]),f=c[4]||c[6],p=c[5],h=r(c[3]||""),d=r(c[2]?c[1]:f),m=r(c[7]),g=[[{element:i,label:""}]];x&&(e(x)(t),x.removeClass("ng-scope"),x.remove()),i.html(""),i.bind("change",function(){t.$apply(function(){var e,r,o,a,u,c,l,h,v=m(t)||[],y={};if($)for(o=[],c=0,h=g.length;h>c;c++)for(e=g[c],u=1,l=e.length;l>u;u++)(a=e[u].element)[0].selected&&(r=a.val(),p&&(y[p]=r),y[f]=v[r],o.push(d(t,y)));
else r=i.val(),"?"==r?o=n:""==r?o=null:(y[f]=v[r],p&&(y[p]=r),o=d(t,y));s.$setViewValue(o)})}),s.$render=u,t.$watch(u)}if(l[1]){for(var d,m=l[0],y=l[1],$=c.multiple,b=c.ngOptions,x=!1,w=Wn(t.createElement("option")),C=Wn(t.createElement("optgroup")),S=w.clone(),T=0,k=u.children(),E=k.length;E>T;T++)if(""==k[T].value){d=x=k.eq(T);break}if(m.init(y,x,S),$&&(c.required||c.ngRequired)){var M=function(e){return y.$setValidity("required",!c.required||e&&e.length),e};y.$parsers.push(M),y.$formatters.unshift(M),c.$observe("required",function(){M(y.$viewValue)})}b?h(s,u,y):$?p(s,u,y):f(s,u,y,m)}}}}],Ai=["$interpolate",function(e){var t={addOption:h,removeOption:h};return{restrict:"E",priority:100,compile:function(n,r){if(g(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.databound?n.prop("selected",!1):s=t,i?e.$watch(i,function(e,t){r.$set("value",e),e!==t&&s.removeOption(t),s.addOption(e)}):s.addOption(r.value),n.bind("$destroy",function(){s.removeOption(r.value)})}}}}],_i=m({restrict:"E",terminal:!0});J(),tt(tr),Wn(t).ready(function(){X(t,G)})}(window,document),angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}</style>'),define("angular",function(){}),define("app",["angular"],function(){var e=angular.module("app",["mobile-navigate","angularMoment"]).value("$anchorScroll",angular.noop).config(["$routeProvider",function(e){e.when("/",{templateUrl:"views/news.html",controller:"NewsCtrl"}).when("/menu",{templateUrl:"views/menu.html"}).when("/content",{templateUrl:"views/content.html"}).when("/sales",{templateUrl:"views/sales.html"}).when("/features",{templateUrl:"views/features.html"}).when("/category/:categoryID",{templateUrl:"views/category.html",controller:"CategoryCtrl"}).when("/rest/:storeCatID",{templateUrl:"views/rest.html",controller:"RestCtrl"}).when("/store/:storeID",{templateUrl:"views/store.html",controller:"StoreCtrl"}).when("/desc/:storeID",{templateUrl:"views/desc.html",controller:"DescCtrl"}).when("/sales",{templateUrl:"views/sales.html",controller:"SalesCtrl"}).when("/features",{templateUrl:"views/features.html"}).when("/about",{templateUrl:"views/about.html",controller:"AboutCtrl"}).when("/location",{templateUrl:"views/location.html"}).when("/wifi",{templateUrl:"views/wifi.html"}).when("/deltamap",{templateUrl:"views/deltamap.html",controller:"MapCtrl"}).when("/single/:id",{templateUrl:"views/single_news.html",controller:"SingleCtrl"}).otherwise({redirectTo:"/"})}]);return e.controller("MainCtrl",["$scope","$navigate","$location",function(e,t,n){e.$navigate=t;var r=n.search();t.go(n.path(),"none").search(r)}]),e.config(["$httpProvider",function(e){delete e.defaults.headers.common["X-Requested-With"]}]),e.directive("ngTap",function(){var e=!!("ontouchstart"in window);return function(t,n,r){if(e){var i=!1;n.bind("touchstart",function(){i=!0}),n.bind("touchmove",function(){i=!1}),n.bind("touchend",function(){i&&t.$apply(r.ngTap)})}else n.bind("click",function(){t.$apply(r.ngTap)})}}),e.directive("onKeyup",function(){return function(e,t,n){t.bind("keyup",function(){e.$apply(n.onKeyup)})}}),e}),function(e,t){function n(e){var t=e.length,n=ot.type(e);return ot.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=dt[e]={};return ot.each(e.match(st)||[],function(e,n){t[n]=!0}),t}function i(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ot.expando+Math.random()}function o(e,n,r){var i;if(r===t&&1===e.nodeType)if(i="data-"+n.replace(yt,"-$1").toLowerCase(),r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:vt.test(r)?JSON.parse(r):r}catch(o){}mt.set(e,n,r)}else r=t;return r}function a(){return!0}function s(){return!1}function u(){try{return V.activeElement}catch(e){}}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e,t,n){if(ot.isFunction(t))return ot.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ot.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Mt.test(t))return ot.filter(t,e,n);t=ot.filter(t,e)}return ot.grep(e,function(e){return tt.call(t,e)>=0!==n})}function f(e,t){return ot.nodeName(e,"table")&&ot.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function p(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Ht.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function d(e,t){for(var n=e.length,r=0;n>r;r++)gt.set(e[r],"globalEval",!t||gt.get(t[r],"globalEval"))}function m(e,t){var n,r,i,o,a,s,u,c;if(1===t.nodeType){if(gt.hasData(e)&&(o=gt.access(e),a=gt.set(t,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)ot.event.add(t,i,c[i][n])}mt.hasData(e)&&(s=mt.access(e),u=ot.extend({},s),mt.set(t,u))}}function g(e,n){var r=e.getElementsByTagName?e.getElementsByTagName(n||"*"):e.querySelectorAll?e.querySelectorAll(n||"*"):[];return n===t||n&&ot.nodeName(e,n)?ot.merge([e],r):r}function v(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Pt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function y(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Qt.length;i--;)if(t=Qt[i]+n,t in e)return t;return r}function $(e,t){return e=t||e,"none"===ot.css(e,"display")||!ot.contains(e.ownerDocument,e)}function b(t){return e.getComputedStyle(t,null)}function x(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=gt.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&$(r)&&(o[a]=gt.access(r,"olddisplay",T(r.nodeName)))):o[a]||(i=$(r),(n&&"none"!==n||!i)&&gt.set(r,"olddisplay",i?n:ot.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function w(e,t,n){var r=zt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function C(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ot.css(e,n+Kt[o],!0,i)),r?("content"===n&&(a-=ot.css(e,"padding"+Kt[o],!0,i)),"margin"!==n&&(a-=ot.css(e,"border"+Kt[o]+"Width",!0,i))):(a+=ot.css(e,"padding"+Kt[o],!0,i),"padding"!==n&&(a+=ot.css(e,"border"+Kt[o]+"Width",!0,i)));return a}function S(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=b(e),a=ot.support.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Ut(e,t,o),(0>i||null==i)&&(i=e.style[t]),Wt.test(i))return i;r=a&&(ot.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+C(e,t,n||(a?"border":"content"),r,o)+"px"}function T(e){var t=V,n=Gt[e];return n||(n=k(e,t),"none"!==n&&n||(Yt=(Yt||ot("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Yt[0].contentWindow||Yt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=k(e,t),Yt.detach()),Gt[e]=n),n}function k(e,t){var n=ot(t.createElement(e)).appendTo(t.body),r=ot.css(n[0],"display");return n.remove(),r}function E(e,t,n,r){var i;if(ot.isArray(t))ot.each(t,function(t,i){n||tn.test(e)?r(e,i):E(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==ot.type(t))r(e,t);else for(i in t)E(e+"["+i+"]",t[i],n,r)}function M(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(st)||[];if(ot.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function j(e,n,r,i){function o(u){var c;return a[u]=!0,ot.each(e[u]||[],function(e,u){var l=u(n,r,i);return"string"!=typeof l||s||a[l]?s?!(c=l):t:(n.dataTypes.unshift(l),o(l),!1)}),c}var a={},s=e===$n;return o(n.dataTypes[0])||!a["*"]&&o("*")}function D(e,n){var r,i,o=ot.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);return i&&ot.extend(!0,e,i),e}function A(e,n,r){for(var i,o,a,s,u=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("Content-Type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){c.unshift(o);break}if(c[0]in r)a=c[0];else{for(o in r){if(!c[0]||e.converters[o+" "+c[0]]){a=o;break}s||(s=o)}a=a||s}return a?(a!==c[0]&&c.unshift(a),r[a]):t}function _(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=c[u+" "+o]||c["* "+o],!a)for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[i]:c[i]!==!0&&(o=s[0],l.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function N(){return setTimeout(function(){Mn=t}),Mn=ot.now()}function O(e,t,n){for(var r,i=(On[t]||[]).concat(On["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function q(e,t,n){var r,i,o=0,a=Nn.length,s=ot.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Mn||N(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,o=1-r,a=0,u=c.tweens.length;u>a;a++)c.tweens[a].run(o);return s.notifyWith(e,[c,o,n]),1>o&&u?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:ot.extend({},t),opts:ot.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Mn||N(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ot.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),l=c.props;for(P(l,c.opts.specialEasing);a>o;o++)if(r=Nn[o].call(c,e,l,c.opts))return r;return ot.map(l,O,c),ot.isFunction(c.opts.start)&&c.opts.start.call(e,c),ot.fx.timer(ot.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function P(e,t){var n,r,i,o,a;for(n in e)if(r=ot.camelCase(n),i=t[r],o=e[n],ot.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=ot.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function L(e,n,r){var i,o,a,s,u,c,l=this,f={},p=e.style,h=e.nodeType&&$(e),d=gt.get(e,"fxshow");r.queue||(u=ot._queueHooks(e,"fx"),null==u.unqueued&&(u.unqueued=0,c=u.empty.fire,u.empty.fire=function(){u.unqueued||c()}),u.unqueued++,l.always(function(){l.always(function(){u.unqueued--,ot.queue(e,"fx").length||u.empty.fire()})})),1===e.nodeType&&("height"in n||"width"in n)&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===ot.css(e,"display")&&"none"===ot.css(e,"float")&&(p.display="inline-block")),r.overflow&&(p.overflow="hidden",l.always(function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]}));for(i in n)if(o=n[i],Dn.exec(o)){if(delete n[i],a=a||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!d||d[i]===t)continue;h=!0}f[i]=d&&d[i]||ot.style(e,i)}if(!ot.isEmptyObject(f)){d?"hidden"in d&&(h=d.hidden):d=gt.access(e,"fxshow",{}),a&&(d.hidden=!h),h?ot(e).show():l.done(function(){ot(e).hide()}),l.done(function(){var t;gt.remove(e,"fxshow");for(t in f)ot.style(e,t,f[t])});for(i in f)s=O(h?d[i]:0,i,l),i in d||(d[i]=s.start,h&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function R(e,t,n,r,i){return new R.prototype.init(e,t,n,r,i)}function H(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Kt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function F(e){return ot.isWindow(e)?e:9===e.nodeType&&e.defaultView}var I,U,Y=typeof t,B=e.location,V=e.document,z=V.documentElement,W=e.jQuery,X=e.$,G={},Z=[],J="2.0.2",K=Z.concat,Q=Z.push,et=Z.slice,tt=Z.indexOf,nt=G.toString,rt=G.hasOwnProperty,it=J.trim,ot=function(e,t){return new ot.fn.init(e,t,I)},at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,st=/\S+/g,ut=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lt=/^-ms-/,ft=/-([\da-z])/gi,pt=function(e,t){return t.toUpperCase()},ht=function(){V.removeEventListener("DOMContentLoaded",ht,!1),e.removeEventListener("load",ht,!1),ot.ready()};ot.fn=ot.prototype={jquery:J,constructor:ot,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:ut.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof ot?n[0]:n,ot.merge(this,ot.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:V,!0)),ct.test(i[1])&&ot.isPlainObject(n))for(i in n)ot.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return o=V.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=V,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ot.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),ot.makeArray(e,this))},selector:"",length:0,toArray:function(){return et.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=ot.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ot.each(this,e,t)},ready:function(e){return ot.ready.promise().done(e),this},slice:function(){return this.pushStack(et.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(ot.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:Q,sort:[].sort,splice:[].splice},ot.fn.init.prototype=ot.fn,ot.extend=ot.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},u=2),"object"==typeof s||ot.isFunction(s)||(s={}),c===u&&(s=this,--u);c>u;u++)if(null!=(e=arguments[u]))for(n in e)r=s[n],i=e[n],s!==i&&(l&&i&&(ot.isPlainObject(i)||(o=ot.isArray(i)))?(o?(o=!1,a=r&&ot.isArray(r)?r:[]):a=r&&ot.isPlainObject(r)?r:{},s[n]=ot.extend(l,a,i)):i!==t&&(s[n]=i));return s},ot.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===ot&&(e.$=X),t&&e.jQuery===ot&&(e.jQuery=W),ot},isReady:!1,readyWait:1,holdReady:function(e){e?ot.readyWait++:ot.ready(!0)},ready:function(e){(e===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,e!==!0&&--ot.readyWait>0||(U.resolveWith(V,[ot]),ot.fn.trigger&&ot(V).trigger("ready").off("ready")))},isFunction:function(e){return"function"===ot.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?G[nt.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==ot.type(e)||e.nodeType||ot.isWindow(e))return!1;try{if(e.constructor&&!rt.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||V;var r=ct.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ot.buildFragment([e],t,i),i&&ot(i).remove(),ot.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var n,r;if(!e||"string"!=typeof e)return null;try{r=new DOMParser,n=r.parseFromString(e,"text/xml")}catch(i){n=t}return(!n||n.getElementsByTagName("parsererror").length)&&ot.error("Invalid XML: "+e),n},noop:function(){},globalEval:function(e){var t,n=eval;e=ot.trim(e),e&&(1===e.indexOf("use strict")?(t=V.createElement("script"),t.text=e,V.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(lt,"ms-").replace(ft,pt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;a>o&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;a>o&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;return e},trim:function(e){return null==e?"":it.call(e)},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?ot.merge(r,"string"==typeof e?[e]:e):Q.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:tt.call(t,e,n)},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else for(;n[o]!==t;)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,s=n(e),u=[];if(s)for(;a>o;o++)i=t(e[o],o,r),null!=i&&(u[u.length]=i);else for(o in e)i=t(e[o],o,r),null!=i&&(u[u.length]=i);return K.apply([],u)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(r=e[n],n=e,e=r),ot.isFunction(e)?(i=et.call(arguments,2),o=function(){return e.apply(n||this,i.concat(et.call(arguments)))},o.guid=e.guid=e.guid||ot.guid++,o):t},access:function(e,n,r,i,o,a,s){var u=0,c=e.length,l=null==r;if("object"===ot.type(r)){o=!0;for(u in r)ot.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,ot.isFunction(i)||(s=!0),l&&(s?(n.call(e,i),n=null):(l=n,n=function(e,t,n){return l.call(ot(e),n)})),n))for(;c>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:l?n.call(e):c?n(e[0],r):a},now:Date.now,swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),ot.ready.promise=function(t){return U||(U=ot.Deferred(),"complete"===V.readyState?setTimeout(ot.ready):(V.addEventListener("DOMContentLoaded",ht,!1),e.addEventListener("load",ht,!1))),U.promise(t)},ot.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){G["[object "+t+"]"]=t.toLowerCase()}),I=ot(V),function(e,t){function n(e,t,n,r){var i,o,a,s,u,c,l,f,p,h;if((t?t.ownerDocument||t:B)!==P&&q(t),t=t||P,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(R&&!r){if(i=Ct.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&U(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return it.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&E.getElementsByClassName&&t.getElementsByClassName)return it.apply(n,t.getElementsByClassName(a)),n}if(E.qsa&&(!H||!H.test(e))){if(f=l=Y,p=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=m(e),(l=t.getAttribute("id"))?f=l.replace(kt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=c.length;u--;)c[u]=f+g(c[u]);p=vt.test(e)&&t.parentNode||t,h=c.join(",")}if(h)try{return it.apply(n,p.querySelectorAll(h)),n}catch(d){}finally{l||t.removeAttribute("id")}}}return S(e.replace(dt,"$1"),t,n,r)}function r(e){return wt.test(e+"")}function i(){function e(n,r){return t.push(n+=" ")>j.cacheLength&&delete e[t.shift()],e[n]=r}var t=[];return e}function o(e){return e[Y]=!0,e}function a(e){var t=P.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t,n){e=e.split("|");for(var r,i=e.length,o=n?null:t;i--;)(r=j.attrHandle[e[i]])&&r!==t||(j.attrHandle[e[i]]=o)}function u(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:e[t]===!0?t.toLowerCase():null}function c(e,t){return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}function l(e){return"input"===e.nodeName.toLowerCase()?e.defaultValue:t}function f(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Q)-(~e.sourceIndex||Q);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function p(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function h(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return o(function(t){return t=+t,o(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function m(e,t){var r,i,o,a,s,u,c,l=X[e+" "];if(l)return t?0:l.slice(0);for(s=e,u=[],c=j.preFilter;s;){(!r||(i=mt.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=gt.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(dt," ")}),s=s.slice(r.length));for(a in j.filter)!(i=xt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return t?s.length:s?n.error(e):X(e,u).slice(0)}function g(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function v(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=z++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,c,l=V+" "+o;if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(c=t[Y]||(t[Y]={}),(u=c[r])&&u[0]===l){if((s=u[1])===!0||s===M)return s===!0}else if(u=c[r]=[l],u[1]=e(t,n,a)||M,u[1]===!0)return!0}}function y(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function $(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),c&&t.push(s));return a}function b(e,t,n,r,i,a){return r&&!r[Y]&&(r=b(r)),i&&!i[Y]&&(i=b(i,a)),o(function(o,a,s,u){var c,l,f,p=[],h=[],d=a.length,m=o||C(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:$(m,p,e,s,u),v=n?i||(o?e:d||r)?[]:a:g;if(n&&n(g,v,s,u),r)for(c=$(v,h),r(c,[],s,u),l=c.length;l--;)(f=c[l])&&(v[h[l]]=!(g[h[l]]=f));if(o){if(i||e){if(i){for(c=[],l=v.length;l--;)(f=v[l])&&c.push(g[l]=f);i(null,v=[],c,u)}for(l=v.length;l--;)(f=v[l])&&(c=i?st.call(o,f):p[l])>-1&&(o[c]=!(a[c]=f))}}else v=$(v===a?v.splice(d,v.length):v),i?i(null,a,v,u):it.apply(a,v)})}function x(e){for(var t,n,r,i=e.length,o=j.relative[e[0].type],a=o||j.relative[" "],s=o?1:0,u=v(function(e){return e===t},a,!0),c=v(function(e){return st.call(t,e)>-1},a,!0),l=[function(e,n,r){return!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):c(e,n,r))}];i>s;s++)if(n=j.relative[e[s].type])l=[v(y(l),n)];else{if(n=j.filter[e[s].type].apply(null,e[s].matches),n[Y]){for(r=++s;i>r&&!j.relative[e[r].type];r++);return b(s>1&&y(l),s>1&&g(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(dt,"$1"),n,r>s&&x(e.slice(s,r)),i>r&&x(e=e.slice(r)),i>r&&g(e))}l.push(n)}return y(l)}function w(e,t){var r=0,i=t.length>0,a=e.length>0,s=function(o,s,u,c,l){var f,p,h,d=[],m=0,g="0",v=o&&[],y=null!=l,b=N,x=o||a&&j.find.TAG("*",l&&s.parentNode||s),w=V+=null==b?1:Math.random()||.1;for(y&&(N=s!==P&&s,M=r);null!=(f=x[g]);g++){if(a&&f){for(p=0;h=e[p++];)if(h(f,s,u)){c.push(f);break}y&&(V=w,M=++r)}i&&((f=!h&&f)&&m--,o&&v.push(f))}if(m+=g,i&&g!==m){for(p=0;h=t[p++];)h(v,d,s,u);if(o){if(m>0)for(;g--;)v[g]||d[g]||(d[g]=nt.call(c));d=$(d)}it.apply(c,d),y&&!o&&d.length>0&&m+t.length>1&&n.uniqueSort(c)}return y&&(V=w,N=b),v};return i?o(s):s}function C(e,t,r){for(var i=0,o=t.length;o>i;i++)n(e,t[i],r);return r}function S(e,t,n,r){var i,o,a,s,u,c=m(e);if(!r&&1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&E.getById&&9===t.nodeType&&R&&j.relative[o[1].type]){if(t=(j.find.ID(a.matches[0].replace(Et,Mt),t)||[])[0],!t)return n;e=e.slice(o.shift().value.length)}for(i=xt.needsContext.test(e)?0:o.length;i--&&(a=o[i],!j.relative[s=a.type]);)if((u=j.find[s])&&(r=u(a.matches[0].replace(Et,Mt),vt.test(o[0].type)&&t.parentNode||t))){if(o.splice(i,1),e=r.length&&g(o),!e)return it.apply(n,r),n;break}}return _(e,c)(r,t,!R,n,vt.test(e)),n}function T(){}var k,E,M,j,D,A,_,N,O,q,P,L,R,H,F,I,U,Y="sizzle"+-new Date,B=e.document,V=0,z=0,W=i(),X=i(),G=i(),Z=!1,J=function(){return 0},K=typeof t,Q=1<<31,et={}.hasOwnProperty,tt=[],nt=tt.pop,rt=tt.push,it=tt.push,at=tt.slice,st=tt.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},ut="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ct="[\\x20\\t\\r\\n\\f]",lt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ft=lt.replace("w","w#"),pt="\\["+ct+"*("+lt+")"+ct+"*(?:([*^$|!~]?=)"+ct+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ft+")|)|)"+ct+"*\\]",ht=":("+lt+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+pt.replace(3,8)+")*)|.*)\\)|)",dt=RegExp("^"+ct+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ct+"+$","g"),mt=RegExp("^"+ct+"*,"+ct+"*"),gt=RegExp("^"+ct+"*([>+~]|"+ct+")"+ct+"*"),vt=RegExp(ct+"*[+~]"),yt=RegExp("="+ct+"*([^\\]'\"]*)"+ct+"*\\]","g"),$t=RegExp(ht),bt=RegExp("^"+ft+"$"),xt={ID:RegExp("^#("+lt+")"),CLASS:RegExp("^\\.("+lt+")"),TAG:RegExp("^("+lt.replace("w","w*")+")"),ATTR:RegExp("^"+pt),PSEUDO:RegExp("^"+ht),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ct+"*(even|odd|(([+-]|)(\\d*)n|)"+ct+"*(?:([+-]|)"+ct+"*(\\d+)|))"+ct+"*\\)|)","i"),bool:RegExp("^(?:"+ut+")$","i"),needsContext:RegExp("^"+ct+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ct+"*((?:-\\d)?\\d*)"+ct+"*\\)|)(?=[^-]|$)","i")},wt=/^[^{]+\{\s*\[native \w/,Ct=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,St=/^(?:input|select|textarea|button)$/i,Tt=/^h\d$/i,kt=/'|\\/g,Et=RegExp("\\\\([\\da-f]{1,6}"+ct+"?|("+ct+")|.)","ig"),Mt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{it.apply(tt=at.call(B.childNodes),B.childNodes),tt[B.childNodes.length].nodeType}catch(jt){it={apply:tt.length?function(e,t){rt.apply(e,at.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}A=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},E=n.support={},q=n.setDocument=function(e){var n=e?e.ownerDocument||e:B,i=n.parentWindow;return n!==P&&9===n.nodeType&&n.documentElement?(P=n,L=n.documentElement,R=!A(n),i&&i.frameElement&&i.attachEvent("onbeforeunload",function(){q()}),E.attributes=a(function(e){return e.innerHTML="<a href='#'></a>",s("type|href|height|width",c,"#"===e.firstChild.getAttribute("href")),s(ut,u,null==e.getAttribute("disabled")),e.className="i",!e.getAttribute("className")}),E.input=a(function(e){return e.innerHTML="<input>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}),s("value",l,E.attributes&&E.input),E.getElementsByTagName=a(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),E.getElementsByClassName=a(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),E.getById=a(function(e){return L.appendChild(e).id=Y,!n.getElementsByName||!n.getElementsByName(Y).length}),E.getById?(j.find.ID=function(e,t){if(typeof t.getElementById!==K&&R){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},j.filter.ID=function(e){var t=e.replace(Et,Mt);return function(e){return e.getAttribute("id")===t}}):(delete j.find.ID,j.filter.ID=function(e){var t=e.replace(Et,Mt);return function(e){var n=typeof e.getAttributeNode!==K&&e.getAttributeNode("id");return n&&n.value===t}}),j.find.TAG=E.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==K?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},j.find.CLASS=E.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==K&&R?n.getElementsByClassName(e):t},F=[],H=[],(E.qsa=r(n.querySelectorAll))&&(a(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||H.push("\\["+ct+"*(?:value|"+ut+")"),e.querySelectorAll(":checked").length||H.push(":checked")}),a(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&H.push("[*^$]="+ct+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(E.matchesSelector=r(I=L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&a(function(e){E.disconnectedMatch=I.call(e,"div"),I.call(e,"[s!='']:x"),F.push("!=",ht)}),H=H.length&&RegExp(H.join("|")),F=F.length&&RegExp(F.join("|")),U=r(L.contains)||L.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E.sortDetached=a(function(e){return 1&e.compareDocumentPosition(n.createElement("div"))}),J=L.compareDocumentPosition?function(e,t){if(e===t)return Z=!0,0;var r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return r?1&r||!E.sortDetached&&t.compareDocumentPosition(e)===r?e===n||U(B,e)?-1:t===n||U(B,t)?1:O?st.call(O,e)-st.call(O,t):0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],u=[t];if(e===t)return Z=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:O?st.call(O,e)-st.call(O,t):0;if(o===a)return f(e,t);for(r=e;r=r.parentNode;)s.unshift(r);for(r=t;r=r.parentNode;)u.unshift(r);for(;s[i]===u[i];)i++;return i?f(s[i],u[i]):s[i]===B?-1:u[i]===B?1:0},n):P},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==P&&q(e),t=t.replace(yt,"='$1']"),!(!E.matchesSelector||!R||F&&F.test(t)||H&&H.test(t)))try{var r=I.call(e,t);if(r||E.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return n(t,P,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!==P&&q(e),U(e,t)},n.attr=function(e,n){(e.ownerDocument||e)!==P&&q(e);var r=j.attrHandle[n.toLowerCase()],i=r&&et.call(j.attrHandle,n.toLowerCase())?r(e,n,!R):t;return i===t?E.attributes||!R?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null:i},n.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var t,n=[],r=0,i=0;if(Z=!E.detectDuplicates,O=!E.sortStable&&e.slice(0),e.sort(J),Z){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return e},D=n.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=D(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=D(t);return n},j=n.selectors={cacheLength:50,createPseudo:o,match:xt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Et,Mt),e[3]=(e[4]||e[5]||"").replace(Et,Mt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return xt.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&$t.test(r)&&(n=m(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Et,Mt).toLowerCase();return"*"===e?function(){return!0
}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=RegExp("(^|"+ct+")"+e+"("+ct+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==K&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(i){var o=n.attr(i,e);return null==o?"!="===t:t?(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o+" ").indexOf(r)>-1:"|="===t?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,p,h,d,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=m="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&y){for(l=g[Y]||(g[Y]={}),c=l[e]||[],h=c[0]===V&&c[1],p=c[0]===V&&c[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(p=h=0)||d.pop();)if(1===f.nodeType&&++p&&f===t){l[e]=[V,h,p];break}}else if(y&&(c=(t[Y]||(t[Y]={}))[e])&&c[0]===V)p=c[1];else for(;(f=++h&&f&&f[m]||(p=h=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++p||(y&&((f[Y]||(f[Y]={}))[e]=[V,p]),f!==t)););return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(e,t){var r,i=j.pseudos[e]||j.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return i[Y]?i(t):i.length>1?(r=[e,e,"",t],j.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)r=st.call(e,o[a]),e[r]=!(n[r]=o[a])}):function(e){return i(e,0,r)}):i}},pseudos:{not:o(function(e){var t=[],n=[],r=_(e.replace(dt,"$1"));return r[Y]?o(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:o(function(e){return function(t){return n(e,t).length>0}}),contains:o(function(e){return function(t){return(t.textContent||t.innerText||D(t)).indexOf(e)>-1}}),lang:o(function(e){return bt.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(Et,Mt).toLowerCase(),function(t){var n;do if(n=R?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!j.pseudos.empty(e)},header:function(e){return Tt.test(e.nodeName)},input:function(e){return St.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:d(function(){return[0]}),last:d(function(e,t){return[t-1]}),eq:d(function(e,t,n){return[0>n?n+t:n]}),even:d(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:d(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:d(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:d(function(e,t,n){for(var r=0>n?n+t:n;t>++r;)e.push(r);return e})}};for(k in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})j.pseudos[k]=p(k);for(k in{submit:!0,reset:!0})j.pseudos[k]=h(k);_=n.compile=function(e,t){var n,r=[],i=[],o=G[e+" "];if(!o){for(t||(t=m(e)),n=t.length;n--;)o=x(t[n]),o[Y]?r.push(o):i.push(o);o=G(e,w(i,r))}return o},j.pseudos.nth=j.pseudos.eq,T.prototype=j.filters=j.pseudos,j.setFilters=new T,E.sortStable=Y.split("").sort(J).join("")===Y,q(),[0,0].sort(J),E.detectDuplicates=Z,ot.find=n,ot.expr=n.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=n.uniqueSort,ot.text=n.getText,ot.isXMLDoc=n.isXML,ot.contains=n.contains}(e);var dt={};ot.Callbacks=function(e){e="string"==typeof e?dt[e]||r(e):ot.extend({},e);var n,i,o,a,s,u,c=[],l=!e.once&&[],f=function(t){for(n=e.memory&&t,i=!0,u=a||0,a=0,s=c.length,o=!0;c&&s>u;u++)if(c[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}o=!1,c&&(l?l.length&&f(l.shift()):n?c=[]:p.disable())},p={add:function(){if(c){var t=c.length;(function r(t){ot.each(t,function(t,n){var i=ot.type(n);"function"===i?e.unique&&p.has(n)||c.push(n):n&&n.length&&"string"!==i&&r(n)})})(arguments),o?s=c.length:n&&(a=t,f(n))}return this},remove:function(){return c&&ot.each(arguments,function(e,t){for(var n;(n=ot.inArray(t,c,n))>-1;)c.splice(n,1),o&&(s>=n&&s--,u>=n&&u--)}),this},has:function(e){return e?ot.inArray(e,c)>-1:!(!c||!c.length)},empty:function(){return c=[],s=0,this},disable:function(){return c=l=n=t,this},disabled:function(){return!c},lock:function(){return l=t,n||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!c||i&&!l||(o?l.push(t):f(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},ot.extend({Deferred:function(e){var t=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ot.Deferred(function(n){ot.each(t,function(t,o){var a=o[0],s=ot.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&ot.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ot.extend(e,r):r}},i={};return r.pipe=r.then,ot.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=et.call(arguments),a=o.length,s=1!==a||e&&ot.isFunction(e.promise)?a:0,u=1===s?e:ot.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?et.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=Array(a),n=Array(a),r=Array(a);a>i;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,t)):--s;return s||u.resolveWith(r,o),u.promise()}}),ot.support=function(t){var n=V.createElement("input"),r=V.createDocumentFragment(),i=V.createElement("div"),o=V.createElement("select"),a=o.appendChild(V.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!a.disabled,n=V.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,ot(function(){var n,r,o="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=V.getElementsByTagName("body")[0];a&&(n=V.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",ot.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(V.createElement("div")),r.style.cssText=i.style.cssText=o,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var mt,gt,vt=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,yt=/([A-Z])/g;i.uid=1,i.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},i.prototype={key:function(e){if(!i.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=i.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,ot.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(ot.isEmptyObject(o))ot.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,n){var r=this.cache[this.key(e)];return n===t?r:r[n]},access:function(e,n,r){return n===t||n&&"string"==typeof n&&r===t?this.get(e,n):(this.set(e,n,r),r!==t?r:n)},remove:function(e,n){var r,i,o,a=this.key(e),s=this.cache[a];if(n===t)this.cache[a]={};else{ot.isArray(n)?i=n.concat(n.map(ot.camelCase)):(o=ot.camelCase(n),n in s?i=[n,o]:(i=o,i=i in s?[i]:i.match(st)||[])),r=i.length;for(;r--;)delete s[i[r]]}},hasData:function(e){return!ot.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},mt=new i,gt=new i,ot.extend({acceptData:i.accepts,hasData:function(e){return mt.hasData(e)||gt.hasData(e)},data:function(e,t,n){return mt.access(e,t,n)},removeData:function(e,t){mt.remove(e,t)},_data:function(e,t,n){return gt.access(e,t,n)},_removeData:function(e,t){gt.remove(e,t)}}),ot.fn.extend({data:function(e,n){var r,i,a=this[0],s=0,u=null;if(e===t){if(this.length&&(u=mt.get(a),1===a.nodeType&&!gt.get(a,"hasDataAttrs"))){for(r=a.attributes;r.length>s;s++)i=r[s].name,0===i.indexOf("data-")&&(i=ot.camelCase(i.slice(5)),o(a,i,u[i]));gt.set(a,"hasDataAttrs",!0)}return u}return"object"==typeof e?this.each(function(){mt.set(this,e)}):ot.access(this,function(n){var r,i=ot.camelCase(e);if(a&&n===t){if(r=mt.get(a,e),r!==t)return r;if(r=mt.get(a,i),r!==t)return r;if(r=o(a,i,t),r!==t)return r}else this.each(function(){var r=mt.get(this,i);mt.set(this,i,n),-1!==e.indexOf("-")&&r!==t&&mt.set(this,e,n)})},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){mt.remove(this,e)})}}),ot.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=gt.get(e,n),r&&(!i||ot.isArray(r)?i=gt.access(e,n,ot.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=ot.queue(e,t),r=n.length,i=n.shift(),o=ot._queueHooks(e,t),a=function(){ot.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return gt.get(e,n)||gt.access(e,n,{empty:ot.Callbacks("once memory").add(function(){gt.remove(e,[t+"queue",n])})})}}),ot.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?ot.queue(this[0],e):n===t?this:this.each(function(){var t=ot.queue(this,e,n);ot._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&ot.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ot.dequeue(this,e)})},delay:function(e,t){return e=ot.fx?ot.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=ot.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";s--;)r=gt.get(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var $t,bt,xt=/[\t\r\n\f]/g,wt=/\r/g,Ct=/^(?:input|select|textarea|button)$/i;ot.fn.extend({attr:function(e,t){return ot.access(this,ot.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ot.removeAttr(this,e)})},prop:function(e,t){return ot.access(this,ot.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ot.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(xt," "):" ")){for(o=0;i=t[o++];)0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=ot.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ot.isFunction(e))return this.each(function(t){ot(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(xt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");n.className=e?ot.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return ot.isFunction(e)?this.each(function(n){ot(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var i,o=0,a=ot(this),s=t,u=e.match(st)||[];i=u[o++];)s=r?s:!a.hasClass(i),a[s?"addClass":"removeClass"](i);else(n===Y||"boolean"===n)&&(this.className&&gt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":gt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(xt," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];return arguments.length?(i=ot.isFunction(e),this.each(function(r){var o;1===this.nodeType&&(o=i?e.call(this,r,ot(this).val()):e,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(e){return null==e?"":e+""})),n=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))})):o?(n=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(o,"value"))!==t?r:(r=o.value,"string"==typeof r?r.replace(wt,""):null==r?"":r)):t}}),ot.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(ot.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ot.nodeName(n.parentNode,"optgroup"))){if(t=ot(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ot.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=ot.inArray(ot(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var i,o,a=e.nodeType;return e&&3!==a&&8!==a&&2!==a?typeof e.getAttribute===Y?ot.prop(e,n,r):(1===a&&ot.isXMLDoc(e)||(n=n.toLowerCase(),i=ot.attrHooks[n]||(ot.expr.match.bool.test(n)?bt:$t)),r===t?i&&"get"in i&&null!==(o=i.get(e,n))?o:(o=ot.find.attr(e,n),null==o?t:o):null!==r?i&&"set"in i&&(o=i.set(e,r,n))!==t?o:(e.setAttribute(n,r+""),r):(ot.removeAttr(e,n),t)):t},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(st);if(o&&1===e.nodeType)for(;n=o[i++];)r=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!ot.support.radioValue&&"radio"===t&&ot.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;return e&&3!==s&&8!==s&&2!==s?(a=1!==s||!ot.isXMLDoc(e),a&&(n=ot.propFix[n]||n,o=ot.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]):t},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Ct.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),bt={set:function(e,t,n){return t===!1?ot.removeAttr(e,n):e.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(e,n){var r=ot.expr.attrHandle[n]||ot.find.attr;ot.expr.attrHandle[n]=function(e,n,i){var o=ot.expr.attrHandle[n],a=i?t:(ot.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return ot.expr.attrHandle[n]=o,a}}),ot.support.optSelected||(ot.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(e,n){return ot.isArray(n)?e.checked=ot.inArray(ot(e).val(),n)>=0:t}},ot.support.checkOn||(ot.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var St=/^key/,Tt=/^(?:mouse|contextmenu)|click/,kt=/^(?:focusinfocus|focusoutblur)$/,Et=/^([^.]*)(?:\.(.+)|)$/;ot.event={global:{},add:function(e,n,r,i,o){var a,s,u,c,l,f,p,h,d,m,g,v=gt.get(e);if(v){for(r.handler&&(a=r,r=a.handler,o=a.selector),r.guid||(r.guid=ot.guid++),(c=v.events)||(c=v.events={}),(s=v.handle)||(s=v.handle=function(e){return typeof ot===Y||e&&ot.event.triggered===e.type?t:ot.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=(n||"").match(st)||[""],l=n.length;l--;)u=Et.exec(n[l])||[],d=g=u[1],m=(u[2]||"").split(".").sort(),d&&(p=ot.event.special[d]||{},d=(o?p.delegateType:p.bindType)||d,p=ot.event.special[d]||{},f=ot.extend({type:d,origType:g,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:m.join(".")},a),(h=c[d])||(h=c[d]=[],h.delegateCount=0,p.setup&&p.setup.call(e,i,m,s)!==!1||e.addEventListener&&e.addEventListener(d,s,!1)),p.add&&(p.add.call(e,f),f.handler.guid||(f.handler.guid=r.guid)),o?h.splice(h.delegateCount++,0,f):h.push(f),ot.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,c,l,f,p,h,d,m,g=gt.hasData(e)&&gt.get(e);if(g&&(u=g.events)){for(t=(t||"").match(st)||[""],c=t.length;c--;)if(s=Et.exec(t[c])||[],h=m=s[1],d=(s[2]||"").split(".").sort(),h){for(f=ot.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=u[h]||[],s=s[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)l=p[o],!i&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));a&&!p.length&&(f.teardown&&f.teardown.call(e,d,g.handle)!==!1||ot.removeEvent(e,h,g.handle),delete u[h])}else for(h in u)ot.event.remove(e,h+t[c],n,r,!0);ot.isEmptyObject(u)&&(delete g.handle,gt.remove(e,"events"))}},trigger:function(n,r,i,o){var a,s,u,c,l,f,p,h=[i||V],d=rt.call(n,"type")?n.type:n,m=rt.call(n,"namespace")?n.namespace.split("."):[];if(s=u=i=i||V,3!==i.nodeType&&8!==i.nodeType&&!kt.test(d+ot.event.triggered)&&(d.indexOf(".")>=0&&(m=d.split("."),d=m.shift(),m.sort()),l=0>d.indexOf(":")&&"on"+d,n=n[ot.expando]?n:new ot.Event(d,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:ot.makeArray(r,[n]),p=ot.event.special[d]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!ot.isWindow(i)){for(c=p.delegateType||d,kt.test(c+d)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(i.ownerDocument||V)&&h.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=h[a++])&&!n.isPropagationStopped();)n.type=a>1?c:p.bindType||d,f=(gt.get(s,"events")||{})[n.type]&&gt.get(s,"handle"),f&&f.apply(s,r),f=l&&s[l],f&&ot.acceptData(s)&&f.apply&&f.apply(s,r)===!1&&n.preventDefault();return n.type=d,o||n.isDefaultPrevented()||p._default&&p._default.apply(h.pop(),r)!==!1||!ot.acceptData(i)||l&&ot.isFunction(i[d])&&!ot.isWindow(i)&&(u=i[l],u&&(i[l]=null),ot.event.triggered=d,i[d](),ot.event.triggered=t,u&&(i[l]=u)),n.result}},dispatch:function(e){e=ot.event.fix(e);var n,r,i,o,a,s=[],u=et.call(arguments),c=(gt.get(this,"events")||{})[e.type]||[],l=ot.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(s=ot.event.handlers.call(this,e,c),n=0;(o=s[n++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,r=0;(a=o.handlers[r++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,i=((ot.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u),i!==t&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,c=e.target;if(u&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(c.disabled!==!0||"click"!==e.type){for(i=[],r=0;u>r;r++)a=n[r],o=a.selector+" ",i[o]===t&&(i[o]=a.needsContext?ot(o,this).index(c)>=0:ot.find(o,this,null,[c]).length),i[o]&&i.push(a);i.length&&s.push({elem:c,handlers:i})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,a=n.button;return null==e.pageX&&null!=n.clientX&&(r=e.target.ownerDocument||V,i=r.documentElement,o=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[ot.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Tt.test(i)?this.mouseHooks:St.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ot.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=V),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==u()&&this.focus?(this.focus(),!1):t},delegateType:"focusin"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ot.nodeName(this,"input")?(this.click(),!1):t},_default:function(e){return ot.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=ot.extend(new ot.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?ot.event.trigger(i,null,t):ot.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},ot.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},ot.Event=function(e,n){return this instanceof ot.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?a:s):this.type=e,n&&ot.extend(this,n),this.timeStamp=e&&e.timeStamp||ot.now(),this[ot.expando]=!0,t):new ot.Event(e,n)},ot.Event.prototype={isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=a,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=a,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){ot.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!ot.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ot.support.focusinBubbles||ot.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){ot.event.simulate(t,e.target,ot.event.fix(e),!0)};ot.event.special[t]={setup:function(){0===n++&&V.addEventListener(e,r,!0)},teardown:function(){0===--n&&V.removeEventListener(e,r,!0)}}}),ot.fn.extend({on:function(e,n,r,i,o){var a,u;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=s;else if(!i)return this;return 1===o&&(a=i,i=function(e){return ot().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),this.each(function(){ot.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,ot(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=s),this.each(function(){ot.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){ot.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?ot.event.trigger(e,n,r,!0):t}});var Mt=/^.[^:#\[\.,]*$/,jt=/^(?:parents|prev(?:Until|All))/,Dt=ot.expr.match.needsContext,At={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ot(e).filter(function(){for(t=0;i>t;t++)if(ot.contains(r[t],this))return!0}));for(t=0;i>t;t++)ot.find(e,r[t],n);return n=this.pushStack(i>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=ot(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(ot.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(l(this,e||[],!0))},filter:function(e){return this.pushStack(l(this,e||[],!1))},is:function(e){return!!l(this,"string"==typeof e&&Dt.test(e)?ot(e):e||[],!1).length},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=Dt.test(e)||"string"!=typeof e?ot(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?ot.unique(o):o)},index:function(e){return e?"string"==typeof e?tt.call(ot(e),this[0]):tt.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?ot(e,t):ot.makeArray(e&&e.nodeType?[e]:e),r=ot.merge(this.get(),n);return this.pushStack(ot.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ot.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ot.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ot.dir(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return ot.dir(e,"nextSibling")},prevAll:function(e){return ot.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ot.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ot.dir(e,"previousSibling",n)},siblings:function(e){return ot.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ot.sibling(e.firstChild)},contents:function(e){return e.contentDocument||ot.merge([],e.childNodes)}},function(e,t){ot.fn[e]=function(n,r){var i=ot.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(At[e]||ot.unique(i),jt.test(e)&&i.reverse()),this.pushStack(i)}}),ot.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ot.find.matchesSelector(r,e)?[r]:[]:ot.find.matches(e,ot.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){for(var i=[],o=r!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&ot(e).is(r))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var _t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Nt=/<([\w:]+)/,Ot=/<|&#?\w+;/,qt=/<(?:script|style|link)/i,Pt=/^(?:checkbox|radio)$/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Rt=/^$|\/(?:java|ecma)script/i,Ht=/^true\/(.*)/,Ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,It={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};It.optgroup=It.option,It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,ot.fn.extend({text:function(e){return ot.access(this,function(e){return e===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||V).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=f(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ot.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ot.cleanData(g(n)),n.parentNode&&(t&&ot.contains(n.ownerDocument,n)&&d(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ot.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ot.clone(this,e,t)})},html:function(e){return ot.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!qt.test(e)&&!It[(Nt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(_t,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(ot.cleanData(g(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=ot.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),ot(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=K.apply([],e);var r,i,o,a,s,u,c=0,l=this.length,f=this,d=l-1,m=e[0],v=ot.isFunction(m);if(v||!(1>=l||"string"!=typeof m||ot.support.checkClone)&&Lt.test(m))return this.each(function(r){var i=f.eq(r);v&&(e[0]=m.call(this,r,i.html())),i.domManip(e,t,n)});if(l&&(r=ot.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=ot.map(g(r,"script"),p),a=o.length;l>c;c++)s=r,c!==d&&(s=ot.clone(s,!0,!0),a&&ot.merge(o,g(s,"script"))),t.call(this[c],s,c);if(a)for(u=o[o.length-1].ownerDocument,ot.map(o,h),c=0;a>c;c++)s=o[c],Rt.test(s.type||"")&&!gt.access(s,"globalEval")&&ot.contains(u,s)&&(s.src?ot._evalUrl(s.src):ot.globalEval(s.textContent.replace(Ft,"")))
}return this}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ot.fn[e]=function(e){for(var n,r=[],i=ot(e),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),ot(i[a])[t](n),Q.apply(r,n.get());return this.pushStack(r)}}),ot.extend({clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=ot.contains(e.ownerDocument,e);if(!(ot.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ot.isXMLDoc(e)))for(a=g(s),o=g(e),r=0,i=o.length;i>r;r++)v(o[r],a[r]);if(t)if(n)for(o=o||g(e),a=a||g(s),r=0,i=o.length;i>r;r++)m(o[r],a[r]);else m(e,s);return a=g(s,"script"),a.length>0&&d(a,!u&&g(e,"script")),s},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,c,l=0,f=e.length,p=t.createDocumentFragment(),h=[];f>l;l++)if(i=e[l],i||0===i)if("object"===ot.type(i))ot.merge(h,i.nodeType?[i]:i);else if(Ot.test(i)){for(o=o||p.appendChild(t.createElement("div")),a=(Nt.exec(i)||["",""])[1].toLowerCase(),s=It[a]||It._default,o.innerHTML=s[1]+i.replace(_t,"<$1></$2>")+s[2],c=s[0];c--;)o=o.firstChild;ot.merge(h,o.childNodes),o=p.firstChild,o.textContent=""}else h.push(t.createTextNode(i));for(p.textContent="",l=0;i=h[l++];)if((!r||-1===ot.inArray(i,r))&&(u=ot.contains(i.ownerDocument,i),o=g(p.appendChild(i),"script"),u&&d(o),n))for(c=0;i=o[c++];)Rt.test(i.type||"")&&n.push(i);return p},cleanData:function(e){for(var n,r,o,a,s,u,c=ot.event.special,l=0;(r=e[l])!==t;l++){if(i.accepts(r)&&(s=r[gt.expando],s&&(n=gt.cache[s]))){if(o=Object.keys(n.events||{}),o.length)for(u=0;(a=o[u])!==t;u++)c[a]?ot.event.remove(r,a):ot.removeEvent(r,a,n.handle);gt.cache[s]&&delete gt.cache[s]}delete mt.cache[r[mt.expando]]}},_evalUrl:function(e){return ot.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),ot.fn.extend({wrapAll:function(e){var t;return ot.isFunction(e)?this.each(function(t){ot(this).wrapAll(e.call(this,t))}):(this[0]&&(t=ot(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return ot.isFunction(e)?this.each(function(t){ot(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ot(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ot.isFunction(e);return this.each(function(n){ot(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}});var Ut,Yt,Bt=/^(none|table(?!-c[ea]).+)/,Vt=/^margin/,zt=RegExp("^("+at+")(.*)$","i"),Wt=RegExp("^("+at+")(?!px)[a-z%]+$","i"),Xt=RegExp("^([+-])=("+at+")","i"),Gt={BODY:"block"},Zt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:0,fontWeight:400},Kt=["Top","Right","Bottom","Left"],Qt=["Webkit","O","Moz","ms"];ot.fn.extend({css:function(e,n){return ot.access(this,function(e,n,r){var i,o,a={},s=0;if(ot.isArray(n)){for(i=b(e),o=n.length;o>s;s++)a[n[s]]=ot.css(e,n[s],!1,i);return a}return r!==t?ot.style(e,n,r):ot.css(e,n)},e,n,arguments.length>1)},show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:$(this))?ot(this).show():ot(this).hide()})}}),ot.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ut(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=ot.camelCase(n),c=e.style;return n=ot.cssProps[u]||(ot.cssProps[u]=y(c,u)),s=ot.cssHooks[n]||ot.cssHooks[u],r===t?s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:c[n]:(a=typeof r,"string"===a&&(o=Xt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(ot.css(e,n)),a="number"),null==r||"number"===a&&isNaN(r)||("number"!==a||ot.cssNumber[u]||(r+="px"),ot.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(c[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t||(c[n]=r)),t)}},css:function(e,n,r,i){var o,a,s,u=ot.camelCase(n);return n=ot.cssProps[u]||(ot.cssProps[u]=y(e.style,u)),s=ot.cssHooks[n]||ot.cssHooks[u],s&&"get"in s&&(o=s.get(e,!0,r)),o===t&&(o=Ut(e,n,i)),"normal"===o&&n in Jt&&(o=Jt[n]),""===r||r?(a=parseFloat(o),r===!0||ot.isNumeric(a)?a||0:o):o}}),Ut=function(e,n,r){var i,o,a,s=r||b(e),u=s?s.getPropertyValue(n)||s[n]:t,c=e.style;return s&&(""!==u||ot.contains(e.ownerDocument,e)||(u=ot.style(e,n)),Wt.test(u)&&Vt.test(n)&&(i=c.width,o=c.minWidth,a=c.maxWidth,c.minWidth=c.maxWidth=c.width=u,u=s.width,c.width=i,c.minWidth=o,c.maxWidth=a)),u},ot.each(["height","width"],function(e,n){ot.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Bt.test(ot.css(e,"display"))?ot.swap(e,Zt,function(){return S(e,n,i)}):S(e,n,i):t},set:function(e,t,r){var i=r&&b(e);return w(e,t,r?C(e,n,r,ot.support.boxSizing&&"border-box"===ot.css(e,"boxSizing",!1,i),i):0)}}}),ot(function(){ot.support.reliableMarginRight||(ot.cssHooks.marginRight={get:function(e,n){return n?ot.swap(e,{display:"inline-block"},Ut,[e,"marginRight"]):t}}),!ot.support.pixelPosition&&ot.fn.position&&ot.each(["top","left"],function(e,n){ot.cssHooks[n]={get:function(e,r){return r?(r=Ut(e,n),Wt.test(r)?ot(e).position()[n]+"px":r):t}}})}),ot.expr&&ot.expr.filters&&(ot.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight},ot.expr.filters.visible=function(e){return!ot.expr.filters.hidden(e)}),ot.each({margin:"",padding:"",border:"Width"},function(e,t){ot.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Kt[r]+t]=o[r]||o[r-2]||o[0];return i}},Vt.test(e)||(ot.cssHooks[e+t].set=w)});var en=/%20/g,tn=/\[\]$/,nn=/\r?\n/g,rn=/^(?:submit|button|image|reset|file)$/i,on=/^(?:input|select|textarea|keygen)/i;ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ot.prop(this,"elements");return e?ot.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ot(this).is(":disabled")&&on.test(this.nodeName)&&!rn.test(e)&&(this.checked||!Pt.test(e))}).map(function(e,t){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(e){return{name:t.name,value:e.replace(nn,"\r\n")}}):{name:t.name,value:n.replace(nn,"\r\n")}}).get()}}),ot.param=function(e,n){var r,i=[],o=function(e,t){t=ot.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(e)||e.jquery&&!ot.isPlainObject(e))ot.each(e,function(){o(this.name,this.value)});else for(r in e)E(r,e[r],n,o);return i.join("&").replace(en,"+")},ot.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 contextmenu".split(" "),function(e,t){ot.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ot.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var an,sn,un=ot.now(),cn=/\?/,ln=/#.*$/,fn=/([?&])_=[^&]*/,pn=/^(.*?):[ \t]*([^\r\n]*)$/gm,hn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,dn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,vn=ot.fn.load,yn={},$n={},bn="*/".concat("*");try{sn=B.href}catch(xn){sn=V.createElement("a"),sn.href="",sn=sn.href}an=gn.exec(sn.toLowerCase())||[],ot.fn.load=function(e,n,r){if("string"!=typeof e&&vn)return vn.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u),e=e.slice(0,u)),ot.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(o="POST"),s.length>0&&ot.ajax({url:e,type:o,dataType:"html",data:n}).done(function(e){a=arguments,s.html(i?ot("<div>").append(ot.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,a||[e.responseText,t,e])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ot.fn[t]=function(e){return this.on(t,e)}}),ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:sn,type:"GET",isLocal:hn.test(an[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?D(D(e,ot.ajaxSettings),t):D(ot.ajaxSettings,e)},ajaxPrefilter:M(yn),ajaxTransport:M($n),ajax:function(e,n){function r(e,n,r,s){var c,f,y,$,x,C=n;2!==b&&(b=2,u&&clearTimeout(u),i=t,a=s||"",w.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&($=A(p,w,r)),$=_(p,$,w,c),c?(p.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(ot.lastModified[o]=x),x=w.getResponseHeader("etag"),x&&(ot.etag[o]=x)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=$.state,f=$.data,y=$.error,c=!y)):(y=C,(e||!C)&&(C="error",0>e&&(e=0))),w.status=e,w.statusText=(n||C)+"",c?m.resolveWith(h,[f,C,w]):m.rejectWith(h,[w,C,y]),w.statusCode(v),v=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[w,p,c?f:y]),g.fireWith(h,[w,C]),l&&(d.trigger("ajaxComplete",[w,p]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,c,l,f,p=ot.ajaxSetup({},n),h=p.context||p,d=p.context&&(h.nodeType||h.jquery)?ot(h):ot.event,m=ot.Deferred(),g=ot.Callbacks("once memory"),v=p.statusCode||{},y={},$={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!s)for(s={};t=pn.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=$[n]=$[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return i&&i.abort(t),r(0,t),this}};if(m.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||sn)+"").replace(ln,"").replace(mn,an[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ot.trim(p.dataType||"*").toLowerCase().match(st)||[""],null==p.crossDomain&&(c=gn.exec(p.url.toLowerCase()),p.crossDomain=!(!c||c[1]===an[1]&&c[2]===an[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(an[3]||("http:"===an[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ot.param(p.data,p.traditional)),j(yn,p,n,w),2===b)return w;l=p.global,l&&0===ot.active++&&ot.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!dn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(cn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=fn.test(o)?o.replace(fn,"$1_="+un++):o+(cn.test(o)?"&":"?")+"_="+un++)),p.ifModified&&(ot.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&w.setRequestHeader("If-None-Match",ot.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+bn+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)w.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(p.beforeSend.call(h,w,p)===!1||2===b))return w.abort();x="abort";for(f in{success:1,error:1,complete:1})w[f](p[f]);if(i=j($n,p,n,w)){w.readyState=1,l&&d.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,i.send(y,r)}catch(C){if(!(2>b))throw C;r(-1,C)}}else r(-1,"No Transport");return w},getJSON:function(e,t,n){return ot.get(e,t,n,"json")},getScript:function(e,n){return ot.get(e,t,n,"script")}}),ot.each(["get","post"],function(e,n){ot[n]=function(e,r,i,o){return ot.isFunction(r)&&(o=o||i,i=r,r=t),ot.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ot.globalEval(e),e}}}),ot.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ot.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ot("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),V.head.appendChild(t[0])},abort:function(){n&&n()}}}});var wn=[],Cn=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=wn.pop()||ot.expando+"_"+un++;return this[e]=!0,e}}),ot.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Cn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Cn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=ot.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Cn,"$1"+o):n.jsonp!==!1&&(n.url+=(cn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||ot.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,wn.push(o)),s&&ot.isFunction(a)&&a(s[0]),s=a=t}),"script"):t}),ot.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Sn=ot.ajaxSettings.xhr(),Tn={0:200,1223:204},kn=0,En={};e.ActiveXObject&&ot(e).on("unload",function(){for(var e in En)En[e]();En=t}),ot.support.cors=!!Sn&&"withCredentials"in Sn,ot.support.ajax=Sn=!!Sn,ot.ajaxTransport(function(e){var n;return ot.support.cors||Sn&&!e.crossDomain?{send:function(r,i){var o,a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)s.setRequestHeader(o,r[o]);n=function(e){return function(){n&&(delete En[a],n=s.onload=s.onerror=null,"abort"===e?s.abort():"error"===e?i(s.status||404,s.statusText):i(Tn[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:t,s.getAllResponseHeaders()))}},s.onload=n(),s.onerror=n("error"),n=En[a=kn++]=n("abort"),s.send(e.hasContent&&e.data||null)},abort:function(){n&&n()}}:t});var Mn,jn,Dn=/^(?:toggle|show|hide)$/,An=RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),_n=/queueHooks$/,Nn=[L],On={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=An.exec(t),o=i&&i[3]||(ot.cssNumber[e]?"":"px"),a=(ot.cssNumber[e]||"px"!==o&&+r)&&An.exec(ot.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ot.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ot.Animation=ot.extend(q,{tweener:function(e,t){ot.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],On[n]=On[n]||[],On[n].unshift(t)},prefilter:function(e,t){t?Nn.unshift(e):Nn.push(e)}}),ot.Tween=R,R.prototype={constructor:R,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.propHooks[this.prop];return this.pos=t=this.options.duration?ot.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ot.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ot.fx.step[e.prop]?ot.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ot.cssProps[e.prop]]||ot.cssHooks[e.prop])?ot.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ot.each(["toggle","show","hide"],function(e,t){var n=ot.fn[t];ot.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(H(t,!0),e,r,i)}}),ot.fn.extend({fadeTo:function(e,t,n,r){return this.filter($).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ot.isEmptyObject(e),o=ot.speed(t,n,r),a=function(){var t=q(this,ot.extend({},e),o);(i||gt.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=ot.timers,a=gt.get(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&_n.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&ot.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=gt.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ot.timers,a=r?r.length:0;for(n.finish=!0,ot.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ot.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ot.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ot.speed=function(e,t,n){var r=e&&"object"==typeof e?ot.extend({},e):{complete:n||!n&&t||ot.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ot.isFunction(t)&&t};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ot.timers=[],ot.fx=R.prototype.init,ot.fx.tick=function(){var e,n=ot.timers,r=0;for(Mn=ot.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||ot.fx.stop(),Mn=t},ot.fx.timer=function(e){e()&&ot.timers.push(e)&&ot.fx.start()},ot.fx.interval=13,ot.fx.start=function(){jn||(jn=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(jn),jn=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fx.step={},ot.expr&&ot.expr.filters&&(ot.expr.filters.animated=function(e){return ot.grep(ot.timers,function(t){return e===t.elem}).length}),ot.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){ot.offset.setOffset(this,e,t)});var n,r,i=this[0],o={top:0,left:0},a=i&&i.ownerDocument;return a?(n=a.documentElement,ot.contains(n,i)?(typeof i.getBoundingClientRect!==Y&&(o=i.getBoundingClientRect()),r=F(a),{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}):o):t},ot.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,c,l=ot.css(e,"position"),f=ot(e),p={};"static"===l&&(e.style.position="relative"),s=f.offset(),o=ot.css(e,"top"),u=ot.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ot.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):f.css(p)}},ot.fn.extend({position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ot.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ot.nodeName(e[0],"html")||(r=e.offset()),r.top+=ot.css(e[0],"borderTopWidth",!0),r.left+=ot.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-ot.css(n,"marginTop",!0),left:t.left-r.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||z;e&&!ot.nodeName(e,"html")&&"static"===ot.css(e,"position");)e=e.offsetParent;return e||z})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var i="pageYOffset"===r;ot.fn[n]=function(o){return ot.access(this,function(n,o,a){var s=F(n);return a===t?s?s[r]:n[o]:(s?s.scrollTo(i?e.pageXOffset:a,i?a:e.pageYOffset):n[o]=a,t)},n,o,arguments.length,null)}}),ot.each({Height:"height",Width:"width"},function(e,n){ot.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){ot.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return ot.access(this,function(n,r,i){var o;return ot.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?ot.css(n,r,s):ot.style(n,r,i,s)},n,a?i:t,a,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ot:"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot}),"object"==typeof e&&"object"==typeof e.document&&(e.jQuery=e.$=ot)}(window),define("js/jquery-2.0.2.min.js",function(){}),define("js/mobile-nav.js",["angular"],function(){angular.module("mobile-navigate",[]),angular.module("mobile-navigate").factory("$change",["$rootScope",function(e){var t={modal:["modal",""],none:["",""]},n={prefix:"mb-"},r="in",i="out",o="reverse",a=document.body.style.webkitBorderRadius!==void 0?"webkitAnimationEnd":"animationend";return function(s,u,c,l,f,p){function h(e){for(var t="",n=0,r=e.length;r>n;n++)e[n].length&&(t+=" "+f.prefix+e[n]);return t}f=angular.extend(f||{},n);var d,m,g=t[c]?t[c]:[c,c];s.css("z-index","-100"),s[0].offsetWidth+=0;var v,y=h([l?i:r,d=g[l?1:0],l&&o||""]).trim();u&&(v=h([l?r:i,m=g[l?0:1],l&&o||""])),setTimeout(function(){function t(){u&&u.css("display","none"),e.$apply(function(){n()})}function n(){p(),r&&r.unbind(a,t),s.removeClass(y),u&&u.removeClass(v)}s.css("display","block"),s.addClass(y),u&&u.addClass(v);var r;d&&d.length?(r=s).bind(a,t):u&&m&&m.length?(r=u).bind(a,t):n()}),s.css("z-index",""),s[0].offsetWidth+=0}}]),angular.module("mobile-navigate").service("$navigate",["$rootScope","$location",function(e,t){function n(e,t){this.transition=t||"slide",this.path=function(){return e}}function r(t,n,r){e.$broadcast("$pageTransitionStart",t,n,r),i.current=i.next}var i=this,o=[];i.onRouteSuccess=angular.noop,e.$on("$routeChangeSuccess",function(e,t,n){i.onRouteSuccess(e,t,n)}),i.go=function(e,o,a){var s=t.path(e).search({});return i.onRouteSuccess=function(t,s){i.next=new n(e,o||s.$route.transition),r(i.next,i.current,!!a)},s},i.go=function(e,a,s){var u=t.path(e).search({});return i.onRouteSuccess=function(t,u){i.current&&o.push(i.current),i.next=new n(e,a||u.$route.transition),r(i.next,i.current,!!s)},u},i.eraseHistory=function(){o.length=0},i.back=function(){if(o.length>0){var e=o[o.length-1];return t.path(e.path()).search({}),t.path(e.path()),i.onRouteSuccess=function(){o.pop(),i.next=e,r(i.next,i.current,!0)},!0}return!1}}]),angular.module("mobile-navigate").directive("mobileView",["$rootScope","$compile","$controller","$route","$change",function(e,t,n,r,i){function o(o,a,s){function u(e){var i=r.current,u=i&&i.locals;e.element=angular.element('<div class="mb-page">'+u.$template+"</div>"),e.element.css({display:"none"}),e.scope=o.$new();var c=e.element.contents();i.controller&&(u.$scope=e.scope,e.controller=n(i.controller,u),c.data("$ngControllerController",e.controller)),t(c)(e.scope),a.append(e.element),e.scope.$emit("$viewContentLoaded"),e.scope.$evalAsync(s.onLoad)}o.$on("$pageTransitionStart",function(t,n,r,o){function a(){u(n);var t=r?r.element:null,a=n.transition||r.transition;i(n.element,t,a,o,null,function(){r&&(e.$broadcast("$pageTransitionSuccess",n,r),r.scope.$destroy(),r.element.remove(),r=void 0)})}a(n,r,o)})}return{restrict:"EA",link:o}}])}),function(e){e.userRoles={"public":1,user:2,admin:4},e.accessLevels={"public":7,anon:1,user:6,admin:4},e.RootPath="http://deltacity.me/feed"}("undefined"==typeof exports?this.globals={}:exports),define("js/globals.js",function(){}),function(e,t){function n(e){var t,n={},r=e.split(",");for(t=0;r.length>t;t++)n[r[t]]=!0;return n}function r(e,n){function r(e,r,a,s){if(r=t.lowercase(r),x[r])for(;g.last()&&w[g.last()];)o("",g.last());b[r]&&g.last()==r&&o("",r),s=v[r]||!!s,s||g.push(r);var u={};a.replace(l,function(e,t,n,r,o){var a=n||r||o||"";u[t]=i(a)}),n.start&&n.start(r,u,s)}function o(e,r){var i,o=0;if(r=t.lowercase(r))for(o=g.length-1;o>=0&&g[o]!=r;o--);if(o>=0){for(i=g.length-1;i>=o;i--)n.end&&n.end(g[i]);g.length=o}}var a,s,m,g=[],y=e;for(g.last=function(){return g[g.length-1]};e;){if(s=!0,g.last()&&C[g.last()])e=e.replace(RegExp("(.*)<\\s*\\/\\s*"+g.last()+"[^>]*>","i"),function(e,t){return t=t.replace(h,"$1").replace(d,"$1"),n.chars&&n.chars(i(t)),""}),o("",g.last());else if(0===e.indexOf("<!--")?(a=e.indexOf("-->"),a>=0&&(n.comment&&n.comment(e.substring(4,a)),e=e.substring(a+3),s=!1)):p.test(e)?(m=e.match(c),m&&(e=e.substring(m[0].length),m[0].replace(c,o),s=!1)):f.test(e)&&(m=e.match(u),m&&(e=e.substring(m[0].length),m[0].replace(u,r),s=!1)),s){a=e.indexOf("<");var $=0>a?e:e.substring(0,a);e=0>a?"":e.substring(a),n.chars&&n.chars(i($))}if(e==y)throw"Parse Error: "+e;y=e}o()}function i(e){return E.innerHTML=e.replace(/</g,"&lt;"),E.innerText||E.textContent||""}function o(e){return e.replace(/&/g,"&amp;").replace(g,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(e){var n=!1,r=t.bind(e,e.push);return{start:function(e,i,a){e=t.lowercase(e),!n&&C[e]&&(n=e),n||1!=S[e]||(r("<"),r(e),t.forEach(i,function(e,n){var i=t.lowercase(n);1!=k[i]||T[i]===!0&&!e.match(m)||(r(" "),r(n),r('="'),r(o(e)),r('"'))}),r(a?"/>":">"))},end:function(e){e=t.lowercase(e),n||1!=S[e]||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(o(e))}}}var s=function(e){var t=[];return r(e,a(t)),t.join("")},u=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,c=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,f=/^</,p=/^<\s*\//,h=/<!--(.*?)-->/g,d=/<!\[CDATA\[(.*?)]]>/g,m=/^((ftp|https?):\/\/|mailto:|#)/,g=/([^\#-~| |!])/g,v=n("area,br,col,hr,img,wbr"),y=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$=n("rp,rt"),b=t.extend({},$,y),x=t.extend({},y,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),w=t.extend({},$,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),C=n("script,style"),S=t.extend({},v,x,w,b),T=n("background,cite,href,longdesc,src,usemap"),k=t.extend({},T,n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,span,start,summary,target,title,type,valign,value,vspace,width")),E=document.createElement("pre");t.module("ngSanitize",[]).value("$sanitize",s),t.module("ngSanitize").directive("ngBindHtml",["$sanitize",function(e){return function(t,n,r){n.addClass("ng-binding").data("$binding",r.ngBindHtml),t.$watch(r.ngBindHtml,function(t){t=e(t),n.html(t||"")})}}]),t.module("ngSanitize").filter("linky",function(){var e=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s\.\;\,\(\)\{\}\<\>]/,t=/^mailto:/;return function(n){if(!n)return n;for(var r,i,o,s=n,u=[],c=a(u);r=s.match(e);)i=r[0],r[2]==r[3]&&(i="mailto:"+i),o=r.index,c.chars(s.substr(0,o)),c.start("a",{href:i}),c.chars(r[0].replace(t,"")),c.end("a"),s=s.substring(o+r[0].length);return c.chars(s),u.join("")}})}(window,window.angular),define("components/angular-sanitize/angular-sanitize",function(){}),function(e){function t(e,t){return function(n){return u(e.call(this,n),t)}}function n(e){return function(t){return this.lang().ordinal(e.call(this,t))}}function r(){}function i(e){a(this,e)}function o(e){var t=this._data={},n=e.years||e.year||e.y||0,r=e.months||e.month||e.M||0,i=e.weeks||e.week||e.w||0,o=e.days||e.day||e.d||0,a=e.hours||e.hour||e.h||0,u=e.minutes||e.minute||e.m||0,c=e.seconds||e.second||e.s||0,l=e.milliseconds||e.millisecond||e.ms||0;this._milliseconds=l+1e3*c+6e4*u+36e5*a,this._days=o+7*i,this._months=r+12*n,t.milliseconds=l%1e3,c+=s(l/1e3),t.seconds=c%60,u+=s(c/60),t.minutes=u%60,a+=s(u/60),t.hours=a%24,o+=s(a/24),o+=7*i,t.days=o%30,r+=s(o/30),t.months=r%12,n+=s(r/12),t.years=n}function a(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function s(e){return 0>e?Math.ceil(e):Math.floor(e)}function u(e,t){for(var n=e+"";t>n.length;)n="0"+n;return n}function c(e,t,n){var r,i=t._milliseconds,o=t._days,a=t._months;i&&e._d.setTime(+e+i*n),o&&e.date(e.date()+o*n),a&&(r=e.date(),e.date(1).month(e.month()+a*n).date(Math.min(r,e.daysInMonth())))}function l(e){return"[object Array]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(n=0;r>n;n++)~~e[n]!==~~t[n]&&o++;return o+i}function p(e,t){return t.abbr=e,q[e]||(q[e]=new r),q[e].set(t),q[e]}function h(e){return e?(!q[e]&&P&&require("./lang/"+e),q[e]):A.fn._lang}function d(e){return e.match(/\[.*\]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function m(e){var t,n,r=e.match(R);for(t=0,n=r.length;n>t;t++)r[t]=it[r[t]]?it[r[t]]:d(r[t]);return function(i){var o="";for(t=0;n>t;t++)o+="function"==typeof r[t].call?r[t].call(i,e):r[t];return o}}function g(e,t){function n(t){return e.lang().longDateFormat(t)||t}for(var r=5;r--&&H.test(t);)t=t.replace(H,n);return tt[t]||(tt[t]=m(t)),tt[t](e)}function v(e){switch(e){case"DDDD":return U;case"YYYY":return Y;case"YYYYY":return B;case"S":case"SS":case"SSS":case"DDD":return I;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":case"a":case"A":return V;case"X":return X;case"Z":case"ZZ":return z;case"T":return W;case"MM":case"DD":case"YY":case"HH":case"hh":case"mm":case"ss":case"M":case"D":case"d":case"H":case"h":case"m":case"s":return F;default:return RegExp(e.replace("\\",""))}}function y(e,t,n){var r,i=n._a;switch(e){case"M":case"MM":i[1]=null==t?0:~~t-1;break;case"MMM":case"MMMM":r=h(n._l).monthsParse(t),null!=r?i[1]=r:n._isValid=!1;break;case"D":case"DD":case"DDD":case"DDDD":null!=t&&(i[2]=~~t);break;case"YY":i[0]=~~t+(~~t>68?1900:2e3);break;case"YYYY":case"YYYYY":i[0]=~~t;break;case"a":case"A":n._isPm="pm"===(t+"").toLowerCase();break;case"H":case"HH":case"h":case"hh":i[3]=~~t;break;case"m":case"mm":i[4]=~~t;break;case"s":case"ss":i[5]=~~t;break;case"S":case"SS":case"SSS":i[6]=~~(1e3*("0."+t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,r=(t+"").match(K),r&&r[1]&&(n._tzh=~~r[1]),r&&r[2]&&(n._tzm=~~r[2]),r&&"+"===r[0]&&(n._tzh=-n._tzh,n._tzm=-n._tzm)
}null==t&&(n._isValid=!1)}function $(e){var t,n,r=[];if(!e._d){for(t=0;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];r[3]+=e._tzh||0,r[4]+=e._tzm||0,n=new Date(0),e._useUTC?(n.setUTCFullYear(r[0],r[1],r[2]),n.setUTCHours(r[3],r[4],r[5],r[6])):(n.setFullYear(r[0],r[1],r[2]),n.setHours(r[3],r[4],r[5],r[6])),e._d=n}}function b(e){var t,n,r=e._f.match(R),i=e._i;for(e._a=[],t=0;r.length>t;t++)n=(v(r[t]).exec(i)||[])[0],n&&(i=i.slice(i.indexOf(n)+n.length)),it[r[t]]&&y(r[t],n,e);e._isPm&&12>e._a[3]&&(e._a[3]+=12),e._isPm===!1&&12===e._a[3]&&(e._a[3]=0),$(e)}function x(e){for(var t,n,r,o,s=99;e._f.length;){if(t=a({},e),t._f=e._f.pop(),b(t),n=new i(t),n.isValid()){r=n;break}o=f(t._a,n.toArray()),s>o&&(s=o,r=n)}a(e,r)}function w(e){var t,n=e._i;if(G.exec(n)){for(e._f="YYYY-MM-DDT",t=0;4>t;t++)if(J[t][1].exec(n)){e._f+=J[t][0];break}z.exec(n)&&(e._f+=" Z"),b(e)}else e._d=new Date(n)}function C(t){var n=t._i,r=L.exec(n);n===e?t._d=new Date:r?t._d=new Date(+r[1]):"string"==typeof n?w(t):l(n)?(t._a=n.slice(0),$(t)):t._d=n instanceof Date?new Date(+n):new Date(n)}function S(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function T(e,t,n){var r=O(Math.abs(e)/1e3),i=O(r/60),o=O(i/60),a=O(o/24),s=O(a/365),u=45>r&&["s",r]||1===i&&["m"]||45>i&&["mm",i]||1===o&&["h"]||22>o&&["hh",o]||1===a&&["d"]||25>=a&&["dd",a]||45>=a&&["M"]||345>a&&["MM",O(a/30)]||1===s&&["y"]||["yy",s];return u[2]=t,u[3]=e>0,u[4]=n,S.apply({},u)}function k(e,t,n){var r=n-t,i=n-e.day();return i>r&&(i-=7),r-7>i&&(i+=7),Math.ceil(A(e).add("d",i).dayOfYear()/7)}function E(e){var t=e._i,n=e._f;return null===t||""===t?null:("string"==typeof t&&(e._i=t=h().preparse(t)),A.isMoment(t)?(e=a({},t),e._d=new Date(+t._d)):n?l(n)?x(e):b(e):C(e),new i(e))}function M(e,t){A.fn[e]=A.fn[e+"s"]=function(e){var n=this._isUTC?"UTC":"";return null!=e?(this._d["set"+n+t](e),this):this._d["get"+n+t]()}}function j(e){A.duration.fn[e]=function(){return this._data[e]}}function D(e,t){A.duration.fn["as"+e]=function(){return+this/t}}for(var A,_,N="2.0.0",O=Math.round,q={},P="undefined"!=typeof module&&module.exports,L=/^\/?Date\((\-?\d+)/i,R=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYY|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,F=/\d\d?/,I=/\d{1,3}/,U=/\d{3}/,Y=/\d{1,4}/,B=/[+\-]?\d{1,6}/,V=/[0-9]*[a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF]+\s*?[\u0600-\u06FF]+/i,z=/Z|[\+\-]\d\d:?\d\d/i,W=/T/i,X=/[\+\-]?\d+(\.\d{1,3})?/,G=/^\s*\d{4}-\d\d-\d\d((T| )(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/,Z="YYYY-MM-DDTHH:mm:ssZ",J=[["HH:mm:ss.S",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],K=/([\+\-]|\d\d)/gi,Q="Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"),et={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},tt={},nt="DDD w W M D d".split(" "),rt="M D H h m s w W".split(" "),it={M:function(){return this.month()+1},MMM:function(e){return this.lang().monthsShort(this,e)},MMMM:function(e){return this.lang().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.lang().weekdaysMin(this,e)},ddd:function(e){return this.lang().weekdaysShort(this,e)},dddd:function(e){return this.lang().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return u(this.year()%100,2)},YYYY:function(){return u(this.year(),4)},YYYYY:function(){return u(this.year(),5)},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return~~(this.milliseconds()/100)},SS:function(){return u(~~(this.milliseconds()/10),2)},SSS:function(){return u(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+u(~~(e/60),2)+":"+u(~~e%60,2)},ZZ:function(){var e=-this.zone(),t="+";return 0>e&&(e=-e,t="-"),t+u(~~(10*e/6),4)},X:function(){return this.unix()}};nt.length;)_=nt.pop(),it[_+"o"]=n(it[_]);for(;rt.length;)_=rt.pop(),it[_+_]=t(it[_],2);for(it.DDDD=t(it.DDD,3),r.prototype={set:function(e){var t,n;for(n in e)t=e[n],"function"==typeof t?this[n]=t:this["_"+n]=t},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e){var t,n,r;for(this._monthsParse||(this._monthsParse=[]),t=0;12>t;t++)if(this._monthsParse[t]||(n=A([2e3,t]),r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[t]=RegExp(r.replace(".",""),"i")),this._monthsParse[t].test(e))return t},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e]=t),t},meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[last] dddd [at] LT",sameElse:"L"},calendar:function(e,t){var n=this._calendar[e];return"function"==typeof n?n.apply(t):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(e,t,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(e,t,n,r):i.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",preparse:function(e){return e},postformat:function(e){return e},week:function(e){return k(e,this._week.dow,this._week.doy)},_week:{dow:0,doy:6}},A=function(e,t,n){return E({_i:e,_f:t,_l:n,_isUTC:!1})},A.utc=function(e,t,n){return E({_useUTC:!0,_isUTC:!0,_l:n,_i:e,_f:t})},A.unix=function(e){return A(1e3*e)},A.duration=function(e,t){var n,r=A.isDuration(e),i="number"==typeof e,a=r?e._data:i?{}:e;return i&&(t?a[t]=e:a.milliseconds=e),n=new o(a),r&&e.hasOwnProperty("_lang")&&(n._lang=e._lang),n},A.version=N,A.defaultFormat=Z,A.lang=function(e,t){return e?(t?p(e,t):q[e]||h(e),A.duration.fn._lang=A.fn._lang=h(e),void 0):A.fn._lang._abbr},A.langData=function(e){return e&&e._lang&&e._lang._abbr&&(e=e._lang._abbr),h(e)},A.isMoment=function(e){return e instanceof i},A.isDuration=function(e){return e instanceof o},A.fn=i.prototype={clone:function(){return A(this)},valueOf:function(){return+this._d},unix:function(){return Math.floor(+this._d/1e3)},toString:function(){return this.format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._d},toJSON:function(){return A.utc(this).format("YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return null==this._isValid&&(this._isValid=this._a?!f(this._a,(this._isUTC?A.utc(this._a):A(this._a)).toArray()):!isNaN(this._d.getTime())),!!this._isValid},utc:function(){return this._isUTC=!0,this},local:function(){return this._isUTC=!1,this},format:function(e){var t=g(this,e||A.defaultFormat);return this.lang().postformat(t)},add:function(e,t){var n;return n="string"==typeof e?A.duration(+t,e):A.duration(e,t),c(this,n,1),this},subtract:function(e,t){var n;return n="string"==typeof e?A.duration(+t,e):A.duration(e,t),c(this,n,-1),this},diff:function(e,t,n){var r,i,o=this._isUTC?A(e).utc():A(e).local(),a=6e4*(this.zone()-o.zone());return t&&(t=t.replace(/s$/,"")),"year"===t||"month"===t?(r=432e5*(this.daysInMonth()+o.daysInMonth()),i=12*(this.year()-o.year())+(this.month()-o.month()),i+=(this-A(this).startOf("month")-(o-A(o).startOf("month")))/r,"year"===t&&(i/=12)):(r=this-o-a,i="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?r/864e5:"week"===t?r/6048e5:r),n?i:s(i)},from:function(e,t){return A.duration(this.diff(e)).lang(this.lang()._abbr).humanize(!t)},fromNow:function(e){return this.from(A(),e)},calendar:function(){var e=this.diff(A().startOf("day"),"days",!0),t=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(t,this))},isLeapYear:function(){var e=this.year();return 0===e%4&&0!==e%100||0===e%400},isDST:function(){return this.zone()<A([this.year()]).zone()||this.zone()<A([this.year(),5]).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null==e?t:this.add({d:e-t})},startOf:function(e){switch(e=e.replace(/s$/,"")){case"year":this.month(0);case"month":this.date(1);case"week":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.day(0),this},endOf:function(e){return this.startOf(e).add(e.replace(/s?$/,"s"),1).subtract("ms",1)},isAfter:function(e,t){return t=t!==void 0?t:"millisecond",+this.clone().startOf(t)>+A(e).startOf(t)},isBefore:function(e,t){return t=t!==void 0?t:"millisecond",+this.clone().startOf(t)<+A(e).startOf(t)},isSame:function(e,t){return t=t!==void 0?t:"millisecond",+this.clone().startOf(t)===+A(e).startOf(t)},zone:function(){return this._isUTC?0:this._d.getTimezoneOffset()},daysInMonth:function(){return A.utc([this.year(),this.month()+1,0]).date()},dayOfYear:function(e){var t=O((A(this).startOf("day")-A(this).startOf("year"))/864e5)+1;return null==e?t:this.add("d",e-t)},isoWeek:function(e){var t=k(this,1,4);return null==e?t:this.add("d",7*(e-t))},week:function(e){var t=this.lang().week(this);return null==e?t:this.add("d",7*(e-t))},lang:function(t){return t===e?this._lang:(this._lang=h(t),this)}},_=0;Q.length>_;_++)M(Q[_].toLowerCase().replace(/s$/,""),Q[_]);M("year","FullYear"),A.fn.days=A.fn.day,A.fn.weeks=A.fn.week,A.fn.isoWeeks=A.fn.isoWeek,A.duration.fn=o.prototype={weeks:function(){return s(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+2592e6*this._months},humanize:function(e){var t=+this,n=T(t,!e,this.lang());return e&&(n=this.lang().pastFuture(t,n)),this.lang().postformat(n)},lang:A.fn.lang};for(_ in et)et.hasOwnProperty(_)&&(D(_,et[_]),j(_.toLowerCase()));D("Weeks",6048e5),A.lang("en",{ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),P&&(module.exports=A),"undefined"==typeof ender&&(this.moment=A),"function"==typeof define&&define.amd&&define("moment",[],function(){return A})}.call(this),define("components/moment/min/moment.min",function(){}),define("components/angular-moment/angular-moment",["angular"],function(){angular.module("angularMoment",[]),angular.module("angularMoment").directive("amTimeAgo",["$timeout",function(e){return function(t,n,r){function i(t){n.text(t.fromNow());var r=moment().diff(t,"minute"),a=3600;1>r?a=1:60>r?a=30:180>r&&(a=300),o=e(function(){i(t)},1e3*a)}var o=null;t.$watch(r.amTimeAgo,function(t){if(angular.isNumber(t))t=new Date(t);else if(angular.isString(t)){var n=(""+t).split(/[- :]/);t=new Date(n[0],n[1]-1,n[2],n[3],n[4],n[5])}o&&(e.cancel(o),o=null),i(moment(t))})}}])}),define("js/services/database.js",["app"],function(e){e.factory("database",function(){var e=function(){var e=[{id:1,title:"Learn this template!",description:"This is a list-detail template. Learn more about it at its project page!",date:new Date(2013,1,3)},{id:2,title:"Make things",description:"Make this look like that",date:new Date(2013,1,1)},{id:3,title:"Move stuff",description:"Move this over there",date:new Date(2012,11,9)},{id:4,title:"Move stuff",description:"Move this over there",date:new Date(2012,11,9)},{id:5,title:"Move stuff",description:"Move this over there",date:new Date(2012,11,9)},{id:6,title:"Move stuff",description:"Move this over there",date:new Date(2012,11,9)},{id:7,title:"Move stuff",description:"Move this over there",date:new Date(2012,11,9)},{id:8,title:"Move stuff",description:"Move this over there",date:new Date(2012,11,9)}];this.getItems=function(){return e},this.getItemById=function(t){return e.filter(function(e){return e.id===Number(t)})[0]},this.addItem=function(t){return t.id=Math.max.apply(Math,e.map(function(e){return e.id}))+1,e.push(t),t},this.editItem=function(e,t){var n=this.getItemById(e);return n.title=t.title,n.description=t.description,n.date=t.date,n}};return new e})}),define("js/services/dates.js",["app"],function(e){var t=function(e,t,n){return e=""+e,Array(t-e.length+1).join(n||" ")+e};e.factory("inputDateHandler",function(){return{format:function(e){return e.getFullYear()+"-"+t(e.getMonth()+1,2,"0")+"-"+t(e.getDate(),2,"0")},parse:function(e){return new Date(Date.parse(e))}}})}),define("js/services/http-cache.js",["app"],function(e){e.factory("indexedDbCache",[function(){return{getItemSkipExpiry:function(e){var t=localStorage.getItem(e);if(!t)return!1;try{t=JSON.parse(t)}catch(n){return console.error("getting item from cache that isnt json",t),!1}return t},getItem:function(e){var t=this.getItemSkipExpiry(e);return t?new Date(Date.parse(t.expires))<new Date?!1:t.value:!1},setItem:function(e,t,n){localStorage.setItem(e,JSON.stringify({expires:new Date(+new Date+n),value:t}))}}}]),e.factory("http",["$http","indexedDbCache","$q","$rootScope",function(e,t,n,r){var i=e,o=function(e){var o="get"===e.method.toLowerCase();if("object"!=typeof e.idbCache||!o)return i(e);var a=e.idbCache.cacheKey,s=e.idbCache.expiresInMs,u=e.idbCache.forceSkipCache,c=n.defer(),l=t.getItem(a);if(!l||u){var f=i(e);f.success(function(e,n,r){var i={data:e,status:n,headers:r};t.setItem(a,i,s),c.resolve(i)}),f.error(function(e,n,r){var i=t.getItemSkipExpiry(a);i?(console.log("Reading expired version of",a,"from cache"),c.resolve(i.value)):c.reject({data:e,status:n,headers:r})})}else c.resolve(l);return c.promise.success=function(t){return c.promise.then(function(n){t(n.data,n.status,n.headers,e),!r.$$phase&&r.$apply()}),c.promise},c.promise.error=function(t){return c.promise.then(null,function(n){t(n.data,n.status,n.headers,e),!r.$$phase&&r.$apply()}),c.promise},c.promise};return function(){[].slice.call(arguments).forEach(function(e){o[e]=function(t,n){return n=n||{},n.method=e,n.url=t,o(n)}})}("get","delete","head","jsonp"),function(){[].slice.call(arguments).forEach(function(e){o[e]=function(t,n,r){return r=r||{},r.method=e,r.url=t,r.data=n,o(r)}})}("post","put"),o}])}),define("js/services/md5.js",["app"],function(e){e.factory("md5",[function(){var e={createHash:function(e){var t,n,r,i,o,a,s,u,c,l,f=function(e,t){return e<<t|e>>>32-t},p=function(e,t){var n,r,i,o,a;return i=2147483648&e,o=2147483648&t,n=1073741824&e,r=1073741824&t,a=(1073741823&e)+(1073741823&t),n&r?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o},h=function(e,t,n){return e&t|~e&n},d=function(e,t,n){return e&n|t&~n},m=function(e,t,n){return e^t^n},g=function(e,t,n){return t^(e|~n)},v=function(e,t,n,r,i,o,a){return e=p(e,p(p(h(t,n,r),i),a)),p(f(e,o),t)},y=function(e,t,n,r,i,o,a){return e=p(e,p(p(d(t,n,r),i),a)),p(f(e,o),t)},$=function(e,t,n,r,i,o,a){return e=p(e,p(p(m(t,n,r),i),a)),p(f(e,o),t)},b=function(e,t,n,r,i,o,a){return e=p(e,p(p(g(t,n,r),i),a)),p(f(e,o),t)},x=function(e){for(var t,n=e.length,r=n+8,i=(r-r%64)/64,o=16*(i+1),a=Array(o-1),s=0,u=0;n>u;)t=(u-u%4)/4,s=8*(u%4),a[t]=a[t]|e.charCodeAt(u)<<s,u++;return t=(u-u%4)/4,s=8*(u%4),a[t]=a[t]|128<<s,a[o-2]=n<<3,a[o-1]=n>>>29,a},w=function(e){var t,n,r="",i="";for(n=0;3>=n;n++)t=255&e>>>8*n,i="0"+t.toString(16),r+=i.substr(i.length-2,2);return r},C=[],S=7,T=12,k=17,E=22,M=5,j=9,D=14,A=20,_=4,N=11,O=16,q=23,P=6,L=10,R=15,H=21;for(C=x(e),s=1732584193,u=4023233417,c=2562383102,l=271733878,t=C.length,n=0;t>n;n+=16)r=s,i=u,o=c,a=l,s=v(s,u,c,l,C[n+0],S,3614090360),l=v(l,s,u,c,C[n+1],T,3905402710),c=v(c,l,s,u,C[n+2],k,606105819),u=v(u,c,l,s,C[n+3],E,3250441966),s=v(s,u,c,l,C[n+4],S,4118548399),l=v(l,s,u,c,C[n+5],T,1200080426),c=v(c,l,s,u,C[n+6],k,2821735955),u=v(u,c,l,s,C[n+7],E,4249261313),s=v(s,u,c,l,C[n+8],S,1770035416),l=v(l,s,u,c,C[n+9],T,2336552879),c=v(c,l,s,u,C[n+10],k,4294925233),u=v(u,c,l,s,C[n+11],E,2304563134),s=v(s,u,c,l,C[n+12],S,1804603682),l=v(l,s,u,c,C[n+13],T,4254626195),c=v(c,l,s,u,C[n+14],k,2792965006),u=v(u,c,l,s,C[n+15],E,1236535329),s=y(s,u,c,l,C[n+1],M,4129170786),l=y(l,s,u,c,C[n+6],j,3225465664),c=y(c,l,s,u,C[n+11],D,643717713),u=y(u,c,l,s,C[n+0],A,3921069994),s=y(s,u,c,l,C[n+5],M,3593408605),l=y(l,s,u,c,C[n+10],j,38016083),c=y(c,l,s,u,C[n+15],D,3634488961),u=y(u,c,l,s,C[n+4],A,3889429448),s=y(s,u,c,l,C[n+9],M,568446438),l=y(l,s,u,c,C[n+14],j,3275163606),c=y(c,l,s,u,C[n+3],D,4107603335),u=y(u,c,l,s,C[n+8],A,1163531501),s=y(s,u,c,l,C[n+13],M,2850285829),l=y(l,s,u,c,C[n+2],j,4243563512),c=y(c,l,s,u,C[n+7],D,1735328473),u=y(u,c,l,s,C[n+12],A,2368359562),s=$(s,u,c,l,C[n+5],_,4294588738),l=$(l,s,u,c,C[n+8],N,2272392833),c=$(c,l,s,u,C[n+11],O,1839030562),u=$(u,c,l,s,C[n+14],q,4259657740),s=$(s,u,c,l,C[n+1],_,2763975236),l=$(l,s,u,c,C[n+4],N,1272893353),c=$(c,l,s,u,C[n+7],O,4139469664),u=$(u,c,l,s,C[n+10],q,3200236656),s=$(s,u,c,l,C[n+13],_,681279174),l=$(l,s,u,c,C[n+0],N,3936430074),c=$(c,l,s,u,C[n+3],O,3572445317),u=$(u,c,l,s,C[n+6],q,76029189),s=$(s,u,c,l,C[n+9],_,3654602809),l=$(l,s,u,c,C[n+12],N,3873151461),c=$(c,l,s,u,C[n+15],O,530742520),u=$(u,c,l,s,C[n+2],q,3299628645),s=b(s,u,c,l,C[n+0],P,4096336452),l=b(l,s,u,c,C[n+7],L,1126891415),c=b(c,l,s,u,C[n+14],R,2878612391),u=b(u,c,l,s,C[n+5],H,4237533241),s=b(s,u,c,l,C[n+12],P,1700485571),l=b(l,s,u,c,C[n+3],L,2399980690),c=b(c,l,s,u,C[n+10],R,4293915773),u=b(u,c,l,s,C[n+1],H,2240044497),s=b(s,u,c,l,C[n+8],P,1873313359),l=b(l,s,u,c,C[n+15],L,4264355552),c=b(c,l,s,u,C[n+6],R,2734768916),u=b(u,c,l,s,C[n+13],H,1309151649),s=b(s,u,c,l,C[n+4],P,4149444226),l=b(l,s,u,c,C[n+11],L,3174756917),c=b(c,l,s,u,C[n+2],R,718787259),u=b(u,c,l,s,C[n+9],H,3951481745),s=p(s,r),u=p(u,i),c=p(c,o),l=p(l,a);var F=w(s)+w(u)+w(c)+w(l);return F.toLowerCase()}};return e}])}),define("js/services/Auth.js",["app"],function(e){e.factory("Auth",["$http","$rootScope","$cookieStore",function(e,t,n){var r=globals.accessLevels,i=globals.userRoles,o=globals.RootPath,a=globals.ConsumerKey;return t.user=n.get("user")||{username:"",role:i.public},t.accessLevels=r,t.userRoles=i,{authorize:function(e,n){return void 0===n&&(n=t.user.role),e&n},isLoggedIn:function(e){return void 0===e&&(e=t.user),e.role===i.user||e.role===i.admin},register:function(t,n,r){e.post("/register",t).success(n).error(r)},login:function(t,n,r){e({method:"GET",url:o+"/users?user_email="+t.username+"&password="+t.password+"&callback=LOGIN_SUCCESS",headers:{ConsumerKey:a}}).success(function(e,t){n(e,t)}).error(function(e,t){console.log("data: "+e),console.log("status: "+t),r(e,t)})},logout:function(e){t.user.username="",t.user.role=i.public,n.remove("user"),e()},accessLevels:r,userRoles:i}}])}),define("js/services/CheckRetina.js",["app"],function(e){e.factory("checkRetina",[function(){var e={isRetina:function(e){var t=0;return e.devicePixelRatio>=1.5&&(t=1),t}};return e}])}),define("js/services/angular-xml.js",["app"],function(e){e.filter("xmlFilter",["$window",function(e){return function(t){var n,r;if(e.DOMParser)r=new e.DOMParser,n=r.parseFromString(t,"text/xml");else{if(!e.ActiveXObject)throw Error("Cannot parse XML in this environment.");n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async=!1,n.loadXml(t)}return ng.element(n)}}])}),define("js/controllers/News.js",["app"],function(e){e.controller("NewsCtrl",["http","$scope",function(e,t){t.allnews=[],t.carousel=[],t.getFeed=function(n,r){r||(r=!1),e({idbCache:{cacheKey:"news",expiresInMs:6e4,forceSkipCache:r},method:"GET",url:globals.RootPath+"/"+n}).success(function(e,n){if(200!==n)return!1;t.allnews=[];for(var r=0;e.data.length>r;r++){var i=e.data[r],o="";switch(i.category){case"Dešavanja":o="events";break;case"Aktuelno":o="current";break;case"Blog":o="blog";break;case"Vijesti":o="news"}i.catClass=o;var a=moment(i.published).format("DD.MM.YYYY.");i.pubDate=a,t.allnews.push(i)}for(var r=0;e.gallery.length>r;r++){var s=e.gallery[r];t.carousel.push(s)}t.image=e.gallery[0]}).error(function(e,t){console.log("error status: "+t),console.debug(e)}),t.showModal="hideModal"},0>=t.allnews.length&&t.getFeed("all.json",!1),t.showAll=function(){t.showModal="showModal"==t.showModal?"hideModal":"showModal"}}])}),define("js/controllers/SingleCtrl.js",["app"],function(e){e.controller("SingleCtrl",["$http","$scope","$routeParams",function(e,t,n){t.news=[],e({method:"GET",url:globals.RootPath+"/all.json?id="+n.id}).success(function(e,n){if(200!==n)return!1;t.news=e.data[0];var r=t.news,i="";switch(r.category){case"Dešavanja":i="events";break;case"Aktuelno":i="current";break;case"Blog":i="blog";break;case"Vijesti":i="news"}r.catClass=i;var o=moment(r.published).format("DD.MM.YYYY.");r.pubDate=o}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}])}),define("js/controllers/CategoryCtrl.js",["app"],function(e){e.controller("CategoryCtrl",["$http","$scope","$routeParams",function(e,t,n){t.categories=[],t.getFeed=function(r){e({method:"GET",url:globals.RootPath+"/"+r+"?parent="+n.categoryID}).success(function(e,n){if(200!==n)return!1;t.categories=[];for(var r=0;e.data.length>r;r++){var i=e.data[r];t.categories.push(i)}}).error(function(e,t){console.log("error status: "+t),console.debug(e)})},t.searchStores=function(){var r=t.search;e({method:"GET",url:globals.RootPath+"/search.json?search="+r+"&category="+n.categoryID}).success(function(e){t.searchResult=e.data,t.searchResults=[];for(var n=0;e.data.length>n;n++){var r=e.data[n];t.searchResults.push(r)}t.searchResult.length>0?($(".beforeSearch").hide(),$(".searchSuccess").show()):($(".searchSuccess").hide(),$(".beforeSearch").show()),0==t.searchResult.length&&($(".searchSuccess").hide(),$(".beforeSearch").hide(),$(".noSearchResult").show())}).error(function(e,t){console.log("error status: "+t),console.debug(e)})},t.getFeed("store_categories.json")}])}),define("js/controllers/RestCtrl.js",["app"],function(e){e.controller("RestCtrl",["$http","$scope","$routeParams",function(e,t,n){t.categories=[],t.getFeed=function(r){e({method:"GET",url:globals.RootPath+"/"+r+"?store_category="+n.storeCatID}).success(function(e,n){if(200!==n)return!1;t.categories=[];for(var r=0;e.data.length>r;r++){var i=e.data[r];i.backgroundImage=i.gallery_image.length>0?i.gallery_image:"/images/default_background_image.png",t.categories.push(i)}}).error(function(e,t){console.log("error status: "+t),console.debug(e)})},t.getFeed("stores.json")}])}),define("js/controllers/StoreCtrl.js",["app"],function(e){e.controller("StoreCtrl",["$http","$scope","$routeParams",function(e,t,n){function r(){t.storeInfo={},e({method:"GET",url:globals.RootPath+"/stores.json?id="+n.storeID}).success(function(e,n){if(200!==n)return!1;t.store=e.data[0];var r=t.store;i(),r.backgroundImage=r.gallery_image.length>0?r.gallery_image:"/images/default_background_image.png"}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}function i(){t.allStoreNews=[],e({method:"GET",url:globals.RootPath+"/all.json?store="+n.storeID}).success(function(e,n){if(200!==n)return!1;t.allStoreNews=[];for(var r=0;e.data.length>r;r++){var i=e.data[r],a="";switch(i.category){case"Dešavanja":a="events";break;case"Aktuelno":a="current";break;case"Blog":a="blog";break;case"Vijesti":a="news"}i.catClass=a;var s=moment(i.published).format("DD.MM.YYYY.");i.pubDate=s,t.allStoreNews.push(i)}o()}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}function o(){t.similarStores=[],e({method:"GET",url:globals.RootPath+"/similar_stores.json?id="+n.storeID}).success(function(e,n){if(200!==n)return!1;t.similarStores=[];for(var r=0;e.data.length>r;r++){var i=e.data[r],o=moment(i.published).format("DD.MM.YYYY.");i.pubDate=o,t.similarStores.push(i),i.backgroundImage=i.gallery_image.length>0?i.gallery_image:"/images/default_background_image.png"}}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}function a(){t.sales=[],e({method:"GET",url:globals.RootPath+"/sales.json?store="+n.storeID}).success(function(e,n){if(200!==n)return!1;t.sales=[];for(var r=0;e.data.length>r;r++){var i=e.data[r],o=1*i.percentage;20>=i.percentage?o="percentage20":i.percentage>20&&40>=i.percentage?o="percentage40":i.percentage>40&&60>=i.percentage?o="percentage60":i.percentage>60&&80>=i.percentage?o="percentage80":i.percentage>80&&100>=i.percentage&&(o="percentage100"),i.saleClass=o;var a=moment(i.published).format("DD.MM.YYYY.");i.pubDate=a,t.sales.push(i),t.salesFetched=!0}}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}t.switchTab=function(e){switch(e){case"info":t.section_info=!0,t.section_sales=!1,t.section_map=!1;break;case"sales":t.section_info=!1,t.section_sales=!0,t.section_map=!1,t.salesFetched||a();break;case"map":t.section_info=!1,t.section_sales=!1,t.section_map=!0}},r(),t.section_info=!0}])}),define("js/controllers/DescCtrl.js",["app"],function(e){e.controller("DescCtrl",["$http","$scope","$routeParams",function(e,t,n){t.descStore=[],e({method:"GET",url:globals.RootPath+"/stores.json?id="+n.storeID}).success(function(e,n){return 200!==n?!1:(t.descStore=e.data[0],void 0)}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}])}),define("js/controllers/SalesCtrl.js",["app"],function(e){e.controller("SalesCtrl",["$http","$scope","$routeParams",function(e,t){t.sales=[],e({method:"GET",url:globals.RootPath+"/sales.json"}).success(function(e,n){if(200!==n)return!1;t.sales=[];for(var r=0;e.data.length>r;r++){var i=e.data[r],o=1*i.percentage;20>=i.percentage?o="percentage20":i.percentage>20&&40>=i.percentage?o="percentage40":i.percentage>40&&60>=i.percentage?o="percentage60":i.percentage>60&&80>=i.percentage?o="percentage80":i.percentage>80&&100>=i.percentage&&(o="percentage100"),i.saleClass=o;var a=moment(i.published).format("DD.MM.YYYY.");i.pubDate=a,t.sales.push(i)}}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}])}),define("js/controllers/AboutCtrl.js",["app"],function(e){e.controller("AboutCtrl",["$http","$scope",function(e,t){t.carousel=[],e({method:"GET",url:globals.RootPath+"/about.json"}).success(function(e,n){if(200!==n)return!1;t.about=e.data;for(var r=t.about.gallery,i=0;r.length>i;i++){var o=r[i];t.carousel.push(o)}t.image=r[0]}).error(function(e,t){console.log("error status: "+t),console.debug(e)})}])}),define("js/controllers/MapCtrl.js",["app"],function(e){e.controller("MapCtrl",["$http","$scope","$routeParams",function(e,t){t.switchTab=function(e){switch(e){case"one":t.section_one=!0,t.section_two=!1;break;case"two":t.section_one=!1,t.section_two=!0}},t.section_one=!0,t.showAll=function(){t.showModal="showModal"==t.showModal?"hideModal":"showModal"}}])}),require.config({shim:{angular:{exports:"angular"}},paths:{app:"js/app",angular:"./components/angular/angular"},baseUrl:"/"}),function(){console.time("requirejs"),require(["app","js/jquery-2.0.2.min.js","js/mobile-nav.js","js/globals.js","angular","components/angular-sanitize/angular-sanitize","components/moment/min/moment.min","components/angular-moment/angular-moment","js/services/database.js","js/services/dates.js","js/services/http-cache.js","js/services/md5.js","js/services/Auth.js","js/services/CheckRetina.js","js/services/angular-xml.js","js/controllers/News.js","js/controllers/SingleCtrl.js","js/controllers/CategoryCtrl.js","js/controllers/RestCtrl.js","js/controllers/StoreCtrl.js","js/controllers/DescCtrl.js","js/controllers/SalesCtrl.js","js/controllers/AboutCtrl.js","js/controllers/MapCtrl.js"],function(){console.timeEnd("requirejs"),angular.bootstrap(document,["app"])})}(),define("js/main",function(){});