Packages
ex_debug_toolbar
0.3.0
A debug web toolbar for Phoenix projects to display all sorts of information about request
Current section
Files
Jump to
Current section
Files
priv/static/js/toolbar.js
!function(){"use strict";var t="undefined"==typeof window?global:window;if("function"!=typeof t.require){var e={},n={},i={},r={}.hasOwnProperty,s=/^\.\.?(\/|$)/,o=function(t,e){for(var n,i=[],r=(s.test(e)?t+"/"+e:e).split("/"),o=0,a=r.length;o<a;o++)n=r[o],".."===n?i.pop():"."!==n&&""!==n&&i.push(n);return i.join("/")},a=function(t){return t.split("/").slice(0,-1).join("/")},l=function(e){return function(n){var i=o(a(e),n);return t.require(i,e)}},c=function(t,e){var i=null;i=g&&g.createHot(t);var r={id:t,exports:{},hot:i};return n[t]=r,e(r.exports,l(t),r),r.exports},u=function(t){return i[t]?u(i[t]):t},h=function(t,e){return u(o(a(t),e))},f=function(t,i){null==i&&(i="/");var s=u(t);if(r.call(n,s))return n[s].exports;if(r.call(e,s))return c(s,e[s]);throw new Error("Cannot find module '"+t+"' from '"+i+"'")};f.alias=function(t,e){i[e]=t};var p=/\.[^.\/]+$/,d=/\/index(\.[^\/]+)?$/,m=function(t){if(p.test(t)){var e=t.replace(p,"");r.call(i,e)&&i[e].replace(p,"")!==e+"/index"||(i[e]=t)}if(d.test(t)){var n=t.replace(d,"");r.call(i,n)||(i[n]=t)}};f.register=f.define=function(t,i){if("object"==typeof t)for(var s in t)r.call(t,s)&&f.register(s,t[s]);else e[t]=i,delete n[t],m(t)},f.list=function(){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t};var g=t._hmr&&new t._hmr(h,f,e,n);f._cache=n,f.hmr=g&&g.wrap,f.brunch=!0,t.require=f}}(),function(){var t,e=window,n=function(t,e,n){var i={},r=function(e,n){var s;try{return s=t(n+"/node_modules/"+e)}catch(o){if(o.toString().indexOf("Cannot find module")===-1)throw o;if(n.indexOf("node_modules")!==-1){var a=n.split("/"),l=a.lastIndexOf("node_modules"),c=a.slice(0,l).join("/");return r(e,c)}}return i};return function(s){if(s in e&&(s=e[s]),s){if("."!==s[0]&&n){var o=r(s,n);if(o!==i)return o}return t(s)}}};require.register("bootstrap-sass/assets/javascripts/bootstrap.js",function(t,e,i){e=n(e,{},"bootstrap-sass"),function(){if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.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")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof e&&r[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){o.detach().trigger("closed.bs.alert").remove()}var r=t(this),s=r.attr("data-target");s||(s=r.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var o=t("#"===s?[]:s);e&&e.preventDefault(),o.length||(o=r.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.button"),s="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,s)),"toggle"==e?r.toggle():e&&r.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",s=i.data();e+="Text",null==s.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(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(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),o="string"==typeof e?e:s.slide;r||i.data("bs.carousel",r=new n(this,s)),"number"==typeof e?r.to(e):o?r[o]():s.interval&&r.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),i="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(i&&!this.options.wrap)return e;var r="prev"==t?-1:1,s=(n+r)%this.$items.length;return this.$items.eq(s)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},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(e,i){var r=this.$element.find(".item.active"),s=i||this.getItemForDirection(e,r),o=this.interval,a="next"==e?"left":"right",l=this;if(s.hasClass("active"))return this.sliding=!1;var c=s[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(s)]);h&&h.addClass("active")}var f=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,r.addClass(a),s.addClass(a),r.one("bsTransitionEnd",function(){s.removeClass([e,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(f)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(f)),o&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),s=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var o=t.extend({},s.data(),r.data()),a=r.attr("data-slide-to");a&&(o.interval=!1),e.call(s,o),a&&s.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),+function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),r=n.data("bs.collapse"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),r||n.data("bs.collapse",r=new i(this,s)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.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.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"),e&&e.transitioning))){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[o](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.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 r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var s=e(r),o=s.data("bs.collapse"),a=o?"toggle":r.data();n.call(s,a)})}(jQuery),+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(r).remove(),t(s).each(function(){var i=t(this),r=e(i),s={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",s)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",s)))))}))}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof e&&i[e].call(n)})}var r=".dropdown-backdrop",s='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.7",o.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var s=e(r),o=s.hasClass("open");if(n(),!o){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(s.trigger(i=t.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},o.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=e(i),o=r.hasClass("open");if(!o&&27!=n.which||o&&27==n.which)return 27==n.which&&r.find(s).trigger("focus"),i.trigger("click");var a=" li:not(.disabled):visible a",l=r.find(".dropdown-menu"+a);if(l.length){var c=l.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,o.prototype.toggle).on("keydown.bs.dropdown.data-api",s,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,i){return this.each(function(){var r=t(this),s=r.data("bs.modal"),o=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);s||r.data("bs.modal",s=new n(this,o)),"string"==typeof e?s[e](i):o.show&&s.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(s)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),r=i.attr("href"),s=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),o=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},s.data(),i.data());i.is("a")&&n.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(s,o,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),s="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.tooltip",r=new n(this,s)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.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}},n.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),s=r.length;s--;){var o=r[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var r=this,s=this.tip(),o=this.getUID(this.type);this.setContent(),s.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&s.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),h=s[0].offsetWidth,f=s[0].offsetHeight;if(c){var p=a,d=this.getPosition(this.$viewport);a="bottom"==a&&u.bottom+f>d.bottom?"top":"top"==a&&u.top-f<d.top?"bottom":"right"==a&&u.right+h>d.width?"left":"left"==a&&u.left-h<d.left?"right":a,s.removeClass(p).addClass(a)}var m=this.getCalculatedOffset(a,u,h,f);this.applyPlacement(m,a);var g=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",g).emulateTransitionEnd(n.TRANSITION_DURATION):g()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,s=i[0].offsetHeight,o=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top+=o,e.left+=a,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=s&&(e.top=e.top+s-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var h=/top|bottom/.test(n),f=h?2*u.left-r+l:2*u.top-s+c,p=h?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(f,i[0][p],h)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(e){function i(){"in"!=r.hoverState&&s.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),e&&e()}var r=this,s=t(this.$tip),o=t.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var s=window.SVGElement&&n instanceof window.SVGElement,o=i?{top:0,left:0}:s?null:e.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,a,l,o)},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var s=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-o.scroll,l=e.top+s-o.scroll+i;a<o.top?r.top=o.top-a:l>o.top+o.height&&(r.top=o.top+o.height-l)}else{var c=e.left-s,u=e.left+s+n;c<o.left?r.left=o.left-c:u>o.right&&(r.left=o.left+o.width-u)}return r},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.popover"),s="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.popover",r=new n(this,s)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow");};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),+function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.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",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),s="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,s)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),s=/^#./.test(r)&&t(r);return s&&s.length&&s.is(":visible")&&[[s[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,s=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return o!=(t=s[s.length-1])&&this.activate(t);if(o&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)o!=s[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(s[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),s=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(s),e.trigger(o),!o.isDefaultPrevented()&&!s.isDefaultPrevented()){var a=t(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(e,i,r){function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var o=i.find("> .active"),a=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(n.TRANSITION_DURATION):s(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.affix"),s="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,s)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),s=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=s.top)&&"bottom":!(r+o<=t-i)&&"bottom";var a=null==this.affixed,l=a?r:s.top,c=a?o:e;return null!=n&&r<=n?"top":null!=i&&l+c>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,s=i.bottom,o=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(s=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof s&&(s=i.bottom(this.$element));var a=this.getState(o,e,r,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-e-s})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery)}()}),require.register("jquery/dist/jquery.js",function(t,e,i){e=n(e,{},"jquery"),function(){!function(t,e){"use strict";"object"==typeof i&&"object"==typeof i.exports?i.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function n(t,e){e=e||nt;var n=e.createElement("script");n.text=t,e.head.appendChild(n).parentNode.removeChild(n)}function i(t){var e=!!t&&"length"in t&&t.length,n=mt.type(t);return"function"!==n&&!mt.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function s(t,e,n){return mt.isFunction(e)?mt.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?mt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?mt.grep(t,function(t){return at.call(e,t)>-1!==n}):kt.test(e)?mt.filter(e,t,n):(e=mt.filter(e,t),mt.grep(t,function(t){return at.call(e,t)>-1!==n&&1===t.nodeType}))}function o(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e={};return mt.each(t.match(Rt)||[],function(t,n){e[n]=!0}),e}function l(t){return t}function c(t){throw t}function u(t,e,n,i){var r;try{t&&mt.isFunction(r=t.promise)?r.call(t).done(e).fail(n):t&&mt.isFunction(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function h(){nt.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),mt.ready()}function f(){this.expando=mt.expando+f.uid++}function p(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Ht.test(t)?JSON.parse(t):t)}function d(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Bt,"-$&").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n=p(n)}catch(r){}jt.set(t,e,n)}else n=void 0;return n}function m(t,e,n,i){var r,s=1,o=20,a=i?function(){return i.cur()}:function(){return mt.css(t,e,"")},l=a(),c=n&&n[3]||(mt.cssNumber[e]?"":"px"),u=(mt.cssNumber[e]||"px"!==c&&+l)&&qt.exec(mt.css(t,e));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do s=s||".5",u/=s,mt.style(t,e,u+c);while(s!==(s=a()/l)&&1!==s&&--o)}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}function g(t){var e,n=t.ownerDocument,i=t.nodeName,r=Vt[i];return r?r:(e=n.body.appendChild(n.createElement(i)),r=mt.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Vt[i]=r,r)}function y(t,e){for(var n,i,r=[],s=0,o=t.length;s<o;s++)i=t[s],i.style&&(n=i.style.display,e?("none"===n&&(r[s]=Pt.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&Ut(i)&&(r[s]=g(i))):"none"!==n&&(r[s]="none",Pt.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}function v(t,e){var n;return n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&r(t,e)?mt.merge([t],n):n}function b(t,e){for(var n=0,i=t.length;n<i;n++)Pt.set(t[n],"globalEval",!e||Pt.get(e[n],"globalEval"))}function _(t,e,n,i,r){for(var s,o,a,l,c,u,h=e.createDocumentFragment(),f=[],p=0,d=t.length;p<d;p++)if(s=t[p],s||0===s)if("object"===mt.type(s))mt.merge(f,s.nodeType?[s]:s);else if(Xt.test(s)){for(o=o||h.appendChild(e.createElement("div")),a=(zt.exec(s)||["",""])[1].toLowerCase(),l=Yt[a]||Yt._default,o.innerHTML=l[1]+mt.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;mt.merge(f,o.childNodes),o=h.firstChild,o.textContent=""}else f.push(e.createTextNode(s));for(h.textContent="",p=0;s=f[p++];)if(i&&mt.inArray(s,i)>-1)r&&r.push(s);else if(c=mt.contains(s.ownerDocument,s),o=v(h.appendChild(s),"script"),c&&b(o),n)for(u=0;s=o[u++];)Gt.test(s.type||"")&&n.push(s);return h}function C(){return!0}function w(){return!1}function x(){try{return nt.activeElement}catch(t){}}function E(t,e,n,i,r,s){var o,a;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(a in e)E(t,a,n,i,e[a],s);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=w;else if(!r)return t;return 1===s&&(o=r,r=function(t){return mt().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=mt.guid++)),t.each(function(){mt.event.add(this,e,r,i,n)})}function k(t,e){return r(t,"table")&&r(11!==e.nodeType?e:e.firstChild,"tr")?mt(">tbody",t)[0]||t:t}function S(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function T(t){var e=re.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function A(t,e){var n,i,r,s,o,a,l,c;if(1===e.nodeType){if(Pt.hasData(t)&&(s=Pt.access(t),o=Pt.set(e,s),c=s.events)){delete o.handle,o.events={};for(r in c)for(n=0,i=c[r].length;n<i;n++)mt.event.add(e,r,c[r][n])}jt.hasData(t)&&(a=jt.access(t),l=mt.extend({},a),jt.set(e,l))}}function L(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Kt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function N(t,e,i,r){e=st.apply([],e);var s,o,a,l,c,u,h=0,f=t.length,p=f-1,d=e[0],m=mt.isFunction(d);if(m||f>1&&"string"==typeof d&&!pt.checkClone&&ie.test(d))return t.each(function(n){var s=t.eq(n);m&&(e[0]=d.call(this,n,s.html())),N(s,e,i,r)});if(f&&(s=_(e,t[0].ownerDocument,!1,t,r),o=s.firstChild,1===s.childNodes.length&&(s=o),o||r)){for(a=mt.map(v(s,"script"),S),l=a.length;h<f;h++)c=s,h!==p&&(c=mt.clone(c,!0,!0),l&&mt.merge(a,v(c,"script"))),i.call(t[h],c,h);if(l)for(u=a[a.length-1].ownerDocument,mt.map(a,T),h=0;h<l;h++)c=a[h],Gt.test(c.type||"")&&!Pt.access(c,"globalEval")&&mt.contains(u,c)&&(c.src?mt._evalUrl&&mt._evalUrl(c.src):n(c.textContent.replace(se,""),u))}return t}function R(t,e,n){for(var i,r=e?mt.filter(e,t):t,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||mt.cleanData(v(i)),i.parentNode&&(n&&mt.contains(i.ownerDocument,i)&&b(v(i,"script")),i.parentNode.removeChild(i));return t}function I(t,e,n){var i,r,s,o,a=t.style;return n=n||le(t),n&&(o=n.getPropertyValue(e)||n[e],""!==o||mt.contains(t.ownerDocument,t)||(o=mt.style(t,e)),!pt.pixelMarginRight()&&ae.test(o)&&oe.test(e)&&(i=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function O(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function M(t){if(t in de)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=pe.length;n--;)if(t=pe[n]+e,t in de)return t}function D(t){var e=mt.cssProps[t];return e||(e=mt.cssProps[t]=M(t)||t),e}function P(t,e,n){var i=qt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function j(t,e,n,i,r){var s,o=0;for(s=n===(i?"border":"content")?4:"width"===e?1:0;s<4;s+=2)"margin"===n&&(o+=mt.css(t,n+Ft[s],!0,r)),i?("content"===n&&(o-=mt.css(t,"padding"+Ft[s],!0,r)),"margin"!==n&&(o-=mt.css(t,"border"+Ft[s]+"Width",!0,r))):(o+=mt.css(t,"padding"+Ft[s],!0,r),"padding"!==n&&(o+=mt.css(t,"border"+Ft[s]+"Width",!0,r)));return o}function H(t,e,n){var i,r=le(t),s=I(t,e,r),o="border-box"===mt.css(t,"boxSizing",!1,r);return ae.test(s)?s:(i=o&&(pt.boxSizingReliable()||s===t.style[e]),"auto"===s&&(s=t["offset"+e[0].toUpperCase()+e.slice(1)]),s=parseFloat(s)||0,s+j(t,e,n||(o?"border":"content"),i,r)+"px")}function B(t,e,n,i,r){return new B.prototype.init(t,e,n,i,r)}function $(){ge&&(nt.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame($):t.setTimeout($,mt.fx.interval),mt.fx.tick())}function q(){return t.setTimeout(function(){me=void 0}),me=mt.now()}function F(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)n=Ft[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function U(t,e,n){for(var i,r=(K.tweeners[e]||[]).concat(K.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,e,t))return i}function W(t,e,n){var i,r,s,o,a,l,c,u,h="width"in e||"height"in e,f=this,p={},d=t.style,m=t.nodeType&&Ut(t),g=Pt.get(t,"fxshow");n.queue||(o=mt._queueHooks(t,"fx"),null==o.unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,mt.queue(t,"fx").length||o.empty.fire()})}));for(i in e)if(r=e[i],ye.test(r)){if(delete e[i],s=s||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||mt.style(t,i)}if(l=!mt.isEmptyObject(e),l||!mt.isEmptyObject(p)){h&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],c=g&&g.display,null==c&&(c=Pt.get(t,"display")),u=mt.css(t,"display"),"none"===u&&(c?u=c:(y([t],!0),c=t.style.display||c,u=mt.css(t,"display"),y([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===mt.css(t,"float")&&(l||(f.done(function(){d.display=c}),null==c&&(u=d.display,c="none"===u?"":u)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1;for(i in p)l||(g?"hidden"in g&&(m=g.hidden):g=Pt.access(t,"fxshow",{display:c}),s&&(g.hidden=!m),m&&y([t],!0),f.done(function(){m||y([t]),Pt.remove(t,"fxshow");for(i in p)mt.style(t,i,p[i])})),l=U(m?g[i]:0,i,f),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}}function V(t,e){var n,i,r,s,o;for(n in t)if(i=mt.camelCase(n),r=e[i],s=t[n],Array.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),o=mt.cssHooks[i],o&&"expand"in o){s=o.expand(s),delete t[i];for(n in s)n in t||(t[n]=s[n],e[n]=r)}else e[i]=r}function K(t,e,n){var i,r,s=0,o=K.prefilters.length,a=mt.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=me||q(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,s=1-i,o=0,l=c.tweens.length;o<l;o++)c.tweens[o].run(s);return a.notifyWith(t,[c,s,n]),s<1&&l?n:(l||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:mt.extend({},e),opts:mt.extend(!0,{specialEasing:{},easing:mt.easing._default},n),originalProperties:e,originalOptions:n,startTime:me||q(),duration:n.duration,tweens:[],createTween:function(e,n){var i=mt.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(V(u,c.opts.specialEasing);s<o;s++)if(i=K.prefilters[s].call(c,t,u,c.opts))return mt.isFunction(i.stop)&&(mt._queueHooks(c.elem,c.opts.queue).stop=mt.proxy(i.stop,i)),i;return mt.map(u,U,c),mt.isFunction(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),mt.fx.timer(mt.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}function z(t){var e=t.match(Rt)||[];return e.join(" ")}function G(t){return t.getAttribute&&t.getAttribute("class")||""}function Y(t,e,n,i){var r;if(Array.isArray(e))mt.each(e,function(e,r){n||Ae.test(t)?i(t,r):Y(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==mt.type(e))i(t,e);else for(r in e)Y(t+"["+r+"]",e[r],n,i)}function X(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(Rt)||[];if(mt.isFunction(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Q(t,e,n,i){function r(a){var l;return s[a]=!0,mt.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var s={},o=t===$e;return r(e.dataTypes[0])||!s["*"]&&r("*")}function J(t,e){var n,i,r=mt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&mt.extend(!0,t,i),t}function Z(t,e,n){for(var i,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)s=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}function tt(t,e,n,i){var r,s,o,a,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(o=c[l+" "+s]||c["* "+s],!o)for(r in c)if(a=r.split(" "),a[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){o===!0?o=c[r]:c[r]!==!0&&(s=a[0],u.unshift(a[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}var et=[],nt=t.document,it=Object.getPrototypeOf,rt=et.slice,st=et.concat,ot=et.push,at=et.indexOf,lt={},ct=lt.toString,ut=lt.hasOwnProperty,ht=ut.toString,ft=ht.call(Object),pt={},dt="3.2.1",mt=function(t,e){return new mt.fn.init(t,e)},gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yt=/^-ms-/,vt=/-([a-z])/g,bt=function(t,e){return e.toUpperCase()};mt.fn=mt.prototype={jquery:dt,constructor:mt,length:0,toArray:function(){return rt.call(this)},get:function(t){return null==t?rt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=mt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return mt.each(this,t)},map:function(t){return this.pushStack(mt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(rt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ot,sort:et.sort,splice:et.splice},mt.extend=mt.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||mt.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=o[e],i=t[e],o!==i&&(c&&i&&(mt.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,s=n&&Array.isArray(n)?n:[]):s=n&&mt.isPlainObject(n)?n:{},o[e]=mt.extend(c,s,i)):void 0!==i&&(o[e]=i));return o},mt.extend({expando:"jQuery"+(dt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===mt.type(t)},isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=mt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==ct.call(t))&&(!(e=it(t))||(n=ut.call(e,"constructor")&&e.constructor,"function"==typeof n&&ht.call(n)===ft))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?lt[ct.call(t)]||"object":typeof t},globalEval:function(t){n(t)},camelCase:function(t){return t.replace(yt,"ms-").replace(vt,bt)},each:function(t,e){var n,r=0;if(i(t))for(n=t.length;r<n&&e.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(e.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(gt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?mt.merge(n,"string"==typeof t?[t]:t):ot.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:at.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i,r=[],s=0,o=t.length,a=!n;s<o;s++)i=!e(t[s],s),i!==a&&r.push(t[s]);return r},map:function(t,e,n){var r,s,o=0,a=[];if(i(t))for(r=t.length;o<r;o++)s=e(t[o],o,n),null!=s&&a.push(s);else for(o in t)s=e(t[o],o,n),null!=s&&a.push(s);return st.apply([],a)},guid:1,proxy:function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),mt.isFunction(t))return i=rt.call(arguments,2),r=function(){return t.apply(e||this,i.concat(rt.call(arguments)))},r.guid=t.guid=t.guid||mt.guid++,r},now:Date.now,support:pt}),"function"==typeof Symbol&&(mt.fn[Symbol.iterator]=et[Symbol.iterator]),mt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){lt["[object "+e+"]"]=e.toLowerCase()});var _t=function(t){function e(t,e,n,i){var r,s,o,a,l,c,u,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&((e?e.ownerDocument||e:q)!==O&&I(e),e=e||O,D)){if(11!==d&&(l=yt.exec(t)))if(r=l[1]){if(9===d){if(!(o=e.getElementById(r)))return n;if(o.id===r)return n.push(o),n}else if(f&&(o=f.getElementById(r))&&B(e,o)&&o.id===r)return n.push(o),n}else{if(l[2])return J.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return J.apply(n,e.getElementsByClassName(r)),n}if(w.qsa&&!K[t+" "]&&(!P||!P.test(t))){if(1!==d)f=e,u=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(Ct,wt):e.setAttribute("id",a=$),c=S(t),s=c.length;s--;)c[s]="#"+a+" "+p(c[s]);u=c.join(","),f=vt.test(t)&&h(e.parentNode)||e}if(u)try{return J.apply(n,f.querySelectorAll(u)),n}catch(m){}finally{a===$&&e.removeAttribute("id")}}}return A(t.replace(at,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[$]=!0,t}function r(t){var e=O.createElement("fieldset");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=e}function o(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return function(e){return"form"in e?e.parentNode&&e.disabled===!1?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Et(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function u(t){return i(function(e){return e=+e,i(function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))})})}function h(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function p(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function d(t,e,n){var i=e.dir,r=e.next,s=r||i,o=n&&"parentNode"===s,a=U++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r);return!1}:function(e,n,l){var c,u,h,f=[F,a];if(l){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(h=e[$]||(e[$]={}),u=h[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=u[s])&&c[0]===F&&c[1]===a)return f[2]=c[2];if(u[s]=f,f[2]=t(e,n,l))return!0}return!1}}function m(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,n,i){for(var r=0,s=n.length;r<s;r++)e(t,n[r],i);return i}function y(t,e,n,i,r){for(var s,o=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(n&&!n(s,i,r)||(o.push(s),c&&e.push(a)));return o}function v(t,e,n,r,s,o){return r&&!r[$]&&(r=v(r)),s&&!s[$]&&(s=v(s,o)),i(function(i,o,a,l){var c,u,h,f=[],p=[],d=o.length,m=i||g(e||"*",a.nodeType?[a]:a,[]),v=!t||!i&&e?m:y(m,f,t,a,l),b=n?s||(i?t:d||r)?[]:o:v;if(n&&n(v,b,a,l),r)for(c=y(b,p),r(c,[],a,l),u=c.length;u--;)(h=c[u])&&(b[p[u]]=!(v[p[u]]=h));if(i){if(s||t){if(s){for(c=[],u=b.length;u--;)(h=b[u])&&c.push(v[u]=h);s(null,b=[],c,l)}for(u=b.length;u--;)(h=b[u])&&(c=s?tt(i,h):f[u])>-1&&(i[c]=!(o[c]=h))}}else b=y(b===o?b.splice(d,b.length):b),s?s(null,o,b,l):J.apply(o,b)})}function b(t){for(var e,n,i,r=t.length,s=x.relative[t[0].type],o=s||x.relative[" "],a=s?1:0,l=d(function(t){return t===e},o,!0),c=d(function(t){return tt(e,t)>-1},o,!0),u=[function(t,n,i){var r=!s&&(i||n!==L)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,r}];a<r;a++)if(n=x.relative[t[a].type])u=[d(m(u),n)];else{if(n=x.filter[t[a].type].apply(null,t[a].matches),n[$]){for(i=++a;i<r&&!x.relative[t[i].type];i++);return v(a>1&&m(u),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),n,a<i&&b(t.slice(a,i)),i<r&&b(t=t.slice(i)),i<r&&p(t))}u.push(n)}return m(u)}function _(t,n){var r=n.length>0,s=t.length>0,o=function(i,o,a,l,c){var u,h,f,p=0,d="0",m=i&&[],g=[],v=L,b=i||s&&x.find.TAG("*",c),_=F+=null==v?1:Math.random()||.1,C=b.length;for(c&&(L=o===O||o||c);d!==C&&null!=(u=b[d]);d++){if(s&&u){for(h=0,o||u.ownerDocument===O||(I(u),a=!D);f=t[h++];)if(f(u,o||O,a)){l.push(u);break}c&&(F=_)}r&&((u=!f&&u)&&p--,i&&m.push(u))}if(p+=d,r&&d!==p){for(h=0;f=n[h++];)f(m,g,o,a);if(i){if(p>0)for(;d--;)m[d]||g[d]||(g[d]=X.call(l));g=y(g)}J.apply(l,g),c&&!i&&g.length>0&&p+n.length>1&&e.uniqueSort(l)}return c&&(F=_,L=v),m};return r?i(o):o}var C,w,x,E,k,S,T,A,L,N,R,I,O,M,D,P,j,H,B,$="sizzle"+1*new Date,q=t.document,F=0,U=0,W=n(),V=n(),K=n(),z=function(t,e){return t===e&&(R=!0),0},G={}.hasOwnProperty,Y=[],X=Y.pop,Q=Y.push,J=Y.push,Z=Y.slice,tt=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",rt="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",st=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",ot=new RegExp(nt+"+","g"),at=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ht=new RegExp(st),ft=new RegExp("^"+it+"$"),pt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,bt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),_t=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ct=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},xt=function(){I()},Et=d(function(t){return t.disabled===!0&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{J.apply(Y=Z.call(q.childNodes),q.childNodes),Y[q.childNodes.length].nodeType}catch(kt){J={apply:Y.length?function(t,e){Q.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}w=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:q;return i!==O&&9===i.nodeType&&i.documentElement?(O=i,M=O.documentElement,D=!k(O),q!==O&&(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xt,!1):n.attachEvent&&n.attachEvent("onunload",xt)),w.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=r(function(t){return t.appendChild(O.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(O.getElementsByClassName),w.getById=r(function(t){return M.appendChild(t).id=$,!O.getElementsByName||!O.getElementsByName($).length}),w.getById?(x.filter.ID=function(t){var e=t.replace(bt,_t);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&D){var n=e.getElementById(t);return n?[n]:[]}}):(x.filter.ID=function(t){var e=t.replace(bt,_t);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&D){var n,i,r,s=e.getElementById(t);if(s){if(n=s.getAttributeNode("id"),n&&n.value===t)return[s];for(r=e.getElementsByName(t),i=0;s=r[i++];)if(n=s.getAttributeNode("id"),n&&n.value===t)return[s]}return[]}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,s=e.getElementsByTagName(t);if("*"===t){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},x.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&D)return e.getElementsByClassName(t)},j=[],P=[],(w.qsa=gt.test(O.querySelectorAll))&&(r(function(t){M.appendChild(t).innerHTML="<a id='"+$+"'></a><select id='"+$+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||P.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+$+"-]").length||P.push("~="),t.querySelectorAll(":checked").length||P.push(":checked"),t.querySelectorAll("a#"+$+"+*").length||P.push(".#.+[+~]")}),r(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=O.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&P.push("name"+nt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&P.push(":enabled",":disabled"),M.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&P.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),P.push(",.*:")})),(w.matchesSelector=gt.test(H=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&r(function(t){w.disconnectedMatch=H.call(t,"*"),H.call(t,"[s!='']:x"),j.push("!=",st)}),P=P.length&&new RegExp(P.join("|")),j=j.length&&new RegExp(j.join("|")),e=gt.test(M.compareDocumentPosition),B=e||gt.test(M.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return R=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===O||t.ownerDocument===q&&B(q,t)?-1:e===O||e.ownerDocument===q&&B(q,e)?1:N?tt(N,t)-tt(N,e):0:4&n?-1:1)}:function(t,e){if(t===e)return R=!0,0;var n,i=0,r=t.parentNode,s=e.parentNode,a=[t],l=[e];if(!r||!s)return t===O?-1:e===O?1:r?-1:s?1:N?tt(N,t)-tt(N,e):0;if(r===s)return o(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?o(a[i],l[i]):a[i]===q?-1:l[i]===q?1:0},O):O},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==O&&I(t),n=n.replace(ut,"='$1']"),w.matchesSelector&&D&&!K[n+" "]&&(!j||!j.test(n))&&(!P||!P.test(n)))try{var i=H.call(t,n);if(i||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){}return e(n,O,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==O&&I(t),B(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==O&&I(t);var n=x.attrHandle[e.toLowerCase()],i=n&&G.call(x.attrHandle,e.toLowerCase())?n(t,e,!D):void 0;return void 0!==i?i:w.attributes||!D?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(Ct,wt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(R=!w.detectDuplicates,N=!w.sortStable&&t.slice(0),t.sort(z),R){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return N=null,t},E=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=E(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=E(e);return n},x=e.selectors={cacheLength:50,createPseudo:i,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,_t),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=S(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var s=e.attr(r,t);return null==s?"!="===n:!n||(s+="","="===n?s===i:"!="===n?s!==i:"^="===n?i&&0===s.indexOf(i):"*="===n?i&&s.indexOf(i)>-1:"$="===n?i&&s.slice(-i.length)===i:"~="===n?(" "+s.replace(ot," ")+" ").indexOf(i)>-1:"|="===n&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,f,p,d,m=s!==o?"nextSibling":"previousSibling",g=e.parentNode,y=a&&e.nodeName.toLowerCase(),v=!l&&!a,b=!1;if(g){if(s){for(;m;){for(f=e;f=f[m];)if(a?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;d=m="only"===t&&!d&&"nextSibling"}return!0}if(d=[o?g.firstChild:g.lastChild],o&&v){for(f=g,h=f[$]||(f[$]={}),u=h[f.uniqueID]||(h[f.uniqueID]={}),c=u[t]||[],p=c[0]===F&&c[1],b=p&&c[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||d.pop();)if(1===f.nodeType&&++b&&f===e){u[t]=[F,p,b];break}}else if(v&&(f=e,h=f[$]||(f[$]={}),u=h[f.uniqueID]||(h[f.uniqueID]={}),c=u[t]||[],p=c[0]===F&&c[1],b=p),b===!1)for(;(f=++p&&f&&f[m]||(b=p=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++b||(v&&(h=f[$]||(f[$]={}),u=h[f.uniqueID]||(h[f.uniqueID]={}),u[t]=[F,b]),f!==e)););return b-=r,b===i||b%i===0&&b/i>=0}}},PSEUDO:function(t,n){var r,s=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[$]?s(n):s.length>1?(r=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=s(t,n),o=r.length;o--;)i=tt(t,r[o]),t[i]=!(e[i]=r[o])}):function(t){return s(t,0,r)}):s}},pseudos:{not:i(function(t){var e=[],n=[],r=T(t.replace(at,"$1"));return r[$]?i(function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,i,s){return e[0]=t,r(e,null,s,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(bt,_t),function(e){return(e.textContent||e.innerText||E(e)).indexOf(t)>-1}}),lang:i(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,_t).toLowerCase(),function(e){var n;do if(n=D?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===M},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[n<0?n+e:n]}),even:u(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},x.pseudos.nth=x.pseudos.eq;for(C in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[C]=a(C);for(C in{submit:!0,reset:!0})x.pseudos[C]=l(C);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,S=e.tokenize=function(t,n){var i,r,s,o,a,l,c,u=V[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=x.preFilter;a;){i&&!(r=lt.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),i=!1,(r=ct.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(at," ")}),a=a.slice(i.length));for(o in x.filter)!(r=pt[o].exec(a))||c[o]&&!(r=c[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):V(t,l).slice(0)},T=e.compile=function(t,e){var n,i=[],r=[],s=K[t+" "];if(!s){for(e||(e=S(t)),n=e.length;n--;)s=b(e[n]),s[$]?i.push(s):r.push(s);s=K(t,_(r,i)),s.selector=t}return s},A=e.select=function(t,e,n,i){var r,s,o,a,l,c="function"==typeof t&&t,u=!i&&S(t=c.selector||t);if(n=n||[],1===u.length){if(s=u[0]=u[0].slice(0),s.length>2&&"ID"===(o=s[0]).type&&9===e.nodeType&&D&&x.relative[s[1].type]){if(e=(x.find.ID(o.matches[0].replace(bt,_t),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(r=pt.needsContext.test(t)?0:s.length;r--&&(o=s[r],!x.relative[a=o.type]);)if((l=x.find[a])&&(i=l(o.matches[0].replace(bt,_t),vt.test(s[0].type)&&h(e.parentNode)||e))){if(s.splice(r,1),t=i.length&&p(s),!t)return J.apply(n,i),n;break}}return(c||T(t,u))(i,e,!D,n,!e||vt.test(t)&&h(e.parentNode)||e),n},w.sortStable=$.split("").sort(z).join("")===$,w.detectDuplicates=!!R,I(),w.sortDetached=r(function(t){return 1&t.compareDocumentPosition(O.createElement("fieldset"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||s(et,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);mt.find=_t,mt.expr=_t.selectors,mt.expr[":"]=mt.expr.pseudos,mt.uniqueSort=mt.unique=_t.uniqueSort,mt.text=_t.getText,mt.isXMLDoc=_t.isXML,mt.contains=_t.contains,mt.escapeSelector=_t.escape;var Ct=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&mt(t).is(n))break;i.push(t)}return i},wt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},xt=mt.expr.match.needsContext,Et=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,kt=/^.[^:#\[\.,]*$/;mt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?mt.find.matchesSelector(i,t)?[i]:[]:mt.find.matches(t,mt.grep(e,function(t){return 1===t.nodeType}))},mt.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(mt(t).filter(function(){for(e=0;e<i;e++)if(mt.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)mt.find(t,r[e],n);return i>1?mt.uniqueSort(n):n},filter:function(t){return this.pushStack(s(this,t||[],!1))},not:function(t){return this.pushStack(s(this,t||[],!0))},is:function(t){return!!s(this,"string"==typeof t&&xt.test(t)?mt(t):t||[],!1).length}});var St,Tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,At=mt.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||St,"string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Tt.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:nt,!0)),Et.test(i[1])&&mt.isPlainObject(e))for(i in e)mt.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return r=nt.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):mt.isFunction(t)?void 0!==n.ready?n.ready(t):t(mt):mt.makeArray(t,this)};At.prototype=mt.fn,St=mt(nt);var Lt=/^(?:parents|prev(?:Until|All))/,Nt={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var e=mt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(mt.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,s=[],o="string"!=typeof t&&mt(t);if(!xt.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&mt.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?mt.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?at.call(mt(t),this[0]):at.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Ct(t,"parentNode")},parentsUntil:function(t,e,n){return Ct(t,"parentNode",n)},next:function(t){return o(t,"nextSibling")},prev:function(t){return o(t,"previousSibling")},nextAll:function(t){return Ct(t,"nextSibling")},prevAll:function(t){return Ct(t,"previousSibling")},nextUntil:function(t,e,n){return Ct(t,"nextSibling",n)},prevUntil:function(t,e,n){return Ct(t,"previousSibling",n)},siblings:function(t){return wt((t.parentNode||{}).firstChild,t)},children:function(t){return wt(t.firstChild)},contents:function(t){return r(t,"iframe")?t.contentDocument:(r(t,"template")&&(t=t.content||t),mt.merge([],t.childNodes))}},function(t,e){mt.fn[t]=function(n,i){var r=mt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=mt.filter(i,r)),this.length>1&&(Nt[t]||mt.uniqueSort(r),Lt.test(t)&&r.reverse()),this.pushStack(r)}});var Rt=/[^\x20\t\r\n\f]+/g;mt.Callbacks=function(t){t="string"==typeof t?a(t):mt.extend({},t);var e,n,i,r,s=[],o=[],l=-1,c=function(){for(r=r||t.once,i=e=!0;o.length;l=-1)for(n=o.shift();++l<s.length;)s[l].apply(n[0],n[1])===!1&&t.stopOnFalse&&(l=s.length,n=!1);t.memory||(n=!1),e=!1,r&&(s=n?[]:"")},u={add:function(){return s&&(n&&!e&&(l=s.length-1,o.push(n)),function i(e){mt.each(e,function(e,n){mt.isFunction(n)?t.unique&&u.has(n)||s.push(n):n&&n.length&&"string"!==mt.type(n)&&i(n)})}(arguments),n&&!e&&c()),this},remove:function(){return mt.each(arguments,function(t,e){for(var n;(n=mt.inArray(e,s,n))>-1;)s.splice(n,1),n<=l&&l--}),this},has:function(t){return t?mt.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=o=[],n||e||(s=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],o.push(n),e||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},mt.extend({Deferred:function(e){var n=[["notify","progress",mt.Callbacks("memory"),mt.Callbacks("memory"),2],["resolve","done",mt.Callbacks("once memory"),mt.Callbacks("once memory"),0,"resolved"],["reject","fail",mt.Callbacks("once memory"),mt.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(t){return r.then(null,t)},pipe:function(){var t=arguments;return mt.Deferred(function(e){mt.each(n,function(n,i){var r=mt.isFunction(t[i[4]])&&t[i[4]];s[i[1]](function(){var t=r&&r.apply(this,arguments);t&&mt.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,i,r){function s(e,n,i,r){return function(){var a=this,u=arguments,h=function(){var t,h;if(!(e<o)){if(t=i.apply(a,u),t===n.promise())throw new TypeError("Thenable self-resolution");h=t&&("object"==typeof t||"function"==typeof t)&&t.then,mt.isFunction(h)?r?h.call(t,s(o,n,l,r),s(o,n,c,r)):(o++,h.call(t,s(o,n,l,r),s(o,n,c,r),s(o,n,l,n.notifyWith))):(i!==l&&(a=void 0,u=[t]),(r||n.resolveWith)(a,u))}},f=r?h:function(){try{h()}catch(t){mt.Deferred.exceptionHook&&mt.Deferred.exceptionHook(t,f.stackTrace),e+1>=o&&(i!==c&&(a=void 0,u=[t]),n.rejectWith(a,u))}};e?f():(mt.Deferred.getStackHook&&(f.stackTrace=mt.Deferred.getStackHook()),t.setTimeout(f))}}var o=0;return mt.Deferred(function(t){n[0][3].add(s(0,t,mt.isFunction(r)?r:l,t.notifyWith)),n[1][3].add(s(0,t,mt.isFunction(e)?e:l)),n[2][3].add(s(0,t,mt.isFunction(i)?i:c))}).promise()},promise:function(t){return null!=t?mt.extend(t,r):r}},s={};return mt.each(n,function(t,e){var o=e[2],a=e[5];r[e[1]]=o.add,a&&o.add(function(){i=a},n[3-t][2].disable,n[0][2].lock),o.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=o.fireWith}),r.promise(s),e&&e.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),r=rt.call(arguments),s=mt.Deferred(),o=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?rt.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&(u(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||mt.isFunction(r[n]&&r[n].then)))return s.then();for(;n--;)u(r[n],o(n),s.reject);return s.promise()}});var It=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;mt.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&It.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},mt.readyException=function(e){t.setTimeout(function(){throw e})};var Ot=mt.Deferred();mt.fn.ready=function(t){return Ot.then(t)["catch"](function(t){mt.readyException(t)}),this},mt.extend({isReady:!1,readyWait:1,ready:function(t){(t===!0?--mt.readyWait:mt.isReady)||(mt.isReady=!0,t!==!0&&--mt.readyWait>0||Ot.resolveWith(nt,[mt]))}}),mt.ready.then=Ot.then,"complete"===nt.readyState||"loading"!==nt.readyState&&!nt.documentElement.doScroll?t.setTimeout(mt.ready):(nt.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h));var Mt=function(t,e,n,i,r,s,o){var a=0,l=t.length,c=null==n;if("object"===mt.type(n)){r=!0;for(a in n)Mt(t,e,a,n[a],!0,s,o)}else if(void 0!==i&&(r=!0,mt.isFunction(i)||(o=!0),c&&(o?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(mt(t),n)})),e))for(;a<l;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):s},Dt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};f.uid=1,f.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Dt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[mt.camelCase(e)]=n;else for(i in e)r[mt.camelCase(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][mt.camelCase(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){Array.isArray(e)?e=e.map(mt.camelCase):(e=mt.camelCase(e),e=e in i?[e]:e.match(Rt)||[]),n=e.length;for(;n--;)delete i[e[n]]}(void 0===e||mt.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!mt.isEmptyObject(e)}};var Pt=new f,jt=new f,Ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Bt=/[A-Z]/g;mt.extend({hasData:function(t){return jt.hasData(t)||Pt.hasData(t)},data:function(t,e,n){return jt.access(t,e,n)},removeData:function(t,e){jt.remove(t,e)},_data:function(t,e,n){return Pt.access(t,e,n)},_removeData:function(t,e){Pt.remove(t,e)}}),mt.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=jt.get(s),1===s.nodeType&&!Pt.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=mt.camelCase(i.slice(5)),d(s,i,r[i])));Pt.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){jt.set(this,t)}):Mt(this,function(e){var n;if(s&&void 0===e){if(n=jt.get(s,t),void 0!==n)return n;if(n=d(s,t),void 0!==n)return n}else this.each(function(){jt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){jt.remove(this,t)})}}),mt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Pt.get(t,e),n&&(!i||Array.isArray(n)?i=Pt.access(t,e,mt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=mt.queue(t,e),i=n.length,r=n.shift(),s=mt._queueHooks(t,e),o=function(){mt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,o,s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Pt.get(t,n)||Pt.access(t,n,{empty:mt.Callbacks("once memory").add(function(){Pt.remove(t,[e+"queue",n])})})}}),mt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?mt.queue(this[0],t):void 0===e?this:this.each(function(){var n=mt.queue(this,t,e);mt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&mt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){mt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=mt.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)n=Pt.get(s[o],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var $t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,qt=new RegExp("^(?:([+-])=|)("+$t+")([a-z%]*)$","i"),Ft=["Top","Right","Bottom","Left"],Ut=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&mt.contains(t.ownerDocument,t)&&"none"===mt.css(t,"display")},Wt=function(t,e,n,i){var r,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];r=n.apply(t,i||[]);for(s in e)t.style[s]=o[s];return r},Vt={};mt.fn.extend({show:function(){return y(this,!0)},hide:function(){return y(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ut(this)?mt(this).show():mt(this).hide()})}});var Kt=/^(?:checkbox|radio)$/i,zt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Gt=/^$|\/(?:java|ecma)script/i,Yt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td;var Xt=/<|&#?\w+;/;!function(){var t=nt.createDocumentFragment(),e=t.appendChild(nt.createElement("div")),n=nt.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),pt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",pt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Qt=nt.documentElement,Jt=/^key/,Zt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,te=/^([^.]*)(?:\.(.+)|)/;mt.event={global:{},add:function(t,e,n,i,r){var s,o,a,l,c,u,h,f,p,d,m,g=Pt.get(t);if(g)for(n.handler&&(s=n,n=s.handler,r=s.selector),r&&mt.find.matchesSelector(Qt,r),n.guid||(n.guid=mt.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(e){return"undefined"!=typeof mt&&mt.event.triggered!==e.type?mt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Rt)||[""],c=e.length;c--;)a=te.exec(e[c])||[],p=m=a[1],d=(a[2]||"").split(".").sort(),p&&(h=mt.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=mt.event.special[p]||{},u=mt.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&mt.expr.match.needsContext.test(r),namespace:d.join(".")},s),(f=l[p])||(f=l[p]=[],f.delegateCount=0,h.setup&&h.setup.call(t,i,d,o)!==!1||t.addEventListener&&t.addEventListener(p,o)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,u):f.push(u),mt.event.global[p]=!0)},remove:function(t,e,n,i,r){var s,o,a,l,c,u,h,f,p,d,m,g=Pt.hasData(t)&&Pt.get(t);if(g&&(l=g.events)){for(e=(e||"").match(Rt)||[""],c=e.length;c--;)if(a=te.exec(e[c])||[],p=m=a[1],d=(a[2]||"").split(".").sort(),p){for(h=mt.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,f=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=f.length;s--;)u=f[s],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(f.splice(s,1),u.selector&&f.delegateCount--,h.remove&&h.remove.call(t,u));o&&!f.length&&(h.teardown&&h.teardown.call(t,d,g.handle)!==!1||mt.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)mt.event.remove(t,p+e[c],n,i,!0);mt.isEmptyObject(l)&&Pt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,s,o,a=mt.event.fix(t),l=new Array(arguments.length),c=(Pt.get(this,"events")||{})[a.type]||[],u=mt.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,a)!==!1){for(o=mt.event.handlers.call(this,a,c),e=0;(r=o[e++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,i=((mt.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,l),void 0!==i&&(a.result=i)===!1&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,r,s,o,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||c.disabled!==!0)){for(s=[],o={},n=0;n<l;n++)i=e[n],r=i.selector+" ",void 0===o[r]&&(o[r]=i.needsContext?mt(r,this).index(c)>-1:mt.find(r,this,null,[c]).length),o[r]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(mt.Event.prototype,t,{enumerable:!0,configurable:!0,get:mt.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[mt.expando]?t:new mt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==x()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===x()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&r(this,"input"))return this.click(),!1},_default:function(t){return r(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},mt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},mt.Event=function(t,e){return this instanceof mt.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?C:w,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&mt.extend(this,e),this.timeStamp=t&&t.timeStamp||mt.now(),void(this[mt.expando]=!0)):new mt.Event(t,e)},mt.Event.prototype={constructor:mt.Event,isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=C,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=C,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=C,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},mt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Jt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Zt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},mt.event.addProp),mt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){mt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,s=t.handleObj;return r&&(r===i||mt.contains(i,r))||(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}}),mt.fn.extend({on:function(t,e,n,i){return E(this,t,e,n,i)},one:function(t,e,n,i){return E(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,mt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=w),this.each(function(){mt.event.remove(this,t,n,e)})}});var ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ne=/<script|<style|<link/i,ie=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/^true\/(.*)/,se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;mt.extend({htmlPrefilter:function(t){return t.replace(ee,"<$1></$2>")},clone:function(t,e,n){var i,r,s,o,a=t.cloneNode(!0),l=mt.contains(t.ownerDocument,t);if(!(pt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||mt.isXMLDoc(t)))for(o=v(a),s=v(t),i=0,r=s.length;i<r;i++)L(s[i],o[i]);if(e)if(n)for(s=s||v(t),o=o||v(a),i=0,r=s.length;i<r;i++)A(s[i],o[i]);else A(t,a);return o=v(a,"script"),o.length>0&&b(o,!l&&v(t,"script")),a},cleanData:function(t){for(var e,n,i,r=mt.event.special,s=0;void 0!==(n=t[s]);s++)if(Dt(n)){if(e=n[Pt.expando]){if(e.events)for(i in e.events)r[i]?mt.event.remove(n,i):mt.removeEvent(n,i,e.handle);n[Pt.expando]=void 0}n[jt.expando]&&(n[jt.expando]=void 0)}}}),mt.fn.extend({detach:function(t){return R(this,t,!0)},remove:function(t){return R(this,t)},text:function(t){return Mt(this,function(t){return void 0===t?mt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return N(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=k(this,t);e.appendChild(t)}})},prepend:function(){return N(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=k(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return N(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return N(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(mt.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return mt.clone(this,t,e)})},html:function(t){return Mt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ne.test(t)&&!Yt[(zt.exec(t)||["",""])[1].toLowerCase()]){t=mt.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(mt.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return N(this,arguments,function(e){var n=this.parentNode;mt.inArray(this,t)<0&&(mt.cleanData(v(this)),n&&n.replaceChild(e,this))},t)}}),mt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){mt.fn[t]=function(t){for(var n,i=[],r=mt(t),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),mt(r[o])[e](n),ot.apply(i,n.get());return this.pushStack(i)}});var oe=/^margin/,ae=new RegExp("^("+$t+")(?!px)[a-z%]+$","i"),le=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)};!function(){function e(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Qt.appendChild(o);var e=t.getComputedStyle(a);n="1%"!==e.top,s="2px"===e.marginLeft,i="4px"===e.width,a.style.marginRight="50%",r="4px"===e.marginRight,Qt.removeChild(o),a=null}}var n,i,r,s,o=nt.createElement("div"),a=nt.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",pt.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),mt.extend(pt,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return e(),i},pixelMarginRight:function(){return e(),r},reliableMarginLeft:function(){return e(),s}}))}();var ce=/^(none|table(?!-c[ea]).+)/,ue=/^--/,he={position:"absolute",visibility:"hidden",display:"block"},fe={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","Moz","ms"],de=nt.createElement("div").style;mt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=I(t,"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":"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=mt.camelCase(e),l=ue.test(e),c=t.style;return l||(e=D(a)),o=mt.cssHooks[e]||mt.cssHooks[a],void 0===n?o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:c[e]:(s=typeof n,"string"===s&&(r=qt.exec(n))&&r[1]&&(n=m(t,e,r),s="number"),null!=n&&n===n&&("number"===s&&(n+=r&&r[3]||(mt.cssNumber[a]?"":"px")),pt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n)),void 0)}},css:function(t,e,n,i){var r,s,o,a=mt.camelCase(e),l=ue.test(e);return l||(e=D(a)),o=mt.cssHooks[e]||mt.cssHooks[a],o&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=I(t,e,i)),"normal"===r&&e in fe&&(r=fe[e]),""===n||n?(s=parseFloat(r),n===!0||isFinite(s)?s||0:r):r}}),mt.each(["height","width"],function(t,e){mt.cssHooks[e]={get:function(t,n,i){if(n)return!ce.test(mt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?H(t,e,i):Wt(t,he,function(){return H(t,e,i)})},set:function(t,n,i){var r,s=i&&le(t),o=i&&j(t,e,i,"border-box"===mt.css(t,"boxSizing",!1,s),s);return o&&(r=qt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=mt.css(t,e)),P(t,n,o)}}}),mt.cssHooks.marginLeft=O(pt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(I(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),mt.each({margin:"",padding:"",border:"Width"},function(t,e){mt.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+Ft[i]+e]=s[i]||s[i-2]||s[0];return r}},oe.test(t)||(mt.cssHooks[t+e].set=P)}),mt.fn.extend({css:function(t,e){return Mt(this,function(t,e,n){var i,r,s={},o=0;if(Array.isArray(e)){for(i=le(t),r=e.length;o<r;o++)s[e[o]]=mt.css(t,e[o],!1,i);return s}return void 0!==n?mt.style(t,e,n):mt.css(t,e)},t,e,arguments.length>1)}}),mt.Tween=B,B.prototype={constructor:B,init:function(t,e,n,i,r,s){this.elem=t,this.prop=n,this.easing=r||mt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(mt.cssNumber[n]?"":"px")},cur:function(){var t=B.propHooks[this.prop];return t&&t.get?t.get(this):B.propHooks._default.get(this)},run:function(t){var e,n=B.propHooks[this.prop];return this.options.duration?this.pos=e=mt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=mt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){mt.fx.step[t.prop]?mt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[mt.cssProps[t.prop]]&&!mt.cssHooks[t.prop]?t.elem[t.prop]=t.now:mt.style(t.elem,t.prop,t.now+t.unit)}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},mt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},mt.fx=B.prototype.init,mt.fx.step={};var me,ge,ye=/^(?:toggle|show|hide)$/,ve=/queueHooks$/;mt.Animation=mt.extend(K,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return m(n.elem,t,qt.exec(e),n),n}]},tweener:function(t,e){mt.isFunction(t)?(e=t,t=["*"]):t=t.match(Rt);for(var n,i=0,r=t.length;i<r;i++)n=t[i],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(e)},prefilters:[W],prefilter:function(t,e){e?K.prefilters.unshift(t):K.prefilters.push(t)}}),mt.speed=function(t,e,n){var i=t&&"object"==typeof t?mt.extend({},t):{complete:n||!n&&e||mt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!mt.isFunction(e)&&e};return mt.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in mt.fx.speeds?i.duration=mt.fx.speeds[i.duration]:i.duration=mt.fx.speeds._default),null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){mt.isFunction(i.old)&&i.old.call(this),i.queue&&mt.dequeue(this,i.queue)},i},mt.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Ut).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=mt.isEmptyObject(t),s=mt.speed(e,n,i),o=function(){var e=K(this,mt.extend({},t),s);(r||Pt.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",s=mt.timers,o=Pt.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&ve.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));!e&&n||mt.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=Pt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=mt.timers,o=i?i.length:0;for(n.finish=!0,mt.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),mt.each(["toggle","show","hide"],function(t,e){var n=mt.fn[e];mt.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(F(e,!0),t,i,r)}}),mt.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){mt.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),mt.timers=[],mt.fx.tick=function(){var t,e=0,n=mt.timers;for(me=mt.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||mt.fx.stop(),me=void 0},mt.fx.timer=function(t){mt.timers.push(t),mt.fx.start()},mt.fx.interval=13,mt.fx.start=function(){ge||(ge=!0,$())},mt.fx.stop=function(){ge=null},mt.fx.speeds={slow:600,fast:200,_default:400},mt.fn.delay=function(e,n){return e=mt.fx?mt.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var t=nt.createElement("input"),e=nt.createElement("select"),n=e.appendChild(nt.createElement("option"));t.type="checkbox",pt.checkOn=""!==t.value,pt.optSelected=n.selected,t=nt.createElement("input"),t.value="t",t.type="radio",pt.radioValue="t"===t.value}();var be,_e=mt.expr.attrHandle;mt.fn.extend({attr:function(t,e){return Mt(this,mt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){mt.removeAttr(this,t)})}}),mt.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return"undefined"==typeof t.getAttribute?mt.prop(t,e,n):(1===s&&mt.isXMLDoc(t)||(r=mt.attrHooks[e.toLowerCase()]||(mt.expr.match.bool.test(e)?be:void 0)),void 0!==n?null===n?void mt.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=mt.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!pt.radioValue&&"radio"===e&&r(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Rt);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),be={set:function(t,e,n){return e===!1?mt.removeAttr(t,n):t.setAttribute(n,n),n}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||mt.find.attr;_e[e]=function(t,e,i){var r,s,o=e.toLowerCase();return i||(s=_e[o],_e[o]=r,r=null!=n(t,e,i)?o:null,_e[o]=s),r}});var Ce=/^(?:input|select|textarea|button)$/i,we=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,e){return Mt(this,mt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[mt.propFix[t]||t]})}}),mt.extend({prop:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&mt.isXMLDoc(t)||(e=mt.propFix[e]||e,r=mt.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=mt.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),pt.optSelected||(mt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),mt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){mt.propFix[this.toLowerCase()]=this}),mt.fn.extend({addClass:function(t){var e,n,i,r,s,o,a,l=0;if(mt.isFunction(t))return this.each(function(e){mt(this).addClass(t.call(this,e,G(this)))});if("string"==typeof t&&t)for(e=t.match(Rt)||[];n=this[l++];)if(r=G(n),i=1===n.nodeType&&" "+z(r)+" "){for(o=0;s=e[o++];)i.indexOf(" "+s+" ")<0&&(i+=s+" ");a=z(i),r!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,s,o,a,l=0;if(mt.isFunction(t))return this.each(function(e){mt(this).removeClass(t.call(this,e,G(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Rt)||[];n=this[l++];)if(r=G(n),i=1===n.nodeType&&" "+z(r)+" "){for(o=0;s=e[o++];)for(;i.indexOf(" "+s+" ")>-1;)i=i.replace(" "+s+" "," ");a=z(i),r!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):mt.isFunction(t)?this.each(function(n){mt(this).toggleClass(t.call(this,n,G(this),e),e)}):this.each(function(){var e,i,r,s;if("string"===n)for(i=0,r=mt(this),s=t.match(Rt)||[];e=s[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||(e=G(this),e&&Pt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Pt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+z(G(n))+" ").indexOf(e)>-1)return!0;return!1}});var xe=/\r/g;mt.fn.extend({val:function(t){var e,n,i,r=this[0];{if(arguments.length)return i=mt.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,mt(this).val()):t,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=mt.map(r,function(t){return null==t?"":t+""})),e=mt.valHooks[this.type]||mt.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=mt.valHooks[r.type]||mt.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(xe,""):null==n?"":n)}}}),mt.extend({valHooks:{option:{get:function(t){var e=mt.find.attr(t,"value");return null!=e?e:z(mt.text(t))}},select:{get:function(t){var e,n,i,s=t.options,o=t.selectedIndex,a="select-one"===t.type,l=a?null:[],c=a?o+1:s.length;for(i=o<0?c:a?o:0;i<c;i++)if(n=s[i],(n.selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!r(n.parentNode,"optgroup"))){if(e=mt(n).val(),a)return e;l.push(e)}return l},set:function(t,e){for(var n,i,r=t.options,s=mt.makeArray(e),o=r.length;o--;)i=r[o],(i.selected=mt.inArray(mt.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),mt.each(["radio","checkbox"],function(){mt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=mt.inArray(mt(t).val(),e)>-1}},pt.checkOn||(mt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ee=/^(?:focusinfocus|focusoutblur)$/;mt.extend(mt.event,{trigger:function(e,n,i,r){var s,o,a,l,c,u,h,f=[i||nt],p=ut.call(e,"type")?e.type:e,d=ut.call(e,"namespace")?e.namespace.split("."):[];if(o=a=i=i||nt,3!==i.nodeType&&8!==i.nodeType&&!Ee.test(p+mt.event.triggered)&&(p.indexOf(".")>-1&&(d=p.split("."),p=d.shift(),d.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[mt.expando]?e:new mt.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=d.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:mt.makeArray(n,[e]),h=mt.event.special[p]||{},r||!h.trigger||h.trigger.apply(i,n)!==!1)){if(!r&&!h.noBubble&&!mt.isWindow(i)){for(l=h.delegateType||p,Ee.test(l+p)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(i.ownerDocument||nt)&&f.push(a.defaultView||a.parentWindow||t)}for(s=0;(o=f[s++])&&!e.isPropagationStopped();)e.type=s>1?l:h.bindType||p,u=(Pt.get(o,"events")||{})[e.type]&&Pt.get(o,"handle"),u&&u.apply(o,n),u=c&&o[c],u&&u.apply&&Dt(o)&&(e.result=u.apply(o,n),e.result===!1&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||h._default&&h._default.apply(f.pop(),n)!==!1||!Dt(i)||c&&mt.isFunction(i[p])&&!mt.isWindow(i)&&(a=i[c],a&&(i[c]=null),mt.event.triggered=p,i[p](),mt.event.triggered=void 0,a&&(i[c]=a)),e.result}},simulate:function(t,e,n){var i=mt.extend(new mt.Event,n,{type:t,isSimulated:!0});mt.event.trigger(i,null,e)}}),mt.fn.extend({trigger:function(t,e){return this.each(function(){mt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return mt.event.trigger(t,e,n,!0)}}),mt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){mt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),mt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),pt.focusin="onfocusin"in t,pt.focusin||mt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){mt.event.simulate(e,t.target,mt.event.fix(t))};mt.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Pt.access(i,e);r||i.addEventListener(t,n,!0),Pt.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Pt.access(i,e)-1;r?Pt.access(i,e,r):(i.removeEventListener(t,n,!0),Pt.remove(i,e))}}});var ke=t.location,Se=mt.now(),Te=/\?/;mt.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(i){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||mt.error("Invalid XML: "+e),n};var Ae=/\[\]$/,Le=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Re=/^(?:input|select|textarea|keygen)/i;mt.param=function(t,e){var n,i=[],r=function(t,e){var n=mt.isFunction(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!mt.isPlainObject(t))mt.each(t,function(){r(this.name,this.value)});else for(n in t)Y(n,t[n],e,r);return i.join("&")},mt.fn.extend({serialize:function(){return mt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=mt.prop(this,"elements");return t?mt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!mt(this).is(":disabled")&&Re.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!Kt.test(t))}).map(function(t,e){var n=mt(this).val();return null==n?null:Array.isArray(n)?mt.map(n,function(t){return{name:e.name,value:t.replace(Le,"\r\n")}}):{name:e.name,value:n.replace(Le,"\r\n")}}).get()}});var Ie=/%20/g,Oe=/#.*$/,Me=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,je=/^(?:GET|HEAD)$/,He=/^\/\//,Be={},$e={},qe="*/".concat("*"),Fe=nt.createElement("a");Fe.href=ke.href,mt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:Pe.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":mt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?J(J(t,mt.ajaxSettings),e):J(mt.ajaxSettings,t)},ajaxPrefilter:X(Be),ajaxTransport:X($e),ajax:function(e,n){function i(e,n,i,a){var c,f,p,_,C,w=n;u||(u=!0,l&&t.clearTimeout(l),r=void 0,o=a||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,i&&(_=Z(d,x,i)),_=tt(d,_,x,c),c?(d.ifModified&&(C=x.getResponseHeader("Last-Modified"),C&&(mt.lastModified[s]=C),C=x.getResponseHeader("etag"),C&&(mt.etag[s]=C)),204===e||"HEAD"===d.type?w="nocontent":304===e?w="notmodified":(w=_.state,f=_.data,p=_.error,c=!p)):(p=w,!e&&w||(w="error",e<0&&(e=0))),x.status=e,x.statusText=(n||w)+"",c?y.resolveWith(m,[f,w,x]):y.rejectWith(m,[x,w,p]),x.statusCode(b),b=void 0,h&&g.trigger(c?"ajaxSuccess":"ajaxError",[x,d,c?f:p]),v.fireWith(m,[x,w]),h&&(g.trigger("ajaxComplete",[x,d]),--mt.active||mt.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,s,o,a,l,c,u,h,f,p,d=mt.ajaxSetup({},n),m=d.context||d,g=d.context&&(m.nodeType||m.jquery)?mt(m):mt.event,y=mt.Deferred(),v=mt.Callbacks("once memory"),b=d.statusCode||{},_={},C={},w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=De.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=C[t.toLowerCase()]=C[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)x.always(t[x.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||w;return r&&r.abort(e),i(0,e),this}};if(y.promise(x),d.url=((e||d.url||ke.href)+"").replace(He,ke.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Rt)||[""],null==d.crossDomain){c=nt.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Fe.protocol+"//"+Fe.host!=c.protocol+"//"+c.host}catch(E){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=mt.param(d.data,d.traditional)),Q(Be,d,n,x),u)return x;h=mt.event&&d.global,h&&0===mt.active++&&mt.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!je.test(d.type),s=d.url.replace(Oe,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Ie,"+")):(p=d.url.slice(s.length),d.data&&(s+=(Te.test(s)?"&":"?")+d.data,delete d.data),d.cache===!1&&(s=s.replace(Me,"$1"),p=(Te.test(s)?"&":"?")+"_="+Se++ +p),d.url=s+p),d.ifModified&&(mt.lastModified[s]&&x.setRequestHeader("If-Modified-Since",mt.lastModified[s]),mt.etag[s]&&x.setRequestHeader("If-None-Match",mt.etag[s])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+qe+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)x.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(d.beforeSend.call(m,x,d)===!1||u))return x.abort();if(w="abort",v.add(d.complete),x.done(d.success),x.fail(d.error),r=Q($e,d,n,x)){if(x.readyState=1,h&&g.trigger("ajaxSend",[x,d]),u)return x;d.async&&d.timeout>0&&(l=t.setTimeout(function(){x.abort("timeout")},d.timeout));try{u=!1,r.send(_,i)}catch(E){if(u)throw E;i(-1,E)}}else i(-1,"No Transport");return x},getJSON:function(t,e,n){return mt.get(t,e,n,"json")},getScript:function(t,e){return mt.get(t,void 0,e,"script")}}),mt.each(["get","post"],function(t,e){mt[e]=function(t,n,i,r){return mt.isFunction(n)&&(r=r||i,i=n,n=void 0),mt.ajax(mt.extend({url:t,type:e,dataType:r,data:n,success:i},mt.isPlainObject(t)&&t))}}),mt._evalUrl=function(t){return mt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},mt.fn.extend({wrapAll:function(t){var e;return this[0]&&(mt.isFunction(t)&&(t=t.call(this[0])),e=mt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return mt.isFunction(t)?this.each(function(e){mt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=mt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=mt.isFunction(t);return this.each(function(n){mt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){mt(this).replaceWith(this.childNodes)}),this}}),mt.expr.pseudos.hidden=function(t){return!mt.expr.pseudos.visible(t)},mt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},mt.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var Ue={0:200,1223:204},We=mt.ajaxSettings.xhr();pt.cors=!!We&&"withCredentials"in We,pt.ajax=We=!!We,mt.ajaxTransport(function(e){var n,i;if(pt.cors||We&&!e.crossDomain)return{send:function(r,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)a.setRequestHeader(o,r[o]);n=function(t){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Ue[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(n)throw l}},abort:function(){n&&n()}}}),mt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),mt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return mt.globalEval(t),t}}}),mt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),mt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=mt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),nt.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Ve=[],Ke=/(=)\?(?=&|$)|\?\?/;mt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ve.pop()||mt.expando+"_"+Se++;return this[t]=!0,t}}),mt.ajaxPrefilter("json jsonp",function(e,n,i){var r,s,o,a=e.jsonp!==!1&&(Ke.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=mt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ke,"$1"+r):e.jsonp!==!1&&(e.url+=(Te.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||mt.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=t[r],t[r]=function(){o=arguments},i.always(function(){void 0===s?mt(t).removeProp(r):t[r]=s,e[r]&&(e.jsonpCallback=n.jsonpCallback,Ve.push(r)),o&&mt.isFunction(s)&&s(o[0]),o=s=void 0}),"script"}),pt.createHTMLDocument=function(){var t=nt.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),mt.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var i,r,s;return e||(pt.createHTMLDocument?(e=nt.implementation.createHTMLDocument(""),i=e.createElement("base"),i.href=nt.location.href,e.head.appendChild(i)):e=nt),r=Et.exec(t),s=!n&&[],r?[e.createElement(r[1])]:(r=_([t],e,s),s&&s.length&&mt(s).remove(),mt.merge([],r.childNodes))},mt.fn.load=function(t,e,n){var i,r,s,o=this,a=t.indexOf(" ");return a>-1&&(i=z(t.slice(a)),t=t.slice(0,a)),mt.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&mt.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(i?mt("<div>").append(mt.parseHTML(t)).find(i):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},mt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){mt.fn[e]=function(t){return this.on(e,t)}}),mt.expr.pseudos.animated=function(t){return mt.grep(mt.timers,function(e){return t===e.elem}).length},mt.offset={setOffset:function(t,e,n){var i,r,s,o,a,l,c,u=mt.css(t,"position"),h=mt(t),f={};"static"===u&&(t.style.position="relative"),a=h.offset(),s=mt.css(t,"top"),l=mt.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(s+l).indexOf("auto")>-1,c?(i=h.position(),o=i.top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),mt.isFunction(e)&&(e=e.call(t,n,mt.extend({},a))),null!=e.top&&(f.top=e.top-a.top+o),null!=e.left&&(f.left=e.left-a.left+r),"using"in e?e.using.call(t,f):h.css(f)}},mt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){mt.offset.setOffset(this,t,e)});var e,n,i,r,s=this[0];if(s)return s.getClientRects().length?(i=s.getBoundingClientRect(),e=s.ownerDocument,n=e.documentElement,r=e.defaultView,{top:i.top+r.pageYOffset-n.clientTop,left:i.left+r.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===mt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),r(t[0],"html")||(i=t.offset()),i={top:i.top+mt.css(t[0],"borderTopWidth",!0),left:i.left+mt.css(t[0],"borderLeftWidth",!0)}),{top:e.top-i.top-mt.css(n,"marginTop",!0),left:e.left-i.left-mt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===mt.css(t,"position");)t=t.offsetParent;return t||Qt})}}),mt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;mt.fn[t]=function(i){return Mt(this,function(t,i,r){var s;return mt.isWindow(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r?s?s[e]:t[i]:void(s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):t[i]=r)},t,i,arguments.length)}}),mt.each(["top","left"],function(t,e){mt.cssHooks[e]=O(pt.pixelPosition,function(t,n){if(n)return n=I(t,e),ae.test(n)?mt(t).position()[e]+"px":n})}),mt.each({Height:"height",Width:"width"},function(t,e){mt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){mt.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||s===!0?"margin":"border");return Mt(this,function(e,n,r){var s;return mt.isWindow(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?mt.css(e,n,a):mt.style(e,n,r,a)},e,o?r:void 0,o)}})}),mt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),mt.holdReady=function(t){t?mt.readyWait++:mt.ready(!0)},mt.isArray=Array.isArray,mt.parseJSON=JSON.parse,mt.nodeName=r,"function"==typeof define&&define.amd&&define("jquery",[],function(){return mt});var ze=t.jQuery,Ge=t.$;return mt.noConflict=function(e){return t.$===mt&&(t.$=Ge),e&&t.jQuery===mt&&(t.jQuery=ze),mt},e||(t.jQuery=t.$=mt),mt})}()}),require.register("phoenix/priv/static/phoenix.js",function(t,e,i){e=n(e,{},"phoenix"),function(){!function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();Object.defineProperty(t,"__esModule",{value:!0});var s="1.0.0",o={connecting:0,open:1,closing:2,closed:3},a=1e4,l={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},c={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},u={longpoll:"longpoll",websocket:"websocket"},h=function(){function t(e,i,r,s){n(this,t),this.channel=e,this.event=i,this.payload=r||{},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}return r(t,[{key:"resend",value:function(t){this.timeout=t,this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}},{key:"send",value:function(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref}))}},{key:"receive",value:function(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}},{key:"matchReceive",value:function(t){var e=t.status,n=t.response;t.ref;this.recHooks.filter(function(t){return t.status===e}).forEach(function(t){return t.callback(n)})}},{key:"cancelRefEvent",value:function(){this.refEvent&&this.channel.off(this.refEvent)}},{key:"cancelTimeout",value:function(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}},{key:"startTimeout",value:function(){var t=this;this.timeoutTimer||(this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,function(e){t.cancelRefEvent(),t.cancelTimeout(),t.receivedResp=e,t.matchReceive(e)}),this.timeoutTimer=setTimeout(function(){t.trigger("timeout",{})},this.timeout))}},{key:"hasReceived",value:function(t){return this.receivedResp&&this.receivedResp.status===t}},{key:"trigger",value:function(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}}]),t}(),f=t.Channel=function(){function t(e,i,r){var s=this;n(this,t),this.state=l.closed,this.topic=e,this.params=i||{},this.socket=r,this.bindings=[],this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new h(this,c.join,this.params,this.timeout),this.pushBuffer=[],this.rejoinTimer=new m(function(){return s.rejoinUntilConnected()},this.socket.reconnectAfterMs),this.joinPush.receive("ok",function(){s.state=l.joined,s.rejoinTimer.reset(),s.pushBuffer.forEach(function(t){return t.send()}),s.pushBuffer=[]}),this.onClose(function(){s.rejoinTimer.reset(),s.socket.log("channel","close "+s.topic+" "+s.joinRef()),s.state=l.closed,s.socket.remove(s)}),this.onError(function(t){s.isLeaving()||s.isClosed()||(s.socket.log("channel","error "+s.topic,t),s.state=l.errored,s.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",function(){s.isJoining()&&(s.socket.log("channel","timeout "+s.topic,s.joinPush.timeout),s.state=l.errored,s.rejoinTimer.scheduleTimeout())}),this.on(c.reply,function(t,e){s.trigger(s.replyEventName(e),t)})}return r(t,[{key:"rejoinUntilConnected",value:function(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this.rejoin()}},{key:"join",value:function(){var t=arguments.length<=0||void 0===arguments[0]?this.timeout:arguments[0];if(this.joinedOnce)throw"tried to join multiple times. 'join' can only be called a single time per channel instance";return this.joinedOnce=!0,this.rejoin(t),this.joinPush}},{key:"onClose",value:function(t){this.on(c.close,t)}},{key:"onError",value:function(t){this.on(c.error,function(e){return t(e)})}},{key:"on",value:function(t,e){this.bindings.push({event:t,callback:e})}},{key:"off",value:function(t){this.bindings=this.bindings.filter(function(e){return e.event!==t})}},{key:"canPush",value:function(){return this.socket.isConnected()&&this.isJoined()}},{key:"push",value:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?this.timeout:arguments[2];if(!this.joinedOnce)throw"tried to push '"+t+"' to '"+this.topic+"' before joining. Use channel.join() before pushing events";var i=new h(this,t,e,n);return this.canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}},{key:"leave",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?this.timeout:arguments[0];this.state=l.leaving;var n=function(){t.socket.log("channel","leave "+t.topic),t.trigger(c.close,"leave",t.joinRef())},i=new h(this,c.leave,{},e);return i.receive("ok",function(){return n()}).receive("timeout",function(){return n()}),i.send(),this.canPush()||i.trigger("ok",{}),i}},{key:"onMessage",value:function(t,e,n){return e}},{key:"isMember",value:function(t){return this.topic===t}},{key:"joinRef",value:function(){return this.joinPush.ref}},{key:"sendJoin",value:function(t){this.state=l.joining,this.joinPush.resend(t)}},{key:"rejoin",value:function(){var t=arguments.length<=0||void 0===arguments[0]?this.timeout:arguments[0];this.isLeaving()||this.sendJoin(t)}},{key:"trigger",value:function(t,e,n){var i=c.close,r=c.error,s=c.leave,o=c.join;if(!(n&&[i,r,s,o].indexOf(t)>=0&&n!==this.joinRef())){var a=this.onMessage(t,e,n);if(e&&!a)throw"channel onMessage callbacks must return the payload, modified or unmodified";this.bindings.filter(function(e){return e.event===t}).map(function(t){return t.callback(a,n)})}}},{key:"replyEventName",value:function(t){return"chan_reply_"+t}},{key:"isClosed",value:function(){return this.state===l.closed}},{key:"isErrored",value:function(){return this.state===l.errored}},{key:"isJoined",value:function(){return this.state===l.joined}},{key:"isJoining",value:function(){return this.state===l.joining}},{key:"isLeaving",value:function(){return this.state===l.leaving}}]),t}(),p=(t.Socket=function(){function t(e){var i=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];n(this,t),this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=r.timeout||a,this.transport=r.transport||window.WebSocket||p,this.heartbeatIntervalMs=r.heartbeatIntervalMs||3e4,this.reconnectAfterMs=r.reconnectAfterMs||function(t){return[1e3,2e3,5e3,1e4][t-1]||1e4},this.logger=r.logger||function(){},this.longpollerTimeout=r.longpollerTimeout||2e4,this.params=r.params||{},this.endPoint=e+"/"+u.websocket,this.reconnectTimer=new m(function(){i.disconnect(function(){return i.connect()})},this.reconnectAfterMs)}return r(t,[{key:"protocol",value:function(){return location.protocol.match(/^https/)?"wss":"ws"}},{key:"endPointURL",value:function(){var t=d.appendParams(d.appendParams(this.endPoint,this.params),{vsn:s});return"/"!==t.charAt(0)?t:"/"===t.charAt(1)?this.protocol()+":"+t:this.protocol()+"://"+location.host+t}},{key:"disconnect",value:function(t,e,n){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,n||""):this.conn.close(),this.conn=null),t&&t()}},{key:"connect",value:function(t){var e=this;t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=t),this.conn||(this.conn=new this.transport(this.endPointURL()),this.conn.timeout=this.longpollerTimeout,this.conn.onopen=function(){return e.onConnOpen()},this.conn.onerror=function(t){return e.onConnError(t)},this.conn.onmessage=function(t){return e.onConnMessage(t)},this.conn.onclose=function(t){return e.onConnClose(t)})}},{key:"log",value:function(t,e,n){this.logger(t,e,n)}},{key:"onOpen",value:function(t){this.stateChangeCallbacks.open.push(t)}},{key:"onClose",value:function(t){this.stateChangeCallbacks.close.push(t)}},{key:"onError",value:function(t){this.stateChangeCallbacks.error.push(t)}},{key:"onMessage",value:function(t){this.stateChangeCallbacks.message.push(t)}},{key:"onConnOpen",value:function(){var t=this;this.log("transport","connected to "+this.endPointURL(),this.transport.prototype),this.flushSendBuffer(),this.reconnectTimer.reset(),this.conn.skipHeartbeat||(clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(function(){return t.sendHeartbeat()},this.heartbeatIntervalMs)),this.stateChangeCallbacks.open.forEach(function(t){return t()})}},{key:"onConnClose",value:function(t){this.log("transport","close",t),this.triggerChanError(),clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(function(e){return e(t)})}},{key:"onConnError",value:function(t){this.log("transport",t),this.triggerChanError(),this.stateChangeCallbacks.error.forEach(function(e){return e(t)})}},{key:"triggerChanError",value:function(){this.channels.forEach(function(t){return t.trigger(c.error)})}},{key:"connectionState",value:function(){switch(this.conn&&this.conn.readyState){case o.connecting:return"connecting";case o.open:return"open";case o.closing:return"closing";default:return"closed"}}},{key:"isConnected",value:function(){return"open"===this.connectionState()}},{key:"remove",value:function(t){this.channels=this.channels.filter(function(e){return e.joinRef()!==t.joinRef()})}},{key:"channel",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=new f(t,e,this);return this.channels.push(n),n}},{key:"push",value:function(t){var e=this,n=t.topic,i=t.event,r=t.payload,s=t.ref,o=function(){return e.conn.send(JSON.stringify(t))};this.log("push",n+" "+i+" ("+s+")",r),this.isConnected()?o():this.sendBuffer.push(o)}},{key:"makeRef",value:function(){var t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}},{key:"sendHeartbeat",value:function(){this.isConnected()&&this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.makeRef()})}},{key:"flushSendBuffer",value:function(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(function(t){return t()}),this.sendBuffer=[])}},{key:"onConnMessage",value:function(t){var e=JSON.parse(t.data),n=e.topic,i=e.event,r=e.payload,s=e.ref;this.log("receive",(r.status||"")+" "+n+" "+i+" "+(s&&"("+s+")"||""),r),this.channels.filter(function(t){return t.isMember(n)}).forEach(function(t){return t.trigger(i,r,s)}),this.stateChangeCallbacks.message.forEach(function(t){return t(e)})}}]),t}(),t.LongPoll=function(){function t(e){n(this,t),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=o.connecting,this.poll()}return r(t,[{key:"normalizeEndpoint",value:function(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+u.websocket),"$1/"+u.longpoll)}},{key:"endpointURL",value:function(){return d.appendParams(this.pollEndpoint,{token:this.token})}},{key:"closeAndRetry",value:function(){this.close(),this.readyState=o.connecting}},{key:"ontimeout",value:function(){this.onerror("timeout"),this.closeAndRetry()}},{key:"poll",value:function(){var t=this;this.readyState!==o.open&&this.readyState!==o.connecting||d.request("GET",this.endpointURL(),"application/json",null,this.timeout,this.ontimeout.bind(this),function(e){if(e){var n=e.status,i=e.token,r=e.messages;t.token=i}else var n=0;switch(n){case 200:r.forEach(function(e){return t.onmessage({data:JSON.stringify(e)})}),t.poll();break;case 204:t.poll();break;case 410:t.readyState=o.open,t.onopen(),t.poll();break;case 0:case 500:t.onerror(),t.closeAndRetry();break;default:throw"unhandled poll status "+n}})}},{key:"send",value:function(t){var e=this;d.request("POST",this.endpointURL(),"application/json",t,this.timeout,this.onerror.bind(this,"timeout"),function(t){t&&200===t.status||(e.onerror(status),e.closeAndRetry())})}},{key:"close",value:function(t,e){this.readyState=o.closed,this.onclose()}}]),t}()),d=t.Ajax=function(){function t(){n(this,t)}return r(t,null,[{key:"request",value:function(t,e,n,i,r,s,o){if(window.XDomainRequest){var a=new XDomainRequest;this.xdomainRequest(a,t,e,i,r,s,o)}else{var a=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.xhrRequest(a,t,e,n,i,r,s,o)}}},{key:"xdomainRequest",value:function(t,e,n,i,r,s,o){var a=this;t.timeout=r,t.open(e,n),t.onload=function(){var e=a.parseJSON(t.responseText);o&&o(e)},s&&(t.ontimeout=s),t.onprogress=function(){},t.send(i)}},{key:"xhrRequest",value:function(t,e,n,i,r,s,o,a){var l=this;t.timeout=s,t.open(e,n,!0),t.setRequestHeader("Content-Type",i),t.onerror=function(){a&&a(null)},t.onreadystatechange=function(){if(t.readyState===l.states.complete&&a){var e=l.parseJSON(t.responseText);a(e)}},o&&(t.ontimeout=o),t.send(r)}},{key:"parseJSON",value:function(t){return t&&""!==t?JSON.parse(t):null}},{key:"serialize",value:function(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)){var s=e?e+"["+r+"]":r,o=t[r];"object"===("undefined"==typeof o?"undefined":i(o))?n.push(this.serialize(o,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(o))}return n.join("&")}},{key:"appendParams",value:function(t,e){if(0===Object.keys(e).length)return t;var n=t.match(/\?/)?"&":"?";return""+t+n+this.serialize(e)}}]),t}();d.states={complete:4};var m=(t.Presence={syncState:function(t,e,n,i){var r=this,s=this.clone(t),o={},a={};return this.map(s,function(t,n){e[t]||(a[t]=n)}),this.map(e,function(t,e){var n=s[t];n?!function(){var i=e.metas.map(function(t){return t.phx_ref}),s=n.metas.map(function(t){return t.phx_ref}),l=e.metas.filter(function(t){return s.indexOf(t.phx_ref)<0}),c=n.metas.filter(function(t){return i.indexOf(t.phx_ref)<0});l.length>0&&(o[t]=e,o[t].metas=l),c.length>0&&(a[t]=r.clone(n),a[t].metas=c)}():o[t]=e}),this.syncDiff(s,{joins:o,leaves:a},n,i)},syncDiff:function(t,n,i,r){var s=n.joins,o=n.leaves,a=this.clone(t);return i||(i=function(){}),r||(r=function(){}),this.map(s,function(t,n){var r=a[t];if(a[t]=n,r){var s;(s=a[t].metas).unshift.apply(s,e(r.metas))}i(t,r,n)}),this.map(o,function(t,e){var n=a[t];if(n){var i=e.metas.map(function(t){return t.phx_ref});n.metas=n.metas.filter(function(t){return i.indexOf(t.phx_ref)<0}),r(t,n,e),0===n.metas.length&&delete a[t]}}),a},list:function(t,e){return e||(e=function(t,e){return e}),this.map(t,function(t,n){return e(t,n)})},map:function(t,e){return Object.getOwnPropertyNames(t).map(function(n){return e(n,t[n])})},clone:function(t){return JSON.parse(JSON.stringify(t))}},function(){function t(e,i){n(this,t),this.callback=e,this.timerCalc=i,this.timer=null,this.tries=0}return r(t,[{key:"reset",value:function(){this.tries=0,clearTimeout(this.timer)}},{key:"scheduleTimeout",value:function(){var t=this;clearTimeout(this.timer),this.timer=setTimeout(function(){t.tries=t.tries+1,t.callback()},this.timerCalc(this.tries+1))}}]),t}())}("undefined"==typeof t?window.Phoenix=window.Phoenix||{}:t)}()}),require.register("phoenix_html/priv/static/phoenix_html.js",function(t,e,i){e=n(e,{},"phoenix_html"),function(){"use strict";function t(t){var e="A"===t.tagName,n="parent"===t.getAttribute("data-submit");return e&&n}function e(t){for(;t&&t!==document&&t.nodeType===Node.ELEMENT_NODE;){if("FORM"===t.tagName)return t;t=t.parentNode}return null}function n(n){for(;n&&n.getAttribute;){if(t(n)){var i=n.getAttribute("data-confirm");return(null===i||confirm(i))&&e(n).submit(),!0}n=n.parentNode}return!1}window.addEventListener("click",function(t){if(t.target&&n(t.target))return t.preventDefault(),!1},!1)}()}),require.register("prismjs/components/prism-elixir.js",function(t,e,i){e=n(e,{},"prismjs"),function(){Prism.languages.elixir={comment:{pattern:/(^|[^#])#(?![{#]).*/m,lookbehind:!0},regex:/~[rR](?:("""|'''|[\/|"'])(?:\\.|(?!\1)[^\\])+\1|\((?:\\\)|[^)])+\)|\[(?:\\\]|[^\]])+\]|\{(?:\\\}|[^}])+\}|<(?:\\>|[^>])+>)[uismxfr]*/,string:[{pattern:/~[cCsSwW](?:("""|'''|[\/|"'])(?:\\.|(?!\1)[^\\])+\1|\((?:\\\)|[^)])+\)|\[(?:\\\]|[^\]])+\]|\{(?:\\\}|#\{[^}]+\}|[^}])+\}|<(?:\\>|[^>])+>)[csa]?/,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,inside:{}},{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},"attr-name":/\w+:(?!:)/,capture:{pattern:/(^|[^&])&(?:[^&\s\d()][^\s()]*|(?=\())/,lookbehind:!0,alias:"function"},argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@[\S]+/,alias:"variable"},number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|exception|impl|module|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|require|rescue|try|unless|use|when)\b/,"boolean":/\b(?:true|false|nil)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},Prism.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:Prism.util.clone(Prism.languages.elixir)}}}})}()}),require.register("prismjs/components/prism-sql.js",function(t,e,i){e=n(e,{},"prismjs"),function(){Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\w\W]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},string:{pattern:/(^|[^@\\])("|')(?:\\?[\s\S])*?\2/,lookbehind:!0},variable:/@[\w.$]+|@("|'|`)(?:\\?[\s\S])+?\1/,"function":/\b(?:COUNT|SUM|AVG|MIN|MAX|FIRST|LAST|UCASE|LCASE|MID|LEN|ROUND|NOW|FORMAT)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR VARYING|CHARACTER (?:SET|VARYING)|CHARSET|CHECK|CHECKPOINT|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMN|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS|CONTAINSTABLE|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|DATA(?:BASES?)?|DATE(?:TIME)?|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITER(?:S)?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE(?: PRECISION)?|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE KEY|ELSE|ENABLE|ENCLOSED BY|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPE(?:D BY)?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTO|INVOKER|ISOLATION LEVEL|JOIN|KEYS?|KILL|LANGUAGE SQL|LAST|LEFT|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MODIFIES SQL DATA|MODIFY|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL(?: CHAR VARYING| CHARACTER(?: VARYING)?| VARCHAR)?|NATURAL|NCHAR(?: VARCHAR)?|NEXT|NO(?: SQL|CHECK|CYCLE)?|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READ(?:S SQL DATA|TEXT)?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEATABLE|REPLICATION|REQUIRE|RESTORE|RESTRICT|RETURNS?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE MODE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|START(?:ING BY)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED BY|TEXT(?:SIZE)?|THEN|TIMESTAMP|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNPIVOT|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?)\b/i,"boolean":/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b-?(?:0x)?\d*\.?[\da-f]+\b/,operator:/[-+*\/=%^~]|&&?|\|?\||!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|IN|LIKE|NOT|OR|IS|DIV|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}()}),require.register("prismjs/plugins/line-highlight/prism-line-highlight.js",function(t,e,i){e=n(e,{},"prismjs"),function(){!function(){function t(t,e){return Array.prototype.slice.call((e||document).querySelectorAll(t))}function e(t,e){return e=" "+e+" ",(" "+t.className+" ").replace(/[\n\t]/g," ").indexOf(e)>-1}function n(t,n,i){for(var s,o=n.replace(/\s+/g,"").split(","),a=+t.getAttribute("data-line-offset")||0,l=r()?parseInt:parseFloat,c=l(getComputedStyle(t).lineHeight),u=0;s=o[u++];){s=s.split("-");var h=+s[0],f=+s[1]||h,p=document.createElement("div");p.textContent=Array(f-h+2).join(" \n"),p.setAttribute("aria-hidden","true"),p.className=(i||"")+" line-highlight",e(t,"line-numbers")||(p.setAttribute("data-start",h),f>h&&p.setAttribute("data-end",f)),p.style.top=(h-a-1)*c+"px",e(t,"line-numbers")?t.appendChild(p):(t.querySelector("code")||t).appendChild(p)}}function i(){var e=location.hash.slice(1);t(".temporary.line-highlight").forEach(function(t){t.parentNode.removeChild(t)});var i=(e.match(/\.([\d,-]+)$/)||[,""])[1];if(i&&!document.getElementById(e)){var r=e.slice(0,e.lastIndexOf(".")),s=document.getElementById(r);s&&(s.hasAttribute("data-line")||s.setAttribute("data-line",""),n(s,i,"temporary "),document.querySelector(".temporary.line-highlight").scrollIntoView())}}if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var r=function(){var t;return function(){if("undefined"==typeof t){var e=document.createElement("div");e.style.fontSize="13px",e.style.lineHeight="1.5",e.style.padding=0,e.style.border=0,e.innerHTML=" <br /> ",document.body.appendChild(e),t=38===e.offsetHeight,document.body.removeChild(e)}return t}}(),s=0;Prism.hooks.add("complete",function(e){var r=e.element.parentNode,o=r&&r.getAttribute("data-line");r&&o&&/pre/i.test(r.nodeName)&&(clearTimeout(s),t(".line-highlight",r).forEach(function(t){t.parentNode.removeChild(t)}),n(r,o),s=setTimeout(i,1))}),window.addEventListener&&window.addEventListener("hashchange",i)}}()}()}),require.register("prismjs/plugins/line-numbers/prism-line-numbers.js",function(t,e,i){e=n(e,{},"prismjs"),function(){!function(){"undefined"!=typeof self&&self.Prism&&self.document&&Prism.hooks.add("complete",function(t){if(t.code){var e=t.element.parentNode,n=/\s*\bline-numbers\b\s*/;if(e&&/pre/i.test(e.nodeName)&&(n.test(e.className)||n.test(t.element.className))&&!t.element.querySelector(".line-numbers-rows")){n.test(t.element.className)&&(t.element.className=t.element.className.replace(n,"")),n.test(e.className)||(e.className+=" line-numbers");var i,r=t.code.match(/\n(?!$)/g),s=r?r.length+1:1,o=new Array(s+1);o=o.join("<span></span>"),i=document.createElement("span"),i.setAttribute("aria-hidden","true"),i.className="line-numbers-rows",i.innerHTML=o,e.hasAttribute("data-start")&&(e.style.counterReset="linenumber "+(parseInt(e.getAttribute("data-start"),10)-1)),t.element.appendChild(i)}}})}()}()}),require.register("prismjs/plugins/normalize-whitespace/prism-normalize-whitespace.js",function(t,e,i){e=n(e,{},"prismjs"),function(){!function(){function t(t){this.defaults=i({},t)}function e(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})}function n(t){for(var e=0,n=0;n<t.length;++n)t.charCodeAt(n)=="\t".charCodeAt(0)&&(e+=3);return t.length+e}if("undefined"!=typeof self&&self.Prism&&self.document){var i=Object.assign||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t};t.prototype={setDefaults:function(t){this.defaults=i(this.defaults,t)},normalize:function(t,n){n=i(this.defaults,n);for(var r in n){var s=e(r);"normalize"!==r&&"setDefaults"!==s&&n[r]&&this[s]&&(t=this[s].call(this,t,n[r]))}return t},leftTrim:function(t){return t.replace(/^\s+/,"")},rightTrim:function(t){return t.replace(/\s+$/,"")},tabsToSpaces:function(t,e){return e=0|e||4,t.replace(/\t/g,new Array((++e)).join(" "))},spacesToTabs:function(t,e){return e=0|e||4,t.replace(new RegExp(" {"+e+"}","g"),"\t")},removeTrailing:function(t){return t.replace(/\s*?$/gm,"")},removeInitialLineFeed:function(t){return t.replace(/^(?:\r?\n|\r)/,"")},removeIndent:function(t){var e=t.match(/^[^\S\n\r]*(?=\S)/gm);return e&&e[0].length?(e.sort(function(t,e){return t.length-e.length}),e[0].length?t.replace(new RegExp("^"+e[0],"gm"),""):t):t},indent:function(t,e){return t.replace(/^[^\S\n\r]*(?=\S)/gm,new Array((++e)).join("\t")+"$&")},breakLines:function(t,e){e=e===!0?80:0|e||80;for(var i=t.split("\n"),r=0;r<i.length;++r)if(!(n(i[r])<=e)){for(var s=i[r].split(/(\s+)/g),o=0,a=0;a<s.length;++a){var l=n(s[a]);o+=l,o>e&&(s[a]="\n"+s[a],o=l)}i[r]=s.join("")}return i.join("\n")}},Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(t){var e=t.element.parentNode,n=/\bno-whitespace-normalization\b/;if(!(!t.code||!e||"pre"!==e.nodeName.toLowerCase()||t.settings&&t.settings["whitespace-normalization"]===!1||n.test(e.className)||n.test(t.element.className))){for(var i=e.childNodes,r="",s="",o=!1,a=Prism.plugins.NormalizeWhitespace,l=0;l<i.length;++l){var c=i[l];c==t.element?o=!0:"#text"===c.nodeName&&(o?s+=c.nodeValue:r+=c.nodeValue,e.removeChild(c),--l)}if(t.element.children.length&&Prism.plugins.KeepMarkup){var u=r+t.element.innerHTML+s;t.element.innerHTML=a.normalize(u,t.settings),t.code=t.element.textContent}else t.code=r+t.code+s,t.code=a.normalize(t.code,t.settings)}})}}()}()}),require.register("prismjs/prism.js",function(t,i,r){i=n(i,{},"prismjs"),function(){var t="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},n=function(){var e=/\blang(?:uage)?-(\w+)\b/i,n=0,i=t.Prism={util:{encode:function(t){return t instanceof r?new r(t.type,i.util.encode(t.content),t.alias):"Array"===i.util.type(t)?t.map(i.util.encode):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1]},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function(t){var e=i.util.type(t);switch(e){case"Object":var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=i.util.clone(t[r]));return n;case"Array":return t.map&&t.map(function(t){return i.util.clone(t)})}return t}},languages:{extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){r=r||i.languages;var s=r[t];if(2==arguments.length){n=arguments[1];for(var o in n)n.hasOwnProperty(o)&&(s[o]=n[o]);return s}var a={};for(var l in s)if(s.hasOwnProperty(l)){if(l==e)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);a[l]=s[l]}return i.languages.DFS(i.languages,function(e,n){n===r[t]&&e!=t&&(this[e]=a)}),r[t]=a},DFS:function(t,e,n,r){r=r||{};for(var s in t)t.hasOwnProperty(s)&&(e.call(t,s,t[s],n||s),"Object"!==i.util.type(t[s])||r[i.util.objId(t[s])]?"Array"!==i.util.type(t[s])||r[i.util.objId(t[s])]||(r[i.util.objId(t[s])]=!0,i.languages.DFS(t[s],e,s,r)):(r[i.util.objId(t[s])]=!0,i.languages.DFS(t[s],e,null,r)))}},plugins:{},highlightAll:function(t,e){var n={callback:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",n);for(var r,s=n.elements||document.querySelectorAll(n.selector),o=0;r=s[o++];)i.highlightElement(r,t===!0,n.callback)},highlightElement:function(n,r,s){for(var o,a,l=n;l&&!e.test(l.className);)l=l.parentNode;l&&(o=(l.className.match(e)||[,""])[1].toLowerCase(),a=i.languages[o]),n.className=n.className.replace(e,"").replace(/\s+/g," ")+" language-"+o,l=n.parentNode,/pre/i.test(l.nodeName)&&(l.className=l.className.replace(e,"").replace(/\s+/g," ")+" language-"+o);var c=n.textContent,u={element:n,language:o,grammar:a,code:c};if(i.hooks.run("before-sanity-check",u),!u.code||!u.grammar)return u.code&&(u.element.textContent=u.code),void i.hooks.run("complete",u);if(i.hooks.run("before-highlight",u),r&&t.Worker){var h=new Worker(i.filename);h.onmessage=function(t){u.highlightedCode=t.data,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,s&&s.call(u.element),i.hooks.run("after-highlight",u),i.hooks.run("complete",u)},h.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else u.highlightedCode=i.highlight(u.code,u.grammar,u.language),i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,s&&s.call(n),i.hooks.run("after-highlight",u),i.hooks.run("complete",u)},highlight:function(t,e,n){var s=i.tokenize(t,e);return r.stringify(i.util.encode(s),n)},tokenize:function(t,e,n){var r=i.Token,s=[t],o=e.rest;if(o){for(var a in o)e[a]=o[a];delete e.rest}t:for(var a in e)if(e.hasOwnProperty(a)&&e[a]){var l=e[a];l="Array"===i.util.type(l)?l:[l];for(var c=0;c<l.length;++c){var u=l[c],h=u.inside,f=!!u.lookbehind,p=!!u.greedy,d=0,m=u.alias;if(p&&!u.pattern.global){var g=u.pattern.toString().match(/[imuy]*$/)[0];u.pattern=RegExp(u.pattern.source,g+"g")}u=u.pattern||u;for(var y=0,v=0;y<s.length;v+=s[y].length,++y){var b=s[y];if(s.length>t.length)break t;if(!(b instanceof r)){u.lastIndex=0;var _=u.exec(b),C=1;if(!_&&p&&y!=s.length-1){if(u.lastIndex=v,_=u.exec(t),!_)break;for(var w=_.index+(f?_[1].length:0),x=_.index+_[0].length,E=y,k=v,S=s.length;E<S&&k<x;++E)k+=s[E].length,w>=k&&(++y,v=k);if(s[y]instanceof r||s[E-1].greedy)continue;C=E-y,b=t.slice(v,k),_.index-=v}if(_){f&&(d=_[1].length);var w=_.index+d,_=_[0].slice(d),x=w+_.length,T=b.slice(0,w),A=b.slice(x),L=[y,C];T&&L.push(T);var N=new r(a,h?i.tokenize(_,h):_,m,_,p);L.push(N),A&&L.push(A),Array.prototype.splice.apply(s,L)}}}}}return s},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(n&&n.length)for(var r,s=0;r=n[s++];)r(e)}}},r=i.Token=function(t,e,n,i,r){this.type=t,this.content=e,this.alias=n,this.length=0|(i||"").length,this.greedy=!!r};if(r.stringify=function(t,e,n){if("string"==typeof t)return t;if("Array"===i.util.type(t))return t.map(function(n){return r.stringify(n,e,t)}).join("");var s={type:t.type,content:r.stringify(t.content,e,n),tag:"span",classes:["token",t.type],attributes:{},language:e,parent:n};if("comment"==s.type&&(s.attributes.spellcheck="true"),t.alias){var o="Array"===i.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(s.classes,o)}i.hooks.run("wrap",s);var a=Object.keys(s.attributes).map(function(t){return t+'="'+(s.attributes[t]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+(a?" "+a:"")+">"+s.content+"</"+s.tag+">"},!t.document)return t.addEventListener?(t.addEventListener("message",function(e){var n=JSON.parse(e.data),r=n.language,s=n.code,o=n.immediateClose;t.postMessage(i.highlight(s,i.languages[r],r)),o&&t.close()},!1),t.Prism):t.Prism;var s=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return s&&(i.filename=s.src,document.addEventListener&&!s.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(i.highlightAll):window.setTimeout(i.highlightAll,16):document.addEventListener("DOMContentLoaded",i.highlightAll))),t.Prism}();"undefined"!=typeof r&&r.exports&&(r.exports=n),"undefined"!=typeof e&&(e.Prism=n),n.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/i,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},n.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))}),n.languages.xml=n.languages.markup,n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:{pattern:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},n.languages.css.atrule.inside.rest=n.util.clone(n.languages.css),n.languages.markup&&(n.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:n.languages.css,alias:"language-css"}}),n.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:n.languages.css}},alias:"language-css"}},n.languages.markup.tag)),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*\*?|\/|~|\^|%|\.{3}/}),n.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\|\\?[^\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}}}),n.languages.markup&&n.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:n.languages.javascript,alias:"language-javascript"}}),n.languages.js=n.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.forEach&&Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(e){for(var i,r=e.getAttribute("data-src"),s=e,o=/\blang(?:uage)?-(?!\*)(\w+)\b/i;s&&!o.test(s.className);)s=s.parentNode;if(s&&(i=(e.className.match(o)||[,""])[1]),!i){var a=(r.match(/\.(\w+)$/)||[,""])[1];i=t[a]||a}var l=document.createElement("code");l.className="language-"+i,e.textContent="",l.textContent="Loading…",e.appendChild(l);var c=new XMLHttpRequest;c.open("GET",r,!0),c.onreadystatechange=function(){4==c.readyState&&(c.status<400&&c.responseText?(l.textContent=c.responseText,n.highlightElement(l)):c.status>=400?l.textContent="✖ Error "+c.status+" while fetching file: "+c.statusText:l.textContent="✖ Error: File does not exist or is empty")},c.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}()}),require.register("process/browser.js",function(t,e,i){e=n(e,{},"process"),function(){function t(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function n(e){if(c===setTimeout)return setTimeout(e,0);if((c===t||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(n){try{return c.call(null,e,0)}catch(n){return c.call(this,e,0)}}}function r(t){if(u===clearTimeout)return clearTimeout(t);if((u===e||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(t);try{return u(t)}catch(n){try{return u.call(null,t)}catch(n){return u.call(this,t)}}}function s(){d&&f&&(d=!1,f.length?p=f.concat(p):m=-1,p.length&&o())}function o(){if(!d){var t=n(s);d=!0;for(var e=p.length;e;){for(f=p,p=[];++m<e;)f&&f[m].run();m=-1,e=p.length}f=null,d=!1,r(t)}}function a(t,e){this.fun=t,this.array=e}function l(){}var c,u,h=i.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:t}catch(n){c=t}try{u="function"==typeof clearTimeout?clearTimeout:e}catch(n){u=e}}();var f,p=[],d=!1,m=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];p.push(new a(t,e)),1!==p.length||d||n(o)},a.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.prependListener=l,h.prependOnceListener=l,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}}()}),require.register("xterm/lib/Charsets.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"",i:"\x0B",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}}()}),require.register("xterm/lib/CompositionHelper.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function t(t,e,n){this.textarea=t,this.compositionView=e,this.terminal=n,this.isComposing=!1,this.isSendingComposition=!1,this.compositionPosition={start:null,end:null}}return t.prototype.compositionstart=function(){this.isComposing=!0,this.compositionPosition.start=this.textarea.value.length,this.compositionView.textContent="",this.compositionView.classList.add("active")},t.prototype.compositionupdate=function(t){var e=this;this.compositionView.textContent=t.data,this.updateCompositionElements(),setTimeout(function(){e.compositionPosition.end=e.textarea.value.length},0)},t.prototype.compositionend=function(){this.finalizeComposition(!0)},t.prototype.keydown=function(t){if(this.isComposing||this.isSendingComposition){if(229===t.keyCode)return!1;if(16===t.keyCode||17===t.keyCode||18===t.keyCode)return!1;this.finalizeComposition(!1)}return 229!==t.keyCode||(this.handleAnyTextareaChanges(),!1)},t.prototype.finalizeComposition=function(t){var e=this;if(this.compositionView.classList.remove("active"),this.isComposing=!1,this.clearTextareaPosition(),t){var n={start:this.compositionPosition.start,end:this.compositionPosition.end};this.isSendingComposition=!0,setTimeout(function(){if(e.isSendingComposition){e.isSendingComposition=!1;var t=void 0;t=e.isComposing?e.textarea.value.substring(n.start,n.end):e.textarea.value.substring(n.start),e.terminal.handler(t)}},0)}else{this.isSendingComposition=!1;var i=this.textarea.value.substring(this.compositionPosition.start,this.compositionPosition.end);this.terminal.handler(i)}},t.prototype.handleAnyTextareaChanges=function(){var t=this,e=this.textarea.value;setTimeout(function(){if(!t.isComposing){var n=t.textarea.value,i=n.replace(e,"");i.length>0&&t.terminal.handler(i)}},0)},t.prototype.updateCompositionElements=function(t){var e=this;if(this.isComposing){var n=this.terminal.element.querySelector(".terminal-cursor");if(n){var i=this.terminal.element.querySelector(".xterm-rows"),r=i.offsetTop+n.offsetTop;this.compositionView.style.left=n.offsetLeft+"px",this.compositionView.style.top=r+"px",this.compositionView.style.height=n.offsetHeight+"px",this.compositionView.style.lineHeight=n.offsetHeight+"px";var s=this.compositionView.getBoundingClientRect();this.textarea.style.left=n.offsetLeft+"px",this.textarea.style.top=r+"px",this.textarea.style.width=s.width+"px",this.textarea.style.height=s.height+"px",this.textarea.style.lineHeight=s.height+"px"}t||setTimeout(function(){return e.updateCompositionElements(!0)},0)}},t.prototype.clearTextareaPosition=function(){this.textarea.style.left="",this.textarea.style.top=""},t}();t.CompositionHelper=e}()}),require.register("xterm/lib/EscapeSequences.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e;!function(t){t.NUL="\0",t.SOH="",t.STX="",t.ETX="",t.EOT="",t.ENQ="",t.ACK="",t.BEL="",t.BS="\b",t.HT="\t",t.LF="\n",t.VT="\x0B",t.FF="\f",t.CR="\r",t.SO="",t.SI="",t.DLE="",t.DC1="",t.DC2="",t.DC3="",t.DC4="",t.NAK="",t.SYN="",t.ETB="",t.CAN="",t.EM="",t.SUB="",t.ESC="",t.FS="",t.GS="",t.RS="",t.US="",t.SP=" ",t.DEL=""}(e=t.C0||(t.C0={}))}()}),require.register("xterm/lib/EventEmitter.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function t(){this._events=this._events||{}}return t.prototype.on=function(t,e){this._events[t]=this._events[t]||[],this._events[t].push(e)},t.prototype.off=function(t,e){if(this._events[t])for(var n=this._events[t],i=n.length;i--;)if(n[i]===e||n[i].listener===e)return void n.splice(i,1)},t.prototype.removeAllListeners=function(t){this._events[t]&&delete this._events[t]},t.prototype.once=function(t,e){function n(){var i=Array.prototype.slice.call(arguments);return this.off(t,n),e.apply(this,i)}return n.listener=e,this.on(t,n)},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._events[t])for(var i=this._events[t],r=0;r<i.length;r++)i[r].apply(this,e)},t.prototype.listeners=function(t){return this._events[t]||[]},t}();t.EventEmitter=e}()}),require.register("xterm/lib/InputHandler.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("./EscapeSequences"),i=e("./Charsets"),r=function(){function t(t){this._terminal=t}return t.prototype.addChar=function(t,e){if(t>=" "){var n=s(e);this._terminal.charset&&this._terminal.charset[t]&&(t=this._terminal.charset[t]);var i=this._terminal.y+this._terminal.ybase;if(!n&&this._terminal.x)return void(this._terminal.lines.get(i)[this._terminal.x-1]&&(this._terminal.lines.get(i)[this._terminal.x-1][2]?this._terminal.lines.get(i)[this._terminal.x-1][1]+=t:this._terminal.lines.get(i)[this._terminal.x-2]&&(this._terminal.lines.get(i)[this._terminal.x-2][1]+=t),this._terminal.updateRange(this._terminal.y)));if(this._terminal.x+n-1>=this._terminal.cols)if(this._terminal.wraparoundMode)this._terminal.x=0,this._terminal.y++,this._terminal.y>this._terminal.scrollBottom&&(this._terminal.y--,this._terminal.scroll(!0));else if(2===n)return;if(i=this._terminal.y+this._terminal.ybase,this._terminal.insertMode)for(var r=0;r<n;++r){var o=this._terminal.lines.get(this._terminal.y+this._terminal.ybase).pop();0===o[2]&&this._terminal.lines.get(i)[this._terminal.cols-2]&&2===this._terminal.lines.get(i)[this._terminal.cols-2][2]&&(this._terminal.lines.get(i)[this._terminal.cols-2]=[this._terminal.curAttr," ",1]),this._terminal.lines.get(i).splice(this._terminal.x,0,[this._terminal.curAttr," ",1])}this._terminal.lines.get(i)[this._terminal.x]=[this._terminal.curAttr,t,n],this._terminal.x++,this._terminal.updateRange(this._terminal.y),2===n&&(this._terminal.lines.get(i)[this._terminal.x]=[this._terminal.curAttr,"",0],this._terminal.x++)}},t.prototype.bell=function(){var t=this;this._terminal.visualBell&&(this._terminal.element.style.borderColor="white",setTimeout(function(){return t._terminal.element.style.borderColor=""},10),this._terminal.popOnBell&&this._terminal.focus())},t.prototype.lineFeed=function(){this._terminal.convertEol&&(this._terminal.x=0),this._terminal.y++,this._terminal.y>this._terminal.scrollBottom&&(this._terminal.y--,this._terminal.scroll()),this._terminal.x>=this._terminal.cols&&this._terminal.x--},t.prototype.carriageReturn=function(){this._terminal.x=0},t.prototype.backspace=function(){this._terminal.x>0&&this._terminal.x--},t.prototype.tab=function(){this._terminal.x=this._terminal.nextStop()},t.prototype.shiftOut=function(){this._terminal.setgLevel(1)},t.prototype.shiftIn=function(){this._terminal.setgLevel(0)},t.prototype.insertChars=function(t){var e,n,i,r;for(e=t[0],e<1&&(e=1),n=this._terminal.y+this._terminal.ybase,i=this._terminal.x,r=[this._terminal.eraseAttr()," ",1];e--&&i<this._terminal.cols;)this._terminal.lines.get(n).splice(i++,0,r),this._terminal.lines.get(n).pop()},t.prototype.cursorUp=function(t){var e=t[0];e<1&&(e=1),this._terminal.y-=e,this._terminal.y<0&&(this._terminal.y=0)},t.prototype.cursorDown=function(t){var e=t[0];e<1&&(e=1),this._terminal.y+=e,this._terminal.y>=this._terminal.rows&&(this._terminal.y=this._terminal.rows-1),this._terminal.x>=this._terminal.cols&&this._terminal.x--},t.prototype.cursorForward=function(t){var e=t[0];e<1&&(e=1),this._terminal.x+=e,this._terminal.x>=this._terminal.cols&&(this._terminal.x=this._terminal.cols-1)},t.prototype.cursorBackward=function(t){var e=t[0];e<1&&(e=1),this._terminal.x>=this._terminal.cols&&this._terminal.x--,this._terminal.x-=e,this._terminal.x<0&&(this._terminal.x=0)},t.prototype.cursorNextLine=function(t){var e=t[0];e<1&&(e=1),this._terminal.y+=e,this._terminal.y>=this._terminal.rows&&(this._terminal.y=this._terminal.rows-1),this._terminal.x=0},t.prototype.cursorPrecedingLine=function(t){var e=t[0];e<1&&(e=1),this._terminal.y-=e,this._terminal.y<0&&(this._terminal.y=0),this._terminal.x=0},t.prototype.cursorCharAbsolute=function(t){var e=t[0];e<1&&(e=1),this._terminal.x=e-1},t.prototype.cursorPosition=function(t){var e,n;e=t[0]-1,n=t.length>=2?t[1]-1:0,e<0?e=0:e>=this._terminal.rows&&(e=this._terminal.rows-1),n<0?n=0:n>=this._terminal.cols&&(n=this._terminal.cols-1),this._terminal.x=n,this._terminal.y=e},t.prototype.cursorForwardTab=function(t){for(var e=t[0]||1;e--;)this._terminal.x=this._terminal.nextStop()},t.prototype.eraseInDisplay=function(t){var e;switch(t[0]){case 0:for(this._terminal.eraseRight(this._terminal.x,this._terminal.y),e=this._terminal.y+1;e<this._terminal.rows;e++)this._terminal.eraseLine(e);break;case 1:for(this._terminal.eraseLeft(this._terminal.x,this._terminal.y),e=this._terminal.y;e--;)this._terminal.eraseLine(e);break;case 2:for(e=this._terminal.rows;e--;)this._terminal.eraseLine(e);break;case 3:var n=this._terminal.lines.length-this._terminal.rows;n>0&&(this._terminal.lines.trimStart(n),this._terminal.ybase=Math.max(this._terminal.ybase-n,0),this._terminal.ydisp=Math.max(this._terminal.ydisp-n,0))}},t.prototype.eraseInLine=function(t){switch(t[0]){case 0:this._terminal.eraseRight(this._terminal.x,this._terminal.y);break;case 1:this._terminal.eraseLeft(this._terminal.x,this._terminal.y);break;case 2:this._terminal.eraseLine(this._terminal.y)}},t.prototype.insertLines=function(t){var e,n,i;for(e=t[0],e<1&&(e=1),n=this._terminal.y+this._terminal.ybase,i=this._terminal.rows-1-this._terminal.scrollBottom,i=this._terminal.rows-1+this._terminal.ybase-i+1;e--;)this._terminal.lines.length===this._terminal.lines.maxLength&&(this._terminal.lines.trimStart(1),this._terminal.ybase--,this._terminal.ydisp--,n--,i--),this._terminal.lines.splice(n,0,this._terminal.blankLine(!0)),this._terminal.lines.splice(i,1);this._terminal.updateRange(this._terminal.y),this._terminal.updateRange(this._terminal.scrollBottom)},t.prototype.deleteLines=function(t){var e,n,i;for(e=t[0],e<1&&(e=1),n=this._terminal.y+this._terminal.ybase,i=this._terminal.rows-1-this._terminal.scrollBottom,i=this._terminal.rows-1+this._terminal.ybase-i;e--;)this._terminal.lines.length===this._terminal.lines.maxLength&&(this._terminal.lines.trimStart(1),this._terminal.ybase-=1,this._terminal.ydisp-=1),this._terminal.lines.splice(i+1,0,this._terminal.blankLine(!0)),this._terminal.lines.splice(n,1);this._terminal.updateRange(this._terminal.y),this._terminal.updateRange(this._terminal.scrollBottom)},t.prototype.deleteChars=function(t){var e,n,i;for(e=t[0],e<1&&(e=1),n=this._terminal.y+this._terminal.ybase,i=[this._terminal.eraseAttr()," ",1];e--;)this._terminal.lines.get(n).splice(this._terminal.x,1),this._terminal.lines.get(n).push(i)},t.prototype.scrollUp=function(t){for(var e=t[0]||1;e--;)this._terminal.lines.splice(this._terminal.ybase+this._terminal.scrollTop,1),this._terminal.lines.splice(this._terminal.ybase+this._terminal.scrollBottom,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.scrollTop),this._terminal.updateRange(this._terminal.scrollBottom)},t.prototype.scrollDown=function(t){for(var e=t[0]||1;e--;)this._terminal.lines.splice(this._terminal.ybase+this._terminal.scrollBottom,1),this._terminal.lines.splice(this._terminal.ybase+this._terminal.scrollTop,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.scrollTop),this._terminal.updateRange(this._terminal.scrollBottom)},t.prototype.eraseChars=function(t){var e,n,i,r;for(e=t[0],e<1&&(e=1),n=this._terminal.y+this._terminal.ybase,i=this._terminal.x,r=[this._terminal.eraseAttr()," ",1];e--&&i<this._terminal.cols;)this._terminal.lines.get(n)[i++]=r},t.prototype.cursorBackwardTab=function(t){for(var e=t[0]||1;e--;)this._terminal.x=this._terminal.prevStop()},t.prototype.charPosAbsolute=function(t){var e=t[0];e<1&&(e=1),this._terminal.x=e-1,this._terminal.x>=this._terminal.cols&&(this._terminal.x=this._terminal.cols-1)},t.prototype.HPositionRelative=function(t){var e=t[0];e<1&&(e=1),this._terminal.x+=e,this._terminal.x>=this._terminal.cols&&(this._terminal.x=this._terminal.cols-1)},t.prototype.repeatPrecedingCharacter=function(t){for(var e=t[0]||1,n=this._terminal.lines.get(this._terminal.ybase+this._terminal.y),i=n[this._terminal.x-1]||[this._terminal.defAttr," ",1];e--;)n[this._terminal.x++]=i},t.prototype.sendDeviceAttributes=function(t){t[0]>0||(this._terminal.prefix?">"===this._terminal.prefix&&(this._terminal.is("xterm")?this._terminal.send(n.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.send(n.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.send(t[0]+"c"):this._terminal.is("screen")&&this._terminal.send(n.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.send(n.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.send(n.C0.ESC+"[?6c"))},t.prototype.linePosAbsolute=function(t){var e=t[0];e<1&&(e=1),this._terminal.y=e-1,this._terminal.y>=this._terminal.rows&&(this._terminal.y=this._terminal.rows-1)},t.prototype.VPositionRelative=function(t){var e=t[0];e<1&&(e=1),this._terminal.y+=e,this._terminal.y>=this._terminal.rows&&(this._terminal.y=this._terminal.rows-1),this._terminal.x>=this._terminal.cols&&this._terminal.x--},t.prototype.HVPosition=function(t){t[0]<1&&(t[0]=1),t[1]<1&&(t[1]=1),this._terminal.y=t[0]-1,this._terminal.y>=this._terminal.rows&&(this._terminal.y=this._terminal.rows-1),this._terminal.x=t[1]-1,this._terminal.x>=this._terminal.cols&&(this._terminal.x=this._terminal.cols-1)},t.prototype.tabClear=function(t){var e=t[0];e<=0?delete this._terminal.tabs[this._terminal.x]:3===e&&(this._terminal.tabs={})},t.prototype.setMode=function(t){if(t.length>1)for(var e=0;e<t.length;e++)this.setMode([t[e]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(t[0]){case 1:this._terminal.applicationCursor=!0;break;case 2:this._terminal.setgCharset(0,i.DEFAULT_CHARSET),this._terminal.setgCharset(1,i.DEFAULT_CHARSET),this._terminal.setgCharset(2,i.DEFAULT_CHARSET),this._terminal.setgCharset(3,i.DEFAULT_CHARSET);break;case 3:this._terminal.savedCols=this._terminal.cols,this._terminal.resize(132,this._terminal.rows);break;case 6:this._terminal.originMode=!0;break;case 7:this._terminal.wraparoundMode=!0;break;case 12:break;case 66:this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=9===t[0],this._terminal.vt200Mouse=1e3===t[0],this._terminal.normalMouse=t[0]>1e3,this._terminal.mouseEvents=!0,this._terminal.element.classList.add("enable-mouse-events"),this._terminal.selectionManager.disable(),this._terminal.log("Binding to mouse events.");break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._terminal.utfMouse=!0;break;case 1006:this._terminal.sgrMouse=!0;break;case 1015:this._terminal.urxvtMouse=!0;break;case 25:this._terminal.cursorHidden=!1;break;case 1049:case 47:case 1047:if(!this._terminal.normal){var n={lines:this._terminal.lines,ybase:this._terminal.ybase,ydisp:this._terminal.ydisp,x:this._terminal.x,y:this._terminal.y,scrollTop:this._terminal.scrollTop,scrollBottom:this._terminal.scrollBottom,tabs:this._terminal.tabs};this._terminal.reset(),this._terminal.viewport.syncScrollArea(),this._terminal.normal=n,this._terminal.showCursor()}}}else switch(t[0]){case 4:this._terminal.insertMode=!0;break;case 20:}},t.prototype.resetMode=function(t){if(t.length>1)for(var e=0;e<t.length;e++)this.resetMode([t[e]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(t[0]){case 1:this._terminal.applicationCursor=!1;break;case 3:132===this._terminal.cols&&this._terminal.savedCols&&this._terminal.resize(this._terminal.savedCols,this._terminal.rows),delete this._terminal.savedCols;break;case 6:this._terminal.originMode=!1;break;case 7:this._terminal.wraparoundMode=!1;break;case 12:break;case 66:this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=!1,this._terminal.vt200Mouse=!1,this._terminal.normalMouse=!1,this._terminal.mouseEvents=!1,this._terminal.element.classList.remove("enable-mouse-events"),this._terminal.selectionManager.enable();break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._terminal.utfMouse=!1;break;case 1006:this._terminal.sgrMouse=!1;break;case 1015:this._terminal.urxvtMouse=!1;break;case 25:this._terminal.cursorHidden=!0;break;case 1049:case 47:case 1047:this._terminal.normal&&(this._terminal.lines=this._terminal.normal.lines,this._terminal.ybase=this._terminal.normal.ybase,this._terminal.ydisp=this._terminal.normal.ydisp,this._terminal.x=this._terminal.normal.x,this._terminal.y=this._terminal.normal.y,this._terminal.scrollTop=this._terminal.normal.scrollTop,this._terminal.scrollBottom=this._terminal.normal.scrollBottom,this._terminal.tabs=this._terminal.normal.tabs,this._terminal.normal=null,this._terminal.selectionManager.setBuffer(this._terminal.lines),this._terminal.refresh(0,this._terminal.rows-1),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor())}}else switch(t[0]){case 4:this._terminal.insertMode=!1;break;case 20:}},t.prototype.charAttributes=function(t){if(1===t.length&&0===t[0])return void(this._terminal.curAttr=this._terminal.defAttr);for(var e,n=t.length,i=0,r=this._terminal.curAttr>>18,s=this._terminal.curAttr>>9&511,o=511&this._terminal.curAttr;i<n;i++)e=t[i],e>=30&&e<=37?s=e-30:e>=40&&e<=47?o=e-40:e>=90&&e<=97?(e+=8,s=e-90):e>=100&&e<=107?(e+=8,o=e-100):0===e?(r=this._terminal.defAttr>>18,s=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):1===e?r|=1:4===e?r|=2:5===e?r|=4:7===e?r|=8:8===e?r|=16:22===e?r&=-2:24===e?r&=-3:25===e?r&=-5:27===e?r&=-9:28===e?r&=-17:39===e?s=this._terminal.defAttr>>9&511:49===e?o=511&this._terminal.defAttr:38===e?2===t[i+1]?(i+=2,s=this._terminal.matchColor(255&t[i],255&t[i+1],255&t[i+2]),s===-1&&(s=511),i+=2):5===t[i+1]&&(i+=2,e=255&t[i],s=e):48===e?2===t[i+1]?(i+=2,o=this._terminal.matchColor(255&t[i],255&t[i+1],255&t[i+2]),o===-1&&(o=511),i+=2):5===t[i+1]&&(i+=2,e=255&t[i],o=e):100===e?(s=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):this._terminal.error("Unknown SGR attribute: %d.",e);this._terminal.curAttr=r<<18|s<<9|o},t.prototype.deviceStatus=function(t){if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(t[0]){case 6:this._terminal.send(n.C0.ESC+"[?"+(this._terminal.y+1)+";"+(this._terminal.x+1)+"R");break;case 15:break;case 25:break;case 26:break;case 53:}}else switch(t[0]){case 5:this._terminal.send(n.C0.ESC+"[0n");break;case 6:this._terminal.send(n.C0.ESC+"["+(this._terminal.y+1)+";"+(this._terminal.x+1)+"R")}},t.prototype.softReset=function(t){this._terminal.cursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._terminal.applicationCursor=!1,this._terminal.scrollTop=0,this._terminal.scrollBottom=this._terminal.rows-1,this._terminal.curAttr=this._terminal.defAttr,this._terminal.x=this._terminal.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null]},t.prototype.setCursorStyle=function(t){var e=t[0]<1?1:t[0];switch(e){case 1:case 2:this._terminal.setOption("cursorStyle","block");break;case 3:case 4:this._terminal.setOption("cursorStyle","underline");break;case 5:case 6:this._terminal.setOption("cursorStyle","bar")}var n=e%2===1;this._terminal.setOption("cursorBlink",n)},t.prototype.setScrollRegion=function(t){this._terminal.prefix||(this._terminal.scrollTop=(t[0]||1)-1,this._terminal.scrollBottom=(t[1]&&t[1]<=this._terminal.rows?t[1]:this._terminal.rows)-1,this._terminal.x=0,this._terminal.y=0)},t.prototype.saveCursor=function(t){this._terminal.savedX=this._terminal.x,this._terminal.savedY=this._terminal.y},t.prototype.restoreCursor=function(t){this._terminal.x=this._terminal.savedX||0,this._terminal.y=this._terminal.savedY||0},t}();t.InputHandler=r;var s=function(t){function e(t){var e,n=0,i=r.length-1;if(t<r[0][0]||t>r[i][1])return!1;for(;i>=n;)if(e=Math.floor((n+i)/2),t>r[e][1])n=e+1;else{if(!(t<r[e][0]))return!0;i=e-1}return!1}function n(n){return 0===n?t.nul:n<32||n>=127&&n<160?t.control:e(n)?0:i(n)?2:1}function i(t){return t>=4352&&(t<=4447||9001===t||9002===t||t>=11904&&t<=42191&&12351!==t||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141)}var r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];return n}({nul:0,control:0})}()}),require.register("xterm/lib/Linkifier.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e="xterm-invalid-link",n="(https?:\\/\\/)",i="[\\da-z\\.-]+",r="[^\\da-z\\.-]+",s="("+i+")",o="([a-z\\.]{2,6})",a="((\\d{1,3}\\.){3}\\d{1,3})",l="(localhost)",c="(:\\d{1,5})",u="(("+s+"\\."+o+")|"+a+"|"+l+")"+c+"?",h="(\\/[\\/\\w\\.\\-%~]*)*",f="[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*",p="(\\?"+f+")?",d="(#"+f+")?",m="[^\\/\\w\\.\\-%]+",g=u+h+p+d,y="(?:^|"+r+")(",v=")($|"+m+")",b=new RegExp(y+n+g+v),_=0,C=function(){function t(){this._nextLinkMatcherId=_,this._rowTimeoutIds=[],this._linkMatchers=[],this.registerLinkMatcher(b,null,{matchIndex:1})}return t.prototype.attachToDom=function(t,e){this._document=t,this._rows=e},t.prototype.linkifyRow=function(e){if(this._document){var n=this._rowTimeoutIds[e];n&&clearTimeout(n),this._rowTimeoutIds[e]=setTimeout(this._linkifyRow.bind(this,e),t.TIME_BEFORE_LINKIFY)}},t.prototype.setHypertextLinkHandler=function(t){this._linkMatchers[_].handler=t},t.prototype.setHypertextValidationCallback=function(t){this._linkMatchers[_].validationCallback=t},t.prototype.registerLinkMatcher=function(t,e,n){if(void 0===n&&(n={}),this._nextLinkMatcherId!==_&&!e)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:t,handler:e,matchIndex:n.matchIndex,validationCallback:n.validationCallback,priority:n.priority||0};return this._addLinkMatcherToList(i),i.id},t.prototype._addLinkMatcherToList=function(t){if(0===this._linkMatchers.length)return void this._linkMatchers.push(t);for(var e=this._linkMatchers.length-1;e>=0;e--)if(t.priority<=this._linkMatchers[e].priority)return void this._linkMatchers.splice(e+1,0,t);this._linkMatchers.splice(0,0,t)},t.prototype.deregisterLinkMatcher=function(t){for(var e=1;e<this._linkMatchers.length;e++)if(this._linkMatchers[e].id===t)return this._linkMatchers.splice(e,1),!0;return!1},t.prototype._linkifyRow=function(t){var n=this._rows[t];if(n)for(var i=(n.textContent,0);i<this._linkMatchers.length;i++){var r=this._linkMatchers[i],s=this._doLinkifyRow(n,r);if(s.length>0){if(r.validationCallback)for(var o=function(t){var n=s[t];r.validationCallback(n.textContent,n,function(t){t||n.classList.add(e)})},a=0;a<s.length;a++)o(a);return}}},t.prototype._doLinkifyRow=function(t,e){var n=[],i=e.id===_,r=t.childNodes,s=t.textContent.match(e.regex);if(!s||0===s.length)return n;for(var o=s["number"!=typeof e.matchIndex?0:e.matchIndex],a=s.index+o.length,l=0;l<r.length;l++){var c=r[l],u=c.textContent.indexOf(o);if(u>=0){var h=this._createAnchorElement(o,e.handler,i);if(c.textContent.length===o.length)if(3===c.nodeType)this._replaceNode(c,h);else{var f=c;if("A"===f.nodeName)return n;f.innerHTML="",f.appendChild(h)}else if(c.childNodes.length>1)for(var p=0;p<c.childNodes.length;p++){var d=c.childNodes[p],m=d.textContent.indexOf(o);if(m!==-1){this._replaceNodeSubstringWithNode(d,h,o,m);break}}else{var g=this._replaceNodeSubstringWithNode(c,h,o,u);l+=g}if(n.push(h),s=t.textContent.substring(a).match(e.regex),!s||0===s.length)return n;o=s["number"!=typeof e.matchIndex?0:e.matchIndex],a+=s.index+o.length}}return n},t.prototype._createAnchorElement=function(t,n,i){var r=this._document.createElement("a");return r.textContent=t,r.draggable=!1,i?(r.href=t,r.target="_blank",r.addEventListener("click",function(e){if(n)return n(e,t)})):r.addEventListener("click",function(i){if(!r.classList.contains(e))return n(i,t)}),r},t.prototype._replaceNode=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=t.parentNode,r=0;r<e.length;r++)i.insertBefore(e[r],t);i.removeChild(t)},t.prototype._replaceNodeSubstringWithNode=function(t,e,n,i){if(1===t.childNodes.length&&(t=t.childNodes[0]),3!==t.nodeType)throw new Error("targetNode must be a text node or only contain a single text node");var r=t.textContent;if(0===i){var s=r.substring(n.length),o=this._document.createTextNode(s);return this._replaceNode(t,e,o),0}if(i===t.textContent.length-n.length){var a=r.substring(0,i),l=this._document.createTextNode(a);return this._replaceNode(t,l,e),0}var c=r.substring(0,i),u=this._document.createTextNode(c),h=r.substring(i+n.length),f=this._document.createTextNode(h);return this._replaceNode(t,u,e,f),1},t}();C.TIME_BEFORE_LINKIFY=200,t.Linkifier=C}()}),require.register("xterm/lib/Parser.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("./EscapeSequences"),i=e("./Charsets"),r={};r[n.C0.BEL]=function(t,e){return e.bell()},r[n.C0.LF]=function(t,e){return e.lineFeed()},r[n.C0.VT]=r[n.C0.LF],r[n.C0.FF]=r[n.C0.LF],r[n.C0.CR]=function(t,e){return e.carriageReturn()},r[n.C0.BS]=function(t,e){return e.backspace()},r[n.C0.HT]=function(t,e){return e.tab()},r[n.C0.SO]=function(t,e){return e.shiftOut()},r[n.C0.SI]=function(t,e){return e.shiftIn()},r[n.C0.ESC]=function(t,e){return t.setState(l.ESCAPED)};var s={};s["["]=function(t,e){e.params=[],e.currentParam=0,t.setState(l.CSI_PARAM)},s["]"]=function(t,e){e.params=[],e.currentParam=0,t.setState(l.OSC)},s.P=function(t,e){e.params=[],e.currentParam=0,t.setState(l.DCS)},s._=function(t,e){t.setState(l.IGNORE)},s["^"]=function(t,e){t.setState(l.IGNORE)},s.c=function(t,e){e.reset()},s.E=function(t,e){e.x=0,e.index(),t.setState(l.NORMAL)},s.D=function(t,e){e.index(),t.setState(l.NORMAL)},s.M=function(t,e){e.reverseIndex(),t.setState(l.NORMAL)},s["%"]=function(t,e){e.setgLevel(0),e.setgCharset(0,i.DEFAULT_CHARSET),t.setState(l.NORMAL),t.skipNextChar()},s[n.C0.CAN]=function(t){return t.setState(l.NORMAL)};var o={};o["?"]=function(t){return t.setPrefix("?")},o[">"]=function(t){return t.setPrefix(">")},o["!"]=function(t){return t.setPrefix("!")},o[0]=function(t){return t.setParam(10*t.getParam())},o[1]=function(t){return t.setParam(10*t.getParam()+1)},o[2]=function(t){return t.setParam(10*t.getParam()+2)},o[3]=function(t){return t.setParam(10*t.getParam()+3)},o[4]=function(t){return t.setParam(10*t.getParam()+4)},o[5]=function(t){return t.setParam(10*t.getParam()+5)},o[6]=function(t){return t.setParam(10*t.getParam()+6)},o[7]=function(t){return t.setParam(10*t.getParam()+7)},o[8]=function(t){return t.setParam(10*t.getParam()+8)},o[9]=function(t){return t.setParam(10*t.getParam()+9)},o.$=function(t){return t.setPostfix("$")},o['"']=function(t){return t.setPostfix('"')},o[" "]=function(t){return t.setPostfix(" ")},o["'"]=function(t){return t.setPostfix("'")},o[";"]=function(t){return t.finalizeParam()},o[n.C0.CAN]=function(t){return t.setState(l.NORMAL)};var a={};a["@"]=function(t,e,n){return t.insertChars(e)},a.A=function(t,e,n){return t.cursorUp(e)},a.B=function(t,e,n){return t.cursorDown(e)},a.C=function(t,e,n){return t.cursorForward(e)},a.D=function(t,e,n){return t.cursorBackward(e)},a.E=function(t,e,n){return t.cursorNextLine(e)},a.F=function(t,e,n){return t.cursorPrecedingLine(e)},a.G=function(t,e,n){return t.cursorCharAbsolute(e)},a.H=function(t,e,n){return t.cursorPosition(e)},a.I=function(t,e,n){return t.cursorForwardTab(e)},a.J=function(t,e,n){return t.eraseInDisplay(e)},a.K=function(t,e,n){return t.eraseInLine(e)},a.L=function(t,e,n){return t.insertLines(e)},a.M=function(t,e,n){return t.deleteLines(e)},a.P=function(t,e,n){return t.deleteChars(e)},a.S=function(t,e,n){return t.scrollUp(e)},a.T=function(t,e,n){e.length<2&&!n&&t.scrollDown(e)},a.X=function(t,e,n){return t.eraseChars(e)},a.Z=function(t,e,n){return t.cursorBackwardTab(e)},a["`"]=function(t,e,n){return t.charPosAbsolute(e)},a.a=function(t,e,n){return t.HPositionRelative(e)},a.b=function(t,e,n){return t.repeatPrecedingCharacter(e)},a.c=function(t,e,n){return t.sendDeviceAttributes(e)},a.d=function(t,e,n){return t.linePosAbsolute(e)},a.e=function(t,e,n){return t.VPositionRelative(e)},a.f=function(t,e,n){return t.HVPosition(e)},a.g=function(t,e,n){return t.tabClear(e)},a.h=function(t,e,n){return t.setMode(e)},a.l=function(t,e,n){return t.resetMode(e)},a.m=function(t,e,n){return t.charAttributes(e)},a.n=function(t,e,n){return t.deviceStatus(e)},a.p=function(t,e,n){switch(n){case"!":t.softReset(e)}},a.q=function(t,e,n,i){" "===i&&t.setCursorStyle(e)},a.r=function(t,e){return t.setScrollRegion(e)},a.s=function(t,e){return t.saveCursor(e)},a.u=function(t,e){return t.restoreCursor(e)},a[n.C0.CAN]=function(t,e,n,i,r){return r.setState(l.NORMAL)};var l;!function(t){t[t.NORMAL=0]="NORMAL",t[t.ESCAPED=1]="ESCAPED",t[t.CSI_PARAM=2]="CSI_PARAM",t[t.CSI=3]="CSI",t[t.OSC=4]="OSC",t[t.CHARSET=5]="CHARSET",t[t.DCS=6]="DCS",t[t.IGNORE=7]="IGNORE"}(l||(l={}));var c=function(){function t(t,e){this._inputHandler=t,this._terminal=e,this._state=l.NORMAL}return t.prototype.parse=function(t){var e,c,u,h,f=t.length;for(this._position=0,this._terminal.surrogate_high&&(t=this._terminal.surrogate_high+t,this._terminal.surrogate_high="");this._position<f;this._position++){if(c=t[this._position],u=t.charCodeAt(this._position),55296<=u&&u<=56319){if(h=t.charCodeAt(this._position+1),isNaN(h)){this._terminal.surrogate_high=c;continue}u=1024*(u-55296)+(h-56320)+65536,c+=t.charAt(this._position+1)}if(!(56320<=u&&u<=57343))switch(this._state){case l.NORMAL:c in r?r[c](this,this._inputHandler):this._inputHandler.addChar(c,u);break;case l.ESCAPED:if(c in s){s[c](this,this._terminal);break}switch(c){case"(":case")":case"*":case"+":case"-":case".":switch(c){case"(":this._terminal.gcharset=0;break;case")":this._terminal.gcharset=1;break;case"*":this._terminal.gcharset=2;break;case"+":this._terminal.gcharset=3;break;case"-":this._terminal.gcharset=1;break;case".":this._terminal.gcharset=2}this._state=l.CHARSET;break;case"/":this._terminal.gcharset=3,this._state=l.CHARSET,this._position--;break;case"N":break;case"O":break;case"n":this._terminal.setgLevel(2);break;case"o":this._terminal.setgLevel(3);break;case"|":this._terminal.setgLevel(3);break;case"}":this._terminal.setgLevel(2);break;case"~":this._terminal.setgLevel(1);break;case"7":this._inputHandler.saveCursor(),this._state=l.NORMAL;break;case"8":this._inputHandler.restoreCursor(),this._state=l.NORMAL;break;case"#":this._state=l.NORMAL,this._position++;break;case"H":this._terminal.tabSet(),this._state=l.NORMAL;break;case"=":this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;case">":this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;default:this._state=l.NORMAL,this._terminal.error("Unknown ESC control: %s.",c)}break;case l.CHARSET:c in i.CHARSETS?(e=i.CHARSETS[c],"/"===c&&this.skipNextChar()):e=i.DEFAULT_CHARSET,this._terminal.setgCharset(this._terminal.gcharset,e),this._terminal.gcharset=null,this._state=l.NORMAL;break;case l.OSC:if(c===n.C0.ESC||c===n.C0.BEL){switch(c===n.C0.ESC&&this._position++,this._terminal.params.push(this._terminal.currentParam),this._terminal.params[0]){case 0:case 1:case 2:this._terminal.params[1]&&(this._terminal.title=this._terminal.params[1],this._terminal.handleTitle(this._terminal.title));break;case 3:break;case 4:case 5:break;case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:break;case 46:break;case 50:break;case 51:break;case 52:break;case 104:case 105:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:}this._terminal.params=[],this._terminal.currentParam=0,this._state=l.NORMAL}else this._terminal.params.length?this._terminal.currentParam+=c:c>="0"&&c<="9"?this._terminal.currentParam=10*this._terminal.currentParam+c.charCodeAt(0)-48:";"===c&&(this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam="");break;case l.CSI_PARAM:if(c in o){o[c](this);break}this.finalizeParam(),this._state=l.CSI;case l.CSI:c in a?a[c](this._inputHandler,this._terminal.params,this._terminal.prefix,this._terminal.postfix,this):this._terminal.error("Unknown CSI code: %s.",c),this._state=l.NORMAL,this._terminal.prefix="",this._terminal.postfix="";break;case l.DCS:if(c===n.C0.ESC||c===n.C0.BEL){c===n.C0.ESC&&this._position++;var p=void 0,d=void 0;switch(this._terminal.prefix){case"":break;case"$q":switch(p=this._terminal.currentParam,d=!1,p){case'"q':p='0"q';break;case'"p':p='61"p';break;case"r":p=""+(this._terminal.scrollTop+1)+";"+(this._terminal.scrollBottom+1)+"r";break;case"m":p="0m";break;default:this._terminal.error("Unknown DCS Pt: %s.",p),p=""}this._terminal.send(n.C0.ESC+"P"+ +d+"$r"+p+n.C0.ESC+"\\");break;case"+p":break;case"+q":p=this._terminal.currentParam,d=!1,this._terminal.send(n.C0.ESC+"P"+ +d+"+r"+p+n.C0.ESC+"\\");break;default:this._terminal.error("Unknown DCS prefix: %s.",this._terminal.prefix)}this._terminal.currentParam=0,this._terminal.prefix="",this._state=l.NORMAL}else this._terminal.currentParam?this._terminal.currentParam+=c:this._terminal.prefix||"$"===c||"+"===c?2===this._terminal.prefix.length?this._terminal.currentParam=c:this._terminal.prefix+=c:this._terminal.currentParam=c;break;case l.IGNORE:c!==n.C0.ESC&&c!==n.C0.BEL||(c===n.C0.ESC&&this._position++,this._state=l.NORMAL)}}return this._state},t.prototype.setState=function(t){this._state=t},t.prototype.setPrefix=function(t){this._terminal.prefix=t},t.prototype.setPostfix=function(t){this._terminal.postfix=t},t.prototype.setParam=function(t){this._terminal.currentParam=t},t.prototype.getParam=function(){return this._terminal.currentParam},t.prototype.finalizeParam=function(){this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam=0},t.prototype.skipNextChar=function(){this._position++},t}();t.Parser=c}()}),require.register("xterm/lib/Renderer.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";function n(t){var e=t.ownerDocument,n=e.createElement("span");n.innerHTML="hello world",t.appendChild(n);var i=n.offsetWidth,r=n.offsetHeight;n.style.fontWeight="bold";var s=n.offsetWidth,o=n.offsetHeight;return t.removeChild(n),i!==s||r!==o}Object.defineProperty(t,"__esModule",{value:!0});var i,r=e("./utils/DomElementObjectPool"),s=5;!function(t){t[t.BOLD=1]="BOLD",t[t.UNDERLINE=2]="UNDERLINE",t[t.BLINK=4]="BLINK",t[t.INVERSE=8]="INVERSE",t[t.INVISIBLE=16]="INVISIBLE"}(i||(i={}));var o=null,a=function(){function t(t){this._terminal=t,this._refreshRowsQueue=[],this._refreshFramesSkipped=0,this._refreshAnimationFrame=null,this._spanElementObjectPool=new r.DomElementObjectPool("span"),null===o&&(o=n(this._terminal.element)),this._spanElementObjectPool=new r.DomElementObjectPool("span")}return t.prototype.queueRefresh=function(t,e){this._refreshRowsQueue.push({start:t,end:e}),this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(this._refreshLoop.bind(this)))},t.prototype._refreshLoop=function(){var t=this._terminal.writeBuffer.length>0&&this._refreshFramesSkipped++<=s;if(t)return void(this._refreshAnimationFrame=window.requestAnimationFrame(this._refreshLoop.bind(this)));this._refreshFramesSkipped=0;var e,n;if(this._refreshRowsQueue.length>4)e=0,n=this._terminal.rows-1;else{e=this._refreshRowsQueue[0].start,n=this._refreshRowsQueue[0].end;for(var i=1;i<this._refreshRowsQueue.length;i++)this._refreshRowsQueue[i].start<e&&(e=this._refreshRowsQueue[i].start),this._refreshRowsQueue[i].end>n&&(n=this._refreshRowsQueue[i].end)}this._refreshRowsQueue=[],this._refreshAnimationFrame=null,this._refresh(e,n)},t.prototype._refresh=function(t,e){var n;e-t>=this._terminal.rows/2&&(n=this._terminal.element.parentNode,n&&this._terminal.element.removeChild(this._terminal.rowContainer));var r=this._terminal.cols,s=t;for(e>=this._terminal.rows&&(this._terminal.log("`end` is too large. Most likely a bad CSR."),e=this._terminal.rows-1);s<=e;s++){var a=s+this._terminal.ydisp,l=this._terminal.lines.get(a),c=void 0;c=this._terminal.y===s-(this._terminal.ybase-this._terminal.ydisp)&&this._terminal.cursorState&&!this._terminal.cursorHidden?this._terminal.x:-1;for(var u=this._terminal.defAttr,h=document.createDocumentFragment(),f="",p=void 0;this._terminal.children[s].children.length;){var d=this._terminal.children[s].children[0];this._terminal.children[s].removeChild(d),this._spanElementObjectPool.release(d)}for(var m=0;m<r;m++){var g=l[m][0],y=l[m][1],v=l[m][2];if(v){if(m===c&&(g=-1),g!==u&&(u!==this._terminal.defAttr&&(f&&(p.innerHTML=f,f=""),h.appendChild(p),p=null),g!==this._terminal.defAttr))if(f&&!p&&(p=this._spanElementObjectPool.acquire()),p&&(f&&(p.innerHTML=f,f=""),h.appendChild(p)),p=this._spanElementObjectPool.acquire(),g===-1)p.classList.add("reverse-video"),p.classList.add("terminal-cursor");else{var b=511&g,_=g>>9&511,C=g>>18;if(C&i.BOLD&&(o||p.classList.add("xterm-bold"),_<8&&(_+=8)),C&i.UNDERLINE&&p.classList.add("xterm-underline"),C&i.BLINK&&p.classList.add("xterm-blink"),C&i.INVERSE){var w=b;b=_,_=w,1&C&&_<8&&(_+=8)}C&i.INVISIBLE&&p.classList.add("xterm-hidden"),C&i.INVERSE&&(257===b&&(b=15),256===_&&(_=0)),b<256&&p.classList.add("xterm-bg-color-"+b),_<256&&p.classList.add("xterm-color-"+_)}if(2===v)f+='<span class="xterm-wide-char">'+y+"</span>";else if(y.charCodeAt(0)>255)f+='<span class="xterm-normal-char">'+y+"</span>";else switch(y){case"&":f+="&";break;case"<":f+="<";break;case">":f+=">";break;default:f+=y<=" "?" ":y}u=g}}f&&!p&&(p=this._spanElementObjectPool.acquire()),p&&(f&&(p.innerHTML=f,f=""),h.appendChild(p),p=null),this._terminal.children[s].appendChild(h)}n&&this._terminal.element.appendChild(this._terminal.rowContainer),this._terminal.emit("refresh",{element:this._terminal.element,start:t,end:e})},t.prototype.refreshSelection=function(t,e){for(;this._terminal.selectionContainer.children.length;)this._terminal.selectionContainer.removeChild(this._terminal.selectionContainer.children[0]);if(t&&e){var n=t[1]-this._terminal.ydisp,i=e[1]-this._terminal.ydisp,r=Math.max(n,0),s=Math.min(i,this._terminal.rows-1);if(!(r>=this._terminal.rows||s<0)){var o=document.createDocumentFragment(),a=n===r?t[0]:0,l=r===s?e[0]:this._terminal.cols;o.appendChild(this._createSelectionElement(r,a,l));var c=s-r-1;if(o.appendChild(this._createSelectionElement(r+1,0,this._terminal.cols,c)),r!==s){var u=i===s?e[0]:this._terminal.cols;o.appendChild(this._createSelectionElement(s,0,u))}this._terminal.selectionContainer.appendChild(o)}}},t.prototype._createSelectionElement=function(t,e,n,i){void 0===i&&(i=1);var r=document.createElement("div");return r.style.height=i*this._terminal.charMeasure.height+"px",r.style.top=t*this._terminal.charMeasure.height+"px",r.style.left=e*this._terminal.charMeasure.width+"px",r.style.width=this._terminal.charMeasure.width*(n-e)+"px",r},t}();t.Renderer=a}()}),require.register("xterm/lib/SelectionManager.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var i,r=e("./utils/Mouse"),s=e("./utils/Browser"),o=e("./EventEmitter"),a=e("./SelectionModel"),l=50,c=15,u=50,h=400,f=10,p=" ()[]{}'\"",d=1,m=2,g=String.fromCharCode(160),y=new RegExp(g,"g");!function(t){t[t.NORMAL=0]="NORMAL",t[t.WORD=1]="WORD",t[t.LINE=2]="LINE"}(i||(i={}));var v=function(t){function e(e,n,r,s){var o=t.call(this)||this;return o._terminal=e,o._buffer=n,o._rowContainer=r,o._charMeasure=s,o._initListeners(),o.enable(),o._model=new a.SelectionModel(e),o._lastMouseDownTime=0,o._activeSelectionMode=i.NORMAL,o}return n(e,t),e.prototype._initListeners=function(){var t=this;this._bufferTrimListener=function(e){return t._onTrim(e)},this._mouseMoveListener=function(e){return t._onMouseMove(e)},this._mouseDownListener=function(e){return t._onMouseDown(e)},this._mouseUpListener=function(e){return t._onMouseUp(e)}},e.prototype.disable=function(){this.clearSelection(),this._buffer.off("trim",this._bufferTrimListener),this._rowContainer.removeEventListener("mousedown",this._mouseDownListener)},e.prototype.enable=function(){this._buffer.on("trim",this._bufferTrimListener),this._rowContainer.addEventListener("mousedown",this._mouseDownListener)},e.prototype.setBuffer=function(t){this._buffer=t,this.clearSelection()},Object.defineProperty(e.prototype,"hasSelection",{get:function(){var t=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;return!(!t||!e)&&(t[0]!==e[0]||t[1]!==e[1])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionText",{get:function(){var t=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;if(!t||!e)return"";var n=t[1]===e[1]?e[0]:null,i=[];i.push(this._translateBufferLineToString(this._buffer.get(t[1]),!0,t[0],n));for(var r=t[1]+1;r<=e[1]-1;r++){var o=this._buffer.get(r),a=this._translateBufferLineToString(o,!0);o.isWrapped?i[i.length-1]+=a:i.push(a)}if(t[1]!==e[1]){var o=this._buffer.get(e[1]),a=this._translateBufferLineToString(o,!0,0,e[0]);o.isWrapped?i[i.length-1]+=a:i.push(a)}var l=i.map(function(t){return t.replace(y," ")}).join(s.isMSWindows?"\r\n":"\n");return l},enumerable:!0,configurable:!0}),e.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},e.prototype._translateBufferLineToString=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=null);for(var r="",s=n,o=i,a=0;a<t.length;a++){var l=t[a];r+=l[d],0===l[m]&&(n>=a&&s--,i>=a&&o--)}var c=o||t.length;if(e){var u=r.search(/\s+$/);if(u!==-1&&(c=Math.min(c,u)),c<=s)return""}return r.substring(s,c)},e.prototype.refresh=function(t){var e=this;if(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return e._refresh()})),s.isLinux&&t){var n=this.selectionText;n.length&&this.emit("newselection",this.selectionText)}},e.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd})},e.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh()},e.prototype._onTrim=function(t){var e=this._model.onTrim(t);e&&this.refresh()},e.prototype._getMouseBufferCoords=function(t){var e=r.getCoords(t,this._rowContainer,this._charMeasure,this._terminal.cols,this._terminal.rows,!0);return e[0]--,e[1]--,e[1]+=this._terminal.ydisp,e},e.prototype._getMouseEventScrollAmount=function(t){var e=r.getCoordsRelativeToElement(t,this._rowContainer)[1],n=this._terminal.rows*this._charMeasure.height;return e>=0&&e<=n?0:(e>n&&(e-=n),e=Math.min(Math.max(e,-l),l),e/=l,e/Math.abs(e)+Math.round(e*(c-1)))},e.prototype._onMouseDown=function(t){0===t.button&&(t.preventDefault(),this._dragScrollAmount=0,this._setMouseClickCount(t),t.shiftKey?this._onShiftClick(t):1===this._clickCount?this._onSingleClick(t):2===this._clickCount?this._onDoubleClick(t):3===this._clickCount&&this._onTripleClick(t),this._addMouseDownListeners(),this.refresh(!0))},e.prototype._addMouseDownListeners=function(){var t=this;this._rowContainer.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._rowContainer.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval(function(){return t._dragScroll()},u)},e.prototype._removeMouseDownListeners=function(){this._rowContainer.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._rowContainer.ownerDocument.removeEventListener("mouseup",this._mouseUpListener),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=null},e.prototype._onShiftClick=function(t){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(t))},e.prototype._onSingleClick=function(t){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=i.NORMAL,this._model.selectionStart=this._getMouseBufferCoords(t),this._model.selectionStart){this._model.selectionEnd=null;var e=this._buffer.get(this._model.selectionStart[1])[this._model.selectionStart[0]];0===e[m]&&this._model.selectionStart[0]++}},e.prototype._onDoubleClick=function(t){var e=this._getMouseBufferCoords(t);e&&(this._activeSelectionMode=i.WORD,this._selectWordAt(e))},e.prototype._onTripleClick=function(t){var e=this._getMouseBufferCoords(t);e&&(this._activeSelectionMode=i.LINE,this._selectLineAt(e[1]))},e.prototype._setMouseClickCount=function(t){var e=(new Date).getTime();(e-this._lastMouseDownTime>h||this._distanceFromLastMousePosition(t)>f)&&(this._clickCount=0),this._lastMouseDownTime=e,this._lastMousePosition=[t.pageX,t.pageY],this._clickCount++},e.prototype._distanceFromLastMousePosition=function(t){var e=Math.max(Math.abs(this._lastMousePosition[0]-t.pageX),Math.abs(this._lastMousePosition[1]-t.pageY));return e},e.prototype._onMouseMove=function(t){var e=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(t),this._activeSelectionMode===i.LINE?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._terminal.cols:this._activeSelectionMode===i.WORD&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(t),this._dragScrollAmount>0?this._model.selectionEnd[0]=this._terminal.cols-1:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]<this._buffer.length){var n=this._buffer.get(this._model.selectionEnd[1])[this._model.selectionEnd[0]];n&&0===n[2]&&this._model.selectionEnd[0]++}e&&e[0]===this._model.selectionEnd[0]&&e[1]===this._model.selectionEnd[1]||this.refresh(!0)},e.prototype._dragScroll=function(){this._dragScrollAmount&&(this._terminal.scrollDisp(this._dragScrollAmount,!1),this._dragScrollAmount>0?this._model.selectionEnd=[this._terminal.cols-1,this._terminal.ydisp+this._terminal.rows]:this._model.selectionEnd=[0,this._terminal.ydisp],this.refresh())},e.prototype._onMouseUp=function(t){this._removeMouseDownListeners()},e.prototype._convertViewportColToCharacterIndex=function(t,e){for(var n=e[0],i=0;e[0]>=i;i++){var r=t[i];0===r[m]&&n--}return n},e.prototype._getWordAt=function(t){var e=this._buffer.get(t[1]),n=this._translateBufferLineToString(e,!1),i=this._convertViewportColToCharacterIndex(e,t),r=i,s=t[0]-r,o=0,a=0;if(" "===n.charAt(r)){for(;r>0&&" "===n.charAt(r-1);)r--;for(;i<n.length&&" "===n.charAt(i+1);)i++}else{var l=t[0],c=t[0];for(0===e[l][m]&&(o++,l--),2===e[c][m]&&(a++,c++);r>0&&!this._isCharWordSeparator(n.charAt(r-1));)0===e[l-1][m]&&(o++,l--),r--,l--;for(;i+1<n.length&&!this._isCharWordSeparator(n.charAt(i+1));)2===e[c+1][m]&&(a++,c++),i++,c++}var u=r+s-o,h=Math.min(i-r+o+a+1,this._terminal.cols);return{start:u,length:h}},e.prototype._selectWordAt=function(t){var e=this._getWordAt(t);this._model.selectionStart=[e.start,t[1]],this._model.selectionStartLength=e.length},e.prototype._selectToWordAt=function(t){var e=this._getWordAt(t);this._model.selectionEnd=[this._model.areSelectionValuesReversed()?e.start:e.start+e.length,t[1]]},e.prototype._isCharWordSeparator=function(t){return p.indexOf(t)>=0},e.prototype._selectLineAt=function(t){this._model.selectionStart=[0,t],this._model.selectionStartLength=this._terminal.cols},e}(o.EventEmitter);t.SelectionManager=v}()}),require.register("xterm/lib/SelectionModel.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function t(t){this._terminal=t,this.clearSelection()}return t.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(t.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._terminal.cols,this._terminal.ybase+this._terminal.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?[this.selectionStart[0]+this.selectionStartLength,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:null},enumerable:!0,configurable:!0}),t.prototype.areSelectionValuesReversed=function(){var t=this.selectionStart,e=this.selectionEnd;return t[1]>e[1]||t[1]===e[1]&&t[0]>e[0]},t.prototype.onTrim=function(t){return this.selectionStart&&(this.selectionStart[1]-=t),this.selectionEnd&&(this.selectionEnd[1]-=t),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},t}();t.SelectionModel=e}()}),require.register("xterm/lib/Viewport.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function t(t,e,n,i){var r=this;this.terminal=t,this.viewportElement=e,this.scrollArea=n,this.charMeasure=i,this.currentRowHeight=0,this.lastRecordedBufferLength=0,this.lastRecordedViewportHeight=0,this.terminal.on("scroll",this.syncScrollArea.bind(this)),this.terminal.on("resize",this.syncScrollArea.bind(this)),this.viewportElement.addEventListener("scroll",this.onScroll.bind(this)),setTimeout(function(){return r.syncScrollArea()},0)}return t.prototype.refresh=function(){if(this.charMeasure.height>0){var t=this.charMeasure.height!==this.currentRowHeight;t&&(this.currentRowHeight=this.charMeasure.height,this.viewportElement.style.lineHeight=this.charMeasure.height+"px",this.terminal.rowContainer.style.lineHeight=this.charMeasure.height+"px");var e=this.lastRecordedViewportHeight!==this.terminal.rows;(t||e)&&(this.lastRecordedViewportHeight=this.terminal.rows,this.viewportElement.style.height=this.charMeasure.height*this.terminal.rows+"px",this.terminal.selectionContainer.style.height=this.viewportElement.style.height),this.scrollArea.style.height=this.charMeasure.height*this.lastRecordedBufferLength+"px"}},t.prototype.syncScrollArea=function(){this.lastRecordedBufferLength!==this.terminal.lines.length?(this.lastRecordedBufferLength=this.terminal.lines.length,this.refresh()):this.lastRecordedViewportHeight!==this.terminal.rows?this.refresh():this.charMeasure.height!==this.currentRowHeight&&this.refresh();var t=this.terminal.ydisp*this.currentRowHeight;this.viewportElement.scrollTop!==t&&(this.viewportElement.scrollTop=t)},t.prototype.onScroll=function(t){var e=Math.round(this.viewportElement.scrollTop/this.currentRowHeight),n=e-this.terminal.ydisp;this.terminal.scrollDisp(n,!0)},t.prototype.onWheel=function(t){if(0!==t.deltaY){var e=1;t.deltaMode===WheelEvent.DOM_DELTA_LINE?e=this.currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e=this.currentRowHeight*this.terminal.rows),this.viewportElement.scrollTop+=t.deltaY*e,t.preventDefault()}},t.prototype.onTouchStart=function(t){this.lastTouchY=t.touches[0].pageY},t.prototype.onTouchMove=function(t){var e=this.lastTouchY-t.touches[0].pageY;this.lastTouchY=t.touches[0].pageY,0!==e&&(this.viewportElement.scrollTop+=e,t.preventDefault())},t}();t.Viewport=e}()}),require.register("xterm/lib/addons/fit/fit.js",function(t,e,i){e=n(e,{},"xterm"),function(){!function(n){"object"==typeof t&&"object"==typeof i?i.exports=n(e("../../xterm")):"function"==typeof define?define(["../../xterm"],n):n(window.Terminal)}(function(t){var e={};return e.proposeGeometry=function(t){if(!t.element.parentElement)return null;var e,n,i,r,s,o=window.getComputedStyle(t.element.parentElement),a=parseInt(o.getPropertyValue("height")),l=Math.max(0,parseInt(o.getPropertyValue("width"))-17),c=window.getComputedStyle(t.element),u=parseInt(c.getPropertyValue("padding-top"))+parseInt(c.getPropertyValue("padding-bottom")),h=parseInt(c.getPropertyValue("padding-right"))+parseInt(c.getPropertyValue("padding-left")),f=a-u,p=l-h,d=(t.rowContainer,t.rowContainer.firstElementChild),m=d.innerHTML;return d.style.display="inline",d.innerHTML="W",i=d.getBoundingClientRect().width,d.style.display="",e=d.getBoundingClientRect().height,d.innerHTML=m,n=parseInt(f/e),r=parseInt(p/i),s={cols:r,rows:n}},e.fit=function(t){var n=e.proposeGeometry(t);n&&t.resize(n.cols,n.rows)},t.prototype.proposeGeometry=function(){return e.proposeGeometry(this)},t.prototype.fit=function(){return e.fit(this)},e})}()}),require.register("xterm/lib/addons/fullscreen/fullscreen.js",function(t,e,i){e=n(e,{},"xterm"),function(){!function(n){"object"==typeof t&&"object"==typeof i?i.exports=n(e("../../xterm")):"function"==typeof define?define(["../../xterm"],n):n(window.Terminal)}(function(t){var e={};return e.toggleFullScreen=function(t,e){var n;n="undefined"==typeof e?t.element.classList.contains("fullscreen")?"remove":"add":e?"add":"remove",t.element.classList[n]("fullscreen")},t.prototype.toggleFullscreen=function(t){e.toggleFullScreen(this,t)},e})}()}),require.register("xterm/lib/handlers/Clipboard.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";function e(t,e){return e?t.replace(/\r?\n/g,"\r"):t}function n(t,e,n){e.browser.isMSIE?window.clipboardData.setData("Text",n.selectionText):t.clipboardData.setData("text/plain",n.selectionText),t.preventDefault()}function i(t,n){t.stopPropagation();var i,r=function(i){return i=e(i,n.browser.isMSWindows),n.handler(i),n.textarea.value="",n.emit("paste",i),n.cancel(t)};n.browser.isMSIE?window.clipboardData&&(i=window.clipboardData.getData("Text"),r(i)):t.clipboardData&&(i=t.clipboardData.getData("text/plain"),r(i))}function r(t,e){e.style.position="fixed",e.style.width="20px",e.style.height="20px",e.style.left=t.clientX-10+"px",e.style.top=t.clientY-10+"px",e.style.zIndex="1000",e.focus(),setTimeout(function(){e.style.position=null,e.style.width=null,e.style.height=null,e.style.left=null,e.style.top=null,e.style.zIndex=null},4)}function s(t,e,n){r(t,e),e.value=n.selectionText,e.select()}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=e,t.copyHandler=n,t.pasteHandler=i,t.moveTextAreaUnderMouseCursor=r,t.rightClickHandler=s}()}),require.register("xterm/lib/utils/Browser.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("./Generic"),i="undefined"==typeof navigator,r=i?"node":navigator.userAgent,s=i?"node":navigator.platform;t.isFirefox=!!~r.indexOf("Firefox"),t.isMSIE=!!~r.indexOf("MSIE")||!!~r.indexOf("Trident"),t.isMac=n.contains(["Macintosh","MacIntel","MacPPC","Mac68K"],s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isMSWindows=n.contains(["Windows","Win16","Win32","WinCE"],s),t.isLinux=s.indexOf("Linux")>=0}()}),require.register("xterm/lib/utils/CharMeasure.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=e("../EventEmitter.js"),r=function(t){function e(e,n){var i=t.call(this)||this;return i._document=e,i._parentElement=n,i}return n(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.measure=function(){var t=this;this._measureElement?this._doMeasure():(this._measureElement=this._document.createElement("span"),this._measureElement.style.position="absolute",this._measureElement.style.top="0",this._measureElement.style.left="-9999em",this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement),setTimeout(function(){return t._doMeasure()},0))},e.prototype._doMeasure=function(){var t=this._measureElement.getBoundingClientRect();0!==t.width&&0!==t.height&&(this._width===t.width&&this._height===t.height||(this._width=t.width,this._height=t.height,this.emit("charsizechanged")))},e}(i.EventEmitter);t.CharMeasure=r}()}),require.register("xterm/lib/utils/CircularList.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=e("../EventEmitter"),r=function(t){function e(e){var n=t.call(this)||this;return n._array=new Array(e),n._startIndex=0,n._length=0,n}return n(e,t),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._array.length},set:function(t){for(var e=new Array(t),n=0;n<Math.min(t,this.length);n++)e[n]=this._array[this._getCyclicIndex(n)];this._array=e,this._startIndex=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(t){if(t>this._length)for(var e=this._length;e<t;e++)this._array[e]=void 0;this._length=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"forEach",{get:function(){var t=this;return function(e){for(var n=t.length,i=0;i<n;i++)e(t.get(i),i)}},enumerable:!0,configurable:!0}),e.prototype.get=function(t){return this._array[this._getCyclicIndex(t)]},e.prototype.set=function(t,e){this._array[this._getCyclicIndex(t)]=e},e.prototype.push=function(t){this._array[this._getCyclicIndex(this._length)]=t,this._length===this.maxLength?(this._startIndex++,this._startIndex===this.maxLength&&(this._startIndex=0),this.emit("trim",1)):this._length++},e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length-- -1)]},e.prototype.splice=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e){for(var r=t;r<this._length-e;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+e)];this._length-=e}if(n&&n.length){for(var r=this._length-1;r>=t;r--)this._array[this._getCyclicIndex(r+n.length)]=this._array[this._getCyclicIndex(r)];for(var r=0;r<n.length;r++)this._array[this._getCyclicIndex(t+r)]=n[r];if(this._length+n.length>this.maxLength){var s=this._length+n.length-this.maxLength;this._startIndex+=s,this._length=this.maxLength,this.emit("trim",s)}else this._length+=n.length}},e.prototype.trimStart=function(t){t>this._length&&(t=this._length),this._startIndex+=t,this._length-=t,this.emit("trim",t)},e.prototype.shiftElements=function(t,e,n){if(!(e<=0)){if(t<0||t>=this._length)throw new Error("start argument out of range");if(t+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var i=e-1;i>=0;i--)this.set(t+i+n,this.get(t+i));var r=t+e+n-this._length;if(r>0)for(this._length+=r;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(var i=0;i<e;i++)this.set(t+i+n,this.get(t+i))}},e.prototype._getCyclicIndex=function(t){return(this._startIndex+t)%this.maxLength},e}(i.EventEmitter);t.CircularList=r}()}),require.register("xterm/lib/utils/DomElementObjectPool.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function t(t){this.type=t,this._type=t,this._pool=[],this._inUse={}}return t.prototype.acquire=function(){var e;return e=0===this._pool.length?this._createNew():this._pool.pop(),this._inUse[e.getAttribute(t.OBJECT_ID_ATTRIBUTE)]=e,e},t.prototype.release=function(e){if(!this._inUse[e.getAttribute(t.OBJECT_ID_ATTRIBUTE)])throw new Error("Could not release an element not yet acquired");delete this._inUse[e.getAttribute(t.OBJECT_ID_ATTRIBUTE)],this._cleanElement(e),this._pool.push(e)},t.prototype._createNew=function(){var e=document.createElement(this._type),n=t._objectCount++;return e.setAttribute(t.OBJECT_ID_ATTRIBUTE,n.toString(10)),e},t.prototype._cleanElement=function(t){t.className="",t.innerHTML=""},t}();e.OBJECT_ID_ATTRIBUTE="data-obj-id",e._objectCount=0,t.DomElementObjectPool=e}()}),require.register("xterm/lib/utils/Generic.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";function e(t,e){return t.indexOf(e)>=0}Object.defineProperty(t,"__esModule",{value:!0}),t.contains=e}()}),require.register("xterm/lib/utils/Mouse.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";function e(t,e){if(null==t.pageX)return null;for(var n=t.pageX,i=t.pageY;e&&e!==self.document.documentElement;)n-=e.offsetLeft,i-=e.offsetTop,e="offsetParent"in e?e.offsetParent:e.parentElement;return[n,i]}function n(t,n,i,r,s,o){var a=e(t,n);return a[0]=Math.ceil((a[0]+(o?i.width/2:0))/i.width),a[1]=Math.ceil(a[1]/i.height),a[0]=Math.min(Math.max(a[0],1),r+1),a[1]=Math.min(Math.max(a[1],1),s+1),a}function i(t,e,i,r,s){var o=n(t,e,i,r,s),a=o[0],l=o[1];return a+=32,l+=32,{x:a,y:l}}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoordsRelativeToElement=e,t.getCoords=n,t.getRawByteCoords=i}()}),require.register("xterm/lib/xterm.js",function(t,e,i){e=n(e,{},"xterm"),function(){"use strict";function n(t){var e=this;if(!(this instanceof n))return new n(arguments[0],arguments[1],arguments[2]);e.browser=k,e.cancel=n.cancel,d.EventEmitter.call(this),"number"==typeof t&&(t={cols:arguments[0],rows:arguments[1],handler:arguments[2]}),t=t||{},Object.keys(n.defaults).forEach(function(i){null==t[i]&&(t[i]=n.options[i],n[i]!==n.defaults[i]&&(t[i]=n[i])),e[i]=t[i]}),8===t.colors.length?t.colors=t.colors.concat(n._colors.slice(8)):16===t.colors.length?t.colors=t.colors.concat(n._colors.slice(16)):10===t.colors.length?t.colors=t.colors.slice(0,-2).concat(n._colors.slice(8,-2),t.colors.slice(-2)):18===t.colors.length&&(t.colors=t.colors.concat(n._colors.slice(16,-2),t.colors.slice(-2))),this.colors=t.colors,this.options=t,this.parent=t.body||t.parent||(T?T.getElementsByTagName("body")[0]:null),this.cols=t.cols||t.geometry[0],this.rows=t.rows||t.geometry[1],this.geometry=[this.cols,this.rows],t.handler&&this.on("data",t.handler),this.ybase=0,this.ydisp=0,this.x=0,this.y=0,this.cursorState=0,this.cursorHidden=!1,this.convertEol,this.queue="",this.scrollTop=0,this.scrollBottom=this.rows-1,this.customKeyEventHandler=null,this.cursorBlinkInterval=null,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.normal=null,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.decLocator,this.x10Mouse,this.vt200Mouse,this.vt300Mouse,this.normalMouse,this.mouseEvents,this.sendFocus,this.utfMouse,this.sgrMouse,this.urxvtMouse,this.element,this.children,this.refreshStart,this.refreshEnd,this.savedX,this.savedY,this.savedCols,this.readable=!0,this.writable=!0,this.defAttr=131840,this.curAttr=this.defAttr,this.params=[],this.currentParam=0,this.prefix="",this.postfix="",this.inputHandler=new b.InputHandler(this),this.parser=new _.Parser(this.inputHandler,this),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new w.Linkifier,this.writeBuffer=[],this.writeInProgress=!1,this.xoffSentToCatchUp=!1,this.writeStopped=!1,this.surrogate_high="",this.lines=new y.CircularList(this.scrollback);for(var i=this.rows;i--;)this.lines.push(this.blankLine());this.selectionManager&&this.selectionManager.setBuffer(this.lines),this.tabs,this.setupStops(),this.userScrolling=!1}function r(t,e,n,i){Array.isArray(t)||(t=[t]),t.forEach(function(t){t.addEventListener(e,n,i||!1)})}function s(t,e,n,i){t.removeEventListener(e,n,i||!1)}function o(t,e){if(this.cancelEvents||e)return t.preventDefault(),t.stopPropagation(),!1}function a(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function l(t,e){var n=t.browser.isMac&&e.altKey&&!e.ctrlKey&&!e.metaKey||t.browser.isMSWindows&&e.altKey&&e.ctrlKey&&!e.metaKey;return"keypress"==e.type?n:n&&(!e.keyCode||e.keyCode>47)}function c(t,e,i){var r=t<<16|e<<8|i;if(null!=c._cache[r])return c._cache[r];for(var s,o,a,l,u,h=1/0,f=-1,p=0;p<n.vcolors.length;p++){if(s=n.vcolors[p],o=s[0],a=s[1],l=s[2],u=c.distance(t,e,i,o,a,l),0===u){f=p;break}u<h&&(h=u,f=p)}return c._cache[r]=f}function u(t,e,n){if(t.forEach)return t.forEach(e,n);for(var i=0;i<t.length;i++)e.call(n,t[i],i,t)}function h(t){return 16===t.keyCode||17===t.keyCode||18===t.keyCode}function f(t){if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n}Object.defineProperty(t,"__esModule",{value:!0});var p=e("./CompositionHelper"),d=e("./EventEmitter"),m=e("./Viewport"),g=e("./handlers/Clipboard"),y=e("./utils/CircularList"),v=e("./EscapeSequences"),b=e("./InputHandler"),_=e("./Parser"),C=e("./Renderer"),w=e("./Linkifier"),x=e("./SelectionManager"),E=e("./utils/CharMeasure"),k=e("./utils/Browser"),S=e("./utils/Mouse"),T="undefined"!=typeof window?window.document:null,A=5,L=300,N=600;a(n,d.EventEmitter),n.prototype.eraseAttr=function(){return this.defAttr&-512|511&this.curAttr},n.tangoColors=["#2e3436","#cc0000","#4e9a06","#c4a000","#3465a4","#75507b","#06989a","#d3d7cf","#555753","#ef2929","#8ae234","#fce94f","#729fcf","#ad7fa8","#34e2e2","#eeeeec"],n.colors=function(){function t(t,n,i){r.push("#"+e(t)+e(n)+e(i))}function e(t){return t=t.toString(16),t.length<2?"0"+t:t}var i,r=n.tangoColors.slice(),s=[0,95,135,175,215,255];for(i=0;i<216;i++)t(s[i/36%6|0],s[i/6%6|0],s[i%6]);for(i=0;i<24;i++)s=8+10*i,t(s,s,s);return r}(),n._colors=n.colors.slice(),n.vcolors=function(){for(var t,e=[],i=n.colors,r=0;r<256;r++)t=parseInt(i[r].substring(1),16),e.push([t>>16&255,t>>8&255,255&t]);return e}(),n.defaults={colors:n.colors,theme:"default",convertEol:!1,termName:"xterm",geometry:[80,24],cursorBlink:!1,cursorStyle:"block",visualBell:!1,popOnBell:!1,scrollback:1e3,screenKeys:!1,debug:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,tabStopWidth:8},n.options={},n.focus=null,u(f(n.defaults),function(t){n[t]=n.defaults[t],n.options[t]=n.defaults[t]}),n.prototype.focus=function(){return this.textarea.focus()},n.prototype.getOption=function(t,e){if(!(t in n.defaults))throw new Error('No option with key "'+t+'"');return"undefined"!=typeof this.options[t]?this.options[t]:this[t]},n.prototype.setOption=function(t,e){if(!(t in n.defaults))throw new Error('No option with key "'+t+'"');switch(t){case"scrollback":if(e<this.rows){var i="Setting the scrollback value less than the number of rows ";return i+="("+this.rows+") is not allowed.",console.warn(i),!1}if(this.options[t]!==e){if(this.lines.length>e){var r=this.lines.length-e,s=this.ydisp-r<0;this.lines.trimStart(r),this.ybase=Math.max(this.ybase-r,0),this.ydisp=Math.max(this.ydisp-r,0),s&&this.refresh(0,this.rows-1)}this.lines.maxLength=e,this.viewport.syncScrollArea()}}switch(this[t]=e,this.options[t]=e,t){case"cursorBlink":this.setCursorBlinking(e);break;case"cursorStyle":this.element.classList.toggle("xterm-cursor-style-underline","underline"===e),this.element.classList.toggle("xterm-cursor-style-bar","bar"===e);break;case"tabStopWidth":this.setupStops()}},n.prototype.restartCursorBlinking=function(){this.setCursorBlinking(this.options.cursorBlink)},n.prototype.setCursorBlinking=function(t){if(this.element.classList.toggle("xterm-cursor-blink",t),this.clearCursorBlinkingInterval(),t){var e=this;this.cursorBlinkInterval=setInterval(function(){e.element.classList.toggle("xterm-cursor-blink-on")},N)}},n.prototype.clearCursorBlinkingInterval=function(){this.element.classList.remove("xterm-cursor-blink-on"),this.cursorBlinkInterval&&(clearInterval(this.cursorBlinkInterval),this.cursorBlinkInterval=null)},n.bindFocus=function(t){r(t.textarea,"focus",function(e){t.sendFocus&&t.send(v.C0.ESC+"[I"),t.element.classList.add("focus"),t.showCursor(),t.restartCursorBlinking.apply(t),n.focus=t,t.emit("focus",{terminal:t})})},n.prototype.blur=function(){return this.textarea.blur()},n.bindBlur=function(t){r(t.textarea,"blur",function(e){t.refresh(t.y,t.y),t.sendFocus&&t.send(v.C0.ESC+"[O"),t.element.classList.remove("focus"),t.clearCursorBlinkingInterval.apply(t),n.focus=null,t.emit("blur",{terminal:t})})},n.prototype.initGlobal=function(){var t=this,e=this;n.bindKeys(this),n.bindFocus(this),n.bindBlur(this),r(this.element,"copy",function(n){t.mouseEvents||g.copyHandler(n,e,t.selectionManager)});var i=function(t){return g.pasteHandler(t,e)};r(this.textarea,"paste",i),r(this.element,"paste",i),e.browser.isFirefox?r(this.element,"mousedown",function(e){2==e.button&&g.rightClickHandler(e,t.textarea,t.selectionManager)}):r(this.element,"contextmenu",function(e){g.rightClickHandler(e,t.textarea,t.selectionManager)}),e.browser.isLinux&&r(this.element,"auxclick",function(e){1===e.button&&g.moveTextAreaUnderMouseCursor(e,t.textarea,t.selectionManager)})},n.bindKeys=function(t){r(t.element,"keydown",function(e){T.activeElement==this&&t.keyDown(e)},!0),r(t.element,"keypress",function(e){T.activeElement==this&&t.keyPress(e)},!0),r(t.element,"keyup",function(e){h(e)||t.focus(t)},!0),r(t.textarea,"keydown",function(e){t.keyDown(e)},!0),r(t.textarea,"keypress",function(e){t.keyPress(e),this.value=""},!0),r(t.textarea,"compositionstart",t.compositionHelper.compositionstart.bind(t.compositionHelper)),r(t.textarea,"compositionupdate",t.compositionHelper.compositionupdate.bind(t.compositionHelper)),r(t.textarea,"compositionend",t.compositionHelper.compositionend.bind(t.compositionHelper)),t.on("refresh",t.compositionHelper.updateCompositionElements.bind(t.compositionHelper)),t.on("refresh",function(e){t.queueLinkification(e.start,e.end)})},n.prototype.insertRow=function(t){return"object"!=typeof t&&(t=T.createElement("div")),this.rowContainer.appendChild(t),this.children.push(t),t},n.prototype.open=function(t,e){var n=this,i=this,s=0;if(this.parent=t||this.parent,!this.parent)throw new Error("Terminal requires a parent element.");for(this.context=this.parent.ownerDocument.defaultView,this.document=this.parent.ownerDocument,this.body=this.document.getElementsByTagName("body")[0],this.element=this.document.createElement("div"),this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.classList.add("xterm-theme-"+this.theme),this.setCursorBlinking(this.options.cursorBlink),this.element.setAttribute("tabindex",0),this.viewportElement=T.createElement("div"),this.viewportElement.classList.add("xterm-viewport"),this.element.appendChild(this.viewportElement),this.viewportScrollArea=T.createElement("div"),this.viewportScrollArea.classList.add("xterm-scroll-area"),this.viewportElement.appendChild(this.viewportScrollArea),this.selectionContainer=T.createElement("div"),this.selectionContainer.classList.add("xterm-selection"),this.element.appendChild(this.selectionContainer),this.rowContainer=T.createElement("div"),this.rowContainer.classList.add("xterm-rows"),this.element.appendChild(this.rowContainer),this.children=[],this.linkifier.attachToDom(T,this.children),this.helperContainer=T.createElement("div"),this.helperContainer.classList.add("xterm-helpers"),this.element.appendChild(this.helperContainer),this.textarea=T.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.textarea.addEventListener("focus",function(){i.emit("focus",{terminal:i})}),this.textarea.addEventListener("blur",function(){i.emit("blur",{terminal:i})}),this.helperContainer.appendChild(this.textarea),this.compositionView=T.createElement("div"),this.compositionView.classList.add("composition-view"),this.compositionHelper=new p.CompositionHelper(this.textarea,this.compositionView,this),this.helperContainer.appendChild(this.compositionView),this.charSizeStyleElement=T.createElement("style"),this.helperContainer.appendChild(this.charSizeStyleElement);s<this.rows;s++)this.insertRow();if(this.parent.appendChild(this.element),this.charMeasure=new E.CharMeasure(T,this.helperContainer),this.charMeasure.on("charsizechanged",function(){i.updateCharSizeStyles()}),this.charMeasure.measure(),this.viewport=new m.Viewport(this,this.viewportElement,this.viewportScrollArea,this.charMeasure),this.renderer=new C.Renderer(this),this.selectionManager=new x.SelectionManager(this,this.lines,this.rowContainer,this.charMeasure),this.selectionManager.on("refresh",function(t){n.renderer.refreshSelection(t.start,t.end)}),this.selectionManager.on("newselection",function(t){n.textarea.value=t,n.textarea.focus(),n.textarea.select()}),this.on("scroll",function(){return n.selectionManager.refresh()}),this.viewportElement.addEventListener("scroll",function(){return n.selectionManager.refresh()}),this.refresh(0,this.rows-1),this.initGlobal(),"undefined"==typeof e){var o="You did not pass the `focus` argument in `Terminal.prototype.open()`.\n";o+="The `focus` argument now defaults to `true` but starting with xterm.js 3.0 ",o+="it will default to `false`.",console.warn(o),e=!0}e&&this.focus(),r(this.element,"click",function(){var t=T.getSelection(),e=t.isCollapsed,n="boolean"==typeof e?!e:"Range"==t.type;n||i.focus()}),this.bindMouse(),this.emit("open")},n.loadAddon=function(n,r){return"object"==typeof t&&"object"==typeof i?e("./addons/"+n+"/"+n):"function"==typeof define?e(["./addons/"+n+"/"+n],r):(console.error("Cannot load a module without a CommonJS or RequireJS environment."),!1)},n.prototype.updateCharSizeStyles=function(){this.charSizeStyleElement.textContent=".xterm-wide-char{width:"+2*this.charMeasure.width+"px;}"+(".xterm-normal-char{width:"+this.charMeasure.width+"px;}")+(".xterm-rows > div{height:"+this.charMeasure.height+"px;}")},n.prototype.bindMouse=function(){function t(t){var e,n;if(e=o(t),n=S.getRawByteCoords(t,l.rowContainer,l.charMeasure,l.cols,l.rows))switch(i(e,n),t.overrideType||t.type){case"mousedown":c=e;break;case"mouseup":c=32;break;case"wheel":}}function e(t){var e,n=c;e=S.getRawByteCoords(t,l.rowContainer,l.charMeasure,l.cols,l.rows),e&&(n+=32,i(n,e))}function n(t,e){if(l.utfMouse){if(2047===e)return t.push(0);e<127?t.push(e):(e>2047&&(e=2047),t.push(192|e>>6),t.push(128|63&e))}else{if(255===e)return t.push(0);e>127&&(e=127),t.push(e)}}function i(t,e){if(l.vt300Mouse){t&=3,e.x-=32,e.y-=32;var i=v.C0.ESC+"[24";if(0===t)i+="1";else if(1===t)i+="3";else if(2===t)i+="5";else{if(3===t)return;i+="0"}return i+="~["+e.x+","+e.y+"]\r",void l.send(i)}if(l.decLocator)return t&=3,e.x-=32,e.y-=32,0===t?t=2:1===t?t=4:2===t?t=6:3===t&&(t=3),void l.send(v.C0.ESC+"["+t+";"+(3===t?4:0)+";"+e.y+";"+e.x+";"+(e.page||0)+"&w");if(l.urxvtMouse)return e.x-=32,e.y-=32,e.x++,e.y++,void l.send(v.C0.ESC+"["+t+";"+e.x+";"+e.y+"M");if(l.sgrMouse)return e.x-=32,e.y-=32,void l.send(v.C0.ESC+"[<"+((3===(3&t)?t&-4:t)-32)+";"+e.x+";"+e.y+(3===(3&t)?"m":"M"));var i=[];n(i,t),n(i,e.x),n(i,e.y),l.send(v.C0.ESC+"[M"+String.fromCharCode.apply(String,i))}function o(t){var e,n,i,r,s;switch(t.overrideType||t.type){case"mousedown":e=null!=t.button?+t.button:null!=t.which?t.which-1:null,l.browser.isMSIE&&(e=1===e?0:4===e?1:e);break;case"mouseup":e=3;break;case"DOMMouseScroll":e=t.detail<0?64:65;break;case"wheel":e=t.wheelDeltaY>0?64:65}return n=t.shiftKey?4:0,i=t.metaKey?8:0,r=t.ctrlKey?16:0,s=n|i|r,l.vt200Mouse?s&=r:l.normalMouse||(s=0),e=32+(s<<2)+e}var a=this.element,l=this,c=32;r(a,"mousedown",function(n){if(l.mouseEvents)return t(n),l.focus(),l.vt200Mouse?(n.overrideType="mouseup",t(n),l.cancel(n)):(l.normalMouse&&r(l.document,"mousemove",e),l.x10Mouse||r(l.document,"mouseup",function i(n){return t(n),l.normalMouse&&s(l.document,"mousemove",e),s(l.document,"mouseup",i),l.cancel(n)}),l.cancel(n))}),r(a,"wheel",function(e){if(l.mouseEvents&&!(l.x10Mouse||l.vt300Mouse||l.decLocator))return t(e),l.cancel(e)}),r(a,"wheel",function(t){if(!l.mouseEvents)return l.viewport.onWheel(t),l.cancel(t)}),r(a,"touchstart",function(t){if(!l.mouseEvents)return l.viewport.onTouchStart(t),l.cancel(t)}),r(a,"touchmove",function(t){if(!l.mouseEvents)return l.viewport.onTouchMove(t),l.cancel(t)})},n.prototype.destroy=function(){this.readable=!1,this.writable=!1,this._events={},this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},n.prototype.refresh=function(t,e){this.renderer&&this.renderer.queueRefresh(t,e)},n.prototype.queueLinkification=function(t,e){if(this.linkifier)for(var n=t;n<=e;n++)this.linkifier.linkifyRow(n)},n.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.y,this.y))},n.prototype.scroll=function(t){var e;this.lines.length===this.lines.maxLength&&(this.lines.trimStart(1),this.ybase--,0!==this.ydisp&&this.ydisp--),this.ybase++,this.userScrolling||(this.ydisp=this.ybase),e=this.ybase+this.rows-1,e-=this.rows-1-this.scrollBottom,e===this.lines.length?this.lines.push(this.blankLine(void 0,t)):this.lines.splice(e,0,this.blankLine(void 0,t)),0!==this.scrollTop&&(0!==this.ybase&&(this.ybase--,this.userScrolling||(this.ydisp=this.ybase)),this.lines.splice(this.ybase+this.scrollTop,1)),this.updateRange(this.scrollTop),this.updateRange(this.scrollBottom),this.emit("scroll",this.ydisp)},n.prototype.scrollDisp=function(t,e){if(t<0){if(0===this.ydisp)return;this.userScrolling=!0}else t+this.ydisp>=this.ybase&&(this.userScrolling=!1);this.ydisp+=t,this.ydisp>this.ybase?this.ydisp=this.ybase:this.ydisp<0&&(this.ydisp=0),e||this.emit("scroll",this.ydisp),this.refresh(0,this.rows-1)},n.prototype.scrollPages=function(t){this.scrollDisp(t*(this.rows-1))},n.prototype.scrollToTop=function(){this.scrollDisp(-this.ydisp)},n.prototype.scrollToBottom=function(){this.scrollDisp(this.ybase-this.ydisp)},n.prototype.write=function(t){if(this.writeBuffer.push(t),this.options.useFlowControl&&!this.xoffSentToCatchUp&&this.writeBuffer.length>=A&&(this.send(v.C0.DC3),this.xoffSentToCatchUp=!0),!this.writeInProgress&&this.writeBuffer.length>0){this.writeInProgress=!0;var e=this;setTimeout(function(){e.innerWrite()})}},n.prototype.innerWrite=function(){for(var t=this.writeBuffer.splice(0,L);t.length>0;){var e=t.shift();e.length;this.xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.send(v.C0.DC1),this.xoffSentToCatchUp=!1),this.refreshStart=this.y,this.refreshEnd=this.y;var n=this.parser.parse(e);this.parser.setState(n),this.updateRange(this.y),this.refresh(this.refreshStart,this.refreshEnd)}if(this.writeBuffer.length>0){var i=this;setTimeout(function(){i.innerWrite()},0)}else this.writeInProgress=!1},n.prototype.writeln=function(t){this.write(t+"\r\n")},n.prototype.attachCustomKeydownHandler=function(t){var e="attachCustomKeydownHandler() is DEPRECATED and will be removed soon. Please use attachCustomKeyEventHandler() instead.";console.warn(e),this.attachCustomKeyEventHandler(t)},n.prototype.attachCustomKeyEventHandler=function(t){this.customKeyEventHandler=t},n.prototype.setHypertextLinkHandler=function(t){if(!this.linkifier)throw new Error("Cannot attach a hypertext link handler before Terminal.open is called");this.linkifier.setHypertextLinkHandler(t),this.refresh(0,this.rows-1)},n.prototype.setHypertextValidationCallback=function(t){if(!this.linkifier)throw new Error("Cannot attach a hypertext validation callback before Terminal.open is called");this.linkifier.setHypertextValidationCallback(t),this.refresh(0,this.rows-1)},n.prototype.registerLinkMatcher=function(t,e,n){if(this.linkifier){var i=this.linkifier.registerLinkMatcher(t,e,n);return this.refresh(0,this.rows-1),i}},n.prototype.deregisterLinkMatcher=function(t){this.linkifier&&this.linkifier.deregisterLinkMatcher(t)&&this.refresh(0,this.rows-1)},n.prototype.hasSelection=function(){return this.selectionManager.hasSelection},n.prototype.getSelection=function(){return this.selectionManager.selectionText},n.prototype.clearSelection=function(){this.selectionManager.clearSelection()},n.prototype.selectAll=function(){this.selectionManager.selectAll()},n.prototype.keyDown=function(t){if(this.customKeyEventHandler&&this.customKeyEventHandler(t)===!1)return!1;if(this.restartCursorBlinking(),!this.compositionHelper.keydown.bind(this.compositionHelper)(t))return this.ybase!==this.ydisp&&this.scrollToBottom(),!1;var e=this.evaluateKeyEscapeSequence(t);return e.key===v.C0.DC3?this.writeStopped=!0:e.key===v.C0.DC1&&(this.writeStopped=!1),e.scrollDisp?(this.scrollDisp(e.scrollDisp),this.cancel(t,!0)):!!l(this,t)||(e.cancel&&this.cancel(t,!0),!e.key||(this.emit("keydown",t),this.emit("key",e.key,t),this.showCursor(),this.handler(e.key),this.cancel(t,!0)))},n.prototype.evaluateKeyEscapeSequence=function(t){var e={cancel:!1,key:void 0,scrollDisp:void 0},n=t.shiftKey<<0|t.altKey<<1|t.ctrlKey<<2|t.metaKey<<3;switch(t.keyCode){case 8:if(t.shiftKey){e.key=v.C0.BS;break}e.key=v.C0.DEL;break;case 9:if(t.shiftKey){e.key=v.C0.ESC+"[Z";break}e.key=v.C0.HT,e.cancel=!0;break;case 13:e.key=v.C0.CR,e.cancel=!0;break;case 27:e.key=v.C0.ESC,e.cancel=!0;break;case 37:n?(e.key=v.C0.ESC+"[1;"+(n+1)+"D",e.key==v.C0.ESC+"[1;3D"&&(e.key=this.browser.isMac?v.C0.ESC+"b":v.C0.ESC+"[1;5D")):this.applicationCursor?e.key=v.C0.ESC+"OD":e.key=v.C0.ESC+"[D";break;case 39:n?(e.key=v.C0.ESC+"[1;"+(n+1)+"C",e.key==v.C0.ESC+"[1;3C"&&(e.key=this.browser.isMac?v.C0.ESC+"f":v.C0.ESC+"[1;5C")):this.applicationCursor?e.key=v.C0.ESC+"OC":e.key=v.C0.ESC+"[C";break;case 38:n?(e.key=v.C0.ESC+"[1;"+(n+1)+"A",e.key==v.C0.ESC+"[1;3A"&&(e.key=v.C0.ESC+"[1;5A")):this.applicationCursor?e.key=v.C0.ESC+"OA":e.key=v.C0.ESC+"[A";break;case 40:n?(e.key=v.C0.ESC+"[1;"+(n+1)+"B",e.key==v.C0.ESC+"[1;3B"&&(e.key=v.C0.ESC+"[1;5B")):this.applicationCursor?e.key=v.C0.ESC+"OB":e.key=v.C0.ESC+"[B";break;case 45:t.shiftKey||t.ctrlKey||(e.key=v.C0.ESC+"[2~");break;case 46:n?e.key=v.C0.ESC+"[3;"+(n+1)+"~":e.key=v.C0.ESC+"[3~";break;case 36:n?e.key=v.C0.ESC+"[1;"+(n+1)+"H":this.applicationCursor?e.key=v.C0.ESC+"OH":e.key=v.C0.ESC+"[H";break;case 35:n?e.key=v.C0.ESC+"[1;"+(n+1)+"F":this.applicationCursor?e.key=v.C0.ESC+"OF":e.key=v.C0.ESC+"[F";break;case 33:t.shiftKey?e.scrollDisp=-(this.rows-1):e.key=v.C0.ESC+"[5~";break;case 34:t.shiftKey?e.scrollDisp=this.rows-1:e.key=v.C0.ESC+"[6~";break;case 112:n?e.key=v.C0.ESC+"[1;"+(n+1)+"P":e.key=v.C0.ESC+"OP";break;case 113:n?e.key=v.C0.ESC+"[1;"+(n+1)+"Q":e.key=v.C0.ESC+"OQ";break;case 114:n?e.key=v.C0.ESC+"[1;"+(n+1)+"R":e.key=v.C0.ESC+"OR";break;case 115:n?e.key=v.C0.ESC+"[1;"+(n+1)+"S":e.key=v.C0.ESC+"OS";break;case 116:n?e.key=v.C0.ESC+"[15;"+(n+1)+"~":e.key=v.C0.ESC+"[15~";break;case 117:n?e.key=v.C0.ESC+"[17;"+(n+1)+"~":e.key=v.C0.ESC+"[17~";break;case 118:n?e.key=v.C0.ESC+"[18;"+(n+1)+"~":e.key=v.C0.ESC+"[18~";break;case 119:n?e.key=v.C0.ESC+"[19;"+(n+1)+"~":e.key=v.C0.ESC+"[19~";break;case 120:n?e.key=v.C0.ESC+"[20;"+(n+1)+"~":e.key=v.C0.ESC+"[20~";break;case 121:n?e.key=v.C0.ESC+"[21;"+(n+1)+"~":e.key=v.C0.ESC+"[21~";break;case 122:n?e.key=v.C0.ESC+"[23;"+(n+1)+"~":e.key=v.C0.ESC+"[23~";break;case 123:n?e.key=v.C0.ESC+"[24;"+(n+1)+"~":e.key=v.C0.ESC+"[24~";break;default:!t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?this.browser.isMac||!t.altKey||t.ctrlKey||t.metaKey?this.browser.isMac&&!t.altKey&&!t.ctrlKey&&t.metaKey&&65===t.keyCode&&this.selectAll():t.keyCode>=65&&t.keyCode<=90?e.key=v.C0.ESC+String.fromCharCode(t.keyCode+32):192===t.keyCode?e.key=v.C0.ESC+"`":t.keyCode>=48&&t.keyCode<=57&&(e.key=v.C0.ESC+(t.keyCode-48)):t.keyCode>=65&&t.keyCode<=90?e.key=String.fromCharCode(t.keyCode-64):32===t.keyCode?e.key=String.fromCharCode(0):t.keyCode>=51&&t.keyCode<=55?e.key=String.fromCharCode(t.keyCode-51+27):56===t.keyCode?e.key=String.fromCharCode(127):219===t.keyCode?e.key=String.fromCharCode(27):220===t.keyCode?e.key=String.fromCharCode(28):221===t.keyCode&&(e.key=String.fromCharCode(29))}return e},n.prototype.setgLevel=function(t){this.glevel=t,this.charset=this.charsets[t]},n.prototype.setgCharset=function(t,e){this.charsets[t]=e,this.glevel===t&&(this.charset=e)},n.prototype.keyPress=function(t){var e;if(this.customKeyEventHandler&&this.customKeyEventHandler(t)===!1)return!1;if(this.cancel(t),t.charCode)e=t.charCode;else if(null==t.which)e=t.keyCode;else{if(0===t.which||0===t.charCode)return!1;e=t.which}return!(!e||(t.altKey||t.ctrlKey||t.metaKey)&&!l(this,t))&&(e=String.fromCharCode(e),this.emit("keypress",e,t),this.emit("key",e,t),this.showCursor(),this.handler(e),!0)},n.prototype.send=function(t){var e=this;this.queue||setTimeout(function(){e.handler(e.queue),e.queue=""},1),this.queue+=t},n.prototype.bell=function(){if(this.visualBell){var t=this;this.element.style.borderColor="white",setTimeout(function(){t.element.style.borderColor=""},10),this.popOnBell&&this.focus()}},n.prototype.log=function(){if(this.debug&&this.context.console&&this.context.console.log){var t=Array.prototype.slice.call(arguments);this.context.console.log.apply(this.context.console,t)}},n.prototype.error=function(){if(this.debug&&this.context.console&&this.context.console.error){var t=Array.prototype.slice.call(arguments);this.context.console.error.apply(this.context.console,t)}},n.prototype.resize=function(t,e){if(!isNaN(t)&&!isNaN(e)){e>this.getOption("scrollback")&&this.setOption("scrollback",e);var n,i,r,s,o;if(t!==this.cols||e!==this.rows){if(t<1&&(t=1),e<1&&(e=1),r=this.cols,r<t)for(s=[this.defAttr," ",1],i=this.lines.length;i--;)for(;this.lines.get(i).length<t;)this.lines.get(i).push(s);if(this.cols=t,this.setupStops(this.cols),r=this.rows,o=0,r<e)for(n=this.element;r++<e;)this.lines.length<e+this.ybase&&(this.ybase>0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(this.blankLine())),this.children.length<e&&this.insertRow();else for(;r-- >e;)if(this.lines.length>e+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++)),this.children.length>e){if(n=this.children.shift(),!n)continue;n.parentNode.removeChild(n)}this.rows=e,this.y>=e&&(this.y=e-1),o&&(this.y+=o),this.x>=t&&(this.x=t-1),this.scrollTop=0,this.scrollBottom=e-1,this.charMeasure.measure(),this.refresh(0,this.rows-1),this.normal=null,this.geometry=[this.cols,this.rows],this.emit("resize",{terminal:this,cols:t,rows:e})}}},n.prototype.updateRange=function(t){t<this.refreshStart&&(this.refreshStart=t),t>this.refreshEnd&&(this.refreshEnd=t)},n.prototype.maxRange=function(){this.refreshStart=0,this.refreshEnd=this.rows-1},n.prototype.setupStops=function(t){for(null!=t?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this.cols;t+=this.getOption("tabStopWidth"))this.tabs[t]=!0},n.prototype.prevStop=function(t){for(null==t&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this.cols?this.cols-1:t<0?0:t},n.prototype.nextStop=function(t){for(null==t&&(t=this.x);!this.tabs[++t]&&t<this.cols;);return t>=this.cols?this.cols-1:t<0?0:t},n.prototype.eraseRight=function(t,e){var n=this.lines.get(this.ybase+e);if(n){for(var i=[this.eraseAttr()," ",1];t<this.cols;t++)n[t]=i;this.updateRange(e)}},n.prototype.eraseLeft=function(t,e){var n=this.lines.get(this.ybase+e);if(n){var i=[this.eraseAttr()," ",1];for(t++;t--;)n[t]=i;this.updateRange(e)}},n.prototype.clear=function(){if(0!==this.ybase||0!==this.y){this.lines.set(0,this.lines.get(this.ybase+this.y)),this.lines.length=1,this.ydisp=0,this.ybase=0,this.y=0;for(var t=1;t<this.rows;t++)this.lines.push(this.blankLine());this.refresh(0,this.rows-1),this.emit("scroll",this.ydisp)}},n.prototype.eraseLine=function(t){this.eraseRight(0,t)},n.prototype.blankLine=function(t,e){var n=t?this.eraseAttr():this.defAttr,i=[n," ",1],r=[],s=0;for(e&&(r.isWrapped=e);s<this.cols;s++)r[s]=i;return r},n.prototype.ch=function(t){return t?[this.eraseAttr()," ",1]:[this.defAttr," ",1]},n.prototype.is=function(t){var e=this.termName;return 0===(e+"").indexOf(t)},n.prototype.handler=function(t){this.options.disableStdin||(this.ybase!==this.ydisp&&this.scrollToBottom(),this.emit("data",t))},n.prototype.handleTitle=function(t){this.emit("title",t)},n.prototype.index=function(){this.y++,this.y>this.scrollBottom&&(this.y--,this.scroll()),this.x>=this.cols&&this.x--},n.prototype.reverseIndex=function(){this.y===this.scrollTop?(this.lines.shiftElements(this.y+this.ybase,this.rows-1,1),this.lines.set(this.y+this.ybase,this.blankLine(!0)),this.updateRange(this.scrollTop),this.updateRange(this.scrollBottom)):this.y--},n.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var t=this.customKeyEventHandler,e=this.cursorBlinkInterval;n.call(this,this.options),this.customKeyEventHandler=t,this.cursorBlinkInterval=e,this.refresh(0,this.rows-1),this.viewport.syncScrollArea()},n.prototype.tabSet=function(){this.tabs[this.x]=!0},n.prototype.matchColor=c,c._cache={},c.distance=function(t,e,n,i,r,s){return Math.pow(30*(t-i),2)+Math.pow(59*(e-r),2)+Math.pow(11*(n-s),2)},n.EventEmitter=d.EventEmitter,n.inherits=a,n.on=r,n.off=s,n.cancel=o,i.exports=n}()}),require.register("web/static/js/toolbar.js",function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();e("phoenix_html");var o=e("phoenix"),a=e("jquery"),l=i(a),c=e("./toolbar/breakpoints_panel.js"),u=i(c),h=e("prismjs"),f=i(h);e("prismjs/components/prism-elixir"),e("prismjs/components/prism-sql"),e("prismjs/plugins/normalize-whitespace/prism-normalize-whitespace"),e("prismjs/plugins/line-numbers/prism-line-numbers"),e("prismjs/plugins/line-highlight/prism-line-highlight"),window.jQuery=l["default"],e("bootstrap-sass");var p=function(){function t(e){r(this,t),this.opts=e,this.resetActivePanel()}return s(t,[{key:"render",value:function(){var t=this.initSocket();this.joinToolbarChannel(t),this.breakpointsPanel=new u["default"](t)}},{key:"initSocket",value:function(){var t=new o.Socket("/__ex_debug_toolbar__/socket");return t.connect(),t}},{key:"joinToolbarChannel",value:function(t){var e=t.channel("toolbar:request:"+this.opts.requestId);e.join().receive("ok",this.onChannelResponse.bind(this)).receive("error",function(t){console.log("Unable to join",t)}),e.on("ready",this.onChannelResponse.bind(this))}},{key:"onChannelResponse",value:function(t){t.html?this.renderToolbar(t):console.log(t)}},{key:"renderToolbar",value:function(t){var e=t.html,n=t.request;console.log("Request: ",n);var i=(0,l["default"])('<div id="ex-debug-toolbar"><div>'+e+"</div></div>");i.appendTo("body"),this.renderPanels(i),this.renderPopovers(),this.breakpointsPanel.render(),this.highlightCode(i)}},{key:"renderPanels",value:function(t){t.mouseleave(this.hideActivePanel.bind(this)).find('[data-toggle="panel"]').hover(this.showPanel.bind(this)),t.find(".panel-body").on("mousewheel DOMMouseScroll",this.scrollDivOnly)}},{key:"scrollDivOnly",value:function(t){t.preventDefault();var e=t.originalEvent,n=e.wheelDelta||-e.detail;this.scrollTop-=n}},{key:"hideActivePanel",value:function(){this.activePanel&&(this.activePanel.slideUp(150),this.resetActivePanel())}},{key:"showPanel",value:function(t){var e=t.target,n=(0,l["default"])(e).parent().find(".panel"),i=this.getPanelId(n);this.activePanelId!=i&&(n.slideDown(150),this.activePanel&&this.activePanel.slideUp(50),this.activePanel=n,this.activePanelId=i)}},{key:"resetActivePanel",value:function(){this.activePanel=null,this.activePanelId=null}},{key:"getPanelId",value:function(t){if(!t.data("panel-id")){var e=Math.round((new Date).getTime()+100*Math.random());t.data("panel-id",e)}return t.data("panel-id")}},{key:"highlightCode",value:function(t){f["default"].plugins.NormalizeWhitespace.setDefaults({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0,"remove-initial-line-feed":!0}),t.find(".code").each(function(t,e){f["default"].highlightElement(e,!1)})}},{key:"renderPopovers",value:function(){(0,l["default"])('[data-toggle="popover"]').popover()}}]),t}();new p({requestId:window.requestId}).render()}),require.register("web/static/js/toolbar/breakpoints_panel.js",function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=e("jquery"),a=i(o),l=e("xterm"),c=i(l);e("xterm/lib/addons/fit/fit"),e("xterm/lib/addons/fullscreen/fullscreen");var u=function(){function t(e){r(this,t),this.socket=e}return s(t,[{key:"render",value:function(){this.appendModalToBody(),this.renderModal(),this.renderCodeSnippets()}},{key:"appendModalToBody",value:function(){(0,a["default"])("#breakpoints-modal").detach().appendTo("#ex-debug-toolbar")}},{key:"renderModal",value:function(){(0,a["default"])("#breakpoints-modal").on("shown.bs.modal",this.renderTerm.bind(this)).on("hidden.bs.modal",this.destroyTerm.bind(this)),(0,a["default"])(".breakpoint").click(this.showModal.bind(this)),(0,a["default"])('[data-toggle="fullscreen"]').click(this.toggleFullscreen.bind(this)),this.renderBindingPopover(),(0,a["default"])(window).resize(this.resizeTerm.bind(this))}},{key:"renderCodeSnippets",value:function(){(0,a["default"])("#ex-debug-toolbar .breakpoint").each(function(t,e){var n=(0,a["default"])(e);n.hover(function(){var t=n.find(".code-snippet").html();(0,a["default"])("#code-snippet-container").html(t)})})}},{key:"renderBindingPopover",value:function(){var t=this;(0,a["default"])('[data-toggle="binding"]').popover({container:"body",content:function(){return(0,a["default"])("#"+t.breakpoint_id+" .binding-popover").html()},html:!0,trigger:"hover",title:"Binding"})}},{key:"showModal",value:function(t){var e=t.target;this.breakpoint_id=(0,a["default"])(e).closest("tr").attr("id"),(0,a["default"])("#breakpoints-modal").modal()}},{key:"toggleFullscreen",value:function(){this.term.toggleFullscreen(),(0,a["default"])("#breakpoints-modal").toggleClass("fullscreen"),this.term.focus(),this.resizeTerm()}},{key:"resizeTerm",value:function(){if(this.term){var t=(0,a["default"])("#breakpoints-modal .terminal.xterm.fullscreen"),e=(0,a["default"])("#terminal-container");t[0]?(e.height(t.height()),e.width(t.width())):(e.height(""),e.width("")),this.term.fit()}}},{key:"destroyTerm",value:function(){this.channel.leave(),this.term.destroy(),(0,a["default"])("#breakpoints-modal").removeClass("fullscreen")}},{key:"renderTerm",value:function(){var t=this;this.channel=this.joinBreakpointChannel(this.socket),this.term=new c["default"]({cursorBlink:!0}),this.term.open(document.getElementById("terminal-container"),!0),this.term.on("data",function(e){return t.channel.push("input",{input:e})}),this.resizeTerm()}},{key:"joinBreakpointChannel",value:function(t){var e=this,n="breakpoint:"+this.breakpoint_id,i=t.channel(n,{});return i.join(),i.on("output",function(t){var n=t.output;return e.term.write(n)}),i}}]),t}();t["default"]=u}),require.alias("phoenix_html/priv/static/phoenix_html.js","phoenix_html"),require.alias("prismjs/prism.js","prismjs"),require.alias("phoenix/priv/static/phoenix.js","phoenix"),require.alias("bootstrap-sass/assets/javascripts/bootstrap.js","bootstrap-sass"),require.alias("jquery/dist/jquery.js","jquery"),require.alias("process/browser.js","process"),require.alias("xterm/lib/xterm.js","xterm"),t=require("process"),require.register("___globals___",function(t,e,n){})}(),require("___globals___"),require("web/static/js/toolbar");