!function(){"use strict";!function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const t={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},e={silent:{level:-1},fatal:{level:t.fatal},error:{level:t.error},warn:{level:t.warn},log:{level:t.log},info:{level:t.info},success:{level:t.success},fail:{level:t.fail},ready:{level:t.info},start:{level:t.info},box:{level:t.info},debug:{level:t.debug},trace:{level:t.trace},verbose:{level:t.verbose}};function n(t){if(null===t||"object"!=typeof t)return!1;const e=Object.getPrototypeOf(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&(!(Symbol.iterator in t)&&(!(Symbol.toStringTag in t)||"[object Module]"===Object.prototype.toString.call(t)))}function i(t,e,r=".",o){if(!n(e))return i(t,{},r);const s=Object.assign({},e);for(const e in t){if("__proto__"===e||"constructor"===e)continue;const o=t[e];null!=o&&(Array.isArray(o)&&Array.isArray(s[e])?s[e]=[...o,...s[e]]:n(o)&&n(s[e])?s[e]=i(o,s[e],(r?`${r}.`:"")+e.toString()):s[e]=o)}return s}const r=(...t)=>t.reduce(((t,e)=>i(t,e,"")),{});function o(t){return e=t,"[object Object]"===Object.prototype.toString.call(e)&&(!(!t.message&&!t.args)&&!t.stack);var e}let s=!1;const a=[];class u{options;_lastLog;_mockFn;constructor(t={}){const n=t.types||e;this.options=r({...t,defaults:{...t.defaults},level:l(t.level,n),reporters:[...t.reporters||[]]},{types:e,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const t in n){const e={type:t,...this.options.defaults,...n[t]};this[t]=this._wrapLogFn(e),this[t].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=l(t,this.options.types,this.options.level)}prompt(t,e){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,e)}create(t){const e=new u({...this.options,...t});return this._mockFn&&e.mockTypes(this._mockFn),e}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const e=this.options.reporters.indexOf(t);if(-1!==e)return this.options.reporters.splice(e,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=t=>{this[e].raw(String(t).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){s=!0}resumeLogs(){s=!1;const t=a.splice(0);for(const e of t)e[0]._logFn(e[1],e[2])}mockTypes(t){const e=t||this.options.mockFn;if(this._mockFn=e,"function"==typeof e)for(const t in this.options.types)this[t]=e(t,this.options.types[t])||this[t],this[t].raw=this[t]}_wrapLogFn(t,e){return(...n)=>{if(!s)return this._logFn(t,n,e);a.push([this,t,n,e])}}_logFn(t,e,n){if((t.level||0)>this.level)return!1;const i={date:new Date,args:[],...t,level:l(t.level,this.options.types)};!n&&1===e.length&&o(e[0])?Object.assign(i,e[0]):i.args=[...e],i.message&&(i.args.unshift(i.message),delete i.message),
i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split("\n")),i.args.push("\n"+i.additional.join("\n")),delete i.additional),i.type="string"==typeof i.type?i.type.toLowerCase():"log",i.tag="string"==typeof i.tag?i.tag:"";const r=(t=!1)=>{const e=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&e>0){const t=[...this._lastLog.object.args];e>1&&t.push(`(repeated ${e} times)`),this._log({...this._lastLog.object,args:t}),this._lastLog.count=1}t&&(this._lastLog.object=i,this._log(i))};clearTimeout(this._lastLog.timeout);const s=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,s<this.options.throttle)try{const t=JSON.stringify([i.type,i.tag,i.args]),e=this._lastLog.serialized===t;if(this._lastLog.serialized=t,e&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin))return void(this._lastLog.timeout=setTimeout(r,this.options.throttle))}catch{}r(!0)}_log(t){for(const e of this.options.reporters)e.log(t,{options:this.options})}}function l(t,e={},n=3){return void 0===t?n:"number"==typeof t?t:e[t]&&void 0!==e[t].level?e[t].level:n}u.prototype.add=u.prototype.addReporter,u.prototype.remove=u.prototype.removeReporter,u.prototype.clear=u.prototype.removeReporter,u.prototype.withScope=u.prototype.withTag,u.prototype.mock=u.prototype.mockTypes,u.prototype.pause=u.prototype.pauseLogs,u.prototype.resume=u.prototype.resumeLogs;class c{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:1===t?console.__warn||console.warn:console.__log||console.log}log(t){const e=this._getLogFn(t.level),n="log"===t.type?"":t.type,i=t.tag||"",r=`\n      background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};\n      border-radius: 0.5em;\n      color: white;\n      font-weight: bold;\n      padding: 2px 0.5em;\n    `,o=`%c${[i,n].filter(Boolean).join(":")}`;"string"==typeof t.args[0]?e(`${o}%c ${t.args[0]}`,r,"",...t.args.slice(1)):e(o,r,...t.args)}}const f=function(t={}){return function(t={}){return new u(t)}({reporters:t.reporters||[new c({})],prompt:(t,e={})=>"confirm"===e.type?Promise.resolve(confirm(t)):Promise.resolve(prompt(t)),...t})}();var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d,g={exports:{}},m=g.exports;function y(){return d||(d=1,t=g,function(e,n){t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}}("undefined"!=typeof window?window:m,(function(t,e){var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},s=n.push,a=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f=c.toString,p=f.call(Object),h={},d=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},v=function(t){return null!=t&&t===t.window},g=t.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,n){var i,r,o=(n=n||g).createElement("script");if(o.text=t,e)for(i in m)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[l.call(t)]||"object":typeof t}var b="3.5.1",x=function(t,e){return new x.fn.init(t,e)};function _(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!d(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:b,constructor:x,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},
pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},x.extend=x.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||d(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(l&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,s[e]=x.extend(l,o,i)):void 0!==i&&(s[e]=i));return s},x.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==l.call(t)||(e=i(t))&&("function"!=typeof(n=c.call(e,"constructor")&&e.constructor)||f.call(n)!==p))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(_(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(_(Object(t))?x.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:a.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,s=0,a=[];if(_(t))for(i=t.length;s<i;s++)null!=(r=e(t[s],s,n))&&a.push(r);else for(s in t)null!=(r=e(t[s],s,n))&&a.push(r);return o(a)},guid:1,support:h}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){u["[object "+e+"]"]=e.toLowerCase()}));var A=function(t){var e,n,i,r,o,s,a,u,l,c,f,p,h,d,v,g,m,y,w,b="sizzle"+1*new Date,x=t.document,_=0,A=0,T=ut(),C=ut(),k=ut(),S=ut(),$=function(t,e){return t===e&&(f=!0),0},E={}.hasOwnProperty,j=[],L=j.pop,D=j.push,N=j.push,O=j.slice,I=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\["+P+"*("+F+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+P+"*\\]",M=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",B=new RegExp(P+"+","g"),W=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),q=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),z=new RegExp(P+"|>"),Q=new RegExp(M),G=new RegExp("^"+F+"$"),V={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")
},Y=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){p()},st=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{N.apply(j=O.call(x.childNodes),x.childNodes),j[x.childNodes.length].nodeType}catch(t){N={apply:j.length?function(t,e){D.apply(t,O.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(t,e,i,r){var o,a,l,c,f,d,m,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return i;if(!r&&(p(e),e=e||h,v)){if(11!==x&&(f=Z.exec(t)))if(o=f[1]){if(9===x){if(!(l=e.getElementById(o)))return i;if(l.id===o)return i.push(l),i}else if(y&&(l=y.getElementById(o))&&w(e,l)&&l.id===o)return i.push(l),i}else{if(f[2])return N.apply(i,e.getElementsByTagName(t)),i;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!S[t+" "]&&(!g||!g.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(m=t,y=e,1===x&&(z.test(t)||U.test(t))){for((y=tt.test(t)&&mt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(it,rt):e.setAttribute("id",c=b)),a=(d=s(t)).length;a--;)d[a]=(c?"#"+c:":scope")+" "+wt(d[a]);m=d.join(",")}try{return N.apply(i,y.querySelectorAll(m)),i}catch(e){S(t,!0)}finally{c===b&&e.removeAttribute("id")}}}return u(t.replace(W,"$1"),e,i,r)}function ut(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function lt(t){return t[b]=!0,t}function ct(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function pt(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function vt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return lt((function(e){return e=+e,lt((function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},o=at.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!Y.test(e||n&&n.nodeName||"HTML")},p=at.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:x;return s!=h&&9===s.nodeType&&s.documentElement?(d=(h=s).documentElement,v=!o(h),x!=h&&(r=h.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),n.scope=ct((function(t){return d.appendChild(t).appendChild(h.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(h.getElementsByClassName),n.getById=ct((function(t){return d.appendChild(t).id=b,!h.getElementsByName||!h.getElementsByName(b).length})),
n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},m=[],g=[],(n.qsa=K.test(h.querySelectorAll))&&(ct((function(t){var e;d.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+b+"-]").length||g.push("~="),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+P+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=K.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),m.push("!=",M)})),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),e=K.test(d.compareDocumentPosition),w=e||K.test(d.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return f=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==h||t.ownerDocument==x&&w(x,t)?-1:e==h||e.ownerDocument==x&&w(x,e)?1:c?I(c,t)-I(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t==h?-1:e==h?1:r?-1:o?1:c?I(c,t)-I(c,e):0;if(r===o)return pt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?pt(s[i],a[i]):s[i]==x?-1:a[i]==x?1:0},h):h},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(p(t),n.matchesSelector&&v&&!S[e+" "]&&(!m||!m.test(e))&&(!g||!g.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){S(e,!0)}return at(e,h,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!=h&&p(t),w(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=h&&p(t)
;var r=i.attrHandle[e.toLowerCase()],o=r&&E.call(i.attrHandle,e.toLowerCase())?r(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},at.escape=function(t){return(t+"").replace(it,rt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],r=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort($),f){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},r=at.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},i=at.selectors={cacheLength:50,createPseudo:lt,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Q.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&T(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=at.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,p,h,d,v=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!u&&!a,w=!1;if(g){if(o){for(;v;){for(p=e;p=p[v];)if(a?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;d=v="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&y){for(w=(h=(l=(c=(f=(p=g)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]||[])[0]===_&&l[1])&&l[2],p=h&&g.childNodes[h];p=++h&&p&&p[v]||(w=h=0)||d.pop();)if(1===p.nodeType&&++w&&p===e){c[t]=[_,h,w];break}}else if(y&&(w=h=(l=(c=(f=(p=e)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]||[])[0]===_&&l[1]),!1===w)for(;(p=++h&&p&&p[v]||(w=h=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++w||(y&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[t]=[_,w]),p!==e)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return r[b]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?lt((function(t,n){for(var i,o=r(t,e),s=o.length;s--;)t[i=I(t,o[s])]=!(n[i]=o[s])})):function(t){return r(t,0,n)}):r}},pseudos:{not:lt((function(t){var e=[],n=[],i=a(t.replace(W,"$1"));return i[b]?lt((function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:lt((function(t){return function(e){return at(t,e).length>0}})),contains:lt((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),
lang:lt((function(t){return G.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:vt(!1),disabled:vt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:gt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:gt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:gt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ht(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=dt(e);function yt(){}function wt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function bt(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=A++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,u){var l,c,f,p=[_,a];if(u){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,u))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(c=(f=e[b]||(e[b]={}))[e.uniqueID]||(f[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((l=c[o])&&l[0]===_&&l[1]===a)return p[2]=l[2];if(c[o]=p,p[2]=t(e,n,u))return!0}return!1}}function xt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function _t(t,e,n,i,r){for(var o,s=[],a=0,u=t.length,l=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),l&&e.push(a)));return s}function At(t,e,n,i,r,o){return i&&!i[b]&&(i=At(i)),r&&!r[b]&&(r=At(r,o)),lt((function(o,s,a,u){var l,c,f,p=[],h=[],d=s.length,v=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)at(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),g=!t||!o&&e?v:_t(v,p,t,a,u),m=n?r||(o?t:d||i)?[]:s:g;if(n&&n(g,m,a,u),i)for(l=_t(m,h),i(l,[],a,u),c=l.length;c--;)(f=l[c])&&(m[h[c]]=!(g[h[c]]=f));if(o){if(r||t){if(r){for(l=[],c=m.length;c--;)(f=m[c])&&l.push(g[c]=f);r(null,m=[],l,u)}for(c=m.length;c--;)(f=m[c])&&(l=r?I(o,f):p[c])>-1&&(o[l]=!(s[l]=f))}}else m=_t(m===s?m.splice(d,m.length):m),r?r(null,s,m,u):N.apply(s,m)}))}function Tt(t){for(var e,n,r,o=t.length,s=i.relative[t[0].type],a=s||i.relative[" "],u=s?1:0,c=bt((function(t){return t===e}),a,!0),f=bt((function(t){return I(e,t)>-1}),a,!0),p=[function(t,n,i){var r=!s&&(i||n!==l)||((e=n).nodeType?c(t,n,i):f(t,n,i));return e=null,r}];u<o;u++)if(n=i.relative[t[u].type])p=[bt(xt(p),n)];else{if((n=i.filter[t[u].type].apply(null,t[u].matches))[b]){for(r=++u;r<o&&!i.relative[t[r].type];r++);return At(u>1&&xt(p),u>1&&wt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(W,"$1"),n,u<r&&Tt(t.slice(u,r)),r<o&&Tt(t=t.slice(r)),r<o&&wt(t))}p.push(n)}return xt(p)}return yt.prototype=i.filters=i.pseudos,i.setFilters=new yt,s=at.tokenize=function(t,e){var n,r,o,s,a,u,l,c=C[t+" "];if(c)return e?0:c.slice(0);for(a=t,u=[],l=i.preFilter;a;){
for(s in n&&!(r=q.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=U.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),a=a.slice(n.length)),i.filter)!(r=V[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?at.error(t):C(t,u).slice(0)},a=at.compile=function(t,e){var n,r=[],o=[],a=k[t+" "];if(!a){for(e||(e=s(t)),n=e.length;n--;)(a=Tt(e[n]))[b]?r.push(a):o.push(a);a=k(t,function(t,e){var n=e.length>0,r=t.length>0,o=function(o,s,a,u,c){var f,d,g,m=0,y="0",w=o&&[],b=[],x=l,A=o||r&&i.find.TAG("*",c),T=_+=null==x?1:Math.random()||.1,C=A.length;for(c&&(l=s==h||s||c);y!==C&&null!=(f=A[y]);y++){if(r&&f){for(d=0,s||f.ownerDocument==h||(p(f),a=!v);g=t[d++];)if(g(f,s||h,a)){u.push(f);break}c&&(_=T)}n&&((f=!g&&f)&&m--,o&&w.push(f))}if(m+=y,n&&y!==m){for(d=0;g=e[d++];)g(w,b,s,a);if(o){if(m>0)for(;y--;)w[y]||b[y]||(b[y]=L.call(u));b=_t(b)}N.apply(u,b),c&&!o&&b.length>0&&m+e.length>1&&at.uniqueSort(u)}return c&&(_=T,l=x),w};return n?lt(o):o}(o,r)),a.selector=t}return a},u=at.select=function(t,e,n,r){var o,u,l,c,f,p="function"==typeof t&&t,h=!r&&s(t=p.selector||t);if(n=n||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===e.nodeType&&v&&i.relative[u[1].type]){if(!(e=(i.find.ID(l.matches[0].replace(et,nt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(o=V.needsContext.test(t)?0:u.length;o--&&(l=u[o],!i.relative[c=l.type]);)if((f=i.find[c])&&(r=f(l.matches[0].replace(et,nt),tt.test(u[0].type)&&mt(e.parentNode)||e))){if(u.splice(o,1),!(t=r.length&&wt(u)))return N.apply(n,r),n;break}}return(p||a(t,h))(r,e,!v,n,!e||tt.test(t)&&mt(e.parentNode)||e),n},n.sortStable=b.split("").sort($).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ft(R,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),at}(t);x.find=A,x.expr=A.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=A.uniqueSort,x.text=A.getText,x.isXMLDoc=A.isXML,x.contains=A.contains,x.escapeSelector=A.escape;var T=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&x(t).is(n))break;i.push(t)}return i},C=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},k=x.expr.match.needsContext;function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var $=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(t,e,n){return d(e)?x.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?x.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?x.grep(t,(function(t){return a.call(e,t)>-1!==n})):x.filter(e,t,n)}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<i;e++)if(x.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)x.find(t,r[e],n);return i>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(E(this,t||[],!1))},not:function(t){return this.pushStack(E(this,t||[],!0))},is:function(t){return!!E(this,"string"==typeof t&&k.test(t)?x(t):t||[],!1).length}})
;var j,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||j,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:L.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),$.test(i[1])&&x.isPlainObject(e))for(i in e)d(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=g.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):d(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,j=x(g);var D=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&x(t);if(!k.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?a.call(x(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return O(t,"nextSibling")},prev:function(t){return O(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(S(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(n,i){var r=x.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(N[t]||x.uniqueSort(r),D.test(t)&&r.reverse()),this.pushStack(r)}}));var I=/[^\x20\t\r\n\f]+/g;function R(t){return t}function P(t){throw t}function F(t,e,n,i){var r;try{t&&d(r=t.promise)?r.call(t).done(e).fail(n):t&&d(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(I)||[],(function(t,n){e[n]=!0})),e}(t):x.extend({},t);var e,n,i,r,o=[],s=[],a=-1,u=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){x.each(n,(function(n,i){d(i)?t.unique&&l.has(i)||o.push(i):i&&i.length&&"string"!==w(i)&&e(i)}))}(arguments),n&&!e&&u()),this},remove:function(){return x.each(arguments,(function(t,e){for(var n;(n=x.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},x.extend({Deferred:function(e){
var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(e){x.each(n,(function(n,i){var r=d(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&d(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(e,i,r){var o=0;function s(e,n,i,r){return function(){var a=this,u=arguments,l=function(){var t,l;if(!(e<o)){if((t=i.apply(a,u))===n.promise())throw new TypeError("Thenable self-resolution");l=t&&("object"==typeof t||"function"==typeof t)&&t.then,d(l)?r?l.call(t,s(o,n,R,r),s(o,n,P,r)):(o++,l.call(t,s(o,n,R,r),s(o,n,P,r),s(o,n,R,n.notifyWith))):(i!==R&&(a=void 0,u=[t]),(r||n.resolveWith)(a,u))}},c=r?l:function(){try{l()}catch(t){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(t,c.stackTrace),e+1>=o&&(i!==P&&(a=void 0,u=[t]),n.rejectWith(a,u))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),t.setTimeout(c))}}return x.Deferred((function(t){n[0][3].add(s(0,t,d(r)?r:R,t.notifyWith)),n[1][3].add(s(0,t,d(e)?e:R)),n[2][3].add(s(0,t,d(i)?i:P))})).promise()},promise:function(t){return null!=t?x.extend(t,r):r}},o={};return x.each(n,(function(t,e){var s=e[2],a=e[5];r[e[1]]=s.add,a&&s.add((function(){i=a}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),s.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=s.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),o=r.call(arguments),s=x.Deferred(),a=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?r.call(arguments):n,--e||s.resolveWith(i,o)}};if(e<=1&&(F(t,s.done(a(n)).resolve,s.reject,!e),"pending"===s.state()||d(o[n]&&o[n].then)))return s.then();for(;n--;)F(o[n],a(n),s.reject);return s.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&H.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},x.readyException=function(e){t.setTimeout((function(){throw e}))};var M=x.Deferred();function B(){g.removeEventListener("DOMContentLoaded",B),t.removeEventListener("load",B),x.ready()}x.fn.ready=function(t){return M.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||M.resolveWith(g,[x]))}}),x.ready.then=M.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?t.setTimeout(x.ready):(g.addEventListener("DOMContentLoaded",B),t.addEventListener("load",B));var W=function(t,e,n,i,r,o,s){var a=0,u=t.length,l=null==n;if("object"===w(n))for(a in r=!0,n)W(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,d(i)||(s=!0),l&&(s?(e.call(t,i),e=null):(l=e,e=function(t,e,n){return l.call(x(t),n)})),e))for(;a<u;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:l?e.call(t):u?e(t[0],n):o},q=/^-ms-/,U=/-([a-z])/g;function z(t,e){return e.toUpperCase()}function Q(t){return t.replace(q,"ms-").replace(U,z)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function V(){this.expando=x.expando+V.uid++}V.uid=1,V.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[Q(e)]=n;else for(i in e)r[Q(i)]=e[i];return r},get:function(t,e){
return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Q(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(Q):(e=Q(e))in i?[e]:e.match(I)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||x.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var Y=new V,X=new V,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(K,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:J.test(t)?JSON.parse(t):t)}(n)}catch(t){}X.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return X.hasData(t)||Y.hasData(t)},data:function(t,e,n){return X.access(t,e,n)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,n){return Y.access(t,e,n)},_removeData:function(t,e){Y.remove(t,e)}}),x.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=X.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=Q(i.slice(5)),Z(o,i,r[i]));Y.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){X.set(this,t)})):W(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=X.get(o,t))||void 0!==(n=Z(o,t))?n:void 0;this.each((function(){X.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){X.remove(this,t)}))}}),x.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Y.get(t,e),n&&(!i||Array.isArray(n)?i=Y.access(t,e,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),i=n.length,r=n.shift(),o=x._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){x.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Y.get(t,n)||Y.access(t,n,{empty:x.Callbacks("once memory").add((function(){Y.remove(t,[e+"queue",n])}))})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each((function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=x.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Y.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=g.documentElement,rt=function(t){return x.contains(t.ownerDocument,t)},ot={composed:!0};it.getRootNode&&(rt=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===x.css(t,"display")};function at(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return x.css(t,e,"")},u=a(),l=n&&n[3]||(x.cssNumber[e]?"":"px"),c=t.nodeType&&(x.cssNumber[e]||"px"!==l&&+u)&&et.exec(x.css(t,e));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)x.style(t,e,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;c*=2,x.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}var ut={};function lt(t){var e,n=t.ownerDocument,i=t.nodeName,r=ut[i];return r||(e=n.body.appendChild(n.createElement(i)),r=x.css(e,"display"),
e.parentNode.removeChild(e),"none"===r&&(r="block"),ut[i]=r,r)}function ct(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=Y.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&st(i)&&(r[o]=lt(i))):"none"!==n&&(r[o]="none",Y.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}x.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?x(this).show():x(this).hide()}))}});var ft,pt,ht=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,vt=/^$|^module$|\/(?:java|ecma)script/i;ft=g.createDocumentFragment().appendChild(g.createElement("div")),(pt=g.createElement("input")).setAttribute("type","radio"),pt.setAttribute("checked","checked"),pt.setAttribute("name","t"),ft.appendChild(pt),h.checkClone=ft.cloneNode(!0).cloneNode(!0).lastChild.checked,ft.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ft.cloneNode(!0).lastChild.defaultValue,ft.innerHTML="<option></option>",h.option=!!ft.lastChild;var gt={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 mt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&S(t,e)?x.merge([t],n):n}function yt(t,e){for(var n=0,i=t.length;n<i;n++)Y.set(t[n],"globalEval",!e||Y.get(e[n],"globalEval"))}gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,h.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);var wt=/<|&#?\w+;/;function bt(t,e,n,i,r){for(var o,s,a,u,l,c,f=e.createDocumentFragment(),p=[],h=0,d=t.length;h<d;h++)if((o=t[h])||0===o)if("object"===w(o))x.merge(p,o.nodeType?[o]:o);else if(wt.test(o)){for(s=s||f.appendChild(e.createElement("div")),a=(dt.exec(o)||["",""])[1].toLowerCase(),u=gt[a]||gt._default,s.innerHTML=u[1]+x.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;x.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(e.createTextNode(o));for(f.textContent="",h=0;o=p[h++];)if(i&&x.inArray(o,i)>-1)r&&r.push(o);else if(l=rt(o),s=mt(f.appendChild(o),"script"),l&&yt(s),n)for(c=0;o=s[c++];)vt.test(o.type||"")&&n.push(o);return f}var xt=/^key/,_t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,At=/^([^.]*)(?:\.(.+)|)/;function Tt(){return!0}function Ct(){return!1}function kt(t,e){return t===function(){try{return g.activeElement}catch(t){}}()==("focus"===e)}function St(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)St(t,a,n,i,e[a],o);return t}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=Ct;else if(!r)return t;return 1===o&&(s=r,r=function(t){return x().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=x.guid++)),t.each((function(){x.event.add(this,e,r,i,n)}))}function $t(t,e,n){n?(Y.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var i,o,s=Y.get(this,e);if(1&t.isTrigger&&this[e]){if(s.length)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(s=r.call(arguments),Y.set(this,e,s),i=n(this,e),this[e](),s!==(o=Y.get(this,e))||i?Y.set(this,e,!1):o={},s!==o)return t.stopImmediatePropagation(),t.preventDefault(),o.value}else s.length&&(Y.set(this,e,{value:x.event.trigger(x.extend(s[0],x.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Y.get(t,e)&&x.event.add(t,e,Tt)}x.event={global:{},add:function(t,e,n,i,r){var o,s,a,u,l,c,f,p,h,d,v,g=Y.get(t);if(G(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(it,r),n.guid||(n.guid=x.guid++),(u=g.events)||(u=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(e){
return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(I)||[""]).length;l--;)h=v=(a=At.exec(e[l])||[])[1],d=(a[2]||"").split(".").sort(),h&&(f=x.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,f=x.event.special[h]||{},c=x.extend({type:h,origType:v,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:d.join(".")},o),(p=u[h])||((p=u[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,d,s)||t.addEventListener&&t.addEventListener(h,s)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),x.event.global[h]=!0)},remove:function(t,e,n,i,r){var o,s,a,u,l,c,f,p,h,d,v,g=Y.hasData(t)&&Y.get(t);if(g&&(u=g.events)){for(l=(e=(e||"").match(I)||[""]).length;l--;)if(h=v=(a=At.exec(e[l])||[])[1],d=(a[2]||"").split(".").sort(),h){for(f=x.event.special[h]||{},p=u[h=(i?f.delegateType:f.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!r&&v!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(t,c));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(t,d,g.handle)||x.removeEvent(t,h,g.handle),delete u[h])}else for(h in u)x.event.remove(t,h+e[l],n,i,!0);x.isEmptyObject(u)&&Y.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),u=x.event.fix(t),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=x.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(s=x.event.handlers.call(this,u,l),e=0;(r=s[e++])&&!u.isPropagationStopped();)for(u.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(i=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(u.result=i)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,i,r,o,s,a=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?x(r,this).index(l)>-1:x.find(r,this,null,[l]).length),s[r]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return l=this,u<e.length&&a.push({elem:l,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:d(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ht.test(e.type)&&e.click&&S(e,"input")&&$t(e,"click",Tt),!1},trigger:function(t){var e=this||t;return ht.test(e.type)&&e.click&&S(e,"input")&&$t(e,"click"),!0},_default:function(t){var e=t.target;return ht.test(e.type)&&e.click&&S(e,"input")&&Y.get(e,"click")||S(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Tt:Ct,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,
e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ct,isPropagationStopped:Ct,isImmediatePropagationStopped:Ct,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Tt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Tt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Tt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.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,code:!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(t){var e=t.button;return null==t.which&&xt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&_t.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){x.event.special[t]={setup:function(){return $t(this,t,kt),!1},trigger:function(){return $t(this,t),!0},delegateType:e}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||x.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),x.fn.extend({on:function(t,e,n,i){return St(this,t,e,n,i)},one:function(t,e,n,i){return St(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,x(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ct),this.each((function(){x.event.remove(this,t,n,e)}))}});var Et=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,Lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Dt(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function It(t,e){var n,i,r,o,s,a;if(1===e.nodeType){if(Y.hasData(t)&&(a=Y.get(t).events))for(r in Y.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)x.event.add(e,r,a[r][n]);X.hasData(t)&&(o=X.access(t),s=x.extend({},o),X.set(e,s))}}function Rt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ht.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Pt(t,e,n,i){e=o(e);var r,s,a,u,l,c,f=0,p=t.length,v=p-1,g=e[0],m=d(g);if(m||p>1&&"string"==typeof g&&!h.checkClone&&jt.test(g))return t.each((function(r){var o=t.eq(r);m&&(e[0]=g.call(this,r,o.html())),Pt(o,e,n,i)}));if(p&&(s=(r=bt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(u=(a=x.map(mt(r,"script"),Nt)).length;f<p;f++)l=r,f!==v&&(l=x.clone(l,!0,!0),u&&x.merge(a,mt(l,"script"))),n.call(t[f],l,f);if(u)for(c=a[a.length-1].ownerDocument,x.map(a,Ot),f=0;f<u;f++)l=a[f],vt.test(l.type||"")&&!Y.access(l,"globalEval")&&x.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):y(l.textContent.replace(Lt,""),l,c))}return t}function Ft(t,e,n){for(var i,r=e?x.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||x.cleanData(mt(i)),i.parentNode&&(n&&rt(i)&&yt(mt(i,"script")),i.parentNode.removeChild(i));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){
var i,r,o,s,a=t.cloneNode(!0),u=rt(t);if(!(h.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(s=mt(a),i=0,r=(o=mt(t)).length;i<r;i++)Rt(o[i],s[i]);if(e)if(n)for(o=o||mt(t),s=s||mt(a),i=0,r=o.length;i<r;i++)It(o[i],s[i]);else It(t,a);return(s=mt(a,"script")).length>0&&yt(s,!u&&mt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=x.event.special,o=0;void 0!==(n=t[o]);o++)if(G(n)){if(e=n[Y.expando]){if(e.events)for(i in e.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,e.handle);n[Y.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return W(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Pt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)}))},prepend:function(){return Pt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Dt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Pt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Pt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return W(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!gt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(mt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Pt(this,arguments,(function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(mt(this)),n&&n.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var n,i=[],r=x(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(r[a])[e](n),s.apply(i,n.get());return this.pushStack(i)}}));var Ht=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Mt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Bt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Wt=new RegExp(nt.join("|"),"i");function qt(t,e,n){var i,r,o,s,a=t.style;return(n=n||Mt(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||rt(t)||(s=x.style(t,e)),!h.pixelBoxStyles()&&Ht.test(s)&&Wt.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Ut(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(l).appendChild(c);var e=t.getComputedStyle(c);i="1%"!==e.top,u=12===n(e.marginLeft),c.style.right="60%",s=36===n(e.right),r=36===n(e.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),it.removeChild(l),c=null}}function n(t){return Math.round(parseFloat(t))}var i,r,o,s,a,u,l=g.createElement("div"),c=g.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(h,{
boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),u},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,n,i,r;return null==a&&(e=g.createElement("table"),n=g.createElement("tr"),i=g.createElement("div"),e.style.cssText="position:absolute;left:-11111px",n.style.height="1px",i.style.height="9px",it.appendChild(e).appendChild(n).appendChild(i),r=t.getComputedStyle(n),a=parseInt(r.height)>3,it.removeChild(e)),a}}))}();var zt=["Webkit","Moz","ms"],Qt=g.createElement("div").style,Gt={};function Vt(t){var e=x.cssProps[t]||Gt[t];return e||(t in Qt?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=zt.length;n--;)if((t=zt[n]+e)in Qt)return t}(t)||t)}var Yt=/^(none|table(?!-c[ea]).+)/,Xt=/^--/,Jt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function Zt(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function te(t,e,n,i,r,o){var s="width"===e?1:0,a=0,u=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=x.css(t,n+nt[s],!0,r)),i?("content"===n&&(u-=x.css(t,"padding"+nt[s],!0,r)),"margin"!==n&&(u-=x.css(t,"border"+nt[s]+"Width",!0,r))):(u+=x.css(t,"padding"+nt[s],!0,r),"padding"!==n?u+=x.css(t,"border"+nt[s]+"Width",!0,r):a+=x.css(t,"border"+nt[s]+"Width",!0,r));return!i&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-a-.5))||0),u}function ee(t,e,n){var i=Mt(t),r=(!h.boxSizingReliable()||n)&&"border-box"===x.css(t,"boxSizing",!1,i),o=r,s=qt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Ht.test(s)){if(!n)return s;s="auto"}return(!h.boxSizingReliable()&&r||!h.reliableTrDimensions()&&S(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===x.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+te(t,e,n||(r?"border":"content"),o,i,s)+"px"}function ne(t,e,n,i,r){return new ne.prototype.init(t,e,n,i,r)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=qt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=Q(e),u=Xt.test(e),l=t.style;if(u||(e=Vt(a)),s=x.cssHooks[e]||x.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e];"string"==(o=typeof n)&&(r=et.exec(n))&&r[1]&&(n=at(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=r&&r[3]||(x.cssNumber[a]?"":"px")),h.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,i){var r,o,s,a=Q(e);return Xt.test(e)||(e=Vt(a)),(s=x.cssHooks[e]||x.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=qt(t,e,i)),"normal"===r&&e in Kt&&(r=Kt[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,n,i){if(n)return!Yt.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ee(t,e,i):Bt(t,Jt,(function(){return ee(t,e,i)}))},set:function(t,n,i){var r,o=Mt(t),s=!h.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===x.css(t,"boxSizing",!1,o),u=i?te(t,e,i,a,o):0;return a&&s&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-te(t,e,"border",!1,o)-.5)),u&&(r=et.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),Zt(0,n,u)}}})),x.cssHooks.marginLeft=Ut(h.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(qt(t,"marginLeft"))||t.getBoundingClientRect().left-Bt(t,{marginLeft:0},(function(){
return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+nt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(x.cssHooks[t+e].set=Zt)})),x.fn.extend({css:function(t,e){return W(this,(function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Mt(t),r=e.length;s<r;s++)o[e[s]]=x.css(t,e[s],!1,i);return o}return void 0!==n?x.style(t,e,n):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=ne,ne.prototype={constructor:ne,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=ne.propHooks[this.prop];return t&&t.get?t.get(this):ne.propHooks._default.get(this)},run:function(t){var e,n=ne.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ne.propHooks._default.set(this),this}},ne.prototype.init.prototype=ne.prototype,ne.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Vt(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},ne.propHooks.scrollTop=ne.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=ne.prototype.init,x.fx.step={};var ie,re,oe=/^(?:toggle|show|hide)$/,se=/queueHooks$/;function ae(){re&&(!1===g.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ae):t.setTimeout(ae,x.fx.interval),x.fx.tick())}function ue(){return t.setTimeout((function(){ie=void 0})),ie=Date.now()}function le(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=nt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ce(t,e,n){for(var i,r=(fe.tweeners[e]||[]).concat(fe.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function fe(t,e,n){var i,r,o=0,s=fe.prefilters.length,a=x.Deferred().always((function(){delete u.elem})),u=function(){if(r)return!1;for(var e=ie||ue(),n=Math.max(0,l.startTime+l.duration-e),i=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(i);return a.notifyWith(t,[l,i,n]),i<1&&s?n:(s||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:ie||ue(),duration:n.duration,tweens:[],createTween:function(e,n){var i=x.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){var n=0,i=e?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),c=l.props;for(function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=Q(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=x.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,l.opts.specialEasing);o<s;o++)if(i=fe.prefilters[o].call(l,t,c,l.opts))return d(i.stop)&&(x._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return x.map(c,ce,l),d(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),x.fx.timer(x.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}x.Animation=x.extend(fe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e)
;return at(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){d(t)?(e=t,t=["*"]):t=t.match(I);for(var n,i=0,r=t.length;i<r;i++)n=t[i],fe.tweeners[n]=fe.tweeners[n]||[],fe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,u,l,c,f="width"in e||"height"in e,p=this,h={},d=t.style,v=t.nodeType&&st(t),g=Y.get(t,"fxshow");for(i in n.queue||(null==(s=x._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always((function(){p.always((function(){s.unqueued--,x.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],oe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(v?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;v=!0}h[i]=g&&g[i]||x.style(t,i)}if((u=!x.isEmptyObject(e))||!x.isEmptyObject(h))for(i in f&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(l=g&&g.display)&&(l=Y.get(t,"display")),"none"===(c=x.css(t,"display"))&&(l?c=l:(ct([t],!0),l=t.style.display||l,c=x.css(t,"display"),ct([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===x.css(t,"float")&&(u||(p.done((function(){d.display=l})),null==l&&(c=d.display,l="none"===c?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",p.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}))),u=!1,h)u||(g?"hidden"in g&&(v=g.hidden):g=Y.access(t,"fxshow",{display:l}),o&&(g.hidden=!v),v&&ct([t],!0),p.done((function(){for(i in v||ct([t]),Y.remove(t,"fxshow"),h)x.style(t,i,h[i])}))),u=ce(v?g[i]:0,i,p),i in g||(g[i]=u.start,v&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?fe.prefilters.unshift(t):fe.prefilters.push(t)}}),x.speed=function(t,e,n){var i=t&&"object"==typeof t?x.extend({},t):{complete:n||!n&&e||d(t)&&t,duration:t,easing:n&&e||e&&!d(e)&&e};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in x.fx.speeds?i.duration=x.fx.speeds[i.duration]:i.duration=x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){d(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(t,e,n,i){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=x.isEmptyObject(t),o=x.speed(e,n,i),s=function(){var e=fe(this,x.extend({},t),o);(r||Y.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=x.timers,s=Y.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&se.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Y.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=x.timers,s=i?i.length:0;for(n.finish=!0,x.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var n=x.fn[e];x.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(le(e,!0),t,i,r)}})),x.each({slideDown:le("show"),slideUp:le("hide"),slideToggle:le("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(ie=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),ie=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){re||(re=!0,ae())},x.fx.stop=function(){re=null},x.fx.speeds={slow:600,fast:200,_default:400
},x.fn.delay=function(e,n){return e=x.fx&&x.fx.speeds[e]||e,n=n||"fx",this.queue(n,(function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}}))},function(){var t=g.createElement("input"),e=g.createElement("select").appendChild(g.createElement("option"));t.type="checkbox",h.checkOn=""!==t.value,h.optSelected=e.selected,(t=g.createElement("input")).value="t",t.type="radio",h.radioValue="t"===t.value}();var pe,he=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return W(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(r=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=x.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!h.radioValue&&"radio"===e&&S(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(I);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=he[e]||x.find.attr;he[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=he[s],he[s]=r,r=null!=n(t,e,i)?s:null,he[s]=o),r}}));var de=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function ge(t){return(t.match(I)||[]).join(" ")}function me(t){return t.getAttribute&&t.getAttribute("class")||""}function ye(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(I)||[]}x.fn.extend({prop:function(t,e){return W(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,r=x.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,u=0;if(d(t))return this.each((function(e){x(this).addClass(t.call(this,e,me(this)))}));if((e=ye(t)).length)for(;n=this[u++];)if(r=me(n),i=1===n.nodeType&&" "+ge(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=ge(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,u=0;if(d(t))return this.each((function(e){x(this).removeClass(t.call(this,e,me(this)))}));if(!arguments.length)return this.attr("class","");if((e=ye(t)).length)for(;n=this[u++];)if(r=me(n),i=1===n.nodeType&&" "+ge(r)+" "){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=ge(i))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):d(t)?this.each((function(n){x(this).toggleClass(t.call(this,n,me(this),e),e)})):this.each((function(){var e,r,o,s;if(i)for(r=0,o=x(this),s=ye(t);e=s[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=me(this))&&Y.set(this,"__className__",e),
this.setAttribute&&this.setAttribute("class",e||!1===t?"":Y.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+ge(me(n))+" ").indexOf(e)>-1)return!0;return!1}});var we=/\r/g;x.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=d(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,x(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(we,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:ge(x.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],u=s?o+1:r.length;for(i=o<0?u:s?o:0;i<u;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(e=x(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=x.makeArray(e),s=r.length;s--;)((i=r[s]).selected=x.inArray(x.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},h.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),h.focusin="onfocusin"in t;var be=/^(?:focusinfocus|focusoutblur)$/,xe=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,n,i,r){var o,s,a,u,l,f,p,h,m=[i||g],y=c.call(e,"type")?e.type:e,w=c.call(e,"namespace")?e.namespace.split("."):[];if(s=h=a=i=i||g,3!==i.nodeType&&8!==i.nodeType&&!be.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(w=y.split("."),y=w.shift(),w.sort()),l=y.indexOf(":")<0&&"on"+y,(e=e[x.expando]?e:new x.Event(y,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=w.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:x.makeArray(n,[e]),p=x.event.special[y]||{},r||!p.trigger||!1!==p.trigger.apply(i,n))){if(!r&&!p.noBubble&&!v(i)){for(u=p.delegateType||y,be.test(u+y)||(s=s.parentNode);s;s=s.parentNode)m.push(s),a=s;a===(i.ownerDocument||g)&&m.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=m[o++])&&!e.isPropagationStopped();)h=s,e.type=o>1?u:p.bindType||y,(f=(Y.get(s,"events")||Object.create(null))[e.type]&&Y.get(s,"handle"))&&f.apply(s,n),(f=l&&s[l])&&f.apply&&G(s)&&(e.result=f.apply(s,n),!1===e.result&&e.preventDefault());return e.type=y,r||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(m.pop(),n)||!G(i)||l&&d(i[y])&&!v(i)&&((a=i[l])&&(i[l]=null),x.event.triggered=y,e.isPropagationStopped()&&h.addEventListener(y,xe),i[y](),e.isPropagationStopped()&&h.removeEventListener(y,xe),x.event.triggered=void 0,a&&(i[l]=a)),e.result}},simulate:function(t,e,n){var i=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=Y.access(i,e);r||i.addEventListener(t,n,!0),Y.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=Y.access(i,e)-1;r?Y.access(i,e,r):(i.removeEventListener(t,n,!0),Y.remove(i,e))}}}));var _e=t.location,Ae={guid:Date.now()},Te=/\?/;x.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{
n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),n};var Ce=/\[\]$/,ke=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,$e=/^(?:input|select|textarea|keygen)/i;function Ee(t,e,n,i){var r;if(Array.isArray(e))x.each(e,(function(e,r){n||Ce.test(t)?i(t,r):Ee(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==w(e))i(t,e);else for(r in e)Ee(t+"["+r+"]",e[r],n,i)}x.param=function(t,e){var n,i=[],r=function(t,e){var n=d(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){r(this.name,this.value)}));else for(n in t)Ee(n,t[n],e,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&$e.test(this.nodeName)&&!Se.test(t)&&(this.checked||!ht.test(t))})).map((function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(t){return{name:e.name,value:t.replace(ke,"\r\n")}})):{name:e.name,value:n.replace(ke,"\r\n")}})).get()}});var je=/%20/g,Le=/#.*$/,De=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Oe=/^(?:GET|HEAD)$/,Ie=/^\/\//,Re={},Pe={},Fe="*/".concat("*"),He=g.createElement("a");function Me(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(I)||[];if(d(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Be(t,e,n,i){var r={},o=t===Pe;function s(a){var u;return r[a]=!0,x.each(t[a]||[],(function(t,a){var l=a(e,n,i);return"string"!=typeof l||o||r[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),s(l),!1)})),u}return s(e.dataTypes[0])||!r["*"]&&s("*")}function We(t,e){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&x.extend(!0,t,i),t}He.href=_e.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?We(We(t,x.ajaxSettings),e):We(x.ajaxSettings,t)},ajaxPrefilter:Me(Re),ajaxTransport:Me(Pe),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,r,o,s,a,u,l,c,f,p,h=x.ajaxSetup({},n),d=h.context||h,v=h.context&&(d.nodeType||d.jquery)?x(d):x.event,m=x.Deferred(),y=x.Callbacks("once memory"),w=h.statusCode||{},b={},_={},A="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(l){if(!s)for(s={};e=Ne.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)T.always(t[T.status]);else for(e in t)w[e]=[w[e],t[e]];return this},abort:function(t){var e=t||A;return i&&i.abort(e),C(0,e),this}};if(m.promise(T),h.url=((e||h.url||_e.href)+"").replace(Ie,_e.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(I)||[""],null==h.crossDomain){u=g.createElement("a");try{u.href=h.url,u.href=u.href,
h.crossDomain=He.protocol+"//"+He.host!=u.protocol+"//"+u.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Be(Re,h,n,T),l)return T;for(f in(c=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Oe.test(h.type),r=h.url.replace(Le,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(je,"+")):(p=h.url.slice(r.length),h.data&&(h.processData||"string"==typeof h.data)&&(r+=(Te.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(De,"$1"),p=(Te.test(r)?"&":"?")+"_="+Ae.guid+++p),h.url=r+p),h.ifModified&&(x.lastModified[r]&&T.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&T.setRequestHeader("If-None-Match",x.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Fe+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(d,T,h)||l))return T.abort();if(A="abort",y.add(h.complete),T.done(h.success),T.fail(h.error),i=Be(Pe,h,n,T)){if(T.readyState=1,c&&v.trigger("ajaxSend",[T,h]),l)return T;h.async&&h.timeout>0&&(a=t.setTimeout((function(){T.abort("timeout")}),h.timeout));try{l=!1,i.send(b,C)}catch(t){if(l)throw t;C(-1,t)}}else C(-1,"No Transport");function C(e,n,s,u){var f,p,g,b,_,A=n;l||(l=!0,a&&t.clearTimeout(a),i=void 0,o=u||"",T.readyState=e>0?4:0,f=e>=200&&e<300||304===e,s&&(b=function(t,e,n){for(var i,r,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){u.unshift(r);break}if(u[0]in n)o=u[0];else{for(r in n){if(!u[0]||t.converters[r+" "+u[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,T,s)),!f&&x.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),b=function(t,e,n,i){var r,o,s,a,u,l={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(r in l)if((a=r.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[r]:!0!==l[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(h,b,T,f),f?(h.ifModified&&((_=T.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=_),(_=T.getResponseHeader("etag"))&&(x.etag[r]=_)),204===e||"HEAD"===h.type?A="nocontent":304===e?A="notmodified":(A=b.state,p=b.data,f=!(g=b.error))):(g=A,!e&&A||(A="error",e<0&&(e=0))),T.status=e,T.statusText=(n||A)+"",f?m.resolveWith(d,[p,A,T]):m.rejectWith(d,[T,A,g]),T.statusCode(w),w=void 0,c&&v.trigger(f?"ajaxSuccess":"ajaxError",[T,h,f?p:g]),y.fireWith(d,[T,A]),c&&(v.trigger("ajaxComplete",[T,h]),--x.active||x.event.trigger("ajaxStop")))}return T},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,n,i,r){return d(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:r,data:n,success:i},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,n){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,n)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(d(t)&&(t=t.call(this[0])),
e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return d(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=d(t);return this.each((function(n){x(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var qe={0:200,1223:204},Ue=x.ajaxSettings.xhr();h.cors=!!Ue&&"withCredentials"in Ue,h.ajax=Ue=!!Ue,x.ajaxTransport((function(e){var n,i;if(h.cors||Ue&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);n=function(t){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(qe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout((function(){n&&i()}))},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),g.head.appendChild(e[0])},abort:function(){n&&n()}}}));var ze,Qe=[],Ge=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qe.pop()||x.expando+"_"+Ae.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(e,n,i){var r,o,s,a=!1!==e.jsonp&&(Ge.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=d(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ge,"$1"+r):!1!==e.jsonp&&(e.url+=(Te.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||x.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},i.always((function(){void 0===o?x(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Qe.push(r)),s&&d(o)&&o(s[0]),s=o=void 0})),"script"})),h.createHTMLDocument=((ze=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ze.childNodes.length),x.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(h.createHTMLDocument?((i=(e=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,e.head.appendChild(i)):e=g),o=!n&&[],
(r=$.exec(t))?[e.createElement(r[1])]:(r=bt([t],e,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=ge(t.slice(a)),t=t.slice(0,a)),d(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&x.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?x("<div>").append(x.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,n){var i,r,o,s,a,u,l=x.css(t,"position"),c=x(t),f={};"static"===l&&(t.style.position="relative"),a=c.offset(),o=x.css(t,"top"),u=x.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(u)||0),d(e)&&(e=e.call(t,n,x.extend({},a))),null!=e.top&&(f.top=e.top-a.top+s),null!=e.left&&(f.left=e.left-a.left+r),"using"in e?e.using.call(t,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),r.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-x.css(i,"marginTop",!0),left:e.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||it}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;x.fn[t]=function(i){return W(this,(function(t,i,r){var o;if(v(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=Ut(h.pixelPosition,(function(t,n){if(n)return n=qt(t,e),Ht.test(n)?x(t).position()[e]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){x.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return W(this,(function(e,n,r){var o;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?x.css(e,n,a):x.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),x.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(t,e){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ve=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var n,i,o
;if("string"==typeof e&&(n=t[e],e=t,t=n),d(t))return i=r.call(arguments,2),o=function(){return t.apply(e||this,i.concat(r.call(arguments)))},o.guid=t.guid=t.guid||x.guid++,o},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=S,x.isFunction=d,x.isWindow=v,x.camelCase=Q,x.type=w,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(Ve,"")};var Ye=t.jQuery,Xe=t.$;return x.noConflict=function(e){return t.$===x&&(t.$=Xe),e&&t.jQuery===x&&(t.jQuery=Ye),x},void 0===e&&(t.jQuery=t.$=x),x}))),g.exports;var t}var w,b=h(y()),x={exports:{}};var _=h((w||(w=1,x.exports=function(){function t(){return"undefined"!=typeof window}function e(){var t=!1;try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}function n(){return!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame)}function i(t){return 9===t.nodeType}function r(t){return t&&t.document&&i(t.document)}function o(t){var e=t.document,n=e.body,i=e.documentElement;return{scrollHeight:function(){return Math.max(n.scrollHeight,i.scrollHeight,n.offsetHeight,i.offsetHeight,n.clientHeight,i.clientHeight)},height:function(){return t.innerHeight||i.clientHeight||n.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(i||n.parentNode||n).scrollTop}}}function s(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}function a(t){return r(t)?o(t):s(t)}function u(t,n,i){var r,o=e(),s=!1,u=a(t),l=u.scrollY(),c={};function f(){var t=Math.round(u.scrollY()),e=u.height(),r=u.scrollHeight();c.scrollY=t,c.lastScrollY=l,c.direction=t>l?"down":"up",c.distance=Math.abs(t-l),c.isOutOfBounds=t<0||t+e>r,c.top=t<=n.offset[c.direction],c.bottom=t+e>=r,c.toleranceExceeded=c.distance>n.tolerance[c.direction],i(c),l=t,s=!1}function p(){s||(s=!0,r=requestAnimationFrame(f))}var h=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",p,h),f(),{destroy:function(){cancelAnimationFrame(r),t.removeEventListener("scroll",p,h)}}}function l(t){return t===Object(t)?t:{down:t,up:t}}function c(t,e){e=e||{},Object.assign(this,c.options,e),this.classes=Object.assign({},c.options.classes,e.classes),this.elem=t,this.tolerance=l(this.tolerance),this.offset=l(this.offset),this.initialised=!1,this.frozen=!1}return c.prototype={constructor:c,init:function(){return c.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout((function(t){t.scrollTracker=u(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))}),100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},
shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every((function(t){return this.classList.contains(t)}),this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},c.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},c.cutsTheMustard=n(),c}()),x.exports));window.jQuery=b,window.Headroom=_;var A,T,C={},k={};function S(){return A||(A=1,function(t){t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",(function(){n=!0}));return setTimeout((function(){n||t(i).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(jQuery)),k}function $(){return T||(T=1,S()),C}$();var E,j;j||(j=1,E||(E=1,function(t){var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};function n(n){return this.each((function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof n&&n;r||i.data("bs.button",r=new e(this,o)),"toggle"==n?r.toggle():n&&r.setState(n)}))}e.VERSION="3.4.1",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy((function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var i=t(e.target).closest(".btn");n.call(i,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))}))}(jQuery)));var L,D;D||(D=1,L||(L=1,function(t){var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,
this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function n(n){return this.each((function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;r||i.data("bs.carousel",r=new e(this,o)),"number"==typeof n?r.to(n):s?r[s]():o.interval&&r.pause().cycle()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},e.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){e.to(t)})):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(n,r),s=this.interval,a="next"==n?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var l=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:l,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=t(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:l,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,r.addClass(a),o.addClass(a),r.one("bsTransitionEnd",(function(){o.removeClass([n,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout((function(){u.$element.trigger(p)}),0)})).emulateTransitionEnd(e.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),s&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(e){var i=t(this),r=i.attr("href");r&&(r=r.replace(/.*(?=#[^\s]+$)/,""));var o=i.attr("data-target")||r,s=t(document).find(o);if(s.hasClass("carousel")){var a=t.extend({},s.data(),i.data()),u=i.attr("data-slide-to");u&&(a.interval=!1),n.call(s,a),u&&s.data("bs.carousel").to(u),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var e=t(this);n.call(e,e.data())}))}))}(jQuery)));var N,O;O||(O=1,$(),N||(N=1,function(t){
var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function i(n){return this.each((function(){var i=t(this),r=i.data("bs.collapse"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);!r&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),r||i.data("bs.collapse",r=new e(this,o)),"string"==typeof n&&r[n]()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(n=r.data("bs.collapse"))&&n.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),n||r.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var u=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[s](this.$element[0][u])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(e,i){var r=t(i);this.addAriaAndCollapsedClass(n(r),r)}),this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){var r=t(this);r.attr("data-target")||e.preventDefault();var o=n(r),s=o.data("bs.collapse")?"toggle":r.data();i.call(o,s)}))}(jQuery)));var I,R,P={};!function(){if(R)return P;R=1;const t=window.jQuery;I||(I=1,function(t){var e='[data-toggle="dropdown"]',n=function(e){t(e).on("click.bs.dropdown",this.toggle)};function i(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?t(document).find(n):null;return i&&i.length?i:e.parent()}function r(n){n&&3===n.which||(t(".dropdown-backdrop").remove(),t(e).each((function(){var e=t(this),r=i(e),o={relatedTarget:this}
;r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(e.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))})))}n.VERSION="3.4.1",n.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var o=i(n),s=o.hasClass("open");if(r(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",r);var a={relatedTarget:this};if(o.trigger(e=t.Event("show.bs.dropdown",a)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},n.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var r=t(this);if(n.preventDefault(),n.stopPropagation(),!r.is(".disabled, :disabled")){var o=i(r),s=o.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&o.find(e).trigger("focus"),r.trigger("click");var a=o.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var u=a.index(n.target);38==n.which&&u>0&&u--,40==n.which&&u<a.length-1&&u++,~u||(u=0),a.eq(u).trigger("focus")}}}};var o=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var i=t(this),r=i.data("bs.dropdown");r||i.data("bs.dropdown",r=new n(this)),"string"==typeof e&&r[e].call(i)}))},t.fn.dropdown.Constructor=n,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=o,this},t(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",e,n.prototype.toggle).on("keydown.bs.dropdown.data-api",e,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(jQuery)),t(document).off("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',t.fn.dropdown.Constructor.prototype.keydown),t(document).off("keydown.bs.dropdown.data-api",".dropdown-menu",t.fn.dropdown.Constructor.prototype.keydown),t.fn.dropdown.Constructor.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName)||!/(38|40|27|32)/.test(e.which)&&(e.which<65||e.which>90))return;if(e.ctrlKey||e.altKey)return;const n=t(this);if(e.preventDefault(),e.stopPropagation(),n.is(".disabled, :disabled"))return;const i=function(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?t(document).find(n):null;return i&&i.length?i:e.parent()}(n),r=i.hasClass("open");(!r&&27!==e.which||r&&27===e.which)&&(27===e.which&&i.find('[data-toggle="dropdown"]').trigger("focus"),t(".dropdown-backdrop").remove(),t('[data-toggle="dropdown"]').each((function(){var r={relatedTarget:this};i.hasClass("open")&&(i.trigger(e=t.Event("hide.bs.dropdown",r)),n.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",r)))})));const o=i.find(".dropdown-menu li:not(.disabled):visible a");if(!o.length)return;let s=o.index(e.target);if(38===e.which&&(s=(s-1)%o.length),40===e.which&&(s=(s+1)%o.length),e.which>=65&&e.which<=90&&o.length<100){var a=e.key.toLowerCase();let n=o.index(e.target);var u=o.filter((function(){return 0===t(this).text().trim().toLowerCase().indexOf(a)}));u.each((function(){var i=t(this),r=o.index(i);if(r>n||t(e.target).text().trim().toLowerCase().charAt(0)!==a)return s=r,!1})),s===n&&u.length>0&&(s=o.index(u.eq(0)))}o.eq(s).trigger("focus")},t(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',t.fn.dropdown.Constructor.prototype.keydown),t(document).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.fn.dropdown.Constructor.prototype.keydown)}();var F,H,M={};!function(){if(H)return M;H=1;const t=window.jQuery;F||(F=1,function(t){var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),
this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function n(n,i){return this.each((function(){var r=t(this),o=r.data("bs.modal"),s=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);o||r.data("bs.modal",o=new e(this,s)),"string"==typeof n?o[n](i):s.show&&o.show(i)}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var i=this,r=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){i.$element.one("mouseup.dismiss.bs.modal",(function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:n});r?i.$dialog.one("bsTransitionEnd",(function(){i.$element.trigger("focus").trigger(o)})).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)})))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){
this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):s()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+n),t(this.fixedContent).each((function(e,i){var r=i.style.paddingRight,o=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(o)+n+"px")})))},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each((function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""}))},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var i=t(this),r=i.attr("href"),o=i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),s=t(document).find(o),a=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},s.data(),i.data());i.is("a")&&e.preventDefault(),s.one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){i.is(":visible")&&i.trigger("focus")}))})),n.call(s,a,this)}))}(jQuery));const e=t.fn.modal.Constructor.prototype.backdrop;t.fn.modal.Constructor.prototype.backdrop=function(t){if(t){const n=()=>{const{$element:e,$backdrop:n}=this,i=e.closest(".id7-fixed-width-container");n&&1===i.length&&n.appendTo(i),t()};e.call(this,n)}else e.call(this,t)}}();var B,W,q={};function U(){if(W)return q;W=1;const t=window.jQuery;B||(B=1,function(t){var e=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],i={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function s(e,i){var s=e.nodeName.toLowerCase();if(-1!==t.inArray(s,i))return-1===t.inArray(s,n)||Boolean(e.nodeValue.match(r)||e.nodeValue.match(o));for(var a=t(i).filter((function(t,e){return e instanceof RegExp})),u=0,l=a.length;u<l;u++)if(s.match(a[u]))return!0;return!1}function a(e,n,i){if(0===e.length)return e;if(i&&"function"==typeof i)return i(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var r=document.implementation.createHTMLDocument("sanitization");r.body.innerHTML=e;for(var o=t.map(n,(function(t,e){return e})),a=t(r.body).find("*"),u=0,l=a.length;u<l;u++){var c=a[u],f=c.nodeName.toLowerCase()
;if(-1!==t.inArray(f,o))for(var p=t.map(c.attributes,(function(t){return t})),h=[].concat(n["*"]||[],n[f]||[]),d=0,v=p.length;d<v;d++)s(p[d],h)||c.removeAttribute(p[d].nodeName);else c.parentNode.removeChild(c)}return r.body.innerHTML}var u=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};u.VERSION="3.4.1",u.TRANSITION_DURATION=150,u.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},u.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var s=r[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},u.prototype.getDefaults=function(){return u.DEFAULTS},u.prototype.getOptions=function(n){var i=this.$element.data();for(var r in i)i.hasOwnProperty(r)&&-1!==t.inArray(r,e)&&delete i[r];return(n=t.extend({},this.getDefaults(),i,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=a(n.template,n.whiteList,n.sanitizeFn)),n},u.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,(function(t,i){n[t]!=i&&(e[t]=i)})),e},u.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},u.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},u.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},u.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade")
;var s="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(s);l&&(s=s.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?r.appendTo(t(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),f=r[0].offsetWidth,p=r[0].offsetHeight;if(l){var h=s,d=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+p>d.bottom?"top":"top"==s&&c.top-p<d.top?"bottom":"right"==s&&c.right+f>d.width?"left":"left"==s&&c.left-f<d.left?"right":s,r.removeClass(h).addClass(s)}var v=this.getCalculatedOffset(s,c,f,p);this.applyPlacement(v,s);var g=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(u.TRANSITION_DURATION):g()}},u.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var u=i[0].offsetWidth,l=i[0].offsetHeight;"top"==n&&l!=o&&(e.top=e.top+o-l);var c=this.getViewportAdjustedDelta(n,e,u,l);c.left?e.left+=c.left:e.top+=c.top;var f=/top|bottom/.test(n),p=f?2*c.left-r+u:2*c.top-o+l,h=f?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(p,i[0][h],f)},u.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},u.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=a(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},u.prototype.hide=function(e){var n=this,i=t(this.$tip),r=t.Event("hide.bs."+this.type);function o(){"in"!=n.hoverState&&i.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}if(this.$element.trigger(r),!r.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(u.TRANSITION_DURATION):o(),this.hoverState=null,this},u.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},u.prototype.hasContent=function(){return this.getTitle()},u.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,s=i?{top:0,left:0}:o?null:e.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},u=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,a,u,s)},u.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},u.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,u=e.top+o-s.scroll+i;a<s.top?r.top=s.top-a:u>s.top+s.height&&(r.top=s.top+s.height-u)}else{var l=e.left-o,c=e.left+o+n;l<s.left?r.left=s.left-l:c>s.right&&(r.left=s.left+s.width-c)}return r},u.prototype.getTitle=function(){var t=this.$element,e=this.options
;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},u.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},u.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},u.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},u.prototype.enable=function(){this.enabled=!0},u.prototype.disable=function(){this.enabled=!1},u.prototype.toggleEnabled=function(){this.enabled=!this.enabled},u.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},u.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null}))},u.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)};var l=t.fn.tooltip;t.fn.tooltip=function(e){return this.each((function(){var n=t(this),i=n.data("bs.tooltip"),r="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.tooltip",i=new u(this,r)),"string"==typeof e&&i[e]())}))},t.fn.tooltip.Constructor=u,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=l,this}}(jQuery));return t.fn.tooltip.Constructor.DEFAULTS.whiteList.iframe=["src","scrolling","frameborder","allowtransparency","seamless","sandbox"],q}U();var z,Q;Q||(Q=1,U(),z||(z=1,function(t){var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each((function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||i.data("bs.popover",r=new e(this,o)),"string"==typeof n&&r[n]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery)));var G,V;V||(V=1,G||(G=1,function(t){var e=function(e){this.element=t(e)};function n(n){return this.each((function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new e(this)),"string"==typeof n&&r[n]()}))}e.VERSION="3.4.1",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),
!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(document).find(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},e.prototype.activate=function(n,i,r){var o=i.find("> .active"),s=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery)));var Y,X;X||(X=1,Y||(Y=1,function(t){var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i);var r=this.options.target===e.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof n&&n;r||i.data("bs.affix",r=new e(this,o)),"string"==typeof n&&r[n]()}))}e.VERSION="3.4.1",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+s<=t-i)&&"bottom";var a=null==this.affixed,u=a?r:o.top;return null!=n&&r<=n?"top":null!=i&&u+(a?s:e)>=t-i&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,s=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var a=this.getState(s,n,r,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),l=t.Event(u+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-n-o})}};var i=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var e=t(this),i=e.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(e,i)}))}))}(jQuery)));var J,K,Z={},tt={exports:{}},et=tt.exports;function nt(){
return J||(J=1,e=et,n=function(t){var e=1e5;function n(t){var n=t.getAttribute("id");return n||(n="gen-id-"+e++,t.setAttribute("id",n)),n}var i=function(e,n){this.$element=t(e),this.$parent=this.$element.parent(),this.options=t.extend({},i.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.select=this.options.select||this.select,this.autoSelect="boolean"!=typeof this.options.autoSelect||this.options.autoSelect,this.highlighter=this.options.highlighter||this.highlighter,this.render=this.options.render||this.render,this.updater=this.options.updater||this.updater,this.displayText=this.options.displayText||this.displayText,this.itemLink=this.options.itemLink||this.itemLink,this.itemTitle=this.options.itemTitle||this.itemTitle,this.followLinkOnSelect=this.options.followLinkOnSelect||this.followLinkOnSelect,this.source=this.options.source,this.delay=this.options.delay,this.theme=this.options.theme&&this.options.themes&&this.options.themes[this.options.theme]||i.defaults.themes[i.defaults.theme],this.$menu=t(this.options.menu||this.theme.menu),this.$appendTo=this.options.appendTo?t(this.options.appendTo):null,this.fitToElement="boolean"==typeof this.options.fitToElement&&this.options.fitToElement,this.shown=!1,this.listen(),this.showHintOnFocus=("boolean"==typeof this.options.showHintOnFocus||"all"===this.options.showHintOnFocus)&&this.options.showHintOnFocus,this.afterSelect=this.options.afterSelect,this.afterEmptySelect=this.options.afterEmptySelect,this.addItem=!1,this.value=this.$element.val()||this.$element.text(),this.keyPressed=!1,this.focused=this.$element.is(":focus"),this.changeInputOnSelect=this.options.changeInputOnSelect||this.changeInputOnSelect,this.changeInputOnMove=this.options.changeInputOnMove||this.changeInputOnMove,this.openLinkInNewTab=this.options.openLinkInNewTab||this.openLinkInNewTab,this.selectOnBlur=this.options.selectOnBlur||this.selectOnBlur,this.selectOnTab=this.options.selectOnTab,this.showCategoryHeader=this.options.showCategoryHeader||this.showCategoryHeader,this.prevItems=[],this.$statusRegion=t("<div></div>").addClass("sr-only").attr({role:"status","aria-live":"polite"}),this.$element.after(this.$statusRegion),this.$parent.attr({role:"combobox","aria-haspopup":"listbox"}),this.$element.attr({"aria-autocomplete":"list"}),this.show(),this.hide()};i.prototype={constructor:i,setDefault:function(t){if(this.$element.data("active",t),this.autoSelect||t){var e=this.updater(t);e||(e=""),this.$element.val(this.displayText(e)||e).text(this.displayText(e)||e).change(),this.afterSelect(e)}return this.hide()},select:function(){var t=this.$menu.find(".active").data("value");if(this.$element.data("active",t),this.autoSelect||t){var e=this.updater(t);e||(e=""),this.changeInputOnSelect&&this.$element.val(this.displayText(e)||e).text(this.displayText(e)||e).change(),this.followLinkOnSelect&&this.itemLink(t)?(this.openLinkInNewTab?window.open(this.itemLink(t),"_blank"):document.location=this.itemLink(t),this.afterSelect(e)):this.followLinkOnSelect&&!this.itemLink(t)?this.afterEmptySelect(e):this.afterSelect(e)}else this.afterEmptySelect();return this.hide()},updater:function(t){return t},setSource:function(t){this.source=t},show:function(){var e,i=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight}),r="function"==typeof this.options.scrollHeight?this.options.scrollHeight.call():this.options.scrollHeight;if(this.shown?e=this.$menu:this.$appendTo?(e=this.$menu.appendTo(this.$appendTo),this.hasSameParent=this.$appendTo.is(this.$element.parent())):(e=this.$menu.insertAfter(this.$element),this.hasSameParent=!0),!this.hasSameParent){e.css("position","fixed");var o=this.$element.offset();i.top=o.top,i.left=o.left}var s=t(e).parent().hasClass("dropup")?"auto":i.top+i.height+r,a=t(e).hasClass("dropdown-menu-right")?"auto":i.left;return e.css({top:s,left:a}).show(),!0===this.options.fitToElement&&e.css("width",this.$element.outerWidth()+"px"),
this.shown=!0,this.$parent.attr("aria-expanded","true"),this.$parent.attr("aria-owns",n(e[0])),this.$element.attr("aria-controls",n(e[0])),this},hide:function(){return this.$menu.hide(),this.prevItems=[],this.shown=!1,this.$parent.attr("aria-expanded","false"),this.$element.attr("aria-activedescendant",null),this},lookup:function(e){if(this.query=null!=e?e:this.$element.val(),this.query.length<this.options.minLength&&!this.options.showHintOnFocus)return this.shown?this.hide():this;var n=t.proxy((function(){t.isFunction(this.source)&&3===this.source.length?this.source(this.query,t.proxy(this.process,this),t.proxy(this.process,this)):t.isFunction(this.source)?this.source(this.query,t.proxy(this.process,this)):this.source&&this.process(this.source)}),this);clearTimeout(this.lookupWorker),this.lookupWorker=setTimeout(n,this.delay)},process:function(e){var n=this,i=this.prevItems;return this.prevItems=e,this.onItemsChanged(i||[],e),e=t.grep(e,(function(t){return n.matcher(t)})),(e=this.sorter(e)).length||this.options.addItem?(e.length>0?this.$element.data("active",e[0]):this.$element.data("active",null),e=this._limitListSize(e),this.options.addItem&&e.push(this.options.addItem),this.render(e).show()):this.shown?this.hide():this},_limitListSize:function(t){return"all"===this.options.items?t:t.slice(0,this.options.items)},matcher:function(t){return~this.displayText(t).toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(t){for(var e,n=[],i=[],r=[];e=t.shift();){var o=this.displayText(e);o.toLowerCase().indexOf(this.query.toLowerCase())?~o.indexOf(this.query)?i.push(e):r.push(e):n.push(e)}return n.concat(i,r)},highlighter:function(t){var e=this.query;if(""===e)return t;var n,i=t.match(/(>)([^<]*)(<)/g),r=[],o=[];if(i&&i.length)for(n=0;n<i.length;++n)i[n].length>2&&r.push(i[n]);else(r=[]).push(t);e=e.replace(/[\(\)\/\.\*\+\?\[\]]/g,(function(t){return"\\"+t}));var s,a=new RegExp(e,"g");for(n=0;n<r.length;++n)(s=r[n].match(a))&&s.length>0&&o.push(r[n]);for(n=0;n<o.length;++n)t=t.replace(o[n],o[n].replace(a,"<strong>$&</strong>"));return t},onItemsChanged:function(t,e){var n=this._limitListSize(t),i=this._limitListSize(e);!n.length&&i.length?this._setLiveStatus(i.length+" results, use arrow keys"):n.length&&!i.length&&this._setLiveStatus("No results, try another query")},render:function(e){var n=this,i=this,r=!1,o=[],s=n.options.separator;return t.each(e,(function(t,i){t>0&&i[s]!==e[t-1][s]&&o.push({__type:"divider"}),n.showCategoryHeader&&(!i[s]||0!==t&&i[s]===e[t-1][s]||o.push({__type:"category",name:i[s]})),o.push(i)})),e=t(o).map((function(e,o){if("category"==(o.__type||!1))return t(n.options.headerHtml||n.theme.headerHtml).text(o.name)[0];if("divider"==(o.__type||!1))return t(n.options.headerDivider||n.theme.headerDivider)[0];var s,a,u=i.displayText(o),l=i.itemTitle(o),c=l||(s=u,(a=t("<div></div>").html(s)).find("div,p,section,h1,h2,h3,h4,h5,h6").append(" "),a.text());return(e=t(n.options.item||n.theme.item).data("value",o)).find(n.options.itemContentSelector||n.theme.itemContentSelector).addBack(n.options.itemContentSelector||n.theme.itemContentSelector).attr("aria-label",c).html(n.highlighter(u,o)),n.options.followLinkOnSelect&&e.find("a").attr("href",i.itemLink(o)),e.find("a").attr("title",l),u==i.$element.val()&&(i._markActive(e),i.$element.data("active",o),r=!0),e[0]})),this.autoSelect&&!r&&(this._markActive(e.filter(":not(.dropdown-header)").first()),this.$element.data("active",e.first().data("value"))),this.$menu.html(e),this},displayText:function(t){return void 0!==t&&void 0!==t.name?t.name:t},itemLink:function(t){return null},itemTitle:function(t){return null},_markActive:function(t){t.addClass("active"),t.attr("aria-selected","true"),this.$element.attr("aria-activedescendant",n(t[0]))},next:function(e){var n=this.$menu.find(".active").removeClass("active").attr("aria-selected","false").next()
;for(n.length||(n=t(this.$menu.find(t(this.options.item||this.theme.item).prop("tagName"))[0]));n.hasClass("divider")||n.hasClass("dropdown-header");)n=n.next();this._markActive(n);var i=this.updater(n.data("value"));this.changeInputOnMove&&this.$element.val(this.displayText(i)||i)},prev:function(e){var n=this.$menu.find(".active").removeClass("active").attr("aria-selected","false").prev();for(n.length||(n=this.$menu.find(t(this.options.item||this.theme.item).prop("tagName")).last());n.hasClass("divider")||n.hasClass("dropdown-header");)n=n.prev();this._markActive(n);var i=this.updater(n.data("value"));this.changeInputOnMove&&this.$element.val(this.displayText(i)||i)},listen:function(){this.$element.on("focus.bootstrap3Typeahead",t.proxy(this.focus,this)).on("blur.bootstrap3Typeahead",t.proxy(this.blur,this)).on("keypress.bootstrap3Typeahead",t.proxy(this.keypress,this)).on("propertychange.bootstrap3Typeahead input.bootstrap3Typeahead",t.proxy(this.input,this)).on("keyup.bootstrap3Typeahead",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown.bootstrap3Typeahead",t.proxy(this.keydown,this));var e=t(this.options.item||this.theme.item).prop("tagName")+":not(.divider):not(.dropdown-header)";"ontouchstart"in document.documentElement&&"onmousemove"in document.documentElement?this.$menu.on("touchstart",e,t.proxy(this.touchstart,this)).on("touchend",e,t.proxy(this.click,this)).on("click",e,t.proxy(this.click,this)).on("mouseenter",e,t.proxy(this.mouseenter,this)).on("mouseleave",e,t.proxy(this.mouseleave,this)).on("mousedown",t.proxy(this.mousedown,this)):"ontouchstart"in document.documentElement?this.$menu.on("touchstart",e,t.proxy(this.touchstart,this)).on("touchend",e,t.proxy(this.click,this)):this.$menu.on("click",e,t.proxy(this.click,this)).on("mouseenter",e,t.proxy(this.mouseenter,this)).on("mouseleave",e,t.proxy(this.mouseleave,this)).on("mousedown",t.proxy(this.mousedown,this))},destroy:function(){this.$element.data("typeahead",null),this.$element.data("active",null),this.$element.unbind("focus.bootstrap3Typeahead").unbind("blur.bootstrap3Typeahead").unbind("keypress.bootstrap3Typeahead").unbind("propertychange.bootstrap3Typeahead input.bootstrap3Typeahead").unbind("keyup.bootstrap3Typeahead"),this.eventSupported("keydown")&&this.$element.unbind("keydown.bootstrap3Typeahead"),this.$menu.remove(),this.destroyed=!0},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},move:function(t){if(this.shown)switch(t.keyCode){case 9:this.selectOnTab?t.preventDefault():this.hide();break;case 13:case 27:t.preventDefault();break;case 38:if(t.shiftKey)return;t.preventDefault(),this.prev();break;case 40:if(t.shiftKey)return;t.preventDefault(),this.next()}},keydown:function(e){17!==e.keyCode&&(this.keyPressed=!0,this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.shown||40!==e.keyCode?this.move(e):this.lookup())},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},input:function(t){var e=this.$element.val()||this.$element.text();this.value!==e&&(this.value=e,this.lookup())},keyup:function(t){if(!this.destroyed)switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:if(this.selectOnTab||t.preventDefault(),!this.selectOnTab||!this.shown||this.showHintOnFocus&&!this.keyPressed)return;this.select();break;case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide()}},focus:function(t){this.focused||(this.focused=!0,this.keyPressed=!1,this.options.showHintOnFocus&&!0!==this.skipShowHintOnFocus&&("all"===this.options.showHintOnFocus?this.lookup(""):this.lookup())),this.skipShowHintOnFocus&&(this.skipShowHintOnFocus=!1)},blur:function(t){this.mousedover||this.mouseddown||!this.shown?this.mouseddown&&(this.skipShowHintOnFocus=!0,this.$element.focus(),this.mouseddown=!1):(this.selectOnBlur&&this.select(),this.hide(),this.focused=!1,this.keyPressed=!1)},
click:function(t){t.preventDefault(),this.skipShowHintOnFocus=!0,this.select(),this.$element.focus(),this.hide()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active").attr("aria-selected","false"),this._markActive(t(e.currentTarget))},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},mousedown:function(t){this.mouseddown=!0,this.$menu.one("mouseup",function(t){this.mouseddown=!1}.bind(this))},touchstart:function(e){e.preventDefault(),this.$menu.find(".active").removeClass("active").attr("aria-selected","false"),this._markActive(t(e.currentTarget))},touchend:function(t){t.preventDefault(),this.select(),this.$element.focus()},_setLiveStatus:function(t){this.$statusRegion.text(t)}};var r=t.fn.typeahead;t.fn.typeahead=function(e){var n=arguments;return"string"==typeof e&&"getActive"===e?this.data("active"):this.each((function(){var r=t(this),o=r.data("typeahead"),s="object"==typeof e&&e;o||r.data("typeahead",o=new i(this,s)),"string"==typeof e&&o[e]&&(n.length>1?o[e].apply(o,Array.prototype.slice.call(n,1)):o[e]())}))},i.defaults={source:[],items:8,minLength:1,scrollHeight:0,autoSelect:!0,afterSelect:t.noop,afterEmptySelect:t.noop,addItem:!1,followLinkOnSelect:!1,delay:0,separator:"category",changeInputOnSelect:!0,changeInputOnMove:!0,openLinkInNewTab:!1,selectOnBlur:!0,selectOnTab:!0,showCategoryHeader:!0,theme:"bootstrap3",themes:{bootstrap3:{menu:'<ul class="typeahead dropdown-menu" role="listbox" aria-label="Search results"></ul>',item:'<li role="option"><a class="dropdown-item" href="#"></a></li>',itemContentSelector:"a",headerHtml:'<li class="dropdown-header"></li>',headerDivider:'<li class="divider" role="separator"></li>'},bootstrap4:{menu:'<div class="typeahead dropdown-menu" role="listbox" aria-label="Search results"></div>',item:'<button class="dropdown-item" role="option"></button>',itemContentSelector:".dropdown-item",headerHtml:'<h6 class="dropdown-header"></h6>',headerDivider:'<div class="dropdown-divider"></div>'}}},t.fn.typeahead.Constructor=i,t.fn.typeahead.noConflict=function(){return t.fn.typeahead=r,this},t(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',(function(e){var n=t(this);n.data("typeahead")||n.typeahead(n.data())}))},(t=tt).exports?t.exports=n(y()):n(e.jQuery)),tt.exports;var t,e,n}function it(){if(K)return Z;K=1;const t=window.jQuery;return nt(),function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>{t=!0}}),n=()=>{};window.addEventListener("testPassiveEventSupport",n,e),window.removeEventListener("testPassiveEventSupport",n,e)}catch(e){t=!1}return t}()&&"ontouchstart"in document.documentElement&&"addEventListener"in document&&(t.event.special.touchstart={setup(t,e,n){this.addEventListener&&this.addEventListener("touchstart",n,{passive:!0})}},t.event.special.touchend={setup(t,e,n){this.addEventListener&&this.addEventListener("touchend",n,{passive:!0})}}),Z}it(),function(t){t&&(t.fn.headroom=function(e){return this.each((function(){var n=t(this),i=n.data("headroom"),r="object"==typeof e&&e;r=t.extend(!0,{},Headroom.options,r),i||((i=new Headroom(this,r)).init(),n.data("headroom",i)),"string"==typeof e&&(i[e](),"destroy"===e&&n.removeData("headroom"))}))},t("[data-headroom]").each((function(){var e=t(this);e.headroom(e.data())})))}(window.Zepto||window.jQuery);const rt=window.matchMedia||window.msMatchMedia||(()=>!1);class ot{constructor(){this.tests={}}static mq(t){const e=rt(t);return e&&e.matches||!1}static cssSupports(t,e){return void 0!==window.CSS&&"supports"in window.CSS?window.CSS.supports(t,e):"supportsCSS"in window?window.supportsCSS(`${t}:${e}`):"display"===t&&"flex"===e&&/rv:11.0/i.test(window.navigator.userAgent)}static toggleClasses(t,e,n){n?(t.classList.remove(`no-${e}`),t.classList.add(e)):(t.classList.remove(e),t.classList.add(`no-${e}`))}addTest(t,e){this.tests[t]=e,ot.prototype[t]=e,this.container&&ot.toggleClasses(this.container,t,e)}addClasses(t){this.container=t,
Object.keys(this.tests).forEach((e=>{ot.toggleClasses(t,e,this.tests[e])}))}}const st=new ot;st.addTest("js",!0),st.addTest("flexbox",ot.cssSupports("display","flex"));let at=!1;try{at="SVGFEColorMatrixElement"in window&&2===SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(t){}st.addTest("svgfilters",at);const ut={webp:"data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA=","webp-alpha":"data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==","webp-animation":"data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA","webp-lossless":"data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",avif:"data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAAEcbWV0YQAAAAAAAABIaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGNhdmlmIC0gaHR0cHM6Ly9naXRodWIuY29tL2xpbmstdS9jYXZpZgAAAAAeaWxvYwAAAAAEQAABAAEAAAAAAUQAAQAAABcAAAAqaWluZgEAAAAAAAABAAAAGmluZmUCAAAAAAEAAGF2MDFJbWFnZQAAAAAOcGl0bQAAAAAAAQAAAHJpcHJwAAAAUmlwY28AAAAQcGFzcAAAAAEAAAABAAAAFGlzcGUAAAAAAAAAAQAAAAEAAAAQcGl4aQAAAAADCAgIAAAAFmF2MUOBAAwACggYAAYICGgIIAAAABhpcG1hAAAAAAAAAAEAAQUBAoMDhAAAAB9tZGF0CggYAAYICGgIIBoFHiAAAEQiBACwDoA="};function lt(t,e){const n=new Image;function i(i){const r=!(!i||"load"!==i.type)&&1===n.width;st.addTest(t,r),e&&e(i)}n.onerror=i,n.onload=i,n.src=ut[t]}lt("webp",(t=>{t&&"load"===t.type&&(lt("webp-alpha"),lt("webp-animation"),lt("webp-lossless"))})),lt("avif");const{userAgent:ct}=window.navigator;st.addTest("safari",ct.indexOf("Safari/")>=0&&-1===ct.indexOf("Chrome/")),st.addTest("ie-or-edge",/MSIE (?:9|7|10)/i.test(ct)||/rv:11.0/i.test(ct)||/Edge\/\d./i.test(ct)),st.addTest("embedded-ie",/MSIE 7/i.test(ct)&&/\.NET/.test(ct)),st.addClasses(document.documentElement),window.Modernizr=st,window.Modernizr.mq=ot.mq;var ft,pt={exports:{}};var ht,dt,vt=(ft||(ft=1,ht=pt,dt=pt.exports,function(){
var t,e="Expected a function",n="__lodash_hash_undefined__",i="__lodash_placeholder__",r=32,o=128,s=256,a=1/0,u=9007199254740991,l=NaN,c=4294967295,f=[["ary",o],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",r],["partialRight",64],["rearg",s]],h="[object Arguments]",d="[object Array]",v="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",w="[object GeneratorFunction]",b="[object Map]",x="[object Number]",_="[object Object]",A="[object Promise]",T="[object RegExp]",C="[object Set]",k="[object String]",S="[object Symbol]",$="[object WeakMap]",E="[object ArrayBuffer]",j="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",O="[object Int16Array]",I="[object Int32Array]",R="[object Uint8Array]",P="[object Uint8ClampedArray]",F="[object Uint16Array]",H="[object Uint32Array]",M=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,z=RegExp(q.source),Q=RegExp(U.source),G=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(Z.source),et=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rt=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",kt="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$t="['’]",Et="["+xt+"]",jt="["+St+"]",Lt="["+_t+"]",Dt="\\d+",Nt="["+At+"]",Ot="["+Tt+"]",It="[^"+xt+St+Dt+At+Tt+Ct+"]",Rt="\\ud83c[\\udffb-\\udfff]",Pt="[^"+xt+"]",Ft="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="["+Ct+"]",Bt="\\u200d",Wt="(?:"+Ot+"|"+It+")",qt="(?:"+Mt+"|"+It+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qt="(?:"+Lt+"|"+Rt+")?",Gt="["+kt+"]?",Vt=Gt+Qt+"(?:"+Bt+"(?:"+[Pt,Ft,Ht].join("|")+")"+Gt+Qt+")*",Yt="(?:"+[Nt,Ft,Ht].join("|")+")"+Vt,Xt="(?:"+[Pt+Lt+"?",Lt,Ft,Ht,Et].join("|")+")",Jt=RegExp($t,"g"),Kt=RegExp(Lt,"g"),Zt=RegExp(Rt+"(?="+Rt+")|"+Xt+Vt,"g"),te=RegExp([Mt+"?"+Ot+"+"+Ut+"(?="+[jt,Mt,"$"].join("|")+")",qt+"+"+zt+"(?="+[jt,Mt+Wt,"$"].join("|")+")",Mt+"?"+Wt+"+"+Ut,Mt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt,Yt].join("|"),"g"),ee=RegExp("["+Bt+xt+_t+kt+"]"),ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,oe={};oe[L]=oe[D]=oe[N]=oe[O]=oe[I]=oe[R]=oe[P]=oe[F]=oe[H]=!0,oe[h]=oe[d]=oe[E]=oe[v]=oe[j]=oe[g]=oe[m]=oe[y]=oe[b]=oe[x]=oe[_]=oe[T]=oe[C]=oe[k]=oe[$]=!1;var se={};se[h]=se[d]=se[E]=se[j]=se[v]=se[g]=se[L]=se[D]=se[N]=se[O]=se[I]=se[b]=se[x]=se[_]=se[T]=se[C]=se[k]=se[S]=se[R]=se[P]=se[F]=se[H]=!0,se[m]=se[y]=se[$]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"
},ue=parseFloat,le=parseInt,ce="object"==typeof p&&p&&p.Object===Object&&p,fe="object"==typeof self&&self&&self.Object===Object&&self,pe=ce||fe||Function("return this")(),he=dt&&!dt.nodeType&&dt,de=he&&ht&&!ht.nodeType&&ht,ve=de&&de.exports===he,ge=ve&&ce.process,me=function(){try{var t=de&&de.require&&de.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),ye=me&&me.isArrayBuffer,we=me&&me.isDate,be=me&&me.isMap,xe=me&&me.isRegExp,_e=me&&me.isSet,Ae=me&&me.isTypedArray;function Te(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ce(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var s=t[r];e(i,s,n(s),t)}return i}function ke(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function $e(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Ee(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}function je(t,e){return!(null==t||!t.length)&&Me(t,e,0)>-1}function Le(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function De(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Ne(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Oe(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function Ie(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function Re(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var Pe=Ue("length");function Fe(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i}function He(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function Me(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):He(t,We,n)}function Be(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function We(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?Ge(t,e)/n:l}function Ue(e){return function(n){return null==n?t:n[e]}}function ze(e){return function(n){return null==e?t:e[n]}}function Qe(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}function Ge(e,n){for(var i,r=-1,o=e.length;++r<o;){var s=n(e[r]);s!==t&&(i=i===t?s:i+s)}return i}function Ve(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Ye(t){return t?t.slice(0,hn(t)+1).replace(et,""):t}function Xe(t){return function(e){return t(e)}}function Je(t,e){return De(e,(function(e){return t[e]}))}function Ke(t,e){return t.has(e)}function Ze(t,e){for(var n=-1,i=t.length;++n<i&&Me(e,t[n],0)>-1;);return n}function tn(t,e){for(var n=t.length;n--&&Me(e,t[n],0)>-1;);return n}var en=ze({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",
ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),nn=ze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(t){return"\\"+ae[t]}function on(t){return ee.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function an(t,e){return function(n){return t(e(n))}}function un(t,e){for(var n=-1,r=t.length,o=0,s=[];++n<r;){var a=t[n];a!==e&&a!==i||(t[n]=i,s[o++]=n)}return s}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function fn(t){return on(t)?function(t){for(var e=Zt.lastIndex=0;Zt.test(t);)++e;return e}(t):Pe(t)}function pn(t){return on(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.split("")}(t)}function hn(t){for(var e=t.length;e--&&nt.test(t.charAt(e)););return e}var dn=ze({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),vn=function p(nt){var ht,dt=(nt=null==nt?pe:vn.defaults(pe.Object(),nt,vn.pick(pe,ie))).Array,xt=nt.Date,_t=nt.Error,At=nt.Function,Tt=nt.Math,Ct=nt.Object,kt=nt.RegExp,St=nt.String,$t=nt.TypeError,Et=dt.prototype,jt=At.prototype,Lt=Ct.prototype,Dt=nt["__core-js_shared__"],Nt=jt.toString,Ot=Lt.hasOwnProperty,It=0,Rt=(ht=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||""))?"Symbol(src)_1."+ht:"",Pt=Lt.toString,Ft=Nt.call(Ct),Ht=pe._,Mt=kt("^"+Nt.call(Ot).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=ve?nt.Buffer:t,Wt=nt.Symbol,qt=nt.Uint8Array,Ut=Bt?Bt.allocUnsafe:t,zt=an(Ct.getPrototypeOf,Ct),Qt=Ct.create,Gt=Lt.propertyIsEnumerable,Vt=Et.splice,Yt=Wt?Wt.isConcatSpreadable:t,Xt=Wt?Wt.iterator:t,Zt=Wt?Wt.toStringTag:t,ee=function(){try{var t=co(Ct,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=nt.clearTimeout!==pe.clearTimeout&&nt.clearTimeout,ce=xt&&xt.now!==pe.Date.now&&xt.now,fe=nt.setTimeout!==pe.setTimeout&&nt.setTimeout,he=Tt.ceil,de=Tt.floor,ge=Ct.getOwnPropertySymbols,me=Bt?Bt.isBuffer:t,Pe=nt.isFinite,ze=Et.join,gn=an(Ct.keys,Ct),mn=Tt.max,yn=Tt.min,wn=xt.now,bn=nt.parseInt,xn=Tt.random,_n=Et.reverse,An=co(nt,"DataView"),Tn=co(nt,"Map"),Cn=co(nt,"Promise"),kn=co(nt,"Set"),Sn=co(nt,"WeakMap"),$n=co(Ct,"create"),En=Sn&&new Sn,jn={},Ln=Po(An),Dn=Po(Tn),Nn=Po(Cn),On=Po(kn),In=Po(Sn),Rn=Wt?Wt.prototype:t,Pn=Rn?Rn.valueOf:t,Fn=Rn?Rn.toString:t;function Hn(t){if(ta(t)&&!qs(t)&&!(t instanceof qn)){if(t instanceof Wn)return t;if(Ot.call(t,"__wrapped__"))return Fo(t)}return new Wn(t)}var Mn=function(){function e(){}return function(n){if(!Zs(n))return{};if(Qt)return Qt(n);e.prototype=n;var i=new e;return e.prototype=t,i}}();function Bn(){}function Wn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=c,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qn;++e<n;)this.add(t[e])}function Vn(t){var e=this.__data__=new zn(t);this.size=e.size}function Yn(t,e){var n=qs(t),i=!n&&Ws(t),r=!n&&!i&&Gs(t),o=!n&&!i&&!r&&ua(t),s=n||i||r||o,a=s?Ve(t.length,St):[],u=a.length;for(var l in t)!e&&!Ot.call(t,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||yo(l,u))||a.push(l);return a}function Xn(e){var n=e.length;return n?e[Gi(0,n-1)]:t}function Jn(t,e){return Oo($r(t),si(e,0,t.length))}function Kn(t){return Oo($r(t))}function Zn(e,n,i){(i!==t&&!Hs(e[n],i)||i===t&&!(n in e))&&ri(e,n,i)}function ti(e,n,i){
var r=e[n];Ot.call(e,n)&&Hs(r,i)&&(i!==t||n in e)||ri(e,n,i)}function ei(t,e){for(var n=t.length;n--;)if(Hs(t[n][0],e))return n;return-1}function ni(t,e,n,i){return fi(t,(function(t,r,o){e(i,t,n(t),o)})),i}function ii(t,e){return t&&Er(e,ja(e),t)}function ri(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function oi(e,n){for(var i=-1,r=n.length,o=dt(r),s=null==e;++i<r;)o[i]=s?t:Ca(e,n[i]);return o}function si(e,n,i){return e==e&&(i!==t&&(e=e<=i?e:i),n!==t&&(e=e>=n?e:n)),e}function ai(e,n,i,r,o,s){var a,u=1&n,l=2&n,c=4&n;if(i&&(a=o?i(e,r,o,s):i(e)),a!==t)return a;if(!Zs(e))return e;var f=qs(e);if(f){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ot.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!u)return $r(e,a)}else{var p=ho(e),d=p==y||p==w;if(Gs(e))return _r(e,u);if(p==_||p==h||d&&!o){if(a=l||d?{}:go(e),!u)return l?function(t,e){return Er(t,po(t),e)}(e,function(t,e){return t&&Er(e,La(e),t)}(a,e)):function(t,e){return Er(t,fo(t),e)}(e,ii(a,e))}else{if(!se[p])return o?e:{};a=function(t,e,n){var i,r=t.constructor;switch(e){case E:return Ar(t);case v:case g:return new r(+t);case j:return function(t,e){var n=e?Ar(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case L:case D:case N:case O:case I:case R:case P:case F:case H:return Tr(t,n);case b:return new r;case x:case k:return new r(t);case T:return function(t){var e=new t.constructor(t.source,ct.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new r;case S:return i=t,Pn?Ct(Pn.call(i)):{}}}(e,p,u)}}s||(s=new Vn);var m=s.get(e);if(m)return m;s.set(e,a),oa(e)?e.forEach((function(t){a.add(ai(t,n,i,t,e,s))})):ea(e)&&e.forEach((function(t,r){a.set(r,ai(t,n,i,r,e,s))}));var A=f?t:(c?l?io:no:l?La:ja)(e);return ke(A||e,(function(t,r){A&&(t=e[r=t]),ti(a,r,ai(t,n,i,r,e,s))})),a}function ui(e,n,i){var r=i.length;if(null==e)return!r;for(e=Ct(e);r--;){var o=i[r],s=n[o],a=e[o];if(a===t&&!(o in e)||!s(a))return!1}return!0}function li(n,i,r){if("function"!=typeof n)throw new $t(e);return jo((function(){n.apply(t,r)}),i)}function ci(t,e,n,i){var r=-1,o=je,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=De(e,Xe(n))),i?(o=Le,s=!1):e.length>=200&&(o=Ke,s=!1,e=new Gn(e));t:for(;++r<a;){var c=t[r],f=null==n?c:n(c);if(c=i||0!==c?c:0,s&&f==f){for(var p=l;p--;)if(e[p]===f)continue t;u.push(c)}else o(e,f,i)||u.push(c)}return u}Hn.templateSettings={escape:G,evaluate:V,interpolate:Y,variable:"",imports:{_:Hn}},Hn.prototype=Bn.prototype,Hn.prototype.constructor=Hn,Wn.prototype=Mn(Bn.prototype),Wn.prototype.constructor=Wn,qn.prototype=Mn(Bn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=$n?$n(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(e){var i=this.__data__;if($n){var r=i[e];return r===n?t:r}return Ot.call(i,e)?i[e]:t},Un.prototype.has=function(e){var n=this.__data__;return $n?n[e]!==t:Ot.call(n,e)},Un.prototype.set=function(e,i){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$n&&i===t?n:i,this},zn.prototype.clear=function(){this.__data__=[],this.size=0},zn.prototype.delete=function(t){var e=this.__data__,n=ei(e,t);return!(n<0||(n==e.length-1?e.pop():Vt.call(e,n,1),--this.size,0))},zn.prototype.get=function(e){var n=this.__data__,i=ei(n,e);return i<0?t:n[i][1]},zn.prototype.has=function(t){return ei(this.__data__,t)>-1},zn.prototype.set=function(t,e){var n=this.__data__,i=ei(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Tn||zn),string:new Un}},Qn.prototype.delete=function(t){var e=uo(this,t).delete(t);return this.size-=e?1:0,e},Qn.prototype.get=function(t){return uo(this,t).get(t)},Qn.prototype.has=function(t){return uo(this,t).has(t)},Qn.prototype.set=function(t,e){var n=uo(this,t),i=n.size;return n.set(t,e),
this.size+=n.size==i?0:1,this},Gn.prototype.add=Gn.prototype.push=function(t){return this.__data__.set(t,n),this},Gn.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.clear=function(){this.__data__=new zn,this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Vn.prototype.get=function(t){return this.__data__.get(t)},Vn.prototype.has=function(t){return this.__data__.has(t)},Vn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof zn){var i=n.__data__;if(!Tn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qn(i)}return n.set(t,e),this.size=n.size,this};var fi=Dr(wi),pi=Dr(bi,!0);function hi(t,e){var n=!0;return fi(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function di(e,n,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=n(s);if(null!=a&&(u===t?a==a&&!aa(a):i(a,u)))var u=a,l=s}return l}function vi(t,e){var n=[];return fi(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function gi(t,e,n,i,r){var o=-1,s=t.length;for(n||(n=mo),r||(r=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?gi(a,e-1,n,i,r):Ne(r,a):i||(r[r.length]=a)}return r}var mi=Nr(),yi=Nr(!0);function wi(t,e){return t&&mi(t,e,ja)}function bi(t,e){return t&&yi(t,e,ja)}function xi(t,e){return Ee(e,(function(e){return Xs(t[e])}))}function _i(e,n){for(var i=0,r=(n=yr(n,e)).length;null!=e&&i<r;)e=e[Ro(n[i++])];return i&&i==r?e:t}function Ai(t,e,n){var i=e(t);return qs(t)?i:Ne(i,n(t))}function Ti(e){return null==e?e===t?"[object Undefined]":"[object Null]":Zt&&Zt in Ct(e)?function(e){var n=Ot.call(e,Zt),i=e[Zt];try{e[Zt]=t;var r=!0}catch(t){}var o=Pt.call(e);return r&&(n?e[Zt]=i:delete e[Zt]),o}(e):function(t){return Pt.call(t)}(e)}function Ci(t,e){return t>e}function ki(t,e){return null!=t&&Ot.call(t,e)}function Si(t,e){return null!=t&&e in Ct(t)}function $i(e,n,i){for(var r=i?Le:je,o=e[0].length,s=e.length,a=s,u=dt(s),l=1/0,c=[];a--;){var f=e[a];a&&n&&(f=De(f,Xe(n))),l=yn(f.length,l),u[a]=!i&&(n||o>=120&&f.length>=120)?new Gn(a&&f):t}f=e[0];var p=-1,h=u[0];t:for(;++p<o&&c.length<l;){var d=f[p],v=n?n(d):d;if(d=i||0!==d?d:0,!(h?Ke(h,v):r(c,v,i))){for(a=s;--a;){var g=u[a];if(!(g?Ke(g,v):r(e[a],v,i)))continue t}h&&h.push(v),c.push(d)}}return c}function Ei(e,n,i){var r=null==(e=So(e,n=yr(n,e)))?e:e[Ro(Yo(n))];return null==r?t:Te(r,e,i)}function ji(t){return ta(t)&&Ti(t)==h}function Li(e,n,i,r,o){return e===n||(null==e||null==n||!ta(e)&&!ta(n)?e!=e&&n!=n:function(e,n,i,r,o,s){var a=qs(e),u=qs(n),l=a?d:ho(e),c=u?d:ho(n),f=(l=l==h?_:l)==_,p=(c=c==h?_:c)==_,y=l==c;if(y&&Gs(e)){if(!Gs(n))return!1;a=!0,f=!1}if(y&&!f)return s||(s=new Vn),a||ua(e)?to(e,n,i,r,o,s):function(t,e,n,i,r,o,s){switch(n){case j:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!o(new qt(t),new qt(e)));case v:case g:case x:return Hs(+t,+e);case m:return t.name==e.name&&t.message==e.message;case T:case k:return t==e+"";case b:var a=sn;case C:var u=1&i;if(a||(a=ln),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);var c=to(a(t),a(e),i,r,o,s);return s.delete(t),c;case S:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(e,n,l,i,r,o,s);if(!(1&i)){var w=f&&Ot.call(e,"__wrapped__"),A=p&&Ot.call(n,"__wrapped__");if(w||A){var $=w?e.value():e,L=A?n.value():n;return s||(s=new Vn),o($,L,i,r,s)}}return!!y&&(s||(s=new Vn),function(e,n,i,r,o,s){var a=1&i,u=no(e),l=u.length,c=no(n),f=c.length;if(l!=f&&!a)return!1;for(var p=l;p--;){var h=u[p];if(!(a?h in n:Ot.call(n,h)))return!1}var d=s.get(e),v=s.get(n);if(d&&v)return d==n&&v==e;var g=!0;s.set(e,n),s.set(n,e);for(var m=a;++p<l;){var y=e[h=u[p]],w=n[h];if(r)var b=a?r(w,y,h,n,e,s):r(y,w,h,e,n,s);if(!(b===t?y===w||o(y,w,i,r,s):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var x=e.constructor,_=n.constructor;x==_||!("constructor"in e)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(n),g}(e,n,i,r,o,s))
}(e,n,i,r,Li,o))}function Di(e,n,i,r){var o=i.length,s=o,a=!r;if(null==e)return!s;for(e=Ct(e);o--;){var u=i[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var l=(u=i[o])[0],c=e[l],f=u[1];if(a&&u[2]){if(c===t&&!(l in e))return!1}else{var p=new Vn;if(r)var h=r(c,f,l,e,n,p);if(!(h===t?Li(f,c,3,r,p):h))return!1}}return!0}function Ni(t){return!(!Zs(t)||(e=t,Rt&&Rt in e))&&(Xs(t)?Mt:vt).test(Po(t));var e}function Oi(t){return"function"==typeof t?t:null==t?nu:"object"==typeof t?qs(t)?Mi(t[0],t[1]):Hi(t):fu(t)}function Ii(t){if(!Ao(t))return gn(t);var e=[];for(var n in Ct(t))Ot.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ri(t){if(!Zs(t))return function(t){var e=[];if(null!=t)for(var n in Ct(t))e.push(n);return e}(t);var e=Ao(t),n=[];for(var i in t)("constructor"!=i||!e&&Ot.call(t,i))&&n.push(i);return n}function Pi(t,e){return t<e}function Fi(t,e){var n=-1,i=zs(t)?dt(t.length):[];return fi(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Hi(t){var e=lo(t);return 1==e.length&&e[0][2]?Co(e[0][0],e[0][1]):function(n){return n===t||Di(n,t,e)}}function Mi(e,n){return bo(e)&&To(n)?Co(Ro(e),n):function(i){var r=Ca(i,e);return r===t&&r===n?ka(i,e):Li(n,r,3)}}function Bi(e,n,i,r,o){e!==n&&mi(n,(function(s,a){if(o||(o=new Vn),Zs(s))!function(e,n,i,r,o,s,a){var u=$o(e,i),l=$o(n,i),c=a.get(l);if(c)Zn(e,i,c);else{var f=s?s(u,l,i+"",e,n,a):t,p=f===t;if(p){var h=qs(l),d=!h&&Gs(l),v=!h&&!d&&ua(l);f=l,h||d||v?qs(u)?f=u:Qs(u)?f=$r(u):d?(p=!1,f=_r(l,!0)):v?(p=!1,f=Tr(l,!0)):f=[]:ia(l)||Ws(l)?(f=u,Ws(u)?f=ga(u):Zs(u)&&!Xs(u)||(f=go(l))):p=!1}p&&(a.set(l,f),o(f,l,r,s,a),a.delete(l)),Zn(e,i,f)}}(e,n,a,i,Bi,r,o);else{var u=r?r($o(e,a),s,a+"",e,n,o):t;u===t&&(u=s),Zn(e,a,u)}}),La)}function Wi(e,n){var i=e.length;if(i)return yo(n+=n<0?i:0,i)?e[n]:t}function qi(t,e,n){e=e.length?De(e,(function(t){return qs(t)?function(e){return _i(e,1===t.length?t[0]:t)}:t})):[nu];var i=-1;e=De(e,Xe(ao()));var r=Fi(t,(function(t,n,r){var o=De(e,(function(e){return e(t)}));return{criteria:o,index:++i,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(r,(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;++i<s;){var u=Cr(r[i],o[i]);if(u)return i>=a?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}))}function Ui(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=_i(t,s);n(a,s)&&Ki(o,yr(s,t),a)}return o}function zi(t,e,n,i){var r=i?Be:Me,o=-1,s=e.length,a=t;for(t===e&&(e=$r(e)),n&&(a=De(t,Xe(n)));++o<s;)for(var u=0,l=e[o],c=n?n(l):l;(u=r(a,c,u,i))>-1;)a!==t&&Vt.call(a,u,1),Vt.call(t,u,1);return t}function Qi(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;yo(r)?Vt.call(t,r,1):cr(t,r)}}return t}function Gi(t,e){return t+de(xn()*(e-t+1))}function Vi(t,e){var n="";if(!t||e<1||e>u)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Yi(t,e){return Lo(ko(t,e,nu),t+"")}function Xi(t){return Xn(Ha(t))}function Ji(t,e){var n=Ha(t);return Oo(n,si(e,0,n.length))}function Ki(e,n,i,r){if(!Zs(e))return e;for(var o=-1,s=(n=yr(n,e)).length,a=s-1,u=e;null!=u&&++o<s;){var l=Ro(n[o]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var f=u[l];(c=r?r(f,l,u):t)===t&&(c=Zs(f)?f:yo(n[o+1])?[]:{})}ti(u,l,c),u=u[l]}return e}var Zi=En?function(t,e){return En.set(t,e),t}:nu,tr=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:Za(e),writable:!0})}:nu;function er(t){return Oo(Ha(t))}function nr(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=dt(r);++i<r;)o[i]=t[i+e];return o}function ir(t,e){var n;return fi(t,(function(t,i,r){return!(n=e(t,i,r))})),!!n}function rr(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var o=i+r>>>1,s=t[o];null!==s&&!aa(s)&&(n?s<=e:s<e)?i=o+1:r=o}return r}return or(t,e,nu,n)}function or(e,n,i,r){var o=0,s=null==e?0:e.length;if(0===s)return 0
;for(var a=(n=i(n))!=n,u=null===n,l=aa(n),c=n===t;o<s;){var f=de((o+s)/2),p=i(e[f]),h=p!==t,d=null===p,v=p==p,g=aa(p);if(a)var m=r||v;else m=c?v&&(r||h):u?v&&h&&(r||!d):l?v&&h&&!d&&(r||!g):!d&&!g&&(r?p<=n:p<n);m?o=f+1:s=f}return yn(s,4294967294)}function sr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!Hs(a,u)){var u=a;o[r++]=0===s?0:s}}return o}function ar(t){return"number"==typeof t?t:aa(t)?l:+t}function ur(t){if("string"==typeof t)return t;if(qs(t))return De(t,ur)+"";if(aa(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function lr(t,e,n){var i=-1,r=je,o=t.length,s=!0,a=[],u=a;if(n)s=!1,r=Le;else if(o>=200){var l=e?null:Vr(t);if(l)return ln(l);s=!1,r=Ke,u=new Gn}else u=e?[]:a;t:for(;++i<o;){var c=t[i],f=e?e(c):c;if(c=n||0!==c?c:0,s&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),a.push(c)}else r(u,f,n)||(u!==a&&u.push(f),a.push(c))}return a}function cr(t,e){return null==(t=So(t,e=yr(e,t)))||delete t[Ro(Yo(e))]}function fr(t,e,n,i){return Ki(t,e,n(_i(t,e)),i)}function pr(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?nr(t,i?0:o,i?o+1:r):nr(t,i?o+1:0,i?r:o)}function hr(t,e){var n=t;return n instanceof qn&&(n=n.value()),Oe(e,(function(t,e){return e.func.apply(e.thisArg,Ne([t],e.args))}),n)}function dr(t,e,n){var i=t.length;if(i<2)return i?lr(t[0]):[];for(var r=-1,o=dt(i);++r<i;)for(var s=t[r],a=-1;++a<i;)a!=r&&(o[r]=ci(o[r]||s,t[a],e,n));return lr(gi(o,1),e,n)}function vr(e,n,i){for(var r=-1,o=e.length,s=n.length,a={};++r<o;){var u=r<s?n[r]:t;i(a,e[r],u)}return a}function gr(t){return Qs(t)?t:[]}function mr(t){return"function"==typeof t?t:nu}function yr(t,e){return qs(t)?t:bo(t,e)?[t]:Io(ma(t))}var wr=Yi;function br(e,n,i){var r=e.length;return i=i===t?r:i,!n&&i>=r?e:nr(e,n,i)}var xr=ae||function(t){return pe.clearTimeout(t)};function _r(t,e){if(e)return t.slice();var n=t.length,i=Ut?Ut(n):new t.constructor(n);return t.copy(i),i}function Ar(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function Tr(t,e){var n=e?Ar(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Cr(e,n){if(e!==n){var i=e!==t,r=null===e,o=e==e,s=aa(e),a=n!==t,u=null===n,l=n==n,c=aa(n);if(!u&&!c&&!s&&e>n||s&&a&&l&&!u&&!c||r&&a&&l||!i&&l||!o)return 1;if(!r&&!s&&!c&&e<n||c&&i&&o&&!r&&!s||u&&i&&o||!a&&o||!l)return-1}return 0}function kr(t,e,n,i){for(var r=-1,o=t.length,s=n.length,a=-1,u=e.length,l=mn(o-s,0),c=dt(u+l),f=!i;++a<u;)c[a]=e[a];for(;++r<s;)(f||r<o)&&(c[n[r]]=t[r]);for(;l--;)c[a++]=t[r++];return c}function Sr(t,e,n,i){for(var r=-1,o=t.length,s=-1,a=n.length,u=-1,l=e.length,c=mn(o-a,0),f=dt(c+l),p=!i;++r<c;)f[r]=t[r];for(var h=r;++u<l;)f[h+u]=e[u];for(;++s<a;)(p||r<o)&&(f[h+n[s]]=t[r++]);return f}function $r(t,e){var n=-1,i=t.length;for(e||(e=dt(i));++n<i;)e[n]=t[n];return e}function Er(e,n,i,r){var o=!i;i||(i={});for(var s=-1,a=n.length;++s<a;){var u=n[s],l=r?r(i[u],e[u],u,i,e):t;l===t&&(l=e[u]),o?ri(i,u,l):ti(i,u,l)}return i}function jr(t,e){return function(n,i){var r=qs(n)?Ce:ni,o=e?e():{};return r(n,t,ao(i,2),o)}}function Lr(e){return Yi((function(n,i){var r=-1,o=i.length,s=o>1?i[o-1]:t,a=o>2?i[2]:t;for(s=e.length>3&&"function"==typeof s?(o--,s):t,a&&wo(i[0],i[1],a)&&(s=o<3?t:s,o=1),n=Ct(n);++r<o;){var u=i[r];u&&e(n,u,r,s)}return n}))}function Dr(t,e){return function(n,i){if(null==n)return n;if(!zs(n))return t(n,i);for(var r=n.length,o=e?r:-1,s=Ct(n);(e?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function Nr(t){return function(e,n,i){for(var r=-1,o=Ct(e),s=i(e),a=s.length;a--;){var u=s[t?a:++r];if(!1===n(o[u],u,o))break}return e}}function Or(e){return function(n){var i=on(n=ma(n))?pn(n):t,r=i?i[0]:n.charAt(0),o=i?br(i,1).join(""):n.slice(1);return r[e]()+o}}function Ir(t){return function(e){return Oe(Xa(Wa(e).replace(Jt,"")),t,"")}}function Rr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:
return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Mn(t.prototype),i=t.apply(n,e);return Zs(i)?i:n}}function Pr(e){return function(n,i,r){var o=Ct(n);if(!zs(n)){var s=ao(i,3);n=ja(n),i=function(t){return s(o[t],t,o)}}var a=e(n,i,r);return a>-1?o[s?n[a]:a]:t}}function Fr(n){return eo((function(i){var r=i.length,o=r,s=Wn.prototype.thru;for(n&&i.reverse();o--;){var a=i[o];if("function"!=typeof a)throw new $t(e);if(s&&!u&&"wrapper"==oo(a))var u=new Wn([],!0)}for(o=u?o:r;++o<r;){var l=oo(a=i[o]),c="wrapper"==l?ro(a):t;u=c&&xo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[oo(c[0])].apply(u,c[3]):1==a.length&&xo(a)?u[l]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&qs(e))return u.plant(e).value();for(var n=0,o=r?i[n].apply(this,t):e;++n<r;)o=i[n].call(this,o);return o}}))}function Hr(e,n,i,r,s,a,u,l,c,f){var p=n&o,h=1&n,d=2&n,v=24&n,g=512&n,m=d?t:Rr(e);return function o(){for(var y=arguments.length,w=dt(y),b=y;b--;)w[b]=arguments[b];if(v)var x=so(o),_=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(w,x);if(r&&(w=kr(w,r,s,v)),a&&(w=Sr(w,a,u,v)),y-=_,v&&y<f){var A=un(w,x);return Qr(e,n,Hr,o.placeholder,i,w,A,l,c,f-y)}var T=h?i:this,C=d?T[e]:e;return y=w.length,l?w=function(e,n){for(var i=e.length,r=yn(n.length,i),o=$r(e);r--;){var s=n[r];e[r]=yo(s,i)?o[s]:t}return e}(w,l):g&&y>1&&w.reverse(),p&&c<y&&(w.length=c),this&&this!==pe&&this instanceof o&&(C=m||Rr(C)),C.apply(T,w)}}function Mr(t,e){return function(n,i){return function(t,e,n,i){return wi(t,(function(t,r,o){e(i,n(t),r,o)})),i}(n,t,e(i),{})}}function Br(e,n){return function(i,r){var o;if(i===t&&r===t)return n;if(i!==t&&(o=i),r!==t){if(o===t)return r;"string"==typeof i||"string"==typeof r?(i=ur(i),r=ur(r)):(i=ar(i),r=ar(r)),o=e(i,r)}return o}}function Wr(t){return eo((function(e){return e=De(e,Xe(ao())),Yi((function(n){var i=this;return t(e,(function(t){return Te(t,i,n)}))}))}))}function qr(e,n){var i=(n=n===t?" ":ur(n)).length;if(i<2)return i?Vi(n,e):n;var r=Vi(n,he(e/fn(n)));return on(n)?br(pn(r),0,e).join(""):r.slice(0,e)}function Ur(e){return function(n,i,r){return r&&"number"!=typeof r&&wo(n,i,r)&&(i=r=t),n=pa(n),i===t?(i=n,n=0):i=pa(i),function(t,e,n,i){for(var r=-1,o=mn(he((e-t)/(n||1)),0),s=dt(o);o--;)s[i?o:++r]=t,t+=n;return s}(n,i,r=r===t?n<i?1:-1:pa(r),e)}}function zr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=va(e),n=va(n)),t(e,n)}}function Qr(e,n,i,o,s,a,u,l,c,f){var p=8&n;n|=p?r:64,4&(n&=~(p?64:r))||(n&=-4);var h=[e,n,s,p?a:t,p?u:t,p?t:a,p?t:u,l,c,f],d=i.apply(t,h);return xo(e)&&Eo(d,h),d.placeholder=o,Do(d,e,n)}function Gr(t){var e=Tt[t];return function(t,n){if(t=va(t),(n=null==n?0:yn(ha(n),292))&&Pe(t)){var i=(ma(t)+"e").split("e");return+((i=(ma(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Vr=kn&&1/ln(new kn([,-0]))[1]==a?function(t){return new kn(t)}:au;function Yr(t){return function(e){var n=ho(e);return n==b?sn(e):n==C?cn(e):function(t,e){return De(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Xr(n,a,u,l,c,f,p,h){var d=2&a;if(!d&&"function"!=typeof n)throw new $t(e);var v=l?l.length:0;if(v||(a&=-97,l=c=t),p=p===t?p:mn(ha(p),0),h=h===t?h:ha(h),v-=c?c.length:0,64&a){var g=l,m=c;l=c=t}var y=d?t:ro(n),w=[n,a,u,l,c,g,m,f,p,h];if(y&&function(t,e){var n=t[1],r=e[1],a=n|r,u=a<131,l=r==o&&8==n||r==o&&n==s&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!u&&!l)return t;1&r&&(t[2]=e[2],a|=1&n?0:4);var c=e[3];if(c){var f=t[3];t[3]=f?kr(f,c,e[4]):c,t[4]=f?un(t[3],i):e[4]}(c=e[5])&&(f=t[5],t[5]=f?Sr(f,c,e[6]):c,t[6]=f?un(t[5],i):e[6]),(c=e[7])&&(t[7]=c),r&o&&(t[8]=null==t[8]?e[8]:yn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=a}(w,y),n=w[0],a=w[1],u=w[2],l=w[3],c=w[4],!(h=w[9]=w[9]===t?d?0:n.length:mn(w[9]-v,0))&&24&a&&(a&=-25),a&&1!=a)b=8==a||16==a?function(e,n,i){var r=Rr(e)
;return function o(){for(var s=arguments.length,a=dt(s),u=s,l=so(o);u--;)a[u]=arguments[u];var c=s<3&&a[0]!==l&&a[s-1]!==l?[]:un(a,l);return(s-=c.length)<i?Qr(e,n,Hr,o.placeholder,t,a,c,t,t,i-s):Te(this&&this!==pe&&this instanceof o?r:e,this,a)}}(n,a,h):a!=r&&33!=a||c.length?Hr.apply(t,w):function(t,e,n,i){var r=1&e,o=Rr(t);return function e(){for(var s=-1,a=arguments.length,u=-1,l=i.length,c=dt(l+a),f=this&&this!==pe&&this instanceof e?o:t;++u<l;)c[u]=i[u];for(;a--;)c[u++]=arguments[++s];return Te(f,r?n:this,c)}}(n,a,u,l);else var b=function(t,e,n){var i=1&e,r=Rr(t);return function e(){return(this&&this!==pe&&this instanceof e?r:t).apply(i?n:this,arguments)}}(n,a,u);return Do((y?Zi:Eo)(b,w),n,a)}function Jr(e,n,i,r){return e===t||Hs(e,Lt[i])&&!Ot.call(r,i)?n:e}function Kr(e,n,i,r,o,s){return Zs(e)&&Zs(n)&&(s.set(n,e),Bi(e,n,t,Kr,s),s.delete(n)),e}function Zr(e){return ia(e)?t:e}function to(e,n,i,r,o,s){var a=1&i,u=e.length,l=n.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(e),f=s.get(n);if(c&&f)return c==n&&f==e;var p=-1,h=!0,d=2&i?new Gn:t;for(s.set(e,n),s.set(n,e);++p<u;){var v=e[p],g=n[p];if(r)var m=a?r(g,v,p,n,e,s):r(v,g,p,e,n,s);if(m!==t){if(m)continue;h=!1;break}if(d){if(!Re(n,(function(t,e){if(!Ke(d,e)&&(v===t||o(v,t,i,r,s)))return d.push(e)}))){h=!1;break}}else if(v!==g&&!o(v,g,i,r,s)){h=!1;break}}return s.delete(e),s.delete(n),h}function eo(e){return Lo(ko(e,t,Uo),e+"")}function no(t){return Ai(t,ja,fo)}function io(t){return Ai(t,La,po)}var ro=En?function(t){return En.get(t)}:au;function oo(t){for(var e=t.name+"",n=jn[e],i=Ot.call(jn,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function so(t){return(Ot.call(Hn,"placeholder")?Hn:t).placeholder}function ao(){var t=Hn.iteratee||iu;return t=t===iu?Oi:t,arguments.length?t(arguments[0],arguments[1]):t}function uo(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function lo(t){for(var e=ja(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,To(r)]}return e}function co(e,n){var i=function(e,n){return null==e?t:e[n]}(e,n);return Ni(i)?i:t}var fo=ge?function(t){return null==t?[]:(t=Ct(t),Ee(ge(t),(function(e){return Gt.call(t,e)})))}:du,po=ge?function(t){for(var e=[];t;)Ne(e,fo(t)),t=zt(t);return e}:du,ho=Ti;function vo(t,e,n){for(var i=-1,r=(e=yr(e,t)).length,o=!1;++i<r;){var s=Ro(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Ks(r)&&yo(s,r)&&(qs(t)||Ws(t))}function go(t){return"function"!=typeof t.constructor||Ao(t)?{}:Mn(zt(t))}function mo(t){return qs(t)||Ws(t)||!!(Yt&&t&&t[Yt])}function yo(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&mt.test(t))&&t>-1&&t%1==0&&t<e}function wo(t,e,n){if(!Zs(n))return!1;var i=typeof e;return!!("number"==i?zs(n)&&yo(e,n.length):"string"==i&&e in n)&&Hs(n[e],t)}function bo(t,e){if(qs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||J.test(t)||!X.test(t)||null!=e&&t in Ct(e)}function xo(t){var e=oo(t),n=Hn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var i=ro(n);return!!i&&t===i[0]}(An&&ho(new An(new ArrayBuffer(1)))!=j||Tn&&ho(new Tn)!=b||Cn&&ho(Cn.resolve())!=A||kn&&ho(new kn)!=C||Sn&&ho(new Sn)!=$)&&(ho=function(e){var n=Ti(e),i=n==_?e.constructor:t,r=i?Po(i):"";if(r)switch(r){case Ln:return j;case Dn:return b;case Nn:return A;case On:return C;case In:return $}return n});var _o=Dt?Xs:vu;function Ao(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Lt)}function To(t){return t==t&&!Zs(t)}function Co(e,n){return function(i){return null!=i&&i[e]===n&&(n!==t||e in Ct(i))}}function ko(e,n,i){return n=mn(n===t?e.length-1:n,0),function(){for(var t=arguments,r=-1,o=mn(t.length-n,0),s=dt(o);++r<o;)s[r]=t[n+r];r=-1;for(var a=dt(n+1);++r<n;)a[r]=t[r];return a[n]=i(s),Te(e,this,a)}}function So(t,e){return e.length<2?t:_i(t,nr(e,0,-1))}
function $o(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Eo=No(Zi),jo=fe||function(t,e){return pe.setTimeout(t,e)},Lo=No(tr);function Do(t,e,n){var i=e+"";return Lo(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return ke(f,(function(n){var i="_."+n[0];e&n[1]&&!je(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(rt);return e?e[1].split(ot):[]}(i),n)))}function No(e){var n=0,i=0;return function(){var r=wn(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Oo(e,n){var i=-1,r=e.length,o=r-1;for(n=n===t?r:n;++i<n;){var s=Gi(i,o),a=e[s];e[s]=e[i],e[i]=a}return e.length=n,e}var Io=function(t){var e=Ns(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(K,(function(t,n,i,r){e.push(i?r.replace(ut,"$1"):n||t)})),e}));function Ro(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Po(t){if(null!=t){try{return Nt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Fo(t){if(t instanceof qn)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=$r(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ho=Yi((function(t,e){return Qs(t)?ci(t,gi(e,1,Qs,!0)):[]})),Mo=Yi((function(e,n){var i=Yo(n);return Qs(i)&&(i=t),Qs(e)?ci(e,gi(n,1,Qs,!0),ao(i,2)):[]})),Bo=Yi((function(e,n){var i=Yo(n);return Qs(i)&&(i=t),Qs(e)?ci(e,gi(n,1,Qs,!0),t,i):[]}));function Wo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ha(n);return r<0&&(r=mn(i+r,0)),He(t,ao(e,3),r)}function qo(e,n,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==t&&(o=ha(i),o=i<0?mn(r+o,0):yn(o,r-1)),He(e,ao(n,3),o,!0)}function Uo(t){return null!=t&&t.length?gi(t,1):[]}function zo(e){return e&&e.length?e[0]:t}var Qo=Yi((function(t){var e=De(t,gr);return e.length&&e[0]===t[0]?$i(e):[]})),Go=Yi((function(e){var n=Yo(e),i=De(e,gr);return n===Yo(i)?n=t:i.pop(),i.length&&i[0]===e[0]?$i(i,ao(n,2)):[]})),Vo=Yi((function(e){var n=Yo(e),i=De(e,gr);return(n="function"==typeof n?n:t)&&i.pop(),i.length&&i[0]===e[0]?$i(i,t,n):[]}));function Yo(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Xo=Yi(Jo);function Jo(t,e){return t&&t.length&&e&&e.length?zi(t,e):t}var Ko=eo((function(t,e){var n=null==t?0:t.length,i=oi(t,e);return Qi(t,De(e,(function(t){return yo(t,n)?+t:t})).sort(Cr)),i}));function Zo(t){return null==t?t:_n.call(t)}var ts=Yi((function(t){return lr(gi(t,1,Qs,!0))})),es=Yi((function(e){var n=Yo(e);return Qs(n)&&(n=t),lr(gi(e,1,Qs,!0),ao(n,2))})),ns=Yi((function(e){var n=Yo(e);return n="function"==typeof n?n:t,lr(gi(e,1,Qs,!0),t,n)}));function is(t){if(!t||!t.length)return[];var e=0;return t=Ee(t,(function(t){if(Qs(t))return e=mn(t.length,e),!0})),Ve(e,(function(e){return De(t,Ue(e))}))}function rs(e,n){if(!e||!e.length)return[];var i=is(e);return null==n?i:De(i,(function(e){return Te(n,t,e)}))}var os=Yi((function(t,e){return Qs(t)?ci(t,e):[]})),ss=Yi((function(t){return dr(Ee(t,Qs))})),as=Yi((function(e){var n=Yo(e);return Qs(n)&&(n=t),dr(Ee(e,Qs),ao(n,2))})),us=Yi((function(e){var n=Yo(e);return n="function"==typeof n?n:t,dr(Ee(e,Qs),t,n)})),ls=Yi(is),cs=Yi((function(e){var n=e.length,i=n>1?e[n-1]:t;return i="function"==typeof i?(e.pop(),i):t,rs(e,i)}));function fs(t){var e=Hn(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var hs=eo((function(e){var n=e.length,i=n?e[0]:0,r=this.__wrapped__,o=function(t){return oi(t,e)};return!(n>1||this.__actions__.length)&&r instanceof qn&&yo(i)?((r=r.slice(i,+i+(n?1:0))).__actions__.push({func:ps,args:[o],thisArg:t}),new Wn(r,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(o)})),ds=jr((function(t,e,n){Ot.call(t,n)?++t[n]:ri(t,n,1)})),vs=Pr(Wo),gs=Pr(qo);function ms(t,e){
return(qs(t)?ke:fi)(t,ao(e,3))}function ys(t,e){return(qs(t)?Se:pi)(t,ao(e,3))}var ws=jr((function(t,e,n){Ot.call(t,n)?t[n].push(e):ri(t,n,[e])})),bs=Yi((function(t,e,n){var i=-1,r="function"==typeof e,o=zs(t)?dt(t.length):[];return fi(t,(function(t){o[++i]=r?Te(e,t,n):Ei(t,e,n)})),o})),xs=jr((function(t,e,n){ri(t,n,e)}));function _s(t,e){return(qs(t)?De:Fi)(t,ao(e,3))}var As=jr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Ts=Yi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&wo(t,e[0],e[1])?e=[]:n>2&&wo(e[0],e[1],e[2])&&(e=[e[0]]),qi(t,gi(e,1),[])})),Cs=ce||function(){return pe.Date.now()};function ks(e,n,i){return n=i?t:n,n=e&&null==n?e.length:n,Xr(e,o,t,t,t,t,n)}function Ss(n,i){var r;if("function"!=typeof i)throw new $t(e);return n=ha(n),function(){return--n>0&&(r=i.apply(this,arguments)),n<=1&&(i=t),r}}var $s=Yi((function(t,e,n){var i=1;if(n.length){var o=un(n,so($s));i|=r}return Xr(t,i,e,n,o)})),Es=Yi((function(t,e,n){var i=3;if(n.length){var o=un(n,so(Es));i|=r}return Xr(e,i,t,n,o)}));function js(n,i,r){var o,s,a,u,l,c,f=0,p=!1,h=!1,d=!0;if("function"!=typeof n)throw new $t(e);function v(e){var i=o,r=s;return o=s=t,f=e,u=n.apply(r,i)}function g(e){var n=e-c;return c===t||n>=i||n<0||h&&e-f>=a}function m(){var t=Cs();if(g(t))return y(t);l=jo(m,function(t){var e=i-(t-c);return h?yn(e,a-(t-f)):e}(t))}function y(e){return l=t,d&&o?v(e):(o=s=t,u)}function w(){var e=Cs(),n=g(e);if(o=arguments,s=this,c=e,n){if(l===t)return function(t){return f=t,l=jo(m,i),p?v(t):u}(c);if(h)return xr(l),l=jo(m,i),v(c)}return l===t&&(l=jo(m,i)),u}return i=va(i)||0,Zs(r)&&(p=!!r.leading,a=(h="maxWait"in r)?mn(va(r.maxWait)||0,i):a,d="trailing"in r?!!r.trailing:d),w.cancel=function(){l!==t&&xr(l),f=0,o=c=s=l=t},w.flush=function(){return l===t?u:y(Cs())},w}var Ls=Yi((function(t,e){return li(t,1,e)})),Ds=Yi((function(t,e,n){return li(t,va(e)||0,n)}));function Ns(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new $t(e);var i=function(){var e=arguments,r=n?n.apply(this,e):e[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,e);return i.cache=o.set(r,s)||o,s};return i.cache=new(Ns.Cache||Qn),i}function Os(t){if("function"!=typeof t)throw new $t(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ns.Cache=Qn;var Is=wr((function(t,e){var n=(e=1==e.length&&qs(e[0])?De(e[0],Xe(ao())):De(gi(e,1),Xe(ao()))).length;return Yi((function(i){for(var r=-1,o=yn(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return Te(t,this,i)}))})),Rs=Yi((function(e,n){var i=un(n,so(Rs));return Xr(e,r,t,n,i)})),Ps=Yi((function(e,n){var i=un(n,so(Ps));return Xr(e,64,t,n,i)})),Fs=eo((function(e,n){return Xr(e,s,t,t,t,n)}));function Hs(t,e){return t===e||t!=t&&e!=e}var Ms=zr(Ci),Bs=zr((function(t,e){return t>=e})),Ws=ji(function(){return arguments}())?ji:function(t){return ta(t)&&Ot.call(t,"callee")&&!Gt.call(t,"callee")},qs=dt.isArray,Us=ye?Xe(ye):function(t){return ta(t)&&Ti(t)==E};function zs(t){return null!=t&&Ks(t.length)&&!Xs(t)}function Qs(t){return ta(t)&&zs(t)}var Gs=me||vu,Vs=we?Xe(we):function(t){return ta(t)&&Ti(t)==g};function Ys(t){if(!ta(t))return!1;var e=Ti(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Xs(t){if(!Zs(t))return!1;var e=Ti(t);return e==y||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==ha(t)}function Ks(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Zs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=be?Xe(be):function(t){return ta(t)&&ho(t)==b};function na(t){return"number"==typeof t||ta(t)&&Ti(t)==x}function ia(t){if(!ta(t)||Ti(t)!=_)return!1;var e=zt(t);if(null===e)return!0;var n=Ot.call(e,"constructor")&&e.constructor
;return"function"==typeof n&&n instanceof n&&Nt.call(n)==Ft}var ra=xe?Xe(xe):function(t){return ta(t)&&Ti(t)==T},oa=_e?Xe(_e):function(t){return ta(t)&&ho(t)==C};function sa(t){return"string"==typeof t||!qs(t)&&ta(t)&&Ti(t)==k}function aa(t){return"symbol"==typeof t||ta(t)&&Ti(t)==S}var ua=Ae?Xe(Ae):function(t){return ta(t)&&Ks(t.length)&&!!oe[Ti(t)]},la=zr(Pi),ca=zr((function(t,e){return t<=e}));function fa(t){if(!t)return[];if(zs(t))return sa(t)?pn(t):$r(t);if(Xt&&t[Xt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Xt]());var e=ho(t);return(e==b?sn:e==C?ln:Ha)(t)}function pa(t){return t?(t=va(t))===a||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var e=pa(t),n=e%1;return e==e?n?e-n:e:0}function da(t){return t?si(ha(t),0,c):0}function va(t){if("number"==typeof t)return t;if(aa(t))return l;if(Zs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Zs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=pt.test(t);return n||gt.test(t)?le(t.slice(2),n?2:8):ft.test(t)?l:+t}function ga(t){return Er(t,La(t))}function ma(t){return null==t?"":ur(t)}var ya=Lr((function(t,e){if(Ao(e)||zs(e))Er(e,ja(e),t);else for(var n in e)Ot.call(e,n)&&ti(t,n,e[n])})),wa=Lr((function(t,e){Er(e,La(e),t)})),ba=Lr((function(t,e,n,i){Er(e,La(e),t,i)})),xa=Lr((function(t,e,n,i){Er(e,ja(e),t,i)})),_a=eo(oi),Aa=Yi((function(e,n){e=Ct(e);var i=-1,r=n.length,o=r>2?n[2]:t;for(o&&wo(n[0],n[1],o)&&(r=1);++i<r;)for(var s=n[i],a=La(s),u=-1,l=a.length;++u<l;){var c=a[u],f=e[c];(f===t||Hs(f,Lt[c])&&!Ot.call(e,c))&&(e[c]=s[c])}return e})),Ta=Yi((function(e){return e.push(t,Kr),Te(Na,t,e)}));function Ca(e,n,i){var r=null==e?t:_i(e,n);return r===t?i:r}function ka(t,e){return null!=t&&vo(t,e,Si)}var Sa=Mr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pt.call(e)),t[e]=n}),Za(nu)),$a=Mr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pt.call(e)),Ot.call(t,e)?t[e].push(n):t[e]=[n]}),ao),Ea=Yi(Ei);function ja(t){return zs(t)?Yn(t):Ii(t)}function La(t){return zs(t)?Yn(t,!0):Ri(t)}var Da=Lr((function(t,e,n){Bi(t,e,n)})),Na=Lr((function(t,e,n,i){Bi(t,e,n,i)})),Oa=eo((function(t,e){var n={};if(null==t)return n;var i=!1;e=De(e,(function(e){return e=yr(e,t),i||(i=e.length>1),e})),Er(t,io(t),n),i&&(n=ai(n,7,Zr));for(var r=e.length;r--;)cr(n,e[r]);return n})),Ia=eo((function(t,e){return null==t?{}:function(t,e){return Ui(t,e,(function(e,n){return ka(t,n)}))}(t,e)}));function Ra(t,e){if(null==t)return{};var n=De(io(t),(function(t){return[t]}));return e=ao(e),Ui(t,n,(function(t,n){return e(t,n[0])}))}var Pa=Yr(ja),Fa=Yr(La);function Ha(t){return null==t?[]:Je(t,ja(t))}var Ma=Ir((function(t,e,n){return e=e.toLowerCase(),t+(n?Ba(e):e)}));function Ba(t){return Ya(ma(t).toLowerCase())}function Wa(t){return(t=ma(t))&&t.replace(yt,en).replace(Kt,"")}var qa=Ir((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ua=Ir((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),za=Or("toLowerCase"),Qa=Ir((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ga=Ir((function(t,e,n){return t+(n?" ":"")+Ya(e)})),Va=Ir((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ya=Or("toUpperCase");function Xa(e,n,i){return e=ma(e),(n=i?t:n)===t?function(t){return ne.test(t)}(e)?function(t){return t.match(te)||[]}(e):function(t){return t.match(st)||[]}(e):e.match(n)||[]}var Ja=Yi((function(e,n){try{return Te(e,t,n)}catch(t){return Ys(t)?t:new _t(t)}})),Ka=eo((function(t,e){return ke(e,(function(e){e=Ro(e),ri(t,e,$s(t[e],t))})),t}));function Za(t){return function(){return t}}var tu=Fr(),eu=Fr(!0);function nu(t){return t}function iu(t){return Oi("function"==typeof t?t:ai(t,1))}var ru=Yi((function(t,e){return function(n){return Ei(n,t,e)}})),ou=Yi((function(t,e){return function(n){return Ei(t,n,e)}}));function su(t,e,n){var i=ja(e),r=xi(e,i);null!=n||Zs(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=xi(e,ja(e)));var o=!(Zs(n)&&"chain"in n&&!n.chain),s=Xs(t);return ke(r,(function(n){var i=e[n];t[n]=i,
s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=$r(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Ne([this.value()],arguments))})})),t}function au(){}var uu=Wr(De),lu=Wr($e),cu=Wr(Re);function fu(t){return bo(t)?Ue(Ro(t)):function(t){return function(e){return _i(e,t)}}(t)}var pu=Ur(),hu=Ur(!0);function du(){return[]}function vu(){return!1}var gu,mu=Br((function(t,e){return t+e}),0),yu=Gr("ceil"),wu=Br((function(t,e){return t/e}),1),bu=Gr("floor"),xu=Br((function(t,e){return t*e}),1),_u=Gr("round"),Au=Br((function(t,e){return t-e}),0);return Hn.after=function(t,n){if("function"!=typeof n)throw new $t(e);return t=ha(t),function(){if(--t<1)return n.apply(this,arguments)}},Hn.ary=ks,Hn.assign=ya,Hn.assignIn=wa,Hn.assignInWith=ba,Hn.assignWith=xa,Hn.at=_a,Hn.before=Ss,Hn.bind=$s,Hn.bindAll=Ka,Hn.bindKey=Es,Hn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qs(t)?t:[t]},Hn.chain=fs,Hn.chunk=function(e,n,i){n=(i?wo(e,n,i):n===t)?1:mn(ha(n),0);var r=null==e?0:e.length;if(!r||n<1)return[];for(var o=0,s=0,a=dt(he(r/n));o<r;)a[s++]=nr(e,o,o+=n);return a},Hn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},Hn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=dt(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ne(qs(n)?$r(n):[n],gi(e,1))},Hn.cond=function(t){var n=null==t?0:t.length,i=ao();return t=n?De(t,(function(t){if("function"!=typeof t[1])throw new $t(e);return[i(t[0]),t[1]]})):[],Yi((function(e){for(var i=-1;++i<n;){var r=t[i];if(Te(r[0],this,e))return Te(r[1],this,e)}}))},Hn.conforms=function(t){return function(t){var e=ja(t);return function(n){return ui(n,t,e)}}(ai(t,1))},Hn.constant=Za,Hn.countBy=ds,Hn.create=function(t,e){var n=Mn(t);return null==e?n:ii(n,e)},Hn.curry=function e(n,i,r){var o=Xr(n,8,t,t,t,t,t,i=r?t:i);return o.placeholder=e.placeholder,o},Hn.curryRight=function e(n,i,r){var o=Xr(n,16,t,t,t,t,t,i=r?t:i);return o.placeholder=e.placeholder,o},Hn.debounce=js,Hn.defaults=Aa,Hn.defaultsDeep=Ta,Hn.defer=Ls,Hn.delay=Ds,Hn.difference=Ho,Hn.differenceBy=Mo,Hn.differenceWith=Bo,Hn.drop=function(e,n,i){var r=null==e?0:e.length;return r?nr(e,(n=i||n===t?1:ha(n))<0?0:n,r):[]},Hn.dropRight=function(e,n,i){var r=null==e?0:e.length;return r?nr(e,0,(n=r-(n=i||n===t?1:ha(n)))<0?0:n):[]},Hn.dropRightWhile=function(t,e){return t&&t.length?pr(t,ao(e,3),!0,!0):[]},Hn.dropWhile=function(t,e){return t&&t.length?pr(t,ao(e,3),!0):[]},Hn.fill=function(e,n,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&wo(e,n,i)&&(i=0,r=o),function(e,n,i,r){var o=e.length;for((i=ha(i))<0&&(i=-i>o?0:o+i),(r=r===t||r>o?o:ha(r))<0&&(r+=o),r=i>r?0:da(r);i<r;)e[i++]=n;return e}(e,n,i,r)):[]},Hn.filter=function(t,e){return(qs(t)?Ee:vi)(t,ao(e,3))},Hn.flatMap=function(t,e){return gi(_s(t,e),1)},Hn.flatMapDeep=function(t,e){return gi(_s(t,e),a)},Hn.flatMapDepth=function(e,n,i){return i=i===t?1:ha(i),gi(_s(e,n),i)},Hn.flatten=Uo,Hn.flattenDeep=function(t){return null!=t&&t.length?gi(t,a):[]},Hn.flattenDepth=function(e,n){return null!=e&&e.length?gi(e,n=n===t?1:ha(n)):[]},Hn.flip=function(t){return Xr(t,512)},Hn.flow=tu,Hn.flowRight=eu,Hn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},Hn.functions=function(t){return null==t?[]:xi(t,ja(t))},Hn.functionsIn=function(t){return null==t?[]:xi(t,La(t))},Hn.groupBy=ws,Hn.initial=function(t){return null!=t&&t.length?nr(t,0,-1):[]},Hn.intersection=Qo,Hn.intersectionBy=Go,Hn.intersectionWith=Vo,Hn.invert=Sa,Hn.invertBy=$a,Hn.invokeMap=bs,Hn.iteratee=iu,Hn.keyBy=xs,Hn.keys=ja,Hn.keysIn=La,Hn.map=_s,Hn.mapKeys=function(t,e){var n={};return e=ao(e,3),wi(t,(function(t,i,r){ri(n,e(t,i,r),t)})),n},Hn.mapValues=function(t,e){var n={};return e=ao(e,3),wi(t,(function(t,i,r){ri(n,i,e(t,i,r))})),n},Hn.matches=function(t){return Hi(ai(t,1))},
Hn.matchesProperty=function(t,e){return Mi(t,ai(e,1))},Hn.memoize=Ns,Hn.merge=Da,Hn.mergeWith=Na,Hn.method=ru,Hn.methodOf=ou,Hn.mixin=su,Hn.negate=Os,Hn.nthArg=function(t){return t=ha(t),Yi((function(e){return Wi(e,t)}))},Hn.omit=Oa,Hn.omitBy=function(t,e){return Ra(t,Os(ao(e)))},Hn.once=function(t){return Ss(2,t)},Hn.orderBy=function(e,n,i,r){return null==e?[]:(qs(n)||(n=null==n?[]:[n]),qs(i=r?t:i)||(i=null==i?[]:[i]),qi(e,n,i))},Hn.over=uu,Hn.overArgs=Is,Hn.overEvery=lu,Hn.overSome=cu,Hn.partial=Rs,Hn.partialRight=Ps,Hn.partition=As,Hn.pick=Ia,Hn.pickBy=Ra,Hn.property=fu,Hn.propertyOf=function(e){return function(n){return null==e?t:_i(e,n)}},Hn.pull=Xo,Hn.pullAll=Jo,Hn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?zi(t,e,ao(n,2)):t},Hn.pullAllWith=function(e,n,i){return e&&e.length&&n&&n.length?zi(e,n,t,i):e},Hn.pullAt=Ko,Hn.range=pu,Hn.rangeRight=hu,Hn.rearg=Fs,Hn.reject=function(t,e){return(qs(t)?Ee:vi)(t,Os(ao(e,3)))},Hn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=ao(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),r.push(i))}return Qi(t,r),n},Hn.rest=function(n,i){if("function"!=typeof n)throw new $t(e);return Yi(n,i=i===t?i:ha(i))},Hn.reverse=Zo,Hn.sampleSize=function(e,n,i){return n=(i?wo(e,n,i):n===t)?1:ha(n),(qs(e)?Jn:Ji)(e,n)},Hn.set=function(t,e,n){return null==t?t:Ki(t,e,n)},Hn.setWith=function(e,n,i,r){return r="function"==typeof r?r:t,null==e?e:Ki(e,n,i,r)},Hn.shuffle=function(t){return(qs(t)?Kn:er)(t)},Hn.slice=function(e,n,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&wo(e,n,i)?(n=0,i=r):(n=null==n?0:ha(n),i=i===t?r:ha(i)),nr(e,n,i)):[]},Hn.sortBy=Ts,Hn.sortedUniq=function(t){return t&&t.length?sr(t):[]},Hn.sortedUniqBy=function(t,e){return t&&t.length?sr(t,ao(e,2)):[]},Hn.split=function(e,n,i){return i&&"number"!=typeof i&&wo(e,n,i)&&(n=i=t),(i=i===t?c:i>>>0)?(e=ma(e))&&("string"==typeof n||null!=n&&!ra(n))&&!(n=ur(n))&&on(e)?br(pn(e),0,i):e.split(n,i):[]},Hn.spread=function(t,n){if("function"!=typeof t)throw new $t(e);return n=null==n?0:mn(ha(n),0),Yi((function(e){var i=e[n],r=br(e,0,n);return i&&Ne(r,i),Te(t,this,r)}))},Hn.tail=function(t){var e=null==t?0:t.length;return e?nr(t,1,e):[]},Hn.take=function(e,n,i){return e&&e.length?nr(e,0,(n=i||n===t?1:ha(n))<0?0:n):[]},Hn.takeRight=function(e,n,i){var r=null==e?0:e.length;return r?nr(e,(n=r-(n=i||n===t?1:ha(n)))<0?0:n,r):[]},Hn.takeRightWhile=function(t,e){return t&&t.length?pr(t,ao(e,3),!1,!0):[]},Hn.takeWhile=function(t,e){return t&&t.length?pr(t,ao(e,3)):[]},Hn.tap=function(t,e){return e(t),t},Hn.throttle=function(t,n,i){var r=!0,o=!0;if("function"!=typeof t)throw new $t(e);return Zs(i)&&(r="leading"in i?!!i.leading:r,o="trailing"in i?!!i.trailing:o),js(t,n,{leading:r,maxWait:n,trailing:o})},Hn.thru=ps,Hn.toArray=fa,Hn.toPairs=Pa,Hn.toPairsIn=Fa,Hn.toPath=function(t){return qs(t)?De(t,Ro):aa(t)?[t]:$r(Io(ma(t)))},Hn.toPlainObject=ga,Hn.transform=function(t,e,n){var i=qs(t),r=i||Gs(t)||ua(t);if(e=ao(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Zs(t)&&Xs(o)?Mn(zt(t)):{}}return(r?ke:wi)(t,(function(t,i,r){return e(n,t,i,r)})),n},Hn.unary=function(t){return ks(t,1)},Hn.union=ts,Hn.unionBy=es,Hn.unionWith=ns,Hn.uniq=function(t){return t&&t.length?lr(t):[]},Hn.uniqBy=function(t,e){return t&&t.length?lr(t,ao(e,2)):[]},Hn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?lr(e,t,n):[]},Hn.unset=function(t,e){return null==t||cr(t,e)},Hn.unzip=is,Hn.unzipWith=rs,Hn.update=function(t,e,n){return null==t?t:fr(t,e,mr(n))},Hn.updateWith=function(e,n,i,r){return r="function"==typeof r?r:t,null==e?e:fr(e,n,mr(i),r)},Hn.values=Ha,Hn.valuesIn=function(t){return null==t?[]:Je(t,La(t))},Hn.without=os,Hn.words=Xa,Hn.wrap=function(t,e){return Rs(mr(e),t)},Hn.xor=ss,Hn.xorBy=as,Hn.xorWith=us,Hn.zip=ls,Hn.zipObject=function(t,e){return vr(t||[],e||[],ti)},Hn.zipObjectDeep=function(t,e){return vr(t||[],e||[],Ki)},Hn.zipWith=cs,Hn.entries=Pa,Hn.entriesIn=Fa,Hn.extend=wa,Hn.extendWith=ba,
su(Hn,Hn),Hn.add=mu,Hn.attempt=Ja,Hn.camelCase=Ma,Hn.capitalize=Ba,Hn.ceil=yu,Hn.clamp=function(e,n,i){return i===t&&(i=n,n=t),i!==t&&(i=(i=va(i))==i?i:0),n!==t&&(n=(n=va(n))==n?n:0),si(va(e),n,i)},Hn.clone=function(t){return ai(t,4)},Hn.cloneDeep=function(t){return ai(t,5)},Hn.cloneDeepWith=function(e,n){return ai(e,5,n="function"==typeof n?n:t)},Hn.cloneWith=function(e,n){return ai(e,4,n="function"==typeof n?n:t)},Hn.conformsTo=function(t,e){return null==e||ui(t,e,ja(e))},Hn.deburr=Wa,Hn.defaultTo=function(t,e){return null==t||t!=t?e:t},Hn.divide=wu,Hn.endsWith=function(e,n,i){e=ma(e),n=ur(n);var r=e.length,o=i=i===t?r:si(ha(i),0,r);return(i-=n.length)>=0&&e.slice(i,o)==n},Hn.eq=Hs,Hn.escape=function(t){return(t=ma(t))&&Q.test(t)?t.replace(U,nn):t},Hn.escapeRegExp=function(t){return(t=ma(t))&&tt.test(t)?t.replace(Z,"\\$&"):t},Hn.every=function(e,n,i){var r=qs(e)?$e:hi;return i&&wo(e,n,i)&&(n=t),r(e,ao(n,3))},Hn.find=vs,Hn.findIndex=Wo,Hn.findKey=function(t,e){return Fe(t,ao(e,3),wi)},Hn.findLast=gs,Hn.findLastIndex=qo,Hn.findLastKey=function(t,e){return Fe(t,ao(e,3),bi)},Hn.floor=bu,Hn.forEach=ms,Hn.forEachRight=ys,Hn.forIn=function(t,e){return null==t?t:mi(t,ao(e,3),La)},Hn.forInRight=function(t,e){return null==t?t:yi(t,ao(e,3),La)},Hn.forOwn=function(t,e){return t&&wi(t,ao(e,3))},Hn.forOwnRight=function(t,e){return t&&bi(t,ao(e,3))},Hn.get=Ca,Hn.gt=Ms,Hn.gte=Bs,Hn.has=function(t,e){return null!=t&&vo(t,e,ki)},Hn.hasIn=ka,Hn.head=zo,Hn.identity=nu,Hn.includes=function(t,e,n,i){t=zs(t)?t:Ha(t),n=n&&!i?ha(n):0;var r=t.length;return n<0&&(n=mn(r+n,0)),sa(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&Me(t,e,n)>-1},Hn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ha(n);return r<0&&(r=mn(i+r,0)),Me(t,e,r)},Hn.inRange=function(e,n,i){return n=pa(n),i===t?(i=n,n=0):i=pa(i),function(t,e,n){return t>=yn(e,n)&&t<mn(e,n)}(e=va(e),n,i)},Hn.invoke=Ea,Hn.isArguments=Ws,Hn.isArray=qs,Hn.isArrayBuffer=Us,Hn.isArrayLike=zs,Hn.isArrayLikeObject=Qs,Hn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Ti(t)==v},Hn.isBuffer=Gs,Hn.isDate=Vs,Hn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ia(t)},Hn.isEmpty=function(t){if(null==t)return!0;if(zs(t)&&(qs(t)||"string"==typeof t||"function"==typeof t.splice||Gs(t)||ua(t)||Ws(t)))return!t.length;var e=ho(t);if(e==b||e==C)return!t.size;if(Ao(t))return!Ii(t).length;for(var n in t)if(Ot.call(t,n))return!1;return!0},Hn.isEqual=function(t,e){return Li(t,e)},Hn.isEqualWith=function(e,n,i){var r=(i="function"==typeof i?i:t)?i(e,n):t;return r===t?Li(e,n,t,i):!!r},Hn.isError=Ys,Hn.isFinite=function(t){return"number"==typeof t&&Pe(t)},Hn.isFunction=Xs,Hn.isInteger=Js,Hn.isLength=Ks,Hn.isMap=ea,Hn.isMatch=function(t,e){return t===e||Di(t,e,lo(e))},Hn.isMatchWith=function(e,n,i){return i="function"==typeof i?i:t,Di(e,n,lo(n),i)},Hn.isNaN=function(t){return na(t)&&t!=+t},Hn.isNative=function(t){if(_o(t))throw new _t("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ni(t)},Hn.isNil=function(t){return null==t},Hn.isNull=function(t){return null===t},Hn.isNumber=na,Hn.isObject=Zs,Hn.isObjectLike=ta,Hn.isPlainObject=ia,Hn.isRegExp=ra,Hn.isSafeInteger=function(t){return Js(t)&&t>=-9007199254740991&&t<=u},Hn.isSet=oa,Hn.isString=sa,Hn.isSymbol=aa,Hn.isTypedArray=ua,Hn.isUndefined=function(e){return e===t},Hn.isWeakMap=function(t){return ta(t)&&ho(t)==$},Hn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Ti(t)},Hn.join=function(t,e){return null==t?"":ze.call(t,e)},Hn.kebabCase=qa,Hn.last=Yo,Hn.lastIndexOf=function(e,n,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==t&&(o=(o=ha(i))<0?mn(r+o,0):yn(o,r-1)),n==n?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(e,n,o):He(e,We,o,!0)},Hn.lowerCase=Ua,Hn.lowerFirst=za,Hn.lt=la,Hn.lte=ca,Hn.max=function(e){return e&&e.length?di(e,nu,Ci):t},Hn.maxBy=function(e,n){return e&&e.length?di(e,ao(n,2),Ci):t},Hn.mean=function(t){return qe(t,nu)},Hn.meanBy=function(t,e){return qe(t,ao(e,2))},
Hn.min=function(e){return e&&e.length?di(e,nu,Pi):t},Hn.minBy=function(e,n){return e&&e.length?di(e,ao(n,2),Pi):t},Hn.stubArray=du,Hn.stubFalse=vu,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=xu,Hn.nth=function(e,n){return e&&e.length?Wi(e,ha(n)):t},Hn.noConflict=function(){return pe._===this&&(pe._=Ht),this},Hn.noop=au,Hn.now=Cs,Hn.pad=function(t,e,n){t=ma(t);var i=(e=ha(e))?fn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return qr(de(r),n)+t+qr(he(r),n)},Hn.padEnd=function(t,e,n){t=ma(t);var i=(e=ha(e))?fn(t):0;return e&&i<e?t+qr(e-i,n):t},Hn.padStart=function(t,e,n){t=ma(t);var i=(e=ha(e))?fn(t):0;return e&&i<e?qr(e-i,n)+t:t},Hn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),bn(ma(t).replace(et,""),e||0)},Hn.random=function(e,n,i){if(i&&"boolean"!=typeof i&&wo(e,n,i)&&(n=i=t),i===t&&("boolean"==typeof n?(i=n,n=t):"boolean"==typeof e&&(i=e,e=t)),e===t&&n===t?(e=0,n=1):(e=pa(e),n===t?(n=e,e=0):n=pa(n)),e>n){var r=e;e=n,n=r}if(i||e%1||n%1){var o=xn();return yn(e+o*(n-e+ue("1e-"+((o+"").length-1))),n)}return Gi(e,n)},Hn.reduce=function(t,e,n){var i=qs(t)?Oe:Qe,r=arguments.length<3;return i(t,ao(e,4),n,r,fi)},Hn.reduceRight=function(t,e,n){var i=qs(t)?Ie:Qe,r=arguments.length<3;return i(t,ao(e,4),n,r,pi)},Hn.repeat=function(e,n,i){return n=(i?wo(e,n,i):n===t)?1:ha(n),Vi(ma(e),n)},Hn.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Hn.result=function(e,n,i){var r=-1,o=(n=yr(n,e)).length;for(o||(o=1,e=t);++r<o;){var s=null==e?t:e[Ro(n[r])];s===t&&(r=o,s=i),e=Xs(s)?s.call(e):s}return e},Hn.round=_u,Hn.runInContext=p,Hn.sample=function(t){return(qs(t)?Xn:Xi)(t)},Hn.size=function(t){if(null==t)return 0;if(zs(t))return sa(t)?fn(t):t.length;var e=ho(t);return e==b||e==C?t.size:Ii(t).length},Hn.snakeCase=Qa,Hn.some=function(e,n,i){var r=qs(e)?Re:ir;return i&&wo(e,n,i)&&(n=t),r(e,ao(n,3))},Hn.sortedIndex=function(t,e){return rr(t,e)},Hn.sortedIndexBy=function(t,e,n){return or(t,e,ao(n,2))},Hn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=rr(t,e);if(i<n&&Hs(t[i],e))return i}return-1},Hn.sortedLastIndex=function(t,e){return rr(t,e,!0)},Hn.sortedLastIndexBy=function(t,e,n){return or(t,e,ao(n,2),!0)},Hn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=rr(t,e,!0)-1;if(Hs(t[n],e))return n}return-1},Hn.startCase=Ga,Hn.startsWith=function(t,e,n){return t=ma(t),n=null==n?0:si(ha(n),0,t.length),e=ur(e),t.slice(n,n+e.length)==e},Hn.subtract=Au,Hn.sum=function(t){return t&&t.length?Ge(t,nu):0},Hn.sumBy=function(t,e){return t&&t.length?Ge(t,ao(e,2)):0},Hn.template=function(e,n,i){var r=Hn.templateSettings;i&&wo(e,n,i)&&(n=t),e=ma(e),n=ba({},n,r,Jr);var o,s,a=ba({},n.imports,r.imports,Jr),u=ja(a),l=Je(a,u),c=0,f=n.interpolate||wt,p="__p += '",h=kt((n.escape||wt).source+"|"+f.source+"|"+(f===Y?lt:wt).source+"|"+(n.evaluate||wt).source+"|$","g"),d="//# sourceURL="+(Ot.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";e.replace(h,(function(t,n,i,r,a,u){return i||(i=r),p+=e.slice(c,u).replace(bt,rn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),p+="';\n";var v=Ot.call(n,"variable")&&n.variable;if(v){if(at.test(v))throw new _t("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(M,""):p).replace(B,"$1").replace(W,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Ja((function(){return At(u,d+"return "+p).apply(t,l)}));if(g.source=p,Ys(g))throw g;return g},Hn.times=function(t,e){if((t=ha(t))<1||t>u)return[];var n=c,i=yn(t,c);e=ao(e),t-=c;for(var r=Ve(i,e);++n<t;)e(n);return r},Hn.toFinite=pa,Hn.toInteger=ha,Hn.toLength=da,
Hn.toLower=function(t){return ma(t).toLowerCase()},Hn.toNumber=va,Hn.toSafeInteger=function(t){return t?si(ha(t),-9007199254740991,u):0===t?t:0},Hn.toString=ma,Hn.toUpper=function(t){return ma(t).toUpperCase()},Hn.trim=function(e,n,i){if((e=ma(e))&&(i||n===t))return Ye(e);if(!e||!(n=ur(n)))return e;var r=pn(e),o=pn(n);return br(r,Ze(r,o),tn(r,o)+1).join("")},Hn.trimEnd=function(e,n,i){if((e=ma(e))&&(i||n===t))return e.slice(0,hn(e)+1);if(!e||!(n=ur(n)))return e;var r=pn(e);return br(r,0,tn(r,pn(n))+1).join("")},Hn.trimStart=function(e,n,i){if((e=ma(e))&&(i||n===t))return e.replace(et,"");if(!e||!(n=ur(n)))return e;var r=pn(e);return br(r,Ze(r,pn(n))).join("")},Hn.truncate=function(e,n){var i=30,r="...";if(Zs(n)){var o="separator"in n?n.separator:o;i="length"in n?ha(n.length):i,r="omission"in n?ur(n.omission):r}var s=(e=ma(e)).length;if(on(e)){var a=pn(e);s=a.length}if(i>=s)return e;var u=i-fn(r);if(u<1)return r;var l=a?br(a,0,u).join(""):e.slice(0,u);if(o===t)return l+r;if(a&&(u+=l.length-u),ra(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=kt(o.source,ma(ct.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var p=c.index;l=l.slice(0,p===t?u:p)}}else if(e.indexOf(ur(o),u)!=u){var h=l.lastIndexOf(o);h>-1&&(l=l.slice(0,h))}return l+r},Hn.unescape=function(t){return(t=ma(t))&&z.test(t)?t.replace(q,dn):t},Hn.uniqueId=function(t){var e=++It;return ma(t)+e},Hn.upperCase=Va,Hn.upperFirst=Ya,Hn.each=ms,Hn.eachRight=ys,Hn.first=zo,su(Hn,(gu={},wi(Hn,(function(t,e){Ot.call(Hn.prototype,e)||(gu[e]=t)})),gu),{chain:!1}),Hn.VERSION="4.17.21",ke(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Hn[t].placeholder=Hn})),ke(["drop","take"],(function(e,n){qn.prototype[e]=function(i){i=i===t?1:mn(ha(i),0);var r=this.__filtered__&&!n?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(i,r.__takeCount__):r.__views__.push({size:yn(i,c),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),ke(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ao(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),ke(["head","last"],(function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}})),ke(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(nu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Yi((function(t,e){return"function"==typeof t?new qn(this):this.map((function(n){return Ei(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(Os(ao(t)))},qn.prototype.slice=function(e,n){e=ha(e);var i=this;return i.__filtered__&&(e>0||n<0)?new qn(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==t&&(i=(n=ha(n))<0?i.dropRight(-n):i.take(n-e)),i)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(c)},wi(qn.prototype,(function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=Hn[r?"take"+("last"==n?"Right":""):n],s=r||/^find/.test(n);o&&(Hn.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,u=n instanceof qn,l=a[0],c=u||qs(n),f=function(t){var e=o.apply(Hn,Ne([t],a));return r&&p?e[0]:e};c&&i&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,h=!!this.__actions__.length,d=s&&!p,v=u&&!h;if(!s&&c){n=v?n:new qn(this);var g=e.apply(n,a);return g.__actions__.push({func:ps,args:[f],thisArg:t}),new Wn(g,p)}return d&&v?e.apply(this,a):(g=this.thru(f),d?r?g.value()[0]:g.value():g)})})),ke(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Et[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t)
;Hn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(qs(r)?r:[],t)}return this[n]((function(n){return e.apply(qs(n)?n:[],t)}))}})),wi(qn.prototype,(function(t,e){var n=Hn[e];if(n){var i=n.name+"";Ot.call(jn,i)||(jn[i]=[]),jn[i].push({name:e,func:n})}})),jn[Hr(t,2).name]=[{name:"wrapper",func:t}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=$r(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=$r(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=$r(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=qs(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=yn(e,t+s);break;case"takeRight":t=mn(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),s=o.start,a=o.end,u=a-s,l=i?a:s-1,c=this.__iteratees__,f=c.length,p=0,h=yn(u,this.__takeCount__);if(!n||!i&&r==u&&h==u)return hr(t,this.__actions__);var d=[];t:for(;u--&&p<h;){for(var v=-1,g=t[l+=e];++v<f;){var m=c[v],y=m.iteratee,w=m.type,b=y(g);if(2==w)g=b;else if(!b){if(1==w)continue t;break t}}d[p++]=g}return d},Hn.prototype.at=hs,Hn.prototype.chain=function(){return fs(this)},Hn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===t&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var n,i=this;i instanceof Bn;){var r=Fo(i);r.__index__=0,r.__values__=t,n?o.__wrapped__=r:n=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,n},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var n=e;return this.__actions__.length&&(n=new qn(this)),(n=n.reverse()).__actions__.push({func:ps,args:[Zo],thisArg:t}),new Wn(n,this.__chain__)}return this.thru(Zo)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return hr(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,Xt&&(Hn.prototype[Xt]=function(){return this}),Hn}();de?((de.exports=vn)._=vn,he._=vn):pe._=vn}.call(pt.exports)),pt.exports),gt=h(vt);const mt=[{name:"lg",matcher:()=>window.matchMedia("(min-width: 1200px)"),container:1170},{name:"md",matcher:()=>window.matchMedia("(min-width: 992px) and (max-width: 1199px)"),container:970},{name:"sm",matcher:()=>window.matchMedia("(min-width: 768px) and (max-width: 991px)"),container:750},{name:"xs",matcher:()=>window.matchMedia("(max-width: 767px)")}];function yt(){return gt.find(mt,(t=>t.matcher().matches))}const wt={eventName:"id7:reflow"};class bt{constructor(t){this.options=b.extend({},wt,t),this.onScreenResize(),this.wireEventHandlers()}onScreenResize(){const t=yt();this.options.container.trigger(this.options.eventName,[t])}reflow(){"xs"===yt().name?b(window).on("resize.id7.reflow.onScreenResize",b.proxy(this.onScreenResize,this)):b(window).off("resize.id7.reflow.onScreenResize"),this.onScreenResize()}wireEventHandlers(){mt.forEach((t=>{const{matcher:e,name:n}=t;e().addListener((e=>{e.matches&&(this.options.container.trigger(this.options.eventName,[t]),"xs"===n?b(window).on("resize.id7.reflow.onScreenResize",b.proxy(this.onScreenResize,this)):b(window).off("resize.id7.reflow.onScreenResize"))}))})),"complete"===document.readyState?this.reflow():b(window).on("load",b.proxy(this.reflow,this))}}b.fn.reflow=function(t){return this.each((function(e,n){const i=b(n);let r=i.data("id7.reflow");const o=b.extend({},i.data(),{container:i},"object"==typeof t&&t);r||i.data("id7.reflow",r=new bt(o)),"reflow"!==t&&"force"!==t&&!0!==t||r.reflow()}))},b((()=>b(window).reflow()));var xt,_t={exports:{}},At=_t.exports
;var Tt=(xt||(xt=1,function(t){var e,n;e=At,n=function(){var t=function(){},e="undefined",n=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function r(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(e,n){for(var r=0;r<i.length;r++){var o=i[r];this[o]=r<e?t:this.methodFactory(o,e,n)}this.log=this.debug}function a(t,n,i){return function(){typeof console!==e&&(s.call(this,n,i),this[t].apply(this,arguments))}}function u(i,s,u){return function(i){return"debug"===i&&(i="log"),typeof console!==e&&("trace"===i&&n?o:void 0!==console[i]?r(console,i):void 0!==console.log?r(console,"log"):t)}(i)||a.apply(this,arguments)}function l(t,n,r){var o,a=this,l="loglevel";function c(){var t;if(typeof window!==e&&l){try{t=window.localStorage[l]}catch(t){}if(typeof t===e)try{var n=window.document.cookie,i=n.indexOf(encodeURIComponent(l)+"=");-1!==i&&(t=/^([^;]+)/.exec(n.slice(i))[1])}catch(t){}return void 0===a.levels[t]&&(t=void 0),t}}"string"==typeof t?l+=":"+t:"symbol"==typeof t&&(l=void 0),a.name=t,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=r||u,a.getLevel=function(){return o},a.setLevel=function(n,r){if("string"==typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(o=n,!1!==r&&function(t){var n=(i[t]||"silent").toUpperCase();if(typeof window!==e&&l){try{return void(window.localStorage[l]=n)}catch(t){}try{window.document.cookie=encodeURIComponent(l)+"="+n+";"}catch(t){}}}(n),s.call(a,n,t),typeof console===e&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(t){c()||a.setLevel(t,!1)},a.enableAll=function(t){a.setLevel(a.levels.TRACE,t)},a.disableAll=function(t){a.setLevel(a.levels.SILENT,t)};var f=c();null==f&&(f=null==n?"WARN":n),a.setLevel(f,!1)}var c=new l,f={};c.getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=f[t];return e||(e=f[t]=new l(t,c.getLevel(),c.methodFactory)),e};var p=typeof window!==e?window.log:void 0;return c.noConflict=function(){return typeof window!==e&&window.log===c&&(window.log=p),c},c.getLoggers=function(){return f},c.default=c,c},t.exports?t.exports=n():e.log=n()}(_t)),_t.exports),Ct=h(Tt);const kt={Templates:{Popover:t=>`<div class="account-info">\n        <iframe src="${gt.escape(t.useMwIframe?`${t.iframelink}?embedded`:t.legacyIframeLink)}" \n                scrolling="auto" frameborder="0" allowtransparency="true" \n                seamless \n                sandbox="allow-same-origin allow-scripts allow-top-navigation allow-forms allow-popups allow-popups-to-escape-sandbox"></iframe>\n        </div>\n        <div class="actions">\n          <div class="btn-group btn-group-justified">\n            <div class="btn-group sign-out">\n              <a href="${gt.escape(t.logoutlink)}" class="btn btn-default">Sign out</a>\n            </div>\n          </div>\n        </div>`,Action:t=>`<div class="btn-group">\n        <a href="${gt.escape(t.href)}" \n           title="${gt.escape(t.tooltip)}" \n           class="btn btn-default ${gt.escape(t.classes)}">${gt.escape(t.title)}</a>\n        </div>`},Defaults:{container:!1,iframelink:"https://my.warwick.ac.uk/",notificationsApi:"https://my.warwick.ac.uk/api/id7/notifications/unreads",legacyIframeLink:"https://websignon.warwick.ac.uk/origin/account/popover",showNotificationsBadge:!0,useMwIframe:!0,maxNumberNotifications:99,
template:'\n      <div class="popover my-warwick hybrid-overlay">\n        <div class="arrow"></div>\n        <div class="popover-inner">\n            <div class="popover-content"><p></p></div>\n        </div>\n      </div>'.trim()},MessagePrefix:"message.id7.account-popover."};class St{constructor(t){const e=b.extend({},kt.Defaults,t);this.$trigger=e.trigger,this.options=e,void 0===this.options.logoutlink&&(this.options.logoutlink=this.$trigger.attr("href")),this.wireEventHandlers()}createPopover(t){const e={container:this.options.container,content:kt.Templates.Popover(this.options),template:this.options.template,html:!0,placement:"bottom",title:"Account information",trigger:"manual"};t.popover(e)}static isBlacklistedDevice(){const{userAgent:t}=navigator;return-1!==t.indexOf("iPad")}static isMwFeatureAvailable(){return!St.isBlacklistedDevice()}dismissPopover(){this.$trigger.attr("aria-expanded","false"),this.$trigger.popover("hide"),this.$trigger.data("bs.popover").inState.click=!1}wireEventHandlers(){const{$trigger:t}=this,e=this,n=this.options.iframelink;if(this.options.name){let e='<span class="fa-stack id7-notifications-badge">\n        <i class="fa fa-circle fa-stack-2x" aria-hidden="true"></i>\n        <strong class="fa-stack-1x fa fa-spinner fa-spin brand-text counter-value" title="Notifications"></strong>\n        <span class="sr-only">notifications</span>\n      </span>';St.isMwFeatureAvailable()&&this.options.showNotificationsBadge||(e=""),t.html(`${this.options.name}${e}<span class="caret"></span>`)}const i=t.find(".id7-notifications-badge");var r,o,s;t.on("click",(r=>(r.preventDefault(),r.stopPropagation(),t.popover("toggle"),i.find(".counter-value:not(.fa-exclamation-triangle):not(.fa-spinner)").text("0"),e.options.iframelink=n,t.data("bs.popover").options.content=kt.Templates.Popover(e.options),i.removeClass("animating"),t.attr("aria-expanded","true"),!1))),this.createPopover(t),this.options.showNotificationsBadge&&St.isMwFeatureAvailable()&&(r=this.options.notificationsApi,o=r=>{const o=Math.min(r.unreads,99);i.find(".counter-value").removeClass("fa-spinner").removeClass("fa-spin").addClass("slideInDown").text(o),o>0&&(i.fadeIn().addClass("animating"),e.options.iframelink=`${n}alerts`,t.data("bs.popover").options.content=kt.Templates.Popover(e.options))},s=()=>{i.find(".counter-value").removeClass("fa-spinner").removeClass("fa-spin").addClass("fa-exclamation-triangle"),i.attr("title","There was a problem communicating with the MyWarwick notifications service")},b.ajax({url:r,success:o,error:s,dataType:"json",xhrFields:{withCredentials:!0}})),b("html").on("click.popoverDismiss",(n=>{const i=b(n.target);0===i.closest(".popover").length&&0===i.closest(".use-popover").length&&0===i.closest(t).length&&e.dismissPopover()}));const a=b.proxy(((e,n)=>{if(this.options.useMwIframe=this.options.useMwIframe&&"xs"!==n.name&&b(window).height()>=512&&St.isMwFeatureAvailable(),t.find(".id7-notifications-badge").toggle(this.options.useMwIframe),void 0!==t.data("bs.popover")){t.data("bs.popover").options.content=kt.Templates.Popover(this.options);const e=this.options.useMwIframe&&St.isMwFeatureAvailable()?"my-warwick":"account-information",n=t.data("bs.popover");n.tip().removeClass("account-information","my-warwick").addClass(e),n.tip().hasClass("in")&&(t.popover("show"),t.attr("aria-expanded","true"),t.next(".popover").removeClass("loading"))}}),this);b(window).on("id7:reflow",a),"complete"===document.readyState&&void 0!==b(window).data("id7.reflow")&&a({},yt())}onMessage(t,e){const n=this.$trigger.next(".popover");switch(t){case"addAction":gt.defaults(e,{classes:"",tooltip:""}),n.find(".actions > .btn-group").prepend(kt.Templates.Action(e)),n.find(".actions > .btn-group > .btn-group").first().find('[title]:not([title=""])').tooltip({placement:"bottom"});break;case"resizeIframe":n.find(".account-info iframe").height(e.height);break;case"layoutDidMount":n.addClass("loaded"),this.updateColourTheme(e.colourTheme);break
;case"colourThemeChange":this.updateColourTheme(e.colourTheme);break;case"signedOut":{const{loginlink:t}=this.options;n.find(".actions > .btn-group > .sign-out").replaceWith(kt.Templates.Action({href:t,classes:"sign-in",title:"Sign in",tooltip:""}));break}case"close":this.dismissPopover(),this.$trigger.focus();break;default:Ct.error(`Unexpected message type: ${t}`)}}updateColourTheme(t){this.$trigger.next(".popover").removeClass(((t,e)=>b.grep(e.split(" "),(t=>0===t.indexOf("theme-"))).join(" "))).addClass(`theme-${t}`)}}function $t(t,e){t.parentNode.insertBefore(e,t),e.appendChild(t)}b.fn.accountPopover=function(t){const e=t||{};return this.each((function(t,n){const i=b(n),r=new St(b.extend({},i.data(),e,{trigger:i}));i.attr("aria-expanded","false"),i.data("id7.account-popover",r)}))},b((()=>{b('[data-toggle="id7:account-popover"]').accountPopover(),b(window).on("message",(t=>{const{origin:e}=t.originalEvent;try{const n=JSON.parse(t.originalEvent.data);if(n.type&&0===n.type.indexOf(kt.MessagePrefix)){const t=n.type.substring(kt.MessagePrefix.length);b('[data-toggle="id7:account-popover"]').each((function(){const i=b(this).data("id7.account-popover");0!==i.options.iframelink.indexOf(e)&&0!==i.options.legacyIframeLink.indexOf(e)?Ct.error(`Ignored message of type ${t} because origin ${e} didn't match iframe link ${i.options.iframelink}`):i.onMessage(t,n)}))}}catch(t){}}))}));const Et=window.Headroom,jt={Templates:{moreContainer:'<ul class="nav navbar-nav navbar-right">\n        <li class="dropdown">\n          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fas fa-caret-down" aria-hidden="true"></i><span class="sr-only">Display more items</span></a>\n          <ul class="dropdown-menu" role="menu"></ul>\n        </li>\n      </ul>'.trim(),marker:'<div class="id7-navigation-marker"></div>'},Defaults:{fixedHeader:Et.cutsTheMustard,fixedNav:Et.cutsTheMustard,fitToWidth:!1,collapseSmallscreen:!1,keyboard:!0,trimLinkTitles:{maxLength:60,append:"…"}},HeadroomEvents:{onPin(){b(this.elem).trigger("id7:headroom:onPin")},onUnpin(){b(this.elem).trigger("id7:headroom:onUnpin")}}};class Lt{constructor(t){const e=b.extend({},jt.Defaults,t);this.$container=e.container,e.trimLinkTitles&&"object"!=typeof e.trimLinkTitles&&(e.trimLinkTitles=b.extend({},jt.Defaults.trimLinkTitles)),this.options=e,this.options.fixedHeader&&Lt.markHeaderFixedPosition(),this.options.fixedNav&&this.markFixedPosition(),e.trimLinkTitles&&this.trimLinkTitles(),this.wireEventHandlers()}trimLinkTitles(){const{maxLength:t,append:e}=this.options.trimLinkTitles;function n(){const t=document.createElement("span");return t.setAttribute("aria-hidden","true"),t}this.$container.find(".nav a").each((function(){const i=function(t){const e=[];return function t(n){if(n.nodeType===Node.ELEMENT_NODE&&n.classList.contains("sr-only"));else if(n.nodeType===Node.TEXT_NODE)e.push(n);else for(let e=0,i=n.childNodes.length;e<i;e+=1)t(n.childNodes[e])}(t),e}(this),r=b(i).text();if(r.length<=t)return!0;const o=b(this);o.prepend(b("<span>").addClass("sr-only").text(r)),o.attr("title",r);let s=0,a=!1;return b.each(i,((i,r)=>{const o=r.length;if(a)r.parentNode.removeChild(r);else if(s+o<=t)s+=o,$t(r,n());else{a=!0;const i=r.textContent.split(/\s+/g),o=[];b.each(i,((e,n)=>!(`${o.join(" ")} ${n}`.length>t)&&(o.push(n),!0))),r.textContent=o.join(" ")+e,s+=r.length,$t(r,n())}})),!0}))}static affixHeader(){const t=b(".id7-header-text");if(t.length){Lt.markHeaderFixedPosition();const e=t.offset().top;let n=e;const i=b(".id7-main-content-area");i.length>0&&(n=i.offset().top);const r=b.extend(jt.HeadroomEvents,{offset:n});t.affix({offset:{top:e}}).headroom(r)}}affixNav(){const t=this.$container,e=b(".id7-header-text");let n;n=e.length?e.offset().top:t.offset().top;let i=n;b(".id7-main-content-area").length>0&&(i=b(".id7-main-content-area").offset().top);const r=b.extend(jt.HeadroomEvents,{offset:i});t.affix({offset:{top:n}}).headroom(r)}
fitToWidth(t){const{options:e}=this;this.$container.find(".navbar:not(.navbar-secondary)").each((function(){const n=b(this),i=n.find("> .nav").first();let r=n.find("> .navbar-right");if(r.find("> .dropdown > .dropdown-menu > li").each((function(){const t=b(this);i.append(t)})),0===r.length&&(r=b(jt.Templates.moreContainer),n.append(r)),r.addClass("hidden"),!e.collapseSmallscreen||"xs"!==t.name){const t=()=>gt.some(gt.union(i.find("> li").get(),r.get()),(t=>b(t).is(":visible")&&b(t).position().top>0));if(t()){r.removeClass("hidden");do{r.find("> .dropdown > .dropdown-menu").prepend(i.find("> li:not(.nav-breadcrumb)").last().css("height",""))}while(t()&&i.find("> li:not(.nav-breadcrumb)").length>0);const e=r.find("> .dropdown");e.toggleClass("active",e.find("li.active").length>0)}}}))}updateWrappedState(){this.$container.find(".navbar").each((function(){const t=b(this),e=t.hasClass("navbar-wrapped"),n=t.find("> .nav > li:last"),i=n.length&&n.position().top>0;i!==e&&(t.addClass("important-no-transition"),t.toggleClass("navbar-wrapped",i),gt.defer((()=>t.removeClass("important-no-transition"))))}))}updateDropdownBehaviour(t){this.$container.find(".navbar").each((function(){const e=b(this);"xs"===t.name?e.find(".dropdown-toggle").attr("data-toggle","dropdown").attr("role","button").attr("aria-expanded",!1):e.find(".dropdown-toggle").removeAttr("data-toggle").removeAttr("role").removeAttr("aria-expanded").parent().removeClass("open")}))}getAffixedHeight(){let t=0;return this.options.fixedHeader&&(t+=b(".id7-header-text").outerHeight()),this.options.fixedNav&&(t+=this.$container.outerHeight()),t}hashChanged(){const t=this.getAffixedHeight();setTimeout((()=>window.scrollBy(0,-t)),1)}static markHeaderFixedPosition(){const t=b(".id7-header-text"),e=t.parent();e.css("height","");const n=t.hasClass("affix");n&&t.removeClass("affix"),e.height(e.height()),n&&t.addClass("affix")}markFixedPosition(){let t=this.$container.next(".id7-navigation-marker");0===t.length&&(t=b(jt.Templates.marker),this.$container.after(t)),t.height(this.$container.height())}wireEventHandlers(){"complete"===document.readyState?(this.options.fixedNav&&this.affixNav(),this.options.fixedHeader&&Lt.affixHeader(),this.updateWrappedState()):b(window).on("load",b.proxy((function(){this.options.fixedNav&&this.affixNav(),this.options.fixedHeader&&Lt.affixHeader(),this.updateWrappedState()}),this));const t=b.proxy((function(t,e){this.options.fitToWidth&&this.fitToWidth(e),this.options.fixedHeader&&Lt.markHeaderFixedPosition(),this.options.fixedNav&&this.markFixedPosition(),this.updateWrappedState(),this.updateDropdownBehaviour(e)}),this);b(window).on("id7:reflow",t),"complete"===document.readyState&&void 0!==b(window).data("id7.reflow")&&t({},yt()),this.$container.on("click",".nav > li",(function(t){let e=b(t.target).closest("a");if(!(e.length>0))return e=b(this).find("a").first(),e.length>0?(t.stopPropagation(),t.preventDefault(),e[0].click(),!1):void 0})),document.location.hash&&this.hashChanged(),b(window).on("hashchange",b.proxy(this.hashChanged,this)),this.options.keyboard&&(this.$container.on("keydown",(t=>{const e=b(document.activeElement),n=e.parent(),i="ArrowDown"===t.key,r="ArrowUp"===t.key,o=n.find(".dropdown-menu").parent().hasClass("open");if(n.hasClass("dropdown")&&(i&&!o||r&&o)){n.find("> a").dropdown("toggle"),t.preventDefault();return(o?n.find("> a"):n.find(".dropdown-menu").find("li:first-child a")).focus(),!1}const s=n.parent().hasClass("navbar-nav"),a=n.parent().hasClass("dropdown-menu"),u="ArrowRight"===t.key;if(u&&s)n.next().length>0&&n.next().children().length>0?n.next().children().first().focus():Lt.tryNextNav(e);else if(u&&a){const t=n.parents().eq(1).next();return Lt.openOrFocusNav(n,t),!1}const l="ArrowLeft"===t.key;if(l&&s)n.prev().length>0&&n.prev().children().length>0?n.prev().children().first().focus():Lt.tryPrevNav(e);else if(l&&a){const t=n.parents().eq(1).prev();return Lt.openOrFocusNav(n,t),!1}return!0})),
b(".dropdown-menu",this.$container).each(((t,e)=>{const n=b(e),i=n.parent().find("> a"),r="dropdown";i.length>0&&i.attr("data-toggle")!==r&&(i.attr("data-toggle",r),i.dropdown()),i.length>0&&"true"!==i.attr("aria-haspopup")&&i.attr("aria-haspopup","true");const o=b("<span></span>");function s(t){const e=t?"Hide":"Show";o.text(`${e} submenu`),o.append(b('<span class="sr-only"></span>').text(` for ${i.text()}`))}s(!1);const a=b('<button class="nav-dropdown-button sr-only sr-only-focusable"></button>').append(o);a.on("click",(t=>{t.preventDefault();const e=Lt.toggleDropdown(n);return a.attr("aria-expanded",i.attr("aria-expanded")),e&&a.focus(),s(e),!1})),i.after(a),n.parent().find("> ul > li").attr("role","menuitem"),i.on("click keypress",(t=>{"click"!==t.type&&"Enter"!==t.key||(void 0!==i.attr("href")&&(window.location=i.attr("href")),t.stopPropagation())}))})))}static toggleDropdown(t){const e=t.closest(".dropdown").find("> a");return e.dropdown("toggle"),"true"===e.attr("aria-expanded")}static openOrFocusNav(t,e){0!==e.length&&(Lt.toggleDropdown(t),e.hasClass("dropdown")?(e.find("> a").dropdown("toggle"),e.find("> ul > li:first-child > a").focus()):e.find("> a").focus())}static tryNextNav(t){Lt.tryNextPrevNav(t.parents(".navbar"),!0)}static tryPrevNav(t){Lt.tryNextPrevNav(t.parents(".navbar"),!1)}static tryNextPrevNav(t,e){const n=e?t.next(".navbar"):t.prev(".navbar"),i=n.find("a:visible");if(n.length>0&&i.length>0){(e?i.first():i.last()).focus()}if(n.length>0)return this.tryNextPrevNav(n.first(),e)}}b.fn.id7Navigation=function(t){const e=t||{};return this.each((function(t,n){const i=b(n),r=new Lt(b.extend({},i.data(),e,{container:i}));i.data("id7.navigation",r)}))},b((()=>{const t=b(".id7-navigation");t.id7Navigation(),document.body.hasAttribute("id")||document.body.setAttribute("id","top");const e="primary-nav",n=b('.sr-only.sr-only-focusable[href="#main"]'),i=t.first(),r=1===n.length,o=1===i.length,s=0===b(`.sr-only.sr-only-focusable[href="#${e}"]`).length;if(o&&void 0===i.attr("id")&&i.attr("id",e),s&&r&&o){const t=b("<a>").addClass("sr-only").addClass("sr-only-focusable").attr("href",`#${i.attr("id")}`).text("Skip to navigation");n.after(t)}const a=document.location.toString();if(a.match("#")&&a.split("#")[1].length){const t=b(`.nav-tabs a[href="#${a.split("#")[1]}"]`);t&&t.tab("show")}b(".nav-tabs a").on("shown.bs.tab.id7Navigation",(t=>{return e=t.target.hash,void("replaceState"in window.history?e?window.history.replaceState({},null,e):window.history.replaceState({},null,window.location.pathname+window.location.search):window.location.hash=e);var e}))})),it(),b.fn.searchSuggest=function(t){const e=t||{};return this.each((function(t,n){const i=b(n);!function(t){const e=t||{},n=e.input;n.attr("autocomplete","off").typeahead({minLength:e.minLength,source:e.source,displayText:e.displayText,appendTo:void 0!==e.appendTo?b(e.appendTo):void 0,fitToElement:e.fitToElement,matcher:()=>!0,highlighter:t=>t,changeInputOnSelect:!1,changeInputOnMove:!1,followLinkOnSelect:!0,openLinkInNewTab:!1,selectOnBlur:!1,selectOnTab:!1,showHintOnFocus:!0,itemLink:e.itemLink,afterSelect:()=>n.trigger("blur")}).on("keydown",(t=>{switch(t.which||t.keyCode){case 38:case 40:t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.stopPropagation()}}))}(b.extend({},i.data(),e,{input:i}))}))},b.fn.goSearchSuggest=function(t={}){return this.each((function(e,n){b(n).next(".fa,.fas,.fal,.fab,.far").on("click",(t=>{t.preventDefault(),t.stopPropagation(),b(n).closest("form").submit()}));let i=3,r=3;ot.mq("only all and (min-width: 768px)")&&(i=2,r=6);const o=b(n);o.searchSuggest(b.extend(t,o.data(),{source:(t,e)=>{b.getJSON(`https://sitebuilder.warwick.ac.uk/sitebuilder2/api/go/redirects.json?maxResults=${r}&prefix=${encodeURIComponent(t)}`,e)},minLength:i,display:t=>t.path,displayText:t=>`<div><p class="go-path">${gt.escape(t.path)}</p><p class="go-description">${void 0!==t.description?gt.escape(t.description):""}</p></div>`,
itemLink:t=>`https://go.warwick.ac.uk/${t.path}?goSearchReferer=${encodeURIComponent(window.location)}&goSearchQuery=${encodeURIComponent(b(n).val())}`})),o.width()<88&&o.attr("placeholder","Search")}))},b((()=>b('input[data-suggest="go"]').goSearchSuggest()));const Dt={Templates:{PopoutLink:'<span class="id7-table-wrapper-popout">(<a href="#" data-toggle="id7:popout-table">Pop-out table</a>)</span>',Modal:'\n      <div class="id7-wide-table-popout-modal modal fade" tabindex="-1" role="dialog" aria-hidden="true">\n        <div class="modal-dialog">\n          <div class="modal-content">\n            <div class="modal-header">\n              <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n                <span aria-hidden="true">&times;</span>\n              </button>\n              <span class="modal-title">&nbsp;</span>\n            </div>\n            <div class="modal-body">\n            </div>\n          </div>\n        </div>\n      </div>'.trim()},Defaults:{container:"id7-wide-table-wrapper-container",wrapper:"table-responsive",popout:()=>ot.mq("only all and (min-width: 768px)"),doublescroll:!0}};class Nt{constructor(t){const e=b.extend({},Dt.Defaults,t);Nt.findWideTables(e.container).each((function(t,n){const i=b(n),r=b.extend({},e,i.data());if(r.wrapper&&"string"!=typeof r.wrapper&&(r.wrapper=Dt.Defaults.wrapper),r.container&&"string"!=typeof r.container&&(r.container=Dt.Defaults.container),r.wrapper){Nt.wrap(i,r.wrapper,r.container);const t=i.parent(),e=t.parent();let{popout:n,doublescroll:o}=r;"function"==typeof r.popout&&(n=r.popout()),"function"==typeof r.doublescroll&&(o=r.doublescroll()),n&&Nt.popout(i,t,e),o&&Nt.doubleScroll(i,t)}}))}static findWideTables(t){return t.find("table").filter((function(){return 0===b(this).parents(".no-wide-tables").length})).filter((function(){const t=b(this),e=t.css("max-width");t.css("max-width","none");const n=!t.data("id7.wide-tables.wrapped")&&Math.floor(t.width())>t.parent().width();return t.css("max-width",e),n}))}static wrap(t,e,n){return t.wrap(b("<div />").addClass(n).append(b("<div />").addClass(e))).data("id7.wide-tables.wrapped",!0),t.parent()}static popout(t,e,n){if(t.is(":visible")&&!t.hasClass("sb-no-wrapper-table-popout")){n.prepend(Dt.Templates.PopoutLink).append(Dt.Templates.PopoutLink);const t=b(b.parseHTML(Dt.Templates.Modal)).appendTo(document.body);n.on("click",'[data-toggle="id7:popout-table"]',(n=>(n.stopPropagation(),n.preventDefault(),t.find(".modal-body").html(e.html()),t.modal().modal("show"),!1)))}return t}static doubleScroll(t,e){return e.doubleScroll(),t}}if(b.fn.wideTables=function(t){const e=t||{};return this.each((function(t,n){const i=b(n),r=new Nt(b.extend({},i.data(),e,{container:i}));i.data("id7.wide-tables",r)}))},b(window).on("load id7:ready",(()=>b(".id7-main-content").wideTables())),b((()=>b(window).trigger("id7:ready"))),b.extend(b.expr[":"],{focusable:function(t){return function(t,e){var n,i,r,o,s,a=t.nodeName.toLowerCase();return"area"===a?(i=(n=t.parentNode).name,!(!t.href||!i||"map"!==n.nodeName.toLowerCase())&&(r=b("img[usemap='#"+i+"']")).length>0&&r.is(":visible")):(/^(input|select|textarea|button|object)$/.test(a)?(o=!t.disabled)&&(s=b(t).closest("fieldset")[0])&&(o=!s.disabled):o="a"===a&&t.href||e,o&&b(t).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}(b(t)))}(t,null!=b.attr(t,"tabindex"))}}),b((()=>{const t=b(".id7-site-links"),e=t.find(":focusable").last()[0];t.on("keyup",(t=>{if("Escape"===t.key){const t=b(":focusable");t.each(((n,i)=>{t[n-1]===e&&n>0&&i.focus()}))}}))})),window.$===window.jQuery)try{delete window.$}catch(t){window.$=void 0}if(function(t){window.SitebuilderInfo=t.extend({},{url:null,lastContentUpdated:null,setupHeight:jQuery.noop},window.SitebuilderInfo),window.is_ie=!(!window.attachEvent||window.opera),String.prototype.startsWith||(String.prototype.startsWith=function(t){
return 0===this.lastIndexOf(t,0)}),String.prototype.endsWith||(String.prototype.endsWith=function(t){var e=this.length-t.length;return e>=0&&this.indexOf(t,e)===e}),window.redirectToGo=function(t,e){var n="/go/"+t;n=n+"?goSearchReferer="+encodeURIComponent(window.location),e&&(n=n+"&goSearchQuery="+e),window.location=n};var e=function(t,e,n){this.element=t,this.over=e,this.out=n,this.element.onmouseover=e,this.element.onmouseout=n};e.prototype.disable=function(){this.element.onmouseover=null,this.element.onmouseout=null},e.prototype.enable=function(){this.element.onmouseover=this.over,this.element.onmouseout=this.out},window.WRollback=e;var n=function(e,n,i,r){this.$button=t("#"+e),this.$div=t("#"+n),this.duration=.2,this.closeOnDocumentClick=i||!1,this.callback=r||function(){},this.$button.click(t.proxy(this.toggle,this))};n.prototype.toggle=function(e){var n;return e&&e.preventDefault(),n=this.closeOnDocumentClick?t.proxy((function(){this.$div.is(":visible")?(t(document).click(t.proxy(this.hideIfVisible,this)),this.callback(!0)):(t(document).unbind("click",t.proxy(this.hideIfVisible,this)),this.callback(!1))}),this):t.proxy((function(){this.$div.is(":visible")?this.callback(!0):this.callback(!1)}),this),this.$div.toggle(this.duration,n),!1},n.prototype.hideIfVisible=function(t){return this.$div.is(":visible")&&this.toggle(t),!0},window.WTogglePopup=n;var i=function(t,e,n,r){this.name=t,this.expires="",this.path="/",this.value="",e?(this.value=e,n?(this.hours=n,this.expires="; expires="+i._getGMTStringForHoursAhead(n)):this.expires="",this.path=r||"/",this.save()):this.value=this.load()};if(i._getGMTStringForHoursAhead=function(t){var e=new Date;return e.setTime(e.getTime()+60*t*60*1e3),e.toGMTString()},i.prototype.load=function(){for(var t=this.name+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return null},i.prototype.save=function(){document.cookie=this.name+"="+this.value+this.expires+"; path="+this.path},i.prototype.erase=function(){this.value="",this.hours=-1,this.expires="; expires="+i._getGMTStringForHoursAhead(this.hours),this.save()},window.WCookie=i,void 0===window.StringBuilder){var r=function(t){this.strings=new Array(""),this.append(t)};r.prototype.append=function(t){t&&this.strings.push(t)},r.prototype.clear=function(){this.strings.length=1},r.prototype.toString=function(){return this.strings.join("")},window.StringBuilder=r}String.prototype.postEncode=function(){for(var t=new r,e=this.length,n=0;n<e;n++){var i=this.charCodeAt(n).toString();i>127?(t.append("%26%23"),t.append(i),t.append("%3B")):t.append(encodeURIComponent(this.substr(n,1)))}return t.toString()},String.prototype.characterEscape=function(){for(var t=new r,e=this.length,n=0;n<e;n++){var i=this.charCodeAt(n).toString();i>127?(t.append("&#"),t.append(i),t.append(";")):t.append(this.substr(n,1))}return t.toString()},window.WForm={postEncode:function(e){return t(e).serializeArray().map((function(t,e){return null==e?null:jQuery.isArray(e)?jQuery.map(e,(function(t,e){return{name:t.name,value:WForm.Element.postEncode(t.value)}})):{name:e.name,value:WForm.Element.postEncode(e.value)}})).join("&")},Element:{postEncode:function(e){var n=t(e).val();return null==n?null:jQuery.isArray(n)?jQuery.map(n,(function(t,n){return{name:e.name,value:WForm.Element.postEncode(t)}})):{name:e.name,value:WForm.Element.postEncode(n)}}}},window.addEvent=function(e,n,i){t(e).bind(n,i)},window.cancelDefaultEvents=function(t){t.preventDefault&&t.preventDefault(),t.returnValue=!1},window.sbrToAbsoluteUrl=function(t){var e=t;if(e.indexOf(":")<0){var n=""+window.location.href,i=document.getElementsByTagName("base");i.length>0&&(n=i[0].href),e.startsWith("//")?e=n.substring(0,n.indexOf(":")+1)+e:(0===e.indexOf("/")&&(e=e.substring(1),n=n.substring(0,n.indexOf("/",7))),"/"!==n.charAt(n.length-1)&&(n+="/"),e=n+e)}return e},window.Url||(window.Url={}),
window.Url.unparam=function(t,e){if(void 0===t||null==t)return{};var n=t.trim().match(/([^?#]*)(#.*)?$/);if(!n)return{};for(var i={},r=n[1].split(e||"&"),o=0;o<r.length;o++){var s=r[o].split("=",2);i[decodeURIComponent(s[0])]=2===s.length?decodeURIComponent(s[1]):null}return i},void 0===window.Event&&(window.Event={}),window.Event.onDOMReady=t.proxy(t(document).ready,t(document))}(jQuery),void 0===window.Modernizr&&(window.Modernizr={}),"function"!=typeof window.Modernizr.mq){var Ot=window.matchMedia||window.msMatchMedia||function(){return!1};window.Modernizr.mq=function(t){var e=Ot(t);return e&&e.matches||!1}}var It;window.jQuery((function(t){const e=t("#main");var n=t("#sb-edit-link"),i=n.children(".sb-edit-link");n.data("href",i.attr("href")),i.attr("href","#").css("cursor","pointer"),n.on("dblclick click",(function(e){if("dblclick"===e.type||n.hasClass("open")&&!t(e.target).closest("ul").hasClass("dropdown-menu"))return window.location.href=n.data("href"),!1}));t(window).on("id7:reflow",(function(e,n){"xs"===n.name?(t(".id7-current-site-link.visible-xs-inline a").attr("accesskey","1"),t(".id7-current-site-link.hidden-xs a").removeAttr("accesskey")):(t(".id7-current-site-link.hidden-xs a").attr("accesskey","1"),t(".id7-current-site-link.visible-xs-inline a").removeAttr("accesskey"))})),t(".id7-header-text h1 > span").each((function(){var e=t(this),n=e.data("short-title");e.removeData("shortTitle").removeAttr("data-short-title").clone().addClass("visible-xs-inline").insertBefore(e).children("a, span").html(n),e.addClass("hidden-xs")})),t(".id7-utility-bar a").each((function(){this.hide=t.noop})),t(".id7-utility-bar li").each((function(){this.hide=t.noop}));var r=t("body");if(r.on("click",(function(e){var n=t(e.target);0===n.closest('[data-toggle="popover"]').length&&0===n.closest(".popover").length&&t('[data-toggle="popover"]').popover("hide")})).on("show.bs.popover",(function(){r.hasClass("popover-open")||r.addClass("popover-open")})).on("hide.bs.popover",(function(){r.removeClass("popover-open")})),void 0!==typeof t.fn.tooltip.Constructor){var o=t.fn.tooltip.Constructor?.DEFAULTS?.whiteList;o&&(o.a.push(/^data-[\w-]+/),o.table=["border","role","align","style"],o.tr=[],o.td=["colspan","rowspan","style","align","valign"],o.tbody=[],o.thead=[],o.span=["class","category"],o.time=["class","title"])}e.find(".new-window-link").each(((e,n)=>{"true"!==t(n).attr("aria-hidden")&&t(n).attr("aria-hidden","true").after('<span class="sr-only">Link opens in a new window</span>')}))})),function(t){window.CtrlAltShortcuts={E:function(e){t("#edit-tool-container").length>0&&0==t("#edit-tool-container:visible").length&&t("#edit-link").mouseenter()}},t((function(){t(document).keydown((function(t){var e=String.fromCharCode(t.which),n=t.altKey;t.ctrlKey&&n&&CtrlAltShortcuts[e]&&(t.preventDefault(),CtrlAltShortcuts[e](t))}))}))}(jQuery),function(t){window.ButtonPlayer=function(e,n){var i="",r="",o="",s=!1,a=0;function u(t){var e="",n=a;return jQuery.each(new Array("s","m","h"),(function(i,r){if(v=t%60,e=(v<10?"0":"")+Math.floor(v)+r+" "+e,t=(t-v)/60,--n<=0)return!1})),e}t("main").length>0&&(i='<button class="btn btn-default" aria-label="Play"><i class="fa fa-play fa-lg fa-fw" aria-hidden="true"></i></button>',r='<button class="btn btn-default active" aria-label="Pause"><i class="fa fa-pause fa-lg fa-fw" aria-hidden="true"></i></button>',o='<button class="btn btn-default" aria-label="Rewind"><i class="fa fa-fast-backward fa-fw" aria-hidden="true"></i></button>',s=!0),this.$container=t("#"+n),s&&this.$container.append('<button style="width:0; display: none;" class="btn btn-default time-indicator"><span class="time-elapsed"></span><span class="time-duration"></span></button>'),this.basename=e.getBasename(),this.$container.attr("title",this.basename+" | Click to play"),this.$container.addClass("buttonPlayer"),this.$playButton=t('<div class="play button"><div class="glyph">'+i+"</div></div>"),this.$container.append(this.$playButton),
this.$pauseButton=t('<div class="pause button"><div class="glyph">'+r+"</div></div>"),this.$container.append(this.$pauseButton),this.$progressContainer=t('<div class="progressContainer" />'),this.$container.append(this.$progressContainer),this.$progressLoading=t('<div class="progressLoading" />'),this.$progress=t('<div class="progress" />'),this.$progressLoading.append(this.$progress),this.$progressContainer.append(this.$progressLoading),this.$stopButton=t('<div class="stop button"><div class="glyph">'+o+"</div></div>"),this.$container.append(this.$stopButton),this.$pauseButton.hide(),this.audio=e,this.duration=null,this.executor=null,this.$playButton.click(t.proxy((function(){this.$playButton.hide(),this.$pauseButton.show(),this.audio.play(),null==this.executor&&(this.executor=setTimeout(t.proxy((function(){var t=this.audio.a,e=0;t.buffered.length>0&&(e=parseInt(t.buffered.end(0)/t.duration*100)),this.$progressLoading.css({width:e+"%"})}),this),400),this.$pauseButton.click(t.proxy((function(){this.$pauseButton.hide(),this.$playButton.show(),this.audio.pause()}),this)),this.$stopButton.click(t.proxy((function(){this.$pauseButton.hide(),this.$playButton.show(),this.audio.stop(),clearTimeout(this.executor)}),this)),this.audio.observeEnd(t.proxy((function(){this.$pauseButton.hide(),this.$playButton.show(),this.$progress.css({width:"0%"}),clearTimeout(this.executor)}),this)),this.audio.observeDurationchange(t.proxy((function(t){if(this.duration=t,NaN!=t&&t!=1/0){var e=parseInt(t),n="";jQuery.each(new Array("s","m","h"),(function(t,i){if(v=e%60,n=""+v+i+" "+n,e=(e-v)/60,a++,e<=0)return!1})),this.$container.attr("title",this.basename+" | Duration: "+n),s&&(this.$container.find(".time-elapsed").text(u(0)),this.$container.find(".time-duration").text("/"+n),this.$container.find(".time-indicator").css({display:"block"}).animate({width:38*a*2},850))}}),this)),this.audio.observeTimeupdate(t.proxy((function(t){if(null!=this.duration){s&&this.$container.find(".time-elapsed").text(u(t));var e=100*t/this.duration;this.$progress.css({width:e+"%"})}}),this)))}),this))},window.LongPlayer=function(t,e){var n=jQuery;this.$container=n("#"+e),this.$container.addClass("longPlayer"),this.added=!1;var i=n('<div class="clicktoplay"><div class="playicon"></div></div>');this.$container.append(i),i.click(n.proxy((function(e){i.hide(),this.added||t.addSelf(this.$container),t.a.controls=!0,t.play()}),this))};var e=function(t){this.delayedSrc=t};e.prototype.lazyInit=function(){this.a||(this.a=document.createElement("audio"),this.delayedSrc&&(this.a.src=this.delayedSrc,this.delayedSrc=null))},e.prototype.play=function(){this.lazyInit(),this.a.play()},e.prototype.getBasename=function(){var t=this.delayedSrc||this.a.src,e=t.lastIndexOf("/");return e>-1&&e<t.length&&(t=t.substring(e+1)),t},e.prototype.pause=function(){this.lazyInit(),this.a.pause()},e.prototype.stop=function(){this.a.pause(),this.a.currentTime=0},e.prototype.seek=function(t){this.lazyInit(),this.a.currentTime=t},e.prototype.observeTimeupdate=function(e){t(this.a).bind("timeupdate",t.proxy((function(){e(this.a.currentTime)}),this))},e.prototype.observeDurationchange=function(e){t(this.a).bind("durationchange",t.proxy((function(){e(this.a.duration)}),this))},e.prototype.observeEnd=function(e){t(this.a).bind("ended",e),t(this.a).bind("timeupdate",t.proxy((function(){this.a.currentTime==this.a.duration&&e()}),this))},e.prototype.addSelf=function(t){this.lazyInit(),t.append(this.a)},e.canPlayType=function(t){var e=document.createElement("audio"),n=navigator.userAgent;return!(n.match(/Windows.+Safari/)&&!n.match(/Chrome/)||!e.canPlayType||!e.canPlayType(t).replace(/no/,""))},e.canPlayMp3=function(){return e.canPlayType("audio/mpeg;")},window.NativeAudio=e}(jQuery),function(t){t((function(){t("html").on("click",".glossaryDefinition",(function(e){var n=t(this);e.preventDefault(),e.stopPropagation(),n.attr("aria-describedby")?n.popover("hide"):t.get("/sitebuilder2/api/ajax/glossary.html",{
page:n.data("page"),term:n.data("term"),rn:Math.round(1e4*Math.random())}).done((function(t){n.popover({placement:"bottom",trigger:"manual",content:t,html:!0,template:'<div class="popover" role="tooltip"><div class="arrow"></div><div class="popover-content"></div></div>'}),n.popover("show")}))}))}))}(jQuery),document.addEventListener("DOMContentLoaded",(function(){It={tables:{},init:function(){const t=document.querySelectorAll("table.sitebuilder_sortable");var e;for(e=0;e<t.length;e+=1)t[e].id||(t[e].id="sortableTable_"+Math.floor(1e5*Math.random())),It.tables[t[e].id]=new f(t[e])}};const t=/^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/,e=/^\(?([\d\.]+)\s([KM]B)\)?$/,n=new RegExp("(£|&pound;)","g"),i={};function r(t,e,n){const i=o(t),r=a(t.cells[i]),s=a(e.cells[i]),u=l(r,n),c=l(s,n);return u.parsedSuccessfully&&c.parsedSuccessfully?u.fullDate===c.fullDate?0:u.fullDate<c.fullDate?-1:1:-1}function o(t){return u(t,"table").dataset.sortColumn}function s(t,e){var n=parseFloat(t);n=n!=n?0:n;var i=parseFloat(e);return n-(i=i!=i?0:i)}function a(t){return t.innerText.trim()}function u(t,e){return null===t?null:t.nodeType===Node.ELEMENT_NODE&&t.tagName.toLowerCase()===e.toLowerCase()?t:u(t.parentNode,e)}function l(e,n){const i=e.match(t);if(null===i)return{parsedSuccessfully:!1};const r=n?i[2]:i[1],o=n?i[1]:i[2],s=i[3];return{parsedSuccessfully:!0,year:s,day:1===r.length?"0"+r:r,month:1===o.length?"0"+o:o,fullDate:s+o+r}}function c(t){const n=t.match(e);return n?"MB"===n[2].toUpperCase()?1024*n[1]*1024:1024*n[1]:0}function f(t){var e;this.table=t;const n=this;if(t.rows&&0!==t.rows.length)for(this.firstRow=t.rows[0],this.columnTitles=[],e=0;e<this.firstRow.cells.length;e+=1){const t=this.firstRow.cells[e];if(t.classList.contains("sortable")){const i=a(t),r=t.title?t.title:i,o=document.createElement("a");this.columnTitles.push(i),o.href="javascript:void(0);",o.className="sortheader",o.dataset.column=e,o.addEventListener("click",(function(t){t.preventDefault(),n.sort(o)})),o.innerHTML=i+'<span class="sr-only">Select to sort  <span class="sort-direction-text">(ascending)</span></span>',o.dataset.sortType=this.determineSorterForColumn(e),o.setAttribute("role","button"),t.title="Select to sort by "+r.toLowerCase(),t.innerHTML="",t.appendChild(o),this.ariaAnnouncer=document.createElement("div"),this.ariaAnnouncer.className="sr-only",this.ariaAnnouncer.setAttribute("aria-live","polite"),document.body.appendChild(this.ariaAnnouncer)}}}i.caseInsensitive=function(t,e){const n=o(t),i=a(t.cells[n]).toLowerCase(),r=a(e.cells[n]).toLowerCase();return i===r?0:i<r?-1:1},i.numeric=function(t,e){const n=o(t);return s(a(t.cells[n]),a(e.cells[n]))},i.pounds=function(t,e){const i=o(t);return s(a(t.cells[i]).replace(n,"").replace(",",""),a(e.cells[i]).replace(n,"").replace(",",""))},i.ddmm=function(t,e){return r(t,e,!1)},i.mmdd=function(t,e){return r(t,e,!0)},i.filesize=function(t,e){const n=o(t),i=a(t.cells[n]),r=a(e.cells[n]);return s(c(i),c(r))},f.prototype.sort=function(t){if(this.table.rows.length<=1)return;const e=t.querySelector("span.sort-direction-text"),n=t.dataset.column,r=i[t.dataset.sortType],o=Array.prototype.slice.call(this.table.querySelectorAll("tr")),s=this.columnTitles[n];var a;o.shift(),this.table.dataset.sortColumn=n,o.sort(r),"down"===t.dataset.sortDirection?(o.reverse(),t.dataset.sortDirection="up",t.className="sortheader sortup",e.innerText="(ascending)",this.ariaAnnouncer.innerText="Sorted by "+s+" (descending)"):(t.dataset.sortDirection="down",t.className="sortheader sortdown",e.innerText="(descending)",this.ariaAnnouncer.innerText="Sorted by "+s+" (ascending)");const l=[];for(a=0;a<o.length;a+=1)o[a].classList.contains("sortbottom")?l.push(o[a]):this.table.tBodies[0].appendChild(o[a]);for(a=0;a<l.length;a+=1)this.table.tBodies[0].appendChild(l[a]);const c=u(t,"tr").getElementsByTagName("a");for(a=0;a<c.length;a+=1)c[a]!==t&&(c[a].className="sortheader")},f.prototype.determineSorterForColumn=function(t){
const e=a(this.firstCellWithContentInColumn(t));var i="caseInsensitive";e.match(/^[\d\.]+$/)&&(i="numeric"),e.match(n)&&(i="pounds");const r=l(e,!1);return r.parsedSuccessfully&&(i=r.day>12?"ddmm":r.month>12?"mmdd":"ddmm"),this.firstRow.cells[t].classList.contains("sortable_filesize")&&(i="filesize"),i},f.prototype.firstCellWithContentInColumn=function(t){var e;for(e=1;e<this.table.rows.length;e+=1){const n=this.table.rows[e].cells[t];if(a(n))return n}},It.init(),window.SortableTables=It}));var Rt,Pt,Ft,Ht,Mt,Bt,Wt,qt,Ut,zt,Qt,Gt,Vt,Yt,Xt,Jt,Kt,Zt,te,ee,ne,ie,re,oe,se,ae,ue,le,ce='<i class="fa fa-fw fa-spin fa-spinner" aria-hidden="true"></i> Loading comments&hellip;',fe=function(t,e,n){this.url=t,this.$div=e,this.$rootList=null,this.$replyTo=null,this.replyToId=null,this.$link=n,this.hideDeletedComments=null,fe.C||(fe.C={PERMA_REGEX:/^#c([0-9a-f]){16,32}$/,URL:"/sitebuilder2/api/comment"},fe.L={LOADING:ce,DENIED_MESSAGE:'<span class="permission_denied">You do not have permission to view these comments.</span>',FAILED_MESSAGE:'<span class="error_unknown">Sorry, there was a problem loading comments.</span>',REPLY_HEADING:"Reply to comment"})};function pe(){if(Pt)return Rt;return Pt=1,Rt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function he(){if(Bt)return Mt;Bt=1;var t=function(){if(Ht)return Ft;Ht=1;var t="object"==typeof p&&p&&p.Object===Object&&p;return Ft=t}(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Mt=n}function de(){if(Gt)return Qt;Gt=1;var t=function(){if(zt)return Ut;zt=1;var t=/\s/;return Ut=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}}(),e=/^\s+/;return Qt=function(n){return n?n.slice(0,t(n)+1).replace(e,""):n}}function ve(){if(Yt)return Vt;Yt=1;var t=he().Symbol;return Vt=t}function ge(){if(ee)return te;ee=1;var t=ve(),e=function(){if(Jt)return Xt;Jt=1;var t=ve(),e=Object.prototype,n=e.hasOwnProperty,i=e.toString,r=t?t.toStringTag:void 0;return Xt=function(t){var e=n.call(t,r),o=t[r];try{t[r]=void 0;var s=!0}catch(t){}var a=i.call(t);return s&&(e?t[r]=o:delete t[r]),a}}(),n=function(){if(Zt)return Kt;Zt=1;var t=Object.prototype.toString;return Kt=function(e){return t.call(e)}}(),i=t?t.toStringTag:void 0;return te=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?e(t):n(t)}}function me(){if(oe)return re;oe=1;var t=ge(),e=ie?ne:(ie=1,ne=function(t){return null!=t&&"object"==typeof t});return re=function(n){return"symbol"==typeof n||e(n)&&"[object Symbol]"==t(n)}}fe.showPageComments=!1,jQuery((function(t){var e=t(".page-comments-container");if(e.length>0){var n=e.find(".comments-link"),i=fe.showPageComments,r={},o=Url.unparam(window.location.href);void 0!==o.comments&&(i="no"!=o.comments&&"false"!=o.comments&&"off"!=o.comments),r.waitForClick=!i,window.pageComments=fe.fromLink(n,r)}var s=t(".lightbox-comments .comments-link");s.each((function(){var e=jQuery(this),n=e.data("id");e.popover({html:!0,template:'<div class="popover comments-popover" role="tooltip"><a href="#" class="close">&times;<span class="sr-only"> Close comments popup</span></a><div class="arrow"></div><div id="popover_'+n+'" class="popover-content"></div></div>',content:ce+"\x3c!-- placeholder content mandatory for bootstrap --\x3e"}),e.on("shown.bs.popover",(function(){const i=t(this);i.data("bs.popover").tip().find(".close").on("click",(function(){i.popover("hide")})),s.not(t(this)).popover("hide");var r=new fe(e.data("url"),t("#popover_"+n),e);r.keepLink=!0,r.open()})),e.on("hide.bs.popover",(function(){e.data("bs.popover").inState.click=!1}))})),t("body").on("sitebuilder.comments.updated",(function(e,n){var i=t(e.target),r=(i.is(".popover")?i:i.closest(".popover")).data("bs.popover");if(r&&r.tip().hasClass("in")&&n&&n.refreshCount){var o=r.tip().find('.root-comments .page-comment:not([class~="deleted"]):not([class~="not-approved"])').length;r.$element.text(o+" comment"+(1==o?"":"s"))}}))})),
fe.fromLink=function(t,e){e=e||{};var n=Url.unparam(t.attr("href")).page;if(n){var i=e.divId||"commentsFor"+n.replace(/[^a-z0-9]+/g,"_"),r=jQuery("<div/>").attr("id",i),o=new fe(n,r,t),s=!!(window.location.hash||"").match(fe.C.PERMA_REGEX);return e.waitForClick&&!s&&t.length>0?t.click(jQuery.proxy((function(t){return t.preventDefault(),t.stopPropagation(),this.open(),!1}),o)):o.open(),o}},fe.decorateLinks=function(){jQuery(".comments-link").each((function(t,e){fe.fromLink(jQuery(e))}))},fe.prototype={init:function(){this._loadingMessage(),jQuery.ajax({url:fe.C.URL,data:this.params({page:this.url,random:this._rand()}),success:jQuery.proxy(this.initDone,this),error:jQuery.proxy(this.initFail,this)})},_rand:function(t){var e=(window.SitebuilderInfo||{}).lastUpdated||parseInt(999999999999999*Math.random());return new WCookie("WarwickSSO").value&&(e+="U"),e},params:function(t){return"boolean"==typeof this.hideDeletedComments&&(t.HideDeletedComments=this.hideDeletedComments),t},setHideDeletedComments:function(t){t!=this.hideDeletedComments&&(this.hideDeletedComments=t,this.init())},_loadingMessage:function(){this.$div.html(fe.L.LOADING),this.$div.trigger("sitebuilder.comments.updated")},initDone:function(t){this.$div.html(t),this.$div.trigger("sitebuilder.comments.updated",{refreshCount:!0}),(window.location.hash||"").match(fe.C.PERMA_REGEX)&&(window.location.hash=window.location.hash),this.decorateEverything(),this.initialHeading=this._getFormHolder().find("h5:first").html(),this.initialSubmitText=this._getFormHolder().find("input[name=postSubmit]")?this._getFormHolder().find("input[name=postSubmit]").val():null},initFail:function(t){403==t.status||(301==t.status||302==t.status)&&t.getResponseHeader("Location").indexOf("websignon")>-1?this.$div.html(fe.L.DENIED_MESSAGE):this.$div.html(fe.L.FAILED_MESSAGE),this.$div.trigger("sitebuilder.comments.updated")},_paramsToObject:function(t){for(var e={},n=0;n<t.length;n++)e[t[n].name]=t[n].value;return e},previewClick:function(t){var e=t.target;const n=this._paramsToObject(jQuery(e).closest("form").serializeArray());n.previewSubmit="Preview",delete n.postSubmit,jQuery.ajax({type:"POST",url:fe.C.URL,data:jQuery.param(n),success:jQuery.proxy((function(t){var e=t,n=this.$div.find(".previewContainer"),i=jQuery('<div class="well"></div>');i.html(e),jQuery(n).html(i).prepend("<h5>Preview</h5>"),this.$div.trigger("sitebuilder.comments.updated")}),this)}),t.preventDefault(),t.stopPropagation()},unfollowClick:function(t){var e=t.target;params=jQuery(e).closest("form").serialize(),jQuery.ajax({url:fe.C.URL,type:"POST",data:params,success:jQuery.proxy((function(t){this.$div.html(t),this.$div.trigger("sitebuilder.comments.updated",{refreshCount:!0}),this.decorateEverything()}),this)}),t.preventDefault(),t.stopPropagation()},decorateForm:function(){this.$div.find("input[name=previewSubmit]").length>0&&this.$div.find("input[name=previewSubmit]").click(jQuery.proxy(this.previewClick,this));var t=this.$div.find("input[name=postSubmit]");t.length>0&&(jQuery(t).removeAttr("disabled"),jQuery(t).click(jQuery.proxy(this.submitClick,this)));var e=this.$div.find("input[name=unfollowSubmit]");e.length>0&&e.click(jQuery.proxy(this.unfollowClick,this)),this._reassignFormTabindex()},resetForm:function(){var t=this._getForm();if(t.length>0){var e=this._getFormHolder();t.find("textarea").val(""),this.$div.find(".previewContainer").html(""),this.$div.trigger("sitebuilder.comments.updated"),jQuery(t.find("input[name=postSubmit]")).removeAttr("disabled"),t.find(".user_error").remove(),t.find("input[name=commentId]").remove(),e.find(".editReplyText").remove(),e.find("h5:first").html(this.initialHeading),e.find("input[name=postSubmit]").val(this.initialSubmitText)}this.resetFlags()},resetFlags:function(){this.$editing=null,this.editingId=null,this.$replyTo=null,this.replyToId=null},decorateListWithin:function(t){this.$rootList=this.$div.find("ul"),t.length>0&&(t.find("a.reply-comment").each(jQuery.proxy((function(t,e){
var n=jQuery(e),i=Url.unparam(n.attr("href")).replyTo;n.click(jQuery.proxy((function(t){return t.preventDefault(),t.stopPropagation(),i!=this.replyToId&&(this.resetForm(),this.$replyTo=jQuery("#pageComment_"+i).closest("li"),this.replyToId=i,this.$replyTo.append(this._getFormHolder()),this._getFormHolder().find("h2").html(fe.L.REPLY_HEADING),this.$div.trigger("sitebuilder.comments.updated")),!1}),this))}),this)),t.find("a.permalink").each(jQuery.proxy((function(t,e){var n=jQuery(e),i=n.attr("href").match(/#(.+)/)[1];i&&n.click(jQuery.proxy((function(t){return t.preventDefault(),t.stopPropagation(),window.location.hash=i,!1}),this))}),this))),this._replaceClick(t,"a.delete-comment",!0,(function(t,e){var n="Are you sure you want to delete this comment? ",i=jQuery(t.target).closest("li").find("li").length;1==i?n+=" one reply will also be deleted.":i>1&&(n+=i+" replies will also be deleted."),confirm(n)&&this.deleteComment(e)})),this._replaceClick(t,"a.approve-comment",!0,(function(t,e){confirm("Are you sure you want to approve this comment?")&&this.approveComment(e)})),this._replaceClick(t,"a.show-deleted-comments",!1,(function(){this.setHideDeletedComments(!1)})),this._replaceClick(t,"a.hide-deleted-comments",!1,(function(){this.setHideDeletedComments(!0)})),this._replaceClick(this.$div,"a.edit-comment",!0,(function(t,e){e!=this.editingId&&(this.resetForm(),this.$editing=jQuery(t.target).closest("li"),this.editingId=e,jQuery.ajax({url:fe.C.URL,type:"GET",data:jQuery.param({commentId:e,random:this._rand(!0),page:this._getForm()?this._getForm().find("input[name=page]").val():""}),success:jQuery.proxy((function(t){this._getFormHolder().html(t),this._getFormHolder().find(".cancelEditingLink").remove(),this.decorateForm(),this.$editing.append(this._getFormHolder());var e=this.$editing.find("ul");e.length>0&&this.$editing.append(e),this.$div.trigger("sitebuilder.comments.updated")}),this)}))}))},_replaceClick:function(t,e,n,i){t.length>0&&t.find(e).each(jQuery.proxy((function(t,e){var r=jQuery(e),o=null;if(n){var s=r.closest(".page-comment");o=this._commentIdFromDiv(s)}r.click(jQuery.proxy((function(t){return t.preventDefault(),t.stopPropagation(),jQuery.proxy(i,this)(t,o),!1}),this))}),this))},decorateList:function(){this.decorateListWithin(this.$div)},decorateEverything:function(){this.decorateList(),this.decorateForm()},deleteComment:function(t){jQuery.ajax({url:fe.C.URL,type:"post",data:jQuery.param(this.params({action:"delete",commentId:t,page:this._getForm().find("input[name=page]").val()})),success:jQuery.proxy(this.onDeleteSuccess,this),error:jQuery.proxy(this.onDeleteFailure,this)})},onDeleteSuccess:function(t){this.$div.html(t),this.$div.trigger("sitebuilder.comments.updated",{refreshCount:!0}),this.decorateEverything()},onDeleteFailure:function(t){},approveComment:function(t){jQuery.ajax({url:fe.C.URL,type:"post",data:jQuery.param({action:"approve",commentId:t,page:this._getForm().find("input[name=page]").val()}),success:jQuery.proxy(this.onApproveSuccess,this),error:jQuery.proxy(this.onApproveFailure,this)})},onApproveSuccess:function(t){this.$div.html(t),this.$div.trigger("sitebuilder.comments.updated",{refreshCount:!0}),this.decorateEverything()},onApproveFailure:function(t){},submitClick:function(t){t.preventDefault(),t.stopPropagation();var e=t.target;jQuery(e).attr("disabled","disabled");var n=this._paramsToObject(this._getForm().serializeArray());return n.postSubmit="Submit",delete n.previewSubmit,this.replyToId&&(n.replyTo=this.replyToId),jQuery.ajax({url:fe.C.URL,type:"post",data:jQuery.param(n),success:jQuery.proxy(this.onSubmitSuccess,this),error:jQuery.proxy(this.onSubmitFailure,this)}),!1},onSubmitSuccess:function(t){-1!=t.indexOf("user_error")?(this._getFormHolder().html(t),this.decorateForm()):(this.$div.html(t),this.$div.trigger("sitebuilder.comments.updated",{refreshCount:!0}),this.decorateEverything(),this.resetFlags())},onSubmitFailure:function(t){this._getFormHolder().html(t),this.decorateForm()},
open:function(){this.$link.length>0&&!this.keepLink&&this.$link.replaceWith(this.$div),this.init()},resetFormPosition:function(){this._insertAfter(this._getListHolder(),this._getFormHolder())},_commentIdFromDiv:function(t){return t.attr("id").substring(12)},_greatestTabindex:function(){var t=0;return jQuery("[tabindex]").each((function(e,n){t=Math.max(t,jQuery(n).attr("tabindex"))})),t},_reassignFormTabindex:function(){var t=this._greatestTabindex();this._getForm().length>0&&this._getForm().find("[tabindex]").each((function(e,n){jQuery(n).attr("tabindex",++t)}))},_getForm:function(){return this.$div.find("form")},_getFormHolder:function(){return this.$div.find(".comment_form_holder")},_getListHolder:function(){return this.$div.find(".comment_list_holder")},_insertAfter:function(t,e){t.parentNode.insertBefore(e,t.nextSibling)}},window.Comments=fe,jQuery((function(t){t(".mapLink").on("click",(function(e){const n=t(this),i=n.data("location"),r=n.data("mapv2");if(e.preventDefault(),e.stopPropagation(),i&&!n.attr("aria-describedby")){const t=n.data("slid"),e=n.data("location-id");let o=r?`/sitebuilder2/api/campus_map/location/${encodeURIComponent(e)}`:`/sitebuilder2/api/campus_map/slid/${encodeURIComponent(i)}`;r||null==t||(o=o+"?slid="+encodeURIComponent(t)),window.open(o,"_blank")}}))})),window.twitterList=function(){var t,e,n,i,r,o,s,a=function(){return e},u=function(){return r},l=function(){return o},c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=["Sun","Mon","Tue","Wed","Thurs","Fri","Sat"],p=0,h=this,d=function(t){var e=t.split(" "),n=e[3].split(":"),i=new Date(e[5],function(t){var e;for(e=0;e<c.length;e++)if(c[e]==t)return e}(e[1]),e[2],n[0],n[1],n[2],0);i.setMinutes(i.getMinutes()-i.getTimezoneOffset());var r=new Date,o="th",s=i.getDate();11!=s&&12!=s&&13!=s&&(s>9&&(s%=10),1==s&&(o="st"),2==s&&(o="nd"),3==s&&(o="rd"));var a=!0,u=i.getHours(),l=i.getMinutes();l=(l<10?"0":"")+l,u>12?(a=!1,u-=12):12==u?a=!1:0==u&&(u=12);var p=a?"am":"pm";r.setHours(0,0,0,0),i.setHours(0,0,0,0);var h=Math.floor((r-i)/864e5);return(0==h?"Today":1==h?"Yesterday":f[i.getDay()]+" "+i.getDate()+o+" "+c[i.getMonth()]+" "+i.getFullYear())+", "+u+":"+l+p},v=function(t,e){var n={};return jQuery.each(t||[],(function(t,i){n[e(i)]=i})),n},g=function(e){var n=e.text;if(e.entities){var i=v(e.entities.hashtags,(function(t){return t.text})),r=v(e.entities.urls,(function(t){return t.url})),o=v(e.entities.user_mentions,(function(t){return t.screen_name}));jQuery.each(i,(function(t,e){n=n.replace(new RegExp("#"+e.text,"g"),"<a target='_blank' title='Search for "+e.text+" on X' href='http://www.twitter.com/search?q="+e.text+"'>#"+e.text+"</a>")})),jQuery.each(r,(function(t,e){n=n.replace(new RegExp(e.url,"g"),"<a target='_blank' title='Link opens in a new window' href='"+e.url+"'>"+e.url+"</a>")}));jQuery.each(o,(function(t,e){n=n.replace(new RegExp("@"+e.screen_name+"([^a-z0-9_]|$)","ig"),"<a target='_blank' title='Read @"+e.screen_name+"&#39;s tweets on X' href='http://www.twitter.com/"+e.screen_name+"'>@"+e.screen_name+"</a>$1")}))}var a=d(e.created_at);return n='<div class="tweet"><p class="tweet-text">'+n+'</p><span class="date-posted"><a href="https://twitter.com/'+t+"/statuses/"+e.id_str+'" title="Read this tweet on X">'+a+"</a></span>","plaintext"!=s&&(n=n+'<span class="tweet-actions"><a href="https://twitter.com/intent/tweet?in_reply_to='+e.id_str+'" class="tweet-reply"><i class="fa fa-fw fa-reply"></i><span class="action">Reply</span></a><a href="https://twitter.com/intent/retweet?tweet_id='+e.id_str+'" class="tweet-retweet"><i class="fa fa-fw fa-retweet"></i><span class="action">Retweet</span></a><a href="https://twitter.com/intent/favorite?tweet_id='+e.id_str+'" class="tweet-fav"><i class="fa fa-fw fa-star-o"></i><span class="action">Favorite</span></a></span>'),n+="</div>"},m=function(){if(a()){var t="/sitebuilder2/api/twitter_timeline.json?account="+encodeURIComponent(a())
;t+="&count="+(u()+20)+"&include_entities=true&include_rts="+n+"&exclude_replies="+(i?"false":"true")+"&callback=?",jQuery.getJSON(t,(function(t){var e=0;jQuery.each(t,(function(t,n){if(e<u()){var i=g(n);jQuery("#twitter-container-"+l()).append(i),e+=1}}));var n=t[0].user,i=jQuery("<img />").attr("src",n.profile_image_url_https||n.profile_image_url).attr("alt",n.name);jQuery(i).appendTo("#twitter-container-"+l()+" .twitter-image-link"),jQuery("#twitter-container-"+l()+" .twitter-name").prepend(t[0].user.name)}))}else"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Can't call Twitter API without encrypted account name!")};return{init:function(a,u,l,c,f,p,h){t=a,n=u,r=l,o=c,s=f,e=p,i=h,void 0!==window.twitterLoaded&&!0===window.twitterLoaded[c]||(m(),void 0===window.twitterLoaded&&(window.twitterLoaded=[]),window.twitterLoaded[c]=!0)},pgetJSON:function(t,e){var n=document.createElement("script"),i="__jsonp"+p;h[i]=e,n.src=t.replace(/\?(&|$)/,"__jsonp"+p+"$1"),n.onload=function(){n.remove(),n=null,delete h[i]},undefined.appendChild(n),p++},_transformItem:g,_parseDate:d}},window.WPopupBox=function(){this.anchor=null,this.options={placement:"bottom",html:!0,content:'<i class="fa fa-spin fa-spinner" aria-hidden="true"> Loading...</i>',template:'<div class="popover role="tooltip"><div class="arrow"></div><div class="popover-content"></div></div>'},this.positionAbove=function(t){this.options.placement="top",this.showPopover(t)},this.positionBelow=function(t){this.options.placement="bottom",this.showPopover(t)},this.positionRight=function(t){this.options.placement="right",this.showPopover(t)},this.show=function(){this.anchor&&this.anchor.popover("show")},this.hide=function(){this.anchor&&this.anchor.popover("hide")},this.setContent=function(t){this.anchor&&(this.options.content=t,this.anchor.data("bs.popover").options.content=t,this.anchor.popover("show"))},this.setSize=function(t,e){this.anchor&&(this.anchor.data("bs.popover").tip().find(".popover-content").css({width:t+"px",height:e+"px","max-width":t+"px","max-height":e+"px","overflow-y":"scroll"}),this.anchor.popover("show"))},this.showPopover=function(t){jQuery(t).length&&(t.hide=jQuery.noop,this.anchor=jQuery(t),this.anchor=jQuery(t),this.anchor.popover(this.options),this.anchor.popover("show"))}},function(t){t(window).on("load",(function(){t("body").append('\n          <dialog id="image-modal" class="image-modal maximised">\n            <div class="dialog-content">\n              <div class="dialog-header">\n                 <h2 class="dialog-title"></h2>\n                 <div class="dialog-header-buttons">\n                    <button type="button" class="dialog-close" title="Close">\n                        <i class="far fa-times fa-2x" aria-hidden="true"></i>\n                    </button>\n                </div>\n              </div>\n              <div class="dialog-body"></div>\n              <div class="dialog-footer"></div>\n            </div>\n          </dialog>\n        '),t(document).on("sitebuilder.initLightbox",(function(){const e=t("#image-modal");new SiteBuilderDialog(e[0]);const n=e.find(".dialog-body"),i=e.find(".dialog-title"),r=e.find(".dialog-footer"),o=e.find(".dialog-close"),s=e.find(".dialog-content"),a=t('<i class="image-controls left fa fa-chevron-left fa-2x"></i>'),u=t('<i class="image-controls right fa fa-chevron-right fa-2x"></i>');s.append(a),s.append(u);const l=t(".id7-main-content-area a[rel^=lightbox]"),c=[],f=[];let p=0,h=0;function d(){p>0&&a.show(),p<c.length&&u.show(),0===p&&a.hide(),p===c.length-1&&u.hide()}function v(){f.length>0&&(p>0&&""===f[p-1]&&(f[p-1]=new Image,g(p-1)),p<c.length&&""===f[p+1]&&(f[p+1]=new Image,g(p+1)),n.html('<i class="fa fa-spinner fa-pulse fa-2x"></i>'),i.html("&nbsp;"),r.html("&nbsp;"),""!==f[p]&&f[p].complete?m():(f[p]=new Image,f[p].onload=function(){m()}),g(p))}function g(e){if(""===f[e].src){f[e].onerror=function(){f[e].width=.2*t(window).width(),f[e].height=.2*t(window).height(),
e===p&&m()};const n=c[e].parents("a[rel^=lightbox]").attr("href");let i;i=n&&"#"!==n?n.split("?"):c[e].attr("src").split("?");let r=[];i.length>1&&(r=t.grep(i[1].split("&"),(function(t){return"maxWidth"!==t.split("=")[0]&&"maxHeight"!==t.split("=")[0]}))),f[e].src=i[0]+"?"+r.join("&")}}function m(){const o=f[p],s=c[p],a=s.closest("a"),u=function(t,e,n){const i={width:t,height:e},r=n.width/n.height,o=t/n.width,s=e/n.height;return s<o?i.width=e*r:s!==o&&(i.height=t/r),i}(Math.min(.9*t(window).width()-60,o.width),Math.min(.9*t(window).height()-150,o.height),o);h=Math.max(u.width,h),e.css({width:h+60}),i.text(s.attr("title")||s.attr("alt")),r.html(a.attr("title")||s.attr("alt")),n.html(f[p])}t.each(l,(function(e,n){t(n).data("imgIndex",e),c[e]=t(n).find("img"),f[e]=""})),a.click((function(){0!==p&&(p--,d(),v())})),u.click((function(){p!==c.length-1&&(p++,d(),v())})),t(document).keydown((function(t){switch(t.which){case 27:o.trigger("click");break;case 37:a.trigger("click");break;case 39:u.trigger("click")}})),l.on("click",(function(n){n.preventDefault(),n.stopPropagation(),p=t(this).data("imgIndex"),v(),d(),e[0].showModal()}))})),t(document).trigger("sitebuilder.initLightbox")}))}(jQuery);var ye=function(){if(le)return ue;le=1;var t=pe(),e=function(){if(qt)return Wt;qt=1;var t=he();return Wt=function(){return t.Date.now()}}(),n=function(){if(ae)return se;ae=1;var t=de(),e=pe(),n=me(),i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return se=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(e(a)){var u="function"==typeof a.valueOf?a.valueOf():a;a=e(u)?u+"":u}if("string"!=typeof a)return 0===a?a:+a;a=t(a);var l=r.test(a);return l||o.test(a)?s(a.slice(2),l?2:8):i.test(a)?NaN:+a}}(),i=Math.max,r=Math.min;return ue=function(o,s,a){var u,l,c,f,p,h,d=0,v=!1,g=!1,m=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function y(t){var e=u,n=l;return u=l=void 0,d=t,f=o.apply(n,e)}function w(t){var e=t-h;return void 0===h||e>=s||e<0||g&&t-d>=c}function b(){var t=e();if(w(t))return x(t);p=setTimeout(b,function(t){var e=s-(t-h);return g?r(e,c-(t-d)):e}(t))}function x(t){return p=void 0,m&&u?y(t):(u=l=void 0,f)}function _(){var t=e(),n=w(t);if(u=arguments,l=this,h=t,n){if(void 0===p)return function(t){return d=t,p=setTimeout(b,s),v?y(t):f}(h);if(g)return clearTimeout(p),p=setTimeout(b,s),y(h)}return void 0===p&&(p=setTimeout(b,s)),f}return s=n(s)||0,t(a)&&(v=!!a.leading,c=(g="maxWait"in a)?i(n(a.maxWait)||0,s):c,m="trailing"in a?!!a.trailing:m),_.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},_.flush=function(){return void 0===p?f:x(e())},_},ue}(),we=h(ye);f.box("ID7 render bundle"),window._={debounce:we},b.fn.doubleScroll=function(){return this},window.moment=function(){return{format:()=>""}}}();//# sourceMappingURL=id7-bundle-render.js.map
