!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){var i;
/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
/*!
 * jQuery JavaScript Library v3.3.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2018-01-20T17:24Z
 */
!function(t,n){"use strict";"object"==typeof e&&"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(n,r){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,l=o.slice,c=o.concat,u=o.push,d=o.indexOf,f={},p=f.toString,h=f.hasOwnProperty,m=h.toString,g=m.call(Object),v={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},x={type:!0,src:!0,noModule:!0};function w(e,t,n){var i,r=(t=t||a).createElement("script");if(r.text=e,n)for(i in x)n[i]&&(r[i]=n[i]);t.head.appendChild(r).parentNode.removeChild(r)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[p.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!b(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.3.1",constructor:k,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=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.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)},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:u,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||b(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(i=e[t])&&(c&&i&&(k.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,o=n&&Array.isArray(n)?n:[]):o=n&&k.isPlainObject(n)?n:{},a[t]=k.extend(c,o,i)):void 0!==i&&(a[t]=i));return a},k.extend({expando:"jQuery"+("3.3.1"+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]"!==p.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){w(e)},each:function(e,t){var n,i=0;if(T(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(E,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(T(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return c.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var A=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(e){var t,n,i,r,o,a,s,l,c,u,d,f,p,h,m,g,v,b,y,x="sizzle"+1*new Date,w=e.document,C=0,k=0,E=ae(),T=ae(),A=ae(),S=function(e,t){return e===t&&(d=!0),0},N={}.hasOwnProperty,D=[],j=D.pop,L=D.push,O=D.push,P=D.slice,q=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",I=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",z=new RegExp(M+"+","g"),V=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),W=new RegExp("^"+M+"*,"+M+"*"),$=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),B=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),U=new RegExp(I),_=new RegExp("^"+R+"$"),X={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},re=be(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{O.apply(D=P.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){O={apply:D.length?function(e,t){L.apply(e,P.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,i,r){var o,s,c,u,d,h,v,b=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!r&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,m)){if(11!==C&&(d=J.exec(e)))if(o=d[1]){if(9===C){if(!(c=t.getElementById(o)))return i;if(c.id===o)return i.push(c),i}else if(b&&(c=b.getElementById(o))&&y(t,c)&&c.id===o)return i.push(c),i}else{if(d[2])return O.apply(i,t.getElementsByTagName(e)),i;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!A[e+" "]&&(!g||!g.test(e))){if(1!==C)b=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=x),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+ve(h[s]);v=h.join(","),b=K.test(e)&&me(t.parentNode)||t}if(v)try{return O.apply(i,b.querySelectorAll(v)),i}catch(e){}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(V,"$1"),t,i,r)}function ae(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function se(e){return e[x]=!0,e}function le(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(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&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=oe.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,m=!o(p),w!==p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Y.test(p.getElementsByClassName),n.getById=le(function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.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,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Y.test(p.querySelectorAll))&&(le(function(e){h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+M+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),le(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"+M+"*[*^$|!~]?="),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=Y.test(b=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",I)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Y.test(h.compareDocumentPosition),y=t||Y.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===p||e.ownerDocument===w&&y(w,e)?-1:t===p||t.ownerDocument===w&&y(w,t)?1:u?q(u,e)-q(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===p?-1:t===p?1:r?-1:o?1:u?q(u,e)-q(u,t):0;if(r===o)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ue(a[i],s[i]):a[i]===w?-1:s[i]===w?1:0},p):p},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(B,"='$1']"),n.matchesSelector&&m&&!A[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=b.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return oe(t,p,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),y(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var r=i.attrHandle[t.toLowerCase()],o=r&&N.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(S),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return u=null,e},r=oe.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=oe.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(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===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]||oe.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]&&oe.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&&U.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(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(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(i){var r=oe.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&b){for(y=(p=(c=(u=(d=(f=g)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===C&&c[1])&&c[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(y=p=0)||h.pop();)if(1===f.nodeType&&++y&&f===t){u[e]=[C,p,y];break}}else if(b&&(y=p=(c=(u=(d=(f=t)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===C&&c[1]),!1===y)for(;(f=++p&&f&&f[m]||(y=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++y||(b&&((u=(d=f[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[C,y]),f!==t)););return(y-=r)===i||y%i==0&&y/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=q(e,o[a])]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:se(function(e){var t=[],n=[],i=s(e.replace(V,"$1"));return i[x]?se(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:se(function(e){return _.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).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:pe(!1),disabled:pe(!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!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return Q.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:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:he(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function ge(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function be(e,t,n){var i=t.dir,r=t.next,o=r||i,a=n&&"parentNode"===o,s=k++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var c,u,d,f=[C,s];if(l){for(;t=t[i];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||a)if(u=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[o])&&c[0]===C&&c[1]===s)return f[2]=c[2];if(u[o]=f,f[2]=e(t,n,l))return!0}return!1}}function ye(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function xe(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),c&&t.push(s)));return a}function we(e,t,n,i,r,o){return i&&!i[x]&&(i=we(i)),r&&!r[x]&&(r=we(r,o)),se(function(o,a,s,l){var c,u,d,f=[],p=[],h=a.length,m=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)oe(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:xe(m,f,e,s,l),v=n?r||(o?e:h||i)?[]:a:g;if(n&&n(g,v,s,l),i)for(c=xe(v,p),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[p[u]]=!(g[p[u]]=d));if(o){if(r||e){if(r){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);r(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=r?q(o,d):f[u])>-1&&(o[c]=!(a[c]=d))}}else v=xe(v===a?v.splice(h,v.length):v),r?r(null,a,v,l):O.apply(a,v)})}function Ce(e){for(var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],l=a?1:0,u=be(function(e){return e===t},s,!0),d=be(function(e){return q(t,e)>-1},s,!0),f=[function(e,n,i){var r=!a&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,r}];l<o;l++)if(n=i.relative[e[l].type])f=[be(ye(f),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[x]){for(r=++l;r<o&&!i.relative[e[r].type];r++);return we(l>1&&ye(f),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(V,"$1"),n,l<r&&Ce(e.slice(l,r)),r<o&&Ce(e=e.slice(r)),r<o&&ve(e))}f.push(n)}return ye(f)}return ge.prototype=i.filters=i.pseudos,i.setFilters=new ge,a=oe.tokenize=function(e,t){var n,r,o,a,s,l,c,u=T[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=i.preFilter;s;){for(a in n&&!(r=W.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=$.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(V," ")}),s=s.slice(n.length)),i.filter)!(r=X[a].exec(s))||c[a]&&!(r=c[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):T(e,l).slice(0)},s=oe.compile=function(e,t){var n,r=[],o=[],s=A[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ce(t[n]))[x]?r.push(s):o.push(s);(s=A(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,a,s,l,u){var d,h,g,v=0,b="0",y=o&&[],x=[],w=c,k=o||r&&i.find.TAG("*",u),E=C+=null==w?1:Math.random()||.1,T=k.length;for(u&&(c=a===p||a||u);b!==T&&null!=(d=k[b]);b++){if(r&&d){for(h=0,a||d.ownerDocument===p||(f(d),s=!m);g=e[h++];)if(g(d,a||p,s)){l.push(d);break}u&&(C=E)}n&&((d=!g&&d)&&v--,o&&y.push(d))}if(v+=b,n&&b!==v){for(h=0;g=t[h++];)g(y,x,a,s);if(o){if(v>0)for(;b--;)y[b]||x[b]||(x[b]=j.call(l));x=xe(x)}O.apply(l,x),u&&!o&&x.length>0&&v+t.length>1&&oe.uniqueSort(l)}return u&&(C=E,c=w),y};return n?se(o):o}(o,r))).selector=e}return s},l=oe.select=function(e,t,n,r){var o,l,c,u,d,f="function"==typeof e&&e,p=!r&&a(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(Z,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&(c=l[o],!i.relative[u=c.type]);)if((d=i.find[u])&&(r=d(c.matches[0].replace(Z,ee),K.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&ve(l)))return O.apply(n,r),n;break}}return(f||s(e,p))(r,t,!m,n,!t||K.test(e)&&me(t.parentNode)||t),n},n.sortStable=x.split("").sort(S).join("")===x,n.detectDuplicates=!!d,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(H,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),oe}(n);k.find=A,k.expr=A.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=A.uniqueSort,k.text=A.getText,k.isXMLDoc=A.isXML,k.contains=A.contains,k.escapeSelector=A.escape;var S=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(n))break;i.push(e)}return i},N=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=k.expr.match.needsContext;function j(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return b(t)?k.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?k.grep(e,function(e){return e===t!==n}):"string"!=typeof t?k.grep(e,function(e){return d.call(t,e)>-1!==n}):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<i;t++)if(k.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,r[t],n);return i>1?k.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&&D.test(e)?k(e):e||[],!1).length}});var P,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),L.test(i[1])&&k.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=a.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,P=k(a);var H=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],a="string"!=typeof e&&k(e);if(!D.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return j(e,"iframe")?e.contentDocument:(j(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(n,i){var r=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=k.filter(i,r)),this.length>1&&(M[e]||k.uniqueSort(r),H.test(e)&&r.reverse()),this.pushStack(r)}});var F=/[^\x20\t\r\n\f]+/g;function I(e){return e}function z(e){throw e}function V(e,t,n,i){var r;try{e&&b(r=e.promise)?r.call(e).done(t).fail(n):e&&b(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(F)||[],function(e,n){t[n]=!0}),t}(e):k.extend({},e);var t,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){k.each(n,function(n,i){b(i)?e.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==C(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;(n=k.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(n){k.each(t,function(t,i){var r=b(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,i,r){var o=0;function a(e,t,i,r){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<o)){if((n=i.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,b(c)?r?c.call(n,a(o,t,I,r),a(o,t,z,r)):(o++,c.call(n,a(o,t,I,r),a(o,t,z,r),a(o,t,I,t.notifyWith))):(i!==I&&(s=void 0,l=[n]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.stackTrace),e+1>=o&&(i!==z&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred(function(n){t[0][3].add(a(0,n,b(r)?r:I,n.notifyWith)),t[1][3].add(a(0,n,b(e)?e:I)),t[2][3].add(a(0,n,b(i)?i:z))}).promise()},promise:function(e){return null!=e?k.extend(e,r):r}},o={};return k.each(t,function(e,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add(function(){i=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=l.call(arguments),o=k.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&(V(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||b(r[n]&&r[n].then)))return o.then();for(;n--;)V(r[n],a(n),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&W.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout(function(){throw e})};var $=k.Deferred();function B(){a.removeEventListener("DOMContentLoaded",B),n.removeEventListener("load",B),k.ready()}k.fn.ready=function(e){return $.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||$.resolveWith(a,[k]))}}),k.ready.then=$.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(k.ready):(a.addEventListener("DOMContentLoaded",B),n.addEventListener("load",B));var U=function(e,t,n,i,r,o,a){var s=0,l=e.length,c=null==n;if("object"===C(n))for(s in r=!0,n)U(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,b(i)||(a=!0),c&&(a?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):o},_=/^-ms-/,X=/-([a-z])/g;function Q(e,t){return t.toUpperCase()}function G(e){return e.replace(_,"ms-").replace(X,Q)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=k.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[G(t)]=n;else for(i in t)r[G(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in i?[t]:t.match(F)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var K=new J,Z=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Z.hasData(e)||K.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=Z.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=G(i.slice(5)),ne(o,i,r[i]));K.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Z.set(this,e)}):U(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Z.get(o,e))?n:void 0!==(n=ne(o,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=K.get(e,t),n&&(!i||Array.isArray(n)?i=K.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,r=n.shift(),o=k._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){k.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:k.Callbacks("once memory").add(function(){K.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each(function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=k.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=K.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&k.contains(e.ownerDocument,e)&&"none"===k.css(e,"display")},se=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r};function le(e,t,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=(k.cssNumber[t]||"px"!==c&&+l)&&re.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)k.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,k.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var ce={};function ue(e){var t,n=e.ownerDocument,i=e.nodeName,r=ce[i];return r||(t=n.body.appendChild(n.createElement(i)),r=k.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ce[i]=r,r)}function de(e,t){for(var n,i,r=[],o=0,a=e.length;o<a;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=K.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ae(i)&&(r[o]=ue(i))):"none"!==n&&(r[o]="none",K.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}k.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?k(this).show():k(this).hide()})}});var fe=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,he=/^$|^module$|\/(?:java|ecma)script/i,me={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,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&j(e,t)?k.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n<i;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td;var be,ye,xe=/<|&#?\w+;/;function we(e,t,n,i,r){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===C(o))k.merge(f,o.nodeType?[o]:o);else if(xe.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(pe.exec(o)||["",""])[1].toLowerCase(),l=me[s]||me._default,a.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;k.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(i&&k.inArray(o,i)>-1)r&&r.push(o);else if(c=k.contains(o.ownerDocument,o),a=ge(d.appendChild(o),"script"),c&&ve(a),n)for(u=0;o=a[u++];)he.test(o.type||"")&&n.push(o);return d}be=a.createDocumentFragment().appendChild(a.createElement("div")),(ye=a.createElement("input")).setAttribute("type","radio"),ye.setAttribute("checked","checked"),ye.setAttribute("name","t"),be.appendChild(ye),v.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Ce=a.documentElement,ke=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Se(){return!1}function Ne(){try{return a.activeElement}catch(e){}}function De(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)De(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Se;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,r,i,n)})}k.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,d,f,p,h,m,g=K.get(e);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&k.find.matchesSelector(Ce,r),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(F)||[""]).length;c--;)p=m=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},u=k.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,u):f.push(u),k.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,d,f,p,h,m,g=K.hasData(e)&&K.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(F)||[""]).length;c--;)if(p=m=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},f=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[c],n,i,!0);k.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=k.event.fix(e),l=new Array(arguments.length),c=(K.get(this,"events")||{})[s.type]||[],u=k.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=k.event.handlers.call(this,s,c),t=0;(r=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(i=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,i,r,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=t[n]).selector+" "]&&(a[r]=i.needsContext?k(r,this).index(c)>-1:k.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ne()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ne()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&j(this,"input"))return this.click(),!1},_default:function(e){return j(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||k.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),k.fn.extend({on:function(e,t,n,i){return De(this,e,t,n,i)},one:function(e,t,n,i){return De(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each(function(){k.event.remove(this,e,n,t)})}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return j(e,"table")&&j(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,i,r,o,a,s,l,c;if(1===t.nodeType){if(K.hasData(e)&&(o=K.access(e),a=K.set(t,o),c=o.events))for(r in delete a.handle,a.events={},c)for(n=0,i=c[r].length;n<i;n++)k.event.add(t,r,c[r][n]);Z.hasData(e)&&(s=Z.access(e),l=k.extend({},s),Z.set(t,l))}}function Fe(e,t,n,i){t=c.apply([],t);var r,o,a,s,l,u,d=0,f=e.length,p=f-1,h=t[0],m=b(h);if(m||f>1&&"string"==typeof h&&!v.checkClone&&Oe.test(h))return e.each(function(r){var o=e.eq(r);m&&(t[0]=h.call(this,r,o.html())),Fe(o,t,n,i)});if(f&&(o=(r=we(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=k.map(ge(r,"script"),He)).length;d<f;d++)l=r,d!==p&&(l=k.clone(l,!0,!0),s&&k.merge(a,ge(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,k.map(a,Me),d=0;d<s;d++)l=a[d],he.test(l.type||"")&&!K.access(l,"globalEval")&&k.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?k._evalUrl&&k._evalUrl(l.src):w(l.textContent.replace(Pe,""),u,l))}return e}function Ie(e,t,n){for(var i,r=t?k.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||k.cleanData(ge(i)),i.parentNode&&(n&&k.contains(i.ownerDocument,i)&&ve(ge(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var i,r,o,a,s,l,c,u=e.cloneNode(!0),d=k.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ge(u),i=0,r=(o=ge(e)).length;i<r;i++)s=o[i],l=a[i],void 0,"input"===(c=l.nodeName.toLowerCase())&&fe.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ge(e),a=a||ge(u),i=0,r=o.length;i<r;i++)Re(o[i],a[i]);else Re(e,u);return(a=ge(u,"script")).length>0&&ve(a,!d&&ge(e,"script")),u},cleanData:function(e){for(var t,n,i,r=k.event.special,o=0;void 0!==(n=e[o]);o++)if(Y(n)){if(t=n[K.expando]){if(t.events)for(i in t.events)r[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[K.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Ie(this,e,!0)},remove:function(e){return Ie(this,e)},text:function(e){return U(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return U(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!me[(pe.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(ge(this)),n&&n.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var n,i=[],r=k(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(r[a])[t](n),u.apply(i,n.get());return this.pushStack(i)}});var ze=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),Ve=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},We=new RegExp(oe.join("|"),"i");function $e(e,t,n){var i,r,o,a,s=e.style;return(n=n||Ve(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||k.contains(e.ownerDocument,e)||(a=k.style(e,t)),!v.pixelBoxStyles()&&ze.test(a)&&We.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Be(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ce.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),r=36===t(e.width),u.style.position="absolute",o=36===u.offsetWidth||"absolute",Ce.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var i,r,o,s,l,c=a.createElement("div"),u=a.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o}}))}();var Ue=/^(none|table(?!-c[ea]).+)/,_e=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"},Ge=["Webkit","Moz","ms"],Ye=a.createElement("div").style;function Je(e){var t=k.cssProps[e];return t||(t=k.cssProps[e]=function(e){if(e in Ye)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Ye)return e}(e)||e),t}function Ke(e,t,n){var i=re.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ze(e,t,n,i,r,o){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(e,n+oe[a],!0,r)),i?("content"===n&&(l-=k.css(e,"padding"+oe[a],!0,r)),"margin"!==n&&(l-=k.css(e,"border"+oe[a]+"Width",!0,r))):(l+=k.css(e,"padding"+oe[a],!0,r),"padding"!==n?l+=k.css(e,"border"+oe[a]+"Width",!0,r):s+=k.css(e,"border"+oe[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))),l}function et(e,t,n){var i=Ve(e),r=$e(e,t,i),o="border-box"===k.css(e,"boxSizing",!1,i),a=o;if(ze.test(r)){if(!n)return r;r="auto"}return a=a&&(v.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===k.css(e,"display",!1,i))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(r=parseFloat(r)||0)+Ze(e,t,n||(o?"border":"content"),a,i,r)+"px"}function tt(e,t,n,i,r){return new tt.prototype.init(e,t,n,i,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=G(t),l=_e.test(t),c=e.style;if(l||(t=Je(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];"string"===(o=typeof n)&&(r=re.exec(n))&&r[1]&&(n=le(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,a,s=G(t);return _e.test(t)||(t=Je(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=$e(e,t,i)),"normal"===r&&t in Qe&&(r=Qe[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!Ue.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?et(e,t,i):se(e,Xe,function(){return et(e,t,i)})},set:function(e,n,i){var r,o=Ve(e),a="border-box"===k.css(e,"boxSizing",!1,o),s=i&&Ze(e,t,i,a,o);return a&&v.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ze(e,t,"border",!1,o)-.5)),s&&(r=re.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),Ke(0,n,s)}}}),k.cssHooks.marginLeft=Be(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+oe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(k.cssHooks[e+t].set=Ke)}),k.fn.extend({css:function(e,t){return U(this,function(e,t,n){var i,r,o={},a=0;if(Array.isArray(t)){for(i=Ve(e),r=t.length;a<r;a++)o[t[a]]=k.css(e,t[a],!1,i);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=tt,tt.prototype={constructor:tt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=tt.propHooks[this.prop];return e&&e.get?e.get(this):tt.propHooks._default.get(this)},run:function(e){var t,n=tt.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=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):tt.propHooks._default.set(this),this}},tt.prototype.init.prototype=tt.prototype,tt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[k.cssProps[e.prop]]&&!k.cssHooks[e.prop]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},tt.propHooks.scrollTop=tt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=tt.prototype.init,k.fx.step={};var nt,it,rt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function at(){it&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(at):n.setTimeout(at,k.fx.interval),k.fx.tick())}function st(){return n.setTimeout(function(){nt=void 0}),nt=Date.now()}function lt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=oe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ct(e,t,n){for(var i,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function ut(e,t,n){var i,r,o=0,a=ut.prefilters.length,s=k.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=nt||st(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(e,[c,i,n]),i<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:nt||st(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=G(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=k.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=ut.prefilters[o].call(c,e,u,c.opts))return b(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return k.map(u,ct,c),b(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(F);for(var n,i=0,r=e.length;i<r;i++)n=e[i],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,a,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&ae(e),g=K.get(e,"fxshow");for(i in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[i],rt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(i in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=K.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=k.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(f.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=K.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&de([e],!0),f.done(function(){for(i in m||de([e]),K.remove(e,"fxshow"),p)k.style(e,i,p[i])})),l=ct(m?g[i]:0,i,f),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=k.isEmptyObject(e),o=k.speed(t,n,i),a=function(){var t=ut(this,k.extend({},e),o);(r||K.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=k.timers,a=K.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ot.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=K.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=k.timers,a=i?i.length:0;for(n.finish=!0,k.queue(this,e,[]),r&&r.stop&&r.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;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),k.each(["toggle","show","hide"],function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,i,r)}}),k.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(nt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),nt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){it||(it=!0,at())},k.fx.stop=function(){it=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}})},function(){var e=a.createElement("input"),t=a.createElement("select").appendChild(a.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=a.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var dt,ft=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return U(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&j(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(F);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ft[t]||k.find.attr;ft[t]=function(e,t,i){var r,o,a=t.toLowerCase();return i||(o=ft[a],ft[a]=r,r=null!=n(e,t,i)?a:null,ft[a]=o),r}});var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function mt(e){return(e.match(F)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}k.fn.extend({prop:function(e,t){return U(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,l=0;if(b(e))return this.each(function(t){k(this).addClass(e.call(this,t,gt(this)))});if((t=vt(e)).length)for(;n=this[l++];)if(r=gt(n),i=1===n.nodeType&&" "+mt(r)+" "){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=mt(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,l=0;if(b(e))return this.each(function(t){k(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(r=gt(n),i=1===n.nodeType&&" "+mt(r)+" "){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=mt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):b(e)?this.each(function(n){k(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,r,o,a;if(i)for(r=0,o=k(this),a=vt(e);t=a[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+mt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;k.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=b(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,k(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(bt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:mt(k.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!j(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=k.makeArray(t),a=r.length;a--;)((i=r[a]).selected=k.inArray(k.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var yt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,r){var o,s,l,c,u,d,f,p,m=[i||a],g=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(s=p=l=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!yt.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(g=(v=g.split(".")).shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),f=k.event.special[g]||{},r||!f.trigger||!1!==f.trigger.apply(i,t))){if(!r&&!f.noBubble&&!y(i)){for(c=f.delegateType||g,yt.test(c+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),l=s;l===(i.ownerDocument||a)&&m.push(l.defaultView||l.parentWindow||n)}for(o=0;(s=m[o++])&&!e.isPropagationStopped();)p=s,e.type=o>1?c:f.bindType||g,(d=(K.get(s,"events")||{})[e.type]&&K.get(s,"handle"))&&d.apply(s,t),(d=u&&s[u])&&d.apply&&Y(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(m.pop(),t)||!Y(i)||u&&b(i[g])&&!y(i)&&((l=i[u])&&(i[u]=null),k.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,xt),i[g](),e.isPropagationStopped()&&p.removeEventListener(g,xt),k.event.triggered=void 0,l&&(i[u]=l)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),v.focusin||k.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=K.access(i,t);r||i.addEventListener(e,n,!0),K.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=K.access(i,t)-1;r?K.access(i,t,r):(i.removeEventListener(e,n,!0),K.remove(i,t))}}});var wt=n.location,Ct=Date.now(),kt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Et=/\[\]$/,Tt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,i){var r;if(Array.isArray(t))k.each(t,function(t,r){n||Et.test(e)?i(e,r):Nt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==C(t))i(e,t);else for(r in t)Nt(e+"["+r+"]",t[r],n,i)}k.param=function(e,t){var n,i=[],r=function(e,t){var n=b(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){r(this.name,this.value)});else for(n in e)Nt(n,e[n],t,r);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&St.test(this.nodeName)&&!At.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var Dt=/%20/g,jt=/#.*$/,Lt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,qt=/^\/\//,Ht={},Mt={},Rt="*/".concat("*"),Ft=a.createElement("a");function It(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(F)||[];if(b(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function zt(e,t,n,i){var r={},o=e===Mt;function a(s){var l;return r[s]=!0,k.each(e[s]||[],function(e,s){var c=s(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Vt(e,t){var n,i,r=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}Ft.href=wt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,k.ajaxSettings),t):Vt(k.ajaxSettings,e)},ajaxPrefilter:It(Ht),ajaxTransport:It(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,s,l,c,u,d,f,p,h=k.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,v=k.Deferred(),b=k.Callbacks("once memory"),y=h.statusCode||{},x={},w={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Ot.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),T(0,t),this}};if(v.promise(E),h.url=((e||h.url||wt.href)+"").replace(qt,wt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(F)||[""],null==h.crossDomain){c=a.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Ft.protocol+"//"+Ft.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),zt(Ht,h,t,E),u)return E;for(f in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),r=h.url.replace(jt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Dt,"+")):(p=h.url.slice(r.length),h.data&&(h.processData||"string"==typeof h.data)&&(r+=(kt.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(Lt,"$1"),p=(kt.test(r)?"&":"?")+"_="+Ct+++p),h.url=r+p),h.ifModified&&(k.lastModified[r]&&E.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&E.setRequestHeader("If-None-Match",k.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(m,E,h)||u))return E.abort();if(C="abort",b.add(h.complete),E.done(h.success),E.fail(h.error),i=zt(Mt,h,t,E)){if(E.readyState=1,d&&g.trigger("ajaxSend",[E,h]),u)return E;h.async&&h.timeout>0&&(l=n.setTimeout(function(){E.abort("timeout")},h.timeout));try{u=!1,i.send(x,T)}catch(e){if(u)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,a,s){var c,f,p,x,w,C=t;u||(u=!0,l&&n.clearTimeout(l),i=void 0,o=s||"",E.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,E,a)),x=function(e,t,n,i){var r,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,x,E,c),c?(h.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=w),(w=E.getResponseHeader("etag"))&&(k.etag[r]=w)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=x.state,f=x.data,c=!(p=x.error))):(p=C,!e&&C||(C="error",e<0&&(e=0))),E.status=e,E.statusText=(t||C)+"",c?v.resolveWith(m,[f,C,E]):v.rejectWith(m,[E,C,p]),E.statusCode(y),y=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[E,h,c?f:p]),b.fireWith(m,[E,C]),d&&(g.trigger("ajaxComplete",[E,h]),--k.active||k.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,n,i,r){return b(n)&&(r=r||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:r,data:n,success:i},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=k(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 b(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b(e);return this.each(function(n){k(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},$t=k.ajaxSettings.xhr();v.cors=!!$t&&"withCredentials"in $t,v.ajax=$t=!!$t,k.ajaxTransport(function(e){var t,i;if(v.cors||$t&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),i=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&i()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(i,r){t=k("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Bt,Ut=[],_t=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||k.expando+"_"+Ct++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,i){var r,o,a,s=!1!==e.jsonp&&(_t.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&_t.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(_t,"$1"+r):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||k.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=n[r],n[r]=function(){a=arguments},i.always(function(){void 0===o?k(n).removeProp(r):n[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(r)),a&&b(o)&&o(a[0]),a=o=void 0}),"script"}),v.createHTMLDocument=((Bt=a.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Bt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(i)):t=a),r=L.exec(e),o=!n&&[],r?[t.createElement(r[1])]:(r=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],r.childNodes)));var i,r,o},k.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=mt(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),b(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(i,"marginTop",!0),left:t.left-r.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||Ce})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return U(this,function(e,i,r){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),k.each(["top","left"],function(e,t){k.cssHooks[t]=Be(v.pixelPosition,function(e,n){if(n)return n=$e(e,t),ze.test(n)?k(e).position()[t]+"px":n})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){k.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return U(this,function(t,n,r){var o;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?k.css(t,n,s):k.style(t,n,r,s)},t,a?r:void 0,a)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.fn.extend({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,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return i=l.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(l.call(arguments)))}).guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=j,k.isFunction=b,k.isWindow=y,k.camelCase=G,k.type=C,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i);var Xt=n.jQuery,Qt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Qt),e&&n.jQuery===k&&(n.jQuery=Xt),k},r||(n.jQuery=n.$=k),k})},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var t=n(0),i=n.n(t),r=n(4),o=(n.n(r),n(5)),a=(n.n(o),n(6)),s=n.n(a),l=n(7),c=n.n(l),u=n(8),d=n.n(u),f=n(9),p=n(10),h=n(11),m=n(12),g=n(13),v=n(14),b=n(15),y=n(16),x=n(17),w=n(18),C=n(19),k=n(20),E="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this;i.a.fn.transition=s.a,i.a.fn.checkbox=c.a,i.a.fn.progress=d.a,E.$=i.a;let T={button:f.a,buttonGroup:p.a,checkbox:h.a,dropdown:m.a,fileInput:g.a,icon:v.a,list:b.a,layout:y.a,panel:x.a,progressBar:w.a,radios:C.a,table:k.a};E.dashi=T}.call(t,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(e){!function(t,n,i,r){t.site=e.exports=function(e){var r,o,a=(new Date).getTime(),s=[],l=arguments[0],c="string"==typeof l,u=[].slice.call(arguments,1),d=t.isPlainObject(e)?t.extend(!0,{},t.site.settings,e):t.extend({},t.site.settings),f=d.namespace,p=d.error,h="module-"+f,m=t(i),g=this,v=m.data(h);return r={initialize:function(){r.instantiate()},instantiate:function(){r.verbose("Storing instance of site",r),v=r,m.data(h,r)},normalize:function(){r.fix.console(),r.fix.requestAnimationFrame()},fix:{console:function(){r.debug("Normalizing window.console"),void 0!==console&&void 0!==console.log||(r.verbose("Console not available, normalizing events"),r.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(r.verbose("Console group not available, normalizing events"),n.console.group=function(){},n.console.groupEnd=function(){},n.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(r.verbose("Mark timeline not available, normalizing events"),n.console.markTimeline=function(){})},consoleClear:function(){r.debug("Disabling programmatic console clearing"),n.console.clear=function(){}},requestAnimationFrame:function(){r.debug("Normalizing requestAnimationFrame"),void 0===n.requestAnimationFrame&&(r.debug("RequestAnimationFrame not available, normalizing event"),n.requestAnimationFrame=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return void 0!==t.fn[e]&&void 0!==t.fn[e].settings},enabled:{modules:function(e){var n=[];return e=e||d.modules,t.each(e,function(e,t){r.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||d.modules,t.each(e,function(e,t){r.moduleExists(t)||n.push(t)}),n}},change:{setting:function(e,n,i,o){i="string"==typeof i?"all"===i?d.modules:[i]:i||d.modules,o=void 0===o||o,t.each(i,function(i,a){var s,l=!r.moduleExists(a)||(t.fn[a].settings.namespace||!1);r.moduleExists(a)&&(r.verbose("Changing default setting",e,n,a),t.fn[a].settings[e]=n,o&&l&&(s=t(":data(module-"+l+")")).length>0&&(r.verbose("Modifying existing settings",s),s[a]("setting",e,n)))})},settings:function(e,n,i){n="string"==typeof n?[n]:n||d.modules,i=void 0===i||i,t.each(n,function(n,o){var a;r.moduleExists(o)&&(r.verbose("Changing default setting",e,o),t.extend(!0,t.fn[o].settings,e),i&&f&&(a=t(":data(module-"+f+")")).length>0&&(r.verbose("Modifying existing settings",a),a[o]("setting",e)))})}},enable:{console:function(){r.console(!0)},debug:function(e,t){e=e||d.modules,r.debug("Enabling debug for modules",e),r.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||d.modules,r.debug("Enabling verbose debug for modules",e),r.change.setting("verbose",!0,e,t)}},disable:{console:function(){r.console(!1)},debug:function(e,t){e=e||d.modules,r.debug("Disabling debug for modules",e),r.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||d.modules,r.debug("Disabling verbose debug for modules",e),r.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(void 0===v.cache.console)return void r.error(p.console);r.debug("Restoring console function"),n.console=v.cache.console}else r.debug("Disabling console function"),v.cache.console=n.console,n.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){r.verbose("Destroying previous site for",m),m.removeData(h)},cache:{},setting:function(e,n){if(t.isPlainObject(e))t.extend(!0,d,e);else{if(void 0===n)return d[e];d[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,r,e);else{if(void 0===n)return r[e];r[e]=n}},debug:function(){d.debug&&(d.performance?r.performance.log(arguments):(r.debug=Function.prototype.bind.call(console.info,console,d.name+":"),r.debug.apply(console,arguments)))},verbose:function(){d.verbose&&d.debug&&(d.performance?r.performance.log(arguments):(r.verbose=Function.prototype.bind.call(console.info,console,d.name+":"),r.verbose.apply(console,arguments)))},error:function(){r.error=Function.prototype.bind.call(console.error,console,d.name+":"),r.error.apply(console,arguments)},performance:{log:function(e){var t,n;d.performance&&(n=(t=(new Date).getTime())-(a||t),a=t,s.push({Element:g,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(r.performance.timer),r.performance.timer=setTimeout(r.performance.display,500)},display:function(){var e=d.name+":",n=0;a=!1,clearTimeout(r.performance.timer),t.each(s,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(e),console.table?console.table(s):t.each(s,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),s=[]}},invoke:function(e,n,i){var a,s,l,c=v;return n=n||u,i=g||i,"string"==typeof e&&void 0!==c&&(e=e.split(/[\. ]/),a=e.length-1,t.each(e,function(n,i){var o=n!=a?i+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(c[o])&&n!=a)c=c[o];else{if(void 0!==c[o])return s=c[o],!1;if(!t.isPlainObject(c[i])||n==a)return void 0!==c[i]?(s=c[i],!1):(r.error(p.method,e),!1);c=c[i]}})),t.isFunction(s)?l=s.apply(i,n):void 0!==s&&(l=s),t.isArray(o)?o.push(l):void 0!==o?o=[o,l]:void 0!==l&&(o=l),s}},c?(void 0===v&&r.initialize(),r.invoke(l)):(void 0!==v&&r.destroy(),r.initialize()),void 0!==o?o:this},t.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","rating","shape","sidebar","state","sticky","tab","transition","visit","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,i){return!!t.data(e,i[3])}})}(n(0),window,document)}).call(t,n(1)(e))},function(e,t,n){(function(e){!function(t,n,i,r){"use strict";n=void 0!==n&&n.Math==Math?n:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var o=e;e.exports=function(e){var n,r=t(this),a=r.selector||"",s=(new Date).getTime(),l=[],c=arguments[0],u=arguments[1],d="string"==typeof c,f=[].slice.call(arguments,1);return r.each(function(){var p,h,m,g,v,b,y,x,w,C,k,E,T,A,S,N,D=t(this),j=this,L=[],O=!1;(N={initialize:function(){N.get.settings(),d?(void 0===S&&N.instantiate(),N.invoke(c)):(void 0!==S&&S.invoke("destroy"),N.verbose("Initializing form validation",D,v),N.bindEvents(),N.set.defaults(),N.instantiate())},instantiate:function(){N.verbose("Storing instance of module",N),S=N,D.data(T,N)},destroy:function(){N.verbose("Destroying previous module",S),N.removeEvents(),D.removeData(T)},refresh:function(){N.verbose("Refreshing selector cache"),p=D.find(x.field),h=D.find(x.group),m=D.find(x.message),D.find(x.prompt),g=D.find(x.submit),D.find(x.clear),D.find(x.reset)},submit:function(){N.verbose("Submitting form",D),D.submit()},attachEvents:function(e,n){n=n||"submit",t(e).on("click"+A,function(e){N[n](),e.preventDefault()})},bindEvents:function(){N.verbose("Attaching form events"),D.on("submit"+A,N.validate.form).on("blur"+A,x.field,N.event.field.blur).on("click"+A,x.submit,N.submit).on("click"+A,x.reset,N.reset).on("click"+A,x.clear,N.clear),v.keyboardShortcuts&&D.on("keydown"+A,x.field,N.event.field.keydown),p.each(function(){var e=t(this),n=e.prop("type"),i=N.get.changeEvent(n,e);t(this).on(i+A,N.event.field.change)})},clear:function(){p.each(function(){var e=t(this),n=e.parent(),i=e.closest(h),r=i.find(x.prompt),o=e.data(y.defaultValue)||"",a=n.is(x.uiCheckbox),s=n.is(x.uiDropdown);i.hasClass(w.error)&&(N.verbose("Resetting error on field",i),i.removeClass(w.error),r.remove()),s?(N.verbose("Resetting dropdown value",n,o),n.dropdown("clear")):a?e.prop("checked",!1):(N.verbose("Resetting field value",e,o),e.val(""))})},reset:function(){p.each(function(){var e=t(this),n=e.parent(),i=e.closest(h),r=i.find(x.prompt),o=e.data(y.defaultValue),a=n.is(x.uiCheckbox),s=n.is(x.uiDropdown),l=i.hasClass(w.error);void 0!==o&&(l&&(N.verbose("Resetting error on field",i),i.removeClass(w.error),r.remove()),s?(N.verbose("Resetting dropdown value",n,o),n.dropdown("restore defaults")):a?(N.verbose("Resetting checkbox value",n,o),e.prop("checked",o)):(N.verbose("Resetting field value",e,o),e.val(o)))})},determine:{isValid:function(){var e=!0;return t.each(b,function(t,n){N.validate.field(n,t,!0)||(e=!1)}),e}},is:{bracketedRule:function(e){return e.type&&e.type.match(v.regExp.bracket)},shorthandFields:function(e){var t=e[Object.keys(e)[0]];return N.is.shorthandRules(t)},shorthandRules:function(e){return"string"==typeof e||t.isArray(e)},empty:function(e){return!e||0===e.length||(e.is('input[type="checkbox"]')?!e.is(":checked"):N.is.blank(e))},blank:function(e){return""===t.trim(e.val())},valid:function(e){var n=!0;return e?(N.verbose("Checking if field is valid",e),N.validate.field(b[e],e,!1)):(N.verbose("Checking if form is valid"),t.each(b,function(e,t){N.is.valid(e)||(n=!1)}),n)}},removeEvents:function(){D.off(A),p.off(A),g.off(A),p.off(A)},event:{field:{keydown:function(e){var n=t(this),i=e.which,r=n.is(x.input),o=n.is(x.checkbox),a=n.closest(x.uiDropdown).length>0,s=13;i==27&&(N.verbose("Escape key pressed blurring field"),n.blur()),e.ctrlKey||i!=s||!r||a||o||(O||(n.one("keyup"+A,N.event.field.keyup),N.submit(),N.debug("Enter pressed on input submitting form")),O=!0)},keyup:function(){O=!1},blur:function(e){var n=t(this),i=n.closest(h),r=N.get.validation(n);i.hasClass(w.error)?(N.debug("Revalidating field",n,r),r&&N.validate.field(r)):"blur"==v.on&&r&&N.validate.field(r)},change:function(e){var n=t(this),i=n.closest(h),r=N.get.validation(n);r&&("change"==v.on||i.hasClass(w.error)&&v.revalidate)&&(clearTimeout(N.timer),N.timer=setTimeout(function(){N.debug("Revalidating field",n,N.get.validation(n)),N.validate.field(r)},v.delay))}}},get:{ancillaryValue:function(e){return!(!e.type||!e.value&&!N.is.bracketedRule(e))&&(void 0!==e.value?e.value:e.type.match(v.regExp.bracket)[1]+"")},ruleName:function(e){return N.is.bracketedRule(e)?e.type.replace(e.type.match(v.regExp.bracket)[0],""):e.type},changeEvent:function(e,t){return"checkbox"==e||"radio"==e||"hidden"==e||t.is("select")?"change":N.get.inputEvent()},inputEvent:function(){return void 0!==i.createElement("input").oninput?"input":void 0!==i.createElement("input").onpropertychange?"propertychange":"keyup"},fieldsFromShorthand:function(e){var n={};return t.each(e,function(e,i){"string"==typeof i&&(i=[i]),n[e]={rules:[]},t.each(i,function(t,i){n[e].rules.push({type:i})})}),n},prompt:function(e,n){var i,r,o=N.get.ruleName(e),a=N.get.ancillaryValue(e),s=N.get.field(n.identifier),l=s.val(),c=t.isFunction(e.prompt)?e.prompt(l):e.prompt||v.prompt[o]||v.text.unspecifiedRule,u=-1!==c.search("{value}"),d=-1!==c.search("{name}");return u&&(c=c.replace("{value}",s.val())),d&&(r=1==(i=s.closest(x.group).find("label").eq(0)).length?i.text():s.prop("placeholder")||v.text.unspecifiedField,c=c.replace("{name}",r)),c=(c=c.replace("{identifier}",n.identifier)).replace("{ruleValue}",a),e.prompt||N.verbose("Using default validation prompt for type",c,o),c},settings:function(){if(t.isPlainObject(e)){var n=Object.keys(e);n.length>0&&(void 0!==e[n[0]].identifier&&void 0!==e[n[0]].rules)?(v=t.extend(!0,{},o.exports.settings,u),b=t.extend({},o.exports.settings.defaults,e),N.error(v.error.oldSyntax,j),N.verbose("Extending settings from legacy parameters",b,v)):(e.fields&&N.is.shorthandFields(e.fields)&&(e.fields=N.get.fieldsFromShorthand(e.fields)),v=t.extend(!0,{},o.exports.settings,e),b=t.extend({},o.exports.settings.defaults,v.fields),N.verbose("Extending settings",b,v))}else v=o.exports.settings,b=o.exports.settings.defaults,N.verbose("Using default form validation",b,v);E=v.namespace,y=v.metadata,x=v.selector,w=v.className,C=v.regExp,k=v.error,T="module-"+E,A="."+E,S=D.data(T),N.refresh()},field:function(e){return N.verbose("Finding field with identifier",e),e=N.escape.string(e),p.filter("#"+e).length>0?p.filter("#"+e):p.filter('[name="'+e+'"]').length>0?p.filter('[name="'+e+'"]'):p.filter('[name="'+e+'[]"]').length>0?p.filter('[name="'+e+'[]"]'):p.filter("[data-"+y.validate+'="'+e+'"]').length>0?p.filter("[data-"+y.validate+'="'+e+'"]'):t("<input/>")},fields:function(e){var n=t();return t.each(e,function(e,t){n=n.add(N.get.field(t))}),n},validation:function(e){var n,i;return!!b&&(t.each(b,function(t,r){i=r.identifier||t,N.get.field(i)[0]==e[0]&&(r.identifier=i,n=r)}),n||!1)},value:function(e){var t=[];return t.push(e),N.get.values.call(j,t)[e]},values:function(e){var n={};return(t.isArray(e)?N.get.fields(e):p).each(function(e,i){var r=t(i),o=(r.prop("type"),r.prop("name")),a=r.val(),s=r.is(x.checkbox),l=r.is(x.radio),c=-1!==o.indexOf("[]"),u=!!s&&r.is(":checked");o&&(c?(o=o.replace("[]",""),n[o]||(n[o]=[]),s?u?n[o].push(a||!0):n[o].push(!1):n[o].push(a)):l?void 0!==n[o]&&0!=n[o]||(n[o]=!!u&&(a||!0)):n[o]=s?!!u&&(a||!0):a)}),n}},has:{field:function(e){return N.verbose("Checking for existence of a field with identifier",e),"string"!=typeof(e=N.escape.string(e))&&N.error(k.identifier,e),p.filter("#"+e).length>0||(p.filter('[name="'+e+'"]').length>0||p.filter("[data-"+y.validate+'="'+e+'"]').length>0)}},escape:{string:function(e){return(e=String(e)).replace(C.escape,"\\$&")}},add:{rule:function(e,t){N.add.field(e,t)},field:function(e,n){var i={};N.is.shorthandRules(n)?(n=t.isArray(n)?n:[n],i[e]={rules:[]},t.each(n,function(t,n){i[e].rules.push({type:n})})):i[e]=n,b=t.extend({},b,i),N.debug("Adding rules",i,b)},fields:function(e){var n;n=e&&N.is.shorthandFields(e)?N.get.fieldsFromShorthand(e):e,b=t.extend({},b,n)},prompt:function(e,n){var i=N.get.field(e).closest(h),r=i.children(x.prompt),o=0!==r.length;n="string"==typeof n?[n]:n,N.verbose("Adding field error state",e),i.addClass(w.error),v.inline&&(o||(r=v.templates.prompt(n)).appendTo(i),r.html(n[0]),o?N.verbose("Inline errors are disabled, no inline error added",e):v.transition&&void 0!==t.fn.transition&&D.transition("is supported")?(N.verbose("Displaying error with css transition",v.transition),r.transition(v.transition+" in",v.duration)):(N.verbose("Displaying error with fallback javascript animation"),r.fadeIn(v.duration)))},errors:function(e){N.debug("Adding form error messages",e),N.set.error(),m.html(v.templates.error(e))}},remove:{rule:function(e,n){var i=t.isArray(n)?n:[n];if(void 0==n)return N.debug("Removed all rules"),void(b[e].rules=[]);void 0!=b[e]&&t.isArray(b[e].rules)&&t.each(b[e].rules,function(t,n){-1!==i.indexOf(n.type)&&(N.debug("Removed rule",n.type),b[e].rules.splice(t,1))})},field:function(e){var n=t.isArray(e)?e:[e];t.each(n,function(e,t){N.remove.rule(t)})},rules:function(e,n){t.isArray(e)?t.each(fields,function(e,t){N.remove.rule(t,n)}):N.remove.rule(e,n)},fields:function(e){N.remove.field(e)},prompt:function(e){var n=N.get.field(e).closest(h),i=n.children(x.prompt);n.removeClass(w.error),v.inline&&i.is(":visible")&&(N.verbose("Removing prompt for field",e),v.transition&&void 0!==t.fn.transition&&D.transition("is supported")?i.transition(v.transition+" out",v.duration,function(){i.remove()}):i.fadeOut(v.duration,function(){i.remove()}))}},set:{success:function(){D.removeClass(w.error).addClass(w.success)},defaults:function(){p.each(function(){var e=t(this),n=e.filter(x.checkbox).length>0?e.is(":checked"):e.val();e.data(y.defaultValue,n)})},error:function(){D.removeClass(w.success).addClass(w.error)},value:function(e,t){var n={};return n[e]=t,N.set.values.call(j,n)},values:function(e){t.isEmptyObject(e)||t.each(e,function(e,n){var i,r=N.get.field(e),o=r.parent(),a=t.isArray(n),s=o.is(x.uiCheckbox),l=o.is(x.uiDropdown),c=r.is(x.radio)&&s;r.length>0&&(a&&s?(N.verbose("Selecting multiple",n,r),o.checkbox("uncheck"),t.each(n,function(e,t){i=r.filter('[value="'+t+'"]'),o=i.parent(),i.length>0&&o.checkbox("check")})):c?(N.verbose("Selecting radio value",n,r),r.filter('[value="'+n+'"]').parent(x.uiCheckbox).checkbox("check")):s?(N.verbose("Setting checkbox value",n,o),!0===n?o.checkbox("check"):o.checkbox("uncheck")):l?(N.verbose("Setting dropdown value",n,o),o.dropdown("set selected",n)):(N.verbose("Setting field value",n,r),r.val(n)))})}},validate:{form:function(e,t){var n=N.get.values();if(O)return!1;if(L=[],N.determine.isValid()){if(N.debug("Form has no validation errors, submitting"),N.set.success(),!0!==t)return v.onSuccess.call(j,e,n)}else if(N.debug("Form has errors"),N.set.error(),v.inline||N.add.errors(L),void 0!==D.data("moduleApi")&&e.stopImmediatePropagation(),!0!==t)return v.onFailure.call(j,L,n)},field:function(e,n,i){i=void 0===i||i,"string"==typeof e&&(N.verbose("Validating field",e),n=e,e=b[e]);var r=e.identifier||n,o=N.get.field(r),a=!!e.depends&&N.get.field(e.depends),s=!0,l=[];return e.identifier||(N.debug("Using field name as identifier",r),e.identifier=r),o.prop("disabled")?(N.debug("Field is disabled. Skipping",r),s=!0):e.optional&&N.is.blank(o)?(N.debug("Field is optional and blank. Skipping",r),s=!0):e.depends&&N.is.empty(a)?(N.debug("Field depends on another value that is not present or empty. Skipping",a),s=!0):void 0!==e.rules&&t.each(e.rules,function(t,n){N.has.field(r)&&!N.validate.rule(e,n)&&(N.debug("Field is invalid",r,n.type),l.push(N.get.prompt(n,e)),s=!1)}),s?(i&&(N.remove.prompt(r,l),v.onValid.call(o)),!0):(i&&(L=L.concat(l),N.add.prompt(r,l),v.onInvalid.call(o,l)),!1)},rule:function(e,n){var i=N.get.field(e.identifier),r=(n.type,i.val()),o=N.get.ancillaryValue(n),a=N.get.ruleName(n),s=v.rules[a];if(t.isFunction(s))return r=void 0===r||""===r||null===r?"":t.trim(r+""),s.call(i,r,o);N.error(k.noRule,a)}},setting:function(e,n){if(t.isPlainObject(e))t.extend(!0,v,e);else{if(void 0===n)return v[e];v[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,N,e);else{if(void 0===n)return N[e];N[e]=n}},debug:function(){!v.silent&&v.debug&&(v.performance?N.performance.log(arguments):(N.debug=Function.prototype.bind.call(console.info,console,v.name+":"),N.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?N.performance.log(arguments):(N.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),N.verbose.apply(console,arguments)))},error:function(){v.silent||(N.error=Function.prototype.bind.call(console.error,console,v.name+":"),N.error.apply(console,arguments))},performance:{log:function(e){var t,n;v.performance&&(n=(t=(new Date).getTime())-(s||t),s=t,l.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:j,"Execution Time":n})),clearTimeout(N.performance.timer),N.performance.timer=setTimeout(N.performance.display,500)},display:function(){var e=v.name+":",n=0;s=!1,clearTimeout(N.performance.timer),t.each(l,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",a&&(e+=" '"+a+"'"),r.length>1&&(e+=" ("+r.length+")"),(void 0!==console.group||void 0!==console.table)&&l.length>0&&(console.groupCollapsed(e),console.table?console.table(l):t.each(l,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),l=[]}},invoke:function(e,i,r){var o,a,s,l=S;return i=i||f,r=j||r,"string"==typeof e&&void 0!==l&&(e=e.split(/[\. ]/),o=e.length-1,t.each(e,function(n,i){var r=n!=o?i+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(l[r])&&n!=o)l=l[r];else{if(void 0!==l[r])return a=l[r],!1;if(!t.isPlainObject(l[i])||n==o)return void 0!==l[i]&&(a=l[i],!1);l=l[i]}})),t.isFunction(a)?s=a.apply(r,i):void 0!==a&&(s=a),t.isArray(n)?n.push(s):void 0!==n?n=[n,s]:void 0!==s&&(n=s),a}}).initialize()}),void 0!==n?n:this},o.exports.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"},regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} must contain "{ruleValue}"',containExactly:'{name} must contain exactly "{ruleValue}"',doesntContain:'{name} cannot contain  "{ruleValue}"',doesntContainExactly:'{name} cannot contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(e){var n='<ul class="list">';return t.each(e,function(e,t){n+="<li>"+t+"</li>"}),t(n+="</ul>")},prompt:function(e){return t("<div/>").addClass("ui basic red pointing prompt label").html(e[0])}},rules:{empty:function(e){return!(void 0===e||""===e||t.isArray(e)&&0===e.length)},checked:function(){return t(this).filter(":checked").length>0},email:function(e){return o.exports.settings.regExp.email.test(e)},url:function(e){return o.exports.settings.regExp.url.test(e)},regExp:function(e,t){if(t instanceof RegExp)return e.match(t);var n,i=t.match(o.exports.settings.regExp.flags);return i&&(t=i.length>=2?i[1]:t,n=i.length>=3?i[2]:""),e.match(new RegExp(t,n))},integer:function(e,t){var n,i,r,a=o.exports.settings.regExp.integer;return t&&-1===["",".."].indexOf(t)&&(-1==t.indexOf("..")?a.test(t)&&(n=i=t-0):(r=t.split("..",2),a.test(r[0])&&(n=r[0]-0),a.test(r[1])&&(i=r[1]-0))),a.test(e)&&(void 0===n||e>=n)&&(void 0===i||e<=i)},decimal:function(e){return o.exports.settings.regExp.decimal.test(e)},number:function(e){return o.exports.settings.regExp.number.test(e)},is:function(e,t){return t="string"==typeof t?t.toLowerCase():t,(e="string"==typeof e?e.toLowerCase():e)==t},isExactly:function(e,t){return e==t},not:function(e,t){return(e="string"==typeof e?e.toLowerCase():e)!=(t="string"==typeof t?t.toLowerCase():t)},notExactly:function(e,t){return e!=t},contains:function(e,t){return t=t.replace(o.exports.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(t,"i"))},containsExactly:function(e,t){return t=t.replace(o.exports.settings.regExp.escape,"\\$&"),-1!==e.search(new RegExp(t))},doesntContain:function(e,t){return t=t.replace(o.exports.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(t,"i"))},doesntContainExactly:function(e,t){return t=t.replace(o.exports.settings.regExp.escape,"\\$&"),-1===e.search(new RegExp(t))},minLength:function(e,t){return void 0!==e&&e.length>=t},length:function(e,t){return void 0!==e&&e.length>=t},exactLength:function(e,t){return void 0!==e&&e.length==t},maxLength:function(e,t){return void 0!==e&&e.length<=t},match:function(e,n){var i;t(this);return t('[data-validate="'+n+'"]').length>0?i=t('[data-validate="'+n+'"]').val():t("#"+n).length>0?i=t("#"+n).val():t('[name="'+n+'"]').length>0?i=t('[name="'+n+'"]').val():t('[name="'+n+'[]"]').length>0&&(i=t('[name="'+n+'[]"]')),void 0!==i&&e.toString()==i.toString()},different:function(e,n){var i;t(this);return t('[data-validate="'+n+'"]').length>0?i=t('[data-validate="'+n+'"]').val():t("#"+n).length>0?i=t("#"+n).val():t('[name="'+n+'"]').length>0?i=t('[name="'+n+'"]').val():t('[name="'+n+'[]"]').length>0&&(i=t('[name="'+n+'[]"]')),void 0!==i&&e.toString()!==i.toString()},creditCard:function(e,n){var i,r,o={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},a={},s=!1,l="string"==typeof n&&n.split(",");if("string"==typeof e&&0!==e.length){if(e=e.replace(/[\-]/g,""),l&&(t.each(l,function(n,i){(r=o[i])&&(a={length:-1!==t.inArray(e.length,r.length),pattern:-1!==e.search(r.pattern)}).length&&a.pattern&&(s=!0)}),!s))return!1;if((i={number:-1!==t.inArray(e.length,o.unionPay.length),pattern:-1!==e.search(o.unionPay.pattern)}).number&&i.pattern)return!0;for(var c=e.length,u=0,d=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],f=0;c--;)f+=d[u][parseInt(e.charAt(c),10)],u^=1;return f%10==0&&f>0}},minCount:function(e,t){return 0==t||(1==t?""!==e:e.split(",").length>=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(n(0),window,document)}).call(t,n(1)(e))},function(e,t,n){(function(e){!function(t,n,i,r){"use strict";n=void 0!==n&&n.Math==Math?n:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var o=e;e.exports=function(){var e,r=t(this),a=r.selector||"",s=(new Date).getTime(),l=[],c=arguments,u=c[0],d=[].slice.call(arguments,1),f="string"==typeof u;n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame;return r.each(function(n){var p,h,m,g,v,b,y,x,w,C=t(this),k=this;(w={initialize:function(){p=w.get.settings.apply(k,c),g=p.className,m=p.error,v=p.metadata,x="."+p.namespace,y="module-"+p.namespace,h=C.data(y)||w,b=w.get.animationEndEvent(),f&&(f=w.invoke(u)),!1===f&&(w.verbose("Converted arguments into settings object",p),p.interval?w.delay(p.animate):w.animate(),w.instantiate())},instantiate:function(){w.verbose("Storing instance of module",w),h=w,C.data(y,h)},destroy:function(){w.verbose("Destroying previous module for",k),C.removeData(y)},refresh:function(){w.verbose("Refreshing display type on next animation"),delete w.displayType},forceRepaint:function(){w.verbose("Forcing element repaint");var e=C.parent(),t=C.next();0===t.length?C.detach().appendTo(e):C.detach().insertBefore(t)},repaint:function(){w.verbose("Repainting element");k.offsetWidth},delay:function(e){var t,i=w.get.animationDirection();i||(i=w.can.transition()?w.get.direction():"static"),e=void 0!==e?e:p.interval,t="auto"==p.reverse&&i==g.outward||1==p.reverse?(r.length-n)*p.interval:n*p.interval,w.debug("Delaying animation by",t),setTimeout(w.animate,t)},animate:function(e){if(p=e||p,!w.is.supported())return w.error(m.support),!1;if(w.debug("Preparing animation",p.animation),w.is.animating()){if(p.queue)return!p.allowRepeats&&w.has.direction()&&w.is.occurring()&&!0!==w.queuing?w.debug("Animation is currently occurring, preventing queueing same animation",p.animation):w.queue(p.animation),!1;if(!p.allowRepeats&&w.is.occurring())return w.debug("Animation is already occurring, will not execute repeated animation",p.animation),!1;w.debug("New animation started, completing previous early",p.animation),h.complete()}w.can.animate()?w.set.animating(p.animation):w.error(m.noAnimation,p.animation,k)},reset:function(){w.debug("Resetting animation to beginning conditions"),w.remove.animationCallbacks(),w.restore.conditions(),w.remove.animating()},queue:function(e){w.debug("Queueing animation of",e),w.queuing=!0,C.one(b+".queue"+x,function(){w.queuing=!1,w.repaint(),w.animate.apply(this,p)})},complete:function(e){w.debug("Animation complete",p.animation),w.remove.completeCallback(),w.remove.failSafe(),w.is.looping()||(w.is.outward()?(w.verbose("Animation is outward, hiding element"),w.restore.conditions(),w.hide()):w.is.inward()?(w.verbose("Animation is outward, showing element"),w.restore.conditions(),w.show()):(w.verbose("Static animation completed"),w.restore.conditions(),p.onComplete.call(k)))},force:{visible:function(){var e=C.attr("style"),t=w.get.userStyle(),n=w.get.displayType(),i=t+"display: "+n+" !important;",r=C.css("display"),o=void 0===e||""===e;r!==n?(w.verbose("Overriding default display to show element",n),C.attr("style",i)):o&&C.removeAttr("style")},hidden:function(){var e=C.attr("style"),t=C.css("display"),n=void 0===e||""===e;"none"===t||w.is.hidden()?n&&C.removeAttr("style"):(w.verbose("Overriding default display to hide element"),C.css("display","none"))}},has:{direction:function(e){var n=!1;return"string"==typeof(e=e||p.animation)&&(e=e.split(" "),t.each(e,function(e,t){t!==g.inward&&t!==g.outward||(n=!0)})),n},inlineDisplay:function(){var e=C.attr("style")||"";return t.isArray(e.match(/display.*?;/,""))}},set:{animating:function(e){var t;w.remove.completeCallback(),e=e||p.animation,t=w.get.animationClass(e),w.save.animation(t),w.force.visible(),w.remove.hidden(),w.remove.direction(),w.start.animation(t)},duration:function(e,t){((t="number"==typeof(t=t||p.duration)?t+"ms":t)||0===t)&&(w.verbose("Setting animation duration",t),C.css({"animation-duration":t}))},direction:function(e){(e=e||w.get.direction())==g.inward?w.set.inward():w.set.outward()},looping:function(){w.debug("Transition set to loop"),C.addClass(g.looping)},hidden:function(){C.addClass(g.transition).addClass(g.hidden)},inward:function(){w.debug("Setting direction to inward"),C.removeClass(g.outward).addClass(g.inward)},outward:function(){w.debug("Setting direction to outward"),C.removeClass(g.inward).addClass(g.outward)},visible:function(){C.addClass(g.transition).addClass(g.visible)}},start:{animation:function(e){e=e||w.get.animationClass(),w.debug("Starting tween",e),C.addClass(e).one(b+".complete"+x,w.complete),p.useFailSafe&&w.add.failSafe(),w.set.duration(p.duration),p.onStart.call(k)}},save:{animation:function(e){w.cache||(w.cache={}),w.cache.animation=e},displayType:function(e){"none"!==e&&C.data(v.displayType,e)},transitionExists:function(e,t){o.exports.exists[e]=t,w.verbose("Saving existence of transition",e,t)}},restore:{conditions:function(){var e=w.get.currentAnimation();e&&(C.removeClass(e),w.verbose("Removing animation class",w.cache)),w.remove.duration()}},add:{failSafe:function(){var e=w.get.duration();w.timer=setTimeout(function(){C.triggerHandler(b)},e+p.failSafeDelay),w.verbose("Adding fail safe timer",w.timer)}},remove:{animating:function(){C.removeClass(g.animating)},animationCallbacks:function(){w.remove.queueCallback(),w.remove.completeCallback()},queueCallback:function(){C.off(".queue"+x)},completeCallback:function(){C.off(".complete"+x)},display:function(){C.css("display","")},direction:function(){C.removeClass(g.inward).removeClass(g.outward)},duration:function(){C.css("animation-duration","")},failSafe:function(){w.verbose("Removing fail safe timer",w.timer),w.timer&&clearTimeout(w.timer)},hidden:function(){C.removeClass(g.hidden)},visible:function(){C.removeClass(g.visible)},looping:function(){w.debug("Transitions are no longer looping"),w.is.looping()&&(w.reset(),C.removeClass(g.looping))},transition:function(){C.removeClass(g.visible).removeClass(g.hidden)}},get:{settings:function(e,n,i){return"object"==typeof e?t.extend(!0,{},o.exports.settings,e):"function"==typeof i?t.extend({},o.exports.settings,{animation:e,onComplete:i,duration:n}):"string"==typeof n||"number"==typeof n?t.extend({},o.exports.settings,{animation:e,duration:n}):"object"==typeof n?t.extend({},o.exports.settings,n,{animation:e}):"function"==typeof n?t.extend({},o.exports.settings,{animation:e,onComplete:n}):t.extend({},o.exports.settings,{animation:e})},animationClass:function(e){var t=e||p.animation,n=w.can.transition()&&!w.has.direction()?w.get.direction()+" ":"";return g.animating+" "+g.transition+" "+n+t},currentAnimation:function(){return!(!w.cache||void 0===w.cache.animation)&&w.cache.animation},currentDirection:function(){return w.is.inward()?g.inward:g.outward},direction:function(){return w.is.hidden()||!w.is.visible()?g.inward:g.outward},animationDirection:function(e){var n;return"string"==typeof(e=e||p.animation)&&(e=e.split(" "),t.each(e,function(e,t){t===g.inward?n=g.inward:t===g.outward&&(n=g.outward)})),n||!1},duration:function(e){return!1===(e=e||p.duration)&&(e=C.css("animation-duration")||0),"string"==typeof e?e.indexOf("ms")>-1?parseFloat(e):1e3*parseFloat(e):e},displayType:function(e){return e=void 0===e||e,p.displayType?p.displayType:(e&&void 0===C.data(v.displayType)&&w.can.transition(!0),C.data(v.displayType))},userStyle:function(e){return(e=e||C.attr("style")||"").replace(/display.*?;/,"")},transitionExists:function(e){return o.exports.exists[e]},animationStartEvent:function(){var e,t=i.createElement("div"),n={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(e in n)if(void 0!==t.style[e])return n[e];return!1},animationEndEvent:function(){var e,t=i.createElement("div"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(e in n)if(void 0!==t.style[e])return n[e];return!1}},can:{transition:function(e){var n,i,r,o,a,s,l=p.animation,c=w.get.transitionExists(l),u=w.get.displayType(!1);if(void 0===c||e){if(w.verbose("Determining whether animation exists"),n=C.attr("class"),i=C.prop("tagName"),o=(r=t("<"+i+" />").addClass(n).insertAfter(C)).addClass(l).removeClass(g.inward).removeClass(g.outward).addClass(g.animating).addClass(g.transition).css("animationName"),a=r.addClass(g.inward).css("animationName"),u||(u=r.attr("class",n).removeAttr("style").removeClass(g.hidden).removeClass(g.visible).show().css("display"),w.verbose("Determining final display state",u),w.save.displayType(u)),r.remove(),o!=a)w.debug("Direction exists for animation",l),s=!0;else{if("none"==o||!o)return void w.debug("No animation defined in css",l);w.debug("Static animation found",l,u),s=!1}w.save.transitionExists(l,s)}return void 0!==c?c:s},animate:function(){return void 0!==w.can.transition()}},is:{animating:function(){return C.hasClass(g.animating)},inward:function(){return C.hasClass(g.inward)},outward:function(){return C.hasClass(g.outward)},looping:function(){return C.hasClass(g.looping)},occurring:function(e){return e="."+(e=e||p.animation).replace(" ","."),C.filter(e).length>0},visible:function(){return C.is(":visible")},hidden:function(){return"hidden"===C.css("visibility")},supported:function(){return!1!==b}},hide:function(){w.verbose("Hiding element"),w.is.animating()&&w.reset(),k.blur(),w.remove.display(),w.remove.visible(),w.set.hidden(),w.force.hidden(),p.onHide.call(k),p.onComplete.call(k)},show:function(e){w.verbose("Showing element",e),w.remove.hidden(),w.set.visible(),w.force.visible(),p.onShow.call(k),p.onComplete.call(k)},toggle:function(){w.is.visible()?w.hide():w.show()},stop:function(){w.debug("Stopping current animation"),C.triggerHandler(b)},stopAll:function(){w.debug("Stopping all animation"),w.remove.queueCallback(),C.triggerHandler(b)},clear:{queue:function(){w.debug("Clearing animation queue"),w.remove.queueCallback()}},enable:function(){w.verbose("Starting animation"),C.removeClass(g.disabled)},disable:function(){w.debug("Stopping animation"),C.addClass(g.disabled)},setting:function(e,n){if(w.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,p,e);else{if(void 0===n)return p[e];t.isPlainObject(p[e])?t.extend(!0,p[e],n):p[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,w,e);else{if(void 0===n)return w[e];w[e]=n}},debug:function(){!p.silent&&p.debug&&(p.performance?w.performance.log(arguments):(w.debug=Function.prototype.bind.call(console.info,console,p.name+":"),w.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?w.performance.log(arguments):(w.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),w.verbose.apply(console,arguments)))},error:function(){p.silent||(w.error=Function.prototype.bind.call(console.error,console,p.name+":"),w.error.apply(console,arguments))},performance:{log:function(e){var t,n;p.performance&&(n=(t=(new Date).getTime())-(s||t),s=t,l.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:k,"Execution Time":n})),clearTimeout(w.performance.timer),w.performance.timer=setTimeout(w.performance.display,500)},display:function(){var e=p.name+":",n=0;s=!1,clearTimeout(w.performance.timer),t.each(l,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",a&&(e+=" '"+a+"'"),r.length>1&&(e+=" ("+r.length+")"),(void 0!==console.group||void 0!==console.table)&&l.length>0&&(console.groupCollapsed(e),console.table?console.table(l):t.each(l,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),l=[]}},invoke:function(n,i,r){var o,a,s,l=h;return i=i||d,r=k||r,"string"==typeof n&&void 0!==l&&(n=n.split(/[\. ]/),o=n.length-1,t.each(n,function(e,i){var r=e!=o?i+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(t.isPlainObject(l[r])&&e!=o)l=l[r];else{if(void 0!==l[r])return a=l[r],!1;if(!t.isPlainObject(l[i])||e==o)return void 0!==l[i]&&(a=l[i],!1);l=l[i]}})),t.isFunction(a)?s=a.apply(r,i):void 0!==a&&(s=a),t.isArray(e)?e.push(s):void 0!==e?e=[e,s]:void 0!==s&&(e=s),void 0!==a&&a}}).initialize()}),void 0!==e?e:this},o.exports.exists={},o.exports.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onHide:function(){},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate.  Use silent setting to surpress this warning in production.",repeated:"That animation is already occurring, cancelling repeated animation",method:"The method you called is not defined",support:"This browser does not support CSS animations"}}}(n(0),window,document)}).call(t,n(1)(e))},function(e,t,n){(function(e){!function(t,n,i,r){"use strict";n=void 0!==n&&n.Math==Math?n:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();var o=e;e.exports=function(e){var r,a=t(this),s=a.selector||"",l=(new Date).getTime(),c=[],u=arguments[0],d="string"==typeof u,f=[].slice.call(arguments,1);return a.each(function(){var a,p,h=t.extend(!0,{},o.exports.settings,e),m=h.className,g=h.namespace,v=h.selector,b=h.error,y="."+g,x="module-"+g,w=t(this),C=t(this).children(v.label),k=t(this).children(v.input),E=k[0],T=!1,A=!1,S=w.data(x),N=this;p={initialize:function(){p.verbose("Initializing checkbox",h),p.create.label(),p.bind.events(),p.set.tabbable(),p.hide.input(),p.observeChanges(),p.instantiate(),p.setup()},instantiate:function(){p.verbose("Storing instance of module",p),S=p,w.data(x,p)},destroy:function(){p.verbose("Destroying module"),p.unbind.events(),p.show.input(),w.removeData(x)},fix:{reference:function(){w.is(v.input)&&(p.debug("Behavior called on <input> adjusting invoked element"),w=w.closest(v.checkbox),p.refresh())}},setup:function(){p.set.initialLoad(),p.is.indeterminate()?(p.debug("Initial value is indeterminate"),p.indeterminate()):p.is.checked()?(p.debug("Initial value is checked"),p.check()):(p.debug("Initial value is unchecked"),p.uncheck()),p.remove.initialLoad()},refresh:function(){C=w.children(v.label),k=w.children(v.input),E=k[0]},hide:{input:function(){p.verbose("Modifying <input> z-index to be unselectable"),k.addClass(m.hidden)}},show:{input:function(){p.verbose("Modifying <input> z-index to be selectable"),k.removeClass(m.hidden)}},observeChanges:function(){"MutationObserver"in n&&((a=new MutationObserver(function(e){p.debug("DOM tree modified, updating selector cache"),p.refresh()})).observe(N,{childList:!0,subtree:!0}),p.debug("Setting up mutation observer",a))},attachEvents:function(e,n){var i=t(e);n=t.isFunction(p[n])?p[n]:p.toggle,i.length>0?(p.debug("Attaching checkbox events to element",e,n),i.on("click"+y,n)):p.error(b.notFound)},event:{click:function(e){var n=t(e.target);n.is(v.input)?p.verbose("Using default check action on initialized checkbox"):n.is(v.link)?p.debug("Clicking link inside checkbox, skipping toggle"):(p.toggle(),k.focus(),e.preventDefault())},keydown:function(e){var t=e.which,n=13,i=32;t==27?(p.verbose("Escape key pressed blurring field"),k.blur(),A=!0):e.ctrlKey||t!=i&&t!=n?A=!1:(p.verbose("Enter/space key pressed, toggling checkbox"),p.toggle(),A=!0)},keyup:function(e){A&&e.preventDefault()}},check:function(){p.should.allowCheck()&&(p.debug("Checking checkbox",k),p.set.checked(),p.should.ignoreCallbacks()||(h.onChecked.call(E),h.onChange.call(E)))},uncheck:function(){p.should.allowUncheck()&&(p.debug("Unchecking checkbox"),p.set.unchecked(),p.should.ignoreCallbacks()||(h.onUnchecked.call(E),h.onChange.call(E)))},indeterminate:function(){p.should.allowIndeterminate()?p.debug("Checkbox is already indeterminate"):(p.debug("Making checkbox indeterminate"),p.set.indeterminate(),p.should.ignoreCallbacks()||(h.onIndeterminate.call(E),h.onChange.call(E)))},determinate:function(){p.should.allowDeterminate()?p.debug("Checkbox is already determinate"):(p.debug("Making checkbox determinate"),p.set.determinate(),p.should.ignoreCallbacks()||(h.onDeterminate.call(E),h.onChange.call(E)))},enable:function(){p.is.enabled()?p.debug("Checkbox is already enabled"):(p.debug("Enabling checkbox"),p.set.enabled(),h.onEnable.call(E),h.onEnabled.call(E))},disable:function(){p.is.disabled()?p.debug("Checkbox is already disabled"):(p.debug("Disabling checkbox"),p.set.disabled(),h.onDisable.call(E),h.onDisabled.call(E))},get:{radios:function(){var e=p.get.name();return t('input[name="'+e+'"]').closest(v.checkbox)},otherRadios:function(){return p.get.radios().not(w)},name:function(){return k.attr("name")}},is:{initialLoad:function(){return T},radio:function(){return k.hasClass(m.radio)||"radio"==k.attr("type")},indeterminate:function(){return void 0!==k.prop("indeterminate")&&k.prop("indeterminate")},checked:function(){return void 0!==k.prop("checked")&&k.prop("checked")},disabled:function(){return void 0!==k.prop("disabled")&&k.prop("disabled")},enabled:function(){return!p.is.disabled()},determinate:function(){return!p.is.indeterminate()},unchecked:function(){return!p.is.checked()}},should:{allowCheck:function(){return p.is.determinate()&&p.is.checked()&&!p.should.forceCallbacks()?(p.debug("Should not allow check, checkbox is already checked"),!1):!1!==h.beforeChecked.apply(E)||(p.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return p.is.determinate()&&p.is.unchecked()&&!p.should.forceCallbacks()?(p.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!1!==h.beforeUnchecked.apply(E)||(p.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return p.is.indeterminate()&&!p.should.forceCallbacks()?(p.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!1!==h.beforeIndeterminate.apply(E)||(p.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return p.is.determinate()&&!p.should.forceCallbacks()?(p.debug("Should not allow determinate, checkbox is already determinate"),!1):!1!==h.beforeDeterminate.apply(E)||(p.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return p.is.initialLoad()&&h.fireOnInit},ignoreCallbacks:function(){return T&&!h.fireOnInit}},can:{change:function(){return!(w.hasClass(m.disabled)||w.hasClass(m.readOnly)||k.prop("disabled")||k.prop("readonly"))},uncheck:function(){return"boolean"==typeof h.uncheckable?h.uncheckable:!p.is.radio()}},set:{initialLoad:function(){T=!0},checked:function(){p.verbose("Setting class to checked"),w.removeClass(m.indeterminate).addClass(m.checked),p.is.radio()&&p.uncheckOthers(),p.is.indeterminate()||!p.is.checked()?(p.verbose("Setting state to checked",E),k.prop("indeterminate",!1).prop("checked",!0),p.trigger.change()):p.debug("Input is already checked, skipping input property change")},unchecked:function(){p.verbose("Removing checked class"),w.removeClass(m.indeterminate).removeClass(m.checked),p.is.indeterminate()||!p.is.unchecked()?(p.debug("Setting state to unchecked"),k.prop("indeterminate",!1).prop("checked",!1),p.trigger.change()):p.debug("Input is already unchecked")},indeterminate:function(){p.verbose("Setting class to indeterminate"),w.addClass(m.indeterminate),p.is.indeterminate()?p.debug("Input is already indeterminate, skipping input property change"):(p.debug("Setting state to indeterminate"),k.prop("indeterminate",!0),p.trigger.change())},determinate:function(){p.verbose("Removing indeterminate class"),w.removeClass(m.indeterminate),p.is.determinate()?p.debug("Input is already determinate, skipping input property change"):(p.debug("Setting state to determinate"),k.prop("indeterminate",!1))},disabled:function(){p.verbose("Setting class to disabled"),w.addClass(m.disabled),p.is.disabled()?p.debug("Input is already disabled, skipping input property change"):(p.debug("Setting state to disabled"),k.prop("disabled","disabled"),p.trigger.change())},enabled:function(){p.verbose("Removing disabled class"),w.removeClass(m.disabled),p.is.enabled()?p.debug("Input is already enabled, skipping input property change"):(p.debug("Setting state to enabled"),k.prop("disabled",!1),p.trigger.change())},tabbable:function(){p.verbose("Adding tabindex to checkbox"),void 0===k.attr("tabindex")&&k.attr("tabindex",0)}},remove:{initialLoad:function(){T=!1}},trigger:{change:function(){var e=i.createEvent("HTMLEvents"),t=k[0];t&&(p.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{label:function(){k.prevAll(v.label).length>0?(k.prev(v.label).detach().insertAfter(k),p.debug("Moving existing label",C)):p.has.label()||(C=t("<label>").insertAfter(k),p.debug("Creating label",C))}},has:{label:function(){return C.length>0}},bind:{events:function(){p.verbose("Attaching checkbox events"),w.on("click"+y,p.event.click).on("keydown"+y,v.input,p.event.keydown).on("keyup"+y,v.input,p.event.keyup)}},unbind:{events:function(){p.debug("Removing events"),w.off(y)}},uncheckOthers:function(){var e=p.get.otherRadios();p.debug("Unchecking other radios",e),e.removeClass(m.checked)},toggle:function(){p.can.change()?p.is.indeterminate()||p.is.unchecked()?(p.debug("Currently unchecked"),p.check()):p.is.checked()&&p.can.uncheck()&&(p.debug("Currently checked"),p.uncheck()):p.is.radio()||p.debug("Checkbox is read-only or disabled, ignoring toggle")},setting:function(e,n){if(p.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,h,e);else{if(void 0===n)return h[e];t.isPlainObject(h[e])?t.extend(!0,h[e],n):h[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,p,e);else{if(void 0===n)return p[e];p[e]=n}},debug:function(){!h.silent&&h.debug&&(h.performance?p.performance.log(arguments):(p.debug=Function.prototype.bind.call(console.info,console,h.name+":"),p.debug.apply(console,arguments)))},verbose:function(){!h.silent&&h.verbose&&h.debug&&(h.performance?p.performance.log(arguments):(p.verbose=Function.prototype.bind.call(console.info,console,h.name+":"),p.verbose.apply(console,arguments)))},error:function(){h.silent||(p.error=Function.prototype.bind.call(console.error,console,h.name+":"),p.error.apply(console,arguments))},performance:{log:function(e){var t,n;h.performance&&(n=(t=(new Date).getTime())-(l||t),l=t,c.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:N,"Execution Time":n})),clearTimeout(p.performance.timer),p.performance.timer=setTimeout(p.performance.display,500)},display:function(){var e=h.name+":",n=0;l=!1,clearTimeout(p.performance.timer),t.each(c,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",s&&(e+=" '"+s+"'"),(void 0!==console.group||void 0!==console.table)&&c.length>0&&(console.groupCollapsed(e),console.table?console.table(c):t.each(c,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),c=[]}},invoke:function(e,n,i){var o,a,s,l=S;return n=n||f,i=N||i,"string"==typeof e&&void 0!==l&&(e=e.split(/[\. ]/),o=e.length-1,t.each(e,function(n,i){var r=n!=o?i+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(l[r])&&n!=o)l=l[r];else{if(void 0!==l[r])return a=l[r],!1;if(!t.isPlainObject(l[i])||n==o)return void 0!==l[i]?(a=l[i],!1):(p.error(b.method,e),!1);l=l[i]}})),t.isFunction(a)?s=a.apply(i,n):void 0!==a&&(s=a),t.isArray(r)?r.push(s):void 0!==r?r=[r,s]:void 0!==s&&(r=s),a}},d?(void 0===S&&p.initialize(),p.invoke(u)):(void 0!==S&&S.invoke("destroy"),p.initialize())}),void 0!==r?r:this},o.exports.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!0,performance:!0,uncheckable:"auto",fireOnInit:!1,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},onEnabled:function(){},onDisabled:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",label:"label, .box",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(n(0),window,document)}).call(t,n(1)(e))},function(e,t,n){(function(e){!function(t,n,i,r){"use strict";void 0!==(n=void 0!==n&&n.Math==Math?n:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")())&&n.Math==Math||("undefined"!=typeof self&&self.Math==Math?self:Function("return this")());var o=e;e.exports=function(e){var n,r=t(this),a=r.selector||"",s=(new Date).getTime(),l=[],c=arguments[0],u="string"==typeof c,d=[].slice.call(arguments,1);return r.each(function(){var r,f=t.isPlainObject(e)?t.extend(!0,{},o.exports.settings,e):t.extend({},o.exports.settings),p=f.className,h=f.metadata,m=f.namespace,g=f.selector,v=f.error,b="."+m,y="module-"+m,x=t(this),w=t(this).find(g.bar),C=t(this).find(g.progress),k=t(this).find(g.label),E=this,T=x.data(y),A=!1;r={initialize:function(){r.debug("Initializing progress bar",f),r.set.duration(),r.set.transitionEvent(),r.read.metadata(),r.read.settings(),r.instantiate()},instantiate:function(){r.verbose("Storing instance of progress",r),T=r,x.data(y,r)},destroy:function(){r.verbose("Destroying previous progress for",x),clearInterval(T.interval),r.remove.state(),x.removeData(y),T=void 0},reset:function(){r.remove.nextValue(),r.update.progress(0)},complete:function(){(void 0===r.percent||r.percent<100)&&(r.remove.progressPoll(),r.set.percent(100))},read:{metadata:function(){var e={percent:x.data(h.percent),total:x.data(h.total),value:x.data(h.value)};e.percent&&(r.debug("Current percent value set from metadata",e.percent),r.set.percent(e.percent)),e.total&&(r.debug("Total value set from metadata",e.total),r.set.total(e.total)),e.value&&(r.debug("Current value set from metadata",e.value),r.set.value(e.value),r.set.progress(e.value))},settings:function(){!1!==f.total&&(r.debug("Current total set in settings",f.total),r.set.total(f.total)),!1!==f.value&&(r.debug("Current value set in settings",f.value),r.set.value(f.value),r.set.progress(r.value)),!1!==f.percent&&(r.debug("Current percent set in settings",f.percent),r.set.percent(f.percent))}},bind:{transitionEnd:function(e){var t=r.get.transitionEnd();w.one(t+b,function(t){clearTimeout(r.failSafeTimer),e.call(this,t)}),r.failSafeTimer=setTimeout(function(){w.triggerHandler(t)},f.duration+f.failSafeDelay),r.verbose("Adding fail safe timer",r.timer)}},increment:function(e){var t,n;r.has.total()?n=(t=r.get.value())+(e=e||1):(n=(t=r.get.percent())+(e=e||r.get.randomValue()),100,r.debug("Incrementing percentage by",t,n)),n=r.get.normalizedValue(n),r.set.progress(n)},decrement:function(e){var t,n;r.get.total()?(n=(t=r.get.value())-(e=e||1),r.debug("Decrementing value by",e,t)):(n=(t=r.get.percent())-(e=e||r.get.randomValue()),r.debug("Decrementing percentage by",e,t)),n=r.get.normalizedValue(n),r.set.progress(n)},has:{progressPoll:function(){return r.progressPoll},total:function(){return!1!==r.get.total()}},get:{text:function(e){var t=r.value||0,n=r.total||0,i=A?r.get.displayPercent():r.percent||0,o=r.total>0?n-t:100-i;return e=(e=e||"").replace("{value}",t).replace("{total}",n).replace("{left}",o).replace("{percent}",i),r.verbose("Adding variables to progress bar text",e),e},normalizedValue:function(e){if(e<0)return r.debug("Value cannot decrement below 0"),0;if(r.has.total()){if(e>r.total)return r.debug("Value cannot increment above total",r.total),r.total}else if(e>100)return r.debug("Value cannot increment above 100 percent"),100;return e},updateInterval:function(){return"auto"==f.updateInterval?f.duration:f.updateInterval},randomValue:function(){return r.debug("Generating random increment percentage"),Math.floor(Math.random()*f.random.max+f.random.min)},numericValue:function(e){return"string"==typeof e?""!==e.replace(/[^\d.]/g,"")&&+e.replace(/[^\d.]/g,""):e},transitionEnd:function(){var e,t=i.createElement("element"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e]},displayPercent:function(){var e=w.width(),t=x.width(),n=e>parseInt(w.css("min-width"),10)?e/t*100:r.percent;return f.precision>0?Math.round(n*(10*f.precision))/(10*f.precision):Math.round(n)},percent:function(){return r.percent||0},value:function(){return r.nextValue||r.value||0},total:function(){return r.total||!1}},create:{progressPoll:function(){r.progressPoll=setTimeout(function(){r.update.toNextValue(),r.remove.progressPoll()},r.get.updateInterval())}},is:{complete:function(){return r.is.success()||r.is.warning()||r.is.error()},success:function(){return x.hasClass(p.success)},warning:function(){return x.hasClass(p.warning)},error:function(){return x.hasClass(p.error)},active:function(){return x.hasClass(p.active)},visible:function(){return x.is(":visible")}},remove:{progressPoll:function(){r.verbose("Removing progress poll timer"),r.progressPoll&&(clearTimeout(r.progressPoll),delete r.progressPoll)},nextValue:function(){r.verbose("Removing progress value stored for next update"),delete r.nextValue},state:function(){r.verbose("Removing stored state"),delete r.total,delete r.percent,delete r.value},active:function(){r.verbose("Removing active state"),x.removeClass(p.active)},success:function(){r.verbose("Removing success state"),x.removeClass(p.success)},warning:function(){r.verbose("Removing warning state"),x.removeClass(p.warning)},error:function(){r.verbose("Removing error state"),x.removeClass(p.error)}},set:{barWidth:function(e){e>100?r.error(v.tooHigh,e):e<0?r.error(v.tooLow,e):(w.css("width",e+"%"),x.attr("data-percent",parseInt(e,10)))},duration:function(e){e="number"==typeof(e=e||f.duration)?e+"ms":e,r.verbose("Setting progress bar transition duration",e),w.css({"transition-duration":e})},percent:function(e){e="string"==typeof e?+e.replace("%",""):e,e=f.precision>0?Math.round(e*(10*f.precision))/(10*f.precision):Math.round(e),r.percent=e,r.has.total()||(r.value=f.precision>0?Math.round(e/100*r.total*(10*f.precision))/(10*f.precision):Math.round(e/100*r.total*10)/10,f.limitValues&&(r.value=r.value>100?100:r.value<0?0:r.value)),r.set.barWidth(e),r.set.labelInterval(),r.set.labels(),f.onChange.call(E,e,r.value,r.total)},labelInterval:function(){clearInterval(r.interval),r.bind.transitionEnd(function(){r.verbose("Bar finished animating, removing continuous label updates"),clearInterval(r.interval),A=!1,r.set.labels()}),A=!0,r.interval=setInterval(function(){t.contains(i.documentElement,E)||(clearInterval(r.interval),A=!1),r.set.labels()},f.framerate)},labels:function(){r.verbose("Setting both bar progress and outer label text"),r.set.barLabel(),r.set.state()},label:function(e){(e=e||"")&&(e=r.get.text(e),r.verbose("Setting label to text",e),k.text(e))},state:function(e){100===(e=void 0!==e?e:r.percent)?f.autoSuccess&&!(r.is.warning()||r.is.error()||r.is.success())?(r.set.success(),r.debug("Automatically triggering success at 100%")):(r.verbose("Reached 100% removing active state"),r.remove.active(),r.remove.progressPoll()):e>0?(r.verbose("Adjusting active progress bar label",e),r.set.active()):(r.remove.active(),r.set.label(f.text.active))},barLabel:function(e){void 0!==e?C.text(r.get.text(e)):"ratio"==f.label&&r.total?(r.verbose("Adding ratio to bar label"),C.text(r.get.text(f.text.ratio))):"percent"==f.label&&(r.verbose("Adding percentage to bar label"),C.text(r.get.text(f.text.percent)))},active:function(e){e=e||f.text.active,r.debug("Setting active state"),f.showActivity&&!r.is.active()&&x.addClass(p.active),r.remove.warning(),r.remove.error(),r.remove.success(),(e=f.onLabelUpdate("active",e,r.value,r.total))&&r.set.label(e),r.bind.transitionEnd(function(){f.onActive.call(E,r.value,r.total)})},success:function(e){e=e||f.text.success||f.text.active,r.debug("Setting success state"),x.addClass(p.success),r.remove.active(),r.remove.warning(),r.remove.error(),r.complete(),f.text.success?(e=f.onLabelUpdate("success",e,r.value,r.total),r.set.label(e)):(e=f.onLabelUpdate("active",e,r.value,r.total),r.set.label(e)),r.bind.transitionEnd(function(){f.onSuccess.call(E,r.total)})},warning:function(e){e=e||f.text.warning,r.debug("Setting warning state"),x.addClass(p.warning),r.remove.active(),r.remove.success(),r.remove.error(),r.complete(),(e=f.onLabelUpdate("warning",e,r.value,r.total))&&r.set.label(e),r.bind.transitionEnd(function(){f.onWarning.call(E,r.value,r.total)})},error:function(e){e=e||f.text.error,r.debug("Setting error state"),x.addClass(p.error),r.remove.active(),r.remove.success(),r.remove.warning(),r.complete(),(e=f.onLabelUpdate("error",e,r.value,r.total))&&r.set.label(e),r.bind.transitionEnd(function(){f.onError.call(E,r.value,r.total)})},transitionEvent:function(){r.get.transitionEnd()},total:function(e){r.total=e},value:function(e){r.value=e},progress:function(e){r.has.progressPoll()?(r.debug("Updated within interval, setting next update to use new value",e),r.set.nextValue(e)):(r.debug("First update in progress update interval, immediately updating",e),r.update.progress(e),r.create.progressPoll())},nextValue:function(e){r.nextValue=e}},update:{toNextValue:function(){var e=r.nextValue;e&&(r.debug("Update interval complete using last updated value",e),r.update.progress(e),r.remove.nextValue())},progress:function(e){var t;!1===(e=r.get.numericValue(e))&&r.error(v.nonNumeric,e),e=r.get.normalizedValue(e),r.has.total()?(r.set.value(e),t=e/r.total*100,r.debug("Calculating percent complete from total",t),r.set.percent(t)):(t=e,r.debug("Setting value to exact percentage value",t),r.set.percent(t))}},setting:function(e,n){if(r.debug("Changing setting",e,n),t.isPlainObject(e))t.extend(!0,f,e);else{if(void 0===n)return f[e];t.isPlainObject(f[e])?t.extend(!0,f[e],n):f[e]=n}},internal:function(e,n){if(t.isPlainObject(e))t.extend(!0,r,e);else{if(void 0===n)return r[e];r[e]=n}},debug:function(){!f.silent&&f.debug&&(f.performance?r.performance.log(arguments):(r.debug=Function.prototype.bind.call(console.info,console,f.name+":"),r.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?r.performance.log(arguments):(r.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),r.verbose.apply(console,arguments)))},error:function(){f.silent||(r.error=Function.prototype.bind.call(console.error,console,f.name+":"),r.error.apply(console,arguments))},performance:{log:function(e){var t,n;f.performance&&(n=(t=(new Date).getTime())-(s||t),s=t,l.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:E,"Execution Time":n})),clearTimeout(r.performance.timer),r.performance.timer=setTimeout(r.performance.display,500)},display:function(){var e=f.name+":",n=0;s=!1,clearTimeout(r.performance.timer),t.each(l,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",a&&(e+=" '"+a+"'"),(void 0!==console.group||void 0!==console.table)&&l.length>0&&(console.groupCollapsed(e),console.table?console.table(l):t.each(l,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),l=[]}},invoke:function(e,i,o){var a,s,l,c=T;return i=i||d,o=E||o,"string"==typeof e&&void 0!==c&&(e=e.split(/[\. ]/),a=e.length-1,t.each(e,function(n,i){var o=n!=a?i+e[n+1].charAt(0).toUpperCase()+e[n+1].slice(1):e;if(t.isPlainObject(c[o])&&n!=a)c=c[o];else{if(void 0!==c[o])return s=c[o],!1;if(!t.isPlainObject(c[i])||n==a)return void 0!==c[i]?(s=c[i],!1):(r.error(v.method,e),!1);c=c[i]}})),t.isFunction(s)?l=s.apply(o,i):void 0!==s&&(l=s),t.isArray(n)?n.push(l):void 0!==n?n=[n,l]:void 0!==l&&(n=l),s}},u?(void 0===T&&r.initialize(),r.invoke(c)):(void 0!==T&&T.invoke("destroy"),r.initialize())}),void 0!==n?n:this},o.exports.settings={name:"Progress",namespace:"progress",silent:!1,debug:!1,verbose:!1,performance:!0,random:{min:2,max:5},duration:300,updateInterval:"auto",autoSuccess:!0,showActivity:!0,limitValues:!0,label:"percent",precision:0,framerate:1e3/30,percent:!1,total:!1,value:!1,failSafeDelay:100,onLabelUpdate:function(e,t,n,i){return t},onChange:function(e,t,n){},onSuccess:function(e){},onActive:function(e,t){},onError:function(e,t){},onWarning:function(e,t){},error:{method:"The method you called is not defined.",nonNumeric:"Progress value is non numeric",tooHigh:"Value specified is above 100%",tooLow:"Value specified is below 0%"},regExp:{variable:/\{\$*[A-z0-9]+\}/g},metadata:{percent:"percent",total:"total",value:"value"},selector:{bar:"> .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}"},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(n(0),window,document)}).call(t,n(1)(e))},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("div"),n=e||{},i=n.container||document.body,r=n.onclick||function(){},o=n.text||n.label||null,a=n.icon||!1,s=n.title||!1,l=n.type,c=n.fontSize||n.size||null,u=(n.background,n.fileInput||!1),d=n.value||null,f=n.types||[];l&&f.push(l);if(f.push("ui button"),t.className=f.join(" "),t.onclick=r,t.style.textAlign="center",t.style.verticalAlign="top",a){var p=document.createElement("i");p.className=a+" icon",p.style.marginRight="10px",t.className+=" icon",t.appendChild(p)}null!==d&&t.setAttribute("value",d);if(u){var h=document.createElement("input");u.name;h.setAttribute("type","file"),h.setAttribute("multiple",""),u.hasOwnProperty("id")&&h.setAttribute("id",u.id),h.style.display="none","function"==typeof u.onchange&&h.addEventListener("change",function(e){return u.onchange(e),!1},!1),t.appendChild(h),t.onclick=function(e){return h.click(),!1},t.fileInput=h}null!==o&&(t.innerHTML+=o);null!==c&&(t.style.fontSize=c);s&&(t.title=s);i&&i.appendChild(t);return t.showLoading=function(){-1===(" "+t.className+" ").indexOf(" loading ")&&(t.className+=" loading")},t.hideLoading=function(){t.className=t.className.replace(/\bloading\b/,"")},t.toggleLoading=function(){-1===(" "+t.className+" ").indexOf(" loading ")?t.className+=" loading":t.hideLoading()},t}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("div"),n=e||{},i=n.buttons||[],r=n.container||null,o=n.type,a=n.id||!1,s=n.types||[];o&&s.push(o);a&&t.setAttribute("id",a);function l(e){e.forEach(function(e){t.appendChild(e)})}t.className="ui buttons "+s.join(" "),l(i),r&&r.appendChild(t);if(t.add=function(e){Array.isArray(e)&&(e=[e]),l(e)},t.append=t.add,-1!==s.indexOf("dropdown")){var c=document.createElement("div"),u=document.createElement("div"),d=document.createElement("div");c.className="ui floating dropdown icon button",u.className="dropdown icon",d.className="menu",c.appendChild(u),c.appendChild(d),t.appendChild(c),t.menu.append=function(t){t.forEach(function(t){var n=t.label||t.name||"",i=t.onclick||function(){},r=document.createElement("div"),o=document.createElement("i"),a=document.createTextNode(n);o.className=t.icon+" icon",r.appendChild(o),r.appendChild(a),r.onclick=i.call(this,e),r.className="item",d.appendChild(r)})}}return t}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("div"),n=e||{},i=n.container||document.body,r=n.name||n.variable||"",o=n.onchange||function(){},a=n.text||n.label||null,s=n.type,l=n.types||[];s&&l.push(s);var c=document.createElement("input"),u=document.createElement("label");t.className="ui checkbox "+l.join(" "),t.style.margin="10px",u.innerHTML=a,c.setAttribute("type","checkbox"),c.setAttribute("name",r),c.onchange=o,t.appendChild(u),t.appendChild(c),i&&i.appendChild(t);var d=window.jQuery||window.$;"function"==typeof d&&d(t).checkbox();return Object.defineProperty(t,"onchange",{set:function(e){o=e}}),t}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("div"),n=document.createElement("div");options=e||{},container=options.container||null,type=options.type,id=options.id||!1,label=options.label,items=options.items||options.menu||[],types=options.types||[],type&&types.push(type);id&&t.setAttribute("id",id);t.className="ui buttons "+types.join(" "),container&&container.appendChild(t);var i=document.createElement("div"),r=document.createElement("div");return t.className="ui compact menu",n.className="ui simple dropdown item",i.className="dropdown icon",r.className="menu",n.appendChild(document.createTextNode(label)),n.appendChild(i),n.appendChild(r),t.appendChild(n),t.append=function(t){Array.isArray||(t=[t]),t.forEach(function(t){var n=t.label||t.name||"",i=t.onclick||function(){},o=document.createElement("div"),a=document.createElement("i"),s=document.createTextNode(n);a.className=t.icon+" icon",o.appendChild(a),o.appendChild(s),o.onclick=i.bind(this,e),o.className="item",r.appendChild(o)})},t.menu=function(e){t.append(e)},t.menu(items),t}},function(e,t,n){"use strict";t.a=function(e){t="function"==typeof arguments[0]?arguments[0](e):Button(e);var t=document.createElement("div"),n=e||{},i=n.container||document.body,r=n.onclick||function(){},o=n.text||n.label||null,a=n.icon||!1,s=n.title||!1,l=n.type,c=n.fontSize||n.size||null,u=(n.background,n.types||[]);l&&u.push(l);if(t.className="ui button "+u.join(" "),t.onclick=r,t.style.textAlign="center",t.style.verticalAlign="top",a){var d=document.createElement("i");d.className=a+" icon",d.style.marginRight="10px",t.className+=" icon",t.appendChild(d)}null!==o&&(t.innerHTML+=o);null!==c&&(t.style.fontSize=c);s&&(t.title=s);i&&i.appendChild(t);return t}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("i"),n=e||{},i=n.onclick||!1,r=n.type,o=n.types||[],a=n.title||n.type||!1;r&&o.push(r);a&&(t.title=a);t.className="ui icon "+o.join(" "),i&&(t.onclick=i,t.className+=" link");return t.change=function(e){t.className=t.className.replace(r,d)},t}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("div"),n=e||{},i=n.container||document.body,r=n.type,o=n.selectedColor||"black",a=n.selectedIcon||"",s=n.types||[];r&&s.push(r);i&&i.appendChild(t);t.className="ui list "+s.join(" ");var l=[];let c=(e,t)=>{if(t!=l[e]._selected){if(t)return l[e]._selected=!0,l[e].className+=" selected",void(l[e].hasOwnProperty("icon")&&(l[e].icon.className+=" "+o+" "+a));l[e]._selected=!1,l[e].className=l[e].className.replace("selected",""),l[e].hasOwnProperty("icon")&&(l[e].icon.className=l[e].icon.className.replace(o+" "+a,""))}};t.onselect=n.onselect||function(){};var u=function(e){-1!==s.indexOf("single")?(t.clearSelected(),c(e,!0)):c(e,!l[e]._selected),t.onselect.call(l[e],e)};return t.append=function(e){var n=document.createElement("div"),i=document.createElement("div");if(n.className="item",i.className="content",e.hasOwnProperty("icon")){var r=document.createElement("i");r.className=e.icon+" icon",n.appendChild(r),n.icon=r}if(e.hasOwnProperty("img")){var o=document.createElement("img");o.className="ui avatar iamge",o.src=e.img,n.appendChild(o)}if(e.hasOwnProperty("header")){var a=document.createElement("div");a.innerHTML=e.header,i.appendChild(a)}e.hasOwnProperty("text")&&(i.innerHTML+=e.text),n.appendChild(i);var c=l.length;return n._selected=!1,l.push(n),t.appendChild(n),-1!==s.indexOf("selection")&&(n.onclick=u.bind(this,c)),t},t.setSelectedItemIds=(e=>{t.clearSelected(),e.forEach(e=>{c(e,!0)})}),t.clearSelected=(()=>{l.forEach((e,t)=>{c(t,!1)})}),t.getSelectedItemIds=function(){return l.map((e,t)=>!0===e._selected?t:-1).filter(e=>e>=0)},t.get=function(e){return l[e]},t.select=function(e){u(e)},t.clear=function(){l=[],t.innerHTML=""},t.remove=function(e){return t.removeChild(l[e]),t},t}},function(e,t,n){"use strict";t.a=function(e){var t=e||{},n=t.id||!1,i=t.class||"",r=t.margin||0,o=(t.spacing,t.padding,t.rows||[]),a=t.cols||[],s=t.container||document.body;"string"==typeof s&&(s=document.getElementById(s));s==document.body&&(s.style.height=window.innerHeight+"px",s.style.padding=0,s.style.margin=0,s.style.overflow="hidden");var l=t.width||s.clientWidth||window.innerWidth,c=t.height||s.clientHeight||window.innerHeight,u={},d=[];function f(e,t,n,i){var r=[],o=n;return e.forEach(function(e,a){var s=e.width>1?e.width:e.width*o;r[a]=function(e,t){var n=document.createElement("div");return n.style.display="inline-block",n.className="davi-col",n.style.verticalAlign="top",n.style.width=e+"px",n.style.height=t+"px",n.style.overflow="hidden",n}(s,i),s,void 0!==e.id&&(r[a].setAttribute("id",e.id),u[e.id]=r[a]),t.appendChild(r[a]),e.rows&&(r[a]=p(e.rows,r[a],n,i))}),r}function p(e,t,n,i){var r=[],o=n,a=i;return e.forEach(function(e,n){var i,s,l,c=e.height>1?e.height:e.height*a;r[n]=(i=o,s=c,(l=document.createElement("div")).style.width=i+"px",l.style.height=s+"px",l.className="davi-row",l.style.overflow="hidden",l),c,void 0!==e.id&&(r[n].setAttribute("id",e.id),u[e.id]=r[n]),t.appendChild(r[n]),e.cols&&(r[n]=f(e.cols,r[n],o,c))}),r}var h=function(e,t){var o=document.createElement("div");n&&o.setAttribute("id",n);"string"==typeof i&&(o.className=i);return o.style.height=t+"px",o.style.width=e+"px",o.style.margin=r+"px",o.className="davi-layout",o}(l-=2*r,c-=2*r);o.length&&(d=p(o,h,l,c));a.length&&(d=f(a,h,l,c));return Object.keys(u).forEach(function(e){u[e].append=u[e].appendChild}),h.cell=function(e,t){return"number"==typeof e?"number"==typeof t&&void 0!==d[e][t]?d[e][t]:d[e]:u[e]},h.get=h.cell,s.appendChild(h),h}},function(e,t,n){"use strict";t.a=function(e){var t,n,i=e||{},r=i.container||document.body,o=i.header||null,a=i.title||"",s=i.margin||5,l=(i.style,i.padding||0),c=i.types||[],u="panel ui segment",d=i.AngularJS||i.angularJS||!1;r&&(r="string"==typeof r?document.getElementById(r):r);i.id?null===(t=document.getElementById(i.id))&&((t=document.createElement("div")).setAttribute("id",i.id),r.appendChild(t)):(t=document.createElement("div"),r.appendChild(t));var f=!1,p=i.width||r.clientWidth,h=i.height||r.clientHeight;if(p-=2*s,h-=2*s,t.className="ui",t.style.margin=s+"px",t.style.width=p+"px",t.style.height=h+"px",o){(n=i.header.height||.08*h)<1&&(n*=h),t.header=document.createElement("div"),t.header.className="ui top attached block header primary",t.header.style.backgroundColor="#FFFFFF",t.header.style.height=n+"px",t.header.style.width=p+"px",t.header.style.fontSize=.36*n+"px",i.header.hasOwnProperty("style")&&Object.keys(i.header.style).forEach(function(e){t.header.style[e]=i.header.style[e]}),t.header.style.padding=0,t.header.style.paddingLeft=t.header.style.fontSize;var m=document.createElement("span");m.innerHTML=a,m.style.float="left",m.style.marginTop=.25*n+"px",t.header.appendChild(m),t.appendChild(t.header),Object.defineProperty(t,"title",{get:function(){return a},set:function(e){m.innerHTML=e}}),u+=" bottom attached",Array.isArray(i.header.controls)&&i.header.controls.forEach(function(e){t.header.appendChild(e)});var g=document.createElement("div");g.style.float="right",g.style.marginTop=.25*n+"px",g.style.marginRight=t.header.style.fontSize,t.header.appendChild(g),t.header.append=function(e){return"string"==typeof e?g.innerHTML+=e:g.appendChild(e),t}}else n=0;t.body=document.createElement("div"),t.body.className=u+" panel-body "+c.join(" "),t.body.style.width=p+"px",t.body.style.height=h-n+"px",t.body.style.padding=l+"px",i.hasOwnProperty("style")&&Object.keys(i.style).forEach(function(e){t.body.style[e]=i.style[e]});t.appendChild(t.body),i.id&&t.body.setAttribute("id",i.id+"-body");t.innerWidth=p-2*l,t.innerHeight=h-n-2*l,d&&d.hasOwnProperty("ng-controller")&&(t.setAttribute("ng-controller",d["ng-controller"]),t.body.setAttribute(d.view,""),t.body.setAttribute("id",d.id));return t.showLoading=function(){-1===(" "+t.body.className+" ").indexOf(" loading ")&&(t.body.className+=" loading")},t.hideLoading=function(){t.body.className=t.body.className.replace(/\bloading\b/,"")},t.toggleLoading=function(){-1===(" "+t.body.className+" ").indexOf(" loading ")?t.body.className+=" loading":t.hideLoading()},t.append=function(e){return"string"==typeof e?t.body.innerHTML+=e:t.body.appendChild(e),t},t.clear=function(){t.body.innerHTML=""},t.update=function(e){t.clear(),t.body.appendChild(e)},t.toggleFullScreen=function(){f?(t.style.position="relative",t.style.zIndex=0,t.resize(r.clientWidth-2*s,r.clientHeight-2*s)):(t.style.position="fixed",t.style.top="1px",t.style.left="1px",t.style.zIndex=9999,t.resize(document.body.clientWidth,document.body.clientHeight)),f=!f},t.resize=function(e,i){void 0===e||void 0===i?(p=r.clientWidth,h=r.clientHeight):(p=e,h=i),t.style.width=p+"px",t.style.height=h+"px",t.body.style.width=p+"px",t.body.style.height=h-n+"px",o&&(t.header.style.height=n+"px",t.header.style.width=p+"px")},t}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),r=document.createElement("div"),o=e||{},a=o.container||null,s=o.percentage||0,l=o.type,c=o.text||"",u=o.types||[];l&&u.push(l);t.className="ui progress "+u.join(" "),i.className="progress",n.className="bar",r.className="label",r.innerHTML=c,n.appendChild(i),t.appendChild(n),t.appendChild(r),a&&a.appendChild(t);var d=window.jQuery||window.$;function f(){"function"==typeof d&&d(t).progress({percent:s})}return Object.defineProperty(t,"percent",{set:function(e){return s=e,f(),t}}),f(),t.hide=function(){t.style.display="none"},t.show=function(){t.style.display="block"},t.label=function(e){r.innerHTML=e},t}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("div"),n=e||{},i=n.container||document.body,r=n.data||[],o=(n.name||n.variable,n.field||"inline"),a=n.onchange||function(){},s=n.text||n.label||null,l=(n.icon,n.title,n.type),c=n.checked||null,u=n.types||[];l&&u.push(l);var d=document.createElement("div"),f=document.createElement("label");d.className="ui form",t.className=o+" fields",f.innerHTML=s,t.appendChild(f),r.forEach(function(e){var n=document.createElement("div"),i=document.createElement("div"),r=document.createElement("label"),o=document.createElement("input");i.className="field",n.className="ui radio checkbox",r.innerHTML=e,o.setAttribute("type","radio"),o.setAttribute("name","test"),o.setAttribute("value",e),o.setAttribute("tabindex","0"),c==e&&o.setAttribute("checked","checked"),o.className="hidden",o.onchange=function(){a(this.value)},n.appendChild(r),n.appendChild(o),i.appendChild(n),t.appendChild(i)}),d.appendChild(t),i&&i.appendChild(d);var p=window.jQuery||jQuery||$;void 0!==p&&p(".ui.radio.checkbox").checkbox();return Object.defineProperty(d,"onchange",{set:function(e){return a=e,t}}),d}},function(e,t,n){"use strict";t.a=function(e){var t=document.createElement("table"),n=e||{},i=n.container||document.body,r=(n.rows,n.columns||n.cols||!1),o=n.type,a=n.width||.9*i.clientWidth,s=n.types||[];o&&s.push(o);i&&i.appendChild(t);t.className="ui table "+s.join(" "),t.style.margin="5px auto",t.style.width=a+"px";var l=document.createElement("thead"),c=document.createElement("tbody"),u=document.createElement("tr");l.appendChild(u),r&&r.forEach(function(e){var t=document.createElement("th");t.innerHTML=e,u.appendChild(t)});t.appendChild(l),t.appendChild(c),t.addRow=function(e){var t=Array.isArray(e)?e:[e],n=document.createElement("tr");return t.forEach(function(e){var t=document.createElement("td");e instanceof HTMLElement?t.appendChild(e):t.innerHTML=e,n.appendChild(t)}),c.appendChild(n),n},t.updateCell=function(e,t,n){var i=c.childNodes[e].childNodes[t];return i.innerHTML=n,i},n.hasOwnProperty("style")&&Object.keys(n.style).forEach(function(e){t.style[e]=n.style[e]});return t.tbody=c,t}}]);
//# sourceMappingURL=dashi.bundle.semantic-jquery.min.js.map