UNPKG

photoncss

Version:

Go from 0 to app in seconds

2 lines 236 kB
/*! For license information please see photon.js.LICENSE.txt */ (()=>{var e={989:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Snackbar=t.Menu=t.Drawer=t.Dialog=t.Waves=t.resize=t.guid=void 0;const o=r(n(96));t.guid=o.default;const i=r(n(720));t.resize=i.default;const a=r(n(442));t.Waves=a.default;const l=r(n(550));t.Dialog=l.default;const u=r(n(917));t.Drawer=u.default;const s=r(n(535));t.Menu=s.default;const c=r(n(835));t.Snackbar=c.default,t.default={guid:o.default,resize:i.default,Dialog:l.default,Drawer:u.default,Menu:s.default,Snackbar:c.default}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.arbitraryScale=void 0;const o=r(n(563));function i(e,t,n){const r=(0,o.default)(e),{clientHeight:i,clientWidth:a}=e;if(r.hasClass("waves-ink"))return.48;let l=t,u=n;if(l>a/2&&(l=a-l),u>i/2&&(u=i-u),l=a-l,u=i-u,i===a)return(a-Math.abs(a-(i-(a-l)-(i-u))-a))/50;const s=(1.019*l+.35*u+(i+a)/2*.118)/52;return r.hasClass("waves-touch")?(r.removeClass("waves-touch"),s/1.1):s}t.arbitraryScale=i,t.default=function(){const e=document.querySelectorAll.bind(document),t=Object.prototype.toString,n="ontouchstart"in window,r=e=>"function"==typeof e||"object"==typeof e&&!!e;function a(n){const o=t.call(n);return"[object String]"===o?Array.from(e(n)):r(n)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(o)&&n.hasOwnProperty("length")||r(i=n)&&i.nodeType>0?[n]:[];var i}function l(e){const t=e&&e.ownerDocument,n=t.documentElement,r=(e=>{return null!==(t=e)&&t===t.window?e:9===e.nodeType&&e.defaultView;var t})(t),o=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0};return{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}}function u(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${n}:${e[n]};`);return t.join("")}const s={duration:2e3,delay:50,show(e,t){if(2===e.button)return!1;t=t||this;const n=document.createElement("div");n.className="waves-ripple waves-rippling",t.appendChild(n);const r=l(t);let a=0,c=0;"touches"in e&&e.touches.length?(c=e.touches[0].pageX-r.left,a=e.touches[0].pageY-r.top):(c=e.pageX-r.left,a=e.pageY-r.top),c=c>=0?c:0,a=a>=0?a:0,(0,o.default)(t).hasClass("waves-ink")&&(c=t.clientWidth/2,a=t.clientHeight/2);const f=`scale(${i(t,c,a)})`,d="translate(0,0)";n.setAttribute("data-hold",Date.now().toString()),n.setAttribute("data-x",c.toString()),n.setAttribute("data-y",a.toString()),n.setAttribute("data-scale",f),n.setAttribute("data-translate",d);const p={top:`${a}px`,left:`${c}px`};n.classList.add("waves-notransition"),n.setAttribute("style",u(p)),n.classList.remove("waves-notransition"),p.transform=`${f} ${d}`,p.transform=`${f} ${d}`,p.opacity="1";const h="mousemove"===e.type?2500:s.duration;p["transition-duration"]=`${h}ms`,n.setAttribute("style",u(p))},hide(e,t){const r=(t=t||this).getElementsByClassName("waves-rippling");for(let n=0,o=r.length;n<o;n++)f(e,t,r[n]);n&&((0,o.default)(t).off("touchend").on("touchend",(function(e){s.hide(e,this)})),(0,o.default)(t).off("touchcancel").on("touchcancel",(function(e){s.hide(e,this)}))),(0,o.default)(t).off("mouseup").on("mouseup",(function(e){s.hide(e,this)})),(0,o.default)(t).off("mouseleave").on("mouseleave",(function(e){s.hide(e,this)}))}},c={input(e){const t=e.parentNode;if("i"===t.tagName.toLowerCase()&&t.classList.contains("waves-effect"))return;const n=document.createElement("i");n.className=`${e.className} waves-input-wrapper`,e.className="waves-button-input",t.replaceChild(n,e),n.appendChild(e);const r=window.getComputedStyle(e,null),o=r.color,i=r.backgroundColor;n.setAttribute("style",`color: ${o};background:${i}`),e.setAttribute("style","background-color:rgba(0,0,0,0);")},img(e){const t=e.parentNode;if("i"===t.tagName.toLowerCase()&&t.classList.contains("waves-effect"))return;const n=document.createElement("i");t.replaceChild(n,e),n.appendChild(e)}};function f(e,t,n){if(!n)return;n.classList.remove("waves-rippling");const r=n.getAttribute("data-scale"),o=n.getAttribute("data-x"),i=n.getAttribute("data-y"),a=n.getAttribute("data-translate");let l=350-(Date.now()-Number(n.getAttribute("data-hold")));l<0&&(l=0),"mousemove"===e.type&&(l=150);const c="mousemove"===e.type?2500:s.duration;setTimeout((function(){const e={top:`${i}px`,left:`${o}px`,opacity:"0","transition-duration":`${c}ms`,transform:`${r} ${a}`};n.setAttribute("style",u(e)),setTimeout((function(){try{t.removeChild(n)}catch(e){return!1}}),c)}),l)}const d={touches:0,allowEvent:e=>!/^(mousedown|mousemove)$/.test(e.type)||!d.touches,registerEvent(e){const{type:t}=e;"touchstart"===t?d.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout((function(){d.touches&&(d.touches-=1)}),500)}};function p(e){const t=function(e){if(!1===d.allowEvent(e))return null;let t=null,n=e.target;for(;n.parentElement;){if(!(n instanceof SVGElement)&&n.classList.contains("waves-effect")){t=n;break}n=n.parentElement}return t}(e);if(null!==t&&!t.getAttribute("disabled")&&!t.classList.contains("disabled"))if(d.registerEvent(e),"touchstart"===e.type&&s.delay){let n=!1,r=setTimeout((function(){r=null,s.show(e,t)}),s.delay);const o=function(o){r&&(clearTimeout(r),r=null,s.show(e,t)),n||(n=!0,s.hide(o,t)),a()},i=function(e){r&&(clearTimeout(r),r=null),o(e),a()};t.addEventListener("touchmove",i,!1),t.addEventListener("touchend",o,!1),t.addEventListener("touchcancel",o,!1);const a=function(){t.removeEventListener("touchmove",i),t.removeEventListener("touchend",o),t.removeEventListener("touchcancel",o)}}else s.show(e,t),n&&(t.addEventListener("touchend",(function(e){s.hide(e,this)}),!1),t.addEventListener("touchcancel",(function(e){s.hide(e,this)}),!1)),t.addEventListener("mouseup",(function(e){s.hide(e,this)}),!1),t.addEventListener("mouseleave",(function(e){s.hide(e,this)}),!1)}const h={init(e){const t=document.body;"duration"in(e=e||{})&&(s.duration=e.duration),"delay"in e&&(s.delay=e.delay),n&&(t.addEventListener("touchstart",p,!1),t.addEventListener("touchcancel",d.registerEvent,!1),t.addEventListener("touchend",d.registerEvent,!1)),t.addEventListener("mousedown",p,!1)},attach(e,n){e=a(e);let r,o,i="";"[object Array]"===t.call(n)&&(i=n.join(" ")),i=i?` ${i}`:"";for(let t=0,n=e.length;t<n;t++)r=e[t],o=r.tagName.toLowerCase(),-1!==["input","img"].indexOf(o)&&(c[o](r),r=r.parentElement),-1===r.className.indexOf("waves-effect")&&(r.className+=`waves-effect ${i}`)},ripple(e,t){e=a(e);const{length:n}=e;if((t=t||{}).wait=t.wait||0,t.position=t.position||null,t.ink=t.ink||!1,n){let r,o,i;const a={x:0,y:0};let u=0;const c={type:"mousedown",button:1},f=function(e,t){return function(){s.hide(e,t)}};for(;u<n;u++)r=e[u],o=t.position||{x:r.clientWidth/2,y:r.clientHeight/2},i=l(r),a.x=i.left+o.x,a.y=i.top+o.y,c.pageX=a.x,c.pageY=a.y,s.show(c,r),t.wait>=0&&null!==t.wait&&setTimeout(f({type:"mouseup",button:1},r),t.wait)}},calm(e){const t={type:"mouseup",button:1};for(let n=0,r=(e=a(e)).length;n<r;n++)s.hide(t,e[n])}};return(0,o.default)((function(){h.init()})),h}.call("object"==typeof n.g?n.g:this)},550:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=void 0;const o=r(n(563)),i=n(116),a=r(n(96));class l{constructor(e,t){this.options={id:(0,a.default)(),closeOnBlur:!0,...t};const{id:n}=this.options,r=(0,o.default)("body").append(`<div id="${n}" class="photon-dialog-wrapper hidden"></div>`).children(`#${n}`);(0,i.render)(e,r[0]),this.target=r,(0,o.default)(document.body).on("click",(e=>{e.target===r[0]&&this.options.closeOnBlur&&this.close()}))}close(){const e=this.target;return e.addClass("hidden"),setTimeout((()=>e.remove()),500),this}open(){const e=this.target;return setTimeout((()=>e.removeClass("hidden")),1),this}get isOpen(){return!this.target.hasClass("hidden")}}t.Dialog=l,t.default=function(e,t){return new l(e,t)}},917:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Drawer=void 0;const o=r(n(563)),i=r(n(96));class a{constructor(e){this.target=(0,o.default)(e);const t=this.target,n=this.target.children(".drawer-swipe-target");if(t.is("[md]"))return;t.attr("md","");const r=t.attr("id")||(0,i.default)();t.attr("id",r),(0,o.default)(`<div class="modal-close-area" modal="${r}"></div>`).appendTo((0,o.default)("body"));const a=(0,o.default)(`.modal-close-area[modal="${r}"]`),l=parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[4]),u=parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[5]);!function e(){0!==t.length&&requestAnimationFrame(e);const n=parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[4]),r=parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[5]);Math.abs(n-l)<2&&Math.abs(r-u)<2?(t.removeClass("shadow"),a.removeClass("active")):(t.addClass("shadow"),a.addClass("active"))}(),a.on("click touchstart",(function(e){e.stopPropagation(),t.addClass("transition").removeClass("active"),t.hasClass("from-right")?t.css({transform:"translateX(100%)"}):t.hasClass("from-bottom")?t.css({transform:"translateY(100%)"}):t.hasClass("from-top")?t.css({transform:"translateY(-100%)"}):t.css({transform:"translateX(-100%)"}),setTimeout((()=>t.removeClass("transition shadow")),250)}));let s=!1;n.on("touchstart",(()=>s=!0)),n.on("touchend",(function(){if(s=!1,t.addClass("transition"),t.hasClass("from-right")){const e=parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[4]),n=window.innerWidth-e>(t.width()||0)/2;t.css({transform:n?"translateX(0%)":"translateX(100%)"})}else if(t.hasClass("from-bottom")){const e=parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[5])<(t.height()||0)/2;t.css({transform:e?"translateY(0%)":"translateY(100%)"})}else if(t.hasClass("from-top")){const e=parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[5]),n=(t.height()||0)+e<(t.height()||0)/2;t.css({transform:n?"translateY(-100%)":"translateY(0%)"})}else{const e=(t.width()||0)+parseInt(t.css("transform").split("(")[1].split(")")[0].split(",")[4])<(t.width()||0)/2;t.css({transform:e?"translateX(-100%)":"translateX(0%)"})}setTimeout((()=>t.removeClass("transition")),250)})),n.on("touchmove",(function(e){if(t.removeClass("active"),!s)return;const n=e.touches[0];t.hasClass("from-right")?t.css({transform:`translateX(${Math.max(n.clientX-Math.abs(window.innerWidth-(t.width()||0)),0)}px)`}):t.hasClass("from-bottom")?t.css({transform:`translateY(${Math.max(n.clientY-Math.abs(window.innerHeight-(t.height()||0)),0)}px)`}):t.hasClass("from-top")?t.css({transform:`translateY(${Math.min(n.clientY-(t.height()||0),0)}px)`}):t.css({transform:`translateX(${Math.min(n.clientX-(t.width()||0),0)}px)`})}))}open(){const e=this.target;return e.addClass("active transition"),setTimeout((()=>e.removeClass("transition")),250),this}close(){const e=this.target;return e.addClass("transition").removeClass("active"),setTimeout((()=>e.removeClass("transition")),250),this}get isOpen(){return this.target.hasClass("active")}}t.Drawer=a,t.default=function(e){return new a(e)}},535:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const o=r(n(563)),i=r(n(96)),a=r(n(771));class l{constructor(e){this.explicitPosition=!1,this.target=(0,o.default)(e);const t=this.target;if(t.is("[md]"))return;t.attr("md","");const n=t.attr("id")||(0,i.default)();t.attr("id",n),t.children(".photon-list").children(".photon-list-item").on("click",(()=>this.close()))}__getModal(e){return(0,o.default)(`.modal-close-area[modal="${e}"]`).length>0?(0,o.default)(`.modal-close-area[modal="${e}"]`):((0,o.default)(`<div class="modal-close-area transparent" modal="${e}"></div>`).appendTo((0,o.default)("body")),(0,o.default)(`.modal-close-area[modal="${e}"]`).on("click",(()=>this.close())))}anchor(e,t){let n=e||0,r=t||0;this.explicitPosition=!0;const i=this.target,a=i.width(),l=i.height();if(void 0===t&&"number"!=typeof e){const t=(0,o.default)(e);if("input"===t[0].tagName.toLowerCase()){const{top:e,left:n}=t.offset();i.css({top:e+t[0].clientHeight+parseInt(t.css("border-width"))+2,left:n,width:t[0].clientWidth+2*parseInt(t.css("border-width"))})}else n=t.offset()?.left,r=t.offset()?.top,i.css({left:Math.max(Math.min(n,window.innerWidth-1.12*a-8),8),top:Math.max(Math.min(r,window.innerHeight-l-8),8)});let u=!1;t.parents().each((function(){if("fixed"===(0,o.default)(this).css("position")){if(u)return;i.css({position:"fixed"}),n-=(0,o.default)(document).scrollLeft(),r-=(0,o.default)(document).scrollTop(),i.css({left:Math.max(Math.min(n,window.innerWidth-1.12*a-8),8),top:Math.max(Math.min(r,window.innerHeight-l-8),8)}),u=!0}}))}else i.css({left:Math.max(Math.min(n,window.innerWidth-1.12*a-8),8),top:Math.max(Math.min(r,window.innerHeight-l-8),8)});return n<window.innerWidth-a-8&&r<window.innerHeight-l-8&&i.removeClass("anchor-tl anchor-tr anchor-bl anchor-br").addClass("anchor-tl"),n>window.innerWidth-a-8&&r<window.innerHeight-l-8&&i.removeClass("anchor-tl anchor-tr anchor-bl anchor-br").addClass("anchor-tr"),n<window.innerWidth-a-8&&r>window.innerHeight-l-8&&i.removeClass("anchor-tl anchor-tr anchor-bl anchor-br").addClass("anchor-bl"),n>window.innerWidth-a-8&&r>window.innerHeight-l-8&&i.removeClass("anchor-tl anchor-tr anchor-bl anchor-br").addClass("anchor-br"),this}open(){const e=this.target,t=e.width(),n=e.height(),r=this.__getModal(e.attr("id"));if(!this.explicitPosition){const r=(0,a.default)().x,o=(0,a.default)().y;e.css({left:Math.max(Math.min(r,window.innerWidth-t-8),8),top:Math.max(Math.min(o,window.innerHeight-n-8),8)})}return requestAnimationFrame((function(){[e,r].map((e=>e.addClass("active")))})),this}close(){const e=this.target,t=(0,o.default)(`.modal-close-area[modal="${e.attr("id")}"]`);return[e,t].map((e=>e.removeClass("active"))),setTimeout((()=>t.remove()),300),this}get isOpen(){return this.target.hasClass("active")}}t.Menu=l,t.default=function(e){return new l(e)}},835:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Snackbar=t.getNotificationContainer=void 0;const o=r(n(563)),i=r(n(96)),a=n(116);function l(){return 0===(0,o.default)("#photon-notification-container").length&&(0,o.default)("body").append('<div id="photon-notification-container"></div>'),(0,o.default)("#photon-notification-container")}t.getNotificationContainer=l;class u{constructor(e,t){this.options={duration:1e10,id:(0,i.default)(),...t};const n=l().append(`<div id="${this.options.id}" class="photon-snackbar-wapper hidden"></div>`).children(`#${this.options.id}`);(0,a.render)(e,n[0]),this.snackbar=(0,o.default)(`#${this.options.id}`),setTimeout((()=>this.hide()),this.options.duration),this.show()}show(){return setTimeout((()=>{this.snackbar.removeClass("hidden")}),50),this}hide(){return setTimeout((()=>{this.snackbar.addClass("hidden"),setTimeout((()=>this.snackbar.remove()),500)}),50),this}get isOpen(){return!this.snackbar.hasClass("hidden")}}t.Snackbar=u,t.default=function(e,t){return new u(e,t)}},771:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(563));let i=0,a=0,l=!1;(0,o.default)("body").on("mousemove",(function(e){i=e.pageX,a=e.pageY})),(0,o.default)("body").on("mousedown",(function(){l=!0})),(0,o.default)("body").on("mouseup",(function(){l=!1})),t.default=function(){return{x:i,y:a,isMouseDown:l}}},96:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}},720:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(563));function i(){const e=(0,o.default)("main"),t=(0,o.default)("footer");t[0]?e.css("min-height",window.innerHeight-t[0].clientHeight-20):e.css("min-height",window.innerHeight-16)}t.default=i,(0,o.default)((function e(){requestAnimationFrame(e),i()}))},563:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,o){"use strict";var i=[],a=Object.getPrototypeOf,l=i.slice,u=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},s=i.push,c=i.indexOf,f={},d=f.toString,p=f.hasOwnProperty,h=p.toString,m=h.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in w)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[d.call(e)]||"object":typeof e}var E="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}S.fn=S.prototype={jquery:E,constructor:S,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},S.extend=S.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},l=1,u=arguments.length,s=!1;for("boolean"==typeof a&&(s=a,a=arguments[l]||{},l++),"object"==typeof a||v(a)||(a={}),l===u&&(a=this,l--);l<u;l++)if(null!=(e=arguments[l]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(s&&r&&(S.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||S.isPlainObject(n)?n:{},o=!1,a[t]=S.extend(s,i,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(E+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e)||(t=a(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||h.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){x(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?S.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(C(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return u(a)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=i[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){f["[object "+t+"]"]=t.toLowerCase()}));var T=function(e){var t,n,r,o,i,a,l,u,s,c,f,d,p,h,m,g,v,y,b,w="sizzle"+1*new Date,x=e.document,k=0,E=0,S=ue(),C=ue(),T=ue(),_=ue(),N=function(e,t){return e===t&&(f=!0),0},L={}.hasOwnProperty,P=[],D=P.pop,O=P.push,M=P.push,A=P.slice,j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\[[\\x20\\t\\r\\n\\f]*("+I+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+z+"*\\]",H=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",$=new RegExp(z+"+","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),B=new RegExp(z+"|>"),V=new RegExp(H),Q=new RegExp("^"+I+"$"),X={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){d()},ae=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(P=A.call(x.childNodes),x.childNodes),P[x.childNodes.length].nodeType}catch(e){M={apply:P.length?function(e,t){O.apply(e,A.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function le(e,t,r,o){var i,l,s,c,f,h,v,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!o&&(d(t),t=t||p,m)){if(11!==x&&(f=Z.exec(e)))if(i=f[1]){if(9===x){if(!(s=t.getElementById(i)))return r;if(s.id===i)return r.push(s),r}else if(y&&(s=y.getElementById(i))&&b(t,s)&&s.id===i)return r.push(s),r}else{if(f[2])return M.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!_[e+" "]&&(!g||!g.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===x&&(B.test(e)||U.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,oe):t.setAttribute("id",c=w)),l=(h=a(e)).length;l--;)h[l]=(c?"#"+c:":scope")+" "+be(h[l]);v=h.join(",")}try{return M.apply(r,y.querySelectorAll(v)),r}catch(t){_(e,!0)}finally{c===w&&t.removeAttribute("id")}}}return u(e.replace(q,"$1"),t,r,o)}function ue(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function se(e){return e[w]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return se((function(t){return t=+t,se((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=le.support={},i=le.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},d=le.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:x;return a!=p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,m=!i(p),x!=p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=ce((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",H)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),b=t||J.test(h.contains)?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},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==x&&b(x,e)?-1:t==p||t.ownerDocument==x&&b(x,t)?1:c?j(c,e)-j(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],l=[t];if(!o||!i)return e==p?-1:t==p?1:o?-1:i?1:c?j(c,e)-j(c,t):0;if(o===i)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[r]===l[r];)r++;return r?de(a[r],l[r]):a[r]==x?-1:l[r]==x?1:0},p):p},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!_[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){_(t,!0)}return le(t,p,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),b(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var o=r.attrHandle[t.toLowerCase()],i=o&&L.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},le.escape=function(e){return(e+"").replace(re,oe)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=le.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+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},r=le.selectors={cacheLength:50,createPseudo:se,match:X,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||le.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]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+z+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=le.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var s,c,f,d,p,h,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=l&&t.nodeName.toLowerCase(),y=!u&&!l,b=!1;if(g){if(i){for(;m;){for(d=t;d=d[m];)if(l?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(s=(c=(f=(d=g)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===k&&s[1])&&s[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[k,p,b];break}}else if(y&&(b=p=(s=(c=(f=(d=t)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===k&&s[1]),!1===b)for(;(d=++p&&d&&d[m]||(b=p=0)||h.pop())&&((l?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(f=d[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[k,b]),d!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=j(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:se((function(e){var t=[],n=[],r=l(e.replace(q,"$1"));return r[w]?se((function(e,t,n,o){for(var i,a=r(e,null,o,[]),l=e.length;l--;)(i=a[l])&&(e[l]=!(t[l]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:se((function(e){return function(t){return le(e,t).length>0}})),contains:se((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:se((function(e){return Q.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.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"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,l=E++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,u){var s,c,f,d=[k,l];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[w]||(t[w]={}))[t.uniqueID]||(f[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((s=c[i])&&s[0]===k&&s[1]===l)return d[2]=s[2];if(c[i]=d,d[2]=e(t,n,u))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function ke(e,t,n,r,o){for(var i,a=[],l=0,u=e.length,s=null!=t;l<u;l++)(i=e[l])&&(n&&!n(i,r,o)||(a.push(i),s&&t.push(l)));return a}function Ee(e,t,n,r,o,i){return r&&!r[w]&&(r=Ee(r)),o&&!o[w]&&(o=Ee(o,i)),se((function(i,a,l,u){var s,c,f,d=[],p=[],h=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)le(e,t[r],n);return n}(t||"*",l.nodeType?[l]:l,[]),g=!e||!i&&t?m:ke(m,d,e,l,u),v=n?o||(i?e:h||r)?[]:a:g;if(n&&n(g,v,l,u),r)for(s=ke(v,p),r(s,[],l,u),c=s.length;c--;)(f=s[c])&&(v[p[c]]=!(g[p[c]]=f));if(i){if(o||e){if(o){for(s=[],c=v.length;c--;)(f=v[c])&&s.push(g[c]=f);o(null,v=[],s,u)}for(c=v.length;c--;)(f=v[c])&&(s=o?j(i,f):d[c])>-1&&(i[s]=!(a[s]=f))}}else v=ke(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):M.apply(a,v)}))}function Se(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],l=a||r.relative[" "],u=a?1:0,c=we((function(e){return e===t}),l,!0),f=we((function(e){return j(t,e)>-1}),l,!0),d=[function(e,n,r){var o=!a&&(r||n!==s)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])d=[we(xe(d),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[w]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return Ee(u>1&&xe(d),u>1&&be(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(q,"$1"),n,u<o&&Se(e.slice(u,o)),o<i&&Se(e=e.slice(o)),o<i&&be(e))}d.push(n)}return xe(d)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=le.tokenize=function(e,t){var n,o,i,a,l,u,s,c=C[e+" "];if(c)return t?0:c.slice(0);for(l=e,u=[],s=r.preFilter;l;){for(a in n&&!(o=W.exec(l))||(o&&(l=l.slice(o[0].length)||l),u.push(i=[])),n=!1,(o=U.exec(l))&&(n=o.shift(),i.push({value:n,type:o[0].replace(q," ")}),l=l.slice(n.length)),r.filter)!(o=X[a].exec(l))||s[a]&&!(o=s[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),l=l.slice(n.length));if(!n)break}return t?l.length:l?le.error(e):C(e,u).slice(0)},l=le.compile=function(e,t){var n,o=[],i=[],l=T[e+" "];if(!l){for(t||(t=a(e)),n=t.length;n--;)(l=Se(t[n]))[w]?o.push(l):i.push(l);l=T(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,l,u,c){var f,h,g,v=0,y="0",b=i&&[],w=[],x=s,E=i||o&&r.find.TAG("*",c),S=k+=null==x?1:Math.random()||.1,C=E.length;for(c&&(s=a==p||a||c);y!==C&&null!=(f=E[y]);y++){if(o&&f){for(h=0,a||f.ownerDocument==p||(d(f),l=!m);g=e[h++];)if(g(f,a||p,l)){u.push(f);break}c&&(k=S)}n&&((f=!g&&f)&&v--,i&&b.push(f))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(b,w,a,l);if(i){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=D.call(u));w=ke(w)}M.apply(u,w),c&&!i&&w.length>0&&v+t.length>1&&le.uniqueSort(u)}return c&&(k=S,s=x),b};return n?se(i):i}(i,o)),l.selector=e}return l},u=le.select=function(e,t,n,o){var i,u,s,c,f,d="function"==typeof e&&e,p=!o&&a(e=d.selector||e);if(n=n||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(s=u[0]).type&&9===t.nodeType&&m&&r.relative[u[1].type]){if(!(t=(r.find.ID(s.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(i=X.needsContext.test(e)?0:u.length;i--&&(s=u[i],!r.relative[c=s.type]);)if((f=r.find[c])&&(o=f(s.matches[0].replace(te,ne),ee.test(u[0].type)&&ve(t.parentNode)||t))){if(u.splice(i,1),!(e=o.length&&be(u)))return M.apply(n,o),n;break}}return(d||l(e,p))(o,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(N).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),le}(r);S.find=T,S.expr=T.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=T.uniqueSort,S.text=T.getText,S.isXMLDoc=T.isXML,S.contains=T.contains,S.escapeSelector=T.escape;var _=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&S(e).is(n))break;r.push(e)}return r},N=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},L=S.expr.match.needsContext;function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return v(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return c.call(t,e)>-1!==n})):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,(function(e){return 1===e.nodeType})))},S.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(S(e).filter((function(){for(t=0;t<r;t++)if(S.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,o[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&L.test(e)?S(e):e||[],!1).length}});var M,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||M,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),D.test(r[1])&&S.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,M=S(b);var j=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&S(e);if(!L.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?S.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?c.call(S(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _(e,"parentNode")},parentsUntil:function(e,t,n){return _(e,"parentNode",n)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return _(e,"nextSibling")},prevAll:function(e){return _(e,"previousSibling")},nextUntil:function(e,t,n){return _(e,"nextSibling",n)},prevUntil:function(e,t,n){return _(e,"previousSibling",n)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},(function(e,t){S.fn[e]=function(n,r){var o=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=S.filter(r,o)),this.length>1&&(R[e]||S.uniqueSort(o),j.test(e)&&o.reverse()),this.pushStack(o)}}));var I=/[^\x20\t\r\n\f]+/g;function F(e){return e}function H(e){throw e}function $(e,t,n,r){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(I)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,r,o,i=[],a=[],l=-1,u=function(){for(o=o||e.once,r=t=!0;a.length;l=-1)for(n=a.shift();++l<i.length;)!1===i[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},s={add:function(){return i&&(n&&!t&&(l=i.length-1,a.push(n)),function t(n){S.each(n,(function(n,r){v(r)?e.unique&&s.has(r)||i.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return S.each(arguments,(function(e,t){for(var n;(n=S.inArray(t,i,n))>-1;)i.splice(n,1),n<=l&&l--})),this},has:function(e){return e?S.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!r}};return s},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,r){var o=v(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var i=0;function a(e,t,n,o){return function(){var l=this,u=arguments,s=function(){var r,s;if(!(e<i)){if((r=n.apply(l,u))===t.promise())throw new TypeError("Thenable self-resolution");s=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(s)?o?s.call(r,a(i,t,F,o),a(i,t,H,o)):(i++,s.call(r,a(i,t,F,o),a(i,t,H,o),a(i,t,F,t.notifyWith))):(n!==F&&(l=void 0,u=[r]),(o||t.resolveWith)(l,u))}},c=o?s:function(){try{s()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,c.stackTrace),e+1>=i&&(n!==H&&(l=void 0,u=[r]),t.rejectWith(l,u))}};e?c():(S.Deferred.getStackHook&&(c.stackTrace=S.Deferred.getStackHook()),r.setTimeout(c))}}return S.Deferred((function(r){t[0][3].add(a(0,r,v(o)?o:F,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:F)),t[2][3].add(a(0,r,v(n)?n:H))})).promise()},promise:function(e){return null!=e?S.extend(e,o):o}},i={};return S.each(t,(function(e,r){var a=r[2],l=r[5];o[r[1]]=a.add,l&&a.add((function(){n=l}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=l.call(arguments),i=S.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&($(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||v(o[n]&&o[n].then)))return i.then();for(;n--;)$(o[n],a(n),i.reject);return i.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&q.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){r.setTimeout((function(){throw e}))};var W=S.Deferred();function U(){b.removeEventListener("DOMContentLoaded",U),r.removeEventListener("load",U),S.ready()}S.fn.ready=function(e){return W.then(e).catch((function(e){S.readyException(e)})),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||W.resolveWith(b,[S]))}}),S.ready.then=W.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",U),r.addEventListener("load",U));var B=function(e,t,n,r,o,i,a){var l=0,u=e.length,s=null==n;if("object"===k(n))for(l in o=!0,n)B(e,t,l,n[l],!0,i,a);else if(void 0!==r&&(o=!0,v(r)||(a=!0),s&&(a?(t.call(e,r),t=null):(s=t,t=function(e,t,n){return s.call(S(e),n)})),t))for(;l<u;l++)t(e[l],n,a?r:r.call(e[l],l,t(e[l],n)));return o?e:s?t.call(e):u?t(e[0],n):i},V=/^-ms-/,Q=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function Y(e){return e.replace(V,"ms-").replace(Q,X)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[Y(t)]=n;else for(r in t)o[Y(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.e