webpackJsonp([12],{100:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e.project.disputed>0&&(e.filters.disputed={true:{count:e.project.disputed}}),e}function a(e){return c.default.each(c.default.keys(e.aggregations),function(t){c.default.each(c.default.keys(e.aggregations[t]),function(n){var i=e.aggregations[t][n];e.aggregations[t][n]={count:i}})}),e}function s(e){return e.params&&(c.default.each(c.default.keys(e.params),function(t){c.default.has(e.aggregations,t)?(e.aggregations[t][e.params[t]]||(e.aggregations[t][e.params[t]]={}),e.aggregations[t][e.params[t]].selected=!0):c.default.has(e.filters,t)?e.filters[t][e.params[t]].selected=!0:(e.aggregations[t]={})[e.params[t]]={selected:!0}}),e.params.sort_by&&(e.params["sort_by_"+e.params.sort_by]=" "+(e.params.asc_or_desc||"asc")),e.actual_reward_selected=!1,e.params.reward_id&&(e.actual_reward_selected=!0,e.selected_reward=c.default.findWhere(e.rewards,{id:parseInt(e.params.reward_id,10)}),e.selected_reward||(e.actual_reward_selected=!1,e.selected_reward=c.default.findWhere(e.rewards,{id:"none"})),e.selected_reward.selected=!0),c.default.each(["survey_answered","completed","must_have_creator_note","status","backer_banned","disputed"],function(t){e.params[t]&&(e.not_filtered=!1)})),e}function o(e){return e.show_aggregations=e.total_entries>0||!(e.params&&e.params.term&&!e.params.creator_note&&!e.params.creator_note_not),e}function l(e){return c.default.each(e.rewards,function(e){e.formatted_minimum=f.default.money(e.minimum,{currency:m.default.get("currency"),precision:0}),e.reward.length>35?e.truncated_description=e.reward.substring(0,35)+"…":e.truncated_description=e.reward}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.filters={},e=r(e),e=a(e),e.aggregations.must_have_creator_note={true:{},false:{}},e.not_filtered=!0,e=s(e),"successful"===e.project.state&&(e.project.is_successful=!0),e=o(e),e.formatted_total_entries=f.default.format_number(e.total_entries,{precision:0}),e.count=e.total_entries,e=l(e),e.message_url=(0,p.default)(e.urls.web.message_batches).segment("new").query(e.params),e.isCreator=m.default.get("creator.id")===_.default.get("id"),e.showMessages=e.isCreator||e.showMessages,e};var u=n(5),c=i(u),d=n(10),f=i(d),h=n(17),p=i(h),g=n(18),m=i(g),v=n(16),_=i(v)},101:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.formatted_pledged_at=(0,s.format)("ll",1e3*e.pledged_at),e.formatted_survey_answered_at=(0,s.format)("ll",1e3*e.survey_answered_at),e.formatted_amount=a.default.money(e.amount,{precision:2,currency:l.default.get("currency")}),e.is_registered||(e.name=f.default.t("backer_report.row.Guest",{backer_uid:e.backer_uid})),e.isCreator=l.default.get("creator.id")===c.default.get("id"),e.showMessages=e.isCreator||e.showMessages,e};var r=n(10),a=i(r),s=n(15),o=n(18),l=i(o),u=n(16),c=i(u),d=n(2),f=i(d)},102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.json=JSON.stringify(e),e}},103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.ancestor_locations=e.ancestor_locations||[],e.ancestor_locations=e.ancestor_locations.reverse(),e.nearby_locations=e.nearby_locations||[],e}},104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var i=n(31),r=function(e){return e&&e.__esModule?e:{default:e}}(i)},105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.json=JSON.stringify(e),e}},106:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[],n=e.aggregations.read?e.aggregations.read[e.user]:0,i=e.total_entries-n;return window.enabled_features&&(e.archived_enabled=window.enabled_features.message_archiving,e.spam_enabled=window.enabled_features.message_spam),e.aggregations.read={},n>0&&(e.aggregations.read.true=n),i>0&&(e.aggregations.read.false=i),a.default.each(a.default.keys(e.aggregations),function(t){a.default.each(a.default.keys(e.aggregations[t]),function(n){var i=e.aggregations[t][n];e.aggregations[t][n]={count:i}})}),"undefined"==typeof current_project?(a.default.each(e.projects,function(n){var i=e.aggregations.projects?e.aggregations.projects[n[1]]:void 0,r=parseInt(e.params.project,10)===n[1],a={name:n[0],truncated_name:n[0].substring(0,35)+(n[0].length>35?"…":""),id:n[1],count:i||0,selected:r};t.push(a),r&&(e.selected_project=a)}),e.projects=t,e.has_projects=e.projects&&e.projects.length>0):e.has_projects=!1,e.params&&(a.default.each(a.default.keys(e.params),function(t){a.default.has(e.aggregations,t)?(e.aggregations[t][e.params[t]]||(e.aggregations[t][e.params[t]]={}),e.aggregations[t][e.params[t]].selected=!0):(e.aggregations[t]={})[e.params[t]]={selected:!0}}),"other"===e.params.project&&(e.selected_project={truncated_name:o.default.t("presenters.message_threads.index.Other_projects"),other:!0})),e};var r=n(5),a=i(r),s=n(2),o=i(s)},107:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.formatted_sent_at=(0,i.format)("ll",1e3*e.sent_at),e};var i=n(15)},108:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.is_creator=e.project.creator.id===c.default.get("id"),e.project.is_live="live"===e.project.state,e.backing&&(e.backing.reward.formatted_estimated_delivery_on=d.maybe.fromNullable(e.backing.reward.estimated_delivery_on).map(function(e){return(0,l.format)("ll",(0,p.toUTC)(1e3*e))}).getOrElse(null),e.backing.is_creator=e.is_creator,e.backing.formatted_amount=o.default.money(e.backing.amount,{currency:e.backing.project.currency,precision:0})),e.messages=a.default.map(e.messages,function(t){return t.sender=a.default.findWhere(e.participants,{id:t.sender_id}),(0,h.default)(t)}),e};var r=n(5),a=i(r),s=n(10),o=i(s),l=n(15),u=n(16),c=i(u),d=n(22),f=n(49),h=i(f),p=n(40)},109:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=a.default.extend({},e);return t.projects=t.projects.map(function(e){return e.map(function(e){return(0,o.default)(e)})}),t};var r=n(0),a=i(r),s=n(31),o=i(s)},122:function(e,t,n){var i=(n(0),n(0),!1);!function(e){"function"==typeof i&&i.amd?i(["jquery"],e):e(n(0))}(function(e){var t=0,n=Array.prototype.slice;e.cleanData=function(t){return function(n){var i,r,a;for(a=0;null!=(r=n[a]);a++)try{i=e._data(r,"events"),i&&i.remove&&e(r).triggerHandler("remove")}catch(e){}t(n)}}(e.cleanData),e.widget=function(t,n,i){var r,a,s,o,l={},u=t.split(".")[0];return t=t.split(".")[1],r=u+"-"+t,i||(i=n,n=e.Widget),e.expr[":"][r.toLowerCase()]=function(t){return!!e.data(t,r)},e[u]=e[u]||{},a=e[u][t],s=e[u][t]=function(e,t){if(!this._createWidget)return new s(e,t);arguments.length&&this._createWidget(e,t)},e.extend(s,a,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),o=new n,o.options=e.widget.extend({},o.options),e.each(i,function(t,i){if(!e.isFunction(i))return void(l[t]=i);l[t]=function(){var e=function(){return n.prototype[t].apply(this,arguments)},r=function(e){return n.prototype[t].apply(this,e)};return function(){var t,n=this._super,a=this._superApply;return this._super=e,this._superApply=r,t=i.apply(this,arguments),this._super=n,this._superApply=a,t}}()}),s.prototype=e.widget.extend(o,{widgetEventPrefix:a?o.widgetEventPrefix||t:t},l,{constructor:s,namespace:u,widgetName:t,widgetFullName:r}),a?(e.each(a._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,s,n._proto)}),delete a._childConstructors):n._childConstructors.push(s),e.widget.bridge(t,s),s},e.widget.extend=function(t){for(var i,r,a=n.call(arguments,1),s=0,o=a.length;s",options:{disabled:!1,create:null},_createWidget:function(n,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,a,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},i=t.split("."),t=i.shift(),i.length){for(r=s[t]=e.widget.extend({},this.options[t]),a=0;a'),i.attr("accept-charset",n.formAcceptCharset),a=/\?/.test(n.url)?"&":"?","DELETE"===n.type?(n.url=n.url+a+"_method=DELETE",n.type="POST"):"PUT"===n.type?(n.url=n.url+a+"_method=PUT",n.type="POST"):"PATCH"===n.type&&(n.url=n.url+a+"_method=PATCH",n.type="POST"),t+=1,r=e('').bind("load",function(){var t,a=e.isArray(n.paramName)?n.paramName:[n.paramName];r.unbind("load").bind("load",function(){var t;try{if(t=r.contents(),!t.length||!t[0].firstChild)throw new Error}catch(e){t=void 0}l(200,"success",{iframe:t}),e('').appendTo(i),window.setTimeout(function(){i.remove()},0)}),i.prop("target",r.prop("name")).prop("action",n.url).prop("method",n.type),n.formData&&e.each(n.formData,function(t,n){e('').prop("name",n.name).val(n.value).appendTo(i)}),n.fileInput&&n.fileInput.length&&"POST"===n.type&&(t=n.fileInput.clone(),n.fileInput.after(function(e){return t[e]}),n.paramName&&n.fileInput.each(function(t){e(this).prop("name",a[t]||n.paramName)}),i.append(n.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),n.fileInput.removeAttr("form")),i.submit(),t&&t.length&&n.fileInput.each(function(n,i){var r=e(t[n]);e(i).prop("name",r.prop("name")).attr("form",r.attr("form")),r.replaceWith(i)})}),i.append(r).appendTo(document.body)},abort:function(){r&&r.unbind("load").prop("src",s),i&&i.remove()}}}}),e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return t&&e(t[0].body).html()},"iframe xml":function(t){var n=t&&t[0];return n&&e.isXMLDoc(n)?n:e.parseXML(n.XMLDocument&&n.XMLDocument.xml||e(n.body).html())},"iframe script":function(t){return t&&e.globalEval(e(t[0].body).text())}}})})},124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={};i.pageX=function(e){return e.originalEvent&&e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX},t.default=i},125:function(e,t,n){"use strict";var i=n(5),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(0);n(0);!function(e){e.fn.whenNear=function(t,n){function i(){var t=r.default.filter(o,function(t){var n=e(t);if(!n.is(":hidden")){var i=a.scrollTop(),r=i+a.height(),o=n.offset().top;return o+n.height()>=i-s&&o<=r+s}});o=o.not(t),r.default.each(t,n)}var a=e(window),s=t||0,o=this;return a.on("scroll.whenNear resize.whenNear",r.default.throttle(i,25)),i(),this}}(a)},128:function(e,t,n){"use strict";var i=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(i);!function(){(0,r.default)(function(){(0,r.default)("body").hasClass("admin")||(window._sf_async_config={uid:5536,domain:window.location.hostname.replace("www.","")},window._sf_endpt=(new Date).getTime(),r.default.getScript("//a248.e.akamai.net/chartbeat.download.akamai.com/102508/js/chartbeat.js"))})}()},129:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(0),a=i(r),s=n(5),o=i(s),l=n(24),u=i(l);n(11),(0,a.default)(function(){(0,a.default)(".render_mustache").livequery(function(){var e=(0,a.default)(this),t=o.default.extend(e.data("data"),e.data("extend")),n=t,i=e.data("partials")?e.data("partials").split(","):void 0,r=e.data("template");e.append((0,u.default)(r,n,i))})})},130:function(e,t,n){var i=n(0);n(0);!function(e,t){e.effects={effect:{}},function(e,t){function n(e,t,n){var i=c[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:0>e?0:i.max")[0],h=e.each;f.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=f.style.backgroundColor.indexOf("rgba")>-1,h(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(t,r,s,o){if(void 0===t)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=e(t).css(r),r=void 0);var c=this,d=e.type(t),f=this._rgba=[];return void 0!==r&&(t=[t,r,s,o],d="array"),"string"===d?this.parse(i(t)||a._default):"array"===d?(h(u.rgba.props,function(e,i){f[i.idx]=n(t[i.idx],i)}),this):"object"===d?(t instanceof l?h(u,function(e,n){t[n.cache]&&(c[n.cache]=t[n.cache].slice())}):h(u,function(i,r){var a=r.cache;h(r.props,function(e,i){if(!c[a]&&r.to){if("alpha"===e||null==t[e])return;c[a]=r.to(c._rgba)}c[a][i.idx]=n(t[e],i,!0)}),c[a]&&e.inArray(null,c[a].slice(0,3))<0&&(c[a][3]=1,r.from&&(c._rgba=r.from(c[a])))}),this):void 0},is:function(e){var t=l(e),n=!0,i=this;return h(u,function(e,r){var a,s=t[r.cache];return s&&(a=i[r.cache]||r.to&&r.to(i._rgba)||[],h(r.props,function(e,t){if(null!=s[t.idx])return n=s[t.idx]===a[t.idx]})),n}),n},_space:function(){var e=[],t=this;return h(u,function(n,i){t[i.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var i=l(e),r=i._space(),a=u[r],s=0===this.alpha()?l("transparent"):this,o=s[a.cache]||a.to(s._rgba),d=o.slice();return i=i[a.cache],h(a.props,function(e,r){var a=r.idx,s=o[a],l=i[a],u=c[r.type]||{};null!==l&&(null===s?d[a]=l:(u.mod&&(l-s>u.mod/2?s+=u.mod:s-l>u.mod/2&&(s-=u.mod)),d[a]=n((l-s)*t+s,r)))}),this[r](d)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),r=l(t)._rgba;return l(e.map(n,function(e,t){return(1-i)*r[t]+i*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),i=n.pop();return t&&n.push(~~(255*i)),"#"+e.map(n,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,i=e[0]/255,r=e[1]/255,a=e[2]/255,s=e[3],o=Math.max(i,r,a),l=Math.min(i,r,a),u=o-l,c=o+l,d=.5*c;return t=l===o?0:i===o?60*(r-a)/u+360:r===o?60*(a-i)/u+120:60*(i-r)/u+240,n=0===u?0:d<=.5?u/c:u/(2-c),[Math.round(t)%360,n,d,null==s?1:s]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2],a=e[3],s=i<=.5?i*(1+n):i+n-i*n,o=2*i-s;return[Math.round(255*r(o,s,t+1/3)),Math.round(255*r(o,s,t)),Math.round(255*r(o,s,t-1/3)),a]},h(u,function(t,i){var r=i.props,a=i.cache,o=i.to,u=i.from;l.fn[t]=function(t){if(o&&!this[a]&&(this[a]=o(this._rgba)),void 0===t)return this[a].slice();var i,s=e.type(t),c="array"===s||"object"===s?t:arguments,d=this[a].slice();return h(r,function(e,t){var i=c["object"===s?e:t.idx];null==i&&(i=d[t.idx]),d[t.idx]=n(i,t)}),u?(i=l(u(d)),i[a]=d,i):l(d)},h(r,function(n,i){l.fn[n]||(l.fn[n]=function(r){var a,o=e.type(r),l="alpha"===n?this._hsla?"hsla":"rgba":t,u=this[l](),c=u[i.idx];return"undefined"===o?c:("function"===o&&(r=r.call(this,c),o=e.type(r)),null==r&&i.empty?this:("string"===o&&(a=s.exec(r))&&(r=c+parseFloat(a[2])*("+"===a[1]?1:-1)),u[i.idx]=r,this[l](u)))})})}),l.hook=function(t){var n=t.split(" ");h(n,function(t,n){e.cssHooks[n]={set:function(t,r){var a,s,o="";if("transparent"!==r&&("string"!==e.type(r)||(a=i(r)))){if(r=l(a||r),!d.rgba&&1!==r._rgba[3]){for(s="backgroundColor"===n?t.parentNode:t;(""===o||"transparent"===o)&&s&&s.style;)try{o=e.css(s,"backgroundColor"),s=s.parentNode}catch(e){}r=r.blend(o&&"transparent"!==o?o:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=l(t.elem,n),t.end=l(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return h(["Top","Right","Bottom","Left"],function(n,i){t["border"+i+"Color"]=e}),t}},a=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(i),function(){function t(t){var n,i,r=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(r&&r.length&&r[0]&&r[r[0]])for(i=r.length;i--;)n=r[i],"string"==typeof r[n]&&(a[e.camelCase(n)]=r[n]);else for(n in r)"string"==typeof r[n]&&(a[n]=r[n]);return a}function n(t,n){var i,r,s={};for(i in n)r=n[i],t[i]!==r&&(a[i]||!e.fx.step[i]&&isNaN(parseFloat(r))||(s[i]=r));return s}var r=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(i.style(e.elem,n,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(i,a,s,o){var l=e.speed(a,s,o);return this.queue(function(){var a,s=e(this),o=s.attr("class")||"",u=l.children?s.find("*").addBack():s;u=u.map(function(){return{el:e(this),start:t(this)}}),a=function(){e.each(r,function(e,t){i[t]&&s[t+"Class"](i[t])})},a(),u=u.map(function(){return this.end=t(this.el[0]),this.diff=n(this.start,this.end),this}),s.attr("class",o),u=u.map(function(){var t=this,n=e.Deferred(),i=e.extend({},l,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,i),n.promise()}),e.when.apply(e,u.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(s[0])})})},e.fn.extend({addClass:function(t){return function(n,i,r,a){return i?e.effects.animateClass.call(this,{add:n},i,r,a):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(n,i,r,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},i,r,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,i,r,a,s){return"boolean"==typeof i||void 0===i?r?e.effects.animateClass.call(this,i?{add:n}:{remove:n},r,a,s):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},i,r,a)}}(e.fn.toggleClass),switchClass:function(t,n,i,r,a){return e.effects.animateClass.call(this,{add:n,remove:t},i,r,a)}})}(),function(){function t(t,n,i,r){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),e.isFunction(n)&&(r=n,i=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(r=i,i=n,n={}),e.isFunction(i)&&(r=i,i=null),n&&e.extend(t,n),i=i||n.duration,t.duration=e.fx.off?0:"number"==typeof i?i:i in e.fx.speeds?e.fx.speeds[i]:e.fx.speeds._default,t.complete=r||n.complete,t}function n(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||(!!e.isFunction(t)||"object"==typeof t&&!t.effect))}e.extend(e.effects,{version:"1.10.3",save:function(e,t){for(var n=0;n").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(e){a=document.body}return t.wrap(i),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),i=t.parent(),"static"===t.css("position")?(i.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),i.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).focus()),t},setTransition:function(t,n,i,r){return r=r||{},e.each(n,function(e,n){var a=t.cssUnit(n);a[0]>0&&(r[n]=a[0]*i+a[1])}),r}}),e.fn.extend({effect:function(){function n(t){function n(){e.isFunction(a)&&a.call(r[0]),e.isFunction(t)&&t()}var r=e(this),a=i.complete,o=i.mode;(r.is(":hidden")?"hide"===o:"show"===o)?(r[o](),n()):s.call(r[0],i,n)}var i=t.apply(this,arguments),r=i.mode,a=i.queue,s=e.effects.effect[i.effect];return e.fx.off||!s?r?this[r](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):!1===a?this.each(n):this.queue(a||"fx",n)},show:function(e){return function(i){if(n(i))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(e.fn.show),hide:function(e){return function(i){if(n(i))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(e.fn.hide),toggle:function(e){return function(i){if(n(i)||"boolean"==typeof i)return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),i=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(i=[parseFloat(n),t])}),i}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})}()}(i)},131:function(e,t,n){"use strict";n(64);var i=(n(0),n(0));!function(){i.fn.client_side_asset_uploader=function(){var e=i(this),t=["data-asset-attachable-type","data-asset-method"].map(function(t){return"["+t+'="'+e.attr(t)+'"]'}).join("");e.adhoc_fileuploader({url:e.data("url"),paramsUrl:e.data("params-url"),done:function(e,n){var r=n.files[0],a={file:r,s3_key:n.formData.filter(function(e){return"key"===e.name})[0].value,data_file_name:r.name,data_file_size:r.size,data_content_type:r.type,signed_preview_url:"umm"};i(".js-assets-list"+t).trigger("assets_list:item_added",a)}})}}()},132:function(e,t,n){var i=n(0);n(0);!function(e,t){function n(e){return parseInt(e,10)||0}function i(e){return!isNaN(parseInt(e,10))}e.widget("ui.resizable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var t,n,i,r,a,s=this,o=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!o.aspectRatio,aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=o.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},n=0;n"),r.css({zIndex:o.zIndex}),"se"===i&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(r);this._renderAxis=function(t){var n,i,r,a;t=t||this.element;for(n in this.handles)this.handles[n].constructor===String&&(this.handles[n]=e(this.handles[n],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(i=e(this.handles[n],this.element),a=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(r,a),this._proportionallyResize()),e(this.handles[n]).length},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){s.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=r&&r[1]?r[1]:"se")}),o.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){o.disabled||(e(this).removeClass("ui-resizable-autohide"),s._handles.show())}).mouseleave(function(){o.disabled||s.resizing||(e(this).addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,n=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_mouseCapture:function(t){var n,i,r=!1;for(n in this.handles)((i=e(this.handles[n])[0])===t.target||e.contains(i,t.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(t){var i,r,a,s=this.options,o=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:o.top,left:o.left}),this._renderProxy(),i=n(this.helper.css("left")),r=n(this.helper.css("top")),s.containment&&(i+=e(s.containment).scrollLeft()||0,r+=e(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:r},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:i,top:r},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===a?this.axis+"-resize":a),l.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,i=this.helper,r={},a=this.originalMousePosition,s=this.axis,o=this.position.top,l=this.position.left,u=this.size.width,c=this.size.height,d=t.pageX-a.left||0,f=t.pageY-a.top||0,h=this._change[s];return!!h&&(n=h.apply(this,[t,d,f]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),this.position.top!==o&&(r.top=this.position.top+"px"),this.position.left!==l&&(r.left=this.position.left+"px"),this.size.width!==u&&(r.width=this.size.width+"px"),this.size.height!==c&&(r.height=this.size.height+"px"),i.css(r),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(r)||this._trigger("resize",t,this.ui()),!1)},_mouseStop:function(t){this.resizing=!1;var n,i,r,a,s,o,l,u=this.options,c=this;return this._helper&&(n=this._proportionallyResizeElements,i=n.length&&/textarea/i.test(n[0].nodeName),r=i&&e.ui.hasScroll(n[0],"left")?0:c.sizeDiff.height,a=i?0:c.sizeDiff.width,s={width:c.helper.width()-a,height:c.helper.height()-r},o=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,u.animate||this.element.css(e.extend(s,{top:l,left:o})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!u.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,n,r,a,s,o=this.options;s={minWidth:i(o.minWidth)?o.minWidth:0,maxWidth:i(o.maxWidth)?o.maxWidth:1/0,minHeight:i(o.minHeight)?o.minHeight:0,maxHeight:i(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||e)&&(t=s.minHeight*this.aspectRatio,r=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,a=s.maxWidth/this.aspectRatio,t>s.minWidth&&(s.minWidth=t),r>s.minHeight&&(s.minHeight=r),ne.width,o=i(e.height)&&t.minHeight&&t.minHeight>e.height,l=this.originalPosition.left+this.originalSize.width,u=this.position.top+this.size.height,c=/sw|nw|w/.test(n),d=/nw|ne|n/.test(n);return s&&(e.width=t.minWidth),o&&(e.height=t.minHeight),r&&(e.width=t.maxWidth),a&&(e.height=t.maxHeight),s&&c&&(e.left=l-t.minWidth),r&&c&&(e.left=l-t.maxWidth),o&&d&&(e.top=u-t.minHeight),a&&d&&(e.top=u-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var e,t,n,i,r,a=this.helper||this.element;for(e=0;e"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},sw:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,i]))},ne:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},nw:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,i]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).data("ui-resizable"),i=n.options,r=n._proportionallyResizeElements,a=r.length&&/textarea/i.test(r[0].nodeName),s=a&&e.ui.hasScroll(r[0],"left")?0:n.sizeDiff.height,o=a?0:n.sizeDiff.width,l={width:n.size.width-o,height:n.size.height-s},u=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,c=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(l,c&&u?{top:c,left:u}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};r&&r.length&&e(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,r,a,s,o,l,u=e(this).data("ui-resizable"),c=u.options,d=u.element,f=c.containment,h=f instanceof e?f.get(0):/parent/.test(f)?d.parent().get(0):f;h&&(u.containerElement=e(h),/document/.test(f)||f===document?(u.containerOffset={left:0,top:0},u.containerPosition={left:0,top:0},u.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(h),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,r){i[e]=n(t.css("padding"+r))}),u.containerOffset=t.offset(),u.containerPosition=t.position(),u.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},r=u.containerOffset,a=u.containerSize.height,s=u.containerSize.width,o=e.ui.hasScroll(h,"left")?h.scrollWidth:s,l=e.ui.hasScroll(h)?h.scrollHeight:a,u.parentData={element:h,left:r.left,top:r.top,width:o,height:l}))},resize:function(t){var n,i,r,a,s=e(this).data("ui-resizable"),o=s.options,l=s.containerOffset,u=s.position,c=s._aspectRatio||t.shiftKey,d={top:0,left:0},f=s.containerElement;f[0]!==document&&/static/.test(f.css("position"))&&(d=l),u.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-d.left),c&&(s.size.height=s.size.width/s.aspectRatio),s.position.left=o.helper?l.left:0),u.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),c&&(s.size.width=s.size.height*s.aspectRatio),s.position.top=s._helper?l.top:0),s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top,n=Math.abs((s._helper,s.offset.left-d.left+s.sizeDiff.width)),i=Math.abs((s._helper?s.offset.top-d.top:s.offset.top-l.top)+s.sizeDiff.height),r=s.containerElement.get(0)===s.element.parent().get(0),a=/relative|absolute/.test(s.containerElement.css("position")),r&&a&&(n-=s.parentData.left),n+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-n,c&&(s.size.height=s.size.width/s.aspectRatio)),i+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-i,c&&(s.size.width=s.size.height*s.aspectRatio))},stop:function(){var t=e(this).data("ui-resizable"),n=t.options,i=t.containerOffset,r=t.containerPosition,a=t.containerElement,s=e(t.helper),o=s.offset(),l=s.outerWidth()-t.sizeDiff.width,u=s.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(a.css("position"))&&e(this).css({left:o.left-r.left-i.left,width:l,height:u}),t._helper&&!n.animate&&/static/.test(a.css("position"))&&e(this).css({left:o.left-r.left-i.left,width:l,height:u})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable"),n=t.options,i=function(t){e(t).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof n.alsoResize||n.alsoResize.parentNode?i(n.alsoResize):n.alsoResize.length?(n.alsoResize=n.alsoResize[0],i(n.alsoResize)):e.each(n.alsoResize,function(e){i(e)})},resize:function(t,n){var i=e(this).data("ui-resizable"),r=i.options,a=i.originalSize,s=i.originalPosition,o={height:i.size.height-a.height||0,width:i.size.width-a.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0},l=function(t,i){e(t).each(function(){var t=e(this),r=e(this).data("ui-resizable-alsoresize"),a={},s=i&&i.length?i:t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(s,function(e,t){var n=(r[t]||0)+(o[t]||0);n&&n>=0&&(a[t]=n||null)}),t.css(a)})};"object"!=typeof r.alsoResize||r.alsoResize.nodeType?l(r.alsoResize):e.each(r.alsoResize,function(e,t){l(e,t)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),n=t.options,i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof n.ghost?n.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),n=t.options,i=t.size,r=t.originalSize,a=t.originalPosition,s=t.axis,o="number"==typeof n.grid?[n.grid,n.grid]:n.grid,l=o[0]||1,u=o[1]||1,c=Math.round((i.width-r.width)/l)*l,d=Math.round((i.height-r.height)/u)*u,f=r.width+c,h=r.height+d,p=n.maxWidth&&n.maxWidthf,v=n.minHeight&&n.minHeight>h;n.grid=o,m&&(f+=l),v&&(h+=u),p&&(f-=l),g&&(h-=u),/^(se|s|e)$/.test(s)?(t.size.width=f,t.size.height=h):/^(ne)$/.test(s)?(t.size.width=f,t.size.height=h,t.position.top=a.top-d):/^(sw)$/.test(s)?(t.size.width=f,t.size.height=h,t.position.left=a.left-c):(t.size.width=f,t.size.height=h,t.position.top=a.top-d,t.position.left=a.left-c)}})}(i)},133:function(e,t,n){"use strict";var i=n(21),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(0);n(0);a.browser=r.default},134:function(e,t,n){"use strict";n(51);var i=n(0);n(0);!function(e){function t(e){window.history&&window.history.replaceState?history.replaceState(null,null,e):window.location.replace(e)}e.fn.persistent_paging=function(){return e(this).each(function(){function n(){var t=[];e.each(r,function(){t.push([this[0],this[2].offset().top,this[2]])}),r=t}var i=e(this),r=[[1,0,i.find(".page")]],a=[],s=!1,o=i.data("mobius"),l=/^#p(\d*)/,u=l.exec(window.location.hash);u&&1!==parseInt(u[1],10)&&(i.one("mobius:loaded_page",function(t,n,i){e.scrollTo(i.offset().top+70)}),o.load_page(parseInt(u[1],10))),i.on("mobius:loaded_page",function(t,a,s){function l(){if(this[0]===c)return u=!0,!1}var u,c,d=[];for(r.push([a,!1,s]),n(),c=1;c<=r[r.length-1][0];c+=1)u=!1,e.each(r,l),u||d.push(c);d.length?e.each(d,function(){var t=r[0],n=parseInt(this,10),a=e([]),s=[],l=e([]),u=e([]);e.each(r,function(){this[0]>t[0]&&this[0]e&&(a=this)}),a[0]!==s&&(t("#p"+a[0]),e(document).trigger("infinite_scroll:scrolled_to",[a[0]]),s=a[0])})})}}(i)},135:function(e,t,n){"use strict";var i=n(0);n(0);!function(e){function t(t,n){this.$elem=t,this.options=e.extend({},{adjust_on:"mobius:loaded_page scroll resize sticky_bar:position load hashchange",parent:t.parent(),attach_to:"top",lock_to_bottom:!0},n),this.paused=!1,this.last_scroll_top=0,this.last_up=!1,this.fixed=!1,this.original_top=t.offset().top,this.original_bottom=this.original_top+t.height(),this.update_window_larger_then_elem(),this.attach_to_top="top"===this.options.attach_to,this.attach_to_bottom=!this.attach_to_top,this.bind_events(),this.reposition()}function n(t,n){this.$elem=t,this.options=e.extend({},{adjust_on:"shifted scroll resize load hashchange"},n),this.original_top=t.offset().top,this.bind_events(),this.reposition()}e.fn.sticky_bar=function(n){return n=n||{},e(this).each(function(){var i=e(this).data("stickybar");i?e(this).trigger("shifted"):(i=new t(e(this),n),e(this).data("stickybar",i))})},e.fn.simple_sticky_bar=function(t){return t=t||{},e(this).each(function(){var i=e(this).data("simple_stickybar");i?e(this).trigger("shifted"):(i=new n(e(this),t),e(this).data("simple_stickybar",i))})},e.extend(n.prototype,{bind_events:function(){var t=this;e(window).on(this.options.adjust_on,function(e){t.reposition(e)})},reposition:function(){e(window).scrollTop()this.$elem.height()},lockToBottom:function(e){this.fixed=!1,this.$elem.css("position","absolute"),this.$elem.css("top",e-this.$elem.outerHeight()-this.$elem.offsetParent().offset().top)},reposition:function(t){var n=this,i=e(window).scrollTop(),r=i+e(window).height(),a=n.$elem.offset().top,s=a+n.$elem.height(),o=n.options.parent,l=o.offset().top+o.outerHeight(),u=t&&"scroll"===t.type,c=!(i>n.last_scroll_top),d=c!==n.last_up;e("body").width()<640||n.attach_to_top&&in.original_bottom?(n.fixed=!1,n.$elem.css("position","static"),n.$elem.css("top","auto"),n.$elem.css("bottom","auto")):n.options.lock_to_bottom&&!n.window_larger_then_elem&&r>l?n.lockToBottom(l):n.options.lock_to_bottom&&n.window_larger_then_elem&&i+n.$elem.height()>l?n.lockToBottom(l):d&&u?n.window_larger_then_elem||(n.fixed=!1,n.$elem.css("position","absolute"),n.$elem.css("top",a),n.$elem.css("bottom","auto")):n.fixed||(n.attach_to_top?n.window_larger_then_elem||(!u||c)&&is)||(n.fixed=!0,n.$elem.css("position","fixed"),n.$elem.css("top",-(n.$elem.height()-e(window).height()))):(n.window_larger_then_elem||(!u||!c)&&r>s)&&(n.fixed=!0,n.$elem.css("position","fixed"),n.$elem.css("bottom",0))),n.was_fixed!==n.fixed&&n.$elem.trigger("sticky_bar:fixed_changed",[n.fixed]),n.last_scroll_top=i,n.last_up=c}})}(i)},139:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(0),a=i(r),s=n(4),o=i(s),l=n(199),u=i(l);(0,o.default)(".NS_banners__social_prompt",function(e){var t=e.data("url");t&&a.default.ajax({url:(0,u.default)(t),type:"get",success:function(t){var n=t.remotely_followed_count;n>0&&(e.find(".js-friend-count").html(n),e.removeClass("banner--is-hidden"))}})})},140:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(8),a=i(r),s=n(2),o=i(s),l=n(0);n(0);!function(e){function t(t){var n=t.data("status-url");n&&e.pollster(n,function(n){var i,r=t.data("track-label");return n.ok?(i=e(n.html),t.replaceWith(i),(0,a.default)({success:o.default.t("library.video_tracks_editor.Successfully_imported_label",{label:r})}),!0):!!n.error&&(i=e(n.html),t.replaceWith(i),(0,a.default)({error:o.default.t("library.video_tracks_editor.Something_went_wrong_while_importing_label",{label:r,error:n.error})}),!0)},{delay:1e3})}e.fn.videoTracksEditor=function(){var n=e(this);n.on("click",".js-add-track",function(t){var n,i=e(t.currentTarget),r=i.closest(".js-subtitles"),a=r.find(".js-language-select"),s=r.find(".js-track-list"),o=a.find("option:selected").val();n=e.ajax({method:"POST",url:i.data("create-track-path"),data:{language:o,captionable_type:i.data("captionable-type"),captionable_id:i.data("captionable-id")},dataType:"json"}),n.success(function(e){s.append(e.html),a.find('option[value="'+o+'"]').prop("disabled",!0),a.ksr_val(a.find("option").not("[disabled]").first().val())}),t.preventDefault()}),n.on("click",".js-captionable--destroy-track",function(t){var n,i=e(t.currentTarget),r=i.closest(".js-subtitles"),a=r.find(".js-language-select"),s=i.data("path");t.preventDefault(),confirm(o.default.t("library.video_tracks_editor.Are_you_sure_you_want_to_delete_this_track"))&&(n=e.ajax({method:"DELETE",url:s}),n.success(function(e){var t=i.data("language");e.ok&&(a.find('option[value="'+t+'"]').prop("disabled",!1),i.closest(".js-captionable--track-item").remove())}))}),n.on("change",".js-importer--input",function(){var n,i=e(this),r=i.closest(".js-importer"),s=i.closest(".js-captionable--track-item"),l=r.find(".js-importer--text"),u=this.files&&this.files[0],c=new FormData;u&&(i.hide(),l.text(o.default.t("library.video_tracks_editor.Uploading")),c.append("track[file]",u),n=e.ajax({url:i.data("url"),type:"PUT",processData:!1,contentType:!1,data:c}),n.success(function(n){var i;n.ok?(i=e(n.html),s.replaceWith(i),t(i)):(0,a.default)({error:n.error})}),n.error(function(){(0,a.default)({error:o.default.t("library.video_tracks_editor.Something_went_wrong_while_uploading_file",{file:u.name})}),i.show()}))}),n.find(".js-captionable--track-item").each(function(){t(e(this))})}}(l)},141:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(5),a=i(r),s=n(21),o=i(s),l=n(14),u=n(2),c=i(u);n(296),n(67),n(33),n(164),n(78);var d=n(0);n(0);!function(e){function t(t){this.$c=e(t),this.video_data=this.$c.data("video")||{},this.autostarting=!1;var n=this.$c.find("video");n.get(0)&&n.get(0).canPlayType&&(n.get(0).canPlayType("video/mp4")||n.hasClass("has_webm"))&&(this.$video=n,this.video=n.get(0),o.default.chrome&&this.$video.attr("controls","controls").removeAttr("controls"),this.$c.addClass("vertically_center")),this.initialize(),(window.location.search.match("play="+(this.$c.attr("id")||this.video_data.id))||this.$c.hasClass("autoplay"))&&(this.autostarting=!0,this.play()),this.$c.hasClass("muted")&&this.mute(),this.add_size_class(),this.bind_events()}e.fn.ksr_video=function(){return e(this).each(function(){var n=e(this).data("ksr_video");n||(n=new t(e(this)),e(this).data("ksr_video",n))})},e.extend(t.prototype,{overlay:function(){var t=this;this.$c.children(":not(video)").hide(),this.$overlay=e('
'),this.$overlay.on("click",function(e){t.initialize_flash(),t.$overlay.remove(),e.preventDefault()}),this.$c.append(this.$overlay)},bind_events:function(){var e=this;this.$c.on("ksr_video:play",function(){e.play()}),this.$c.on("ksr_video:pause",function(){e.pause()}),this.$c.on("ksr_video:mute",function(){e.mute()}),this.$c.on("ksr_video:unmute",function(){e.unmute()}),this.$c.on("ksr_video:destroy",function(){e.destroy()}),this.$c.on("ksr_video:seek",function(t,n,i){e.seek(n,i)})},add_size_class:function(){this.$c.removeClass("small medium large"),this.$c.width()>600?this.$c.addClass("large"):this.$c.width()>400?this.$c.addClass("large"):this.$c.addClass("small")},bind_video_element:function(){var e=this,t=this.$video,n=!0;this.$video.on("loadedmetadata",function(){e.$c.trigger("ksr_video:loaded")}),t.bind("ended",function(){e.$c.trigger("ksr_video:ended")}),t.on("play",function(){e.$c.trigger("ksr_video:playing",[n]),e.$c.addClass("has_played"),e.autostarting?e.autostarting=!1:e.focus_playpause_button(),n=!1}),t.on("pause",function(){e.$c.trigger("ksr_video:paused"),e.focus_playpause_button()}),t.on("progress",function(){var t,n,i,r=e.video.buffered,s=[];if(r.length)for(t=0;t20)&&(r(),o(),k=t)}),u(),this.$video.on("click",function(){v.playpause()}),this.$c.find(".play_button_big, img.poster").on("click",function(e){v.play(),e.preventDefault()}),this.$c.on("focus click",":tabbable",function(){v.playing()&&(r(),o())}),this.$c.on("keydown",'[role="button"]',function(t){t.which!==l.ENTER&&t.which!==l.SPACE||(e(this).click(),t.preventDefault())}),this.$c.on("keydown",'.progress_container [role="slider"]',function(e){h("currentTime",{delta:.05*v.video.duration,direction:d(e),max:v.video.duration})}),this.$c.on("keydown",'.volume_container [role="slider"]',function(e){h("volume",{delta:.05,direction:d(e),max:1})}),this.$c.on("ksr_video:loaded",function(){u(),C.attr("aria-valuemin","0").attr("aria-valuemax","1"),p()}),this.$video.on("volumechange",function(){p()}).on("play",function(){D.removeClass("play").addClass("pause").attr("aria-label",c.default.t("library.ksr_video.Pause")),o()}).on("pause",function(){D.removeClass("pause").addClass("play").attr("aria-label",c.default.t("library.ksr_video.Play")),r(),s()}),D.on("click",function(e){v.playpause(),e.preventDefault()}),_.on("mouseenter focus",".video_dropdown",function(t){var n=e(t.currentTarget);n.addClass("open"),_.on("mouseleave.leave_dropdown blur.leave_dropdown",".video_dropdown",function(){n.removeClass("open"),_.off(".leave_dropdown")})}),j.on("click","li",function(){var t=e(this),n=t.data("language");T.removeClass("open"),n?KSR.store.setItem("last_track_language",n):KSR.store.removeItem("last_track_language"),g(n),v.$c.trigger("ksr_video:change_track",n)}),v.video.textTracks&&0!==v.video.textTracks.length?g(KSR.store.getItem("last_track_language")):this.$c.find(".js-remove-unless-text-tracks").remove();var R=null;e(document).on("fullscreenchange mozfullscreenchange webkitfullscreenchange",function(){!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&R&&v.$c.css("height",R)}),_.find(".fullscreen").on("click",function(e){if(document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled){var t=v.$c.get(0);document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullscreen?document.cancelFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():(R=v.$c.css("height"),v.$c.css("height","auto"),t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen())}else v.$c.toggleClass("fullscreen");e.preventDefault()}),y.draggable_bar(function(e){var t=v.video.duration*e;v.video.currentTime=t}),x.draggable_bar(function(e){v.video.muted&&v.unmute(),v.video.volume=e}),x.find(".progress_bar_bg").on("mouseup",m),E.on("mouseup",m),C.on("mouseup",m),e("body").is(".touchable")?E.hide():S.on("click",function(){v.mute_toggle()}),this.$c.on("ksr_video:buffer_change",function(e,t,n){b.width(n+"%")}),this.$c.on("ksr_video:time_update",function(e,n){var i=n/v.video.duration*100;w.width(i+"%"),A.css("left",i+"%"),P.text(t(n)).attr("datetime","PT"+Math.floor(n)+"S"),A.attr("aria-valuenow",n)})},play:function(){this.video?(this.$video.show(),this.video.play()):this.jwplayer&&this.jwplayer.play()},pause:function(){this.playing()&&(this.video?this.video.pause():this.jwplayer&&this.jwplayer.pause())},playpause:function(){return this.playing()?this.pause():this.play(),this.playing()},focus_playpause_button:function(){var t=this.$c.find(".playpause"),n=e(window),i=t[0].getBoundingClientRect();i.top>=0&&i.left>=0&&i.bottom<=n.height()&&i.right<=n.width()&&t.focus()},seek:function(e,t){var n=this;if(void 0===t&&(t=!1),this.video){if(this.video.readyState<1)return this.video.load(),void this.$c.one("ksr_video:loaded",function(){n.seek(e,t)});this.video.currentTime=e,t?this.pause():this.play()}else this.jwplayer&&(this.jwplayer.seek(e),this.jwplayer.pause(t))},mute_toggle:function(){return this.video&&(this.video.muted?this.unmute():this.mute()),this.video.muted},mute:function(){this.$c.trigger("ksr_video:muted"),this.jwplayer?this.jwplayer.setMute(!0):this.video.muted=!0},unmute:function(){this.$c.trigger("ksr_video:unmuted"),this.jwplayer?this.jwplayer.setMute(!1):this.video.muted=!1},destroy:function(){this.$c.empty(),this.$c.removeData("ksr_video")},current_position:function(){return this.video?this.video.currentTime:this.jwplayer?this.jwplayer.getPosition():void 0},duration:function(){return this.jwplayer?this.jwplayer.getDuration():this.video.duration},playing:function(){return this.video?!this.video.paused:this.jwplayer?"playing"===this.jwplayer.getState().toLowerCase():void 0},initialize_flash:function(){var e="v"+parseInt(1e8*Math.random(),10),t=this.$c.data("external_flashvars")||{},n=this;this.$c.append('
'),"undefined"!=typeof swfobject&&swfobject.embedSWF("https://d3mlfyygrfdi2i.cloudfront.net/321f/kickplayer.swf",e,this.$c.data("dimensions").width,this.$c.data("dimensions").height,"9.0.115","/swf/expressInstall.swf",a.default.extend(t,{displayheight:this.$c.height(),file:encodeURI(this.$c.attr("data-video-url")),image:encodeURI(this.$c.attr("data-image")),backcolor:"000000",screencolor:"000000",controlbar:"over","controlbar.idlehide":"true",autostart:!0,skin:"https://d3mlfyygrfdi2i.cloudfront.net/cc3a/kickskin.swf"}),{allowscriptaccess:"always",allowfullscreen:"true",wmode:"opaque",menu:"false"},{id:"ksr_player_"+e,class:"ksr_player",name:"ksr_player_"+e},function(e){var t=!0;window.player_reference=e.ref,e.success?(n.$c.find("video").remove(),n.jwplayer=jwplayer(e.ref),n.jwplayer.onReady(function(){n.$c.trigger("ksr_video:loaded")}),n.jwplayer.onPlay(function(){n.$c.trigger("ksr_video:playing",[t]),t=!1}),n.jwplayer.onPause(function(){n.$c.trigger("ksr_video:paused")}),n.jwplayer.onComplete(function(){n.$c.trigger("ksr_video:ended")}),n.jwplayer.onBufferChange(function(e){var t=e.duration*(e.bufferPercent/100);isNaN(t)||n.$c.trigger("ksr_video:buffer_change",[t,e.bufferPercent])})):(n.$video=n.$c.find("video"),n.video=n.$video.get(0),n.$overlay.remove(),n.$c.children().show(),n.$c.find(".play_button_big").removeAttr("style"),n.video&&(n.initialize(),n.play()))})},initialize:function(){var e=this;this.video?(e.bind_controls(),e.bind_video_element(),KSR.store.getItem("ksr_video_volume")&&(this.video.volume=KSR.store.getItem("ksr_video_volume")),this.$video.css({height:"100%"}).removeAttr("style")):this.overlay()}})}(d)},142:function(e,t,n){"use strict";n(78);var i=n(0);n(0);!function(e){function t(t){this.$container=e(t),this.embed()}e.fn.sound_player=function(){return e(this).each(function(){var n=e(this).data("ksr_video");n||(n=new t(e(this)),e(this).data("sound_player",n))})},e.extend(t.prototype,{embed:function(t){var n="v"+parseInt(1e8*Math.random(),10),i=this;this.$container.find("span").attr("id",n),swfobject.embedSWF("https://d3mlfyygrfdi2i.cloudfront.net/321f/kickplayer.swf",n,this.$container.width(),this.$container.height(),"9.0.115","https://d3mlfyygrfdi2i.cloudfront.net/7b65/expressInstall.swf",{displayheight:this.$container.height(),file:encodeURI(this.$container.attr("data-file")),backcolor:"000000",screencolor:"000000",controlbar:"bottom","controlbar.idlehide":"false",autostart:t,audioonly:!0,skin:"https://d3mlfyygrfdi2i.cloudfront.net/cc3a/kickskin.swf"},{allowscriptaccess:"always",wmode:"opaque",menu:"false"},{id:"sound_player_"+n,class:"ksr_player",name:"sound_player_"+n},function(n){if(n.success)i.jwplayer=jwplayer(n.ref);else{var r=e("