text: !function(){function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){return i(e[s][1][t]||t)},l,l.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}return t}()({1:[function(t,e,n){"use strict";e.exports={segmentio_api_key:"SW60cffLgzQQ89zSXZwKMooJyMVYcb7X",googletag_api_key:"GTM-KQJHMXJ",activity_name:"Harassment Prevention",activity_type:"http://adlnet.gov/expapi/activities/lesson",slug:"hp",full_url:"https://somewhere.netlify.com/hp/",distpath:"../../hp",author:"Scitent http://scitent.com",first_section:"00_course_front_matter",theme:"clean-blog-3.3.7"}},{}],2:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@most/prelude")):"function"==typeof define&&define.amd?define(["exports","@most/prelude"],i):i(r.mostMulticast=r.mostMulticast||{},r.mostPrelude)}(this,function(t,e){"use strict";function n(t,e,n){try{n.event(t,e)}catch(e){n.error(t,e)}}function r(t,e,n){try{n.end(t,e)}catch(e){n.error(t,e)}}function i(t){var e=t.source;return e instanceof u?t:new t.constructor(new u(e))}var o=function(t,e){this.source=t,this.sink=e,this.disposed=!1};o.prototype.dispose=function(){if(!this.disposed){this.disposed=!0;return 0===this.source.remove(this.sink)&&this.source._dispose()}};var s=function(t){return t.dispose()},a={dispose:function(){}},u=function(t){this.source=t,this.sinks=[],this._disposable=a};u.prototype.run=function(t,e){return 1===this.add(t)&&(this._disposable=this.source.run(this,e)),new o(this,t)},u.prototype._dispose=function(){var t=this._disposable;return this._disposable=a,Promise.resolve(t).then(s)},u.prototype.add=function(t){return this.sinks=e.append(t,this.sinks),this.sinks.length},u.prototype.remove=function(t){var n=e.findIndex(t,this.sinks);return n>=0&&(this.sinks=e.remove(n,this.sinks)),this.sinks.length},u.prototype.event=function(t,e){var r=this.sinks;if(1===r.length)return r[0].event(t,e);for(var i=0;i<r.length;++i)n(t,e,r[i])},u.prototype.end=function(t,e){for(var n=this.sinks,i=0;i<n.length;++i)r(t,e,n[i])},u.prototype.error=function(t,e){for(var n=this.sinks,r=0;r<n.length;++r)n[r].error(t,e)},t.default=i,t.MulticastSource=u,Object.defineProperty(t,"__esModule",{value:!0})})},{"@most/prelude":3}],3:[function(t,e,n){!function(t,r){"object"==typeof n&&void 0!==e?r(n):"function"==typeof define&&define.amd?define(["exports"],r):r(t.mostPrelude={})}(this,function(t){"use strict";function e(t,e){var n=e.length,r=new Array(n+1);r[0]=t;for(var i=0;i<n;++i)r[i+1]=e[i];return r}function n(t,e){for(var n=e.length,r=new Array(n+1),i=0;i<n;++i)r[i]=e[i];return r[n]=t,r}function r(t,e){if(t<0)throw new TypeError("n must be >= 0");var n=e.length;return 0===t||0===n?e:t>=n?[]:i(t,e,n-t)}function i(t,e,n){for(var r=new Array(n),i=0;i<n;++i)r[i]=e[t+i];return r}function o(t){return r(1,t)}function s(t){for(var e=t.length,n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function a(t,e){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=t(e[i]);return r}function u(t,e,n){for(var r=e,i=0,o=n.length;i<o;++i)r=t(r,n[i],i);return r}function c(t,e,n){if(e<0)throw new TypeError("i must be >= 0");for(var r=n.length,i=new Array(r),o=0;o<r;++o)i[o]=e===o?t:n[o];return i}function l(t,e){if(t<0)throw new TypeError("i must be >= 0");var n=e.length;return 0===n||t>=n?e:1===n?[]:f(t,e,n-1)}function f(t,e,n){var r=new Array(n),i=void 0;for(i=0;i<t;++i)r[i]=e[i];for(i=t;i<n;++i)r[i]=e[i+1];return r}function h(t,e){for(var n,r=e.length,i=new Array(r),o=0,s=0;s<r;++s)n=e[s],t(n)||(i[o]=n,++o);return i.length=o,i}function p(t,e){for(var n=0,r=e.length;n<r;++n)if(t===e[n])return n;return-1}function d(t){return null!=t&&"number"==typeof t.length&&"function"!=typeof t}function y(t){function e(n,r){switch(arguments.length){case 0:return e;case 1:return function(e){return t(n,e)};default:return t(n,r)}}return e}function v(t){function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return y(function(e,r){return t(n,e,r)});case 2:return function(e){return t(n,r,e)};default:return t(n,r,i)}}return e}function g(t){function e(n,r,i,o){switch(arguments.length){case 0:return e;case 1:return v(function(e,r,i){return t(n,e,r,i)});case 2:return y(function(e,i){return t(n,r,e,i)});case 3:return function(e){return t(n,r,i,e)};default:return t(n,r,i,o)}}return e}var m=function(t){return t},b=function(t,e){return function(n){return t(e(n))}},_=function(t,e){return t(e)};t.cons=e,t.append=n,t.drop=r,t.tail=o,t.copy=s,t.map=a,t.reduce=u,t.replace=c,t.remove=l,t.removeAll=h,t.findIndex=p,t.isArrayLike=d,t.id=m,t.compose=b,t.apply=_,t.curry2=y,t.curry3=v,t.curry4=g,Object.defineProperty(t,"__esModule",{value:!0})})},{}],4:[function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function s(t){for(var e,n=r(t),i=n[0],s=n[1],a=new h(o(t,i,s)),u=0,c=s>0?i-4:i,l=0;l<c;l+=4)e=f[t.charCodeAt(l)]<<18|f[t.charCodeAt(l+1)]<<12|f[t.charCodeAt(l+2)]<<6|f[t.charCodeAt(l+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===s&&(e=f[t.charCodeAt(l)]<<2|f[t.charCodeAt(l+1)]>>4,a[u++]=255&e),1===s&&(e=f[t.charCodeAt(l)]<<10|f[t.charCodeAt(l+1)]<<4|f[t.charCodeAt(l+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a}function a(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function u(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(a(r));return i.join("")}function c(t){for(var e,n=t.length,r=n%3,i=[],o=0,s=n-r;o<s;o+=16383)i.push(u(t,o,o+16383>s?s:o+16383));return 1===r?(e=t[n-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}n.byteLength=i,n.toByteArray=s,n.fromByteArray=c;for(var l=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,y=p.length;d<y;++d)l[d]=p[d],f[p.charCodeAt(d)]=d;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],5:[function(t,e,n){t("../../js/transition.js"),t("../../js/alert.js"),t("../../js/button.js"),t("../../js/carousel.js"),t("../../js/collapse.js"),t("../../js/dropdown.js"),t("../../js/modal.js"),t("../../js/tooltip.js"),t("../../js/popover.js"),t("../../js/scrollspy.js"),t("../../js/tab.js"),t("../../js/affix.js")},{"../../js/affix.js":6,"../../js/alert.js":7,"../../js/button.js":8,"../../js/carousel.js":9,"../../js/collapse.js":10,"../../js/dropdown.js":11,"../../js/modal.js":12,"../../js/popover.js":13,"../../js/scrollspy.js":14,"../../js/tab.js":15,"../../js/tooltip.js":16,"../../js/transition.js":17}],6:[function(t,e,n){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.affix"),o="object"==typeof e&&e;i||r.data("bs.affix",i=new n(this,o)),"string"==typeof e&&i[e]()})}var n=function(e,r){this.options=t.extend({},n.DEFAULTS,r),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,r){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return i<n&&"top";if("bottom"==this.affixed)return null!=n?!(i+this.unpin<=o.top)&&"bottom":!(i+s<=t-r)&&"bottom";var a=null==this.affixed,u=a?i:o.top,c=a?s:e;return null!=n&&i<=n?"top":null!=r&&u+c>=t-r&&"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(),r=this.options.offset,i=r.top,o=r.bottom,s=Math.max(t(document).height(),t(document.body).height());"object"!=typeof r&&(o=i=r),"function"==typeof i&&(i=r.top(this.$element)),"function"==typeof o&&(o=r.bottom(this.$element));var a=this.getState(s,e,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),c=t.Event(u+".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(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-e-o})}};var r=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=r,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),r=n.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),e.call(n,r)})})}(jQuery)},{}],7:[function(t,e,n){+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new r(this)),"string"==typeof e&&i[e].call(n)})}var n='[data-dismiss="alert"]',r=function(e){t(e).on("click",n,this.close)};r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.close=function(e){function n(){s.detach().trigger("closed.bs.alert").remove()}var i=t(this),o=i.attr("data-target");o||(o=i.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t("#"===o?[]:o);e&&e.preventDefault(),s.length||(s=i.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n())};var i=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=r,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",n,r.prototype.close)}(jQuery)},{}],8:[function(t,e,n){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.button"),o="object"==typeof e&&e;i||r.data("bs.button",i=new n(this,o)),"toggle"==e?i.toggle():e&&i.setState(e)})}var n=function(e,r){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,r),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",o=r.data();e+="Text",null==o.resetText&&r.data("resetText",r[i]()),setTimeout(t.proxy(function(){r[i](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.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 r=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=r,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var r=t(n.target).closest(".btn");e.call(r,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),r.is("input,button")?r.trigger("focus"):r.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)},{}],9:[function(t,e,n){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.carousel"),o=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e),s="string"==typeof e?e:o.slide;i||r.data("bs.carousel",i=new n(this,o)),"number"==typeof e?i.to(e):s?i[s]():o.interval&&i.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);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var r="prev"==t?-1:1,i=(n+r)%this.$items.length;return this.$items.eq(i)},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,r){var i=this.$element.find(".item.active"),o=r||this.getItemForDirection(e,i),s=this.interval,a="next"==e?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],l=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var f=t(this.$indicators.children()[this.getItemIndex(o)]);f&&f.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var r=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=r,this};var i=function(n){var r,i=t(this),o=t(i.attr("data-target")||(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var s=t.extend({},o.data(),i.data()),a=i.attr("data-slide-to");a&&(s.interval=!1),e.call(o,s),a&&o.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery)},{}],10:[function(t,e,n){+function(t){"use strict";function e(e){var n,r=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(r)}function n(e){return this.each(function(){var n=t(this),i=n.data("bs.collapse"),o=t.extend({},r.DEFAULTS,n.data(),"object"==typeof e&&e);!i&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),i||n.data("bs.collapse",i=new r(this,o)),"string"==typeof e&&i[e]()})}var r=function(e,n){this.$element=t(e),this.options=t.extend({},r.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()};r.VERSION="3.3.7",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(e=i.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),e||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var u=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[s](this.$element[0][u])}}}},r.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 i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return i.call(this);this.$element[n](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,r){var i=t(r);this.addAriaAndCollapsedClass(e(i),i)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=r,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(r){var i=t(this);i.attr("data-target")||r.preventDefault();var o=e(i),s=o.data("bs.collapse"),a=s?"toggle":i.data();n.call(o,a)})}(jQuery)},{}],11:[function(t,e,n){+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 r=n&&t(n);return r&&r.length?r:e.parent()}function n(n){n&&3===n.which||(t(i).remove(),t(o).each(function(){var r=t(this),i=e(r),o={relatedTarget:this};i.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(i[0],n.target)||(i.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function r(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new s(this)),"string"==typeof e&&r[e].call(n)})}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.7",s.prototype.toggle=function(r){var i=t(this);if(!i.is(".disabled, :disabled")){var o=e(i),s=o.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(o.trigger(r=t.Event("show.bs.dropdown",a)),r.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},s.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var r=t(this);if(n.preventDefault(),n.stopPropagation(),!r.is(".disabled, :disabled")){var i=e(r),s=i.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&i.find(o).trigger("focus"),r.trigger("click");var a=i.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var u=a.index(n.target);38==n.which&&u>0&&u--,40==n.which&&u<a.length-1&&u++,~u||(u=0),a.eq(u).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=r,t.fn.dropdown.Constructor=s,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",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery)},{}],12:[function(t,e,n){+function(t){"use strict";function e(e,r){return this.each(function(){var i=t(this),o=i.data("bs.modal"),s=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);o||i.data("bs.modal",o=new n(this,s)),"string"==typeof e?o[e](r):s.show&&o.show(r)})}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 r=this,i=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(i),this.isShown||i.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(){r.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=t.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),i&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});i?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):r.$element.trigger("focus").trigger(o)}))},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 r=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&i;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){if(this.ignoreBackdropClick)return void(this.ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){r.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}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 r=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=r,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var r=t(this),i=r.attr("href"),o=t(r.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},o.data(),r.data());r.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})}),e.call(o,s,this)})}(jQuery)},{}],13:[function(t,e,n){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.popover"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||r.data("bs.popover",i=new n(this,o)),"string"==typeof e&&i[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 r=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=r,this}}(jQuery)},{}],14:[function(t,e,n){+function(t){"use strict";function e(n,r){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,r),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 r=t(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new e(this,o)),"string"==typeof n&&i[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",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),i=e.data("target")||e.attr("href"),o=/^#./.test(i)&&t(i);return o&&o.length&&o.is(":visible")&&[[o[n]().top+r,i]]||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(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=r)return s!=(t=o[o.length-1])&&this.activate(t);if(s&&e<i[0])return this.activeTarget=null,this.clear();for(t=i.length;t--;)s!=o[t]&&e>=i[t]&&(void 0===i[t+1]||e<i[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',r=t(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=t.fn.scrollspy;t.fn.scrollspy=n,
  t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=r,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)},{}],15:[function(t,e,n){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new n(this)),"string"==typeof e&&i[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)"),r=e.data("target");if(r||(r=e.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(r);this.activate(e.closest("li"),n),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},n.prototype.activate=function(e,r,i){function o(){s.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),i&&i()}var s=r.find("> .active"),a=i&&t.support.transition&&(s.length&&s.hasClass("fade")||!!r.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),s.removeClass("in")};var r=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var i=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery)},{}],16:[function(t,e,n){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||r.data("bs.tooltip",i=new n(this,o)),"string"==typeof e&&i[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,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),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 i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},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,r){n[t]!=r&&(e[t]=r)}),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()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!r)return;var i=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,c=u.test(a);c&&(a=a.replace(u,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),f=o[0].offsetWidth,h=o[0].offsetHeight;if(c){var p=a,d=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+h>d.bottom?"top":"top"==a&&l.top-h<d.top?"bottom":"right"==a&&l.right+f>d.width?"left":"left"==a&&l.left-f<d.left?"right":a,o.removeClass(p).addClass(a)}var y=this.getCalculatedOffset(a,l,f,h);this.applyPlacement(y,a);var v=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",v).emulateTransitionEnd(n.TRANSITION_DURATION):v()}},n.prototype.applyPlacement=function(e,n){var r=this.tip(),i=r[0].offsetWidth,o=r[0].offsetHeight,s=parseInt(r.css("margin-top"),10),a=parseInt(r.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(r[0],t.extend({using:function(t){r.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),r.addClass("in");var u=r[0].offsetWidth,c=r[0].offsetHeight;"top"==n&&c!=o&&(e.top=e.top+o-c);var l=this.getViewportAdjustedDelta(n,e,u,c);l.left?e.left+=l.left:e.top+=l.top;var f=/top|bottom/.test(n),h=f?2*l.left-i+u:2*l.top-o+c,p=f?"offsetWidth":"offsetHeight";r.offset(e),this.replaceArrow(h,r[0][p],f)},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 r(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}var i=this,o=t(this.$tip),s=t.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),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],r="BODY"==n.tagName,i=n.getBoundingClientRect();null==i.width&&(i=t.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=window.SVGElement&&n instanceof window.SVGElement,s=r?{top:0,left:0}:o?null:e.offset(),a={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},u=r?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},i,a,u,s)},n.prototype.getCalculatedOffset=function(t,e,n,r){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-r,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-r/2,left:e.left-n}:{top:e.top+e.height/2-r/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,u=e.top+o-s.scroll+r;a<s.top?i.top=s.top-a:u>s.top+s.height&&(i.top=s.top+s.height-u)}else{var c=e.left-o,l=e.left+o+n;c<s.left?i.left=s.left-c:l>s.right&&(i.left=s.left+s.width-l)}return i},n.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},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=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 r=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=r,this}}(jQuery)},{}],17:[function(t,e,n){+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,r=this;t(this).one("bsTransitionEnd",function(){n=!0});var i=function(){n||t(r).trigger(t.support.transition.end)};return setTimeout(i,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)},{}],18:[function(t,e,n){},{}],19:[function(t,e,n){(function(e){"use strict";function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,n,r):"string"==typeof e?l(t,e,n):p(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return a(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(a(e),t=i(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(e,n);t=i(t,r);var s=t.write(e,n);return s!==r&&(t=t.slice(0,s)),t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function p(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||Y(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&Q(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return F(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;c<a;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*s}else-1!==l&&(c-=c-l),l=-1}else for(n+u>a&&(n=a-u),c=n;c>=0;c--){for(var f=!0,h=0;h<u;h++)if(o(t,c+h)!==o(e,h)){f=!1;break}if(f)return c}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function x(t,e,n,r){return G(F(e,t.length-n),t,n,r)}function S(t,e,n,r){return G(z(e),t,n,r)}function k(t,e,n,r){return S(t,e,n,r)}function T(t,e,n,r){return G(J(e),t,n,r)}function A(t,e,n,r){return G(V(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=n){var u,c,l,f;switch(a){case 1:o<128&&(s=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(s=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return j(r)}function j(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Z));return n}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function N(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=W(t[o]);return i}function R(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function M(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function I(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function q(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,r,i){return i||q(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function H(t,e,n,r,i){return i||q(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function $(t){if(t=U(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function V(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function J(t){return X.toByteArray($(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Y(t){return t!==t}var X=t("base64-js"),K=t("ieee754"),Q=t("isarray");n.Buffer=o,n.SlowBuffer=y,n.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),n.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return s(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,s=Math.min(n,r);i<s;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):g.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var s=i-r,a=n-e,u=Math.min(s,a),c=this.slice(r,i),l=t.slice(e,n),f=0;f<u;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var s=0;s<i;++s)r[s]=this[s+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),K.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),K.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),K.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),K.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){L(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){L(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return H(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return H(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,s=r-n;if(this===t&&n<e&&e<r)for(i=s-1;i>=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=o.isBuffer(t)?t:F(new o(t,r).toString()),u=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":4,ieee754:46,isarray:20}],20:[function(t,e,n){var r={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},{}],
  21:[function(t,e,n){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],22:[function(t,e,n){!function(t){"use strict";function n(t){var e,n=t?t.keyCode:event.keyCode;if(!f[n]){f[n]=!0;for(e in u)u[e].keydown(n)}}function r(t){var e=t?t.keyCode:event.keyCode;f[e]=!1}function i(t){var e;for(e in f)f[e]=!1}function o(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&(t["e"+e+n]=n,t[e+n]=function(){t["e"+e+n](window.event)},t.attachEvent("on"+e,t[e+n]))}var s,a,u={},c={backspace:8,tab:9,enter:13,return:13,shift:16,"⇧":16,control:17,ctrl:17,"⌃":17,alt:18,option:18,"⌥":18,pause:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,L:37,"←":37,up:38,U:38,"↑":38,right:39,R:39,"→":39,down:40,D:40,"↓":40,insert:45,delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,"⌘":91,command:91,kp_0:96,kp_1:97,kp_2:98,kp_3:99,kp_4:100,kp_5:101,kp_6:102,kp_7:103,kp_8:104,kp_9:105,kp_multiply:106,kp_plus:107,kp_minus:109,kp_decimal:110,kp_divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,equal:187,"=":187,comma:188,",":188,minus:189,"-":189,period:190,".":190},l=function(){},f={};a=function(t,e,n,r){var i;for(this.str=t,this.next=e||l,this.fail=n||l,this.done=r||l,this.seq=t.split(" "),this.keys=[],i=0;i<this.seq.length;++i)this.keys.push(c[this.seq[i]]);this.idx=0},a.prototype.keydown=function(t){var e=this.idx;if(t!==this.keys[e])return void(e>0&&(this.reset(),this.fail(this.str),s.__fail(this.str)));this.next(this.str,this.seq[e],e,this.seq),s.__next(this.str,this.seq[e],e,this.seq),++this.idx===this.keys.length&&(this.done(this.str),s.__done(this.str),this.reset())},a.prototype.reset=function(){this.idx=0},s=function(t,e){var n,r,i;"function"==typeof e?i=e:null!==e&&void 0!==e&&(n=e.next,r=e.fail,i=e.done),u[t]=new a(t,n,r,i)},s.disable=function(t){delete u[t]},o(window,"keydown",n),o(window,"keyup",r),o(window,"blur",i),o(window,"focus",i),s.__next=l,s.next=function(t){s.__next=null===t?l:t},s.__fail=l,s.fail=function(t){s.__fail=null===t?l:t},s.__done=l,s.done=function(t){s.__done=null===t?l:t},s.reset=function(t){var e=u[t];if(!(e instanceof a))return void console.warn("cheet: Unknown sequence: "+t);e.reset()},t.cheet=s,"function"==typeof define&&define.amd?define([],function(){return s}):void 0!==e&&null!==e&&(e.exports=s)}(this)},{}],23:[function(t,e,n){(function(t){function e(t){return Array.isArray?Array.isArray(t):"[object Array]"===v(t)}function r(t){return"boolean"==typeof t}function i(t){return null===t}function o(t){return null==t}function s(t){return"number"==typeof t}function a(t){return"string"==typeof t}function u(t){return"symbol"==typeof t}function c(t){return void 0===t}function l(t){return"[object RegExp]"===v(t)}function f(t){return"object"==typeof t&&null!==t}function h(t){return"[object Date]"===v(t)}function p(t){return"[object Error]"===v(t)||t instanceof Error}function d(t){return"function"==typeof t}function y(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function v(t){return Object.prototype.toString.call(t)}n.isArray=e,n.isBoolean=r,n.isNull=i,n.isNullOrUndefined=o,n.isNumber=s,n.isString=a,n.isSymbol=u,n.isUndefined=c,n.isRegExp=l,n.isObject=f,n.isDate=h,n.isError=p,n.isFunction=d,n.isPrimitive=y,n.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":48}],24:[function(t,e,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function s(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,n,r,o,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(n=this._events[t],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(s(n))for(o=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,u=0;u<r;u++)c[u].apply(this,o);return!0},r.prototype.addListener=function(t,e){var n;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned&&(n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var r=!1;return n.listener=e,this.on(t,n),this},r.prototype.removeListener=function(t,e){var n,r,o,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(n)){for(a=o;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},{}],25:[function(t,e,n){"use strict";function r(){this._protocol=null,this._href="",this._port=-1,this._query=null,this.auth=null,this.slashes=null,this.host=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null,this._prependSlash=!1}function i(t){return t.replace(/[?#]/g,function(t){return encodeURIComponent(t)})}function o(t){return t.replace(/#/g,function(t){return encodeURIComponent(t)})}function s(t,e,n,r){for(var i=t.length,o=n;o<i;++o){var s=t.charCodeAt(o);if(s===e)return!0;if(1===r[s])return!1}return!1}function a(t,e,n){for(var r=0,i=t.length;r<i;++r){var o=t.charCodeAt(r);if(o===e||o===n)return!0}return!1}function u(t){var e=new Uint8Array(128);return t.forEach(function(t){if("number"==typeof t)e[t]=1;else for(var n=t[0],r=t[1],i=n;i<=r;++i)e[i]=1}),e}function c(){}var l=t("querystring");r.queryString=l,r.prototype.parse=function(t,e,n,i){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);for(var o=0,s=t.length-1;t.charCodeAt(o)<=32;)o++;for(;t.charCodeAt(s)<=32;)s--;if(o=this._parseProtocol(t,o,s),"javascript"!==this._protocol){o=this._parseHost(t,o,s,n);var a=this._protocol;!this.hostname&&(this.slashes||a&&!w[a])&&(this.hostname=this.host="")}if(o<=s){var u=t.charCodeAt(o);47===u||92===u?this._parsePath(t,o,s,i):63===u?this._parseQuery(t,o,s,i):35===u?this._parseHash(t,o,s,i):"javascript"!==this._protocol?this._parsePath(t,o,s,i):this.pathname=t.slice(o,s+1)}if(!this.pathname&&this.hostname&&this._slashProtocols[this._protocol]&&(this.pathname="/"),e){var c=this.search;null==c&&(c=this.search=""),63===c.charCodeAt(0)&&(c=c.slice(1)),this.query=r.queryString.parse(c)}},r.prototype.resolve=function(t){return this.resolveObject(r.parse(t,!1,!0)).format()},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",i=this.hash||"",o=this.search||"",s="",a=this.hostname||"",u=this.port||"",c=!1,l="",f=this.query;if(f&&"object"==typeof f&&(s=r.queryString.stringify(f)),o||(o=s?"?"+s:""),e&&58!==e.charCodeAt(e.length-1)&&(e+=":"),this.host)c=t+this.host;else if(a){var d=a.indexOf(":")>-1;d&&(a="["+a+"]"),c=t+a+(u?":"+u:"")}var y=this.slashes||(!e||w[e])&&!1!==c;return e?l=e+(y?"//":""):y&&(l="//"),y&&n&&47!==n.charCodeAt(0)&&(n="/"+n),o&&63!==o.charCodeAt(0)&&(o="?"+o),i&&35!==i.charCodeAt(0)&&(i="#"+i),n=h(n),o=p(o),l+(!1===c?"":c)+n+o+i},r.prototype.resolveObject=function(t){"string"==typeof t&&(t=r.parse(t,!1,!0));var e=this._clone();if(e.hash=t.hash,!t.href)return e._href="",e;if(t.slashes&&!t._protocol)return t._copyPropsTo(e,!0),w[e._protocol]&&e.hostname&&!e.pathname&&(e.pathname="/"),e._href="",e;if(t._protocol&&t._protocol!==e._protocol){if(!w[t._protocol])return t._copyPropsTo(e,!1),e._href="",e;if(e._protocol=t._protocol,t.host||"javascript"===t._protocol)e.pathname=t.pathname;else{for(var n=(t.pathname||"").split("/");n.length&&!(t.host=n.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),e.pathname=n.join("/")}return e.search=t.search,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e._port=t._port,e.slashes=e.slashes||t.slashes,e._href="",e}var i=e.pathname&&47===e.pathname.charCodeAt(0),o=t.host||t.pathname&&47===t.pathname.charCodeAt(0),s=o||i||e.host&&t.pathname,a=s,u=e.pathname&&e.pathname.split("/")||[],n=t.pathname&&t.pathname.split("/")||[],c=e._protocol&&!w[e._protocol];if(c&&(e.hostname="",e._port=-1,e.host&&(""===u[0]?u[0]=e.host:u.unshift(e.host)),e.host="",t._protocol&&(t.hostname="",t._port=-1,t.host&&(""===n[0]?n[0]=t.host:n.unshift(t.host)),t.host=""),s=s&&(""===n[0]||""===u[0])),o)e.host=t.host?t.host:e.host,e.hostname=t.hostname?t.hostname:e.hostname,e.search=t.search,u=n;else if(n.length)u||(u=[]),u.pop(),u=u.concat(n),e.search=t.search;else if(t.search){if(c){e.hostname=e.host=u.shift();var l=!!(e.host&&e.host.indexOf("@")>0)&&e.host.split("@");l&&(e.auth=l.shift(),e.host=e.hostname=l.shift())}return e.search=t.search,e._href="",e}if(!u.length)return e.pathname=null,e._href="",e;for(var f=u.slice(-1)[0],h=(e.host||t.host)&&("."===f||".."===f)||""===f,p=0,d=u.length;d>=0;d--)f=u[d],"."===f?u.splice(d,1):".."===f?(u.splice(d,1),p++):p&&(u.splice(d,1),p--);if(!s&&!a)for(;p--;p)u.unshift("..");!s||""===u[0]||u[0]&&47===u[0].charCodeAt(0)||u.unshift(""),h&&"/"!==u.join("/").substr(-1)&&u.push("");var y=""===u[0]||u[0]&&47===u[0].charCodeAt(0);if(c){e.hostname=e.host=y?"":u.length?u.shift():"";var l=!!(e.host&&e.host.indexOf("@")>0)&&e.host.split("@");l&&(e.auth=l.shift(),e.host=e.hostname=l.shift())}return s=s||e.host&&u.length,s&&!y&&u.unshift(""),e.pathname=0===u.length?null:u.join("/"),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e._href="",e};var f=t("punycode");r.prototype._hostIdna=function(t){return f.toASCII(t)};var h=r.prototype._escapePathName=function(t){return a(t,35,63)?i(t):t},p=r.prototype._escapeSearch=function(t){return a(t,35,-1)?o(t):t};r.prototype._parseProtocol=function(t,e,n){for(var r=!1,i=this._protocolCharacters,o=e;o<=n;++o){var s=t.charCodeAt(o);if(58===s){var a=t.slice(e,o);return r&&(a=a.toLowerCase()),this._protocol=a,o+1}if(1!==i[s])return e;s<97&&(r=!0)}return e},r.prototype._parseAuth=function(t,e,n,r){var i=t.slice(e,n+1);r&&(i=decodeURIComponent(i)),this.auth=i},r.prototype._parsePort=function(t,e,n){for(var r=0,i=!1,o=!0,s=e;s<=n;++s){var a=t.charCodeAt(s);if(!(48<=a&&a<=57)){o=!1,92!==a&&47!==a||(o=!0);break}r=10*r+(a-48),i=!0}return 0===r&&!i||!o?(o||(this._port=-2),0):(this._port=r,s-e)},r.prototype._parseHost=function(t,e,n,r){var i=this._hostEndingCharacters,o=t.charCodeAt(e),a=t.charCodeAt(e+1);if(47!==o&&92!==o||47!==a&&92!==a){if(!this._protocol||w[this._protocol])return e}else{if(this.slashes=!0,0===e){if(n<2)return e;if(!s(t,64,2,i)&&!r)return this.slashes=null,e}e+=2}for(var u=!1,c=!1,l=e,f=n,h=0,p=0,d=!1,y=-1,v=e;v<=n;++v){var g=t.charCodeAt(v);if(64===g)y=v;else if(37===g)d=!0;else if(1===i[g])break}if(y>-1&&(this._parseAuth(t,e,y-1,d),e=l=y+1),91===t.charCodeAt(e)){for(var v=e+1;v<=n;++v){var g=t.charCodeAt(v);if(93===g){58===t.charCodeAt(v+1)&&(h=this._parsePort(t,v+2,n)+1);var m=t.slice(e+1,v).toLowerCase();return this.hostname=m,this.host=this._port>0?"["+m+"]:"+this._port:"["+m+"]",this.pathname="/",v+h+1}}return e}for(var v=e;v<=n;++v){if(p>62)return this.hostname=this.host=t.slice(e,v),v;var g=t.charCodeAt(v);if(58===g){h=this._parsePort(t,v+1,n)+1,f=v-1;break}if(g<97){if(46===g)p=-1;else if(65<=g&&g<=90)u=!0;else if(!(45===g||95===g||43===g||48<=g&&g<=57)){0===i[g]&&0===this._noPrependSlashHostEnders[g]&&(this._prependSlash=!0),f=v-1;break}}else if(g>=123){if(g<=126){0===this._noPrependSlashHostEnders[g]&&(this._prependSlash=!0),f=v-1;break}c=!0}g,p++}if(f+1!==e&&f-l<=256){var m=t.slice(l,f+1);u&&(m=m.toLowerCase()),c&&(m=this._hostIdna(m)),this.hostname=m,this.host=this._port>0?m+":"+this._port:m}return f+1+h},r.prototype._copyPropsTo=function(t,e){e||(t._protocol=this._protocol),t._href=this._href,t._port=this._port,t._prependSlash=this._prependSlash,t.auth=this.auth,t.slashes=this.slashes,t.host=this.host,t.hostname=this.hostname,t.hash=this.hash,t.search=this.search,t.pathname=this.pathname},r.prototype._clone=function(){var t=new r;return t._protocol=this._protocol,t._href=this._href,t._port=this._port,t._prependSlash=this._prependSlash,t.auth=this.auth,t.slashes=this.slashes,t.host=this.host,t.hostname=this.hostname,t.hash=this.hash,t.search=this.search,t.pathname=this.pathname,t},r.prototype._getComponentEscaped=function(t,e,n,r){for(var i=e,o=e,s="",a=r?this._afterQueryAutoEscapeMap:this._autoEscapeMap;o<=n;++o){var u=t.charCodeAt(o),c=a[u];""!==c&&void 0!==c&&(i<o&&(s+=t.slice(i,o)),s+=c,i=o+1)}return i<o+1&&(s+=t.slice(i,o)),s},r.prototype._parsePath=function(t,e,n,r){for(var i=e,o=n,s=!1,a=this._autoEscapeCharacters,u=-2===this._port?"/:":"",c=e;c<=n;++c){var l=t.charCodeAt(c);if(35===l){this._parseHash(t,c,n,r),o=c-1;break}if(63===l){this._parseQuery(t,c,n,r),o=c-1;break}r||s||1!==a[l]||(s=!0)}if(i>o)return void(this.pathname=""===u?"/":u);var f;f=s?this._getComponentEscaped(t,i,o,!1):t.slice(i,o+1),this.pathname=""===u?this._prependSlash?"/"+f:f:u+f},r.prototype._parseQuery=function(t,e,n,r){for(var i=e,o=n,s=!1,a=this._autoEscapeCharacters,u=e;u<=n;++u){var c=t.charCodeAt(u);if(35===c){this._parseHash(t,u,n,r),o=u-1;break}r||s||1!==a[c]||(s=!0)}if(i>o)return void(this.search="");var l;l=s?this._getComponentEscaped(t,i,o,!0):t.slice(i,o+1),this.search=l},r.prototype._parseHash=function(t,e,n,r){if(e>n)return void(this.hash="");this.hash=r?t.slice(e,n+1):this._getComponentEscaped(t,e,n,!0)},Object.defineProperty(r.prototype,"port",{get:function(){return this._port>=0?""+this._port:null},set:function(t){this._port=null==t?-1:parseInt(t,10)}}),Object.defineProperty(r.prototype,"query",{get:function(){var t=this._query;if(null!=t)return t;var e=this.search;return e&&(63===e.charCodeAt(0)&&(e=e.slice(1)),""!==e)?(this._query=e,e):e},set:function(t){this._query=t}}),Object.defineProperty(r.prototype,"path",{get:function(){var t=this.pathname||"",e=this.search||"";return t||e?t+e:null==t&&e?"/"+e:null},set:function(){}}),Object.defineProperty(r.prototype,"protocol",{get:function(){var t=this._protocol;return t?t+":":t},set:function(t){if("string"==typeof t){var e=t.length-1;58===t.charCodeAt(e)?this._protocol=t.slice(0,e):this._protocol=t}else null==t&&(this._protocol=null)}}),Object.defineProperty(r.prototype,"href",{get:function(){var t=this._href;return t||(t=this._href=this.format()),t},set:function(t){this._href=t}}),r.parse=function(t,e,n,i){if(t instanceof r)return t;var o=new r;return o.parse(t,!!e,!!n,!!i),o},r.format=function(t){return"string"==typeof t&&(t=r.parse(t)),t instanceof r?t.format():r.prototype.format.call(t)},r.resolve=function(t,e){return r.parse(t,!1,!0).resolve(e)},r.resolveObject=function(t,e){return t?r.parse(t,!1,!0).resolveObject(e):e};for(var d=["<",">",'"',"`"," ","\r","\n","\t","{","}","|","\\","^","`","'"],y=new Array(128),v=0,g=y.length;v<g;++v)y[v]="";for(var v=0,g=d.length;v<g;++v){var m=d[v],b=encodeURIComponent(m);b===m&&(b=escape(m)),y[m.charCodeAt(0)]=b}var _=y.slice();y[92]="/";var w=r.prototype._slashProtocols={http:!0,https:!0,gopher:!0,file:!0,ftp:!0,"http:":!0,"https:":!0,"gopher:":!0,"file:":!0,"ftp:":!0};c.prototype=w,r.prototype._protocolCharacters=u([[97,122],[65,90],46,43,45]),r.prototype._hostEndingCharacters=u([35,63,47,92]),r.prototype._autoEscapeCharacters=u(d.map(function(t){return t.charCodeAt(0)})),r.prototype._noPrependSlashHostEnders=u(["<",">","'","`"," ","\r","\n","\t","{","}","|","^","`",'"',"%",";"].map(function(t){return t.charCodeAt(0)})),r.prototype._autoEscapeMap=y,r.prototype._afterQueryAutoEscapeMap=_,e.exports=r,r.replace=function(){t.cache.url={exports:r}}},{punycode:132,querystring:135}],26:[function(t,e,n){var r=t("http"),i=e.exports;for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);i.request=function(t,e){return t||(t={}),t.scheme="https",t.protocol="https:",r.request.call(this,t,e)}},{http:458}],27:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.analytics=n.$=n.registerLanguages=n.prefetchSections=n.cheet=void 0;var i=t("./lib/jquery/jq_setup"),o=r(i);t("./lib/activity/activity_lifecycle");var s=t("cheet.js"),a=r(s),u=t("./lib/sections/sections"),c=r(u),l=t("./lib/i18n/i18n"),f=t("./lib/analytics/analytics"),h=r(f);n.cheet=a.default,n.prefetchSections=c.default,n.registerLanguages=l.registerLanguages,n.$=o.default,n.analytics=h.default},{"./lib/activity/activity_lifecycle":28,"./lib/analytics/analytics":31,"./lib/i18n/i18n":37,"./lib/jquery/jq_setup":41,"./lib/sections/sections":45,"cheet.js":22}],28:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),t("./progress"),t("./finish_activity"),n.default=null},{"./finish_activity":29,"./progress":30}],29:[function(t,e,n){"use strict";var r=t("partybus"),i=t("jquery"),o=function(t){return t&&t.__esModule?t:{default:t}}(i),s=!1,a=function(){return window.close()},u=function(){setTimeout(function(){return a()},2e3)},c=function(){return window.location.href=window.location.href},l=function(){setTimeout(function(){return c()},2e3)},f=function(t){0===t.filter(function(t){return!t.completed}).length&&h()},h=function(){if(s)return console.log("mark_completed called... already completed"),!1;console.log("✔︎ MARK COMPLETED"),r.bus.emit("activity::progress::mark_as_completed"),s=!0};r.bus.on("activity::progress::updated",f),r.bus.on("window::reload",l),r.bus.on("window::close",a),(0,o.default)(document).on("click",".window-close",a),(0,o.default)(document).on("click",".window-close-delay",u),(0,o.default)(document).on("click","#trump",u),(0,o.default)(document).on("click",".activity-completed",function(){return h})},{jquery:50,partybus:129}],30:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most"),i=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r),t("partybus")),o=t("ramda"),s=(function(t){t&&t.__esModule}(o),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.filter(function(t){return!0!==t.hidden});console.log("incoming sections to cache:",t),window.progress_cache=e.length?e:window.progress_cache,i.bus.emit("activity::progress::updated",window.progress_cache)}),a=function(t){return t.completed=!0},u=function(t){console.log("update_progress",t);var e=window.progress_cache.map(function(e){return e.slug===t&&"visited"===e.completion&&a(e),e});s(e)},c=function(t){console.log("complete_one_section()",t);var e=window.progress_cache.map(function(e){return e.slug===t&&a(e),e});s(e)},l=function(t){window.progress_cache=window.progress_cache.filter(function(t){t.slug})};i.bus.on("hucklebucked",u),i.bus.on("activity::progress::complete",c),i.bus.on("activity::progress::setup",s),i.bus.on("tincan::sections::restore",s),i.bus.on("section::failed_to_load",l),n.default=null},{most:98,partybus:129,ramda:138}],31:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=t("jquery"),o=(r(i),t("partybus"),t("./tincan_config")),s=r(o),a=t("../authenticate/auth"),u=r(a),c=t("./destinations/segment"),l=r(c),f=t("./destinations/google"),h=r(f),p=function(t,e,n){var r=(0,u.default)(e.url);if(void 0===r)return!0;console.log("🤠 Actor","--",r),(0,s.default)(t,e,n),(0,l.default)(e.send,t,r),(0,h.default)(e.send,t,r)};n.default=p},{"../authenticate/auth":35,"./destinations/google":32,"./destinations/segment":33,"./tincan_config":34,jquery:50,partybus:129}],32:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("partybus"),i=function(t){var e=document.createElement("script"),n="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','"+t.googletag_api_key+"');";e.innerHTML=n,document.head.appendChild(e)},o=function(t,e){var n=document.createElement("script");n.innerHTML="\n  dataLayer = [{\n    'activity_id': '"+t.full_url+"',\n    'activity_name': '"+t.activity_name+"',\n    'fullName': '"+e.name+"',\n    'email': '"+e.email+"'\n  }];",document.head.appendChild(n)},s=function(t,e){e.event=t,console.log("Google Tag track:",t,e),window.dataLayer.push(e)},a=function(t,e){console.log("Google Tag track (faked):",t,e)},u=function(t,e,n){var u=t?s:a;t&&(o(e,n),i(e));var c=Date.now();r.bus.on("hucklebucked",function(t){var r={activity:e.activity_name,activity_id:e.full_url,section:t,timestamp:Date.now(),elapsed:Math.round(Date.now()-c/1e3),name:n.name,email:n.email};u("navigateSection",r)}),r.bus.on("activity::progress::mark_as_completed",function(t){var r={activity:e.activity_name,activity_id:e.full_url,timestamp:t,name:n.name,email:n.email};u("completedActivity",r)})};n.default=u},{partybus:129}],33:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("partybus"),i=function(t){!function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var n=0;n<e.methods.length;n++){var r=e.methods[n];e[r]=e.factory(r)}e.load=function(t){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)},e.SNIPPET_VERSION="4.0.0",e.load(t.segmentio_api_key),e.page()}}()},o={identify:function(t,e){console.log("fakeSegment.identify",t,e)},track:function(t,e){console.log("fakeSegment.track",t,e)}},s=function(t,e,n){i(e);var s=t?window.analytics:o,a=Date.now();s.identify(n.email,{name:n.name,email:n.email}),s.track("Launched Activity",{activity:e.activity_name,activity_id:e.full_url,timestamp:Date.now(),name:n.name,email:n.email}),r.bus.on("hucklebucked",function(t){var r={activity:e.activity_name,activity_id:e.full_url,section:t,timestamp:Date.now(),elapsed:Math.round(Date.now()-a/1e3),name:n.name,email:n.email};console.log("Segment.track",r),s.track("Navigate Section: "+t,r)}),r.bus.on("activity::progress::mark_as_completed",function(t){var r={activity:e.activity_name,activity_id:e.full_url,timestamp:t,name:n.name,email:n.email};console.log("Segment.completed",r),s.track("Completed Activity: "+r)})};n.default=s},{partybus:129}],34:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("partybus"),i=t("tincan"),o=function(t){return t&&t.__esModule?t:{default:t}}(i),s=function(t,e,n){return r.bus.on("activity::ready",function(){r.bus.emit("tincan::start")}),r.bus.on("hucklebucked",function(t){t!==n[0].slug&&r.bus.emit("tincan::bookmark",t)}),r.bus.on("activity::progress::mark_as_completed",function(){return r.bus.emit("tincan::complete")}),r.bus.on("activity::progress::updated",function(t){console.log("PROGRESS UPDATED",t),r.bus.emit("tincan::sections",t)}),r.bus.on("tincan::progress::reset",function(){r.bus.emit("tincan::sections",[]),r.bus.emit("tincan::bookmark",null),r.bus.emit("window::reload")}),(0,o.default)(t,e.send,e.url)};n.default=s},{partybus:129,tincan:475}],35:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("fast-url-parser"),i=function(t){return t&&t.__esModule?t:{default:t}}(r);i.default.queryString=t("querystringparser");var o=function(t){console.log("login sequence, location",t);var e=i.default.parse(t,!0);return void 0!==e.query.actor?s(e.query):a()},s=function(t){var e=JSON.parse(t.actor),n=e.mbox.replace("mailto:",""),r=e.name;return console.log("👤 xAPI login as:",n,r),{name:r,email:n}},a=function(){console.log("🍪 cookie login")};n.default=o},{"fast-url-parser":25,querystringparser:136}],36:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=t("./translate"),s=t("partybus"),a=function(t){if(t===(0,o.getLocale)())return void console.warn("Locale is the SAME (not changing)",t);""!==(0,o.getLocale)()&&alert("Changing translation to: "+t),(0,o.setLocale)(t),s.bus.emit("i18n::translateable",document.querySelectorAll("[data-i18n]"))},u=function(t){return void 0!==o.translations[t]?s.bus.emit("locale::set",t):s.bus.on("translation::loaded::"+t,function(){a(t)}),t};s.bus.on("locale::set",a),(0,i.default)(document).on("click","[data-translate-to]",function(t){var e=(0,i.default)(t.target).closest("[data-translate-to]").attr("data-translate-to");s.bus.emit("locale::set",e)}),n.default=u},{"./translate":40,jquery:50,partybus:129}],37:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.registerLanguages=void 0;var i=t("./prefetch_languages"),o=r(i),s=t("./change_locale"),a=r(s),u=t("watcher"),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["en"];(0,a.default)(t[0]),(0,o.default)(t)};n.registerLanguages=c,(0,u.mutationWatch)("[data-i18n]:not([translated])","i18n::translateable")},{"./change_locale":36,"./prefetch_languages":39,watcher:483}],38:[function(t,e,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};(function(){function t(t){this.tokens=[],this.tokens.links={},this.options=t||h.defaults,this.rules=p.normal,this.options.gfm&&(this.options.tables?this.rules=p.tables:this.rules=p.gfm)}function i(t,e){if(this.options=e||h.defaults,this.links=t,this.rules=d.normal,this.renderer=this.options.renderer||new o,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=d.breaks:this.rules=d.gfm:this.options.pedantic&&(this.rules=d.pedantic)}function o(t){this.options=t||{}}function s(t){this.tokens=[],this.token=null,this.options=t||h.defaults,this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function a(t,e){return t.replace(e?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function u(t){return t.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(t,e){return e=e.toLowerCase(),"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}function c(t,e){return t=t.source,e=e||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),t=t.replace(r,i),n):new RegExp(t,e)}}function l(){}function f(t){for(var e,n,r=1;r<arguments.length;r++){e=arguments[r];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}function h(e,n,r){if(r||"function"==typeof n){r||(r=n,n=null),n=f({},h.defaults,n||{});var i,o,u=n.highlight,c=0;try{i=t.lex(e,n)}catch(t){return r(t)}o=i.length;var l=function(t){if(t)return n.highlight=u,r(t);var e;try{e=s.parse(i,n)}catch(e){t=e}return n.highlight=u,t?r(t):r(null,e)};if(!u||u.length<3)return l();if(delete n.highlight,!o)return l();for(;c<i.length;c++)!function(t){"code"!==t.type?--o||l():u(t.text,t.lang,function(e,n){return e?l(e):null==n||n===t.text?--o||l():(t.text=n,t.escaped=!0,void(--o||l()))})}(i[c])}else try{return n&&(n=f({},h.defaults,n)),s.parse(t.lex(e,n),n)}catch(t){if(t.message+="\nPlease report this to https://github.com/chjj/marked.",(n||h.defaults).silent)return"<p>An error occured:</p><pre>"+a(t.message+"",!0)+"</pre>";throw t}}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:l,hr:/^( *[-*_]){3,} *(?:\n+|$)/,
  heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:l,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:l,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};p.bullet=/(?:[*+-]|\d+\.)/,p.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,p.item=c(p.item,"gm")(/bull/g,p.bullet)(),p.list=c(p.list)(/bull/g,p.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+p.def.source+")")(),p.blockquote=c(p.blockquote)("def",p.def)(),p._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",p.html=c(p.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,p._tag)(),p.paragraph=c(p.paragraph)("hr",p.hr)("heading",p.heading)("lheading",p.lheading)("blockquote",p.blockquote)("tag","<"+p._tag)("def",p.def)(),p.normal=f({},p),p.gfm=f({},p.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),p.gfm.paragraph=c(p.paragraph)("(?!","(?!"+p.gfm.fences.source.replace("\\1","\\2")+"|"+p.list.source.replace("\\1","\\3")+"|")(),p.tables=f({},p.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=p,t.lex=function(e,n){return new t(n).lex(e)},t.prototype.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(t,!0)},t.prototype.token=function(t,e,n){for(var r,i,o,s,a,u,c,l,f,t=t.replace(/^ +$/gm,"");t;)if((o=this.rules.newline.exec(t))&&(t=t.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(t))t=t.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(e&&(o=this.rules.nptable.exec(t))){for(t=t.substring(o[0].length),u={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},l=0;l<u.align.length;l++)/^ *-+: *$/.test(u.align[l])?u.align[l]="right":/^ *:-+: *$/.test(u.align[l])?u.align[l]="center":/^ *:-+ *$/.test(u.align[l])?u.align[l]="left":u.align[l]=null;for(l=0;l<u.cells.length;l++)u.cells[l]=u.cells[l].split(/ *\| */);this.tokens.push(u)}else if(o=this.rules.lheading.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,e,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(t)){for(t=t.substring(o[0].length),s=o[2],this.tokens.push({type:"list_start",ordered:s.length>1}),o=o[0].match(this.rules.item),r=!1,f=o.length,l=0;l<f;l++)u=o[l],c=u.length,u=u.replace(/^ *([*+-]|\d+\.) +/,""),~u.indexOf("\n ")&&(c-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+c+"}","gm"),"")),this.options.smartLists&&l!==f-1&&(a=p.bullet.exec(o[l+1])[0],s===a||s.length>1&&a.length>1||(t=o.slice(l+1).join("\n")+t,l=f-1)),i=r||/\n\n(?!\s*$)/.test(u),l!==f-1&&(r="\n"===u.charAt(u.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(t))t=t.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&e&&(o=this.rules.def.exec(t)))t=t.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(e&&(o=this.rules.table.exec(t))){for(t=t.substring(o[0].length),u={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},l=0;l<u.align.length;l++)/^ *-+: *$/.test(u.align[l])?u.align[l]="right":/^ *:-+: *$/.test(u.align[l])?u.align[l]="center":/^ *:-+ *$/.test(u.align[l])?u.align[l]="left":u.align[l]=null;for(l=0;l<u.cells.length;l++)u.cells[l]=u.cells[l].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(u)}else if(e&&(o=this.rules.paragraph.exec(t)))t=t.substring(o[0].length),"\n"===o[1].charAt(o[1].length-1)?this.tokens.push({type:"paragraph",text:o[1].slice(0,-1)}):this.tokens.push({type:this.tokens.length>0?"paragraph":"html",text:o[1]});else if(o=this.rules.text.exec(t))t=t.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0));return this.tokens};var d={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:l,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:l,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};d._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,d._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,d.link=c(d.link)("inside",d._inside)("href",d._href)(),d.reflink=c(d.reflink)("inside",d._inside)(),d.normal=f({},d),d.pedantic=f({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=f({},d.normal,{escape:c(d.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:c(d.text)("]|","~]|")("|","|https?://|")()}),d.breaks=f({},d.gfm,{br:c(d.br)("{2,}","*")(),text:c(d.gfm.text)("{2,}","*")()}),i.rules=d,i.output=function(t,e,n){return new i(e,n).output(t)},i.prototype.output=function(t){for(var e,n,r,i,o="";t;)if(i=this.rules.escape.exec(t))t=t.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(t))t=t.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):(n=a(i[1]),r=n),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(t))){if(i=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),t=t.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):a(i[0]):i[0];else if(i=this.rules.link.exec(t))t=t.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(t))||(i=this.rules.nolink.exec(t))){if(t=t.substring(i[0].length),e=(i[2]||i[1]).replace(/\s+/g," "),!(e=this.links[e.toLowerCase()])||!e.href){o+=i[0].charAt(0),t=i[0].substring(1)+t;continue}this.inLink=!0,o+=this.outputLink(i,e),this.inLink=!1}else if(i=this.rules.strong.exec(t))t=t.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(t))t=t.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(t))t=t.substring(i[0].length),o+=this.renderer.codespan(a(i[2],!0));else if(i=this.rules.br.exec(t))t=t.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(t))t=t.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(t))t=t.substring(i[0].length),o+=this.renderer.text(a(this.smartypants(i[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else t=t.substring(i[0].length),n=a(i[1]),r=n,o+=this.renderer.link(r,null,n);return o},i.prototype.outputLink=function(t,e){var n=a(e.href),r=e.title?a(e.title):null;return"!"!==t[0].charAt(0)?this.renderer.link(n,r,this.output(t[1])):this.renderer.image(n,r,a(t[1]))},i.prototype.smartypants=function(t){return this.options.smartypants?t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):t},i.prototype.mangle=function(t){if(!this.options.mangle)return t;for(var e,n="",r=t.length,i=0;i<r;i++)e=t.charCodeAt(i),Math.random()>.5&&(e="x"+e.toString(16)),n+="&#"+e+";";return n},o.prototype.code=function(t,e,n){if(this.options.highlight){var r=this.options.highlight(t,e);null!=r&&r!==t&&(n=!0,t=r)}return e?'<pre><code class="'+this.options.langPrefix+a(e,!0)+'">'+(n?t:a(t,!0))+"\n</code></pre>\n":"<pre><code>"+(n?t:a(t,!0))+"\n</code></pre>"},o.prototype.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},o.prototype.html=function(t){return t},o.prototype.heading=function(t,e,n){return"<h"+e+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+t+"</h"+e+">\n"},o.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},o.prototype.list=function(t,e){var n=e?"ol":"ul";return"<"+n+">\n"+t+"</"+n+">\n"},o.prototype.listitem=function(t){return"<li>"+t+"</li>\n"},o.prototype.paragraph=function(t){return"<p>"+t+"</p>\n"},o.prototype.table=function(t,e){return"<table>\n<thead>\n"+t+"</thead>\n<tbody>\n"+e+"</tbody>\n</table>\n"},o.prototype.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},o.prototype.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' style="text-align:'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},o.prototype.strong=function(t){return"<strong>"+t+"</strong>"},o.prototype.em=function(t){return"<em>"+t+"</em>"},o.prototype.codespan=function(t){return"<code>"+t+"</code>"},o.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},o.prototype.del=function(t){return"<del>"+t+"</del>"},o.prototype.link=function(t,e,n){if(this.options.sanitize){try{var r=decodeURIComponent(u(t)).replace(/[^\w:]/g,"").toLowerCase()}catch(t){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var i='<a href="'+t+'"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>"},o.prototype.image=function(t,e,n){var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+=this.options.xhtml?"/>":">"},o.prototype.text=function(t){return t},s.parse=function(t,e,n){return new s(e,n).parse(t)},s.prototype.parse=function(t){this.inline=new i(t.links,this.options,this.renderer),this.tokens=t.reverse();for(var e="";this.next();)e+=this.tok();return e},s.prototype.next=function(){return this.token=this.tokens.pop()},s.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},s.prototype.parseText=function(){for(var t=this.token.text;"text"===this.peek().type;)console.log("peek",this.next().text),t+="\n"+this.next().text;return console.log("nopeek",t),this.inline.output(t)},s.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var t,e,n,r,i="",o="";for(n="",t=0;t<this.token.header.length;t++)({header:!0,align:this.token.align[t]}),n+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(i+=this.renderer.tablerow(n),t=0;t<this.token.cells.length;t++){for(e=this.token.cells[t],n="",r=0;r<e.length;r++)n+=this.renderer.tablecell(this.inline.output(e[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(var o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":for(var o="",s=this.token.ordered;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,s);case"list_item_start":for(var o="";"list_item_end"!==this.next().type;)o+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(o);case"loose_item_start":for(var o="";"list_item_end"!==this.next().type;)o+=this.tok();return this.renderer.listitem(o);case"html":var a=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(a);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},l.exec=l,h.options=h.setOptions=function(t){return f(h.defaults,t),h},h.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new o,xhtml:!1},h.Parser=s,h.parser=s.parse,h.Renderer=o,h.Lexer=t,h.lexer=t.lex,h.InlineLexer=i,h.inlineLexer=i.output,h.parse=h,void 0!==e&&"object"===(void 0===n?"undefined":r(n))?e.exports=h:"function"==typeof define&&define.amd?define(function(){return h}):this.marked=h}).call(function(){return this||("undefined"!=typeof window?window:t)}())}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],39:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("partybus"),i=window,o=i.fetch,s=function(t){t.forEach(function(t){o("lang/"+t+".json").then(function(t){return t.json()}).then(function(e){r.bus.emit("translation::loaded",{locale:t,json:e}),r.bus.emit("translation::loaded::"+t,e)}).catch(function(t){return console.log("translation file parsing failed",t)})})};n.default=s},{partybus:129}],40:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.translations=n.getLocale=n.setLocale=void 0;var r=t("most"),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=t("./marked"),s=function(t){return t&&t.__esModule?t:{default:t}}(o),a=t("partybus"),u=t("ramda"),c={};a.bus.on("translation::loaded",function(t){var e=t.locale,n=t.json;c[e]=n});var l="",f=function(t){return l=t},h=function(){return l},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.pathOr)("Lorem Ipsum",e.split("."),t)},d=function(t){var e=($(t),c[l]);if(void 0!==e){var n=p(e,t.getAttribute("data-i18n"));void 0!==n?(t.innerHTML=(0,s.default)(n),t.setAttribute("translated",e)):console.error("translation failed",t,l,e,t.getAttribute("data-i18n"),n)}};i.fromEvent("i18n::translateable",a.bus).flatMap(function(t){return i.from(t)}).tap(d).drain(),n.setLocale=f,n.getLocale=h,n.translations=c},{"./marked":38,most:98,partybus:129,ramda:138}],41:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r);window.jQuery=i.default,window.$=i.default,console.log("jQuery is loaded",i.default),n.default=i.default},{jquery:50}],42:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("partybus"),i=function(){console.log("Running 404 page")};r.bus.on("404page",i),n.default=i},{partybus:129}],43:[function(t,e,n){"use strict";var r=t("jquery");!function(t){t&&t.__esModule}(r);t("./hucklebuck_buttons");var i=t("partybus"),o={},s=[];window.current_section="",i.bus.on("section::loaded",function(t,e,n,r){o[t.slug]=t.body,s[t.order]=t.slug});var a=function(t){return console.log("Rendering Section by Slug: "+t),void 0!==o[t]?(document.getElementById("content").innerHTML=o[t],i.bus.emit("hucklebucked",t),t):(document.getElementById("content").innerHTML=o[404],i.bus.emit("404page"),"404")},u=function(t){return console.log("Rendering Section by #"+t),a(s[t])},c=function(t){var e=s.indexOf(t);return e>s-1?t:a(s[e+1])},l=function(t){var e=s.indexOf(t);return e<=0?t:a(s[e-1])},f=function(t){var e=t;e=Number.isInteger(t)?u(t):"next"===t?c(window.current_section):"prev"===t?l(window.current_section):a(e),i.bus.emit("post-hucklebucked",e)};i.bus.on("hucklebuck",function(t){console.log("hucklebuck called",t),f(t)}),i.bus.on("hucklebucked",function(t){window.current_section=t}),window.hucklebuck=function(t){i.bus.emit("hucklebuck",t)}},{"./hucklebuck_buttons":44,jquery:50,partybus:129}],44:[function(t,e,n){"use strict";var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=t("partybus");(0,i.default)(document).on("click","[data-nav]",function(t){var e=(0,i.default)(t.target).closest("[data-nav]").attr("data-nav");o.bus.emit("hucklebuck",e)}),(0,i.default)(document).on("click","#next-up",function(t){var e=(0,i.default)(t.target).attr("data-next-up");o.bus.emit("hucklebuck",e)}),(0,i.default)(document).on("click",".cust-btn",function(t){var e=(0,i.default)(t.currentTarget),n=e.attr("data-target");o.bus.emit("hucklebuck",[n])}),(0,i.default)(document).on("click",".trigger-next",function(){o.bus.emit("hucklebuck","next")}),(0,i.default)(document).on("click",".trigger-back",function(){o.bus.emit("hucklebuck","prev")}),(0,i.default)(document).on("touchstart","a",function(t){(0,i.default)(t.target).trigger("click")})},{jquery:50,partybus:129}],45:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("partybus");t("./hucklebuck"),t("./404");var i=window,o=i.fetch,s=function(t){console.log("loading First Page",t),r.bus.emit("hucklebuck",t)},a=function(t){if(!t.ok)throw Error(t.statusText);return t.text()},u=function(t){console.log(" => prefetchSections called",t),r.bus.emit("activity::progress::setup",t),r.bus.on("section::loaded::"+t[0].slug,function(){return s(t[0].slug)}),t.forEach(function(t,e){o("sections/"+t.slug+".html").then(a).then(function(n){return r.bus.emit("section::loaded",{slug:t.slug,order:e,body:n}),console.log("section::loaded::"+t.slug),r.bus.emit("section::loaded::"+t.slug),!0}).catch(function(e){console.log("section::failed::"+t.slug),r.bus.emit("section::failed_to_load",t.slug)})})};n.default=u},{"./404":42,"./hucklebuck":43,partybus:129}],46:[function(t,e,n){n.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?h/u:h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*y}},{}],47:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],48:[function(t,e,n){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}e.exports=function(t){return null!=t&&(r(t)||i(t)||!!t._isBuffer)}},{}],49:[function(t,e,n){if("undefined"==typeof jQuery)throw new Error("jquery-confirm requires jQuery");var r,i;!function(t,e){t.fn.confirm=function(e,n){return void 0===e&&(e={}),"string"==typeof e&&(e={content:e,title:n||!1}),t(this).each(function(){var n=t(this);if(n.attr("jc-attached"))return void console.warn("jConfirm has already been attached to this element ",n[0]);n.on("click",function(i){i.preventDefault();var o=t.extend({},e);if(n.attr("data-title")&&(o.title=n.attr("data-title")),n.attr("data-content")&&(o.content=n.attr("data-content")),void 0===o.buttons&&(o.buttons={}),o.$target=n,n.attr("href")&&0==Object.keys(o.buttons).length){var s=t.extend(!0,{},r.pluginDefaults.defaultButtons,(r.defaults||{}).defaultButtons||{}),a=Object.keys(s)[0];o.buttons=s,o.buttons[a].action=function(){location.href=n.attr("href")}}o.closeIcon=!1;t.confirm(o)}),n.attr("jc-attached",!0)}),t(this)},t.confirm=function(e,n){void 0===e&&(e={}),"string"==typeof e&&(e={content:e,title:n||!1});var i=!(0==e.buttons);if("object"!=typeof e.buttons&&(e.buttons={}),0==Object.keys(e.buttons).length&&i){var o=t.extend(!0,{},r.pluginDefaults.defaultButtons,(r.defaults||{}).defaultButtons||{});e.buttons=o}return r(e)},t.alert=function(e,n){void 0===e&&(e={}),"string"==typeof e&&(e={content:e,title:n||!1});var i=!(0==e.buttons);if("object"!=typeof e.buttons&&(e.buttons={}),0==Object.keys(e.buttons).length&&i){var o=t.extend(!0,{},r.pluginDefaults.defaultButtons,(r.defaults||{}).defaultButtons||{}),s=Object.keys(o)[0];e.buttons[s]=o[s]}return r(e)},t.dialog=function(t,e){return void 0===t&&(t={}),"string"==typeof t&&(t={content:t,title:e||!1,closeIcon:function(){}}),t.buttons={},void 0===t.closeIcon&&(t.closeIcon=function(){}),t.confirmKeys=[13],r(t)},r=function(e){void 0===e&&(e={});var n=t.extend(!0,{},r.pluginDefaults);r.defaults&&(n=t.extend(!0,n,r.defaults)),n=t.extend(!0,{},n,e);var o=new i(n);return r.instances.push(o),o},i=function(e){t.extend(this,e),this._init()},i.prototype={_init:function(){var e=this;r.instances.length||(r.lastFocused=t("body").find(":focus")),this._id=Math.round(99999*Math.random()),this.contentParsed=t(document.createElement("div")),this.lazyOpen||setTimeout(function(){e.open()},0)},_buildHTML:function(){var e=this;this._parseAnimation(this.animation,"o"),this._parseAnimation(this.closeAnimation,"c"),this._parseBgDismissAnimation(this.backgroundDismissAnimation),this._parseColumnClass(this.columnClass),this._parseTheme(this.theme),this._parseType(this.type);var n=t(this.template);n.find(".jconfirm-box").addClass(this.animationParsed).addClass(this.backgroundDismissAnimationParsed).addClass(this.typeParsed),this.typeAnimated&&n.find(".jconfirm-box").addClass("jconfirm-type-animated"),this.useBootstrap?(n.find(".jc-bs3-row").addClass(this.bootstrapClasses.row),n.find(".jc-bs3-row").addClass("justify-content-md-center justify-content-sm-center justify-content-xs-center justify-content-lg-center"),n.find(".jconfirm-box-container").addClass(this.columnClassParsed),this.containerFluid?n.find(".jc-bs3-container").addClass(this.bootstrapClasses.containerFluid):n.find(".jc-bs3-container").addClass(this.bootstrapClasses.container)):n.find(".jconfirm-box").css("width",this.boxWidth),this.titleClass&&n.find(".jconfirm-title-c").addClass(this.titleClass),n.addClass(this.themeParsed);var r="jconfirm-box"+this._id;n.find(".jconfirm-box").attr("aria-labelledby",r).attr("tabindex",-1),n.find(".jconfirm-content").attr("id",r),null!==this.bgOpacity&&n.find(".jconfirm-bg").css("opacity",this.bgOpacity),this.rtl&&n.addClass("jconfirm-rtl"),this.$el=n.appendTo(this.container),this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container"),this.$jconfirmBox=this.$body=this.$el.find(".jconfirm-box"),this.$jconfirmBg=this.$el.find(".jconfirm-bg"),this.$title=this.$el.find(".jconfirm-title"),this.$titleContainer=this.$el.find(".jconfirm-title-c"),this.$content=this.$el.find("div.jconfirm-content"),this.$contentPane=this.$el.find(".jconfirm-content-pane"),this.$icon=this.$el.find(".jconfirm-icon-c"),this.$closeIcon=this.$el.find(".jconfirm-closeIcon"),this.$holder=this.$el.find(".jconfirm-holder"),this.$btnc=this.$el.find(".jconfirm-buttons"),this.$scrollPane=this.$el.find(".jconfirm-scrollpane"),e.setStartingPoint(),this._contentReady=t.Deferred(),this._modalReady=t.Deferred(),this.$holder.css({"padding-top":this.offsetTop,"padding-bottom":this.offsetBottom}),this.setTitle(),this.setIcon(),this._setButtons(),this._parseContent(),this.initDraggable(),this.isAjax&&this.showLoading(!1),t.when(this._contentReady,this._modalReady).then(function(){e.isAjaxLoading?setTimeout(function(){e.isAjaxLoading=!1,e.setContent(),e.setTitle(),e.setIcon(),setTimeout(function(){e.hideLoading(!1),e._updateContentMaxHeight()},100),"function"==typeof e.onContentReady&&e.onContentReady()},50):(e._updateContentMaxHeight(),e.setTitle(),e.setIcon(),"function"==typeof e.onContentReady&&e.onContentReady()),e.autoClose&&e._startCountDown()}),this._watchContent(),"none"===this.animation&&(this.animationSpeed=1,this.animationBounce=1),this.$body.css(this._getCSS(this.animationSpeed,this.animationBounce)),this.$contentPane.css(this._getCSS(this.animationSpeed,1)),this.$jconfirmBg.css(this._getCSS(this.animationSpeed,1)),this.$jconfirmBoxContainer.css(this._getCSS(this.animationSpeed,1))},_typePrefix:"jconfirm-type-",typeParsed:"",_parseType:function(t){this.typeParsed=this._typePrefix+t},setType:function(t){var e=this.typeParsed;this._parseType(t),this.$jconfirmBox.removeClass(e).addClass(this.typeParsed)},themeParsed:"",_themePrefix:"jconfirm-",setTheme:function(t){var e=this.theme;this.theme=t||this.theme,this._parseTheme(this.theme),e&&this.$el.removeClass(e),this.$el.addClass(this.themeParsed),this.theme=t},_parseTheme:function(e){var n=this;e=e.split(","),t.each(e,function(r,i){-1===i.indexOf(n._themePrefix)&&(e[r]=n._themePrefix+t.trim(i))}),this.themeParsed=e.join(" ").toLowerCase()},backgroundDismissAnimationParsed:"",_bgDismissPrefix:"jconfirm-hilight-",_parseBgDismissAnimation:function(e){var n=e.split(","),r=this;t.each(n,function(e,i){-1===i.indexOf(r._bgDismissPrefix)&&(n[e]=r._bgDismissPrefix+t.trim(i))}),this.backgroundDismissAnimationParsed=n.join(" ").toLowerCase()},animationParsed:"",closeAnimationParsed:"",_animationPrefix:"jconfirm-animation-",setAnimation:function(t){this.animation=t||this.animation,this._parseAnimation(this.animation,"o")},_parseAnimation:function(e,n){n=n||"o";var r=e.split(","),i=this;t.each(r,function(e,n){-1===n.indexOf(i._animationPrefix)&&(r[e]=i._animationPrefix+t.trim(n))});var o=r.join(" ").toLowerCase();return"o"===n?this.animationParsed=o:this.closeAnimationParsed=o,o},setCloseAnimation:function(t){this.closeAnimation=t||this.closeAnimation,this._parseAnimation(this.closeAnimation,"c")},setAnimationSpeed:function(t){this.animationSpeed=t||this.animationSpeed},columnClassParsed:"",setColumnClass:function(t){if(!this.useBootstrap)return void console.warn("cannot set columnClass, useBootstrap is set to false");this.columnClass=t||this.columnClass,this._parseColumnClass(this.columnClass),this.$jconfirmBoxContainer.addClass(this.columnClassParsed)},_updateContentMaxHeight:function(){var n=t(e).height()-(this.$jconfirmBox.outerHeight()-this.$contentPane.outerHeight())-(this.offsetTop+this.offsetBottom);this.$contentPane.css({"max-height":n+"px"})},setBoxWidth:function(t){if(this.useBootstrap)return void console.warn("cannot set boxWidth, useBootstrap is set to true");this.boxWidth=t,this.$jconfirmBox.css("width",t)},_parseColumnClass:function(t){t=t.toLowerCase();var e;switch(t){case"xl":case"xlarge":e="col-md-12";break;case"l":case"large":e="col-md-8 col-md-offset-2";break;case"m":case"medium":e="col-md-6 col-md-offset-3";break;case"s":case"small":e="col-md-4 col-md-offset-4";break;case"xs":case"xsmall":e="col-md-2 col-md-offset-5";break;default:e=t}this.columnClassParsed=e},initDraggable:function(){var n=this,r=this.$titleContainer;this.resetDrag(),this.draggable&&(r.on("mousedown",function(t){r.addClass("jconfirm-hand"),n.mouseX=t.clientX,n.mouseY=t.clientY,n.isDrag=!0}),t(e).on("mousemove."+this._id,function(t){n.isDrag&&(n.movingX=t.clientX-n.mouseX+n.initialX,n.movingY=t.clientY-n.mouseY+n.initialY,n.setDrag())}),t(e).on("mouseup."+this._id,function(){r.removeClass("jconfirm-hand"),n.isDrag&&(n.isDrag=!1,n.initialX=n.movingX,n.initialY=n.movingY)}))},resetDrag:function(){this.isDrag=!1,this.initialX=0,this.initialY=0,this.movingX=0,this.movingY=0,this.mouseX=0,this.mouseY=0,this.$jconfirmBoxContainer.css("transform","translate(0px, 0px)")},setDrag:function(){if(this.draggable){this.alignMiddle=!1;var n=this.$jconfirmBox.outerWidth(),r=this.$jconfirmBox.outerHeight(),i=t(e).width(),o=t(e).height(),s=this;if(s.movingX%1==0||s.movingY%1==0){if(s.dragWindowBorder){var a=i/2-n/2,u=o/2-r/2;u-=s.dragWindowGap,a-=s.dragWindowGap,a+s.movingX<0?s.movingX=-a:a-s.movingX<0&&(s.movingX=a),u+s.movingY<0?s.movingY=-u:u-s.movingY<0&&(s.movingY=u)}s.$jconfirmBoxContainer.css("transform","translate("+s.movingX+"px, "+s.movingY+"px)")}}},_scrollTop:function(){if("undefined"!=typeof pageYOffset)return pageYOffset;var t=document.body,e=document.documentElement;return e=e.clientHeight?e:t,e.scrollTop},_watchContent:function(){var n=this;this._timer&&clearInterval(this._timer);var r=0;this._timer=setInterval(function(){if(n.smoothContent){var i=n.$content.outerHeight()||0;i!==r&&(n.$contentPane.css({height:i}).scrollTop(0),r=i);var o=t(e).height();n.offsetTop+n.offsetBottom+n.$jconfirmBox.height()-n.$contentPane.height()+n.$content.height()<o?n.$contentPane.addClass("no-scroll"):n.$contentPane.removeClass("no-scroll")}},this.watchInterval)},_overflowClass:"jconfirm-overflow",_hilightAnimating:!1,highlight:function(){this.hiLightModal()},hiLightModal:function(){var t=this;if(!this._hilightAnimating){t.$body.addClass("hilight");var e=parseFloat(t.$body.css("animation-duration"))||2;this._hilightAnimating=!0,setTimeout(function(){t._hilightAnimating=!1,t.$body.removeClass("hilight")},1e3*e)}},_bindEvents:function(){var n=this;this.boxClicked=!1,this.$scrollPane.click(function(t){if(!n.boxClicked){var e,r=!1,i=!1;if(e="function"==typeof n.backgroundDismiss?n.backgroundDismiss():n.backgroundDismiss,"string"==typeof e&&void 0!==n.buttons[e]?(r=e,i=!1):i=void 0===e||1==!!e,r){var o=n.buttons[r].action.apply(n);i=void 0===o||!!o}i?n.close():n.hiLightModal()}n.boxClicked=!1}),this.$jconfirmBox.click(function(t){n.boxClicked=!0});var r=!1;t(e).on("jcKeyDown."+n._id,function(t){r||(r=!0)}),t(e).on("keyup."+n._id,function(t){r&&(n.reactOnKey(t),r=!1)}),t(e).on("resize."+this._id,function(){n._updateContentMaxHeight(),setTimeout(function(){n.resetDrag()},100)})},_cubic_bezier:"0.36, 0.55, 0.19",_getCSS:function(t,e){return{"-webkit-transition-duration":t/1e3+"s","transition-duration":t/1e3+"s","-webkit-transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+e+")","transition-timing-function":"cubic-bezier("+this._cubic_bezier+", "+e+")"}},_setButtons:function(){var e=this,n=0;if("object"!=typeof this.buttons&&(this.buttons={}),t.each(this.buttons,function(r,i){n+=1,"function"==typeof i&&(e.buttons[r]=i={action:i}),e.buttons[r].text=i.text||r,e.buttons[r].btnClass=i.btnClass||"btn-default",e.buttons[r].action=i.action||function(){},e.buttons[r].keys=i.keys||[],e.buttons[r].isHidden=i.isHidden||!1,e.buttons[r].isDisabled=i.isDisabled||!1,t.each(e.buttons[r].keys,function(t,n){e.buttons[r].keys[t]=n.toLowerCase()});var o=t('<button type="button" class="btn"></button>').html(e.buttons[r].text).addClass(e.buttons[r].btnClass).prop("disabled",e.buttons[r].isDisabled).css("display",e.buttons[r].isHidden?"none":"").click(function(t){t.preventDefault()
  ;var n=e.buttons[r].action.apply(e,[e.buttons[r]]);e.onAction.apply(e,[r,e.buttons[r]]),e._stopCountDown(),(void 0===n||n)&&e.close()});e.buttons[r].el=o,e.buttons[r].setText=function(t){o.html(t)},e.buttons[r].addClass=function(t){o.addClass(t)},e.buttons[r].removeClass=function(t){o.removeClass(t)},e.buttons[r].disable=function(){e.buttons[r].isDisabled=!0,o.prop("disabled",!0)},e.buttons[r].enable=function(){e.buttons[r].isDisabled=!1,o.prop("disabled",!1)},e.buttons[r].show=function(){e.buttons[r].isHidden=!1,o.css("display","")},e.buttons[r].hide=function(){e.buttons[r].isHidden=!0,o.css("display","none")},e["$_"+r]=e["$$"+r]=o,e.$btnc.append(o)}),0===n&&this.$btnc.hide(),null===this.closeIcon&&0===n&&(this.closeIcon=!0),this.closeIcon){if(this.closeIconClass){var r='<i class="'+this.closeIconClass+'"></i>';this.$closeIcon.html(r)}this.$closeIcon.click(function(t){t.preventDefault();var n,r=!1,i=!1;if(n="function"==typeof e.closeIcon?e.closeIcon():e.closeIcon,"string"==typeof n&&void 0!==e.buttons[n]?(r=n,i=!1):i=void 0===n||1==!!n,r){var o=e.buttons[r].action.apply(e);i=void 0===o||!!o}i&&e.close()}),this.$closeIcon.show()}else this.$closeIcon.hide()},setTitle:function(t,e){if(e=e||!1,void 0!==t)if("string"==typeof t)this.title=t;else if("function"==typeof t){"function"==typeof t.promise&&console.error("Promise was returned from title function, this is not supported.");var n=t();this.title="string"==typeof n&&n}else this.title=!1;this.isAjaxLoading&&!e||(this.$title.html(this.title||""),this.updateTitleContainer())},setIcon:function(t,e){if(e=e||!1,void 0!==t)if("string"==typeof t)this.icon=t;else if("function"==typeof t){var n=t();this.icon="string"==typeof n&&n}else this.icon=!1;this.isAjaxLoading&&!e||(this.$icon.html(this.icon?'<i class="'+this.icon+'"></i>':""),this.updateTitleContainer())},updateTitleContainer:function(){this.title||this.icon?this.$titleContainer.show():this.$titleContainer.hide()},setContentPrepend:function(t,e){t&&this.contentParsed.prepend(t)},setContentAppend:function(t){t&&this.contentParsed.append(t)},setContent:function(t,e){e=!!e;var n=this;t&&this.contentParsed.html("").append(t),this.isAjaxLoading&&!e||(this.$content.html(""),this.$content.append(this.contentParsed),setTimeout(function(){n.$body.find("input[autofocus]:visible:first").focus()},100))},loadingSpinner:!1,showLoading:function(t){this.loadingSpinner=!0,this.$jconfirmBox.addClass("loading"),t&&this.$btnc.find("button").prop("disabled",!0)},hideLoading:function(t){this.loadingSpinner=!1,this.$jconfirmBox.removeClass("loading"),t&&this.$btnc.find("button").prop("disabled",!1)},ajaxResponse:!1,contentParsed:"",isAjax:!1,isAjaxLoading:!1,_parseContent:function(){var e=this,n="&nbsp;";if("function"==typeof this.content){var r=this.content.apply(this);"string"==typeof r?this.content=r:"object"==typeof r&&"function"==typeof r.always?(this.isAjax=!0,this.isAjaxLoading=!0,r.always(function(t,n,r){e.ajaxResponse={data:t,status:n,xhr:r},e._contentReady.resolve(t,n,r),"function"==typeof e.contentLoaded&&e.contentLoaded(t,n,r)}),this.content=n):this.content=n}if("string"==typeof this.content&&"url:"===this.content.substr(0,4).toLowerCase()){this.isAjax=!0,this.isAjaxLoading=!0;var i=this.content.substring(4,this.content.length);t.get(i).done(function(t){e.contentParsed.html(t)}).always(function(t,n,r){e.ajaxResponse={data:t,status:n,xhr:r},e._contentReady.resolve(t,n,r),"function"==typeof e.contentLoaded&&e.contentLoaded(t,n,r)})}this.content||(this.content=n),this.isAjax||(this.contentParsed.html(this.content),this.setContent(),e._contentReady.resolve())},_stopCountDown:function(){clearInterval(this.autoCloseInterval),this.$cd&&this.$cd.remove()},_startCountDown:function(){var e=this,n=this.autoClose.split("|");if(2!==n.length)return console.error("Invalid option for autoClose. example 'close|10000'"),!1;var r=n[0],i=parseInt(n[1]);if(void 0===this.buttons[r])return console.error("Invalid button key '"+r+"' for autoClose"),!1;var o=Math.ceil(i/1e3);this.$cd=t('<span class="countdown"> ('+o+")</span>").appendTo(this["$_"+r]),this.autoCloseInterval=setInterval(function(){e.$cd.html(" ("+(o-=1)+") "),o<=0&&(e["$$"+r].trigger("click"),e._stopCountDown())},1e3)},_getKey:function(t){switch(t){case 192:return"tilde";case 13:return"enter";case 16:return"shift";case 9:return"tab";case 20:return"capslock";case 17:return"ctrl";case 91:return"win";case 18:return"alt";case 27:return"esc";case 32:return"space"}var e=String.fromCharCode(t);return!!/^[A-z0-9]+$/.test(e)&&e.toLowerCase()},reactOnKey:function(e){var n=this,r=t(".jconfirm");if(r.eq(r.length-1)[0]!==this.$el[0])return!1;var i=e.which;if(this.$content.find(":input").is(":focus")&&/13|32/.test(i))return!1;var o=this._getKey(i);if("esc"===o&&this.escapeKey)if(!0===this.escapeKey)this.$scrollPane.trigger("click");else if("string"==typeof this.escapeKey||"function"==typeof this.escapeKey){var s;s="function"==typeof this.escapeKey?this.escapeKey():this.escapeKey,s&&(void 0===this.buttons[s]?console.warn("Invalid escapeKey, no buttons found with key "+s):this["$_"+s].trigger("click"))}t.each(this.buttons,function(t,e){-1!=e.keys.indexOf(o)&&n["$_"+t].trigger("click")})},setDialogCenter:function(){console.info("setDialogCenter is deprecated, dialogs are centered with CSS3 tables")},_unwatchContent:function(){clearInterval(this._timer)},close:function(n){var i=this;return"function"==typeof this.onClose&&this.onClose(n),this._unwatchContent(),t(e).unbind("resize."+this._id),t(e).unbind("keyup."+this._id),t(e).unbind("jcKeyDown."+this._id),this.draggable&&(t(e).unbind("mousemove."+this._id),t(e).unbind("mouseup."+this._id),this.$titleContainer.unbind("mousedown")),i.$el.removeClass(i.loadedClass),t("body").removeClass("jconfirm-no-scroll-"+i._id),i.$jconfirmBoxContainer.removeClass("jconfirm-no-transition"),setTimeout(function(){i.$body.addClass(i.closeAnimationParsed),i.$jconfirmBg.addClass("jconfirm-bg-h");var n="none"===i.closeAnimation?1:i.animationSpeed;setTimeout(function(){i.$el.remove();var n=(r.instances,r.instances.length-1);for(n;n>=0;n--)r.instances[n]._id===i._id&&r.instances.splice(n,1);if(!r.instances.length&&i.scrollToPreviousElement&&r.lastFocused&&r.lastFocused.length&&t.contains(document,r.lastFocused[0])){var o=r.lastFocused;if(i.scrollToPreviousElementAnimate){var s=t(e).scrollTop(),a=r.lastFocused.offset().top,u=t(e).height();if(a>s&&a<s+u)o.focus();else{var c=a-Math.round(u/3);t("html, body").animate({scrollTop:c},i.animationSpeed,"swing",function(){o.focus()})}}else o.focus();r.lastFocused=!1}"function"==typeof i.onDestroy&&i.onDestroy()},.4*n)},50),!0},open:function(){return!this.isOpen()&&(this._buildHTML(),this._bindEvents(),this._open(),!0)},setStartingPoint:function(){var n=!1;if(!0!==this.animateFromElement&&this.animateFromElement)n=this.animateFromElement,r.lastClicked=!1;else{if(!r.lastClicked||!0!==this.animateFromElement)return!1;n=r.lastClicked,r.lastClicked=!1}if(!n)return!1;var i=n.offset(),o=n.outerHeight()/2,s=n.outerWidth()/2;o-=this.$jconfirmBox.outerHeight()/2,s-=this.$jconfirmBox.outerWidth()/2;var a=i.top+o;a-=this._scrollTop();var u=i.left+s,c=t(e).height()/2,l=t(e).width()/2,f=c-this.$jconfirmBox.outerHeight()/2,h=l-this.$jconfirmBox.outerWidth()/2;if(a-=f,u-=h,Math.abs(a)>c||Math.abs(u)>l)return!1;this.$jconfirmBoxContainer.css("transform","translate("+u+"px, "+a+"px)")},_open:function(){var t=this;"function"==typeof t.onOpenBefore&&t.onOpenBefore(),this.$body.removeClass(this.animationParsed),this.$jconfirmBg.removeClass("jconfirm-bg-h"),this.$body.focus(),t.$jconfirmBoxContainer.css("transform","translate(0px, 0px)"),setTimeout(function(){t.$body.css(t._getCSS(t.animationSpeed,1)),t.$body.css({"transition-property":t.$body.css("transition-property")+", margin"}),t.$jconfirmBoxContainer.addClass("jconfirm-no-transition"),t._modalReady.resolve(),"function"==typeof t.onOpen&&t.onOpen(),t.$el.addClass(t.loadedClass)},this.animationSpeed)},loadedClass:"jconfirm-open",isClosed:function(){return!this.$el||""===this.$el.css("display")},isOpen:function(){return!this.isClosed()},toggle:function(){this.isOpen()?this.close():this.open()}},r.instances=[],r.lastFocused=!1,r.pluginDefaults={template:'<div class="jconfirm"><div class="jconfirm-bg jconfirm-bg-h"></div><div class="jconfirm-scrollpane"><div class="jconfirm-row"><div class="jconfirm-cell"><div class="jconfirm-holder"><div class="jc-bs3-container"><div class="jc-bs3-row"><div class="jconfirm-box-container jconfirm-animated"><div class="jconfirm-box" role="dialog" aria-labelledby="labelled" tabindex="-1"><div class="jconfirm-closeIcon">&times;</div><div class="jconfirm-title-c"><span class="jconfirm-icon-c"></span><span class="jconfirm-title"></span></div><div class="jconfirm-content-pane"><div class="jconfirm-content"></div></div><div class="jconfirm-buttons"></div><div class="jconfirm-clear"></div></div></div></div></div></div></div></div></div></div>',title:"Hello",titleClass:"",type:"default",typeAnimated:!0,draggable:!0,dragWindowGap:15,dragWindowBorder:!0,animateFromElement:!0,alignMiddle:!0,smoothContent:!0,content:"Are you sure to continue?",buttons:{},defaultButtons:{ok:{action:function(){}},close:{action:function(){}}},contentLoaded:function(){},icon:"",lazyOpen:!1,bgOpacity:null,theme:"light",animation:"scale",closeAnimation:"scale",animationSpeed:400,animationBounce:1,escapeKey:!0,rtl:!1,container:"body",containerFluid:!1,backgroundDismiss:!1,backgroundDismissAnimation:"shake",autoClose:!1,closeIcon:null,closeIconClass:!1,watchInterval:100,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1",boxWidth:"50%",scrollToPreviousElement:!0,scrollToPreviousElementAnimate:!0,useBootstrap:!0,offsetTop:40,offsetBottom:40,bootstrapClasses:{container:"container",containerFluid:"container-fluid",row:"row"},onContentReady:function(){},onOpenBefore:function(){},onOpen:function(){},onClose:function(){},onDestroy:function(){},onAction:function(){}};var n=!1;t(e).on("keydown",function(r){if(!n){var i=t(r.target),o=!1;i.closest(".jconfirm-box").length&&(o=!0),o&&t(e).trigger("jcKeyDown"),n=!0}}),t(e).on("keyup",function(){n=!1}),r.lastClicked=!1,t(document).on("mousedown","button, a",function(){r.lastClicked=t(this)})}(jQuery,window)},{}],50:[function(t,e,n){!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ht.type(t);return"function"!==n&&!ht.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t,e,n){if(ht.isFunction(e))return ht.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return ht.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(xt.test(e))return ht.filter(e,t,n);e=ht.filter(e,t)}return ht.grep(t,function(t){return ht.inArray(t,e)>-1!==n})}function i(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function o(t){var e={};return ht.each(t.match(Ct)||[],function(t,n){e[n]=!0}),e}function s(){rt.addEventListener?(rt.removeEventListener("DOMContentLoaded",a),t.removeEventListener("load",a)):(rt.detachEvent("onreadystatechange",a),t.detachEvent("onload",a))}function a(){(rt.addEventListener||"load"===t.event.type||"complete"===rt.readyState)&&(s(),ht.ready())}function u(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(Nt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Pt.test(n)?ht.parseJSON(n):n)}catch(t){}ht.data(t,e,n)}else n=void 0}return n}function c(t){var e;for(e in t)if(("data"!==e||!ht.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function l(t,e,n,r){if(Et(t)){var i,o,s=ht.expando,a=t.nodeType,u=a?ht.cache:t,c=a?t[s]:t[s]&&s;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof e)return c||(c=a?t[s]=nt.pop()||ht.guid++:s),u[c]||(u[c]=a?{}:{toJSON:ht.noop}),"object"!=typeof e&&"function"!=typeof e||(r?u[c]=ht.extend(u[c],e):u[c].data=ht.extend(u[c].data,e)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ht.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[ht.camelCase(e)]):i=o,i}}function f(t,e,n){if(Et(t)){var r,i,o=t.nodeType,s=o?ht.cache:t,a=o?t[ht.expando]:ht.expando;if(s[a]){if(e&&(r=n?s[a]:s[a].data)){ht.isArray(e)?e=e.concat(ht.map(e,ht.camelCase)):e in r?e=[e]:(e=ht.camelCase(e),e=e in r?[e]:e.split(" ")),i=e.length;for(;i--;)delete r[e[i]];if(n?!c(r):!ht.isEmptyObject(r))return}(n||(delete s[a].data,c(s[a])))&&(o?ht.cleanData([t],!0):ft.deleteExpando||s!=s.window?delete s[a]:s[a]=void 0)}}}function h(t,e,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return ht.css(t,e,"")},u=a(),c=n&&n[3]||(ht.cssNumber[e]?"":"px"),l=(ht.cssNumber[e]||"px"!==c&&+u)&&Mt.exec(ht.css(t,e));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{o=o||".5",l/=o,ht.style(t,e,l+c)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function p(t){var e=Ut.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function d(t,e){var n,r,i=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||ht.nodeName(r,e)?o.push(r):ht.merge(o,d(r,e));return void 0===e||e&&ht.nodeName(t,e)?ht.merge([t],o):o}function y(t,e){for(var n,r=0;null!=(n=t[r]);r++)ht._data(n,"globalEval",!e||ht._data(e[r],"globalEval"))}function v(t){qt.test(t.type)&&(t.defaultChecked=t.checked)}function g(t,e,n,r,i){for(var o,s,a,u,c,l,f,h=t.length,g=p(e),m=[],b=0;b<h;b++)if((s=t[b])||0===s)if("object"===ht.type(s))ht.merge(m,s.nodeType?[s]:s);else if(Ft.test(s)){for(u=u||g.appendChild(e.createElement("div")),c=(Bt.exec(s)||["",""])[1].toLowerCase(),f=Wt[c]||Wt._default,u.innerHTML=f[1]+ht.htmlPrefilter(s)+f[2],o=f[0];o--;)u=u.lastChild;if(!ft.leadingWhitespace&&$t.test(s)&&m.push(e.createTextNode($t.exec(s)[0])),!ft.tbody)for(s="table"!==c||zt.test(s)?"<table>"!==f[1]||zt.test(s)?0:u:u.firstChild,o=s&&s.childNodes.length;o--;)ht.nodeName(l=s.childNodes[o],"tbody")&&!l.childNodes.length&&s.removeChild(l);for(ht.merge(m,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=g.lastChild}else m.push(e.createTextNode(s));for(u&&g.removeChild(u),ft.appendChecked||ht.grep(d(m,"input"),v),b=0;s=m[b++];)if(r&&ht.inArray(s,r)>-1)i&&i.push(s);else if(a=ht.contains(s.ownerDocument,s),u=d(g.appendChild(s),"script"),a&&y(u),n)for(o=0;s=u[o++];)Ht.test(s.type||"")&&n.push(s);return u=null,g}function m(){return!0}function b(){return!1}function _(){try{return rt.activeElement}catch(t){}}function w(t,e,n,r,i,o){var s,a;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(a in e)w(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=b;else if(!i)return t;return 1===o&&(s=i,i=function(t){return ht().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=ht.guid++)),t.each(function(){ht.event.add(this,e,i,r,n)})}function x(t,e){return ht.nodeName(t,"table")&&ht.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function S(t){return t.type=(null!==ht.find.attr(t,"type"))+"/"+t.type,t}function k(t){var e=ne.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function T(t,e){if(1===e.nodeType&&ht.hasData(t)){var n,r,i,o=ht._data(t),s=ht._data(e,o),a=o.events;if(a){delete s.handle,s.events={};for(n in a)for(r=0,i=a[n].length;r<i;r++)ht.event.add(e,n,a[n][r])}s.data&&(s.data=ht.extend({},s.data))}}function A(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!ft.noCloneEvent&&e[ht.expando]){i=ht._data(e);for(r in i.events)ht.removeEvent(e,r,i.handle);e.removeAttribute(ht.expando)}"script"===n&&e.text!==t.text?(S(e).text=t.text,k(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),ft.html5Clone&&t.innerHTML&&!ht.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&qt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function C(t,e,n,r){e=ot.apply([],e);var i,o,s,a,u,c,l=0,f=t.length,h=f-1,p=e[0],y=ht.isFunction(p);if(y||f>1&&"string"==typeof p&&!ft.checkClone&&ee.test(p))return t.each(function(i){var o=t.eq(i);y&&(e[0]=p.call(this,i,o.html())),C(o,e,n,r)});if(f&&(c=g(e,t[0].ownerDocument,!1,t,r),i=c.firstChild,1===c.childNodes.length&&(c=i),i||r)){for(a=ht.map(d(c,"script"),S),s=a.length;l<f;l++)o=c,l!==h&&(o=ht.clone(o,!0,!0),s&&ht.merge(a,d(o,"script"))),n.call(t[l],o,l);if(s)for(u=a[a.length-1].ownerDocument,ht.map(a,k),l=0;l<s;l++)o=a[l],Ht.test(o.type||"")&&!ht._data(o,"globalEval")&&ht.contains(u,o)&&(o.src?ht._evalUrl&&ht._evalUrl(o.src):ht.globalEval((o.text||o.textContent||o.innerHTML||"").replace(re,"")));c=i=null}return t}function O(t,e,n){for(var r,i=e?ht.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ht.cleanData(d(r)),r.parentNode&&(n&&ht.contains(r.ownerDocument,r)&&y(d(r,"script")),r.parentNode.removeChild(r));return t}function j(t,e){var n=ht(e.createElement(t)).appendTo(e.body),r=ht.css(n[0],"display");return n.detach(),r}function E(t){var e=rt,n=ae[t];return n||(n=j(t,e),"none"!==n&&n||(se=(se||ht("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(se[0].contentWindow||se[0].contentDocument).document,e.write(),e.close(),n=j(t,e),se.detach()),ae[t]=n),n}function P(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function N(t){if(t in xe)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=we.length;n--;)if((t=we[n]+e)in xe)return t}function R(t,e){for(var n,r,i,o=[],s=0,a=t.length;s<a;s++)r=t[s],r.style&&(o[s]=ht._data(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&It(r)&&(o[s]=ht._data(r,"olddisplay",E(r.nodeName)))):(i=It(r),(n&&"none"!==n||!i)&&ht._data(r,"olddisplay",i?n:ht.css(r,"display"))));for(s=0;s<a;s++)r=t[s],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function M(t,e,n){var r=me.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function L(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=ht.css(t,n+Lt[o],!0,i)),r?("content"===n&&(s-=ht.css(t,"padding"+Lt[o],!0,i)),"margin"!==n&&(s-=ht.css(t,"border"+Lt[o]+"Width",!0,i))):(s+=ht.css(t,"padding"+Lt[o],!0,i),"padding"!==n&&(s+=ht.css(t,"border"+Lt[o]+"Width",!0,i)));return s}function I(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=he(t),s=ft.boxSizing&&"border-box"===ht.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(i=pe(t,e,o),(i<0||null==i)&&(i=t.style[e]),ce.test(i))return i;r=s&&(ft.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+L(t,e,n||(s?"border":"content"),r,o)+"px"}function D(t,e,n,r,i){return new D.prototype.init(t,e,n,r,i)}function q(){return t.setTimeout(function(){Se=void 0}),Se=ht.now()}function B(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)n=Lt[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function H(t,e,n){for(var r,i=(W.tweeners[e]||[]).concat(W.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function $(t,e,n){var r,i,o,s,a,u,c,l=this,f={},h=t.style,p=t.nodeType&&It(t),d=ht._data(t,"fxshow");n.queue||(a=ht._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,l.always(function(){l.always(function(){a.unqueued--,ht.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=ht.css(t,"display"),"inline"===("none"===c?ht._data(t,"olddisplay")||E(t.nodeName):c)&&"none"===ht.css(t,"float")&&(ft.inlineBlockNeedsLayout&&"inline"!==E(t.nodeName)?h.zoom=1:h.display="inline-block")),n.overflow&&(h.overflow="hidden",ft.shrinkWrapBlocks()||l.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Te.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!d||void 0===d[r])continue;p=!0}f[r]=d&&d[r]||ht.style(t,r)}else c=void 0;if(ht.isEmptyObject(f))"inline"===("none"===c?E(t.nodeName):c)&&(h.display=c);else{d?"hidden"in d&&(p=d.hidden):d=ht._data(t,"fxshow",{}),o&&(d.hidden=!p),p?ht(t).show():l.done(function(){ht(t).hide()}),l.done(function(){var e;ht._removeData(t,"fxshow");for(e in f)ht.style(t,e,f[e])});for(r in f)s=H(p?d[r]:0,r,l),r in d||(d[r]=s.start,p&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function U(t,e){var n,r,i,o,s;for(n in t)if(r=ht.camelCase(n),i=e[r],o=t[n],ht.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(s=ht.cssHooks[r])&&"expand"in s){o=s.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function W(t,e,n){var r,i,o=0,s=W.prefilters.length,a=ht.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=Se||q(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,o=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),o<1&&u?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:ht.extend({},e),opts:ht.extend(!0,{specialEasing:{},easing:ht.easing._default},n),originalProperties:e,originalOptions:n,startTime:Se||q(),duration:n.duration,tweens:[],createTween:function(e,n){var r=ht.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;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}}),l=c.props;for(U(l,c.opts.specialEasing);o<s;o++)if(r=W.prefilters[o].call(c,t,l,c.opts))return ht.isFunction(r.stop)&&(ht._queueHooks(c.elem,c.opts.queue).stop=ht.proxy(r.stop,r)),r;return ht.map(l,H,c),ht.isFunction(c.opts.start)&&c.opts.start.call(t,c),ht.fx.timer(ht.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function F(t){return ht.attr(t,"class")||""}function z(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(Ct)||[];if(ht.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function V(t,e,n,r){function i(a){var u;return o[a]=!0,ht.each(t[a]||[],function(t,a){var c=a(e,n,r);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=t===Xe;return i(e.dataTypes[0])||!o["*"]&&i("*")}function J(t,e){var n,r,i=ht.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&ht.extend(!0,t,n),t}function G(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){u.unshift(s);break}if(u[0]in n)o=u[0];else{for(s in n){if(!u[0]||t.converters[s+" "+u[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function Y(t,e,n,r){var i,o,s,a,u,c={},l=t.dataTypes.slice();if(l[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=c[u+" "+o]||c["* "+o]))for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function X(t){return t.style&&t.style.display||ht.css(t,"display")}function K(t){if(!ht.contains(t.ownerDocument||rt,t))return!0;for(;t&&1===t.nodeType;){if("none"===X(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function Q(t,e,n,r){var i;if(ht.isArray(e))ht.each(e,function(e,i){n||en.test(t)?r(t,i):Q(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==ht.type(e))r(t,e);else for(i in e)Q(t+"["+i+"]",e[i],n,r)}function Z(){try{return new t.XMLHttpRequest}catch(t){}}function tt(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function et(t){return ht.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var nt=[],rt=t.document,it=nt.slice,ot=nt.concat,st=nt.push,at=nt.indexOf,ut={},ct=ut.toString,lt=ut.hasOwnProperty,ft={},ht=function(t,e){return new ht.fn.init(t,e)},pt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,dt=/^-ms-/,yt=/-([\da-z])/gi,vt=function(t,e){return e.toUpperCase()};ht.fn=ht.prototype={jquery:"1.12.4",constructor:ht,selector:"",length:0,toArray:function(){return it.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:it.call(this)},pushStack:function(t){var e=ht.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ht.each(this,t)},map:function(t){return this.pushStack(ht.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(it.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:st,sort:nt.sort,splice:nt.splice},ht.extend=ht.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||ht.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(i=arguments[a]))for(r in i)t=s[r],n=i[r],s!==n&&(c&&n&&(ht.isPlainObject(n)||(e=ht.isArray(n)))?(e?(e=!1,o=t&&ht.isArray(t)?t:[]):o=t&&ht.isPlainObject(t)?t:{},s[r]=ht.extend(c,o,n)):void 0!==n&&(s[r]=n));return s},ht.extend({expando:"jQuery"+("1.12.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ht.type(t)},isArray:Array.isArray||function(t){return"array"===ht.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!ht.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ht.type(t)||t.nodeType||ht.isWindow(t))return!1;try{if(t.constructor&&!lt.call(t,"constructor")&&!lt.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!ft.ownFirst)for(e in t)return lt.call(t,e);for(e in t);return void 0===e||lt.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ut[ct.call(t)]||"object":typeof t},globalEval:function(e){e&&ht.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(dt,"ms-").replace(yt,vt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var r,i=0;if(n(t))for(r=t.length;i<r&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(pt,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?ht.merge(r,"string"==typeof t?[t]:t):st.call(r,t)),r},inArray:function(t,e,n){var r;if(e){if(at)return at.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!==n)for(;void 0!==e[r];)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,s=!n;i<o;i++)!e(t[i],i)!==s&&r.push(t[i]);return r},map:function(t,e,r){var i,o,s=0,a=[];if(n(t))for(i=t.length;s<i;s++)null!=(o=e(t[s],s,r))&&a.push(o);else for(s in t)null!=(o=e(t[s],s,r))&&a.push(o);return ot.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(i=t[e],e=t,t=i),ht.isFunction(t))return n=it.call(arguments,2),r=function(){return t.apply(e||this,n.concat(it.call(arguments)))},r.guid=t.guid=t.guid||ht.guid++,r},now:function(){return+new Date},support:ft}),"function"==typeof Symbol&&(ht.fn[Symbol.iterator]=nt[Symbol.iterator]),ht.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){ut["[object "+e+"]"]=e.toLowerCase()});var gt=function(t){function e(t,e,n,r){var i,o,s,a,c,f,h,p,d=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&((e?e.ownerDocument||e:q)!==E&&j(e),e=e||E,N)){if(11!==y&&(f=yt.exec(t)))if(i=f[1]){if(9===y){if(!(s=e.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(d&&(s=d.getElementById(i))&&I(e,s)&&s.id===i)return n.push(s),n}else{if(f[2])return X.apply(n,e.getElementsByTagName(t)),n;if((i=f[3])&&b.getElementsByClassName&&e.getElementsByClassName)return X.apply(n,e.getElementsByClassName(i)),n}if(b.qsa&&!W[t+" "]&&(!R||!R.test(t))){if(1!==y)d=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(gt,"\\$&"):e.setAttribute("id",a=D),h=S(t),o=h.length,c=lt.test(a)?"#"+a:"[id='"+a+"']";o--;)h[o]=c+" "+l(h[o]);p=h.join(","),d=vt.test(t)&&u(e.parentNode)||e}if(p)try{return X.apply(n,d.querySelectorAll(p)),n}catch(t){}finally{a===D&&e.removeAttribute("id")}}}return T(t.replace(ot,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[D]=!0,t}function i(t){var e=E.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=e}function s(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||z)-(~t.sourceIndex||z);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function u(t){return t&&void 0!==t.getElementsByTagName&&t}function c(){}function l(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function f(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=H++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,s){var a,u,c,l=[B,o];if(s){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(c=e[D]||(e[D]={}),u=c[e.uniqueID]||(c[e.uniqueID]={}),(a=u[r])&&a[0]===B&&a[1]===o)return l[2]=a[2];if(u[r]=l,l[2]=t(e,n,s))return!0}}}function h(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function p(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function d(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,c=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),c&&e.push(a)));return s}function y(t,e,n,i,o,s){return i&&!i[D]&&(i=y(i)),o&&!o[D]&&(o=y(o,s)),r(function(r,s,a,u){var c,l,f,h=[],y=[],v=s.length,g=r||p(e||"*",a.nodeType?[a]:a,[]),m=!t||!r&&e?g:d(g,h,t,a,u),b=n?o||(r?t:v||i)?[]:s:m;if(n&&n(m,b,a,u),i)for(c=d(b,y),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(b[y[l]]=!(m[y[l]]=f));if(r){if(o||t){if(o){for(c=[],l=b.length;l--;)(f=b[l])&&c.push(m[l]=f);o(null,b=[],c,u)}for(l=b.length;l--;)(f=b[l])&&(c=o?Q(r,f):h[l])>-1&&(r[c]=!(s[c]=f))}}else b=d(b===s?b.splice(v,b.length):b),o?o(null,s,b,u):X.apply(s,b)})}function v(t){for(var e,n,r,i=t.length,o=_.relative[t[0].type],s=o||_.relative[" "],a=o?1:0,u=f(function(t){return t===e
  },s,!0),c=f(function(t){return Q(e,t)>-1},s,!0),p=[function(t,n,r){var i=!o&&(r||n!==A)||((e=n).nodeType?u(t,n,r):c(t,n,r));return e=null,i}];a<i;a++)if(n=_.relative[t[a].type])p=[f(h(p),n)];else{if(n=_.filter[t[a].type].apply(null,t[a].matches),n[D]){for(r=++a;r<i&&!_.relative[t[r].type];r++);return y(a>1&&h(p),a>1&&l(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ot,"$1"),n,a<r&&v(t.slice(a,r)),r<i&&v(t=t.slice(r)),r<i&&l(t))}p.push(n)}return h(p)}function g(t,n){var i=n.length>0,o=t.length>0,s=function(r,s,a,u,c){var l,f,h,p=0,y="0",v=r&&[],g=[],m=A,b=r||o&&_.find.TAG("*",c),w=B+=null==m?1:Math.random()||.1,x=b.length;for(c&&(A=s===E||s||c);y!==x&&null!=(l=b[y]);y++){if(o&&l){for(f=0,s||l.ownerDocument===E||(j(l),a=!N);h=t[f++];)if(h(l,s||E,a)){u.push(l);break}c&&(B=w)}i&&((l=!h&&l)&&p--,r&&v.push(l))}if(p+=y,i&&y!==p){for(f=0;h=n[f++];)h(v,g,s,a);if(r){if(p>0)for(;y--;)v[y]||g[y]||(g[y]=G.call(u));g=d(g)}X.apply(u,g),c&&!r&&g.length>0&&p+n.length>1&&e.uniqueSort(u)}return c&&(B=w,A=m),v};return i?r(s):s}var m,b,_,w,x,S,k,T,A,C,O,j,E,P,N,R,M,L,I,D="sizzle"+1*new Date,q=t.document,B=0,H=0,$=n(),U=n(),W=n(),F=function(t,e){return t===e&&(O=!0),0},z=1<<31,V={}.hasOwnProperty,J=[],G=J.pop,Y=J.push,X=J.push,K=J.slice,Q=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",nt="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",rt=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+nt+")*)|.*)\\)|)",it=new RegExp(tt+"+","g"),ot=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),st=new RegExp("^"+tt+"*,"+tt+"*"),at=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),ut=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ct=new RegExp(rt),lt=new RegExp("^"+et+"$"),ft={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,dt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,gt=/'|\\/g,mt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),bt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},_t=function(){j()};try{X.apply(J=K.call(q.childNodes),q.childNodes),J[q.childNodes.length].nodeType}catch(t){X={apply:J.length?function(t,e){Y.apply(t,K.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}b=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},j=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:q;return r!==E&&9===r.nodeType&&r.documentElement?(E=r,P=E.documentElement,N=!x(E),(n=E.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),b.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=i(function(t){return t.appendChild(E.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=dt.test(E.getElementsByClassName),b.getById=i(function(t){return P.appendChild(t).id=D,!E.getElementsByName||!E.getElementsByName(D).length}),b.getById?(_.find.ID=function(t,e){if(void 0!==e.getElementById&&N){var n=e.getElementById(t);return n?[n]:[]}},_.filter.ID=function(t){var e=t.replace(mt,bt);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(mt,bt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),_.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},_.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&N)return e.getElementsByClassName(t)},M=[],R=[],(b.qsa=dt.test(E.querySelectorAll))&&(i(function(t){P.appendChild(t).innerHTML="<a id='"+D+"'></a><select id='"+D+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+D+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+D+"+*").length||R.push(".#.+[+~]")}),i(function(t){var e=E.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+tt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(b.matchesSelector=dt.test(L=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&i(function(t){b.disconnectedMatch=L.call(t,"div"),L.call(t,"[s!='']:x"),M.push("!=",rt)}),R=R.length&&new RegExp(R.join("|")),M=M.length&&new RegExp(M.join("|")),e=dt.test(P.compareDocumentPosition),I=e||dt.test(P.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},F=e?function(t,e){if(t===e)return O=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===E||t.ownerDocument===q&&I(q,t)?-1:e===E||e.ownerDocument===q&&I(q,e)?1:C?Q(C,t)-Q(C,e):0:4&n?-1:1)}:function(t,e){if(t===e)return O=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],u=[e];if(!i||!o)return t===E?-1:e===E?1:i?-1:o?1:C?Q(C,t)-Q(C,e):0;if(i===o)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===q?-1:u[r]===q?1:0},E):E},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==E&&j(t),n=n.replace(ut,"='$1']"),b.matchesSelector&&N&&!W[n+" "]&&(!M||!M.test(n))&&(!R||!R.test(n)))try{var r=L.call(t,n);if(r||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,E,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==E&&j(t),I(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==E&&j(t);var n=_.attrHandle[e.toLowerCase()],r=n&&V.call(_.attrHandle,e.toLowerCase())?n(t,e,!N):void 0;return void 0!==r?r:b.attributes||!N?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(O=!b.detectDuplicates,C=!b.sortStable&&t.slice(0),t.sort(F),O){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return C=null,t},w=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=w(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=w(e);return n},_=e.selectors={cacheLength:50,createPseudo:r,match:ft,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(mt,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(mt,bt),"~="===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 ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.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(mt,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=$[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&$(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(it," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,h,p,d,y=o!==s?"nextSibling":"previousSibling",v=e.parentNode,g=a&&e.nodeName.toLowerCase(),m=!u&&!a,b=!1;if(v){if(o){for(;y;){for(h=e;h=h[y];)if(a?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;d=y="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?v.firstChild:v.lastChild],s&&m){for(h=v,f=h[D]||(h[D]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===B&&c[1],b=p&&c[2],h=p&&v.childNodes[p];h=++p&&h&&h[y]||(b=p=0)||d.pop();)if(1===h.nodeType&&++b&&h===e){l[t]=[B,p,b];break}}else if(m&&(h=e,f=h[D]||(h[D]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),c=l[t]||[],p=c[0]===B&&c[1],b=p),!1===b)for(;(h=++p&&h&&h[y]||(b=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++b||(m&&(f=h[D]||(h[D]={}),l=f[h.uniqueID]||(f[h.uniqueID]={}),l[t]=[B,b]),h!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var i,o=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[D]?o(n):o.length>1?(i=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),s=i.length;s--;)r=Q(t,i[s]),t[r]=!(e[r]=i[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=k(t.replace(ot,"$1"));return i[D]?r(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(mt,bt),function(e){return(e.textContent||e.innerText||w(e)).indexOf(t)>-1}}),lang:r(function(t){return lt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(mt,bt).toLowerCase(),function(e){var n;do{if(n=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===P},focus:function(t){return t===E.activeElement&&(!E.hasFocus||E.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return ht.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:a(function(){return[0]}),last:a(function(t,e){return[e-1]}),eq:a(function(t,e,n){return[n<0?n+e:n]}),even:a(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:a(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:a(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:a(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},_.pseudos.nth=_.pseudos.eq;for(m in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[m]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(m);for(m in{submit:!0,reset:!0})_.pseudos[m]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(m);return c.prototype=_.filters=_.pseudos,_.setFilters=new c,S=e.tokenize=function(t,n){var r,i,o,s,a,u,c,l=U[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],c=_.preFilter;a;){r&&!(i=st.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=at.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ot," ")}),a=a.slice(r.length));for(s in _.filter)!(i=ft[s].exec(a))||c[s]&&!(i=c[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?e.error(t):U(t,u).slice(0)},k=e.compile=function(t,e){var n,r=[],i=[],o=W[t+" "];if(!o){for(e||(e=S(t)),n=e.length;n--;)o=v(e[n]),o[D]?r.push(o):i.push(o);o=W(t,g(i,r)),o.selector=t}return o},T=e.select=function(t,e,n,r){var i,o,s,a,c,f="function"==typeof t&&t,h=!r&&S(t=f.selector||t);if(n=n||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&b.getById&&9===e.nodeType&&N&&_.relative[o[1].type]){if(!(e=(_.find.ID(s.matches[0].replace(mt,bt),e)||[])[0]))return n;f&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=ft.needsContext.test(t)?0:o.length;i--&&(s=o[i],!_.relative[a=s.type]);)if((c=_.find[a])&&(r=c(s.matches[0].replace(mt,bt),vt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&l(o)))return X.apply(n,r),n;break}}return(f||k(t,h))(r,e,!N,n,!e||vt.test(t)&&u(e.parentNode)||e),n},b.sortStable=D.split("").sort(F).join("")===D,b.detectDuplicates=!!O,j(),b.sortDetached=i(function(t){return 1&t.compareDocumentPosition(E.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(Z,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);ht.find=gt,ht.expr=gt.selectors,ht.expr[":"]=ht.expr.pseudos,ht.uniqueSort=ht.unique=gt.uniqueSort,ht.text=gt.getText,ht.isXMLDoc=gt.isXML,ht.contains=gt.contains;var mt=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&ht(t).is(n))break;r.push(t)}return r},bt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},_t=ht.expr.match.needsContext,wt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,xt=/^.[^:#\[\.,]*$/;ht.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?ht.find.matchesSelector(r,t)?[r]:[]:ht.find.matches(t,ht.grep(e,function(t){return 1===t.nodeType}))},ht.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(ht(t).filter(function(){for(e=0;e<i;e++)if(ht.contains(r[e],this))return!0}));for(e=0;e<i;e++)ht.find(t,r[e],n);return n=this.pushStack(i>1?ht.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&_t.test(t)?ht(t):t||[],!1).length}});var St,kt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ht.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||St,"string"==typeof t){if(!(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:kt.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof ht?e[0]:e,ht.merge(this,ht.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:rt,!0)),wt.test(r[1])&&ht.isPlainObject(e))for(r in e)ht.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}if((i=rt.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return St.find(t);this.length=1,this[0]=i}return this.context=rt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ht.isFunction(t)?void 0!==n.ready?n.ready(t):t(ht):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ht.makeArray(t,this))}).prototype=ht.fn,St=ht(rt);var Tt=/^(?:parents|prev(?:Until|All))/,At={children:!0,contents:!0,next:!0,prev:!0};ht.fn.extend({has:function(t){var e,n=ht(t,this),r=n.length;return this.filter(function(){for(e=0;e<r;e++)if(ht.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=_t.test(t)||"string"!=typeof t?ht(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ht.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ht.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?ht.inArray(this[0],ht(t)):ht.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ht.uniqueSort(ht.merge(this.get(),ht(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ht.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return mt(t,"parentNode")},parentsUntil:function(t,e,n){return mt(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return mt(t,"nextSibling")},prevAll:function(t){return mt(t,"previousSibling")},nextUntil:function(t,e,n){return mt(t,"nextSibling",n)},prevUntil:function(t,e,n){return mt(t,"previousSibling",n)},siblings:function(t){return bt((t.parentNode||{}).firstChild,t)},children:function(t){return bt(t.firstChild)},contents:function(t){return ht.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ht.merge([],t.childNodes)}},function(t,e){ht.fn[t]=function(n,r){var i=ht.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ht.filter(r,i)),this.length>1&&(At[t]||(i=ht.uniqueSort(i)),Tt.test(t)&&(i=i.reverse())),this.pushStack(i)}});var Ct=/\S+/g;ht.Callbacks=function(t){t="string"==typeof t?o(t):ht.extend({},t);var e,n,r,i,s=[],a=[],u=-1,c=function(){for(i=t.once,r=e=!0;a.length;u=-1)for(n=a.shift();++u<s.length;)!1===s[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},l={add:function(){return s&&(n&&!e&&(u=s.length-1,a.push(n)),function e(n){ht.each(n,function(n,r){ht.isFunction(r)?t.unique&&l.has(r)||s.push(r):r&&r.length&&"string"!==ht.type(r)&&e(r)})}(arguments),n&&!e&&c()),this},remove:function(){return ht.each(arguments,function(t,e){for(var n;(n=ht.inArray(e,s,n))>-1;)s.splice(n,1),n<=u&&u--}),this},has:function(t){return t?ht.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=!0,n||l.disable(),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],a.push(n),e||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},ht.extend({Deferred:function(t){var e=[["resolve","done",ht.Callbacks("once memory"),"resolved"],["reject","fail",ht.Callbacks("once memory"),"rejected"],["notify","progress",ht.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ht.Deferred(function(n){ht.each(e,function(e,o){var s=ht.isFunction(t[e])&&t[e];i[o[1]](function(){var t=s&&s.apply(this,arguments);t&&ht.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ht.extend(t,r):r}},i={};return r.pipe=r.then,ht.each(e,function(t,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=it.call(arguments),s=o.length,a=1!==s||t&&ht.isFunction(t.promise)?s:0,u=1===a?t:ht.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?it.call(arguments):i,r===e?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(e=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&ht.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,e)).done(c(i,r,o)).fail(u.reject):--a;return a||u.resolveWith(r,o),u.promise()}});var Ot;ht.fn.ready=function(t){return ht.ready.promise().done(t),this},ht.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ht.readyWait++:ht.ready(!0)},ready:function(t){(!0===t?--ht.readyWait:ht.isReady)||(ht.isReady=!0,!0!==t&&--ht.readyWait>0||(Ot.resolveWith(rt,[ht]),ht.fn.triggerHandler&&(ht(rt).triggerHandler("ready"),ht(rt).off("ready"))))}}),ht.ready.promise=function(e){if(!Ot)if(Ot=ht.Deferred(),"complete"===rt.readyState||"loading"!==rt.readyState&&!rt.documentElement.doScroll)t.setTimeout(ht.ready);else if(rt.addEventListener)rt.addEventListener("DOMContentLoaded",a),t.addEventListener("load",a);else{rt.attachEvent("onreadystatechange",a),t.attachEvent("onload",a);var n=!1;try{n=null==t.frameElement&&rt.documentElement}catch(t){}n&&n.doScroll&&function e(){if(!ht.isReady){try{n.doScroll("left")}catch(n){return t.setTimeout(e,50)}s(),ht.ready()}}()}return Ot.promise(e)},ht.ready.promise();var jt;for(jt in ht(ft))break;ft.ownFirst="0"===jt,ft.inlineBlockNeedsLayout=!1,ht(function(){var t,e,n,r;(n=rt.getElementsByTagName("body")[0])&&n.style&&(e=rt.createElement("div"),r=rt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ft.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=rt.createElement("div");ft.deleteExpando=!0;try{delete t.test}catch(t){ft.deleteExpando=!1}t=null}();var Et=function(t){var e=ht.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)},Pt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Nt=/([A-Z])/g;ht.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?ht.cache[t[ht.expando]]:t[ht.expando])&&!c(t)},data:function(t,e,n){return l(t,e,n)},removeData:function(t,e){return f(t,e)},_data:function(t,e,n){return l(t,e,n,!0)},_removeData:function(t,e){return f(t,e,!0)}}),ht.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=ht.data(o),1===o.nodeType&&!ht._data(o,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=ht.camelCase(r.slice(5)),u(o,r,i[r])));ht._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each(function(){ht.data(this,t)}):arguments.length>1?this.each(function(){ht.data(this,t,e)}):o?u(o,t,ht.data(o,t)):void 0},removeData:function(t){return this.each(function(){ht.removeData(this,t)})}}),ht.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=ht._data(t,e),n&&(!r||ht.isArray(n)?r=ht._data(t,e,ht.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=ht.queue(t,e),r=n.length,i=n.shift(),o=ht._queueHooks(t,e),s=function(){ht.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ht._data(t,n)||ht._data(t,n,{empty:ht.Callbacks("once memory").add(function(){ht._removeData(t,e+"queue"),ht._removeData(t,n)})})}}),ht.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ht.queue(this[0],t):void 0===e?this:this.each(function(){var n=ht.queue(this,t,e);ht._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ht.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ht.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=ht.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=ht._data(o[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}}),function(){var t;ft.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,r;return(n=rt.getElementsByTagName("body")[0])&&n.style?(e=rt.createElement("div"),r=rt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(rt.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(r),t):void 0}}();var Rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Mt=new RegExp("^(?:([+-])=|)("+Rt+")([a-z%]*)$","i"),Lt=["Top","Right","Bottom","Left"],It=function(t,e){return t=e||t,"none"===ht.css(t,"display")||!ht.contains(t.ownerDocument,t)},Dt=function(t,e,n,r,i,o,s){var a=0,u=t.length,c=null==n;if("object"===ht.type(n)){i=!0;for(a in n)Dt(t,e,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,ht.isFunction(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(ht(t),n)})),e))for(;a<u;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:c?e.call(t):u?e(t[0],n):o},qt=/^(?:checkbox|radio)$/i,Bt=/<([\w:-]+)/,Ht=/^$|\/(?:java|ecma)script/i,$t=/^\s+/,Ut="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var t=rt.createElement("div"),e=rt.createDocumentFragment(),n=rt.createElement("input");t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ft.leadingWhitespace=3===t.firstChild.nodeType,ft.tbody=!t.getElementsByTagName("tbody").length,ft.htmlSerialize=!!t.getElementsByTagName("link").length,ft.html5Clone="<:nav></:nav>"!==rt.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,e.appendChild(n),ft.appendChecked=n.checked,t.innerHTML="<textarea>x</textarea>",ft.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),n=rt.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ft.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ft.noCloneEvent=!!t.addEventListener,t[ht.expando]=1,ft.attributes=!t.getAttribute(ht.expando)}();var Wt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ft.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Wt.optgroup=Wt.option,Wt.tbody=Wt.tfoot=Wt.colgroup=Wt.caption=Wt.thead,Wt.th=Wt.td;var Ft=/<|&#?\w+;/,zt=/<tbody/i;!function(){var e,n,r=rt.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(ft[e]=n in t)||(r.setAttribute(n,"t"),ft[e]=!1===r.attributes[n].expando);r=null}();var Vt=/^(?:input|select|textarea)$/i,Jt=/^key/,Gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yt=/^(?:focusinfocus|focusoutblur)$/,Xt=/^([^.]*)(?:\.(.+)|)/;ht.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,c,l,f,h,p,d,y,v=ht._data(t);if(v){for(n.handler&&(u=n,n=u.handler,i=u.selector),n.guid||(n.guid=ht.guid++),(s=v.events)||(s=v.events={}),(l=v.handle)||(l=v.handle=function(t){return void 0===ht||t&&ht.event.triggered===t.type?void 0:ht.event.dispatch.apply(l.elem,arguments)},l.elem=t),e=(e||"").match(Ct)||[""],a=e.length;a--;)o=Xt.exec(e[a])||[],p=y=o[1],d=(o[2]||"").split(".").sort(),p&&(c=ht.event.special[p]||{},p=(i?c.delegateType:c.bindType)||p,c=ht.event.special[p]||{},f=ht.extend({type:p,origType:y,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ht.expr.match.needsContext.test(i),namespace:d.join(".")},u),(h=s[p])||(h=s[p]=[],h.delegateCount=0,c.setup&&!1!==c.setup.call(t,r,d,l)||(t.addEventListener?t.addEventListener(p,l,!1):t.attachEvent&&t.attachEvent("on"+p,l))),c.add&&(c.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,f):h.push(f),ht.event.global[p]=!0);t=null}},remove:function(t,e,n,r,i){var o,s,a,u,c,l,f,h,p,d,y,v=ht.hasData(t)&&ht._data(t);if(v&&(l=v.events)){for(e=(e||"").match(Ct)||[""],c=e.length;c--;)if(a=Xt.exec(e[c])||[],p=y=a[1],d=(a[2]||"").split(".").sort(),p){for(f=ht.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=h.length;o--;)s=h[o],!i&&y!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||r&&r!==s.selector&&("**"!==r||!s.selector)||(h.splice(o,1),s.selector&&h.delegateCount--,f.remove&&f.remove.call(t,s));u&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,v.handle)||ht.removeEvent(t,p,v.handle),delete l[p])}else for(p in l)ht.event.remove(t,p+e[c],n,r,!0);ht.isEmptyObject(l)&&(delete v.handle,ht._removeData(t,"events"))}},trigger:function(e,n,r,i){var o,s,a,u,c,l,f,h=[r||rt],p=lt.call(e,"type")?e.type:e,d=lt.call(e,"namespace")?e.namespace.split("."):[];if(a=l=r=r||rt,3!==r.nodeType&&8!==r.nodeType&&!Yt.test(p+ht.event.triggered)&&(p.indexOf(".")>-1&&(d=p.split("."),p=d.shift(),d.sort()),s=p.indexOf(":")<0&&"on"+p,e=e[ht.expando]?e:new ht.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:ht.makeArray(n,[e]),c=ht.event.special[p]||{},i||!c.trigger||!1!==c.trigger.apply(r,n))){if(!i&&!c.noBubble&&!ht.isWindow(r)){for(u=c.delegateType||p,Yt.test(u+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),l=a;l===(r.ownerDocument||rt)&&h.push(l.defaultView||l.parentWindow||t)}for(f=0;(a=h[f++])&&!e.isPropagationStopped();)e.type=f>1?u:c.bindType||p,o=(ht._data(a,"events")||{})[e.type]&&ht._data(a,"handle"),o&&o.apply(a,n),(o=s&&a[s])&&o.apply&&Et(a)&&(e.result=o.apply(a,n),!1===e.result&&e.preventDefault());if(e.type=p,!i&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(h.pop(),n))&&Et(r)&&s&&r[p]&&!ht.isWindow(r)){l=r[s],l&&(r[s]=null),ht.event.triggered=p;try{r[p]()}catch(t){}ht.event.triggered=void 0,l&&(r[s]=l)}return e.result}},dispatch:function(t){t=ht.event.fix(t)
  ;var e,n,r,i,o,s=[],a=it.call(arguments),u=(ht._data(this,"events")||{})[t.type]||[],c=ht.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=ht.event.handlers.call(this,t,u),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(r=((ht.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,s=[],a=e.delegateCount,u=t.target;if(a&&u.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(r=[],n=0;n<a;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?ht(i,this).index(u)>-1:ht.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[ht.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Gt.test(i)?this.mouseHooks:Jt.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new ht.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=o.srcElement||rt),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(r=t.target.ownerDocument||rt,i=r.documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==_()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===_()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(ht.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return ht.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n){var r=ht.extend(new ht.Event,n,{type:t,isSimulated:!0});ht.event.trigger(r,null,e),r.isDefaultPrevented()&&n.preventDefault()}},ht.removeEvent=rt.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var r="on"+e;t.detachEvent&&(void 0===t[r]&&(t[r]=null),t.detachEvent(r,n))},ht.Event=function(t,e){if(!(this instanceof ht.Event))return new ht.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?m:b):this.type=t,e&&ht.extend(this,e),this.timeStamp=t&&t.timeStamp||ht.now(),this[ht.expando]=!0},ht.Event.prototype={constructor:ht.Event,isDefaultPrevented:b,isPropagationStopped:b,isImmediatePropagationStopped:b,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=m,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=m,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=m,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},ht.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ht.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||ht.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ft.submit||(ht.event.special.submit={setup:function(){if(ht.nodeName(this,"form"))return!1;ht.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=ht.nodeName(e,"input")||ht.nodeName(e,"button")?ht.prop(e,"form"):void 0;n&&!ht._data(n,"submit")&&(ht.event.add(n,"submit._submit",function(t){t._submitBubble=!0}),ht._data(n,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&ht.event.simulate("submit",this.parentNode,t))},teardown:function(){if(ht.nodeName(this,"form"))return!1;ht.event.remove(this,"._submit")}}),ft.change||(ht.event.special.change={setup:function(){if(Vt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(ht.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),ht.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),ht.event.simulate("change",this,t)})),!1;ht.event.add(this,"beforeactivate._change",function(t){var e=t.target;Vt.test(e.nodeName)&&!ht._data(e,"change")&&(ht.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ht.event.simulate("change",this.parentNode,t)}),ht._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return ht.event.remove(this,"._change"),!Vt.test(this.nodeName)}}),ft.focusin||ht.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ht.event.simulate(e,t.target,ht.event.fix(t))};ht.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=ht._data(r,e);i||r.addEventListener(t,n,!0),ht._data(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ht._data(r,e)-1;i?ht._data(r,e,i):(r.removeEventListener(t,n,!0),ht._removeData(r,e))}}}),ht.fn.extend({on:function(t,e,n,r){return w(this,t,e,n,r)},one:function(t,e,n,r){return w(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ht(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=b),this.each(function(){ht.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){ht.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ht.event.trigger(t,e,n,!0)}});var Kt=/ jQuery\d+="(?:null|\d+)"/g,Qt=new RegExp("<(?:"+Ut+")[\\s/>]","i"),Zt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,te=/<script|<style|<link/i,ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ne=/^true\/(.*)/,re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ie=p(rt),oe=ie.appendChild(rt.createElement("div"));ht.extend({htmlPrefilter:function(t){return t.replace(Zt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,s,a,u=ht.contains(t.ownerDocument,t);if(ft.html5Clone||ht.isXMLDoc(t)||!Qt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(oe.innerHTML=t.outerHTML,oe.removeChild(o=oe.firstChild)),!(ft.noCloneEvent&&ft.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ht.isXMLDoc(t)))for(r=d(o),a=d(t),s=0;null!=(i=a[s]);++s)r[s]&&A(i,r[s]);if(e)if(n)for(a=a||d(t),r=r||d(o),s=0;null!=(i=a[s]);s++)T(i,r[s]);else T(t,o);return r=d(o,"script"),r.length>0&&y(r,!u&&d(t,"script")),r=a=i=null,o},cleanData:function(t,e){for(var n,r,i,o,s=0,a=ht.expando,u=ht.cache,c=ft.attributes,l=ht.event.special;null!=(n=t[s]);s++)if((e||Et(n))&&(i=n[a],o=i&&u[i])){if(o.events)for(r in o.events)l[r]?ht.event.remove(n,r):ht.removeEvent(n,r,o.handle);u[i]&&(delete u[i],c||void 0===n.removeAttribute?n[a]=void 0:n.removeAttribute(a),nt.push(i))}}}),ht.fn.extend({domManip:C,detach:function(t){return O(this,t,!0)},remove:function(t){return O(this,t)},text:function(t){return Dt(this,function(t){return void 0===t?ht.text(this):this.empty().append((this[0]&&this[0].ownerDocument||rt).createTextNode(t))},null,t,arguments.length)},append:function(){return C(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){x(this,t).appendChild(t)}})},prepend:function(){return C(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=x(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return C(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return C(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ht.cleanData(d(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ht.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ht.clone(this,t,e)})},html:function(t){return Dt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Kt,""):void 0;if("string"==typeof t&&!te.test(t)&&(ft.htmlSerialize||!Qt.test(t))&&(ft.leadingWhitespace||!$t.test(t))&&!Wt[(Bt.exec(t)||["",""])[1].toLowerCase()]){t=ht.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(ht.cleanData(d(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return C(this,arguments,function(e){var n=this.parentNode;ht.inArray(this,t)<0&&(ht.cleanData(d(this)),n&&n.replaceChild(e,this))},t)}}),ht.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ht.fn[t]=function(t){for(var n,r=0,i=[],o=ht(t),s=o.length-1;r<=s;r++)n=r===s?this:this.clone(!0),ht(o[r])[e](n),st.apply(i,n.get());return this.pushStack(i)}});var se,ae={HTML:"block",BODY:"block"},ue=/^margin/,ce=new RegExp("^("+Rt+")(?!px)[a-z%]+$","i"),le=function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=s[o];return i},fe=rt.documentElement;!function(){function e(){var e,l,f=rt.documentElement;f.appendChild(u),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=i=a=!1,r=s=!0,t.getComputedStyle&&(l=t.getComputedStyle(c),n="1%"!==(l||{}).top,a="2px"===(l||{}).marginLeft,i="4px"===(l||{width:"4px"}).width,c.style.marginRight="50%",r="4px"===(l||{marginRight:"4px"}).marginRight,e=c.appendChild(rt.createElement("div")),e.style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",s=!parseFloat((t.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",o=0===c.getClientRects().length,o&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",e=c.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",(o=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",o=0===e[0].offsetHeight)),f.removeChild(u)}var n,r,i,o,s,a,u=rt.createElement("div"),c=rt.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",ft.opacity="0.5"===c.style.opacity,ft.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ft.clearCloneStyle="content-box"===c.style.backgroundClip,u=rt.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",u.appendChild(c),ft.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,ht.extend(ft,{reliableHiddenOffsets:function(){return null==n&&e(),o},boxSizingReliable:function(){return null==n&&e(),i},pixelMarginRight:function(){return null==n&&e(),r},pixelPosition:function(){return null==n&&e(),n},reliableMarginRight:function(){return null==n&&e(),s},reliableMarginLeft:function(){return null==n&&e(),a}}))}();var he,pe,de=/^(top|right|bottom|left)$/;t.getComputedStyle?(he=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},pe=function(t,e,n){var r,i,o,s,a=t.style;return n=n||he(t),s=n?n.getPropertyValue(e)||n[e]:void 0,""!==s&&void 0!==s||ht.contains(t.ownerDocument,t)||(s=ht.style(t,e)),n&&!ft.pixelMarginRight()&&ce.test(s)&&ue.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o),void 0===s?s:s+""}):fe.currentStyle&&(he=function(t){return t.currentStyle},pe=function(t,e,n){var r,i,o,s,a=t.style;return n=n||he(t),s=n?n[e]:void 0,null==s&&a&&a[e]&&(s=a[e]),ce.test(s)&&!de.test(e)&&(r=a.left,i=t.runtimeStyle,o=i&&i.left,o&&(i.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=r,o&&(i.left=o)),void 0===s?s:s+""||"auto"});var ye=/alpha\([^)]*\)/i,ve=/opacity\s*=\s*([^)]*)/i,ge=/^(none|table(?!-c[ea]).+)/,me=new RegExp("^("+Rt+")(.*)$","i"),be={position:"absolute",visibility:"hidden",display:"block"},_e={letterSpacing:"0",fontWeight:"400"},we=["Webkit","O","Moz","ms"],xe=rt.createElement("div").style;ht.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=pe(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:ft.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=ht.camelCase(e),u=t.style;if(e=ht.cssProps[a]||(ht.cssProps[a]=N(a)||a),s=ht.cssHooks[e]||ht.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:u[e];if(o=typeof n,"string"===o&&(i=Mt.exec(n))&&i[1]&&(n=h(t,e,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ht.cssNumber[a]?"":"px")),ft.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),!(s&&"set"in s&&void 0===(n=s.set(t,n,r)))))try{u[e]=n}catch(t){}}},css:function(t,e,n,r){var i,o,s,a=ht.camelCase(e);return e=ht.cssProps[a]||(ht.cssProps[a]=N(a)||a),s=ht.cssHooks[e]||ht.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=pe(t,e,r)),"normal"===o&&e in _e&&(o=_e[e]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),ht.each(["height","width"],function(t,e){ht.cssHooks[e]={get:function(t,n,r){if(n)return ge.test(ht.css(t,"display"))&&0===t.offsetWidth?le(t,be,function(){return I(t,e,r)}):I(t,e,r)},set:function(t,n,r){var i=r&&he(t);return M(t,n,r?L(t,e,r,ft.boxSizing&&"border-box"===ht.css(t,"boxSizing",!1,i),i):0)}}}),ft.opacity||(ht.cssHooks.opacity={get:function(t,e){return ve.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,r=t.currentStyle,i=ht.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ht.trim(o.replace(ye,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=ye.test(o)?o.replace(ye,i):o+" "+i)}}),ht.cssHooks.marginRight=P(ft.reliableMarginRight,function(t,e){if(e)return le(t,{display:"inline-block"},pe,[t,"marginRight"])}),ht.cssHooks.marginLeft=P(ft.reliableMarginLeft,function(t,e){if(e)return(parseFloat(pe(t,"marginLeft"))||(ht.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-le(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),ht.each({margin:"",padding:"",border:"Width"},function(t,e){ht.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Lt[r]+e]=o[r]||o[r-2]||o[0];return i}},ue.test(t)||(ht.cssHooks[t+e].set=M)}),ht.fn.extend({css:function(t,e){return Dt(this,function(t,e,n){var r,i,o={},s=0;if(ht.isArray(e)){for(r=he(t),i=e.length;s<i;s++)o[e[s]]=ht.css(t,e[s],!1,r);return o}return void 0!==n?ht.style(t,e,n):ht.css(t,e)},t,e,arguments.length>1)},show:function(){return R(this,!0)},hide:function(){return R(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){It(this)?ht(this).show():ht(this).hide()})}}),ht.Tween=D,D.prototype={constructor:D,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||ht.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ht.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.options.duration?this.pos=e=ht.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):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.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=ht.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ht.fx.step[t.prop]?ht.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ht.cssProps[t.prop]]&&!ht.cssHooks[t.prop]?t.elem[t.prop]=t.now:ht.style(t.elem,t.prop,t.now+t.unit)}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ht.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ht.fx=D.prototype.init,ht.fx.step={};var Se,ke,Te=/^(?:toggle|show|hide)$/,Ae=/queueHooks$/;ht.Animation=ht.extend(W,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return h(n.elem,t,Mt.exec(e),n),n}]},tweener:function(t,e){ht.isFunction(t)?(e=t,t=["*"]):t=t.match(Ct);for(var n,r=0,i=t.length;r<i;r++)n=t[r],W.tweeners[n]=W.tweeners[n]||[],W.tweeners[n].unshift(e)},prefilters:[$],prefilter:function(t,e){e?W.prefilters.unshift(t):W.prefilters.push(t)}}),ht.speed=function(t,e,n){var r=t&&"object"==typeof t?ht.extend({},t):{complete:n||!n&&e||ht.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ht.isFunction(e)&&e};return r.duration=ht.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ht.fx.speeds?ht.fx.speeds[r.duration]:ht.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){ht.isFunction(r.old)&&r.old.call(this),r.queue&&ht.dequeue(this,r.queue)},r},ht.fn.extend({fadeTo:function(t,e,n,r){return this.filter(It).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=ht.isEmptyObject(t),o=ht.speed(e,n,r),s=function(){var e=W(this,ht.extend({},t),o);(i||ht._data(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=ht.timers,s=ht._data(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&Ae.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||ht.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=ht._data(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=ht.timers,s=r?r.length:0;for(n.finish=!0,ht.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),ht.each(["toggle","show","hide"],function(t,e){var n=ht.fn[e];ht.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(B(e,!0),t,r,i)}}),ht.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ht.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),ht.timers=[],ht.fx.tick=function(){var t,e=ht.timers,n=0;for(Se=ht.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||ht.fx.stop(),Se=void 0},ht.fx.timer=function(t){ht.timers.push(t),t()?ht.fx.start():ht.timers.pop()},ht.fx.interval=13,ht.fx.start=function(){ke||(ke=t.setInterval(ht.fx.tick,ht.fx.interval))},ht.fx.stop=function(){t.clearInterval(ke),ke=null},ht.fx.speeds={slow:600,fast:200,_default:400},ht.fn.delay=function(e,n){return e=ht.fx?ht.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,r){var i=t.setTimeout(n,e);r.stop=function(){t.clearTimeout(i)}})},function(){var t,e=rt.createElement("input"),n=rt.createElement("div"),r=rt.createElement("select"),i=r.appendChild(rt.createElement("option"));n=rt.createElement("div"),n.setAttribute("className","t"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",t=n.getElementsByTagName("a")[0],e.setAttribute("type","checkbox"),n.appendChild(e),t=n.getElementsByTagName("a")[0],t.style.cssText="top:1px",ft.getSetAttribute="t"!==n.className,ft.style=/top/.test(t.getAttribute("style")),ft.hrefNormalized="/a"===t.getAttribute("href"),ft.checkOn=!!e.value,ft.optSelected=i.selected,ft.enctype=!!rt.createElement("form").enctype,r.disabled=!0,ft.optDisabled=!i.disabled,e=rt.createElement("input"),e.setAttribute("value",""),ft.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ft.radioValue="t"===e.value}();var Ce=/\r/g,Oe=/[\x20\t\r\n\f]+/g;ht.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=ht.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,ht(this).val()):t,null==i?i="":"number"==typeof i?i+="":ht.isArray(i)&&(i=ht.map(i,function(t){return null==t?"":t+""})),(e=ht.valHooks[this.type]||ht.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return(e=ht.valHooks[i.type]||ht.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Ce,""):null==n?"":n)}}}),ht.extend({valHooks:{option:{get:function(t){var e=ht.find.attr(t,"value");return null!=e?e:ht.trim(ht.text(t)).replace(Oe," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(n=r[u],(n.selected||u===i)&&(ft.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ht.nodeName(n.parentNode,"optgroup"))){if(e=ht(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=ht.makeArray(e),s=i.length;s--;)if(r=i[s],ht.inArray(ht.valHooks.option.get(r),o)>-1)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),ht.each(["radio","checkbox"],function(){ht.valHooks[this]={set:function(t,e){if(ht.isArray(e))return t.checked=ht.inArray(ht(t).val(),e)>-1}},ft.checkOn||(ht.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var je,Ee,Pe=ht.expr.attrHandle,Ne=/^(?:checked|selected)$/i,Re=ft.getSetAttribute,Me=ft.input;ht.fn.extend({attr:function(t,e){return Dt(this,ht.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ht.removeAttr(this,t)})}}),ht.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?ht.prop(t,e,n):(1===o&&ht.isXMLDoc(t)||(e=e.toLowerCase(),i=ht.attrHooks[e]||(ht.expr.match.bool.test(e)?Ee:je)),void 0!==n?null===n?void ht.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=ht.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!ft.radioValue&&"radio"===e&&ht.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(Ct);if(o&&1===t.nodeType)for(;n=o[i++];)r=ht.propFix[n]||n,ht.expr.match.bool.test(n)?Me&&Re||!Ne.test(n)?t[r]=!1:t[ht.camelCase("default-"+n)]=t[r]=!1:ht.attr(t,n,""),t.removeAttribute(Re?n:r)}}),Ee={set:function(t,e,n){return!1===e?ht.removeAttr(t,n):Me&&Re||!Ne.test(n)?t.setAttribute(!Re&&ht.propFix[n]||n,n):t[ht.camelCase("default-"+n)]=t[n]=!0,n}},ht.each(ht.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Pe[e]||ht.find.attr;Me&&Re||!Ne.test(e)?Pe[e]=function(t,e,r){var i,o;return r||(o=Pe[e],Pe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,Pe[e]=o),i}:Pe[e]=function(t,e,n){if(!n)return t[ht.camelCase("default-"+e)]?e.toLowerCase():null}}),Me&&Re||(ht.attrHooks.value={set:function(t,e,n){if(!ht.nodeName(t,"input"))return je&&je.set(t,e,n);t.defaultValue=e}}),Re||(je={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},Pe.id=Pe.name=Pe.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},ht.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:je.set},ht.attrHooks.contenteditable={set:function(t,e,n){je.set(t,""!==e&&e,n)}},ht.each(["width","height"],function(t,e){ht.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),ft.style||(ht.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Le=/^(?:input|select|textarea|button|object)$/i,Ie=/^(?:a|area)$/i;ht.fn.extend({prop:function(t,e){return Dt(this,ht.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ht.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),ht.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ht.isXMLDoc(t)||(e=ht.propFix[e]||e,i=ht.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=ht.find.attr(t,"tabindex");return e?parseInt(e,10):Le.test(t.nodeName)||Ie.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ft.hrefNormalized||ht.each(["href","src"],function(t,e){ht.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),ft.optSelected||(ht.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ht.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ht.propFix[this.toLowerCase()]=this}),ft.enctype||(ht.propFix.enctype="encoding");var De=/[\t\r\n\f]/g;ht.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,u=0;if(ht.isFunction(t))return this.each(function(e){ht(this).addClass(t.call(this,e,F(this)))});if("string"==typeof t&&t)for(e=t.match(Ct)||[];n=this[u++];)if(i=F(n),r=1===n.nodeType&&(" "+i+" ").replace(De," ")){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=ht.trim(r),i!==a&&ht.attr(n,"class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,u=0;if(ht.isFunction(t))return this.each(function(e){ht(this).removeClass(t.call(this,e,F(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Ct)||[];n=this[u++];)if(i=F(n),r=1===n.nodeType&&(" "+i+" ").replace(De," ")){for(s=0;o=e[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");a=ht.trim(r),i!==a&&ht.attr(n,"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):ht.isFunction(t)?this.each(function(n){ht(this).toggleClass(t.call(this,n,F(this),e),e)}):this.each(function(){var e,r,i,o;if("string"===n)for(r=0,i=ht(this),o=t.match(Ct)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||(e=F(this),e&&ht._data(this,"__className__",e),ht.attr(this,"class",e||!1===t?"":ht._data(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+F(n)+" ").replace(De," ").indexOf(e)>-1)return!0;return!1}}),ht.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ht.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ht.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var qe=t.location,Be=ht.now(),He=/\?/,$e=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ht.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,r=null,i=ht.trim(e+"");return i&&!ht.trim(i.replace($e,function(t,e,i,o){return n&&e&&(r=0),0===r?t:(n=i||e,r+=!o-!i,"")}))?Function("return "+i)():ht.error("Invalid JSON: "+e)},ht.parseXML=function(e){var n,r;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(r=new t.DOMParser,n=r.parseFromString(e,"text/xml")):(n=new t.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(t){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ht.error("Invalid XML: "+e),n};var Ue=/#.*$/,We=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ze=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ve=/^(?:GET|HEAD)$/,Je=/^\/\//,Ge=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ye={},Xe={},Ke="*/".concat("*"),Qe=qe.href,Ze=Ge.exec(Qe.toLowerCase())||[];ht.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qe,type:"GET",isLocal:ze.test(Ze[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ke,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":ht.parseJSON,"text xml":ht.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?J(J(t,ht.ajaxSettings),e):J(ht.ajaxSettings,t)},ajaxPrefilter:z(Ye),ajaxTransport:z(Xe),ajax:function(e,n){function r(e,n,r,i){var o,f,m,b,w,S=n;2!==_&&(_=2,u&&t.clearTimeout(u),l=void 0,a=i||"",x.readyState=e>0?4:0,o=e>=200&&e<300||304===e,r&&(b=G(h,x,r)),b=Y(h,b,x,o),o?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ht.lastModified[s]=w),(w=x.getResponseHeader("etag"))&&(ht.etag[s]=w)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=b.state,f=b.data,m=b.error,o=!m)):(m=S,!e&&S||(S="error",e<0&&(e=0))),x.status=e,x.statusText=(n||S)+"",o?y.resolveWith(p,[f,S,x]):y.rejectWith(p,[x,S,m]),x.statusCode(g),g=void 0,c&&d.trigger(o?"ajaxSuccess":"ajaxError",[x,h,o?f:m]),v.fireWith(p,[x,S]),c&&(d.trigger("ajaxComplete",[x,h]),--ht.active||ht.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{}
  ;var i,o,s,a,u,c,l,f,h=ht.ajaxSetup({},n),p=h.context||h,d=h.context&&(p.nodeType||p.jquery)?ht(p):ht.event,y=ht.Deferred(),v=ht.Callbacks("once memory"),g=h.statusCode||{},m={},b={},_=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!f)for(f={};e=Fe.exec(a);)f[e[1].toLowerCase()]=e[2];e=f[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=b[n]=b[n]||t,m[t]=e),this},overrideMimeType:function(t){return _||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(_<2)for(e in t)g[e]=[g[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return l&&l.abort(e),r(0,e),this}};if(y.promise(x).complete=v.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||Qe)+"").replace(Ue,"").replace(Je,Ze[1]+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ht.trim(h.dataType||"*").toLowerCase().match(Ct)||[""],null==h.crossDomain&&(i=Ge.exec(h.url.toLowerCase()),h.crossDomain=!(!i||i[1]===Ze[1]&&i[2]===Ze[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Ze[3]||("http:"===Ze[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ht.param(h.data,h.traditional)),V(Ye,h,n,x),2===_)return x;c=ht.event&&h.global,c&&0==ht.active++&&ht.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ve.test(h.type),s=h.url,h.hasContent||(h.data&&(s=h.url+=(He.test(s)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=We.test(s)?s.replace(We,"$1_="+Be++):s+(He.test(s)?"&":"?")+"_="+Be++)),h.ifModified&&(ht.lastModified[s]&&x.setRequestHeader("If-Modified-Since",ht.lastModified[s]),ht.etag[s]&&x.setRequestHeader("If-None-Match",ht.etag[s])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ke+"; q=0.01":""):h.accepts["*"]);for(o in h.headers)x.setRequestHeader(o,h.headers[o]);if(h.beforeSend&&(!1===h.beforeSend.call(p,x,h)||2===_))return x.abort();w="abort";for(o in{success:1,error:1,complete:1})x[o](h[o]);if(l=V(Xe,h,n,x)){if(x.readyState=1,c&&d.trigger("ajaxSend",[x,h]),2===_)return x;h.async&&h.timeout>0&&(u=t.setTimeout(function(){x.abort("timeout")},h.timeout));try{_=1,l.send(m,r)}catch(t){if(!(_<2))throw t;r(-1,t)}}else r(-1,"No Transport");return x},getJSON:function(t,e,n){return ht.get(t,e,n,"json")},getScript:function(t,e){return ht.get(t,void 0,e,"script")}}),ht.each(["get","post"],function(t,e){ht[e]=function(t,n,r,i){return ht.isFunction(n)&&(i=i||r,r=n,n=void 0),ht.ajax(ht.extend({url:t,type:e,dataType:i,data:n,success:r},ht.isPlainObject(t)&&t))}}),ht._evalUrl=function(t){return ht.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ht.fn.extend({wrapAll:function(t){if(ht.isFunction(t))return this.each(function(e){ht(this).wrapAll(t.call(this,e))});if(this[0]){var e=ht(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return ht.isFunction(t)?this.each(function(e){ht(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ht(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ht.isFunction(t);return this.each(function(n){ht(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ht.nodeName(this,"body")||ht(this).replaceWith(this.childNodes)}).end()}}),ht.expr.filters.hidden=function(t){return ft.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:K(t)},ht.expr.filters.visible=function(t){return!ht.expr.filters.hidden(t)};var tn=/%20/g,en=/\[\]$/,nn=/\r?\n/g,rn=/^(?:submit|button|image|reset|file)$/i,on=/^(?:input|select|textarea|keygen)/i;ht.param=function(t,e){var n,r=[],i=function(t,e){e=ht.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ht.ajaxSettings&&ht.ajaxSettings.traditional),ht.isArray(t)||t.jquery&&!ht.isPlainObject(t))ht.each(t,function(){i(this.name,this.value)});else for(n in t)Q(n,t[n],e,i);return r.join("&").replace(tn,"+")},ht.fn.extend({serialize:function(){return ht.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ht.prop(this,"elements");return t?ht.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ht(this).is(":disabled")&&on.test(this.nodeName)&&!rn.test(t)&&(this.checked||!qt.test(t))}).map(function(t,e){var n=ht(this).val();return null==n?null:ht.isArray(n)?ht.map(n,function(t){return{name:e.name,value:t.replace(nn,"\r\n")}}):{name:e.name,value:n.replace(nn,"\r\n")}}).get()}}),ht.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?tt():rt.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||tt()}:Z;var sn=0,an={},un=ht.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in an)an[t](void 0,!0)}),ft.cors=!!un&&"withCredentials"in un,un=ft.ajax=!!un,un&&ht.ajaxTransport(function(e){if(!e.crossDomain||ft.cors){var n;return{send:function(r,i){var o,s=e.xhr(),a=++sn;if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&s.setRequestHeader(o,r[o]+"");s.send(e.hasContent&&e.data||null),n=function(t,r){var o,u,c;if(n&&(r||4===s.readyState))if(delete an[a],n=void 0,s.onreadystatechange=ht.noop,r)4!==s.readyState&&s.abort();else{c={},o=s.status,"string"==typeof s.responseText&&(c.text=s.responseText);try{u=s.statusText}catch(t){u=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=c.text?200:404}c&&i(o,u,c,s.getAllResponseHeaders())},e.async?4===s.readyState?t.setTimeout(n):s.onreadystatechange=an[a]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),ht.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 ht.globalEval(t),t}}}),ht.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ht.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=rt.head||ht("head")[0]||rt.documentElement;return{send:function(r,i){e=rt.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var cn=[],ln=/(=)\?(?=&|$)|\?\?/;ht.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=cn.pop()||ht.expando+"_"+Be++;return this[t]=!0,t}}),ht.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,s,a=!1!==e.jsonp&&(ln.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ln.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ht.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(ln,"$1"+i):!1!==e.jsonp&&(e.url+=(He.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||ht.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){s=arguments},r.always(function(){void 0===o?ht(t).removeProp(i):t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,cn.push(i)),s&&ht.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),ht.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||rt;var r=wt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=g([t],e,i),i&&i.length&&ht(i).remove(),ht.merge([],r.childNodes))};var fn=ht.fn.load;ht.fn.load=function(t,e,n){if("string"!=typeof t&&fn)return fn.apply(this,arguments);var r,i,o,s=this,a=t.indexOf(" ");return a>-1&&(r=ht.trim(t.slice(a,t.length)),t=t.slice(0,a)),ht.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&ht.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?ht("<div>").append(ht.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},ht.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ht.fn[e]=function(t){return this.on(e,t)}}),ht.expr.filters.animated=function(t){return ht.grep(ht.timers,function(e){return t===e.elem}).length},ht.offset={setOffset:function(t,e,n){var r,i,o,s,a,u,c,l=ht.css(t,"position"),f=ht(t),h={};"static"===l&&(t.style.position="relative"),a=f.offset(),o=ht.css(t,"top"),u=ht.css(t,"left"),c=("absolute"===l||"fixed"===l)&&ht.inArray("auto",[o,u])>-1,c?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),ht.isFunction(e)&&(e=e.call(t,n,ht.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+i),"using"in e?e.using.call(t,h):f.css(h)}},ht.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ht.offset.setOffset(this,t,e)});var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return e=o.documentElement,ht.contains(e,i)?(void 0!==i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=et(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===ht.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ht.nodeName(t[0],"html")||(n=t.offset()),n.top+=ht.css(t[0],"borderTopWidth",!0),n.left+=ht.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ht.css(r,"marginTop",!0),left:e.left-n.left-ht.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!ht.nodeName(t,"html")&&"static"===ht.css(t,"position");)t=t.offsetParent;return t||fe})}}),ht.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);ht.fn[t]=function(r){return Dt(this,function(t,r,i){var o=et(t);if(void 0===i)return o?e in o?o[e]:o.document.documentElement[r]:t[r];o?o.scrollTo(n?ht(o).scrollLeft():i,n?i:ht(o).scrollTop()):t[r]=i},t,r,arguments.length,null)}}),ht.each(["top","left"],function(t,e){ht.cssHooks[e]=P(ft.pixelPosition,function(t,n){if(n)return n=pe(t,e),ce.test(n)?ht(t).position()[e]+"px":n})}),ht.each({Height:"height",Width:"width"},function(t,e){ht.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){ht.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===i?"margin":"border");return Dt(this,function(e,n,r){var i;return ht.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?ht.css(e,n,s):ht.style(e,n,r,s)},e,o?r:void 0,o,null)}})}),ht.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,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),ht.fn.size=function(){return this.length},ht.fn.andSelf=ht.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ht});var hn=t.jQuery,pn=t.$;return ht.noConflict=function(e){return t.$===ht&&(t.$=pn),e&&t.jQuery===ht&&(t.jQuery=hn),ht},e||(t.jQuery=t.$=ht),ht})},{}],51:[function(t,e,n){"use strict";var r=t("@most/prelude");n.complete=r.curry2(function(t,e){return e.complete(t)})},{"@most/prelude":3}],52:[function(t,e,n){"use strict";var r=t("@most/prelude");n.error=r.curry2(function(t,e){return e.error(t)})},{"@most/prelude":3}],53:[function(t,e,n){"use strict";var r=t("@most/prelude"),i=t("../sources");n.hold=r.curry2(function(t,e){return new e.constructor(new i.HoldSubjectSource(e.source,t))})},{"../sources":58,"@most/prelude":3}],54:[function(t,e,n){"use strict";function r(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}r(t("./next")),r(t("./error")),r(t("./complete")),r(t("./hold"))},{"./complete":51,"./error":52,"./hold":53,"./next":55}],55:[function(t,e,n){"use strict";var r=t("@most/prelude");n.next=r.curry2(function(t,e){return e.next(t)})},{"@most/prelude":3}],56:[function(t,e,n){"use strict";function r(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}r(t("./sources")),r(t("./subjects")),r(t("./combinators"))},{"./combinators":54,"./sources":58,"./subjects":60}],57:[function(t,e,n){"use strict";function r(t,e){for(var n=t.length,r=0;r<n;++r)e.event(s.defaultScheduler.now(),t[r])}function i(t,e,n){return e.length===n?u.append(t,u.drop(1,e)):u.append(t,e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("most"),a=t("@most/multicast"),u=t("@most/prelude"),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.has=!1,r.buffer=[],r.bufferSize=n,r}return o(e,t),e.prototype.add=function(e){return this.has&&r(this.buffer,e),t.prototype.add.call(this,e)},e.prototype.event=function(e,n){return this.has=!0,this.buffer=i(n,this.buffer,this.bufferSize),t.prototype.event.call(this,e,n)},e}(a.MulticastSource);n.HoldSubjectSource=c,n.dropAndAppend=i},{"@most/multicast":2,"@most/prelude":3,most:98}],58:[function(t,e,n){"use strict";!function(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}(t("./HoldSubjectSource"))},{"./HoldSubjectSource":57}],59:[function(t,e,n){"use strict";function r(){return i(s.never())}function i(t){return new u(new a.MulticastSource(t.source))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("most"),a=t("@most/multicast");n.async=r,n.asAsync=i;var u=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.next=function(t){return s.defaultScheduler.asap(s.PropagateTask.event(t,this.source)),this},e.prototype.error=function(t){return s.defaultScheduler.asap(s.PropagateTask.error(t,this.source)),this},e.prototype.complete=function(t){return s.defaultScheduler.asap(s.PropagateTask.end(t,this.source)),this},e}(s.Stream);n.AsyncSubject=u},{"@most/multicast":2,most:98}],60:[function(t,e,n){"use strict";function r(t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e])}r(t("./async")),r(t("./sync"))},{"./async":59,"./sync":61}],61:[function(t,e,n){"use strict";function r(){return i(s.never())}function i(t){return new u(new a.MulticastSource(t.source))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("most"),a=t("@most/multicast");n.sync=r,n.asSync=i;var u=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.next=function(t){return this.source.event(s.defaultScheduler.now(),t),this},e.prototype.error=function(t){return this.source.error(s.defaultScheduler.now(),t),this},e.prototype.complete=function(t){return this.source.end(s.defaultScheduler.now(),t),this},e}(s.Stream);n.SyncSubject=u},{"@most/multicast":2,most:98}],62:[function(t,e,n){"use strict";function r(){this.head=null,this.length=0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.add=function(t){null!==this.head&&(this.head.prev=t,t.next=this.head),this.head=t,++this.length},r.prototype.remove=function(t){--this.length,t===this.head&&(this.head=this.head.next),null!==t.next&&(t.next.prev=t.prev,t.next=null),null!==t.prev&&(t.prev.next=t.next,t.prev=null)},r.prototype.isEmpty=function(){return 0===this.length},r.prototype.dispose=function(){if(this.isEmpty())return Promise.resolve();var t=[],e=this.head;for(this.head=null,this.length=0;null!==e;)t.push(e.dispose()),e=e.next;return Promise.all(t)}},{}],63:[function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}Object.defineProperty(n,"__esModule",{value:!0}),n.isPromise=r},{}],64:[function(t,e,n){"use strict";function r(t){this._capacity=t||32,this._length=0,this._head=0}function i(t,e,n,r,i){for(var o=0;o<i;++o)n[o+r]=t[o+e],t[o+e]=void 0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.push=function(t){var e=this._length;this._checkCapacity(e+1),this[this._head+e&this._capacity-1]=t,this._length=e+1},r.prototype.shift=function(){var t=this._head,e=this[t];return this[t]=void 0,this._head=t+1&this._capacity-1,this._length--,e},r.prototype.isEmpty=function(){return 0===this._length},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(t){this._capacity<t&&this._ensureCapacity(this._capacity<<1)},r.prototype._ensureCapacity=function(t){var e=this._capacity;this._capacity=t;var n=this._head+this._length;n>e&&i(this,0,this,e,n&e-1)}},{}],65:[function(t,e,n){"use strict";function r(t){this.source=t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.run=function(t,e){return this.source.run(t,e)}},{}],66:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return new f.default(new o(t,e,n.source))}function o(t,e,n){this.source=n,this.f=t,this.value=e}function s(t,e,n){this.f=t,this.value=e,this.sink=n}function a(t,e,n){return(0,d.withDefaultScheduler)(new u(t,e,n.source))}function u(t,e,n){this.source=n,this.f=t,this.value=e}function c(t,e,n){this.f=t,this.value=e,this.sink=n}Object.defineProperty(n,"__esModule",{value:!0}),n.scan=i,n.reduce=a;var l=t("../Stream"),f=r(l),h=t("../sink/Pipe"),p=r(h),d=t("../runSource"),y=t("../disposable/dispose"),v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(y),g=t("../scheduler/PropagateTask"),m=r(g);o.prototype.run=function(t,e){var n=e.asap(m.default.event(this.value,t)),r=this.source.run(new s(this.f,this.value,t),e);return v.all([n,r])},s.prototype.event=function(t,e){var n=this.f;this.value=n(this.value,e),this.sink.event(t,this.value)},s.prototype.error=p.default.prototype.error,s.prototype.end=p.default.prototype.end,u.prototype.run=function(t,e){return this.source.run(new c(this.f,this.value,t),e)},c.prototype.event=function(t,e){var n=this.f;this.value=n(this.value,e),this.sink.event(t,this.value)},c.prototype.error=p.default.prototype.error,c.prototype.end=function(t){this.sink.end(t,this.value)}},{"../Stream":65,"../disposable/dispose":93,"../runSource":104,"../scheduler/PropagateTask":106,"../sink/Pipe":113}],67:[function(t,e,n){"use strict";function r(t,e){return(0,i.combine)(o.apply,t,e)}Object.defineProperty(n,"__esModule",{value:!0}),n.ap=r;var i=t("./combine"),o=t("@most/prelude")},{"./combine":69,"@most/prelude":3}],68:[function(t,e,n){"use strict";function r(t,e){return i((0,o.of)(t),e)}function i(t,e){return(0,s.continueWith)(function(){return e},t)}Object.defineProperty(n,"__esModule",{value:!0}),n.cons=r,n.concat=i;var o=t("../source/core"),s=t("./continueWith")},{"../source/core":117,"./continueWith":71}],69:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return s(t,O(arguments))}function s(t,e){var n=e.length;return 0===n?v.empty():1===n?d.map(t,e[0]):new h.default(a(t,e))}function a(t,e){return new c(t,C(u,e))}function u(t){return t.source}function c(t,e){this.f=t,this.sources=e}function l(t,e,n,r){var i=this;this.sink=n,this.disposables=t,this.sinks=e,this.f=r;var o=e.length;this.awaiting=o,this.values=new Array(o),this.hasValue=new Array(o);for(var s=0;s<o;++s)i.hasValue[s]=!1;this.activeCount=e.length}Object.defineProperty(n,"__esModule",{value:!0}),n.combine=o,n.combineArray=s;var f=t("../Stream"),h=i(f),p=t("./transform"),d=r(p),y=t("../source/core"),v=r(y),g=t("../sink/Pipe"),m=i(g),b=t("../sink/IndexSink"),_=i(b),w=t("../disposable/dispose"),x=r(w),S=t("@most/prelude"),k=r(S),T=t("../invoke"),A=i(T),C=k.map,O=k.tail;c.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i),s=new Array(i),a=new l(o,s,t,this.f),u=0;u<i;++u)n=s[u]=new _.default(u,a),o[u]=r.sources[u].run(n,e);return x.all(o)},l.prototype.error=m.default.prototype.error,l.prototype.event=function(t,e){var n=e.index,r=this._updateReady(n);this.values[n]=e.value,0===r&&this.sink.event(t,(0,A.default)(this.f,this.values))},l.prototype._updateReady=function(t){return this.awaiting>0&&(this.hasValue[t]||(this.hasValue[t]=!0,this.awaiting-=1)),this.awaiting},l.prototype.end=function(t,e){x.tryDispose(t,this.disposables[e.index],this.sink),0==--this.activeCount&&this.sink.end(t,e.value)}},{"../Stream":65,"../disposable/dispose":93,"../invoke":99,"../sink/IndexSink":112,"../sink/Pipe":113,"../source/core":117,"./transform":89,"@most/prelude":3}],70:[function(t,e,n){"use strict";function r(t,e){return(0,i.mergeMapConcurrently)(t,1,e)}Object.defineProperty(n,"__esModule",{value:!0}),n.concatMap=r;var i=t("./mergeConcurrently")},{"./mergeConcurrently":79}],71:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return new u.default(new o(t,e.source))}function o(t,e){this.f=t,this.source=e}function s(t,e,n,r){this.f=t,this.sink=n,this.scheduler=r,this.active=!0,this.disposable=h.once(e.run(this,r))}Object.defineProperty(n,"__esModule",{value:!0}),n.continueWith=i;var a=t("../Stream"),u=r(a),c=t("../sink/Pipe"),l=r(c),f=t("../disposable/dispose"),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(f);o.prototype.run=function(t,e){return new s(this.f,this.source,t,e)},s.prototype.error=l.default.prototype.error,s.prototype.event=function(t,e){this.active&&this.sink.event(t,e)},s.prototype.end=function(t,e){this.active&&(h.tryDispose(t,this.disposable,this.sink),this._startNext(t,e,this.sink))},s.prototype._startNext=function(t,e,n){try{this.disposable=this._continue(this.f,e,n)}catch(e){n.error(t,e)}},s.prototype._continue=function(t,e,n){return t(e).source.run(n,this.scheduler)},s.prototype.dispose=function(){return this.active=!1,this.disposable.dispose()}},{"../Stream":65,"../disposable/dispose":93,"../sink/Pipe":113}],72:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return t<=0?e:new u.default(new o(t,e.source))}function o(t,e){this.dt=t,this.source=e}function s(t,e,n){this.dt=t,this.sink=e,this.scheduler=n}Object.defineProperty(n,"__esModule",{value:!0}),n.delay=i;var a=t("../Stream"),u=r(a),c=t("../sink/Pipe"),l=r(c),f=t("../disposable/dispose"),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(f),p=t("../scheduler/PropagateTask"),d=r(p);o.prototype.run=function(t,e){var n=new s(this.dt,t,e);return h.all([n,this.source.run(n,e)])},s.prototype.dispose=function(){var t=this;this.scheduler.cancelAll(function(e){return e.task.sink===t.sink})},s.prototype.event=function(t,e){this.scheduler.delay(this.dt,d.default.event(e,this.sink))},s.prototype.end=function(t,e){this.scheduler.delay(this.dt,d.default.end(e,this.sink))},s.prototype.error=l.default.prototype.error},{"../Stream":65,"../disposable/dispose":93,"../scheduler/PropagateTask":106,"../sink/Pipe":113}],73:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return new h.default(new c(t,e.source))}function s(t){return new h.default(new a(t))}function a(t){this.value=t}function u(t,e,n){n.error(t,e)}function c(t,e){this.f=t,this.source=e}function l(t,e,n,r){this.f=t,this.sink=new d.default(n),this.scheduler=r,this.disposable=e.run(this,r)}Object.defineProperty(n,"__esModule",{value:!0}),n.flatMapError=void 0,n.recoverWith=o,n.throwError=s;var f=t("../Stream"),h=i(f),p=t("../sink/SafeSink"),d=i(p),y=t("../disposable/dispose"),v=r(y),g=t("../source/tryEvent"),m=r(g),b=t("../scheduler/PropagateTask"),_=i(b);n.flatMapError=o;a.prototype.run=function(t,e){return e.asap(new _.default(u,this.value,t))},c.prototype.run=function(t,e){return new l(this.f,this.source,t,e)},l.prototype.event=function(t,e){m.tryEvent(t,e,this.sink)},l.prototype.end=function(t,e){m.tryEnd(t,e,this.sink)},l.prototype.error=function(t,e){var n=this.sink.disable();v.tryDispose(t,this.disposable,this.sink),this._startNext(t,e,n)},l.prototype._startNext=function(t,e,n){try{this.disposable=this._continue(this.f,e,n)}catch(e){n.error(t,e)}},l.prototype._continue=function(t,e,n){return t(e).source.run(n,this.scheduler)},l.prototype.dispose=function(){return this.disposable.dispose()}},{"../Stream":65,"../disposable/dispose":93,"../scheduler/PropagateTask":106,"../sink/SafeSink":114,"../source/tryEvent":125}],74:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return new f.default(y.default.create(t,e.source))}function o(t){return s(c,t)}function s(t,e){return new f.default(new a(t,e.source))}function a(t,e){this.equals=t,this.source=e}function u(t,e){this.equals=t,this.sink=e,this.value=void 0,this.init=!0}function c(t,e){return t===e}Object.defineProperty(n,"__esModule",{value:!0}),n.filter=i,n.skipRepeats=o,n.skipRepeatsWith=s;var l=t("../Stream"),f=r(l),h=t("../sink/Pipe"),p=r(h),d=t("../fusion/Filter"),y=r(d);a.prototype.run=function(t,e){return this.source.run(new u(this.equals,t),e)},u.prototype.end=p.default.prototype.end,u.prototype.error=p.default.prototype.error,u.prototype.event=function(t,e){this.init?(this.init=!1,this.value=e,this.sink.event(t,e)):this.equals(this.value,e)||(this.value=e,this.sink.event(t,e))}},{"../Stream":65,"../fusion/Filter":95,"../sink/Pipe":113}],75:[function(t,e,n){"use strict";function r(t,e){return(0,o.mergeMapConcurrently)(t,1/0,e)}function i(t){return(0,o.mergeConcurrently)(1/0,t)}Object.defineProperty(n,"__esModule",{value:!0}),n.flatMap=r,n.join=i;var o=t("./mergeConcurrently")},{"./mergeConcurrently":79}],76:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return new y.default(o(t,e.source))}function o(t,e){return e instanceof b.default?s(t,e):e instanceof u?a(t,e):new u(t,e)}function s(t,e){return b.default.create(e.f,o(t,e.source))}function a(t,e){return new u(Math.max(t,e.period),e.source)}function u(t,e){this.period=t,this.source=e}function c(t,e){this.time=0,this.period=t,this.sink=e}function l(t,e){return new y.default(new f(t,e.source))}function f(t,e){this.dt=t,this.source=e}function h(t,e,n,r){this.dt=t,this.sink=n,this.scheduler=r,this.value=void 0,this.timer=null,this.disposable=e.run(this,r)}function p(t,e){this.debounce=t,this.value=e}Object.defineProperty(n,"__esModule",{value:!0}),n.throttle=i,n.debounce=l;var d=t("../Stream"),y=r(d),v=t("../sink/Pipe"),g=r(v),m=t("../fusion/Map"),b=r(m);u.prototype.run=function(t,e){return this.source.run(new c(this.period,t),e)},c.prototype.event=function(t,e){t>=this.time&&(this.time=t+this.period,this.sink.event(t,e))},c.prototype.end=g.default.prototype.end,c.prototype.error=g.default.prototype.error,f.prototype.run=function(t,e){return new h(this.dt,this.source,t,e)},h.prototype.event=function(t,e){this._clearTimer(),this.value=e,this.timer=this.scheduler.delay(this.dt,new p(this,e))},h.prototype._event=function(t,e){this._clearTimer(),this.sink.event(t,e)},h.prototype.end=function(t,e){this._clearTimer()&&(this.sink.event(t,this.value),this.value=void 0),this.sink.end(t,e)},h.prototype.error=function(t,e){this._clearTimer(),this.sink.error(t,e)},h.prototype.dispose=function(){return this._clearTimer(),this.disposable.dispose()},h.prototype._clearTimer=function(){return null!==this.timer&&(this.timer.dispose(),this.timer=null,!0)},p.prototype.run=function(t){this.debounce._event(t,this.value)},p.prototype.error=function(t,e){this.debounce.error(t,e)},p.prototype.dispose=function(){}},{"../Stream":65,"../fusion/Map":97,"../sink/Pipe":113}],77:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return new u.default(new o(t,e,n.source))}function o(t,e,n){this.step=t,this.seed=e,this.source=n}function s(t,e,n){this.step=t,this.seed=e,this.sink=n}Object.defineProperty(n,"__esModule",{value:!0}),n.loop=i;var a=t("../Stream"),u=r(a),c=t("../sink/Pipe"),l=r(c);o.prototype.run=function(t,e){return this.source.run(new s(this.step,this.seed,t),e)},s.prototype.error=l.default.prototype.error,s.prototype.event=function(t,e){var n=this.step(this.seed,e);this.seed=n.seed,this.sink.event(t,n.value)},s.prototype.end=function(t){this.sink.end(t,this.seed)}},{"../Stream":65,"../sink/Pipe":113}],78:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(){return s(x(arguments))}function s(t){var e=t.length;return 0===e?(0,g.empty)():1===e?t[0]:new h.default(a(t))}function a(t){return new c(S(u,[],t))}function u(t,e){var n=e.source;return n instanceof c?t.concat(n.sources):t.concat(n)}function c(t){this.sources=t}function l(t,e,n){this.sink=n,this.disposables=t,this.activeCount=e.length}Object.defineProperty(n,"__esModule",{value:!0}),n.merge=o,n.mergeArray=s;var f=t("../Stream"),h=i(f),p=t("../sink/Pipe"),d=i(p),y=t("../sink/IndexSink"),v=i(y),g=t("../source/core"),m=t("../disposable/dispose"),b=r(m),_=t("@most/prelude"),w=r(_),x=w.copy,S=w.reduce;c.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i),s=new Array(i),a=new l(o,s,t),u=0;u<i;++u)n=s[u]=new v.default(u,a),o[u]=r.sources[u].run(n,e);return b.all(o)},l.prototype.error=d.default.prototype.error,l.prototype.event=function(t,e){this.sink.event(t,e.value)},l.prototype.end=function(t,e){b.tryDispose(t,this.disposables[e.index],this.sink),0==--this.activeCount&&this.sink.end(t,e.value)}},{"../Stream":65,"../disposable/dispose":93,"../sink/IndexSink":112,"../sink/Pipe":113,"../source/core":117,"@most/prelude":3}],79:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return o(v.id,t,e)}function o(t,e,n){return new f.default(new s(t,e,n.source))}function s(t,e,n){this.f=t,this.concurrency=e,this.source=n}function a(t,e,n,r,i){this.f=t,this.concurrency=e,this.sink=r,this.scheduler=i,this.pending=[],this.current=new y.default,this.disposable=p.once(n.run(this,i)),this.active=!0}function u(t,e,n,r){return t(e).source.run(n,r)}function c(t,e,n){this.prev=this.next=null,this.time=t,this.outer=e,this.sink=n,this.disposable=void 0}Object.defineProperty(n,"__esModule",{value:!0}),n.mergeConcurrently=i,n.mergeMapConcurrently=o;var l=t("../Stream"),f=r(l),h=t("../disposable/dispose"),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(h),d=t("../LinkedList"),y=r(d),v=t("@most/prelude");s.prototype.run=function(t,e){return new a(this.f,this.concurrency,this.source,t,e)},
  a.prototype.event=function(t,e){this._addInner(t,e)},a.prototype._addInner=function(t,e){this.current.length<this.concurrency?this._startInner(t,e):this.pending.push(e)},a.prototype._startInner=function(t,e){try{this._initInner(t,e)}catch(e){this.error(t,e)}},a.prototype._initInner=function(t,e){var n=new c(t,this,this.sink);n.disposable=u(this.f,e,n,this.scheduler),this.current.add(n)},a.prototype.end=function(t,e){this.active=!1,p.tryDispose(t,this.disposable,this.sink),this._checkEnd(t,e)},a.prototype.error=function(t,e){this.active=!1,this.sink.error(t,e)},a.prototype.dispose=function(){return this.active=!1,this.pending.length=0,Promise.all([this.disposable.dispose(),this.current.dispose()])},a.prototype._endInner=function(t,e,n){this.current.remove(n),p.tryDispose(t,n,this),0===this.pending.length?this._checkEnd(t,e):this._startInner(t,this.pending.shift())},a.prototype._checkEnd=function(t,e){!this.active&&this.current.isEmpty()&&this.sink.end(t,e)},c.prototype.event=function(t,e){this.sink.event(Math.max(t,this.time),e)},c.prototype.end=function(t,e){this.outer._endInner(Math.max(t,this.time),e,this)},c.prototype.error=function(t,e){this.outer.error(Math.max(t,this.time),e)},c.prototype.dispose=function(){return this.disposable.dispose()}},{"../LinkedList":62,"../Stream":65,"../disposable/dispose":93,"@most/prelude":3}],80:[function(t,e,n){"use strict";function r(t,e){return i((0,s.tap)(t,e))}function i(t){return(0,o.withDefaultScheduler)(t.source)}Object.defineProperty(n,"__esModule",{value:!0}),n.observe=r,n.drain=i;var o=t("../runSource"),s=t("./transform")},{"../runSource":104,"./transform":89}],81:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return o((0,h.of)(t))}function o(t){return new c.default(new s(t.source))}function s(t){this.source=t}function a(t,e){this.sink=t,this.scheduler=e,this.queue=Promise.resolve();var n=this;this._eventBound=function(t){n.sink.event(n.scheduler.now(),t)},this._endBound=function(t){n.sink.end(n.scheduler.now(),t)},this._errorBound=function(t){n.sink.error(n.scheduler.now(),t)}}Object.defineProperty(n,"__esModule",{value:!0}),n.fromPromise=i,n.awaitPromises=o;var u=t("../Stream"),c=r(u),l=t("../fatalError"),f=r(l),h=t("../source/core");s.prototype.run=function(t,e){return this.source.run(new a(t,e),e)},a.prototype.event=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._event(e)}).catch(this._errorBound)},a.prototype.end=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._end(e)}).catch(this._errorBound)},a.prototype.error=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._errorBound(e)}).catch(f.default)},a.prototype._event=function(t){return t.then(this._eventBound)},a.prototype._end=function(t){return Promise.resolve(t).then(this._endBound)}},{"../Stream":65,"../fatalError":94,"../source/core":117}],82:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return a(t,e,w.drop(2,arguments))}function s(t,e){return new y.default(new c(w.id,t.source,[e.source]))}function a(t,e,n){return new y.default(new c(t,e.source,w.map(u,n)))}function u(t){return t.source}function c(t,e,n){this.f=t,this.sampler=e,this.sources=n}function l(t){this.sink=t,this.hasValue=!1}function f(t,e,n){this.f=t,this.sinks=e,this.sink=n,this.active=!1}function h(t){return t.hasValue}function p(t){return t.value}Object.defineProperty(n,"__esModule",{value:!0}),n.sample=o,n.sampleWith=s,n.sampleArray=a;var d=t("../Stream"),y=i(d),v=t("../sink/Pipe"),g=i(v),m=t("../disposable/dispose"),b=r(m),_=t("@most/prelude"),w=r(_),x=t("../invoke"),S=i(x);c.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i+1),s=new Array(i),a=new f(this.f,s,t),u=0;u<i;++u)n=s[u]=new l(a),o[u]=r.sources[u].run(n,e);return o[u]=this.sampler.run(a,e),b.all(o)},l.prototype.event=function(t,e){this.value=e,this.hasValue=!0,this.sink._notify(this)},l.prototype.end=function(){},l.prototype.error=g.default.prototype.error,f.prototype._notify=function(){this.active||(this.active=this.sinks.every(h))},f.prototype.event=function(t){this.active&&this.sink.event(t,(0,S.default)(this.f,w.map(p,this.sinks)))},f.prototype.end=g.default.prototype.end,f.prototype.error=g.default.prototype.error},{"../Stream":65,"../disposable/dispose":93,"../invoke":99,"../sink/Pipe":113,"@most/prelude":3}],83:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return a(0,t,e)}function s(t,e){return a(t,1/0,e)}function a(t,e,n){return e<=t?C.empty():new S.default(u(t,e,n.source))}function u(t,e,n){return n instanceof P.default?c(t,e,n):n instanceof f?l(t,e,n):new f(t,e,n)}function c(t,e,n){return P.default.create(n.f,u(t,e,n.source))}function l(t,e,n){return t+=n.min,e=Math.min(e+n.min,n.max),new f(t,e,n.source)}function f(t,e,n){this.source=n,this.min=t,this.max=e}function h(t,e,n,r){this.sink=n,this.skip=t,this.take=e,this.disposable=r}function p(t,e){return new S.default(new d(t,e.source))}function d(t,e){this.p=t,this.source=e}function y(t,e,n){this.p=t,this.sink=e,this.active=!0,this.disposable=n}function v(t,e){return new S.default(new g(t,e.source))}function g(t,e){this.p=t,this.source=e}function m(t,e){this.p=t,this.sink=e,this.skipping=!0}function b(t,e){return new S.default(new _(t,e.source))}function _(t,e){this.p=t,this.source=e}function w(t,e){this.p=t,this.sink=e,this.skipping=!1}Object.defineProperty(n,"__esModule",{value:!0}),n.take=o,n.skip=s,n.slice=a,n.takeWhile=p,n.skipWhile=v,n.skipAfter=b;var x=t("../Stream"),S=i(x),k=t("../sink/Pipe"),T=i(k),A=t("../source/core"),C=r(A),O=t("../disposable/dispose"),j=r(O),E=t("../fusion/Map"),P=i(E);f.prototype.run=function(t,e){var n=j.settable(),r=new h(this.min,this.max-this.min,t,n);return n.setDisposable(this.source.run(r,e)),n},h.prototype.end=T.default.prototype.end,h.prototype.error=T.default.prototype.error,h.prototype.event=function(t,e){if(this.skip>0)return void(this.skip-=1);0!==this.take&&(this.take-=1,this.sink.event(t,e),0===this.take&&(this.disposable.dispose(),this.sink.end(t,e)))},d.prototype.run=function(t,e){var n=j.settable(),r=new y(this.p,t,n);return n.setDisposable(this.source.run(r,e)),n},y.prototype.end=T.default.prototype.end,y.prototype.error=T.default.prototype.error,y.prototype.event=function(t,e){if(this.active){var n=this.p;this.active=n(e),this.active?this.sink.event(t,e):(this.disposable.dispose(),this.sink.end(t,e))}},g.prototype.run=function(t,e){return this.source.run(new m(this.p,t),e)},m.prototype.end=T.default.prototype.end,m.prototype.error=T.default.prototype.error,m.prototype.event=function(t,e){if(this.skipping){var n=this.p;if(this.skipping=n(e),this.skipping)return}this.sink.event(t,e)},_.prototype.run=function(t,e){return this.source.run(new w(this.p,t),e)},w.prototype.event=function(t,e){if(!this.skipping){var n=this.p;this.skipping=n(e),this.sink.event(t,e),this.skipping&&this.sink.end(t,e)}},w.prototype.end=T.default.prototype.end,w.prototype.error=T.default.prototype.error},{"../Stream":65,"../disposable/dispose":93,"../fusion/Map":97,"../sink/Pipe":113,"../source/core":117}],84:[function(t,e,n){"use strict";function r(t){return new u.default(new i(t.source))}function i(t){this.source=t}function o(t,e){this.sink=t,this.scheduler=e,this.current=null,this.ended=!1}function s(t,e,n,r){this.min=t,this.max=e,this.outer=n,this.sink=r,this.disposable=l.empty()}Object.defineProperty(n,"__esModule",{value:!0}),n.switch=void 0,n.switchLatest=r;var a=t("../Stream"),u=function(t){return t&&t.__esModule?t:{default:t}}(a),c=t("../disposable/dispose"),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c);n.switch=r,i.prototype.run=function(t,e){var n=new o(t,e);return l.all([n,this.source.run(n,e)])},o.prototype.event=function(t,e){this._disposeCurrent(t),this.current=new s(t,1/0,this,this.sink),this.current.disposable=e.source.run(this.current,this.scheduler)},o.prototype.end=function(t,e){this.ended=!0,this._checkEnd(t,e)},o.prototype.error=function(t,e){this.ended=!0,this.sink.error(t,e)},o.prototype.dispose=function(){return this._disposeCurrent(this.scheduler.now())},o.prototype._disposeCurrent=function(t){if(null!==this.current)return this.current._dispose(t)},o.prototype._disposeInner=function(t,e){e._dispose(t),e===this.current&&(this.current=null)},o.prototype._checkEnd=function(t,e){this.ended&&null===this.current&&this.sink.end(t,e)},o.prototype._endInner=function(t,e,n){this._disposeInner(t,n),this._checkEnd(t,e)},o.prototype._errorInner=function(t,e,n){this._disposeInner(t,n),this.sink.error(t,e)},s.prototype.event=function(t,e){t<this.max&&this.sink.event(Math.max(t,this.min),e)},s.prototype.end=function(t,e){this.outer._endInner(Math.max(t,this.min),e,this)},s.prototype.error=function(t,e){this.outer._errorInner(Math.max(t,this.min),e,this)},s.prototype._dispose=function(t){this.max=t,l.tryDispose(t,this.disposable,this.sink)}},{"../Stream":65,"../disposable/dispose":93}],85:[function(t,e,n){"use strict";function r(t,e){return t(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.thru=r},{}],86:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return new y.default(new a(t.source,e.source))}function o(t,e){return new y.default(new u(t.source,e.source))}function s(t,e){return i((0,_.join)(t),o(t,e))}function a(t,e){this.maxSignal=t,this.source=e}function u(t,e){this.minSignal=t,this.source=e}function c(t,e){this.value=t,this.sink=e}function l(t,e,n){this.min=t,this.max=e,this.sink=n}function f(t,e,n){this.value=1/0,this.sink=e,this.disposable=t.run(this,n)}function h(t,e,n){this.value=1/0,this.sink=e,this.disposable=t.run(this,n)}function p(){}Object.defineProperty(n,"__esModule",{value:!0}),n.takeUntil=i,n.skipUntil=o,n.during=s;var d=t("../Stream"),y=r(d),v=t("../sink/Pipe"),g=r(v),m=t("../disposable/dispose"),b=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(m),_=t("../combinator/flatMap");a.prototype.run=function(t,e){var n=new c(-1/0,t),r=new h(this.maxSignal,t,e),i=this.source.run(new l(n,r,t),e);return b.all([n,r,i])},u.prototype.run=function(t,e){var n=new f(this.minSignal,t,e),r=new c(1/0,t),i=this.source.run(new l(n,r,t),e);return b.all([n,r,i])},c.prototype.error=g.default.prototype.error,c.prototype.event=p,c.prototype.end=p,c.prototype.dispose=p,l.prototype.event=function(t,e){t>=this.min.value&&t<this.max.value&&this.sink.event(t,e)},l.prototype.error=g.default.prototype.error,l.prototype.end=g.default.prototype.end,f.prototype.event=function(t){t<this.value&&(this.value=t)},f.prototype.end=p,f.prototype.error=g.default.prototype.error,f.prototype.dispose=function(){return this.disposable.dispose()},h.prototype.event=function(t,e){t<this.value&&(this.value=t,this.sink.end(t,e))},h.prototype.end=p,h.prototype.error=g.default.prototype.error,h.prototype.dispose=function(){return this.disposable.dispose()}},{"../Stream":65,"../combinator/flatMap":75,"../disposable/dispose":93,"../sink/Pipe":113}],87:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return new u.default(new o(t.source))}function o(t){this.source=t}function s(t){this.sink=t}Object.defineProperty(n,"__esModule",{value:!0}),n.timestamp=i;var a=t("../Stream"),u=r(a),c=t("../sink/Pipe"),l=r(c);o.prototype.run=function(t,e){return this.source.run(new s(t),e)},s.prototype.end=l.default.prototype.end,s.prototype.error=l.default.prototype.error,s.prototype.event=function(t,e){this.sink.event(t,{time:t,value:e})}},{"../Stream":65,"../sink/Pipe":113}],88:[function(t,e,n){"use strict";function r(t,e){return new f.default(new i(t,e.source))}function i(t,e){this.transducer=t,this.source=e}function o(t,e){this.xf=t,this.sink=e}function s(t){this.time=-1/0,this.sink=t}function a(t){return"function"==typeof t["@@transducer/step"]?new u(t):new c(t)}function u(t){this.tx=t}function c(t){this.tx=t}Object.defineProperty(n,"__esModule",{value:!0}),n.transduce=r;var l=t("../Stream"),f=function(t){return t&&t.__esModule?t:{default:t}}(l);i.prototype.run=function(t,e){var n=this.transducer(new s(t));return this.source.run(new o(a(n),t),e)},o.prototype.event=function(t,e){var n=this.xf.step(t,e);return this.xf.isReduced(n)?this.sink.end(t,this.xf.getResult(n)):n},o.prototype.end=function(t,e){return this.xf.result(e)},o.prototype.error=function(t,e){return this.sink.error(t,e)},s.prototype["@@transducer/init"]=s.prototype.init=function(){},s.prototype["@@transducer/step"]=s.prototype.step=function(t,e){return isNaN(t)||(this.time=Math.max(t,this.time)),this.sink.event(this.time,e)},s.prototype["@@transducer/result"]=s.prototype.result=function(t){return this.sink.end(this.time,t)},u.prototype.step=function(t,e){return this.tx["@@transducer/step"](t,e)},u.prototype.result=function(t){return this.tx["@@transducer/result"](t)},u.prototype.isReduced=function(t){return null!=t&&t["@@transducer/reduced"]},u.prototype.getResult=function(t){return t["@@transducer/value"]},c.prototype.step=function(t,e){return this.tx.step(t,e)},c.prototype.result=function(t){return this.tx.result(t)},c.prototype.isReduced=function(t){return null!=t&&t.__transducers_reduced__},c.prototype.getResult=function(t){return t.value}},{"../Stream":65}],89:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return new l.default(h.default.create(t,e.source))}function o(t,e){return i(function(){return t},e)}function s(t,e){return new l.default(new a(t,e.source))}function a(t,e){this.source=e,this.f=t}function u(t,e){this.sink=e,this.f=t}Object.defineProperty(n,"__esModule",{value:!0}),n.map=i,n.constant=o,n.tap=s;var c=t("../Stream"),l=r(c),f=t("../fusion/Map"),h=r(f),p=t("../sink/Pipe"),d=r(p);a.prototype.run=function(t,e){return this.source.run(new u(this.f,t),e)},u.prototype.end=d.default.prototype.end,u.prototype.error=d.default.prototype.error,u.prototype.event=function(t,e){(0,this.f)(e),this.sink.event(t,e)}},{"../Stream":65,"../fusion/Map":97,"../sink/Pipe":113}],90:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function o(t){return s(t,R(arguments))}function s(t,e){return 0===e.length?b.empty():1===e.length?g.map(t,e[0]):new y.default(new u(t,N(a,e)))}function a(t){return t.source}function u(t,e){this.f=t,this.sources=e}function c(t,e,n,r){this.f=t,this.sinks=n,this.sink=r,this.buffers=e}function l(t,e,n,r){r.event(e,(0,j.default)(t,N(f,n)))}function f(t){return t.shift()}function h(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n].isEmpty()&&!e[n].active)return!0;return!1}function p(t){for(var e=0,n=t.length;e<n;++e)if(t[e].isEmpty())return!1;return!0}Object.defineProperty(n,"__esModule",{value:!0}),n.zip=o,n.zipArray=s;var d=t("../Stream"),y=i(d),v=t("./transform"),g=r(v),m=t("../source/core"),b=r(m),_=t("../sink/Pipe"),w=i(_),x=t("../sink/IndexSink"),S=i(x),k=t("../disposable/dispose"),T=r(k),A=t("@most/prelude"),C=r(A),O=t("../invoke"),j=i(O),E=t("../Queue"),P=i(E),N=C.map,R=C.tail;u.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i),s=new Array(i),a=new Array(i),u=new c(this.f,a,s,t),l=0;l<i;++l)a[l]=new P.default,n=s[l]=new S.default(l,u),o[l]=r.sources[l].run(n,e);return T.all(o)},c.prototype.event=function(t,e){var n=this.buffers,r=n[e.index];if(r.push(e.value),1===r.length()){if(!p(this.buffers))return;l(this.f,t,n,this.sink),h(this.buffers,this.sinks)&&this.sink.end(t,void 0)}},c.prototype.end=function(t,e){this.buffers[e.index].isEmpty()&&this.sink.end(t,e.value)},c.prototype.error=w.default.prototype.error},{"../Queue":64,"../Stream":65,"../disposable/dispose":93,"../invoke":99,"../sink/IndexSink":112,"../sink/Pipe":113,"../source/core":117,"./transform":89,"@most/prelude":3}],91:[function(t,e,n){"use strict";function r(t,e){this._dispose=t,this._data=e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.dispose=function(){return this._dispose(this._data)}},{}],92:[function(t,e,n){"use strict";function r(){this.disposable=void 0,this.disposed=!1,this._resolve=void 0;var t=this;this.result=new Promise(function(e){t._resolve=e})}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.setDisposable=function(t){if(void 0!==this.disposable)throw new Error("setDisposable called more than once");this.disposable=t,this.disposed&&this._resolve(t.dispose())},r.prototype.dispose=function(){return this.disposed?this.result:(this.disposed=!0,void 0!==this.disposable&&(this.result=this.disposable.dispose()),this.result)}},{}],93:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){var r=c(e);return(0,w.isPromise)(r)?r.catch(function(e){n.error(t,e)}):r}function o(t,e){return d(new m.default(t,e))}function s(){return new m.default(T,void 0)}function a(t){return o(u,t)}function u(t){return Promise.all(k(c,t))}function c(t){try{return t.dispose()}catch(t){return Promise.reject(t)}}function l(t){return o(f,t)}function f(t){return t.then(h)}function h(t){return t.dispose()}function p(){return new _.default}function d(t){return new m.default(y,v(t))}function y(t){return t.disposed||(t.disposed=!0,t.value=c(t.disposable),t.disposable=void 0),t.value}function v(t){return{disposed:!1,disposable:t,value:void 0}}Object.defineProperty(n,"__esModule",{value:!0}),n.tryDispose=i,n.create=o,n.empty=s,n.all=a,n.promised=l,n.settable=p,n.once=d;var g=t("./Disposable"),m=r(g),b=t("./SettableDisposable"),_=r(b),w=t("../Promise"),x=t("@most/prelude"),S=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(x),k=S.map,T=S.id},{"../Promise":63,"./Disposable":91,"./SettableDisposable":92,"@most/prelude":3}],94:[function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t},0)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],95:[function(t,e,n){"use strict";function r(t,e){this.p=t,this.source=e}function i(t,e){this.p=t,this.sink=e}function o(t,e){return function(n){return t(n)&&e(n)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var s=t("../sink/Pipe"),a=function(t){return t&&t.__esModule?t:{default:t}}(s);r.create=function(t,e){return e instanceof r?new r(o(e.p,t),e.source):new r(t,e)},r.prototype.run=function(t,e){return this.source.run(new i(this.p,t),e)},i.prototype.end=a.default.prototype.end,i.prototype.error=a.default.prototype.error,i.prototype.event=function(t,e){(0,this.p)(e)&&this.sink.event(t,e)}},{"../sink/Pipe":113}],96:[function(t,e,n){"use strict";function r(t,e,n){this.p=t,this.f=e,this.source=n}function i(t,e,n){this.p=t,this.f=e,this.sink=n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var o=t("../sink/Pipe"),s=function(t){return t&&t.__esModule?t:{default:t}}(o);r.prototype.run=function(t,e){return this.source.run(new i(this.p,this.f,t),e)},i.prototype.event=function(t,e){var n=this.f;(0,this.p)(e)&&this.sink.event(t,n(e))},i.prototype.end=s.default.prototype.end,i.prototype.error=s.default.prototype.error},{"../sink/Pipe":113}],97:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){this.f=t,this.source=e}function o(t,e){this.f=t,this.sink=e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var s=t("../sink/Pipe"),a=r(s),u=t("./Filter"),c=r(u),l=t("./FilterMap"),f=r(l),h=t("@most/prelude"),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(h);i.create=function(t,e){return e instanceof i?new i(p.compose(t,e.f),e.source):e instanceof c.default?new f.default(e.p,t,e.source):new i(t,e)},i.prototype.run=function(t,e){return this.source.run(new o(this.f,t),e)},o.prototype.end=a.default.prototype.end,o.prototype.error=a.default.prototype.error,o.prototype.event=function(t,e){var n=this.f;this.sink.event(t,n(e))}},{"../sink/Pipe":113,"./Filter":95,"./FilterMap":96,"@most/prelude":3}],98:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.PropagateTask=n.defaultScheduler=n.multicast=n.throwError=n.flatMapError=n.recoverWith=n.await=n.awaitPromises=n.fromPromise=n.debounce=n.throttle=n.timestamp=n.delay=n.during=n.since=n.skipUntil=n.until=n.takeUntil=n.skipAfter=n.skipWhile=n.takeWhile=n.slice=n.skip=n.take=n.distinctBy=n.skipRepeatsWith=n.distinct=n.skipRepeats=n.filter=n.switch=n.switchLatest=n.zipArray=n.zip=n.sampleWith=n.sampleArray=n.sample=n.combineArray=n.combine=n.mergeArray=n.merge=n.mergeConcurrently=n.concatMap=n.flatMapEnd=n.continueWith=n.join=n.chain=n.flatMap=n.transduce=n.ap=n.tap=n.constant=n.map=n.startWith=n.concat=n.generate=n.iterate=n.unfold=n.reduce=n.scan=n.loop=n.drain=n.forEach=n.observe=n.fromEvent=n.periodic=n.from=n.never=n.empty=n.just=n.of=n.Stream=void 0;var i=t("./source/fromEvent");Object.defineProperty(n,"fromEvent",{enumerable:!0,get:function(){return i.fromEvent}});var o=t("./source/unfold");Object.defineProperty(n,"unfold",{enumerable:!0,get:function(){return o.unfold}});var s=t("./source/iterate");Object.defineProperty(n,"iterate",{enumerable:!0,get:function(){return s.iterate}});var a=t("./source/generate");Object.defineProperty(n,"generate",{enumerable:!0,get:function(){return a.generate}});var u=t("./Stream"),c=r(u),l=t("@most/prelude"),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),h=t("./source/core"),p=t("./source/from"),d=t("./source/periodic"),y=t("symbol-observable"),v=r(y),g=t("./observable/subscribe"),m=t("./combinator/thru"),b=t("./combinator/observe"),_=t("./combinator/loop"),w=t("./combinator/accumulate"),x=t("./combinator/build"),S=t("./combinator/transform"),k=t("./combinator/applicative"),T=t("./combinator/transduce"),A=t("./combinator/flatMap"),C=t("./combinator/continueWith"),O=t("./combinator/concatMap"),j=t("./combinator/mergeConcurrently"),E=t("./combinator/merge"),P=t("./combinator/combine"),N=t("./combinator/sample"),R=t("./combinator/zip"),M=t("./combinator/switch"),L=t("./combinator/filter"),I=t("./combinator/slice"),D=t("./combinator/timeslice"),q=t("./combinator/delay"),B=t("./combinator/timestamp"),H=t("./combinator/limit"),$=t("./combinator/promises"),U=t("./combinator/errors"),W=t("@most/multicast"),F=r(W),z=t("./scheduler/defaultScheduler"),V=r(z),J=t("./scheduler/PropagateTask"),G=r(J);n.Stream=c.default,c.default.of=h.of,c.default.empty=h.empty,c.default.from=p.from,n.of=h.of,n.just=h.of,n.empty=h.empty,n.never=h.never,n.from=p.from,n.periodic=d.periodic,c.default.prototype.subscribe=function(t){return(0,g.subscribe)(t,this)},c.default.prototype[v.default]=function(){return this},c.default.prototype.thru=function(t){return(0,m.thru)(t,this)},n.observe=b.observe,n.forEach=b.observe,n.drain=b.drain,c.default.prototype.observe=c.default.prototype.forEach=function(t){return(0,b.observe)(t,this)},c.default.prototype.drain=function(){return(0,b.drain)(this)},n.loop=_.loop,c.default.prototype.loop=function(t,e){return(0,_.loop)(t,e,this)},n.scan=w.scan,n.reduce=w.reduce,c.default.prototype.scan=function(t,e){return(0,w.scan)(t,e,this)},c.default.prototype.reduce=function(t,e){return(0,w.reduce)(t,e,this)},n.concat=x.concat,n.startWith=x.cons,c.default.prototype.concat=function(t){return(0,x.concat)(this,t)},c.default.prototype.startWith=function(t){return(0,x.cons)(t,this)},n.map=S.map,n.constant=S.constant,n.tap=S.tap,n.ap=k.ap,c.default.prototype.map=function(t){return(0,S.map)(t,this)},c.default.prototype.ap=function(t){return(0,k.ap)(this,t)},c.default.prototype.constant=function(t){return(0,S.constant)(t,this)},c.default.prototype.tap=function(t){return(0,S.tap)(t,this)},n.transduce=T.transduce,c.default.prototype.transduce=function(t){return(0,T.transduce)(t,this)},n.flatMap=A.flatMap,n.chain=A.flatMap,n.join=A.join,c.default.prototype.chain=function(t){return(0,A.flatMap)(t,this)},c.default.prototype.flatMap=c.default.prototype.chain,c.default.prototype.join=function(){return(0,A.join)(this)},n.continueWith=C.continueWith,n.flatMapEnd=C.continueWith,c.default.prototype.continueWith=function(t){return(0,C.continueWith)(t,this)},c.default.prototype.flatMapEnd=c.default.prototype.continueWith,n.concatMap=O.concatMap,c.default.prototype.concatMap=function(t){return(0,O.concatMap)(t,this)},n.mergeConcurrently=j.mergeConcurrently,c.default.prototype.mergeConcurrently=function(t){return(0,j.mergeConcurrently)(t,this)},n.merge=E.merge,n.mergeArray=E.mergeArray,c.default.prototype.merge=function(){return(0,E.mergeArray)(f.cons(this,arguments))},n.combine=P.combine,n.combineArray=P.combineArray,c.default.prototype.combine=function(t){return(0,P.combineArray)(t,f.replace(this,0,arguments))},n.sample=N.sample,n.sampleArray=N.sampleArray,n.sampleWith=N.sampleWith,c.default.prototype.sampleWith=function(t){return(0,N.sampleWith)(t,this)},c.default.prototype.sample=function(t){return(0,N.sampleArray)(t,this,f.tail(arguments))},n.zip=R.zip,n.zipArray=R.zipArray,c.default.prototype.zip=function(t){return(0,R.zipArray)(t,f.replace(this,0,arguments))},n.switchLatest=M.switchLatest,n.switch=M.switchLatest,c.default.prototype.switchLatest=function(){return(0,M.switchLatest)(this)},c.default.prototype.switch=c.default.prototype.switchLatest,n.filter=L.filter,n.skipRepeats=L.skipRepeats,n.distinct=L.skipRepeats,n.skipRepeatsWith=L.skipRepeatsWith,n.distinctBy=L.skipRepeatsWith,c.default.prototype.filter=function(t){return(0,L.filter)(t,this)},c.default.prototype.skipRepeats=function(){return(0,L.skipRepeats)(this)},c.default.prototype.skipRepeatsWith=function(t){return(0,L.skipRepeatsWith)(t,this)},n.take=I.take,n.skip=I.skip,n.slice=I.slice,n.takeWhile=I.takeWhile,n.skipWhile=I.skipWhile,n.skipAfter=I.skipAfter,c.default.prototype.take=function(t){return(0,I.take)(t,this)},c.default.prototype.skip=function(t){return(0,I.skip)(t,this)},c.default.prototype.slice=function(t,e){return(0,I.slice)(t,e,this)},c.default.prototype.takeWhile=function(t){return(0,I.takeWhile)(t,this)},c.default.prototype.skipWhile=function(t){return(0,I.skipWhile)(t,this)},c.default.prototype.skipAfter=function(t){return(0,I.skipAfter)(t,this)},n.takeUntil=D.takeUntil,n.until=D.takeUntil,n.skipUntil=D.skipUntil,n.since=D.skipUntil,n.during=D.during,c.default.prototype.until=function(t){return(0,D.takeUntil)(t,this)},c.default.prototype.takeUntil=c.default.prototype.until,c.default.prototype.since=function(t){return(0,D.skipUntil)(t,this)},c.default.prototype.skipUntil=c.default.prototype.since,c.default.prototype.during=function(t){return(0,D.during)(t,this)},n.delay=q.delay,c.default.prototype.delay=function(t){return(0,q.delay)(t,this)},n.timestamp=B.timestamp,c.default.prototype.timestamp=function(){return(0,B.timestamp)(this)},n.throttle=H.throttle,n.debounce=H.debounce,c.default.prototype.throttle=function(t){return(0,H.throttle)(t,this)},c.default.prototype.debounce=function(t){return(0,H.debounce)(t,this)},n.fromPromise=$.fromPromise,n.awaitPromises=$.awaitPromises,n.await=$.awaitPromises,c.default.prototype.awaitPromises=function(){return(0,$.awaitPromises)(this)},c.default.prototype.await=c.default.prototype.awaitPromises,n.recoverWith=U.recoverWith,n.flatMapError=U.flatMapError,n.throwError=U.throwError,c.default.prototype.recoverWith=function(t){return(0,U.flatMapError)(t,this)},c.default.prototype.flatMapError=c.default.prototype.recoverWith,n.multicast=F.default,c.default.prototype.multicast=function(){return(0,F.default)(this)},n.defaultScheduler=V.default,n.PropagateTask=G.default},{"./Stream":65,"./combinator/accumulate":66,"./combinator/applicative":67,"./combinator/build":68,"./combinator/combine":69,"./combinator/concatMap":70,"./combinator/continueWith":71,"./combinator/delay":72,"./combinator/errors":73,"./combinator/filter":74,"./combinator/flatMap":75,"./combinator/limit":76,"./combinator/loop":77,"./combinator/merge":78,"./combinator/mergeConcurrently":79,"./combinator/observe":80,"./combinator/promises":81,"./combinator/sample":82,"./combinator/slice":83,"./combinator/switch":84,"./combinator/thru":85,"./combinator/timeslice":86,"./combinator/timestamp":87,"./combinator/transduce":88,"./combinator/transform":89,"./combinator/zip":90,"./observable/subscribe":103,"./scheduler/PropagateTask":106,"./scheduler/defaultScheduler":110,"./source/core":117,"./source/from":118,"./source/fromEvent":120,"./source/generate":122,"./source/iterate":123,"./source/periodic":124,"./source/unfold":126,"@most/multicast":2,"@most/prelude":3,"symbol-observable":463}],99:[function(t,e,n){"use strict";function r(t,e){switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);case 4:return t(e[0],e[1],e[2],e[3]);case 5:return t(e[0],e[1],e[2],e[3],e[4]);default:return t.apply(void 0,e)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],100:[function(t,e,n){"use strict";function r(t){return"function"==typeof t[s]}function i(t){return t[s]()}function o(t,e){return e[s]=t,e}Object.defineProperty(n,"__esModule",{value:!0}),n.isIterable=r,n.getIterator=i,n.makeIterable=o;var s;s="function"==typeof Set&&"function"==typeof(new Set)["@@iterator"]?"@@iterator":"function"==typeof Symbol?Symbol.iterator:"_es6shim_iterator_"},{}],101:[function(t,e,n){"use strict";function r(t){return new u.default(new i(t))}function i(t){this.observable=t}function o(t,e){this.sink=t,this.scheduler=e}function s(t){return t.unsubscribe()}Object.defineProperty(n,"__esModule",{value:!0}),n.fromObservable=r,n.ObservableSource=i,n.SubscriberSink=o;var a=t("../Stream"),u=function(t){return t&&t.__esModule?t:{default:t}}(a),c=t("../disposable/dispose"),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c),f=t("../source/tryEvent");i.prototype.run=function(t,e){var n=this.observable.subscribe(new o(t,e));if("function"==typeof n)return l.create(n);if(n&&"function"==typeof n.unsubscribe)return l.create(s,n);throw new TypeError("Observable returned invalid subscription "+String(n))},o.prototype.next=function(t){(0,f.tryEvent)(this.scheduler.now(),t,this.sink)},o.prototype.complete=function(t){(0,f.tryEnd)(this.scheduler.now(),t,this.sink)},o.prototype.error=function(t){this.sink.error(this.scheduler.now(),t)}},{"../Stream":65,"../disposable/dispose":93,"../source/tryEvent":125}],102:[function(t,e,n){"use strict";function r(t){var e=null;if(t){var n=t[o.default];if("function"==typeof n&&(!(e=n.call(t))||"function"!=typeof e.subscribe))throw new TypeError("invalid observable "+e)}return e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var i=t("symbol-observable"),o=function(t){return t&&t.__esModule?t:{default:t}}(i)},{"symbol-observable":463}],103:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(Object(t)!==t)throw new TypeError("subscriber must be an object");var n=f.settable(),r=new o(p.default,t,n);return n.setDisposable(e.source.run(r,c.default)),new s(n)}function o(t,e,n){this.fatalError=t,this.subscriber=e,this.disposable=n}function s(t){
  this.disposable=t}function a(t,e,n){if("function"==typeof e.error)try{e.error(t)}catch(t){n(t)}else n(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.subscribe=i,n.SubscribeObserver=o,n.Subscription=s;var u=t("../scheduler/defaultScheduler"),c=r(u),l=t("../disposable/dispose"),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),h=t("../fatalError"),p=r(h);o.prototype.event=function(t,e){this.disposable.disposed||"function"!=typeof this.subscriber.next||this.subscriber.next(e)},o.prototype.end=function(t,e){if(!this.disposable.disposed){var n=this.subscriber,r=this.fatalError;Promise.resolve(this.disposable.dispose()).then(function(){"function"==typeof n.complete&&n.complete(e)}).catch(function(t){a(t,n,r)})}},o.prototype.error=function(t,e){var n=this.subscriber,r=this.fatalError;Promise.resolve(this.disposable.dispose()).then(function(){a(e,n,r)})},s.prototype.unsubscribe=function(){this.disposable.dispose()}},{"../disposable/dispose":93,"../fatalError":94,"../scheduler/defaultScheduler":110}],104:[function(t,e,n){"use strict";function r(t){return i(t,f.default)}function i(t,e){return new Promise(function(n,r){o(t,e,n,r)})}function o(t,e,n,r){var i=c.settable(),o=new s(n,r,i);i.setDisposable(t.run(o,e))}function s(t,e,n){this._end=t,this._error=e,this._disposable=n,this.active=!0}function a(t,e,n,r){Promise.resolve(n.dispose()).then(function(){t(r)},e)}Object.defineProperty(n,"__esModule",{value:!0}),n.withDefaultScheduler=r,n.withScheduler=i;var u=t("./disposable/dispose"),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(u),l=t("./scheduler/defaultScheduler"),f=function(t){return t&&t.__esModule?t:{default:t}}(l);s.prototype.event=function(t,e){},s.prototype.end=function(t,e){this.active&&(this.active=!1,a(this._end,this._error,this._disposable,e))},s.prototype.error=function(t,e){this.active=!1,a(this._error,this._error,this._disposable,e)}},{"./disposable/dispose":93,"./scheduler/defaultScheduler":110}],105:[function(t,e,n){"use strict";function r(){}function i(t){this.f=t,this.active=!0}function o(t){var e=new i(t);return(0,s.defer)(e),e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var s=t("../task");r.prototype.now=Date.now,r.prototype.setTimer=function(t,e){return e<=0?o(t):setTimeout(t,e)},r.prototype.clearTimer=function(t){return t instanceof i?t.cancel():clearTimeout(t)},i.prototype.run=function(){return this.active&&this.f()},i.prototype.error=function(t){throw t},i.prototype.cancel=function(){this.active=!1}},{"../task":127}],106:[function(t,e,n){"use strict";function r(t,e,n){this._run=t,this.value=e,this.sink=n,this.active=!0}function i(t,e,n){n.error(t,e)}function o(t,e,n){n.event(t,e)}function s(t,e,n){n.end(t,e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var a=t("../fatalError"),u=function(t){return t&&t.__esModule?t:{default:t}}(a);r.event=function(t,e){return new r(o,t,e)},r.end=function(t,e){return new r(s,t,e)},r.error=function(t,e){return new r(i,t,e)},r.prototype.dispose=function(){this.active=!1},r.prototype.run=function(t){this.active&&this._run(t,this.value,this.sink)},r.prototype.error=function(t,e){if(!this.active)return(0,u.default)(e);this.sink.error(t,e)}},{"../fatalError":94}],107:[function(t,e,n){"use strict";function r(t,e,n,r){this.time=t,this.period=e,this.task=n,this.scheduler=r,this.active=!0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.run=function(){return this.task.run(this.time)},r.prototype.error=function(t){return this.task.error(this.time,t)},r.prototype.dispose=function(){return this.scheduler.cancel(this),this.task.dispose()}},{}],108:[function(t,e,n){"use strict";function r(t,e){this.timer=t,this.timeline=e,this._timer=null,this._nextArrival=1/0;var n=this;this._runReadyTasksBound=function(){n._runReadyTasks(n.now())}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var i=t("./ScheduledTask"),o=function(t){return t&&t.__esModule?t:{default:t}}(i),s=t("../task");r.prototype.now=function(){return this.timer.now()},r.prototype.asap=function(t){return this.schedule(0,-1,t)},r.prototype.delay=function(t,e){return this.schedule(t,-1,e)},r.prototype.periodic=function(t,e){return this.schedule(0,t,e)},r.prototype.schedule=function(t,e,n){var r=this.now(),i=new o.default(r+Math.max(0,t),e,n,this);return this.timeline.add(i),this._scheduleNextRun(r),i},r.prototype.cancel=function(t){t.active=!1,this.timeline.remove(t)&&this._reschedule()},r.prototype.cancelAll=function(t){this.timeline.removeAll(t),this._reschedule()},r.prototype._reschedule=function(){this.timeline.isEmpty()?this._unschedule():this._scheduleNextRun(this.now())},r.prototype._unschedule=function(){this.timer.clearTimer(this._timer),this._timer=null},r.prototype._scheduleNextRun=function(t){if(!this.timeline.isEmpty()){var e=this.timeline.nextArrival();null===this._timer?this._scheduleNextArrival(e,t):e<this._nextArrival&&(this._unschedule(),this._scheduleNextArrival(e,t))}},r.prototype._scheduleNextArrival=function(t,e){this._nextArrival=t;var n=Math.max(0,t-e);this._timer=this.timer.setTimer(this._runReadyTasksBound,n)},r.prototype._runReadyTasks=function(t){this._timer=null,this.timeline.runTasks(t,s.runTask),this._scheduleNextRun(this.now())}},{"../task":127,"./ScheduledTask":107}],109:[function(t,e,n){"use strict";function r(){this.tasks=[]}function i(t,e,n){for(var r=e.events,i=0;i<r.length;++i){var s=r[i];s.active&&(t(s),s.period>=0&&s.active&&(s.time=s.time+s.period,o(s,n)))}return n}function o(t,e){var n=e.length;if(0===n)return void e.push(u(t.time,[t]));var r=a(t.time,e);r>=n?e.push(u(t.time,[t])):t.time===e[r].time?e[r].events.push(t):e.splice(r,0,u(t.time,[t]))}function s(t,e){e.events=l.removeAll(t,e.events)}function a(t,e){for(var n,r,i=0,o=e.length;i<o;){if(n=Math.floor((i+o)/2),r=e[n],t===r.time)return n;t<r.time?o=n:i=n+1}return o}function u(t,e){return{time:t,events:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var c=t("@most/prelude"),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c);r.prototype.nextArrival=function(){return this.isEmpty()?1/0:this.tasks[0].time},r.prototype.isEmpty=function(){return 0===this.tasks.length},r.prototype.add=function(t){o(t,this.tasks)},r.prototype.remove=function(t){var e=a(t.time,this.tasks);if(e>=0&&e<this.tasks.length){var n=l.findIndex(t,this.tasks[e].events);if(n>=0)return this.tasks[e].events.splice(n,1),!0}return!1},r.prototype.removeAll=function(t){for(var e=this,n=0,r=this.tasks.length;n<r;++n)s(t,e.tasks[n])},r.prototype.runTasks=function(t,e){for(var n=this,r=this.tasks,o=r.length,s=0;s<o&&r[s].time<=t;)++s;this.tasks=r.slice(s);for(var a=0;a<s;++a)n.tasks=i(e,r[a],n.tasks)}},{"@most/prelude":3}],110:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=t("./Scheduler"),o=r(i),s=t("./ClockTimer"),a=r(s),u=t("./Timeline"),c=r(u),l=new o.default(new a.default,new c.default);n.default=l},{"./ClockTimer":105,"./Scheduler":108,"./Timeline":109}],111:[function(t,e,n){"use strict";function r(t){this.sink=t,this.events=[],this.active=!0}function i(t,e,n){this.sink=t,this.events=n,this.time=e}function o(t,e,n){this.time=t,this.value=e,this.sink=n}function s(t,e,n){this.time=t,this.value=e,this.sink=n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var a=t("../task");r.prototype.event=function(t,e){this.active&&(0===this.events.length&&(0,a.defer)(new i(this.sink,t,this.events)),this.events.push({time:t,value:e}))},r.prototype.end=function(t,e){this.active&&this._end(new o(t,e,this.sink))},r.prototype.error=function(t,e){this._end(new s(t,e,this.sink))},r.prototype._end=function(t){this.active=!1,(0,a.defer)(t)},i.prototype.run=function(){for(var t,e=this,n=this.events,r=this.sink,i=0,o=n.length;i<o;++i)t=n[i],e.time=t.time,r.event(t.time,t.value);n.length=0},i.prototype.error=function(t){this.sink.error(this.time,t)},o.prototype.run=function(){this.sink.end(this.time,this.value)},o.prototype.error=function(t){this.sink.error(this.time,t)},s.prototype.run=function(){this.sink.error(this.time,this.value)},s.prototype.error=function(t){throw t}},{"../task":127}],112:[function(t,e,n){"use strict";function r(t,e){this.sink=e,this.index=t,this.active=!0,this.value=void 0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var i=t("./Pipe"),o=function(t){return t&&t.__esModule?t:{default:t}}(i);r.prototype.event=function(t,e){this.active&&(this.value=e,this.sink.event(t,this))},r.prototype.end=function(t,e){this.active&&(this.active=!1,this.sink.end(t,{index:this.index,value:e}))},r.prototype.error=o.default.prototype.error},{"./Pipe":113}],113:[function(t,e,n){"use strict";function r(t){this.sink=t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.event=function(t,e){return this.sink.event(t,e)},r.prototype.end=function(t,e){return this.sink.end(t,e)},r.prototype.error=function(t,e){return this.sink.error(t,e)}},{}],114:[function(t,e,n){"use strict";function r(t){this.sink=t,this.active=!0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r,r.prototype.event=function(t,e){this.active&&this.sink.event(t,e)},r.prototype.end=function(t,e){this.active&&(this.disable(),this.sink.end(t,e))},r.prototype.error=function(t,e){this.disable(),this.sink.error(t,e)},r.prototype.disable=function(){return this.active=!1,this.sink}},{}],115:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t,e){this.event=t,this.source=e}function o(t){var e=t.target;e.source.removeListener(e.event,t.addEvent)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var s=t("../sink/DeferredSink"),a=function(t){return t&&t.__esModule?t:{default:t}}(s),u=t("../disposable/dispose"),c=r(u),l=t("./tryEvent"),f=r(l);i.prototype.run=function(t,e){function n(t){var n=arguments,i=arguments.length;if(i>1){for(var o=new Array(i),s=0;s<i;++s)o[s]=n[s];f.tryEvent(e.now(),o,r)}else f.tryEvent(e.now(),t,r)}var r=new a.default(t);return this.source.addListener(this.event,n),c.create(o,{target:this,addEvent:n})}},{"../disposable/dispose":93,"../sink/DeferredSink":111,"./tryEvent":125}],116:[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t,e,n){this.event=t,this.source=e,this.capture=n}function o(t){var e=t.target;e.source.removeEventListener(e.event,t.addEvent,e.capture)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var s=t("../disposable/dispose"),a=r(s),u=t("./tryEvent"),c=r(u);i.prototype.run=function(t,e){function n(n){c.tryEvent(e.now(),n,t)}return this.source.addEventListener(this.event,n,this.capture),a.create(o,{target:this,addEvent:n})}},{"../disposable/dispose":93,"./tryEvent":125}],117:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return new p.default(new o(t))}function o(t){this.value=t}function s(t,e,n){n.event(t,e),n.end(t,void 0)}function a(){return m}function u(){}function c(t){return t.dispose()}function l(){return b}function f(){}Object.defineProperty(n,"__esModule",{value:!0}),n.of=i,n.empty=a,n.never=l;var h=t("../Stream"),p=r(h),d=t("../disposable/dispose"),y=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(d),v=t("../scheduler/PropagateTask"),g=r(v);o.prototype.run=function(t,e){return e.asap(new g.default(s,this.value,t))},u.prototype.run=function(t,e){var n=g.default.end(void 0,t);return e.asap(n),y.create(c,n)};var m=new p.default(new u);f.prototype.run=function(){return y.empty()};var b=new p.default(new f)},{"../Stream":65,"../disposable/dispose":93,"../scheduler/PropagateTask":106}],118:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(t instanceof s.default)return t;var e=(0,f.default)(t);if(null!=e)return(0,h.fromObservable)(e);if(Array.isArray(t)||(0,p.isArrayLike)(t))return(0,a.fromArray)(t);if((0,u.isIterable)(t))return(0,c.fromIterable)(t);throw new TypeError("from(x) must be observable, iterable, or array-like: "+t)}Object.defineProperty(n,"__esModule",{value:!0}),n.from=i;var o=t("../Stream"),s=r(o),a=t("./fromArray"),u=t("../iterable"),c=t("./fromIterable"),l=t("../observable/getObservable"),f=r(l),h=t("../observable/fromObservable"),p=t("@most/prelude")},{"../Stream":65,"../iterable":100,"../observable/fromObservable":101,"../observable/getObservable":102,"./fromArray":119,"./fromIterable":121,"@most/prelude":3}],119:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return new u.default(new o(t))}function o(t){this.array=t}function s(t,e,n){for(var r=0,i=e.length;r<i&&this.active;++r)n.event(t,e[r]);this.active&&n.end(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.fromArray=i;var a=t("../Stream"),u=r(a),c=t("../scheduler/PropagateTask"),l=r(c);o.prototype.run=function(t,e){return e.asap(new l.default(s,this.array,t))}},{"../Stream":65,"../scheduler/PropagateTask":106}],120:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){var r;if("function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener)arguments.length<3&&(n=!1),r=new u.default(t,e,n);else{if("function"!=typeof e.addListener||"function"!=typeof e.removeListener)throw new Error("source must support addEventListener/removeEventListener or addListener/removeListener");r=new l.default(t,e)}return new s.default(r)}Object.defineProperty(n,"__esModule",{value:!0}),n.fromEvent=i;var o=t("../Stream"),s=r(o),a=t("./EventTargetSource"),u=r(a),c=t("./EventEmitterSource"),l=r(c)},{"../Stream":65,"./EventEmitterSource":115,"./EventTargetSource":116}],121:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return new u.default(new o(t))}function o(t){this.iterable=t}function s(t,e,n){for(var r=e.next();!r.done&&this.active;)n.event(t,r.value),r=e.next();n.end(t,r.value)}Object.defineProperty(n,"__esModule",{value:!0}),n.fromIterable=i;var a=t("../Stream"),u=r(a),c=t("../iterable"),l=t("../scheduler/PropagateTask"),f=r(l);o.prototype.run=function(t,e){return e.asap(new f.default(s,(0,c.getIterator)(this.iterable),t))}},{"../Stream":65,"../iterable":100,"../scheduler/PropagateTask":106}],122:[function(t,e,n){"use strict";function r(t){return new f.default(new i(t,p.tail(arguments)))}function i(t,e){this.f=t,this.args=e}function o(t,e,n){function r(t){i.sink.error(i.scheduler.now(),t)}this.iterator=t,this.sink=e,this.scheduler=n,this.active=!0;var i=this;Promise.resolve(this).then(s).catch(r)}function s(t,e){return t.active?a(t,t.iterator.next(e)):e}function a(t,e){return e.done?t.sink.end(t.scheduler.now(),e.value):Promise.resolve(e.value).then(function(e){return u(t,e)},function(e){return c(t,e)})}function u(t,e){return t.sink.event(t.scheduler.now(),e),s(t,e)}function c(t,e){return a(t,t.iterator.throw(e))}Object.defineProperty(n,"__esModule",{value:!0}),n.generate=r;var l=t("../Stream"),f=function(t){return t&&t.__esModule?t:{default:t}}(l),h=t("@most/prelude"),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(h);i.prototype.run=function(t,e){return new o(this.f.apply(void 0,this.args),t,e)},o.prototype.dispose=function(){this.active=!1}},{"../Stream":65,"@most/prelude":3}],123:[function(t,e,n){"use strict";function r(t,e){return new c.default(new i(t,e))}function i(t,e){this.f=t,this.value=e}function o(t,e,n,r){function i(t){u.sink.error(u.scheduler.now(),t)}function o(t){return s(t,a)}this.f=t,this.sink=n,this.scheduler=r,this.active=!0;var a=e,u=this;Promise.resolve(this).then(o).catch(i)}function s(t,e){if(t.sink.event(t.scheduler.now(),e),!t.active)return e;var n=t.f;return Promise.resolve(n(e)).then(function(e){return a(t,e)})}function a(t,e){return t.active?s(t,e):t.value}Object.defineProperty(n,"__esModule",{value:!0}),n.iterate=r;var u=t("../Stream"),c=function(t){return t&&t.__esModule?t:{default:t}}(u);i.prototype.run=function(t,e){return new o(this.f,this.value,t,e)},o.prototype.dispose=function(){this.active=!1}},{"../Stream":65}],124:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){return new a.default(new o(t,e))}function o(t,e){this.period=t,this.value=e}Object.defineProperty(n,"__esModule",{value:!0}),n.periodic=i;var s=t("../Stream"),a=r(s),u=t("../scheduler/PropagateTask"),c=r(u);o.prototype.run=function(t,e){return e.periodic(this.period,c.default.event(this.value,t))}},{"../Stream":65,"../scheduler/PropagateTask":106}],125:[function(t,e,n){"use strict";function r(t,e,n){try{n.event(t,e)}catch(e){n.error(t,e)}}function i(t,e,n){try{n.end(t,e)}catch(e){n.error(t,e)}}Object.defineProperty(n,"__esModule",{value:!0}),n.tryEvent=r,n.tryEnd=i},{}],126:[function(t,e,n){"use strict";function r(t,e){return new c.default(new i(t,e))}function i(t,e){this.f=t,this.value=e}function o(t,e,n,r){function i(t){a.sink.error(a.scheduler.now(),t)}function o(t){return s(t,e)}this.f=t,this.sink=n,this.scheduler=r,this.active=!0;var a=this;Promise.resolve(this).then(o).catch(i)}function s(t,e){var n=t.f;return Promise.resolve(n(e)).then(function(e){return a(t,e)})}function a(t,e){return e.done?(t.sink.end(t.scheduler.now(),e.value),e.value):(t.sink.event(t.scheduler.now(),e.value),t.active?s(t,e.seed):e.value)}Object.defineProperty(n,"__esModule",{value:!0}),n.unfold=r;var u=t("../Stream"),c=function(t){return t&&t.__esModule?t:{default:t}}(u);i.prototype.run=function(t,e){return new o(this.f,this.value,t,e)},o.prototype.dispose=function(){this.active=!1}},{"../Stream":65}],127:[function(t,e,n){"use strict";function r(t){return Promise.resolve(t).then(i)}function i(t){try{return t.run()}catch(e){return t.error(e)}}Object.defineProperty(n,"__esModule",{value:!0}),n.defer=r,n.runTask=i},{}],128:[function(t,e,n){n.endianness=function(){return"LE"},n.hostname=function(){return"undefined"!=typeof location?location.hostname:""},n.loadavg=function(){return[]},n.uptime=function(){return 0},n.freemem=function(){return Number.MAX_VALUE},n.totalmem=function(){return Number.MAX_VALUE},n.cpus=function(){return[]},n.type=function(){return"Browser"},n.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},n.networkInterfaces=n.getNetworkInterfaces=function(){return{}},n.arch=function(){return"javascript"},n.platform=function(){return"browser"},n.tmpdir=n.tmpDir=function(){return"/tmp"},n.EOL="\n"},{}],129:[function(t,e,n){(function(n){var r=t("events");n.bus=n.bus||new r,e.exports={bus:n.bus,makeEmitter:function(){return new r}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{events:24}],130:[function(t,e,n){(function(t){"use strict";function n(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return t.nextTick(function(){e.apply(null,o)})}}!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:n}:e.exports=t}).call(this,t("_process"))},{_process:131}],131:[function(t,e,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function s(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?y=d.concat(y):g=-1,y.length&&u())}function u(){if(!v){var t=o(a);v=!0;for(var e=y.length;e;){for(d=y,y=[];++g<e;)d&&d[g].run();g=-1,e=y.length}d=null,v=!1,s(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var f,h,p=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var d,y=[],v=!1,g=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];y.push(new c(t,e)),1!==y.length||v||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.prependListener=l,p.prependOnceListener=l,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],132:[function(t,e,n){(function(t){!function(r){function i(t){throw new RangeError(R[t])}function o(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function s(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(N,"."),r+o(t.split("."),e).join(".")}function a(t){for(var e,n,r=[],i=0,o=t.length;i<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function u(t){return o(t,function(t){var e="";return t>65535&&(t-=65536,e+=I(t>>>10&1023|55296),t=56320|1023&t),e+=I(t)}).join("")}function c(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:x}function l(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function f(t,e,n){var r=0;for(t=n?L(t/A):t>>1,t+=L(t/e);t>M*k>>1;r+=x)t=L(t/M);return L(r+(M+1)*t/(t+T))}function h(t){var e,n,r,o,s,a,l,h,p,d,y=[],v=t.length,g=0,m=O,b=C;for(n=t.lastIndexOf(j),n<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&i("not-basic"),y.push(t.charCodeAt(r));for(o=n>0?n+1:0;o<v;){for(s=g,a=1,l=x;o>=v&&i("invalid-input"),h=c(t.charCodeAt(o++)),(h>=x||h>L((w-g)/a))&&i("overflow"),g+=h*a,p=l<=b?S:l>=b+k?k:l-b,!(h<p);l+=x)d=x-p,a>L(w/d)&&i("overflow"),a*=d;e=y.length+1,b=f(g-s,e,0==s),L(g/e)>w-m&&i("overflow"),m+=L(g/e),g%=e,y.splice(g++,0,m)}return u(y)}function p(t){var e,n,r,o,s,u,c,h,p,d,y,v,g,m,b,_=[];for(t=a(t),v=t.length,e=O,n=0,s=C,u=0;u<v;++u)(y=t[u])<128&&_.push(I(y));for(r=o=_.length,o&&_.push(j);r<v;){for(c=w,u=0;u<v;++u)(y=t[u])>=e&&y<c&&(c=y);for(g=r+1,c-e>L((w-n)/g)&&i("overflow"),n+=(c-e)*g,e=c,u=0;u<v;++u)if(y=t[u],y<e&&++n>w&&i("overflow"),y==e){for(h=n,p=x;d=p<=s?S:p>=s+k?k:p-s,!(h<d);p+=x)b=h-d,m=x-d,_.push(I(l(d+b%m,0))),h=L(b/m);_.push(I(l(h,0))),s=f(n,g,r==o),n=0,++r}++n,++e}return _.join("")}function d(t){return s(t,function(t){return E.test(t)?h(t.slice(4).toLowerCase()):t})}function y(t){return s(t,function(t){return P.test(t)?"xn--"+p(t):t})}var v="object"==typeof n&&n&&!n.nodeType&&n,g="object"==typeof e&&e&&!e.nodeType&&e,m="object"==typeof t&&t;m.global!==m&&m.window!==m&&m.self!==m||(r=m);var b,_,w=2147483647,x=36,S=1,k=26,T=38,A=700,C=72,O=128,j="-",E=/^xn--/,P=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=x-S,L=Math.floor,I=String.fromCharCode;if(b={version:"1.4.1",ucs2:{decode:a,encode:u},decode:h,encode:p,toASCII:y,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(v&&g)if(e.exports==v)g.exports=b;else for(_ in b)b.hasOwnProperty(_)&&(v[_]=b[_]);else r.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],133:[function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,n,o){e=e||"&",n=n||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,h,p,d,y=t[l].replace(a,"%20"),v=y.indexOf(n);v>=0?(f=y.substr(0,v),h=y.substr(v+1)):(f=y,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),r(s,p)?i(s[p])?s[p].push(d):s[p]=[s[p],d]:s[p]=d}return s};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],134:[function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?r(s(t),function(s){var a=encodeURIComponent(i(s))+n;return o(t[s])?r(t[s],function(t){return a+encodeURIComponent(i(t))}).join(e):a+encodeURIComponent(i(t[s]))}).join(e):a?encodeURIComponent(i(a))+n+encodeURIComponent(i(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},{}],135:[function(t,e,n){"use strict";n.decode=n.parse=t("./decode"),n.encode=n.stringify=t("./encode")},{"./decode":133,"./encode":134}],136:[function(t,e,n){"use strict";function r(){this.containsSparse=!1,this.cacheKey="",this.cacheVal=null}var i=t("./querystringserializer.js");e.exports=r;var o=/\+/g,s=/^[0-9]+$/,a=Array.isArray,u={}.hasOwnProperty;r.maxLength=32768,r.maxDepth=4,r.maxKeys=256,r.parse=function(t){if("string"==typeof t){var e=r.maxLength;if(t.length>e)throw new RangeError("str is too large (QueryStringParser.maxLength="+e+")");var n=new r;return n.parseString(t,!1)}if(null!==t&&"object"==typeof t){var n=new r;return n.parseObject(t)}return{}},r.stringify=function(t){return(new i).serialize(t)},r.prototype.decode=function(t,e,n){if(!1===e)return t;!0===n&&(t=t.replace(o," "));try{return decodeURIComponent(t)}catch(e){return t}},r.prototype.maybeArrayIndex=function(t,e){var n=t.length;if(0===n)return e;var r=t.charCodeAt(0);if(48===r)return n>1?-1:0;if(48<=r&&r<=57){if(1===n)return r-48;if(s.test(t)){var i=parseInt(t,10);if(0<i&&i<=1073741822)return i}}return-1},r.prototype.getSlot=function(t,e,n){var r;if(u.call(t,e))r=t[e];else{r=this.maybeArrayIndex(n,0)>-1?[]:{},t[e]=r}return r},r.prototype.placeNestedValue=function(t,e,n,i,o,s){var u=this.getSlot(t,o,s),c=-1;a(u)&&(c=this.maybeArrayIndex(s,u.length));for(var l=e.length,f=2,h=r.maxDepth,p=-1;i<l;++i){var d=e.charCodeAt(i);if(91===d)p=i+1;else if(93===d&&p>-1){if(o=s,s=p===i?"":e.substring(p,i),p=-1,++f>h)throw new RangeError("Nesting depth of keys is too large (QueryStringParser.maxDepth="+h+")");u=this.getSlot(u,o,s),c=a(u)?this.maybeArrayIndex(s,u.length):-1}}c>-1?""!==n&&(c===u.length?u.push(n):(this.containsSparse=!0,u[c]=n)):this.insert(u,s,n)},r.prototype.insert=function(t,e,n){var r=null;if(u.call(t,e)){var i=t[e];a(i)?(i.push(n),r=i):(r=[i,n],t[e]=r)}else t[e]=n;return r},r.prototype.push=function(t,e,n){var r=null;if(u.call(t,e)){var i=t[e];i.push(n),r=i}else r=[n],t[e]=r;return r},r.prototype.maybePlaceNestedValue=function(t,e,n){var r=e.length;if(93!==e.charCodeAt(r-1))return void this.placeValue(t,e,n,!1);for(var i,o,s=-1,a=0;a<r;++a){var u=e.charCodeAt(a);if(91===u)s=a+1,o=e.slice(0,a);else if(93===u){if(s<0)return void this.placeValue(t,e,n,!1);i=s===a?"":e.slice(s,a),a++;break}}if(void 0===i)return void this.placeValue(t,e,n,!1);""===i&&""!==n&&a===r?e===this.cacheKey?this.cacheVal.push(n):(this.cacheKey=e,this.cacheVal=this.push(t,o,n)):this.placeNestedValue(t,e,n,a,o,i)},r.prototype.placeValue=function(t,e,n,r){if(!0===r)return void this.maybePlaceNestedValue(t,e,n);if(e===this.cacheKey)return void this.cacheVal.push(n);var i=this.insert(t,e,n);null!==i&&(this.cacheKey=e,this.cacheVal=i)},r.prototype.compact=function(t){if(a(t)){for(var e=[],n=Object.keys(t),r=0,i=n.length;r<i;++r)e.push(t[n[r]]);return e}if("object"!=typeof t)return t;for(var n=Object.keys(t),r=0,i=n.length;r<i;++r){var o=n[r];t[o]=this.compact(t[o])}},r.prototype.parseObject=function(t){var e=Object.keys(t),n=e.length;if(0===n)return{};n--;for(var r,i="",o=0;o<n;++o)r=e[o],i+=r+"="+t[r]+"&";return r=e[o],i+=r+"="+t[r],this.parseString(i,!0)},r.prototype.parseString=function(t,e){for(var n=r.maxKeys,i=0,o=!1,s=!1,a=!1,u=t.length,c=0,l={},f=0,h=0,p=0,d=0,y=0,v=u-1,g=!1;c<u;++c){var m=t.charCodeAt(c);if(91===m)y++;else if(y>0&&93===m)a=!0,y--;else if(0===y&&61===m){var b=c+1;h=c-1,d=p=b;var _=t.slice(f,h+1);for(_=this.decode(_,o,g),o=!1;b<u;++b)if(m=t.charCodeAt(b),43!==m&&37!==m||e||(43===m&&(g=!0),s=!0),38===m||b===v){d=b,c=b,38===m&&d--;var w=t.slice(p,d+1);if(w=this.decode(w,s,g),this.placeValue(l,_,w,a),g=s=!1,a=!1,f=b+1,++i>n)throw new RangeError("Amount of keys is too large (QueryStringParser.maxKeys="+n+")");break}}else 43!==m&&37!==m||e||(43===m&&(g=!0),o=!0)}if(f!==u){var w="",_=t.slice(f,u);_=this.decode(_,o,g),this.placeValue(l,_,w,a)}return this.containsSparse&&this.compact(l),l}},{"./querystringserializer.js":137}],137:[function(t,e,n){"use strict";function r(t){if(a(t))return!0;if(null===t||"object"!=typeof t)return!1;var e=u(t);return e===c||null===e}function i(){}e.exports=i;var o=encodeURIComponent,s=[],a=Array.isArray,u=Object.getPrototypeOf,c=u({});i.prototype.serialize=function(t){if(null===t||"object"!=typeof t)throw new TypeError("the obj to stringify must be an object");for(var e=Object.keys(t),n=e.length,i=s,u=[],c=[],l=t,f="",h=0;h<n;++h){var p=e===i?h:e[h],d=l[p];if(r(d))u.push(f,l,e,n,h),f=""===f?p:f+"["+o(p)+"]",a(d)?(e=i,n=d.length):(e=Object.keys(d),n=e.length),h=-1,l=d;else{"string"!=typeof d&&(d=""+d);var y=""===f?o(p):f+"["+o(p)+"]";c.push(y+"="+o(d))}h===n-1&&u.length>0&&(h=u.pop(),n=u.pop(),e=u.pop(),l=u.pop(),f=u.pop())}return c.join("&")}},{}],138:[function(t,e,n){e.exports={F:t("./src/F"),T:t("./src/T"),__:t("./src/__"),add:t("./src/add"),addIndex:t("./src/addIndex"),adjust:t("./src/adjust"),all:t("./src/all"),allPass:t("./src/allPass"),always:t("./src/always"),and:t("./src/and"),any:t("./src/any"),anyPass:t("./src/anyPass"),ap:t("./src/ap"),aperture:t("./src/aperture"),append:t("./src/append"),apply:t("./src/apply"),applySpec:t("./src/applySpec"),ascend:t("./src/ascend"),assoc:t("./src/assoc"),assocPath:t("./src/assocPath"),binary:t("./src/binary"),bind:t("./src/bind"),both:t("./src/both"),call:t("./src/call"),chain:t("./src/chain"),clamp:t("./src/clamp"),clone:t("./src/clone"),comparator:t("./src/comparator"),complement:t("./src/complement"),compose:t("./src/compose"),composeK:t("./src/composeK"),composeP:t("./src/composeP"),concat:t("./src/concat"),cond:t("./src/cond"),construct:t("./src/construct"),constructN:t("./src/constructN"),contains:t("./src/contains"),converge:t("./src/converge"),countBy:t("./src/countBy"),curry:t("./src/curry"),curryN:t("./src/curryN"),dec:t("./src/dec"),descend:t("./src/descend"),defaultTo:t("./src/defaultTo"),difference:t("./src/difference"),differenceWith:t("./src/differenceWith"),dissoc:t("./src/dissoc"),
  dissocPath:t("./src/dissocPath"),divide:t("./src/divide"),drop:t("./src/drop"),dropLast:t("./src/dropLast"),dropLastWhile:t("./src/dropLastWhile"),dropRepeats:t("./src/dropRepeats"),dropRepeatsWith:t("./src/dropRepeatsWith"),dropWhile:t("./src/dropWhile"),either:t("./src/either"),empty:t("./src/empty"),eqBy:t("./src/eqBy"),eqProps:t("./src/eqProps"),equals:t("./src/equals"),evolve:t("./src/evolve"),filter:t("./src/filter"),find:t("./src/find"),findIndex:t("./src/findIndex"),findLast:t("./src/findLast"),findLastIndex:t("./src/findLastIndex"),flatten:t("./src/flatten"),flip:t("./src/flip"),forEach:t("./src/forEach"),forEachObjIndexed:t("./src/forEachObjIndexed"),fromPairs:t("./src/fromPairs"),groupBy:t("./src/groupBy"),groupWith:t("./src/groupWith"),gt:t("./src/gt"),gte:t("./src/gte"),has:t("./src/has"),hasIn:t("./src/hasIn"),head:t("./src/head"),identical:t("./src/identical"),identity:t("./src/identity"),ifElse:t("./src/ifElse"),inc:t("./src/inc"),indexBy:t("./src/indexBy"),indexOf:t("./src/indexOf"),init:t("./src/init"),insert:t("./src/insert"),insertAll:t("./src/insertAll"),intersection:t("./src/intersection"),intersectionWith:t("./src/intersectionWith"),intersperse:t("./src/intersperse"),into:t("./src/into"),invert:t("./src/invert"),invertObj:t("./src/invertObj"),invoker:t("./src/invoker"),is:t("./src/is"),isArrayLike:t("./src/isArrayLike"),isEmpty:t("./src/isEmpty"),isNil:t("./src/isNil"),join:t("./src/join"),juxt:t("./src/juxt"),keys:t("./src/keys"),keysIn:t("./src/keysIn"),last:t("./src/last"),lastIndexOf:t("./src/lastIndexOf"),length:t("./src/length"),lens:t("./src/lens"),lensIndex:t("./src/lensIndex"),lensPath:t("./src/lensPath"),lensProp:t("./src/lensProp"),lift:t("./src/lift"),liftN:t("./src/liftN"),lt:t("./src/lt"),lte:t("./src/lte"),map:t("./src/map"),mapAccum:t("./src/mapAccum"),mapAccumRight:t("./src/mapAccumRight"),mapObjIndexed:t("./src/mapObjIndexed"),match:t("./src/match"),mathMod:t("./src/mathMod"),max:t("./src/max"),maxBy:t("./src/maxBy"),mean:t("./src/mean"),median:t("./src/median"),memoize:t("./src/memoize"),merge:t("./src/merge"),mergeAll:t("./src/mergeAll"),mergeWith:t("./src/mergeWith"),mergeWithKey:t("./src/mergeWithKey"),min:t("./src/min"),minBy:t("./src/minBy"),modulo:t("./src/modulo"),multiply:t("./src/multiply"),nAry:t("./src/nAry"),negate:t("./src/negate"),none:t("./src/none"),not:t("./src/not"),nth:t("./src/nth"),nthArg:t("./src/nthArg"),objOf:t("./src/objOf"),of:t("./src/of"),omit:t("./src/omit"),once:t("./src/once"),or:t("./src/or"),over:t("./src/over"),pair:t("./src/pair"),partial:t("./src/partial"),partialRight:t("./src/partialRight"),partition:t("./src/partition"),path:t("./src/path"),pathEq:t("./src/pathEq"),pathOr:t("./src/pathOr"),pathSatisfies:t("./src/pathSatisfies"),pick:t("./src/pick"),pickAll:t("./src/pickAll"),pickBy:t("./src/pickBy"),pipe:t("./src/pipe"),pipeK:t("./src/pipeK"),pipeP:t("./src/pipeP"),pluck:t("./src/pluck"),prepend:t("./src/prepend"),product:t("./src/product"),project:t("./src/project"),prop:t("./src/prop"),propEq:t("./src/propEq"),propIs:t("./src/propIs"),propOr:t("./src/propOr"),propSatisfies:t("./src/propSatisfies"),props:t("./src/props"),range:t("./src/range"),reduce:t("./src/reduce"),reduceBy:t("./src/reduceBy"),reduceRight:t("./src/reduceRight"),reduceWhile:t("./src/reduceWhile"),reduced:t("./src/reduced"),reject:t("./src/reject"),remove:t("./src/remove"),repeat:t("./src/repeat"),replace:t("./src/replace"),reverse:t("./src/reverse"),scan:t("./src/scan"),sequence:t("./src/sequence"),set:t("./src/set"),slice:t("./src/slice"),sort:t("./src/sort"),sortBy:t("./src/sortBy"),sortWith:t("./src/sortWith"),split:t("./src/split"),splitAt:t("./src/splitAt"),splitEvery:t("./src/splitEvery"),splitWhen:t("./src/splitWhen"),subtract:t("./src/subtract"),sum:t("./src/sum"),symmetricDifference:t("./src/symmetricDifference"),symmetricDifferenceWith:t("./src/symmetricDifferenceWith"),tail:t("./src/tail"),take:t("./src/take"),takeLast:t("./src/takeLast"),takeLastWhile:t("./src/takeLastWhile"),takeWhile:t("./src/takeWhile"),tap:t("./src/tap"),test:t("./src/test"),times:t("./src/times"),toLower:t("./src/toLower"),toPairs:t("./src/toPairs"),toPairsIn:t("./src/toPairsIn"),toString:t("./src/toString"),toUpper:t("./src/toUpper"),transduce:t("./src/transduce"),transpose:t("./src/transpose"),traverse:t("./src/traverse"),trim:t("./src/trim"),tryCatch:t("./src/tryCatch"),type:t("./src/type"),unapply:t("./src/unapply"),unary:t("./src/unary"),uncurryN:t("./src/uncurryN"),unfold:t("./src/unfold"),union:t("./src/union"),unionWith:t("./src/unionWith"),uniq:t("./src/uniq"),uniqBy:t("./src/uniqBy"),uniqWith:t("./src/uniqWith"),unless:t("./src/unless"),unnest:t("./src/unnest"),until:t("./src/until"),update:t("./src/update"),useWith:t("./src/useWith"),values:t("./src/values"),valuesIn:t("./src/valuesIn"),view:t("./src/view"),when:t("./src/when"),where:t("./src/where"),whereEq:t("./src/whereEq"),without:t("./src/without"),xprod:t("./src/xprod"),zip:t("./src/zip"),zipObj:t("./src/zipObj"),zipWith:t("./src/zipWith")}},{"./src/F":139,"./src/T":140,"./src/__":141,"./src/add":142,"./src/addIndex":143,"./src/adjust":144,"./src/all":145,"./src/allPass":146,"./src/always":147,"./src/and":148,"./src/any":149,"./src/anyPass":150,"./src/ap":151,"./src/aperture":152,"./src/append":153,"./src/apply":154,"./src/applySpec":155,"./src/ascend":156,"./src/assoc":157,"./src/assocPath":158,"./src/binary":159,"./src/bind":160,"./src/both":161,"./src/call":162,"./src/chain":163,"./src/clamp":164,"./src/clone":165,"./src/comparator":166,"./src/complement":167,"./src/compose":168,"./src/composeK":169,"./src/composeP":170,"./src/concat":171,"./src/cond":172,"./src/construct":173,"./src/constructN":174,"./src/contains":175,"./src/converge":176,"./src/countBy":177,"./src/curry":178,"./src/curryN":179,"./src/dec":180,"./src/defaultTo":181,"./src/descend":182,"./src/difference":183,"./src/differenceWith":184,"./src/dissoc":185,"./src/dissocPath":186,"./src/divide":187,"./src/drop":188,"./src/dropLast":189,"./src/dropLastWhile":190,"./src/dropRepeats":191,"./src/dropRepeatsWith":192,"./src/dropWhile":193,"./src/either":194,"./src/empty":195,"./src/eqBy":196,"./src/eqProps":197,"./src/equals":198,"./src/evolve":199,"./src/filter":200,"./src/find":201,"./src/findIndex":202,"./src/findLast":203,"./src/findLastIndex":204,"./src/flatten":205,"./src/flip":206,"./src/forEach":207,"./src/forEachObjIndexed":208,"./src/fromPairs":209,"./src/groupBy":210,"./src/groupWith":211,"./src/gt":212,"./src/gte":213,"./src/has":214,"./src/hasIn":215,"./src/head":216,"./src/identical":217,"./src/identity":218,"./src/ifElse":219,"./src/inc":220,"./src/indexBy":221,"./src/indexOf":222,"./src/init":223,"./src/insert":224,"./src/insertAll":225,"./src/intersection":296,"./src/intersectionWith":297,"./src/intersperse":298,"./src/into":299,"./src/invert":300,"./src/invertObj":301,"./src/invoker":302,"./src/is":303,"./src/isArrayLike":304,"./src/isEmpty":305,"./src/isNil":306,"./src/join":307,"./src/juxt":308,"./src/keys":309,"./src/keysIn":310,"./src/last":311,"./src/lastIndexOf":312,"./src/length":313,"./src/lens":314,"./src/lensIndex":315,"./src/lensPath":316,"./src/lensProp":317,"./src/lift":318,"./src/liftN":319,"./src/lt":320,"./src/lte":321,"./src/map":322,"./src/mapAccum":323,"./src/mapAccumRight":324,"./src/mapObjIndexed":325,"./src/match":326,"./src/mathMod":327,"./src/max":328,"./src/maxBy":329,"./src/mean":330,"./src/median":331,"./src/memoize":332,"./src/merge":333,"./src/mergeAll":334,"./src/mergeWith":335,"./src/mergeWithKey":336,"./src/min":337,"./src/minBy":338,"./src/modulo":339,"./src/multiply":340,"./src/nAry":341,"./src/negate":342,"./src/none":343,"./src/not":344,"./src/nth":345,"./src/nthArg":346,"./src/objOf":347,"./src/of":348,"./src/omit":349,"./src/once":350,"./src/or":351,"./src/over":352,"./src/pair":353,"./src/partial":354,"./src/partialRight":355,"./src/partition":356,"./src/path":357,"./src/pathEq":358,"./src/pathOr":359,"./src/pathSatisfies":360,"./src/pick":361,"./src/pickAll":362,"./src/pickBy":363,"./src/pipe":364,"./src/pipeK":365,"./src/pipeP":366,"./src/pluck":367,"./src/prepend":368,"./src/product":369,"./src/project":370,"./src/prop":371,"./src/propEq":372,"./src/propIs":373,"./src/propOr":374,"./src/propSatisfies":375,"./src/props":376,"./src/range":377,"./src/reduce":378,"./src/reduceBy":379,"./src/reduceRight":380,"./src/reduceWhile":381,"./src/reduced":382,"./src/reject":383,"./src/remove":384,"./src/repeat":385,"./src/replace":386,"./src/reverse":387,"./src/scan":388,"./src/sequence":389,"./src/set":390,"./src/slice":391,"./src/sort":392,"./src/sortBy":393,"./src/sortWith":394,"./src/split":395,"./src/splitAt":396,"./src/splitEvery":397,"./src/splitWhen":398,"./src/subtract":399,"./src/sum":400,"./src/symmetricDifference":401,"./src/symmetricDifferenceWith":402,"./src/tail":403,"./src/take":404,"./src/takeLast":405,"./src/takeLastWhile":406,"./src/takeWhile":407,"./src/tap":408,"./src/test":409,"./src/times":410,"./src/toLower":411,"./src/toPairs":412,"./src/toPairsIn":413,"./src/toString":414,"./src/toUpper":415,"./src/transduce":416,"./src/transpose":417,"./src/traverse":418,"./src/trim":419,"./src/tryCatch":420,"./src/type":421,"./src/unapply":422,"./src/unary":423,"./src/uncurryN":424,"./src/unfold":425,"./src/union":426,"./src/unionWith":427,"./src/uniq":428,"./src/uniqBy":429,"./src/uniqWith":430,"./src/unless":431,"./src/unnest":432,"./src/until":433,"./src/update":434,"./src/useWith":435,"./src/values":436,"./src/valuesIn":437,"./src/view":438,"./src/when":439,"./src/where":440,"./src/whereEq":441,"./src/without":442,"./src/xprod":443,"./src/zip":444,"./src/zipObj":445,"./src/zipWith":446}],139:[function(t,e,n){var r=t("./always");e.exports=r(!1)},{"./always":147}],140:[function(t,e,n){var r=t("./always");e.exports=r(!0)},{"./always":147}],141:[function(t,e,n){e.exports={"@@functional/placeholder":!0}},{}],142:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return Number(t)+Number(e)})},{"./internal/_curry2":240}],143:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_curry1"),o=t("./curryN");e.exports=i(function(t){return o(t.length,function(){var e=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var t=n.apply(this,r(arguments,[e,i]));return e+=1,t},t.apply(this,o)})})},{"./curryN":179,"./internal/_concat":235,"./internal/_curry1":239}],144:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_curry3");e.exports=i(function(t,e,n){if(e>=n.length||e<-n.length)return n;var i=e<0?n.length:0,o=i+e,s=r(n);return s[o]=t(n[o]),s})},{"./internal/_concat":235,"./internal/_curry3":241}],145:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xall");e.exports=r(i(["all"],o,function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xall":276}],146:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./curryN"),o=t("./max"),s=t("./pluck"),a=t("./reduce");e.exports=r(function(t){return i(a(o,0,s("length",t)),function(){for(var e=0,n=t.length;e<n;){if(!t[e].apply(this,arguments))return!1;e+=1}return!0})})},{"./curryN":179,"./internal/_curry1":239,"./max":328,"./pluck":367,"./reduce":378}],147:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){return function(){return t}})},{"./internal/_curry1":239}],148:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t&&e})},{"./internal/_curry2":240}],149:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xany");e.exports=r(i(["any"],o,function(t,e){for(var n=0;n<e.length;){if(t(e[n]))return!0;n+=1}return!1}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xany":277}],150:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./curryN"),o=t("./max"),s=t("./pluck"),a=t("./reduce");e.exports=r(function(t){return i(a(o,0,s("length",t)),function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1})})},{"./curryN":179,"./internal/_curry1":239,"./max":328,"./pluck":367,"./reduce":378}],151:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_curry2"),o=t("./internal/_reduce"),s=t("./map");e.exports=i(function(t,e){return"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:o(function(t,n){return r(t,s(n,e))},[],t)})},{"./internal/_concat":235,"./internal/_curry2":240,"./internal/_reduce":271,"./map":322}],152:[function(t,e,n){var r=t("./internal/_aperture"),i=t("./internal/_curry2"),o=t("./internal/_dispatchable"),s=t("./internal/_xaperture");e.exports=i(o([],s,r))},{"./internal/_aperture":227,"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xaperture":278}],153:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_curry2");e.exports=i(function(t,e){return r(e,[t])})},{"./internal/_concat":235,"./internal/_curry2":240}],154:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t.apply(this,e)})},{"./internal/_curry2":240}],155:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./apply"),o=t("./curryN"),s=t("./map"),a=t("./max"),u=t("./pluck"),c=t("./reduce"),l=t("./values");e.exports=r(function t(e){return e=s(function(e){return"function"==typeof e?e:t(e)},e),o(c(a,0,u("length",l(e))),function(){var t=arguments;return s(function(e){return i(e,t)},e)})})},{"./apply":154,"./curryN":179,"./internal/_curry1":239,"./map":322,"./max":328,"./pluck":367,"./reduce":378,"./values":436}],156:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){var r=t(e),i=t(n);return r<i?-1:r>i?1:0})},{"./internal/_curry3":241}],157:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){var r={};for(var i in n)r[i]=n[i];return r[t]=e,r})},{"./internal/_curry3":241}],158:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./internal/_has"),o=t("./internal/_isArray"),s=t("./internal/_isInteger"),a=t("./assoc");e.exports=r(function t(e,n,r){if(0===e.length)return n;var u=e[0];if(e.length>1){var c=i(u,r)?r[u]:s(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,c)}if(s(u)&&o(r)){var l=[].concat(r);return l[u]=n,l}return a(u,n,r)})},{"./assoc":157,"./internal/_curry3":241,"./internal/_has":251,"./internal/_isArray":255,"./internal/_isInteger":257}],159:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./nAry");e.exports=r(function(t){return i(2,t)})},{"./internal/_curry1":239,"./nAry":341}],160:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_curry2");e.exports=i(function(t,e){return r(t.length,function(){return t.apply(e,arguments)})})},{"./internal/_arity":228,"./internal/_curry2":240}],161:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isFunction"),o=t("./and"),s=t("./lift");e.exports=r(function(t,e){return i(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:s(o)(t,e)})},{"./and":148,"./internal/_curry2":240,"./internal/_isFunction":256,"./lift":318}],162:[function(t,e,n){var r=t("./curry");e.exports=r(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))})},{"./curry":178}],163:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_makeFlat"),s=t("./internal/_xchain"),a=t("./map");e.exports=r(i(["chain"],s,function(t,e){return"function"==typeof e?function(n){return t(e(n))(n)}:o(!1)(a(t,e))}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_makeFlat":264,"./internal/_xchain":279,"./map":322}],164:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){if(t>e)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<t?t:n>e?e:n})},{"./internal/_curry3":241}],165:[function(t,e,n){var r=t("./internal/_clone"),i=t("./internal/_curry1");e.exports=i(function(t){return null!=t&&"function"==typeof t.clone?t.clone():r(t,[],[],!0)})},{"./internal/_clone":232,"./internal/_curry1":239}],166:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){return function(e,n){return t(e,n)?-1:t(n,e)?1:0}})},{"./internal/_curry1":239}],167:[function(t,e,n){var r=t("./lift"),i=t("./not");e.exports=r(i)},{"./lift":318,"./not":344}],168:[function(t,e,n){var r=t("./pipe"),i=t("./reverse");e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,i(arguments))}},{"./pipe":364,"./reverse":387}],169:[function(t,e,n){var r=t("./chain"),i=t("./compose"),o=t("./map");e.exports=function(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var t=Array.prototype.slice.call(arguments),e=t.pop();return i(i.apply(this,o(r,t)),e)}},{"./chain":163,"./compose":168,"./map":322}],170:[function(t,e,n){var r=t("./pipeP"),i=t("./reverse");e.exports=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return r.apply(this,i(arguments))}},{"./pipeP":366,"./reverse":387}],171:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isArray"),o=t("./internal/_isFunction"),s=t("./toString");e.exports=r(function(t,e){if(null==t||!o(t.concat))throw new TypeError(s(t)+' does not have a method named "concat"');if(i(t)&&!i(e))throw new TypeError(s(e)+" is not an array");return t.concat(e)})},{"./internal/_curry2":240,"./internal/_isArray":255,"./internal/_isFunction":256,"./toString":414}],172:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_curry1"),o=t("./map"),s=t("./max"),a=t("./reduce");e.exports=i(function(t){var e=a(s,0,o(function(t){return t[0].length},t));return r(e,function(){for(var e=0;e<t.length;){if(t[e][0].apply(this,arguments))return t[e][1].apply(this,arguments);e+=1}})})},{"./internal/_arity":228,"./internal/_curry1":239,"./map":322,"./max":328,"./reduce":378}],173:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./constructN");e.exports=r(function(t){return i(t.length,t)})},{"./constructN":174,"./internal/_curry1":239}],174:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./curry"),o=t("./nAry");e.exports=r(function(t,e){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new e}:i(o(t,function(t,n,r,i,o,s,a,u,c,l){switch(arguments.length){case 1:return new e(t);case 2:return new e(t,n);case 3:return new e(t,n,r);case 4:return new e(t,n,r,i);case 5:return new e(t,n,r,i,o);case 6:return new e(t,n,r,i,o,s);case 7:return new e(t,n,r,i,o,s,a);case 8:return new e(t,n,r,i,o,s,a,u);case 9:return new e(t,n,r,i,o,s,a,u,c);case 10:return new e(t,n,r,i,o,s,a,u,c,l)}}))})},{"./curry":178,"./internal/_curry2":240,"./nAry":341}],175:[function(t,e,n){var r=t("./internal/_contains"),i=t("./internal/_curry2");e.exports=i(r)},{"./internal/_contains":236,"./internal/_curry2":240}],176:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_map"),o=t("./curryN"),s=t("./max"),a=t("./pluck"),u=t("./reduce");e.exports=r(function(t,e){return o(u(s,0,a("length",e)),function(){var n=arguments,r=this;return t.apply(r,i(function(t){return t.apply(r,n)},e))})})},{"./curryN":179,"./internal/_curry2":240,"./internal/_map":265,"./max":328,"./pluck":367,"./reduce":378}],177:[function(t,e,n){var r=t("./reduceBy");e.exports=r(function(t,e){return t+1},0)},{"./reduceBy":379}],178:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./curryN");e.exports=r(function(t){return i(t.length,t)})},{"./curryN":179,"./internal/_curry1":239}],179:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_curry1"),o=t("./internal/_curry2"),s=t("./internal/_curryN");e.exports=o(function(t,e){return 1===t?i(e):r(t,s(t,[],e))})},{"./internal/_arity":228,"./internal/_curry1":239,"./internal/_curry2":240,"./internal/_curryN":242}],180:[function(t,e,n){var r=t("./add");e.exports=r(-1)},{"./add":142}],181:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return null==e||e!==e?t:e})},{"./internal/_curry2":240}],182:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){var r=t(e),i=t(n);return r>i?-1:r<i?1:0})},{"./internal/_curry3":241}],183:[function(t,e,n){var r=t("./internal/_contains"),i=t("./internal/_curry2");e.exports=i(function(t,e){for(var n=[],i=0,o=t.length;i<o;)r(t[i],e)||r(t[i],n)||(n[n.length]=t[i]),i+=1;return n})},{"./internal/_contains":236,"./internal/_curry2":240}],184:[function(t,e,n){var r=t("./internal/_containsWith"),i=t("./internal/_curry3");e.exports=i(function(t,e,n){for(var i=[],o=0,s=e.length;o<s;)r(t,e[o],n)||r(t,e[o],i)||i.push(e[o]),o+=1;return i})},{"./internal/_containsWith":237,"./internal/_curry3":241}],185:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){var n={};for(var r in e)n[r]=e[r];return delete n[t],n})},{"./internal/_curry2":240}],186:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./assoc"),o=t("./dissoc");e.exports=r(function t(e,n){switch(e.length){case 0:return n;case 1:return o(e[0],n);default:var r=e[0],s=Array.prototype.slice.call(e,1);return null==n[r]?n:i(r,t(s,n[r]),n)}})},{"./assoc":157,"./dissoc":185,"./internal/_curry2":240}],187:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t/e})},{"./internal/_curry2":240}],188:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xdrop"),s=t("./slice");e.exports=r(i(["drop"],o,function(t,e){return s(Math.max(0,t),1/0,e)}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xdrop":280,"./slice":391}],189:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_dropLast"),s=t("./internal/_xdropLast");e.exports=r(i([],s,o))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_dropLast":244,"./internal/_xdropLast":281}],190:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_dropLastWhile"),s=t("./internal/_xdropLastWhile");e.exports=r(i([],s,o))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_dropLastWhile":245,"./internal/_xdropLastWhile":282}],191:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_dispatchable"),o=t("./internal/_xdropRepeatsWith"),s=t("./dropRepeatsWith"),a=t("./equals");e.exports=r(i([],o(a),s(a)))},{"./dropRepeatsWith":192,"./equals":198,"./internal/_curry1":239,"./internal/_dispatchable":243,"./internal/_xdropRepeatsWith":283}],192:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xdropRepeatsWith"),s=t("./last");e.exports=r(i([],o,function(t,e){var n=[],r=1,i=e.length;if(0!==i)for(n[0]=e[0];r<i;)t(s(n),e[r])||(n[n.length]=e[r]),r+=1;return n}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xdropRepeatsWith":283,"./last":311}],193:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xdropWhile");e.exports=r(i(["dropWhile"],o,function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Array.prototype.slice.call(e,n)}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xdropWhile":284}],194:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isFunction"),o=t("./lift"),s=t("./or");e.exports=r(function(t,e){return i(t)?function(){return t.apply(this,arguments)||e.apply(this,arguments)}:o(s)(t,e)})},{"./internal/_curry2":240,"./internal/_isFunction":256,"./lift":318,"./or":351}],195:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_isArguments"),o=t("./internal/_isArray"),s=t("./internal/_isObject"),a=t("./internal/_isString");e.exports=r(function(t){return null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():o(t)?[]:a(t)?"":s(t)?{}:i(t)?function(){return arguments}():void 0})},{"./internal/_curry1":239,"./internal/_isArguments":254,"./internal/_isArray":255,"./internal/_isObject":259,"./internal/_isString":262}],196:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./equals");e.exports=r(function(t,e,n){return i(t(e),t(n))})},{"./equals":198,"./internal/_curry3":241}],197:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./equals");e.exports=r(function(t,e,n){return i(e[t],n[t])})},{"./equals":198,"./internal/_curry3":241}],198:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_equals");e.exports=r(function(t,e){return i(t,e,[],[])})},{"./internal/_curry2":240,"./internal/_equals":246}],199:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function t(e,n){var r,i,o,s={};for(i in n)r=e[i],o=typeof r,s[i]="function"===o?r(n[i]):r&&"object"===o?t(r,n[i]):n[i];return s})},{"./internal/_curry2":240}],200:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_filter"),s=t("./internal/_isObject"),a=t("./internal/_reduce"),u=t("./internal/_xfilter"),c=t("./keys");e.exports=r(i(["filter"],u,function(t,e){return s(e)?a(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{},c(e)):o(t,e)}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_filter":247,"./internal/_isObject":259,"./internal/_reduce":271,"./internal/_xfilter":286,"./keys":309}],201:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xfind");e.exports=r(i(["find"],o,function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return e[n];n+=1}}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xfind":287}],202:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xfindIndex");e.exports=r(i([],o,function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return n;n+=1}return-1}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xfindIndex":288}],203:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xfindLast");e.exports=r(i([],o,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return e[n];n-=1}}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xfindLast":289}],204:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xfindLastIndex");e.exports=r(i([],o,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return n;n-=1}return-1}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xfindLastIndex":290}],205:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_makeFlat");e.exports=r(i(!0))},{"./internal/_curry1":239,"./internal/_makeFlat":264}],206:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./curry");e.exports=r(function(t){return i(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)})})},{"./curry":178,"./internal/_curry1":239}],207:[function(t,e,n){var r=t("./internal/_checkForMethod"),i=t("./internal/_curry2");e.exports=i(r("forEach",function(t,e){for(var n=e.length,r=0;r<n;)t(e[r]),r+=1;return e}))},{"./internal/_checkForMethod":231,"./internal/_curry2":240}],208:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./keys");e.exports=r(function(t,e){for(var n=i(e),r=0;r<n.length;){var o=n[r];t(e[o],o,e),r+=1}return e})},{"./internal/_curry2":240,"./keys":309}],209:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){for(var e={},n=0;n<t.length;)e[t[n][0]]=t[n][1],n+=1;return e})},{"./internal/_curry1":239}],210:[function(t,e,n){var r=t("./internal/_checkForMethod"),i=t("./internal/_curry2"),o=t("./reduceBy");e.exports=i(r("groupBy",o(function(t,e){return null==t&&(t=[]),t.push(e),t},null)))},{"./internal/_checkForMethod":231,"./internal/_curry2":240,"./reduceBy":379}],211:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=[],r=0,i=e.length;r<i;){for(var o=r+1;o<i&&t(e[r],e[o]);)o+=1;n.push(e.slice(r,o)),r=o}return n})},{"./internal/_curry2":240}],212:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t>e})},{"./internal/_curry2":240}],213:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t>=e})},{"./internal/_curry2":240}],214:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_has");e.exports=r(i)},{"./internal/_curry2":240,"./internal/_has":251}],215:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t in e})},{"./internal/_curry2":240}],216:[function(t,e,n){var r=t("./nth");e.exports=r(0)},{"./nth":345}],217:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e})},{"./internal/_curry2":240}],218:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_identity");e.exports=r(i)},{"./internal/_curry1":239,"./internal/_identity":252}],219:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./curryN");e.exports=r(function(t,e,n){return i(Math.max(t.length,e.length,n.length),function(){return t.apply(this,arguments)?e.apply(this,arguments):n.apply(this,arguments)})})},{"./curryN":179,"./internal/_curry3":241}],220:[function(t,e,n){var r=t("./add");e.exports=r(1)},{"./add":142}],221:[function(t,e,n){var r=t("./reduceBy");e.exports=r(function(t,e){return e},null)},{"./reduceBy":379}],222:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_indexOf"),o=t("./internal/_isArray");e.exports=r(function(t,e){return"function"!=typeof e.indexOf||o(e)?i(e,t,0):e.indexOf(t)})},{"./internal/_curry2":240,"./internal/_indexOf":253,"./internal/_isArray":255}],223:[function(t,e,n){var r=t("./slice");e.exports=r(0,-1)},{"./slice":391}],224:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){t=t<n.length&&t>=0?t:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(t,0,e),r})},{"./internal/_curry3":241}],225:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){return t=t<n.length&&t>=0?t:n.length,[].concat(Array.prototype.slice.call(n,0,t),e,Array.prototype.slice.call(n,t))})},{"./internal/_curry3":241}],226:[function(t,e,n){var r=t("./_contains");e.exports=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function e(t,e,n){var i,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(i=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===i):n._nativeSet.has(t):o in n._items?t in n._items[o]||(e&&(n._items[o][t]=!0),!1):(e&&(n._items[o]={},n._items[o][t]=!0),!1);case"boolean":if(o in n._items){var s=t?1:0;return!!n._items[o][s]||(e&&(n._items[o][s]=!0),!1)}return e&&(n._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(i=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===i):n._nativeSet.has(t):o in n._items?!!r(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1);case"undefined":return!!n._items[o]||(e&&(n._items[o]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return o=Object.prototype.toString.call(t),o in n._items?!!r(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1)}}return t.prototype.add=function(t){return!e(t,!0,this)},t.prototype.has=function(t){return e(t,!1,this)},t}()},{"./_contains":236}],227:[function(t,e,n){e.exports=function(t,e){for(var n=0,r=e.length-(t-1),i=new Array(r>=0?r:0);n<r;)i[n]=Array.prototype.slice.call(e,n,n+t),n+=1;return i}},{}],228:[function(t,e,n){e.exports=function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,o){return e.apply(this,arguments)};case 6:return function(t,n,r,i,o,s){
  return e.apply(this,arguments)};case 7:return function(t,n,r,i,o,s,a){return e.apply(this,arguments)};case 8:return function(t,n,r,i,o,s,a,u){return e.apply(this,arguments)};case 9:return function(t,n,r,i,o,s,a,u,c){return e.apply(this,arguments)};case 10:return function(t,n,r,i,o,s,a,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},{}],229:[function(t,e,n){e.exports=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}},{}],230:[function(t,e,n){var r=t("./_objectAssign");e.exports="function"==typeof Object.assign?Object.assign:r},{"./_objectAssign":266}],231:[function(t,e,n){var r=t("./_isArray");e.exports=function(t,e){return function(){var n=arguments.length;if(0===n)return e();var i=arguments[n-1];return r(i)||"function"!=typeof i[t]?e.apply(this,arguments):i[t].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},{"./_isArray":255}],232:[function(t,e,n){var r=t("./_cloneRegExp"),i=t("../type");e.exports=function t(e,n,o,s){var a=function(r){for(var i=n.length,a=0;a<i;){if(e===n[a])return o[a];a+=1}n[a+1]=e,o[a+1]=r;for(var u in e)r[u]=s?t(e[u],n,o,!0):e[u];return r};switch(i(e)){case"Object":return a({});case"Array":return a([]);case"Date":return new Date(e.valueOf());case"RegExp":return r(e);default:return e}}},{"../type":421,"./_cloneRegExp":233}],233:[function(t,e,n){e.exports=function(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))}},{}],234:[function(t,e,n){e.exports=function(t){return function(){return!t.apply(this,arguments)}}},{}],235:[function(t,e,n){e.exports=function(t,e){t=t||[],e=e||[];var n,r=t.length,i=e.length,o=[];for(n=0;n<r;)o[o.length]=t[n],n+=1;for(n=0;n<i;)o[o.length]=e[n],n+=1;return o}},{}],236:[function(t,e,n){var r=t("./_indexOf");e.exports=function(t,e){return r(e,t,0)>=0}},{"./_indexOf":253}],237:[function(t,e,n){e.exports=function(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}},{}],238:[function(t,e,n){var r=t("./_arity"),i=t("./_curry2");e.exports=function(t){return i(function(e,n){return r(Math.max(0,e.length-n.length),function(){return e.apply(this,t(n,arguments))})})}},{"./_arity":228,"./_curry2":240}],239:[function(t,e,n){var r=t("./_isPlaceholder");e.exports=function(t){return function e(n){return 0===arguments.length||r(n)?e:t.apply(this,arguments)}}},{"./_isPlaceholder":260}],240:[function(t,e,n){var r=t("./_curry1"),i=t("./_isPlaceholder");e.exports=function(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return i(n)?e:r(function(e){return t(n,e)});default:return i(n)&&i(o)?e:i(n)?r(function(e){return t(e,o)}):i(o)?r(function(e){return t(n,e)}):t(n,o)}}}},{"./_curry1":239,"./_isPlaceholder":260}],241:[function(t,e,n){var r=t("./_curry1"),i=t("./_curry2"),o=t("./_isPlaceholder");e.exports=function(t){return function e(n,s,a){switch(arguments.length){case 0:return e;case 1:return o(n)?e:i(function(e,r){return t(n,e,r)});case 2:return o(n)&&o(s)?e:o(n)?i(function(e,n){return t(e,s,n)}):o(s)?i(function(e,r){return t(n,e,r)}):r(function(e){return t(n,s,e)});default:return o(n)&&o(s)&&o(a)?e:o(n)&&o(s)?i(function(e,n){return t(e,n,a)}):o(n)&&o(a)?i(function(e,n){return t(e,s,n)}):o(s)&&o(a)?i(function(e,r){return t(n,e,r)}):o(n)?r(function(e){return t(e,s,a)}):o(s)?r(function(e){return t(n,e,a)}):o(a)?r(function(e){return t(n,s,e)}):t(n,s,a)}}}},{"./_curry1":239,"./_curry2":240,"./_isPlaceholder":260}],242:[function(t,e,n){var r=t("./_arity"),i=t("./_isPlaceholder");e.exports=function t(e,n,o){return function(){for(var s=[],a=0,u=e,c=0;c<n.length||a<arguments.length;){var l;c<n.length&&(!i(n[c])||a>=arguments.length)?l=n[c]:(l=arguments[a],a+=1),s[c]=l,i(l)||(u-=1),c+=1}return u<=0?o.apply(this,s):r(u,t(e,s,o))}}},{"./_arity":228,"./_isPlaceholder":260}],243:[function(t,e,n){var r=t("./_isArray"),i=t("./_isTransformer");e.exports=function(t,e,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),s=o.pop();if(!r(s)){for(var a=0;a<t.length;){if("function"==typeof s[t[a]])return s[t[a]].apply(s,o);a+=1}if(i(s)){return e.apply(null,o)(s)}}return n.apply(this,arguments)}}},{"./_isArray":255,"./_isTransformer":263}],244:[function(t,e,n){var r=t("../take");e.exports=function(t,e){return r(t<e.length?e.length-t:0,e)}},{"../take":404}],245:[function(t,e,n){e.exports=function(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Array.prototype.slice.call(e,0,n+1)}},{}],246:[function(t,e,n){var r=t("./_arrayFromIterator"),i=t("./_functionName"),o=t("./_has"),s=t("../identical"),a=t("../keys"),u=t("../type");e.exports=function t(e,n,c,l){if(s(e,n))return!0;if(u(e)!==u(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(u(e)){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===i(e.constructor))return e===n;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof n||!s(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!s(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!t(r(e.entries()),r(n.entries()),c,l))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=a(e);if(f.length!==a(n).length)return!1;for(var h=c.length-1;h>=0;){if(c[h]===e)return l[h]===n;h-=1}for(c.push(e),l.push(n),h=f.length-1;h>=0;){var p=f[h];if(!o(p,n)||!t(n[p],e[p],c,l))return!1;h-=1}return c.pop(),l.pop(),!0}},{"../identical":217,"../keys":309,"../type":421,"./_arrayFromIterator":229,"./_functionName":250,"./_has":251}],247:[function(t,e,n){e.exports=function(t,e){for(var n=0,r=e.length,i=[];n<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}},{}],248:[function(t,e,n){var r=t("./_forceReduced"),i=t("./_reduce"),o=t("./_xfBase"),s=t("../isArrayLike");e.exports=function(){var t=function(t){return{"@@transducer/init":o.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){var i=t["@@transducer/step"](e,n);return i["@@transducer/reduced"]?r(i):i}}};return function(e){var n=t(e);return{"@@transducer/init":o.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,e){return s(e)?i(n,t,e):i(n,t,[e])}}}}()},{"../isArrayLike":304,"./_forceReduced":249,"./_reduce":271,"./_xfBase":285}],249:[function(t,e,n){e.exports=function(t){return{"@@transducer/value":t,"@@transducer/reduced":!0}}},{}],250:[function(t,e,n){e.exports=function(t){var e=String(t).match(/^function (\w*)/);return null==e?"":e[1]}},{}],251:[function(t,e,n){e.exports=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)}},{}],252:[function(t,e,n){e.exports=function(t){return t}},{}],253:[function(t,e,n){var r=t("../equals");e.exports=function(t,e,n){var i,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(i=1/e;n<t.length;){if(0===(o=t[n])&&1/o===i)return n;n+=1}return-1}if(e!==e){for(;n<t.length;){if("number"==typeof(o=t[n])&&o!==o)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(r(t[n],e))return n;n+=1}return-1}},{"../equals":198}],254:[function(t,e,n){var r=t("./_has");e.exports=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(e){return"[object Arguments]"===t.call(e)}:function(t){return r("callee",t)}}()},{"./_has":251}],255:[function(t,e,n){e.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},{}],256:[function(t,e,n){e.exports=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],257:[function(t,e,n){e.exports=Number.isInteger||function(t){return t<<0===t}},{}],258:[function(t,e,n){e.exports=function(t){return"[object Number]"===Object.prototype.toString.call(t)}},{}],259:[function(t,e,n){e.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},{}],260:[function(t,e,n){e.exports=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}},{}],261:[function(t,e,n){e.exports=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}},{}],262:[function(t,e,n){e.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}},{}],263:[function(t,e,n){e.exports=function(t){return"function"==typeof t["@@transducer/step"]}},{}],264:[function(t,e,n){var r=t("../isArrayLike");e.exports=function(t){return function e(n){for(var i,o,s,a=[],u=0,c=n.length;u<c;){if(r(n[u]))for(i=t?e(n[u]):n[u],s=0,o=i.length;s<o;)a[a.length]=i[s],s+=1;else a[a.length]=n[u];u+=1}return a}}},{"../isArrayLike":304}],265:[function(t,e,n){e.exports=function(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}},{}],266:[function(t,e,n){var r=t("./_has");e.exports=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,i=arguments.length;n<i;){var o=arguments[n];if(null!=o)for(var s in o)r(s,o)&&(e[s]=o[s]);n+=1}return e}},{"./_has":251}],267:[function(t,e,n){e.exports=function(t){return[t]}},{}],268:[function(t,e,n){e.exports=function(t,e){return function(){return e.call(this,t.apply(this,arguments))}}},{}],269:[function(t,e,n){e.exports=function(t,e){return function(){var n=this;return t.apply(n,arguments).then(function(t){return e.call(n,t)})}}},{}],270:[function(t,e,n){e.exports=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},{}],271:[function(t,e,n){var r=t("./_xwrap"),i=t("../bind"),o=t("../isArrayLike");e.exports=function(){function t(t,e,n){for(var r=0,i=n.length;r<i;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}function e(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function n(t,e,n){return t["@@transducer/result"](n.reduce(i(t["@@transducer/step"],t),e))}var s="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(i,a,u){if("function"==typeof i&&(i=r(i)),o(u))return t(i,a,u);if("function"==typeof u.reduce)return n(i,a,u);if(null!=u[s])return e(i,a,u[s]());if("function"==typeof u.next)return e(i,a,u);throw new TypeError("reduce: list must be array or iterable")}}()},{"../bind":160,"../isArrayLike":304,"./_xwrap":295}],272:[function(t,e,n){e.exports=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}},{}],273:[function(t,e,n){var r=t("./_assign"),i=t("./_identity"),o=t("./_isTransformer"),s=t("../isArrayLike"),a=t("../objOf");e.exports=function(){var t={"@@transducer/init":Array,"@@transducer/step":function(t,e){return t.push(e),t},"@@transducer/result":i},e={"@@transducer/init":String,"@@transducer/step":function(t,e){return t+e},"@@transducer/result":i},n={"@@transducer/init":Object,"@@transducer/step":function(t,e){return r(t,s(e)?a(e[0],e[1]):e)},"@@transducer/result":i};return function(r){if(o(r))return r;if(s(r))return t;if("string"==typeof r)return e;if("object"==typeof r)return n;throw new Error("Cannot create transformer for "+r)}}()},{"../isArrayLike":304,"../objOf":347,"./_assign":230,"./_identity":252,"./_isTransformer":263}],274:[function(t,e,n){e.exports=function(){var t=function(t){return(t<10?"0":"")+t};return"function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(e){return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}()},{}],275:[function(t,e,n){var r=t("./_contains"),i=t("./_map"),o=t("./_quote"),s=t("./_toISOString"),a=t("../keys"),u=t("../reject");e.exports=function t(e,n){var c=function(i){var o=n.concat([e]);return r(i,o)?"<Circular>":t(i,o)},l=function(t,e){return i(function(e){return o(e)+": "+c(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+i(c,e).join(", ")+"))";case"[object Array]":return"["+i(c,e).concat(l(e,u(function(t){return/^\d+$/.test(t)},a(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+c(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?c(NaN):o(s(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+c(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+c(e.valueOf())+")":o(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var f=e.toString();if("[object Object]"!==f)return f}return"{"+l(e,a(e)).join(", ")+"}"}}},{"../keys":309,"../reject":383,"./_contains":236,"./_map":265,"./_quote":270,"./_toISOString":274}],276:[function(t,e,n){var r=t("./_curry2"),i=t("./_reduced"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=i(this.xf["@@transducer/step"](t,!1))),t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_reduced":272,"./_xfBase":285}],277:[function(t,e,n){var r=t("./_curry2"),i=t("./_reduced"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.any=!0,t=i(this.xf["@@transducer/step"](t,!0))),t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_reduced":272,"./_xfBase":285}],278:[function(t,e,n){var r=t("./_concat"),i=t("./_curry2"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.store(e),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t.prototype.getCopy=function(){return r(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},i(function(e,n){return new t(e,n)})}()},{"./_concat":235,"./_curry2":240,"./_xfBase":285}],279:[function(t,e,n){var r=t("./_curry2"),i=t("./_flatCat"),o=t("../map");e.exports=r(function(t,e){return o(t,i(e))})},{"../map":322,"./_curry2":240,"./_flatCat":248}],280:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.n=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,e)},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],281:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(e),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],282:[function(t,e,n){var r=t("./_curry2"),i=t("./_reduce"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.f=t,this.retained=[],this.xf=e}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.retain(t,e):this.flush(t,e)},t.prototype.flush=function(t,e){return t=i(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,e)},t.prototype.retain=function(t,e){return this.retained.push(e),t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_reduce":271,"./_xfBase":285}],283:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,e)&&(n=!0):this.seenFirstValue=!0,this.lastValue=e,n?t:this.xf["@@transducer/step"](t,e)},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],284:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],285:[function(t,e,n){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}}},{}],286:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],287:[function(t,e,n){var r=t("./_curry2"),i=t("./_reduced"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=i(this.xf["@@transducer/step"](t,e))),t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_reduced":272,"./_xfBase":285}],288:[function(t,e,n){var r=t("./_curry2"),i=t("./_reduced"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.found=!0,t=i(this.xf["@@transducer/step"](t,this.idx))),t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_reduced":272,"./_xfBase":285}],289:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.last=e),t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],290:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.lastIdx=this.idx),t},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],291:[function(t,e,n){var r=t("./_curry2"),i=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_xfBase":285}],292:[function(t,e,n){var r=t("./_curryN"),i=t("./_has"),o=t("./_xfBase");e.exports=function(){function t(t,e,n,r){this.valueFn=t,this.valueAcc=e,this.keyFn=n,this.xf=r,this.inputs={}}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(i(e,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[e]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n=this.keyFn(e);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],e),t},r(4,[],function(e,n,r,i){return new t(e,n,r,i)})}()},{"./_curryN":242,"./_has":251,"./_xfBase":285}],293:[function(t,e,n){var r=t("./_curry2"),i=t("./_reduced"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=o.result,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var n=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.i>=this.n?i(n):n},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_reduced":272,"./_xfBase":285}],294:[function(t,e,n){var r=t("./_curry2"),i=t("./_reduced"),o=t("./_xfBase");e.exports=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=o.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):i(t)},r(function(e,n){return new t(e,n)})}()},{"./_curry2":240,"./_reduced":272,"./_xfBase":285}],295:[function(t,e,n){e.exports=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},function(e){return new t(e)}}()},{}],296:[function(t,e,n){var r=t("./internal/_contains"),i=t("./internal/_curry2"),o=t("./internal/_filter"),s=t("./flip"),a=t("./uniq");e.exports=i(function(t,e){var n,i;return t.length>e.length?(n=t,i=e):(n=e,i=t),a(o(s(r)(n),i))})},{"./flip":206,"./internal/_contains":236,"./internal/_curry2":240,"./internal/_filter":247,"./uniq":428}],297:[function(t,e,n){var r=t("./internal/_containsWith"),i=t("./internal/_curry3"),o=t("./uniqWith");e.exports=i(function(t,e,n){var i,s;e.length>n.length?(i=e,s=n):(i=n,s=e);for(var a=[],u=0;u<s.length;)r(t,s[u],i)&&(a[a.length]=s[u]),u+=1;return o(t,a)})},{"./internal/_containsWith":237,"./internal/_curry3":241,"./uniqWith":430}],298:[function(t,e,n){var r=t("./internal/_checkForMethod"),i=t("./internal/_curry2");e.exports=i(r("intersperse",function(t,e){for(var n=[],r=0,i=e.length;r<i;)r===i-1?n.push(e[r]):n.push(e[r],t),r+=1;return n}))},{"./internal/_checkForMethod":231,"./internal/_curry2":240}],299:[function(t,e,n){var r=t("./internal/_clone"),i=t("./internal/_curry3"),o=t("./internal/_isTransformer"),s=t("./internal/_reduce"),a=t("./internal/_stepCat");e.exports=i(function(t,e,n){return o(t)?s(e(t),t["@@transducer/init"](),n):s(e(a(t)),r(t,[],[],!1),n)})},{"./internal/_clone":232,"./internal/_curry3":241,"./internal/_isTransformer":263,"./internal/_reduce":271,"./internal/_stepCat":273}],300:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_has"),o=t("./keys");e.exports=r(function(t){for(var e=o(t),n=e.length,r=0,s={};r<n;){var a=e[r],u=t[a],c=i(u,s)?s[u]:s[u]=[];c[c.length]=a,r+=1}return s})},{"./internal/_curry1":239,"./internal/_has":251,"./keys":309}],301:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./keys");e.exports=r(function(t){for(var e=i(t),n=e.length,r=0,o={};r<n;){var s=e[r];o[t[s]]=s,r+=1}return o})},{"./internal/_curry1":239,"./keys":309}],302:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isFunction"),o=t("./curryN"),s=t("./toString");e.exports=r(function(t,e){return o(t+1,function(){var n=arguments[t];if(null!=n&&i(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(s(n)+' does not have a method named "'+e+'"')})})},{"./curryN":179,"./internal/_curry2":240,"./internal/_isFunction":256,"./toString":414}],303:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return null!=e&&e.constructor===t||e instanceof t})},{"./internal/_curry2":240}],304:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_isArray"),o=t("./internal/_isString");e.exports=r(function(t){return!!i(t)||!!t&&("object"==typeof t&&(!o(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))})},{"./internal/_curry1":239,"./internal/_isArray":255,"./internal/_isString":262}],305:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./empty"),o=t("./equals");e.exports=r(function(t){return null!=t&&o(t,i(t))})},{"./empty":195,"./equals":198,"./internal/_curry1":239}],306:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){return null==t})},{"./internal/_curry1":239}],307:[function(t,e,n){var r=t("./invoker");e.exports=r(1,"join")},{"./invoker":302}],308:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./converge");e.exports=r(function(t){return i(function(){return Array.prototype.slice.call(arguments,0)},t)})},{"./converge":176,"./internal/_curry1":239}],309:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_has"),o=t("./internal/_isArguments");e.exports=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),e=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],n=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),s=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1};return r("function"!=typeof Object.keys||n?function(r){if(Object(r)!==r)return[];var a,u,c=[],l=n&&o(r);for(a in r)!i(a,r)||l&&"length"===a||(c[c.length]=a);if(t)for(u=e.length-1;u>=0;)a=e[u],i(a,r)&&!s(c,a)&&(c[c.length]=a),u-=1;return c}:function(t){return Object(t)!==t?[]:Object.keys(t)})}()},{"./internal/_curry1":239,"./internal/_has":251,"./internal/_isArguments":254}],310:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){var e,n=[];for(e in t)n[n.length]=e;return n})},{"./internal/_curry1":239}],311:[function(t,e,n){var r=t("./nth");e.exports=r(-1)},{"./nth":345}],312:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isArray"),o=t("./equals");e.exports=r(function(t,e){if("function"!=typeof e.lastIndexOf||i(e)){for(var n=e.length-1;n>=0;){if(o(e[n],t))return n;n-=1}return-1}return e.lastIndexOf(t)})},{"./equals":198,"./internal/_curry2":240,"./internal/_isArray":255}],313:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_isNumber");e.exports=r(function(t){return null!=t&&i(t.length)?t.length:NaN})},{"./internal/_curry1":239,"./internal/_isNumber":258}],314:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./map");e.exports=r(function(t,e){return function(n){return function(r){return i(function(t){return e(t,r)},n(t(r)))}}})},{"./internal/_curry2":240,"./map":322}],315:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./lens"),o=t("./nth"),s=t("./update");e.exports=r(function(t){return i(o(t),s(t))})},{"./internal/_curry1":239,"./lens":314,"./nth":345,"./update":434}],316:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./assocPath"),o=t("./lens"),s=t("./path");e.exports=r(function(t){return o(s(t),i(t))})},{"./assocPath":158,"./internal/_curry1":239,"./lens":314,"./path":357}],317:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./assoc"),o=t("./lens"),s=t("./prop");e.exports=r(function(t){return o(s(t),i(t))})},{"./assoc":157,"./internal/_curry1":239,"./lens":314,"./prop":371}],318:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./liftN");e.exports=r(function(t){return i(t.length,t)})},{"./internal/_curry1":239,"./liftN":319}],319:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_reduce"),o=t("./ap"),s=t("./curryN"),a=t("./map");e.exports=r(function(t,e){var n=s(t,e);return s(t,function(){return i(o,a(n,arguments[0]),Array.prototype.slice.call(arguments,1))})})},{"./ap":151,"./curryN":179,"./internal/_curry2":240,"./internal/_reduce":271,"./map":322}],320:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t<e})},{"./internal/_curry2":240}],321:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t<=e})},{"./internal/_curry2":240}],322:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_map"),s=t("./internal/_reduce"),a=t("./internal/_xmap"),u=t("./curryN"),c=t("./keys");e.exports=r(i(["map"],a,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return u(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return s(function(n,r){return n[r]=t(e[r]),n},{},c(e));default:return o(t,e)}}))},{"./curryN":179,"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_map":265,"./internal/_reduce":271,"./internal/_xmap":291,"./keys":309}],323:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){for(var r=0,i=n.length,o=[],s=[e];r<i;)s=t(s[0],n[r]),o[r]=s[1],r+=1;return[s[0],o]})},{"./internal/_curry3":241}],324:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){for(var r=n.length-1,i=[],o=[e];r>=0;)o=t(n[r],o[0]),i[r]=o[1],r-=1;return[i,o[0]]})},{"./internal/_curry3":241}],325:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_reduce"),o=t("./keys");e.exports=r(function(t,e){return i(function(n,r){return n[r]=t(e[r],r,e),n},{},o(e))})},{"./internal/_curry2":240,"./internal/_reduce":271,"./keys":309}],326:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return e.match(t)||[]})},{"./internal/_curry2":240}],327:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isInteger");e.exports=r(function(t,e){return i(t)?!i(e)||e<1?NaN:(t%e+e)%e:NaN})},{"./internal/_curry2":240,"./internal/_isInteger":257}],328:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return e>t?e:t})},{"./internal/_curry2":240}],329:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){return t(n)>t(e)?n:e})},{"./internal/_curry3":241}],330:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./sum");e.exports=r(function(t){return i(t)/t.length})},{
  "./internal/_curry1":239,"./sum":400}],331:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./mean");e.exports=r(function(t){var e=t.length;if(0===e)return NaN;var n=2-e%2,r=(e-n)/2;return i(Array.prototype.slice.call(t,0).sort(function(t,e){return t<e?-1:t>e?1:0}).slice(r,r+n))})},{"./internal/_curry1":239,"./mean":330}],332:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_curry1"),o=t("./internal/_has"),s=t("./toString");e.exports=i(function(t){var e={};return r(t.length,function(){var n=s(arguments);return o(n,e)||(e[n]=t.apply(this,arguments)),e[n]})})},{"./internal/_arity":228,"./internal/_curry1":239,"./internal/_has":251,"./toString":414}],333:[function(t,e,n){var r=t("./internal/_assign"),i=t("./internal/_curry2");e.exports=i(function(t,e){return r({},t,e)})},{"./internal/_assign":230,"./internal/_curry2":240}],334:[function(t,e,n){var r=t("./internal/_assign"),i=t("./internal/_curry1");e.exports=i(function(t){return r.apply(null,[{}].concat(t))})},{"./internal/_assign":230,"./internal/_curry1":239}],335:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./mergeWithKey");e.exports=r(function(t,e,n){return i(function(e,n,r){return t(n,r)},e,n)})},{"./internal/_curry3":241,"./mergeWithKey":336}],336:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./internal/_has");e.exports=r(function(t,e,n){var r,o={};for(r in e)i(r,e)&&(o[r]=i(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)i(r,n)&&!i(r,o)&&(o[r]=n[r]);return o})},{"./internal/_curry3":241,"./internal/_has":251}],337:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return e<t?e:t})},{"./internal/_curry2":240}],338:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){return t(n)<t(e)?n:e})},{"./internal/_curry3":241}],339:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t%e})},{"./internal/_curry2":240}],340:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t*e})},{"./internal/_curry2":240}],341:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){switch(t){case 0:return function(){return e.call(this)};case 1:return function(t){return e.call(this,t)};case 2:return function(t,n){return e.call(this,t,n)};case 3:return function(t,n,r){return e.call(this,t,n,r)};case 4:return function(t,n,r,i){return e.call(this,t,n,r,i)};case 5:return function(t,n,r,i,o){return e.call(this,t,n,r,i,o)};case 6:return function(t,n,r,i,o,s){return e.call(this,t,n,r,i,o,s)};case 7:return function(t,n,r,i,o,s,a){return e.call(this,t,n,r,i,o,s,a)};case 8:return function(t,n,r,i,o,s,a,u){return e.call(this,t,n,r,i,o,s,a,u)};case 9:return function(t,n,r,i,o,s,a,u,c){return e.call(this,t,n,r,i,o,s,a,u,c)};case 10:return function(t,n,r,i,o,s,a,u,c,l){return e.call(this,t,n,r,i,o,s,a,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})},{"./internal/_curry2":240}],342:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){return-t})},{"./internal/_curry1":239}],343:[function(t,e,n){var r=t("./internal/_complement"),i=t("./internal/_curry2"),o=t("./internal/_dispatchable"),s=t("./internal/_xany"),a=t("./any");e.exports=i(r(o(["any"],s,a)))},{"./any":149,"./internal/_complement":234,"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xany":277}],344:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){return!t})},{"./internal/_curry1":239}],345:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isString");e.exports=r(function(t,e){var n=t<0?e.length+t:t;return i(e)?e.charAt(n):e[n]})},{"./internal/_curry2":240,"./internal/_isString":262}],346:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./curryN"),o=t("./nth");e.exports=r(function(t){return i(t<0?1:t+1,function(){return o(t,arguments)})})},{"./curryN":179,"./internal/_curry1":239,"./nth":345}],347:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){var n={};return n[t]=e,n})},{"./internal/_curry2":240}],348:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_of");e.exports=r(i)},{"./internal/_curry1":239,"./internal/_of":267}],349:[function(t,e,n){var r=t("./internal/_contains"),i=t("./internal/_curry2");e.exports=i(function(t,e){var n={};for(var i in e)r(i,t)||(n[i]=e[i]);return n})},{"./internal/_contains":236,"./internal/_curry2":240}],350:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_curry1");e.exports=i(function(t){var e,n=!1;return r(t.length,function(){return n?e:(n=!0,e=t.apply(this,arguments))})})},{"./internal/_arity":228,"./internal/_curry1":239}],351:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t||e})},{"./internal/_curry2":240}],352:[function(t,e,n){var r=t("./internal/_curry3");e.exports=function(){var t=function(e){return{value:e,map:function(n){return t(n(e))}}};return r(function(e,n,r){return e(function(e){return t(n(e))})(r).value})}()},{"./internal/_curry3":241}],353:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return[t,e]})},{"./internal/_curry2":240}],354:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_createPartialApplicator");e.exports=i(r)},{"./internal/_concat":235,"./internal/_createPartialApplicator":238}],355:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_createPartialApplicator"),o=t("./flip");e.exports=i(o(r))},{"./flip":206,"./internal/_concat":235,"./internal/_createPartialApplicator":238}],356:[function(t,e,n){var r=t("./filter"),i=t("./juxt"),o=t("./reject");e.exports=i([r,o])},{"./filter":200,"./juxt":308,"./reject":383}],357:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=e,r=0;r<t.length;){if(null==n)return;n=n[t[r]],r+=1}return n})},{"./internal/_curry2":240}],358:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./equals"),o=t("./path");e.exports=r(function(t,e,n){return i(o(t,n),e)})},{"./equals":198,"./internal/_curry3":241,"./path":357}],359:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./defaultTo"),o=t("./path");e.exports=r(function(t,e,n){return i(t,o(e,n))})},{"./defaultTo":181,"./internal/_curry3":241,"./path":357}],360:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./path");e.exports=r(function(t,e,n){return e.length>0&&t(i(e,n))})},{"./internal/_curry3":241,"./path":357}],361:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n={},r=0;r<t.length;)t[r]in e&&(n[t[r]]=e[t[r]]),r+=1;return n})},{"./internal/_curry2":240}],362:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n={},r=0,i=t.length;r<i;){var o=t[r];n[o]=e[o],r+=1}return n})},{"./internal/_curry2":240}],363:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){var n={};for(var r in e)t(e[r],r,e)&&(n[r]=e[r]);return n})},{"./internal/_curry2":240}],364:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_pipe"),o=t("./reduce"),s=t("./tail");e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],s(arguments)))}},{"./internal/_arity":228,"./internal/_pipe":268,"./reduce":378,"./tail":403}],365:[function(t,e,n){var r=t("./composeK"),i=t("./reverse");e.exports=function(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return r.apply(this,i(arguments))}},{"./composeK":169,"./reverse":387}],366:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_pipeP"),o=t("./reduce"),s=t("./tail");e.exports=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return r(arguments[0].length,o(i,arguments[0],s(arguments)))}},{"./internal/_arity":228,"./internal/_pipeP":269,"./reduce":378,"./tail":403}],367:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./map"),o=t("./prop");e.exports=r(function(t,e){return i(o(t),e)})},{"./internal/_curry2":240,"./map":322,"./prop":371}],368:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_curry2");e.exports=i(function(t,e){return r([t],e)})},{"./internal/_concat":235,"./internal/_curry2":240}],369:[function(t,e,n){var r=t("./multiply"),i=t("./reduce");e.exports=i(r,1)},{"./multiply":340,"./reduce":378}],370:[function(t,e,n){var r=t("./internal/_map"),i=t("./identity"),o=t("./pickAll"),s=t("./useWith");e.exports=s(r,[o,i])},{"./identity":218,"./internal/_map":265,"./pickAll":362,"./useWith":435}],371:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return e[t]})},{"./internal/_curry2":240}],372:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./equals");e.exports=r(function(t,e,n){return i(e,n[t])})},{"./equals":198,"./internal/_curry3":241}],373:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./is");e.exports=r(function(t,e,n){return i(t,n[e])})},{"./internal/_curry3":241,"./is":303}],374:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./internal/_has");e.exports=r(function(t,e,n){return null!=n&&i(e,n)?n[e]:t})},{"./internal/_curry3":241,"./internal/_has":251}],375:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){return t(n[e])})},{"./internal/_curry3":241}],376:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r})},{"./internal/_curry2":240}],377:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_isNumber");e.exports=r(function(t,e){if(!i(t)||!i(e))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=t;r<e;)n.push(r),r+=1;return n})},{"./internal/_curry2":240,"./internal/_isNumber":258}],378:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./internal/_reduce");e.exports=r(i)},{"./internal/_curry3":241,"./internal/_reduce":271}],379:[function(t,e,n){var r=t("./internal/_curryN"),i=t("./internal/_dispatchable"),o=t("./internal/_has"),s=t("./internal/_reduce"),a=t("./internal/_xreduceBy");e.exports=r(4,[],i([],a,function(t,e,n,r){return s(function(r,i){var s=n(i);return r[s]=t(o(s,r)?r[s]:e,i),r},{},r)}))},{"./internal/_curryN":242,"./internal/_dispatchable":243,"./internal/_has":251,"./internal/_reduce":271,"./internal/_xreduceBy":292}],380:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){for(var r=n.length-1;r>=0;)e=t(n[r],e),r-=1;return e})},{"./internal/_curry3":241}],381:[function(t,e,n){var r=t("./internal/_curryN"),i=t("./internal/_reduce"),o=t("./internal/_reduced");e.exports=r(4,[],function(t,e,n,r){return i(function(n,r){return t(n,r)?e(n,r):o(n)},n,r)})},{"./internal/_curryN":242,"./internal/_reduce":271,"./internal/_reduced":272}],382:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_reduced");e.exports=r(i)},{"./internal/_curry1":239,"./internal/_reduced":272}],383:[function(t,e,n){var r=t("./internal/_complement"),i=t("./internal/_curry2"),o=t("./filter");e.exports=i(function(t,e){return o(r(t),e)})},{"./filter":200,"./internal/_complement":234,"./internal/_curry2":240}],384:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){var r=Array.prototype.slice.call(n,0);return r.splice(t,e),r})},{"./internal/_curry3":241}],385:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./always"),o=t("./times");e.exports=r(function(t,e){return o(i(t),e)})},{"./always":147,"./internal/_curry2":240,"./times":410}],386:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){return n.replace(t,e)})},{"./internal/_curry3":241}],387:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_isString");e.exports=r(function(t){return i(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()})},{"./internal/_curry1":239,"./internal/_isString":262}],388:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){for(var r=0,i=n.length,o=[e];r<i;)e=t(e,n[r]),o[r+1]=e,r+=1;return o})},{"./internal/_curry3":241}],389:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./ap"),o=t("./map"),s=t("./prepend"),a=t("./reduceRight");e.exports=r(function(t,e){return"function"==typeof e.sequence?e.sequence(t):a(function(t,e){return i(o(s,t),e)},t([]),e)})},{"./ap":151,"./internal/_curry2":240,"./map":322,"./prepend":368,"./reduceRight":380}],390:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./always"),o=t("./over");e.exports=r(function(t,e,n){return o(t,i(e),n)})},{"./always":147,"./internal/_curry3":241,"./over":352}],391:[function(t,e,n){var r=t("./internal/_checkForMethod"),i=t("./internal/_curry3");e.exports=i(r("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)}))},{"./internal/_checkForMethod":231,"./internal/_curry3":241}],392:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return Array.prototype.slice.call(e,0).sort(t)})},{"./internal/_curry2":240}],393:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return Array.prototype.slice.call(e,0).sort(function(e,n){var r=t(e),i=t(n);return r<i?-1:r>i?1:0})})},{"./internal/_curry2":240}],394:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return Array.prototype.slice.call(e,0).sort(function(e,n){for(var r=0,i=0;0===r&&i<t.length;)r=t[i](e,n),i+=1;return r})})},{"./internal/_curry2":240}],395:[function(t,e,n){var r=t("./invoker");e.exports=r(1,"split")},{"./invoker":302}],396:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./length"),o=t("./slice");e.exports=r(function(t,e){return[o(0,t,e),o(t,i(e),e)]})},{"./internal/_curry2":240,"./length":313,"./slice":391}],397:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./slice");e.exports=r(function(t,e){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<e.length;)n.push(i(r,r+=t,e));return n})},{"./internal/_curry2":240,"./slice":391}],398:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=0,r=e.length,i=[];n<r&&!t(e[n]);)i.push(e[n]),n+=1;return[i,Array.prototype.slice.call(e,n)]})},{"./internal/_curry2":240}],399:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return Number(t)-Number(e)})},{"./internal/_curry2":240}],400:[function(t,e,n){var r=t("./add"),i=t("./reduce");e.exports=i(r,0)},{"./add":142,"./reduce":378}],401:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./concat"),o=t("./difference");e.exports=r(function(t,e){return i(o(t,e),o(e,t))})},{"./concat":171,"./difference":183,"./internal/_curry2":240}],402:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./concat"),o=t("./differenceWith");e.exports=r(function(t,e,n){return i(o(t,e,n),o(t,n,e))})},{"./concat":171,"./differenceWith":184,"./internal/_curry3":241}],403:[function(t,e,n){var r=t("./internal/_checkForMethod"),i=t("./internal/_curry1"),o=t("./slice");e.exports=i(r("tail",o(1,1/0)))},{"./internal/_checkForMethod":231,"./internal/_curry1":239,"./slice":391}],404:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xtake"),s=t("./slice");e.exports=r(i(["take"],o,function(t,e){return s(0,t<0?1/0:t,e)}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xtake":293,"./slice":391}],405:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./drop");e.exports=r(function(t,e){return i(t>=0?e.length-t:0,e)})},{"./drop":188,"./internal/_curry2":240}],406:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Array.prototype.slice.call(e,n+1)})},{"./internal/_curry2":240}],407:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_dispatchable"),o=t("./internal/_xtakeWhile");e.exports=r(i(["takeWhile"],o,function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Array.prototype.slice.call(e,0,n)}))},{"./internal/_curry2":240,"./internal/_dispatchable":243,"./internal/_xtakeWhile":294}],408:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){return t(e),e})},{"./internal/_curry2":240}],409:[function(t,e,n){var r=t("./internal/_cloneRegExp"),i=t("./internal/_curry2"),o=t("./internal/_isRegExp"),s=t("./toString");e.exports=i(function(t,e){if(!o(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+s(t));return r(t).test(e)})},{"./internal/_cloneRegExp":233,"./internal/_curry2":240,"./internal/_isRegExp":261,"./toString":414}],410:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){var n,r=Number(e),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);i<r;)n[i]=t(i),i+=1;return n})},{"./internal/_curry2":240}],411:[function(t,e,n){var r=t("./invoker");e.exports=r(0,"toLowerCase")},{"./invoker":302}],412:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_has");e.exports=r(function(t){var e=[];for(var n in t)i(n,t)&&(e[e.length]=[n,t[n]]);return e})},{"./internal/_curry1":239,"./internal/_has":251}],413:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){var e=[];for(var n in t)e[e.length]=[n,t[n]];return e})},{"./internal/_curry1":239}],414:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./internal/_toString");e.exports=r(function(t){return i(t,[])})},{"./internal/_curry1":239,"./internal/_toString":275}],415:[function(t,e,n){var r=t("./invoker");e.exports=r(0,"toUpperCase")},{"./invoker":302}],416:[function(t,e,n){var r=t("./internal/_reduce"),i=t("./internal/_xwrap"),o=t("./curryN");e.exports=o(4,function(t,e,n,o){return r(t("function"==typeof e?i(e):e),n,o)})},{"./curryN":179,"./internal/_reduce":271,"./internal/_xwrap":295}],417:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){for(var e=0,n=[];e<t.length;){for(var r=t[e],i=0;i<r.length;)void 0===n[i]&&(n[i]=[]),n[i].push(r[i]),i+=1;e+=1}return n})},{"./internal/_curry1":239}],418:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./map"),o=t("./sequence");e.exports=r(function(t,e,n){return o(t,i(e,n))})},{"./internal/_curry3":241,"./map":322,"./sequence":389}],419:[function(t,e,n){var r=t("./internal/_curry1");e.exports=function(){var t="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff",e="function"==typeof String.prototype.trim;return r(e&&!t.trim()&&"​".trim()?function(t){return t.trim()}:function(e){var n=new RegExp("^["+t+"]["+t+"]*"),r=new RegExp("["+t+"]["+t+"]*$");return e.replace(n,"").replace(r,"")})}()},{"./internal/_curry1":239}],420:[function(t,e,n){var r=t("./internal/_arity"),i=t("./internal/_concat"),o=t("./internal/_curry2");e.exports=o(function(t,e){return r(t.length,function(){try{return t.apply(this,arguments)}catch(t){return e.apply(this,i([t],arguments))}})})},{"./internal/_arity":228,"./internal/_concat":235,"./internal/_curry2":240}],421:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)})},{"./internal/_curry1":239}],422:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}})},{"./internal/_curry1":239}],423:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./nAry");e.exports=r(function(t){return i(1,t)})},{"./internal/_curry1":239,"./nAry":341}],424:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./curryN");e.exports=r(function(t,e){return i(t,function(){for(var n,r=1,i=e,o=0;r<=t&&"function"==typeof i;)n=r===t?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i})})},{"./curryN":179,"./internal/_curry2":240}],425:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=t(e),r=[];n&&n.length;)r[r.length]=n[0],n=t(n[1]);return r})},{"./internal/_curry2":240}],426:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_curry2"),o=t("./compose"),s=t("./uniq");e.exports=i(o(s,r))},{"./compose":168,"./internal/_concat":235,"./internal/_curry2":240,"./uniq":428}],427:[function(t,e,n){var r=t("./internal/_concat"),i=t("./internal/_curry3"),o=t("./uniqWith");e.exports=i(function(t,e,n){return o(t,r(e,n))})},{"./internal/_concat":235,"./internal/_curry3":241,"./uniqWith":430}],428:[function(t,e,n){var r=t("./identity"),i=t("./uniqBy");e.exports=i(r)},{"./identity":218,"./uniqBy":429}],429:[function(t,e,n){var r=t("./internal/_Set"),i=t("./internal/_curry2");e.exports=i(function(t,e){for(var n,i,o=new r,s=[],a=0;a<e.length;)i=e[a],n=t(i),o.add(n)&&s.push(i),a+=1;return s})},{"./internal/_Set":226,"./internal/_curry2":240}],430:[function(t,e,n){var r=t("./internal/_containsWith"),i=t("./internal/_curry2");e.exports=i(function(t,e){for(var n,i=0,o=e.length,s=[];i<o;)n=e[i],r(t,n,s)||(s[s.length]=n),i+=1;return s})},{"./internal/_containsWith":237,"./internal/_curry2":240}],431:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){return t(n)?n:e(n)})},{"./internal/_curry3":241}],432:[function(t,e,n){var r=t("./internal/_identity"),i=t("./chain");e.exports=i(r)},{"./chain":163,"./internal/_identity":252}],433:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){for(var r=n;!t(r);)r=e(r);return r})},{"./internal/_curry3":241}],434:[function(t,e,n){var r=t("./internal/_curry3"),i=t("./adjust"),o=t("./always");e.exports=r(function(t,e,n){return i(o(e),t,n)})},{"./adjust":144,"./always":147,"./internal/_curry3":241}],435:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./curryN");e.exports=r(function(t,e){return i(e.length,function(){for(var n=[],r=0;r<e.length;)n.push(e[r].call(this,arguments[r])),r+=1;return t.apply(this,n.concat(Array.prototype.slice.call(arguments,e.length)))})})},{"./curryN":179,"./internal/_curry2":240}],436:[function(t,e,n){var r=t("./internal/_curry1"),i=t("./keys");e.exports=r(function(t){for(var e=i(t),n=e.length,r=[],o=0;o<n;)r[o]=t[e[o]],o+=1;return r})},{"./internal/_curry1":239,"./keys":309}],437:[function(t,e,n){var r=t("./internal/_curry1");e.exports=r(function(t){var e,n=[];for(e in t)n[n.length]=t[e];return n})},{"./internal/_curry1":239}],438:[function(t,e,n){var r=t("./internal/_curry2");e.exports=function(){var t=function(t){return{value:t,map:function(){return this}}};return r(function(e,n){return e(t)(n).value})}()},{"./internal/_curry2":240}],439:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){return t(n)?e(n):n})},{"./internal/_curry3":241}],440:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./internal/_has");e.exports=r(function(t,e){for(var n in t)if(i(n,t)&&!t[n](e[n]))return!1;return!0})},{"./internal/_curry2":240,"./internal/_has":251}],441:[function(t,e,n){var r=t("./internal/_curry2"),i=t("./equals"),o=t("./map"),s=t("./where");e.exports=r(function(t,e){return s(o(i,t),e)})},{"./equals":198,"./internal/_curry2":240,"./map":322,"./where":440}],442:[function(t,e,n){var r=t("./internal/_contains"),i=t("./internal/_curry2"),o=t("./flip"),s=t("./reject");e.exports=i(function(t,e){return s(o(r)(t),e)})},{"./flip":206,"./internal/_contains":236,"./internal/_curry2":240,"./reject":383}],443:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n,r=0,i=t.length,o=e.length,s=[];r<i;){for(n=0;n<o;)s[s.length]=[t[r],e[n]],n+=1;r+=1}return s})},{"./internal/_curry2":240}],444:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=[],r=0,i=Math.min(t.length,e.length);r<i;)n[r]=[t[r],e[r]],r+=1;return n})},{"./internal/_curry2":240}],445:[function(t,e,n){var r=t("./internal/_curry2");e.exports=r(function(t,e){for(var n=0,r=Math.min(t.length,e.length),i={};n<r;)i[t[n]]=e[n],n+=1;return i})},{"./internal/_curry2":240}],446:[function(t,e,n){var r=t("./internal/_curry3");e.exports=r(function(t,e,n){for(var r=[],i=0,o=Math.min(e.length,n.length);i<o;)r[i]=t(e[i],n[i]),i+=1;return r})},{"./internal/_curry3":241}],447:[function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);c.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s.nextTick(o,this)}function o(t){t.end()}var s=t("process-nextick-args"),a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};e.exports=r;var u=t("core-util-is");u.inherits=t("inherits");var c=t("./_stream_readable"),l=t("./_stream_writable");u.inherits(r,c);for(var f=a(l.prototype),h=0;h<f.length;h++){var p=f[h];r.prototype[p]||(r.prototype[p]=l.prototype[p])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),s.nextTick(e,t)}},{"./_stream_readable":449,"./_stream_writable":451,"core-util-is":23,inherits:47,"process-nextick-args":130}],448:[function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}e.exports=r;var i=t("./_stream_transform"),o=t("core-util-is");o.inherits=t("inherits"),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},{"./_stream_transform":450,"core-util-is":23,inherits:47}],449:[function(t,e,n){(function(n,r){"use strict";function i(t){return D.from(t)}function o(t){return D.isBuffer(t)||t instanceof q}function s(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?M(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function a(e,n){R=R||t("./_stream_duplex"),e=e||{};var r=n instanceof R;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new W,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(U||(U=t("string_decoder/").StringDecoder),this.decoder=new U(e.encoding),this.encoding=e.encoding)}function u(e){if(R=R||t("./_stream_duplex"),!(this instanceof u))return new u(e);this._readableState=new a(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),I.call(this)}function c(t,e,n,r,o){var s=t._readableState;if(null===e)s.reading=!1,y(t,s);else{var a;o||(a=f(s,e)),a?t.emit("error",a):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===D.prototype||(e=i(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?l(t,s,e,!1):m(t,s)):l(t,s,e,!1))):r||(s.reading=!1)}return h(s)}function l(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&v(t)),m(t,e)}function f(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function p(t){return t>=V?t=V:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function d(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=p(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function y(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?N.nextTick(g,t):g(t))}function g(t){$("emit readable"),t.emit("readable"),k(t)}function m(t,e){e.readingMore||(e.readingMore=!0,N.nextTick(b,t,e))}function b(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function _(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&L(t,"data")&&(e.flowing=!0,k(t))}}function w(t){$("readable nexttick read 0"),t.read(0)}function x(t,e){e.resumeScheduled||(e.resumeScheduled=!0,N.nextTick(S,t,e))}function S(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){if(0===e.length)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=A(t,e.buffer,e.decoder),n}function A(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?C(t,e):O(t,e),r}function C(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function O(t,e){var n=D.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function j(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,N.nextTick(E,e,t))}function E(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}var N=t("process-nextick-args");e.exports=u;var R,M=t("isarray");u.ReadableState=a;var L=(t("events").EventEmitter,function(t,e){return t.listeners(e).length}),I=t("./internal/streams/stream"),D=t("safe-buffer").Buffer,q=r.Uint8Array||function(){},B=t("core-util-is");B.inherits=t("inherits");var H=t("util"),$=void 0;$=H&&H.debuglog?H.debuglog("stream"):function(){};var U,W=t("./internal/streams/BufferList"),F=t("./internal/streams/destroy");B.inherits(u,I);var z=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=F.destroy,u.prototype._undestroy=F.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=D.from(t,e),e=""),n=!0),c(this,t,e,!1,n)},u.prototype.unshift=function(t){return c(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(e){return U||(U=t("string_decoder/").StringDecoder),this._readableState.decoder=new U(e),this._readableState.encoding=e,this};var V=8388608
  ;u.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?j(this):v(this),null;if(0===(t=d(t,e))&&e.ended)return 0===e.length&&j(this),null;var r=e.needReadable;$("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,$("length less than watermark",r)),e.ended||e.reading?(r=!1,$("reading or ended",r)):r&&($("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=d(n,e)));var i;return i=t>0?T(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&j(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function r(t,e){$("onunpipe"),t===h&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){$("onend"),t.end()}function o(){$("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",v),t.removeListener("error",u),t.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",f),h.removeListener("data",a),g=!0,!p.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function a(e){$("ondata"),m=!1,!1!==t.write(e)||m||((1===p.pipesCount&&p.pipes===t||p.pipesCount>1&&-1!==P(p.pipes,t))&&!g&&($("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,m=!0),h.pause())}function u(e){$("onerror",e),f(),t.removeListener("error",u),0===L(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),f()}function l(){$("onfinish"),t.removeListener("close",c),f()}function f(){$("unpipe"),h.unpipe(t)}var h=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=t;break;case 1:p.pipes=[p.pipes,t];break;default:p.pipes.push(t)}p.pipesCount+=1,$("pipe count=%d opts=%j",p.pipesCount,e);var d=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr,y=d?i:f;p.endEmitted?N.nextTick(y):h.once("end",y),t.on("unpipe",r);var v=_(h);t.on("drain",v);var g=!1,m=!1;return h.on("data",a),s(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",h),p.flowing||($("pipe resume"),h.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var s=P(e.pipes,t);return-1===s?this:(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},u.prototype.on=function(t,e){var n=I.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&v(this):N.nextTick(w,this))}return n},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,x(this,t)),this},u.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;t.on("end",function(){if($("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){if($("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){e.push(i)||(r=!0,t.pause())}});for(var i in t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<z.length;o++)t.on(z[o],this.emit.bind(this,z[o]));return this._read=function(e){$("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(u.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),u._fromList=T}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":447,"./internal/streams/BufferList":452,"./internal/streams/destroy":453,"./internal/streams/stream":454,_process:131,"core-util-is":23,events:24,inherits:47,isarray:455,"process-nextick-args":130,"safe-buffer":457,"string_decoder/":462,util:18}],450:[function(t,e,n){"use strict";function r(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function i(t){if(!(this instanceof i))return new i(t);a.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(this,null,null)}function s(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}e.exports=i;var a=t("./_stream_duplex"),u=t("core-util-is");u.inherits=t("inherits"),u.inherits(i,a),i.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},i.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},i.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},i.prototype._destroy=function(t,e){var n=this;a.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},{"./_stream_duplex":447,"core-util-is":23,inherits:47}],451:[function(t,e,n){(function(n,r,i){"use strict";function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){C(e,t)}}function s(t){return M.from(t)}function a(t){return M.isBuffer(t)||t instanceof L}function u(){}function c(e,n){j=j||t("./_stream_duplex"),e=e||{};var r=n instanceof j;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){m(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(j=j||t("./_stream_duplex"),!(D.call(l,this)||this instanceof j))return new l(e);this._writableState=new c(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),R.call(this)}function f(t,e){var n=new Error("write after end");t.emit("error",n),O.nextTick(e,n)}function h(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),O.nextTick(r,o),i=!1),i}function p(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=M.from(e,n)),e}function d(t,e,n,r,i,o){if(!n){var s=p(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else y(t,e,!1,a,r,i,o);return u}function y(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function v(t,e,n,r,i){--e.pendingcb,n?(O.nextTick(i,r),O.nextTick(T,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),T(t,e))}function g(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function m(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(g(n),e)v(t,n,r,e,i);else{var o=x(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?E(b,t,n,o,i):b(t,n,o,i)}}function b(t,e,n,r){n||_(t,e),e.pendingcb--,r(),T(t,e)}function _(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,y(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(y(t,e,!1,e.objectMode?1:c.length,c,l,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function S(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),T(t,e)})}function k(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,O.nextTick(S,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function T(t,e){var n=x(e);return n&&(k(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function A(t,e,n){e.ending=!0,T(t,e),n&&(e.finished?O.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function C(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var O=t("process-nextick-args");e.exports=l;var j,E=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:O.nextTick;l.WritableState=c;var P=t("core-util-is");P.inherits=t("inherits");var N={deprecate:t("util-deprecate")},R=t("./internal/streams/stream"),M=t("safe-buffer").Buffer,L=r.Uint8Array||function(){},I=t("./internal/streams/destroy");P.inherits(l,R),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:N.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var D;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(D=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(t){return!!D.call(this,t)||this===l&&(t&&t._writableState instanceof c)}})):D=function(t){return t instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&a(t);return o&&!M.isBuffer(t)&&(t=s(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=u),r.ended?f(this,n):(o||h(this,r,t,n))&&(r.pendingcb++,i=d(this,r,o,t,e,n)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},l.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),l.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||A(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),l.prototype.destroy=I.destroy,l.prototype._undestroy=I.undestroy,l.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("timers").setImmediate)},{"./_stream_duplex":447,"./internal/streams/destroy":453,"./internal/streams/stream":454,_process:131,"core-util-is":23,inherits:47,"process-nextick-args":130,"safe-buffer":457,timers:465,"util-deprecate":480}],452:[function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=t("safe-buffer").Buffer,s=t("util");e.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}(),s&&s.inspect&&s.inspect.custom&&(e.exports.prototype[s.inspect.custom]=function(){var t=s.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":457,util:18}],453:[function(t,e,n){"use strict";function r(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||s.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(s.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(t,e){t.emit("error",e)}var s=t("process-nextick-args");e.exports={destroy:r,undestroy:i}},{"process-nextick-args":130}],454:[function(t,e,n){e.exports=t("events").EventEmitter},{events:24}],455:[function(t,e,n){arguments[4][20][0].apply(n,arguments)},{dup:20}],456:[function(t,e,n){n=e.exports=t("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":447,"./lib/_stream_passthrough.js":448,"./lib/_stream_readable.js":449,"./lib/_stream_transform.js":450,"./lib/_stream_writable.js":451}],457:[function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return s(t,e,n)}var o=t("buffer"),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=o:(r(o,n),n.Buffer=i),r(s,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=s(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},{buffer:19}],458:[function(t,e,n){(function(e){var r=t("./lib/request"),i=t("./lib/response"),o=t("xtend"),s=t("builtin-status-codes"),a=t("url"),u=n;u.request=function(t,n){t="string"==typeof t?a.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||i,u=t.hostname||t.host,c=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},u.get=function(t,e){var n=u.request(t,e);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":460,"./lib/response":461,"builtin-status-codes":21,url:478,xtend:485}],459:[function(t,e,n){(function(t){function e(){if(void 0!==o)return o;if(t.XMLHttpRequest){o=new t.XMLHttpRequest;try{o.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){o=null}}else o=null;return o}function r(t){var n=e();if(!n)return!1;try{return n.responseType=t,n.responseType===t}catch(t){}return!1}function i(t){return"function"==typeof t}n.fetch=i(t.fetch)&&i(t.ReadableStream),n.writableStream=i(t.WritableStream),n.abortController=i(t.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(t){}var o,s=void 0!==t.ArrayBuffer,a=s&&i(t.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||s&&r("arraybuffer"),n.msstream=!n.fetch&&a&&r("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&s&&r("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!e()&&i(e().overrideMimeType),n.vbArray=i(t.VBArray),o=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],460:[function(t,e,n){(function(n,r,i){function o(t,e){return a.fetch&&e?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&t?"arraybuffer":a.vbArray&&t?"text:vbarray":"text"}function s(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}}var a=t("./capability"),u=t("inherits"),c=t("./response"),l=t("readable-stream"),f=t("to-arraybuffer"),h=c.IncomingMessage,p=c.readyStates,d=e.exports=function(t){var e=this;l.Writable.call(e),e._opts=t,e._body=[],e._headers={},t.auth&&e.setHeader("Authorization","Basic "+new i(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(n){e.setHeader(n,t.headers[n])});var n,r=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!a.abortController)r=!1,n=!0;else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!a.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");n=!0}e._mode=o(n,r),e._fetchTimer=null,e.on("finish",function(){e._onFinish()})};u(d,l.Writable),d.prototype.setHeader=function(t,e){var n=this,r=t.toLowerCase();-1===y.indexOf(r)&&(n._headers[r]={name:t,value:e})},d.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},d.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},d.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,o=t._headers,s=null;"GET"!==e.method&&"HEAD"!==e.method&&(s=a.arraybuffer?f(i.concat(t._body)):a.blobConstructor?new r.Blob(t._body.map(function(t){return f(t)}),{type:(o["content-type"]||{}).value||""}):i.concat(t._body).toString());var u=[];if(Object.keys(o).forEach(function(t){var e=o[t].name,n=o[t].value;Array.isArray(n)?n.forEach(function(t){u.push([e,t])}):u.push([e,n])}),"fetch"===t._mode){var c=null;if(a.abortController){var l=new AbortController;c=l.signal,t._fetchAbortController=l,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=r.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))}r.fetch(t._opts.url,{method:t._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:c}).then(function(e){t._fetchResponse=e,t._connect()},function(e){r.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var h=t._xhr=new r.XMLHttpRequest;try{h.open(t._opts.method,t._opts.url,!0)}catch(e){return void n.nextTick(function(){t.emit("error",e)})}"responseType"in h&&(h.responseType=t._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(h.timeout=e.requestTimeout,h.ontimeout=function(){t.emit("requestTimeout")}),u.forEach(function(t){h.setRequestHeader(t[0],t[1])}),t._response=null,h.onreadystatechange=function(){switch(h.readyState){case p.LOADING:case p.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(h.onprogress=function(){t._onXHRProgress()}),h.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{h.send(s)}catch(e){return void n.nextTick(function(){t.emit("error",e)})}}}},d.prototype._onXHRProgress=function(){var t=this;s(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},d.prototype._connect=function(){var t=this;t._destroyed||(t._response=new h(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},d.prototype._write=function(t,e,n){this._body.push(t),n()},d.prototype.abort=d.prototype.destroy=function(){var t=this;t._destroyed=!0,r.clearTimeout(t._fetchTimer),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort()},d.prototype.end=function(t,e,n){var r=this;"function"==typeof t&&(n=t,t=void 0),l.Writable.prototype.end.call(r,t,e,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var y=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"./capability":459,"./response":461,_process:131,buffer:19,inherits:47,"readable-stream":456,"to-arraybuffer":477}],461:[function(t,e,n){(function(e,r,i){var o=t("./capability"),s=t("inherits"),a=t("readable-stream"),u=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=n.IncomingMessage=function(t,n,s,u){function c(){h.read().then(function(t){if(!l._destroyed){if(t.done)return r.clearTimeout(u),void l.push(null);l.push(new i(t.value)),c()}}).catch(function(t){r.clearTimeout(u),l._destroyed||l.emit("error",t)})}var l=this;if(a.Readable.call(l),l._mode=s,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){e.nextTick(function(){l.emit("close")})}),"fetch"===s){if(l._fetchResponse=n,l.url=n.url,l.statusCode=n.status,l.statusMessage=n.statusText,n.headers.forEach(function(t,e){l.headers[e.toLowerCase()]=t,l.rawHeaders.push(e,t)}),o.writableStream){var f=new WritableStream({write:function(t){return new Promise(function(e,n){l._destroyed?n():l.push(new i(t))?e():l._resumeFetch=e})},close:function(){r.clearTimeout(u),l._destroyed||l.push(null)},abort:function(t){l._destroyed||l.emit("error",t)}});try{return void n.body.pipeTo(f).catch(function(t){r.clearTimeout(u),l._destroyed||l.emit("error",t)})}catch(t){}}var h=n.body.getReader();c()}else{l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.statusMessage=t.statusText;if(t.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(e[2])):void 0!==l.headers[n]?l.headers[n]+=", "+e[2]:l.headers[n]=e[2],l.rawHeaders.push(e[1],e[2])}}),l._charset="x-user-defined",!o.overrideMimeType){var p=l.rawHeaders["mime-type"];if(p){var d=p.match(/;\s*charset=([^;])(;|$)/);d&&(l._charset=d[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};s(c,a.Readable),c.prototype._read=function(){var t=this,e=t._resumeFetch;e&&(t._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==u.DONE)break;try{n=new r.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new i(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var s=new i(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);t.push(s)}else t.push(o,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==u.DONE||!e.response)break;n=e.response,t.push(new i(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==u.LOADING||!n)break;t.push(new i(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==u.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(new i(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"./capability":459,_process:131,buffer:19,inherits:47,"readable-stream":456}],462:[function(t,e,n){"use strict";function r(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(t){var e=r(t);if("string"!=typeof e&&(m.isEncoding===b||!b(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){this.encoding=i(t);var e;switch(this.encoding){case"utf16le":this.text=h,this.end=p,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=d,this.end=y,e=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t,e,n){var r=e.length-1;if(r<n)return 0;var i=s(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=s(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=s(e[r]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0)}function u(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}function c(t){var e=this.lastTotal-this.lastNeed,n=u(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){var n=a(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function h(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function p(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function d(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function y(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function g(t){return t&&t.length?this.write(t):""}var m=t("safe-buffer").Buffer,b=m.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=f,o.prototype.text=l,o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":457}],463:[function(t,e,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i,o=t("./ponyfill.js"),s=function(t){return t&&t.__esModule?t:{default:t}}(o);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:void 0!==e?e:Function("return this")();var a=(0,s.default)(i);n.default=a
  }).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill.js":464}],464:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],465:[function(t,e,n){(function(e,r){function i(t,e){this._id=t,this._clearFn=e}var o=t("process/browser.js").nextTick,s=Function.prototype.apply,a=Array.prototype.slice,u={},c=0;n.setTimeout=function(){return new i(s.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new i(s.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n.setImmediate="function"==typeof e?e:function(t){var e=c++,r=!(arguments.length<2)&&a.call(arguments,1);return u[e]=!0,o(function(){u[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))}),e},n.clearImmediate="function"==typeof r?r:function(t){delete u[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":131,timers:465}],466:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){return{id:t.full_url,definition:{type:t.activity_type,name:t.activity_name,description:{"en-US":t.activity_name}},getContext:function(t,e){return{}}}};n.default=r},{}],467:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most"),i=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r),t("most-subject")),o=t("tincanjs"),s=(function(t){t&&t.__esModule}(o),t("../helpers"),new Date),a=function(t,e,n){var r=(0,i.async)(),o=new Date,a={location:n,attempt_duration:Math.round((o-s)/1e3)};return console.log("BOOKMARK:",a),t("bookmarking-data",a,function(t,e){t?r.error(t).complete():r.next(e.response).complete()}),r};n.default=a},{"../helpers":474,most:98,"most-subject":56,tincanjs:476}],468:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most"),i=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r),t("most-subject")),o=t("tincanjs"),s=function(t){return t&&t.__esModule?t:{default:t}}(o),a=t("../helpers"),u=function(t,e){var n=(0,i.async)(),r=[],o=a.timer.stop(e.id);console.log(o,e.id);var u={verb:{id:"http://adlnet.gov/expapi/verbs/completed",display:{"en-US":"completed"}},context:e.getContext(),result:{completion:!0,success:!0,duration:s.default.Utils.convertMillisecondsToISO8601Duration(o.elapsed)}};return r.push(u),t(r,function(t,e){var r=t.err;r?n.error(r).complete():n.next(e).complete()}),n};n.default=u},{"../helpers":474,most:98,"most-subject":56,tincanjs:476}],469:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most"),i=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r),t("most-subject"),t("tincanjs")),o=(function(t){t&&t.__esModule}(i),t("../helpers"),function(t){t.getState("bookmarking-data",{callback:function(t,e){null===t&&null!==e&&""!==e.contents.location?(console.log("Bookmarking Data Found",e.contents.location,t),bus.emit("tincan::bookmark::found",e.contents.location)):console.log("Bookmarking Data not found",e,t)}})});n.default=o,bus.on("tincan::fetch_bookmark",o)},{"../helpers":474,most:98,"most-subject":56,tincanjs:476}],470:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most"),i=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r),t("most-subject"),t("tincanjs")),o=(function(t){t&&t.__esModule}(i),t("../helpers"),function(t){t.getState("section-data",{callback:function(t,e){null===t&&null!==e&&""!==e.contents.sections?(console.log("Section Data Found",e.contents.sections,t,e),bus.emit("tincan::sections::restore",e.contents.sections)):console.log("Section Data not found",e,t)}})});n.default=o,bus.on("tincan::fetch_sections",o)},{"../helpers":474,most:98,"most-subject":56,tincanjs:476}],471:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most"),i=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r),t("most-subject")),o=t("tincanjs"),s=(function(t){t&&t.__esModule}(o),t("../helpers"),new Date),a=function(t,e,n){var r=(0,i.async)(),o=new Date,a={sections:n,activity_id:e.id,attempt_duration:Math.round((o-s)/1e3)};return console.log("Sections state to LRS:",a),t("section-data",a,function(t,e){t?r.error(t).complete():r.next(e.response).complete()}),r};n.default=a},{"../helpers":474,most:98,"most-subject":56,tincanjs:476}],472:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most"),i=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r),t("most-subject")),o=t("tincanjs"),s=(function(t){t&&t.__esModule}(o),t("../helpers")),a=function(t,e){var n=(0,i.async)();s.timer.start(e.id);bus.emit("bookmark::fetch");var r=[],o={verb:{id:"http://adlnet.gov/expapi/verbs/initialized",display:{"en-US":"initialized"}},context:e.getContext(),result:{duration:"PT0S"}},a={verb:{id:"http://adlnet.gov/expapi/verbs/attempted",display:{"en-US":"attempted"}},context:e.getContext(),result:{duration:"PT0S"}};return r.push(o),r.push(a),t(r,function(t,e){var r=t.err;r?n.error(r).complete():n.next(e).complete()}),n};n.default=a},{"../helpers":474,most:98,"most-subject":56,tincanjs:476}],473:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("most-subject"),i=(t("partybus"),t("../helpers"),function(t,e,n){var i=(0,r.async)(),o=[],s={verb:{id:"http://adlnet.gov/expapi/activities/interaction",display:{"en-US":"interacted with"}},result:function(t,e){return"leave_course"===t||"leave_section"===t||"end_video"===t?{duration:TinCan.Utils.convertMillisecondsToISO8601Duration(e.end.elapsed)}:{}}(n.type,n.info),object:function(t,n){return"access_activity"===t?{id:e.id,objectType:"Activity",definition:{name:{"en-US":e.name},description:{"en-US":e.name},type:"http://adlnet.gov/expapi/activities/lesson"},name:e.name,extensions:{"http://scitent.com/xapi/action":{name:{"en-US":"action"},description:{"en-US":"access_course"}},"http://scitent.com/xapi/name":{name:{"en-US":"name"},description:{"en-US":e.name}},"http://scitent.com/xapi/start":{name:{"en-US":"start"},description:{"en-US":n.start}}}}:"leave_activity"===t?{id:e.id,objectType:"Activity",definition:{name:{"en-US":e.name},description:{"en-US":e.name},type:"http://adlnet.gov/expapi/activities/lesson"},name:e.name,extensions:{"http://scitent.com/xapi/action":{name:{"en-US":"action"},description:{"en-US":"leave_activity"}},"http://scitent.com/xapi/name":{name:{"en-US":"name"},description:{"en-US":e.name}},"http://scitent.com/xapi/end":{name:{"en-US":"end"},description:{"en-US":n.end.end}},"http://scitent.com/xapi/elapsed":{name:{"en-US":"elapsed"},description:{"en-US":n.end.elapsed}}}}:"start_video"===t?{id:e.id,objectType:"Activity",definition:{name:{"en-US":n.section+" - "+n.name+" - "+n.src},description:{"en-US":n.src},type:"http://adlnet.gov/expapi/activities/media"},name:n.name,extensions:{"http://scitent.com/xapi/action":{name:{"en-US":"action"},description:{"en-US":"start_video"}},"http://scitent.com/xapi/src":{name:{"en-US":"src"},description:{"en-US":n.src}},"http://scitent.com/xapi/currentTime":{name:{"en-US":"currentTime"},description:{"en-US":n.currentTime}},"http://scitent.com/xapi/start":{name:{"en-US":"start"},description:{"en-US":n.start}}}}:"end_video"===t?{id:e.id,objectType:"Activity",definition:{name:{"en-US":n.section+" - "+n.name+" - "+n.src},description:{"en-US":n.src},type:"http://adlnet.gov/expapi/activities/media"},name:n.name,extensions:{"http://scitent.com/xapi/action":{name:{"en-US":"action"},description:{"en-US":"end_video"}},"http://scitent.com/xapi/src":{name:{"en-US":"src"},description:{"en-US":n.src}},"http://scitent.com/xapi/currentTime":{name:{"en-US":"currentTime"},description:{"en-US":n.currentTime}},"http://scitent.com/xapi/end":{name:{"en-US":"end"},description:{"en-US":n.end.end}},"http://scitent.com/xapi/elapsed":{name:{"en-US":"elapsed"},description:{"en-US":n.end.elapsed}}}}:"access_help"===t?{id:e.id,objectType:"Activity",definition:{name:"help button",description:{"en-US":e.name}},extensions:{"http://scitent.com/xapi/action":{name:{"en-US":"action"},description:{"en-US":"access_help"}}}}:void 0}(n.type,n.info),context:e.getContext()};return o.push(s),t(o,function(t,e){var n=t.err;n?i.error(n).complete():i.next(e).complete()}),i});n.default=i},{"../helpers":474,"most-subject":56,partybus:129}],474:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(t){for(var e=0;e<t.length;e++)-1!=t.indexOf(t[e],e+1)&&(t.splice(e,1),e--);return t},i=function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},o=function(){var t={},e=function(){return{create:function(){var t=null,e=null;return{start:function(){return t=new Date,t.toISOString()},stop:function(){return e=new Date,{start:t.toISOString(),end:e.toISOString(),elapsed:e-t}}}}}}();return{start:function(n){if(!t[n]){t[n]=e.create();var r=t[n].start();return console.log("⏱ timer started",n,r),r}},stop:function(e){var n=t[e];if(n){var r=n.stop();return console.log("⏰ timer stopped",e,r),r}},elapsed:function(e){var n=t[e];if(n){return n.stop()}}}}();n.unique=r,n.slugify=i,n.timer=o},{}],475:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=(t("./helpers"),t("partybus")),o=t("most"),s=(function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(o),t("most-subject"),t("tincanjs")),a=r(s),u=t("./activity"),c=r(u),l=t("./events/start"),f=r(l),h=t("./events/complete"),p=r(h),d=t("./events/track"),y=r(d),v=t("./events/bookmark"),g=r(v),m=t("./events/sections"),b=r(m),_=t("./events/fetch_bookmark"),w=(r(_),t("./events/fetch_sections"));r(w);n.default=function(t,e,n){var r=(0,c.default)(t),o=new a.default({url:n||window.location.href,activity:r}),s=function(t,n){e?(console.log("Sending Statements to the LRS",t),o.sendStatements(t,n)):console.log("LRS Statements... not sending",t)},u=function(t,n,r){if(e){console.log("Sending setState to the LRS",t,n);try{o.setState(t,n,{contentType:"application/json",overwriteJSON:!1,callback:r})}catch(t){console.log("ERROR setState",t)}}else console.log("LRS setState... not sending",t,n)};return i.bus.on("tincan::start",function(){(0,f.default)(s,r).drain()}),i.bus.on("tincan::complete",function(){(0,p.default)(s,r).drain()}),i.bus.on("tincan::track",function(t){(0,y.default)(s,r,t).drain()}),i.bus.on("tincan::bookmark",function(t){(0,g.default)(u,r,t).drain()}),i.bus.on("tincan::sections",function(t){(0,b.default)(u,r,t).drain()}),i.bus.emit("tincan::ready"),i.bus.emit("tincan::fetch_bookmark",o),i.bus.emit("tincan::fetch_sections",o),o}},{"./activity":466,"./events/bookmark":467,"./events/complete":468,"./events/fetch_bookmark":469,"./events/fetch_sections":470,"./events/sections":471,"./events/start":472,"./events/track":473,"./helpers":474,most:98,"most-subject":56,partybus:129,tincanjs:476}],476:[function(t,e,n){(function(n){"0.50.0";var r=r||function(t,e){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(t){i.prototype=this;var e=new i;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=r.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var i=0;i<t;i++)e[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535<n.length)for(i=0;i<t;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;r<e;r+=4)n.push(4294967296*t.random()|0);return new s.init(n,e)}}),a=n.enc={},u=a.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r<t;r++){var i=e[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},c=a.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r<t;r++)n.push(String.fromCharCode(e[r>>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},l=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,a=i/(4*o),a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0);if(e=a*o,i=t.min(4*e,i),e){for(var u=0;u<e;u+=o)this._doProcessBlock(r,u);u=r.splice(0,e),n.sigBytes-=i}return new s.init(u,i)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new h.HMAC.init(t,n).finalize(e)}}});var h=n.algo={};return n}(Math);!function(){var t=r,e=t.lib,n=e.WordArray,i=e.Hasher,o=[],e=t.algo.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],s=n[2],a=n[3],u=n[4],c=0;80>c;c++){if(16>c)o[c]=0|t[e+c];else{var l=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=l<<1|l>>>31}l=(r<<5|r>>>27)+u+o[c],l=20>c?l+(1518500249+(i&s|~i&a)):40>c?l+(1859775393+(i^s^a)):60>c?l+((i&s|i&a|s&a)-1894007588):l+((i^s^a)-899497514),u=a,a=s,s=i<<30|i>>>2,i=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(e),t.HmacSHA1=i._createHmacHelper(e)}();var r=r||function(t,e){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(t){i.prototype=this;var e=new i;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=r.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var i=0;i<t;i++)e[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535<n.length)for(i=0;i<t;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;r<e;r+=4)n.push(4294967296*t.random()|0);return new s.init(n,e)}}),a=n.enc={},u=a.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r<t;r++){var i=e[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(n,e/2)}},c=a.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r<t;r++)n.push(String.fromCharCode(e[r>>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(n,e)}},l=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,a=i/(4*o),a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0);if(e=a*o,i=t.min(4*e,i),e){for(var u=0;u<e;u+=o)this._doProcessBlock(r,u);u=r.splice(0,e),n.sigBytes-=i}return new s.init(u,i)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new h.HMAC.init(t,n).finalize(e)}}});var h=n.algo={};return n}(Math);!function(t){for(var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,n=e.algo,s=[],a=[],u=function(t){return 4294967296*(t-(0|t))|0},c=2,l=0;64>l;){var f;t:{f=c;for(var h=t.sqrt(f),p=2;p<=h;p++)if(!(f%p)){f=!1;break t}f=!0}f&&(8>l&&(s[l]=u(t.pow(c,.5))),a[l]=u(t.pow(c,1/3)),l++),c++}var d=[],n=n.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=n[5],l=n[6],f=n[7],h=0;64>h;h++){if(16>h)d[h]=0|t[e+h];else{var p=d[h-15],y=d[h-2];d[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+d[h-7]+((y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10)+d[h-16]}p=f+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+a[h]+d[h],y=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),f=l,l=c,c=u,u=s+p|0,s=o,o=i,i=r,r=p+y|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(n),e.HmacSHA256=o._createHmacHelper(n)}(Math),function(){var t=r,e=t.lib,n=e.WordArray,i=t.enc;i.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var s=e[o>>>2]>>>24-o%4*8&255,a=e[o+1>>>2]>>>24-(o+1)%4*8&255,u=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=s<<16|a<<8|u,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(c>>>6*(3-l)&63));var f=r.charAt(64);if(f)for(;i.length%4;)i.push(f);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=r.charAt(64);if(i){var o=t.indexOf(i);-1!=o&&(e=o)}for(var s=[],a=0,u=0;u<e;u++)if(u%4){var c=r.indexOf(t.charAt(u-1))<<u%4*2,l=r.indexOf(t.charAt(u))>>>6-u%4*2;s[a>>>2]|=(c|l)<<24-a%4*8,a++}return n.create(s,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(){if("function"==typeof ArrayBuffer){var t=r,e=t.lib,n=e.WordArray,i=n.init;(n.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],r=0;r<e;r++)n[r>>>2]|=t[r]<<24-r%4*8;i.call(this,n,e)}else i.apply(this,arguments)}).prototype=n}}();var i;!function(){"use strict";var t={statementId:!0,voidedStatementId:!0,verb:!0,object:!0,registration:!0,context:!0,actor:!0,since:!0,until:!0,limit:!0,authoritative:!0,sparse:!0,instructor:!0,ascending:!0,continueToken:!0,agent:!0,activityId:!0,stateId:!0,profileId:!0,activity_platform:!0,grouping:!0,"Accept-Language":!0};i=function(t){this.log("constructor"),this.recordStores=[],this.actor=null,this.activity=null,this.registration=null,this.context=null,this.init(t)},i.prototype={LOG_SRC:"TinCan",log:function(t,e){i.DEBUG&&"undefined"!=typeof console&&console.log&&(e=e||this.LOG_SRC||"TinCan",console.log("TinCan."+e+": "+t))},init:function(t){this.log("init");var e;if(t=t||{},t.hasOwnProperty("url")&&""!==t.url&&this._initFromQueryString(t.url),t.hasOwnProperty("recordStores")&&void 0!==t.recordStores)for(e=0;e<t.recordStores.length;e+=1)this.addRecordStore(t.recordStores[e]);t.hasOwnProperty("activity")&&(t.activity instanceof i.Activity?this.activity=t.activity:this.activity=new i.Activity(t.activity)),t.hasOwnProperty("actor")&&(t.actor instanceof i.Agent?this.actor=t.actor:this.actor=new i.Agent(t.actor)),t.hasOwnProperty("context")&&(t.context instanceof i.Context?this.context=t.context:this.context=new i.Context(t.context)),t.hasOwnProperty("registration")&&(this.registration=t.registration)},_initFromQueryString:function(e){this.log("_initFromQueryString");var n,r,o,s=i.Utils.parseURL(e).params,a=["endpoint","auth"],u={},c=null;if(s.hasOwnProperty("actor")){this.log("_initFromQueryString - found actor: "+s.actor);try{this.actor=i.Agent.fromJSON(s.actor),delete s.actor}catch(t){this.log("_initFromQueryString - failed to set actor: "+t)}}if(s.hasOwnProperty("activity_id")&&(this.activity=new i.Activity({id:s.activity_id}),delete s.activity_id),(s.hasOwnProperty("activity_platform")||s.hasOwnProperty("registration")||s.hasOwnProperty("grouping"))&&(o={},s.hasOwnProperty("activity_platform")&&(o.platform=s.activity_platform,delete s.activity_platform),s.hasOwnProperty("registration")&&(o.registration=this.registration=s.registration,delete s.registration),s.hasOwnProperty("grouping")&&(o.contextActivities={},o.contextActivities.grouping=s.grouping,delete s.grouping),this.context=new i.Context(o)),s.hasOwnProperty("endpoint")){for(n=0;n<a.length;n+=1)r=a[n],s.hasOwnProperty(r)&&(u[r]=s[r],delete s[r]);for(n in s)s.hasOwnProperty(n)&&(t.hasOwnProperty(n)?delete s[n]:(c=c||{},c[n]=s[n]));null!==c&&(u.extended=c),u.allowFail=!1,this.addRecordStore(u)}},addRecordStore:function(t){this.log("addRecordStore");var e;e=t instanceof i.LRS?t:new i.LRS(t),this.recordStores.push(e)},prepareStatement:function(t){return this.log("prepareStatement"),t instanceof i.Statement||(t=new i.Statement(t)),null===t.actor&&null!==this.actor&&(t.actor=this.actor),null===t.target&&null!==this.activity&&(t.target=this.activity),null!==this.context&&(null===t.context?t.context=this.context:(null===t.context.registration&&(t.context.registration=this.context.registration),null===t.context.platform&&(t.context.platform=this.context.platform),null!==this.context.contextActivities&&(null===t.context.contextActivities?t.context.contextActivities=this.context.contextActivities:(null!==this.context.contextActivities.grouping&&null===t.context.contextActivities.grouping&&(t.context.contextActivities.grouping=this.context.contextActivities.grouping),null!==this.context.contextActivities.parent&&null===t.context.contextActivities.parent&&(t.context.contextActivities.parent=this.context.contextActivities.parent),null!==this.context.contextActivities.other&&null===t.context.contextActivities.other&&(t.context.contextActivities.other=this.context.contextActivities.other))))),t},sendStatement:function(t,e){this.log("sendStatement");var n,r,i,o=this,s=this.prepareStatement(t),a=this.recordStores.length,u=[],c=[];if(a>0)for("function"==typeof e&&(i=function(t,n){var r;o.log("sendStatement - callbackWrapper: "+a),a>1?(a-=1,c.push({err:t,xhr:n})):1===a?(c.push({err:t,xhr:n}),r=[c,s],e.apply(this,r)):o.log("sendStatement - unexpected record store count: "+a)}),r=0;r<a;r+=1)n=this.recordStores[r],u.push(n.saveStatement(s,{callback:i}));else this.log("[warning] sendStatement: No LRSs added yet (statement not sent)"),"function"==typeof e&&e.apply(this,[null,s]);return{statement:s,results:u}},getStatement:function(t,e,n){this.log("getStatement");var r;if(n=n||{},n.params=n.params||{},this.recordStores.length>0)return r=this.recordStores[0],r.retrieveStatement(t,{callback:e,params:n.params});this.log("[warning] getStatement: No LRSs added yet (statement not retrieved)")},voidStatement:function(t,e,n){this.log("voidStatement");var r,o,s,a,u,c=this,l=this.recordStores.length,f=[],h=[];if(t instanceof i.Statement&&(t=t.id),void 0!==n.actor?o=n.actor:null!==this.actor&&(o=this.actor),s=new i.Statement({actor:o,verb:{id:"http://adlnet.gov/expapi/verbs/voided"},target:{objectType:"StatementRef",id:t}}),l>0)for("function"==typeof e&&(u=function(t,n){var r;c.log("voidStatement - callbackWrapper: "+l),l>1?(l-=1,h.push({err:t,xhr:n})):1===l?(h.push({err:t,xhr:n}),r=[h,s],e.apply(this,r)):c.log("voidStatement - unexpected record store count: "+l)}),a=0;a<l;a+=1)r=this.recordStores[a],f.push(r.saveStatement(s,{callback:u}));else this.log("[warning] voidStatement: No LRSs added yet (statement not sent)"),"function"==typeof e&&e.apply(this,[null,s]);return{statement:s,results:f}},getVoidedStatement:function(t,e){this.log("getVoidedStatement");var n;if(this.recordStores.length>0)return n=this.recordStores[0],n.retrieveVoidedStatement(t,{callback:e});this.log("[warning] getVoidedStatement: No LRSs added yet (statement not retrieved)")},sendStatements:function(t,e){this.log("sendStatements");var n,r,i,o=this,s=[],a=this.recordStores.length,u=[],c=[];if(0===t.length)"function"==typeof e&&e.apply(this,[null,s]);else{for(r=0;r<t.length;r+=1)s.push(this.prepareStatement(t[r]));if(a>0)for("function"==typeof e&&(i=function(t,n){var r;o.log("sendStatements - callbackWrapper: "+a),a>1?(a-=1,c.push({err:t,xhr:n})):1===a?(c.push({err:t,xhr:n}),r=[c,s],e.apply(this,r)):o.log("sendStatements - unexpected record store count: "+a)}),r=0;r<a;r+=1)n=this.recordStores[r],u.push(n.saveStatements(s,{callback:i}));else this.log("[warning] sendStatements: No LRSs added yet (statements not sent)"),"function"==typeof e&&e.apply(this,[null,s])}return{statements:s,results:u}},getStatements:function(t){this.log("getStatements");var e,n,r={};if(this.recordStores.length>0)return e=this.recordStores[0],t=t||{},n=t.params||{},t.sendActor&&null!==this.actor&&("0.9"===e.version||"0.95"===e.version?n.actor=this.actor:n.agent=this.actor),t.sendActivity&&null!==this.activity&&("0.9"===e.version||"0.95"===e.version?n.target=this.activity:n.activity=this.activity),void 0===n.registration&&null!==this.registration&&(n.registration=this.registration),r={params:n},void 0!==t.callback&&(r.callback=t.callback),e.queryStatements(r);this.log("[warning] getStatements: No LRSs added yet (statements not read)")},getState:function(t,e){this.log("getState");var n,r;if(this.recordStores.length>0)return r=this.recordStores[0],e=e||{},n={agent:void 0!==e.agent?e.agent:this.actor,activity:void 0!==e.activity?e.activity:this.activity},void 0!==e.registration?n.registration=e.registration:null!==this.registration&&(n.registration=this.registration),void 0!==e.callback&&(n.callback=e.callback),r.retrieveState(t,n);this.log("[warning] getState: No LRSs added yet (state not retrieved)")},setState:function(t,e,n){this.log("setState");var r,o;if(this.recordStores.length>0)return o=this.recordStores[0],n=n||{},r={agent:void 0!==n.agent?n.agent:this.actor,activity:void 0!==n.activity?n.activity:this.activity},void 0!==n.registration?r.registration=n.registration:null!==this.registration&&(r.registration=this.registration),void 0!==n.lastSHA1&&(r.lastSHA1=n.lastSHA1),void 0!==n.contentType&&(r.contentType=n.contentType,void 0!==n.overwriteJSON&&!n.overwriteJSON&&i.Utils.isApplicationJSON(n.contentType)&&(r.method="POST")),void 0!==n.callback&&(r.callback=n.callback),o.saveState(t,e,r);this.log("[warning] setState: No LRSs added yet (state not saved)")},deleteState:function(t,e){this.log("deleteState");var n,r;if(this.recordStores.length>0)return r=this.recordStores[0],e=e||{},n={agent:void 0!==e.agent?e.agent:this.actor,activity:void 0!==e.activity?e.activity:this.activity},void 0!==e.registration?n.registration=e.registration:null!==this.registration&&(n.registration=this.registration),void 0!==e.callback&&(n.callback=e.callback),r.dropState(t,n);this.log("[warning] deleteState: No LRSs added yet (state not deleted)")},getActivityProfile:function(t,e){this.log("getActivityProfile");var n,r;if(this.recordStores.length>0)return r=this.recordStores[0],e=e||{},n={activity:void 0!==e.activity?e.activity:this.activity},void 0!==e.callback&&(n.callback=e.callback),r.retrieveActivityProfile(t,n);this.log("[warning] getActivityProfile: No LRSs added yet (activity profile not retrieved)")},setActivityProfile:function(t,e,n){this.log("setActivityProfile");var r,o;if(this.recordStores.length>0)return o=this.recordStores[0],n=n||{},r={activity:void 0!==n.activity?n.activity:this.activity},void 0!==n.callback&&(r.callback=n.callback),void 0!==n.lastSHA1&&(r.lastSHA1=n.lastSHA1),void 0!==n.contentType&&(r.contentType=n.contentType,void 0!==n.overwriteJSON&&!n.overwriteJSON&&i.Utils.isApplicationJSON(n.contentType)&&(r.method="POST")),o.saveActivityProfile(t,e,r);this.log("[warning] setActivityProfile: No LRSs added yet (activity profile not saved)")},deleteActivityProfile:function(t,e){this.log("deleteActivityProfile");var n,r;if(this.recordStores.length>0)return r=this.recordStores[0],e=e||{},n={activity:void 0!==e.activity?e.activity:this.activity},void 0!==e.callback&&(n.callback=e.callback),r.dropActivityProfile(t,n)
  ;this.log("[warning] deleteActivityProfile: No LRSs added yet (activity profile not deleted)")},getAgentProfile:function(t,e){this.log("getAgentProfile");var n,r;if(this.recordStores.length>0)return r=this.recordStores[0],e=e||{},n={agent:void 0!==e.agent?e.agent:this.actor},void 0!==e.callback&&(n.callback=e.callback),r.retrieveAgentProfile(t,n);this.log("[warning] getAgentProfile: No LRSs added yet (agent profile not retrieved)")},setAgentProfile:function(t,e,n){this.log("setAgentProfile");var r,o;if(this.recordStores.length>0)return o=this.recordStores[0],n=n||{},r={agent:void 0!==n.agent?n.agent:this.actor},void 0!==n.callback&&(r.callback=n.callback),void 0!==n.lastSHA1&&(r.lastSHA1=n.lastSHA1),void 0!==n.contentType&&(r.contentType=n.contentType,void 0!==n.overwriteJSON&&!n.overwriteJSON&&i.Utils.isApplicationJSON(n.contentType)&&(r.method="POST")),o.saveAgentProfile(t,e,r);this.log("[warning] setAgentProfile: No LRSs added yet (agent profile not saved)")},deleteAgentProfile:function(t,e){this.log("deleteAgentProfile");var n,r;if(this.recordStores.length>0)return r=this.recordStores[0],e=e||{},n={agent:void 0!==e.agent?e.agent:this.actor},void 0!==e.callback&&(n.callback=e.callback),r.dropAgentProfile(t,n);this.log("[warning] deleteAgentProfile: No LRSs added yet (agent profile not deleted)")}},i.DEBUG=!1,i.enableDebug=function(){i.DEBUG=!0},i.disableDebug=function(){i.DEBUG=!1},i.versions=function(){return["1.0.2","1.0.1","1.0.0","0.95","0.9"]},"object"==typeof e&&(e.exports=i)}(),function(){"use strict";i.Utils={defaultEncoding:"utf8",getUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},getISODateString:function(t){function e(t,e){var n,r;for(void 0!==t&&null!==t||(t=0),void 0!==e&&null!==e||(e=2),n=Math.pow(10,e-1),r=t.toString();t<n&&n>1;)r="0"+r,n/=10;return r}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())+"."+e(t.getUTCMilliseconds(),3)+"Z"},convertISO8601DurationToMilliseconds:function(t){var e,n,r,i,o=t.indexOf("-")>=0,s=t.indexOf("T"),a=t.indexOf("H"),u=t.indexOf("M"),c=t.indexOf("S");if(-1===s||-1!==u&&u<s||-1!==t.indexOf("D")||-1!==t.indexOf("Y"))throw new Error("ISO 8601 timestamps including years, months and/or days are not currently supported");return-1===a?(a=s,e=0):e=parseInt(t.slice(s+1,a),10),-1===u?(u=s,n=0):n=parseInt(t.slice(a+1,u),10),r=parseFloat(t.slice(u+1,c)),i=parseInt(1e3*(60*(60*e+n)+r),10),isNaN(i)&&(i=0),o&&(i*=-1),i},convertMillisecondsToISO8601Duration:function(t){var e,n,r,i,o=parseInt(t,10),s="",a="";return i=Math.round(o/10),i<0&&(s="-",i*=-1),e=parseInt(i/36e4,10),n=parseInt(i%36e4/6e3,10),r=i%36e4%6e3/100,a=s+"PT",e>0&&(a+=e+"H"),n>0&&(a+=n+"M"),a+=r+"S"},getSHA1String:function(t){return r.SHA1(t).toString(r.enc.Hex)},getSHA256String:function(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)&&(t=r.lib.WordArray.create(t)),r.SHA256(t).toString(r.enc.Hex)},getBase64String:function(t){return r.enc.Base64.stringify(r.enc.Latin1.parse(t))},getLangDictionaryValue:function(t,e){var n,r=this[t];if(void 0!==e&&void 0!==r[e])return r[e];if(void 0!==r.und)return r.und;if(void 0!==r["en-US"])return r["en-US"];for(n in r)if(r.hasOwnProperty(n))return r[n];return""},parseURL:function(t,e){var n,r,i,o,s="/"===t.charAt(0),a=["(/[^?#]*)","(\\?[^#]*|)","(#.*|)$"],u=/\+/g,c=/([^&=]+)=?([^&]*)/g,l=function(t){return decodeURIComponent(t.replace(u," "))};if(e=e||{},s){if(void 0===e.allowRelative||!e.allowRelative)throw new Error("Refusing to parse relative URL without 'allowRelative' option")}else a.unshift("^(https?:)//","(([^:/?#]*)(?::([0-9]+))?)"),-1===t.indexOf("/",8)&&(t+="/");if(n=new RegExp(a.join("")),null===(r=t.match(n)))throw new Error("Unable to parse URL regular expression did not match: '"+t+"'");if(s?(i={protocol:null,host:null,hostname:null,port:null,path:null,pathname:r[1],search:r[2],hash:r[3],params:{}},i.path=i.pathname):(i={protocol:r[1],host:r[2],hostname:r[3],port:r[4],pathname:r[5],search:r[6],hash:r[7],params:{}},i.path=i.protocol+"//"+i.host+i.pathname),""!==i.search)for(;o=c.exec(i.search.substring(1));)i.params[l(o[1])]=l(o[2]);return i},getServerRoot:function(t){var e=t.split("/");return e[0]+"//"+e[2]},getContentTypeFromHeader:function(t){return String(t).split(";")[0]},isApplicationJSON:function(t){return 0===i.Utils.getContentTypeFromHeader(t).toLowerCase().indexOf("application/json")},stringToArrayBuffer:function(){i.prototype.log("stringToArrayBuffer not overloaded - no environment loaded?")},stringFromArrayBuffer:function(){i.prototype.log("stringFromArrayBuffer not overloaded - no environment loaded?")}}}(),function(){"use strict";var t=i.LRS=function(t){this.log("constructor"),this.endpoint=null,this.version=null,this.auth=null,this.allowFail=!0,this.extended=null,this.init(t)};t.prototype={LOG_SRC:"LRS",log:i.prototype.log,init:function(t){this.log("init");var e,n=i.versions(),r=!1;if(t=t||{},t.hasOwnProperty("alertOnRequestFailure")&&this.log("'alertOnRequestFailure' is deprecated (alerts have been removed) no need to set it now"),!t.hasOwnProperty("endpoint")||null===t.endpoint||""===t.endpoint)throw this.log("[error] LRS invalid: no endpoint"),{code:3,mesg:"LRS invalid: no endpoint"};if(this.endpoint=String(t.endpoint),"/"!==this.endpoint.slice(-1)&&(this.log("adding trailing slash to endpoint"),this.endpoint+="/"),t.hasOwnProperty("allowFail")&&(this.allowFail=t.allowFail),t.hasOwnProperty("auth")?this.auth=t.auth:t.hasOwnProperty("username")&&t.hasOwnProperty("password")&&(this.auth="Basic "+i.Utils.getBase64String(t.username+":"+t.password)),t.hasOwnProperty("extended")&&(this.extended=t.extended),this._initByEnvironment(t),void 0!==t.version){for(this.log("version: "+t.version),e=0;e<n.length;e+=1)if(n[e]===t.version){r=!0;break}if(!r)throw this.log("[error] LRS invalid: version not supported ("+t.version+")"),{code:5,mesg:"LRS invalid: version not supported ("+t.version+")"};this.version=t.version}else this.version=n[0]},_getBoundary:function(){return i.Utils.getUUID().replace(/-/g,"")},_initByEnvironment:function(){this.log("_initByEnvironment not overloaded - no environment loaded?")},_makeRequest:function(){this.log("_makeRequest not overloaded - no environment loaded?")},_getMultipartRequestData:function(){this.log("_getMultipartRequestData not overloaded - no environment loaded?")},_IEModeConversion:function(){this.log("_IEModeConversion not overloaded - browser environment not loaded.")},_processGetStatementResult:function(t,e){var n,r,o,s,a={};if(!e.attachments)return i.Statement.fromJSON(t.responseText);for(n=t.getResponseHeader("Content-Type").split("boundary=")[1],r=this._parseMultipart(n,t.response),o=JSON.parse(r[0].body),s=1;s<r.length;s+=1)a[r[s].headers["X-Experience-API-Hash"]]=r[s].body;return this._assignAttachmentContent([o],a),new i.Statement(o)},sendRequest:function(t){this.log("sendRequest");var e,n=this.endpoint+t.url,r={};if(0===t.url.indexOf("http")&&(n=t.url),null!==this.extended){t.params=t.params||{};for(e in this.extended)this.extended.hasOwnProperty(e)&&(t.params.hasOwnProperty(e)||null!==this.extended[e]&&(t.params[e]=this.extended[e]))}r.Authorization=this.auth,"0.9"!==this.version&&(r["X-Experience-API-Version"]=this.version);for(e in t.headers)t.headers.hasOwnProperty(e)&&(r[e]=t.headers[e]);return this._makeRequest(n,r,t)},about:function(t){this.log("about");var e,n,r;if(t=t||{},e={url:"about",method:"GET",params:{}},void 0!==t.callback&&(r=function(e,n){var r=n;null===e&&(r=i.About.fromJSON(n.responseText)),t.callback(e,r)},e.callback=r),n=this.sendRequest(e),!r)return null===n.err&&(n.xhr=i.About.fromJSON(n.xhr.responseText)),n},saveStatement:function(t,e){this.log("saveStatement");var n,r,i,o={url:"statements",headers:{}},s=[];e=e||{};try{n=t.asVersion(this.version)}catch(t){return this.allowFail?(this.log("[warning] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(null,null):{err:null,xhr:null}):(this.log("[error] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(t,null):{err:t,xhr:null})}if(n.hasOwnProperty("attachments")&&t.hasAttachmentWithContent()){for(r=this._getBoundary(),o.headers["Content-Type"]="multipart/mixed; boundary="+r,i=0;i<t.attachments.length;i+=1)null!==t.attachments[i].content&&s.push(t.attachments[i]);try{o.data=this._getMultipartRequestData(r,n,s)}catch(t){return this.allowFail?(this.log("[warning] multipart request data could not be created (attachments probably not supported): "+t),void 0!==e.callback?void e.callback(null,null):{err:null,xhr:null}):(this.log("[error] multipart request data could not be created (attachments probably not supported): "+t),void 0!==e.callback?void e.callback(t,null):{err:t,xhr:null})}}else o.headers["Content-Type"]="application/json",o.data=JSON.stringify(n);return null!==t.id?(o.method="PUT",o.params={statementId:t.id}):o.method="POST",void 0!==e.callback&&(o.callback=e.callback),this.sendRequest(o)},retrieveStatement:function(t,e){this.log("retrieveStatement");var n,r,i,o=this;return e=e||{},e.params=e.params||{},n={url:"statements",method:"GET",params:{statementId:t}},e.params.attachments&&(n.params.attachments=!0,n.expectMultipart=!0),void 0!==e.callback&&(i=function(t,n){var r=n;null===t&&(r=o._processGetStatementResult(n,e.params)),e.callback(t,r)},n.callback=i),r=this.sendRequest(n),i||(r.statement=null,null===r.err&&(r.statement=o._processGetStatementResult(r.xhr,e.params))),r},retrieveVoidedStatement:function(t,e){this.log("retrieveVoidedStatement");var n,r,i,o=this;return e=e||{},e.params=e.params||{},n={url:"statements",method:"GET",params:{}},"0.9"===this.version||"0.95"===this.version?n.params.statementId=t:(n.params.voidedStatementId=t,e.params.attachments&&(n.params.attachments=!0,n.expectMultipart=!0)),void 0!==e.callback&&(i=function(t,n){var r=n;null===t&&(r=o._processGetStatementResult(n,e.params)),e.callback(t,r)},n.callback=i),r=this.sendRequest(n),i||(r.statement=null,null===r.err&&(r.statement=o._processGetStatementResult(r.xhr,e.params))),r},saveStatements:function(t,e){this.log("saveStatements");var n,r,i,o,s={url:"statements",method:"POST",headers:{}},a=[],u=[];if(e=e||{},0===t.length)return void 0!==e.callback?void e.callback(new Error("no statements"),null):{err:new Error("no statements"),xhr:null};for(i=0;i<t.length;i+=1){try{n=t[i].asVersion(this.version)}catch(t){return this.allowFail?(this.log("[warning] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(null,null):{err:null,xhr:null}):(this.log("[error] statement could not be serialized in version ("+this.version+"): "+t),void 0!==e.callback?void e.callback(t,null):{err:t,xhr:null})}if(t[i].hasAttachmentWithContent())for(o=0;o<t[i].attachments.length;o+=1)null!==t[i].attachments[o].content&&u.push(t[i].attachments[o]);a.push(n)}if(0!==u.length){r=this._getBoundary(),s.headers["Content-Type"]="multipart/mixed; boundary="+r;try{s.data=this._getMultipartRequestData(r,a,u)}catch(t){return this.allowFail?(this.log("[warning] multipart request data could not be created (attachments probably not supported): "+t),void 0!==e.callback?void e.callback(null,null):{err:null,xhr:null}):(this.log("[error] multipart request data could not be created (attachments probably not supported): "+t),void 0!==e.callback?void e.callback(t,null):{err:t,xhr:null})}}else s.headers["Content-Type"]="application/json",s.data=JSON.stringify(a);return void 0!==e.callback&&(s.callback=e.callback),this.sendRequest(s)},queryStatements:function(t){this.log("queryStatements");var e,n,r,o=this;t=t||{},t.params=t.params||{};try{e=this._queryStatementsRequestCfg(t),t.params.attachments&&(e.expectMultipart=!0)}catch(e){return this.log("[error] Query statements failed - "+e),void 0!==t.callback&&t.callback(e,{}),{err:e,statementsResult:null}}return void 0!==t.callback&&(r=function(e,n){var r,s,a,u,c=n,l={};if(null===e)if(t.params.attachments){for(s=n.getResponseHeader("Content-Type").split("boundary=")[1],r=o._parseMultipart(s,n.response),a=JSON.parse(r[0].body),u=1;u<r.length;u+=1)l[r[u].headers["X-Experience-API-Hash"]]=r[u].body;for(o._assignAttachmentContent(a.statements,l),c=new i.StatementsResult({statements:a.statements}),u=0;u<c.statements.length;u+=1)c.statements[u]instanceof i.Statement||(c.statements[u]=new i.Statement(c.statements[u]))}else c=i.StatementsResult.fromJSON(n.responseText);t.callback(e,c)},e.callback=r),n=this.sendRequest(e),n.config=e,r||(n.statementsResult=null,null===n.err&&(n.statementsResult=i.StatementsResult.fromJSON(n.xhr.responseText))),n},_queryStatementsRequestCfg:function(t){this.log("_queryStatementsRequestCfg");var e,n,r={},i={url:"statements",method:"GET",params:r},o=["agent","actor","object","instructor"],s=["verb","activity"],a=["registration","context","since","until","limit","authoritative","sparse","ascending","related_activities","related_agents","format","attachments"],u={verb:!0,registration:!0,since:!0,until:!0,limit:!0,ascending:!0},c={.9:{supported:{actor:!0,instructor:!0,target:!0,object:!0,context:!0,authoritative:!0,sparse:!0}},"1.0.0":{supported:{agent:!0,activity:!0,related_activities:!0,related_agents:!0,format:!0,attachments:!0}}};c[.95]=c[.9],c["1.0.1"]=c["1.0.0"],c["1.0.2"]=c["1.0.0"],t.params.hasOwnProperty("target")&&(t.params.object=t.params.target);for(n in t.params)if(t.params.hasOwnProperty(n)&&void 0===u[n]&&void 0===c[this.version].supported[n])throw"Unrecognized query parameter configured: "+n;for(e=0;e<o.length;e+=1)void 0!==t.params[o[e]]&&(r[o[e]]=JSON.stringify(t.params[o[e]].asVersion(this.version)));for(e=0;e<s.length;e+=1)void 0!==t.params[s[e]]&&(void 0===t.params[s[e]].id?r[s[e]]=t.params[s[e]]:r[s[e]]=t.params[s[e]].id);for(e=0;e<a.length;e+=1)void 0!==t.params[a[e]]&&null!==t.params[a[e]]&&(r[a[e]]=t.params[a[e]]);return i},_assignAttachmentContent:function(t,e){var n,r;for(n=0;n<t.length;n+=1)if(t[n].hasOwnProperty("attachments")&&null!==t[n].attachments)for(r=0;r<t[n].attachments.length;r+=1)e.hasOwnProperty(t[n].attachments[r].sha2)&&(t[n].attachments[r].content=e[t[n].attachments[r].sha2])},_parseMultipart:function(t,e){var n,r,o,s,a,u,c,l,f,h,p,d="--"+t,y=[];for(n=new Uint8Array(e),r=this.__uint8ToString(n),o=r.indexOf(d+"--"),s=r.indexOf(d);-1!==s;)a=r.indexOf(d,s+d.length),u=s+d.length+2,c=r.indexOf("\r\n\r\n",s),l=c+2+2,f=a-2,h=this._parseHeaders(this.__uint8ToString(new Uint8Array(e.slice(u,c)))),p=e.slice(l,f),0===y.length&&(p=i.Utils.stringFromArrayBuffer(p)),y.push({headers:h,body:p}),s=a===o?-1:a;return y},__uint8ToString:function(t){var e,n="",r=t.byteLength;for(e=0;e<r;e+=1)n+=String.fromCharCode(t[e]);return n},_parseHeaders:function(t){var e,n,r,i={};for(e=t.split("\n"),r=0;r<e.length;r+=1)n=e[r].split(":",2),null!==n[1]?(i[n[0]]=n[1].replace(/^\s+|\s+$/g,""),n[0]):"\t"===n[0].substring(0,1)&&(i[n[0]]=n[1].replace(/^\s+|\s+$/g,""));return i},moreStatements:function(t){this.log("moreStatements: "+t.url);var e,n,r,o,s;return t=t||{},o=i.Utils.parseURL(t.url,{allowRelative:!0}),s=i.Utils.getServerRoot(this.endpoint),0===o.path.indexOf("/statements")&&(o.path=this.endpoint.replace(s,"")+o.path,this.log("converting non-standard more URL to "+o.path)),0!==o.path.indexOf("/")&&(o.path="/"+o.path),e={method:"GET",url:s+o.path,params:o.params},void 0!==t.callback&&(r=function(e,n){var r=n;null===e&&(r=i.StatementsResult.fromJSON(n.responseText)),t.callback(e,r)},e.callback=r),n=this.sendRequest(e),n.config=e,r||(n.statementsResult=null,null===n.err&&(n.statementsResult=i.StatementsResult.fromJSON(n.xhr.responseText))),n},retrieveState:function(t,e){this.log("retrieveState");var n,r,o,s={},a={},u=this;if(o=e.requestHeaders||{},s={stateId:t,activityId:e.activity.id},"0.9"===this.version?s.actor=JSON.stringify(e.agent.asVersion(this.version)):s.agent=JSON.stringify(e.agent.asVersion(this.version)),void 0!==e.registration&&null!==e.registration&&("0.9"===this.version?s.registrationId=e.registration:s.registration=e.registration),a={url:"activities/state",method:"GET",params:s,ignore404:!0,headers:o},void 0!==e.callback&&(r=function(n,r){var o=r;if(null===n)if(404===r.status)o=null;else if(o=new i.State({id:t,contents:r.responseText}),void 0!==r.getResponseHeader&&null!==r.getResponseHeader("ETag")&&""!==r.getResponseHeader("ETag")?o.etag=r.getResponseHeader("ETag"):o.etag='"'+i.Utils.getSHA1String(r.responseText)+'"',void 0!==r.contentType?o.contentType=r.contentType:void 0!==r.getResponseHeader&&null!==r.getResponseHeader("Content-Type")&&""!==r.getResponseHeader("Content-Type")&&(o.contentType=r.getResponseHeader("Content-Type")),i.Utils.isApplicationJSON(o.contentType))try{o.contents=JSON.parse(o.contents)}catch(t){u.log("retrieveState - failed to deserialize JSON: "+t)}e.callback(n,o)},a.callback=r),n=this.sendRequest(a),!r&&(n.state=null,null===n.err&&404!==n.xhr.status&&(n.state=new i.State({id:t,contents:n.xhr.responseText}),void 0!==n.xhr.getResponseHeader&&null!==n.xhr.getResponseHeader("ETag")&&""!==n.xhr.getResponseHeader("ETag")?n.state.etag=n.xhr.getResponseHeader("ETag"):n.state.etag='"'+i.Utils.getSHA1String(n.xhr.responseText)+'"',void 0!==n.xhr.contentType?n.state.contentType=n.xhr.contentType:void 0!==n.xhr.getResponseHeader&&null!==n.xhr.getResponseHeader("Content-Type")&&""!==n.xhr.getResponseHeader("Content-Type")&&(n.state.contentType=n.xhr.getResponseHeader("Content-Type")),i.Utils.isApplicationJSON(n.state.contentType))))try{n.state.contents=JSON.parse(n.state.contents)}catch(t){this.log("retrieveState - failed to deserialize JSON: "+t)}return n},retrieveStateIds:function(t){this.log("retrieveStateIds");var e,n,r,i,o={};if(t=t||{},n=t.requestHeaders||{},o.activityId=t.activity.id,"0.9"===this.version?o.actor=JSON.stringify(t.agent.asVersion(this.version)):o.agent=JSON.stringify(t.agent.asVersion(this.version)),void 0!==t.registration&&null!==t.registration&&("0.9"===this.version?o.registrationId=t.registration:o.registration=t.registration),e={url:"activities/state",method:"GET",params:o,headers:n,ignore404:!0},void 0!==t.callback&&(i=function(e,n){var r=n;if(null!==e)return void t.callback(e,r);if(404===n.status)r=[];else try{r=JSON.parse(n.responseText)}catch(t){e="Response JSON parse error: "+t}t.callback(e,r)},e.callback=i),void 0!==t.since&&(e.params.since=t.since),r=this.sendRequest(e),!i){if(r.profileIds=null,null!==r.err)return r;if(404===r.xhr.status)r.profileIds=[];else try{r.profileIds=JSON.parse(r.xhr.responseText)}catch(t){r.err="retrieveStateIds - JSON parse error: "+t}}return r},saveState:function(t,e,n){this.log("saveState");var r,o,s;return s=n.requestHeaders||{},void 0===n.contentType&&(n.contentType="application/octet-stream"),s["Content-Type"]=n.contentType,"object"==typeof e&&i.Utils.isApplicationJSON(n.contentType)&&(e=JSON.stringify(e)),void 0!==n.method&&"POST"===n.method||(n.method="PUT"),r={stateId:t,activityId:n.activity.id},"0.9"===this.version?r.actor=JSON.stringify(n.agent.asVersion(this.version)):r.agent=JSON.stringify(n.agent.asVersion(this.version)),void 0!==n.registration&&null!==n.registration&&("0.9"===this.version?r.registrationId=n.registration:r.registration=n.registration),o={url:"activities/state",method:n.method,params:r,data:e,headers:s},void 0!==n.callback&&(o.callback=n.callback),void 0!==n.lastSHA1&&null!==n.lastSHA1&&(o.headers["If-Match"]=n.lastSHA1),this.sendRequest(o)},dropState:function(t,e){this.log("dropState");var n,r,i;return i=e.requestHeaders||{},n={activityId:e.activity.id},"0.9"===this.version?n.actor=JSON.stringify(e.agent.asVersion(this.version)):n.agent=JSON.stringify(e.agent.asVersion(this.version)),null!==t&&(n.stateId=t),void 0!==e.registration&&null!==e.registration&&("0.9"===this.version?n.registrationId=e.registration:n.registration=e.registration),r={url:"activities/state",method:"DELETE",params:n,headers:i},void 0!==e.callback&&(r.callback=e.callback),this.sendRequest(r)},retrieveActivity:function(t,e){this.log("retrieveActivity");var n,r,o,s={};return o=e.requestHeaders||{},s={url:"activities",method:"GET",params:{activityId:t},ignore404:!0,headers:o},void 0!==e.callback&&(r=function(n,r){var o=r;null===n&&(o=404===r.status?new i.Activity({id:t}):i.Activity.fromJSON(r.responseText)),e.callback(n,o)},s.callback=r),n=this.sendRequest(s),r||(n.activity=null,null===n.err&&(404===n.xhr.status?n.activity=new i.Activity({id:t}):n.activity=i.Activity.fromJSON(n.xhr.responseText))),n},retrieveActivityProfile:function(t,e){this.log("retrieveActivityProfile");var n,r,o,s={},a=this;if(o=e.requestHeaders||{},s={url:"activities/profile",method:"GET",params:{profileId:t,activityId:e.activity.id},ignore404:!0,headers:o},void 0!==e.callback&&(r=function(n,r){var o=r;if(null===n)if(404===r.status)o=null;else if(o=new i.ActivityProfile({id:t,activity:e.activity,contents:r.responseText}),void 0!==r.getResponseHeader&&null!==r.getResponseHeader("ETag")&&""!==r.getResponseHeader("ETag")?o.etag=r.getResponseHeader("ETag"):o.etag='"'+i.Utils.getSHA1String(r.responseText)+'"',void 0!==r.contentType?o.contentType=r.contentType:void 0!==r.getResponseHeader&&null!==r.getResponseHeader("Content-Type")&&""!==r.getResponseHeader("Content-Type")&&(o.contentType=r.getResponseHeader("Content-Type")),i.Utils.isApplicationJSON(o.contentType))try{o.contents=JSON.parse(o.contents)}catch(t){a.log("retrieveActivityProfile - failed to deserialize JSON: "+t)}e.callback(n,o)},s.callback=r),n=this.sendRequest(s),!r&&(n.profile=null,null===n.err&&404!==n.xhr.status&&(n.profile=new i.ActivityProfile({id:t,activity:e.activity,contents:n.xhr.responseText}),void 0!==n.xhr.getResponseHeader&&null!==n.xhr.getResponseHeader("ETag")&&""!==n.xhr.getResponseHeader("ETag")?n.profile.etag=n.xhr.getResponseHeader("ETag"):n.profile.etag='"'+i.Utils.getSHA1String(n.xhr.responseText)+'"',void 0!==n.xhr.contentType?n.profile.contentType=n.xhr.contentType:void 0!==n.xhr.getResponseHeader&&null!==n.xhr.getResponseHeader("Content-Type")&&""!==n.xhr.getResponseHeader("Content-Type")&&(n.profile.contentType=n.xhr.getResponseHeader("Content-Type")),i.Utils.isApplicationJSON(n.profile.contentType))))try{n.profile.contents=JSON.parse(n.profile.contents)}catch(t){this.log("retrieveActivityProfile - failed to deserialize JSON: "+t)}return n},retrieveActivityProfileIds:function(t){this.log("retrieveActivityProfileIds");var e,n,r,i;if(t=t||{},n=t.requestHeaders||{},e={url:"activities/profile",method:"GET",params:{activityId:t.activity.id},headers:n,ignore404:!0},void 0!==t.callback&&(i=function(e,n){var r=n;if(null!==e)return void t.callback(e,r);if(404===n.status)r=[];else try{r=JSON.parse(n.responseText)}catch(t){e="Response JSON parse error: "+t}t.callback(e,r)},e.callback=i),void 0!==t.since&&(e.params.since=t.since),r=this.sendRequest(e),!i){if(r.profileIds=null,null!==r.err)return r;if(404===r.xhr.status)r.profileIds=[];else try{r.profileIds=JSON.parse(r.xhr.responseText)}catch(t){r.err="retrieveActivityProfileIds - JSON parse error: "+t}}return r},saveActivityProfile:function(t,e,n){this.log("saveActivityProfile");var r,o;return o=n.requestHeaders||{},void 0===n.contentType&&(n.contentType="application/octet-stream"),o["Content-Type"]=n.contentType,void 0!==n.method&&"POST"===n.method||(n.method="PUT"),"object"==typeof e&&i.Utils.isApplicationJSON(n.contentType)&&(e=JSON.stringify(e)),r={url:"activities/profile",method:n.method,params:{profileId:t,activityId:n.activity.id},data:e,headers:o},void 0!==n.callback&&(r.callback=n.callback),void 0!==n.lastSHA1&&null!==n.lastSHA1?r.headers["If-Match"]=n.lastSHA1:r.headers["If-None-Match"]="*",this.sendRequest(r)},dropActivityProfile:function(t,e){this.log("dropActivityProfile");var n,r,i;return i=e.requestHeaders||{},n={profileId:t,activityId:e.activity.id},r={url:"activities/profile",method:"DELETE",params:n,headers:i},void 0!==e.callback&&(r.callback=e.callback),this.sendRequest(r)},retrieveAgentProfile:function(t,e){this.log("retrieveAgentProfile");var n,r,o,s={},a=this;if(o=e.requestHeaders||{},s={method:"GET",params:{profileId:t},ignore404:!0,headers:o},"0.9"===this.version?(s.url="actors/profile",s.params.actor=JSON.stringify(e.agent.asVersion(this.version))):(s.url="agents/profile",s.params.agent=JSON.stringify(e.agent.asVersion(this.version))),void 0!==e.callback&&(r=function(n,r){var o=r;if(null===n)if(404===r.status)o=null;else if(o=new i.AgentProfile({id:t,agent:e.agent,contents:r.responseText}),void 0!==r.getResponseHeader&&null!==r.getResponseHeader("ETag")&&""!==r.getResponseHeader("ETag")?o.etag=r.getResponseHeader("ETag"):o.etag='"'+i.Utils.getSHA1String(r.responseText)+'"',void 0!==r.contentType?o.contentType=r.contentType:void 0!==r.getResponseHeader&&null!==r.getResponseHeader("Content-Type")&&""!==r.getResponseHeader("Content-Type")&&(o.contentType=r.getResponseHeader("Content-Type")),i.Utils.isApplicationJSON(o.contentType))try{o.contents=JSON.parse(o.contents)}catch(t){a.log("retrieveAgentProfile - failed to deserialize JSON: "+t)}e.callback(n,o)},s.callback=r),n=this.sendRequest(s),!r&&(n.profile=null,null===n.err&&404!==n.xhr.status&&(n.profile=new i.AgentProfile({id:t,agent:e.agent,contents:n.xhr.responseText}),void 0!==n.xhr.getResponseHeader&&null!==n.xhr.getResponseHeader("ETag")&&""!==n.xhr.getResponseHeader("ETag")?n.profile.etag=n.xhr.getResponseHeader("ETag"):n.profile.etag='"'+i.Utils.getSHA1String(n.xhr.responseText)+'"',void 0!==n.xhr.contentType?n.profile.contentType=n.xhr.contentType:void 0!==n.xhr.getResponseHeader&&null!==n.xhr.getResponseHeader("Content-Type")&&""!==n.xhr.getResponseHeader("Content-Type")&&(n.profile.contentType=n.xhr.getResponseHeader("Content-Type")),i.Utils.isApplicationJSON(n.profile.contentType))))try{n.profile.contents=JSON.parse(n.profile.contents)}catch(t){this.log("retrieveAgentProfile - failed to deserialize JSON: "+t)}return n},retrieveAgentProfileIds:function(t){this.log("retrieveAgentProfileIds");var e,n,r,i,o={};if(t=t||{},n=t.requestHeaders||{},e={method:"GET",params:o,headers:n,ignore404:!0},"0.9"===this.version?(e.url="actors/profile",o.actor=JSON.stringify(t.agent.asVersion(this.version))):(e.url="agents/profile",o.agent=JSON.stringify(t.agent.asVersion(this.version))),void 0!==t.callback&&(i=function(e,n){var r=n;if(null!==e)return void t.callback(e,r);if(404===n.status)r=[];else try{r=JSON.parse(n.responseText)}catch(t){e="Response JSON parse error: "+t}t.callback(e,r)},e.callback=i),void 0!==t.since&&(e.params.since=t.since),r=this.sendRequest(e),!i){if(r.profileIds=null,null!==r.err)return r;if(404===r.xhr.status)r.profileIds=[];else try{r.profileIds=JSON.parse(r.xhr.responseText)}catch(t){r.err="retrieveAgentProfileIds - JSON parse error: "+t}}return r},saveAgentProfile:function(t,e,n){this.log("saveAgentProfile");var r,o;return o=n.requestHeaders||{},void 0===n.contentType&&(n.contentType="application/octet-stream"),o["Content-Type"]=n.contentType,void 0!==n.method&&"POST"===n.method||(n.method="PUT"),"object"==typeof e&&i.Utils.isApplicationJSON(n.contentType)&&(e=JSON.stringify(e)),r={method:n.method,params:{profileId:t},data:e,headers:o},"0.9"===this.version?(r.url="actors/profile",r.params.actor=JSON.stringify(n.agent.asVersion(this.version))):(r.url="agents/profile",r.params.agent=JSON.stringify(n.agent.asVersion(this.version))),void 0!==n.callback&&(r.callback=n.callback),void 0!==n.lastSHA1&&null!==n.lastSHA1?r.headers["If-Match"]=n.lastSHA1:r.headers["If-None-Match"]="*",this.sendRequest(r)},dropAgentProfile:function(t,e){this.log("dropAgentProfile");var n,r,i;return i=e.requestHeaders||{},n={profileId:t},r={method:"DELETE",params:n,headers:i},"0.9"===this.version?(r.url="actors/profile",n.actor=JSON.stringify(e.agent.asVersion(this.version))):(r.url="agents/profile",n.agent=JSON.stringify(e.agent.asVersion(this.version))),void 0!==e.callback&&(r.callback=e.callback),this.sendRequest(r)}},t.syncEnabled=null}(),function(){"use strict";var t=i.AgentAccount=function(t){this.log("constructor"),this.homePage=null,this.name=null,this.init(t)};t.prototype={LOG_SRC:"AgentAccount",log:i.prototype.log,init:function(t){this.log("init");var e,n=["name","homePage"];for(t=t||{},void 0!==t.accountServiceHomePage&&(t.homePage=t.accountServiceHomePage),void 0!==t.accountName&&(t.name=t.accountName),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(){this.log("toString");var t="";return null!==this.name||null!==this.homePage?(t+=null!==this.name?this.name:"-",t+=":",t+=null!==this.homePage?this.homePage:"-"):t="AgentAccount: unidentified",t},asVersion:function(t){this.log("asVersion: "+t);var e={};return t=t||i.versions()[0],"0.9"===t?(e.accountName=this.name,e.accountServiceHomePage=this.homePage):(e.name=this.name,e.homePage=this.homePage),e}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.Agent=function(t){this.log("constructor"),this.name=null,this.mbox=null,this.mbox_sha1sum=null,this.openid=null,this.account=null,this.degraded=!1,this.init(t)};t.prototype={objectType:"Agent",LOG_SRC:"Agent",log:i.prototype.log,init:function(t){this.log("init");var e,n,r=["name","mbox","mbox_sha1sum","openid"];for(t=t||{},void 0!==t.lastName||void 0!==t.firstName?(t.name="",void 0!==t.firstName&&t.firstName.length>0&&(t.name=t.firstName[0],t.firstName.length>1&&(this.degraded=!0)),""!==t.name&&(t.name+=" "),void 0!==t.lastName&&t.lastName.length>0&&(t.name+=t.lastName[0],t.lastName.length>1&&(this.degraded=!0))):void 0===t.familyName&&void 0===t.givenName||(t.name="",void 0!==t.givenName&&t.givenName.length>0&&(t.name=t.givenName[0],t.givenName.length>1&&(this.degraded=!0)),""!==t.name&&(t.name+=" "),void 0!==t.familyName&&t.familyName.length>0&&(t.name+=t.familyName[0],t.familyName.length>1&&(this.degraded=!0))),"object"==typeof t.name&&null!==t.name&&(t.name.length>1&&(this.degraded=!0),t.name=t.name[0]),"object"==typeof t.mbox&&null!==t.mbox&&(t.mbox.length>1&&(this.degraded=!0),t.mbox=t.mbox[0]),"object"==typeof t.mbox_sha1sum&&null!==t.mbox_sha1sum&&(t.mbox_sha1sum.length>1&&(this.degraded=!0),t.mbox_sha1sum=t.mbox_sha1sum[0]),"object"==typeof t.openid&&null!==t.openid&&(t.openid.length>1&&(this.degraded=!0),t.openid=t.openid[0]),"object"==typeof t.account&&null!==t.account&&void 0===t.account.homePage&&void 0===t.account.name&&(0===t.account.length?delete t.account:(t.account.length>1&&(this.degraded=!0),t.account=t.account[0])),t.hasOwnProperty("account")&&(t.account instanceof i.AgentAccount?this.account=t.account:this.account=new i.AgentAccount(t.account)),e=0;e<r.length;e+=1)t.hasOwnProperty(r[e])&&null!==t[r[e]]&&(n=t[r[e]],"mbox"===r[e]&&-1===n.indexOf("mailto:")&&(n="mailto:"+n),this[r[e]]=n)},toString:function(){return this.log("toString"),null!==this.name?this.name:null!==this.mbox?this.mbox.replace("mailto:",""):null!==this.mbox_sha1sum?this.mbox_sha1sum:null!==this.openid?this.openid:null!==this.account?this.account.toString():this.objectType+": unidentified"},asVersion:function(t){this.log("asVersion: "+t);var e={objectType:this.objectType};return t=t||i.versions()[0],"0.9"===t?(null!==this.mbox?e.mbox=[this.mbox]:null!==this.mbox_sha1sum?e.mbox_sha1sum=[this.mbox_sha1sum]:null!==this.openid?e.openid=[this.openid]:null!==this.account&&(e.account=[this.account.asVersion(t)]),null!==this.name&&(e.name=[this.name])):(null!==this.mbox?e.mbox=this.mbox:null!==this.mbox_sha1sum?e.mbox_sha1sum=this.mbox_sha1sum:null!==this.openid?e.openid=this.openid:null!==this.account&&(e.account=this.account.asVersion(t)),null!==this.name&&(e.name=this.name)),e}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.Group=function(t){this.log("constructor"),this.name=null,this.mbox=null,
  this.mbox_sha1sum=null,this.openid=null,this.account=null,this.member=[],this.init(t)};t.prototype={objectType:"Group",LOG_SRC:"Group",log:i.prototype.log,init:function(t){this.log("init");var e;if(t=t||{},i.Agent.prototype.init.call(this,t),void 0!==t.member)for(e=0;e<t.member.length;e+=1)t.member[e]instanceof i.Agent?this.member.push(t.member[e]):this.member.push(new i.Agent(t.member[e]))},toString:function(t){this.log("toString");var e=i.Agent.prototype.toString.call(this,t);return e!==this.objectType+": unidentified"&&(e=this.objectType+": "+e),e},asVersion:function(t){this.log("asVersion: "+t);var e,n;if(t=t||i.versions()[0],e=i.Agent.prototype.asVersion.call(this,t),this.member.length>0)for(e.member=[],n=0;n<this.member.length;n+=1)e.member.push(this.member[n].asVersion(t));return e}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t={"http://adlnet.gov/expapi/verbs/experienced":"experienced","http://adlnet.gov/expapi/verbs/attended":"attended","http://adlnet.gov/expapi/verbs/attempted":"attempted","http://adlnet.gov/expapi/verbs/completed":"completed","http://adlnet.gov/expapi/verbs/passed":"passed","http://adlnet.gov/expapi/verbs/failed":"failed","http://adlnet.gov/expapi/verbs/answered":"answered","http://adlnet.gov/expapi/verbs/interacted":"interacted","http://adlnet.gov/expapi/verbs/imported":"imported","http://adlnet.gov/expapi/verbs/created":"created","http://adlnet.gov/expapi/verbs/shared":"shared","http://adlnet.gov/expapi/verbs/voided":"voided"},e=i.Verb=function(t){this.log("constructor"),this.id=null,this.display=null,this.init(t)};e.prototype={LOG_SRC:"Verb",log:i.prototype.log,init:function(e){this.log("init");var n,r,i=["id","display"];if("string"==typeof e){this.id=e,this.display={und:this.id};for(r in t)if(t.hasOwnProperty(r)&&t[r]===e){this.id=r;break}}else{for(e=e||{},n=0;n<i.length;n+=1)e.hasOwnProperty(i[n])&&null!==e[i[n]]&&(this[i[n]]=e[i[n]]);null===this.display&&void 0!==t[this.id]&&(this.display={und:t[this.id]})}},toString:function(t){return this.log("toString"),null!==this.display?this.getLangDictionaryValue("display",t):this.id},asVersion:function(e){this.log("asVersion");var n;return e=e||i.versions()[0],"0.9"===e?n=t[this.id]:(n={id:this.id},null!==this.display&&(n.display=this.display)),n},getLangDictionaryValue:i.Utils.getLangDictionaryValue},e.fromJSON=function(t){e.prototype.log("fromJSON");var n=JSON.parse(t);return new e(n)}}(),function(){"use strict";var t=i.Result=function(t){this.log("constructor"),this.score=null,this.success=null,this.completion=null,this.duration=null,this.response=null,this.extensions=null,this.init(t)};t.prototype={LOG_SRC:"Result",log:i.prototype.log,init:function(t){this.log("init");var e,n=["completion","duration","extensions","response","success"];for(t=t||{},t.hasOwnProperty("score")&&null!==t.score&&(t.score instanceof i.Score?this.score=t.score:this.score=new i.Score(t.score)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);"Completed"===this.completion&&(this.completion=!0)},asVersion:function(t){this.log("asVersion");var e,n={},r=["success","duration","response","extensions"],o=["score"];for(t=t||i.versions()[0],e=0;e<r.length;e+=1)null!==this[r[e]]&&(n[r[e]]=this[r[e]]);for(e=0;e<o.length;e+=1)null!==this[o[e]]&&(n[o[e]]=this[o[e]].asVersion(t));return null!==this.completion&&("0.9"===t?this.completion&&(n.completion="Completed"):n.completion=this.completion),n}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.Score=function(t){this.log("constructor"),this.scaled=null,this.raw=null,this.min=null,this.max=null,this.init(t)};t.prototype={LOG_SRC:"Score",log:i.prototype.log,init:function(t){this.log("init");var e,n=["scaled","raw","min","max"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},asVersion:function(t){this.log("asVersion");var e,n={},r=["scaled","raw","min","max"];for(t=t||i.versions()[0],e=0;e<r.length;e+=1)null!==this[r[e]]&&(n[r[e]]=this[r[e]]);return n}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.InteractionComponent=function(t){this.log("constructor"),this.id=null,this.description=null,this.init(t)};t.prototype={LOG_SRC:"InteractionComponent",log:i.prototype.log,init:function(t){this.log("init");var e,n=["id","description"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},asVersion:function(t){this.log("asVersion");var e,n,r={id:this.id},o=["description"];for(t=t||i.versions()[0],e=0;e<o.length;e+=1)n=o[e],null!==this[n]&&(r[n]=this[n]);return r},getLangDictionaryValue:i.Utils.getLangDictionaryValue},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t={"http://adlnet.gov/expapi/activities/course":"course","http://adlnet.gov/expapi/activities/module":"module","http://adlnet.gov/expapi/activities/meeting":"meeting","http://adlnet.gov/expapi/activities/media":"media","http://adlnet.gov/expapi/activities/performance":"performance","http://adlnet.gov/expapi/activities/simulation":"simulation","http://adlnet.gov/expapi/activities/assessment":"assessment","http://adlnet.gov/expapi/activities/interaction":"interaction","http://adlnet.gov/expapi/activities/cmi.interaction":"cmi.interaction","http://adlnet.gov/expapi/activities/question":"question","http://adlnet.gov/expapi/activities/objective":"objective","http://adlnet.gov/expapi/activities/link":"link"},e=i.ActivityDefinition=function(t){this.log("constructor"),this.name=null,this.description=null,this.type=null,this.moreInfo=null,this.extensions=null,this.interactionType=null,this.correctResponsesPattern=null,this.choices=null,this.scale=null,this.source=null,this.target=null,this.steps=null,this.init(t)};e.prototype={LOG_SRC:"ActivityDefinition",log:i.prototype.log,init:function(e){this.log("init");var n,r,o,s=["name","description","moreInfo","extensions","correctResponsesPattern"],a=[];if(e=e||{},e.hasOwnProperty("type")&&null!==e.type){for(o in t)t.hasOwnProperty(o)&&t[o]===e.type&&(e.type=t[o]);this.type=e.type}if(e.hasOwnProperty("interactionType")&&null!==e.interactionType&&(this.interactionType=e.interactionType,"choice"===e.interactionType||"sequencing"===e.interactionType?a.push("choices"):"likert"===e.interactionType?a.push("scale"):"matching"===e.interactionType?(a.push("source"),a.push("target")):"performance"===e.interactionType&&a.push("steps"),a.length>0))for(n=0;n<a.length;n+=1)if(o=a[n],e.hasOwnProperty(o)&&null!==e[o])for(this[o]=[],r=0;r<e[o].length;r+=1)e[o][r]instanceof i.InteractionComponent?this[o].push(e[o][r]):this[o].push(new i.InteractionComponent(e[o][r]));for(n=0;n<s.length;n+=1)e.hasOwnProperty(s[n])&&null!==e[s[n]]&&(this[s[n]]=e[s[n]])},toString:function(t){return this.log("toString"),null!==this.name?this.getLangDictionaryValue("name",t):null!==this.description?this.getLangDictionaryValue("description",t):""},asVersion:function(e){this.log("asVersion");var n,r,o,s={},a=["name","description","interactionType","correctResponsesPattern","extensions"],u=["choices","scale","source","target","steps"];for(e=e||i.versions()[0],null!==this.type&&(s.type="0.9"===e?t[this.type]:this.type),n=0;n<a.length;n+=1)o=a[n],null!==this[o]&&(s[o]=this[o]);for(n=0;n<u.length;n+=1)if(o=u[n],null!==this[o])for(s[o]=[],r=0;r<this[o].length;r+=1)s[o].push(this[o][r].asVersion(e));return 0!==e.indexOf("0.9")&&null!==this.moreInfo&&(s.moreInfo=this.moreInfo),s},getLangDictionaryValue:i.Utils.getLangDictionaryValue},e.fromJSON=function(t){e.prototype.log("fromJSON");var n=JSON.parse(t);return new e(n)}}(),function(){"use strict";var t=i.Activity=function(t){this.log("constructor"),this.objectType="Activity",this.id=null,this.definition=null,this.init(t)};t.prototype={LOG_SRC:"Activity",log:i.prototype.log,init:function(t){this.log("init");var e,n=["id"];for(t=t||{},t.hasOwnProperty("definition")&&(t.definition instanceof i.ActivityDefinition?this.definition=t.definition:this.definition=new i.ActivityDefinition(t.definition)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(t){this.log("toString");var e="";return null!==this.definition&&""!==(e=this.definition.toString(t))?e:null!==this.id?this.id:"Activity: unidentified"},asVersion:function(t){this.log("asVersion");var e={id:this.id,objectType:this.objectType};return t=t||i.versions()[0],null!==this.definition&&(e.definition=this.definition.asVersion(t)),e}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.ContextActivities=function(t){this.log("constructor"),this.category=null,this.parent=null,this.grouping=null,this.other=null,this.init(t)};t.prototype={LOG_SRC:"ContextActivities",log:i.prototype.log,init:function(t){this.log("init");var e,n,r,i,o=["category","parent","grouping","other"];for(t=t||{},e=0;e<o.length;e+=1)if(r=o[e],t.hasOwnProperty(r)&&null!==t[r])if("[object Array]"===Object.prototype.toString.call(t[r]))for(n=0;n<t[r].length;n+=1)this.add(r,t[r][n]);else i=t[r],this.add(r,i)},add:function(t,e){if("category"===t||"parent"===t||"grouping"===t||"other"===t)return null===this[t]&&(this[t]=[]),e instanceof i.Activity||(e="string"==typeof e?{id:e}:e,e=new i.Activity(e)),this[t].push(e),this[t].length-1},asVersion:function(t){this.log("asVersion");var e,n,r={},o=["parent","grouping","other"];for(t=t||i.versions()[0],e=0;e<o.length;e+=1)if(null!==this[o[e]]&&this[o[e]].length>0)if("0.9"===t||"0.95"===t)this[o[e]].length>1&&this.log("[warning] version does not support multiple values in: "+o[e]),r[o[e]]=this[o[e]][0].asVersion(t);else for(r[o[e]]=[],n=0;n<this[o[e]].length;n+=1)r[o[e]].push(this[o[e]][n].asVersion(t));if(null!==this.category&&this.category.length>0){if("0.9"===t||"0.95"===t)throw this.log("[error] version does not support the 'category' property: "+t),new Error(t+" does not support the 'category' property");for(r.category=[],e=0;e<this.category.length;e+=1)r.category.push(this.category[e].asVersion(t))}return r}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.Context=function(t){this.log("constructor"),this.registration=null,this.instructor=null,this.team=null,this.contextActivities=null,this.revision=null,this.platform=null,this.language=null,this.statement=null,this.extensions=null,this.init(t)};t.prototype={LOG_SRC:"Context",log:i.prototype.log,init:function(t){this.log("init");var e,n,r,o=["registration","revision","platform","language","extensions"],s=["instructor","team"];for(t=t||{},e=0;e<o.length;e+=1)n=o[e],t.hasOwnProperty(n)&&null!==t[n]&&(this[n]=t[n]);for(e=0;e<s.length;e+=1)n=s[e],t.hasOwnProperty(n)&&null!==t[n]&&(r=t[n],void 0!==r.objectType&&"Person"!==r.objectType||(r.objectType="Agent"),"Agent"!==r.objectType||r instanceof i.Agent?"Group"!==r.objectType||r instanceof i.Group||(r=new i.Group(r)):r=new i.Agent(r),this[n]=r);t.hasOwnProperty("contextActivities")&&null!==t.contextActivities&&(t.contextActivities instanceof i.ContextActivities?this.contextActivities=t.contextActivities:this.contextActivities=new i.ContextActivities(t.contextActivities)),t.hasOwnProperty("statement")&&null!==t.statement&&(t.statement instanceof i.StatementRef?this.statement=t.statement:t.statement instanceof i.SubStatement?this.statement=t.statement:"StatementRef"===t.statement.objectType?this.statement=new i.StatementRef(t.statement):"SubStatement"===t.statement.objectType?this.statement=new i.SubStatement(t.statement):this.log("Unable to parse statement.context.statement property."))},asVersion:function(t){this.log("asVersion");var e,n={},r=["registration","revision","platform","language","extensions"],o=["instructor","team","contextActivities","statement"];if(t=t||i.versions()[0],this.statement instanceof i.SubStatement&&"0.9"!==t&&"0.95"!==t)throw this.log("[error] version does not support SubStatements in the 'statement' property: "+t),new Error(t+" does not support SubStatements in the 'statement' property");for(e=0;e<r.length;e+=1)null!==this[r[e]]&&(n[r[e]]=this[r[e]]);for(e=0;e<o.length;e+=1)null!==this[o[e]]&&(n[o[e]]=this[o[e]].asVersion(t));return n}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.StatementRef=function(t){this.log("constructor"),this.id=null,this.init(t)};t.prototype={objectType:"StatementRef",LOG_SRC:"StatementRef",log:i.prototype.log,init:function(t){this.log("init");var e,n=["id"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(){return this.log("toString"),this.id},asVersion:function(t){this.log("asVersion");var e={objectType:this.objectType,id:this.id};return"0.9"===t&&(e.objectType="Statement"),e}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.SubStatement=function(t){this.log("constructor"),this.actor=null,this.verb=null,this.target=null,this.result=null,this.context=null,this.timestamp=null,this.init(t)};t.prototype={objectType:"SubStatement",LOG_SRC:"SubStatement",log:i.prototype.log,init:function(t){this.log("init");var e,n=["timestamp"];for(t=t||{},t.hasOwnProperty("object")&&(t.target=t.object),t.hasOwnProperty("actor")&&(void 0!==t.actor.objectType&&"Person"!==t.actor.objectType||(t.actor.objectType="Agent"),"Agent"===t.actor.objectType?t.actor instanceof i.Agent?this.actor=t.actor:this.actor=new i.Agent(t.actor):"Group"===t.actor.objectType&&(t.actor instanceof i.Group?this.actor=t.actor:this.actor=new i.Group(t.actor))),t.hasOwnProperty("verb")&&(t.verb instanceof i.Verb?this.verb=t.verb:this.verb=new i.Verb(t.verb)),t.hasOwnProperty("target")&&(t.target instanceof i.Activity||t.target instanceof i.Agent||t.target instanceof i.Group||t.target instanceof i.SubStatement||t.target instanceof i.StatementRef?this.target=t.target:(void 0===t.target.objectType&&(t.target.objectType="Activity"),"Activity"===t.target.objectType?this.target=new i.Activity(t.target):"Agent"===t.target.objectType?this.target=new i.Agent(t.target):"Group"===t.target.objectType?this.target=new i.Group(t.target):"SubStatement"===t.target.objectType?this.target=new i.SubStatement(t.target):"StatementRef"===t.target.objectType?this.target=new i.StatementRef(t.target):this.log("Unrecognized target type: "+t.target.objectType))),t.hasOwnProperty("result")&&(t.result instanceof i.Result?this.result=t.result:this.result=new i.Result(t.result)),t.hasOwnProperty("context")&&(t.context instanceof i.Context?this.context=t.context:this.context=new i.Context(t.context)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])},toString:function(t){return this.log("toString"),(null!==this.actor?this.actor.toString(t):"")+" "+(null!==this.verb?this.verb.toString(t):"")+" "+(null!==this.target?this.target.toString(t):"")},asVersion:function(t){this.log("asVersion");var e,n,r=["timestamp"],o=["actor","verb","result","context"];for(e={objectType:this.objectType},t=t||i.versions()[0],n=0;n<r.length;n+=1)null!==this[r[n]]&&(e[r[n]]=this[r[n]]);for(n=0;n<o.length;n+=1)null!==this[o[n]]&&(e[o[n]]=this[o[n]].asVersion(t));return null!==this.target&&(e.object=this.target.asVersion(t)),"0.9"===t&&(e.objectType="Statement"),e}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.Statement=function(t,e){this.log("constructor"),e="number"==typeof e?{storeOriginal:e}:e||{},void 0===e.storeOriginal&&(e.storeOriginal=null),void 0===e.doStamp&&(e.doStamp=!0),this.id=null,this.actor=null,this.verb=null,this.target=null,this.result=null,this.context=null,this.timestamp=null,this.stored=null,this.authority=null,this.attachments=null,this.version=null,this.degraded=!1,this.voided=null,this.inProgress=null,this.originalJSON=null,this.init(t,e)};t.prototype={LOG_SRC:"Statement",log:i.prototype.log,init:function(t,e){this.log("init");var n,r=["id","stored","timestamp","version","inProgress","voided"];if(t=t||{},e.storeOriginal&&(this.originalJSON=JSON.stringify(t,null,e.storeOriginal)),t.hasOwnProperty("object")&&(t.target=t.object),t.hasOwnProperty("actor")&&(void 0!==t.actor.objectType&&"Person"!==t.actor.objectType||(t.actor.objectType="Agent"),"Agent"===t.actor.objectType?t.actor instanceof i.Agent?this.actor=t.actor:this.actor=new i.Agent(t.actor):"Group"===t.actor.objectType&&(t.actor instanceof i.Group?this.actor=t.actor:this.actor=new i.Group(t.actor))),t.hasOwnProperty("authority")&&(void 0!==t.authority.objectType&&"Person"!==t.authority.objectType||(t.authority.objectType="Agent"),"Agent"===t.authority.objectType?t.authority instanceof i.Agent?this.authority=t.authority:this.authority=new i.Agent(t.authority):"Group"===t.authority.objectType&&(t.actor instanceof i.Group?this.authority=t.authority:this.authority=new i.Group(t.authority))),t.hasOwnProperty("verb")&&(t.verb instanceof i.Verb?this.verb=t.verb:this.verb=new i.Verb(t.verb)),t.hasOwnProperty("target")&&(t.target instanceof i.Activity||t.target instanceof i.Agent||t.target instanceof i.Group||t.target instanceof i.SubStatement||t.target instanceof i.StatementRef?this.target=t.target:(void 0===t.target.objectType&&(t.target.objectType="Activity"),"Activity"===t.target.objectType?this.target=new i.Activity(t.target):"Agent"===t.target.objectType?this.target=new i.Agent(t.target):"Group"===t.target.objectType?this.target=new i.Group(t.target):"SubStatement"===t.target.objectType?this.target=new i.SubStatement(t.target):"StatementRef"===t.target.objectType?this.target=new i.StatementRef(t.target):this.log("Unrecognized target type: "+t.target.objectType))),t.hasOwnProperty("result")&&(t.result instanceof i.Result?this.result=t.result:this.result=new i.Result(t.result)),t.hasOwnProperty("context")&&(t.context instanceof i.Context?this.context=t.context:this.context=new i.Context(t.context)),t.hasOwnProperty("attachments")&&null!==t.attachments)for(this.attachments=[],n=0;n<t.attachments.length;n+=1)t.attachments[n]instanceof i.Attachment?this.attachments.push(t.attachments[n]):this.attachments.push(new i.Attachment(t.attachments[n]));for(n=0;n<r.length;n+=1)t.hasOwnProperty(r[n])&&null!==t[r[n]]&&(this[r[n]]=t[r[n]]);e.doStamp&&this.stamp()},toString:function(t){return this.log("toString"),(null!==this.actor?this.actor.toString(t):"")+" "+(null!==this.verb?this.verb.toString(t):"")+" "+(null!==this.target?this.target.toString(t):"")},asVersion:function(t){this.log("asVersion");var e,n={},r=["id","timestamp"],o=["actor","verb","result","context","authority"];for(t=t||i.versions()[0],e=0;e<r.length;e+=1)null!==this[r[e]]&&(n[r[e]]=this[r[e]]);for(e=0;e<o.length;e+=1)null!==this[o[e]]&&(n[o[e]]=this[o[e]].asVersion(t));if(null!==this.target&&(n.object=this.target.asVersion(t)),"0.9"!==t&&"0.95"!==t||null!==this.voided&&(n.voided=this.voided),"0.9"===t&&null!==this.inProgress&&(n.inProgress=this.inProgress),null!==this.attachments&&"0.9"!==t&&"0.95"!==t)for(n.attachments=[],e=0;e<this.attachments.length;e+=1)this.attachments[e]instanceof i.Attachment?n.attachments.push(this.attachments[e].asVersion(t)):n.attachments.push(new i.Attachment(this.attachments[e]).asVersion(t));return n},stamp:function(){this.log("stamp"),null===this.id&&(this.id=i.Utils.getUUID()),null===this.timestamp&&(this.timestamp=i.Utils.getISODateString(new Date))},hasAttachmentWithContent:function(){this.log("hasAttachmentWithContent");var t;if(null===this.attachments)return!1;for(t=0;t<this.attachments.length;t+=1)if(null!==this.attachments[t].content)return!0;return!1}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.StatementsResult=function(t){this.log("constructor"),this.statements=null,this.more=null,this.init(t)};t.prototype={LOG_SRC:"StatementsResult",log:i.prototype.log,init:function(t){this.log("init"),t=t||{},t.hasOwnProperty("statements")&&(this.statements=t.statements),t.hasOwnProperty("more")&&(this.more=t.more)}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n,r,o,s=[];try{n=JSON.parse(e)}catch(e){t.prototype.log("fromJSON - JSON.parse error: "+e)}if(n){for(o=0;o<n.statements.length;o+=1){try{r=new i.Statement(n.statements[o],4)}catch(e){t.prototype.log("fromJSON - statement instantiation failed: "+e+" ("+JSON.stringify(n.statements[o])+")"),r=new i.Statement({id:n.statements[o].id},4)}s.push(r)}n.statements=s}return new t(n)}}(),function(){"use strict";var t=i.State=function(t){this.log("constructor"),this.id=null,this.updated=null,this.contents=null,this.etag=null,this.contentType=null,this.init(t)};t.prototype={LOG_SRC:"State",log:i.prototype.log,init:function(t){this.log("init");var e,n=["id","contents","etag","contentType"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);this.updated=!1}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.ActivityProfile=function(t){this.log("constructor"),this.id=null,this.activity=null,this.updated=null,this.contents=null,this.etag=null,this.contentType=null,this.init(t)};t.prototype={LOG_SRC:"ActivityProfile",log:i.prototype.log,init:function(t){this.log("init");var e,n=["id","contents","etag","contentType"];for(t=t||{},t.hasOwnProperty("activity")&&(t.activity instanceof i.Activity?this.activity=t.activity:this.activity=new i.Activity(t.activity)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);this.updated=!1}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.AgentProfile=function(t){this.log("constructor"),this.id=null,this.agent=null,this.updated=null,this.contents=null,this.etag=null,this.contentType=null,this.init(t)};t.prototype={LOG_SRC:"AgentProfile",log:i.prototype.log,init:function(t){this.log("init");var e,n=["id","contents","etag","contentType"];for(t=t||{},t.hasOwnProperty("agent")&&(t.agent instanceof i.Agent?this.agent=t.agent:this.agent=new i.Agent(t.agent)),e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);this.updated=!1}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.About=function(t){this.log("constructor"),this.version=null,this.init(t)};t.prototype={LOG_SRC:"About",log:i.prototype.log,init:function(t){this.log("init");var e,n=["version"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]])}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)}}(),function(){"use strict";var t=i.Attachment=function(t){this.log("constructor"),this.usageType=null,this.display=null,this.contentType=null,this.length=null,this.sha2=null,this.description=null,this.fileUrl=null,this.content=null,this.init(t)};t.prototype={LOG_SRC:"Attachment",log:i.prototype.log,init:function(t){this.log("init");var e,n=["contentType","length","sha2","usageType","display","description","fileUrl"];for(t=t||{},e=0;e<n.length;e+=1)t.hasOwnProperty(n[e])&&null!==t[n[e]]&&(this[n[e]]=t[n[e]]);t.hasOwnProperty("content")&&null!==t.content&&("string"==typeof t.content?this.setContentFromString(t.content):this.setContent(t.content))},asVersion:function(t){this.log("asVersion");var e;return t=t||i.versions()[0],"0.9"===t||"0.95"===t?e=null:(e={contentType:this.contentType,display:this.display,length:this.length,sha2:this.sha2,usageType:this.usageType},null!==this.fileUrl&&(e.fileUrl=this.fileUrl),null!==this.description&&(e.description=this.description)),e},getLangDictionaryValue:i.Utils.getLangDictionaryValue,setContent:function(t){this.content=t,this.length=t.byteLength,this.sha2=i.Utils.getSHA256String(t)},setContentFromString:function(t){var e=t;e=i.Utils.stringToArrayBuffer(t),this.setContent(e)},getContentAsString:function(){return i.Utils.stringFromArrayBuffer(this.content)}},t.fromJSON=function(e){t.prototype.log("fromJSON");var n=JSON.parse(e);return new t(n)},t._defaultEncoding="utf-8"}(),function(){"use strict";var e,r,o,s="Environment.Node",a=i.prototype.log,u=t("querystring"),c=t("xhr2");e=function(t,e){a("requestComplete - xhr.status: "+t.status,s),a("requestComplete - xhr.responseText: "+t.responseText,s);var n,r=t.status,i=e.ignore404&&404===r;return r>=200&&r<400||i?e.callback?void e.callback(null,t):n={err:null,xhr:t}:(n={err:r,xhr:t},0===r?a("[warning] There was a problem communicating with the Learning Record Store. Aborted, offline, or invalid CORS endpoint ("+r+")",s):a("[warning] There was a problem communicating with the Learning Record Store. ("+r+" | "+t.responseText+")",s),e.callback&&e.callback(r,t),n)},i.LRS.prototype._initByEnvironment=function(){},i.LRS.prototype._makeRequest=function(t,n,r){a("_makeRequest using http/https",s);var i,o,l=t,f=void 0!==r.callback;void 0!==r.params&&Object.keys(r.params).length>0&&(l+="?"+u.stringify(r.params)),i=new c,i.open(r.method,l,f),r.expectMultipart&&(i.responseType="arraybuffer");for(o in n)n.hasOwnProperty(o)&&i.setRequestHeader(o,n[o]);return void 0!==r.data&&(r.data+=""),f&&(i.onreadystatechange=function(){a("xhr.onreadystatechange - xhr.readyState: "+i.readyState,s),4===i.readyState&&e(i,r)}),i.send(r.data),f?i:e(i,r)},i.LRS.syncEnabled=!1,i.LRS.prototype._getMultipartRequestData=function(t,e,i){var s,a=[];for(a.push(r(t,e)),s=0;s<i.length;s+=1)null!==i[s].content&&a.push(o(t,i[s].content,i[s].sha2,i[s].contentType));return void 0===n.from?a.push(new n("\r\n--"+t+"--\r\n")):a.push(n.from("\r\n--"+t+"--\r\n")),n.concat(a)},r=function(t,e){var r=["--"+t,"Content-Type: application/json","",JSON.stringify(e)].join("\r\n");return r+="\r\n",void 0===n.from?new n(r):n.from(r)},o=function(t,e,r,i){var o=[],s=["--"+t,"Content-Type: "+i,"Content-Transfer-Encoding: binary","X-Experience-API-Hash: "+r].join("\r\n");return s+="\r\n\r\n",void 0===n.from?(o.push(new n(s)),o.push(new n(e))):(o.push(n.from(s)),o.push(n.from(e))),n.concat(o)},i.Utils.stringToArrayBuffer=function(t,e){var r,o,s,a;if(e||(e=i.Utils.defaultEncoding),void 0===n.from){for(r=new n(t,e),o=new ArrayBuffer(r.length),s=new Uint8Array(o),a=0;a<r.length;a+=1)s[a]=r[a];return o}return r=n.from(t,e),o=r.buffer,o.slice(r.byteOffset,r.byteOffset+r.byteLength)},i.Utils.stringFromArrayBuffer=function(t,e){var r,o,s;if(e||(e=i.Utils.defaultEncoding),void 0===n.from)for(r=new n(t.byteLength),o=new Uint8Array(t),s=0;s<r.length;s+=1)r[s]=o[s];else r=n.from(t);return r.toString(e)}}()}).call(this,t("buffer").Buffer)},{buffer:19,querystring:135,xhr2:484}],477:[function(t,e,n){var r=t("buffer").Buffer;e.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,i=0;i<n;i++)e[i]=t[i];return e.buffer}throw new Error("Argument must be a Buffer")}},{buffer:19}],478:[function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(t,e,n){if(t&&c.isObject(t)&&t instanceof r)return t;var i=new r;return i.parse(t,e,n),i}function o(t){return c.isString(t)&&(t=i(t)),t instanceof r?t.format():r.prototype.format.call(t)}function s(t,e){return i(t,!1,!0).resolve(e)}function a(t,e){return t?i(t,!1,!0).resolveObject(e):e}var u=t("punycode"),c=t("./util");n.parse=i,n.resolve=s,n.resolveObject=a,n.format=o,n.Url=r;var l=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(p),y=["'"].concat(d),v=["%","/","?",";","#"].concat(y),g=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=t("querystring");r.prototype.parse=function(t,e,n){if(!c.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),i=-1!==r&&r<t.indexOf("#")?"?":"#",o=t.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),t=o.join(i);var a=t;if(a=a.trim(),!n&&1===t.split("#").length){var f=h.exec(a);if(f)return this.path=a,this.href=a,this.pathname=f[1],f[2]?(this.search=f[2],this.query=e?S.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var p=l.exec(a);if(p){p=p[0];var d=p.toLowerCase();this.protocol=d,a=a.substr(p.length)}if(n||p||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===a.substr(0,2);!k||p&&w[p]||(a=a.substr(2),this.slashes=!0)}if(!w[p]&&(k||p&&!x[p])){for(var T=-1,A=0;A<g.length;A++){var C=a.indexOf(g[A]);-1!==C&&(-1===T||C<T)&&(T=C)}var O,j;j=-1===T?a.lastIndexOf("@"):a.lastIndexOf("@",T),-1!==j&&(O=a.slice(0,j),a=a.slice(j+1),this.auth=decodeURIComponent(O)),T=-1;for(var A=0;A<v.length;A++){var C=a.indexOf(v[A]);-1!==C&&(-1===T||C<T)&&(T=C)}-1===T&&(T=a.length),this.host=a.slice(0,T),a=a.slice(T),this.parseHost(),this.hostname=this.hostname||"";var E="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!E)for(var P=this.hostname.split(/\./),A=0,N=P.length;A<N;A++){var R=P[A];if(R&&!R.match(m)){for(var M="",L=0,I=R.length;L<I;L++)R.charCodeAt(L)>127?M+="x":M+=R[L];if(!M.match(m)){var D=P.slice(0,A),q=P.slice(A+1),B=R.match(b);B&&(D.push(B[1]),q.unshift(B[2])),q.length&&(a="/"+q.join(".")+a),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=u.toASCII(this.hostname));var H=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+H,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!_[d])for(var A=0,N=y.length;A<N;A++){var U=y[A];if(-1!==a.indexOf(U)){var W=encodeURIComponent(U);W===U&&(W=escape(U)),a=a.split(U).join(W)}}var F=a.indexOf("#");-1!==F&&(this.hash=a.substr(F),a=a.slice(0,F));var z=a.indexOf("?");if(-1!==z?(this.search=a.substr(z),this.query=a.substr(z+1),e&&(this.query=S.parse(this.query)),a=a.slice(0,z)):e&&(this.search="",this.query={}),a&&(this.pathname=a),x[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var H=this.pathname||"",V=this.search||"";this.path=H+V}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(o=S.stringify(this.query));var s=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||x[e])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),s=s.replace("#","%23"),e+i+n+s+r},r.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(c.isString(t)){var e=new r;e.parse(t,!1,!0),t=e}for(var n=new r,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];n[s]=this[s]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var a=Object.keys(t),u=0;u<a.length;u++){
  var l=a[u];"protocol"!==l&&(n[l]=t[l])}return x[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!x[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var p=f[h];n[p]=t[p]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||w[t.protocol])n.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var y=n.pathname||"",v=n.search||"";n.path=y+v}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),m=t.host||t.pathname&&"/"===t.pathname.charAt(0),b=m||g||n.host&&t.pathname,_=b,S=n.pathname&&n.pathname.split("/")||[],d=t.pathname&&t.pathname.split("/")||[],k=n.protocol&&!x[n.protocol];if(k&&(n.hostname="",n.port=null,n.host&&(""===S[0]?S[0]=n.host:S.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),b=b&&(""===d[0]||""===S[0])),m)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),n.search=t.search,n.query=t.query;else if(!c.isNullOrUndefined(t.search)){if(k){n.hostname=n.host=S.shift();var T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");T&&(n.auth=T.shift(),n.host=n.hostname=T.shift())}return n.search=t.search,n.query=t.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=S.slice(-1)[0],C=(n.host||t.host||S.length>1)&&("."===A||".."===A)||""===A,O=0,j=S.length;j>=0;j--)A=S[j],"."===A?S.splice(j,1):".."===A?(S.splice(j,1),O++):O&&(S.splice(j,1),O--);if(!b&&!_)for(;O--;O)S.unshift("..");!b||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),C&&"/"!==S.join("/").substr(-1)&&S.push("");var E=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(k){n.hostname=n.host=E?"":S.length?S.shift():"";var T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");T&&(n.auth=T.shift(),n.host=n.hostname=T.shift())}return b=b||n.host&&S.length,b&&!E&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=f.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":479,punycode:132,querystring:135}],479:[function(t,e,n){"use strict";e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],480:[function(t,e,n){(function(t){function n(t,e){function n(){if(!i){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}if(r("noDeprecation"))return t;var i=!1;return n}function r(e){try{if(!t.localStorage)return!1}catch(t){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],481:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.learningElement$=void 0;var r=t("partybus"),i=t("./mutationobserver"),o=t("most"),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o);(0,i.mutationWatch)("[learning-element]:not([transformed])","learningElements::found");var a={};s.fromEvent("watcher::transformComplete",r.bus).tap(function(){a={}}).drain();var u=s.fromEvent("learningElements::found",r.bus).flatMap(function(t){return s.from(t)}).filter(function(t){return!0!==a[t.getAttribute("learning-element-ref")]}).tap(function(t){return a[t.getAttribute("learning-element-ref")]=!0}).tap(function(t){return t.setAttribute("transformed",!0)}).multicast();n.learningElement$=u},{"./mutationobserver":482,most:98,partybus:129}],482:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mutationWatch=void 0;var r=t("partybus"),i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,o=[];new i(function(t){o.forEach(function(t){var e=t.selector,n=t.emitMessage,i=document.querySelectorAll(e);i.length>0?r.bus.emit(n,i):r.bus.emit("watcher::transformComplete")})}).observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0});var s=function(t,e){o.push({selector:t,emitMessage:e})};n.mutationWatch=s},{partybus:129}],483:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.learningElement$=n.mutationWatch=void 0;var r=t("./mutationobserver"),i=t("./learningElementWatch");n.mutationWatch=r.mutationWatch,n.learningElement$=i.learningElement$},{"./learningElementWatch":481,"./mutationobserver":482}],484:[function(t,e,n){(function(n,r){(function(){var i,o,s,a,u,c,l,f,h,p,d,y,v={}.hasOwnProperty,g=function(t,e){function n(){this.constructor=t}for(var r in e)v.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};u=function(){function t(){this.onloadstart=null,this.onprogress=null,this.onabort=null,this.onerror=null,this.onload=null,this.ontimeout=null,this.onloadend=null,this._listeners={}}return t.prototype.onloadstart=null,t.prototype.onprogress=null,t.prototype.onabort=null,t.prototype.onerror=null,t.prototype.onload=null,t.prototype.ontimeout=null,t.prototype.onloadend=null,t.prototype.addEventListener=function(t,e){var n;t=t.toLowerCase(),(n=this._listeners)[t]||(n[t]=[]),this._listeners[t].push(e)},t.prototype.removeEventListener=function(t,e){var n;t=t.toLowerCase(),this._listeners[t]&&-1!==(n=this._listeners[t].indexOf(e))&&this._listeners.splice(n,1)},t.prototype.dispatchEvent=function(t){var e,n,r,i,o;if(e=t.type,r=this._listeners[e])for(i=0,o=r.length;i<o;i++)(n=r[i])(t);(n=this["on"+e])&&n(t)},t}(),f=t("http"),h=t("https"),p=t("os"),d=t("url"),a=function(t){function e(t){e.__super__.constructor.call(this),this.onreadystatechange=null,this._anonymous=t&&t.anon,this.readyState=e.UNSENT,this.response=null,this.responseText="",this.responseType="",this.status=0,this.statusText="",this.timeout=0,this.upload=new l(this),this._method=null,this._url=null,this._sync=!1,this._headers=null,this._loweredHeaders=null,this._mimeOverride=null,this._request=null,this._response=null,this._responseParts=null,this._responseHeaders=null,this._aborting=null,this._error=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1}return g(e,t),e.prototype.onreadystatechange=null,e.prototype.readyState=null,e.prototype.response=null,e.prototype.responseText=null,e.prototype.responseType=null,e.prototype.status=null,e.prototype.timeout=null,e.prototype.upload=null,e.prototype.open=function(t,n,r,i,o){var a;if((t=t.toUpperCase())in this._restrictedMethods)throw new s("HTTP method "+t+" is not allowed in XHR");switch(a=this._parseUrl(n),void 0===r&&(r=!0),this.readyState){case e.UNSENT:case e.OPENED:case e.DONE:break;case e.HEADERS_RECEIVED:case e.LOADING:}this._method=t,this._url=a,this._sync=!r,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(e.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},e.prototype.setRequestHeader=function(t,n){var r;if(this.readyState!==e.OPENED)throw new i("XHR readyState must be OPENED");if(r=t.toLowerCase(),this._restrictedHeaders[r]||/^sec\-/.test(r)||/^proxy-/.test(r))return void console.warn('Refused to set unsafe header "'+t+'"');n=n.toString(),r in this._loweredHeaders?(t=this._loweredHeaders[r],this._headers[t]=this._headers[t]+", "+n):(this._loweredHeaders[r]=t,this._headers[t]=n)},e.prototype.send=function(t){if(this.readyState!==e.OPENED)throw new i("XHR readyState must be OPENED");if(this._request)throw new i("send() already called");switch(this._url.protocol){case"file:":this._sendFile(t);break;case"http:":case"https:":this._sendHttp(t);break;default:throw new o("Unsupported protocol "+this._url.protocol)}},e.prototype.abort=function(){this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},e.prototype.getResponseHeader=function(t){var e;return this._responseHeaders?(e=t.toLowerCase(),e in this._responseHeaders?this._responseHeaders[e]:null):null},e.prototype.getAllResponseHeaders=function(){var t,e,n;return this._responseHeaders?(t=function(){var t,r;t=this._responseHeaders,r=[];for(e in t)n=t[e],r.push(e+": "+n);return r}.call(this),t.join("\r\n")):""},e.prototype.overrideMimeType=function(t){if(this.readyState===e.LOADING||this.readyState===e.DONE)throw new i("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=t.toLowerCase()},e.prototype.nodejsSet=function(t){"httpAgent"in t&&(this.nodejsHttpAgent=t.httpAgent),"httpsAgent"in t&&(this.nodejsHttpsAgent=t.httpsAgent)},e.nodejsSet=function(t){e.prototype.nodejsSet(t)},e.prototype.UNSENT=0,e.UNSENT=0,e.prototype.OPENED=1,e.OPENED=1,e.prototype.HEADERS_RECEIVED=2,e.HEADERS_RECEIVED=2,e.prototype.LOADING=3,e.LOADING=3,e.prototype.DONE=4,e.DONE=4,e.prototype.nodejsHttpAgent=f.globalAgent,e.prototype.nodejsHttpsAgent=h.globalAgent,e.prototype._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},e.prototype._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},e.prototype._privateHeaders={"set-cookie":!0,"set-cookie2":!0},e.prototype._userAgent="Mozilla/5.0 ("+p.type()+" "+p.arch()+") node.js/"+n.versions.node+" v8/"+n.versions.v8,e.prototype._setReadyState=function(t){var e;this.readyState=t,e=new c("readystatechange",this),this.dispatchEvent(e)},e.prototype._sendFile=function(){if("GET"!==this._url.method)throw new o("The file protocol only supports GET");throw new Error("Protocol file: not implemented")},e.prototype._sendHttp=function(t){if(this._sync)throw new Error("Synchronous XHR processing not implemented");null==t||"GET"!==this._method&&"HEAD"!==this._method?t||(t=""):(console.warn("Discarding entity body for "+this._method+" requests"),t=null),this.upload._setData(t),this._finalizeHeaders(),this._sendHxxpRequest()},e.prototype._sendHxxpRequest=function(){var t,e,n,r=this;"http:"===this._url.protocol?(e=f,t=this.nodejsHttpAgent):(e=h,t=this.nodejsHttpsAgent),n=e.request({hostname:this._url.hostname,port:this._url.port,path:this._url.path,auth:this._url.auth,method:this._method,headers:this._headers,agent:t}),this._request=n,this.timeout&&n.setTimeout(this.timeout,function(){return r._onHttpTimeout(n)}),n.on("response",function(t){return r._onHttpResponse(n,t)}),n.on("error",function(t){return r._onHttpRequestError(n,t)}),this.upload._startUpload(n),this._request===n&&this._dispatchProgress("loadstart")},e.prototype._finalizeHeaders=function(){this._headers.Connection="keep-alive",this._headers.Host=this._url.host,this._anonymous&&(this._headers.Referer="about:blank"),this._headers["User-Agent"]=this._userAgent,this.upload._finalizeHeaders(this._headers,this._loweredHeaders)},e.prototype._onHttpResponse=function(t,n){var r,i=this;if(this._request===t){switch(n.statusCode){case 301:case 302:case 303:case 307:case 308:return this._url=this._parseUrl(n.headers.location),this._method="GET","content-type"in this._loweredHeaders&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),"Content-Type"in this._headers&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest()}return this._response=n,this._response.on("data",function(t){return i._onHttpResponseData(n,t)}),this._response.on("end",function(){return i._onHttpResponseEnd(n)}),this._response.on("close",function(){return i._onHttpResponseClose(n)}),this.status=this._response.statusCode,this.statusText=f.STATUS_CODES[this.status],this._parseResponseHeaders(n),(r=this._responseHeaders["content-length"])?(this._totalBytes=parseInt(r),this._lengthComputable=!0):this._lengthComputable=!1,this._setReadyState(e.HEADERS_RECEIVED)}},e.prototype._onHttpResponseData=function(t,n){if(this._response===t)return this._responseParts.push(n),this._loadedBytes+=n.length,this.readyState!==e.LOADING&&this._setReadyState(e.LOADING),this._dispatchProgress("progress")},e.prototype._onHttpResponseEnd=function(t){if(this._response===t)return this._parseResponse(),this._request=null,this._response=null,this._setReadyState(e.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend")},e.prototype._onHttpResponseClose=function(t){var n;if(this._response===t)return n=this._request,this._setError(),n.abort(),this._setReadyState(e.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")},e.prototype._onHttpTimeout=function(t){if(this._request===t)return this._setError(),t.abort(),this._setReadyState(e.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend")},e.prototype._onHttpRequestError=function(t,n){if(this._request===t)return this._setError(),t.abort(),this._setReadyState(e.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")},e.prototype._dispatchProgress=function(t){var e;e=new c(t,this),e.lengthComputable=this._lengthComputable,e.loaded=this._loadedBytes,e.total=this._totalBytes,this.dispatchEvent(e)},e.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},e.prototype._parseUrl=function(t){var e,n,r,i;return i=d.parse(t,!1,!0),i.hash=null,i.auth&&(void 0!==r&&null!==r||void 0!==n&&null!==n)&&(e=i.auth.indexOf(":"),-1===e?r||(r=i.auth):(r||(r=i.substring(0,e)),n||(n=i.substring(e+1)))),(r||n)&&(i.auth=r+":"+n),i},e.prototype._parseResponseHeaders=function(t){var e,n,r,i;this._responseHeaders={},i=t.headers;for(n in i)r=i[n],e=n.toLowerCase(),this._privateHeaders[e]||(null!==this._mimeOverride&&"content-type"===e&&(r=this._mimeOverride),this._responseHeaders[e]=r);null===this._mimeOverride||"content-type"in this._responseHeaders||(this._responseHeaders["content-type"]=this._mimeOverride)},e.prototype._parseResponse=function(){var t,e,n,i,o,s;switch(e=r.concat?r.concat(this._responseParts):this._concatBuffers(this._responseParts),this._responseParts=null,this.responseType){case"text":this._parseTextResponse(e);break;case"json":this.responseText=null;try{this.response=JSON.parse(e.toString("utf-8"))}catch(t){t,this.response=null}break;case"buffer":this.responseText=null,this.response=e;break;case"arraybuffer":for(this.responseText=null,t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=o=0,s=e.length;0<=s?o<s:o>s;n=0<=s?++o:--o)i[n]=e[n];this.response=t;break;default:this._parseTextResponse(e)}},e.prototype._parseTextResponse=function(t){try{this.responseText=t.toString(this._parseResponseEncoding())}catch(e){e,this.responseText=t.toString("binary")}this.response=this.responseText},e.prototype._parseResponseEncoding=function(){var t,e;return null,(t=this._responseHeaders["content-type"])&&(e=/\;\s*charset\=(.*)$/.exec(t))?e[1]:"utf-8"},e.prototype._concatBuffers=function(t){var e,n,i,o,s,a,u;if(0===t.length)return new r(0);if(1===t.length)return t[0];for(n=0,o=0,a=t.length;o<a;o++)e=t[o],n+=e.length;for(i=new r(n),n=0,s=0,u=t.length;s<u;s++)e=t[s],e.copy(i,n),n+=e.length;return i},e}(u),e.exports=a,a.XMLHttpRequest=a,s=function(t){function e(){e.__super__.constructor.apply(this,arguments)}return g(e,t),e}(Error),a.SecurityError=s,i=function(t){function e(){e.__super__.constructor.apply(this,arguments)}return g(e,t),e}(Error),i=function(t){function e(){return y=e.__super__.constructor.apply(this,arguments)}return g(e,t),e}(Error),a.InvalidStateError=i,o=function(t){function e(){e.__super__.constructor.apply(this,arguments)}return g(e,t),e}(Error),a.NetworkError=o,c=function(){function t(t,e){this.type=t,this.target=e,this.currentTarget=this.target,this.lengthComputable=!1,this.loaded=0,this.total=0}return t.prototype.bubbles=!1,t.prototype.cancelable=!1,t.prototype.target=null,t.prototype.loaded=null,t.prototype.lengthComputable=null,t.prototype.total=null,t}(),a.XMLHttpRequestProgressEvent=c,l=function(t){function e(t){e.__super__.constructor.call(this),this._request=t,this._reset()}return g(e,t),e.prototype._reset=function(){this._contentType=null,this._body=null},e.prototype._setData=function(t){var e,n,i,o,s,a,u,c;if(void 0!==t&&null!==t)if("string"==typeof t)0!==t.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new r(t,"utf8");else if(r.isBuffer(t))this._body=t;else if(t instanceof ArrayBuffer){for(e=new r(t.byteLength),o=new Uint8Array(t),n=s=0,u=t.byteLength;0<=u?s<u:s>u;n=0<=u?++s:--s)e[n]=o[n];this._body=e}else{if(!(t.buffer&&t.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+t);for(e=new r(t.byteLength),i=t.byteOffset,o=new Uint8Array(t.buffer),n=a=0,c=t.byteLength;0<=c?a<c:a>c;n=0<=c?++a:--a)e[n]=o[n+i];this._body=e}},e.prototype._finalizeHeaders=function(t,e){this._contentType&&("content-type"in e||(t["Content-Type"]=this._contentType)),this._body&&(t["Content-Length"]=this._body.length.toString())},e.prototype._startUpload=function(t){this._body&&t.write(this._body),t.end()},e}(u),a.XMLHttpRequestUpload=l}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{_process:131,buffer:19,http:458,https:26,os:128,url:478}],485:[function(t,e,n){function r(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)i.call(n,r)&&(t[r]=n[r])}return t}e.exports=r;var i=Object.prototype.hasOwnProperty},{}],486:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=[{slug:"00_course_front_matter",completion:"visited",title:"Front Matter"},{slug:"01_course_introduction",completion:"visited",title:"Course Introduction"},{slug:"02_current_data",completion:"visited",title:"Current Data"},{slug:"03_current_conventional_cpr_data",completion:"visited",title:"Current Conventional CPR Data"},{slug:"04_current_data",completion:"correct",title:"Current Data"},{slug:"05_outcomes_all_ages",completion:"visited",title:"Outcomes All Ages"},{slug:"26_congratulations",completion:"visited",title:"Congratulations"},{slug:"404",title:"404",hidden:!0}];n.default=r},{}],487:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r);t("jquery-confirm");var o=t("partybus"),s="";o.bus.on("hucklebucked",function(t){return s=t});var a=function(t){if(t===s||void 0===t||null===t)return console.log("Bookmarking Data POPUP will not launch, same page",t),!1;console.log("Bookmarking Data POPUP",t),i.default.confirm({title:"Looks like you have been here before",content:"Do you want to resume where you left off?",type:"green",buttons:{yes:{text:"YES",btnClass:"btn-primary",keys:["enter"],action:function(){t?(console.log("User will to resume to",t),o.bus.emit("hucklebuck",t)):console.log("User want to resume, but slug bad",t)}},no:{text:"NO",btnClass:"btn-secondary",action:function(){console.log("User don't want to resume to",t)}}}})};n.default=null,o.bus.on("tincan::bookmark::found",a)},{jquery:50,"jquery-confirm":49,partybus:129}],488:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=t("partybus"),s=function(){(0,i.default)(document).on("click",'a[name="correct_answer_04"]',function(){return o.bus.emit("activity::progress::complete","04_current_data")})};o.bus.on("activity::ready",s),n.default=null},{jquery:50,partybus:129}],489:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=t("partybus"),o=t("jquery"),s=r(o),a=t("ramda"),u=r(a),c=[],l="",f=function(t){c=t.filter(function(t){return!t.completed}),l=u.default.last(t).slug,console.log("unfinished_sections_filter",c,l)},h=function(t){t===l&&(0===c.length?y():p())},p=function(){(0,s.default)(".dynamic-close-complete").hide();var t=u.default.map(d,c);(0,s.default)(".dynamic-close-incomplete .section-list").html(t.join("<br />"))},d=function(t){return'<button data-nav="'+t.slug+'" class="btn btn-primary btn-sm">'+t.title+"</button>"},y=function(){(0,s.default)(".dynamic-close-incomplete").hide()};i.bus.on("hucklebucked",h),i.bus.on("activity::progress::updated",f),n.default=null},{jquery:50,partybus:129,ramda:138}],490:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=t("partybus"),s=function(){return(0,i.default)(document).ready(function(){o.bus.emit("activity::ready")}),console.log("scripts run()"),!0};n.default=s},{jquery:50,partybus:129}],491:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=t("../../activity_config"),o=r(i),s=t("../../sections"),a=r(s),u=t("hucklebuck");t("./theme/cleanblog"),t("./theme/navigation"),t("./events/fin"),t("./events/completion"),t("./events/bookmark");var c=t("./events/ready"),l=r(c),f=function(){var t="https://aviato.com/?actor=%7B%22mbox%22%3A%22mailto%3Abachmanity%40scitent.com%22%2C%22name%22%3A%22Erlich%20Bachman%22%2C%22objectType%22%3A%22Agent%22%7D&auth=Basic%20NDUtZmQxODUzZWY5ODE4ZTZiOmEyMzQ4YzczMDI5ODU5ZWUzYTU1Zjc4YTg%3D&endpoint=https%3A%2F%2Flrs.scitent.us%2FxAPI%2F&registration=TC8GSLS7W&activity_id=https%3A%2F%2Faviato-content.netlify.com%2F"+o.default.slug+"%2F";return"localhost"===window.location.hostname?{send:!0,url:t}:{send:!0,url:window.location.href}}();(0,u.prefetchSections)(a.default),(0,u.analytics)(o.default,f,a.default),(0,l.default)(),(0,u.cheet)("r e s e t",function(){bus.emit("tincan::progress::reset"),u.$.confirm({title:"You done reset ur progress",content:"You will be reloaded now"})})},{"../../activity_config":1,"../../sections":486,"./events/bookmark":487,"./events/completion":488,"./events/fin":489,"./events/ready":490,"./theme/cleanblog":492,"./theme/navigation":494,hucklebuck:27}],492:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r);t("bootstrap"),t("./menu"),t("./scroll_to_top"),(0,i.default)(document).ready(function(t){var e=this;if(t(window).width()>1170){var n=t(".navbar-custom").height();t(window).on("scroll",{previousTop:0},function(){var r=t(window).scrollTop();r<e.previousTop?r>0&&t(".navbar-custom").hasClass("is-fixed")?t(".navbar-custom").addClass("is-visible"):t(".navbar-custom").removeClass("is-visible is-fixed"):r>e.previousTop&&(t(".navbar-custom").removeClass("is-visible"),r>n&&!t(".navbar-custom").hasClass("is-fixed")&&t(".navbar-custom").addClass("is-fixed")),e.previousTop=r})}}),n.default=null},{"./menu":493,"./scroll_to_top":495,bootstrap:5,jquery:50}],493:[function(t,e,n){"use strict";var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=t("most"),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o);if(document.querySelectorAll(".click-toggle-overlay-menu").length>0){var a=function(){return(0,i.default)(".overlay").fadeToggle(200)};s.fromEvent("click",document.querySelector(".click-toggle-overlay-menu")).observe(a),s.fromEvent("click",document.querySelector(".overlay")).observe(a)}},{jquery:50,most:98}],494:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var i=t("ramda"),o=(r(i),t("jquery")),s=r(o),a=function(t,e){for(var n=[],r=t.slice(0),i=Math.ceil(t.length/e),o=0;o<e;o++)n[o]=r.splice(0,i);return n},u=function(t){console.log("build_navigation_menu",t);var e=a(t,3),n=e.map(function(t){return'<div class="col-md-4"><ul class="list-style-none">'+t.map(function(t){var e=' data-completed="'+(1==t.completed)+'"',n=t.completed?' data-nav="'+t.slug+'"':"",r=["white-txt","nav-item"];return r.push(t.completed?"nav-item-modal-close":"disabled"),'<li><a class="'+r.join(" ")+'" role="button"'+e+n+">"+t.title+"</a></li>"}).join("")+"</ul></div>"});(0,s.default)("#build_navigation .row").html(n),console.log("build_navigation_menu() is done")},c=function(t){return u(window.progress_cache),(0,s.default)(document).on("click",".nav-item-modal-close",function(){(0,s.default)("#menu").modal("hide")}),!0};bus.on("activity::progress::updated",c),n.default=null},{jquery:50,ramda:138}],495:[function(t,e,n){"use strict";var r=t("jquery"),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=t("partybus"),s=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];console.log("scroll-to-top ",t?"immediately":"slowly"),t?(0,i.default)("html, body").scrollTop(0):(0,i.default)("html, body").animate({scrollTop:0},"slow"),o.bus.emit("home-height"),o.bus.emit("window::scroll-to-top::after")};(0,i.default)(document).on("click","#scroll-to-top",function(){return s(!1)}),o.bus.on("scroll-to-top",s),o.bus.on("hucklebucked",function(){return s(!0)}),o.bus.on("404page",function(){return s(!0)})},{jquery:50,partybus:129}]},{},[491]);
  //# sourceMappingURL=app.js.map
  