1function nextImage(e){showImage(index+=e)}function currentImage(e){showImage(index=e)}function showImage(e){var t=$(".gallery .image"),n=$(".gallery-thumbnail"),i=$(".caption");e>t.length&&(index=1),e<1&&(index=t.length),n.removeClass("active"),n.eq(index-1).addClass("active"),t.css("display","none"),t.eq(index-1).css("display","block"),i.html(n.eq(index-1).find("img").data("caption"))}function toggleSimpleGalleryImage(e){const t=e.closest("button"),n=t.closest('[data-component="simple-gallery"]');stopSimpleGalleryAutoplay(n),toggleSimpleGalleryImageInGallery(n,t.dataset.direction)}function toggleSimpleGalleryImageInGallery(e,t){if(!e)return;const n=e.querySelectorAll(".simple-gallery__item"),i=e.querySelector(".simple-gallery__item.active");if(!i||n.length<=1)return;const o=findNextSimpleGalleryMediaItem([...n].findIndex((e=>e.classList.contains("active"))),n,t);i.classList.remove("active"),o.classList.add("active"),autoPlaySimpleGalleryVideo(o)}function findNextSimpleGalleryMediaItem(e,t,n){return"previous"===n?0===e?t[t.length-1]:t[e-1]:e===t.length-1?t[0]:t[e+1]}function autoPlaySimpleGalleryVideo(e){if(!e)return;const t=e.querySelector("video");t&&t.play()}function startSimpleGalleryAutoplay(e){if(!e)return;if(e.querySelectorAll(".simple-gallery__item").length<=1)return;simpleGalleryAutoplayState.get(e)||(simpleGalleryAutoplayState.set(e,{timerId:null,lastStartAtMs:null,remainingMs:SIMPLE_GALLERY_AUTOPLAY_DELAY_MS,stopped:!1}),scheduleSimpleGalleryAutoplay(e))}function scheduleSimpleGalleryAutoplay(e){const t=simpleGalleryAutoplayState.get(e);t&&!t.stopped&&(clearTimeout(t.timerId),t.lastStartAtMs=Date.now(),t.timerId=setTimeout((()=>{const t=simpleGalleryAutoplayState.get(e);t&&!t.stopped&&(t.remainingMs=SIMPLE_GALLERY_AUTOPLAY_DELAY_MS,toggleSimpleGalleryImageInGallery(e,"next"),scheduleSimpleGalleryAutoplay(e))}),t.remainingMs))}function pauseSimpleGalleryAutoplay(e){const t=simpleGalleryAutoplayState.get(e);if(!t||t.stopped||null==t.timerId)return;clearTimeout(t.timerId),t.timerId=null;const n=Date.now()-t.lastStartAtMs;t.remainingMs=Math.max(0,t.remainingMs-n)}function resumeSimpleGalleryAutoplay(e){const t=simpleGalleryAutoplayState.get(e);t&&!t.stopped&&null==t.timerId&&(t.remainingMs<=0&&(t.remainingMs=SIMPLE_GALLERY_AUTOPLAY_DELAY_MS),scheduleSimpleGalleryAutoplay(e))}function stopSimpleGalleryAutoplay(e){const t=simpleGalleryAutoplayState.get(e);t&&(t.stopped=!0,clearTimeout(t.timerId),t.timerId=null)}function simpleGalleryHoveredActiveMedia(e,t){const n=e.querySelector(".simple-gallery__item.active");return!!n&&n.contains(t.target)}function simpleGalleryRelatedTargetWithinActiveMedia(e,t){const n=e.querySelector(".simple-gallery__item.active");return!!n&&(t.relatedTarget&&n.contains(t.relatedTarget))}function initSimpleGalleryAutoplay(e){e&&"true"!==e.dataset.autoplayInitialized&&(e.dataset.autoplayInitialized="true",e.addEventListener("mouseover",(t=>{simpleGalleryHoveredActiveMedia(e,t)&&(simpleGalleryRelatedTargetWithinActiveMedia(e,t)||pauseSimpleGalleryAutoplay(e))})),e.addEventListener("mouseout",(t=>{simpleGalleryHoveredActiveMedia(e,t)&&(simpleGalleryRelatedTargetWithinActiveMedia(e,t)||resumeSimpleGalleryAutoplay(e))})),startSimpleGalleryAutoplay(e))}if(function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t,n){if(he.isFunction(t))return he.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return he.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(Se.test(t))return he.filter(t,e,n);t=he.filter(t,e)}return he.grep(e,(function(e){return he.inArray(e,t)>-1!==n}))}function o(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function r(e){var t={};return he.each(e.match(Ie)||[],(function(e,n){t[n]=!0})),t}function a(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(ie.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(ie.addEventListener||"load"===e.event.type||"complete"===ie.readyState)&&(a(),he.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Pe,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Le.test(n)?he.parseJSON(n):n)}catch(e){}he.data(e,t,n)}else n=void 0}return n}function d(e){var t;for(t in e)if(("data"!==t||!he.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,i){if(je(e)){var o,r,a=he.expando,s=e.nodeType,l=s?he.cache:e,d=s?e[a]:e[a]&&a;if(d&&l[d]&&(i||l[d].data)||void 0!==n||"string"!=typeof t)return d||(d=s?e[a]=ne.pop()||he.guid++:a),l[d]||(l[d]=s?{}:{toJSON:he.noop}),"object"!=typeof t&&"function"!=typeof t||(i?l[d]=he.extend(l[d],t):l[d].data=he.extend(l[d].data,t)),r=l[d],i||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[he.camelCase(t)]=n),"string"==typeof t?null==(o=r[t])&&(o=r[he.camelCase(t)]):o=r,o}}function u(e,t,n){if(je(e)){var i,o,r=e.nodeType,a=r?he.cache:e,s=r?e[he.expando]:he.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){o=(t=he.isArray(t)?t.concat(he.map(t,he.camelCase)):t in i||(t=he.camelCase(t))in i?[t]:t.split(" ")).length;for(;o--;)delete i[t[o]];if(n?!d(i):!he.isEmptyObject(i))return}
vendor: 5,722 bytes, line 1
1(n||(delete a[s].data,d(a[s])))&&(r?he.cleanData([e],!0):ue.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function p(e,t,n,i){var o,r=1,a=20,s=i?function(){return i.cur()}:function(){return he.css(e,t,"")},l=s(),d=n&&n[3]||(he.cssNumber[t]?"":"px"),c=(he.cssNumber[t]||"px"!==d&&+l)&&Me.exec(he.css(e,t));if(c&&c[3]!==d){d=d||c[3],n=n||[],c=+l||1;do{c/=r=r||".5",he.style(e,t,c+d)}while(r!==(r=s()/l)&&1!==r&&--a)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=d,i.start=c,i.end=o)),o}function h(e){var t=Ve.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e,t){var n,i,o=0,r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],n=e.childNodes||e;null!=(i=n[o]);o++)!t||he.nodeName(i,t)?r.push(i):he.merge(r,f(i,t));return void 0===t||t&&he.nodeName(e,t)?he.merge([e],r):r}function m(e,t){for(var n,i=0;null!=(n=e[i]);i++)he._data(n,"globalEval",!t||he._data(t[i],"globalEval"))}function g(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t,n,i,o){for(var r,a,s,l,d,c,u,p=e.length,v=h(t),y=[],b=0;b<p;b++)if((a=e[b])||0===a)if("object"===he.type(a))he.merge(y,a.nodeType?[a]:a);else if(Qe.test(a)){for(l=l||v.appendChild(t.createElement("div")),d=(We.exec(a)||["",""])[1].toLowerCase(),u=Xe[d]||Xe._default,l.innerHTML=u[1]+he.htmlPrefilter(a)+u[2],r=u[0];r--;)l=l.lastChild;if(!ue.leadingWhitespace&&Ge.test(a)&&y.push(t.createTextNode(Ge.exec(a)[0])),!ue.tbody)for(r=(a="table"!==d||Ye.test(a)?"<table>"!==u[1]||Ye.test(a)?0:l:l.firstChild)&&a.childNodes.length;r--;)he.nodeName(c=a.childNodes[r],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(he.merge(y,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=v.lastChild}else y.push(t.createTextNode(a));for(l&&v.removeChild(l),ue.appendChecked||he.grep(f(y,"input"),g),b=0;a=y[b++];)if(i&&he.inArray(a,i)>-1)o&&o.push(a);else if(s=he.contains(a.ownerDocument,a),l=f(v.appendChild(a),"script"),s&&m(l),n)for(r=0;a=l[r++];)Ue.test(a.type||"")&&n.push(a);return l=null,v}function y(){return!0}function b(){return!1}function x(){try{return ie.activeElement}catch(e){}}function w(e,t,n,i,o,r){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)w(e,s,n,i,t[s],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=b;else if(!o)return e;return 1===r&&(a=o,o=function(e){return he().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=he.guid++)),e.each((function(){he.event.add(this,t,o,i,n)}))}function C(e,t){return he.nodeName(e,"table")&&he.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function S(e){return e.type=(null!==he.find.attr(e,"type"))+"/"+e.type,e}function T(e){var t=st.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function $(e,t){if(1===t.nodeType&&he.hasData(e)){var n,i,o,r=he._data(e),a=he._data(t,r),s=r.events;if(s)for(n in delete a.handle,a.events={},s)for(i=0,o=s[n].length;i<o;i++)he.event.add(t,n,s[n][i]);a.data&&(a.data=he.extend({},a.data))}}function k(e,t){var n,i,o;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ue.noCloneEvent&&t[he.expando]){for(i in(o=he._data(t)).events)he.removeEvent(t,i,o.handle);t.removeAttribute(he.expando)}"script"===n&&t.text!==e.text?(S(t).text=e.text,T(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ue.html5Clone&&e.innerHTML&&!he.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Be.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function E(e,t,n,i){t=re.apply([],t);var o,r,a,s,l,d,c=0,u=e.length,p=u-1,h=t[0],m=he.isFunction(h);if(m||u>1&&"string"==typeof h&&!ue.checkClone&&at.test(h))return e.each((function(o){var r=e.eq(o);m&&(t[0]=h.call(this,o,r.html())),E(r,t,n,i)}));if(u&&(o=(d=v(t,e[0].ownerDocument,!1,e,i)).firstChild,1===d.childNodes.length&&(d=o),o||i)){for(a=(s=he.map(f(d,"script"),S)).length;c<u;c++)r=d,c!==p&&(r=he.clone(r,!0,!0),a&&he.merge(s,f(r,"script"))),n.call(e[c],r,c);if(a)for(l=s[s.length-1].ownerDocument,he.map(s,T),c=0;c<a;c++)r=s[c],Ue.test(r.type||"")&&!he._data(r,"globalEval")&&he.contains(l,r)&&(r.src?he._evalUrl&&he._evalUrl(r.src):he.globalEval((r.text||r.textContent||r.innerHTML||"").replace(lt,"")));d=o=null}return e}function A(e,t,n){for(var i,o=t?he.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||he.cleanData(f(i)),i.parentNode&&(n&&he.contains(i.ownerDocument,i)&&m(f(i,"script")),i.parentNode.removeChild(i));return e}function N(e,t){var n=he(t.createElement(e)).appendTo(t.body),i=he.css(n[0],"display");return n.detach(),i}function I(e){var t=ie,n=ut[e];return n||("none"!==(n=N(e,t))&&n||((t=((ct=(ct||he("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||ct[0].contentDocument).document).write(),t.close(),n=N(e,t),ct.detach()),ut[e]=n),n}function D(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function j(e){if(e in kt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=$t.length;n--;)if((e=$t[n]+t)in kt)return e}function L(e,t){for(var n,i,o,r=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(r[a]=he._data(i,"olddisplay"),n=i.style.display,t?(r[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Re(i)&&(r[a]=he._data(i,"olddisplay",I(i.nodeName)))):(o=Re(i),(n&&"none"!==n||!o)&&he._data(i,"olddisplay",o?n:he.css(i,"dis
1play"))));for(a=0;a<s;a++)(i=e[a]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[a]||"":"none"));return e}function P(e,t,n){var i=Ct.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function q(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,a=0;r<4;r+=2)"margin"===n&&(a+=he.css(e,n+ze[r],!0,o)),i?("content"===n&&(a-=he.css(e,"padding"+ze[r],!0,o)),"margin"!==n&&(a-=he.css(e,"border"+ze[r]+"Width",!0,o))):(a+=he.css(e,"padding"+ze[r],!0,o),"padding"!==n&&(a+=he.css(e,"border"+ze[r]+"Width",!0,o)));return a}function O(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=gt(e),a=ue.boxSizing&&"border-box"===he.css(e,"boxSizing",!1,r);if(o<=0||null==o){if(((o=vt(e,t,r))<0||null==o)&&(o=e.style[t]),ht.test(o))return o;i=a&&(ue.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+q(e,t,n||(a?"border":"content"),i,r)+"px"}function _(e,t,n,i,o){return new _.prototype.init(e,t,n,i,o)}function H(){return e.setTimeout((function(){Et=void 0})),Et=he.now()}function M(e,t){var n,i={height:e},o=0;for(t=t?1:0;o<4;o+=2-t)i["margin"+(n=ze[o])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function z(e,t,n){for(var i,o=(B.tweeners[t]||[]).concat(B.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,t,e))return i}function R(e,t,n){var i,o,r,a,s,l,d,c=this,u={},p=e.style,h=e.nodeType&&Re(e),f=he._data(e,"fxshow");for(i in n.queue||(null==(s=he._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always((function(){c.always((function(){s.unqueued--,he.queue(e,"fx").length||s.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(d=he.css(e,"display"))?he._data(e,"olddisplay")||I(e.nodeName):d)&&"none"===he.css(e,"float")&&(ue.inlineBlockNeedsLayout&&"inline"!==I(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",ue.shrinkWrapBlocks()||c.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),t)if(o=t[i],Nt.exec(o)){if(delete t[i],r=r||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||
1!f||void 0===f[i])continue;h=!0}u[i]=f&&f[i]||he.style(e,i)}else d=void 0;if(he.isEmptyObject(u))"inline"===("none"===d?I(e.nodeName):d)&&(p.display=d);else for(i in f?"hidden"in f&&(h=f.hidden):f=he._data(e,"fxshow",{}),r&&(f.hidden=!h),h?he(e).show():c.done((function(){he(e).hide()})),c.done((function(){var t;for(t in he._removeData(e,"fxshow"),u)he.style(e,t,u[t])})),u)a=z(h?f[i]:0,i,c),i in f||(f[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}function F(e,t){var n,i,o,r,a;for(n in e)if(o=t[i=he.camelCase(n)],r=e[n],he.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(a=he.cssHooks[i])&&"expand"in a)for(n in r=a.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}function B(e,t,n){var i,o,r=0,a=B.prefilters.length,s=he.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=Et||H(),n=Math.max(0,d.startTime+d.duration-t),i=1-(n/d.duration||0),r=0,a=d.tweens.length;r<a;r++)d.tweens[r].run(i);return s.notifyWith(e,[d,i,n]),i<1&&a?n:(s.resolveWith(e,[d]),!1)},d=s.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:Et||H(),duration:n.duration,tweens:[],createTween:function(t,n){var i=he.Tween(e,d.opts,t,n,d.opts.specialEasing[t]||d.opts.easing);return d.tweens.push(i),i},stop:function(t){var n=0,i=t?d.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)d.tweens[n].run(1);return t?(s.notifyWith(e,[d,1,0]),s.resolveWith(e,[d,t])):s.rejectWith(e,[d,t]),this}}),c=d.props;for(F(c,d.opts.specialEasing);r<a;r++)if(i=B.prefilters[r].call(d,e,c,d.opts))return he.isFunction(i.stop)&&(he._queueHooks(d.elem,d.opts.queue).stop=he.proxy(i.stop,i)),i;return he.map(c,z,d),he.isFunction(d.opts.start)&&d.opts.start.call(e,d),he.fx.timer(he.extend(l,{elem:e,anim:d,queue:d.opts.queue})),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always)}function W(e){return he.attr(e,"class")||""}function U(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(Ie)||[];if(he.isFunction(n))for(;i=r[o++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function G(e,t,n,i){function o(s){var l;return r[s]=!0,he.each(e[s]||[],(function(e,s){var d=s(t,n,i);return"string"!=typeof d||a||r[d]?a?!(l=d):void 0:(t.dataTypes.unshift(d),o(d),!1)})),l}var r={},a=e===en;return o(t.dataTypes[0])||!r["*"]&&o("*")}function V(e,t){var n,i,o=he.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n||(n={}))[i]=t[i]);return n&&he.extend(!0,e,n),e}function X(e,t,n){for(var i,o,r,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(a in s)if(s[a]&&s[a].test(o)){l.unshift(a);break}if(l[0]in n)r=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}i||(i=a)}r=r||i}if(r)return r!==l[0]&&l.unshift(r),n[r]}function Q(e,t,n,i){var o,r,a,s,l,d={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)d[a.toLowerCase()]=e.converters[a];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=d[l+" "+r]||d["* "+r]))for(o in d)if((s=o.split(" "))[1]===r&&(a=d[l+" "+s[0]]||d["* "+s[0]])){!0===a?a=d[o]:!0!==d[o]&&(r=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}function Y(e){return e.style&&e.style.display||he.css(e,"display")}function J(e){if(!he.contains(e.ownerDocument||ie,e))return!0;for(;e&&1===e.nodeType;){if("none"===Y(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function K(e,t,n,i){var o;if(he.isArray(t))he.each(t,(function(t,o){n||an.test(e)?i(e,o):K(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)}));else if(n||"object"!==he.type(t))i(e,t);else for(o in t)K(e+"["+o+"]",t[o],n,i)}function Z(){try{return new e.XMLHttpRequest}catch(e){}}function ee(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function te(e){return he.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],ie=e.document,oe=ne.slice,re=ne.concat,ae=ne.push,se=ne.indexOf,le={},de=le.toString,ce=le.hasOwnProperty,ue={},pe="1.12.4",he=function(e,t){return new he.fn.init(e,t)},fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ge=/-([\da-z])/gi,ve=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:pe,constructor:he,selector:"",length:0,toArray:function(){return oe.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:oe.call(this)},pushStack:function(e){var t=he.merge(this.constructor(),e);
vendor: 7,919 bytes, line 1
1return t.prevObject=this,t.context=this.context,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(oe.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:ne.sort,splice:ne.splice},he.extend=he.fn.extend=function(){var e,t,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[s]||{},s++),"object"==typeof a||he.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(o=arguments[s]))for(i in o)e=a[i],a!==(n=o[i])&&(d&&n&&(he.isPlainObject(n)||(t=he.isArray(n)))?(t?(t=!1,r=e&&he.isArray(e)?e:[]):r=e&&he.isPlainObject(e)?e:{},a[i]=he.extend(d,r,n)):void 0!==n&&(a[i]=n));return a},he.extend({expando:"jQuery"+(pe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isArray:Array.isArray||function(e){return"array"===he.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!he.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==he.type(e)||e.nodeType||he.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!ue.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[de.call(e)]||"object":typeof e},globalEval:function(t){t&&he.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(me,"ms-").replace(ge,ve)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,o=0;if(n(e))for(i=e.length;o<i&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(fe,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?he.merge(i,"string"==typeof e?[e]:e):ae.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(se)return se.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;)e[o++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,a=!n;o<r;o++)!t(e[o],o)!==a&&i.push(e[o]);return i},map:function(e,t,i){var o,r,a=0,s=[];if(n(e))for(o=e.length;a<o;a++)null!=(r=t(e[a],a,i))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,i))&&s.push(r);return re.apply([],s)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(o=e[t],t=e,e=o),he.isFunction(e))return n=oe.call(arguments,2),i=function(){return e.apply(t||this,n.concat(oe.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:function(){return+new Date},support:ue}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=ne[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){le["[object "+t+"]"]=t.toLowerCase()}));var ye=function(e){function t(e,t,n,i){var o,r,a,s,l,d,u,h,f=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!i&&((t?t.ownerDocument||t:z)!==j&&D(t),t=t||j,P)){if(11!==m&&(d=ve.exec(e)))if(o=d[1]){if(9===m){if(!(a=t.getElementById(o)))return n;if(a.id===o)return n.push(a),n}else if(f&&(a=f.getElementById(o))&&H(t,a)&&a.id===o)return n.push(a),n}else{if(d[2])return K.apply(n,t.getElementsByTagName(e)),n;if((o=d[3])&&w.getElementsByClassName&&t.getElementsByClassName)return K.apply(n,t.getElementsByClassName(o)),n}if(w.qsa&&!U[e+" "]&&(!q||!q.test(e))){if(1!==m)f=t,h=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(be,"\\$&"):t.setAttribute("id",s=M),r=(u=$(e)).length,l=pe.test(s)?"#"+s:"[id='"+s+"']";r--;)u[r]=l+" "+p(u[r]);h=u.join(","),f=ye.test(e)&&c(t.parentNode)||t}if(h)try{return K.apply(n,f.querySelectorAll(h)),n}catch(e){}finally{s===M&&t.removeAttribute("id")}}}return E(e.replace(se,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[M]=!0,e}function o(e){var t=j.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=n.length;i--;)C.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return i((function(t){return t=+t,i((function(n,i){for(var o,r=e([],n.length,t),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))}))}))}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function p(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function h(e,t,n){var i=t.dir,o=n&&"parentNode"===i,r=F++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,a){var s,l,d,c=[R,r];if(a){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||o){if((s=(l=(d=t[M]||(t[M]={}))[t.uniqueID]||(d[t.uniqueID]={}))[i])&&s[0]===R&&s[1]===r)return c[2]=s[2];if(l[i]=c,c[2]=e(t,n,a))return!0}}}function f(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function m(e,n,i){for(var o=0,r=n.length;o<r;o++)t(e,n[o],i);return i}function g(e,t,n,i,o){for(var r,a=[],s=0,l=e.length,d=null!=t;s<l;s++)(r=e[s])&&(n&&!n(r,i,o)||(a.push(r),d&&t.push(s)));return a}function v(e,t,n,o,r,a){return o&&!o[M]&&(o=v(o)),r&&!r[M]&&(r=v(r,a)),i((function(i,a,s,l){var d,c,u,p=[],h=[],f=a.length,v=i||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:g(v,p,e,s,l),b=n?r||(i?e:f||o)?[]:a:y;if(n&&n(y,b,s,l),o)for(d=g(b,h),o(d,[],s,l),c=d.length;c--;)(u=d[c])&&(b[h[c]]=!(y[h[c]]=u));if(i){if(r||e){if(r){for(d=[],c=b.length;c--;)(u=b[c])&&d.push(y[c]=u);r(null,b=[],d,l)}for(c=b.length;c--;)(u=b[c])&&(d=r?ee(i,u):p[c])>-1&&(i[d]=!(a[d]=u))}}else b=g(b===a?b.splice(f,b.length):b),r?r(null,a,b,l):K.apply(a,b)}))}function y(e){for(var t,n,i,o=e.length,r=C.relative[e[0].type],a=r||C.relative[" "],s=r?1:0,l=h((function(e){return e===t}),a,!0),d=h((function(e){return ee(t,e)>-1}),a,!0),c=[function(e,n,i){var o=!r&&(i||n!==A)||((t=n).nodeType?l(e,n,i):d(e,n,i));return t=null,o}];s<o;s++)if(n=C.relative[e[s].type])c=[h(f(c),n)];else{if((n=C.filter[e[s].type].apply(null,e[s].matches))[M]){for(i=++s;i<o&&!C.relative[e[i].type];i++);return v(s>1&&f(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<i&&y(e.slice(s,i)),i<o&&y(e=e.slice(i)),i<o&&p(e))}c.push(n)}return f(c)}function b(e,n){var o=n.length>0,r=e.length>0,a=function(i,a,s,l,d){var c,u,p,h=0,f="0",m=i&&[],v=[],y=A,b=i||r&&C.find.TAG("*",d),x=R+=null==y?1:Math.random()||.1,w=b.length;for(d&&(A=a===j||a||d);f!==w&&null!=(c=b[f]);f++){if(r&&c){for(u=0,a||c.ownerDocument===j||(D(c),s=!P);p=e[u++];)if(p(c,a||j,s)){l.push(c);break}d&&(R=x)}o&&((c=!p&&c)&&h--,i&&m.push(c))}if(h+=f,o&&f!==h){for(u=0;p=n[u++];)p(m,v,a,s);if(i){if(h>0)for(;f--;)m[f]||v[f]||(v[f]=Y.call(l));v=g(v)}K.apply(l,v),d&&!i&&v.length>0&&h+n.length>1&&t.uniqueSort(l)}return d&&(R=x,A=y),m};return o?i(a):a}
vendor: 14,557 bytes, lines 1-2
1var x,w,C,S,T,$,k,E,A,N,I,D,j,L,P,q,O,_,H,M="sizzle"+1*new Date,z=e.document,R=0,F=0,B=n(),W=n(),U=n(),G=function(e,t){return e===t&&(I=!0),0},V=1<<31,X={}.hasOwnProperty,Q=[],Y=Q.pop,J=Q.push,K=Q.push,Z=Q.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",re=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),de=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ue=new RegExp(re),pe=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ce=function(){D()};try{K.apply(Q=Z.call(z.childNodes),z.childNodes),Q[z.childNodes.length].nodeType}catch(e){K={apply:Q.length?function(e,t){J.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(x in w=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},D=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:z;return i!==j&&9===i.nodeType&&i.documentElement?(L=(j=i).documentElement,P=!T(j),(n=j.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),w.attributes=o((function(e){return e.className="i",!e.getAttribute("className")})),w.getElementsByTagName=o((function(e){return e.appendChild(j.createComment("")),!e.getElementsByTagName("*").length})),w.getElementsByClassName=ge.test(j.getElementsByClassName),w.getById=o((function(e){return L.appendChild(e).id=M,!j.getElementsByName||!j.getElementsByName(M).length})),w.getById?(C.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}},C.filter.ID=function(e){var t=e.replace(xe,we);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(xe,we);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=w.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},C.find.CLASS=w.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&P)return t.getElementsByClassName(e)},O=[],q=[],(w.qsa=ge.test(j.querySelectorAll))&&(o((function(e){L.appendChild(e).innerHTML="<a id='"+M+"'></a><select id='"+M+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||q.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+M+"-]").length||q.push("~="),e.querySelectorAll(":checked").length||q.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||q.push(".#.+[+~]")})),o((function(e){var t=j.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&q.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")}))),(w.matchesSelector=ge.test(_=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&o((function(e){w.disconnectedMatch=_.call(e,"div"),_.call(e,"[s!='']:x"),O.push("!=",re)})),q=q.length&&new RegExp(q.join("|")),O=O.length&&new RegExp(O.join("|")),t=ge.test(L.compareDocumentPosition),H=t||ge.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return I=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===j||e.ownerDocument===z&&H(z,e)?-1:t===j||t.ownerDocument===z&&H(z,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return I=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],l=[t];if(!o||!r)return e===j?-1:t===j?1:o?-1:r?1:N?ee(N,e)-ee(N,t):0;if(o===r)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===z?-1:l[i]===z?1:0},j):j},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==j&&D(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&P&&!U[n+" "]&&(!O||!O.test(n))&&(!q||!q.test(n)))try{var i=_.call(e,n);if(i||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return t(n,j,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==j&&D(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==j&&D(e);var n=C.attrHandle[t.toLowerCase()],i=n&&X.call(C.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==i?i:w.attributes||!P?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,o=0;if(I=!w.detectDuplicates, 2N=!w.sortStable&&e.slice(0),e.sort(G),I){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return N=null,e},S=t.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=S(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=S(t);return n},C=t.selectors={cacheLength:50,createPseudo:i,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,we),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=$(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&B(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,n,i){return function(o){var r=t.attr(o,e);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(ae," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var d,c,u,p,h,f,m=r!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(r){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(b=(h=(d=(c=(u=(p=g)[M]||(p[M]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===R&&d[1])&&d[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[R,h,b];break}}else if(y&&(b=h=(d=(c=(u=(p=t)[M]||(p[M]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===R&&d[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(u=p[M]||(p[M]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]=[R,b]),p!==t)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,n){var o,r=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[M]?r(n):r.length>1?(o=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?i((function(e,t){for(var i,o=r(e,n),a=o.length;a--;)e[i=ee(e,o[a])]=!(t[i]=o[a])})):function(e){return r(e,0,o)}):r}},pseudos:{not:i((function(e){var t=[],n=[],o=k(e.replace(se,"$1"));return o[M]?i((function(e,t,n,i){for(var r,a=o(e,null,i,[]),s=e.length;s--;)(r=a[s])&&(e[s]=!(t[s]=r))})):function(e,i,r){return t[0]=e,o(t,null,r,n),t[0]=null,!n.pop()}})),has:i((function(e){return function(n){return t(e,n).length>0}})),contains:i((function(e){return e=e.replace(xe,we),function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}})),lang:i((function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,we).toLowerCase(),function(t){var n;do{if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:d((function(){return[0]})),last:d((function(e,t){return[t-1]})),eq:d((function(e,t,n){return[n<0?n+t:n]})),even:d((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:d((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:d((function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e})),gt:d((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},C.pseudos.nth=C.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})C.pseudos[x]=l(x);return u.prototype=C.filters=C.pseudos,C.setFilters=new u,$=t.tokenize=function(e,n){var i,o,r,a,s,l,d,c=W[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],d=C.preFilter;s;){for(a in i&&!(o=le.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),i=!1,(o=de.exec(s))&&(i=o.shift(),r.push({value:i,type:o[0].replace(se," ")}),s=s.slice(i.length)),C.filter)!(o=he[a].exec(s))||d[a]&&!(o=d[a](o))||(i=o.shift(),r.push({value:i,type:a,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):W(e,l).slice(0)},k=t.compile=function(e,t){var n,i=[],o=[],r=U[e+" "];if(!r){for(t||(t=$(e)),n=t.length;n--;)(r=y(t[n]))[M]?i.push(r):o.push(r);(r=U(e,b(o,i))).selector=e}return r},E=t.select=function(e,t,n,i){var o,r,a,s,l,d="function"==typeof e&&e,u=!i&&$(e=d.selector||e);if(n=n||[],1===u.length){if((r=u[0]=u[0].slice(0)).length>2&&"ID"===(a=r[0]).type&&w.getById&&9===t.nodeType&&P&&C.relative[r[1].type]){if(!(t=(C.find.ID(a.matches[0].replace(xe,we),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=he.needsContext.test(e)?0:r.length;o--&&(a=r[o],!C.relative[s=a.type]);)if((l=C.find[s])&&(i=l(a.matches[0].replace(xe,we),ye.test(r[0].type)&&c(t.parentNode)||t))){if(r.splice(o,1),!(e=i.length&&p(r)))return K.apply(n,i),n;break}}return(d||k(e,u))(i,t,!P,n,!t||ye.test(e)&&c(t.parentNode)||t),n},w.sortStable=M.split("").sort(G).join("")===M,w.detectDuplicates=!!I,D(),w.sortDetached=o((function(e){return 1&e.compareDocumentPosition(j.createElement("div"))})),o((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||r("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),w.attributes&&o((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||r("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),o((function(e){return null==e.getAttribute("disabled")}))||r(te,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),t}(e);he.find=ye,he.expr=ye.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=ye.uniqueSort,he.text=ye.getText,he.isXMLDoc=ye.isXML,he.contains=ye.contains;var be=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&he(e).is(n))break;i.push(e)}return i},xe=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=he.expr.match.needsContext,Ce=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Se=/^.[^:#\[\.,]*$/;
2he.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?he.find.matchesSelector(i,e)?[i]:[]:he.find.matches(e,he.grep(t,(function(e){return 1===e.nodeType})))},he.fn.extend({find:function(e){var t,n=[],i=this,o=i.length;if("string"!=typeof e)return this.pushStack(he(e).filter((function(){for(t=0;t<o;t++)if(he.contains(i[t],this))return!0})));for(t=0;t<o;t++)he.find(e,i[t],n);return(n=this.pushStack(o>1?he.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&we.test(e)?he(e):e||[],!1).length}});var Te,$e=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(he.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||Te,"string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:$e.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),Ce.test(i[1])&&he.isPlainObject(t))for(i in t)he.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((o=ie.getElementById(i[2]))&&o.parentNode){if(o.id!==i[2])return Te.find(e);this.length=1,this[0]=o}return this.context=ie,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),he.makeArray(e,this))}).prototype=he.fn,Te=he(ie);var ke=/^(?:parents|prev(?:Until|All))/,Ee={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t,n=he(e,this),i=n.length;return this.filter((function(){for(t=0;t<i;t++)if(he.contains(this,n[t]))return!0}))},closest:function(e,t){for(var n,i=0,o=this.length,r=[],a=we.test(e)||"string"!=typeof e?he(e,t||this.context):0;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?he.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?he.inArray(this[0],he(e)):he.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return xe((e.parentNode||{}).firstChild,e)},children:function(e){return xe(e.firstChild)},contents:function(e){return he.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:he.merge([],e.childNodes)}},(function(e,t){he.fn[e]=function(n,i){var o=he.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=he.filter(i,o)),this.length>1&&(Ee[e]||(o=he.uniqueSort(o)),ke.test(e)&&(o=o.reverse())),this.pushStack(o)}}));var Ae,Ne,Ie=/\S+/g;for(Ne in he.Callbacks=function(e){e="string"==typeof e?r(e):he.extend({},e);var t,n,i,o,a=[],s=[],l=-1,d=function(){for(o=e.once,i=t=!0;s.length;l=-1)for(n=s.shift();++l<a.length;)!1===a[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(l=a.length-1,s.push(n)),function t(n){he.each(n,(function(n,i){he.isFunction(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==he.type(i)&&t(i)}))}(arguments),n&&!t&&d()),this},remove:function(){return he.each(arguments,(function(e,t){for(var n;(n=he.inArray(t,a,n))>-1;)a.splice(n,1),n<=l&&l--})),this},has:function(e){return e?he.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=!0,n||c.disable(),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||d()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},he.extend({Deferred:function(e){var t=[["resolve","done",he.Callbacks("once memory"),"resolved"],["reject","fail",he.Callbacks("once memory"),"rejected"],["notify","progress",he.Callbacks("memory")]],n="pe
2nding",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return he.Deferred((function(n){he.each(t,(function(t,r){var a=he.isFunction(e[t])&&e[t];o[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return i.pipe=i.then,he.each(t,(function(e,r){var a=r[2],s=r[3];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,i,o=0,r=oe.call(arguments),a=r.length,s=1!==a||e&&he.isFunction(e.promise)?a:0,l=1===s?e:he.Deferred(),d=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?oe.call(arguments):o,i===t?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);o<a;o++)r[o]&&he.isFunction(r[o].promise)?r[o].promise().progress(d(o,n,t)).done(d(o,i,r)).fail(l.reject):--s;return s||l.resolveWith(i,r),l.promise()}}),he.fn.ready=function(e){return he.ready.promise().done(e),this},he.extend({isReady:!1,readyWait:1,holdReady:function(e){e?he.readyWait++:he.ready(!0)},ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||(Ae.resolveWith(ie,[he]),he.fn.triggerHandler&&(he(ie).triggerHandler("ready"),he(ie).off("ready"))))}}),he.ready.promise=function(t){if(!Ae)if(Ae=he.Deferred(),"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll)e.setTimeout(he.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{ie.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&ie.documentElement}catch(e){}n&&n.doScroll&&function t(){if(!he.isReady){try{n.doScroll("left")}catch(n){return e.setTimeout(t,50)}a(),he.ready()}}()}return Ae.promise(t)},he.ready.promise(),he(ue))break;ue.ownFirst="0"===Ne,ue.inlineBlockNeedsLayout=!1,he((function(){var e,t,n,i;(n=ie.getElementsByTagName("body")[0])&&n.style&&(t=ie.createElement("div"),(i=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ue.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))})),function(){var e=ie.createElement("div");ue.deleteExpando=!0;try{delete e.test}catch(e){ue.deleteExpando=!1}e=null}();var De,je=function(e){var t=he.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},Le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Pe=/([A-Z])/g;he.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?he.cache[e[he.expando]]:e[he.expando])&&!d(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return u(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return u(e,t,!0)}}),he.fn.extend({data:function(e,t){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===e){if(this.length&&(o=he.data(r),1===r.nodeType&&!he._data(r,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&l(r,i=he.camelCase(i.slice(5)),o[i]);he._data(r,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each((function(){he.data(this,e)})):arguments.length>1?this.each((function(){he.data(this,e,t)})):r?l(r,e,he.data(r,e)):void 0},removeData:function(e){return this.each((function(){he.removeData(this,e)}))}}),he.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=he._data(e,t),n&&(!i||he.isArray(n)?i=he._data(e,t,he.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),i=n.length,o=n.shift(),r=he._queueHooks(e,t),a=function(){he.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,a,r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return he._data(e,n)||he._data(e,n,{empty:he.Callbacks("once memory").add((function(){he._removeData(e,t+"queue"),he._removeData(e,n)}))})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each((function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){he.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=he.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=he._data(r[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(t)}}),ue.shrinkWrapBlocks=function(){return null!=De?De:(De=!1,(t=ie.getElementsByTagName("body")[0])&&t.style?(e=ie.createElement("div"),(n=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(ie.createElement("div")).style.width="5px",De=3!==e.offsetWidth),t.removeChild(n),De):void 0);var e,t,n};
2var qe,Oe,_e,He=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+He+")([a-z%]*)$","i"),ze=["Top","Right","Bottom","Left"],Re=function(e,t){return e=t||e,"none"===he.css(e,"display")||!he.contains(e.ownerDocument,e)},Fe=function(e,t,n,i,o,r,a){var s=0,l=e.length,d=null==n;if("object"===he.type(n))for(s in o=!0,n)Fe(e,t,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,he.isFunction(i)||(a=!0),d&&(a?(t.call(e,i),t=null):(d=t,t=function(e,t,n){return d.call(he(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return o?e:d?t.call(e):l?t(e[0],n):r},Be=/^(?:checkbox|radio)$/i,We=/<([\w:-]+)/,Ue=/^$|\/(?:java|ecma)script/i,Ge=/^\s+/,Ve="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";qe=ie.createElement("div"),Oe=ie.createDocumentFragment(),_e=ie.createElement("input"),qe.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ue.leadingWhitespace=3===qe.firstChild.nodeType,ue.tbody=!qe.getElementsByTagName("tbody").length,ue.htmlSerialize=!!qe.getElementsByTagName("link").length,ue.html5Clone="<:nav></:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,_e.type="checkbox",_e.checked=!0,Oe.appendChild(_e),ue.appendChecked=_e.checked,qe.innerHTML="<textarea>x</textarea>",ue.noCloneChecked=!!qe.cloneNode(!0).lastChild.defaultValue,Oe.appendChild(qe),(_e=ie.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),qe.appendChild(_e),ue.checkClone=qe.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.noCloneEvent=!!qe.addEventListener,qe[he.expando]=1,ue.attributes=!qe.getAttribute(he.expando);var Xe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ue.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Qe=/<|&#?\w+;/,Ye=/<tbody/i;!function(){var t,n,i=ie.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ue[t]=n in e)||(i.setAttribute(n,"t"),ue[t]=!1===i.attributes[n].expando);i=null}();var Je=/^(?:input|select|textarea)$/i,Ke=/^key/,Ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,i,o){var r,a,s,l,d,c,u,p,h,f,m,g=he._data(e);if(g){for(n.handler&&(n=(l=n).handler,o=l.selector),n.guid||(n.guid=he.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(e){return void 0===he||e&&he.event.triggered===e.type?void 0:he.event.dispatch.apply(c.elem,arguments)},c.elem=e),s=(t=(t||"").match(Ie)||[""]).length;s--;)h=m=(r=tt.exec(t[s])||[])[1],f=(r[2]||"").split(".").sort(),h&&(d=he.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=he.event.special[h]||{},u=he.extend({type:h,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&he.expr.match.needsContext.test(o),namespace:f.join(".")},l),(p=a[h])||((p=a[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,c)||(e.addEventListener?e.addEventListener(h,c,!1):e.attachEvent&&e.attachEvent("on"+h,c))),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),he.event.global[h]=!0);e=null}},remove:function(e,t,n,i,o){var r,a,s,l,d,c,u,p,h,f,m,g=he.hasData(e)&&he._data(e);if(g&&(c=g.events)){for(d=(t=(t||"").match(Ie)||[""]).length;d--;)if(h=m=(s=tt.exec(t[d])||[])[1],f=(s[2]||"").split(".").sort(),h){for(u=he.event.special[h]||{},p=c[h=(i?u.delegateType:u.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=p.length;r--;)a=p[r],!o&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(p.splice(r,1),a.selector&&p.delegateCount--,u.remove&&u.remove.call(e,a));l&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||he.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)he.event.remove(e,h+t[d],n,i,!0);he.isEmptyObject(c)&&(delete g.handle,he._removeData(e,"events"))}},trigger:function(t,n,i,o){var r,a,s,l,d,c,u,p=[i||ie],h=ce.call(t,"type")?t.type:t,f=ce.call(t,"namespace")?t.namespace.split("."):[];if(s=c=i=i||ie,3!==i.nodeType&&8!==i.nodeType&&!et.test(h+he.event.triggered)&&(h.indexOf(".")>-1&&(f=h.split("."),h=f.shift(),f.sort()),a=h.indexOf(":")<0&&"on"+h,(t=t[he.expando]?t:new he.Event(h,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.
2join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:he.makeArray(n,[t]),d=he.event.special[h]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!he.isWindow(i)){for(l=d.delegateType||h,et.test(l+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(i.ownerDocument||ie)&&p.push(c.defaultView||c.parentWindow||e)}for(u=0;(s=p[u++])&&!t.isPropagationStopped();)t.type=u>1?l:d.bindType||h,(r=(he._data(s,"events")||{})[t.type]&&he._data(s,"handle"))&&r.apply(s,n),(r=a&&s[a])&&r.apply&&je(s)&&(t.result=r.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=h,!o&&!t.isDefaultPrevented()&&(!d._default||!1===d._default.apply(p.pop(),n))&&je(i)&&a&&i[h]&&!he.isWindow(i)){(c=i[a])&&(i[a]=null),he.event.triggered=h;try{i[h]()}catch(e){}he.event.triggered=void 0,c&&(i[a]=c)}return t.result}},dispatch:function(e){e=he.event.fix(e);var t,n,i,o,r,a=[],s=oe.call(arguments),l=(he._data(this,"events")||{})[e.type]||[],d=he.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,e)){for(a=he.event.handlers.call(this,e,l),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(i=((he.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,o,r,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)void 0===i[o=(r=t[n]).selector+" "]&&(i[o]=r.needsContext?he(o,this).index(l)>-1:he.find(o,this,null,[l]).length),i[o]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[he.expando])return e;var t,n,i,o=e.type,r=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=Ze.test(o)?this.mouseHooks:Ke.test(o)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new he.Event(r),t=i.length;t--;)e[n=i[t]]=r[n];return e.target||(e.target=r.srcElement||ie),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,r):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,o,r=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(o=(i=e.target.ownerDocument||ie).documentElement,n=i.body,e.pageX=t.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==x()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===x()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(he.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return he.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},he.removeEvent=ie.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&(void 0===e[i]&&(e[i]=null),e.detachEvent(i,n))},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?y:b):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:b,isPropagationStopped:b,isImmediatePropagationStopped:b,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=y,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=y,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=y,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}}
2,he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,o=e.relatedTarget,r=e.handleObj;return o&&(o===i||he.contains(i,o))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),ue.submit||(he.event.special.submit={setup:function(){if(he.nodeName(this,"form"))return!1;he.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,n=he.nodeName(t,"input")||he.nodeName(t,"button")?he.prop(t,"form"):void 0;n&&!he._data(n,"submit")&&(he.event.add(n,"submit._submit",(function(e){e._submitBubble=!0})),he._data(n,"submit",!0))}))},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&he.event.simulate("submit",this.parentNode,e))},teardown:function(){if(he.nodeName(this,"form"))return!1;he.event.remove(this,"._submit")}}),ue.change||(he.event.special.change={setup:function(){if(Je.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(he.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)})),he.event.add(this,"click._change",(function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),he.event.simulate("change",this,e)}))),!1;he.event.add(this,"beforeactivate._change",(function(e){var t=e.target;Je.test(t.nodeName)&&!he._data(t,"change")&&(he.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||he.event.simulate("change",this.parentNode,e)})),he._data(t,"change",!0))}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return he.event.remove(this,"._change"),!Je.test(this.nodeName)}}),ue.focusin||he.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=he._data(i,t);o||i.addEventListener(e,n,!0),he._data(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=he._data(i,t)-1;o?he._data(i,t,o):(i.removeEventListener(e,n,!0),he._removeData(i,t))}}})),he.fn.extend({on:function(e,t,n,i){return w(this,e,t,n,i)},one:function(e,t,n,i){return w(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,he(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=b),this.each((function(){he.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){he.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}});var nt=/ jQuery\d+="(?:null|\d+)"/g,it=new RegExp("<(?:"+Ve+")[\\s/>]","i"),ot=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,rt=/<script|<style|<link/i,at=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,dt=h(ie).appendChild(ie.createElement("div"));he.extend({htmlPrefilter:function(e){return e.replace(ot,"<$1></$2>")},clone:function(e,t,n){var i,o,r,a,s,l=he.contains(e.ownerDocument,e);if(ue.html5Clone||he.isXMLDoc(e)||!it.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(dt.innerHTML=e.outerHTML,dt.removeChild(r=dt.firstChild)),!(ue.noCloneEvent&&ue.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(i=f(r),s=f(e),a=0;null!=(o=s[a]);++a)i[a]&&k(o,i[a]);if(t)if(n)for(s=s||f(e),i=i||f(r),a=0;null!=(o=s[a]);a++)$(o,i[a]);else $(e,r);return(i=f(r,"script")).length>0&&m(i,!l&&f(e,"script")),i=s=o=null,r},cleanData:function(e,t){for(var n,i,o,r,a=0,s=he.expando,l=he.cache,d=ue.attributes,c=he.event.special;null!=(n=e[a]);a++)if((t||je(n))&&(r=(o=n[s])&&l[o])){if(r.events)for(i in r.events)c[i]?he.event.remove(n,i):he.removeEvent(n,i,r.handle);l[o]&&(delete l[o],d||void 0===n.removeAttribute?n[s]=void 0:n.removeAttribute(s),ne.push(o))}}}),he.fn.extend({domManip:E,detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){ 3return Fe(this,(function(e){return void 0===e?he.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))}),null,e,arguments.length)},append:function(){return E(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||C(this,e).appendChild(e)}))},prepend:function(){return E(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return E(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return E(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&he.cleanData(f(e,!1));e.firstChild;)e.removeChild(e.firstChild);
3e.options&&he.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return he.clone(this,e,t)}))},html:function(e){return Fe(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(nt,""):void 0;if("string"==typeof e&&!rt.test(e)&&(ue.htmlSerialize||!it.test(e))&&(ue.leadingWhitespace||!Ge.test(e))&&!Xe[(We.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(he.cleanData(f(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return E(this,arguments,(function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(f(this)),n&&n.replaceChild(t,this))}),e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){he.fn[e]=function(e){for(var n,i=0,o=[],r=he(e),a=r.length-1;i<=a;i++)n=i===a?this:this.clone(!0),he(r[i])[t](n),ae.apply(o,n.get());return this.pushStack(o)}}));var ct,ut={HTML:"block",BODY:"block"},pt=/^margin/,ht=new RegExp("^("+He+")(?!px)[a-z%]+$","i"),ft=function(e,t,n,i){var o,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in o=n.apply(e,i||[]),t)e.style[r]=a[r];return o},mt=ie.documentElement;!function(){function t(){var t,c,u=ie.documentElement;u.appendChild(l),d.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=o=s=!1,i=a=!0,e.getComputedStyle&&(c=e.getComputedStyle(d),n="1%"!==(c||{}).top,s="2px"===(c||{}).marginLeft,o="4px"===(c||{width:"4px"}).width,d.style.marginRight="50%",i="4px"===(c||{marginRight:"4px"}).marginRight,(t=d.appendChild(ie.createElement("div"))).style.cssText=d.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",d.style.width="1px",a=!parseFloat((e.getComputedStyle(t)||{}).marginRight),d.removeChild(t)),d.style.display="none",(r=0===d.getClientRects().length)&&(d.style.display="",d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",d.childNodes[0].style.borderCollapse="separate",(t=d.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",r=0===t[0].offsetHeight)),u.removeChild(l)}var n,i,o,r,a,s,l=ie.createElement("div"),d=ie.createElement("div");d.style&&(d.style.cssText="float:left;opacity:.5",ue.opacity="0.5"===d.style.opacity,ue.cssFloat=!!d.style.cssFloat,d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",ue.clearCloneStyle="content-box"===d.style.backgroundClip,(l=ie.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",d.innerHTML="",l.appendChild(d),ue.boxSizing=""===d.style.boxSizing||""===d.style.MozBoxSizing||""===d.style.WebkitBoxSizing,he.extend(ue,{reliableHiddenOffsets:function(){return null==n&&t(),r},boxSizingReliable:function(){return null==n&&t(),o},pixelMarginRight:function(){return null==n&&t(),i},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),a},reliableMarginLeft:function(){return null==n&&t(),s}}))}();var gt,vt,yt=/^(top|right|bottom|left)$/;e.getComputedStyle?(gt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},vt=function(e,t,n){var i,o,r,a,s=e.style;return""!==(a=(n=n||gt(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||he.contains(e.ownerDocument,e)||(a=he.style(e,t)),n&&!ue.pixelMarginRight()&&ht.test(a)&&pt.test(t)&&(i=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=o,s.maxWidth=r),void 0===a?a:a+""}):mt.currentStyle&&(gt=function(e){return e.currentStyle},vt=function(e,t,n){var i,o,r,a,s=e.style;return null==(a=(n=n||gt(e))?n[t]:void 0)&&s&&s[t]&&(a=s[t]),ht.test(a)&&!yt.test(t)&&(i=s.left,(r=(o=e.runtimeStyle)&&o.left)&&(o.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,r&&(o.left=r)),void 0===a?a:a+""||"auto"});
vendor: 6,652 bytes, line 3
3var bt=/alpha\([^)]*\)/i,xt=/opacity\s*=\s*([^)]*)/i,wt=/^(none|table(?!-c[ea]).+)/,Ct=new RegExp("^("+He+")(.*)$","i"),St={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"},$t=["Webkit","O","Moz","ms"],kt=ie.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ue.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,a,s=he.camelCase(t),l=e.style;if(t=he.cssProps[s]||(he.cssProps[s]=j(s)||s),a=he.cssHooks[t]||he.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,i))?o:l[t];if(!("string"===(r=typeof n)&&(o=Me.exec(n))&&o[1]&&(n=p(e,t,o),r="number"),null==n||n!=n||("number"===r&&(n+=o&&o[3]||(he.cssNumber[s]?"":"px")),ue.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var o,r,a,s=he.camelCase(t);return t=he.cssProps[s]||(he.cssProps[s]=j(s)||s),(a=he.cssHooks[t]||he.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=vt(e,t,i)),"normal"===r&&t in Tt&&(r=Tt[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),he.each(["height","width"],(function(e,t){he.cssHooks[t]={get:function(e,n,i){if(n)return wt.test(he.css(e,"display"))&&0===e.offsetWidth?ft(e,St,(function(){return O(e,t,i)})):O(e,t,i)},set:function(e,n,i){var o=i&>(e);return P(e,n,i?q(e,t,i,ue.boxSizing&&"border-box"===he.css(e,"boxSizing",!1,o),o):0)}}})),ue.opacity||(he.cssHooks.opacity={get:function(e,t){return xt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,o=he.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===he.trim(r.replace(bt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=bt.test(r)?r.replace(bt,o):r+" "+o)}}),he.cssHooks.marginRight=D(ue.reliableMarginRight,(function(e,t){if(t)return ft(e,{display:"inline-block"},vt,[e,"marginRight"])})),he.cssHooks.marginLeft=D(ue.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(vt(e,"marginLeft"))||(he.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ft(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})):0))+"px"})),he.each({margin:"",padding:"",border:"Width"},(function(e,t){he.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+ze[i]+t]=r[i]||r[i-2]||r[0];return o}},pt.test(e)||(he.cssHooks[e+t].set=P)})),he.fn.extend({css:function(e,t){return Fe(this,(function(e,t,n){var i,o,r={},a=0;if(he.isArray(t)){for(i=gt(e),o=t.length;a<o;a++)r[t[a]]=he.css(e,t[a],!1,i);return r}return void 0!==n?he.style(e,t,n):he.css(e,t)}),e,t,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Re(this)?he(this).show():he(this).hide()}))}}),he.Tween=_,_.prototype={constructor:_,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(he.cssNumber[n]?"":"px")},cur:function(){var e=_.propHooks[this.prop];return e&&e.get?e.get(this):_.propHooks._default.get(this)},run:function(e){var t,n=_.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):_.propHooks._default.set(this),this}},_.prototype.init.prototype=_.prototype,_.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},_.propHooks.scrollTop=_.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=_.prototype.init,he.fx.step={};var Et,At,Nt=/^(?:toggle|show|hide)$/,It=/queueHooks$/;he.Animation=he.extend(B,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return p(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Ie);for(var n,i=0,o=e.length;i<o;i++)n=e[i],B.tweeners[n]=B.tweeners[n]||[],B.tweeners[n].unshift(t)},prefilters:[R],prefilter:function(e,t){t?B.prefilters.unshift(e):B.prefilters.push(e)}}),he.speed=function(e,t,n){var i=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return i.duration=he.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in he.fx.speeds?he.fx.speeds[i.duration]:he.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){he.isFunction(i.old)&&i.old.call(this),i.queue&&he.dequeue(this,i.queue)},i},he.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Re).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=he.isEmptyObject(e),r=he.speed(t,n,i),a=function(){var t=B(this,he.extend({},e),r);(o||he._data(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",r=he.timers,a=he._data(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&It.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||he.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=he._data(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=he.timers,a=i?i.length:0;for(n.finish=!0,he.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1)
3);for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),he.each(["toggle","show","hide"],(function(e,t){var n=he.fn[t];he.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(M(t,!0),e,i,o)}})),he.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){he.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),he.timers=[],he.fx.tick=function(){var e,t=he.timers,n=0;for(Et=he.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||he.fx.stop(),Et=void 0},he.fx.timer=function(e){he.timers.push(e),e()?he.fx.start():he.timers.pop()},he.fx.interval=13,he.fx.start=function(){At||(At=e.setInterval(he.fx.tick,he.fx.interval))},he.fx.stop=function(){e.clearInterval(At),At=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx&&he.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}}))},function(){var e,t=ie.createElement("input"),n=ie.createElement("div"),i=ie.createElement("select"),o=i.appendChild(ie.createElement("option"));(n=ie.createElement("div")).setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),(e=n.getElementsByTagName("a")[0]).style.cssText="top:1px",ue.getSetAttribute="t"!==n.className,ue.style=/top/.test(e.getAttribute("style")),ue.hrefNormalized="/a"===e.getAttribute("href"),ue.checkOn=!!t.value,ue.optSelected=o.selected,ue.enctype=!!ie.createElement("form").enctype,i.disabled=!0,ue.optDisabled=!o.disabled,(t=ie.createElement("input")).setAttribute("value",""),ue.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),ue.radioValue="t"===t.value}();var Dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;he.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=he.isFunction(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,he(this).val()):e)?o="":"number"==typeof o?o+="":he.isArray(o)&&(o=he.map(o,(function(e){return null==e?"":e+""}))),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=he.valHooks[o.type]||he.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Dt,""):null==n?"":n:void 0}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:he.trim(he.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,i=e.options,o=e.selectedIndex,r="select-one"===e.type||o<0,a=r?null:[],s=r?o+1:i.length,l=o<0?s:r?o:0;l<s;l++)if(((n=i[l]).selected||l===o)&&(ue.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!he.nodeName(n.parentNode,"optgroup"))){if(t=he(n).val(),r)return t;a.push(t)}return a}
vendor: 4,416 bytes, line 3
3,set:function(e,t){for(var n,i,o=e.options,r=he.makeArray(t),a=o.length;a--;)if(i=o[a],he.inArray(he.valHooks.option.get(i),r)>-1)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],(function(){he.valHooks[this]={set:function(e,t){if(he.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},ue.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt,Pt,qt=he.expr.attrHandle,Ot=/^(?:checked|selected)$/i,_t=ue.getSetAttribute,Ht=ue.input;he.fn.extend({attr:function(e,t){return Fe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){he.removeAttr(this,e)}))}}),he.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?he.prop(e,t,n):(1===r&&he.isXMLDoc(e)||(t=t.toLowerCase(),o=he.attrHooks[t]||(he.expr.match.bool.test(t)?Pt:Lt)),void 0!==n?null===n?void he.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=he.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!ue.radioValue&&"radio"===t&&he.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,o=0,r=t&&t.match(Ie);if(r&&1===e.nodeType)for(;n=r[o++];)i=he.propFix[n]||n,he.expr.match.bool.test(n)?Ht&&_t||!Ot.test(n)?e[i]=!1:e[he.camelCase("default-"+n)]=e[i]=!1:he.attr(e,n,""),e.removeAttribute(_t?n:i)}}),Pt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):Ht&&_t||!Ot.test(n)?e.setAttribute(!_t&&he.propFix[n]||n,n):e[he.camelCase("default-"+n)]=e[n]=!0,n}},he.each(he.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=qt[t]||he.find.attr;Ht&&_t||!Ot.test(t)?qt[t]=function(e,t,i){var o,r;return i||(r=qt[t],qt[t]=o,o=null!=n(e,t,i)?t.toLowerCase():null,qt[t]=r),o}:qt[t]=function(e,t,n){if(!n)return e[he.camelCase("default-"+t)]?t.toLowerCase():null}})),Ht&&_t||(he.attrHooks.value={set:function(e,t,n){if(!he.nodeName(e,"input"))return Lt&&Lt.set(e,t,n);e.defaultValue=t}}),_t||(Lt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},he.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Lt.set},he.attrHooks.contenteditable={set:function(e,t,n){Lt.set(e,""!==t&&t,n)}},he.each(["width","height"],(function(e,t){he.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}}))),ue.style||(he.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Mt=/^(?:input|select|textarea|button|object)$/i,zt=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Fe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return e=he.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),he.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&he.isXMLDoc(e)||(t=he.propFix[t]||t,o=he.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):Mt.test(e.nodeName)||zt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ue.hrefNormalized||he.each(["href","src"],(function(e,t){he.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),ue.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){he.propFix[this.toLowerCase()]=this})),ue.enctype||(he.propFix.enctype="encoding");var Rt=/[\t\r\n\f]/g;he.fn.extend({addClass:function(e){var t,n,i,o,r,a,s,l=0;if(he.isFunction(e))return this.each((function(t){he(this).addClass(e.call(this,t,W(this)))}));if("string"==typeof e&&e)for(t=e.match(Ie)||[];n=this[l++];
3)if(o=W(n),i=1===n.nodeType&&(" "+o+" ").replace(Rt," ")){for(a=0;r=t[a++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(s=he.trim(i))&&he.attr(n,"class",s)}return this},removeClass:function(e){var t,n,i,o,r,a,s,l=0;if(he.isFunction(e))return this.each((function(t){he(this).removeClass(e.call(this,t,W(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ie)||[];n=this[l++];)if(o=W(n),i=1===n.nodeType&&(" "+o+" ").replace(Rt," ")){for(a=0;r=t[a++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(s=he.trim(i))&&he.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each((function(n){he(this).toggleClass(e.call(this,n,W(this),t),t)})):this.each((function(){var t,i,o,r;if("string"===n)for(i=0,o=he(this),r=e.match(Ie)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=W(this))&&he._data(this,"__className__",t),he.attr(this,"class",t||!1===e?"":he._data(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+W(n)+" ").replace(Rt," ").indexOf(t)>-1)return!0;return!1}}),he.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Ft=e.location,Bt=he.now(),Wt=/\?/,Ut=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;he.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,o=he.trim(t+"");return o&&!he.trim(o.replace(Ut,(function(e,t,o,r){return n&&t&&(i=0),0===i?e:(n=o||t,i+=!r-!o,"")})))?Function("return "+o)():he.error("Invalid JSON: "+t)},he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{e.DOMParser?n=(new e.DOMParser).parseFromString(t,"text/xml"):((n=new e.ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var Gt=/#.*$/,Vt=/([?&])_=[^&]*/,Xt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Qt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Kt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Zt={},en={},tn="*/".concat("*"),nn=Ft.href,on=Kt.exec(nn.toLowerCase())||[];he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:nn,type:"GET",isLocal:Qt.test(on[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tn,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":he.parseJSON,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,he.ajaxSettings),t):V(he.ajaxSettings,e)},ajaxPrefilter:U(Zt),ajaxTransport:U(en),ajax:function(t,n){function i(t,n,i,o){var r,u,y,b,w,S=n;2!==x&&(x=2,l&&e.clearTimeout(l),c=void 0,s=o||"",C.readyState=t>0?4:0,r=t>=200&&t<300||304===t,i&&(b=X(p,C,i)),b=Q(p,b,C,r),r?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(he.lastModified[a]=w),(w=C.getResponseHeader("etag"))&&(he.etag[a]=w)),204===t||"HEAD"===p.type?S="nocontent":304===t?S="notmodified":(S=b.state,u=b.data,r=!(y=b.error))):(y=S,!t&&S||(S="error",t<0&&(t=0))),C.status=t,C.statusText=(n||S)+"",r?m.resolveWith(h,[u,S,C]):m.rejectWith(h,[C,S,y]),C.statusCode(v),v=void 0,d&&f.trigger(r?"ajaxSuccess":"ajaxError",[C,p,r?u:y]),g.fireWith(h,[C,S]),d&&(f.trigger("ajaxComplete",[C,p]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,r,a,s,l,d,c,u,p=he.ajaxSetup({},n),h=p.context||p,f=p.context&&(h.nodeType||h.jquery)?he(h):he.event,m=he.Deferred(),g=he.Callbacks("once memory"),v=p.statusCode||{},y={},b={},x=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;
vendor: 4,749 bytes, line 3
3if(2===x){if(!u)for(u={};t=Xt.exec(s);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)v[t]=[v[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),i(0,t),this}};if(m.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((t||p.url||nn)+"").replace(Gt,"").replace(Jt,on[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=he.trim(p.dataType||"*").toLowerCase().match(Ie)||[""],null==p.crossDomain&&(o=Kt.exec(p.url.toLowerCase()),p.crossDomain=!(!o||o[1]===on[1]&&o[2]===on[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(on[3]||("http:"===on[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=he.param(p.data,p.traditional)),G(Zt,p,n,C),2===x)return C;for(r in(d=he.event&&p.global)&&0==he.active++&&he.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Yt.test(p.type),a=p.url,p.hasContent||(p.data&&(a=p.url+=(Wt.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Vt.test(a)?a.replace(Vt,"$1_="+Bt++):a+(Wt.test(a)?"&":"?")+"_="+Bt++)),p.ifModified&&(he.lastModified[a]&&C.setRequestHeader("If-Modified-Since",he.lastModified[a]),he.etag[a]&&C.setRequestHeader("If-None-Match",he.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+tn+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(!1===p.beforeSend.call(h,C,p)||2===x))return C.abort();for(r in w="abort",{success:1,error:1,complete:1})C[r](p[r]);if(c=G(en,p,n,C)){if(C.readyState=1,d&&f.trigger("ajaxSend",[C,p]),2===x)return C;p.async&&p.timeout>0&&(l=e.setTimeout((function(){C.abort("timeout")}),p.timeout));try{x=1,c.send(y,i)}catch(e){if(!(x<2))throw e;i(-1,e)}}else i(-1,"No Transport");return C},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],(function(e,t){he[t]=function(e,n,i,o){return he.isFunction(n)&&(o=o||i,i=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:o,data:n,success:i},he.isPlainObject(e)&&e))}})),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){if(he.isFunction(e))return this.each((function(t){he(this).wrapAll(e.call(this,t))}));if(this[0]){var t=he(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return he.isFunction(e)?this.each((function(t){he(this).wrapInner(e.call(this,t))})):this.each((function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=he.isFunction(e);return this.each((function(n){he(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){he.nodeName(this,"body")||he(this).replaceWith(this.childNodes)})).end()}}),he.expr.filters.hidden=function(e){return ue.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:J(e)},he.expr.filters.visible=function(e){return!he.expr.filters.hidden(e)};var rn=/%20/g,an=/\[\]$/,sn=/\r?\n/g,ln=/^(?:submit|button|image|reset|file)$/i,dn=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,i=[],o=function(e,t){t=he.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=he.ajaxSettings&&he.ajaxSettings.traditional),he.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,(function(){o(this.name,this.value)}));else for(n in e)K(n,e[n],t,o);return i.join("&").replace(rn,"+")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&dn.test(this.nodeName)&&!ln.test(e)&&(this.checked||!Be.test(e))})).map((function(e,t){var n=he(this).val();return null==n?null:he.isArray(n)?he.map(n,(function(e){return{name:t.name,value:e.replace(sn,"\r\n")}})):{name:t.name,value:n.replace(sn,"\r\n")}})).get()}}),he.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():ie.documentMode>
38?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||ee()}:Z;var cn=0,un={},pn=he.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in un)un[e](void 0,!0)})),ue.cors=!!pn&&"withCredentials"in pn,(pn=ue.ajax=!!pn)&&he.ajaxTransport((function(t){var n;if(!t.crossDomain||ue.cors)return{send:function(i,o){var r,a=t.xhr(),s=++cn;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];for(r in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[r]&&a.setRequestHeader(r,i[r]+"");a.send(t.hasContent&&t.data||null),n=function(e,i){var r,l,d;if(n&&(i||4===a.readyState))if(delete un[s],n=void 0,a.onreadystatechange=he.noop,i)4!==a.readyState&&a.abort();else{d={},r=a.status,"string"==typeof a.responseText&&(d.text=a.responseText);try{l=a.statusText}catch(e){l=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=d.text?200:404}d&&o(r,l,d,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=un[s]=n:n()},abort:function(){n&&n(void 0,!0)}}})),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),he.ajaxTransport("script",(function(e){if(e.crossDomain){var t,n=ie.head||he("head")[0]||ie.documentElement;return{send:function(i,o){(t=ie.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var hn=[],fn=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=hn.pop()||he.expando+"_"+Bt++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",(function(t,n,i){var o,r,a,s=!1!==t.jsonp&&(fn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&fn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(fn,"$1"+o):!1!==t.jsonp&&(t.url+=(Wt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||he.error(o+" was not called"),a[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){a=arguments},i.always((function(){void 0===r?he(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,hn.push(o)),a&&he.isFunction(r)&&r(a[0]),a=r=void 0})),"script"})),he.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var i=Ce.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=v([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))};var mn=he.fn.load;he.fn.load=function(e,t,n){if("string"!=typeof e&&mn)return mn.apply(this,arguments);var i,o,r,a=this,s=e.indexOf(" ");return s>-1&&(i=he.trim(e.slice(s,e.length)),e=e.slice(0,s)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&he.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){r=arguments,a.html(i?he("<div>").append(he.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){he.fn[t]=function(e){return this.on(t,e)}})),he.expr.filters.animated=function(e){return he.grep(he.timers,(function(t){return e===t.elem})).length},he.offset={setOffset:function(e,t,n){var i,o,r,a,s,l,d=he.css(e,"position"),c=he(e),u={};"static"===d&&(e.style.position="relative"),s=c.offset(),r=he.css(e,"top"),l=he.css(e,"left"),("absolute"===d||"fixed"===d)&&he.inArray("auto",[r,l])>-1?(a=(i=c.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},s))), 4null!=t.top&&(u.top=t.top-s.top+a),null!=t.left&&(u.left=t.left-s.left+o),"using"in t?t.using.call(e,u):c.css(u)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){he.offset.setOffset(this,e,t)}));var t,n,i={top:0,left:0},o=this[0],r=o&&o.ownerDocument;return r?(t=r.documentElement,he.contains(t,o)?(void 0!==o.getBoundingClientRect&&(i=o.getBoundingClientRect()),n=te(r),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left
4:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===he.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),he.nodeName(e[0],"html")||(n=e.offset()),n.top+=he.css(e[0],"borderTopWidth",!0),n.left+=he.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-he.css(i,"marginTop",!0),left:t.left-n.left-he.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&!he.nodeName(e,"html")&&"static"===he.css(e,"position");)e=e.offsetParent;return e||mt}))}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n=/Y/.test(t);he.fn[e]=function(i){return Fe(this,(function(e,i,o){var r=te(e);if(void 0===o)return r?t in r?r[t]:r.document.documentElement[i]:e[i];r?r.scrollTo(n?he(r).scrollLeft():o,n?o:he(r).scrollTop()):e[i]=o}),e,i,arguments.length,null)}})),he.each(["top","left"],(function(e,t){he.cssHooks[t]=D(ue.pixelPosition,(function(e,n){if(n)return n=vt(e,t),ht.test(n)?he(e).position()[t]+"px":n}))})),he.each({Height:"height",Width:"width"},(function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){he.fn[i]=function(i,o){var r=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return Fe(this,(function(t,n,i){var o;return he.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)}),t,r?i:void 0,r,null)}}))})),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.fn.size=function(){return this.length},he.fn.andSelf=he.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return he}));var gn=e.jQuery,vn=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=vn),t&&e.jQuery===he&&(e.jQuery=gn),he},t||(e.jQuery=e.$=he),he})),function(e,t){"use strict";var n;e.rails!==t&&e.error("jquery-ujs has already been loaded!");var i=e(document);e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return e("meta[name=csrf-token]").attr("content")},csrfParam:function(){return e("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=n.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){e('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(t,n,i){var o=e.Event(n);return t.trigger(o,i),!1!==o.result},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==t&&!1!==e.data("remote")},handleRemote:function(i){var o,r,a,s,l,d;if(n.fire(i,"ajax:before")){if(s=i.data("with-credentials")||null,l=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){o=i.data("ujs:submit-button-formmethod")||i.attr("method"),r=i.data("ujs:submit-button-formaction")||i.attr("action"),a=e(i[0]).serializeArray();var c=i.data("ujs:submit-button");c&&(a.push(c),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(n.inputChangeSelector)?(o=i.data("method"),r=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(o=i.data("method")||"get",r=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):(o=i.data("method"),r=n.href(i),a=i.data("params")||null);return d={type:o||"GET",data:a,dataType:l,beforeSend:function(e,o){if(o.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),!n.fire(i,"ajax:beforeSend",[e,o]))return!1;i.trigger("ajax:send",e)},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:n.isCrossDomain(r)},s&&(d.xhrFields={withCredentials:s}),r&&(d.url=r),n.ajax(d)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var n=document.createElement("a");try{return n.href=e,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(e){return!0}},handleMethod:function(i){var o=n.href(i),r=i.data("method"),a=i.attr("target"),s=n.csrfToken(),l=n.csrfParam(),d=e('<form method="post" action="'+o+'"></form>'),c='<input name="_method" value="'+r+'" type="hidden" />';l===t||s===t||n.isCrossDomain(o)||(c+='<input name="'+l+'" value="'+s+'" type="hidden" />'),a&&d.attr("target",a),d.hide().append(c).appendTo("body"),d.submit()},formElements:function(t,n){return t.is("form")?e(t[0].elements).filter(n):t.find(n)},disableFormElements:function(t){n.formElements(t,n.disableSelector).each((function(){n.disableFormElement(e(this))}))},disableFormElement:function(e){var n,i;n=e.is("button")?"html":"val",(i=e.data("disable-with"))!==t&&(e.data("ujs:enable-with",e[n]()),e[n](i)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(t){n.formElements(t,n.enableSelector).each((function(){n.enableFormElement(e(this))}))},enableFormElement:function(e){var n=e.is("button")?"html":"val";e.data("ujs:enable-with")!==t&&(e[n](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,i=e.data("confirm"),o=!1;if(!i)return!0;
4if(n.fire(e,"confirm")){try{o=n.confirm(i)}catch(e){(console.error||console.log).call(console,e.stack||e)}t=n.fire(e,"confirm:complete",[o])}return o&&t},blankInputs:function(t,n,i){var o,r,a,s=e(),l=n||"input,textarea",d=t.find(l),c={};return d.each((function(){(o=e(this)).is("input[type=radio]")?(a=o.attr("name"),c[a]||(0===t.find('input[type=radio]:checked[name="'+a+'"]').length&&(r=t.find('input[type=radio][name="'+a+'"]'),s=s.add(r)),c[a]=a)):(o.is("input[type=checkbox],input[type=radio]")?o.is(":checked"):!!o.val())===i&&(s=s.add(o))})),!!s.length&&s},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var i=e.data("disable-with");i!==t&&(e.data("ujs:enable-with",e.html()),e.html(i)),e.bind("click.railsDisable",(function(e){return n.stopEverything(e)})),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},n.fire(i,"rails:attachBindings")&&(e.ajaxPrefilter((function(e,t,i){e.crossDomain||n.CSRFProtection(i)})),e(window).on("pageshow.rails",(function(){e(e.rails.enableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableFormElement(t)})),e(e.rails.linkDisableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableElement(t)}))})),i.on("ajax:complete",n.linkDisableSelector,(function(){n.enableElement(e(this))})),i.on("ajax:complete",n.buttonDisableSelector,(function(){n.enableFormElement(e(this))})),i.on("click.rails",n.linkClickSelector,(function(t){var i=e(this),o=i.data("method"),r=i.data("params"),a=t.metaKey||t.ctrlKey;if(!n.allowAction(i))return n.stopEverything(t);if(!a&&i.is(n.linkDisableSelector)&&n.disableElement(i),n.isRemote(i)){if(a&&(!o||"GET"===o)&&!r)return!0;var s=n.handleRemote(i);return!1===s?n.enableElement(i):s.fail((function(){n.enableElement(i)})),!1}return o?(n.handleMethod(i),!1):void 0})),i.on("click.rails",n.buttonClickSelector,(function(t){var i=e(this);
4if(!n.allowAction(i)||!n.isRemote(i))return n.stopEverything(t);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var o=n.handleRemote(i);return!1===o?n.enableFormElement(i):o.fail((function(){n.enableFormElement(i)})),!1})),i.on("change.rails",n.inputChangeSelector,(function(t){var i=e(this);return n.allowAction(i)&&n.isRemote(i)?(n.handleRemote(i),!1):n.stopEverything(t)})),i.on("submit.rails",n.formSubmitSelector,(function(i){var o,r,a=e(this),s=n.isRemote(a);if(!n.allowAction(a))return n.stopEverything(i);if(a.attr("novalidate")===t)if(a.data("ujs:formnovalidate-button")===t){if((o=n.blankInputs(a,n.requiredInputSelector,!1))&&n.fire(a,"ajax:aborted:required",[o]))return n.stopEverything(i)}else a.data("ujs:formnovalidate-button",t);if(s){if(r=n.nonBlankInputs(a,n.fileInputSelector)){setTimeout((function(){n.disableFormElements(a)}),13);var l=n.fire(a,"ajax:aborted:file",[r]);return l||setTimeout((function(){n.enableFormElements(a)}),13),l}return n.handleRemote(a),!1}setTimeout((function(){n.disableFormElements(a)}),13)})),i.on("click.rails",n.formInputClickSelector,(function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var o=i.attr("name"),r=o?{name:o,value:i.val()}:null,a=i.closest("form");0===a.length&&(a=e("#"+i.attr("form"))),a.data("ujs:submit-button",r),a.data("ujs:formnovalidate-button",i.attr("formnovalidate")),a.data("ujs:submit-button-formaction",i.attr("formaction")),a.data("ujs:submit-button-formmethod",i.attr("formmethod"))})),i.on("ajax:send.rails",n.formSubmitSelector,(function(t){this===t.target&&n.disableFormElements(e(this))})),i.on("ajax:complete.rails",n.formSubmitSelector,(function(t){this===t.target&&n.enableFormElements(e(this))})),e((function(){n.refreshCSRFTokens()})))}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(i).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var n=e(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new i(this)),"string"==typeof t&&o[t].call(n)}))}var n='[data-dismiss="alert"]',i=function(t){e(t).on("click",n,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(t){function n(){a.detach().trigger("closed.bs.alert").remove()}var o=e(this),r=o.attr("data-target");r||(r=(r=o.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),r="#"===r?[]:r;var a=e(document).find(r);t&&t.preventDefault(),a.length||(a=o.closest(".alert")),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var o=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=o,this},e(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var i=e(this),o=i.data("bs.button"),r="object"==typeof t&&t;o||i.data("bs.button",o=new n(this,r)),"toggle"==t?o.toggle():t&&o.setState(t)}))}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.4.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",r=i.data();t+="Text",null==r.resetText&&i.data("resetText",i[o]()),setTimeout(e.proxy((function(){i[o](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(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)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(n){var i=e(n.target).closest(".btn");t.call(i,"toggle"),e(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.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(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var i=e(this),o=i.data("bs.carousel"),r=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),a="string"==typeof t?t:r.slide;o||i.data("bs.carousel",o=new n(this,r)),"number"==typeof t?o.to(t):a?o[a]():r.interval&&o.pause().cycle()}))}var n=function(t,n){this.$element=e(t),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("key
4down.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,i){var o=this.$element.find(".item.active"),r=i||this.getItemForDirection(t,o),a=this.interval,s="next"==t?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var d=r[0],c=e.Event("slide.bs.carousel",{relatedTarget:d,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(r)]);u&&u.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:d,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),"object"==typeof r&&r.length&&r[0].offsetWidth,o.addClass(s),r.addClass(s),o.one("bsTransitionEnd",(function(){r.removeClass([t,s].join(" ")).addClass("active"),o.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(p)}),0)})).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(p)),a&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var o=function(n){var i=e(this),o=i.attr("href");o&&(o=o.replace(/.*(?=#[^\s]+$)/,""));var r=i.attr("data-target")||o,a=e(document).find(r);if(a.hasClass("carousel")){var s=e.extend({},a.data(),i.data()),l=i.attr("data-slide-to");l&&(s.interval=!1),t.call(a,s),l&&a.data("bs.carousel").to(l),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var n=e(this);t.call(n,n.data())}))}))}(jQuery),function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(i)}function n(t){return this.each((function(){var n=e(this),o=n.data("bs.collapse"),r=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!o&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),o||n.data("bs.collapse",o=new i(this,r)),"string"==typeof t&&o[t]()}))}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(t=o.data("bs.collapse"))&&t.transitioning)){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),t||o.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[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 o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return o.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(n,i){var o=e(i);this.addAriaAndCollapsedClass(t(o),o)}),this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(i){var o=e(this);o.attr("data-target")||i.preventDefault();var r=t(o),a=r.data("bs.collapse")?"toggle":o.data();n.call(r,a)}))}(jQuery),function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));
vendor: 4,434 bytes, line 4
4var i="#"!==n?e(document).find(n):null;return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(o).remove(),e(r).each((function(){var i=e(this),o=t(i),r={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(o[0],n.target)||(o.trigger(n=e.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(e.Event("hidden.bs.dropdown",r)))))})))}function i(t){return this.each((function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof t&&i[t].call(n)}))}var o=".dropdown-backdrop",r='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.4.1",a.prototype.toggle=function(i){var o=e(this);if(!o.is(".disabled, :disabled")){var r=t(o),a=r.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(r.trigger(i=e.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var o=t(i),a=o.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&o.find(r).trigger("focus"),i.trigger("click");var s=" li:not(.disabled):visible a",l=o.find(".dropdown-menu"+s);if(l.length){var d=l.index(n.target);38==n.which&&d>0&&d--,40==n.which&&d<l.length-1&&d++,~d||(d=0),l.eq(d).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=i,e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})).on("click.bs.dropdown.data-api",r,a.prototype.toggle).on("keydown.bs.dropdown.data-api",r,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,i){return this.each((function(){var o=e(this),r=o.data("bs.modal"),a=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t);r||o.data("bs.modal",r=new n(this,a)),"string"==typeof t?r[t](i):a.show&&r.show(i)}))}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),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,e.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,o=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(o),this.isShown||o.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"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){i.$element.one("mouseup.dismiss.bs.modal",(function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var o=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:t});o?i.$dialog.one("bsTransitionEnd",(function(){i.$element.trigger("focus").trigger(r)})).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)})))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("
4click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy((function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")}))},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy((function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),t&&t()};
vendor: 18,872 bytes, lines 4-5
4e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=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",t+n),e(this.fixedContent).each((function(t,i){var o=i.style.paddingRight,r=e(i).css("padding-right");e(i).data("padding-right",o).css("padding-right",parseFloat(r)+n+"px")})))},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each((function(t,n){var i=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=i||""}))},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(n){var i=e(this),o=i.attr("href"),r=i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,""),a=e(document).find(r),s=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},a.data(),i.data());i.is("a")&&n.preventDefault(),a.one("show.bs.modal",(function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",(function(){i.is(":visible")&&i.trigger("focus")}))})),t.call(a,s,this)}))}(jQuery),function(e){"use strict";function t(t,n){var i=t.nodeName.toLowerCase();if(-1!==e.inArray(i,n))return-1===e.inArray(i,r)||Boolean(t.nodeValue.match(s)||t.nodeValue.match(l));for(var o=e(n).filter((function(e,t){return t instanceof RegExp})),a=0,d=o.length;a<d;a++)if(i.match(o[a]))return!0;return!1}function n(n,i,o){if(0===n.length)return n;if(o&&"function"==typeof o)return o(n);if(!document.implementation||!document.implementation.createHTMLDocument)return n;var r=document.implementation.createHTMLDocument("sanitization");r.body.innerHTML=n;for(var a=e.map(i,(function(e,t){return t})),s=e(r.body).find("*"),l=0,d=s.length;l<d;l++){var c=s[l],u=c.nodeName.toLowerCase();if(-1!==e.inArray(u,a))for(var p=e.map(c.attributes,(function(e){return e})),h=[].concat(i["*"]||[],i[u]||[]),f=0,m=p.length;f<m;f++)t(p[f],h)||c.removeAttribute(p[f].nodeName);else c.parentNode.removeChild(c)}return r.body.innerHTML}function i(t){return this.each((function(){var n=e(this),i=n.data("bs.tooltip"),o="object"==typeof t&&t;!i&&/destroy|hide/.test(t)||(i||n.data("bs.tooltip",i=new d(this,o)), 5"string"==typeof t&&i[t]())}))}var o=["sanitize","whiteList","sanitizeFn"],r=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],a={"*":["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:[]},s=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,d=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};d.VERSION="3.4.1",d.TRANSITION_DURATION=150,d.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:a},d.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(document).find(e.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 o=this.options.trigger.split(" "),r=o.length;r--;){var a=o[r];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(t){var i=this.$element.data();for(var r in i)i.hasOwnProperty(r)&&-1!==e.inArray(r,o)&&delete i[r];return(t=e.extend({},this.getDefaults(),i,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},d.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,i){n[e]!=i&&(t[e]=i)})),t},d.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.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)}},d.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},d.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.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)}},d.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var i=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,l=s.test(a);l&&(a=a.replace(s,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(e(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=o[0].offsetWidth,p=o[0].offsetHeight;if(l){var h=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+p>f.bottom?"top":"top"==a&&c.top-p<f.top?"bottom":"right"==a&&c.right+u>f.width?"left":"left"==a&&c.left-u<f.left?"right":a,o.removeClass(h).addClass(a)}var m=this.getCalculatedOffset(a,c,u,p);this.applyPlacement(m,a);var g=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(d.TRANSITION_DURATION):g()}},d.prototype.applyPlacement=function(t,n){var i=this.tip(),o=i[0].offsetWidth,r=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,d=i[0].offsetHeight;"top"==n&&d!=r&&(t.top=t.top+r-d);var c=this.getViewportAdjustedDelta(n,t,l,d);c.left?t.left+=c.left:t.top+=c.top;var u=/top|bottom/.test(n),p=u?2*c.left-o+l:2*c.top-r+d,h=u?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(p,i[0][h],u)},d.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},d.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=n(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},d.prototype.hide=function(t){function n(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}var i=this,o=e(this.$tip),r=e.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return o.removeClass("in"),e.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(d.TRANSITION_DURATION):n(),this.hoverState=null,this},d.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},d.prototype.hasContent=function(){return this.getTitle()},d.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=e.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:r?null:t.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},o,s,l,a)},d.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},d.prototype.getViewportAdjustedDelta=function(e,t,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-r-a.scroll,l=t.top+r-a.scroll+i;s<a.top?o.top=a.top-s:l>a.top+a.height&&(o.top=a.top+a.height-l)}else{var d=t.left-r,c=t.left+r+n;d<a.left?o.left=a.left-d:c>a.right&&(o.left=a.left+a.width-c)}return o},d.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},d.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},d.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(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},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},d.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},d.prototype.sanitizeHtml=function(e){return n(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=i,e.fn.tooltip.Constructor=d,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var i=e(this),o=i.data("bs.popover"),r="object"==typeof t&&t;!o&&/destroy|hide/.test(t)||(o||i.data("bs.popover",o=new n(this,r)),"string"==typeof t&&o[t]())}))}var n=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.4.1",n.DEFAULTS=e.extend({},e.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>'}),n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===i&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery),function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var i=e(this),o=i.data("bs.scrollspy"),r="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new t(this,r)),"string"==typeof n&&o[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),o=t.data("target")||t.attr("href"),r=/^#./.test(o)&&e(o);return r&&r.length&&r.is(":visible")&&[[r[n]().top+i,o]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return a!=(e=r[r.length-1])&&this.activate(e);if(a&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)a!=r[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(r[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",(function(){e('[data-spy="scroll"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var i=e(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof t&&o[t]()}))}var n=function(t){this.element=e(t)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),t.trigger(a),!a.isDefaultPrevented()&&!r.isDefaultPrevented()){var s=e(document).find(i);this.activate(t.closest("li"),n),this.activate(s,s.parent(),(function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})}))}}},n.prototype.activate=function(t,i,o){function r(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var a=i.find("> .active"),s=o&&e.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),a.removeClass("in")};var i=e.fn.tab;
5e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var o=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(e){"use strict";function t(t){return this.each((function(){var i=e(this),o=i.data("bs.affix"),r="object"==typeof t&&t;o||i.data("bs.affix",o=new n(this,r)),"string"==typeof t&&o[t]()}))}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i);var o=this.options.target===n.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=o.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.4.1",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(o+a<=e-i)&&"bottom";var s=null==this.affixed,l=s?o:r.top;return null!=n&&o<=n?"top":null!=i&&l+(s?a:t)>=e-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),i=this.options.offset,o=i.top,r=i.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(r=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var s=this.getState(a,t,o,r);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),d=e.Event(l+".bs.affix");if(this.$element.trigger(d),d.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-t-r})}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var n=e(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)}))}))}(jQuery),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e)})):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,(function(e){!function(e){"use strict";function t(t){var n=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];return e.each(n,(function(){t=t.replace(this.re,this.ch)})),t}function n(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n="(?:"+Object.keys(t).join("|")+")",i=new RegExp(n),o=new RegExp(n,"g"),r=null==e?"":""+e;return i.test(r)?r.replace(o,(function(e){return t[e]})):r}function i(t,n){var i=arguments,r=t,a=n;[].shift.apply(i);var s,l=this.each((function(){var t=e(this);if(t.is("select")){var n=t.data("selectpicker"),l="object"==typeof r&&r;if(n){if(l)for(var d in l)l.hasOwnProperty(d)&&(n.options[d]=l[d])}else{var c=e.extend({},o.DEFAULTS,e.fn.selectpicker.defaults||{},t.data(),l);c.template=e.extend({},o.DEFAULTS.template,e.fn.selectpicker.defaults?e.fn.selectpicker.defaults.template:{},t.data().template,l.template),t.data("selectpicker",n=new o(this,c,a))}"string"==typeof r&&(s=n[r]instanceof Function?n[r].apply(n,i):n.options[r])}}));return void 0!==s?s:l}String.prototype.includes||function(){var e={}.toString,t=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),n="".indexOf,i=function(t){if(null==this)throw new TypeError;var i=String(this);if(t&&"[object RegExp]"==e.call(t))throw new TypeError;var o=i.length,r=String(t),a=r.length,s=arguments.length>1?arguments[1]:void 0,l=s?Number(s):0;return l!=l&&(l=0),!(a+Math.min(Math.max(l,0),o)>o)&&-1!=n.call(i,r,l)};t?t(String.prototype,"includes",{value:i,configurable:!0,writable:!0}):String.prototype.includes=i}(),String.prototype.startsWith||function(){var e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),t={}.toString,n=function(e){if(null==this)throw new TypeError;var n=String(this);if(e&&"[object RegExp]"==t.call(e))throw new TypeError;var i=n.length,o=String(e),r=o.length,a=arguments.length>1?arguments[1]:void 0,s=a?Number(a):0;s!=s&&(s=0);var l=Math.min(Math.max(s,0),i);if(r+l>i)return!1;for(var d=-1;++d<r;
5)if(n.charCodeAt(l+d)!=o.charCodeAt(d))return!1;return!0};e?e(String.prototype,"startsWith",{value:n,configurable:!0,writable:!0}):String.prototype.startsWith=n}(),Object.keys||(Object.keys=function(e,t,n){for(t in n=[],e)n.hasOwnProperty.call(e,t)&&n.push(t);return n}),e.fn.triggerNative=function(e){var t,n=this[0];n.dispatchEvent?("function"==typeof Event?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),n.dispatchEvent(t)):(n.fireEvent&&((t=document.createEventObject()).eventType=e,n.fireEvent("on"+e,t)),this.trigger(e))},e.expr[":"].icontains=function(t,n,i){var o=e(t);return(o.data("tokens")||o.text()).toUpperCase().includes(i[3].toUpperCase())},e.expr[":"].ibegins=function(t,n,i){var o=e(t);return(o.data("tokens")||o.text()).toUpperCase().startsWith(i[3].toUpperCase())},e.expr[":"].aicontains=function(t,n,i){var o=e(t);return(o.data("tokens")||o.data("normalizedText")||o.text()).toUpperCase().includes(i[3].toUpperCase())},e.expr[":"].aibegins=function(t,n,i){var o=e(t);return(o.data("tokens")||o.data("normalizedText")||o.text()).toUpperCase().startsWith(i[3].toUpperCase())};var o=function(t,n,i){i&&(i.stopPropagation(),i.preventDefault()),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=n,null===this.options.title&&(this.options.title=this.$element.attr("title")),this.val=o.prototype.val,this.render=o.prototype.render,this.refresh=o.prototype.refresh,this.setStyle=o.prototype.setStyle,this.selectAll=o.prototype.selectAll,this.deselectAll=o.prototype.deselectAll,this.destroy=o.prototype.destroy,this.remove=o.prototype.remove,this.show=o.prototype.show,this.hide=o.prototype.hide,this.init()};o.VERSION="1.10.0",o.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(e){return 1==e?"{0} item selected":"{0} items selected"},maxOptionsText:function(e,t){return[1==e?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1},o.prototype={constructor:o,init:function(){var t=this,n=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement).appendTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),void 0!==n&&(this.$button.attr("data-id",n),e('label[for="'+n+'"]').click((function(e){e.preventDefault(),t.$button.focus()}))),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide.bs.select",e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden.bs.select",e)},"show.bs.dropdown":function(e){t.$element.trigger("show.bs.select",e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown.bs.select",e)}}),t.$element[0].hasAttribute("required")&&this.$element.on("invalid",(function(){t.$button.addClass("bs-invalid").focus(),t.$element.on({"focus.bs.select":function(){t.$button.focus(),t.$element.off("focus.bs.select")},"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid"),t.$element.off("rendered.bs.select")}})})),setTimeout((function(){t.$element.trigger("loaded.bs.select")}))},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",o=this.autofocus?" autofocus":"",r=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>":"",a=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+n(this.options.liveSearchPlaceholder)+'"')+"></div>":"",s=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"</button></div></div>":"",l=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"</button></div></div>":"",d='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+o+'><span class="filter-option pull-left"></span> <span class="bs-caret">'+this.options.template.caret+'</span></button><div class="dropdown-menu open">'+r+a+s+'<ul class="dropdown-menu inner" role="menu"></ul>'+l+"</div></div>";return e(d)},createView:function(){var e=this.createDropdown(),t=this.createLi();return e.find("ul")[0].innerHTML=t,e},reloadLi:function(){this.destroyLi();var e=this.createLi();this.$menuInner[0].innerHTML=e},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var i=this,o=[],r=0,a=document.createElement("option"),s=-1,l=function(e,t,n,i){return"<li"+(void 0!==n&""!==n?' class="'+n+'"':"")+(void 0!==t&null!==t?' data-original-index="'+t+'"':"")+(void 0!==i&null!==i?'data-optgroup="'+i+'"':"")+">"+e+"</li>"},d=function(e,o,r,a){return'<a tabindex="0"'+(void 0!==o?' class="'+o+'"':"")+(void 0!==r?' style="'+r+'"':"")+(i.options.liveSearchNormalize?' data-normalized-text="'+t(n(e))+'"':"")+(void 0!==a||null!==a?' data-tokens="'+a+'"':"")+">"+e+'<span class="'+i.options.iconBase+" "+i.options.tickIcon+' check-mark"></span></a>'};if(this.options.title&&!this.multiple&&(s--,!this.$element.find(".bs-title-option").length)){var c=this.$element[0];a.className="bs-title-option",a.appendChild(document.createTextNode(this.options.title)),a.value="",c.insertBefore(a,c.firstChild),void 0===e(c.options[c.selectedIndex]).attr("selected")&&(a.selected=!0)}return this.$element.find("option").each((function(t){var n=e(this);if(s++,!n.hasClass("bs-title-option")){var a=this.className||"",c=this.style.cssText,u=n.data("c
5ontent")?n.data("content"):n.html(),p=n.data("tokens")?n.data("tokens"):null,h=void 0!==n.data("subtext")?'<small class="text-muted">'+n.data("subtext")+"</small>":"",f=void 0!==n.data("icon")?'<span class="'+i.options.iconBase+" "+n.data("icon")+'"></span> ':"",m="OPTGROUP"===this.parentNode.tagName,g=this.disabled||m&&this.parentNode.disabled;if(""!==f&&g&&(f="<span>"+f+"</span>"),i.options.hideDisabled&&g&&!m)return void s--;if(n.data("content")||(u=f+'<span class="text">'+u+h+"</span>"),m&&!0!==n.data("divider")){var v=" "+this.parentNode.className||"";if(0===n.index()){r+=1;var y=this.parentNode.label,b=void 0!==n.parent().data("subtext")?'<small class="text-muted">'+n.parent().data("subtext")+"</small>":"";y=(n.parent().data("icon")?'<span class="'+i.options.iconBase+" "+n.parent().data("icon")+'"></span> ':"")+'<span class="text">'+y+b+"</span>",0!==t&&o.length>0&&(s++,o.push(l("",null,"divider",r+"div"))),s++,o.push(l(y,null,"dropdown-header"+v,r))}if(i.options.hideDisabled&&g)return void s--;o.push(l(d(u,"opt "+a+v,c,p),t,"",r))}else!0===n.data("divider")?o.push(l("",t,"divider")):!0===n.data("hidden")?o.push(l(d(u,a,c,p),t,"hidden is-hidden")):(this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName&&(s++,o.push(l("",null,"divider",r+"div"))),o.push(l(d(u,a,c,p),t)));i.liObj[t]=s}})),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),o.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var n,i=this;!1!==t&&this.$element.find("option").each((function(e){var t=i.findLis().eq(i.liObj[e]);i.setDisabled(e,this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled,t),i.setSelected(e,this.selected,t)})),this.tabIndex();var o=this.$element.find("option").map((function(){if(this.selected){if(i.options.hideDisabled&&(this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled))return;var t,n=e(this),o=n.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+n.data("icon")+'"></i> ':"";return t=i.options.showSubtext&&n.data("subtext")&&!i.multiple?' <small class="text-muted">'+n.data("subtext")+"</small>":"",void 0!==n.attr("title")?n.attr("title"):n.data("content")&&i.options.showContent?n.data("content"):o+n.html()+t}})).toArray(),r=this.multiple?o.join(this.options.multipleSeparator):o[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var a=this.options.selectedTextFormat.split(">");if(a.length>1&&o.length>a[1]||1==a.length&&o.length>=2){n=this.options.hideDisabled?", [disabled]":"";var s=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+n).length;r=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(o.length,s):this.options.countSelectedText).replace("{0}",o.length.toString()).replace("{1}",s.toString())}}null==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(r=this.options.title),r||(r=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",e.trim(r.replace(/<[^>]*>?/g,""))),this.$button.children(".filter-option").html(r),this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var n=e||this.options.style;"add"==t?this.$button.addClass(n):"remove"==t?this.$button.removeClass(n):(this.$button.removeClass(this.options.style),this.$button.addClass(n))},liHeight:function(t){if(t||!1!==this.options.size&&!this.sizeInfo){var n=document.createElement("div"),i=document.createElement("div"),o=document.createElement("ul"),r=document.createElement("li"),a=document.createElement("li"),s=document.createElement("a"),l=document.createElement("span"),d=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,c=this.options.liveSearch?document.createElement("div"):null,u=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(l.className="text",n.className=this.$menu[0].parentNode.className+" open", 6i.className="dropdown-menu open",o.className="dropdown-menu inner",r.className="divider",l.appendChild(document.createTextNode("Inner text")),s.appendChild(l),a.appendChild(s),o.appendChild(a),o.appendChild(r),d&&i.appendChild(d),c){var h=document.createElement("span");c.className="bs-searchbox",h.className="form-control",c.appendChild(h),i.appendChild(c)}u&&i.appendChild(u),i.appendChild(o),p&&i.appendChild(p),n.appendChild(i),document.body.appendChild(n);var f=s.offsetHeight,m=d?d.offsetHeight:0,g=c?c.offsetHeight:0,v=u?u.offsetHeight:0,y=p?p.offsetHeight:0,b=e(r).outerHeight(!0),x="function"==typeof getComputedStyle&&getComputedStyle(i),w=x?null:e(i),C=parseInt(x?x.paddingTop:w.css("paddingTop"))+parseInt(x?x.paddingBottom:w.css("paddingBottom"))+parseInt(x?x.borderTopWidth:w.css("borderTopWidth"))+parseInt(x?x.borderBottomWidth:w.css("borderBottomWidth")),S=C+parseInt(x?x.marginTop:w.css("marginTop"))+parseInt(x?x.marginBottom:w.css("marginBottom"))+2;document.body.removeChild(n),this.sizeInfo={liHeight:f,headerHeight:m,searchHeight:g,actionsHeight:v,doneButtonHeight:y,dividerHeight:b,menuPadding:C,menuExtras:S}}},setSize:function(){if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var t,n,i,o,r=this,a=this.$menu,s=this.$menuInner,l=e(window),d=this.$newElement[0].offsetHeight,c=this.sizeInfo.liHeight,u=this.sizeInfo.headerHeight,p=this.sizeInfo.searchHeight,h=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,g=this.sizeInfo.menuPadding,v=this.sizeInfo.menuExtras,y=this.options.hideDisabled?".disabled":"",b=function(){i=r.$newElement.offset().top-l.scrollTop(),o=l.height()-i-d};if(b(),"auto"===this.options.size){var x=function(){var l,d=function(t,n){return function(i){return n?i.classList?i.classList.contains(t):e(i).hasClass(t):!(i.classList?i.classList.contains(t):e(i).hasClass(t))}},m=r.$menuInner[0].getElementsByTagName("li"),y=Array.prototype.filter?Array.prototype.filter.call(m,d("hidden",!1)):r.$lis.not(".hidden"),x=Array.prototype.filter?Array.prototype.filter.call(y,d("dropdown-header",!0)):y.filter(".dropdown-header");b(),t=o-v,r.options.container?(a.data("height")||a.data("height",a.height()),n=a.data("height")):n=a.height(),r.options.dropupAuto&&r.$newElement.toggleClass("dropup",i>o&&n>t-v),r.$newElement.hasClass("dropup")&&(t=i-v),l=y.length+x.length>3?3*c+v-2:0,a.css({"max-height":t+"px",overflow:"hidden","min-height":l+u+p+h+f+"px"}),s.css({"max-height":t-u-p-h-f-g+"px","overflow-y":"auto","min-height":Math.max(l-g,0)+"px"})};x(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",x),l.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",x)}else if(this.options.size&&"auto"!=this.options.size&&this.$lis.not(y).length>this.options.size){var w=this.$lis.not(".divider").not(y).children().slice(0,this.options.size).last().parent().index(),C=this.$lis.slice(0,w+1).filter(".divider").length;t=c*this.options.size+C*m+g,r.options.container?(a.data("height")||a.data("height",a.height()),n=a.data("height")):n=a.height(),r.options.dropupAuto&&this.$newElement.toggleClass("dropup",i>o&&n>t-v),a.css({"max-height":t+u+p+h+f+"px",overflow:"hidden","min-height":""}),s.css({"max-height":t-g+"px","overflow-y":"auto","min-height":""})}}},setWidth:function(){if("auto"===this.options.width){this.$menu.css("min-width","0");var e=this.$menu.parent().clone().appendTo("body"),t=this.options.container?this.$newElement.clone().appendTo("body"):e,n=e.children(".dropdown-menu").outerWidth(),i=t.css("width","auto").children("button").outerWidth();e.remove(),t.remove(),this.$newElement.css("width",Math.max(n,i)+"px")}else"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=e('<div class="bs-container" />');var t,n,i=this,o=function(e){i.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",e.hasClass("dropup")),t=e.offset(),n=e.hasClass("dropup")?0:e[0].offsetHeight,i.$bsContainer.css({top:t.top+n,left:t.left,width:e[0].offsetWidth})};this.$button.on("click",(function(){var t=e(this);i.isDisabled()||(o(i.$newElement),i.$bsContainer.appendTo(i.options.container).toggleClass("open",!t.hasClass("open")).append(i.$menu))})),e(window).on("resize scroll",(function(){o(i.$newElement)})),this.$element.on("hide.bs.select",(function(){i.$menu.data("height",i.$menu.height()),i.$bsContainer.detach()}))},setSelected:function(e,t,n){n||(n=this.findLis().eq(this.liObj[e])),n.toggleClass("selected",t)},setDisabled:function(e,t,n){n||(n=this.findLis().eq(this.liObj[e])),t?n.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):n.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var e=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click((function(){return!e.isDisabled()}))},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,n=e(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",(function(e){e.stopPropagation()})),n.data("spaceSelect",!1),this.$button.on("keyup",(function(e){/(32)/.test(e.keyCode.toString(10))&&n.data("spaceSelect")&&(e.preventDefault(),n.data("spaceSelect",!1))})),this.$button.on("click",(function(){t.setSize()})),this.$element.on("shown.bs.select",(function(){if(t.options.liveSearch||t.multiple){if(!t.multiple){var e=t.liObj[t.$element[0].selectedIndex];if("number"!=typeof e||!1===t.options.size)return;var n=t.$lis.eq(e)[0].offsetTop-t.$menuInner[0].offsetTop;n=n-t.$menuInner[0].offsetHeight/2+t.sizeInfo.liHeight/2,t.$menuInner[0].scrollTop=n}}else t.$menuInner.find(".selected a").focus()})),this.$menuInner.on("click","li a",(function(n){var i=e(this),o=i.parent().data("originalIndex"),r=t.$element.val(),a=t.$element.prop("selectedIndex");if(t.multiple&&n.stopPropagation(),n.preventDefault(),!t.isDisabled()&&!i.parent().hasClass("disabled")){var s=t.$element.find("option"),l=s.eq(o),d=l.prop("selected"),c=l.parent("optgroup"),u=t.options.maxOptions,p=c.data("maxOptions")||!1;if(t.multiple){if(l.prop("selected",!d),t.setSelected(o,!d),i.blur(),!1!==u||!1!==p){var h=u<s.filter(":selected").length,f=p<c.find("option:selected").length;if(u&&h||p&&f)if(u&&1==u)s.prop("selected",!1),l.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(o,!0);else if(p&&1==p){c.find("option:selected").prop("selected",!1),l.prop("selected",!0);var m=i.parent().data("optgroup");t.$menuInner.find('[data-optgroup="'+m+'"]').removeClass("selected"),t.setSelected(o,!0)}else{var g="function"==typeof t.options.maxOptionsText?t.options.maxOptionsText(u,p):t.options.maxOptionsText,v=g[0].replace("{n}",u),y=g[1].replace("{n}",p),b=e('<div class="notify"></div>');g[2]&&(v=v.replace("{var}",g[2][u>1?0:1]),y=y.replace("{var}",g[2][p>1?0:1])),l.prop("selected",!1),t.$menu.append(b),u&&h&&(b.append(e("<div>"+v+"</div>")),t.$element.trigger("maxReached.bs.select")),p&&f&&(b.append(e("<div>"+y+"</div>")),t.$element.trigger("maxReachedGrp.bs.select")),setTimeout((function(){t.setSelected(o,!1)}),10),b.delay(750).fadeOut(300,(function(){e(this).remove()}))}}}else s.prop("selected",!1),l.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(o,!0);t.multiple?t.options.liveSearch&&t.$searchbox.focus():t.$button.focus(),(r!=t.$element.val()&&t.multiple||a!=t.$element.prop("selectedIndex")&&!t.multiple)&&t.$element.trigger("changed.bs.select",[o,l.prop("selected"),d]).triggerNative("change")}})),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",(function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),t.options.liveSearch&&!e(n.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())}
6)),this.$menuInner.on("click",".divider, .dropdown-header",(function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.focus():t.$button.focus()})),this.$menu.on("click",".popover-title .close",(function(){t.$button.click()})),this.$searchbox.on("click",(function(e){e.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(n){t.options.liveSearch?t.$searchbox.focus():t.$button.focus(),n.preventDefault(),n.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()})),this.$element.change((function(){t.render(!1)}))},liveSearchListener:function(){var i=this,o=e('<li class="no-results"></li>');this.$button.on("click.dropdown.data-api touchstart.dropdown.data-api",(function(){i.$menuInner.find(".active").removeClass("active"),i.$searchbox.val()&&(i.$searchbox.val(""),i.$lis.not(".is-hidden").removeClass("hidden"),o.parent().length&&o.remove()),i.multiple||i.$menuInner.find(".selected").addClass("active"),setTimeout((function(){i.$searchbox.focus()}),10)})),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",(function(e){e.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){if(i.$searchbox.val()){var r=i.$lis.not(".is-hidden").removeClass("hidden").children("a");(r=i.options.liveSearchNormalize?r.not(":a"+i._searchStyle()+'("'+t(i.$searchbox.val())+'")'):r.not(":"+i._searchStyle()+'("'+i.$searchbox.val()+'")')).parent().addClass("hidden"),i.$lis.filter(".dropdown-header").each((function(){var t=e(this),n=t.data("optgroup");0===i.$lis.filter("[data-optgroup="+n+"]").not(t).not(".hidden").length&&(t.addClass("hidden"),i.$lis.filter("[data-optgroup="+n+"div]").addClass("hidden"))}));var a=i.$lis.not(".hidden");a.each((function(t){var n=e(this);n.hasClass("divider")&&(n.index()===a.first().index()||n.index()===a.last().index()||a.eq(t+1).hasClass("divider"))&&n.addClass("hidden")})),i.$lis.not(".hidden, .no-results").length?o.parent().length&&o.remove():(o.parent().length&&o.remove(),o.html(i.options.noneResultsText.replace("{0}",'"'+n(i.$searchbox.val())+'"')).show(),i.$menuInner.append(o))}else i.$lis.not(".is-hidden").removeClass("hidden"),o.parent().length&&o.remove();i.$lis.filter(".active").removeClass("active"),i.$searchbox.val()&&i.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus(),e(this).focus()}))},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(e){return void 0!==e?(this.$element.val(e),this.render(),this.$element):this.$element.val()},changeAll:function(t){void 0===t&&(t=!0),this.findLis();for(var n=this.$element.find("option"),i=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").toggleClass("selected",t),o=i.length,r=[],a=0;o>a;a++){var s=i[a].getAttribute("data-original-index");r[r.length]=n.eq(s)[0]}e(r).prop("selected",t),this.render(!1),this.$element.trigger("changed.bs.select").triggerNative("change")},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(e){(e=e||window.event)&&e.stopPropagation(),this.$button.trigger("click")},keydown:function(n){var i,o,r,a,s,l,d,c,u,p=e(this),h=p.is("input")?p.parent().parent():p.parent(),f=h.data("this"),m=":not(.disabled, .hidden, .dropdown-header, .divider)",g={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(f.options.liveSearch&&(h=p.parent().parent()),f.options.container&&(h=f.$menu),i=e("[role=menu] li",h),!(u=f.$newElement.hasClass("open"))&&(n.keyCode>=48&&n.keyCode<=57||n.keyCode>=96&&n.keyCode<=105||n.keyCode>=65&&n.keyCode<=90)&&(f.options.container?f.$button.trigger("click"):(f.setSize(),f.$menu.parent().addClass("open"),u=!0),f.$searchbox.focus()),f.options.liveSearch&&(/(^9$|27)/.test(n.keyCode.toString(10))&&u&&0===f.$menu.find(".active").length&&(n.preventDefault(),f.$menu.parent().removeClass("open"),f.options.container&&f.$newElement.removeClass("open"),f.$button.focus()),i=e("[role=menu] li"+m,h),p.val()||/(38|40)/.test(n.keyCode.toString(10))||0===i.filter(".active").length&&(i=f.$menuInner.find("li"),i=f.options.liveSearchNormalize?i.filter(":a"+f._searchStyle()+"("+t(g[n.keyCode])+")"):i.filter(":"+f._searchStyle()+"("+g[n.keyCode]+")"))),i.length){if(
6/(38|40)/.test(n.keyCode.toString(10)))o=i.index(i.find("a").filter(":focus").parent()),a=i.filter(m).first().index(),s=i.filter(m).last().index(),r=i.eq(o).nextAll(m).eq(0).index(),l=i.eq(o).prevAll(m).eq(0).index(),d=i.eq(r).prevAll(m).eq(0).index(),f.options.liveSearch&&(i.each((function(t){e(this).hasClass("disabled")||e(this).data("index",t)})),o=i.index(i.filter(".active")),a=i.first().data("index"),s=i.last().data("index"),r=i.eq(o).nextAll().eq(0).data("index"),l=i.eq(o).prevAll().eq(0).data("index"),d=i.eq(r).prevAll().eq(0).data("index")),c=p.data("prevIndex"),38==n.keyCode?(f.options.liveSearch&&o--,o!=d&&o>l&&(o=l),a>o&&(o=a),o==c&&(o=s)):40==n.keyCode&&(f.options.liveSearch&&o++,-1==o&&(o=0),o!=d&&r>o&&(o=r),o>s&&(o=s),o==c&&(o=a)),p.data("prevIndex",o),f.options.liveSearch?(n.preventDefault(),p.hasClass("dropdown-toggle")||(i.removeClass("active").eq(o).addClass("active").children("a").focus(),p.focus())):i.eq(o).children("a").focus();else if(!p.is("input")){var v,y=[];i.each((function(){e(this).hasClass("disabled")||e.trim(e(this).children("a").text().toLowerCase()).substring(0,1)==g[n.keyCode]&&y.push(e(this).index())})),v=e(document).data("keycount"),v++,e(document).data("keycount",v),e.trim(e(":focus").text().toLowerCase()).substring(0,1)!=g[n.keyCode]?(v=1,e(document).data("keycount",v)):v>=y.length&&(e(document).data("keycount",0),v>y.length&&(v=1)),i.eq(y[v-1]).children("a").focus()}if((/(13|32)/.test(n.keyCode.toString(10))||/(^9$)/.test(n.keyCode.toString(10))&&f.options.selectOnTab)&&u){if(/(32)/.test(n.keyCode.toString(10))||n.preventDefault(),f.options.liveSearch)/(32)/.test(n.keyCode.toString(10))||(f.$menuInner.find(".active a").click(),p.focus());else{var b=e(":focus");b.click(),b.focus(),n.preventDefault(),e(document).data("spaceSelect",!0)}e(document).data("keycount",0)}(/(^9$|27)/.test(n.keyCode.toString(10))&&u&&(f.multiple||f.options.liveSearch)||/(27)/.test(n.keyCode.toString(10))&&!u)&&(f.$menu.parent().removeClass("open"),f.options.container&&f.$newElement.removeClass("open"),f.$button.focus())}},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var r=e.fn.selectpicker;e.fn.selectpicker=i,e.fn.selectpicker.Constructor=o,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=r,this},e(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',o.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',(function(e){e.stopPropagation()})),e(window).on("load.bs.select.data-api",(function(){e(".selectpicker").each((function(){var t=e(this);i.call(t,t.data())}))}))}(e)})),function(e){"use strict";function t(t){return this.each((function(){var i=e(this),o=i.data("bs.toggle"),r="object"==typeof t&&t;o||i.data("bs.toggle",o=new n(this,r)),"string"==typeof t&&o[t]&&o[t]()}))}var n=function(t,n){this.$element=e(t),this.options=e.extend({},this.defaults(),n),this.render()};n.VERSION="2.2.0",n.DEFAULTS={on:"On",off:"Off",onstyle:"primary",offstyle:"default",size:"normal",style:"",width:null,height:null},n.prototype.defaults=function(){return{on:this.$element.attr("data-on")||n.DEFAULTS.on,off:this.$element.attr("data-off")||n.DEFAULTS.off,onstyle:this.$element.attr("data-onstyle")||n.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||n.DEFAULTS.offstyle,size:this.$element.attr("data-size")||n.DEFAULTS.size,style:this.$element.attr("data-style")||n.DEFAULTS.style,width:this.$element.attr("data-width")||n.DEFAULTS.width,height:this.$element.attr("data-height")||n.DEFAULTS.height}},n.prototype.render=function(){this._onstyle="btn-"+this.options.onstyle,this._offstyle="btn-"+this.options.offstyle;var t="large"===this.options.size?"btn-lg":"small"===this.options.size?"btn-sm":"mini"===this.options.size?"btn-xs":"",n=e('<label class="btn">').html(this.options.on).addClass(this._onstyle+" "+t),i=e('<label class="btn">').html(this.options.off).addClass(this._offstyle+" "+t+" active"),o=e('<span class="toggle-handle btn btn-default">').addClass(t),r=e('<div class="toggle-group">').append(n,i,o),a=e('<div class="toggle btn" data-toggle="toggle">').addClass(this.$element.prop("checked")?this._onstyle:this._offstyle+" off").addClass(t).addClass(this.options.style);this.$element.wrap(a),e.extend(this,{$toggle:this.$element.parent(),$toggleOn:n,$toggleOff:i,$toggleGroup:r}),this.$toggle.append(r);var s=this.options.width||Math.max(n.outerWidth(),i.outerWidth())+o.outerWidth()/2,l=this.options.height||Math.max(n.outerHeight(),i.outerHeight());n.addClass("toggle-on"),i.addClass("toggle-off"),this.$toggle.css({width:s,height:l}),this.options.height&&(n.css("line-height",n.height()+"px"),i.css("line-height",i.height()+"px")),this.update(!0),this.trigger(!0)},n.prototype.toggle=function(){this.$element.prop("checked")?this.off():this.on()},n.prototype.on=function(e){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._offstyle+" off").addClass(this._onstyle),this.$element.prop("checked",!0),e||this.trigger()},n.prototype.off=function(e){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._onstyle).addClass(this._offstyle+" off"),this.$element.prop("checked",!1),e||this.trigger()},n.prototype.enable=function(){this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1)},n.prototype.disable=function(){this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0)},n.prototype.update=function(e){this.$element.prop("disabled")?this.disable():this.enable(),this.$element.prop("checked")?this.on(e):this.off(e)},n.prototype.trigger=function(t){this.$element.off("change.bs.toggle"),t||this.$element.change(),this.$element.on("change.bs.toggle",e.proxy((function(){this.update()}),this))},n.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()};var i=e.fn.bootstrapToggle;
6e.fn.bootstrapToggle=t,e.fn.bootstrapToggle.Constructor=n,e.fn.toggle.noConflict=function(){return e.fn.bootstrapToggle=i,this},e((function(){e("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()})),e(document).on("click.bs.toggle","div[data-toggle^=toggle]",(function(t){e(this).find("input[type=checkbox]").bootstrapToggle("toggle"),t.preventDefault()}))}(jQuery),function(e){var t={},n={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){}};e.fn.bxSlider=function(o){if(0==this.length)return this;if(this.length>1)return this.each((function(){e(this).bxSlider(o)})),this;var r={},a=this;t.el=this;var s=e(window).width(),l=e(window).height(),d=function(){r.settings=e.extend({},n,o),r.settings.slideWidth=parseInt(r.settings.slideWidth),r.children=a.children(r.settings.slideSelector),r.children.length<r.settings.minSlides&&(r.settings.minSlides=r.children.length),r.children.length<r.settings.maxSlides&&(r.settings.maxSlides=r.children.length),r.settings.randomStart&&(r.settings.startSlide=Math.floor(Math.random()*r.children.length)),r.active={index:r.settings.startSlide},r.carousel=r.settings.minSlides>1||r.settings.maxSlides>1,r.carousel&&(r.settings.preloadImages="all"),r.minThreshold=r.settings.minSlides*r.settings.slideWidth+(r.settings.minSlides-1)*r.settings.slideMargin,r.maxThreshold=r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin,r.working=!1,r.controls={},r.interval=null,r.animProp="vertical"==r.settings.mode?"top":"left",r.usingCSS=r.settings.useCSS&&"fade"!=r.settings.mode&&function(){var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in t)if(void 0!==e.style[t[n]])return r.cssPrefix=t[n].replace("Perspective","").toLowerCase(),r.animProp="-"+r.cssPrefix+"-transform",!0;return!1}(),"vertical"==r.settings.mode&&(r.settings.maxSlides=r.settings.minSlides),a.data("origStyle",a.attr("style")),a.children(r.settings.slideSelector).each((function(){e(this).data("origStyle",e(this).attr("style"))})),c()},c=function(){a.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),r.viewport=a.parent(),r.loader=e('<div class="bx-loading" />'),r.viewport.prepend(r.loader),a.css({width:"horizontal"==r.settings.mode?100*r.children.length+215+"%":"auto",position:"relative"}),r.usingCSS&&r.settings.easing?a.css("-"+r.cssPrefix+"-transition-timing-function",r.settings.easing):r.settings.easing||(r.settings.easing="swing");g();r.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),r.viewport.parent().css({maxWidth:f()}),r.settings.pager||r.viewport.parent().css({margin:"0 auto 0px"}),r.children.css({float:"horizontal"==r.settings.mode?"left":"none",listStyle:"none",position:"relative"}),r.children.css("width",m()),"horizontal"==r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginRight",r.settings.slideMargin),"vertical"==r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginBottom",r.settings.slideMargin),"fade"==r.settings.mode&&(r.children.css({position:"absolute",zIndex:0,display:"none"}),r.children.eq(r.settings.startSlide).css({zIndex:50,display:"block"})),r.controls.el=e('<div class="bx-controls" />'),r.settings.captions&&$(),r.active.last=r.settings.startSlide==v()-1,r.settings.video&&a.fitVids();var t=r.children.eq(r.settings.startSlide);"all"==r.settings.preloadImages&&(t=r.children),r.settings.ticker?r.settings.pager=!1:(r.settings.pager&&C(),r.settings.controls&&S(),r.settings.auto&&r.settings.autoControls&&T(),(r.settings.controls||r.settings.autoControls||r.settings.pager)&&r.viewport.after(r.controls.el)),u(t,p)},u=function(t,n){var i=t.find("img, iframe").length;if(0!=i){var o=0;t.find("img, iframe").each((function(){e(this).one("load",(function(){++o==i&&n()})).each((function(){this.complete&&e(this).load()}))}))}else n()},p=function(){if(r.settings.infiniteLoop&&"fade"!=r.settings.mode&&!r.settings.ticker){var t="vertical"==r.settings.mode?r.settings.minSlides:r.settings.maxSlides,n=r.children.slice(0,t).clone().addClass("bx-clone"),i=r.children.slice(-t).clone().addClass("bx-clone");a.append(n).prepend(i)}r.loader.remove(),b(),"vertical"==r.settings.mode&&(r.settings.adaptiveHeight=!0),r.viewport.height(h()),a.redrawSlider(),r.settings.onSliderLoad(r.active.index),r.initialized=!0,r.settings.responsive&&e(window).bind("resize",F),r.settings.auto&&r.settings.autoStart&&q(),r.settings.ticker&&O(),r.settings.pager&&D(r.settings.startSlide),r.settings.controls&&P(),r.settings.touchEnabled&&!r.settings.ticker&&H()},h=function(){var t=0,n=e();if("vertical"==r.settings.mode||r.settings.adaptiveHeight)if(r.carousel){var o=1==r.settings.moveSlides?r.active.index:r.active.index*y();for(n=r.children.eq(o),i=1;i<=r.settings.maxSlides-1;i++)n=o+i>=r.children.length?n.add(r.children.eq(i-1)):n.add(r.children.eq(o+i))}else n=r.children.eq(r.active.index);else n=r.children;return"vertical"==r.settings.mode?(n.each((function(){t+=e(this).outerHeight()})),r.settings.slideMargin>0&&(t+=r.settings.slideMargin*(r.settings.minSlides-1))):t=Math.max.apply(Math,n.map((function(){return e(this).outerHeight(!1)})).get()),t},f=function(){var e="100%";return r.settings.slideWidth>0&&(e="horizontal"==r.settings.mode?r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin:r.settings.slideWidth),e},m=function(){var e=r.settings.slideWidth,t=r.viewport.width();return 0==r.settings.slideWidth||r.settings.slideWidth>t&&!r.carousel||"vertical"==r.settings.mode?e=t:r.settings.maxSlides>1&&"horizontal"==r.settings.mode&&(t>r.maxThreshold||t<r.minThreshold&&(e=(t-r.settings.slideMargin*(r.settings.minSlides-1))/r.settings.minSlides)),e},g=function(){var e=1;if("horizontal"==r.settings.mode&&r.settings.slideWidth>0)if(r.viewport.width()<r.minThreshold)e=r.settings.minSlides;else if(r.viewport.width()>r.maxThreshold)e=r.settings.maxSlides;else{var t=r.children.first().width();e=Math.floor(r.viewport.width()/t)}else"vertical"==r.settings.mode&&(e=r.settings.minSlides);return e},v=function(){var e=0;if(r.settings.moveSlides>0)if(r.settings.infiniteLoop)e=r.children.length/y();else for(var t=0,n=0;t<r.children.length;)++e,t=n+g(),n+=r.settings.moveSlides<=g()?r.settings.moveSlides:g();else e=Math.ceil(r.children.length/g());return e},y=function(){return r.settings.moveSlides>0&&r.settings.moveSlides<=g()?r.settings.moveSlides:g()},b=function(){if(r.children.length>r.settings.maxSlides&&r.active.last&&!r.settings.infiniteLoop){if("horizontal"==r.settings.mode){var e=r.children.last(
6),t=e.position();x(-(t.left-(r.viewport.width()-e.width())),"reset",0)}else if("vertical"==r.settings.mode){var n=r.children.length-r.settings.minSlides;t=r.children.eq(n).position();x(-t.top,"reset",0)}}else{t=r.children.eq(r.active.index*y()).position();r.active.index==v()-1&&(r.active.last=!0),null!=t&&("horizontal"==r.settings.mode?x(-t.left,"reset",0):"vertical"==r.settings.mode&&x(-t.top,"reset",0))}},x=function(e,t,n,i){if(r.usingCSS){var o="vertical"==r.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)";a.css("-"+r.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"==t?(a.css(r.animProp,o),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",(function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),j()}))):"reset"==t?a.css(r.animProp,o):"ticker"==t&&(a.css("-"+r.cssPrefix+"-transition-timing-function","linear"),a.css(r.animProp,o),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",(function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),x(i.resetValue,"reset",0),_()})))}else{var s={};s[r.animProp]=e,"slide"==t?a.animate(s,n,r.settings.easing,(function(){j()})):"reset"==t?a.css(r.animProp,e):"ticker"==t&&a.animate(s,speed,"linear",(function(){x(i.resetValue,"reset",0),_()}))}},w=function(){for(var t="",n=v(),i=0;i<n;i++){var o="";r.settings.buildPager&&e.isFunction(r.settings.buildPager)?(o=r.settings.buildPager(i),r.pagerEl.addClass("bx-custom-pager")):(o=i+1,r.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+i+'" class="bx-pager-link">'+o+"</a></div>"}r.pagerEl.html(t)},C=function(){r.settings.pagerCustom?r.pagerEl=e(r.settings.pagerCustom):(r.pagerEl=e('<div class="bx-pager" />'),r.settings.pagerSelector?e(r.settings.pagerSelector).html(r.pagerEl):r.controls.el.addClass("bx-has-pager").append(r.pagerEl),w()),r.pagerEl.delegate("a","click",I)},S=function(){r.controls.next=e('<a class="bx-next" href="">'+r.settings.nextText+"</a>"),r.controls.prev=e('<a class="bx-prev" href="">'+r.settings.prevText+"</a>"),r.controls.next.bind("click",k),r.controls.prev.bind("click",E),r.settings.nextSelector&&e(r.settings.nextSelector).append(r.controls.next),r.settings.prevSelector&&e(r.settings.prevSelector).append(r.controls.prev),r.settings.nextSelector||r.settings.prevSelector||(r.controls.directionEl=e('<div class="bx-controls-direction" />'),r.controls.directionEl.append(r.controls.prev).append(r.controls.next),r.controls.el.addClass("bx-has-controls-direction").append(r.controls.directionEl))},T=function(){r.controls.start=e('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+r.settings.startText+"</a></div>"),r.controls.stop=e('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+r.settings.stopText+"</a></div>"),r.controls.autoEl=e('<div class="bx-controls-auto" />'),r.controls.autoEl.delegate(".bx-start","click",A),r.controls.autoEl.delegate(".bx-stop","click",N),r.settings.autoControlsCombine?r.controls.autoEl.append(r.controls.start):r.controls.autoEl.append(r.controls.start).append(r.controls.stop),r.settings.autoControlsSelector?e(r.settings.autoControlsSelector).html(r.controls.autoEl):r.controls.el.addClass("bx-has-controls-auto").append(r.controls.autoEl),L(r.settings.autoStart?"stop":"start")},$=function(){r.children.each((function(){var t=e(this).find("img:first").attr("title");null!=t&&(""+t).length&&e(this).append('<div class="bx-caption"><span>'+t+"</span></div>")}))},k=function(e){r.settings.auto&&a.stopAuto(),a.goToNextSlide(),e.preventDefault()},E=function(e){r.settings.auto&&a.stopAuto(),a.goToPrevSlide(),e.preventDefault()},A=function(e){a.startAuto(),e.preventDefault()},N=function(e){a.stopAuto(),e.preventDefault()},I=function(t){r.settings.auto&&a.stopAuto();var n=e(t.currentTarget),i=parseInt(n.attr("data-slide-index"));i!=r.active.index&&a.goToSlide(i),t.preventDefault()},D=function(t){var n=r.children.length;if("short"==r.settings.pagerType)return r.settings.maxSlides>1&&(n=Math.ceil(r.children.length/r.settings.maxSlides)),void r.pagerEl.html(t+1+r.settings.pagerShortSeparator+n);r.pagerEl.find("a").removeClass("active"),r.pagerEl.each((function(n,i){e(i).find("a").eq(t).addClass("active")}))},j=function(){if(r.settings.infiniteLoop){var e="";0==r.active.index?e=r.children.eq(0).position():r.active.index==v()-1&&r.carousel?e=r.children.eq((v()-1)*y()).position():r.active.index==r.children.length-1&&(e=r.children.eq(r.children.length-1).position()),"horizontal"==r.settings.mode?x(-e.left,"reset",0):"vertical"==r.settings.mode&&x(-e.top,"reset",0)}r.working=!1,r.settings.onSlideAfter(r.children.eq(r.active.index),r.oldIndex,r.active.index)},L=function(e){r.settings.autoControlsCombine?r.controls.autoEl.html(r.controls[e]):(r.controls.autoEl.find("a").removeClass("active"),r.controls.autoEl.find("a:not(.bx-"+e+")").addClass("active"))},P=function(){1==v()?(r.controls.prev.addClass("disabled"),r.controls.next.addClass("disabled")):!r.settings.infiniteLoop&&r.settings.hideControlOnEnd&&(0==r.active.index?(r.controls.prev.addClass("disabled"), 7r.controls.next.removeClass("disabled")):r.active.index==v()-1?(r.controls.next.addClass("disabled"),r.controls.prev.removeClass("disabled")):(r.controls.prev.removeClass("disabled"),r.controls.next.removeClass("disabled")))},q=function(){if(r.settings.autoDelay>0)setTimeout(a.startAuto,r.settings.autoDelay);else a.startAuto();r.settings.autoHover&&a.hover((function(){r.interval&&(a.stopAuto(!0),r.autoPaused=!0)}),(function(){r.autoPaused&&(a.startAuto(!0),r.autoPaused=null)}))},O=function(){var t=0;if("next"==r.settings.autoDirection)a.append(r.children.clone().addClass("bx-clone"));else{a.prepend(r.children.clone().addClass("bx-clone"));var n=r.children.first().position();t="horizontal"==r.settings.mode?-n.left:-n.top}x(t,"reset",0),r.settings.pager=!1,r.settings.controls=!1,r.settings.autoControls=!1,r.settings.tickerHover&&!r.usingCSS&&r.viewport.hover((function(){a.stop()}),(function(){var t=0;r.children.each((function(){t+="horizontal"==r.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)}));
7var n=r.settings.speed/t,i="horizontal"==r.settings.mode?"left":"top",o=n*(t-Math.abs(parseInt(a.css(i))));_(o)})),_()},_=function(e){speed=e||r.settings.speed;var t={left:0,top:0},n={left:0,top:0};"next"==r.settings.autoDirection?t=a.find(".bx-clone").first().position():n=r.children.first().position();var i="horizontal"==r.settings.mode?-t.left:-t.top,o="horizontal"==r.settings.mode?-n.left:-n.top;x(i,"ticker",speed,{resetValue:o})},H=function(){r.touch={start:{x:0,y:0},end:{x:0,y:0}},r.viewport.bind("touchstart",M)},M=function(e){if(r.working)e.preventDefault();else{r.touch.originalPos=a.position();var t=e.originalEvent;r.touch.start.x=t.changedTouches[0].pageX,r.touch.start.y=t.changedTouches[0].pageY,r.viewport.bind("touchmove",z),r.viewport.bind("touchend",R)}},z=function(e){var t=e.originalEvent,n=Math.abs(t.changedTouches[0].pageX-r.touch.start.x),i=Math.abs(t.changedTouches[0].pageY-r.touch.start.y);if((3*n>i&&r.settings.preventDefaultSwipeX||3*i>n&&r.settings.preventDefaultSwipeY)&&e.preventDefault(),"fade"!=r.settings.mode&&r.settings.oneToOneTouch){var o=0;if("horizontal"==r.settings.mode){var a=t.changedTouches[0].pageX-r.touch.start.x;o=r.touch.originalPos.left+a}else{a=t.changedTouches[0].pageY-r.touch.start.y;o=r.touch.originalPos.top+a}x(o,"reset",0)}},R=function(e){r.viewport.unbind("touchmove",z);var t=e.originalEvent,n=0;if(r.touch.end.x=t.changedTouches[0].pageX,r.touch.end.y=t.changedTouches[0].pageY,"fade"==r.settings.mode){(i=Math.abs(r.touch.start.x-r.touch.end.x))>=r.settings.swipeThreshold&&(r.touch.start.x>r.touch.end.x?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto())}else{var i=0;"horizontal"==r.settings.mode?(i=r.touch.end.x-r.touch.start.x,n=r.touch.originalPos.left):(i=r.touch.end.y-r.touch.start.y,n=r.touch.originalPos.top),!r.settings.infiniteLoop&&(0==r.active.index&&i>0||r.active.last&&i<0)?x(n,"reset",200):Math.abs(i)>=r.settings.swipeThreshold?(i<0?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto()):x(n,"reset",200)}r.viewport.unbind("touchend",R)},F=function(){var t=e(window).width(),n=e(window).height();s==t&&l==n||(s=t,l=n,a.redrawSlider())};return a.goToSlide=function(t,n){if(!r.working&&r.active.index!=t)if(r.working=!0,r.oldIndex=r.active.index,t<0?r.active.index=v()-1:t>=v()?r.active.index=0:r.active.index=t,r.settings.onSlideBefore(r.children.eq(r.active.index),r.oldIndex,r.active.index),"next"==n?r.settings.onSlideNext(r.children.eq(r.active.index),r.oldIndex,r.active.index):"prev"==n&&r.settings.onSlidePrev(r.children.eq(r.active.index),r.oldIndex,r.active.index),r.active.last=r.active.index>=v()-1,r.settings.pager&&D(r.active.index),r.settings.controls&&P(),"fade"==r.settings.mode)r.settings.adaptiveHeight&&r.viewport.height()!=h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed),r.children.filter(":visible").fadeOut(r.settings.speed).css({zIndex:0}),r.children.eq(r.active.index).css("zIndex",51).fadeIn(r.settings.speed,(function(){e(this).css("zIndex",50),j()}));else{r.settings.adaptiveHeight&&r.viewport.height()!=h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed);var i=0,o={left:0,top:0};if(!r.settings.infiniteLoop&&r.carousel&&r.active.last)if("horizontal"==r.settings.mode){o=(l=r.children.eq(r.children.length-1)).position(),i=r.viewport.width()-l.outerWidth()}else{var s=r.children.length-r.settings.minSlides;o=r.children.eq(s).position()}else if(r.carousel&&r.active.last&&"prev"==n){var l,d=1==r.settings.moveSlides?r.settings.maxSlides-y():(v()-1)*y()-(r.children.length-r.settings.maxSlides);o=(l=a.children(".bx-clone").eq(d)).position()}else if("next"==n&&0==r.active.index)o=a.find("> .bx-clone").eq(r.settings.maxSlides).position(),r.active.last=!1;else if(t>=0){var c=t*y();o=r.children.eq(c).position()}if(void 0!==o){var u="horizontal"==r.settings.mode?-(o.left-i):-o.top;x(u,"slide",r.settings.speed)}}},a.goToNextSlide=function(){if(r.settings.infiniteLoop||!r.active.last){var e=parseInt(r.active.index)+1;a.goToSlide(e,"next")}},a.goToPrevSlide=function(){if(r.settings.infiniteLoop||0!=r.active.index){var e=parseInt(r.active.index)-1;a.goToSlide(e,"prev")}},a.startAuto=function(e){r.interval||(r.interval=setInterval((function(){"next"==r.settings.autoDirection?a.goToNextSlide():a.goToPrevSlide()}),r.settings.pause),r.settings.autoControls&&1!=e&&L("stop"))},a.stopAuto=function(e){r.interval&&(clearInterval(r.interval),r.interval=null,r.settings.autoControls&&1!=e&&L("start"))},a.getCurrentSlide=function(){return r.active.index},a.getSlideCount=function(){return r.children.length},a.redrawSlider=function(){r.children.add(a.find(".bx-clone")).outerWidth(m()),r.viewport.css("height",h()),r.settings.ticker||b(),r.active.last&&(r.active.index=v()-1),r.active.index>=v()&&(r.active.last=!0),r.settings.pager&&!r.settings.pagerCustom&&(w(),D(r.active.index))},a.destroySlider=function(){r.initialized&&(r.initialized=!1,e(".bx-clone",this).remove(),r.children.each((function(){null!=e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")})),null!=e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),r.controls.el&&r.controls.el.remove(),r.controls.next&&r.controls.next.remove(),r.controls.prev&&r.controls.prev.remove(),r.pagerEl&&r.pagerEl.remove(),e(".bx-caption",this).remove(),r.controls.autoEl&&r.controls.autoEl.remove(),clearInterval(r.interval),r.settings.responsive&&e(window).unbind("resize",F))},a.reloadSlider=function(e){null!=e&&(o=e),a.destroySlider(),d()},d(),this}}(jQuery),function(e){if("function"==typeof define&&define.amd)define(e);
7else if("object"==typeof exports)module.exports=e();else{var t=window.Cookies,n=window.Cookies=e();n.noConflict=function(){return window.Cookies=t,n}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function t(n){function i(t,o,r){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=e({path:"/"},i.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",o,r.expires&&"; expires="+r.expires.toUTCString(),r.path&&"; path="+r.path,r.domain&&"; domain="+r.domain,r.secure?"; secure":""].join("")}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,c=0;c<l.length;c++){var u=l[c].split("="),p=u.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var h=u[0].replace(d,decodeURIComponent);if(p=n.read?n.read(p,h):n(p,h)||p.replace(d,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(t===h){a=p;break}t||(a[h]=p)}catch(e){}}return a}}return i.set=i,i.get=function(e){return i(e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(t,n){i(t,"",e(n,{expires:-1}))},i.withConverter=t,i}return t((function(){}))})),window.UI=$.extend(!0,window.UI||{},{addCardModal:{form:function(){return $("#add-card-form")},init:function(){var e=UI.addCardModal;e.form();e.attachBindings(),Page.stripe=Stripe(gon.global.stripe_public_key);var t=Page.stripe.elements(),n={base:{fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",color:"#000","::placeholder":{color:"#BBB"}}};Page.stripeCard=t.create("cardNumber",{style:n}),Page.stripeCard.mount("#card-number"),t.create("cardExpiry",{style:n}).mount("#card-expiry"),t.create("cardCvc",{style:n}).mount("#card-cvc")},stripeCustomerResponseHandler:function(e){var t=UI.addCardModal.form();t.append("<input type='hidden' id='token' name='token' value='"+e+"'/>"),t.submit()},errorRenderer:function(e){var t=UI.addCardModal.form();t.prepend('<div id="card-error-message" class="alert alert-error">'+e+"</div>"),t.find('input[name="token"]').val("")},attachBindings:function(){var e=UI.addCardModal,t=e.form();t.submit((function(n){if(t.find("#token").val())return!0;n.preventDefault(),t.find("#card-error-message").remove(),Payments.validateCardAndAcquireToken(t,e.stripeCustomerResponseHandler,e.errorRenderer)}))}}}),$(document).ready((function(){})),function(e){"use strict";e.fn.waterwheelCarousel=function(t){function n(){(b={itemsContainer:e(v),totalItems:e(v).find("div.wwkt").length,containerWidth:e(v).width(),containerHeight:e(v).height(),currentCenterItem:null,previousCenterItem:null,items:[],calculations:[],carouselRotationsLeft:0,currentlyMoving:!1,itemsAnimating:0,currentSpeed:y.speed,intervalTimer:null,currentDirection:"forward",leftItemsCount:0,rightItemsCount:0,performingSetup:!0,cox:-1,mcox:0}).itemsContainer.find("div.wwkt").removeClass(y.activeClassName)}function i(e){clearTimeout(b.autoPlayTimer),e||0===y.autoPlay||(b.autoPlayTimer=setTimeout((function(){y.autoPlay>0?g("forward"):g("backward")}),Math.abs(y.autoPlay)))}function o(t){if(!1!==y.preloadImages){var n=b.itemsContainer.find("div.wwkt img"),i=0,o=n.length;n.each((function(){e(this).bind("load",(function(){(i+=1)!==o||t()})),e(this).attr("src",e(this).attr("src")),this.complete}))}else t()}function r(){b.itemsContainer.find("div.wwkt").each((function(){(null==e(this).data("original_width")||y.forcedImageWidth>0)&&e(this).data("original_width",e(this).width()),(null==e(this).data("original_height")||y.forcedImageHeight>0)&&e(this).data("original_height",e(this).height())}))}function a(){y.forcedImageWidth&&y.forcedImageHeight&&b.itemsContainer.find("div.wwkt").each((function(){e(this).width(y.forcedImageWidth),e(this).height(y.forcedImageHeight)}))}function s(){b.itemsContainer.find("div.wwkt:first");b.calculations[0]={distance:0,offset:0,opacity:1};for(var e=y.horizonOffset,t=y.separation,n=1;n<=y.flankingItems+2;n++)n>1&&(e*=y.horizonOffsetMultiplier,t*=y.separationMultiplier),b.calculations[n]={distance:b.calculations[n-1].distance+t,offset:b.calculations[n-1].offset+e,opacity:b.calculations[n-1].opacity*y.opacityMultiplier};y.edgeFadeEnabled?b.calculations[y.flankingItems+1].opacity=0:b.calculations[y.flankingItems+1]={distance:0,offset:0,opacity:0}
7}function l(){b.items=b.itemsContainer.find("div.wwkt");for(var t=0;t<b.totalItems;t++)b.items[t]=e(b.items[t]);0===y.horizon&&("horizontal"===y.orientation?y.horizon=b.containerHeight/2:y.horizon=b.containerWidth/2),b.itemsContainer.css("position","relative").find("div.wwkt").each((function(){var t,n;"horizontal"===y.orientation?(t=b.containerWidth/2-e(this).data("original_width")/2,n=y.horizon-e(this).data("original_height")/2):(t=y.horizon-e(this).data("original_width")/2,n=b.containerHeight/2-e(this).data("original_height")/2),e(this).css({left:t,top:n,visibility:"visible",position:"absolute","z-index":0,opacity:0}).data({top:n,left:t,oldPosition:0,currentPosition:0,depth:0,opacity:0}).show()}))}function d(){y.startingItem=0===y.startingItem?Math.round(b.totalItems/2):y.startingItem,b.rightItemsCount=Math.ceil((b.totalItems-1)/2),b.leftItemsCount=Math.floor((b.totalItems-1)/2),b.carouselRotationsLeft=1,u(b.items[y.startingItem-1],0),b.items[y.startingItem-1].css("opacity",1);for(var e=y.startingItem-1,t=1;t<=b.rightItemsCount;t++)e<b.totalItems-1?e+=1:e=0,b.items[e].css("opacity",1),u(b.items[e],t);for(e=y.startingItem-1,t=-1;t>=-1*b.leftItemsCount;t--)e>0?e-=1:e=b.totalItems-1,b.items[e].css("opacity",1),u(b.items[e],t)}function c(e,t){var n=Math.abs(t);if(n<y.flankingItems+1)var i=b.calculations[n];else i=b.calculations[y.flankingItems+1];var o,r=Math.pow(y.sizeMultiplier,n),a=r*e.data("original_width"),s=r*e.data("original_height"),l=(Math.abs(e.width()-a),Math.abs(e.height()-s),i.offset),d=i.distance;if(t<0&&(d*=-1),"horizontal"==y.orientation)var c=(p=b.containerWidth/2)+d-a/2,u=y.horizon-l-s/2;else{var p=b.containerHeight/2;c=y.horizon-l-a/2,u=p+d-s/2}o=0===t?1:i.opacity;var h=y.flankingItems+2-n;e.data("width",a),e.data("height",s),e.data("top",u),e.data("left",c),e.data("oldPosition",e.data("currentPosition")),e.data("depth",h),e.data("opacity",o)}function u(e,t){Math.abs(t)<=y.flankingItems+1?(c(e,t),b.itemsAnimating++,e.css("z-index",e.data().depth).animate({left:e.data().left,width:e.data().width,height:e.data().height,top:e.data().top,opacity:e.data().opacity},b.currentSpeed,y.animationEasing,(function(){p(e,t)}))):(e.data("currentPosition",t),0===e.data("oldPosition")&&e.css({left:e.data().left,width:e.data().width,height:e.data().height,top:e.data().top,opacity:e.data().opacity,"z-index":e.data().depth}))}function p(t,n){b.itemsAnimating--,t.data("currentPosition",n),0===n&&(b.currentCenterItem=t),0===b.itemsAnimating&&(b.carouselRotationsLeft-=1,b.currentlyMoving=!1,b.carouselRotationsLeft>0?h(0):(b.currentSpeed=y.speed,b.currentCenterItem.addClass(y.activeClassName),e(".maps-carousel span").hide(),e(".maps-carousel span[data-shown-image-id='"+b.currentCenterItem.attr("id")+"']").show(),!1===b.performingSetup&&(y.movedToCenter(b.currentCenterItem),y.movedFromCenter(b.previousCenterItem)),b.performingSetup=!1,i()))}function h(t){if(!1===b.currentlyMoving){b.currentCenterItem.removeClass(y.activeClassName),b.currentlyMoving=!0,b.itemsAnimating=0,b.carouselRotationsLeft+=t,!0===y.quickerForFurther&&(t>1&&(b.currentSpeed=y.speed/t),b.currentSpeed=b.currentSpeed<100?100:b.currentSpeed);for(var n=0;n<b.totalItems;n++){var i,o=e(b.items[n]),r=o.data("currentPosition"),a=(i="forward"==b.currentDirection?r-1:r+1)>0?b.rightItemsCount:b.leftItemsCount;Math.abs(i)>a&&(i=-1*r,b.totalItems%2==0&&(i+=1)),u(o,i)}}}function f(){var e=b.currentCenterItem.next();return e.length<=0&&(e=b.currentCenterItem.parent().children().first()),e}function m(){var e=b.currentCenterItem.prev();return e.length<=0&&(e=b.currentCenterItem.parent().children().last()),e}function g(e){!1===b.currentlyMoving&&(b.previousCenterItem=b.currentCenterItem,y.movingFromCenter(b.currentCenterItem),"backward"==e?(y.movingToCenter(m()),b.currentDirection="backward"):"forward"==e&&(y.movingToCenter(f()),b.currentDirection="forward")),h(1)}if(this.length>1)return this.each((function(){e(this).waterwheelCarousel(t)})),this;var v=this,y={},b={};return e(this).find("div.wwkt").bind("click",(function(){var t=e(this).data().currentPosition;if(0!=y.imageNav&&!(Math.abs(t)>=y.flankingItems+1)){b.currentlyMoving&&(b.currentlyMoving=!1),b.previousCenterItem=b.currentCenterItem,i(!0),y.autoPlay=0;var n=Math.abs(t);0==t?y.clickedCenter(e(this)):(y.movingFromCenter(b.currentCenterItem),y.movingToCenter(e(this)),t<0?(b.currentDirection="backward",h(n)):t>0&&(b.currentDirection="forward",h(n)))}})),e(this).find("div.wwkt").on("mousedown",(function(e){b.mcox=e.pageX})),e(this).find("div.wwkt").on("mousemove",(function(e){b.cox=e.pageX})),e(this).find("div.wwkt").on("mouseup",(function(){b.mcox<b.cox&&(b.currentDirection="backward",h(Math.abs(1))),b.mcox>b.cox&&(b.currentDirection="forward",h(Math.abs(1))),b.previousCenterItem=b.currentCenterItem})),e(this).find("a").bind("click",(function(t){var n=0==e(this).find("div.wwkt").data("currentPosition");if(1===y.linkHandling||2===y.linkHandling&&!n)return t.preventDefault(),!1})),e(document).keydown((function(e){if(y.keyboardNav&&(37===e.which&&"horizontal"==y.orientation||38===e.which&&"vertical"==y.orientation?(i(!0),y.autoPlay=0,g("backward")):(39===e.which&&"horizontal"==y.orientation||40===e.which&&"vertical"==y.orientation)&&(i(!0),y.autoPlay=0,g("forward")),y.keyboardNavOverride&&("horizontal"==y.orientation&&(37===e.which||39===e.which)||"vertical"==y.orientation&&(38===e.which||40===e.which))))return e.preventDefault(),!1})),this.reload=function(t){if("object"==typeof t);else;y=e.extend({},e.fn.waterwheelCarousel.defaults,t),n(),b.itemsContainer.find("div.wwkt").hide(),a(),o((function(){r(),s(),l(),d()}))},this.next=function(){i(!0),y.autoPlay=0,g("forward")},this.prev=function(){i(!0),y.autoPlay=0,g("backward")},this.reload(t),this},e.fn.waterwheelCarousel.defaults={startingItem:1,separation:100,separationMultiplier:.6,horizonOffset:0,horizonOffsetMultiplier:1,sizeMultiplier:.8,opacityMultiplier:.9,horizon:0,flankingItems:3,speed:500,animationEasing:"linear",quickerForFurther:!0,edgeFadeEnabled:!1,linkHandling:2,autoPlay:0,orientation:"horizontal",activeClassName:"carousel-center",keyboardNav:!1,keyboardNavOverride:!0,imageNav:!0,preloadImages:!1,forcedImageWidth:500,forcedImageHeight:500,movingToCenter:e.noop,movedToCenter:e.noop,clickedCenter:e.noop,movingFromCenter:e.noop,movedFromCenter:e.noop}}(jQuery),window.Payments=$.extend(!0,window.Payments||{},{validateCardAndAcquireToken:function(e,t,n){Page.stripe.createToken(Page.stripeCard,{}).then((function(e){e.error?n(e.error.message):t(e.token.id)}))}}),window.UI=$.extend(!0,window.UI||{},{cartModal:{modal:function(){return $("#order-modal")},form:function(){return $("#order-form")},init:function(){var e=UI.cartModal;e.modal();e.setupCardFields(),e.toggleForm(!0),e.attachBindings()},setupCardFields:function(){Page.stripe=Stripe(gon.global.stripe_public_key);var e=Page.stripe.elements(),t={base:{fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"13px",color:"#000","::placeholder":{color:"#BBB"}}};Page.stripeCard=e.create("cardNumber",{style:t}),Page.stripeCard.mount("#card-number"),e.create("cardExpiry",{style:t}).mount("#card-expiry"),e.create("cardCvc",{style:t}).mount("#card-cvc")}
7,toggleNewProjectArea:function(){var e=UI.cartModal.modal();"new"==e.find("#project_id").val()?e.find("#new-project").show():e.find("#new-project").hide()},paymentTypeChanged:function(){var e=UI.cartModal,t=e.modal();"card"==t.find("input[name='payment_type']:checked").val()?t.find("#card-fields").show():t.find("#card-fields").hide(),"bill"==t.find("input[name='payment_type']:checked").val()?(t.find("#po-fields").show(),e.togglePONumber(t)):(t.find("#po-fields").hide(),t.find("#po_number").attr("disabled","disabled"))},stripeResponseHandler:function(e){var t=UI.cartModal.form();t.append("<input type='hidden' id='token' name='token' value='"+e+"'/>"),t.submit()},errorRenderer:function(e){var t=UI.cartModal,n=t.form();n.prepend('<div id="card-error-message" class="alert alert-error">'+e+"</div>"),n.find("#token").remove(),t.toggleForm(!0)},toggleForm:function(e){var t=UI.cartModal.modal();1==e?(t.find("#checkout-button").removeAttr("disabled"),t.find("#submit-spinner").hide()):(t.find("#checkout-button").attr("disabled","disabled"),t.find("#submit-spinner").show())},cartSubmit:function(e){var t=UI.cartModal,n=(t.modal(),t.form());t.toggleForm(!1),n.find("#card-error-message").remove();var i=n.find(".existing-card-payment-options :checked").val(),o="card"==n.find("#payment_type").val()||"card"==i,r=n.data("is-card-required"),a=$(".contents .no-items").size()>0,s=n.find("#token").val();return o&&!s?(e.preventDefault(),Payments.validateCardAndAcquireToken(n,t.stripeResponseHandler,t.errorRenderer),!1):!(a||!s&&r)||(e.preventDefault(),t.toggleForm(!0),!1)},attachBindings:function(){var e=UI.cartModal,t=e.modal(),n=e.form(),i=t.find("#checkout"),o=$("#map-contents"),r=$("#order-modal-header"),a=$("#basket-buttons"),s=$(".cart-tos");n.unbind("submit").submit(e.cartSubmit),t.find("#code-link").click((function(e){e.preventDefault(),t.find("#got-code").hide(),t.find("#enter-code").show()})),t.find("#hide-cart-checkout").click((function(e){e.preventDefault(),t.removeClass("checkout-active"),r.find("h4").text("Basket"),r.find(".top-tip").slideDown(),a.slideDown(),o.slideDown(),s.slideDown(),i.slideUp()})),t.find("#show-cart-checkout").click((function(e){e.preventDefault(),t.addClass("checkout-active"),r.find("h4").text("Checkout"),r.find(".top-tip").slideUp(),a.slideUp(),o.slideUp(),s.slideUp(),i.slideDown(),t.find("#order_discount_from_code").val()?t.find("#discount-code-form").submit():i.show()})),t.find("#project_id").change(e.toggleNewProjectArea),t.find("input[name='assign_project']").change((function(){"true"==t.find("input[name='assign_project']:checked").val()?(t.find("#project_id").removeAttr("disabled"),e.toggleNewProjectArea()):(t.find("#project_id").attr("disabled","disabled"),t.find("#new-project").hide())})),t.find("input[name='add_po']").change((function(){e.togglePONumber(t)})),t.find("input[name='payment_type']").change(e.paymentTypeChanged),t.find(".existing-card-payment-options").length&&e.paymentTypeChanged()},togglePONumber:function(e){"true"==e.find("input[name='add_po']:checked").val()?e.find("#po_number").removeAttr("disabled"):e.find("#po_number").attr("disabled","disabled")}}}
7),$.fn.refresh=function(){var e=$(this.selector);return this.splice(0,this.length),this.push.apply(this,e),this};var setCsrfToken=!0;$((function(){var e=$('meta[name="csrf-token"]').attr("content");$.ajaxSetup({beforeSend:function(t){setCsrfToken&&t.setRequestHeader("X-CSRF-Token",e)}})})),$(document).ready((function(){$('[data-toggle="popover"]').popover()})),WebFontConfig={google:{families:["PT+Sans:400,400italic,700:latin"]}},function(){var e=document.createElement("script");e.src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",e.type="text/javascript",e.async="true";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),$(document).ready((function(){$("div.toggle-password").click((function(e){e.preventDefault();var t=$(this).find("span.glyphicon"),n=$(this).find("span.tp-label"),i=$("input.user-password");"password"==i.attr("type")?(i.attr("type","text"),t.toggleClass("glyphicon-eye-open glyphicon-eye-close"),n.html("Hide")):(i.attr("type","password"),t.toggleClass("glyphicon-eye-close glyphicon-eye-open"),n.html("Show"))}))})),function(e,t){"use strict";e(document),e(t),t.SITE||(t.SITE={}),t.SITE=e.extend(t.SITE,{History:{apiUrl:"",create:function(e,n){return n=n||{},Object.create(t.SITE.History.prototype)},prototype:{mobilecheck:function(){var e,n;return e=!1,n=navigator.userAgent||navigator.vendor||t.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(e=!0),e}
7,urlParams:function(){return this.deserialize(t.location.search.replace(/&/g,"&"))},updateState:function(n,i){var o,r,a;if(o=this,void 0!==i){for(a in r=e.extend({},o.urlParams(),i))void 0===r[a]&&delete r[a];t.history.pushState&&t.history.pushState(n,"/","?"+o.serialize(r)+t.location.hash)}},deserialize:function(e){var t,n;try{return(n=e.substring(1)).indexOf("=")>-1&&n?JSON.parse('{"'+n.replace(/&/g,'","').replace(RegExp("=","g"),'":"')+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)})):{}}catch(e){return t=e,console.log(t),{}}},serialize:function(t){return e.param(t)}}}})}(jQuery,this),$((function(){$("select#nature").on("change",(function(){$(this).val(),$(".query-option").hide(),$($(this).val()).removeClass("hidden").show()})),$("#query-details-link").on("click",(function(e){e.preventDefault(),$(".query-details").removeClass("hidden"),$(this).hide()}))})),$((function(){$("form .search-type-selector .dropdown-menu a").on("click",(function(e){var t=$(this).parents("form");$(e.target).attr("data-value")&&(t.find('[name="search_type"]').val($(e.target).attr("data-value")),t.find('[name="postcode"]').attr("placeholder",$(this).attr("data-placeholder")),t.find(".dropdown-toggle span.title").html($(e.target).html())),t.find('[name="postcode"]').trigger("focus")}))})),$((function(){if($(".interactive-panel").is(":visible")){var e=$(".interactive-panel li[data-layer]"),t=400;e.on("click",(function(n){var i=$(n.currentTarget);e.each((function(e,n){$(n).data("layer")!==i.data("layer")&&$(n).hasClass("active")&&$(n).find("p").slide
7Up(t,(function(){$(n).removeClass("active"),$(".jumbotron .map-demo-layer[data-layer='"+$(n).data("layer")+"']").css({opacity:"0"})}))})),i.hasClass("active")||($(".jumbotron .map-demo-layer[data-layer='"+i.data("layer")+"']").css({opacity:"1"}),i.find("p").slideDown(t,(function(){i.addClass("active")})))}));var n=5e3,i=setInterval(o,n);function o(){var t=e.filter(".active");(t.next().length>0?t.next():e.first()).trigger("click")}$(".interactive-panel").on("mouseenter",(function(){clearInterval(i),i=0})).on("mouseleave",(function(){0===i&&(i=setInterval(o,n))}))}})),$((function(){var e=$(".demo-display .demo[data-demo]");e.on("click",(function(t){var n=$(t.currentTarget);if(e.each((function(e,t){$(t).data("demo")!==n.data("demo")&&$(t).hasClass("active")&&($(t).removeClass("active"),$(".demo-display .demo-display-viewer .demo-layer[data-video='"+$(t).data("demo")+"']").css({opacity:"0"}))})),!n.hasClass("active")){n.addClass("active");var i=$(".demo-display .demo-display-viewer .demo-layer[data-video='"+n.data("demo")+"']").css({opacity:"1"}).find("video")[0];i.currentTime=0,i.play()}}))})),$(document).ready((function(){$("#modal-about-video").on("show.bs.modal",(function(){this.querySelector("video").play()})),$("#modal-about-video").on("hide.bs.modal",(function(){this.querySelector("video").pause()}))})),$(document).ready((function(){showImage(index)})),$((function(){var e=4e3,t=setInterval((function(){nextImage(1)}),e);$(".gallery").on("mouseenter",(function(){clearInterval(t),t=0})).on("mouseleave",(function(){0===t&&(t=setInterval((function(){nextImage(1)}),e))}))}));var index=1;document.addEventListener("DOMContentLoaded",(function(){function e(e){return e.querySelector("#postcode")||e.querySelector('[name="postcode"]')}function t(e,t,n){const i=e.querySelector('[name="'+t+'"]');i&&(i.value=n)}function n(n){const i=n.dataset.currentSearchType;if(!i)return;t(n,"search_type",i);const o=n.querySelector('[data-search-type] .dropdown-menu a[data-value="'+i+'"]'),r=e(n);o&&r&&r.setAttribute("placeholder",o.getAttribute("data-placeholder"))}function i(i){n(i);const o=i.querySelector('[name="search_type"]')&&i.querySelector('[name="search_type"]').value,r=e(i),a=r&&r.value&&r.value.trim();if(o&&a)if(t(i,"easting",""),t(i,"northing",""),t(i,"gridreference",""),t(i,"lat",""),t(i,"long",""),"gridreference"===o)t(i,"gridreference",a);else if("easting_northing"===o){const e=a.split(",");t(i,"easting",(e[0]||"").trim()),t(i,"northing",(e[1]||"").trim())}else if("lat_lon"===o){const e=a.split(",");t(i,"lat",(e[0]||"").trim()),t(i,"long",(e[1]||"").trim())}}function o(){document.querySelectorAll("form.search-place, form.form-search-modal").forEach((function(e){n(e),e.addEventListener("submit",(function(e){e.target.matches("form.search-place, form.form-search-modal")&&(i(e.target),e.target.classList.add("searching"))}))}))}const r=document.querySelector("#search-results"),a=$("#search-results-modal");r&&($(r).selectpicker(),o(),r.addEventListener("change",(function(e){const t=e.target.value;t.length&&("all_results"===t?a.refresh().modal():window.location=t)}),!1),$("[data-component=\"search-form\"] [data-search-type] .dropdown-menu a[data-default='true']").click(),document.querySelectorAll('[data-component="search-form"] [data-search-type] .dropdown-menu a').forEach((function(n){n.addEventListener("click",(function(n){if(n.target.getAttribute("data-value")){const i=this.closest("form"),o=n.target.getAttribute("data-value");if(i){t(i,"search_type",o),i.dataset.currentSearchType=o;const n=e(i);n&&n.setAttribute("placeholder",this.getAttribute("data-placeholder"))}const r=this.closest("[data-search-type]");if(r){const e=r.querySelector("button span.title");e&&(e.innerHTML=n.target.innerHTML)}const a=i&&e(i);a&&a.focus()}}))})),$("#new_postcode #long").hide(),$("input[name='search_type']").on("change",(function(){var e=$
7("#new_postcode #postcode"),t=$("#new_postcode #long");"postcode"==$(this).val()?(e.attr("name","postcode"),e.attr("placeholder","e.g. TW1 1AA"),t.hide()):"easting_northing"==$(this).val()?(e.attr("name","easting"),e.attr("placeholder","OS Easting e.g. 514741"),t.attr("name","northing"),t.attr("placeholder","OS Northing e.g. 171462"),t.show()):"placename"==$(this).val()?(e.attr("name","placename"),e.attr("placeholder","Place name e.g. Exeter school"),t.hide()):"gridreference"==$(this).val()?(e.attr("name","gridreference"),e.attr("placeholder","OS Grid Ref. e.g. TQ 3064 7552"),t.hide()):"lat_lon"==$(this).val()&&(e.attr("name","lat"),e.attr("placeholder","Latitude e.g. 52.345701"),t.attr("name","long"),t.attr("placeholder","Longitude e.g. 0.660334"),t.show())})))})),document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector('[data-component="hero_search"]');if(e){const t=e.querySelector(".ktrv"),n=e.querySelector('[data-component-action="previous"]'),i=e.querySelector('[data-component-action="next"]'),o=$(t).waterwheelCarousel({autoPlay:2e3,flankingItems:1,separation:160,opacityMultiplier:.4,forcedImageWidth:"70%",forcedImageHeight:"100%",edgeFadeEnabled:!0});n&&n.addEventListener("click",(function(){return o.prev(),!1})),i&&i.addEventListener("click",(function(){return o.next(),!1}))}}));const SIMPLE_GALLERY_AUTOPLAY_DELAY_MS=4e3,simpleGalleryAutoplayState=new WeakMap;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll('[data-component="simple-gallery"]').forEach(initSimpleGalleryAutoplay)})):document.querySelectorAll('[data-component="simple-gallery"]').forEach(initSimpleGalleryAutoplay),function(e){"use strict";var t={init:function(){this.$form=e(".heritage-statement-order__form[data-required-upload-slots]"),this.$form.length&&(this.requiredSlots=JSON.parse(this.$form.attr("data-required-upload-slots")),this.uploadUrl=this.$form.data("uploadUrl")||this.$form.attr("data-upload-url"),this.$continue=e("#heritage-upload-continue"),this.bindEvents(),this.refreshAllSlotStates(),this.updateContinueButton())},bindEvents:function(){var t=this 8;this.$form.on("change",".heritage-upload-input",(function(){t.uploadFiles(this)})),this.$form.on("click",".heritage-upload-dropzone",(function(t){if(!e(t.target).closest(".heritage-upload-file__remove").length){var n=e(this).find(".heritage-upload-input");n.length&&!e(t.target).is(n)&&(t.preventDefault(),n.trigger("click"))}})),this.$form.on("keydown",".heritage-upload-dropzone",(function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e(this).find(".heritage-upload-input").trigger("click"))})),this.$form.on("dragenter dragover",".heritage-upload-dropzone",(function(t){t.preventDefault(),t.stopPropagation(),e(this).addClass("is-dragover")})),this.$form.on("dragleave drop",".heritage-upload-dropzone",(function(t){t.preventDefault(),t.stopPropagation(),e(this).removeClass("is-dragover")})),this.$form.on("drop",".heritage-upload-dropzone",(function(n){var i=n.originalEvent.dataTransfer&&n.originalEvent.dataTransfer.files;if(i&&i.length){var o=e(this).find(".heritage-upload-input");o.length&&!o.prop("disabled")&&t.uploadFileList(o[0],i)}})),this.$form.on("click",".heritage-upload-file__remove",(function(e){t.removeFile(e,this)})),this.$form.on("submit",(function(e){t.allRequiredSlotsComplete()||e.preventDefault()}))},csrfToken:function(){return e('meta[name="csrf-token"]').attr("content")},escapeHtml:function(t){return e("<div>").text(t).html()},formatFileSize:function(e){if(null==e||isNaN(e))return"";var t=e/1048576;if(t>=.1)return"("+t.toFixed(1)+" MB)";var n=e/1024;return"("+Math.max(n,.1).toFixed(1)+" KB)"},uploadFiles:function(e){e.files&&e.files.length&&this.uploadFileList(e,e.files)},uploadFileList:function(t,n){var i=this,o=e(t),r=o.data("slotKey");if(n&&n.length){var a=new FormData,s=i.csrfToken();a.append("slot_key",r),s&&a.append("authenticity_token",s);for(var l=0;l<n.length;l++)a.append("heritage_statement_order_form[uploads]["+r+"][]",n[l]);o.prop("disabled",!0),o.closest(".heritage-upload-dropzone").addClass("is-uploading"),e.ajax({url:i.uploadUrl,type:"POST",data:a,processData:!1,contentType:!1,dataType:"json",xhrFields:{withCredentials:!0},headers:s?{"X-CSRF-Token":s}:{}}
8).done((function(e){e.attachments.forEach((function(t){i.appendAttachment(e.slot_key,e.required,t)})),e.errors.length?i.showSlotError(e.slot_key,e.errors[0]):i.clearSlotError(e.slot_key),i.refreshSlotState(e.slot_key,e.required),i.updateContinueButton()})).fail((function(e){var t="Upload failed. Please try again.";401===e.status?t="Your session has expired. Please refresh the page and log in again.":422===e.status?t="Upload was rejected. Please refresh the page and try again.":e.status?t="Upload failed (HTTP "+e.status+"). Please try again.":e.responseJSON&&e.responseJSON.error?t=e.responseJSON.error:0===e.status&&(t="Upload failed due to a network error. Please check your connection and try again."),i.showSlotError(r,t)})).always((function(){o.val(""),o.prop("disabled",!1),o.closest(".heritage-upload-dropzone").removeClass("is-uploading")}))}},appendAttachment:function(t,n,i){if(!e("#heritage-upload-file-"+i.id).length){var o="";null!=i.byte_size&&(o='<span class="heritage-upload-file__size">'+this.escapeHtml(this.formatFileSize(i.byte_size))+"</span>");var r='<li class="heritage-upload-file" id="heritage-upload-file-'+i.id+'" data-slot-key="'+this.escapeHtml(t)+'" data-required="'+n+'"><span class="heritage-upload-file__meta"><span class="heritage-upload-file__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg></span><span class="heritage-upload-file__name">'+this.escapeHtml(i.filename)+"</span>"+o+'</span><a href="'+this.escapeHtml(i.remove_url)+'" class="heritage-upload-file__remove" aria-label="Remove '+this.escapeHtml(i.filename)+'">Remove</a></li>';e("#heritage-upload-files-"+t).append(r)}},removeFile:function(t,n){t.preventDefault();var i=this,o=e(n),r=o.closest(".heritage-upload-file"),a=o.attr("href"),s=r.data("slotKey"),l=r.data("required");e.ajax({url:a,type:"DELETE",dataType:"json",xhrFields:{withCredentials:!0},headers:{"X-CSRF-Token":i.csrfToken()}}).done((function(e){r.remove();var t=e.slot_key||s,n=null!=e.required?e.required:l;i.updateSlotRequiredState(t,n,e.attached_count),i.refreshSlotState(t,n),i.updateContinueButton()})).fail((function(e){var t="Could not remove file. Please try again.";e.responseJSON&&e.responseJSON.error&&(t=e.responseJSON.error),i.showSlotError(s,t)}))},showSlotError:function(t,n){var i=e("#heritage-upload-slot-"+t);i.addClass("has-error"),i.find(".heritage-upload-slot-error").remove(),e("#heritage-upload-files-"+t).after('<span class="help-block text-danger heritage-upload-slot-error">'+this.escapeHtml(n)+"</span>"),this.refreshSlotState(t)},clearSlotError:function(t){var n=e("#heritage-upload-slot-"+t);n.removeClass("has-error"),n.find(".heritage-upload-slot-error").remove()},updateSlotRequiredState:function(e,t,n){t&&0===n?this.showSlotError(e,"At least one file required"):this.clearSlotError(e)},slotFileCount:function(t){return e("#heritage-upload-files-"+t+" .heritage-upload-file").length},refreshSlotState:function(t,n){var i=e("#heritage-upload-slot-"+t);if(i.length){var o=null!=n?n:"true"===String(i.data("required")),r=this.slotFileCount(t);o&&r>0?i.addClass("is-complete"):i.removeClass("is-complete")}},refreshAllSlotStates:function(){var t=this;this.$form.find(".heritage-upload-slot").each((function(){var n=e(this);t.refreshSlotState(n.data("slotKey"),n.data("required"))}))},allRequiredSlotsComplete:function(){var e=this;return this.requiredSlots.every((function(t){return e.slotFileCount(t)>0}))},updateContinueButton:function(){this.$continue.length&&this.$continue.prop("disabled",!this.allRequiredSlotsComplete())}};window.HeritageStatementUploads=t,e((function(){t.init()}))}(jQuery),function(e){"use strict";const t={init:function(){this.$fields=e(".heritage-proposal-field[data-show-if-key]"),this.$fields.length&&(this.bindEvents(),this.updateVisibility())},bindEvents:function(){const t=this;e(document).on("change",".heritage-proposal-select",(function(){t.updateVisibility()}))},updateVisibility:function(){this.$fields.each((function(){const t=e(this),n=t.data("show-if-key"),i=String(t.data("show-if-value")),o=e('.heritage-proposal-select[data-proposal-key="'+n+'"]'),r=o.length?String(o.val()||""):"";t.toggle(r===i)}))}};e((function(){t.init()}))}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.